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 |
|---|---|---|---|---|---|---|
t + delteMin . get timestamp. | public void click(int deltaMins){
map.put(deltaMins,map.getOrDefault(deltaMins,0)+1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 timestamp();",
"TimeStamp getT();",
"public long getTimestamp();",
"public long getTimestamp();",
"long getTimestamp();",
"int getTimestamp();",
"long getTimeStamp();",
"String getTimestamp();",
"String getTimestamp();",
"java.lang.String getTimestamp();",
"java.lang.String getTimestamp();",
"public long getTimestamp_() {\n return timestamp_;\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() {\r\n return timestamp_;\r\n }",
"private static String getTimeStamp()\r\n\t{\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH.mm.ss\");\r\n\t\tDate date = new Date();\r\n\t\treturn dateFormat.format(date);\r\n\t}",
"public int getTimestamp(){\r\n\t\treturn timestamp;\r\n\t}",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\r\n return timestamp;\r\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() {return attributes.getLongValue(TIMESTAMP,-1);}",
"public java.lang.String getTimeStamp(){\r\n return localTimeStamp;\r\n }",
"public long getTimestamp() {\r\n return timestamp;\r\n }",
"public long getTimeStamp() {\n return 1370918376296L;\n }",
"public static String getTimestamp() {\n\t\tCalendar cal = Calendar.getInstance();\n\t\t//define the format of time stamp\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\treturn sdf.format(cal.getTime());\n\n\t}",
"public static String timestamp()\n\t{\n\t\t/**\n\t\t * Get the current time formatted as HH:mm:ss.\n\t\t */\t\t\n\t\treturn new SimpleDateFormat(\"HH:mm:ss\").format(new Date());\n\t}",
"public abstract long getTimestampMillis();",
"public long getTimestamp() {\n\t\treturn lTimestamp;\n\t}",
"private String getTimestamp() {\n return Calendar.getInstance().getTime().toString();\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() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"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}",
"Date getTimestamp();",
"public int getTimestamp() {\n return timestamp_;\n }",
"private ZonedDateTime timestamp() {\n return Instant.now().atZone(ZoneId.of(\"UTC\")).minusMinutes(1);\n }",
"@Override\r\n\tpublic long getTimestamp() {\n\t\treturn -1;\r\n\t}",
"public String getTimestamp()\n {\n return timestamp;\n }",
"public static String timestamp() {\n\t\tString t = new SimpleDateFormat(\"yyyy-MM-dd HH-mm-ss\").format(new Date());\n\t\t// File f=new\n\t\t// File(String.format(\"%s.%s\",t,RandomStringUtils.randomAlphanumeric(8)));\n\t\tSystem.out.println(\"Time is :\" + t);\n\t\treturn t;\n\t}",
"public static String getTimestamp() {\r\n\t\t\r\n\t\treturn new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t}",
"public int getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return this.timestamp;\n }",
"public long getTimestamp() {\n return this.timestamp;\n }",
"String getTimestampFunction();",
"Date getTimeStamp();",
"long getTsUpdate();",
"public long getTs() {\n return ts;\n }",
"long getStartTimestamp();",
"public long getTimeStamp() {return timeStamp;}",
"private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}",
"public Long getTimestamp() {\n return timestamp;\n }",
"public int getTimeStamp() {\r\n return fTimeStamp;\r\n }",
"private long makeTimestamp() {\n return new Date().getTime();\n }",
"public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}",
"public int getTimeStamp() {\n return timeStamp;\n }",
"public long getTs() {\n return ts;\n }",
"@Override\n\tpublic String getTimestamp()\n\t{\n\t\treturn new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss.SSS\").format(new Date());\n\t}",
"public String getTimeStamp()\n\t{\n\t\tString timeStamp = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(Calendar.getInstance().getTime());\n\t\treturn timeStamp; \n\t}",
"public static String fn_GetCurrentTimeStamp() {\n\t\tDate dte = new Date();\n\t\tDateFormat df = DateFormat.getDateTimeInstance();\n\t\tString strdte = df.format(dte);\n\t\tstrdte = strdte.replaceAll(\":\", \"_\");\n\t\treturn strdte;\n\t}",
"@Override\n public long getTimestamp() {\n return timestamp;\n }",
"UtcT time_stamp () throws BaseException;",
"public Long getTimestampStart();",
"long getCreateTime();",
"long getCreateTime();",
"String timeStamp() {\n\n\t\tCalendar now = Calendar.getInstance();\n\n\t\t String y = String.valueOf(now.get(now.YEAR));\n\t\t String mo = String.valueOf(now.get(now.MONTH)+1);\n\t\t String d = String.valueOf(now.get(now.DAY_OF_MONTH));\n\t\t String h = String.valueOf(now.get(now.HOUR_OF_DAY));\n\t\t String m = String.valueOf(now.get(now.MINUTE));\n\t\t String s = String.valueOf(now.get(now.SECOND));\n\t\t String ms = String.valueOf(now.get(now.MILLISECOND));\n\n\n\t return h + m + s + ms;\n\n\n\n }",
"public static long longTimestamp() {\n return now().getTime();\n }",
"public long getStartTimestamp();",
"public String getTimeStamp() {\n Calendar instance = Calendar.getInstance();\n SimpleDateFormat sdf = new SimpleDateFormat(\"MMM-dd-yyyy-HH:mm:ss:ms\");\n return sdf.format(instance.getTime());\n }"
] | [
"0.73215014",
"0.73215014",
"0.73215014",
"0.73215014",
"0.73215014",
"0.73215014",
"0.73215014",
"0.73215014",
"0.73215014",
"0.73215014",
"0.73215014",
"0.73215014",
"0.73215014",
"0.73215014",
"0.73215014",
"0.73215014",
"0.73201215",
"0.73115605",
"0.7227393",
"0.7227393",
"0.7206898",
"0.7191349",
"0.7144978",
"0.7139366",
"0.7139366",
"0.7106625",
"0.7106625",
"0.6965491",
"0.6954493",
"0.6954493",
"0.69524866",
"0.69524866",
"0.6878556",
"0.68531245",
"0.6849229",
"0.6847426",
"0.683497",
"0.683497",
"0.683497",
"0.683497",
"0.683497",
"0.683497",
"0.683497",
"0.683497",
"0.68327606",
"0.6832601",
"0.68320787",
"0.6828655",
"0.6812424",
"0.68067944",
"0.68057036",
"0.6787837",
"0.6785689",
"0.6778473",
"0.6778473",
"0.6777923",
"0.6776128",
"0.6776128",
"0.6776128",
"0.6776128",
"0.6776128",
"0.6776128",
"0.6776128",
"0.67669004",
"0.67669004",
"0.67669004",
"0.6740444",
"0.67397714",
"0.67383516",
"0.6721076",
"0.6710668",
"0.67105734",
"0.67104745",
"0.66721046",
"0.6667135",
"0.6667135",
"0.66653484",
"0.66588646",
"0.665099",
"0.6639866",
"0.66335636",
"0.66286045",
"0.66190434",
"0.66132325",
"0.66099006",
"0.66008157",
"0.6592435",
"0.6571386",
"0.6558112",
"0.65500647",
"0.65294945",
"0.65238935",
"0.6522669",
"0.65094876",
"0.65070856",
"0.6489629",
"0.6489629",
"0.64885825",
"0.648682",
"0.64829916",
"0.64819354"
] | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
view = inflater.inflate(R.layout.fragment_temp, container, false);
appData = this.getActivity().getSharedPreferences("appData", MODE_PRIVATE); //설정값을 가지고 온다
load();
// change(); //이미 path가 존재하면
// if(sharedCodiPath.equals("")) { // path = coordyPath
// loadCodi();
// }
getLike(); //좋아요한 정보 가져오기
loadCodi(); //공유된 코디 가져오기
init();
tempAdapter = new TempGridAdater (getActivity(), R.layout.item_temp_gridview, coordyItemslist);
gridView.setExpended(true);
gridView.setAdapter(tempAdapter);
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
] | [
"0.6740675",
"0.6725193",
"0.67224836",
"0.6699259",
"0.6691596",
"0.668896",
"0.6687658",
"0.66861755",
"0.667755",
"0.66756433",
"0.6667425",
"0.66667783",
"0.6665166",
"0.66614723",
"0.66549766",
"0.665031",
"0.6643759",
"0.6639389",
"0.66378653",
"0.66345453",
"0.6626348",
"0.66202056",
"0.66176945",
"0.66094035",
"0.65976113",
"0.65937936",
"0.6585841",
"0.6585124",
"0.65741223",
"0.65721804",
"0.65698904",
"0.65695107",
"0.6569451",
"0.6568099",
"0.6565633",
"0.6554688",
"0.65533894",
"0.65447044",
"0.65432465",
"0.6542017",
"0.65385425",
"0.6537571",
"0.65369105",
"0.6535379",
"0.6533447",
"0.6533258",
"0.65316767",
"0.6529574",
"0.6528449",
"0.65262675",
"0.6525467",
"0.6525181",
"0.6524235",
"0.6523963",
"0.65187466",
"0.65138274",
"0.65137535",
"0.6513218",
"0.6513202",
"0.65115535",
"0.651113",
"0.6510943",
"0.6510124",
"0.65094703",
"0.65082514",
"0.65038425",
"0.65023196",
"0.6501983",
"0.65014684",
"0.64982104",
"0.64945936",
"0.6492533",
"0.6491023",
"0.6488248",
"0.64879525",
"0.6487852",
"0.6487744",
"0.64873713",
"0.6487171",
"0.64851",
"0.6485003",
"0.6483167",
"0.6482433",
"0.64824027",
"0.6481711",
"0.6480902",
"0.64779234",
"0.64767206",
"0.6476515",
"0.6475657",
"0.64747864",
"0.64715266",
"0.64714354",
"0.64711314",
"0.6470619",
"0.6468112",
"0.6466466",
"0.64631015",
"0.646268",
"0.6462456",
"0.64620507"
] | 0.0 | -1 |
Bundle bundle = new Bundle(); | @Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
CoordyItem cd = coordyItemslist.get(position);
like = cd.getFullCodiImgURL(); //누른 이미지
info = cd.getTall()+"/"+cd.getWeight();
if (gridView.isItemChecked(position)) { //좋아요 누른경우
saveToServer();
} else { // 좋아요 취소한 경우
like_cancel();
}
// // 코디 이름도 동일한 방식으로 넣어준다
// bundle.putString("NAME", cd.getCodiName());
// bundle.putString("FULL", cd.getFullCodiImgURL());
// bundle.putInt("NO", cd.getNo());
// bundle.putInt("LIKE", cd.getLikes());
// Log.d("Test Layout", "Show CODIINFO Fragment");
// tempAdapter.notifyDataSetChanged();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void bundle(Bundle bundle);",
"File getBundle();",
"@NotNull\n @Generated\n @Selector(\"bundle\")\n public native NSBundle bundle();",
"@Override\n public void startBundle(Bundle bundle) {\n mBundle = bundle;\n }",
"public Bundle getBundle() {\r\n\r\n\r\n Bundle args = new Bundle();\r\n args.putString(\"message\", \"takeAPicture\");\r\n\r\n return args;\r\n }",
"@Override\n\tpublic Bundle getBundle() {\n\t\treturn null;\n\t}",
"public Bundle getExtras() {\n }",
"public BundleDescription getBundle() {\n \t\treturn bundle;\n \t}",
"public interface Bundleable {\n\t\n\t\tpublic Bundle toBundle();\n\n\t\tpublic void fromBundle(Bundle b);\n\t\t\n\t}",
"static public ResourceBundle getBundle() {\r\n\r\n\t\tif (resBundle == null) {\r\n\t\t\tloadBundle();\r\n\t\t}\r\n\t\treturn resBundle;\r\n\t}",
"public Bundle getBundle() {\n \t\tcheckValid();\n \n \t\treturn getBundleImpl();\n \t}",
"protected void openBundle(Bundle bundle){\n //set saved instance state data\n }",
"public void setBundle(boolean bundle) {\r\n\t\tthis.bundle = bundle;\r\n\t}",
"public boolean isBundle() {\r\n return bundle;\r\n }",
"private void init(Bundle savedInstanceState) {\n }",
"private void init(Bundle savedInstanceState) {\n }",
"private void init(Bundle savedInstanceState) {\n }",
"private void init(Bundle savedInstanceState) {\n }",
"public abstract ResourceBundle getBundle();",
"boolean optimizeBundle();",
"boolean generateBundle();",
"@Override\r\n public void onNewBundle(Bundle args) {\r\n super.onNewBundle(args);\r\n\r\n }",
"public boolean isBundle() {\r\n\t\treturn bundle;\r\n\t}",
"protected ResourceBundle getBundle() {\n return _bundle;\n }",
"public ResourceBundle getBundle() {\r\n\t\treturn bundle;\r\n\t}",
"public long getBundleID(){\n return localBundleID;\n }",
"public ClassBundle() {\n }",
"public Bundle getExtras() {\n/* 1775 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"protected abstract void openBundle(Bundle bundle);",
"public void setBundle(boolean value) {\r\n this.bundle = value;\r\n }",
"public void onCreate(Bundle bundle) {\n ArrayList<String> stringArrayList;\n super.onCreate(bundle);\n setContentView(R.layout.pm_activity_package_manager);\n l();\n getLoaderManager().initLoader(50, (Bundle) null, this);\n if (!(bundle == null || (stringArrayList = bundle.getStringArrayList(\"packages\")) == null || stringArrayList.size() <= 0)) {\n this.g = stringArrayList;\n }\n m();\n LocalBroadcastManager.getInstance(this).registerReceiver(this.h, new IntentFilter(\"com.miui.permcenter.install.action_data_change\"));\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) \n {\n //...\n }",
"@SuppressWarnings(\"unused\")\n public void modifiedBundle(Bundle bundle) {\n }",
"@Override\r\n\tpublic void initData(Bundle savedInstanceState) {\n\r\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\r\n\t}",
"public void initialize(Bundle arguments);",
"public java.lang.String getBundleName(){\n return localBundleName;\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n\tsuper.onCreate(savedInstanceState);\n }",
"public static BundleContext getBundleContext()\r\n {\r\n return bundleContext;\r\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\r\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n \tsuper.onCreate(savedInstanceState);\n }",
"private MessageBundle() {\r\n // Nothing to do here.\r\n }",
"@Override\r\n\tpublic void initUI(Bundle savedInstanceState) {\n\r\n\t}",
"public Bundle getBundle(long id) {\n \t\treturn (framework.getBundle(id));\n \t}",
"@Override\n\tpublic void initData(Bundle savedInstanceState) {\n\t\t\n\t}",
"void mo3208a(String str, Bundle bundle);",
"public void getBundle (){\n idTemp = getIntent().getStringExtra(\"id\");\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t}",
"public JsResourceBundle(ResourceBundle bundle) {\n this.bundle = bundle;\n }",
"@Override\r\n\tpublic void initListener(Bundle savedInstanceState) {\n\r\n\t}",
"public String getBundleName()\n {\n return _bundleName;\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n setContentView(R.layout.jt);\n this.f112238a = ButterKnife.bind((Dialog) this);\n this.mProgressbar.getIndeterminateDrawable().setColorFilter(C0683b.m2912c(getContext(), R.color.zg), Mode.MULTIPLY);\n setCanceledOnTouchOutside(false);\n if (!TextUtils.isEmpty(this.f112239b)) {\n C9738o.m28704a((TextView) this.mContent, (CharSequence) this.f112239b);\n }\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"BundleImpl()\n {\n __m_felix = null;\n m_archive = null;\n m_state = Bundle.INSTALLED;\n m_useDeclaredActivationPolicy = false;\n m_stale = false;\n m_activator = null;\n m_context = null;\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }",
"public ClaimBundle() {\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"void mo56317a(Context context, Bundle bundle, C4541a c4541a);",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t}",
"public static void createBundle() {\r\n\t\tint finished = 1;\r\n\t\tSystem.out.println(\"createBundle\");\r\n\r\n\t\tBundle b = new Bundle(index); // send id in\r\n\t\tList<Path> pathList = new ArrayList<Path>();\r\n\t\tContainerNII bundleNii = new ContainerNII();\r\n\t\tPath path;\r\n\t\t\r\n\t\tinsertNIIValues(bundleNii, strBundle);\r\n\t\tb.setNii(bundleNii);\r\n\r\n\t\twhile (finished == 1){\r\n\t\t\tpath = new Path();\r\n\t\t\tcreatePath(path);\r\n\t\t\tpathList.add(path);\r\n\t\t\tfinished = checkContinue(\"path\");\r\n\t\t}\t\t\r\n\t\tb.setPath(pathList);\r\n\t\t// Add bundle to map\r\n\t\tbundles.put(b.getId(), b);\r\n\t\tindex++;\r\n\t}",
"@Override\n\tpublic void loadData(Bundle bundle) {\n\t}",
"public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n setContentView((int) R.layout.activity_chat_archived_dialog);\n EventBus.getDefault().register(this);\n ButterKnife.bind((Activity) this);\n init();\n setDetails();\n setChatArchivedDialogList();\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState)\n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\t\n\t}",
"@Override\n\tprotected EPackage getEPackage() {\n\t return BundlePackage.eINSTANCE;\n\t}"
] | [
"0.762423",
"0.72123635",
"0.7069785",
"0.6925983",
"0.6796157",
"0.6681578",
"0.6681257",
"0.66711986",
"0.66684806",
"0.6557652",
"0.6506018",
"0.6499321",
"0.649196",
"0.6484429",
"0.6448908",
"0.6448908",
"0.6448908",
"0.6448908",
"0.643593",
"0.64153755",
"0.64142096",
"0.6382916",
"0.63674855",
"0.63412714",
"0.6329363",
"0.63249785",
"0.6319207",
"0.630403",
"0.63012934",
"0.6288077",
"0.62817675",
"0.6260821",
"0.6241321",
"0.6232713",
"0.62107474",
"0.61692786",
"0.6150884",
"0.61478686",
"0.6145873",
"0.6135778",
"0.6132839",
"0.6132501",
"0.6111621",
"0.61032665",
"0.60929286",
"0.608856",
"0.60846937",
"0.6079799",
"0.6079799",
"0.6073262",
"0.6070513",
"0.6063888",
"0.6054668",
"0.6054668",
"0.6054668",
"0.6054668",
"0.6054668",
"0.60529095",
"0.6052505",
"0.60504407",
"0.6048447",
"0.6047837",
"0.6047186",
"0.6025302",
"0.601868",
"0.60146946",
"0.60086185",
"0.60055923",
"0.5981002",
"0.59808314",
"0.5980241",
"0.5980241",
"0.5980241",
"0.5980241",
"0.5980241",
"0.5980241",
"0.5980241",
"0.5980241",
"0.5980241",
"0.5980241",
"0.5980241",
"0.5980241",
"0.5980241",
"0.5980241",
"0.5980241",
"0.598023",
"0.598023",
"0.598023",
"0.598023",
"0.598023",
"0.598023",
"0.598023",
"0.598023",
"0.598023",
"0.598023",
"0.598023",
"0.598023",
"0.598023",
"0.5974512",
"0.59704876",
"0.59632283"
] | 0.0 | -1 |
Generate the report for given customers | void generate(List<Customer> customers); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void generateReport(){\n String fileOutput = \"\";\n fileOutput += allCustomers()+\"\\n\";\n fileOutput += getNoAccounts()+\"\\n\";\n fileOutput += getTotalDeposits()+\"\\n\";\n fileOutput += accountsOfferingLoans()+\"\\n\";\n fileOutput += accountsReceivingLoans()+\"\\n\";\n fileOutput += customersOfferingLoans()+\"\\n\";\n fileOutput += customersReceivingLoans()+\"\\n\";\n System.out.println(fileOutput);\n writeToFile(fileOutput);\n }",
"public Report generateReport(List<Contract> contracts, boolean compact, String customer, String dates)\n {\n InputData inputData = new InputData();\n inputData.compact = compact;\n inputData.title = customer;\n if (compact)\n inputData.subtitle = \"Price Comparison - compact\";\n else\n inputData.subtitle = \"Price Comparison\";\n inputData.dates = dates;\n prepareInputData(contracts, inputData);\n return createReportFromInputData(inputData);\n }",
"public void customerAppointmentsReport() {\n StringBuilder sb1 = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n StringBuilder sb3 = new StringBuilder();\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getCustomerAppointments();\n\n reportLabel.setText(\"Customer Appointments By Type and Month Report: \\n\\n\");\n //Appends Month to the customer report\n sb1.append(\"Month:\\n\");\n for (Reports reports : reportsList) {\n sb1.append(reports.getMonthName()).append(\"\\n\");\n }\n reportLabel1.setText(sb1.toString());\n //Appends Type to the customer report\n sb2.append(\"Type:\\n\");\n for (Reports reports : reportsList) {\n sb2.append(reports.getType()).append(\"\\n\");\n }\n reportLabel2.setText(sb2.toString());\n //Appends total count to the customer report\n sb3.append(\"Count:\\n\");\n for (Reports reports : reportsList) {\n sb3.append(reports.getAppointmentCount()).append(\"\\n\");\n }\n reportLabel3.setText(sb3.toString());\n }",
"static String serve(Customer customer) {\r\n\t\tString serviceReport = String.format(\r\n\t\t\t\"%d: %s %s arrived at %s to %s $%.2f and spoke to teller %d. Current balance: $%.2f\",\r\n\t\t\tcustomer.customerId,\r\n\t\t\tcustomer.firstName,\r\n\t\t\tcustomer.lastName,\r\n\t\t\tCustomerFunctions.getTime(customer.arrivalTime),\r\n\t\t\tCustomerFunctions.transactionTypeString(customer.transactionType),\r\n\t\t\tcustomer.transactionAmount,\r\n\t\t\tcustomer.tellerNo,\r\n\t\t\tcustomer.balance\r\n\t\t\t);\r\n\r\n\t\t// Perform deposit / withdrawl on customer account\r\n\t\tif (customer.transactionType == 'D') customer.balance += customer.transactionAmount;\r\n\t\telse customer.balance -= customer.transactionAmount;\r\n\r\n\t\tserviceReport += String.format(\r\n\t\t\t\", New balance: $%.2f, Wait time: %d minutes%n%n\",\r\n\t\t\tcustomer.balance,\r\n\t\t\tcustomer.serviceTime\r\n\t\t\t);\r\n\r\n\t\t// Add to teller totals\r\n\t\ttellerCount[customer.tellerNo - 1] += 1;\r\n\t\tif (customer.transactionType == 'D') tellerDeposits[customer.tellerNo - 1] += customer.transactionAmount;\r\n\t\telse tellerWithdrawls[customer.tellerNo-1] += customer.transactionAmount;\r\n\r\n\t\treturn serviceReport;\r\n\t}",
"public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }",
"public void showCustomers() {\r\n List<String> customerList = new ArrayList<>();\r\n for (int i = 0; i < customersTable.getItems().size(); i++) {\r\n Customer customer = customersTable.getItems().get(i);\r\n LocalDate date = LocalDate.parse(customer.getDate());\r\n if (date.plusMonths(1).isBefore(LocalDate.now())) {\r\n customerList.add(customer.getFirstName() + \" \" + customer.getLastName());\r\n }\r\n }\r\n String message = \"\";\r\n for (String customer : customerList) {\r\n message += customer + \"\\n\";\r\n }\r\n if (message.equals(\"\")) {\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"The following customers need to be contacted this week\");\r\n alert.setHeaderText(null);\r\n alert.setContentText(\"No customers to be contacted today\");\r\n alert.showAndWait();\r\n } else {\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"The following customers need to be contacted this week\");\r\n alert.setHeaderText(null);\r\n alert.setContentText(message);\r\n alert.showAndWait();\r\n }\r\n }",
"public String allCustomers(){\n String outputString = \"Customer accounts:\"+\"\\n\";\n for(Customer record : bank.getName2CustomersMapping().values()){\n outputString += record.getFullName()+\" \"+record.getAccounts().toString()+\"\\n\";\n }\n return outputString;\n }",
"@Then(\"^user enters customer details$\")\n\tpublic void user_enters_customer_details(DataTable customer) {\n\t\tfor(Map<String, String> data :customer.asMaps())\n\t\t{\n\t\t\t \tdriver.findElement(By.name(\"name\")).sendKeys(data.get(\"customer\"));\n\t\t\t driver.findElement(By.xpath(\"//input[@type='radio'][@value='m']\")).click();\n\t\t\t driver.findElement(By.xpath(\"//input[@type='date']\")).sendKeys(data.get(\"DOB\"));\n//\t\t\t driver.findElement(By.name(\"addr\")).sendKeys(data.get(\"add\"));\n\t\t\t driver.findElement(By.name(\"city\")).sendKeys(data.get(\"city\"));\n\t\t\t driver.findElement(By.name(\"state\")).sendKeys(data.get(\"state\"));\n\t\t\t driver.findElement(By.name(\"pinno\")).sendKeys(data.get(\"pin\"));\n\t\t\t driver.findElement(By.name(\"telephoneno\")).sendKeys(data.get(\"mobile\"));\n\t\t\t driver.findElement(By.name(\"emailid\")).sendKeys(data.get(\"emailid\"));\n\t\t\t driver.findElement(By.name(\"password\")).sendKeys(data.get(\"password\"));\n\t\t\t \n\t\t}\n\t \n\t \n\t}",
"private void contactReport() {\n reportText.appendText(\"Report of appointments per Contact\\n\\n\");\n for (Contact contact: Data.getContacts()) {\n\n reportText.appendText(\"\\n\\nContact:\" + contact.getContactName() + \"\\n\\n\");\n for (Appointment appointment: Data.getAppointments()) {\n if (appointment.getContact() == contact.getContactID()) {\n reportText.appendText(\"Appointment ID: \" + appointment.getId() +\n \" \\tTitle: \" + appointment.getTitle() +\n \"\\tType: \" + appointment.getType() +\n \"\\tDescription: \" + appointment.getDescription() +\n \"\\tStart: \" + appointment.getStart() +\n \"\\tEnd: \" + appointment.getEnd() +\n \"\\tCustomer: \" + appointment.getCustomer() + \"\\n\");\n }\n System.out.println(\"\\n\\n\");\n }\n }\n }",
"@RequestMapping(\"/customer/customerReport\")\n public String viewCustomerReport() {\n Connection connection = null;\n try {\n connection = DriverManager.getConnection(\"jdbc:h2:tcp://localhost/~/test\", \"sa\", \"\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n JasperReportBuilder report = DynamicReports.report(); // A new report\n\n StyleBuilder boldStyle = stl.style().bold();\n StyleBuilder boldCenteredStyle = stl.style(boldStyle).setHorizontalAlignment(HorizontalAlignment.CENTER);\n StyleBuilder columnTitleStyle = stl.style(boldCenteredStyle)\n .setBorder(stl.pen1Point())\n .setBackgroundColor(Color.LIGHT_GRAY);\n\n\n\n report\n .setColumnTitleStyle(columnTitleStyle)\n .highlightDetailEvenRows()\n .columns(\n Columns.column(\"Id\", \"customerId\", DataTypes.integerType()),\n Columns.column(\"First Name\", \"firstName\", DataTypes.stringType()),\n Columns.column(\"SecondName\", \"secondName\", DataTypes.stringType()),\n Columns.column(\"Email Address\", \"email\", DataTypes.stringType()),\n Columns.column(\"Phone No\", \"phoneNo\", DataTypes.stringType()),\n Columns.column(\"Street Name\", \"streetName\", DataTypes.stringType()),\n Columns.column(\"House Name\", \"houseName\", DataTypes.stringType()),\n Columns.column(\"City\", \"city\", DataTypes.stringType()),\n Columns.column(\"County\", \"county\", DataTypes.stringType()),\n Columns.column(\"Postcode\", \"postCode\", DataTypes.stringType()))\n .title( //title of the report\n Components.text(\"Customer Report\")\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setStyle(boldCenteredStyle))\n .pageFooter(Components.pageXofY().setStyle(boldCenteredStyle)) //Show page number on the page footer\n .setDataSource(\"SELECT customerId, firstName, secondName, email, phoneNo, streetName, houseName, city, county, postCode FROM customer\", connection);\n\n try {\n // Show the report\n report.show();\n\n try {\n connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n //export the report to a pdf file\n report.toPdf(new FileOutputStream(\"c:/report.pdf\"));\n } catch (DRException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n return \"customerReport\";\n }",
"private void userReport() {\n reportText.appendText(\"Report of appointments per User\\n\\n\");\n for (User user: Data.getUsers()) {\n reportText.appendText(\"\\n\\nUser: \" + user.getUsername() + \"\\n\");\n for (Appointment appointment: Data.getAppointments()) {\n if (appointment.getUser() == user.getId()) {\n reportText.appendText(\"Appointment ID: \" + appointment.getId() +\n \" \\tTitle: \" + appointment.getTitle() +\n \"\\tType: \" + appointment.getType() +\n \"\\tDescription: \" + appointment.getDescription() +\n \"\\tStart: \" + appointment.getStart() +\n \"\\tEnd: \" + appointment.getEnd() +\n \"\\tCustomer: \" + appointment.getCustomer() + \"\\n\");\n }\n System.out.println(\"\\n\\n\");\n }\n }\n\n }",
"public String generateReport(final String merchantUuid, final Integer days, final Integer offset);",
"public static void main(String[] args)\r\n\t{\r\n\t\t\r\n\t\tCalendar calendarInstance = Calendar.getInstance();\r\n\t\t\r\n\t\tint monthInt = calendarInstance.get(Calendar.MONTH) + 1;\r\n\t\tint dayInt = calendarInstance.get(Calendar.DAY_OF_MONTH);\r\n\t\tint yearInt = calendarInstance.get(Calendar.YEAR);\r\n\t\t\r\n\t\tString year = Integer.toString(yearInt);\r\n\t\tString month = Integer.toString(monthInt);\r\n\t\tString day = Integer.toString(dayInt);\r\n\t\t\r\n\t\tString calendarDate = new String(year + \"-\" + month + \"-\" + day);\r\n\t\t\r\n\t\tCustomerAccount geckoAccount = new CustomerAccount(1, \"Gordon Gecko\", \"1 Wall Street New York, NY 10002\", 100000000);\r\n\t\t\r\n\t\tgeckoAccount.addPurchase(250000.00, \"2012-09-08\", \"Rolls Royce\", \"New York\", \"NY\");\r\n\t\tgeckoAccount.addPurchase(300000.00, \"2012-09-10\", \"Tiffany's\", \"New York\", \"NY\");\r\n\t\tgeckoAccount.addPurchase(250000.00, \"2012-09-15\", \"Alfa Romero\", \"New York\", \"NY\");\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Valued CardHolder:\\t\" + geckoAccount.getCustName());\r\n\t\tSystem.out.println(\"Cardholder Address:\\t\" + geckoAccount.getCustAddress());\r\n\t\tSystem.out.println(\"Credit Limit:\\t\\t\" + geckoAccount.getCreditLimit());\r\n\t\tSystem.out.println(\"Current Unpaid Balance:\\t\" + geckoAccount.getUnpaidBalance());\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Transactions on this account as of \" + calendarDate + \":\\n\");\r\n\t\tSystem.out.println(\"\\tDate:\\t\\t\\tMerchant:\\t\\tCity:\\t\\t\\tState:\\t\\tAmount:\\n\");\r\n\t\t\r\n\t\tString purchaseDate = \"\";\r\n\t\tString merchantName = \"\";\r\n\t\tString merchantCity = \"\";\r\n\t\tString merchantState = \"\";\r\n\t\tString purchaseAmount = \"\";\r\n\t\t\r\n\t\t// Initializes a purchase object in order to access the transactionList array and then prints the\r\n\t\t// purchase data via calling the appropriate getter methods\r\n\t\tfor(int index = 0; index < transactionList.size(); index++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tPurchase purchase = transactionList.get(index);\r\n\t\t\t\r\n\t\t\tpurchaseDate = purchase.getPurchaseDate();\r\n\t\t\tmerchantName = purchase.getMerchantName();\r\n\t\t\tmerchantCity = purchase.getMerchantCity();\r\n\t\t\tmerchantState = purchase.getMerchantState();\r\n\t\t\t\r\n\t\t\tdouble amount = purchase.getPurchaseAmount();\r\n\t\t\tpurchaseAmount = Double.toString(amount);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"\\t\" + purchaseDate + \"\\t\\t\" + merchantName + \"\\t\\t\" + merchantCity + \"\\t\\t\" + merchantState + \"\\t\\t$\" + purchaseAmount);\r\n\t\t\t\r\n\t\t}\t// End of for loop\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"@RequestMapping(value = \"/report/listCustomer\", method = RequestMethod.GET)\n public String getDatalistCustomer(Principal principal, Model model)\n throws Exception {\n UserDetails loginedUser = (UserDetails) ((Authentication) principal)\n .getPrincipal();\n LogUtils.getLogger().info(loginedUser);\n model.addAttribute(\"userName\", loginedUser.getUsername());\n\n List<Object[]> customers = customerService.findReportCustomer();\n model.addAttribute(\"customers\", customers);\n return \"ReportsCustomer\";\n }",
"public void showCustomerInvoices()\n\t{\n\t\ttry {\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\tString sql=\"select * from CustomerData order by Customer_Name asc\";\n\t\t\tps=con.prepareStatement(sql);\n\t\t\trs=ps.executeQuery();\n\t\t\ttblCustomer.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\npublic List<Object[]> getCustomerReport() {\n\treturn dao.getCustomerReport();\n}",
"public void PDFClient() throws FileNotFoundException, DocumentException {\n\t\t\n\t\tCustomerBLL customerBLL = new CustomerBLL();\n\t\t\n\t\tDocument document = new Document();\n\t\t\n\t\tString fileName = \"Client-report\" + countClientReports + \".pdf\";\n\t\tcountClientReports++;\n\t\tPdfWriter.getInstance(document, new FileOutputStream(fileName));\n\n\t\tdocument.open();\n\n\t\tParagraph intro = new Paragraph(\"Client Report\");\n\t\tParagraph space = new Paragraph(\" \");\n\t\tPdfPTable table = new PdfPTable(3);\n\n\t\tPdfPCell c1 = new PdfPCell(new Paragraph(\"Id\"));\n\t\tPdfPCell c2 = new PdfPCell(new Paragraph(\"Name\"));\n\t\tPdfPCell c3 = new PdfPCell(new Paragraph(\"Address\"));\n\n\t\ttable.addCell(c1);\n\t\ttable.addCell(c2);\n\t\ttable.addCell(c3);\n\n\t\tfor(Customer c: customerBLL.findAll()) {\n\t\t\tc1 = new PdfPCell(new Paragraph(String.valueOf(c.getId())));\n\t\t\tc2 = new PdfPCell(new Paragraph(c.getName()));\n\t\t\tc3 = new PdfPCell(new Paragraph(c.getAddress()));\n\t\t\t\n\t\t\ttable.addCell(c1);\n\t\t\ttable.addCell(c2);\n\t\t\ttable.addCell(c3);\n\t\t}\n\n\t\tdocument.add(intro);\n\t\tdocument.add(space);\n\t\tdocument.add(space);\n\t\tdocument.add(space);\n\t\tdocument.add(table);\n\n\t\tdocument.close();\n\t}",
"private void printCustomer(PrintStream ps){\n// ps.println(\"ID, FirstName, Last Name, Number of bank account\");\n for(Customer customer: customers){\n ps.println(customer.getId()+ \", \" + customer.getFirstName() + \" \" + customer.getLastName());\n for(String accountNumber: customer.getAccountNumbers()){\n ps.println(\"\\t\" + customer.getAccount(accountNumber));\n }\n }\n }",
"public String GetCustomerByCountry(List<CustomerModel> allCustomers, List<DivisionModel> allDivisions, List<CountryModel> allCountries)\n {\n String report = startEndReport;\n\n for (CountryModel country: allCountries)\n {\n report += \"\\n\" + \"---\" + country.getCountryName() + \"---\" + \"\\n\";\n\n List<Integer> countryDivisionIDs = allDivisions.stream().filter(x ->\n x.getCountryID() == country.getCountryID())\n .map(DivisionModel::getCountryID)\n .collect(Collectors.toList());\n\n List<CustomerModel> countryCustomers = allCustomers.stream().filter(x ->\n countryDivisionIDs.stream()\n .anyMatch(d -> d == x.getCustomerID()))\n .collect(Collectors.toList());\n\n for (CustomerModel customer : countryCustomers)\n {\n report += customer.getCustomerID() + \" \" + customer.getCustomerName() + \"\\n\";\n }\n }\n report += startEndReport;\n return report;\n }",
"static void testPrintCustomerArray(Customer[] customers) {\r\n\t\tfor (Customer c : customers) {\r\n\t\t\tSystem.out.println(c.customerId + \" \"\r\n\t\t\t\t\t\t + c.firstName + \" \"\r\n\t\t\t\t\t\t + c.lastName + \" \"\r\n\t\t\t\t\t\t + c.transactionAmount + \" \"\r\n\t\t\t\t\t\t + c.transactionType + \" \"\r\n\t\t\t\t\t\t + c.balance + \" \"\r\n\t\t\t\t\t\t + c.tellerNo);\r\n\t\t}\r\n\t}",
"private static void generateDeleteCustomer() {\n long accountNo = getRandAccountD();\n writeToFile(String.format(\"%d\\n\", accountNo));\n }",
"public GenerateReport() {\n initComponents();\n displayLogs();\n }",
"public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}",
"private void generateReports() {\r\n\t\tLOGGER.debug(\"Report generation trigerred\");\r\n\t\tgenerateIncomingReport();\r\n\t\tgenerateOutgoingReport();\r\n\t\tgenerateIncomingRankingReport();\r\n\t\tgenerateOutgoingRankingReport();\r\n\t\tLOGGER.debug(\"Report generation completed\");\r\n\t}",
"public void printAllCustomerNames() {\r\n for (Customer customer : customers) {\r\n if (customer != null) {\r\n System.out.format(\"Customer with id[%s] is named %s\\n\", customer.getID(), customer.getName());\r\n }\r\n }\r\n }",
"private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}",
"public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}",
"public Breakdown generateReportByDemo(Date startDate, Date endDate, String[] demoArr) {\n\n //INSTANTIATING VARIABLES\n UserDAO userDAO = new UserDAO();\n AppUsageDAO auDAO = new AppUsageDAO();\n ArrayList<User> userList = auDAO.retrieveUsers(startDate, endDate);\n\n double total = userList.size();\n\n Breakdown result = new Breakdown();\n\n ArrayList<String> schools = Utility.retrieveSchools();\n ArrayList<String> years = Utility.getYears();\n ArrayList<String> genders = Utility.getGenders();\n ArrayList<String> ccas = userDAO.getCCAs();\n Collections.sort(ccas);\n\n ArrayList<String> demo1List = new ArrayList<String>();\n ArrayList<String> demo2List = new ArrayList<String>();\n ArrayList<String> demo3List = new ArrayList<String>();\n ArrayList<String> demo4List = new ArrayList<String>();\n\n String demo1Type = \"\";\n String demo2Type = \"\";\n String demo3Type = \"\";\n String demo4Type = \"\";\n\n int demoCount = demoArr.length;\n if (demoCount > 0) {\n switch (demoArr[0]) {\n case \"gender\":\n demo1List = genders;\n demo1Type = \"gender\";\n break;\n case \"school\":\n demo1List = schools;\n demo1Type = \"school\";\n break;\n case \"year\":\n demo1List = years;\n demo1Type = \"year\";\n break;\n case \"cca\":\n demo1List = ccas;\n demo1Type = \"cca\";\n break;\n }\n }\n if (demoCount > 1) {\n switch (demoArr[1]) {\n case \"gender\":\n demo2List = genders;\n demo2Type = \"gender\";\n break;\n case \"school\":\n demo2List = schools;\n demo2Type = \"school\";\n break;\n case \"year\":\n demo2List = years;\n demo2Type = \"year\";\n break;\n case \"cca\":\n demo2List = ccas;\n demo2Type = \"cca\";\n break;\n }\n }\n if (demoCount > 2) {\n switch (demoArr[2]) {\n case \"gender\":\n demo3List = genders;\n demo3Type = \"gender\";\n break;\n case \"school\":\n demo3List = schools;\n demo3Type = \"school\";\n break;\n case \"year\":\n demo3List = years;\n demo3Type = \"year\";\n break;\n case \"cca\":\n demo3List = ccas;\n demo3Type = \"cca\";\n break;\n }\n }\n if (demoCount > 3) {\n switch (demoArr[3]) {\n case \"gender\":\n demo4List = genders;\n demo4Type = \"gender\";\n break;\n case \"school\":\n demo4List = schools;\n demo4Type = \"school\";\n break;\n case \"year\":\n demo4List = years;\n demo4Type = \"year\";\n break;\n case \"cca\":\n demo4List = ccas;\n demo4Type = \"cca\";\n break;\n }\n }\n\n //For each demo1\n for (String demo1 : demo1List) {\n HashMap<String, Breakdown> demo1Map = new HashMap<String, Breakdown>();\n ArrayList<User> demo1UserList = filterDemo(demo1, demo1Type, userList);\n demo1Map.put(demo1Type, new Breakdown(demo1));\n demo1Map.put(\"count\", new Breakdown(\"\" + demo1UserList.size()));\n Breakdown demo1bd = new Breakdown();\n demo1Map.put(\"breakdown\", demo1bd);\n\n result.addInList(demo1Map);\n\n //For each demo2\n for (String demo2 : demo2List) {\n HashMap<String, Breakdown> demo2Map = new HashMap<String, Breakdown>();\n ArrayList<User> demo2UserList = filterDemo(demo2, demo2Type, demo1UserList);\n demo2Map.put(demo2Type, new Breakdown(demo2));\n demo2Map.put(\"count\", new Breakdown(\"\" + demo2UserList.size()));\n Breakdown demo2bd = new Breakdown();\n demo2Map.put(\"breakdown\", demo2bd);\n\n demo1bd.addInList(demo2Map);\n\n //For each demo3\n for (String demo3 : demo3List) {\n HashMap<String, Breakdown> demo3Map = new HashMap<String, Breakdown>();\n ArrayList<User> demo3UserList = filterDemo(demo3, demo3Type, demo2UserList);\n demo3Map.put(demo3Type, new Breakdown(demo3));\n demo3Map.put(\"count\", new Breakdown(\"\" + demo3UserList.size()));\n Breakdown demo3bd = new Breakdown();\n demo3Map.put(\"breakdown\", demo3bd);\n\n demo2bd.addInList(demo3Map);\n\n//\t\t\t\t\t\n //For each demo4\n for (String demo4 : demo4List) {\n HashMap<String, Breakdown> demo4Map = new HashMap<String, Breakdown>();\n ArrayList<User> demo4UserList = filterDemo(demo4, demo4Type, demo3UserList);\n demo4Map.put(demo4Type, new Breakdown(demo4));\n demo4Map.put(\"count\", new Breakdown(\"\" + demo4UserList.size()));\n\n demo3bd.addInList(demo4Map);\n\n if (demoCount == 4) {\n Breakdown demo4report = generateReport(startDate, endDate, demo4UserList, total);\n demo4Map.put(\"breakdown\", demo4report);\n }\n }\n\n if (demoCount == 3) {\n //generate report if last demo\n Breakdown demo3report = generateReport(startDate, endDate, demo3UserList, total);\n demo3Map.put(\"breakdown\", demo3report);\n }\n\n }\n\n if (demoCount == 2) {\n //generate report if last demo\n Breakdown demo2report = generateReport(startDate, endDate, demo2UserList, total);\n demo2Map.put(\"breakdown\", demo2report);\n\n }\n }\n\n if (demoCount == 1) {\n //generate report if last demo\n Breakdown demo1report = generateReport(startDate, endDate, demo1UserList, total);\n demo1Map.put(\"breakdown\", demo1report);\n }\n }\n\n //CALCULATE PERCENTAGE\n if (demoCount > 0) {\n Breakdown bd1 = result;\n ArrayList<HashMap<String, Breakdown>> list1 = bd1.getBreakdown();\n\n generatePercentage(bd1, total);\n\n }\n\n if (demoCount > 1) {\n ArrayList<HashMap<String, Breakdown>> secondTier = result.getBreakdown();\n for (HashMap<String, Breakdown> secondMap : secondTier) {\n generatePercentage(secondMap.get(\"breakdown\"), total);\n }\n\n }\n if (demoCount > 2) {\n ArrayList<HashMap<String, Breakdown>> secondTier = result.getBreakdown();\n for (HashMap<String, Breakdown> secondMap : secondTier) {\n ArrayList<HashMap<String, Breakdown>> thirdTier = secondMap.get(\"breakdown\").getBreakdown();\n for (HashMap<String, Breakdown> thirdMap : thirdTier) {\n generatePercentage(thirdMap.get(\"breakdown\"), total);\n\n }\n\n }\n }\n if (demoCount > 3) {\n ArrayList<HashMap<String, Breakdown>> secondTier = result.getBreakdown();\n\n for (HashMap<String, Breakdown> secondMap : secondTier) {\n ArrayList<HashMap<String, Breakdown>> thirdTier = secondMap.get(\"breakdown\").getBreakdown();\n for (HashMap<String, Breakdown> thirdMap : thirdTier) {\n ArrayList<HashMap<String, Breakdown>> fourthTier = thirdMap.get(\"breakdown\").getBreakdown();\n for (HashMap<String, Breakdown> fourthMap : fourthTier) {\n generatePercentage(fourthMap.get(\"breakdown\"), total);\n }\n }\n\n }\n }\n\n return result;\n }",
"public Map<OverdueInvoiceSummaryImpl, String> generateEmailByCustomer(Map<Long, List<IOverdueInvoice>> mapInvoices)\n\t{\n\t\t\n\t\tfor (Iterator<Map.Entry<Long, List<IOverdueInvoice>>> iter = mapInvoices.entrySet().iterator(); iter.hasNext();)\n\t\t{\n\t\t\tMap.Entry<Long, List<IOverdueInvoice>> entry = iter.next();\n\t\t\tList<IOverdueInvoice> overdueInvoices = entry.getValue();\n\t\t\tOverdueInvoiceSummaryImpl invoiceSummary = new OverdueInvoiceSummaryImpl();\n\t\t\tDouble totalInvoiceAmount = 0.0;\n\t\t\tfor (IOverdueInvoice overdueInvoice : overdueInvoices)\n\t\t\t{\n\t\t\t\tif (StringUtils.isNotEmpty(overdueInvoice.getBillToName()))\n\t\t\t\t{\n\t\t\t\t\tinvoiceSummary.setBillToName(overdueInvoice.getBillToName());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (StringUtils.isNotEmpty(overdueInvoice.getBillToAddress()))\n\t\t\t\t{\n\t\t\t\tinvoiceSummary.setBillToAddress(overdueInvoice.getBillToAddress());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (StringUtils.isNotEmpty(overdueInvoice.getAdminName()))\n\t\t\t\t{\n\t\t\t\t\tinvoiceSummary.setAdminName(overdueInvoice.getAdminName());\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif (StringUtils.isNotEmpty(overdueInvoice.getAdminAddress()))\n\t\t\t\t{\n\t\t\t\t\tinvoiceSummary.setAdminAddress(overdueInvoice.getAdminAddress());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif (StringUtils.isNotEmpty(overdueInvoice.getCustomerName()))\n\t\t\t\t{\n\t\t\t\t\tinvoiceSummary.setCustomerName(overdueInvoice.getCustomerName());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tinvoiceSummary.setCustomerNumber(overdueInvoice.getCustomerNumber());\t\t\t\t\t\n\t\t\t\t\n\t\t\t\ttotalInvoiceAmount += overdueInvoice.getOutstandingAmount();\n\n\t\t\t}\n\n\t\t\tboolean checked = false;\n\t\t\tif((StringUtils.isNotEmpty(invoiceSummary.getAdminName())||StringUtils.isNotEmpty(invoiceSummary.getBillToName())) \n\t\t\t\t\t&& (StringUtils.isNotEmpty(invoiceSummary.getAdminAddress())||StringUtils.isNotEmpty(invoiceSummary.getBillToAddress())) \n\t\t\t\t\t&& StringUtils.isNotEmpty(invoiceSummary.getCustomerName()) \n\t\t\t\t\t&& invoiceSummary.getCustomerNumber()!=null)\n\t\t\t{\n\t\t\t\tchecked = true;\n\t\t\t}\n\t\t\tinvoiceSummary.setTotalInvoiceAmount(totalInvoiceAmount);\n\n\t\t\tif(checked)\n\t\t\t{\t\n\t\t\t\tString strEmailBody = this.generateEmail(overdueInvoices, invoiceSummary, \"email-text.ftl\");\n\t\t\t\tmapEmail.put(invoiceSummary, strEmailBody);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmapNondelivery.put(invoiceSummary, null);\n\t\t\t}\t\n\n\t\t}\n\t\treturn mapEmail;\n\t}",
"public void setCustomersName(String customersName)\r\n {\r\n this.customersName = customersName;\r\n }",
"public static void customerGen() {\n BufferedReader fname, lname;\r\n ArrayList<String> firstN = new ArrayList(),\r\n lastN = new ArrayList();\r\n int id = (int)Math.pow(10,IDDIGIT - 1);\r\n try {\r\n fname = new BufferedReader(new FileReader(\"firstName.txt\"));\r\n lname = new BufferedReader(new FileReader(\"lastName.txt\"));\r\n String line;\r\n while((line = fname.readLine()) != null) {firstN.add(line);}\r\n while((line = lname.readLine()) != null) {lastN.add(line);}\r\n fname.close();\r\n lname.close();\r\n } catch(Exception e){e.printStackTrace();}\r\n for(int j = 0; j < COUNT; j++){\r\n id ++;\r\n String n = nameGen(firstN,lastN);\r\n long i = phoneGen();\r\n System.out.printf(\"insert into customer values(%d,%20s,%10d);\",id,n,i);\r\n }\r\n }",
"public abstract void generateReport(Date from, Date to, String objectCode);",
"public void writeCustomerDetails (String firstName, String lastName, int mobile, String email, String deliveryAddressNumber, String deliveryAddress)\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\tPrintWriter out = new PrintWriter(new FileWriter(\"customersWhoPurchased.txt\", true));\r\n\t\t\tout.println(\"First Name: \" +firstName);\t\t\t\r\n\t\t\tout.println(\"Last Name: \" +lastName);\r\n\t\t\tout.println(\"Mobile number: \" +mobile);\r\n\t\t\tout.println(\"Email: \" +email);\r\n\t\t\tout.println(\"Devliery address: \" +deliveryAddressNumber+ \" \" +deliveryAddress);\r\n\t\t\tout.println(\" \");\r\n\t\t\tout.close();\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error: Cannot open file for writing\");\r\n\t\t}\r\n\t\tcatch(IOException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error: Cannot write to file\");\r\n\t\t}\r\n\t}",
"Document generateSpendingCategoryReport(String username, Date start,\n Date end);",
"public void setCustomer(String customer) {\n this.customer = customer;\n }",
"boolean generateReport();",
"public void listAllCustomers() {\n List<Customer> list = model.findAllCustomers();\n if(list != null){\n if(list.isEmpty())\n view.showMessage(not_found_error);\n else\n view.showTable(list);\n }\n else\n view.showMessage(retrieving_data_error); \n }",
"public void generateReport() throws InvalidEmailException, SQLException {\n\t\tSystem.out.println(\"=====GENERATE REPORT=====\");\n\t\tSystem.out.println(\"1.Fetch patient details by email:\");\n\t\tSystem.out.println(\"2.Fetch patient details by phone:\");\n\t\tSystem.out.println(\"Enter your choice:\");\n\t\tint choice = Integer.parseInt(sc.nextLine());\n\t\t// DatabaseConn viewDetails = new DatabaseConn();\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tdo {\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Enter Email\");\n\t\t\t\tString email = sc.nextLine();\n\n\t\t\t\tSystem.out.println(\"Enter testDate:\");\n\t\t\t\tString testDate = sc.nextLine();\n\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println(\"Enter phone no:\");\n\t\t\t\tString phone = sc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter testDate:\");\n\t\t\t\ttestDate = sc.nextLine();\n\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t} while (choice != 3);\n\n\t}",
"private void generateIncomingReport() {\r\n\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\tstringBuilder.append(\"\\n----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Incoming Daily Amount \\n\")\r\n\t\t\t\t.append(\"----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Date | Trade Amount \\n\")\r\n\t\t\t\t.append(\"-----------------+----------------------\\n\");\r\n\t\tallIncomings.entrySet().forEach(\r\n\t\t\t\tkey -> stringBuilder.append(key.getKey() + \" | \" + key.getValue().get() + \"\\n\"));\r\n\t\tdataWriter.write(stringBuilder.toString());\r\n\t}",
"public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}",
"@Test\r\n\tpublic void retrieveAllCustomerTest() {\n\t\tassertNotNull(\"Test if there is valid Customer arraylist to retrieve item\", CustomerList);\r\n\t\t\r\n\t\t//test if the list of Customers retrieved from the SourceCentre is empty - boundary\r\n\t\tString allCustomer= CustomerMain.retrieveAllCustomer(CustomerList);\r\n\t\tString testOutput = \"\";\r\n\t\tassertEquals(\"Check that ViewAllCustomerlist\", testOutput, allCustomer);\r\n\t\t\r\n\t\t//Given an empty list, after adding 3 items, test if the size of the list is 3 - normal\r\n\t\tCustomerMain.addCustomer(CustomerList, cust1);\r\n\t\tCustomerMain.addCustomer(CustomerList, cust2);\r\n\t\tCustomerMain.addCustomer(CustomerList, cust3);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 3\", 3, CustomerList.size());\r\n\t\t\r\n\t\t//test if the expected output string same as the list of Customers retrieved from the SourceCentre\t\r\n\t\tallCustomer= CustomerMain.retrieveAllCustomer(CustomerList);\r\n\t\ttestOutput = String.format(\"%-10s %-30s %-10s %-10s\\n\",1, \"Dian\", \"223 Woodlands Street 11\", \"dian@gmail.com\");\r\n\t\ttestOutput += String.format(\"%-10s %-30s %-10s %-10s\\n\",2,\"Li Ying\", \"550 Bedok View\", \"LiYing@hotmail.com\");\r\n\t\ttestOutput += String.format(\"%-10s %-30s %-10s %-10s\\n\",3, \"Pravin\", \"123 Jurong West\", \"pravin@yahoo.com\");\r\n\t\t\t\t\r\n\t\tassertEquals(\"Test that ViewAllCustomerlist\", testOutput, allCustomer);\r\n\t\t\r\n\t}",
"public static ArrayList<CustomerInfoBean> getCutomers_onCash() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name ,sld.payement_option, a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN sold_to sld ON cs.customer_id=sld.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+\r\n\r\n\t\t\t\t\t\" WHERE sld.payement_option=0\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public void listCustomers() {\n\t\tSystem.out.println(\"\\nCustomers llegits desde la base de dades\");\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(System.out::println);\n\n\t}",
"public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}",
"public static void setCustomerData()\n\t{\n\t\tString sURL = PropertyManager.getInstance().getProperty(\"REST_PATH\") + \"measurements?state=WAIT_FOR_CONFIG\";\n\t\tmCollect = new MeasurementCollection();\n\t\tmCollect.setList(sURL);\n\n\t\tfor (int i = 0; i < mCollect.getList().size(); i++)\n\t\t{\n\t\t\tmObject = mCollect.getList().get(i);\n\t\t\tString mID = mObject.getId();\n\t\t\taData = new AddressData(mID);\n\t\t\tif (mObject.getPriority().equals(\"HIGH\"))\n\t\t\t{\n\t\t\t\tcustomerList.add(\"+ \" + aData.guiAddressData());\n\t\t\t}\n\t\t\telse if (mObject.getPriority().equals(\"MEDIUM\"))\n\t\t\t{\n\t\t\t\tcustomerList.add(\"- \" + aData.guiAddressData());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcustomerList.add(\"o \" + aData.guiAddressData());\n\t\t\t}\n\n\t\t}\n\t\tcustomerText.setText(aData.getCustomerData());\n\t\tmeasureText.setText(mObject.getMeasurementData());\n\n\t}",
"public void generateReport()\r\n {\r\n ProfilerGUI reportGUI = new ProfilerGUI(map,mapCountTracker);\r\n //reportGUI.\r\n }",
"List exportToXLSForCustomerDetails(String customerName,String mobileNumber, String bankId, String branchId,\n\t\t\tString countryId, String bankGroupId,String fromDate,String toDate, Map<String, Object> model) throws EOTException;",
"public static ArrayList<CustomerInfoBean> getCutomers_Accepted() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id WHERE e.status=1 or e.status=6;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public void runThroughCustomers(ArrayList<Customer> customers){\n\t\tint cSize = customers.size();\n\t\tint i;\n\t\tOrder tempOrder;\n\t\tCustomer tempCustomer;\n\t\tfor(i = 0; i < cSize; i++){\n\t\t\tif(checkStock()){\n\t\t\t\ttempCustomer = customers.get(i);\n\t\t\t\t//printInventory();\n\t\t\t\ttempOrder = tempCustomer.placeOrder(inventory);\n\t\t\t\t//System.out.println(\"Day order: \" + i);\n\t\t\t\t//tempOrder.printOrder();\n\t\t\t\thandleOrder(tempOrder);\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t//System.out.println();\n\t\t\t\tnoInventoryClosure = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"public void generateReport(ReportGenerationData data)throws ChangeApplicationException;",
"@RequestMapping(value = \"/report/xls\")\r\n\tpublic ModelAndView generateXLSReport() {\r\n\r\n\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\r\n\r\n\t\tList<Person> personList = personService.getAll();\r\n\r\n\t\tJRDataSource person_list = new JRBeanCollectionDataSource(personList);\r\n\r\n\t\tparameterMap.put(\"person_list\", person_list);\r\n\r\n\t\treturn new ModelAndView(\"personReportList_xls\", parameterMap);\r\n\r\n\t}",
"public CustomerService() {\n\n Customer c1 = new Customer(\"Brian May\", \"45 Dalcassian\", \"brian@gmail.com\", 123);\n Customer c2 = new Customer(\"Roger Taylor\", \"40 Connaught Street\", \"roger@gmail.com\", 123);\n Customer c3 = new Customer(\"John Deacon\", \"2 Santry Avenue\", \"john@gmail.com\", 123);\n Customer c4 = new Customer(\"Paul McCartney\", \"5 Melville Cove\", \"paul@gmail.com\", 123);\n\n c1.setIdentifier(1);\n c2.setIdentifier(2);\n c3.setIdentifier(3);\n c4.setIdentifier(4);\n customers.add(c1);\n customers.add(c2);\n customers.add(c3);\n customers.add(c4);\n\n c1.addAccount(new Account(101));\n c2.addAccount(new Account(102));\n c2.addAccount(new Account(102));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c4.addAccount(new Account(104));\n\n }",
"static void serveFirstcustomer(Taxes taxes) {\n String input1[] = DummyData.getInput1();\n Driver customer1 = new Driver();\n //Computing output recipt\n String outputRecipt1[] = customer1.drive(input1, taxes);\n //Printing this output recipt;\n for (String entry : outputRecipt1) {\n System.out.println(entry);\n }\n }",
"private void generateOutgoingReport() {\r\n\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\tstringBuilder.append(\"\\n----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Outgoing Daily Amount \\n\")\r\n\t\t\t\t.append(\"----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Date | Trade Amount \\n\")\r\n\t\t\t\t.append(\"-----------------+----------------------\\n\");\r\n\t\tallOutgoings.entrySet().forEach(\r\n\t\t\t\tkey -> stringBuilder.append(key.getKey() + \" | \" + key.getValue().get() + \"\\n\"));\r\n\t\tdataWriter.write(stringBuilder.toString());\r\n\t}",
"public String report() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\t String[] headers = { \"Sr no\", \"Code \", \"Name\", \"Address\",\r\n\t\t\t\t\t\"Contact No\", \"E-mail\", \"City\", \"State\", \"Pin Code\" };\r\n\t\tmodel.report(vendorMaster, request,response,headers);\r\n\t\tmodel.terminate();\r\n\t\treturn null;\r\n\r\n\t}",
"public static void generatereports(){\r\n\t\t\r\n\t\tAccount a = (Account) Cache.get(\"authUser\");\r\n\t\t\r\n\t\tDealer d = Dealer.find(\"byDealershipId\", a.uniquenumber).first();\r\n\t\tif(a!= null)\r\n\t\t{\r\n\t\t\t/*\r\n\t\t\t * Get the list of orders placed for this dealer\r\n\t\t\t *Classify it as Total Confirmed \r\n\t\t\t *Total Delivered and so on \r\n\t\t\t *\r\n\t\t\t */\r\n\t\t\tList<OrderCylinder> totalorders = OrderCylinder.find(\"byDealerId\",d).fetch();\r\n\t\t\t//List<OrderCylinder> confirmorders = OrderCylinder.f\r\n\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\tDealerControllerMap.pleaselogin();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"void createReport() {\n\n // report about purple flowers\n println(\"\\nPurple flower distribution: \");\n for (int i = 0; i < 6; i++) {\n println(i + (i==5?\"+\":\"\") + \": \" + numPurpleFlowers[i]);\n }\n // report about missing treasures\n println(\"Missing treasure count: \" + missingTreasureCount);\n\n println(\"\\nGenerated \" + caveGenCount + \" sublevels.\");\n println(\"Total run time: \" + (System.currentTimeMillis()-startTime)/1000.0 + \"s\");\n\n out.close();\n }",
"@Test\n\tpublic void totalCustomers()\n\t{\n\t\tassertTrue(controller.getReport().getTotalCustomers() == 3);\n\t}",
"@Override\n public String report() {\n String license = \"License Plate No.: \" + getLicensePlate();\n String destination = \"Destination: \" + getZipDest();\n String weight = \"Weight Load: \" + getCurrentWeight() + \"/\" + getMaxWeight();\n String profit = String.format(\"Net Profit: ($%.2f)\", getProfit());\n String labels = \"=====Shipping Labels=====\\n\";\n for (int i = 0; i < getPackages().size(); i++) {\n labels += getPackages().get(i).shippingLabel();\n }\n labels = labels.concat(\"==============================\");\n String report = \"======== Cargo Plane Report =======\\n\"\n + license + \"\\n\" + destination + \"\\n\" + weight + \"\\n\" + profit + \"\\n\" + labels;\n return report;\n\n }",
"public void userAppointmentsReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getUserAppointments();\n System.out.println(reportsList.toArray().length);\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Added By User Report:\" + \"\\n\");\n\n reportsList.forEach(r -> sb.append(\"\\n\" + r.getUserName().toUpperCase() + \"\\n\" +\n r.getAppointmentCount() + \" appointments scheduled for \" + r.getCustomerCount() + \" customers\\n\"));\n reportLabel.setText(sb.toString());\n }",
"@Override\n\tpublic Iterable<Customer> displayCust() {\n\t\treturn customerRepository.findAll();\n\t}",
"public void CustomerSent(Customers customers) {\n customerID = customers.getCustomerId();\n nameField.setText(customers.getCustomerName());\n addressField.setText(customers.getAddress());\n postalField.setText(customers.getPostalCode());\n phoneField.setText(customers.getPhone());\n customerIdText.setText(String.valueOf(customers.getCustomerId()));\n //LambdaDiv Expression used to return a Division.\n LambdaDiv div = (divId)-> {\n for(Divisions division : DivisionsImp.getAllDivisions()){\n if(division.getDivisionId() == divId){\n return division;\n }\n }\n return null;\n };\n //Instance of LambdaDiv used to create a Division object tempDiv.\n Divisions tempDiv = div.getDivision(customers.getDivisionId());\n //LambdaCountry Expression used to return a Country.\n LambdaCountry country = (countryId) ->{\n for(Countries countries : CountriesImp.getAllCountries()){\n if(countries.getCountryId()==countryId){\n return countries;\n }\n }\n return null;\n };\n if (tempDiv != null){\n ObservableList<Divisions> filteredDivisions = FXCollections.observableArrayList();\n //Instance of LambdaCountry Expression used to create a Country object tempCountry\n Countries tempCountry = country.getCountry(tempDiv.getCountryId());\n if(tempCountry != null){\n //Country and Division ComboBoxes are set.\n countryCombo.setValue(tempCountry);\n divisionCombo.setValue(tempDiv);\n for(Divisions division : DivisionsImp.getAllDivisions()){\n if(division.getCountryId() == tempCountry.getCountryId()){\n filteredDivisions.add(division);\n }\n }\n divisionCombo.setItems(filteredDivisions);\n }\n }\n }",
"public static ArrayList<CustomerInfoBean> getCutomers_suggested() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN sold_to sld ON cs.customer_id=sld.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE e.status=3\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"@GetMapping(value = \"/showCustomers\")\n\tpublic String getAllCustomers(Model model) {\n\t\t// AllCustomers model attribute iterated over to display Customers in table on\n\t\t// JSP page\n\t\tmodel.addAttribute(\"AllCustomers\", customerService.getCustomers());\n\t\t// Returns showCustomers.jsp (see webapp/jsp folder)\n\t\treturn \"showCustomers\";\n\t}",
"public static ArrayList<CustomerInfoBean> getCutomers_notinterested() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status, cs.customer_family_size FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id join city c on cs.customer_city=c.city_id WHERE cs.status=3 GROUP BY cs.customer_id\\n\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"@GetMapping(\"/allCustomers\")\n public List<Customer> getAllCusData() {\n return customerData.showList();\n }",
"@SuppressWarnings(\"rawtypes\")\n public MapList getCustomerCRs(Context context, String[] args) throws Exception {\n\n Pattern relationship_pattern = new Pattern(TigerConstants.RELATIONSHIP_PSS_SUBPROGRAMPROJECT);\n relationship_pattern.addPattern(TigerConstants.RELATIONSHIP_PSS_CONNECTEDPCMDATA);\n\n Pattern type_pattern = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n type_pattern.addPattern(TigerConstants.TYPE_PSS_PROGRAMPROJECT);\n\n Pattern finalType = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n\n try {\n\n StringList slselectObjStmts = getSLCTableSelectables(context);\n\n Map programMap = (Map) JPO.unpackArgs(args);\n String strProgProjId = (String) programMap.get(\"objectId\");\n // TIGTK-16801 : 30-08-2018 : START\n boolean bAdminOrPMCMEditAllow = isAdminOrPMCMofRelatedPP(context, strProgProjId);\n StringBuffer sbObjectWhere = new StringBuffer();\n sbObjectWhere.append(\"(type==\\\"\");\n sbObjectWhere.append(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n sbObjectWhere.append(\"\\\"&&attribute[\");\n sbObjectWhere.append(TigerConstants.ATTRIBUTE_PSS_CRORIGINTYPE);\n sbObjectWhere.append(\"] == \");\n sbObjectWhere.append(\"\\\"\");\n sbObjectWhere.append(\"Customer\");\n sbObjectWhere.append(\"\\\")\");\n // TIGTK-16801 : 30-08-2018 : END\n\n DomainObject domainObj = DomainObject.newInstance(context, strProgProjId);\n\n MapList mapList = domainObj.getRelatedObjects(context, relationship_pattern.getPattern(), // relationship pattern\n type_pattern.getPattern(), // object pattern\n slselectObjStmts, // object selects\n null, // relationship selects\n false, // to direction\n true, // from direction\n (short) 0, // recursion level\n sbObjectWhere.toString(), // object where clause\n null, (short) 0, false, // checkHidden\n true, // preventDuplicates\n (short) 1000, // pageSize\n finalType, // Postpattern\n null, null, null);\n // TIGTK_3961:Sort CR data according to CR state :23/1/2017:Rutuja Ekatpure:Start\n if (mapList.size() > 1) {\n // return sortCRListByState(context, mapList);\n // PCM2.0 Spr4:TIGTK-6894:19/9/2017:START\n MapList mlReturn = sortCRListByState(context, mapList);\n\n Iterator<Map<String, String>> itrCR = mlReturn.iterator();\n while (itrCR.hasNext()) {\n Map tempMap = itrCR.next();\n String strCRId = (String) tempMap.get(DomainConstants.SELECT_ID);\n MapList mlIA = getImpactAnalysis(context, strCRId);\n\n String strIAId = \"\";\n if (!mlIA.isEmpty()) {\n Map mpIA = (Map) mlIA.get(0);\n strIAId = (String) mpIA.get(DomainConstants.SELECT_ID);\n }\n tempMap.put(\"LatestRevIAObjectId\", strIAId);\n // TIGTK-16801 : 30-08-2018 : START\n tempMap.put(\"bAdminOrPMCMEditAllow\", bAdminOrPMCMEditAllow);\n // TIGTK-16801 : 30-08-2018 : END\n }\n return mlReturn;\n // PCM2.0 Spr4:TIGTK-6894:19/9/2017:END\n } else {\n return mapList;\n }\n // TIGTK_3961:Sort CR data according to CR state :23/1/2017:Rutuja Ekatpure:End\n } catch (Exception ex) {\n logger.error(\"Error in getCustomerCRs: \", ex);\n throw ex;\n }\n }",
"@RequestMapping(\"/generateReport\")\n\tpublic String generateReportforLoc(){\n\t\tList<Object[]> data=service.getLocWiseCount();\n\t\tString path=context.getRealPath(\"/\");\n\t\tlocUtil.generatePieChart(path, data);\n\t\tlocUtil.generateBarChart(path, data);\n\t\treturn \"LocReport\";\n\t}",
"public void acctReport (COPSPdpOSReqStateMan man, List<COPSClientSI> reportSIs);",
"private static void printStatistics(\r\n Map<String, List<String>> sessionsFromCustomer,\r\n Map<String, List<View>> viewsFromSessions,\r\n Map<String, List<Buy>> buysFromSessions\r\n /* add parameters as needed */\r\n )\r\n {\r\n\r\n printAverageViewsWithoutPurchase(sessionsFromCustomer,\r\n viewsFromSessions,\r\n buysFromSessions);\r\n\r\n printSessionPriceDifference(sessionsFromCustomer,\r\n viewsFromSessions,\r\n buysFromSessions);\r\n printCustomerItemViewsForPurchase(sessionsFromCustomer,\r\n viewsFromSessions,\r\n buysFromSessions);\r\n\r\n /* This is commented out as it will not work until you read\r\n in your data to appropriate data structures, but is included\r\n to help guide your work - it is an example of printing the\r\n data once propogated \r\n printOutExample(sessionsFromCustomer, viewsFromSession, buysFromSession);\r\n */\r\n }",
"com.google.cloud.channel.v1.Customer getCustomers(int index);",
"@Test\n\tpublic void generateOrdersReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Orders Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}",
"@Override\n public byte[] getFile(ReportParam param) throws Exception {\n String FILE_PATH = controllerProperties.getPdfPath() + \"HIRATopCustomerSummary.jasper\";\n Map<String, Object> parameters = new HashMap<String, Object>();\n parameters.put(\"sReportCode\", \"\");\n parameters.put(\"sDateDesc\", param.getsDate1() + \" - \" + param.getsDate2());\n parameters.put(\"sRCDesc\", param.getsRC1() + \" - \" + param.getsRC2());\n parameters.put(\"sArticleDesc\", param.getsArticle1() + \" - \" + param.getsArticle2());\n parameters.put(\"sCustomerDesc\", param.getsCustomer1() + \" - \" + param.getsCustomer2());\n parameters.put(\"sRCCustomerBaseDesc\", param.getsRCCustomerBase1() + \" - \" + param.getsRCCustomerBase2());\n parameters.put(\"sUserPrint\", param.getUserPrint());\n\n return reportCreator.reportCreation(FILE_PATH, parameters, callSP(param));\n }",
"public String exportPromotionCustomer() throws Exception {\n\t\tactionStartTime = new Date();\n\t\tif (promotionId == null || promotionId <= 0) {\n\t\t\tresult.put(ERROR, false);\n\t\t\tresult.put(\"hasData\", false);\n\t\t\treturn JSON;\n\t\t}\n\t\tInputStream inputStream = null;\n\t\ttry {\n\t\t\tresult.put(ERROR, true);\n\t\t\tif (staff == null || staff.getShop() == null || staff.getStaffType() == null) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_PERMISSION, \"\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\n\t\t\tString reportToken = retrieveReportToken(reportCode);\n\t\t\tif (vnm.web.utils.StringUtil.isNullOrEmpty(reportToken)) {\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"report.invalid.token\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tPromotionShopMapFilter filter = new PromotionShopMapFilter();\n\t\t\tfilter.setPromotionId(promotionId);\n\t\t\tfilter.setAddress(address);\n\t\t\tfilter.setProgramId(promotionId);\n\t\t\tfilter.setStatus(ActiveType.RUNNING);\n\t\t\tfilter.setParentShopId(currentUser.getShopRoot().getShopId());\n\t\t\tfilter.setCusCode(code);\n\t\t\tfilter.setCusName(name);\n\t\t\tList<PromotionShopMapVO> lst = promotionProgramMgr.getListPromotionShopMapVO3(filter);\n\t\t\tif (lst == null || lst.size() == 0) {\n\t\t\t\tresult.put(ERROR, false);\n\t\t\t\tresult.put(\"hasData\", false);\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tString folder = ServletActionContext.getServletContext().getRealPath(\"/\") + Configuration.getExcelTemplatePathCatalog();\n\t\t\tStringBuilder sb = new StringBuilder(folder).append(ConstantManager.TEMPLATE_PROMOTION_CUSTOMER_MAP_EXPORT).append(FileExtension.XLS.getValue());\n\t\t\tString templateFileName = sb.toString();\n\t\t\ttemplateFileName = templateFileName.replace('/', File.separatorChar);\n\n\t\t\tsb = new StringBuilder(ConstantManager.TEMPLATE_PROMOTION_CUSTOMER_MAP_EXPORT).append(DateUtil.toDateString(DateUtil.now(), DateUtil.DATE_FORMAT_EXCEL_FILE)).append(FileExtension.XLS.getValue());\n\t\t\tString outputName = sb.toString();\n\t\t\t//\t\t\tsb = null;\n\t\t\tString exportFileName = Configuration.getStoreRealPath() + outputName;\n\n\t\t\tMap<String, Object> beans = new HashMap<String, Object>();\n\n\t\t\tbeans.put(\"hasData\", 1);\n\t\t\tbeans.put(\"lstShop\", lst);\n\n\t\t\tinputStream = new BufferedInputStream(new FileInputStream(templateFileName));\n\t\t\tXLSTransformer transformer = new XLSTransformer();\n\t\t\tWorkbook resultWorkbook = transformer.transformXLS(inputStream, beans);\n\t\t\tinputStream.close();\n\t\t\tOutputStream os = new BufferedOutputStream(new FileOutputStream(exportFileName));\n\t\t\tresultWorkbook.write(os);\n\t\t\tos.flush();\n\t\t\tos.close();\n\t\t\tresult.put(ERROR, false);\n\t\t\tString outputPath = Configuration.getExportExcelPath() + outputName;\n\t\t\tresult.put(REPORT_PATH, outputPath);\n\t\t\tMemcachedUtils.putValueToMemcached(reportToken, outputPath, retrieveReportMemcachedTimeout());\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.exportPromotionCustomer\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t} finally{\n\t\t\tif ( inputStream != null ) { \n\t\t\t\ttry { \n\t\t\t\t\tinputStream.close();\t \n\t\t\t\t} \n\t\t\t\tcatch (Exception ignore) {\n\t\t\t\t\tLogUtility.logError(ignore, ignore.getMessage());\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t\treturn JSON;\n\t}",
"public void readCustomerDetails()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tScanner reader = new Scanner(new FileReader(\"customersWhoPurchased.txt\"));\r\n\t\t\twhile (reader.hasNext())\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(reader.nextLine());\r\n\t\t\t}\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"FileNotFoundException\");\r\n\t\t}\r\n\t}",
"public void clerkGenerateReport(int report, String branchLocation, String branchCity) throws SQLException {\n\t\ttry {\n\n\t\t\tStatement stmt = connection.createStatement();\n\t\t\tString executeStr = \"SELECT * FROM rentals, reservations, vehicles, returns WHERE \";\n\t\t\tswitch (report) {\n\t\t\t\tcase 1:\n\t\t\t\t\texecuteStr = executeStr + \"fromDate = \" + java.time.LocalDateTime.now();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\texecuteStr = executeStr + \"fromDate = \" + java.time.LocalDateTime.now() + \" AND location = \" + branchLocation + \" AND city = \" + branchCity;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\texecuteStr = executeStr + \"date = \" + java.time.LocalDateTime.now();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\texecuteStr = executeStr + \"date = \" + java.time.LocalDateTime.now() + \" AND location = \" + branchLocation + \" AND city = \" + branchCity;\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\texecuteStr += \"GROUP BY location,vtname\";\n\t\t\tResultSet rs = stmt.executeQuery(executeStr);\n\t\t\t//TODO do something with this rs?\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@RequestMapping(value = \"customer/download\" + SPRING_EXT, method = RequestMethod.POST)\r\n\tpublic void customer_download(\r\n\t\t\tHttpServletRequest req,\r\n\t\t\tHttpServletResponse response\r\n\t\t\t) \r\n\t{\r\n\t\t\r\n\t\tlog.debug(\"| customer_download | Entry\");\r\n\t\t\r\n\t\t/*Configuration*/\r\n\t\tString current_datetime = SDF_YYYY_MM_DD.format(new Date());\r\n\t\tString filename = \"STUDENTLIST_\"+current_datetime+\".csv\";\r\n\t\tString[] header = customerService.setUpCSVHeader();\r\n\t\tfinal CellProcessor[] whiterProcessors = customerService.setUpWriterProcessors(header);\r\n\t\t/*Configuration*/\r\n\t\t\r\n\t\t/*Data*/\r\n\t\tCustomerFilterObj filter = new CustomerFilterObj(req.getParameter(\"identificationNum\"), \r\n\t\t\t\treq.getParameter(\"name\"), req.getParameter(\"contactNum\"), req.getParameter(\"email\"),\r\n\t\t\t\treq.getParameter(\"invoiceNum\"), req.getParameter(\"event\"));\r\n\t\tList<CustomerDTO> customerList = customerService.getDownloadListByFilter(filter);\r\n\t\tList<Map<String, Object>> customerMap = customerService.convertCustomerListToMapList(header, customerList);\r\n\t\t/*Data*/\r\n\t\t\r\n\t\tCSVFileHandler handler = new CSVFileHandler();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\thandler.downloadCustomerCSV(customerMap, header, whiterProcessors, response, filename);\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\tlog.debug(\"| customer_download | Exit\");\r\n \r\n\t}",
"Customers createCustomers();",
"@Override\n\tpublic void viewCustomers(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*----*****-------List of Customers-------*****----*\\n\");\n\t\t\t\n\t\t\t//pass these input items to client controller\n\t\t\tviewCustomers=mvc.viewCustomers(session);\n\n\t\t\tSystem.out.println(\"CustomerId\"+\" \"+\"UserName\");\n\t\t\tfor(int i = 0; i < viewCustomers.size(); i++) {\n\t System.out.println(viewCustomers.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t\t//System.out.println(viewCustomers);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Customer Exception: \" +e.getMessage());\n\t\t}\n\t}",
"public void setCustomer(String Cus){\n\n this.customer = Cus;\n }",
"public String list(){\n\t\tif(name == null) {\n\t\t\ttry {\n\t\t\t\tlist = customerBO.getAll();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tList<Customer> l = new ArrayList<Customer>();\n\t\t\ttry {\n\t\t\t\tl = customerBO.getAll();\n\t\t\t\tfor(Customer cus: l) {\n\t\t\t\t\tString CustomerName = cus.getFirstName() + \" \" + cus.getLastName();\n\t\t\t\t\tif(CustomerName.compareTo(name) == 0) {\n\t\t\t\t\t\tlist.add(cus);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tint total = list.size();\n\t\t\t\tint div = total / STATIC_ROW_MAX;\n\t\t\t\tif(div * STATIC_ROW_MAX == total) {\n\t\t\t\t\ttotalPage = div;\n\t\t\t\t} else {\n\t\t\t\t\ttotalPage = div + 1;\n\t\t\t\t}\t\n\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}\n\t\tint index = 0, begin = 0;\n\t\tbegin = (pageIndex - 1) * STATIC_ROW_MAX;\n\t\tif(pageIndex < totalPage) {\n\t\t\tindex = pageIndex * STATIC_ROW_MAX;\n\t\t} else {\n\t\t\tindex = list.size();\n\t\t}\n\t\tfor(int i = begin; i < index; i++) {\n\t\t\tlistCustomer.add(list.get(i));\t\t\t\t\n\t\t}\n\n\t\treturn \"list\";\n\t}",
"private void getCustomerData() {\r\n\t\t// get next customer data : from file or random number generator\r\n\t\t// set anyNewArrival and transactionTime\r\n\t\t// see readme file for more info\r\n\r\n\t\tif (dataSource == 1) { // file\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0/1 random or file input\r\n\t\t\t\t\tif (dataFile.hasNextInt()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checks for a line of information\r\n\t\t\t\t\t\tint data1 = dataFile.nextInt();\t\t\t\t\t\t\t\t\t\t\t\t\t\t// every line has 2 numbers of info\r\n\t\t\t\t\t\tint data2 = dataFile.nextInt();\r\n\t\t\t\t\t\tanyNewArrival \t= (((data1%100)+1)<= chancesOfArrival);\t\t// computes anyNewArrival boolean\r\n\t\t\t\t transactionTime = (data2%maxTransactionTime)+1;\t\t\t\t\t// computes transactionTime integer\r\n\t\t\t\t\t}\r\n\t\t} else { // random\r\n\t\t\tdataRandom = new Random();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// generates random boolean and int\r\n\t\t\tanyNewArrival \t= ((dataRandom.nextInt(100) + 1) <= chancesOfArrival);\r\n\t\t\ttransactionTime = dataRandom.nextInt(maxTransactionTime) + 1;\r\n\t\t}\r\n\t}",
"public static void viewCustomerInfo() {\n\t\tSystem.out.println(\"Please enter customer name\");\n\t\tString firstName=scan.nextLine();\n\t\tCustomer c=Bank.findCustomerByName(firstName);\n\t\tFind find=new Find();\n\t\tfind.viewCustomerDetails(c);\n\n\t\tSystem.out.println(\"Customer: \" + c.getFirstName() + \" \" + c.getLastName() + \" \"+ c.getUserName() + \" \"+ c.getPassword() \n\t\t+ \" \" + c.getDriverLicense() + \" \" + c.getAccountType() + \" \"+ c.getInitialDeposit() + \" \" + \"was viewed\");\n\t\tLogThis.LogIt(\"info\", c.getFirstName() + \" \" + c.getLastName()+ \" was viewed!\");\n\n\t\tSystem.out.println(\"Would you like to find another customer?\");\n\n\t\tSystem.out.println(\"\\t[y]es\");\n\t\tSystem.out.println(\"\\t[n]o\");\n\t\tSystem.out.println(\"\\t[l]og Out\");\n\n\n\t\tString option = scan.nextLine();\n\t\tswitch(option.toLowerCase()) {\n\t\tcase \"y\":\n\t\t\tviewCustomerInfo();\n\t\t\tbreak;\n\t\tcase \"n\":\n\t\t\tstartMenu();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Invalid input. Redirecting to main menu\");\n\t\t\tstartMenu();\n\n\t\t}\n\t}",
"Report createReport();",
"public void dataFileCreate() {\r\n\t\tString COMMA_DELIMITER = \",\";\r\n\t\tString NEW_LINE_SEPERATOR = \"\\n\";\r\n\t\tString FILE_HEADER = \"Title,First Name,Last Name,Email,Phone Number\";\r\n\t\ttry {\r\n\t\t\tList<Customer> dataList = new ArrayList<Customer>();\r\n\t\t\tdataList.add(\r\n\t\t\t\t\tnew Customer(title, customerFirstName, customerLastName, custromerEmailId, customerPhoneNumber));\r\n\r\n\t\t\tFileWriter fileWriter = new FileWriter(\"CustomerDetails.csv\");\r\n\t\t\tBufferedWriter bufferWriter = new BufferedWriter(fileWriter);\r\n\t\t\tbufferWriter.append(FILE_HEADER);\r\n\r\n\t\t\tfor (Customer c : dataList) {\r\n\t\t\t\tbufferWriter.write(NEW_LINE_SEPERATOR);\r\n\t\t\t\tbufferWriter.write(c.getTitle());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getFirstName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getLastName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getEmailAddress());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(String.valueOf(c.getPhone()));\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t}\r\n\r\n\t\t\tbufferWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"public static void main(String[] args) throws Exception{\n\tElectricBillTest myBill = new ElectricBillTest(\"customers.txt\"); \r\n\t\r\n\tint type;\r\n\tint custID;\r\n\tString fName,lName;\r\n\tint noOfKWH;\r\n\tint month;\r\n\tDecimalFormat df=new DecimalFormat(\"#.##\");\r\n \r\n\t//Obtain user input with proper validation\r\n\tdo {\r\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tcustID=Integer.parseInt(JOptionPane.showInputDialog(null, \"Enter the Customer ID: \"));\r\n\t\t\t\tif(!String.valueOf(custID).matches(\"^[0-9]{8}$\"))\r\n\t\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the correct Customer ID(8 digits)! Ex:12345678\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\ttype=Integer.parseInt(JOptionPane.showInputDialog(null,\"Enter the type of Customer(0-Residential,1-Commercial): \"));\r\n\t\t\t\tif(!String.valueOf(type).matches(\"^[0-1]{1}$\"))\r\n\t\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the correct type of Customer(0-Residential,1-Commercial)\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tfName=JOptionPane.showInputDialog(null, \"Enter the first name:\");\r\n\t\t\t\tif(fName.isEmpty())\r\n\t\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the first name! Ex:Anand\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tlName=JOptionPane.showInputDialog(null, \"Enter the last name:\");\r\n\t\t\t\tif(lName.isEmpty())\r\n\t\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the last name! Ex:Sudhan\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tnoOfKWH=Integer.parseInt(JOptionPane.showInputDialog(null,\"Enter the value of energy used(in KWh): \"));\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the correct value of energy used(in KWh): Ex:500\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tmonth=Integer.parseInt(JOptionPane.showInputDialog(null,\"Enter the month for which billing is to be generated: \"));\r\n\t\t\t\tif(!(month>=1 && month<=12))\r\n\t\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the correct month! Ex:3 for March\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t//Add Customer details\t\t\t\r\n\t\tmyBill.bill.addCustomer(custID, fName, lName, type, noOfKWH, month,0);\r\n\t\t\r\n\t\t\t\t\r\n\t}while(Customer.getNumberOfCustomers()!=4);\r\n\t\r\n\t//Print Customer details in Console for reference\r\n\t\t\tSystem.out.println(\"CustomerID FirstName LastName Customer Status NoOfKWH Month Bill Amount\");\r\n\t\t\tSystem.out.println(myBill.bill.toString());\r\n\t\r\n\t//Print Customer Summary Details for reference in the Console\r\n\tSystem.out.println(\"Sum of Bill Amount : $\"+df.format(myBill.bill.getSum())+\r\n\t\t\t\" Average Bill Amount : $\"+df.format(myBill.bill.getAVG()));\r\n\t\r\n\t//Write to File\r\n\tif(myBill.bill.writeToFile(myBill.fileName)) {\r\n\t\tJOptionPane.showMessageDialog(null, \"File Written Successfully!\");\r\n\t}\r\n\t\t\t\r\n\t\r\n}",
"@GetMapping(\"/customer/{customerId}\")\n public List<ScheduleDTO> getScheduleForCustomer(@PathVariable long customerId) {\n List<Pet> customerPets = petService.findPetsByOwner(customerId);\n //Initialise array list for Schedule objects\n List<Schedule> customerSchedule = new ArrayList<>();\n //Get Schedules for each Pet in list\n customerPets.forEach((pet) ->\n customerSchedule.addAll(scheduleService.getScheduleForPet(pet.getId())));\n\n List<ScheduleDTO> scheduleDTOList = customerSchedule.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }",
"public static ArrayList<CustomerInfoBean> getCutomers_notinterested_Super() {\r\n\t\tCustomerInfoBean bean = null;\r\n\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city_district cd ON cs.customer_city=cd.city_id\\n\"\r\n\t\t\t\t\t+\r\n\r\n\t\t\t\t\t\" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id WHERE e.status=3 GROUP BY cs.customer_id\\n\";\r\n\t\t\tStatement st = con.prepareStatement(query);\r\n\t\t\tResultSet rs = st.executeQuery(query);\r\n\t\t\tSystem.err.println(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public static String createFileName(String customer, Date date) {\n \n String name = removeBannedCharacters(customer);\n if (name.length() == 0) {\n name = \"Customer\"; // Something, if there are no valid filename characters. Can you think of a better solution? Ask the user for a name?\n }\n \n // Format the date into a String\n String dateString = simpleDateFormat.format(date);\n \n String filename = String.format(\"%s_%s_invoice.txt\", name, dateString);\n \n return filename;\n \n }",
"void createCustomers() {\r\n\t\tSystem.out.println(\"\\nCreating 5 customers:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\tCustomer2 c2 = new Customer2(\"Serap\", \"Atik\");\r\n\t\tCustomer2 c3 = new Customer2(\"Kemal\", \"Tanir\");\r\n\t\tCustomer2 c4 = new Customer2(\"Betul\", \"Kara\");\r\n\t\tCustomer2 c5 = new Customer2(\"Selman\", \"Saki\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\tem.persist(c2);\r\n\t\tem.persist(c3);\r\n\t\tem.persist(c4);\r\n\t\tem.persist(c5);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"private void showCreateCustomer(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n request.setAttribute(\"customerTypes\",customerTypeService.findAll());\n RequestDispatcher dispatcher= request.getRequestDispatcher(\"/customer/create.jsp\");\n dispatcher.forward(request,response);\n System.out.println(\"customerTypes\" + customerTypeService.findAll());\n }",
"public static void printCustomerInformation(Employee [] employee) {\n\t\tif (Customer.getCustomerQuantity() == 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no customer!\");\n\t\t} else {\n\t\t\tfor (int i = 0; i < Customer.getCustomerQuantity(); i++) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"-------List of Customers-------\\n\"\n\t\t\t\t\t\t+ (i+1) + \": \"+ employee[i+1].getVehicle().getCustomer().getName() + \"\\n\");\n\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t}\n\t}",
"@GetMapping()\n public String showAllCustomers(Model model) {\n model.addAttribute(CUSTOMERS, customerService.showCustomerList());\n return CUSTOMERS_INDEX;\n }",
"@Test\n\tpublic void generateCashierSummaryReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Cashier Summary Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}",
"public static ArrayList<CustomerBean> getCutomers(Date fromDate, Date toDate) {\r\n\t\tCustomerBean bean = null;\r\n\t\tArrayList<CustomerBean> customerList = new ArrayList<CustomerBean>();\r\n\t\tint customerId, familyMember;\r\n\t\tdouble monthlyIncome, familyIncome;\r\n\t\tString customerName, cnicNo, phoneNo, address, district, customer_pic, accountCreatedDate;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT customer_id, customer_name, customer_cnic, customer_address, customer_district, customer_family_size, customer_phone,customer_monthly_income, customer_family_income, customer_payment_type, customr_image, created_on FROM customer where created_on BETWEEN(\"\r\n\t\t\t\t\t+ fromDate + \"\" + toDate + \") ;\";\r\n\t\t\tStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\taddress = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tfamilyMember = rs.getInt(6);\r\n\t\t\t\tphoneNo = rs.getString(7);\r\n\t\t\t\tmonthlyIncome = rs.getDouble(8);\r\n\t\t\t\tfamilyIncome = rs.getDouble(9);\r\n\t\t\t\trs.getString(10);\r\n\t\t\t\tcustomer_pic = rs.getString(11);\r\n\t\t\t\taccountCreatedDate = rs.getString(12);\r\n\t\t\t\tbean = new CustomerBean();\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setAddress(address);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setFamilyMember(familyMember);\r\n\t\t\t\tbean.setFamilyIncome(familyIncome);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\r\n\t\t\t\tbean.setAccountCreatedDate(accountCreatedDate);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\tbean.setCustomer_pic(customer_pic);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public void setTotalCustomers(int _totalCustomers){\n this.totalCustomers = _totalCustomers;\n\n }",
"private static void generateAddCustomer(int branchID) {\n long accountNo = getNewAccountNo(branchID);\n int balance = getRandomBalance();\n writeToFile(String.format(\"%d %d\\n\", accountNo, balance));\n }",
"@RequestMapping(method = RequestMethod.POST, value = \"/viewAllCustomer\", consumes = \"application/json\")\n\tpublic ResponseEntity<List<CustomerDaoBean>> viewuser(){\n\t\tList<CustomerDaoBean> beans = payService.viewdetails();\n\t\treturn ResponseEntity.accepted().body(beans);\n\t}",
"public void printCustomerDetails()\r\n {\r\n System.out.println(title + \" \" + firstName + \" \" \r\n + lastName + \"\\n\" +getAddress() \r\n + \"\\nCard Number: \" + cardNumber \r\n + \"\\nPoints available: \" + points);\r\n }",
"public static void main(String[] args) {\n\r\n\t\tCustomer customer0 = new Customer(2007, \"35621485268\", \"José Felipe Martins\", true, 590.9);\r\n\t\tCustomer customer1 = new Customer(1950, \"47821485297\", \"Maria Alice Barros\", true, 700);\r\n\t\tCustomer customer2 = new Customer(850, \"25521485858\", \"Carlos Eduardo\", true, 750);\r\n\t\tCustomer customer3 = new Customer(2150, \"32412587548\", \"Gev Alisson\", true, 400);\r\n\t\t\r\n\t\t//2 Criar um programa que percorra uma lista de objetos do tipo \r\n\t\t//criado acima e calcule a média do campo vl_total apenas para os \r\n\t\t//itens que este valor seja maior que 560 e o capo id_customer \r\n\t\t//esteja entre 1500 e 2700.\r\n\t\t\r\n\t\tList<Customer> lista = new ArrayList<Customer>();\r\n\t\tlista.add(customer0);\r\n\t\tlista.add(customer1);\r\n\t\tlista.add(customer2);\r\n\t\tlista.add(customer3);\r\n\t\t\r\n\t\tCustomerControl control = new CustomerControl();\r\n\t\tdouble media = control.CalcMedia(lista);\r\n\r\n\t\t//3 Exibir a média final.\r\n\t\tSystem.out.println(\"a media é: \"+ media);\r\n\t\t\r\n\t\t//4 Imprima cada um dos obejtos selecionados para o cálculo da média. \r\n\t\tSystem.out.println(\"objetos selecionados para media\\n\");\r\n\t\tfor(Customer c : control.selecionarParaMedia(lista)){\r\n\t\t\tSystem.out.println(c.toString());\r\n\t\t}\r\n\t\t//5 - 5 Ordene pelo campo vlTotal os objetos selecionados para o cálculo da média. \r\n\t\tList<Customer> listaOrdenada = control.Ordenar(control.selecionarParaMedia(lista));\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\n resultado da lista ordenada\");\r\n\t\tfor(Customer c : listaOrdenada){\r\n\t\t\tSystem.out.println(c.toString());\r\n\t\t}\r\n\r\n\t}"
] | [
"0.7586236",
"0.720589",
"0.667859",
"0.6637228",
"0.650521",
"0.6233051",
"0.6179396",
"0.614238",
"0.6138695",
"0.6110123",
"0.60912716",
"0.60408056",
"0.59609145",
"0.5935524",
"0.5853147",
"0.58507645",
"0.5799858",
"0.579729",
"0.5753547",
"0.5750421",
"0.57494634",
"0.5748239",
"0.57390755",
"0.5734075",
"0.57336086",
"0.5731102",
"0.5686528",
"0.5673336",
"0.5665924",
"0.5653065",
"0.56388897",
"0.5622727",
"0.56220114",
"0.56048024",
"0.5597674",
"0.55779034",
"0.5564827",
"0.5559817",
"0.5551602",
"0.5536736",
"0.5535233",
"0.5532947",
"0.55310106",
"0.55185354",
"0.5517822",
"0.550142",
"0.55002785",
"0.5495863",
"0.54887176",
"0.5487244",
"0.54737824",
"0.547014",
"0.54502004",
"0.544673",
"0.54463166",
"0.54456836",
"0.5442725",
"0.54394597",
"0.5430888",
"0.5427681",
"0.5422389",
"0.5422306",
"0.54080695",
"0.5399179",
"0.53878117",
"0.5383673",
"0.53826135",
"0.53765225",
"0.53740174",
"0.5364373",
"0.5360331",
"0.535731",
"0.5355801",
"0.5355206",
"0.5351495",
"0.5350073",
"0.5343974",
"0.5340217",
"0.5333009",
"0.5323644",
"0.5313862",
"0.530542",
"0.53020066",
"0.52998763",
"0.52984726",
"0.5297841",
"0.52902293",
"0.5286347",
"0.5283954",
"0.52773017",
"0.52736163",
"0.5268844",
"0.5259321",
"0.52574205",
"0.52564627",
"0.52551097",
"0.52501696",
"0.5248637",
"0.5245311",
"0.524134"
] | 0.6740886 | 2 |
Return the owning field. | public BCField getField() {
return (BCField) getOwner();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PersonAndOrganization getOwningUser()\r\n\t{\r\n\t\treturn owningUser;\r\n\t}",
"public String owner() {\n return this.owner;\n }",
"public T getOwner() {\n return owner;\n }",
"public UserModel getOwner() {\n return localOwner;\n }",
"public com.hps.july.persistence.OrganizationAccessBean getOwner() {\n\treturn owner;\n}",
"public Owner getOwner() {\n return owner;\n }",
"public long getOwner() {\n\t\treturn owner;\n\t}",
"public Owner getOwner()\n {\n return owner;\n }",
"public User getOwner() {\n return owner;\n }",
"@objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();",
"public String getOwningPart() {\n return this.owningPart;\n }",
"protected Object getOwner(){\n return owner;\n }",
"java.lang.String getOwner();",
"java.lang.String getOwner();",
"protected Field getField()\n {\n return field;\n }",
"protected Field getField()\n {\n return field;\n }",
"public DatabaseField getField() {\n return field;\n }",
"final int GetOwner() {\n return owner;\n }",
"public String getOwner() {\r\n return owner;\r\n }",
"public Field getField() {\n return field;\n }",
"public String getOwner() {\n\n return Owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return mOwner;\n }",
"public ReadOnlyProperty<BusinessObject> ownerProperty() {\n\t\treturn _ownerProperty();\n\t}",
"Object getObjectField();",
"public String getOwner() { return owner; }",
"public AccountEntity getOwner() {\n\t\treturn owner;\n\t}",
"public String getOwner(){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t\treturn _owner;\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }",
"public String getOwner() {\n\n return owner;\n\n }",
"@Override\r\n\tpublic Person Owner() {\n\t\treturn Owner;\r\n\t}",
"private CFComponent getOwner() {\n\t\treturn owner;\n\t}",
"User getOwner();",
"public String getOwner(){\n return owner;\r\n }",
"public T getField()\r\n {\r\n return this.field;\r\n }",
"public final GF2nField getField()\n {\n return mField;\n }",
"public String getOwner() {\r\n\t\treturn owner;\r\n\t}",
"public Long getIdOwner() {\r\n return idOwner;\r\n }",
"public UUID getOwner() {\n return owner;\n }",
"public UUID getOwner() {\n return owner;\n }",
"@Override\n\tpublic EntityLivingBase getOwner() {\n\t\tif(this.owner!=null&&!(this.owner instanceof EntityPlayer && this.owner.isDead)){\n\t\t\treturn this.owner;\n\t\t}\n\t\telse if(this.getOwnerId()!=null){\n\t\t\treturn this.owner=this.worldObj.getPlayerEntityByUUID(this.getOwnerId());\n\t\t}\n\t\t//System.out.println(\"owner: \"+this.getOwnerId());\n\t\treturn null;\n\t}",
"public String getOwner();",
"public int getOwner() {\n validify();\n return Client.INSTANCE.pieceGetOwner(ptr);\n }",
"public OwnerReference getOwnerReference() {\n return new OwnerReferenceBuilder()\n .withController(true)\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withUid(getMetadata().getUid())\n .build();\n }",
"public MessageField getCorrespondingField();",
"public String getOwner() {\r\n if (mOwner==null) {\r\n return \"n/a\";\r\n }\r\n return mOwner;\r\n }",
"public String getField()\n {\n return field;\n }",
"String getOwner();",
"String getOwner();",
"public String getField() {\n return field;\n }",
"public String getOwner() {\n return lockOwner;\n }",
"@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}",
"public User getObjectOwner() {\r\n\t\treturn objectOwner;\r\n\t}",
"Reference owner();",
"private Object getOffendingObject (Object field)\n\t{\n\t\treturn ((field == null) ? \n\t\t\tgetModel().getClass(getClassName(), getClassLoader()) :\n\t\t\tgetModel().getField(getClassName(), field.toString()));\n\t}",
"@Override\n public GameField getField(){\n return this.gameField;\n }",
"public WikiUI getOwner() {\n\t\treturn owner_;\n\t}",
"@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}",
"public abstract User getOwner();",
"public TLPropertyOwner getOwner() {\n return propertyOwner;\n }",
"public AbstractGameObject getOwner() {\r\n\t\treturn owner;\r\n\t}",
"public Player owner() {\n\t\treturn null;\n\t}",
"public RecordField getField() {\n return field;\n }",
"public synchronized static String getOwner() {\n return owner;\n }",
"public String sourceField() {\n return this.sourceField;\n }",
"public CorporateUser getCandidateOwner() {\n\t\tif (candidateOwner == null) {\n\t\t\tsetCandidateOwner(findCorporateUser(getCandidate().getOwner().getId()));\n\t\t}\n\t\treturn candidateOwner;\n\t}",
"public GroupOwnerModel getGroupOwnerModel() {\r\n\t\treturn groupOwnerModel;\r\n\t}",
"public String getOwnerName() {\r\n return this.ownerName;\r\n }",
"private Property<BusinessObject> _ownerProperty() {\n\t\tif (ownerProperty == null) {\n\t\t\townerProperty = new SimpleObjectProperty<>(this, \"Owner\", null);\n\t\t}\n\t\treturn ownerProperty;\n\t}",
"@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\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 owner_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\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 owner_ = s;\n return s;\n }\n }",
"public JComponent getWrappedComponent()\n {\n return field;\n }",
"public String getOwnerId() {\n return ownerId;\n }",
"public ConnectionField getConnectionField() {\n\treturn connectionField;\n }",
"public com.sforce.soap.enterprise.sobject.SObject getOwner() {\r\n return owner;\r\n }",
"public Player getOwner() {\n return owner;\n }",
"public IMember getParentMember();",
"public String getName(){\n return field.getName();\n }",
"public String getownerName() {\n\t return this.ownerName;\n\t}",
"@JsonGetter(\"owner\")\r\n public String getOwner() {\r\n return owner;\r\n }",
"public Player getOwner() {\n\t\tif (owner == null && possibleOwners.size() == 1)\n\t\t\towner = possibleOwners.get(0);\n\t\t\n\t\treturn owner;\n\t}",
"public Integer getOwnerId() {\n return ownerId;\n }",
"@Override\n\tpublic FieldDetail getFieldDetail() {\n\t\treturn field;\n\t}",
"@JsonIgnore\n @Override\n public Person getOwner()\n {\n if (getFetchOptions() != null && getFetchOptions().hasOwner())\n {\n return owner;\n }\n else\n {\n throw new NotFetchedException(\"Owner has not been fetched.\");\n }\n }",
"public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\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 owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\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 owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n\tpublic TbOrg getOwnOrg() {\n\t\treturn tbOrgMapper.getOwnOrg();\n\t}",
"public String getUniqueField() {\n return uniqueField;\n }",
"public Long getOwnerEntityId()\r\n\t{\r\n\t\treturn ownerEntityId;\r\n\t}",
"public java.lang.String getOwnerId() {\r\n return ownerId;\r\n }",
"public ID owner() {\n\treturn ((BeGrandMap) CurrentGrandMap.fluidGet()).placeOwnerID(myID);\n/*\nudanax-top.st:21970:FeGrandPlaceHolder methodsFor: 'client accessing'!\n{ID} owner\n\t\"Ask the GrandMap who owns this ID\"\n\t^CurrentGrandMap fluidGet placeOwnerID: myID!\n*/\n}",
"public String field() {\n\t\treturn \"_\"+methodBase();\n\t}",
"public ResultSetInternalMethods getOwner() {\n/* 452 */ return this.owner;\n/* */ }",
"public int getOwnerID() {\r\n\t\treturn ownerID;\r\n\t}",
"@Override\n\tpublic Battle getOwner() {\n\t\treturn (Battle) super.getOwner();\n\t}",
"@Override\n\tpublic UUID getOwnerId() {\n\t\treturn this.dataManager.get(OWNER_UUID).orNull();\n\t}"
] | [
"0.66344786",
"0.6467926",
"0.6414546",
"0.6412583",
"0.6411658",
"0.63329136",
"0.6327339",
"0.6313894",
"0.6278779",
"0.6258277",
"0.6250102",
"0.6218283",
"0.6203939",
"0.6203939",
"0.6194147",
"0.6194147",
"0.61931866",
"0.6189475",
"0.61445516",
"0.6144146",
"0.61279786",
"0.61170936",
"0.61170936",
"0.61170936",
"0.61170936",
"0.61170936",
"0.61170936",
"0.61056626",
"0.61014783",
"0.6100689",
"0.61000323",
"0.60994333",
"0.60889876",
"0.60750735",
"0.60719824",
"0.6067745",
"0.60580575",
"0.60326284",
"0.6030188",
"0.6029234",
"0.6016974",
"0.6002994",
"0.5990853",
"0.5990853",
"0.5982792",
"0.59382313",
"0.5934915",
"0.59285396",
"0.5922412",
"0.59171695",
"0.5910991",
"0.590125",
"0.590125",
"0.5900961",
"0.5895202",
"0.5886049",
"0.58685213",
"0.5826915",
"0.5813256",
"0.58129084",
"0.58033824",
"0.57992125",
"0.5799081",
"0.5794118",
"0.5785324",
"0.57648605",
"0.5756969",
"0.5756946",
"0.57480514",
"0.57456845",
"0.5731717",
"0.5731135",
"0.57219404",
"0.5717558",
"0.57166845",
"0.56915396",
"0.56890726",
"0.5683204",
"0.5663461",
"0.5661193",
"0.5660756",
"0.5659544",
"0.5659458",
"0.565302",
"0.56419736",
"0.56197166",
"0.56062514",
"0.56042695",
"0.5602004",
"0.56019956",
"0.55996996",
"0.5597724",
"0.55960083",
"0.5587571",
"0.5573198",
"0.55695677",
"0.5563996",
"0.5558994",
"0.5547644",
"0.55367446"
] | 0.7346958 | 0 |
Return the type of constant this attribute represents, or null if not set. | public String getTypeName() {
Class type = getType();
if (type == null)
return null;
return type.getName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getType () { return getAttributeOrDefault(ATTNAMECOMMONPREFIX + ATTNAMESUFFIX_TYPE , \"\"); }",
"public Class getAttributeType();",
"public String getValueType() {\n String valueType = getAttribute(\"ValueType\");\n if (valueType.equals(\"\"))\n return null;\n return valueType;\n }",
"public short getAttributeType() {\n return attributeType;\n }",
"@Override\n public CategoricalTypeConstants getCategoricalTypeConstant() {\n return CategoricalTypeConstants.SPECIFIC;\n }",
"@Override\n\tpublic String getType() {\n\t\treturn \"nominal\";\n\t}",
"public Optional<String> getType() {\n return Optional.ofNullable(type);\n }",
"public Optional<String> getType() {\n\t\treturn Optional.ofNullable(_type);\n\t}",
"public int getType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }",
"public int getReqType()\r\n {\r\n return safeConvertInt(getAttribute(\"type\"));\r\n }",
"public Optional<String> type() {\n\t\t\treturn Optional.ofNullable(_type);\n\t\t}",
"public final String getTypeAttribute() {\n return getAttributeValue(\"type\");\n }",
"private Class<?> resolveBuiltInAttrType(String anAlloyAttrType){\n\t\tif(anAlloyAttrType == \"int\" || anAlloyAttrType == \"Int\") return int.class;\n\t\telse if(anAlloyAttrType == \"String\") return String.class;\n\t\telse if(anAlloyAttrType == \"univ\") assertMessage(\"TODO: Map univ with Java type\");\n\t\telse if(anAlloyAttrType == \"none\") assertMessage(\"TODO: Map none with Java type\");\n\t\telse if(anAlloyAttrType.contains(\"seq\")) assertMessage(\"TODO: Map seqInt with Java type\");\n\t\t\n\t\treturn null;\n\t}",
"default @org.jetbrains.annotations.Nullable java.lang.String getType() {\n return null;\n }",
"final DynamoDBAttributeType attributeType() {\n return this.attributeType;\n }",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"public Class getType() {\n Object value = getValue();\n if (value == null)\n return null;\n\n Class type = value.getClass();\n if (type == Integer.class)\n return int.class;\n if (type == Float.class)\n return float.class;\n if (type == Double.class)\n return double.class;\n if (type == Long.class)\n return long.class;\n return String.class;\n }",
"@java.lang.Override public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"@Nullable public abstract Object getConstantValue() throws CompileException;",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"@Nullable\n public String getType() {\n return type;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public String getType() {\n\t\tString type = C;\n\t\t// Modify if constrained\n\t\tParameterConstraint constraint = this.constraint;\n\t\tif (constraint != null) type = \"Constrained\" + type;\n\t\treturn type;\n\t}",
"@javax.annotation.Nullable\n public TypeEnum getType() {\n return type;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"@java.lang.Override public int getTypeValue() {\n return type_;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"@Override public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public Class<? extends AttributeDescription> getDataType();",
"public int getTypeValue() {\n\t\t\treturn type_;\n\t\t}",
"public int getTypeValue() {\n\t\t\t\t\treturn type_;\n\t\t\t\t}",
"public int getTypeValue() {\n\t\t\t\treturn type_;\n\t\t\t}",
"public int getTypeValue() {\n\t\t\t\treturn type_;\n\t\t\t}",
"java.lang.String getConstantValue();",
"@Override public int getTypeValue() {\n return type_;\n }",
"public Optional<TypeDefId> getType() {\n\t\treturn type;\n\t}",
"public int getType()\n {\n return pref.getInt(KEY_TYPE, 0);\n }",
"public java.lang.String getTypeName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPENAME$6);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"@TargetAttributeType(name = DATA_TYPE_ATTRIBUTE_NAME, fixed = true, hidden = true)\n\tpublic default TargetDataType getDataType() {\n\t\treturn getTypedAttributeNowByName(DATA_TYPE_ATTRIBUTE_NAME, TargetDataType.class,\n\t\t\tTargetDataType.UNDEFINED1);\n\t}",
"public Class<?> getType() {\n return this.value.getClass();\n }",
"public Optional<TypeDefId> getType() {\n\t\t\treturn type;\n\t\t}",
"public CIType getType() {\r\n\t\treturn type;\r\n\t}",
"public String getStrAttribType() {\r\n\t\treturn strAttribType;\r\n\t}",
"public java.lang.String getStructuretype()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STRUCTURETYPE$2);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"@Override\n public ConditionType getConditionType() {\n return typeLookup.get(_cfRule.getType());\n }",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();"
] | [
"0.6436941",
"0.63216966",
"0.63173944",
"0.61918336",
"0.61509156",
"0.61480105",
"0.610965",
"0.6065515",
"0.6052952",
"0.60308444",
"0.6020974",
"0.60056674",
"0.59701025",
"0.5969621",
"0.59693235",
"0.5968299",
"0.5968299",
"0.5968299",
"0.5968299",
"0.5968299",
"0.5968299",
"0.5968299",
"0.5968299",
"0.5968299",
"0.5968299",
"0.5968299",
"0.5968299",
"0.5968299",
"0.59673584",
"0.59533054",
"0.59326506",
"0.59326506",
"0.59326506",
"0.59326506",
"0.59326506",
"0.59290814",
"0.5922021",
"0.59157246",
"0.59157246",
"0.5910021",
"0.59020424",
"0.59020424",
"0.59020424",
"0.59020424",
"0.59020424",
"0.58956116",
"0.58870965",
"0.5884476",
"0.5884476",
"0.5884476",
"0.587709",
"0.58755386",
"0.58755386",
"0.5867711",
"0.5859078",
"0.5859078",
"0.58523613",
"0.5852174",
"0.58508676",
"0.5827154",
"0.5827154",
"0.58218974",
"0.5802186",
"0.5789916",
"0.57860386",
"0.5784867",
"0.5783854",
"0.57639515",
"0.5760071",
"0.57521546",
"0.5748529",
"0.5739654",
"0.5718086",
"0.5718086",
"0.5718086",
"0.5718086",
"0.5718086",
"0.5718086",
"0.5718086",
"0.5718086",
"0.5718086",
"0.5718086",
"0.5718086",
"0.5718086",
"0.5718086",
"0.57157236",
"0.57068646",
"0.57068646",
"0.57068646",
"0.57068646",
"0.57068646",
"0.57068646",
"0.57068646",
"0.57068646",
"0.57068646",
"0.57068646",
"0.57068646",
"0.57068646",
"0.57068646",
"0.57068646",
"0.57068646"
] | 0.0 | -1 |
Return the type of constant this attribute represents (String.class, int.class, etc), or null if not set. | public Class getType() {
Object value = getValue();
if (value == null)
return null;
Class type = value.getClass();
if (type == Integer.class)
return int.class;
if (type == Float.class)
return float.class;
if (type == Double.class)
return double.class;
if (type == Long.class)
return long.class;
return String.class;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getType () { return getAttributeOrDefault(ATTNAMECOMMONPREFIX + ATTNAMESUFFIX_TYPE , \"\"); }",
"public Class getAttributeType();",
"private Class<?> resolveBuiltInAttrType(String anAlloyAttrType){\n\t\tif(anAlloyAttrType == \"int\" || anAlloyAttrType == \"Int\") return int.class;\n\t\telse if(anAlloyAttrType == \"String\") return String.class;\n\t\telse if(anAlloyAttrType == \"univ\") assertMessage(\"TODO: Map univ with Java type\");\n\t\telse if(anAlloyAttrType == \"none\") assertMessage(\"TODO: Map none with Java type\");\n\t\telse if(anAlloyAttrType.contains(\"seq\")) assertMessage(\"TODO: Map seqInt with Java type\");\n\t\t\n\t\treturn null;\n\t}",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"public String getValueType() {\n String valueType = getAttribute(\"ValueType\");\n if (valueType.equals(\"\"))\n return null;\n return valueType;\n }",
"public int getReqType()\r\n {\r\n return safeConvertInt(getAttribute(\"type\"));\r\n }",
"public final String getTypeAttribute() {\n return getAttributeValue(\"type\");\n }",
"public short getAttributeType() {\n return attributeType;\n }",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"public Class<? extends AttributeDescription> getDataType();",
"private String resolveAttrType(String aType){\n\t\tif(aType == \"int\" || aType == \"Int\") return \"int\";\n\t\telse if(aType == \"String\") return \"String\";\n\t\telse if(aType == \"univ\") assertMessage(\"TODO: Map univ with Java type\");\n\t\telse if(aType == \"none\") assertMessage(\"TODO: Map none with Java type\");\n\t\telse if(aType.contains(\"seq\")) assertMessage(\"TODO: Map seqInt with Java type\");\n\n\t\treturn aType;\n\t}",
"public Optional<String> getType() {\n return Optional.ofNullable(type);\n }",
"default @org.jetbrains.annotations.Nullable java.lang.String getType() {\n return null;\n }",
"private String getSqLiteType(Class<?> value){\r\n\t\tString sn = value.getSimpleName();\r\n\t\tif(sn.equalsIgnoreCase(\"String\"))\r\n\t\t\treturn \"text\";\r\n\t\tif(sn.equalsIgnoreCase(\"int\") || sn.equalsIgnoreCase(\"Integer\") || \r\n\t\t sn.equalsIgnoreCase(\"long\") || sn.equalsIgnoreCase(\"Long\") || \r\n\t\t sn.equalsIgnoreCase(\"BigDecimal\")){\r\n\t\t\treturn \"integer\";\r\n\t\t}\r\n\t\tif(sn.equalsIgnoreCase(\"double\") || sn.equalsIgnoreCase(\"Double\") || \r\n\t\t sn.equalsIgnoreCase(\"float\") || sn.equalsIgnoreCase(\"Float\")){\r\n\t\t\treturn \"integer\";\r\n\t\t}\r\n\t\tif(sn.equalsIgnoreCase(\"byte[]\") || sn.equalsIgnoreCase(\"Byte[]\")){\r\n\t\t\treturn \"blob\";\r\n\t\t}\r\n\t\tthrow new NullPointerException(\"type not found \" + sn);\r\n\t}",
"public Optional<String> getType() {\n\t\treturn Optional.ofNullable(_type);\n\t}",
"public int getType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }",
"public StrColumn getType() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"type\", StrColumn::new) :\n getBinaryColumn(\"type\"));\n }",
"public String getStrAttribType() {\r\n\t\treturn strAttribType;\r\n\t}",
"@Override\n\tpublic String getType() {\n\t\treturn \"nominal\";\n\t}",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"public Optional<String> type() {\n\t\t\treturn Optional.ofNullable(_type);\n\t\t}",
"@Nullable\n public String getType() {\n return type;\n }",
"@java.lang.Override public int getTypeValue() {\n return type_;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"public Class<?> getType() {\n return this.value.getClass();\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"public java.lang.String getTypeName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPENAME$6);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getType() {\n\t\tString type = C;\n\t\t// Modify if constrained\n\t\tParameterConstraint constraint = this.constraint;\n\t\tif (constraint != null) type = \"Constrained\" + type;\n\t\treturn type;\n\t}",
"public Class getType() {\n\t if ( type != null )\n\t return type;\n\t return long.class;\n\t }",
"@java.lang.Override public int getTypeValue() {\n return type_;\n }",
"public static String getType() {\n\t\treturn type;\n\t}",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public String getAttrTypeDef(String attrName) {\n if (!isAttributeDefined(attrName)) {\n throw new MonetException(\"no attribute defined with name: \" + attrName);\n }\n attrName = attrName.toLowerCase();\n ResultSet resultSet = attrNST.selectRows(\"name EQ '\" + attrName + \"'\", \"data_type\", \"*\");\n if (!resultSet.next()) {\n throw new MonetException(\"attribute not found: \" + attrName);\n }\n return resultSet.getString(1);\n }",
"@Override\n public CategoricalTypeConstants getCategoricalTypeConstant() {\n return CategoricalTypeConstants.SPECIFIC;\n }",
"@Override public int getTypeValue() {\n return type_;\n }",
"public Class getType();",
"Coding getType();",
"public int getType()\n {\n return pref.getInt(KEY_TYPE, 0);\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }"
] | [
"0.6634352",
"0.66239184",
"0.6452557",
"0.6343537",
"0.6343537",
"0.6343537",
"0.6343537",
"0.6343537",
"0.6343537",
"0.6343537",
"0.6343537",
"0.6343537",
"0.6343537",
"0.6343537",
"0.6343537",
"0.6343537",
"0.630709",
"0.6258633",
"0.62343484",
"0.61726093",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.61629343",
"0.6160841",
"0.61596406",
"0.61171615",
"0.60711414",
"0.60585165",
"0.60485035",
"0.60351086",
"0.60251874",
"0.6023718",
"0.6011091",
"0.6001767",
"0.6001767",
"0.6001767",
"0.6001767",
"0.6001767",
"0.6001767",
"0.6001767",
"0.6001767",
"0.6001767",
"0.6001767",
"0.6001767",
"0.6001767",
"0.6001767",
"0.5999955",
"0.59760714",
"0.5962798",
"0.5950074",
"0.5950074",
"0.5941543",
"0.59299856",
"0.59299856",
"0.5916193",
"0.5907448",
"0.5895749",
"0.58915406",
"0.5891182",
"0.58775043",
"0.5862878",
"0.5862878",
"0.5862878",
"0.5862878",
"0.5862878",
"0.58565104",
"0.58556545",
"0.58533424",
"0.5835883",
"0.5828251",
"0.5815752",
"0.5812902",
"0.5812902",
"0.5812902",
"0.58095026",
"0.58095026",
"0.58095026",
"0.58095026"
] | 0.66089505 | 2 |
Return the bytecode for the type of constant this attribute represents. | public BCClass getTypeBC() {
return getProject().loadClass(getType());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toCode()\n {\n return \"TermConstant.getConstant(\" + index + \")\";\n }",
"com.google.protobuf.ByteString\n getConstantValueBytes();",
"public int getConstant() {\n\t\treturn magicConstant;\n\t}",
"ByteConstant createByteConstant();",
"String getConstant();",
"java.lang.String getConstantValue();",
"public String toString(){\n \treturn isConstant ? \"const \" + type : \"var \" + type;\n }",
"@Nullable public abstract Object getConstantValue() throws CompileException;",
"public ClassConstant getClassConstant()\n {\n ensureLoaded();\n return m_clzName;\n }",
"void loadConstant(Object value, MethodVisitor mv) {\n if (value == null) {\n mv.visitInsn(Opcodes.ACONST_NULL);\n } else if (value instanceof String) {\n mv.visitLdcInsn(value);\n } else if (value instanceof Character) {\n String className = \"java/lang/Character\";\n mv.visitTypeInsn(Opcodes.NEW, className);\n mv.visitInsn(Opcodes.DUP);\n mv.visitLdcInsn(value);\n String methodType = \"(C)V\";\n mv.visitMethodInsn(Opcodes.INVOKESPECIAL, className, \"<init>\", methodType);\n } else if (value instanceof Number) {\n /** todo it would be more efficient to generate class constants */\n Number n = (Number) value;\n String className = BytecodeHelper.getClassInternalName(value.getClass().getName());\n mv.visitTypeInsn(Opcodes.NEW, className);\n mv.visitInsn(Opcodes.DUP);\n String methodType;\n if (n instanceof Integer) {\n //pushConstant(n.intValue());\n mv.visitLdcInsn(n);\n methodType = \"(I)V\";\n } else if (n instanceof Double) {\n mv.visitLdcInsn(n);\n methodType = \"(D)V\";\n } else if (n instanceof Float) {\n mv.visitLdcInsn(n);\n methodType = \"(F)V\";\n } else if (n instanceof Long) {\n mv.visitLdcInsn(n);\n methodType = \"(J)V\";\n } else if (n instanceof BigDecimal) {\n mv.visitLdcInsn(n.toString());\n methodType = \"(Ljava/lang/String;)V\";\n } else if (n instanceof BigInteger) {\n mv.visitLdcInsn(n.toString());\n methodType = \"(Ljava/lang/String;)V\";\n } else if (n instanceof Short) {\n mv.visitLdcInsn(n);\n methodType = \"(S)V\";\n } else if (n instanceof Byte) {\n mv.visitLdcInsn(n);\n methodType = \"(B)V\";\n } else {\n throw new ClassGeneratorException(\n \"Cannot generate bytecode for constant: \" + value\n + \" of type: \" + value.getClass().getName()\n + \". Numeric constant type not supported.\");\n }\n mv.visitMethodInsn(Opcodes.INVOKESPECIAL, className, \"<init>\", methodType);\n } else if (value instanceof Boolean) {\n Boolean bool = (Boolean) value;\n String text = (bool.booleanValue()) ? \"TRUE\" : \"FALSE\";\n mv.visitFieldInsn(Opcodes.GETSTATIC, \"java/lang/Boolean\", text, \"Ljava/lang/Boolean;\");\n } else if (value instanceof Class) {\n Class vc = (Class) value;\n if (vc.getName().equals(\"java.lang.Void\")) {\n // load nothing here for void\n } else {\n throw new ClassGeneratorException(\n \"Cannot generate bytecode for constant: \" + value + \" of type: \" + value.getClass().getName());\n }\n } else {\n throw new ClassGeneratorException(\n \"Cannot generate bytecode for constant: \" + value + \" of type: \" + value.getClass().getName());\n }\n }",
"public byte getCode();",
"String constant();",
"@Override\n public final Integer constTypeCode() {\n return this.manufacture.constTypeCode();\n }",
"@Override\r\n public String getConstant(String constantTypeCode) {\r\n Logger l = LogUtils.getLogger(getClass());\r\n if (l.isLoggable(Level.FINER)) {\r\n l.entering(getClass().getName(), \"getConstant\", new Object[]{constantTypeCode});\r\n }\r\n String constantType = getCertificationDAO().getConstant(constantTypeCode);\r\n l.exiting(this.getClass().getName(), \"getConstant\", constantTypeCode);\r\n return constantType;\r\n }",
"protected MethodTypeConstant()\n {\n super(CONSTANT_METHODTYPE);\n }",
"public String toString() {\n\t\treturn \"(constant-value \" + constantValueIndex + \")\";\n\t}",
"public java.lang.String getConstantValue() {\n java.lang.Object ref = constantValue_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n constantValue_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getConstantValue() {\n java.lang.Object ref = constantValue_;\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 constantValue_ = s;\n }\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getConstantValueBytes() {\n java.lang.Object ref = constantValue_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n constantValue_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String toBinaryCode() {\r\n\t\treturn \"CodeDefinition(\" + mActivityName + \".class\"+ \")\";\r\n\t}",
"CharConstant createCharConstant();",
"public byte[] getBytes()\n {\n if (isModified())\n {\n // collect all constants\n ConstantPool pool = m_pool;\n boolean fOptimize = !pool.isOrderImportant();\n if (fOptimize)\n {\n if (pool != null)\n {\n // detach the previous pool from the ClassFile\n pool.setClassFile(null);\n }\n pool = new ConstantPool(this);\n }\n preassemble(pool);\n if (fOptimize)\n {\n pool.sort();\n }\n m_pool = pool;\n\n // assemble the class into bytes\n ByteArrayOutputStream streamRaw = new ByteArrayOutputStream(8192);\n DataOutputStream stream = new DataOutputStream(streamRaw);\n try\n {\n assemble(stream, pool);\n }\n catch (IOException e)\n {\n throw ensureRuntimeException(e);\n }\n m_abClazz = streamRaw.toByteArray();\n\n resetModified();\n }\n\n return m_abClazz;\n }",
"com.google.protobuf.ByteString getByteCode();",
"public com.google.protobuf.ByteString\n getConstantValueBytes() {\n java.lang.Object ref = constantValue_;\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 constantValue_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCode() {\n return (String)getAttributeInternal(CODE);\n }",
"public Byte getByteAttribute();",
"@NonNull\n public byte[] getBytecode() {\n return mBytes;\n }",
"public Code visitConstNode(ExpNode.ConstNode node) {\n beginGen(\"Const\");\n Code code = new Code();\n if(node.getValue() == 0) {\n code.generateOp(Operation.ZERO);\n } else if(node.getValue() == 1) {\n code.generateOp(Operation.ONE);\n } else {\n code.genLoadConstant(node.getValue());\n }\n endGen(\"Const\");\n return code;\n }",
"public Integer getTypeCode() {\n return (Integer) getAttributeInternal(TYPECODE);\n }",
"BlockConstant createBlockConstant();",
"public Object visitCharacterConstant(GNode n) {\n xtc.type.Type result;\n \n result = cops.typeCharacter(n.getString(0));\n \n return result.getConstant().bigIntValue().longValue();\n }",
"Const\ngetConstSym();",
"public java.lang.String getClassCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASSCODE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(CLASSCODE$30);\n }\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"@Override\n\tpublic boolean getIsConstant() {\n\t\treturn false;\n\t}",
"com.google.protobuf.ByteString\n getCodeBytes();",
"com.google.protobuf.ByteString\n getCodeBytes();",
"public static ConstantExpression constant(Object value) { throw Extensions.todo(); }",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/TargetInfo.cpp\", line = 7045,\n FQN=\"(anonymous namespace)::SparcV9ABIInfo::CoerceBuilder::getType\", NM=\"_ZNK12_GLOBAL__N_114SparcV9ABIInfo13CoerceBuilder7getTypeEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.codegen/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/TargetInfo.cpp -nm=_ZNK12_GLOBAL__N_114SparcV9ABIInfo13CoerceBuilder7getTypeEv\")\n //</editor-fold>\n public Type /*P*/ getType() /*const*/ {\n if (Elems.size() == 1) {\n return Elems.front$Const();\n } else {\n return StructType.get(Context, new ArrayRef<Type /*P*/ >(Elems, true));\n }\n }",
"Rule Const() {\n // Push 1 ConstNode onto the value stack\n StringVar constName = new StringVar(\"\");\n return Sequence(\n \"const \",\n FieldType(),\n Identifier(),\n actions.pop(),\n ACTION(constName.set(match())),\n \"= \",\n ConstValue(),\n Optional(ListSeparator()),\n WhiteSpace(),\n push(new IdentifierNode(constName.get())),\n actions.pushConstNode());\n }",
"public String constant() {\n\t\tString tmp = methodBase().replaceAll(\"([a-z])([A-Z])\",\"$1_$2\");\n\t\treturn tmp.toUpperCase();\n\t}",
"CodeType createCodeType();",
"Rule ConstValue() {\n // Push 1 ConstValue node onto the value stack\n return Sequence(\n FirstOf(\n IntConstant(),\n DoubleConstant(),\n Literal(),\n Identifier(),\n ConstList(),\n ConstMap()),\n actions.pushConstValueNode());\n }",
"ConstValue createConstValue();",
"public static ConstantExpression constant(Object value, Class clazz) { throw Extensions.todo(); }",
"default Constant getConstant(ConstantName constantName) {return (Constant) constantName;}",
"@Override\n public boolean isConstantExpression() {\n return false;\n }",
"Rule EnumConst() {\n return Sequence(\n \"= \",\n IntConstant(),\n WhiteSpace());\n }",
"IntConstant createIntConstant();",
"public byte[] code();",
"public Constant (int value){\r\n this.value = value;\r\n\r\n }",
"Code getCode();",
"java.lang.String getCode();",
"java.lang.String getCode();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCode() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CODE_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCode() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CODE_PROP.get());\n }",
"public byte type() {\n return (byte) value;\n }",
"int getCodeValue();",
"public abstract byte getType();",
"Constant(String name, IRubyObject irubyObject) {\n super(name, irubyObject);\n }",
"public String getFabConst() {\n return (String)getAttributeInternal(FABCONST);\n }",
"String getConstantValue(Descriptor d, int index) {\n try {\n ConstantPool.CPInfo cpInfo = constant_pool.get(index);\n\n switch (cpInfo.getTag()) {\n case ConstantPool.CONSTANT_Integer: {\n ConstantPool.CONSTANT_Integer_info info =\n (ConstantPool.CONSTANT_Integer_info) cpInfo;\n String t = d.getValue(constant_pool);\n if (t.equals(\"C\")) { // character\n return getConstantCharValue((char) info.value);\n } else if (t.equals(\"Z\")) { // boolean\n return String.valueOf(info.value == 1);\n } else { // other: assume integer\n return String.valueOf(info.value);\n }\n }\n\n case ConstantPool.CONSTANT_String: {\n ConstantPool.CONSTANT_String_info info =\n (ConstantPool.CONSTANT_String_info) cpInfo;\n return getConstantStringValue(info.getString());\n }\n\n default:\n return constantWriter.stringValue(cpInfo);\n }\n } catch (ConstantPoolException e) {\n return \"#\" + index;\n }\n }",
"public byte getType() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f0 in method: android.location.GpsClock.getType():byte, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.getType():byte\");\n }",
"public String toCode() {\r\n\t\treturn \"CodeDefinition(\" + mActivityName + \".class\"+ \")\";\r\n\t}",
"public double constant()\n\t{\n\t\treturn _dblConstant;\n\t}",
"Map<String, Constant> getConstantMap();",
"public Integer getTypeCode() {\n return typeCode;\n }",
"@Override\n public String convertToDatabaseColumn(\n final CashTransactionType enumConstant) {\n\n return enumConstant.getValue();\n }",
"private TypeCode() {}",
"public com.google.protobuf.ByteString\n getCodeBytes() {\n java.lang.Object ref = code_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n code_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String toAsmCode(){\n\t\tif(value<0) //for drive label with value<0, we add _n if value is <0\n\t\t\treturn \".FloatLiteral_n\"+ getStringValue().substring(1,getStringValue().length());\n\t\telse\n\t\t\treturn \".FloatLiteral_\"+ getStringValue();\n\t}",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
"public BoundCodeDt<DataTypeEnum> getCodeElement() { \n\t\tif (myCode == null) {\n\t\t\tmyCode = new BoundCodeDt<DataTypeEnum>(DataTypeEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myCode;\n\t}",
"EnumConstant createEnumConstant();",
"public int getConstantCount() {\r\n return EnthalpyVapour.CONSTANT_COUNT;\r\n }",
"public Vector<TypeConstant> getAllTypeConstants() {\n\t\tVector<TypeConstant> constants = HUtils.getUniqueElements(typeConstantHash);\n\t\treturn constants;\n\t}",
"LWordConstant createLWordConstant();",
"@Override\r\n\tpublic MemoryConstant toConstant() {\r\n\t\treturn new LocationConstant(getTarget(), getBitSize(),\r\n\t\t\t\tgetAddressStridePolicy());\r\n\t}",
"public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }",
"public boolean isConstant() {\n return false;\n }",
"com.google.protobuf.ByteString getSqlCodeBytes();",
"@Override\r\n\tpublic void computeConstant() {\n\t\t\r\n\t}",
"@Override\n public boolean isConstant() {\n return false;\n }",
"private String getConstantValue(IField field, IRegion hoverRegion) {\n\t\tif (!isStaticFinal(field))\n\t\t\treturn null;\n\n\t\tITypeRoot typeRoot= getEditorInputJavaElement();\n\t\tif (typeRoot == null)\n\t\t\treturn null;\n\n\t\tObject constantValue= null;\n\n\t\tCompilationUnit unit= SharedASTProvider.getAST(typeRoot, SharedASTProvider.WAIT_ACTIVE_ONLY, null);\n\t\tif (unit == null)\n\t\t\treturn null;\n\n\t\tASTNode node= NodeFinder.perform(unit, hoverRegion.getOffset(),\thoverRegion.getLength());\n\t\tif (node != null && node.getNodeType() == ASTNode.SIMPLE_NAME) {\n\t\t\tIBinding binding= ((SimpleName)node).resolveBinding();\n\t\t\tif (binding != null && binding.getKind() == IBinding.VARIABLE) {\n\t\t\t\tIVariableBinding variableBinding= (IVariableBinding)binding;\n\t\t\t\tif (field.equals(variableBinding.getJavaElement())) {\n\t\t\t\t\tconstantValue= variableBinding.getConstantValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (constantValue == null)\n\t\t\treturn null;\n\n\t\tif (constantValue instanceof String) {\n\t\t\tStringBuffer result= new StringBuffer();\n\t\t\tresult.append('\"');\n\t\t\tString stringConstant= (String)constantValue;\n\t\t\tif (stringConstant.length() > 80) {\n\t\t\t\tresult.append(stringConstant.substring(0, 80));\n\t\t\t\tresult.append(JavaElementLabels.ELLIPSIS_STRING);\n\t\t\t} else {\n\t\t\t\tresult.append(stringConstant);\n\t\t\t}\n\t\t\tresult.append('\"');\n\t\t\treturn result.toString();\n\n\t\t} else if (constantValue instanceof Character) {\n\t\t\tString constantResult= '\\'' + constantValue.toString() + '\\'';\n\n\t\t\tchar charValue= ((Character) constantValue).charValue();\n\t\t\tString hexString= Integer.toHexString(charValue);\n\t\t\tStringBuffer hexResult= new StringBuffer(\"\\\\u\"); //$NON-NLS-1$\n\t\t\tfor (int i= hexString.length(); i < 4; i++) {\n\t\t\t\thexResult.append('0');\n\t\t\t}\n\t\t\thexResult.append(hexString);\n\t\t\treturn formatWithHexValue(constantResult, hexResult.toString());\n\n\t\t} else if (constantValue instanceof Byte) {\n\t\t\tint byteValue= ((Byte) constantValue).intValue() & 0xFF;\n\t\t\treturn formatWithHexValue(constantValue, \"0x\" + Integer.toHexString(byteValue)); //$NON-NLS-1$\n\n\t\t} else if (constantValue instanceof Short) {\n\t\t\tint shortValue= ((Short) constantValue).shortValue() & 0xFFFF;\n\t\t\treturn formatWithHexValue(constantValue, \"0x\" + Integer.toHexString(shortValue)); //$NON-NLS-1$\n\n\t\t} else if (constantValue instanceof Integer) {\n\t\t\tint intValue= ((Integer) constantValue).intValue();\n\t\t\treturn formatWithHexValue(constantValue, \"0x\" + Integer.toHexString(intValue)); //$NON-NLS-1$\n\n\t\t} else if (constantValue instanceof Long) {\n\t\t\tlong longValue= ((Long) constantValue).longValue();\n\t\t\treturn formatWithHexValue(constantValue, \"0x\" + Long.toHexString(longValue)); //$NON-NLS-1$\n\n\t\t} else {\n\t\t\treturn constantValue.toString();\n\t\t}\n\t}",
"Rule IntConstant() {\n // Push 1 IntConstNode onto the value stack\n return Sequence(\n Sequence(\n Optional(NumericSign()),\n OneOrMore(Digit())),\n actions.pushIntConstNode());\n }",
"private void checkIfConstant()\r\n/* 23: */ {\r\n/* 24: 49 */ boolean isConstant = true;\r\n/* 25: 50 */ int c = 0;\r\n/* 26: 50 */ for (int max = getChildCount(); c < max; c++)\r\n/* 27: */ {\r\n/* 28: 51 */ SpelNode child = getChild(c);\r\n/* 29: 52 */ if (!(child instanceof Literal)) {\r\n/* 30: 53 */ if ((child instanceof InlineList))\r\n/* 31: */ {\r\n/* 32: 54 */ InlineList inlineList = (InlineList)child;\r\n/* 33: 55 */ if (!inlineList.isConstant()) {\r\n/* 34: 56 */ isConstant = false;\r\n/* 35: */ }\r\n/* 36: */ }\r\n/* 37: */ else\r\n/* 38: */ {\r\n/* 39: 59 */ isConstant = false;\r\n/* 40: */ }\r\n/* 41: */ }\r\n/* 42: */ }\r\n/* 43: 63 */ if (isConstant)\r\n/* 44: */ {\r\n/* 45: 64 */ List<Object> constantList = new ArrayList();\r\n/* 46: 65 */ int childcount = getChildCount();\r\n/* 47: 66 */ for (int c = 0; c < childcount; c++)\r\n/* 48: */ {\r\n/* 49: 67 */ SpelNode child = getChild(c);\r\n/* 50: 68 */ if ((child instanceof Literal)) {\r\n/* 51: 69 */ constantList.add(((Literal)child).getLiteralValue().getValue());\r\n/* 52: 70 */ } else if ((child instanceof InlineList)) {\r\n/* 53: 71 */ constantList.add(((InlineList)child).getConstantValue());\r\n/* 54: */ }\r\n/* 55: */ }\r\n/* 56: 74 */ this.constant = new TypedValue(Collections.unmodifiableList(constantList));\r\n/* 57: */ }\r\n/* 58: */ }",
"public void generateByteCode(Optimizer opt) {}",
"public byte[] getByteCode() {\n return byteCode;\n }",
"public Object visitIntegerConstant(GNode n) {\n xtc.type.Type result;\n \n result = cops.typeInteger(n.getString(0));\n \n return result.getConstant().bigIntValue().longValue();\n }",
"public String getAttrCode() {\r\n\t\treturn attrCode;\r\n\t}",
"public boolean isConstant()\r\n/* 92: */ {\r\n/* 93:112 */ return this.constant != null;\r\n/* 94: */ }",
"public boolean isConstant() {\n\t\treturn this.isConstant;\n\t}",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"public String toString ()\n {\n return (\"CONSTANT_String\\t\" + \"stringIndex=\\t\" + stringIndex);\n }",
"public com.google.protobuf.ByteString\n getCodeBytes() {\n java.lang.Object ref = code_;\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 code_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public default boolean isConstant() {\n\t\treturn getValue().isConstantAddress();\n\t}"
] | [
"0.6834132",
"0.6381141",
"0.6308251",
"0.62670964",
"0.6105736",
"0.60879785",
"0.6083281",
"0.6008476",
"0.58782583",
"0.5726451",
"0.57262033",
"0.5670707",
"0.5670327",
"0.5667782",
"0.5667287",
"0.5608699",
"0.5583726",
"0.5581802",
"0.5581643",
"0.5579311",
"0.55749387",
"0.5556462",
"0.55467504",
"0.55367255",
"0.55123377",
"0.5511581",
"0.54944146",
"0.5487538",
"0.5469609",
"0.5467769",
"0.54575336",
"0.5446593",
"0.5445854",
"0.54362863",
"0.54129",
"0.5404563",
"0.5391597",
"0.5381506",
"0.53766704",
"0.53218085",
"0.53153425",
"0.5314264",
"0.5298237",
"0.5296528",
"0.5293299",
"0.5282759",
"0.5278821",
"0.5258919",
"0.52575153",
"0.5253207",
"0.5227577",
"0.521742",
"0.521742",
"0.52135676",
"0.52041",
"0.51809984",
"0.51397336",
"0.5126635",
"0.5110652",
"0.5082953",
"0.5074734",
"0.5067413",
"0.5057604",
"0.50558686",
"0.5038498",
"0.50205594",
"0.4997217",
"0.4996363",
"0.49954396",
"0.49923632",
"0.49904308",
"0.49904308",
"0.4987136",
"0.49851432",
"0.49846625",
"0.49756187",
"0.4974658",
"0.49689436",
"0.49673128",
"0.4958734",
"0.49553287",
"0.49543414",
"0.49508265",
"0.4943709",
"0.49421296",
"0.49395376",
"0.49388528",
"0.49387702",
"0.4936762",
"0.4932193",
"0.4931991",
"0.4931132",
"0.49274912",
"0.49274912",
"0.49274912",
"0.49274912",
"0.49274912",
"0.49266776",
"0.4921163",
"0.4916992"
] | 0.5245056 | 50 |
Return the value of this constant as an Object of the appropriate type (String, Integer, Double, etc), or null if not set. | public Object getValue() {
if (_valueIndex <= 0)
return null;
return ((ConstantEntry) getPool().getEntry(_valueIndex)).getConstant();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getValue() {\n Object o = null; \n if (type == \"string\") { o = svalue; }\n if (type == \"int\" ) { o = ivalue; }\n return o;\n }",
"protected Object getDefaultValue() {\r\n if (FeatureCollectionTools.isAttributeTypeNumeric((AttributeType) this.typeDropDown.getSelectedItem())) {\r\n AttributeType at = (AttributeType) this.typeDropDown.getSelectedItem();\r\n\r\n if (at.equals(AttributeType.INTEGER)) {\r\n int i = Integer.parseInt(this.defValueTextField.getText());\r\n return new Integer(i);\r\n }\r\n double d = Double.parseDouble(this.defValueTextField.getText());\r\n return new Double(d);\r\n }\r\n return this.defValueTextField.getText();\r\n }",
"public Type getValue() {\n Type ret = null;\n try {\n Constructor constructor = valueClass.getConstructor(new Class[] { String.class });\n ret = (Type) constructor.newInstance(data);\n } catch (Exception e) {\n throw new ClassCastException();\n }\n return ret;\n }",
"protected static Value getValue(Object obj)\n {\n Value v = new Value();\n\n switch(getDataTypeFromObject(obj))\n {\n case Boolean:\n return v.setBoolean((Boolean) obj);\n case Integer:\n return v.setInteger((java.lang.Integer) obj);\n case Long:\n return v.setLong((java.lang.Long) obj);\n case Double:\n return v.setDouble((java.lang.Double) obj);\n default:\n return v.setString((java.lang.String) obj);\n }\n }",
"ValueType getValue();",
"Object getValueFrom();",
"int getValue() {\r\n switch (this) {\r\n case Boolean:\r\n return BOOLEAN;\r\n case Number:\r\n return NUMBER;\r\n case Array:\r\n return ARRAY;\r\n default:\r\n return STRING;\r\n }\r\n }",
"protected static Object getObjectFromValue(Value value)\n {\n switch (value.getDataType())\n {\n case Boolean:\n return value.getBoolean();\n case Integer:\n return value.getInteger();\n case Long:\n return value.getLong();\n case Double:\n return value.getDouble();\n default:\n return value.getString();\n }\n }",
"@Override\n\tObject getValue() {\n\t try {\n\t\tObject value = getField.get(object);\n\t\tif (value instanceof Enum)\n\t\t return value.toString();\n\t\treturn value;\n\t }\n\t catch (IllegalAccessException ex) {\n\t\treturn null;\n\t }\n\t}",
"public String getCreationValue(Object obj, Database db)\r\n throws ReflectiveOperationException {\r\n if (fieldAccess.isConstantGetValue()) {\r\n return (String) getValue(obj);\r\n }\r\n else if (obj != null) {\r\n return db.formatValue(getValue(obj), databaseSetMethod.getParameterTypes()[1], false);\r\n }\r\n else {\r\n return \"?\";\r\n }\r\n }",
"public /* @Nullable */ T getValue() {\n return value;\n }",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getConvertedValue() throws ConversionException;",
"public Object getValue() {\r\n return oValue;\r\n }",
"public String getValueAsString() {\n return value == null ? StringUtils.EMPTY : value.toString();\n }",
"public Object getValue();",
"public Object getValue();",
"public Object getValue();",
"public Object getValue();",
"public Object getValue();",
"public org.apache.calcite.avatica.proto.Common.TypedValue getValue() {\n return value_ == null ? org.apache.calcite.avatica.proto.Common.TypedValue.getDefaultInstance() : value_;\n }",
"protected T getValue0() {\n\t\treturn value;\n\t}",
"Object value();",
"public BwValue mkValue() {\n\t\treturn new BwValue(this.sT);\n\t}",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"public String getValueType() {\n String valueType = getAttribute(\"ValueType\");\n if (valueType.equals(\"\"))\n return null;\n return valueType;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic V getValue() {\n\n\t\tif (!valueSet) {\n\t\t\t// If the value has not been set this instance has recently been de-serialized.\n\n\t\t\tif (valueIsSerializable) {\n\t\t\t\t// The original value was serializable and will thus have been been de-serialized too.\n\t\t\t\tsetValue(serializableValue);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// The original value was NOT serializable so we need to generate it from the raw submitted value again.\n\t\t\t\tsetValue((V) coerceValues(type, getConvertedValues(getContext(), param, \"param\", submittedValues, type)));\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t}",
"public static Value createValue(Object val) {\n if (val instanceof String) {\n return new NominalValue((String) val);\n } else if (val instanceof Double) {\n return new NumericValue((Double) val);\n }\n return UnknownValue.getInstance();\n }",
"public @Nullable T getValue() {\n return this.value;\n }",
"public String getValueType() {\n return valueType;\n }",
"public String getValue() {\n return String.valueOf(value);\n }",
"@SuppressWarnings(\"unchecked\")\n @Nullable\n public T getValue() {\n Object data = mData;\n if (data != NOT_SET) {\n return (T) data;\n }\n return null;\n }",
"public Object getValue() {\r\n return value;\r\n }",
"public Object getValue() {\n return value;\n }",
"public Object getValue() {\n return value;\n }",
"public Object getValue() {\n return value;\n }",
"public Object getValue() {\n return value;\n }",
"public Object getValue() {\n return value;\n }",
"public <T> T readValue() {\n return readObject();\n }",
"String getValue()\n {\n return value.toString();\n }",
"private Object _getJSONTextValue() {\r\n if (_textValue != null) {\r\n switch (_type.getValue()) {\r\n case Type.BOOLEAN:\r\n return Boolean.valueOf(_textValue);\r\n case Type.NUMBER:\r\n return Double.valueOf(_textValue);\r\n default:\r\n return _textValue;\r\n }\r\n }\r\n return JSONNull.getInstance().toString();\r\n }",
"public String getVal() {\n Object ref = val_;\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 if (bs.isValidUtf8()) {\n val_ = s;\n }\n return s;\n }\n }",
"public Object getValue()\n {\n return value;\n }",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"public final String getPrimitiveStringValue() {\r\n return (String) (value = value.toString());\r\n }",
"public String getVal() {\n Object ref = val_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n val_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public Object getValue() {\n\t\treturn value;\n\t}",
"public Object getValue() {\n\t\treturn value;\n\t}",
"@Override\r\n public Object getValue() {\r\n return value;\r\n }",
"public final Object getValue()\n {\n return m_Value;\n }",
"public Object getValue() { return this.value; }",
"public org.apache.calcite.avatica.proto.Common.TypedValue getValue() {\n if (valueBuilder_ == null) {\n return value_ == null ? org.apache.calcite.avatica.proto.Common.TypedValue.getDefaultInstance() : value_;\n } else {\n return valueBuilder_.getMessage();\n }\n }",
"public Object getValue() {\n\t\t\treturn value;\n\t\t}",
"public T getValue();",
"public Object getValue() { return _value; }",
"private Object createObjectFromAttValue(final AttImpl item) {\n \n \t\tif (item.getType().equals(STRING_TYPE)) {\n \t\t\treturn item.getValue();\n \t\t} else if (item.getType().equals(INT_TYPE)) {\n \t\t\treturn new Integer(item.getValue());\n \t\t} else if (item.getType().equals(FLOAT_TYPE)) {\n \t\t\treturn new Double(item.getValue());\n \t\t} else if (item.getType().equals(BOOLEAN_TYPE)) {\n \t\t\treturn new Boolean(item.getValue());\n \t\t}\n \n \t\t// outta here\n \t\treturn null;\n \t}",
"@Override\r\n public ConceptType getValue()\r\n {\r\n ConceptType value = this.value;\r\n String rawValue = this.getRawValue();\r\n if (null != value && value.getDisplay().equals(rawValue))\r\n return value;\r\n return super.getValue();\r\n }",
"public Object getValue() {\n\t\treturn object;\n\t}",
"public double getConvertedValue() {\n return value;\n }",
"public T getRawValue(){\n return mValue;\n }",
"@SuppressWarnings(\"unchecked\")\n public <V> V getValue() {\n return (V) this.value;\n }",
"@NotNull\n T getValue();",
"public String getValue( )\n {\n return _strValue;\n }",
"public Object getValue()\n {\n\treturn value;\n }",
"public T getValue() {\n return value;\n }",
"public T getValue() {\n return value;\n }",
"public T getValue() {\n return value;\n }",
"public T getValue() {\n return value;\n }",
"public T getValue() {\n return value;\n }",
"@Override\n\t\t\tpublic String getValue() {\n\t\t\t\treturn value;\n\t\t\t}",
"public T getValue() \n\t{\n\t\treturn value;\n\t}",
"@Override\n public Object getValue()\n {\n return value;\n }",
"@NonNull\n public T getRequestedValue() {\n return mRequestedValue;\n }",
"public Optional<T> getValue() {\n return Optional.ofNullable(value);\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getStringValueBytes() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (typeCase_ == 5) {\n type_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Object getValue()\r\n {\r\n return this.value;\r\n }",
"@Override\n public String getValue() {\n return this.value.toString();\n }",
"public T getValue() {\n\t\treturn value;\n\t}",
"public T getValue() {\n\t\treturn value;\n\t}",
"public T getValue() {\n\t\treturn value;\n\t}",
"private static String getValue(Object o) {\n if (o != null) {\n return o.toString();\n }\n return \"null\";\n }",
"public abstract Object getValue();",
"public abstract Object getValue();",
"public abstract Object getValue();",
"@java.lang.Override\n public double getRealValue() {\n if (typeCase_ == 4) {\n return (java.lang.Double) type_;\n }\n return 0D;\n }"
] | [
"0.7234192",
"0.67341566",
"0.64932907",
"0.6480933",
"0.62345624",
"0.61921084",
"0.61280227",
"0.61236995",
"0.6106396",
"0.6087238",
"0.60485876",
"0.6045009",
"0.6045009",
"0.6045009",
"0.6045009",
"0.6045009",
"0.6045009",
"0.6045009",
"0.6030074",
"0.59918094",
"0.59347534",
"0.59333223",
"0.59333223",
"0.59333223",
"0.59333223",
"0.59333223",
"0.59284115",
"0.5907768",
"0.5894595",
"0.5884995",
"0.5855737",
"0.5855737",
"0.5855737",
"0.5855737",
"0.5855737",
"0.5855737",
"0.58468914",
"0.5840277",
"0.5837338",
"0.5828151",
"0.5825146",
"0.5821348",
"0.5815032",
"0.5807819",
"0.5804228",
"0.5804228",
"0.5804228",
"0.5804228",
"0.5804228",
"0.57999486",
"0.57850015",
"0.57826394",
"0.57803786",
"0.5778337",
"0.57777387",
"0.57777387",
"0.57777387",
"0.57777387",
"0.57777387",
"0.57777387",
"0.5771251",
"0.5770263",
"0.5765886",
"0.5765886",
"0.57614946",
"0.5754435",
"0.57544106",
"0.5753097",
"0.5746148",
"0.5741816",
"0.57416135",
"0.5737267",
"0.5735127",
"0.5725394",
"0.5721297",
"0.5718346",
"0.5717204",
"0.5716927",
"0.57144743",
"0.5684144",
"0.5683024",
"0.56806624",
"0.56806624",
"0.56806624",
"0.56806624",
"0.5672276",
"0.5672176",
"0.56680244",
"0.5662508",
"0.5658493",
"0.5650233",
"0.56473994",
"0.56436276",
"0.56433",
"0.56433",
"0.56433",
"0.56412786",
"0.5639634",
"0.5639634",
"0.5639634",
"0.5631305"
] | 0.0 | -1 |
Set the value of this constant using the appropriate wrapper Object type (String, Integer, Double, etc). Types that are not directly supported will be converted accordingly if possible. | public void setValue(Object value) {
Class type = value.getClass();
if (type == Boolean.class)
setIntValue((((Boolean) value).booleanValue()) ? 1 : 0);
else if (type == Character.class)
setIntValue((int) ((Character) value).charValue());
else if (type == Byte.class || type == Integer.class
|| type == Short.class)
setIntValue(((Number) value).intValue());
else if (type == Float.class)
setFloatValue(((Number) value).floatValue());
else if (type == Double.class)
setDoubleValue(((Number) value).doubleValue());
else if (type == Long.class)
setLongValue(((Number) value).longValue());
else
setStringValue(value.toString());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPropertyWithAutoTypeCast(Object obj, Object value) {\n if(value==null) {\n setProperty(obj, value);\n return;\n }\n Class<?> propType = getPropertyType();\n if(propType.isAssignableFrom(value.getClass())) {\n setProperty(obj, value);\n return;\n }\n if(value instanceof Long && propType.equals(Integer.class)) {\n setProperty(obj, Integer.valueOf(value.toString()));\n return;\n }\n if(value instanceof Double || value instanceof Float || value instanceof BigDecimal) {\n if(propType.isAssignableFrom(Double.class)) {\n setProperty(obj, Double.valueOf(value.toString()));\n return;\n } else if(propType.isAssignableFrom(Float.class)) {\n setProperty(obj, Float.valueOf(value.toString()));\n return;\n } else if(propType.isAssignableFrom(BigDecimal.class)) {\n setProperty(obj, BigDecimal.valueOf(Double.valueOf(value.toString())));\n return;\n } else {\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }\n }\n if(value instanceof java.util.Date) {\n if(propType.isAssignableFrom(java.sql.Timestamp.class)) {\n setProperty(obj, new java.sql.Timestamp(((java.util.Date) value).getTime()));\n return;\n } else if(propType.isAssignableFrom(java.sql.Date.class)) {\n setProperty(obj, new java.sql.Date(((java.util.Date) value).getTime()));\n return;\n } else {\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }\n }\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n private void setStringValue(final String valueString) {\n // figure out the type of T and create object based on T=Integer, T=Double, T=Boolean, T=Valuable\n if (value instanceof List<?>) {\n List list = (List) get();\n list.clear();\n // remove start and end spaces\n String valueString2 = valueString.replaceAll(\"^\\\\s+\", \"\");\n valueString2 = valueString2.replaceAll(\"\\\\s+$\", \"\");\n // split into space-separated bits\n String[] valuesString = valueString2.split(\"\\\\s+\");\n for (int i = 0; i < valuesString.length; i++) {\n if (theClass.equals(Integer.class)) {\n list.add(new Integer(valuesString[i % valuesString.length]));\n } else if (theClass.equals(Double.class)) {\n list.add(new Double(valuesString[i % valuesString.length]));\n } else if (theClass.equals(Boolean.class)) {\n String str = valuesString[i % valuesString.length].toLowerCase();\n list.add(str.equals(\"1\") || str.equals(\"true\") || str.equals(\"yes\"));\n } else if (theClass.equals(String.class)) {\n list.add(new String(valuesString[i % valuesString.length]));\n }\n }\n return;\n }\n\n if (theClass.equals(Integer.class)) {\n setValue(new Integer(valueString));\n return;\n }\n if (theClass.equals(Double.class)) {\n \tsetValue(new Double(valueString));\n return;\n }\n if (theClass.equals(Boolean.class)) {\n final String valueString2 = valueString.toLowerCase();\n if (valueString2.equals(\"yes\") || valueString2.equals(\"true\")) {\n \tsetValue(Boolean.TRUE);\n return;\n } else if (valueString2.equals(\"no\") || valueString2.equals(\"false\")) {\n \tsetValue(Boolean.FALSE);\n return;\n }\n }\n if (theClass.equals(Function.class)) {\n \tfinal Function.Constant param = new Function.Constant(valueString);\n \tsetValue(param);\n param.getOutputs().add(BEASTObjectStore.INSTANCE.getBEASTObject(beastObject));\n return;\n }\n\n if (theClass.isEnum()) {\n \tif (possibleValues == null) {\n \t\tpossibleValues = (T[]) theClass.getDeclaringClass().getEnumConstants();\n \t}\n for (final T t : possibleValues) {\n if (valueString.equals(t.toString())) {\n \tsetValue(t);\n return;\n }\n }\n throw new IllegalArgumentException(\"Input 104: value \" + valueString + \" not found. Select one of \" + Arrays.toString(possibleValues));\n }\n\n // call a string constructor of theClass\n try {\n Constructor ctor;\n Object v = valueString;\n try {\n \tctor = theClass.getDeclaredConstructor(String.class);\n } catch (NoSuchMethodException e) {\n \t// we get here if there is not String constructor\n \t// try integer constructor instead\n \ttry {\n \t\tif (valueString.startsWith(\"0x\")) {\n \t\t\tv = Integer.parseInt(valueString.substring(2), 16);\n \t\t} else {\n \t\t\tv = Integer.parseInt(valueString);\n \t\t}\n \tctor = theClass.getDeclaredConstructor(int.class);\n \t\n \t} catch (NumberFormatException e2) {\n \t// could not parse as integer, try double instead\n \t\tv = Double.parseDouble(valueString);\n \tctor = theClass.getDeclaredConstructor(double.class);\n \t}\n }\n ctor.setAccessible(true);\n final Object o = ctor.newInstance(v);\n setValue(o);\n if (o instanceof BEASTInterface) {\n ((BEASTInterface) o).getOutputs().add(BEASTObjectStore.INSTANCE.getBEASTObject(beastObject));\n }\n } catch (Exception e) {\n throw new IllegalArgumentException(\"Input 103: type mismatch, cannot initialize input '\" + getName() +\n \"' with value '\" + valueString + \"'.\\nExpected something of type \" + getType().getName() +\n \".\\n\" + (e.getMessage() != null ? e.getMessage() : \"\"));\n }\n }",
"public void setValue(Object value);",
"public void setValue(Object val);",
"public void setValue(Object value) { this.value = value; }",
"public void setValue(Object value) {\n setValue(value.toString());\n }",
"void setValue(Object value);",
"@Override public void setLocalValue(Object value) {\n if (value instanceof Long) this.value = (Long)value;\n else if (value instanceof Integer) this.value = (long)((Integer)value);\n else throw new XDError(\"setLocalValue() called with invalid object type\",this,value);\n }",
"public final void value(Object o) {\n value(objectToInt(o));\n valueType = OBJECT_TYPE;\n }",
"@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}",
"public abstract void setValue(T value);",
"@Override public void setValue(Object newValue) throws XDException {\n preread();\n Long tempValue;\n if (newValue instanceof Long) tempValue = (Long)newValue;\n else if (newValue instanceof Integer) tempValue = ((Integer)newValue).longValue();\n else if (newValue instanceof String) {\n try { tempValue = Long.parseLong((String)newValue); }\n catch (NumberFormatException e) { throw new XDException(Errors.VALUE_FORMAT, this,\"Invalid number format\", newValue); }\n }\n else if (newValue == null) throw new XDError(this, \"setValue() is given a null\");\n else throw new XDError(this, \"setValue() is given an unknown class\");\n if (getBase() == Base.UNSIGNED && tempValue < 0) throw new XDException(Errors.VALUE_OUT_OF_RANGE, this, \"Unsigned data cannot be assigned a negative value\");\n long minimum = longValueOf(Meta.MINIMUM, Long.MIN_VALUE);\n long maximum = longValueOf(Meta.MAXIMUM, Long.MAX_VALUE);\n if (tempValue < minimum) throw new XDException(Errors.VALUE_OUT_OF_RANGE, this, \"Value of \" + tempValue + \" exceeds minimum of \" + minimum);\n if (tempValue > maximum) throw new XDException(Errors.VALUE_OUT_OF_RANGE, this, \"Value of \" + tempValue + \" exceeds maximum of \" + maximum);\n value = tempValue;\n markDirty();\n }",
"public void setValue(Object o){\n \tthis.value = o;\n }",
"public void setValue(final Object value) { _value = value; }",
"public void Convert() {\n value = value;\n }",
"void setValue(T value);",
"void setValue(T value);",
"void setValue(T value) throws YangException;",
"protected void setValue(T value) {\r\n this.value = value;\r\n }",
"public void setValue(T value) {\n this.value = value;\n }",
"void setObject(int index, Object value, int sqlType, int scale)\n throws SQLException;",
"public ValueWrapper(Object value) {\n\t\tsuper();\n\t\tthis.value = value;\n\t}",
"@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}",
"void setValue(Object object, Object value);",
"@Override\n\tpublic void setValue(Object object) {\n\n\t}",
"public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }",
"public native void set(T value);",
"public void setValue(S s) { value = s; }",
"@Override\n public void setValue(Object val)\n {\n value = val;\n }",
"public abstract Object adjust(Object value, T type);",
"public void setValue(T value) {\n/* 134 */ this.value = value;\n/* */ }",
"public void setValue(T value) \n\t{\n\t\tthis.value = value;\n\t}",
"public void setValue(Object value) {\n this.value = value;\n }",
"void setObjectValue(Object dataObject);",
"public void setValue(T value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(T value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(Object value)\r\n\t{\r\n\t\tm_value = value;\r\n\t}",
"public static void set_Type(String s, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaTypeCmd, s, v);\n UmlCom.check();\n \n UmlBuiltin b = (UmlBuiltin) UmlSettings._map_builtins.get(s);\n \n if (b == null)\n b = UmlSettings.add_type(s);\n b.java = v;\n }",
"public void set(String name, Object value) {\n }",
"void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}",
"public void setData(T val) {\r\n\t\tthis.val = val;\r\n\t}",
"@Test\n public void testSetValue()\n {\n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.LONG);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue(5L);\n assertThat(m_SUT.getValue(), is((Object)5L));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.INTEGER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue(25);\n assertThat(m_SUT.getValue(), is((Object)25));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.SHORT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue((short)10);\n assertThat(m_SUT.getValue(), is((Object)(short)10));\n\n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BYTE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue((byte)120);\n assertThat(m_SUT.getValue(), is((Object)(byte)120));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.DOUBLE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue(1.22);\n assertThat(m_SUT.getValue(), is((Object)1.22));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.FLOAT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue(12.5f);\n assertThat(m_SUT.getValue(), is((Object)12.5f));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BOOLEAN);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue(true);\n assertThat(m_SUT.getValue(), is((Object)true));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.CHARACTER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue('A');\n assertThat(m_SUT.getValue(), is((Object)'A'));\n \n //test invalid types\n m_SUT.setValue(null);\n assertThat(m_SUT.getValue(), is((Object)m_DefaultValues));\n m_SUT.setValue(\"\");\n assertThat(m_SUT.getValue(), is((Object)\"\"));\n }",
"public void setValue(Object value)\r\n {\r\n m_value = value;\r\n }",
"@SuppressWarnings(\"unchecked\")\n public void setValue(Object value) {\n if (element != null) {\n element.setValue((V)value);\n }\n }",
"public JSONType(Object aVal, int aType){\n\t\t\tswitch(aType) {\n\t\t\t\tcase 0:\n\t\t\t\t\t//strVal = (String)aVal;\n\t\t\t\t\tval = (String)aVal;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\t//iVal = (Integer)aVal;\n\t\t\t\t\tval = (Integer)aVal;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\t//dVal = (Double)aVal;\n\t\t\t\t\tval = (Double)aVal;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\t//System.out.println(\"JSONTtype got boolean in [\" + aVal + \"]\");\n\t\t\t\t\tval = (Boolean) aVal;\n\t\t\t\t\t//bVal = (Boolean) aVal;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t}\n\t\t\ttype = aType;\n\t\t}",
"public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}",
"public void setField(String fieldName, String value, Class type) {\n Field field;\n try {\n field = this.getClass().getField(fieldName);\n } catch (NoSuchFieldException e) {\n log.error(String.format(\"Data record does not have field - %s. Error: %s\", fieldName, e.getMessage()));\n return;\n }\n\n final String typeString = type.toString();\n\n if (typeString.equals(Double.class.toString())) {\n setDouble(field, value);\n } else if (typeString.equals(String.class.toString())) {\n setString(field, value);\n }\n }",
"public V setValue(V value);",
"public void setValueOf( final Object value, final R row, final C columnEnum ) {}",
"void setObject(int index, Object value, int sqlType)\n throws SQLException;",
"public void setValue (String Value);",
"public void setValueClass(Class<? extends Type> valueClass) {\n this.valueClass = valueClass;\n }",
"protected abstract void setValue(V value);",
"public void setValue2(Object value2) { this.value2 = value2; }",
"public void testSetNumber() {\n ValueString vs = new ValueString();\n\n vs.setNumber(0);\n assertEquals(\"0.0\", vs.getString());\n vs.setNumber(1);\n assertEquals(\"1.0\", vs.getString());\n vs.setNumber(-1);\n assertEquals(\"-1.0\", vs.getString());\n vs.setNumber(2.5);\n assertEquals(\"2.5\", vs.getString());\n vs.setNumber(2.8);\n assertEquals(\"2.8\", vs.getString());\n }",
"public Value(String s) {\n string = s;\n itemClass = String.class;\n type = DataType.STRING;\n }",
"public abstract void setValue(double fltValue);",
"public SeriesInstance setType( String theString) {\n\t\tmyType = new StringDt(theString); \n\t\treturn this; \n\t}",
"protected static Value getValue(Object obj)\n {\n Value v = new Value();\n\n switch(getDataTypeFromObject(obj))\n {\n case Boolean:\n return v.setBoolean((Boolean) obj);\n case Integer:\n return v.setInteger((java.lang.Integer) obj);\n case Long:\n return v.setLong((java.lang.Long) obj);\n case Double:\n return v.setDouble((java.lang.Double) obj);\n default:\n return v.setString((java.lang.String) obj);\n }\n }",
"public SeriesInstance setType(StringDt theValue) {\n\t\tmyType = theValue;\n\t\treturn this;\n\t}",
"public void setValue(double newV) { // assuming REST API update at instantiation - must be a Set method to prevent access to a variable directly\n this.Value=newV;\n }",
"public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }",
"public Number(final T theVal)\n {\n if (theVal instanceof Integer) {\n myInt = (Integer) theVal;\n isInt = true;\n } else if (theVal instanceof Double) {\n myDouble = (Double) theVal;\n isDouble = true;\n } else if (theVal instanceof Float) {\n myFloat = (Float) theVal;\n isFloat = true;\n } else if (theVal instanceof Long) {\n myLong = (Long) theVal;\n isLong = true;\n }\n }",
"@Test\n public void testSetValue_SettingSETTING_TYPE_Object() {\n System.out.println(\"setValue\");\n final Path testPath = Paths.get(sysProps.getProperty(\"user.dir\"), \"test\", \"net\", \"dbcrd\",\n \"DBCUtilLib\", \"testfiles\", \"settingsTestFolder\");\n\n Setting s1 = Setting.factory();\n assertEquals(Setting.SETTING_TYPE.UND, s1.getStype());\n assertEquals(\"undefined\", s1.getValue());\n\n s1.setValue(Setting.SETTING_TYPE.TSTRING, \"a String\");\n assertEquals(Setting.SETTING_TYPE.TSTRING, s1.getStype());\n assertEquals(\"a String\", s1.getValue());\n\n File f = testPath.toFile();\n s1.setValue(Setting.SETTING_TYPE.TSTRING, f);\n Object o = s1.getValue();\n assertTrue(o instanceof String);\n assertEquals(f.toString(), o);\n\n s1.setValue(Setting.SETTING_TYPE.TFILE, f);\n o = s1.getValue();\n assertTrue(o instanceof Path);\n assertEquals(f, ((Path) o).toFile());\n\n s1.setValue(Setting.SETTING_TYPE.TPATH, f);\n o = s1.getValue();\n assertTrue(o instanceof Path);\n assertEquals(f.toPath(), o);\n\n }",
"public void set(T pValue) {\n mValue = pValue;\n }",
"public T set(T obj);",
"public abstract void setValue(Context c, Object v) throws PropertyException;",
"public static void setClsDatatypeProperty(OWLOntology ont, String clsname,\n\t\t\tString rel, String value, OWLOntologyManager manager)\n\t\t\tthrows OWLException {\n\n\t\tOWLClass cls = factory.getOWLClass(IRI.create(clsname));\n\t\tOWLDataProperty theprop = factory.getOWLDataProperty(IRI.create(rel));\n\t\tOWLLiteral valueconstant = factory.getOWLTypedLiteral(value);\n\n\t\tOWLClassExpression propdesc = factory.getOWLDataHasValue(theprop,\n\t\t\t\tvalueconstant);\n\t\tOWLSubClassOfAxiom axiom = factory.getOWLSubClassOfAxiom(cls, propdesc);\n\t\tAddAxiom addAxiom = new AddAxiom(ont, axiom);\n\t\tmanager.applyChange(addAxiom);\n//\t\tSBMLreactionCollector.logfilewriter.println(\"[\" + cls.toString() + \"->\"\n//\t\t\t\t+ theprop.toString() + \"->\" + valueconstant.toString()\n//\t\t\t\t+ \"] asserted\");\n\t}",
"@JsProperty(name = \"type\")\n public native void setType(String value);",
"public Object getValue() {\n Object o = null; \n if (type == \"string\") { o = svalue; }\n if (type == \"int\" ) { o = ivalue; }\n return o;\n }",
"private Object setDefaultValue(Object value, Object defaultValue){\r\n\t\tif(value !=null && (value instanceof String && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse if(value !=null && (value instanceof Double && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse if(value !=null && (value instanceof Integer && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse if(value !=null && (value instanceof Long && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn defaultValue;\r\n\t\t}\r\n\t}",
"private Object setDefaultValue(Object value, Object defaultValue){\r\n\t\tif(value !=null && (value instanceof String && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse if(value !=null && (value instanceof Double && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse if(value !=null && (value instanceof Integer && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse if(value !=null && (value instanceof Long && value.toString().length()>0)){\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn defaultValue;\r\n\t\t}\r\n\t}",
"protected void setValue( String strValue )\n {\n _strValue = strValue;\n }",
"public void set(double val);",
"@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }",
"@Override\n public void set(Object bean, Object value) throws IOException {\n _propertyMutator.longSetter(bean, ((Number) value).longValue());\n }",
"public void setType(String value) {\n this.type = value;\n }",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(Value value) {\n this.value = value;\n }",
"private Type set_value_type(Node n, long xx ) {\n Type[] alltypes = Type.ALL_TYPES();\n _gvn.setype(_ins[0], alltypes[xx(xx,0)]);\n _gvn.setype(_ins[1],((ConNode)_ins[1])._t = alltypes[xx(xx,1)]);\n _gvn.setype(_ins[2],((ConNode)_ins[2])._t = alltypes[xx(xx,2)]);\n _gvn.setype(_ins[3],((ConNode)_ins[3])._t = alltypes[xx(xx,3)]);\n Type vt = n.value(_gvn);\n Type old = _values.put(xx,vt);\n assert old==null;\n return vt;\n }",
"private Object setDefaultValue(Object value, Object defaultValue) {\r\n\t\tif (value != null && (value instanceof String && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else if (value != null && (value instanceof Double && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else if (value != null && (value instanceof Integer && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else if (value != null && (value instanceof Long && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else {\r\n\t\t\treturn defaultValue;\r\n\t\t}\r\n\t}",
"private Object setDefaultValue(Object value, Object defaultValue) {\r\n\t\tif (value != null && (value instanceof String && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else if (value != null && (value instanceof Double && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else if (value != null && (value instanceof Integer && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else if (value != null && (value instanceof Long && value.toString().length() > 0)) {\r\n\t\t\treturn value;\r\n\t\t} else {\r\n\t\t\treturn defaultValue;\r\n\t\t}\r\n\t}",
"public void setType(String newVal) {\n if ((newVal != null && this.type != null && (newVal.compareTo(this.type) == 0)) || \n (newVal == null && this.type == null && type_is_initialized)) {\n return; \n } \n this.type = newVal; \n\n type_is_modified = true; \n type_is_initialized = true; \n }",
"@Override\n public void setValue(Binary value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }",
"Object setValue(Object value) throws NullPointerException;",
"public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }",
"public DataPrimitive(String value) {\n\t\tsuper();\n\t\tif (value == null) {\n\t\t\tthis.value = \"\"; \n\t\t} else {\n\t\t\tthis.value = value;\n\t\t}\n\t}",
"public void setGeneralEncapsulatedObject(DataObject value) {\r\n\t\tBase.set(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT, value);\r\n\t}",
"@Override\n\tpublic void setBindingValue(T value, Object target, BindingEvaluationContext context) {\n\n\t}",
"@Override\n\tpublic void setValue(String arg0, String arg1) {\n\t\t\n\t}",
"@Override\n public Object toJdbcType(Object value) {\n return value;\n }",
"public\t\tvoid\t\tsetValue(String value)\n\t\t{\n\t\tdouble val = Utility.toDouble(value);\n\t\tsetNormalizedValue(val);\n\t\t}",
"public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\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 attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}",
"public abstract void setDoubleImpl(String str, double d, Resolver<Void> resolver);",
"void xsetValue(gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value value);",
"public <T> void set(String key, T value, Class<T> type) {\n this.data.put(key, value);\n }",
"public void setValue(E value)\n {\n }"
] | [
"0.6771022",
"0.646494",
"0.64033026",
"0.63856274",
"0.63631624",
"0.629127",
"0.62840265",
"0.62521166",
"0.61744064",
"0.61644065",
"0.61515945",
"0.6141138",
"0.6140684",
"0.61359566",
"0.6130016",
"0.612499",
"0.612499",
"0.60674495",
"0.60670185",
"0.6037246",
"0.6024845",
"0.6011195",
"0.6007053",
"0.5977299",
"0.5976963",
"0.596543",
"0.5960755",
"0.5947046",
"0.5944917",
"0.5935004",
"0.5927825",
"0.5917263",
"0.5908593",
"0.5854067",
"0.5832298",
"0.5832298",
"0.576539",
"0.5743943",
"0.5742331",
"0.5741527",
"0.5737126",
"0.5731776",
"0.570887",
"0.5692582",
"0.5691098",
"0.5690142",
"0.566102",
"0.56593853",
"0.5635718",
"0.5628359",
"0.56121755",
"0.5601541",
"0.55966246",
"0.55936223",
"0.5577082",
"0.55716556",
"0.55697405",
"0.55540466",
"0.5550835",
"0.55417573",
"0.5537622",
"0.5530033",
"0.55280066",
"0.552763",
"0.55246466",
"0.55176175",
"0.55145764",
"0.55060893",
"0.5498375",
"0.54950565",
"0.54927266",
"0.54927266",
"0.54920805",
"0.5488555",
"0.5480143",
"0.54735947",
"0.5451952",
"0.54498345",
"0.54498345",
"0.54498345",
"0.54498345",
"0.5438839",
"0.5437288",
"0.5434065",
"0.5434065",
"0.5433626",
"0.54270774",
"0.54213583",
"0.54175556",
"0.54146135",
"0.5409744",
"0.5404782",
"0.5404302",
"0.54036975",
"0.54023606",
"0.5393876",
"0.5393317",
"0.53932744",
"0.5390254",
"0.5381526"
] | 0.6655256 | 1 |
Get the value of this int constant, or 0 if not set. | public int getIntValue() {
if (getValueIndex() <= 0)
return 0;
return ((IntEntry) getPool().getEntry(getValueIndex())).getValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final int getInt()\n {\n return intValue;\n }",
"public int getValue() {\n\t\t// Precondition -- The value is a non-negative integer.\n\t\tassert(value >= 0);\n\t\t\n\t\treturn value;\n\t}",
"public static int getValueInt()\n {\n return Util.valueInt;\n }",
"public int intValue( )\n {\n return value;\n }",
"public int intVal(){\n\n if(currentTokenType == TYPE.INT_CONST){\n\n return Integer.parseInt(currentToken);\n }else {\n throw new IllegalStateException(\"Current token is not an integer constant!\");\n }\n }",
"public int get_int_value()\n\t{\n\t\treturn this.int_value;\n\t}",
"public int getIntValue() {\n return intValue_;\n }",
"public int getInt() {\r\n\t\treturn (value.getInt());\r\n\t}",
"public int getIntegerValue() {\r\n\t\t\treturn val;\r\n\t\t}",
"public int intValue() {\n return value;\n }",
"public int getInt(){\n return new BigInteger(this.value).intValue();\n }",
"public int getIntValue() {\n return intValue_;\n }",
"public int intValue() {\r\n return _value;\r\n }",
"public final int getValue() {\n return mValue;\n }",
"public int ZERO() {\n return getInt(setting.ZERO);\n }",
"public int getValue ()\r\n\t{\r\n\t\treturn (m_value);\r\n\t}",
"public int getInt()\n {\n return intValue;\n }",
"public int getInt()\n {\n return intValue;\n }",
"public int getIntValue() {\n return (int)getValue();\n }",
"public int getIntValue(){\n\t\treturn value.intValue();\n\t}",
"public int getValue() {\n return intValue;\n }",
"public int getValue() {\n return intValue;\n }",
"@Override\r\n\tpublic int getInt(int arg) {\n\t\treturn 0;\r\n\t}",
"public int getVal()\n {\n return this.ordinal();\n }",
"public int getValue()\n\t{\n\t\treturn bitHolder.getValue();\n\t}",
"public int getValue() {\n return value_;\n }",
"static public int getDefaultInt () {\n return defaultInt;\n }",
"public int intValue() {\n return m_value;\n }",
"public int getValue() {\n return value_;\n }",
"public int getValue() {\n return value_;\n }",
"public int intValue();",
"public int getValue() {\r\n\t\treturn this.value;\r\n\t}",
"public int getValue() {\r\n\t\treturn this.value;\r\n\t}",
"public int getValue() {\n\t\treturn this.value;\n\t}",
"public int baseZeroValue() {\n return this.value - 1;\n }",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"int getIntValue();",
"public int getValue() {\n\t\treturn value;\n\t}",
"public int getValue() {\n\t\treturn value;\n\t}",
"public int getValue() {\n\t\treturn value;\n\t}",
"public int getValue() {\n\t\treturn value;\n\t}",
"public int getValue() {\n int tmp = value;\n value = -1;\n return tmp;\n }",
"public int getValue() {\n\t\treturn this.getValue();\n\t}",
"public int getValue() {\n\t\t\treturn value;\n\t\t}",
"public int intVal() {\r\n\t\t\tassert kind == Kind.INTEGER_LITERAL;\r\n\t\t\treturn Integer.valueOf(String.copyValueOf(chars, pos, length));\r\n\t\t}",
"public int getValue() {\n\t\treturn _value;\n\t}",
"public int getValue()\n\t{\n\t\treturn value;\n\t}",
"public int getValue()\n\t{\n\t\treturn value;\n\t}",
"public int getValue()\n\t{\n\t\treturn value;\n\t}",
"public int getValue() {\n\t\treturn mValue;\n\t}",
"public static int getNonNegativeInt() {\n int result;\n\n do {\n result = getInt();\n } while (result < 0);\n return result;\n }",
"public int getIntegerValue()\n {\n// if (val != Math.round(val))\n// System.err.println(\"IntegerYoVariable: returning a different value than what it used to be.\");\n return val;\n }",
"public int getValue() {\n return value_;\n }",
"public int getVal()\r\n\t{\r\n\t\treturn value;\r\n\t}",
"public int value() {\r\n\t\treturn value;\r\n\t}",
"@Override\r\n public int intValue() {\r\n return (int) this.m_current;\r\n }",
"public Int() {\n super(Expression.X_IS_UNDEFINED);\n this.value = 0;\n }",
"@Override\n public int intValue(int numId) {\n return 0;\n }",
"@Override\n public int getIntValue()\n {\n return value;\n }",
"Integer getValue();",
"Integer getValue();",
"public int getValue() {\n return this.value;\n }",
"public int getValue() {\n return this.value;\n }",
"public int getValue() {\n return this.value;\n }",
"public int getValue() {\n return this.value;\n }",
"public int getValue() {\n return this.value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getIntDefaultValue() {\n\t\t\treturn this.intDefaultValue;\n\t\t}",
"public int getValue() {\n return mValue;\n }",
"public int get_int() {\n return local_int;\n }",
"public int getValue () {\n return value;\n }",
"public int getValue(){\n\t\treturn value;\n\t}",
"private final int initializeInt() {\n\t\treturn 0;\r\n\t}",
"public int getValue() {\r\n return value;\r\n }",
"public int getValue();",
"public int getValue();",
"public int getValue() {\n return this.value;\n }",
"public int getValue() {\n return mValue;\n }",
"int intValue();",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }",
"public int getValue() {\n return value;\n }"
] | [
"0.74323744",
"0.73202103",
"0.7307931",
"0.72668546",
"0.71900326",
"0.71385837",
"0.7019389",
"0.70053655",
"0.7004451",
"0.69768",
"0.69738644",
"0.6970003",
"0.69569623",
"0.6954898",
"0.69431037",
"0.6908692",
"0.6867876",
"0.6867876",
"0.6865284",
"0.6840079",
"0.6799785",
"0.6799785",
"0.6796355",
"0.6793128",
"0.67900854",
"0.67670494",
"0.6752073",
"0.6725969",
"0.6711258",
"0.6711258",
"0.66900754",
"0.66647583",
"0.66647583",
"0.66532415",
"0.6647708",
"0.6633425",
"0.6633425",
"0.6633425",
"0.6633425",
"0.6633425",
"0.6633425",
"0.6633425",
"0.6633425",
"0.66258895",
"0.6625708",
"0.6625708",
"0.6625708",
"0.6625708",
"0.66232663",
"0.66209704",
"0.66013676",
"0.6598294",
"0.6597119",
"0.6595293",
"0.6595293",
"0.6595293",
"0.65940017",
"0.65794593",
"0.6576131",
"0.65615857",
"0.6561034",
"0.6550656",
"0.6545873",
"0.6543675",
"0.65412843",
"0.6540064",
"0.6535221",
"0.6535221",
"0.6530197",
"0.65294874",
"0.65294874",
"0.65294874",
"0.65294874",
"0.6529331",
"0.6529331",
"0.6521685",
"0.65212625",
"0.6520806",
"0.6516373",
"0.65145445",
"0.6512893",
"0.65083134",
"0.6505557",
"0.6505557",
"0.65023637",
"0.6495533",
"0.64933115",
"0.64893794",
"0.64893794",
"0.64893794",
"0.64893794",
"0.64893794",
"0.64893794",
"0.64893794",
"0.64893794",
"0.64893794",
"0.64893794",
"0.64893794",
"0.64893794",
"0.64893794"
] | 0.661574 | 50 |
Set the value of this int constant. | public void setIntValue(int value) {
setValueIndex(getPool().findIntEntry(value, true));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void\t\tset(int val) { value = val; }",
"public void setValue(int value) {\r\n this.value = value;\r\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"private static void setValueInt(int value)\n {\n Util.valueInt = value;\n }",
"public void setValue(int value)\n {\n this.value = value;\n }",
"public void set(int value){\n val = value;\n }",
"public void setValue(int value);",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(int value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(int value) {\n\t\tthis._value = value;\n\t}",
"public void setValue(int val)\r\n {\r\n value = val;\r\n }",
"public void setValue(int value) {\n m_value = value;\n }",
"public void set(int value)\n\t{\n\t\tbitHolder.setValue(value);\n\t}",
"public void set(int value) {\n this.value = BigInteger.valueOf(value).toByteArray();\n }",
"public void setValue(int value) {\n\t\tm_value = value;\n\t}",
"public int setValue(int value) {\n\t\tthis.value = value;\n\t\treturn 0;\n\t}",
"void setToValue(int val);",
"public void set(int value)\n {\n set(value, true);\n }",
"public void setInteger(int value) {\n this.value = value;\n }",
"public void setInteger(int value) {\n this.value = value;\n }",
"public void setVal(int value) {\n this.val = value;\n }",
"void setValue(int value);",
"void setIntValue(int value)\n {\n this.value = value;\n }",
"public void setValue(Integer value) {\n _value = value ;\n }",
"public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }",
"public int setValue (int val);",
"public void set_value(int value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(Integer value) {\n\t\tthis.value = value;\n\t}",
"public void setInteger(int value){}",
"public abstract void setValue(int value);",
"public final void set(int newValue) {\n value = newValue;\n }",
"public void setInteger(int value);",
"public Builder setIntValue(int value) {\n bitField0_ |= 0x00000010;\n intValue_ = value;\n onChanged();\n return this;\n }",
"public void setInt(int val) {\n\t\tcp.setInt(val);\n\t}",
"public void setIntValue(int newValue){\n value = newValue; //set value to newValue\n }",
"public void setInt(int value)\n\t{\n\t\tsetText(String.valueOf(value));\n\t}",
"public void setValue(int new_value){\n this.value=new_value;\n }",
"public void setInt(int addr, int val) throws ProgramException {\n setLittleEndian(addr, Integer.BYTES, val);\n }",
"public void setValue(int n) {\n\t\t\tthis.value = n;\n\t}",
"public void setInteger(int value) {\n\t\tthis.integer = value;\n\t}",
"public MutableInt(int newval) {\n value = newval;\n }",
"public void setIntValue(int v)\n {\n this.setValue(String.valueOf(v));\n }",
"public Builder setValue(int value) {\n bitField0_ |= 0x00000001;\n value_ = value;\n onChanged();\n return this;\n }",
"public abstract void setInteger(int value);",
"void setValue(int value) {\n if (isPowerOfTwo(value)) {\n this.value = value;\n } else {\n throw new IllegalArgumentException(\"Value has to be a power of 2\");\n }\n }",
"public void setValue(int value)\n {\n if(this.valueInt == value)\n {\n return;\n }\n this.valueInt = value;\n treeModel.nodeChanged(this.treeNode);\n }",
"public void setInteger(Integer value) {\r\n\t\ttype(ConfigurationItemType.INTEGER);\r\n\t\tthis.integerValue = value;\r\n\t}",
"public void setValue(int value) {\n\t\tif (value < 0)\n\t\t\tthrow new InvalidValueException(value);\n\n\t\tthis.value = value;\n\t}",
"public void setValue (int newValue) {\n myValue = newValue;\n }",
"public Int(int v) {\n value = v;\n }",
"public ElementConstantInteger(int value) {\n\t\tsuper();\n\t\tthis.value = value;\n\t}",
"public void setValue(int newValue) {\t\r\n\t\tthis.value = newValue;\r\n\t}",
"public ElementConstantInteger(int value) {\r\n\t\tsuper();\r\n\t\tthis.value = value;\r\n\t}",
"void xsetValue(org.apache.xmlbeans.XmlInt value);",
"void set_int(ThreadContext tc, RakudoObject classHandle, int Value);",
"public Int(int value) {\n super(Expression.X_IS_UNDEFINED);\n this.value = value;\n }",
"@Override\n\tpublic void setValue(String path, int value) {\n\t\tsetValue(path, new Integer(value));\n\t}",
"void setInt(int attributeValue);",
"public void setInt(String name, Integer value) {\n parameters.get(name).setValue(value);\n }",
"public SettableIntField(final SettableIntValue value) {\r\n this.value = value;\r\n this.addStyleName(\"settableInt\");\r\n updateDisplay();\r\n disposer.observe(value, new Observer() {\r\n public void onChange() {\r\n updateDisplay();\r\n }\r\n });\r\n addValueChangeHandler(new ValueChangeHandler<String>() {\r\n public void onValueChange(ValueChangeEvent<String> event) {\r\n try {\r\n int newValue = Integer.parseInt(event.getValue());\r\n value.setValue(newValue);\r\n } catch(NumberFormatException err) {\r\n Window.alert(\"Got number format exception. value was \" + event.getValue());\r\n updateDisplay();\r\n }\r\n }\r\n });\r\n }",
"public void set_int(int param) {\n this.local_int = param;\n }",
"public Builder setValue(int value) {\n \n value_ = value;\n onChanged();\n return this;\n }",
"public Constant (int value){\r\n this.value = value;\r\n\r\n }",
"public MutableInteger(int value) {\n m_value = value;\n }",
"public void setValue (int value)\r\n\t{\r\n\t\tsuper.setText (Integer.toString (value));\r\n\t\tvalidateTextField ();\r\n\t}",
"private void setValue(int value) {\n final boolean changed = mValue != value;\n if (changed || !mValueSet) {\n mValue = value;\n mValueSet = true;\n persistInt(value);\n if (changed) {\n notifyChanged();\n }\n }\n }",
"public final void lazySet(int newValue) {\n unsafe.putOrderedInt(this, valueOffset, newValue);\n }",
"public void setValue(int value) {\n BitSet b = new BitSet();\n addIntToBitset(b, value, 0, 32);\n setMessagePayload(b, getByteSize());\n }",
"public void setInt(String parName, int parVal) throws HibException;",
"public IntHolder( final int value ) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setI(long value) {\n this.i = value;\n }",
"public static void\tset(IntPar par, int val)\n\t{ if (par != NULL) par.value = val; }",
"public Builder setStateValue(int value) {\n state_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"public MyInteger(int value)\n\t{\n\t\tthis.value = value;\n\t}",
"public void setID(java.lang.Integer value);",
"void setInt(boolean reverse, IntsRef ref, int value);",
"public void setValue(int value) {\n\t\tthis.removeAllPCData();\n\t\ttry {\n\t\t\tthis.appendChild(new XPCData(Integer.toString(value)));\n\t\t} catch (Exception e) {\n\t\t\t//ignoring this because it shouldn't break\n\t\t}\n\t}",
"public void setValue(int v) {\n if (!frozen) {\n //if (v > 0 || v <= numSides) {\n if (0 < v && v <= numSides) {\n value = v;\n getValue();\n } else {\n value = v;\n System.out.println(\"Attempted to set value to \" + value + \" , assumed 1.\");\n this.value = 1;\n getValue();\n }\n }\n }",
"Int(int v){\n val = v;\n }",
"public void setMyInt(int myIntIn) {\n myInt = myIntIn;\n }",
"public static void setParameterInt(String key, int value) throws Exception {\n ini.setProperty(key, value);\n systemlog(LogType.DEBUG, \"setParam \" + key + \" to: \" + value);\n }",
"public void setValue(long value) {\n\t this.value = value;\n\t }",
"public void setIntAttribute1(String value) {\n setAttributeInternal(INTATTRIBUTE1, value);\n }",
"public void setIntValue(int intValueIn) {\n\t\tthis.intValue = intValueIn;\n\t}",
"public Builder setStateValue(int value) {\n state_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }",
"public void set(int value) {\n\t\ttem = value;\n\t\tSystem.out.println(\"\\tAir conditioner is set to \" + tem +\" degrees\");\n\t}",
"@Override\n public void setValue (int newValue){\n super.setValue(newValue);\n updateChildesValues(newValue);\n\n }",
"public void set(int i) {\n }",
"public void setDmaValue(int value);",
"public void setInteger(String plcAddress,short value) throws Df1LibraryNativeException\n\t{\n\t\tDf1_Write_Integer(plcAddress,value);\n\t}",
"public Builder setStateValue(int value) {\n state_ = value;\n bitField0_ |= 0x00000800;\n onChanged();\n return this;\n }"
] | [
"0.78330344",
"0.7817697",
"0.78052557",
"0.78052557",
"0.7797286",
"0.7797286",
"0.7797286",
"0.7766598",
"0.7763726",
"0.7757787",
"0.7746458",
"0.7712442",
"0.7712442",
"0.7712442",
"0.7712442",
"0.7712442",
"0.76779544",
"0.76779544",
"0.7677676",
"0.7634758",
"0.7564236",
"0.74986386",
"0.74968964",
"0.74910086",
"0.74835753",
"0.7479165",
"0.74581784",
"0.73971",
"0.73971",
"0.7388121",
"0.7387718",
"0.7373907",
"0.7350329",
"0.7251146",
"0.72060245",
"0.7205907",
"0.7185306",
"0.71658754",
"0.7158474",
"0.7119531",
"0.7118995",
"0.7110942",
"0.7110178",
"0.7082555",
"0.70769465",
"0.70680404",
"0.7051732",
"0.70319265",
"0.70207727",
"0.7018244",
"0.6960565",
"0.69490504",
"0.69362116",
"0.6898083",
"0.68606085",
"0.6850097",
"0.6847829",
"0.68251854",
"0.6771297",
"0.67466587",
"0.6746046",
"0.6741347",
"0.6741152",
"0.67270964",
"0.6717454",
"0.6709288",
"0.66958445",
"0.6656443",
"0.6632865",
"0.6626283",
"0.66068506",
"0.65635484",
"0.6562527",
"0.6481448",
"0.6480566",
"0.640151",
"0.6392417",
"0.63922924",
"0.63833344",
"0.63678163",
"0.6363857",
"0.6295147",
"0.6292083",
"0.6275319",
"0.62716246",
"0.6263457",
"0.626185",
"0.625942",
"0.6239575",
"0.62391794",
"0.6234911",
"0.623373",
"0.6204604",
"0.62027574",
"0.6198402",
"0.61937135",
"0.61765355",
"0.61765337",
"0.61675006",
"0.6166071"
] | 0.73095095 | 33 |
Get the value of this float constant. | public float getFloatValue() {
if (getValueIndex() <= 0)
return 0F;
return ((FloatEntry) getPool().getEntry(getValueIndex())).getValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float getValue() {\n return value_;\n }",
"public static float getValueFloat()\n {\n return Util.valueFloat;\n }",
"public Float getValue() {\n\t\treturn value;\n\t}",
"public Float getValue() {\n\t\treturn value;\n\t}",
"public final float getValue() {\r\n\t\treturn value;\r\n\t}",
"public float getValue() {\n return value_;\n }",
"public float getValue() {\n return value;\n }",
"public float floatValue() {\n return this.value;\n }",
"float getValue();",
"float getValue();",
"float getValue();",
"public float getValue()\n\t{\n\t\treturn this.value;\n\t}",
"public float getValue() {\n\t\treturn value;\n\t}",
"public abstract float getValue();",
"public float floatValue()\n\t\t{\n\t\t\treturn (float) doubleValue();\n\t\t}",
"public Float getValue () {\r\n\t\treturn (Float) getStateHelper().eval(PropertyKeys.value);\r\n\t}",
"public float floatValue() {\r\n return (float) intValue();\r\n }",
"public float floatValue() {\n return (float) value;\n }",
"public float getValue()\r\n {\r\n return getSemanticObject().getFloatProperty(swps_floatValue);\r\n }",
"@Override\r\n public float floatValue() {\r\n return (float) this.m_current;\r\n }",
"public float _getValue()\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n return (getValue() / max);\r\n } else\r\n {\r\n return getValue();\r\n }\r\n }",
"public float floatValue() {\n return (float) m_value;\n }",
"public float floatValue() {\n return ( (Float) getAllele()).floatValue();\n }",
"public float floatValue() {\n\t\treturn (float) mDouble;\n\t}",
"public float getFloatValue() {\n \t\treturn floatValue;\n \t}",
"public float toFloat() {\n return this.toFloatArray()[0];\n }",
"public float get_float() {\n return local_float;\n }",
"public float fetchConstant() {\n\t\treturn fetchConstantService.getConstantValue();\n\t}",
"public double value(){\n\t return (double) this.f;\n }",
"float getConst();",
"public double floatValue() {\n\treturn numerator/(double)denominator;\n }",
"public FloatType asFloat() {\n return TypeFactory.getIntType(toInt(this.getValue())).asFloat();\n }",
"public float getRealValue()\r\n\t{\r\n\t\treturn realValue;\r\n\t}",
"@Override\n\tpublic float value() {\n\t\treturn currnet().value();\n\t}",
"public float getRawValue() { return rawValue; }",
"public float getVal() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 8);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 8);\n\t\t}\n\t}",
"public double getValue() {\n return value_;\n }",
"public double getValue() {\n return value_;\n }",
"public Float F(String key) throws AgentBuilderRuntimeException {\n\t\treturn getFloat(key);\n\t}",
"public double getF();",
"float getEFloat();",
"double getFloatingPointField();",
"public double getValue() {\n return this._value;\n }",
"public double getValue() {\n return value;\n }",
"public double getValue() {\n return value;\n }",
"public double getValue() {\n return value;\n }",
"public Vector3 getValue() {\n\t\treturn this.value;\n\t}",
"public double getValue() {\n\t\treturn value;\n\t}",
"public double getValue() {\n\t\treturn value;\n\t}",
"public double getValue() {\n\t\treturn value;\n\t}",
"public float getCurrentValue() {\n return currentValue;\n }",
"public double getValue() {\r\n return this.value;\r\n }",
"public double getValue() {\n return this.value;\n }",
"public double getValue() {\n return this.value;\n }",
"public double getValue()\n {\n return this.value;\n }",
"public double getValue() {\r\n\t\treturn value;\r\n\t}",
"public float getFloat(String key)\n {\n return getFloat(key, 0);\n }",
"public double getValue() {\n\t\treturn(value);\n\t}",
"public double getValue() {\n\t\treturn this.value; \n\t}",
"public double getValue() {\n\t\treturn this.value;\n\t}",
"public double value() {\r\n return value;\r\n }",
"protected abstract float getValue(Entity e,FloatTrait t);",
"final public float getFloatAttr() {\r\n\t\t\tif(mName.length() == 0)\r\n\t\t\t\treturn -1;\r\n\t\t\tif(mSaveAttr == null)\r\n\t\t\t\treturn getAttr(mName).Value;\r\n\t\t\treturn mSaveAttr.Value;\r\n\t\t}",
"public double getValue(){\n return value;\n }",
"public float getAsFloat(){\n return (new Float(getAsCents()) / 100);\n }",
"public double getValue();",
"FloatValue createFloatValue();",
"FloatValue createFloatValue();",
"public Float getFloatAttribute();",
"Double getStartFloat();",
"public float getFloat(int pos) {\n return Tuples.toFloat(getObject(pos));\n }",
"public float getMinValue();",
"public static float fVal( Number n ){\n if ( n == null )\n return 0f;\n return n.floatValue();\n }",
"public synchronized float getProgressFloat() {\n BigDecimal bigDecimal = BigDecimal.valueOf(mProgress);\n return bigDecimal.setScale(mScale, BigDecimal.ROUND_HALF_UP).floatValue();\n }",
"public float unpackFloat() {\n return buffer.getFloat();\n }",
"Double getFreeFloat();",
"public Float getFloat(float defaultVal) {\n return get(ContentType.FloatType, defaultVal);\n }",
"public Double getValue() {\n return value;\n }",
"public Double getValue() {\n return value;\n }",
"Double getValue();",
"@Nullable\r\n public Float getFloat(String key) {\r\n return getFloat(key, null);\r\n }",
"public float evaluateAsFloat();",
"double getValue();",
"double getValue();",
"double getValue();",
"public Double value() {\n return this.value;\n }",
"@Override\n\tpublic float getStartValue() {\n\t\treturn value;\n\t}",
"public double getValue()\r\n\t{\r\n\t\treturn (double) value;\r\n\t}",
"@Override\n\tpublic double getValue() {\n\t\treturn value;\n\t}",
"public double getValue() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 1.00;\n\t}",
"public float approach_x_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 41, 4))); }",
"public float approach_x_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 40, 4))); }",
"public float f(String key) throws AgentBuilderRuntimeException {\n\t\treturn getFloat(key).floatValue();\n\t}",
"double getValue() {\n return mValue;\n }",
"public float getReturn()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RETURN$0, 0);\r\n if (target == null)\r\n {\r\n return 0.0f;\r\n }\r\n return target.getFloatValue();\r\n }\r\n }",
"@Override\n\tpublic Type getType() {\n\t\treturn Type.FLOAT;\n\t}",
"@Override\r\n\tpublic float getFloat(int pos) {\n\t\treturn buffer.getFloat(pos);\r\n\t}",
"public double getValue()\n\t{\n\t\treturn ifD1.getValue();// X100 lux\n\t}",
"public abstract float read_float();",
"String getFloat_lit();"
] | [
"0.80981225",
"0.8069575",
"0.7959677",
"0.7959677",
"0.7958516",
"0.7954697",
"0.79401517",
"0.7926731",
"0.7897038",
"0.7897038",
"0.7897038",
"0.78717",
"0.78606427",
"0.7811298",
"0.7799767",
"0.7783215",
"0.77786815",
"0.776025",
"0.7745613",
"0.7686085",
"0.7598866",
"0.7586269",
"0.75207204",
"0.7518511",
"0.7421437",
"0.7327081",
"0.7264133",
"0.7239444",
"0.7208435",
"0.7190565",
"0.71676254",
"0.7060727",
"0.70074105",
"0.6956597",
"0.69230944",
"0.6797486",
"0.6749407",
"0.6700828",
"0.6661479",
"0.66489375",
"0.66348594",
"0.6629806",
"0.66101795",
"0.658947",
"0.658947",
"0.658947",
"0.65698534",
"0.6569266",
"0.6569266",
"0.6569266",
"0.655598",
"0.6555929",
"0.65556484",
"0.65556484",
"0.655504",
"0.65454775",
"0.65226555",
"0.65221965",
"0.6519827",
"0.6519455",
"0.6506085",
"0.6492017",
"0.64903814",
"0.6488519",
"0.64858764",
"0.64780396",
"0.6475605",
"0.6475605",
"0.6472338",
"0.64706075",
"0.6464341",
"0.64598674",
"0.64515084",
"0.6450299",
"0.64372367",
"0.6422171",
"0.6411786",
"0.64108866",
"0.64108866",
"0.6396623",
"0.638717",
"0.63778156",
"0.635371",
"0.635371",
"0.635371",
"0.6351515",
"0.63495255",
"0.63474554",
"0.6341855",
"0.63397884",
"0.6331283",
"0.63303787",
"0.6323962",
"0.63119906",
"0.6299718",
"0.628772",
"0.6282848",
"0.6282462",
"0.628018",
"0.6270792"
] | 0.7327976 | 25 |
Set the value of this float constant. | public void setFloatValue(float value) {
setValueIndex(getPool().findFloatEntry(value, true));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setValue(float value) {\n this.value = value;\n }",
"public void setValue(float val)\n\t{\n\t\tthis.value = val;\n\t}",
"public void setfVal(float value){\n this.fVal = value;\n }",
"public final void setValue(final float value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(float value)\n {\n \tPixelVal = value;\n }",
"public void setValue(float value)\r\n {\r\n getSemanticObject().setFloatProperty(swps_floatValue, value);\r\n }",
"private static void setValueFloat(float value)\n {\n Util.valueFloat = value;\n }",
"public void setValue(Float value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(float value)\n {\n if(this.valueFloat == value)\n {\n return;\n }\n this.valueFloat = value;\n treeModel.nodeChanged(this.treeNode);\n }",
"public Builder setValue(float value) {\n bitField0_ |= 0x00000002;\n value_ = value;\n onChanged();\n return this;\n }",
"public void _setValue(float val)\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n setValue((int) (val * 100));\r\n } else\r\n {\r\n setValue((int) val);\r\n }\r\n }",
"public void setValue(float value) {\n\t\tthis.value = value;\n\t\tthis.rawValue=Float.toString(value);\n\t}",
"public void setValue ( Float value ) {\r\n\t\tgetStateHelper().put(PropertyKeys.value, value);\r\n\t\thandleAttribute(\"value\", value);\r\n\t}",
"public void set_float(float param) {\n this.local_float = param;\n }",
"public void setVal(float val) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 8, val);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 8, val);\n\t\t}\n\t}",
"public void setFloatValue(float v)\n {\n this.setValue(String.valueOf(v));\n }",
"public abstract void setValue(double fltValue);",
"public void setFloat(String plcAddress,float value) throws Df1LibraryNativeException\n\t{\n\t\tDf1_Write_Float(plcAddress,value);\n\t}",
"protected abstract void setValue(Entity e,FloatTrait t,float value);",
"public void setCurrentValue(float currentValue) {\n this.currentValue = currentValue;\n }",
"FloatAttribute(String name, float value) {\r\n super(name);\r\n this.value = value;\r\n }",
"public void setSensorValue (float value) {\n this.currentSensorValue = value;\n }",
"public Builder setX(float value) {\n bitField0_ |= 0x00000001;\n x_ = value;\n onChanged();\n return this;\n }",
"public Builder setX(float value) {\n bitField0_ |= 0x00000001;\n x_ = value;\n onChanged();\n return this;\n }",
"public void set(float signal);",
"public void setDef(float def);",
"public void setgVal(float value){\n this.gVal = value;\n }",
"public void set(double val);",
"public void setValue(double val) {\n this.val = val;\n }",
"public void setValue(double value) {\n this.value = value; \n }",
"public void setFloat() {\n \t\tthis.leftMotor.stop();\n \t\tthis.rightMotor.stop();\n \t\tthis.leftMotor.flt(true);\n \t\tthis.rightMotor.flt(true);\n \t}",
"public void setValue(double value) {\n this.value = value;\n }",
"public void setValue(double value) {\n this.value = value;\n }",
"public void setValue(double value) {\n this.value = value;\n }",
"public void setX(float f)\n {\n fx = f;\n setMagnitude();\n }",
"public void setAfloat(boolean x){\r\n \tafloat = x;\r\n }",
"@Override\r\n\tpublic Buffer setFloat(int pos, float f) {\n\t\treturn null;\r\n\t}",
"public void setE(java.lang.Float value) {\n this.e = value;\n }",
"public void setFloat(String name, Float value) {\n parameters.get(name).setValue(value);\n }",
"public void setValue (double value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(double value) {\r\n\t\tthis.value = value;\r\n\t}",
"public Value(float f) {\n aFloat = f;\n itemClass = Float.class;\n type = DataType.FLOAT;\n }",
"public void set(float x0) {\n\t\tgrow(1);\n\t\tdata[length++] = x0;\n\t}",
"public void setFloat(boolean value) {\r\n\t\tisFloatType = value;\r\n\t}",
"private void setValue(double value) {\n this.value = value;\n }",
"public void setM(java.lang.Float value) {\n this.m = value;\n }",
"@Generated\n @Selector(\"setFalloff:\")\n public native void setFalloff(@NFloat double value);",
"public void setValue(double value) {\n\t\tthis.value = value;\n\t}",
"void setValue(double value);",
"public void setSurfaceValue(float value)\n throws VisADException, RemoteException {\n boolean change = !Util.isApproximatelyEqual(surfaceValue, value);\n surfaceValue = value;\n if (change) {\n changeControl(true);\n }\n }",
"@Override\n public void set(double value)\n {\n final String funcName = \"set\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"value=%f\", value);\n }\n\n if (!TrcUtil.inRange(value, -1.0, 1.0))\n {\n throw new IllegalArgumentException(\"Value must be in the range of -1.0 to 1.0.\");\n }\n\n if (softLowerLimitEnabled && value < 0.0 && getPosition() <= softLowerLimit\n || softUpperLimitEnabled && value > 0.0 && getPosition() >= softUpperLimit)\n {\n value = 0.0;\n }\n\n if (maxVelocity == 0.0)\n {\n currPower = value;\n }\n // else\n // {\n // controlMode = ControlMode.Velocity;\n // value *= maxVelocity;\n // value = TrcUtil.round(value); // Velocity mode is in sensor units/100ms, and sensor units are in integers.\n // }\n motor.set(value);\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"! (value=%f)\", value);\n }\n }",
"void setX(float x) {\n _x = x;\n }",
"public void setFloat(String key, float value) {\n\t\tif (getDefault(key) != null && (Float) getDefault(key) != value)\n\t\t\tinternal.setProperty(key, Float.toString(value));\n\t\telse\n\t\t\tinternal.remove(key);\n\t}",
"public Builder setA(float value) {\n bitField0_ |= 0x00000001;\n a_ = value;\n onChanged();\n return this;\n }",
"public void setFloat(String label, Integer v) {\n\t\t\n\t\tthis.floatDataLabelPrepare.add(label);\n\t\tthis.floatDataPrepare.add((float)v);\n\t}",
"public void setVar77(java.lang.Float value) {\n this.var77 = value;\n }",
"public void setValue(float f, Object obj) {\n int constrain = MathUtils.constrain((int) Math.ceil((double) (f / this.mFrameWidth)), 1, this.mSize - 1);\n float f2 = this.mFrameWidth;\n interpolate(constrain, (f - (((float) (constrain - 1)) * f2)) / f2, obj);\n }",
"public void set(int index, float value) {\r\n RangeCheck(index);\r\n elementData[index] = value;\r\n }",
"public void setValue(MyDouble val) {\n this.val = val.getValue();\n }",
"public void setSpeed(float val) {speed = val;}",
"void setFloat(int index, float value) throws SQLException;",
"public baconhep.TTau.Builder setM(float value) {\n validate(fields()[3], value);\n this.m = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"public void setF(){\n\t\tf=calculateF();\n\t}",
"public void set(int index, float value) {\n storage[index] = value;\n }",
"public void setFxUfSpot(double value) {\r\n this.fxUfSpot = value;\r\n }",
"public void setVar23(java.lang.Float value) {\n this.var23 = value;\n }",
"public OCFloat(float val)\r\n {\r\n super(val, 4);\r\n }",
"public Builder setB(float value) {\n bitField0_ |= 0x00000002;\n b_ = value;\n onChanged();\n return this;\n }",
"public static void fieldSetFloat(final Class<?> cls, final String name,\r\n final Object inst, final float value) throws SecurityException,\r\n NoSuchFieldException, IllegalArgumentException, IllegalAccessException {\r\n final Field field = jvmGetField(cls, name);\r\n field.setFloat(inst, value);\r\n }",
"public Flt(float f) {this.f = new Float(f);}",
"@Override\r\n\tpublic void setX(float x) {\n\t\t\r\n\t}",
"public void setValue(Number value) {\n this.value = value;\n }",
"public DynamicPart value(float value) {\n this.value = value;\n return this;\n }",
"public void setFaceValue(double f){\n\t\tface = f ;\n\t}",
"public void set(int dim, float f)\n {\n switch(dim)\n {\n case 0:\n {\n fx = f;\n }\n case 1:\n {\n fy = f;\n }\n case 2:\n {\n fz = f;\n }\n default:\n {\n Log.d(\"debug1\", \"Bad Float Set to Vector.\");\n }\n }\n setMagnitude();\n }",
"public void setVar131(java.lang.Float value) {\n this.var131 = value;\n }",
"public void setVar275(java.lang.Float value) {\n this.var275 = value;\n }",
"public void setValue(Number value) {\n setAttributeInternal(VALUE, value);\n }",
"public baconhep.TTau.Builder setE(float value) {\n validate(fields()[4], value);\n this.e = value;\n fieldSetFlags()[4] = true;\n return this; \n }",
"public ByteBuf setFloat(int index, float value)\r\n/* 307: */ {\r\n/* 308:322 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 309:323 */ return super.setFloat(index, value);\r\n/* 310: */ }",
"public abstract void setFloatImpl(String str, double d, Resolver<Void> resolver);",
"public com.dj.model.avro.LargeObjectAvro.Builder setVar230(java.lang.Float value) {\n validate(fields()[231], value);\n this.var230 = value;\n fieldSetFlags()[231] = true;\n return this;\n }",
"public void setVar41(java.lang.Float value) {\n this.var41 = value;\n }",
"public void setValue(double newvalue){\n value = newvalue;\n }",
"public void setFlySpeed ( float value ) throws IllegalArgumentException {\n\t\texecute ( handle -> handle.setFlySpeed ( value ) );\n\t}",
"public void setX(double value) {\n this.x = value;\n }",
"public void setFloat(int parameterIndex, float x) throws SQLException {\n currentPreparedStatement.setFloat(parameterIndex, x);\n\n }",
"public void setValue(double newV) { // assuming REST API update at instantiation - must be a Set method to prevent access to a variable directly\n this.Value=newV;\n }",
"public void setVar59(java.lang.Float value) {\n this.var59 = value;\n }",
"public void setX(float x) {\n this.x = x;\n }",
"@Override\r\n public float floatValue() {\r\n return (float) this.m_current;\r\n }",
"public float floatValue() {\n return this.value;\n }",
"void writeFloat(float value);",
"@Override\n\tpublic void setX(float x) {\n\n\t}",
"@Override\n\tpublic void setX(float x) \n\t{\n\t\t_x = x;\n\t}",
"public com.dj.model.avro.LargeObjectAvro.Builder setVar77(java.lang.Float value) {\n validate(fields()[78], value);\n this.var77 = value;\n fieldSetFlags()[78] = true;\n return this;\n }",
"public void setVar176(java.lang.Float value) {\n this.var176 = value;\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder setVar23(java.lang.Float value) {\n validate(fields()[24], value);\n this.var23 = value;\n fieldSetFlags()[24] = true;\n return this;\n }",
"public void flt()\n\t{\n\t\tupdateState( MotorPort.FLOAT);\n\t}",
"public void set(double d);"
] | [
"0.81595814",
"0.80938977",
"0.79887134",
"0.7890176",
"0.7837853",
"0.7832577",
"0.7828943",
"0.7742245",
"0.75576925",
"0.75562227",
"0.7552754",
"0.7430614",
"0.742032",
"0.7397669",
"0.7282692",
"0.7103515",
"0.70484537",
"0.7011241",
"0.6914781",
"0.68685484",
"0.6854446",
"0.6850295",
"0.6844532",
"0.6844532",
"0.6837826",
"0.6815132",
"0.6808427",
"0.68006",
"0.6765638",
"0.6751528",
"0.6749299",
"0.67404824",
"0.67404824",
"0.67404824",
"0.6739301",
"0.67275286",
"0.66998327",
"0.66912806",
"0.6682337",
"0.665776",
"0.66560435",
"0.66504514",
"0.66219133",
"0.66095024",
"0.6603509",
"0.6588228",
"0.65697366",
"0.6555485",
"0.6549179",
"0.6497517",
"0.64892477",
"0.64771485",
"0.64435464",
"0.643245",
"0.64134043",
"0.6410544",
"0.6367246",
"0.6355036",
"0.63506263",
"0.6332425",
"0.63275576",
"0.63261545",
"0.6325537",
"0.6300738",
"0.62710106",
"0.62638944",
"0.6257833",
"0.62566847",
"0.6254966",
"0.6242575",
"0.6241285",
"0.623563",
"0.6221103",
"0.6200807",
"0.61902547",
"0.61788744",
"0.61757183",
"0.6175163",
"0.6172674",
"0.616328",
"0.61612207",
"0.6152823",
"0.61466527",
"0.6135587",
"0.6127641",
"0.61196524",
"0.6118663",
"0.6094851",
"0.6086196",
"0.608323",
"0.60791606",
"0.60685056",
"0.6058922",
"0.6057201",
"0.60487336",
"0.6040772",
"0.60385525",
"0.6032954",
"0.6031354",
"0.6030644"
] | 0.75516725 | 11 |
Get the value of this double constant. | public double getDoubleValue() {
if (getValueIndex() <= 0)
return 0D;
return ((DoubleEntry) getPool().getEntry(getValueIndex())).getValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double constant()\n\t{\n\t\treturn _dblConstant;\n\t}",
"Double getValue();",
"Double getDoubleValue();",
"public double doubleValue() {\n return this.value;\n }",
"public double getDoubleValue()\n {\n return (double) getValue() / (double) multiplier;\n }",
"public double getValue() {\n return value_;\n }",
"public double getValue() {\n return this._value;\n }",
"public double getValue() {\n\t\treturn(value);\n\t}",
"public double getValue() {\r\n\t\treturn value;\r\n\t}",
"public double getDouble() {\r\n\t\treturn (value.getDouble());\r\n\t}",
"public double getValue() {\n\t\treturn value;\n\t}",
"public double getValue() {\n\t\treturn value;\n\t}",
"public double getValue() {\n\t\treturn value;\n\t}",
"public double getValue() {\n\t\treturn this.value;\n\t}",
"public double getValue()\r\n\t{\r\n\t\treturn (double) value;\r\n\t}",
"public double getValue() {\n return value_;\n }",
"public double getValue() {\n\t\treturn this.value; \n\t}",
"public double doubleValue() {\r\n return (double) intValue();\r\n }",
"public double getValue();",
"public double getValue() {\r\n return this.value;\r\n }",
"public double value()\n\t{\n\t\treturn _dblValue;\n\t}",
"public double getValue() {\n\t\treturn m_dValue;\n\t}",
"public double getDoubleValue() {\n\t\treturn (this.numerator/1.0)/this.denominator;\n\t}",
"public double getValue() {\n return this.value;\n }",
"public double getValue() {\n return this.value;\n }",
"public double doubleValue() {\n return (double) value;\n }",
"public double getValue()\n {\n return this.value;\n }",
"public double getValue() {\n return value;\n }",
"public double getValue() {\n return value;\n }",
"public double getValue() {\n return value;\n }",
"public double getDoubleValue() {\n\t\treturn value;\r\n\t}",
"public double value() {\r\n return value;\r\n }",
"public double getValue(){\n return value;\n }",
"public Double getValue() {\n return value;\n }",
"public Double getValue() {\n return value;\n }",
"public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }",
"public Double value() {\n return this.value;\n }",
"private double getValue() {\n return value;\n }",
"@Override\n\tpublic double getValue() {\n\t\treturn value;\n\t}",
"public double doubleValue() {\n\t\treturn mDouble;\n\t}",
"double getValue();",
"double getValue();",
"double getValue();",
"public double value(){\n\t return (double) this.f;\n }",
"public double doubleValue() {\n return (double) m_value;\n }",
"public double getValue() {\n return NUMERATOR / DENOMINATOR;\n }",
"public double doubleValue();",
"public double asDouble() {\r\n\t\tif (this.what == SCALARTYPE.Integer || this.what == SCALARTYPE.Float) {\r\n\t\t\treturn (new BigDecimal(this.scalar)).doubleValue();\r\n\t\t} else\r\n\t\t\treturn 0; // ritorna un valore di default\r\n\t}",
"public double getDouble();",
"public double getValue() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 1.00;\n\t}",
"public abstract double getValue();",
"double getDoubleValue3();",
"@Override\r\n public double doubleValue() {\r\n return this.m_current;\r\n }",
"public double doubleValue()\n\t\t{\n\t\t\t// Converts BigIntegers to doubles and then divides \n\t\t\treturn (numerator.doubleValue()*1)/denominator.doubleValue();\n\t\t}",
"public Double toDouble() {\n\t\treturn this.getValue().doubleValue();\n\t}",
"double getValue() {\n return mValue;\n }",
"double getDoubleValue2();",
"@Override\n public double getValue()\n {\n return value;\n }",
"public double getValue() {\n return this.num;\n }",
"public double get_double() {\n return local_double;\n }",
"@VTID(14)\r\n double getValue();",
"public double getDoubleValue1() {\n return doubleValue1_;\n }",
"public double getDoubleValue1() {\n return doubleValue1_;\n }",
"public double getValue()\n\t{\n\t\treturn ifD1.getValue();// X100 lux\n\t}",
"double get();",
"double getBasedOnValue();",
"public double getDoubleValue3() {\n return doubleValue3_;\n }",
"public double getValue() {\n\t\treturn sensorval;\n\t}",
"public double getDoubleValue3() {\n return doubleValue3_;\n }",
"public double toDouble() {\n return this.toDoubleArray()[0];\n }",
"double getDoubleValue1();",
"public double getValue() {\n return (numeratorValue * multiplier) / (denominatorValue * divisor);\n }",
"public double value() {\n return ((double) this.numerator / this.denominator);\n }",
"double getRealValue();",
"public double getValue() {\n return 0.05;\n }",
"public double getRealValue() {\n if (typeCase_ == 4) {\n return (java.lang.Double) type_;\n }\n return 0D;\n }",
"@Override\n\tpublic Double get() {\n\t\treturn 0.0;\n\t}",
"@Override\r\n\t\tpublic Double get() {\n\t\t\treturn Math.random();\r\n\t\t}",
"@java.lang.Override\n public double getRealValue() {\n if (typeCase_ == 4) {\n return (java.lang.Double) type_;\n }\n return 0D;\n }",
"@Override\n public double get()\n {\n return unbounded.get();\n }",
"public final DoubleProperty valueProperty() {\n return value;\n }",
"public double getValue(){\n return (double) numerator / (double) denominator;\n }",
"public\n double getValue() {\n double d;\n\n try {\n d = Double.parseDouble(getText());\n } catch (NumberFormatException e) {\n return 0;\n }\n return d;\n }",
"public static double getDouble(Key key) {\n return getDouble(key, 0);\n }",
"public double getDoubleValue2() {\n return doubleValue2_;\n }",
"public double getValue(){\n\t\treturn slider.getValue() ;\n\t}",
"public double obtValor() {\r\n\t\treturn v;\r\n\t}",
"public double getDoubleValue2() {\n return doubleValue2_;\n }",
"public Double getDoubleAttribute();",
"public double getDouble(String key)\n {\n return getDouble(key, 0);\n }",
"public double getDoubleValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a double.\");\n }",
"public double getConvertedValue() {\n return value;\n }",
"public double get (String name) {\n return this.lookup(name);\n }",
"double getEDouble();",
"public abstract Double getDataValue();",
"Rule DoubleConstant() {\n // Push 1 DoubleConstNode onto the value stack\n return Sequence(\n Sequence(\n Optional(NumericSign()),\n ZeroOrMore(Digit()),\n Sequence('.', OneOrMore(Digit())),\n MaybeScientific()),\n actions.pushDoubleConstNode());\n }",
"public double getConstant(String nam) {\r\n Double val=constants.get(nam);\r\n\r\n return (val==null ? 0 : val.doubleValue());\r\n }",
"public static double getDoubleProperty(String key) {\r\n\t\treturn getDoubleProperty(key, 0);\r\n\t}",
"public double getMaxDoubleValue();",
"public static double getDouble() throws Exception {\n return getDouble(null);\n }"
] | [
"0.7889321",
"0.76936173",
"0.76821035",
"0.7657276",
"0.7585649",
"0.7578301",
"0.757087",
"0.7561323",
"0.75551695",
"0.75423735",
"0.754028",
"0.754028",
"0.754028",
"0.75391287",
"0.7534013",
"0.75332516",
"0.7522108",
"0.7514898",
"0.7476842",
"0.7469114",
"0.7457663",
"0.7430967",
"0.7429455",
"0.74270195",
"0.74270195",
"0.7414233",
"0.7408439",
"0.7385995",
"0.7385995",
"0.7385995",
"0.73709315",
"0.7365616",
"0.73644394",
"0.7346359",
"0.7346359",
"0.73084474",
"0.730625",
"0.72690487",
"0.7267441",
"0.7247409",
"0.7240642",
"0.7240642",
"0.7240642",
"0.7200568",
"0.7190176",
"0.7162821",
"0.7160628",
"0.7153662",
"0.71367216",
"0.7091175",
"0.70907503",
"0.7087951",
"0.7053099",
"0.7050701",
"0.70274144",
"0.702642",
"0.7025787",
"0.7024815",
"0.69670326",
"0.6958557",
"0.69252187",
"0.6917919",
"0.69102186",
"0.6901341",
"0.6892531",
"0.68539566",
"0.6841843",
"0.68404776",
"0.68258667",
"0.6823081",
"0.680254",
"0.6795644",
"0.67769176",
"0.6753152",
"0.6751095",
"0.6720747",
"0.6713157",
"0.66963875",
"0.66756016",
"0.66729236",
"0.66643083",
"0.66567844",
"0.660334",
"0.6600065",
"0.65934086",
"0.6588077",
"0.65742445",
"0.65687025",
"0.6551604",
"0.6534956",
"0.6513492",
"0.6502675",
"0.6468949",
"0.6465262",
"0.6457442",
"0.64320123",
"0.6429659",
"0.64186084",
"0.6414977",
"0.6405549"
] | 0.73857045 | 30 |
Set the value of this double constant. | public void setDoubleValue(double value) {
setValueIndex(getPool().findDoubleEntry(value, true));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void set(double val);",
"public void setValue(double value) {\n this.value = value; \n }",
"public void setValue(double value) {\n this.value = value;\n }",
"public void setValue(double value) {\n this.value = value;\n }",
"public void setValue(double value) {\n this.value = value;\n }",
"void setValue(double value);",
"public void set(double d);",
"public void setValue (double value) {\n\t\tthis.value = value;\n\t}",
"private void setValue(double value) {\n this.value = value;\n }",
"public void setValue(double value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(double val) {\n this.val = val;\n }",
"public void setValue(double value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(MyDouble val) {\n this.val = val.getValue();\n }",
"public void setValue(double val) {\r\n\t\tthis.worth = val;\r\n\t}",
"public void setDoubleValue(double v)\n {\n if ((v + dblExtent) > dblMaximum)\n {\n v = dblMaximum - dblExtent;\n }\n if (v < dblMinimum)\n {\n v = dblMinimum;\n }\n double dblValue = v;\n setValue((int) (dblValue * multiplier));\n }",
"@Override\n public void set(double value)\n {\n final String funcName = \"set\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"value=%f\", value);\n }\n\n if (!TrcUtil.inRange(value, -1.0, 1.0))\n {\n throw new IllegalArgumentException(\"Value must be in the range of -1.0 to 1.0.\");\n }\n\n if (softLowerLimitEnabled && value < 0.0 && getPosition() <= softLowerLimit\n || softUpperLimitEnabled && value > 0.0 && getPosition() >= softUpperLimit)\n {\n value = 0.0;\n }\n\n if (maxVelocity == 0.0)\n {\n currPower = value;\n }\n // else\n // {\n // controlMode = ControlMode.Velocity;\n // value *= maxVelocity;\n // value = TrcUtil.round(value); // Velocity mode is in sensor units/100ms, and sensor units are in integers.\n // }\n motor.set(value);\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"! (value=%f)\", value);\n }\n }",
"public void setValue(double newvalue){\n value = newvalue;\n }",
"public abstract void setValue(double fltValue);",
"public Builder setValue(double value) {\n bitField0_ |= 0x00000004;\n value_ = value;\n onChanged();\n return this;\n }",
"public MyDouble(double val) {\n this.setValue(val);\n }",
"public void set_double(double param) {\n this.local_double = param;\n }",
"public static void setConstant(String name, double value) {\r\n\t\tconstants.put(name, value);\r\n\t}",
"public void setA(double value) {\n this.a = value;\n }",
"public void setX(Double x);",
"public DoubleValue(double value) {\n this.value = value;\n }",
"public void setValue(double newV) { // assuming REST API update at instantiation - must be a Set method to prevent access to a variable directly\n this.Value=newV;\n }",
"@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}",
"public BasicDouble(double value) {\r\n\t\tsuper.value = this.value = value;\r\n\t}",
"public Builder setX(double value) {\n bitField0_ |= 0x00000008;\n x_ = value;\n onChanged();\n return this;\n }",
"public Builder setX(double value) {\n bitField0_ |= 0x00000008;\n x_ = value;\n onChanged();\n return this;\n }",
"public Builder setX(double value) {\n bitField0_ |= 0x00000004;\n x_ = value;\n onChanged();\n return this;\n }",
"public Builder setX(double value) {\n bitField0_ |= 0x00000002;\n x_ = value;\n onChanged();\n return this;\n }",
"public Builder setX(double value) {\n bitField0_ |= 0x00000800;\n x_ = value;\n onChanged();\n return this;\n }",
"void setDouble(String key, double val);",
"public Builder setX(double value) {\n bitField0_ |= 0x00000010;\n x_ = value;\n onChanged();\n return this;\n }",
"public Builder setX(double value) {\n bitField0_ |= 0x00000010;\n x_ = value;\n onChanged();\n return this;\n }",
"public Builder setX(double value) {\n bitField0_ |= 0x00000010;\n x_ = value;\n onChanged();\n return this;\n }",
"public void setC(double value) {\n this.c = value;\n }",
"public void setDoubleValue(double doubleValueIn) {\n\t\tthis.doubleValue = doubleValueIn;\n\t}",
"public MathEval setConstant(String nam, double val) {\r\n return setConstant(nam,Double.valueOf(val));\r\n }",
"public void setX(double value) {\n this.x = value;\n }",
"@Override\n\tpublic void setValue(String path, double value) {\n\t\tsetValue(path, new Double(value));\n\t}",
"public void setReal(double real) {this.real = real;}",
"public MyDouble() {\n this.setValue(0);\n }",
"public void set(String name, double value){\n\t\tvalues.put(name, value);\n\t}",
"public void setDoubleValue(double v)\n {\n this.setValue(String.valueOf(v));\n }",
"void setDouble(int index, double value) throws SQLException;",
"public void setB(double value) {\n this.b = value;\n }",
"public void setValue(double value) {\n\t\tif (value > getScaleEnd()) {\n\t\t\tm_dValue = getScaleEnd();\n\t\t\treturn;\n\t\t}\n\n\t\tif (value < getScaleStart()) {\n\t\t\tm_dValue = getScaleStart();\n\t\t\treturn;\n\t\t}\n\n\t\tm_dValue = value;\n\t}",
"public MutableDouble() {\n\t\tsuper();\n mDouble = 0;\n\t}",
"public DoubleValue() {\n this.value = 0;\n }",
"public DoubleValue(double num) {\n this.num = num;\n }",
"public void setStateValue(final State state, final double value) {\r\n getProperties(state).setValue(value);\r\n }",
"public void setDoubleValue(double newDouble) {\n\t\tmDouble = newDouble;\n\t}",
"public void setX(double value) {\n\t\tthis.x = value;\n\t}",
"public void setValue(double d) {\r\n\t\t\tif (isValidValue(d)) {\r\n\t\t\t\tthis.value = (double) Math.round(d * 100.00) / (double) 100.00;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}",
"public Builder setDoubleValue1(double value) {\n \n doubleValue1_ = value;\n onChanged();\n return this;\n }",
"public MutableDouble(double initialValue) {\n\t\tsetDoubleValue(initialValue);\n\t}",
"@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}",
"public Builder setRealValue(double value) {\n typeCase_ = 4;\n type_ = value;\n onChanged();\n return this;\n }",
"@Override\r\n\tpublic Buffer setDouble(int pos, double d) {\n\t\treturn null;\r\n\t}",
"public Builder setValue(final Double value) {\n _value = value;\n return this;\n }",
"void setValue(Endpoint endpoint, double value) {\n endpoint.setValue(this, value);\n }",
"public void setO(double value) {\n this.o = value;\n }",
"public void setPoint(double value) {\r\n this.point = value;\r\n }",
"public ByteBuf setDouble(int index, double value)\r\n/* 313: */ {\r\n/* 314:328 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 315:329 */ return super.setDouble(index, value);\r\n/* 316: */ }",
"public void setP(Double p);",
"@Override\n\tpublic void setClassValue(final double value) {\n\n\t}",
"public abstract void set( int i, int j, double value ) throws JWaveException;",
"public void setX(double value) {\n\t\t\t\tthis.x = value;\n\t\t\t}",
"public void setR(Double r);",
"public DoubleField(double value) {\n\t\tthis(\"\" + value, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY);\n\t}",
"public void setA(double a){\n this.a=a;\n }",
"public void setFactor(Double factor);",
"public void setX(double x){\n this.x = x;\n }",
"public void setX(double x){\n this.x = x;\n }",
"public Builder to(double value) {\n object.setTo(value);\n return this;\n }",
"public void setL(double value) {\n this.l = value;\n }",
"public abstract double set\r\n ( DataID dID // input\r\n , double value // input\r\n );",
"public void setLow(double value){low = value;}",
"public abstract void setDoubleImpl(String str, double d, Resolver<Void> resolver);",
"public void setDm(double value) {\n this.dm = value;\n }",
"public ResultDouble(double value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void defValor(double v) {\r\n\t\tthis.v = v;\r\n\t}",
"public void multiply(MyDouble val) {\n this.setValue(this.getValue() * val.getValue());\n }",
"public void set(float signal);",
"final void setX(double d) {\n x = d;\n }",
"public ConstantGen (double val) {\n this.val = val;\n }",
"public Builder setDoubleValue3(double value) {\n \n doubleValue3_ = value;\n onChanged();\n return this;\n }",
"public void setParam(String paramName, double value);",
"public void set(ControlMode controlMode, double value)\n {\n switch (controlMode)\n {\n case Throttle:\n super.set(value);\n// System.out.printf(\"Port: %d value %f\\n\", port, value);\n break;\n case Position:\n super.getPIDController().setReference(value, ControlType.kPosition);\n break;\n case Velocity:\n super.getPIDController().setReference(value, ControlType.kVelocity);\n break;\n }\n }",
"public void setX(double value) {\n origin.setX(value);\n }",
"public void setFirst(double value) {\n this.first = value;\n }",
"public static void setDouble(String prop, double value)\n {\n props.setProperty(prop, \"\" + value);\n }",
"public void set(String key, double valueInput) {\n\t\tset(key, Double.toString(valueInput));\n\t}",
"public void x(double x) {\n _x = x;\n }",
"public void setX(double x) {\n this.x = x;\r\n }",
"public void setNewMember(double value) {\n }",
"public void setFromValue (double fromValue){\n firstValue = fromValue;\n }",
"public void set(int x, int y, double value) {\n\t\tmatrix.get(y).get(x).setValue(value);\n\t}"
] | [
"0.81999236",
"0.7897708",
"0.7859873",
"0.7859873",
"0.7859873",
"0.78138506",
"0.7784192",
"0.7748018",
"0.77266395",
"0.7725606",
"0.77023655",
"0.7648295",
"0.75707096",
"0.7437003",
"0.72924316",
"0.72809315",
"0.72386575",
"0.72305274",
"0.7227414",
"0.71689963",
"0.7106524",
"0.70673287",
"0.6995771",
"0.6975838",
"0.69077003",
"0.68727535",
"0.6819777",
"0.6811023",
"0.6808505",
"0.6807518",
"0.6804147",
"0.6787369",
"0.67854726",
"0.6775561",
"0.6765638",
"0.6765638",
"0.6763273",
"0.67186844",
"0.6714939",
"0.6706225",
"0.6689564",
"0.66597164",
"0.665408",
"0.6623129",
"0.65956897",
"0.6565722",
"0.6564558",
"0.6550914",
"0.65373677",
"0.65287983",
"0.650959",
"0.64940006",
"0.6491531",
"0.64859235",
"0.6465451",
"0.6458609",
"0.64533126",
"0.64524204",
"0.6448179",
"0.644542",
"0.64394724",
"0.64388883",
"0.64010113",
"0.6396631",
"0.6395252",
"0.6390916",
"0.63826096",
"0.6381299",
"0.6374564",
"0.6349511",
"0.6332767",
"0.63294107",
"0.6324961",
"0.6293548",
"0.62925786",
"0.62925786",
"0.629094",
"0.6288782",
"0.6287865",
"0.62810063",
"0.62785286",
"0.62763435",
"0.6269417",
"0.62651646",
"0.6262087",
"0.62615544",
"0.6261401",
"0.6256821",
"0.6247787",
"0.62473464",
"0.62451863",
"0.6240339",
"0.6224556",
"0.6222766",
"0.6217833",
"0.6212334",
"0.62018365",
"0.620076",
"0.61936194",
"0.6189062"
] | 0.7235026 | 17 |
Get the value of this long constant. | public long getLongValue() {
if (getValueIndex() <= 0)
return 0L;
return ((LongEntry) getPool().getEntry(getValueIndex())).getValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long longValue() {\n return this.value;\n }",
"public long longValue() {\r\n return intValue();\r\n }",
"public long longValue() {\n return value;\n }",
"public long getLongValue() {\n return longValue_;\n }",
"public long getLongValue() {\n return longValue_;\n }",
"long getLongValue();",
"long getLongValue();",
"public long getLongValue() {\n if (typeCase_ == 3) {\n return (java.lang.Long) type_;\n }\n return 0L;\n }",
"public long longValue();",
"public long getValue();",
"public long longValue() {\n return (long) m_value;\n }",
"public long longValue() {\n return number;\n }",
"public long longValue()\n\t\t{\n\t\t\treturn (long) doubleValue();\n\t\t}",
"@java.lang.Override\n public long getLongValue() {\n if (typeCase_ == 3) {\n return (java.lang.Long) type_;\n }\n return 0L;\n }",
"public long getValue() {\n\t\treturn this._value;\n\t}",
"public long getValue() {\n return value_;\n }",
"@Field(2) \n\tpublic long Value() {\n\t\treturn this.io.getLongField(this, 2);\n\t}",
"public long longValue() {\n\t\treturn getSection().longValue();\n\t}",
"public long longValue() {\n\t\treturn (long) mDouble;\n\t}",
"@Override\r\n public long longValue() {\r\n return (long) this.m_current;\r\n }",
"public long getValue() {\n return value_;\n }",
"public long getValue() {\n\treturn value;\n }",
"public abstract long getValue();",
"public abstract long getValue();",
"public long getValue()\n {\n return itsValue;\n }",
"public long get_long() {\n return local_long;\n }",
"public long get() {\n\t\t\treturn get(1);\n\t\t}",
"public long toLong() {\n return this.toLongArray()[0];\n }",
"public long getMyLong() {\n return myLong;\n }",
"public long getLong(String key) {\n\t\tString value = getString(key);\n\t\t\n\t\ttry {\n\t\t\treturn Long.parseLong(value);\n\t\t}\n\t\tcatch( NumberFormatException e ) {\n\t\t\tthrow new IllegalStateException( \"Illegal value for long integer configuration parameter: \" + key);\n\t\t}\n\t}",
"public long upperLongValue() {\n\t\treturn getSection().upperLongValue();\n\t}",
"public static long readlong()\n\t{\n\t\treturn sc.nextLong();\n\t}",
"private static double getLongt() {\n\t\treturn longt;\n\t}",
"public long getLong(String key, long defaultValue);",
"public final long long_literal() throws RecognitionException {\n long value = 0;\n\n\n CommonTree LONG_LITERAL192 = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1187:3: ( LONG_LITERAL )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1187:5: LONG_LITERAL\n {\n LONG_LITERAL192 = (CommonTree) match(input, LONG_LITERAL, FOLLOW_LONG_LITERAL_in_long_literal3262);\n value = LiteralTools.parseLong((LONG_LITERAL192 != null ? LONG_LITERAL192.getText() : null));\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return value;\n }",
"public long longValue(final int i) {\n if (isInteger(i)) {\n return values[i];\n }\n throw new ClassCastException(\"value #\" + i + \" is not a long in \" + this);\n }",
"public long toLong() {\n return nano;\n }",
"public long getLong(@NonNull String name) {\n return getLong(name, /* defaultValue */ 0L);\n }",
"public long evaluateAsLong();",
"public static long getLongProperty(String key) {\r\n\t\treturn getLongProperty(key, 0);\r\n\t}",
"public static long lVal( String psNum ) {\n return lVal( psNum, 0 );\n }",
"private long getLong() {\n longBuffer.rewind();\n archive.read(longBuffer);\n longBuffer.flip();\n return longBuffer.getLong();\n }",
"public static long getLong(String param, long defval) {\n\t\t\n\t\tlong returnValue = defval;\n\t\ttry{\n\t\t\treturnValue = pref().getLong(param, defval);\n\t\t\n\t\t}catch(Exception e){\n\t\t\treturnValue = defval;\n\t\t\t}\t\t\t\n\t\t\n\t\treturn returnValue;\n\t}",
"@Override\r\n\t\tpublic long getValue() {\n\t\t\treturn -1;\r\n\t\t}",
"public int getLongueur()\n\t{\n\t\treturn longueur_;\n\t}",
"public long getLong(int pos) {\n return Tuples.toLong(getObject(pos));\n }",
"long getELong();",
"public long getLongProperty(String key) {\n\t\treturn Long.parseLong(this.getProperty(key));\n\t}",
"public long getLong(String key) {\n long result;\n Object value = get(key);\n if (value instanceof Long) {\n result = (Long)value;\n } else if (value instanceof String) {\n try {\n String valueString = (String)value;\n if (valueString.length() == 0) {\n result = 0;\n } else if (valueString.charAt(0) == '-') {\n result = Long.parseLong(valueString);\n } else {\n result = Long.parseUnsignedLong((String)value);\n }\n } catch (NumberFormatException exc) {\n result = 0;\n }\n } else {\n result = 0;\n }\n return result;\n }",
"public long getAsLong() {\n\t\treturn end - start;\n\t}",
"public org.apache.axis2.databinding.types.UnsignedLong getUnsignedLong() {\n return localUnsignedLong;\n }",
"public Long getLong(String key, Long defaultValue);",
"public long getLong(String key, long defValue) {\r\n\t\treturn getLong(Global.getContext(), key, defValue);\r\n\t}",
"public Longitude get_long()\n {\n\treturn this._long;\n }",
"public long getLongValue(long dft)\n {\n return StringTools.parseLong(this.getValue(), dft);\n }",
"public long getValueAsLongValue() throws DataFieldException {\n\t\ttry {\n\t\t\treturn Long.parseLong(this.value);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tthrow new DataFieldException(\n\t\t\t\t\t\"Couldn't parse value into a long. Value: \" + this.value,\n\t\t\t\t\tnfe);\n\t\t}\n\t}",
"@ApiModelProperty(value = \"Last known longitude (Only for teachers/staff)\")\n public Double getLong() {\n return _long;\n }",
"public static long getLong(String key) throws UnknownID, ArgumentNotValid {\n\t\tString value = get(key);\n\t\ttry {\n\t\t\treturn Long.parseLong(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString msg = \"Invalid setting. Value '\" + value + \"' for key '\" + key + \"' could not be parsed as a long.\";\n\t\t\tthrow new ArgumentNotValid(msg, e);\n\t\t}\n\t}",
"public String getLongToken() {\n return longToken_;\n }",
"public String getLongToken() {\n return longToken_;\n }",
"public int getLongueur() {\r\n return longueur;\r\n }",
"long get();",
"public abstract int read_long();",
"public long longValue() {\n if (originalValue instanceof Long) {\n return (Long) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).longValue();\n } else if (originalValue instanceof String) {\n final String originalString = (String) this.originalValue;\n\n try {\n return Long.parseLong(originalString);\n } catch (NumberFormatException e1) {\n try {\n return (long) Double.parseDouble(originalString);\n } catch (NumberFormatException e2) {\n // it will be more reasonable to throw an exception which\n // indicates that the conversion to long has failed\n e1.addSuppressed(e2);\n throw new CellValueCastException(e1);\n }\n }\n } else {\n throw new CellValueCastException();\n }\n }",
"public int getLongueur() {\n return longueur;\n }",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default long asLong() {\n \n return notSupportedCast(BasicTypeID.LONG);\n }",
"@Test\n\tpublic void test_TCM__long_getLongValue() {\n final Attribute attribute = new Attribute(\"test\", \"\");\n long summand = 3;\n\t for(int i = 0; i < 60; i++) {\n summand <<= 1;\n final long value = Long.MIN_VALUE + summand;\n\n attribute.setValue(\"\" + value);\n \t\ttry {\n \t\t\tassertEquals(\"incorrect long conversion\", attribute.getLongValue(), value);\n \t\t} catch (final DataConversionException e) {\n \t\t\tfail(\"couldn't convert to long\");\n \t\t}\n }\n\n\t\t//test an invalid long\n attribute.setValue(\"100000000000000000000000000\");\n\t\ttry {\n attribute.getLongValue();\n\t\t\tfail(\"incorrect long conversion from non long\");\n\t\t} catch (final DataConversionException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n\t\t}\n\t}",
"public long readVarLong() throws IOException {\n final int type = (int) this.read(2).toLong();\n return this.read(BitOutputStream.varLongDepths[type]).toLong();\n }",
"public String getLongToken() {\n return instance.getLongToken();\n }",
"public String getLongToken() {\n return instance.getLongToken();\n }",
"public Builder setLongValue(long value) {\n bitField0_ |= 0x00000020;\n longValue_ = value;\n onChanged();\n return this;\n }",
"public int getLongueur() {\n\t\treturn this.longueur;\n\t}",
"public static long inputLong()\n\t{\n\t\treturn(sc.nextLong());\n\t}",
"public Long getLong(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.LONG)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Long.class);\n\t\treturn (Long)value.value;\n\t}",
"public final long fixed_64bit_literal() throws RecognitionException {\n long value = 0;\n\n\n int integer_literal47 = 0;\n long long_literal48 = 0;\n short short_literal49 = 0;\n byte byte_literal50 = 0;\n float float_literal51 = 0.0f;\n double double_literal52 = 0.0;\n char char_literal53 = 0;\n boolean bool_literal54 = false;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:301:3: ( integer_literal | long_literal | short_literal | byte_literal | float_literal | double_literal | char_literal | bool_literal )\n int alt11 = 8;\n switch (input.LA(1)) {\n case INTEGER_LITERAL: {\n alt11 = 1;\n }\n break;\n case LONG_LITERAL: {\n alt11 = 2;\n }\n break;\n case SHORT_LITERAL: {\n alt11 = 3;\n }\n break;\n case BYTE_LITERAL: {\n alt11 = 4;\n }\n break;\n case FLOAT_LITERAL: {\n alt11 = 5;\n }\n break;\n case DOUBLE_LITERAL: {\n alt11 = 6;\n }\n break;\n case CHAR_LITERAL: {\n alt11 = 7;\n }\n break;\n case BOOL_LITERAL: {\n alt11 = 8;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 0, input);\n throw nvae;\n }\n switch (alt11) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:301:5: integer_literal\n {\n pushFollow(FOLLOW_integer_literal_in_fixed_64bit_literal649);\n integer_literal47 = integer_literal();\n state._fsp--;\n\n value = integer_literal47;\n }\n break;\n case 2:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:302:5: long_literal\n {\n pushFollow(FOLLOW_long_literal_in_fixed_64bit_literal657);\n long_literal48 = long_literal();\n state._fsp--;\n\n value = long_literal48;\n }\n break;\n case 3:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:303:5: short_literal\n {\n pushFollow(FOLLOW_short_literal_in_fixed_64bit_literal665);\n short_literal49 = short_literal();\n state._fsp--;\n\n value = short_literal49;\n }\n break;\n case 4:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:304:5: byte_literal\n {\n pushFollow(FOLLOW_byte_literal_in_fixed_64bit_literal673);\n byte_literal50 = byte_literal();\n state._fsp--;\n\n value = byte_literal50;\n }\n break;\n case 5:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:305:5: float_literal\n {\n pushFollow(FOLLOW_float_literal_in_fixed_64bit_literal681);\n float_literal51 = float_literal();\n state._fsp--;\n\n value = Float.floatToRawIntBits(float_literal51);\n }\n break;\n case 6:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:306:5: double_literal\n {\n pushFollow(FOLLOW_double_literal_in_fixed_64bit_literal689);\n double_literal52 = double_literal();\n state._fsp--;\n\n value = Double.doubleToRawLongBits(double_literal52);\n }\n break;\n case 7:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:307:5: char_literal\n {\n pushFollow(FOLLOW_char_literal_in_fixed_64bit_literal697);\n char_literal53 = char_literal();\n state._fsp--;\n\n value = char_literal53;\n }\n break;\n case 8:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:308:5: bool_literal\n {\n pushFollow(FOLLOW_bool_literal_in_fixed_64bit_literal705);\n bool_literal54 = bool_literal();\n state._fsp--;\n\n value = bool_literal54 ? 1 : 0;\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 value;\n }",
"public long getMaximumLong() {\n/* 233 */ return this.max;\n/* */ }",
"public Long getLongAttribute();",
"public long getLong(String path)\n {\n if (configuration.contains(path))\n return configuration.getLong(path);\n return defaultConfig.getLong(path);\n }",
"private static long value(long x) {\n return (x<<1) >> 1; // 1\n }",
"public static long getLongParam(String key) throws InvalidParam {\n return getCurrentConfig().getLong(key);\n }",
"public com.google.protobuf.ByteString\n getLongTokenBytes() {\n return instance.getLongTokenBytes();\n }",
"public com.google.protobuf.ByteString\n getLongTokenBytes() {\n return instance.getLongTokenBytes();\n }",
"@Override\r\n\tpublic long getLong(int pos) {\n\t\treturn buffer.getLong(pos);\r\n\t}",
"public com.google.protobuf.ByteString\n getLongTokenBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(longToken_);\n }",
"public com.google.protobuf.ByteString\n getLongTokenBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(longToken_);\n }",
"public long getLong(String name) {\n Enumeration enumer = LONGS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectLongItem item = (SimpleMessageObjectLongItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return -1L;\n }",
"public static long lVal( String psNum, long defaultValue ) {\n if ( psNum == null ) return defaultValue;\n long llVal;\n\n try {\n llVal = Long.valueOf( psNum ).longValue();\n } catch( Exception e ) {\n llVal = defaultValue;\n }\n\n return llVal;\n }",
"public long getValue(int index) {\n return value_.getLong(index);\n }",
"public Long L(String key) throws AgentBuilderRuntimeException {\n\t\treturn getLong(key);\n\t}",
"public long E() {\n return Long.MIN_VALUE;\n }",
"public void setLongValue(long value) {\n setValueIndex(getPool().findLongEntry(value, true));\n }",
"public long getValue(int index) {\n return value_.getLong(index);\n }",
"public double getBboxLongestSide() {\n return getDouble(\"tlong\");\n }",
"public long getMappedValue() {\n\t\treturn this.value;\n\t}",
"public long getLA() {\n return la;\n }",
"public long readLong() {\n while (isEmpty()) {\n }\n Timing.waitSyncLocal();\n readEnable.setNow(1);\n Timing.waitClockLocal();\n return (readData.getLong());\n }",
"public void set_long(long param) {\n this.local_long = param;\n }",
"public java.lang.Long getDefaultLong1() {\n return defaultLong1;\n }",
"public long getMinimumLong() {\n/* 179 */ return this.min;\n/* */ }",
"long readLong();"
] | [
"0.82122386",
"0.81846",
"0.81469345",
"0.80358577",
"0.8035131",
"0.7979165",
"0.7979165",
"0.7928201",
"0.78362626",
"0.783336",
"0.7818155",
"0.7814789",
"0.77490485",
"0.7599828",
"0.75472605",
"0.7502451",
"0.747478",
"0.7474324",
"0.7450822",
"0.7443509",
"0.7418592",
"0.7389521",
"0.7265321",
"0.7265321",
"0.7235143",
"0.711584",
"0.6853911",
"0.6731373",
"0.6709384",
"0.6683036",
"0.6641021",
"0.66273713",
"0.66142046",
"0.6605718",
"0.65592617",
"0.6545142",
"0.65422875",
"0.65162057",
"0.6515539",
"0.6491485",
"0.6445089",
"0.643218",
"0.6421691",
"0.64186704",
"0.6398388",
"0.6378106",
"0.63745254",
"0.63522166",
"0.6342573",
"0.63412887",
"0.63346434",
"0.6329607",
"0.6311551",
"0.6310412",
"0.63032186",
"0.6284684",
"0.6281876",
"0.62593204",
"0.62510556",
"0.62510556",
"0.6246197",
"0.6243295",
"0.6239306",
"0.62361366",
"0.6223915",
"0.6200759",
"0.618251",
"0.6178034",
"0.6167327",
"0.6167327",
"0.61434627",
"0.6142705",
"0.6141733",
"0.6135809",
"0.6117375",
"0.61165357",
"0.61051536",
"0.60938025",
"0.60703194",
"0.60693175",
"0.60626286",
"0.60626286",
"0.6056389",
"0.60538495",
"0.60538495",
"0.60496247",
"0.60466456",
"0.60460347",
"0.603499",
"0.60246074",
"0.6022086",
"0.6015869",
"0.60089576",
"0.60057026",
"0.6004009",
"0.6001138",
"0.5997925",
"0.5977429",
"0.5971503",
"0.59533733"
] | 0.77654165 | 12 |
Set the value of this long constant. | public void setLongValue(long value) {
setValueIndex(getPool().findLongEntry(value, true));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setValue(long value) {\n\t this.value = value;\n\t }",
"public void set(long value) {\n\t\t\tset(1, value);\n\t\t}",
"public Builder setLongValue(long value) {\n bitField0_ |= 0x00000020;\n longValue_ = value;\n onChanged();\n return this;\n }",
"@Override\n public final void setValue(Long value) {\n setValue(value, true);\n }",
"void set(long newValue);",
"public void setLongValue(long v)\n {\n this.setValue(String.valueOf(v));\n }",
"public void set_long(long param) {\n this.local_long = param;\n }",
"public void setLong(int addr, long val) throws ProgramException {\n setLittleEndian(addr, Long.BYTES, val);\n }",
"public Builder setLongValue(long value) {\n typeCase_ = 3;\n type_ = value;\n onChanged();\n return this;\n }",
"void setLong(String key, long val);",
"public void setLong(int offset, long value) {\n for (int i = 0; i < 8; ++i) {\n setByte(offset+i, value >>> (8-i-1 << 3));\n }\n }",
"private void setX(long value) {\n bitField0_ |= 0x00000001;\n x_ = value;\n }",
"public org.apache.gora.cascading.test.storage.TestRow.Builder setColumnLong(java.lang.Long value) {\n validate(fields()[2], value);\n this.columnLong = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public Builder setValue(long value) {\n \n value_ = value;\n onChanged();\n return this;\n }",
"public void setData(long value) {\n this.data = value;\n }",
"public ByteBuf setLong(int index, long value)\r\n/* 295: */ {\r\n/* 296:310 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 297:311 */ return super.setLong(index, value);\r\n/* 298: */ }",
"public void setV(long value) {\n this.v = value;\n }",
"public ByteBuf setLongLE(int index, long value)\r\n/* 811: */ {\r\n/* 812:820 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 813:821 */ return super.setLongLE(index, value);\r\n/* 814: */ }",
"public void setColumnLong(java.lang.Long value) {\n this.columnLong = value;\n setDirty(2);\n }",
"public ByteBuf setLong(int index, long value)\r\n/* 500: */ {\r\n/* 501:514 */ ensureAccessible();\r\n/* 502:515 */ _setLong(index, value);\r\n/* 503:516 */ return this;\r\n/* 504: */ }",
"public void setUnionLong(java.lang.Long value) {\n this.unionLong = value;\n setDirty(5);\n }",
"@Override\r\n\tpublic Buffer setLong(int pos, long l) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void setValue(String path, long value) {\n\t\tsetValue(path, new Long(value));\n\t}",
"public ByteBuf setLongLE(int index, long value)\r\n/* 512: */ {\r\n/* 513:526 */ ensureAccessible();\r\n/* 514:527 */ _setLongLE(index, value);\r\n/* 515:528 */ return this;\r\n/* 516: */ }",
"public void setLA(long value) {\n this.la = value;\n }",
"public void setMyLong(long myLongIn) {\n myLong = myLongIn;\n }",
"public void setLong(String parName, long parVal) throws HibException;",
"void setLong(int index, long value) throws SQLException;",
"public long getLongValue() {\n return longValue_;\n }",
"public void setUnionLong(java.lang.Long value) {\n\t throw new java.lang.UnsupportedOperationException(\"Set is not supported on tombstones\");\n\t }",
"public long longValue() {\n return value;\n }",
"public void setDefaultLong1(java.lang.Long value) {\n\t throw new java.lang.UnsupportedOperationException(\"Set is not supported on tombstones\");\n\t }",
"public void setColumnLong(java.lang.Long value) {\n\t throw new java.lang.UnsupportedOperationException(\"Set is not supported on tombstones\");\n\t }",
"public long getLongValue() {\n return longValue_;\n }",
"public org.apache.gora.cascading.test.storage.TestRow.Builder setUnionLong(java.lang.Long value) {\n validate(fields()[5], value);\n this.unionLong = value;\n fieldSetFlags()[5] = true;\n return this; \n }",
"public long longValue() {\n return this.value;\n }",
"private void setBuild(long value) {\n bitField0_ |= 0x00000004;\n build_ = value;\n }",
"protected void _setLongLE(int index, long value)\r\n/* 519: */ {\r\n/* 520:533 */ HeapByteBufUtil.setLongLE(this.array, index, value);\r\n/* 521: */ }",
"public void setDefaultLong1(java.lang.Long value) {\n this.defaultLong1 = value;\n setDirty(0);\n }",
"public void setI(long value) {\n this.i = value;\n }",
"public void set(final long timeValue) {\n stamp = timeValue;\n }",
"private void setLongToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n longToken_ = value;\n }",
"private void setLongToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n longToken_ = value;\n }",
"private void setVersion(long value) {\n bitField0_ |= 0x00000002;\n version_ = value;\n }",
"public static void setLong(String aKey, long aValue) {\n getSharedPreferences().edit().putLong(aKey, aValue).apply();\n }",
"public void set(int s, long value) {\n\t\t\tif (sign * s < 0) {\n\t\t\t\tdc.setStart(value);\n\t\t\t} else {\n\t\t\t\tdc.setEnd(value);\n\t\t\t}\n\t\t}",
"public org.apache.gora.cascading.test.storage.TestRow.Builder setDefaultLong1(long value) {\n validate(fields()[0], value);\n this.defaultLong1 = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"private void setAmount(long value) {\n bitField0_ |= 0x00000001;\n amount_ = value;\n }",
"public void set_counter(long value) {\n setUIntBEElement(offsetBits_counter(), 32, value);\n }",
"long getLongValue();",
"long getLongValue();",
"protected void _setLong(int index, long value)\r\n/* 507: */ {\r\n/* 508:521 */ HeapByteBufUtil.setLong(this.array, index, value);\r\n/* 509: */ }",
"void writeLong(long value);",
"public void setX(long x){\n this.x = x;\n }",
"public Builder setLongitude(long value) {\n bitField0_ |= 0x00000020;\n longitude_ = value;\n onChanged();\n return this;\n }",
"public long longValue() {\r\n return intValue();\r\n }",
"public long longValue() {\n return (long) m_value;\n }",
"public void setLongStat(MetricDef metric, long value){\n longMetrics.put(metric.metricId(), value);\n }",
"private void setY(long value) {\n bitField0_ |= 0x00000002;\n y_ = value;\n }",
"public long getLongValue() {\n if (typeCase_ == 3) {\n return (java.lang.Long) type_;\n }\n return 0L;\n }",
"public static void singleValue(String name, long value) {\n singleValue(name,value,null);\n }",
"public long longValue() {\n return number;\n }",
"private void setLongTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n longToken_ = value.toStringUtf8();\n }",
"private void setLongTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n longToken_ = value.toStringUtf8();\n }",
"private void setMinor(long value) {\n bitField0_ |= 0x00000002;\n minor_ = value;\n }",
"public ReactiveLong(\n @NonNull @nonnull final String name,\n final long initialValue) {\n super(name, initialValue);\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder setVar64(java.lang.Integer value) {\n validate(fields()[65], value);\n this.var64 = value;\n fieldSetFlags()[65] = true;\n return this;\n }",
"private void setTime(long value) {\n bitField0_ |= 0x00000002;\n time_ = value;\n }",
"public Element set(Element value) {\n if (value instanceof SymmetricLongZrElement)\n this.value = ((SymmetricLongZrElement) value).value;\n else\n this.value = value.toBigInteger().longValue();\n// return this;\n return mod();\n }",
"public abstract void setLongImpl(String str, double d, Resolver<Void> resolver);",
"public Builder clearLongValue() {\n bitField0_ = (bitField0_ & ~0x00000020);\n longValue_ = 0L;\n onChanged();\n return this;\n }",
"public Builder setField1(long value) {\n bitField0_ |= 0x00000002;\n field1_ = value;\n onChanged();\n return this;\n }",
"@Override\r\n public long longValue() {\r\n return (long) this.m_current;\r\n }",
"public final void setTimeStamp(long value) {\n synchronized (TIMESTAMP_LOCK) {\n this.timeStamp = value;\n }\n }",
"public Builder setLongToken(\n String value) {\n copyOnWrite();\n instance.setLongToken(value);\n return this;\n }",
"public Builder setLongToken(\n String value) {\n copyOnWrite();\n instance.setLongToken(value);\n return this;\n }",
"public Builder addValue(long value) {\n ensureValueIsMutable();\n value_.addLong(value);\n onChanged();\n return this;\n }",
"@java.lang.Override\n public long getLongValue() {\n if (typeCase_ == 3) {\n return (java.lang.Long) type_;\n }\n return 0L;\n }",
"public void setLongueur(int l) {\n\t\tthis.longueur = l;\n\t}",
"public static boolean setLongValue(String propID, long v)\n {\n return SystemProps.setStringValue(propID, String.valueOf(v));\n }",
"public Builder setLongTokenBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setLongTokenBytes(value);\n return this;\n }",
"public Builder setLongTokenBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setLongTokenBytes(value);\n return this;\n }",
"public Builder setValue(\n int index, long value) {\n ensureValueIsMutable();\n value_.setLong(index, value);\n onChanged();\n return this;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setPatch(long value) {\n bitField0_ |= 0x00000008;\n patch_ = value;\n }",
"public void setLongitud(Integer longitud)\n/* 42: */ {\n/* 43:62 */ this.longitud = longitud;\n/* 44: */ }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public long longValue()\n\t\t{\n\t\t\treturn (long) doubleValue();\n\t\t}",
"@Generated\n @Selector(\"setState:\")\n public native void setState(@NInt long value);",
"public static void setLongValue(final String prefFile, final String key, final long value) {\n final SharedPreferences sharedPref = getSharedPreferences(prefFile);\n final SharedPreferences.Editor editor = sharedPref.edit();\n editor.putLong(key, value);\n editor.apply();\n }",
"void setLength( long length );",
"public long longValue();",
"public ByteBuf writeLongLE(long value)\r\n/* 877: */ {\r\n/* 878:886 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 879:887 */ return super.writeLongLE(value);\r\n/* 880: */ }",
"public Builder setId(long value) {\n\n id_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }",
"public void setId(java.lang.Long value) {\r\n\t\tthis.id = value;\r\n\t}"
] | [
"0.79900235",
"0.7739142",
"0.7660923",
"0.7494087",
"0.7437563",
"0.7374736",
"0.7363012",
"0.7313704",
"0.7257376",
"0.7122413",
"0.71002704",
"0.70932275",
"0.70883125",
"0.6997449",
"0.6940774",
"0.69399375",
"0.69266325",
"0.6900558",
"0.6868335",
"0.68651944",
"0.685885",
"0.68517494",
"0.6832724",
"0.6831356",
"0.68009007",
"0.6788537",
"0.678757",
"0.6738608",
"0.66464484",
"0.66449064",
"0.6643768",
"0.6633637",
"0.662808",
"0.6612591",
"0.66096246",
"0.66085494",
"0.6573964",
"0.6559839",
"0.6537045",
"0.65126526",
"0.6512622",
"0.6507168",
"0.6507168",
"0.6495991",
"0.647133",
"0.6460309",
"0.64526814",
"0.64504033",
"0.6441351",
"0.6407584",
"0.6407584",
"0.6385735",
"0.6348254",
"0.63418686",
"0.6340096",
"0.63366735",
"0.63281256",
"0.63252395",
"0.62797886",
"0.62788904",
"0.6269536",
"0.62672174",
"0.62636256",
"0.62636256",
"0.62571496",
"0.6233927",
"0.6221205",
"0.6219963",
"0.6195791",
"0.61944234",
"0.61834955",
"0.6168321",
"0.61557525",
"0.6153636",
"0.6138276",
"0.6138276",
"0.6135652",
"0.6126249",
"0.612482",
"0.61241466",
"0.6123546",
"0.6123546",
"0.60884243",
"0.60862094",
"0.60862094",
"0.60862094",
"0.6085108",
"0.60846525",
"0.6082934",
"0.6082934",
"0.6082934",
"0.6082934",
"0.6075682",
"0.6060408",
"0.6046373",
"0.6032647",
"0.6022608",
"0.60152876",
"0.60144633",
"0.60097486"
] | 0.7904671 | 1 |
Get the value of this string constant. | public String getStringValue() {
if (getValueIndex() <= 0)
return null;
return ((StringEntry) getPool().getEntry(getValueIndex())).
getStringEntry().getValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String stringVal(){\n\n if (currentTokenType == TYPE.STRING_CONST){\n\n return currentToken.substring(1, currentToken.length() - 1);\n\n }else {\n throw new IllegalStateException(\"Current token is not a string constant!\");\n }\n }",
"java.lang.String getConstantValue();",
"public java.lang.String getConstantValue() {\n java.lang.Object ref = constantValue_;\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 constantValue_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getConstantValue() {\n java.lang.Object ref = constantValue_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n constantValue_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"java.lang.String getStringValue();",
"java.lang.String getStringValue();",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n }\n return s;\n }\n }",
"public String getVal() {\n Object ref = val_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n val_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"String getStringValue();",
"String getStringValue();",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getVal() {\n Object ref = val_;\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 if (bs.isValidUtf8()) {\n val_ = s;\n }\n return s;\n }\n }",
"public String getStringValue()\n {\n return this.getValue();\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n }\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n }\n }",
"public String getStringValue();",
"org.hl7.fhir.String getValueString();",
"public String getValue(String s) {\n return s;\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n value_ = s;\n return s;\n }\n }",
"public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\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 (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n }\n }",
"public String getValue() {\n Object ref = value_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public java.lang.String getValue() {\n return value;\n }",
"public String getStrVal() {\n\t\treturn strVals[0];\n\t}",
"public String getValue( )\n {\n return _strValue;\n }",
"public String getValue() {\n Object ref = value_;\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 value_ = s;\n return s;\n }\n }",
"public String getValue() {\n return String.valueOf(value);\n }",
"public com.google.protobuf.ByteString\n getStringValueBytes() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\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 if (typeCase_ == 5) {\n type_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getStringValue() {\n java.lang.Object ref = stringValue_;\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 stringValue_ = s;\n }\n return s;\n }\n }",
"@Override\n\tpublic String getString() {\n\t\treturn value;\n\t}",
"String getConstant();",
"public java.lang.String getStringValue() {\n java.lang.Object ref = stringValue_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n stringValue_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@java.lang.Override\n public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"String getVal();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getStringValueBytes() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (typeCase_ == 5) {\n type_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getString() {\r\n\t\tString s = value.getString();\r\n\t\t// System.out.println(\"Getting string of: \" + s);\r\n\t\tif (s == null)\r\n\t\t\treturn (s);\r\n\t\treturn (substitution(s));\r\n\t}",
"public String getString() {\r\n\t\ttype(ConfigurationItemType.STRING);\r\n\t\treturn stringValue;\r\n\t}",
"public CFString value() {\n return lazyGlobalValue.value();\n }",
"public String getValue() {\n\t\t\treturn this.val; // to be replaced by student code\n\t\t}",
"public String getValue()\r\n\t{\r\n\t\treturn value;\r\n\t}",
"public String getValue()\n {\n return mValue;\n }",
"public String stringApiValue() {\n return cyclifyWithEscapeChars();\n }",
"public String getValue() {\r\n\t\treturn value;\r\n\t}",
"public String getValue() {\r\n\t\t\treturn mValue;\r\n\t\t}",
"public String getStringValue() {\n\t\treturn rawValue;\n\t}",
"public String getValue() {\n\t\tString value;\n\t\ttry {\n\t\t\tvalue = this.getString(\"value\");\n\t\t} catch (Exception e) {\n\t\t\tvalue = null;\n\t\t}\n\t\treturn value;\n\t}",
"public String getValue() {\n\t\treturn this.value;\n\t}",
"public String getValue() {\n\t\treturn this.value;\n\t}",
"public String getValue() {\n\t\treturn this.value;\n\t}",
"public String getValue() {\n\t\treturn mValue;\n\t}",
"public String getValue() {\n\t\treturn value;\n\t}",
"public String getValue() {\n\t\treturn value;\n\t}",
"public String getValue() {\n\t\treturn value;\n\t}",
"public String getValue() {\n\t\treturn value;\n\t}",
"public String getValue() {\n\t\treturn value;\n\t}",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue(){\n\t\treturn this.value;\n\t}",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue()\n {\n return value;\n }",
"public String getValue() {\n return this.value;\n }",
"public String getValue() {\n return this.value;\n }",
"public String getValue() {\n return this.value;\n }",
"public String getValue() {\n return this.value;\n }",
"public String getValue() {\n return this.value;\n }",
"public String getValue() {\n return this.value;\n }",
"public String getValue() {\n return this.value;\n }",
"public String getValue() {\n return value;\n }",
"public String getValue()\n {\n return this.value;\n }",
"String getValueAsString();"
] | [
"0.78308946",
"0.7572209",
"0.75338984",
"0.75236076",
"0.73458314",
"0.73458314",
"0.7179563",
"0.717617",
"0.7172169",
"0.7172169",
"0.7146778",
"0.71410626",
"0.7140736",
"0.7140736",
"0.7140736",
"0.7140736",
"0.7140736",
"0.7140736",
"0.71357286",
"0.7122544",
"0.7101252",
"0.70923764",
"0.7071736",
"0.7052545",
"0.7050259",
"0.7040983",
"0.70013714",
"0.69999623",
"0.6966578",
"0.6953106",
"0.6918611",
"0.6898504",
"0.68918806",
"0.6843947",
"0.6842911",
"0.6829685",
"0.6818545",
"0.68041396",
"0.6771013",
"0.675704",
"0.6743233",
"0.6742887",
"0.6739693",
"0.6739693",
"0.6739693",
"0.6739693",
"0.6739693",
"0.6739693",
"0.6739693",
"0.6739693",
"0.6739693",
"0.6739693",
"0.6734942",
"0.6697516",
"0.6673442",
"0.66574246",
"0.6619699",
"0.6589582",
"0.6585768",
"0.6584909",
"0.65837014",
"0.6577041",
"0.65617234",
"0.6556199",
"0.6538918",
"0.6538918",
"0.6538918",
"0.65388674",
"0.6531518",
"0.6531518",
"0.6531518",
"0.6531518",
"0.6531518",
"0.65295744",
"0.65295744",
"0.65295744",
"0.65295744",
"0.65295744",
"0.6519326",
"0.65075177",
"0.64993316",
"0.64993316",
"0.64993316",
"0.64993316",
"0.64993316",
"0.64993316",
"0.64993316",
"0.64993316",
"0.64993316",
"0.6492734",
"0.6491871",
"0.6491871",
"0.6491871",
"0.6491871",
"0.6491871",
"0.6491871",
"0.6491871",
"0.6487564",
"0.64866734",
"0.6478325"
] | 0.66291934 | 56 |
Set the value of this string constant. | public void setStringValue(String value) {
setValueIndex(getPool().findStringEntry(value, true));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setValue(java.lang.String value);",
"public void setValue(final String value)\n {\n this.value = value;\n }",
"public void setValue( String value )\n {\n this.value = value;\n }",
"void setValue(final String value);",
"public void setValue(final String value) {\n this.value = value;\n }",
"public void setValue(java.lang.String value) {\n this.value = value;\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value)\n {\n this.value = value;\n }",
"public void setValue(String value) {\n\t\tthis.text = value;\n\t}",
"void setValueString(org.hl7.fhir.String valueString);",
"public void setValue(String value)\n {\n if (value == null)\n throw new IllegalArgumentException(\"value cannot be null\");\n \n this.value = value;\n }",
"public void setValue(String value) {\n\t this.valueS = value;\n\t }",
"public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public final void setValue(java.lang.String value)\r\n\t{\r\n\t\tsetValue(getContext(), value);\r\n\t}",
"public void setStringValue(String v)\n {\n this.setValue(v);\n }",
"void setValue(String value);",
"void setValue(String value);",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tmValue = value;\n\t}",
"public void setValue (String Value);",
"protected void setValue( String strValue )\n {\n _strValue = strValue;\n }",
"public void set (String Value)\n\t\t{\n\t\tthis.Value = Value;\t\t\n\t\t}",
"public void setValue(String value) {\n set (value);\n }",
"public void set(String str) {\n\t setValueInternal(str);\n\t}",
"public void set(String s);",
"public Builder setVal(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n val_ = value;\n onChanged();\n return this;\n }",
"public void setString(String value) {\r\n\t\ttype(ConfigurationItemType.STRING);\r\n\t\tthis.stringValue = value;\r\n\t}",
"public void setValue(String text) {\n\t\tthis.value = text;\n\t}",
"public Builder setValue(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n value_ = value;\n onChanged();\n return this;\n }",
"void setString(String attributeValue);",
"public void setString(int index,String value);",
"public void setValue(String value) throws Exception {\n\t\tthis.value = value;\n\t}",
"public Builder setConstantValue(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n constantValue_ = value;\n onChanged();\n return this;\n }",
"void setValue(String s) throws YangException;",
"public void setS(String s);",
"public void setStr(java.lang.String str)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STR$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STR$0);\r\n }\r\n target.setStringValue(str);\r\n }\r\n }",
"public void setString(String name, String value) {\n parameters.get(name).setValue(value);\n }",
"public void setValue(String value)\r\n\t\t{ textField.setText(value); }",
"public static void setString(String prop, String value)\n {\n props.setProperty(prop, value);\n }",
"public void setStr(String key, String value) {\n PREF_EDITOR.putString(key, value);\n PREF_EDITOR.commit();\n }",
"protected StringValue() {\r\n value = \"\";\r\n typeLabel = BuiltInAtomicType.STRING;\r\n }",
"public void set(String value){\n this.value = new BigInteger(value).toByteArray();\n }",
"public Builder setStringValue(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n stringValue_ = value;\n onChanged();\n return this;\n }",
"public void setValue(final String value) {\n super.setAttributeValue(value);\n }",
"public void setValue(java.lang.String value)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUE$12);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VALUE$12);\n }\n target.setStringValue(value);\n }\n }",
"public Builder setScStr(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n scStr_ = value;\n onChanged();\n return this;\n }",
"public Builder setS(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n s_ = value;\n onChanged();\n return this;\n }",
"public Builder setStringValue(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n typeCase_ = 5;\n type_ = value;\n onChanged();\n return this;\n }",
"String setValue();",
"public void setStr(int s)\n\t{\n\t\tstr = s; \n\t}",
"@JsProperty void setValue(String value);",
"public void setAttribute_value(String string) {\n this.attribute_value = string;\n }",
"void set(String text);",
"public void setValue(String value)\n {\n if(this.valueString.compareTo(value) == 0)\n {\n return;\n }\n this.valueString = value;\n treeModel.nodeChanged(this.treeNode);\n }",
"public void setString(String name, String value)\n/* */ {\n/* 1119 */ XMLAttribute attr = findAttribute(name);\n/* 1120 */ if (attr == null) {\n/* 1121 */ attr = new XMLAttribute(name, name, null, value, \"CDATA\");\n/* 1122 */ this.attributes.addElement(attr);\n/* */ } else {\n/* 1124 */ attr.setValue(value);\n/* */ }\n/* */ }",
"public void setPropertyString(String name, String value) {\n\t\tsetProperty(name, toObject(value, name));\n\t}",
"public void setString(String val) {\n\t\tcp.setString(val);\n\t}",
"public void setText(final String value) {\r\n\r\n this.field.setText(value);\r\n\r\n }",
"public void setString(String key, String value) {\n\t\tif (value != null && !value.equals(getDefault(key)))\n\t\t\tinternal.setProperty(key, value);\n\t\telse\n\t\t\tinternal.remove(key);\n\t}",
"public void setValue(String v)\n {\n this.setFieldValue(FLD_value, StringTools.trim(v));\n }",
"public void setString(String parName, String parVal) throws HibException;",
"@Override\r\n\tpublic Buffer setString(int pos, String str) {\n\t\treturn null;\r\n\t}",
"public void setString(String key, String value) {\n SharedPreferences.Editor editor = mPref.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"public void setStringValue(String stringValue) {\n\t\tthis.rawValue = stringValue;\n\t}",
"public void setStringProperty(String propertyName, String value);",
"void set_str(ThreadContext tc, RakudoObject classHandle, String Value);",
"public void setString(String key, String value) {\n overrideConfig.put(key, value);\n }",
"public Builder setValue(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n value_ = value;\n onChanged();\n return this;\n }",
"@Accessor(qualifier = \"message\", type = Accessor.Type.SETTER)\n\tpublic void setMessage(final String value)\n\t{\n\t\tsetMessage(value,null);\n\t}",
"public\t\tvoid\t\tsetValue(String value)\n\t\t{\n\t\tdouble val = Utility.toDouble(value);\n\t\tsetNormalizedValue(val);\n\t\t}",
"public void setText(String S) {\n str = S;\n compute();\n }",
"public Builder setText(\n java.lang.String value) {\n copyOnWrite();\n instance.setText(value);\n return this;\n }",
"public final void setValue(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String value)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Value.toString(), value);\r\n\t}",
"public PBRTProperty setStringSetting(String name, String value) {\n\t\tif (name == null)\n\t\t\tthrow new NullPointerException(\"the given name is null!\");\n\t\tif (value == null)\n\t\t\tthrow new NullPointerException(\"the given value is null!\");\n\t\tremoveSetting(name);\n\t\tstrings.put(name, value);\n\t\treturn this;\n\t}",
"public Builder setText(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n text_ = value;\n onChanged();\n return this;\n }",
"public Builder setText(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n text_ = value;\n onChanged();\n return this;\n }",
"public Builder setText(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n text_ = value;\n onChanged();\n return this;\n }",
"public ElementString(String value) {\n this.value = value;\n }",
"private void setText(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n text_ = value;\n }",
"public void set(String value) {\n // Si es un nuevo valor se establece y se notifica.\n if (!TextUtils.equals(this.mValue, value)) {\n mValue = value;\n notifyChange();\n }\n }",
"public void setString(String string) {\n this.string = string;\n }",
"public Builder setValue(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n value_ = value;\n onChanged();\n return this;\n }",
"public void setValue(Object value) {\n setValue(value.toString());\n }"
] | [
"0.7568336",
"0.745712",
"0.7435277",
"0.74303985",
"0.74027205",
"0.7401353",
"0.7319258",
"0.7319258",
"0.7319258",
"0.7319258",
"0.7319258",
"0.7304432",
"0.7304432",
"0.7304432",
"0.7304432",
"0.7304432",
"0.72945815",
"0.72449183",
"0.7239204",
"0.7233396",
"0.72140455",
"0.7212304",
"0.719561",
"0.719561",
"0.719561",
"0.719561",
"0.71924275",
"0.71924275",
"0.71924275",
"0.71924275",
"0.71829474",
"0.71603864",
"0.71518874",
"0.71518874",
"0.7142207",
"0.7125797",
"0.7117508",
"0.7103857",
"0.7061888",
"0.7034963",
"0.6896651",
"0.6861186",
"0.68282866",
"0.67931706",
"0.67669845",
"0.6755219",
"0.6707129",
"0.6705733",
"0.6683425",
"0.65915465",
"0.6584864",
"0.6576202",
"0.654853",
"0.65362656",
"0.6521693",
"0.6497575",
"0.64676064",
"0.64674133",
"0.6457436",
"0.64558065",
"0.64523065",
"0.64470315",
"0.64421636",
"0.6430208",
"0.6426485",
"0.64230007",
"0.6415914",
"0.64030427",
"0.6388861",
"0.63798225",
"0.6379429",
"0.6374826",
"0.63738924",
"0.635906",
"0.6333376",
"0.6327729",
"0.632686",
"0.63184154",
"0.6311721",
"0.6305769",
"0.63019526",
"0.62917036",
"0.62911946",
"0.62865084",
"0.6283269",
"0.62628406",
"0.6255808",
"0.6253648",
"0.6249751",
"0.6239998",
"0.6231079",
"0.6226881",
"0.6226881",
"0.6226881",
"0.62209225",
"0.6219092",
"0.6199102",
"0.61967206",
"0.6171912",
"0.6169945"
] | 0.69772047 | 40 |
get all available tuples from this data input | List<String[]> readAll(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Tuple[] getTuples() {\r\n Tuple[] newTuples = new Tuple[tupleCount];\r\n System.arraycopy(tuple,0,newTuples,0,tupleCount);\r\n return newTuples;\r\n }",
"public ArrayList<Tuple> getTuples(){\r\n\t\treturn tuples;\r\n\t}",
"public void collectTuples() {\n Tuple t = child.next();\n boolean hasAttribute = false;\n int attributeIndex = 0;\n for (int i=0; i < t.getAttributeList().size(); i++) {\n if (t.getAttributeName(i).equals(whereAttributePredicate)) {\n hasAttribute = true;\n attributeIndex = i;\n break;\n }\n }\n if (hasAttribute) {\n while (t != null) {\n if (t.getAttributeValue(attributeIndex).toString().equals(whereValuePredicate)) {\n tuples.add(t);\n numOfTuples++;\n }\n t = child.next();\n }\n }\n else {\n while (t != null) {\n tuples.add(t);\n numOfTuples++;\n t = child.next();\n }\n }\n }",
"public Iterator<DystoreTuple> iterator()\t{ return tuple_data.iterator(); }",
"@Override\n public void emitTuples() {\n\n Statement query = queryToRetrieveData();\n logger.debug(String.format(\"select statement: %s\", query.toString()));\n RecordSet rs;\n try {\n rs = store.getClient().query(null, query);\n while(rs.next()){\n Record rec = rs.getRecord();\n T tuple = getTuple(rec);\n outputPort.emit(tuple);\n }\n }\n catch (Exception ex) {\n store.disconnect();\n DTThrowable.rethrow(ex);\n }\n }",
"@Override\r\n\tpublic Tuple nextTuple() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tTuple tuple = null;\r\n\t\ttry{\r\n\t\t\tString s = br.readLine();\r\n\t\t\tif(s==null) return null;\r\n\t\t\ttuple = new Tuple(s);\r\n\t\t}catch(IOException e){\r\n\t\t\tSystem.out.print(\"No more tuples!\");\r\n\t\t}\r\n\t\treturn tuple;\r\n\t}",
"public abstract T getTuple(int aPosition);",
"private Tuples() {}",
"public List<BindingSet> tupleQuery(String query) throws RDFParseException, RepositoryException, IOException {\n\t\ttry (RepositoryConnection conn = repository.getConnection()) {\n\t\t\t\n\t\t\twhile (!rdfDataList.isEmpty()) {\n\t\t\t\tRDFData data = rdfDataList.pop();\n\t\t\t\tconn.add(data.url, data.baseUri, data.format);\n\t\t\t}\n\t\n\t\t\tTupleQuery tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, query);\n\t\t\t\n\t\t\ttry (TupleQueryResult result = tupleQuery.evaluate()) {\n\t\t\t\t\n\t\t\t\tList<BindingSet> bindingSets = new LinkedList<>();\n\t\t\t\t\n\t\t\t\t//iterate the result set\n\t\t\t\twhile (result.hasNext()) {\n\t\t\t\t\tbindingSets.add(result.next());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn bindingSets;\n\t\t\t}\n\t\t}\n\t}",
"Tuple extract(int[] pos) {\n Tuple results = new Tuple();\n\n for (int i : pos)\n results.add(elements.set(i, null));\n\n return results;\n }",
"public native IterableIterator<Tuple<K, V>> entries();",
"private ArrayList<Tuple> loadTuple() {\n\t\tArrayList<Tuple> idArray = new ArrayList<Tuple>();\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fileInputStream = context.openFileInput(SAVE_FILE);\n\t\t\tInputStreamReader inputStreamReader = new InputStreamReader(\n\t\t\t\t\tfileInputStream);\n\t\t\tType listType = new TypeToken<ArrayList<Tuple>>() {\n\t\t\t}.getType();\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tArrayList<Tuple> list = gson.fromJson(inputStreamReader, listType);\n\t\t\tidArray = list;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn idArray;\n\t}",
"protected ArrayList<DataFromPoint> getFromPoints() {\n\t\treturn fromPoints.stream().map(e -> e.fromPoint)\n\t\t\t\t.collect(Collectors.toCollection(ArrayList::new));\n\t}",
"public ArrayList<Tuple> getResults() {\n ArrayList<Tuple> result = new ArrayList<Tuple>();\n\n switch (this.ag) {\n case COUNT:\n if (!gb) {\n int res = 0;\n for (Tuple a : tupleList) {\n res++;\n }\n Tuple newTup = new Tuple(this.tdc);\n newTup.setField(0, new IntField(res));\n result.add(newTup);\n } else {\n for (Tuple ca : compareList) {\n int res = 0;\n for (Tuple tl : tupleList) {\n if (tl.equals(ca))\n res++;\n }\n Tuple newTup = new Tuple(this.tdc);\n newTup.setField(0, ca.getField(0));\n newTup.setField(1, new IntField(res));\n result.add(newTup);\n }\n }\n break;\n\n case MAX:\n if (!gb) {\n int max = Integer.MIN_VALUE;\n boolean whetherInt = false;\n String firstVal = \"\";\n\n if (tupleList.get(0).getField(0).getType().equals(Type.INT)) {\n whetherInt = true;\n }\n if (!whetherInt) {\n StringField first = (StringField) tupleList.get(0).getField(0);\n firstVal = first.toString();\n }\n\n for (Tuple tp : tupleList) {\n if (tp.getDesc().getType(0).equals(Type.STRING)) {\n StringField val = (StringField) tp.getField(0);\n String actualv = val.toString();\n\n if (actualv.compareTo(firstVal) == 1) { // if the new string is supposed to be lexicographically greater than the cu\n // max, set the cur max to be the new\n firstVal = actualv;\n }\n\n\n } else {\n IntField intFl = new IntField(tp.getField(0).toByteArray());\n int actualVal = intFl.getValue();\n if (actualVal > max) {\n max = actualVal;\n }\n }\n }\n if (whetherInt) {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, new IntField(max));\n result.add(maxTup);\n } else {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, new StringField(firstVal));\n result.add(maxTup);\n }\n\n } else {\n int max = Integer.MIN_VALUE;\n boolean whetherInt = false;\n\n String firstVal = \"\";\n\n if (compareList.get(0).getField(0).getType().equals(Type.INT)) {\n whetherInt = true;\n }\n if (!whetherInt) {\n StringField first = (StringField) tupleList.get(0).getField(1);\n firstVal = first.toString();\n }\n\n for (Tuple a : compareList) {\n Type aTp = a.getDesc().getType(0);\n IntField intVal = (IntField) a.getField(0);\n int actualVal = intVal.getValue();\n\n for (Tuple b : tupleList) {\n if (b.getDesc().getType(0) == Type.INT) {\n IntField intVal1 = (IntField) b.getField(0);\n int actualVal1 = intVal1.getValue();\n if (actualVal1 == actualVal) {\n IntField compareVal = (IntField) b.getField(1);\n int valueb = compareVal.getValue();\n if (valueb > max) {\n max = valueb;\n }\n }\n\n } else {\n StringField val = (StringField) b.getField(1);\n String actualv = val.toString();\n\n if (actualv.compareTo(firstVal) == 1) { // if the new string is supposed to be lexicographically greater than the cu\n // max, set the cur max to be the new\n firstVal = actualv;\n }\n }\n }\n if (whetherInt) {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, a.getField(0));\n maxTup.setField(1, new IntField(max));\n result.add(maxTup);\n } else {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, a.getField(0));\n maxTup.setField(1,new StringField(firstVal));\n result.add(maxTup);\n }\n }\n }\n break;\n case MIN:\n if (!gb) {\n int min = Integer.MAX_VALUE;\n boolean whetherInt = false;\n String firstVal = \"\";\n if (tupleList.get(0).getField(0).getType().equals(Type.INT)) {\n whetherInt = true;\n }\n if (!whetherInt) {\n StringField first = (StringField) tupleList.get(0).getField(0);\n firstVal = first.toString();\n\n }\n for (Tuple tp : tupleList) {\n if (tp.getDesc().getType(0).equals(Type.STRING)) {\n StringField val = (StringField) tp.getField(0);\n String actualv = val.toString();\n\n if (actualv.compareTo(firstVal) == -1) { // if the new string is supposed to be lexicographically SMALLER than the cu\n // max, set the cur mIN to be the new\n firstVal = actualv;\n }\n\n } else {\n IntField intFl = new IntField(tp.getField(0).toByteArray());\n int actualVal = intFl.getValue();\n if (actualVal < min) {\n min = actualVal;\n }\n }\n }\n if (whetherInt) {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, new IntField(min));\n result.add(maxTup);\n } else {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, new StringField(firstVal));\n result.add(maxTup);\n }\n } else {\n int min = Integer.MAX_VALUE;\n boolean whetherInt = false;\n\n String firstVal = \"\";\n\n if (compareList.get(0).getField(0).getType().equals(Type.INT)) {\n whetherInt = true;\n }\n if (!whetherInt) {\n StringField first = (StringField) tupleList.get(0).getField(1);\n firstVal = first.toString();\n\n }\n for (Tuple a : compareList) {\n Type aTp = a.getDesc().getType(0);\n\n\n IntField intVal = (IntField) a.getField(0);\n int actualVal = intVal.getValue();\n\n for (Tuple b : tupleList) {\n if (b.getDesc().getType(0) == Type.INT) {\n IntField intVal1 = (IntField) b.getField(0);\n int actualVal1 = intVal1.getValue();\n if (actualVal1 == actualVal) {\n IntField compareVal = (IntField) b.getField(1);\n int valueb = compareVal.getValue();\n if (valueb > min) {\n min = valueb;\n }\n }\n } else {\n StringField val = (StringField) b.getField(1);\n String actualv = val.toString();\n\n if (actualv.compareTo(firstVal) == 1) { // if the new string is supposed to be lexicographically greater than the cu\n // max, set the cur max to be the new\n firstVal = actualv;\n }\n\n }\n }\n if (whetherInt) {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, a.getField(0));\n maxTup.setField(1, new IntField(min));\n result.add(maxTup);\n } else {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, a.getField(0));\n maxTup.setField(1,new StringField(firstVal));\n result.add(maxTup);\n }\n }\n }\n break;\n case AVG:\n int sum = 0;\n\n if (!gb) {\n for (Tuple tp : tupleList) {\n if (tp.getDesc().getType(0).equals(Type.STRING)) {\n System.out.println(\"cannot call avg on string\");\n } else {\n int val = ((IntField) tp.getField(0)).getValue();\n sum += val;\n\n }\n\n\n }\n int avgValue = sum / tupleList.size();\n // not sure what the new tuple's pid and id should be\n Tuple avgTup = new Tuple(this.tdc);\n avgTup.setField(0, new IntField(avgValue));\n\n } else {\n // now it is group by avg\n for (Tuple a : compareList) {\n Type aTp = a.getDesc().getType(0);\n int sumt = 0;\n int ct = 0;\n if (aTp.equals(Type.STRING)) {\n System.out.println(\"cannot call avg on string\");\n\n } else {\n IntField intVal = (IntField) a.getField(0);\n int actualVal = intVal.getValue();\n\n for (Tuple b : tupleList) {\n if (b.getDesc().getType(0) == Type.INT) {\n IntField intVal1 = (IntField) b.getField(0);\n int actualVal1 = intVal1.getValue();\n if (actualVal1 == actualVal) {\n IntField compareVal = (IntField) b.getField(1);\n int valueb = compareVal.getValue();\n sum += valueb;\n ct++;\n }\n } else {\n System.out.println(\"cannot call group by avg on string \");\n }\n }\n }\n int trueAvg = sum / ct;\n Tuple avgTup = new Tuple(this.tdc);\n avgTup.setField(0, a.getField(0));\n avgTup.setField(1, new IntField(trueAvg));\n result.add(avgTup);\n }\n }\n\n break;\n case SUM:\n int sumA = 0;\n if (!gb) {\n for (Tuple tp : tupleList) {\n if (tp.getDesc().getType(0).equals(Type.STRING)) {\n System.out.println(\"cannot call sUM on string\");\n } else {\n int val = ((IntField) tp.getField(0)).getValue();\n sumA += val;\n }\n }\n\n // not sure what the new tuple's pid and id should be\n Tuple avgTup = new Tuple(this.tdc);\n avgTup.setField(0, new IntField(sumA));\n result.add(avgTup);\n\n } else {\n // now it is group by sum\n int sumt = 0;\n for (Tuple a : compareList) {\n sumt = 0;\n Type aTp = a.getDesc().getType(0);\n\n if (aTp.equals(Type.STRING)) {\n System.out.println(\"cannot call sum on string\");\n\n } else {\n IntField intVal = (IntField) a.getField(0);\n int actualVal = intVal.getValue();\n\n for (Tuple b : tupleList) {\n if (b.getDesc().getType(0) == Type.INT) {\n IntField intVal1 = (IntField) b.getField(0);\n int actualVal1 = intVal1.getValue();\n if (actualVal1 == actualVal) {\n IntField compareVal = (IntField) b.getField(1);\n int valueb = compareVal.getValue();\n sumt += valueb;\n }\n\n } else {\n System.out.println(\"cannot call SUM on string \");\n }\n\n }\n }\n Tuple avgTup = new Tuple(this.tdc);\n avgTup.setField(0, a.getField(0));\n avgTup.setField(1, new IntField(sumt));\n if (!result.contains(avgTup)) {\n result.add(avgTup);\n }\n }\n\n }\n break;\n }// this is the closing for switch\n return result;\n }",
"public List<Tuple> solutionToTuples_strict_order()\n {\n return this.solutionToTuples();\n }",
"public static List<Object> elements(Tuple tuple) {\n return tuple.elements;\n }",
"@VTID(13)\r\n java.lang.String getTuple();",
"BoundQuery<?,Ttuple> getAll(Type<?> type) \n throws DataException;",
"@Override\n public Tuple next() {\n return nonDistinctNext();\n }",
"@Override\n public Iterator<Object> iterator() {\n return new Iterator<Object>() {\n\n private int i = 0;\n\n @Override\n public boolean hasNext() {\n return i < data.length;\n }\n\n @Override\n public Object next() {\n Object result = data[i];\n i = i + 1;\n return result;\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException(\"Tuples are immutable\");\n }\n };\n }",
"public void nextTuple() {\n\t\tif(isFirst) {\n\t\t\ttry {\n\t\t\t\tFileReader in = new FileReader(\"query_stream_comp_\"+qSize);\n\t\t\t\tBufferedReader br = new BufferedReader(in);\t\n//\t\t\t\tbr.readLine();\n\t\t\t\tfor(int i=0; i<num; i++) {\n//\t\t\t\t\tUtils.sleep(100);\n\t\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\t\tint edges = Integer.valueOf(br.readLine());\n//\t\t\t\t\tsb.append(edges+\"\\n\");\n//\t\t\t\t\tint edges = br.read();\n\t\t\t\t\tfor(int j=0; j< edges; j++) {\n\t\t\t\t\t\t\n\t//\t\t\t\t\tString edge[] = br.readLine().split(\" \");\n\t\t\t\t\t\tsb.append(br.readLine()+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\t_collector.emit(\"qstream\", new Values(sb.toString()));\n\t\t\t\t}\n\t\t\t\tisFirst = !isFirst;\n\t\t\t\tSystem.out.println(\"QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}else {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000000);\n\t\t\t\tSystem.exit(0);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic Tuple next(){\n currTupleInd++;\n if (currTupleInd >= numOfTuples) return null;\n return tuples.get(currTupleInd);\n\t}",
"void getVertices() {\r\n\t\tSystem.out.println(\"Enter your vertices:\");\r\n\t\tarrIndexToVertexMap = new HashMap<>();\r\n\t\ttry {\r\n\t\t\tfor (int i = 0; i < numberOfVertices; i++) {\r\n\t\t\t\tarrIndexToVertexMap.put(i, sc.next());\r\n\t\t\t}\r\n\t\t\tsc.close();\r\n\t\t} catch (RuntimeException re) {\r\n\t\t\tSystem.out.println(\"Error at method:: getVertices || Description:\" + re);\r\n\t\t}\r\n\t}",
"@Parameters\n public static Iterable<Object[]> getData() {\n List<Object[]> obj = new ArrayList<>();\n obj.add(new Object[] {3, 12});\n obj.add(new Object[] {2, 8});\n obj.add(new Object[] {1, 4});\n \n return obj;\n }",
"public org.glite.rgma.server.system.TupleSet pop(int maxNumTuples) throws RGMAPermanentException {\n\n\t\tList<String[]> tuples = new ArrayList<String[]>();\n\t\tsynchronized (this) {\n\n\t\t\tint last = Math.min(m_read + maxNumTuples, m_write) - 1;\n\n\t\t\tif (m_read != last + 1) {\n\n\t\t\t\tString tableAndRange = new StringBuffer().append(\"FROM \").append(m_databaseTableName).append(\" WHERE (SEQ BETWEEN \").append(m_read).append(\n\t\t\t\t\t\t\" AND \").append(last).append(')').toString();\n\n\t\t\t\tMySQLConnection conn = null;\n\t\t\t\ttry {\n\t\t\t\t\tconn = new MySQLConnection();\n\n\t\t\t\t\tjava.sql.ResultSet jrs = conn.executeQuery(\"SELECT * \" + tableAndRange);\n\t\t\t\t\tconn.executeUpdate(\"DELETE \" + tableAndRange);\n\n\t\t\t\t\tm_read = last + 1;\n\n\t\t\t\t\twhile (jrs.next()) {\n\t\t\t\t\t\tString[] tuple = new String[m_columnCount];\n\t\t\t\t\t\tfor (int i = 0; i < m_columnCount; i++) {\n\t\t\t\t\t\t\ttuple[i] = jrs.getString(i + 2);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttuples.add(tuple);\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tthrow new RGMAPermanentException(e);\n\t\t\t\t} finally {\n\t\t\t\t\tif (conn != null) {\n\t\t\t\t\t\tconn.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t/* Number of tuples to get from the queue */\n\t\t\tint need = Math.min(maxNumTuples - tuples.size(), m_queue.size());\n\t\t\tfor (int i = 0; i < need; i++) {\n\t\t\t\ttuples.add(m_queue.remove());\n\t\t\t}\n\n\t\t\tTupleSet answer; // Build the result set\n\t\t\tanswer = new TupleSet();\n\t\t\tif (tuples.size() != 0) {\n\t\t\t\tanswer.addRows(tuples);\n\t\t\t\tif (LOG.isDebugEnabled()) {\n\t\t\t\t\tLOG.debug(tuples.size() + \" tuples just retrieved from TupleQueue. New status is: MSIZE=\" + m_queue.size() + \" Readptr=\" + m_read\n\t\t\t\t\t\t\t+ \" Writeptr=\" + m_write + \" Count=\" + (m_queue.size() + m_write - m_read));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (m_warning != null) {\n\t\t\t\tanswer.setWarning(m_warning);\n\t\t\t}\n\t\t\treturn answer;\n\t\t}\n\t}",
"@Parameters\n // Método public static que devuelve un elemento iterable de array de objetos\n public static Iterable<Object[]> getData() {\n return Arrays.asList(new Object[][] {\n // Indicamos todas las pruebas {a, b, esperado}\n { 3, 1, 4 }, { 2, 3, 5 }, { 3, 3, 6 } });\n }",
"List getValues();",
"public TupleDesc getTupleDesc();",
"public abstract T getTuple(Record record);",
"public ArrayList getListofChamps(String nomdeTable, int numdetuple) throws UnknownHostException {\n DBCollection t = getSpecificCollection(nomdeTable);\n ArrayList<Map> test2 = fillSpecificCollection(t);\n Set s = test2.get(numdetuple).keySet();\n ArrayList<String> s2 = new ArrayList<String>(s);\n return s2;\n\n }",
"public abstract Tuple getNext();",
"public static Tuple read(DataInput in) throws IOException {\n // nuke the old contents of the tuple\n Tuple ret = new Tuple();\n ret.fields = new ArrayList<Datum>();\n\n int size = decodeInt(in);\n \n for (int i = 0; i < size; i++) {\n ret.appendField(readDatum(in));\n }\n \n return ret;\n\n }",
"public Tuple nextTuple() {\n\t\ttry {\n\t\t\treturn tr.read();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"protected abstract void getAllUniformLocations();",
"RegisterTuple pickSeeds(ArrayList<Register> registers);",
"public final List<BasePair> values(){\n return new ArrayList<BasePair>(layoutMap.values());\n }",
"@SuppressWarnings(\"unchecked\")\r\n public Iterator<Tuple<T>> iterator() {\n Iterator<Tuple<T>> fi = (Iterator<Tuple<T>>) new FilteredIterator<T>(resultTable.iterator(), filterOn);\r\n return fi;\r\n }",
"@Override\n Tuple getNextTuple() {\n System.out.println(\"Please use dump() on SortOperator to get results.\");\n return null;\n }",
"private static Set<List<Integer>> createNtuples(Dataset dataset) {\r\n\t\tList<Set<Integer>> ntupleList = new ArrayList<>();\r\n\r\n\t\tfor (Integer dimensionSize : dataset.getSize()) {\r\n\t\t\tSet<Integer> set = new TreeSet<>();\r\n\t\t\tfor (Integer i = 0; i < dimensionSize; i++) {\r\n\t\t\t\tset.add(i);\r\n\t\t\t}\r\n\t\t\tntupleList.add(set);\r\n\t\t}\r\n\r\n\t\treturn Sets.cartesianProduct(ntupleList);\r\n\t}",
"public DbIterator iterator() {\n \tTupleDesc td = generateTupleDesc();\n List<Tuple> tuples = new ArrayList<Tuple>();\n if(gbField == NO_GROUPING){\n \tTuple tuple = new Tuple(td);\n \ttuple.setField(0, new IntField(tupleCounts.get(null)));\n \ttuples.add(tuple);\n } else {\n \tfor(Object key : tupleCounts.keySet()){\n \t\tTuple tuple = new Tuple(td);\n \t\ttuple.setField(0, (Field)key);\n \t\ttuple.setField(1, new IntField(tupleCounts.get(key)));\n \t\ttuples.add(tuple);\n \t}\n }\n return new TupleIterator(td, tuples);\n }",
"public Cursor fetchAllEntries() {\n /*\n return database.query(\n DATABASE_TABLE, \n new String[] { ROWID, MAC_ADDRESS, LATITUDE, LONGITUDE, FREQUENCY, SIGNAL}, \n null,\n null, \n null,\n null, \n null);\n */\n \n // sql must NOT be ';' terminated\n String sql = \"SELECT \"+ ROWID + \", \" + MAC_ADDRESS + \", \" + LATITUDE + \", \" + LONGITUDE + \", \" \n + NETWORK_NAME + \", \" + CAPABILITIES + \", \" + FREQUENCY + \", \" + SIGNAL\n + \" FROM \" + DATABASE_TABLE;\n return database.rawQuery(sql, null);\n }",
"public ArrayList getAll() {\r\n\t\tArrayList list = new ArrayList();\r\n\t\tlist.addAll(getParticles());\r\n\t\tlist.addAll(getConstraints());\r\n\t\tlist.addAll(getComposites());\r\n\t\treturn list;\r\n\t}",
"public void nextTuple() {\n\t\t\n\t\tif(index < sentences.length){\n\t\t\tthis.collector.emit(new Values(sentences[index%sentences.length]));\n\t\t\tindex++;\n\t\t\tUtils.waitForMillis(1);\n\t\t}\n\t}",
"private List<Arbeitspaket> retrieveData() {\r\n\t\treturn Arrays.asList(new Arbeitspaket(\"A\", 0, 0, 0, 0, 0, 0, 0), new Arbeitspaket(\"B\", 0, 0, 0, 0, 0, 0, 0),\r\n\t\t\t\tnew Arbeitspaket(\"C\", 0, 0, 0, 0, 0, 0, 0), new Arbeitspaket(\"D\", 0, 0, 0, 0, 0, 0, 0));\r\n\t}",
"@DataProvider(name = \"allPairs\")\n public Object[][] allPairs() {\n final List<Object[]> tests = new ArrayList<>();\n\n for (final Allele ref : Arrays.asList(refA, refC, refG, refT)){\n for (final Allele alt : Arrays.asList(altA, altC, altG, altT)){\n if (!ref.getBaseString().equals(alt.getBaseString())){\n tests.add(new Object[]{ref, alt});\n }\n }\n }\n\n return tests.toArray(new Object[][]{});\n }",
"public Collection< VDataT > vertexData();",
"public Tuple get(int index){\r\n\t\treturn tuples.get(index);\r\n\t}",
"private List<List<Tuple>> computeStrata(GenericDAO genericDAO, Schema schema, String relationName,\n\t\t\tString inputAttributeName, String inputAttributeKnownTerms, List<Mode> relationModes, int sampleSize, int queryLimit) {\n\t\tList<List<Tuple>> strata = new ArrayList<List<Tuple>>();\n\n\t\t// Get attributes that can be constant\n\t\tRandomSet<String> constantAttributes = new RandomSet<String>();\n\t\tRandomSet<Integer> constantAttributesPositions = new RandomSet<Integer>();\n\t\tfor (Mode mode : relationModes) {\n\t\t\tfor (int i = 0; i < mode.getArguments().size(); i++) {\n\t\t\t\tif (mode.getArguments().get(i).getIdentifierType() == IdentifierType.CONSTANT) {\n\t\t\t\t\tString attributeName = schema.getRelations().get(relationName.toUpperCase()).getAttributeNames()\n\t\t\t\t\t\t\t.get(i);\n\t\t\t\t\tconstantAttributes.add(attributeName);\n\t\t\t\t\tconstantAttributesPositions.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tString query = String.format(SELECTIN_SQL_STATEMENT, relationName, inputAttributeName, inputAttributeKnownTerms);\n\t\tquery += \" LIMIT \" + queryLimit;\n\t\tGenericTableObject allTuplesResult = genericDAO.executeQuery(query);\n\n\t\tif (constantAttributes.isEmpty()) {\n\t\t\t// Add whole table as stratum\n\t\t\t\n\t\t\tif (allTuplesResult != null) {\n\t\t\t\tstrata.add(allTuplesResult.getTable());\n\t\t\t}\n\t\t} else {\n\t\t\t// Get regions\n\t\t\tString constantAttributesString = String.join(\",\", constantAttributes);\n\t\t\tString getRegionsQuery = String.format(SELECT_GROUPBY_SQL_STATEMENT, constantAttributesString,\n\t\t\t\t\trelationName, inputAttributeName, inputAttributeKnownTerms, constantAttributesString);\n\t\t\tgetRegionsQuery += \" LIMIT \" + queryLimit;\n\t\t\tGenericTableObject getRegionsResult = genericDAO.executeQuery(getRegionsQuery);\n\t\t\tif (getRegionsResult != null) {\n\t\t\t\t// Each tuple represents a region\n\t\t\t\tfor (Tuple tuple : getRegionsResult.getTable()) {\n\t\t\t\t\tList<Pair<Integer, Object>> selectConditions = new LinkedList<Pair<Integer, Object>>();\n\t\t\t\t\tfor (int i = 0; i < constantAttributes.size(); i++) {\n\t\t\t\t\t\tif (tuple.getValues().get(i) != null) {\n\t\t\t\t\t\t\tselectConditions.add(new Pair<Integer, Object>(constantAttributesPositions.get(i),\n\t\t\t\t\t\t\t\t\ttuple.getValues().get(i)));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tList<Tuple> stratum = selectLimit(allTuplesResult.getTable(), selectConditions, sampleSize);\n\t\t\t\t\tstrata.add(stratum);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn strata;\n\t}",
"public Tuple getModel();",
"Iterable<Long> vertices() {\n //YOUR CODE HERE, this currently returns only an empty list.\n ArrayList<Long> verticesIter = new ArrayList<>();\n verticesIter.addAll(adj.keySet());\n return verticesIter;\n }",
"public static interface Tuple {\n\n\t}",
"public ArrayList<T> getAll() {\n\t\treturn new ArrayList<T>(this.data.values());\n\t}",
"protected ArrayList<DataToPoint> getToPoints() {\n\t\treturn toPoints.stream().map(e -> e.toPoint)\n\t\t\t\t.collect(Collectors.toCollection(ArrayList::new));\n\t}",
"public static List<Tuple> parseEverything(byte[] data) throws NullPointerException, ABICodecException {\n if (null == data) {\n throw new NullPointerException();\n }\n try {\n List<Tuple> processedTuples = new ArrayList<>();\n ByteBuffer buffer = ByteBuffer.wrap(data);\n \n // This loop is the top-level, so it can see leaf types, array modifiers, and null modifiers.\n while (buffer.hasRemaining()) {\n ABIToken token = TOKEN_MAP.get(buffer.get());\n RuntimeAssertionError.assertTrue(null != token);\n \n if (ABIToken.ARRAY == token) {\n // Pull out the type and length, since they are \"part\" of this token.\n ABIToken leafType = TOKEN_MAP.get(buffer.get());\n RuntimeAssertionError.assertTrue(leafType.isLeafType);\n int arrayLength = parseLength(buffer);\n Tuple array = parseArray(leafType, arrayLength, buffer);\n processedTuples.add(array);\n } else {\n Tuple object = parseNonArray(token, buffer);\n processedTuples.add(object);\n }\n }\n return processedTuples;\n } catch (Throwable t) {\n // If we fail to interpret this data, it is a codec exception.\n throw new ABICodecException(\"Failed to parse serialized data\", t);\n }\n }",
"public Iterable<E> getData(){\n return new Iterable<E>(){\n @Override\n public Iterator<E> iterator() {\n return structure.iterator();\n }\n };\n }",
"private void setAllLocalResults() {\n TreeMap<FlworKey, List<FlworTuple>> keyValuePairs = mapExpressionsToOrderedPairs();\n // get only the values(ordered tuples) and save them in a list for next() calls\n keyValuePairs.forEach((key, valueList) -> valueList.forEach((value) -> _localTupleResults.add(value)));\n\n _child.close();\n if (_localTupleResults.size() == 0) {\n this._hasNext = false;\n } else {\n this._hasNext = true;\n }\n }",
"int[] retrieveAllData();",
"public abstract double[] getasDouble(int tuple);",
"public List<Pair<Integer, Integer>> getArray(){\n return qtadePorNum;\n }",
"public SortedSet<String> getAvailableParameters() {\n if (allAvailableParameters == null) {\n allAvailableParameters = new TreeSet<String>();\n\n try {\n List<String> dataTypeList = new ArrayList<String>();\n dataTypeList.add(dataType);\n Set<String> parameters = DataDeliveryHandlers\n .getParameterHandler()\n .getNamesByDataTypes(dataTypeList);\n if (parameters != null) {\n allAvailableParameters.addAll(parameters);\n }\n } catch (RegistryHandlerException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Unable to retrieve the parameter list.\", e);\n }\n }\n return allAvailableParameters;\n }",
"@Override\n public List<String> process(List<String> tuple) {\n List<String> result = tuple;\n\n for(Operator operator: _operators){\n result = operator.process(result);\n if(result == null){\n break;\n }\n }\n return result;\n }",
"Iterable<K> inputs();",
"public DbIterator iterator() {\n \t\tArrayList<Tuple> tuples = new ArrayList<Tuple>(); //tuples to return\n TupleDesc desc;\n String[] names;\n\t \tType[] types;\n\t \t// these will be the TupleDesc to return\n\t \tif (gbfield == Aggregator.NO_GROUPING){\n\t \t\tnames = new String[] {\"aggregateVal\"};\n\t \t\ttypes = new Type[] {Type.INT_TYPE};\n\t \t} else {\n\t \t\tnames = new String[] {\"groupVal\", \"aggregateVal\"};\n\t \t\ttypes = new Type[] {gbfieldtype, Type.INT_TYPE};\n\t \t}\n\t \tdesc = new TupleDesc(types, names);\n\t \t\n\t \tTuple toAdd;\n\t \t// iterate over the GROUP BY entries and make the tuples\n\t \tIterator<Map.Entry<Field, Integer>> it = gbcount.entrySet().iterator();\n\t \tMap.Entry<Field, Integer> nextfield;\n\t \tint aggregateVal = 0;\n\t \twhile(it.hasNext()) {\n\t \t\tnextfield = it.next();\n\t \t\taggregateVal = nextfield.getValue();\n\t \t\ttoAdd = new Tuple(desc);\n\t \t\tif(gbfield == Aggregator.NO_GROUPING) {\n\t \t\t\ttoAdd.setField(0, new IntField(aggregateVal));\n\t \t\t} else {\n\t \t\t\ttoAdd.setField(0, nextfield.getKey());\n\t \t\t\ttoAdd.setField(1, new IntField(aggregateVal));\n\t \t\t}\n\t \t\ttuples.add(toAdd);\n\t \t}\n\t \treturn new TupleIterator(desc, tuples);\n }",
"int getRequestedValues(int index);",
"@NonNull\n Collection<TObj> getAll() {\n Collection<TObj> result = new LinkedList<>();\n for (int countR = mData.size(), i = 0; i < countR; i++) {\n int rowKey = mData.keyAt(i);\n SparseArrayCompat<TObj> columns = mData.get(rowKey);\n for (int countC = columns.size(), j = 0; j < countC; j++) {\n int key = columns.keyAt(j);\n result.add(columns.get(key));\n }\n }\n return result;\n }",
"public Iterable<Point2D> points() {\n\n return bst.keys();\n }",
"static ArrayList<XTupleSet> getCompleteTupleSets(String rel, ArrayList<String> rels, Connection dbConn) throws SQLException {\n\t\n\t// evaluate tables\n\tXTable targetTable = new XTable(rel, dbConn);\n\tArrayList<XTable> otherTables = new ArrayList<XTable>();\n\tfor (int i = 0; i < rels.size(); i++) {\n\t if (!rel.equals(rels.get(i))) { // exclude the target table\n\t\totherTables.add(new XTable(rels.get(i), dbConn));\n\t }\n\t}\n\t\n\tArrayList<XTupleSet> complete = new ArrayList<XTupleSet>();\n\tArrayList<XTupleSet> inComplete = new ArrayList<XTupleSet>();\n\t\n\tfor (int i = 0; i < targetTable.size(); i++) {\n\t inComplete.add(new XTupleSet(targetTable.getTuple(i))); // line 3-4\n\t}\n\t\n\twhile (!inComplete.isEmpty()) {\n\t XTupleSet tupleSet = pop(inComplete);\n\t \n\t // check all other tuples which are JCC with is tuple set. Line 7-8\n\t for (XTable table : otherTables) {\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t\t XTuple tuple = table.getTuple(i);\n\t\t if (tupleSet.jcc(tuple) && (!tupleSet.contains(tuple))) {\n\t\t\ttupleSet.add(tuple);\n\t\t\t// here, we should break, because there can not be\n\t\t\t// two tuples in a single table which are JCC with\n\t\t\t// the same tuple set.\n\t\t\tbreak;\n\t\t }\n\t\t}\n\t }\n\t \n\t // Line 9 - 20\n\t for (XTable table : otherTables) { // Line 9\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t\t XTuple tuple = table.getTuple(i);\n\t\t if (!tupleSet.contains(tuple)) { // Line 9\n\t\t\tXTupleSet prime = getPrime(tuple, tupleSet); // Line 11\n\t\t\t\n\t\t\tif (prime.hasTupleFrom(targetTable)) { // Line 12\n\t\t\t boolean inserted = false; // Line 13\n\t\t\t if (isInComplete(prime, complete)) {\n\t\t\t\tinserted = true; // Line 15\n\t\t\t\tfor (int j = 0 ; j < inComplete.size(); i++) { // Line 16\n\t\t\t\t XTupleSet ts = inComplete.get(j); // Line 16\n\t\t\t\t if (prime.jcc(ts)) { // Line 17\n\t\t\t\t\tts.addAll(prime);\n\t\t\t\t\tinserted = true;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tif (!inserted) {\n\t\t\t\t inComplete.add(prime);\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t }\n\t\t}\n\t }\n\t \n\t // Line 22\n\t complete.add(tupleSet);\n\t}\n\t\n\treturn complete;\n }",
"PrimitiveIterator.OfLong bitTupleIterator(int tupleSize, int startIndex, BitOrder order);",
"private Set<String> projectFromTuples(List<Tuple> tuples, int projectPosition) {\n\t\tSet<String> values = new HashSet<String>();\n\t\tfor (Tuple tuple : tuples) {\n\t\t\tvalues.add(tuple.getStringValues().get(projectPosition));\n\t\t}\n\t\treturn values;\n\t}",
"private TupleList InDirectSelect(String[] p){\n TupleList tpl= new TupleList();\n String classname = p[3];\n String attrname = p[4];\n String crossname = p[2];\n String[] attrtype = new String[1];\n String[] con =new String[3];\n con[0] = p[6];\n con[1] = p[7];\n con[2] = p[8];\n\n int classid = 0;\n int crossid = 0;\n String crossattrtype = null;\n int crossattrid = 0;\n for(ClassTableItem item : classt.classTable){\n if(item.classname.equals(classname)){\n classid = item.classid;\n if(attrname.equals(item.attrname))\n attrtype[0]=item.attrtype;\n }\n if(item.classname.equals(crossname)){\n crossid = item.classid;\n if(item.attrname.equals(con[0])) {\n crossattrtype = item.attrtype;\n crossattrid = item.attrid;\n }\n }\n }\n\n for(ObjectTableItem item1:topt.objectTable){\n if(item1.classid == crossid){\n Tuple tuple = GetTuple(item1.blockid,item1.offset);\n if(Condition(crossattrtype,tuple,crossattrid,con[2])){\n for(BiPointerTableItem item3: biPointerT.biPointerTable){\n if(item1.tupleid == item3.objectid&&item3.deputyid == classid){\n for(ObjectTableItem item2: topt.objectTable){\n if(item2.tupleid == item3.deputyobjectid){\n Tuple ituple = GetTuple(item2.blockid,item2.offset);\n tpl.addTuple(ituple);\n }\n }\n }\n }\n\n }\n }\n\n }\n String[] name = new String[1];\n name[0] = attrname;\n int[] id = new int[1];\n id[0] = 0;\n PrintSelectResult(tpl,name,id,attrtype);\n return tpl;\n\n\n\n\n }",
"private Tuples() {\n // prevent instantiation.\n }",
"public ArrayList<Parameter> getInternalData()\r\n {\r\n return m_alParameters;\r\n }",
"void all_Data_retrieve() {\n\t\tStatement stm=null;\n\t\tResultSet rs=null;\n\t\ttry{\n\t\t\t//Retrieve tuples by executing SQL command\n\t\t stm=con.createStatement();\n\t String sql=\"select * from \"+tableName+\" order by id desc\";\n\t\t rs=stm.executeQuery(sql);\n\t\t DataGUI.model.setRowCount(0);\n\t\t //Add rows to table model\n\t\t while (rs.next()) {\n Vector<Object> newRow = new Vector<Object>();\n //Add cells to each row\n for (int i = 1; i <=colNum; i++) \n newRow.addElement(rs.getObject(i));\n DataGUI.model.addRow(newRow);\n }//end of while\n\t\t //Catch SQL exception\n }catch (SQLException e ) {\n \te.printStackTrace();\n\t } finally {\n\t \ttry{\n\t if (stm != null) stm.close(); \n\t }\n\t \tcatch (SQLException e ) {\n\t \t\te.printStackTrace();\n\t\t }\n\t }\n\t}",
"public List selectAll() {\n\t\tList values = new ArrayList();\n\t\topen();\n\t\tCursor c = queryDB();\n\n\t\tif (c.moveToFirst()) {\n\t\t\tdo {\n\t\t\t//\tvalues.add(hydrateNewObject(c));\n\t\t\t} while (c.moveToNext());\n\t\t}\n\t\t\n\t\tc.close();\n\t\tclose();\n\t\t\n\t\treturn values;\n\t}",
"public Tuple get(int[] pos) {\n if (pos == null || pos.length == 0)\n return new Tuple(this);\n\n Tuple results = new Tuple();\n\n for (int i : pos)\n results.add(elements.get(i));\n\n return results;\n }",
"java.util.List<java.lang.Integer> getRequestedValuesList();",
"public Tuple next() throws RelationException;",
"private TreeSet<SpatialTemporal> gatherData() {\r\n TreeSet<SpatialTemporal> dataPoints = new TreeSet<>(new Comparator<SpatialTemporal>() {\r\n @Override\r\n public int compare(SpatialTemporal o1, SpatialTemporal o2) {\r\n return (new Double(o1.position)).compareTo(new Double(o2.position));\r\n }\r\n });\r\n\r\n double positionOnRoute = 0;\r\n for (final RoadSegment roadSegment : route) {\r\n for (Vehicle veh : roadSegment) {\r\n if (veh.type() == AgentType.OBSTACLE) {\r\n continue;\r\n }\r\n double position = positionOnRoute + veh.getFrontPosition();\r\n dataPoints.add(new SpatialTemporal(position, veh.getSpeed(), veh.getLength(), veh.getAcc()));\r\n }\r\n positionOnRoute += roadSegment.roadLength();\r\n }\r\n return dataPoints;\r\n }",
"@Override\npublic Tuple get_next() throws IOException, JoinsException, IndexException, InvalidTupleSizeException,\n\t\tInvalidTypeException, PageNotReadException, TupleUtilsException, PredEvalException, SortException,\n\t\tLowMemException, UnknowAttrType, UnknownKeyTypeException, Exception {\n\treturn null;\n}",
"List<Position> selectAll();",
"public Tuple()\n {\n // Creat a new tuple\n data = new byte[max_size];\n tuple_offset = 0;\n tuple_length = max_size;\n }",
"java.lang.String getSymbolTuple();",
"java.util.List<object_detection.protos.Calibration.XYPairs.XYPair>\n getXYPairList();",
"public abstract String[] getValues();",
"private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }",
"@Override\n public TimestampedUIDTuple getSourceTuple() {\n return (TimestampedUIDTuple) tuple;\n }",
"public Iterable<V> values();",
"E[] getAll();",
"public final boolean[] isBdedQuantATuple() { return this.tupleOrs; }",
"T[] getValues();",
"private void getTravelItems() {\n String[] columns = Columns.getTravelColumnNames();\n Cursor travelCursor = database.query(TABLE_NAME, columns, null, null, null, null, Columns.KEY_TRAVEL_ID.getColumnName());\n travelCursor.moveToFirst();\n while (!travelCursor.isAfterLast()) {\n cursorToTravel(travelCursor);\n travelCursor.moveToNext();\n }\n travelCursor.close();\n }",
"public interface IGeneralTuple {\r\n /**\r\n * Sets the values for a tuple.\r\n * @param values the tuple values\r\n */\r\n public void setValues(List<Object> values);\r\n /**\r\n * Returns the list of values in a tuple.\r\n * @return the list of values\r\n */\r\n public List<Object> getValues();\r\n /**\r\n * Returns the value located in a specific index of the list of values. \r\n * @param index the index in which the value is located\r\n * @return the value \r\n */\r\n public Object getValue(int index);\r\n /**\r\n * Returns whether it is a general tuple.\r\n * @return a boolean value indicating whether it is a general tuple\r\n */\r\n public boolean isGeneralTuple();\r\n}",
"private Set<Pair<String,String>> projectFromTuples(List<Pair<Tuple,String>> tuplesWithSource, int projectPosition) {\n\t\tSet<Pair<String,String>> valuesWithSource = new HashSet<Pair<String,String>>();\n\t\tfor (Pair<Tuple,String> pair : tuplesWithSource) {\n\t\t\tString value = pair.getFirst().getStringValues().get(projectPosition);\n\t\t\tString source = pair.getSecond();\n\t\t\tvaluesWithSource.add(new Pair<String,String>(value,source));\n\t\t}\n\t\treturn valuesWithSource;\n\t}",
"protected Tuple readNext()\n throws TransactionAbortedException, DbException {\n if(readNextCalled)\n return null;\n readNextCalled = true;\n\n BufferPool bp = Database.getBufferPool();\n int insertCount = 0;\n while(child.hasNext()) {\n bp.insertTuple(tid, tableid, child.next());\n insertCount++;\n }\n\n Tuple retTuple = new Tuple(td);\n retTuple.setField(0, new IntField(insertCount));\n return retTuple;\n }",
"@Override\n\tpublic Tuple next(){\n\t\t//Delete the lines below and add your code here\n\t\tTuple temp;\n\t\tTuple t = child.next();\n\t\tint s = -1;\n\t\tString s1;\n\t\tString s2;\n\t\tif(sorted==false){\n\t\t\tif(t!=null){\n\t\t\t\tfor(s=0; s<t.attributeList.size(); s++){\n\t\t\t\t\tif(t.attributeList.get(s).attributeName.equals(orderPredicate)){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile(t!=null){\n\t\t\t\ttuplesResult.add(t);\n\t\t\t\tt = child.next();\n\t\t\t}\n\t\t\tfor(int i=0; i<tuplesResult.size(); i++){\n\t\t\t\ts1 = tuplesResult.get(i).attributeList.get(s).attributeValue.toString();\n\t\t\t\tfor(int j=i+1; j<tuplesResult.size(); j++){\n\t\t\t\t\ts2 = tuplesResult.get(j).attributeList.get(s).attributeValue.toString();\n\t\t\t\t\tif(s1.compareTo(s2) > 0){\n\t\t\t\t\t\ttemp=tuplesResult.get(i);\n\t\t\t\t\t\ttuplesResult.set(i, tuplesResult.get(j));\n\t\t\t\t\t\ttuplesResult.set(j, temp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsorted=true;\n\t\t}\n\t\tif(tuplesResult.size()>0){\n\t\t\treturn tuplesResult.remove(0);\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}",
"public static Tuple getInstance( ) {\n return tuple;\n }",
"public final ArrayList<Integer> brx() {\n ArrayList<Integer> arrayList;\n Exception e;\n Throwable th;\n AppMethodBeat.i(73625);\n Cursor rawQuery;\n try {\n rawQuery = this.bSd.rawQuery(\"select exptId from ExptItem\", null);\n if (rawQuery != null) {\n try {\n arrayList = new ArrayList();\n while (rawQuery.moveToNext()) {\n try {\n arrayList.add(Integer.valueOf(rawQuery.getInt(0)));\n } catch (Exception e2) {\n e = e2;\n try {\n ab.e(\"MicroMsg.ExptStorage\", \"get all expt id error[%s]\", e.toString());\n if (rawQuery != null) {\n }\n AppMethodBeat.o(73625);\n return arrayList;\n } catch (Throwable th2) {\n th = th2;\n if (rawQuery != null) {\n rawQuery.close();\n }\n AppMethodBeat.o(73625);\n throw th;\n }\n }\n }\n } catch (Exception e3) {\n e = e3;\n arrayList = null;\n ab.e(\"MicroMsg.ExptStorage\", \"get all expt id error[%s]\", e.toString());\n if (rawQuery != null) {\n rawQuery.close();\n }\n AppMethodBeat.o(73625);\n return arrayList;\n }\n }\n arrayList = null;\n if (rawQuery != null) {\n rawQuery.close();\n }\n } catch (Exception e4) {\n e = e4;\n rawQuery = null;\n arrayList = null;\n } catch (Throwable th3) {\n th = th3;\n rawQuery = null;\n if (rawQuery != null) {\n }\n AppMethodBeat.o(73625);\n throw th;\n }\n AppMethodBeat.o(73625);\n return arrayList;\n }",
"public java.util.List<br.unb.cic.bionimbus.avro.gen.Pair> getInputs() {\n return inputs;\n }",
"Iterable<Long> vertices() {\n //YOUR CODE HERE, this currently returns only an empty list.\n return world.keySet();\n }",
"List<Pair<String, Value>> fields();",
"public ArrayList<PieEntry> getValues(){\n\n SQLiteDatabase db = this.getWritableDatabase();\n ArrayList<PieEntry> dataV = new ArrayList<>();\n String[] columns = {\"cost\", \"name\"};\n Cursor cursor = db.query(\"subscriptions\", columns, null, null, null, null, null);\n\n for(int i=0; i<cursor.getCount(); i++){\n\n cursor.moveToNext();\n dataV.add(new PieEntry(cursor.getFloat(0), cursor.getString(1)));\n }\n\n return dataV;\n\n }"
] | [
"0.6875609",
"0.67392254",
"0.63193303",
"0.6262598",
"0.6077626",
"0.6002099",
"0.5895822",
"0.5820086",
"0.5791119",
"0.57071763",
"0.5673",
"0.5668754",
"0.56539994",
"0.56176287",
"0.55899405",
"0.55479944",
"0.5517348",
"0.54838455",
"0.547629",
"0.54422444",
"0.540926",
"0.5388977",
"0.5349965",
"0.5348126",
"0.53402895",
"0.5330127",
"0.52992195",
"0.5290383",
"0.52783036",
"0.5234456",
"0.5233776",
"0.5202831",
"0.51955026",
"0.51746666",
"0.51568174",
"0.5148907",
"0.51480794",
"0.51329726",
"0.513111",
"0.5126401",
"0.51214564",
"0.51047695",
"0.51030713",
"0.5103029",
"0.5092034",
"0.5014002",
"0.50079286",
"0.49969766",
"0.49847198",
"0.49843237",
"0.49807683",
"0.49779603",
"0.4972035",
"0.4969104",
"0.49637255",
"0.4962787",
"0.4946514",
"0.4943846",
"0.49436176",
"0.49395055",
"0.4933363",
"0.49263766",
"0.49205837",
"0.49135718",
"0.49120542",
"0.4906526",
"0.48934785",
"0.4890881",
"0.48855305",
"0.4884528",
"0.4884169",
"0.48740667",
"0.48709175",
"0.4870622",
"0.48703167",
"0.4869616",
"0.486568",
"0.48612374",
"0.4860226",
"0.48562118",
"0.48525533",
"0.4851672",
"0.4850988",
"0.48474342",
"0.4845153",
"0.48441204",
"0.48379588",
"0.48279238",
"0.48220506",
"0.48197243",
"0.48161876",
"0.4816133",
"0.48146403",
"0.48095167",
"0.48070747",
"0.48030433",
"0.4798081",
"0.47954202",
"0.47951087",
"0.47950098",
"0.4784853"
] | 0.0 | -1 |
print even numbers divisible by 7, between 1 and 1000 | public static void main(String[] args) {
int number = 1;
do{
if ( (number%2 == 0) && (number%7 == 0) ){
System.out.print(number + " ");
}
number++;
}while(number<=1000);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n int count = 0;\r\n \r\n for (int num = 100; num <= 500; num++) {\r\n // Find all numbers from 100 to 500 divisible by 5 or 7 but not both.\r\n if ((num % 5 == 0 && num % 7 != 0) || (num % 5 != 0 && num % 7 == 0)) {\r\n count += 1;\r\n // Print 10 numbers on each line.\r\n if (count % 10 == 0) {\r\n System.out.println(num);\r\n }\r\n else {\r\n System.out.print(num + \" \");\r\n }\r\n }\r\n }\r\n }",
"public int whileLoopExample2(int num, boolean divisibleBy7) {\n do {\n System.out.println(num);\n if (num % 7 == 0)divisibleBy7 =false;\n num--;\n }while(divisibleBy7 == true);\n return num;\n\n }",
"public static void main(String[] args) {\n\tint count = 99 ;\t\n\tint ten = 0 ;\n\tSystem.out.println(\"Counting from 100 to 200\") ; \n\tSystem.out.println(\"Divisible by 5 or 6, but not both\") ;\n\tSystem.out.println(\"_______________________________________\") ;\n\t\t\n\t\t//Display all the numbers between 100 and 200\n\t\tdo {\n\t\t\tif (count % 5 == 0 ^ count % 6 == 0) {\n\t\t\t\tSystem.out.print(count + \" \") ;\n\t\t\t\tten++;\n\t\t\t}//display only 10 per line\n\t\t\tif (ten == 10){\n\t\t\t\tSystem.out.println() ;\n\t\t\t\tten = 0 ;\n\t\t\t}\n\t\t\tcount++ ;\n\t\t} while (count <= 200);\t\n\t\t\t\n\t}",
"public static void main(String[] args) {\n\t\tfor(int a=1;a<=100;a++) {\r\n\t\t\tif(a%5==0&&a%7==0) {\r\n\t\t\t\tSystem.out.println(a);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public int tablesExample(int num,boolean divisibleBy7) {\n do {\n System.out.println(num);\n if (num % 7 == 0)divisibleBy7 = true;\n num--;\n }while (divisibleBy7 == false);\n\n return num;\n\n }",
"public static void main(String[] args) {\n int n;\n Scanner ja=new Scanner(System.in);\n n=ja.nextInt();\n if(n%7==0)\n{\n\tSystem.out.println(\"yes\");\n}\nelse\n{\n\tSystem.out.println(\"no\");\n}\n\t}",
"private static void displayNumbers(){\n BigInteger bigInteger = new BigInteger(create50DigitString());\n int i = 1;\n do {\n // Checking the remainder's int value == 0 since the requirement is to find the number greater than Long.MAX_VALUE and divisible by 2 or 3.\n if (bigInteger.remainder(new BigInteger(\"2\")).intValue() == 0 || bigInteger.remainder(new BigInteger(\"3\")).intValue() == 0) {\n System.out.println(bigInteger);\n i++;\n }\n// Incrementing the bigInteger\n bigInteger = bigInteger.add(new BigInteger(\"1\"));\n// Exit condition\n } while (i != 11);\n }",
"public static void main(String[] args) {\n long number = 6857;\n long i = 2;\n while ((number / i != 1) || (number % i != 0)) {\n if (number % i == 0) {\n number = number / i;\n } else {\n i++;\n }\n }\n System.out.println(i);\n\n }",
"void milestone3(){\n for(int i = 2; i <= 100; i++){\n int count = 0;\n for(int j = 1; j <= i; j++)\n if(i % j == 0) count += 1;\n if(count > 2) continue;\n else System.out.print(i + \" \");\n }\n System.out.println();\n }",
"public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"Brojevi od 100 do 1000 djeljivi i sa 5 i sa 6 su:\");\r\n\t\t\r\n\t\tint brojac=0;\r\n\t\t//provjera brojeva koju su djeljivi i sa 5 i sa 6 i njihov ispis 10 po redu\r\n\t\tfor(int i=100; i<=1000; i++){\r\n\t\t\tif (is6(i) && (is5(i))){\r\n\t\t\t\tSystem.out.print(i+ \" \");\r\n\t\t\t\tbrojac++;\r\n\t\t\t\t\r\n\t\t\t\tif(brojac%10==0){\r\n\t\t\t\t\tSystem.out.println();\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}",
"public static int Main()\n\t{\n\tint[] b = new int[12];\n\tint w;\n\tint i;\n\tint[] a = {13, 44, 72, 103, 133, 164, 194, 225, 256, 286, 317, 347};\n\tString tempVar = ConsoleInput.scanfRead();\n\tif (tempVar != null)\n\t{\n\t\tw = Integer.parseInt(tempVar);\n\t}\n\tfor (i = 0;i < 12;i++)\n\t{\n\t\tb[i] = a[i] % 7 - 1;\n\t\tb[i] = (b[i] + w) % 7;\n\t}\n\tfor (i = 0;i < 12;i++)\n\t{\n\t\tif (b[i] == 5)\n\t\t{\n\t\t\tSystem.out.printf(\"%d\\n\",i + 1);\n\t\t}\n\t}\n\treturn 0;\n\t}",
"public static void main(String[] args) {\n System.out.println(IntStream.rangeClosed(1, 70).filter(t->t%7==0).sum());\n\n\t\t\n\t\t//2.yol\n\t\tSystem.out.println(IntStream.iterate(7, t->t+7).limit(10).sum());\n\t\t\n\t}",
"public static void main(String[] args) {\n int number = 990;\n boolean result = number > 1000 || number % 10 == 0;\n System.out.println(result);\n }",
"public static void main(String[] args) {\n int counter = 1;\n while (counter <=500){\n if (counter % 7 == 0 || counter % 5 == 0 || counter % 3 == 0){\n System.out.println( counter);\n }\n counter ++;\n }\n\n int counter2 = 500;\n do {\n System.out.println(\"do counter < 100\");\n }while (counter2 < 100); //mind. 1 Durchlauf da Bedingung am schluss ist, sonst gleich wie while\n }",
"public static void main(String args[]) {\n\t\t\n\t\tboolean tenThousand = false;\n\t\t\n\t\tint num = 1;\n\t\t\n\t\tint primes =1;\n\t\t\n\t\tboolean prime = true;\n\t\t\n\t\t\n\t\twhile(tenThousand == false) {\n\t\t\t\n\t\t\tfor(int i =2; i < num; i++) {\n\t\t\t\tif(num%i == 0)\t\tprime = false;\n\t\t\t\telse {\n\t\t\t\t\tif(i== num-1 && prime == true)\tprimes++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(primes == 10001) {\n\t\t\t\ttenThousand = true;\n\t\t\t\tSystem.out.println(num);\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(num);\n\t\t\t//System.out.println(primes + \"prime\");\n\t\t\t\n\t\t\tnum++;\n\t\t\tprime = true;\n\t\t\n\t}\n}",
"private void findOddEven() {\n\t\tif (number % 2 == 0) {\n\t\t\tif (number >= 2 && number <= 5)\n\t\t\t\tSystem.out.println(\"Number is even and between 2 to 5...!!\");\n\t\t\telse if (number >= 6 && number <= 20)\n\t\t\t\tSystem.out.println(\"Number is even and between 6 to 20...!!\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Number is even and greater than 20...!!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Number is odd...!!\");\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Odd numbers under 1000 are:\");\n\t\tfor (int i=1;i<1000;i++)\n\t\t{\n\t\t\tif (i%2 != 0)\n\t\t\t{\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\n int limit = 1000;\n\n for (int num = 0; num <= 1000; num++) {\n boolean isPrime = true;\n for (int divisor = 2; divisor < num; divisor++) {\n if (num % divisor == 0) {\n isPrime = false;\n break;\n }\n }\n if (isPrime) {\n System.out.print(num + \" \");\n }\n }\n }",
"public static int rand7() {\n while (true) {\n int number = 5 * rand5() + rand5();\n if (number < 21) {\n return number % 7;\n }\n }\n }",
"public static void printOddNumbers (int from, int to) {//when we dont know the range\n for(int i=from; i<=to; i++){\n if(i%2!=0){\n System.out.print(i + \" \");\n }\n\n }\n System.out.println();\n }",
"public static void main(String[] args) {\n\t\tfor(int x=1; x<10;x++)\n\t\t{\n\t\t\tif (x%2!=0)\n\t\t\tSystem.out.println(x);\n\t\t\t\n\t\t}\n\n\t\t\t// TODO Auto-generated method stub\n\t\t\tfor(int x=10; x<35;x++)\n\t\t\t{\n\t\t\t\tif (x != 21)\n\t\t\t\tSystem.out.println(x);\n\t\t\t\t\n\t\t\t}\n\t}",
"public static void multipleReplacement() {\r\n\t\tfor (int i = 1; i <= 100; i++) {\r\n\t\t\tif (i % 3 == 0) {\r\n\t\t\t\tSystem.out.println(i + \" is a multiple of 3\");\r\n\t\t\t} else if (i % 7 == 0) {\r\n\t\t\t\tSystem.out.println(i + \" is a multiple of 7\");\r\n\t\t\t} else\r\n\t\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\n int n = 0;\n for(int i=0; i<100; i++){\n if(i%2==1){\n n =i;\n } else\n n =i;\n }\n System.out.println(n);\n }",
"public static void main(String[] args) {\n\n\t\t\tint num = 11 ;\n\t\t\tint temp = 0;//prime number means it should be alble to divided by 2-6 with no reminder\n\t\t\tfor(int i=2; i<num-1; i++ )\n\t\t\t{\n\t\t\t\tif(num%i == 0)\n\t\t\t\t{\n\t\t\t\t\ttemp= temp+1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(temp==0) {System.out.println(num+\" prime\");}\n\t\t\telse {System.out.println(num+\"not prime\");}\n\t\t}",
"public static void bigNumber(int num) {\n\n if (num <= 5) {\n System.out.println(\"\");\n } else {\n int i = 0;\n while (i <= num) {\n if (i != 4) {\n System.out.println(i);\n }\n i++;\n }\n }\n\n }",
"public static void main(String[] args) {\n\t\tfor (int i = 1; i < 101; i++) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program\");\n\t\tfor (int i = 100; i > 0; i--) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 2; i < 101; i = i + 2) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 1; i < 100; i = i + 2) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 501; i++) {\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tSystem.out.println(i + \" is even.\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(i + \" is odd.\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 778; i = i + 7) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 2006; i < 2019; i++) {\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 3; i++) {\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tSystem.out.println(i + \" \" + \" \" + j);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 9; i += 3) {//rows \n\t\t\tfor (int j = 1; j < 4; j++) {//how many \n\t\t\t\tSystem.out.print(j + i);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 100; i += 10) {\n\t\t\tfor (int j = 1; j <11; j++) {\n\t\t\t\tSystem.out.print(j + i+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\nfor (int i = 1; i < 7; i++) {\n\tfor (int j = 0; j < i; j++) {\n\t\tSystem.out.print(\"* \");\n\t}\n\tSystem.out.println();\n}\t\n\n\t\n\t\n\t\n\t}",
"public static void main(String[] args) {\n\t\tfor(int i = 0 ; i<=99 ; i++) {\n\t\t\tif((i%2) == 1) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t}",
"public static void printInt() {\n\t\tint i = 500;\n\t\twhile (i >=25) {\n\t\t\tif(i%6==0 && i%8==0) {\n\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t}\n\t\t\t// Do not forget to type increment, otherwise it will be infinite loop\n\t\t\ti--;\n\t\t}\n\t}",
"public void divisorsInRange(int begin, int end)\n\t{\n\t\tint size = 0;\n\t\tfor(int i=begin;i<end;i++){\n\t\t\tif(isDivisibleBy(i,7)){\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}\n\t\tdivisibleBySeven = new int[size]; \n\t\tint index = 0;\n\t\tfor(int i=begin;i<end;i++){\n\t\t\tif(isDivisibleBy(i,7)){\n\t\t\t\tdivisibleBySeven[index] = i;\n\t\t\t\tindex++;\n\t\t\t}\n\n\t\t}\n\t\t//System.out.println(\"testDivisors NOT IMPLEMENTED\");\n\t}",
"public static void main(String[] args){\r\n int i=100;\r\n while (i>0) { \r\n if (i%2!=0) {\r\n System.out.print(i+\"\\n\");\r\n }\r\n i--;\r\n } \r\n }",
"public static void main(String[] args){\n\t\tboolean flag=false;\n\t\tSystem.out.println(\"i\");\n\t\tfor( int i=1; i<=100; i+=1){\n\t\t\tfor(int d=1; d<=i/2; d+=1){\n\t\t\t\tif( i%d == 0){\n\t\t\t\t\tflag=true;\n\t\t\t\t\tbreak;\n\n\n\t\t\t\t}\n\t\t\t\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t \n\t\t}\n\t\tif \n\t\t}\n}",
"public static void main(String[] args) {\n\r\n\t\tSystem.out.print(\"[\");\r\n\t\tfor(int i=1; i<=100; i++)\r\n\t\t{\r\n\t\t\tif(isPerfectNumber(i))\r\n\t\t\tSystem.out.print(i + \" \");\t\r\n\t\t}\r\n\t\tSystem.out.println(\"]\");\r\n\t}",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\tfor(int i=1;i<=4;i++)\r\n\t\t{\r\n\t\t\tfor(int j=1;j<=8;j=j*2)\r\n\t\t\t{\r\n\t\t\t\tif(j%2==0)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"#\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\r\n\t}\r\n\r\n}",
"public static void pattern7(int n) {\r\n\r\n\t\tfor (int i = 1; i <= 7; i++) {\r\n\t\t\tfor (int j = 1; j <= i; j++) {\r\n\t\t\t\tSystem.out.print(j + \" \");\r\n\t\t\t}\r\n\t\t\tint temp = i;\r\n\t\t\tif (temp > 1 && temp<=7) {\r\n\t\t\t\tfor (int k = i - 1; k > 0; k--) {\r\n\t\t\t\t\tSystem.out.print(k + \" \");\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tint num = 8;\n\t\tint a = num & 1;\n\t\tSystem.out.println(a);\n\t\tif(a>0)\n\t\t\tSystem.out.println(\"Odd!\");\n\t\telse\n\t\t\tSystem.out.println(\"Even!\");\n\t}",
"public static void primeNumber() {\n\t\tboolean isprimeNumber = false;\n\t\tSystem.out.println(\"prime numbers between 1 and 1000 are\");\n\n\t\tfor (int i = 2; i <1000; i++) {\n\t\tif(calculation(i)==true)\n\t\t{\n\t\t\tSystem.out.println(i);\n\t\t\tprime++;\n\t\t}\n\t\t\n\t}\n\t\tSystem.out.println(prime+\" numbers are prime\");\n\t}",
"public static void printEvenNumbers(int from, int to){\n for(int i=from; i<=to; i++){\n if(i%2==0){\n System.out.print(i + \" \");\n }\n }\n System.out.println();\n }",
"public static void printPerfectNumbers(){\n\t\tfor(Long x:result){\n\t\t\tSystem.out.println(x);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint i;\r\n\t\tfor(i=0;i<100;i++) {\r\n\t\t\tif((i%3==0)||(i%11==0)) {\r\n\t\t\t\tSystem.out.println(i);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) {\n Random r = new Random();\n final int min=0, max=100;\n int num = r.nextInt(max - min) + min;\n System.out.println(\"Random integer : \"+num);\n \n System.out.println(\"The first \"+num+\" prime numbers\");\n // prime number can only be divided by itself and 1\n int loop=0; \n for (int i = 2; loop < num; i++) {\n int count=0;\n for (int j = i; j >= 1; j--) {\n if (i%j == 0) {\n count++;\n }\n }\n if (count == 2) {\n System.out.print(i+\" \");\n loop++;\n }\n }System.out.println(); \n }",
"public static void main(String[] args) {\n\n int N = Integer.MAX_VALUE;\n\n\n for (int n = 2; n < N ; n++) {\n boolean prost = true;\n for (int i = 2; i < n; i++) {\n\n if (n % i == 0) {\n prost = false;\n\n }\n }\n if (prost) {\n System.out.println(n);\n }\n }\n\n\n }",
"public static void main(String[] args) {\n\t\tint i = 0;\n\t\tint k = 0;\n\t\tint count = 0;\n\t\t\n\t\tfor(i = 2; i <= 100; i++) {\n\t\t\tcount = 0;\n\t\t\tfor(k = 2; k < i; k++) {\n\t\t\t\tif(i % k == 0) {\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count == 0) {\n\t\t\t\tSystem.out.printf(\"%d \",i);\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint x = 14;\r\n\t\tint limit = 50000;\r\n\t\tprintOddNums(100);\r\n\t\tprintEvenNums(100);\r\n\t\tSystem.out.println(\r\n\t\t\t\t\"--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\");\r\n\t\tlong startT = System.currentTimeMillis();\r\n\t\tprintPrimeNums(limit);\r\n\t\tlong endT = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Took \" + (endT - startT) + \" ms to geenrate primes upto \" + limit);\r\n\t\tSystem.out.println(\r\n\t\t\t\t\"--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Is \" + x + \" a prime num = \" + isPrime(x));\r\n\t}",
"public static void main(String[] args){\n\n for(int n = 2; n < 102; n+=2)System.out.printf(\"%d\\n\",n);\n \n \n }",
"public static void main(String[] args) {\n int count = 0;\n int sum = 0;\n final int supremum = 1000;\n\n while (count < supremum) {\n if ((count % 3) == 0 || (count % 5) == 0) {\n sum += count;\n }\n count += 1;\n }\n System.out.println(sum);\n }",
"public static void main(String[] args) {\nint no=38;\n//using for loop\n/*for(int i=3;i<=no;i++) {\n\tif(no==i) {\n\t\tSystem.out.println(no+ \" number is multiple of 3\");\n\t}\n\ti=i+3;\n}*/\n//using while loop\n/*int i=3;\nwhile(i<=no) {\n\tif(no==i) {\n\t\tSystem.out.println(no+\" number is multiple of 3\");\n\t}\n\ti=i+3;\n}*/\n//using do while loop\n/*int i=3;\ndo {\nif(no==i) {\n\tSystem.out.println(no+\" number is multiple of 3\");\n}\ni=i+3;\n}while(i<=no);*/\n//using recursion method\nint i=3;\n\nint result=FindNumberMunltipleOf3WithoutusingdivandmodOperator.print(i,no);\nif(result==-1) {\n\tSystem.out.println(no+\" number is multiple of 3 \");\n}\nSystem.out.println(no+\" number is not multiple of 3\");\n\n\t}",
"public static void main(String[] args) {\n List<Integer> pr = new ArrayList<>();\n out:\n for (int p = 2; p <= 100; p++) {\n for (int q : pr) {\n if (p % q == 0) {\n continue out;\n }\n }\n pr.add(p);\n }\n Set<List<Integer>> s = new HashSet<>();\n for (int a = 2; a <= 100; a++) {\n List<Integer> l = new ArrayList<>();\n for (int p : pr) {\n int e = 0;\n for (int c = a; c % p == 0; c /= p) {\n e++;\n }\n l.add(e);\n }\n for (int b = 2; b <= 100; b++) {\n List<Integer> m = new ArrayList<>();\n for (int e : l) {\n m.add(b * e);\n }\n s.add(m);\n }\n }\n System.out.println(s.size());\n }",
"public static void main(String[] args) \r\n\t{\n\t\tfor (int a=0; (a%6)<6;a++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(a);\r\n\t\t\t}\r\n\t\t}",
"public static void main(String[] args) {\n\t\t\n\t\tint remainder;\n\t\tboolean isPrime=true;\n\t\tint numberToCheck=17;\n\t\t\n\t\tfor(int i=2;i<numberToCheck/2;i++){\n\t //numberToCheckber is dived by itself\n\t\tremainder=numberToCheck%i;\n\t\tSystem.out.println(numberToCheck+\" Divided by \"+ i + \" gives a remainder \"+remainder);\n\t\t//If remainder is 0 than numberToCheckber is not prime and break loop. Else continue loop\n\t\t\tif(remainder==0){\n\t\t\t\tisPrime=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\n\t\tif(isPrime)\n\t\t\tSystem.out.println(numberToCheck + \" is a Prime number\");\n\t\t else\n\t\t System.out.println(numberToCheck + \" is not a Prime number\");\n\t}",
"public static void printOddInt() {\n\t\t\n\t\t//For Loop\n\t\tfor(int i=4; i<10; i++) {\n\t\t\tif(i%2!=0) {\n\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tfor (int i = 100; i <= 199; i++) {\n\t\t\tif(!(i%2==0)) {\n\t\t\t\tSystem.out.println(i+ \" \");\n\t\t\t}\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n System.out.println(new MultiplesOfThreeAndFive().calculate(1000));\n\n System.out.println(EvenFibonacci.calculateSumOfEvenFibonacciNumbersBelowValue(4000000));\n }",
"public static void nDigits(int num) {\r\n for(int x = ((int)Math.pow(10, num - 1)); x < (int)Math.pow(10, num); x++) {\r\n if(x % 2 == 0){\r\n if(conditionChecker(x)) {\r\n System.out.println(x);\r\n }\r\n }\r\n }\r\n }",
"public static void main(String[] args) {\n int num = 1500000;\n boolean flag = false;\n for (int i = 2; i <= num / 2; ++i) {\n // condition for nonprime number\n if (num % i == 0) {\n flag = true;\n break;\n }\n }\n\n if (!flag)\n System.out.println(num + \" is a prime number.\");\n else\n System.out.println(num + \" is not a prime number.\");\n\n }",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tlong no,temp=0;\n\t\t System.out.println(\"enter the max range\");\n\t\t no=sc.nextInt();\n\t\t int i;\n\t\t System.out.print(\"2\"+\" \" +\"3\"+\" \"+\"5\"+\" \"+\"7 \");\n\t\t \n\t for(i=4;i<=no;i++)\n\t {\n\t \t\n\t \tif(i%2!=0&&i%3!=0&&i%5!=0&&i%7!=0){\n\t \t\tSystem.out.print(i+\" \");\n\t \t\ttemp++;}\n\t \t}\n\t System.out.println(\"\\n there are total\"+\" \"+(temp+4)+\" prime nos between 1 and \"+no); }",
"public static void main(String[] args) {\r\n\tint a=1;\r\n\twhile(a>=1 && a<10) {\r\n\t\ta+=1;\r\n\t\tif(a%2==0) {\r\n\t\t\tSystem.out.println(\"\"+a);\r\n\t\t}\r\n\t}\r\n\tint max = 50;\r\n\tint add =0;\r\n\tfor(int s =0;s<=max;s+=1) {\r\n\t\tadd+= s;\r\n\t}\r\n\tSystem.out.println(\"\"+add);\r\n\t/*Adding up odd numbers 1-25\r\n\t * \r\n\t */\r\n\tint sum = 0;\r\n\tint c = 25;\r\n\tfor(int b=1 ;b<=c;b+=2) {\r\n\t\tsum+=b;\r\n\t\tSystem.out.println(\"\"+sum);\r\n\t}\r\n\t\r\n}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a number that include 6 numbers\");\r\n\t\tint a = sc.nextInt();\r\n\t\tint a1=a/100000;\r\n\t\tint a2=a%100000/10000;\r\n\t\tint a3=a%10000/1000;\r\n\t\tint a4=a%1000/100;\r\n\t\tint a5=a%100/10;\r\n\t\tint a6=a%10;\r\n\t\tif (a1==a6 && a2==a5 && a3==a4){\r\n\t\t\tSystem.out.println(\"Yours number is polyndromic\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"Yours number is unpolyndromic\");\r\n\t\t}\r\n\t\t\t\r\n\t}",
"private static void printSquareNumbers() {\r\n\r\n\t\tBigInteger number = new BigInteger(Long.MAX_VALUE + \"\");\r\n\t\tBigInteger finish = number.add(new BigInteger(\"10\"));\r\n\r\n\t\tfor (number = new BigInteger(Long.MAX_VALUE + \"\"); number.compareTo(finish) <= 0; number = number\r\n\t\t\t\t.add(new BigInteger(\"1\"))) {\r\n\t\t\tSystem.out.println(number.multiply(number));\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) {\n Scanner scan = new Scanner(\"11\");\n\n int input_x;\n\n int output;\n\n input_x = scan.nextInt();\n\n for (output = 1000 ; output > 0; output--) {\n if (input_x - output * 5 < 0) {\n continue;\n } else if ((input_x - output * 5) % 3 == 0) {\n break;\n }\n }\n\n if (output == 0 && input_x % 3 != 0) {\n System.out.println(-1);\n } else {\n System.out.println(output + (input_x - output * 5) / 3);\n }\n }",
"public static void main(String[] args) {\n\t\tint a=1;\n\t\t\n\t\twhile(a<=100) {\n\t\t\tSystem.out.print(a+\" \");\n\t\t\ta++;\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//print number 100 to 1\n\t\tint b=100;\n\t\t\n\t\twhile (b>=1) {\n\t\t\tSystem.out.print(b+\" \");\n\t\t\tb--;\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//print even number from 20 to 100\n\t\tint c=20;\n\t\t\n\t\twhile(c<=100) {\n\t\t\tSystem.out.print(c+\" \");\n\t\t\tc+=2;\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tint d =20;\n\t\t\n\t\twhile (d<=100) {\n\t\t\tif (d%2==0) {\n\t\t\t\tSystem.out.print(d+\" \");\n\t\t\t}\n\t\t\td++;\n\t\t}\n\n\t}",
"void solve() {\n num = new ArrayList<>();\n num.add(BigInteger.valueOf(4));\n for (int len = 2; len <= 100; len++)\n generate(\"4\", 1, len, false);\n Collections.sort(num);\n for (int tc = ii(); tc > 0; tc--) {\n long x = il();\n BigInteger X = BigInteger.valueOf(x);\n for (int i = 0; i < num.size(); i++) {\n if (num.get(i).mod(X).equals(BigInteger.ZERO)) {\n String z = num.get(i).toString();\n int end = z.lastIndexOf('4');\n int len = z.length();\n int a = 2 * (end+1);\n int b = len - end;\n out.println(a + b);\n break;\n }\n }\n }\n }",
"public static void main(String[] args) {\n //Loop to iterate over the 100 numbers\n for (int i = 0; i <= 100; i++) {\n //Variable to hold the prime numbers.\n String primeNumbers = \"\";\n //Boolean checker to ensure that the single digit prime numbers are inclusive.\n boolean prime = i == 2 || i == 3 || i == 5 || i == 7 || i == 9;\n //Checking if you get a whole number as a remainder after dividing by the single digit prime\n if (i % 2 != 0 && i % 3 != 0 && i % 5 != 0 && i % 7 != 0 && i % 9 != 0 || prime) {\n //Appending the prime numbers to the string variable.\n primeNumbers += i;\n //Adding an extra white space after each checked prime.\n System.out.print(primeNumbers + \" \");\n }\n }\n System.out.println(\"\");\n }",
"public static void Factorization(int number)\n\t{\n\t\t for(int i = 2; i< number; i++)\n\t\t {\n\t while(number%i == 0) \n\t {\n\t System.out.print(i+\" \");\n\t number = number/i;\n\t\t\n\t }\n\t \n\t }\n \n if(2<=number)\n {\n System.out.println(number);\n }\n \n }",
"public static void main(String[] args) {\n\t\tint i = 2;\n\t\twhile(i<10) {\n\t\t\tif(isDivisible(20*i)){\n\t\t\t\tSystem.out.println(\"Final: \"+20*i+\" with i= \"+i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti=i+2;\n\t\t}\n\t}",
"public static void main(String[] args) {\n int digito = 3;\n int numeroDigitos = 0;\n if (digito <= 0) {\n System.out.println(\"Ingrese como parámetro, un numero de digitos correcto (mayor que 0): \");\n }\n for (int i = 1; i <= 99999; i++) {\n int aux = i;\n\n int contador = 0;\n\n numeroDigitos = devolverContador(aux, contador);\n\n if (numeroDigitos == digito) {\n if (i < 4) {\n primo = true;\n } else {\n if (i % 2 == 0) {\n primo = false;\n } else {\n int contador1 = 0;\n int i1 = 1;\n int k = (i - 1) / 2;\n if (k % 2 == 0) {\n k--;\n }\n\n contador1 = primoDivisible(i1, k, i, contador1);\n\n if (contador1 == 1) {\n primo = true;\n }\n }\n }\n\n if (primo == true) {\n System.out.println(i);\n }\n }\n }\n }",
"public static void main(String[] args) {\n\t\tSystem.out.printf(\"The perfect numbers that are less than 10000 are:\\n\");\n\t\tfor(int i =1; i<=10000;i++)\n\t\t{\n\t\t\tint check =0;\n\t\t\tfor(int j =1;j<i;j++)\n\t\t\t{\n\t\t\t\tif(i%j == 0)\n\t\t\t\t{\n\t\t\t\t\tcheck+=j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(check == i)\n\t\t\t{\n\t\t\t\tSystem.out.print(i+\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\n\n\t\t\n\n\t}",
"public static void main(String[] args) {\nint i =1;\r\nfor(i=1; i<=20; i++)\r\n{\r\n\tif(i % 2 == 1)\r\nSystem.out.println(i);\r\n}\r\nSystem.out.println(\"Printing only the odd numbers from 1 to 20\");\r\n\t}",
"public static void main(String[] args) {\n\n\t int even=20;\n\t do {\n\t\tSystem.out.println(even);\n\t even+=2;\n\t }while (even<=50);\n//2. way\n\t int even1=20;\n\t do {\n\t\t if (even1%2==0) {\n\t\t\t System.out.println(even1);\n\t\t }\n\t even1++;\n\t }while (even1<=50);\n}",
"public static void main(String[] args) {\n\t\tfor (int i=8; i>=1; i--){\n\t\t\tfor (int j=1; j<=6; j++){\n\t\t\t\tif((7<=i&&i<=8)&&(5<=j&&j<=6)) \n\t\t\t\t\tbreak;\n\t\t\t\telse if((5<=i&&i<=6)&&(4<=j&&j<=5))\n\t\t\t\t\tcontinue;\n\t\t\t\telse if((i==1)&&(4<=j&&j<=5)){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.print((i*100+j)+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\t\t\n\t}",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter a number to get prime numbers below that number\");\nint givenum = sc.nextInt();\nint i,number,count;\nfor(number=1;number<=givenum;number++)\n{\n\tcount=0;\n\tfor(i=2;i<=number/2;i++)\n\t{\n\t\tif(number%i==0)\n\t\t{\n\t\t\tcount++;\n\t\t\tbreak;\n\t\t}\n\t}\nif(count==0 && number !=1)\n{\n\tSystem.out.println(number);\n}\n}\n\t}",
"public static int Main()\n\t{\n\t\t//cout << \"?????????n\" << endl;\n\t\tint n; //n????????a,b,c???,y??????x??????\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tint y;\n\t\tint x;\n\t\tint z;\n\t\tn = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\tfor (int i = 1; i <= n; i++) //n???\n\t\t{\n\t\t\tx = 0;\n\t\t\ty = 0;\n\t\t\ta = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\tb = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\tc = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\tif (b > c) //?b??c\n\t\t\t{\n\t\t\t\tz = c;\n\t\t\t\tc = b;\n\t\t\t\tb = z;\n\t\t\t}\n\t\t\tif ((a % 4 == 0 && a % 100 != 0) || (a % 400 == 0)) //????\n\t\t\t{\n\t\t\t\ty = 1;\n\t\t\t}\n\t\t\tfor (; b <= c - 1; b++) //??????\n\t\t\t{\n\t\t\t\tswitch (b)\n\t\t\t\t{\n\t\t\t\tcase 1 :\n\t\t\t\tcase 3 :\n\t\t\t\tcase 5 :\n\t\t\t\tcase 7 :\n\t\t\t\tcase 8 :\n\t\t\t\tcase 10 :\n\t\t\t\tcase 12 :\n\t\t\t\t\tx = x + 31;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\tcase 6 :\n\t\t\t\tcase 9 :\n\t\t\t\tcase 11 :\n\t\t\t\t\tx = x + 30;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\tx = x + 28 + y;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (x % 7 == 0) //??????????\n\t\t\t{\n\t\t\t\tSystem.out.print(\"YES\");\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.print(\"NO\");\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}",
"public static void main(String[] args){\n for(int i = 23; i <= 89; i++){\n System.out.print(i + \" \");\n if(i % 10 == 2)\n System.out.print(\"\\n\"); }\n }",
"public static void main(String[] args) {\n\r\n\t\tfor (int i = 1; i <= 50; i++) {\r\n\r\n\t\t\tif (i % 2 == 0) {\r\n\t\t\t\t// System.out.println(\" It is an even number \" + i);\r\n\t\t\t\tSystem.out.println(i + \" is an even number\");\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Integer oddNumbers(int fromThisNumber, int toThisNumber){\n\t\tSystem.out.println(\"Print odd numbers between 1-255\");\n\t\tfor(int i = fromThisNumber; i <= toThisNumber; i++){\n\t\t\tif(i % 2 == 1){\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t\treturn 1;\n\t}",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n\t\tint a = s.nextInt();\n\t\tint count=1;\n\t\tint n=1;\n\t\twhile(count!=a+1)\n\t\t{\n\t\t if((3*n+2)%4!=0)\n\t\t {\n\t\t System.out.print((3*n+2)+\" \");\n\t\t count+=1;\n\t\t \n\t\t }\n\t\t n+=1;\n\t\t}\n}",
"public static void main(String[] args) {\n\t\t\n\t\t for(int a=5;a<=51;a++) {\n\t\t\t\t\n\t\t\t\tif(a%2==0) {\n\t\t\t\t\tSystem.out.print(a + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\n\t\tfor (int i = 15; i <= 35; i++) {\n\n\t\t\tif (i % 6 == 0) {\n\n\t\t\t\tcontinue;\n\n\t\t\t}\n\t\t\tSystem.out.print(i + \" \");\n\n\t\t}\n\t\tSystem.out.println();\n\n\t\tfor (int a = 15; a < 36; a++) {\n\t\t\tif (a % 2 == 0 && a % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.print(a + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int x = 0; x <= 10; x++) {\n\t\t\tif (x == 4) {\n\t\t\t\tSystem.out.println(\"I am stopping the loop\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(x + \" \");\n\t\t}\n\t\tSystem.out.print(\" \");\n\t\tfor (int y = 1; y <= 10; y++) {\n\t\t\tif (y == 4) {\n\t\t\t\tSystem.out.println(\"i am skipping the loop\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.print(y+\"-)\");\n\t\t\tSystem.out.println(\" i am inside the loop\");\n\t\t}\n\t\t/*\n\t\t * write a program that needs a range of integers(start and end point)\n\t\t * provided by a user and then from that range prints the sum of the even\n\t\t */\n\t\tSystem.out.println(\" \");\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.println(\"please write a min number\");\n\t\tint min=scan.nextInt();\n\t\tSystem.out.println(\"please write a max number\");\n\t\tint max=scan.nextInt();\n\t\t\n\t\tint sumEven=0;\n\t\tint sumOdd=0;\n\t\tfor(int n=min; n<max+1; n++) {\n\t\t\tif(n%2==0) {\n\t\t\t\tsumEven=sumEven+n;\n\t\t\t}else if(n%2!=0) {sumOdd=sumOdd+n;\n\t\t\t\n\t\t}\n\t\t\n\t}\n\t\tSystem.out.println(sumEven+\" is sum of even numbers\");\n\t\tSystem.out.println(sumOdd+\" is sum of odd numbers\");\n\n}",
"public static void printodd() {\n for (int i = 0; i < 256; i++){\n if(i%2 != 0){\n System.out.println(i);\n }\n \n }\n }",
"public static void main(String[] args) {\n\t\tint n=0;\n\t\tint i=1;\n\t\twhile(true){\n\t\t\tif(i%2==0 || i%3==0){\n\t\t\t\tn++;\n\t\t\t}\n\t\t\tif(n == 2333){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(i);\n\t}",
"public static void printAll() {\n\t\tint i=0;\n\t\twhile(i%2==0) {\n\t\t\ti+=2;\n\t\t\tSystem.out.print(i+\" \");\n\t\t\tif(i==100) break;\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint x=1;\n\t\twhile(x<=10)\n\t\t{\n\t\t\tSystem.out.println(\"Hello World\");\n\t\t\tx++;\n\t\t}\n\t\t\n\t\t//Write a program in Java to print 1 to 10 using \n\t\t//while loop but quit if multiple of 7 is encountered\n\n\t\t\n\t\tint y=1;\n\t\twhile(y<=10)\n\t\t{\n\t\t\tif(y%7!=0)\n\t\t\t{\n\t\t\t\tSystem.out.println(y);\n\t\t\t}\n\t\t\ty++;\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n\n\t\t\n\t\tint a, i, j;\n\t\t\n\t\tfor(i=2;i<101;i++){\n\t\t\tif(i==2)\n\t\t\t\tSystem.out.println(i);\n\t\t\telse\n\t\t\t\t\n\t\t\t\n\t\t\tfor(j=2;j<i;j++)\n\t\t\t\t\n\t\t\t\tif(i%j != 0)\n\t\t\t\t\tif(i-1 == j)\n\t\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t\telse\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t\t\n\t\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public static void number_invsert(){\n for(int i=7; i > 0 ; i--){\n for(int j =1;j<=i;j++){\n System.out.print(j);\n }\n System.out.println();\n } \n }",
"public String solve711() {\n\t\tfloat a, b, c, d;\n\t\tfor (a = 0.00f; a < 7.11f; a = a + .01f) {\n\t\t\tfor (b = 0.00f; b < 7.11f; b = b + .01f) {\n\t\t\t\tfor (c = 0.00f; c < 7.11f; c = c + .01f) {\n\t\t\t\t\tfor (d = 0.00f; d < 7.11f; d = d + .01f) {\n\t\t\t\t\t\tif (a * b * c * d == 7.11f && a + b + c + d == 7.11f) {\n\t\t\t\t\t\t\treturn (a + \" \" + b + \" \" + c + \" \" + d);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}",
"public static void main(String[] args) {\n\t\tfor(int i=1;i<20;i++)\r\n\t\t{\r\n\t\t\tif(i%2!=0)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(i+\" is an ODD Number\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t}",
"public static void pattern7(int input){\n\t\tfor(int i=1;i<=input;i++){\n\t\t\tfor(int j=1;j<=i;j++){\n\t\t\t\tSystem.out.print(j+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void main(String[] args) {\n\nint count=0;\n\n\nfor(int i=13;count<100;i++){\n\tboolean a=isPrime(i);\n\tboolean b=isReversePrime(i);\n\t\n\tif(a && b){\n\t\tcount++;\n\t\tSystem.out.print(count%10 != 0 ? i+\" \":i+\"\\n\" );\n\t}\n}\n\t}",
"public p207() {\n double target = 1/12345.0;\n double log2 = Math.log(2);\n\n for (int x = 2; x < 2000000; x++){\n double a = Math.floor(Math.log(x) / log2) / (x-1);\n if (a < target){\n System.out.println(x*(x-1L));\n break;\n }\n }\n }",
"public static void main(String[] args) {\n\t\tfor(int i=1; i<=100;i++){\n\t\t\tSystem.out.println(\"Factors of a Number\"+i+\" are: \");\n\t\t\tfor(int j=1;j<=i;j++){\n\t\t\t\tif(i%j==0){\n\t\t\t\t\tSystem.out.println(j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void checkDivisibilityByHundred() {\n LeapYear leapYear = new LeapYear();\n boolean flag = leapYear.isItDivisibleByHundred(1600);\n assertTrue(flag);\n }",
"private static void helloHelloModulo() {\n int a = 1;\n int b = 10;\n int c = 1 / 10;\n\n int d = 1 % 10;\n\n\n System.out.println(\" Result deleniya \" + c);\n System.out.println(\" Result deleniya \" + d);\n\n\n int делимое = 75;\n int делитель = 13;\n int f = делимое % делитель;\n\n int остаток = делимое - (делимое / делитель) * делитель;\n int j = 7 % 2;\n\n System.out.println(f);\n System.out.println(остаток);\n\n\n }",
"public static void test(){\n int[] a = {3,6,9, 12,81,72};\n int n = 648;\n boolean flag = areFactors(n, a);\n if(flag == true){\n System.out.println(n +\" is divisible by all elements of array.\");\n }\n else{\n System.out.println(n + \" fails the test.\");\n }\n }",
"public static void main(String[] args) {\n\t\tlong num=123456789;\r\n\t\tlong rev = 0;\r\n\r\n\t\t//boolean isprime=true;\r\n\r\n\t\tfor(int i=2;i<num;i++)\r\n\t\t{\t\r\n\t\t\twhile(num!=0)\r\n\t\t\t{\r\n\r\n\r\n\t\t\t\trev=num % 10;\r\n\t\t\t\tnum=num/10;\r\n\r\n\r\n\t\t\t\tSystem.out.println(rev);\r\n\r\n\t\t\t\tif(rev>2) {\r\n\t\t\t\t\tboolean flag=true;\r\n\t\t\t\t\tfor(int temp=2;temp<rev;temp++) {\r\n\t\t\t\t\t\tif(rev%temp==0) {\r\n\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(flag)\r\n\t\t\t\t\t{\r\n\r\n\t\t\t\t\t\tSystem.out.println(rev + \"is prime number\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(rev + \"is not a prime\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(rev+\" is a prime\");\r\n\t\t\t\t}\r\n\r\n\r\n\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Test\n public void checkDivisibilityByFourHundred() {\n LeapYear leapYear = new LeapYear();\n boolean flag = leapYear.isItDivisibleByFourHundred(1600);\n assertTrue(flag);\n }",
"public static void main(String[] args) {\n\n\t\tfor(int i=1; i<100; i++){\n\t\t\tint count=0, remainder=0; //variables initialized to zero.\n\n\t\t\tfor (int j=1; j<i+1; j++){\n\t\t\t\tremainder = i%j; // finding the remainder \n\t\t\t\tif(remainder==0) // if the remainder is equal to zero increment the count\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(count==2) // if the loop count is equal to two then print the number as prime.\n\t\t\t\tSystem.out.print(i+\" \");\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\n\n int i = 0;\n while (i < 10) {\n i++;\n if (i%2==0) {\n System.out.println(i);\n }\n }\n }",
"public static void main(String[] args) {\n\t int[] numbers = {13, 45, 26, 22, 19, 24, 20, 30, 90, 12};\n\n for(int i = 0; i < numbers.length; i++){\n if(numbers[i]%2 == 0){\n System.out.println(\"Even number: \" + numbers[i]);\n }\n }\n }",
"public static void main(String []args) {\n Scanner in = new Scanner(System.in);\n // Using While Loop\n int start, end, div, i, sum=0;\n System.out.println(\"Input beginning number: \");\n start = in.nextInt();\n System.out.println(\"Input ending number: \");\n end = in.nextInt();\n System.out.println(\"Input divisible number: \");\n div = in.nextInt();\n System.out.println(\"Numbers between \" + start + \" and \" + end + \" divisible by \" + div + \" : \");\n i=start;\n while(i<end){\n if(i%div==0){\n System.out.print(\" \" + i); // OR.. System.out.printf(\"% 5d\",i);\n sum+=i;\n }\n i++;\n }\n System.out.println(\"\\n\\nThe sum : \" + sum);\n\n // Using For Loop\n /*int start, end, div, i, sum=0;\n System.out.println(\"Input beginning number: \");\n start = in.nextInt();\n System.out.println(\"Input ending number: \");\n end = in.nextInt();\n System.out.println(\"Input divisible number: \");\n div = in.nextInt();\n System.out.println(\"Numbers between \" + start + \" and \" + end + \" divisible by \" + div + \" : \");\n\n for(i=start;i<end;i++){\n if(i%div==0){\n System.out.print(\" \" + i); // OR.. System.out.printf(\"% 5d\",i);\n sum+=i;\n }\n }\n System.out.println(\"\\n\\nThe sum : \" + sum);*/\n\n }",
"public static void main(String[] args) {\n\t\tint evensum=0;\n\t\tint oddsum=0;\n\t\tfor( int num=1; num<=99; num++) {\n\t\t\t\n\t\t\tif(num%2==0) {\n\t\t\tevensum=evensum+num;\n\t\t\t\t\n\t\t\t}else {oddsum=oddsum+num;}\n\t\t}\n\t\tSystem.out.println(evensum+\" \"+ oddsum);\n\t\t\n\t}",
"public static void printNumbers(int low, int high)\n\t{\n\t\tif (low > high)\n\t\t{\n\t\t\tint holder = low;\n\t\t\tlow = high;\n\t\t\thigh = holder;\n\t\t}\n\t\t\n\t\tfor (int i = low; i <= high; i++)\n\t\t{\n\t\t\tisEven (i);\n\t\t}\n\t}"
] | [
"0.71673113",
"0.7087265",
"0.67308366",
"0.6708563",
"0.66200274",
"0.6571614",
"0.6467984",
"0.6277524",
"0.6273269",
"0.60941386",
"0.6090037",
"0.60896593",
"0.6059093",
"0.6024764",
"0.601224",
"0.5988195",
"0.5979376",
"0.5966601",
"0.59448284",
"0.5936931",
"0.59288245",
"0.5925554",
"0.5911147",
"0.5909148",
"0.5908054",
"0.5890387",
"0.58770204",
"0.5853916",
"0.5852266",
"0.5847336",
"0.5831429",
"0.582994",
"0.5817958",
"0.58172023",
"0.5814095",
"0.5812136",
"0.5810958",
"0.5810426",
"0.57917476",
"0.5791599",
"0.5782081",
"0.5772195",
"0.5766776",
"0.57547593",
"0.5747987",
"0.5746755",
"0.57283163",
"0.5727275",
"0.5717746",
"0.5713147",
"0.5711398",
"0.57087445",
"0.5698721",
"0.5691403",
"0.5679674",
"0.56768006",
"0.56687206",
"0.566163",
"0.56582123",
"0.5657554",
"0.56478065",
"0.5643892",
"0.5640927",
"0.5640322",
"0.5638465",
"0.563302",
"0.5621845",
"0.5611624",
"0.55938625",
"0.5586861",
"0.5585209",
"0.5582496",
"0.558235",
"0.5576156",
"0.55700165",
"0.55699456",
"0.5568658",
"0.55681634",
"0.5567831",
"0.5564901",
"0.55641884",
"0.5563806",
"0.5563714",
"0.5559922",
"0.55559325",
"0.55459714",
"0.55449855",
"0.554298",
"0.5534857",
"0.5526613",
"0.5521881",
"0.5521587",
"0.55177325",
"0.5515459",
"0.5514305",
"0.55104166",
"0.55072606",
"0.55024564",
"0.5500905",
"0.5490742"
] | 0.7846942 | 0 |
/ Load and parse XML file into DOM | public Document parse (String filePath) {
Document document = null;
try {
/* DOM parser instance */
DocumentBuilder builder = builderFactory.newDocumentBuilder();
/* parse an XML file into a DOM tree */
document = builder.parse(filePath);
} catch (ParserConfigurationException e) {
e.printStackTrace();
} catch (SAXException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return document;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void parseXmlFile(String fileName){\n\t\t//get the factory\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\t\n\t\ttry {\n\t\t\t//Using factory get an instance of document builder\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\t\t\n\t\t\t//parse using builder to get DOM representation of the XML file\n\t\t\tdoc = db.parse(fileName);\n\t\t} catch(ParserConfigurationException pce) {\n\t\t\tpce.printStackTrace();\n\t\t} catch(SAXException se) {\n\t\t\tSystem.err.println(\"Malformed XML: Make sure to provide a valid XML document.\");\n\t\t} catch(IOException ioe) {\n\t\t\tSystem.err.println(\"File not found: Path to a valid XML file has to be specified.\" );\n\t\t}\n\t}",
"public Document loadDomFromFile(String fileName){\n\t\tSAXReader reader = new SAXReader();\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tInputStream inputStream = new FileInputStream(fileName);\n\t\t\tdoc = reader.read(inputStream);\n\t\t} catch (DocumentException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn doc;\n\t}",
"public void readXML() {\n\t try {\n\n\t \t//getting xml file\n\t \t\tFile fXmlFile = new File(\"cards.xml\");\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t \n\t\t\t//doc.getDocumentElement().normalize(); ???\n\t\t \n\t\t \t//inserting card IDs and Effects into arrays\n\t\t\tNodeList nList = doc.getElementsByTagName(\"card\");\n\t\t\tfor (int i = 0; i < nList.getLength(); i++) {\n\t\t\t\tNode nNode = nList.item(i);\n\t\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\tElement eElement = (Element) nNode;\n\t\t\t\t\tint id = Integer.parseInt(eElement.getAttribute(\"id\"));\n\t\t\t\t\tString effect = eElement.getElementsByTagName(\"effect\").item(0).getTextContent();\n\t\t\t\t\tidarr.add(id);\n\t\t\t\t\teffsarr.add(effect);\n\t\t\t\t}\n\t\t\t}\n\t } catch (Exception e) {\n\t\t\te.printStackTrace();\n\t }\n }",
"private void readXML() {\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\tXMLReader handler = new XMLReader();\n\t\tSAXParser parser;\n\t\t\n\t\t//Parsing xml file\n\t\ttry {\n\t\t\tparser = factory.newSAXParser();\n\t\t\tparser.parse(\"src/data/users.xml\", handler);\n\t\t\tgroupsList = handler.getGroupNames();\n\t\t} catch(SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t};\n\t}",
"public static Document loadXmlFile(File file) {\r\n try {\r\n Document doc = DocumentBuilderFactory.newInstance()\r\n .newDocumentBuilder().parse(file);\r\n\r\n return doc;\r\n } catch (Exception e) {\r\n logger.log(Level.SEVERE, \"exception\", e);\r\n }\r\n\r\n return null;\r\n }",
"private void loadData(final String filePath)\r\n {\r\n try\r\n {\r\n File fXMLFile = new File(filePath);\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(fXMLFile);\r\n parseXMLDocument(doc);\r\n }\r\n catch (ParserConfigurationException ex)\r\n {\r\n System.err.println(\"\\t ParserConfigurationException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (SAXException ex)\r\n {\r\n System.err.println(\"\\t SAXException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (IOException ex)\r\n {\r\n System.err.println(\"\\t IOException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n }",
"public void parseXML(String xmlString) {\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance(); \n Document document = null; \n try { \n //DOM parser instance \n DocumentBuilder builder = builderFactory.newDocumentBuilder(); \n \n //parse an XML file into a DOM tree, in this case, change the filepath to xml String \n document = builder.parse(new File(filePath));\n \n //get root element, which is <Airports>\n Element rootElement = document.getDocumentElement(); \n \n //traverse child elements. retrieve all the <Airport>\n NodeList nodes = rootElement.getChildNodes(); \n for (int i=0; i < nodes.getLength(); i++) \n { \n Node node = nodes.item(i); \n if (node.getNodeType() == Node.ELEMENT_NODE) { \n Element airport = (Element) node; \n \n //process child element \n String code = airport.getAttribute(\"Code\");\n String name = airport.getAttribute(\"Name\"); \n \n // child node of airport\n NodeList airportChildren = airport.getChildNodes();\n \n // value of longitude & latitude\n String longitude = airportChildren.item(1).getTextContent();\n String latitude = airportChildren.item(2).getTextContent();\n \n Location location = new Location(longitude, latitude);\n airportList.add(new Airport(code, name, location));\n } \n } \n \n // another approach to traverse all the listNode by tagName \n /*NodeList nodeList = rootElement.getElementsByTagName(\"book\"); \n if(nodeList != null) \n { \n for (int i = 0 ; i < nodeList.getLength(); i++) \n { \n Element element = (Element)nodeList.item(i); \n String id = element.getAttribute(\"id\"); \n } \n }*/\n // add the DOM object to the airportList\n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } \n }",
"public static Document loadXmlFile(String fname) {\r\n try {\r\n Document doc = DocumentBuilderFactory.newInstance()\r\n .newDocumentBuilder().parse(fname);\r\n return doc;\r\n } catch (Exception e) {\r\n logger.log(Level.SEVERE, \"exception\", e);\r\n }\r\n\r\n return null;\r\n }",
"public static Node readXML(String filename)\r\n\t{\r\n\t\t\r\n\t\tDocument doc=null;\r\n\t\t\r\n\t\tDocumentBuilder db = null;\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\r\n\t try {\r\n\t \tdbf.setIgnoringElementContentWhitespace(true);\r\n\t db = dbf.newDocumentBuilder();\r\n\t \tdoc = db.parse(new File(filename));\r\n\r\n\t\t\t//******* ALBERO DOM *********/\r\n\t\t\t\r\n\t\t\t// Elemento corrispondente al DOCTYPE\r\n\t\t Node child = doc.getFirstChild();\r\n\t\t // Elemento corrispondente al primo elemento del documento\r\n\t\t child = child.getNextSibling();\r\n\t\t \r\n\t\t return child;\r\n\t }\t\r\n\t\tcatch (IOException se){\r\n\t\t\tSystem.err.println(\"Il file \" + filename + \" non e' stato trovato\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tcatch (SAXException se){\r\n\t\t\tSystem.err.println(\"Non � possibile fare il parser\");\r\n\t\t\treturn null;\r\n\t\t}\t\r\n\t\tcatch (ParserConfigurationException pce){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public Document parseFile(String fileName) {\r\n log.debug(\"Parsing XML file... \" + fileName);\r\n DocumentBuilder docBuilder;\r\n Document doc = null;\r\n DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n docBuilderFactory.setIgnoringElementContentWhitespace(true);\r\n try {\r\n docBuilder = docBuilderFactory.newDocumentBuilder();\r\n }\r\n catch (ParserConfigurationException e) {\r\n log.debug(\"Wrong parser configuration: \" + e.getMessage());\r\n return null;\r\n }\r\n File sourceFile = new File(fileName);\r\n try {\r\n doc = docBuilder.parse(sourceFile);\r\n setDocument(doc);\r\n }\r\n catch (SAXException e) {\r\n log.debug(\"Wrong XML file structure: \" + e.getMessage());\r\n return null;\r\n }\r\n catch (IOException e) {\r\n log.debug(\"Could not read source file: \" + e.getMessage());\r\n }\r\n log.debug(\"XML file parsed\");\r\n return doc; \r\n }",
"private static Document parseXmlFile(String strXml) {\n // get the factory\n final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n try {\n // Using factory get an instance of document builder\n final DocumentBuilder db = dbf.newDocumentBuilder();\n final Document dom;\n File file;\n\n file = new File(strXml);\n if (!file.exists()) {\n strXml = \"data/\" + strXml;\n }\n\n // Parse using builder to get DOM representation of the XML file\n dom = db.parse(strXml);\n\n return dom;\n } catch (final Exception e) {\n Verbose.log(Level.SEVERE, e, \"Laoding Specifications\",\n e.getMessage());\n } // end try\n\n return null;\n }",
"@Override\n\tpublic Document loadDocument(String file) {\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tdbf.setNamespaceAware(true);\n\t\tDocumentBuilder db;\n\t\ttry {\n\t\t\tdb = dbf.newDocumentBuilder();\n\t\t\tDocument document = db.parse(new File(file));\n\t\t\treturn document;\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FactoryConfigurationError e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}",
"public static void parseXML(String filename) {\n SAXBuilder builder = new SAXBuilder();\n \n //reading XML document\n Document xml = null;\n try {\n xml = builder.build(new File(filename));\n } catch (JDOMException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n //getting root element from XML document\n Element root = xml.getRootElement();\n if (root != null)\n {\n\t Element queryNode = root.getChild(\"query\");\n\t if (queryNode != null)\n\t {\n\t\t Element rcNode = queryNode.getChild(\"recentchanges\");\n\t\t \n\t\t List<Element> rcList = rcNode.getChildren();\n\t\t \n\t\t \n\t\t \n\t\t //Iterating over all childs in XML\n\t\t Iterator<Element> itr = rcList.iterator();\n\t\t while(itr.hasNext()){\n\t\t \tElement rc = itr.next();\n\t\t \tString user = rc.getAttributeValue(\"user\");\n\t\t \tString userId = rc.getAttributeValue(\"userid\");\n\t\t \tString pageId = rc.getAttributeValue(\"pageid\");\n\t\t \tString title = rc.getAttributeValue(\"title\");\n\t\t \tString timestamp = rc.getAttributeValue(\"timestamp\");\n\t\t \tString comments = rc.getAttributeValue(\"comment\");\n\t\t \tString type = rc.getAttributeValue(\"type\");\n\t\t \tString oldRevId = rc.getAttributeValue(\"old_revid\");\n\t\t \tString newRevId = rc.getAttributeValue(\"revid\");\n\t\t \tString recentChangeId = rc.getAttributeValue(\"rcid\");\n\t\t \t\n\t\t// \t //reading attribute from Element using JDOM\n\t\t// System.out.println(\"User: \" + user + \" | User_ID: \" + userId + \" | Page_ID: \" + pageId + \n\t\t// \t\t\" | Title: \" + title + \" | Timestamp: \" + timestamp + \" | Recent_Change_ID: \" + recentChangeId + \" | Old_Rev_ID: \" + oldRevId + \n\t\t// \t\t\" | New_Rev_ID: \" + newRevId + \" | Type: \" + type); \n\t\t \t\n\t\t \ttry {\n\t\t\t\t\t\tcluster.writeWikiResults(user, userId, timestamp, pageId, title, recentChangeId, oldRevId, newRevId, type);\n\t\t\t\t\t\t System.out.println(count++);\n\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t }\n\t }\n } \n }",
"private static Document initializeXML(String filePath) throws Exception {\n\t\ttry {\n\t\t\tlogger.info(\"Initializing the xml file :\" + filePath);\n\t\t\txmlDocument = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(filePath));\n\t\t\txmlDocument.getDocumentElement().normalize();\n\t\t\treturn xmlDocument;\n\t\t} catch (Exception e) {\n\n\t\t\tlogger.error(\"Error while reading from XML. File Path : \" + filePath + \" \\n\" + e.getMessage());\n\t\t\tthrow (new Exception(e.getMessage()));\n\n\t\t}\n\t}",
"@Override\r\n\tpublic void initializeFromFile(File inputXmlFile) {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\ttry {\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t\tDocument doc = builder.parse(inputXmlFile);\r\n\t\t\tNodeList xmlNodeList;\r\n\t\t\tNodeList xmlEdgeList;\r\n\t\t\txmlNodeList = doc.getElementsByTagName(\"node\");\r\n\r\n\t\t\tfor(int i=0;i<xmlNodeList.getLength();i++) {\r\n\r\n\t\t\t\tNode p=xmlNodeList.item(i);\r\n\t\t\t\tElement xmlNode =(Element) p;\r\n\t\t\t\tNodeList.add(xmlNode);\r\n\t\t\t\tNodeMap.put(Integer.parseInt(xmlNode.getAttribute(\"id\")),xmlNode);\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\txmlEdgeList = doc.getElementsByTagName(\"edge\");\r\n\r\n\r\n\t\t\tfor(int j=0;j<xmlEdgeList.getLength();j++) {\r\n\t\t\t\tNode p = xmlEdgeList.item(j);\r\n\t\t\t\tElement xmlNode = (Element) p;\r\n\t\t\t\tEdgeList.add(xmlNode);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"private static Document parseXmlFile(String in) {\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource(new StringReader(in));\n return db.parse(is);\n } catch (ParserConfigurationException e) {\n throw new RuntimeException(e);\n } catch (SAXException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"public void open(){\n\t\ttry {\n\t\t\tdocFactory = DocumentBuilderFactory.newInstance();\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t\tdoc = docBuilder.parse(ManipXML.class.getResourceAsStream(path));\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static Document parseXMLFile(final String fileName) throws IOException {\n\t\treturn parseXMLFile(new File(fileName));\n\t}",
"public void parseXml(String file) {\n\n try {\n\n debug(\"\\n\\nIn the beginning God created the heaven and the world...\\n\\n\");\n\n File fXmlFile = new File(\"./levels/\" + file);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(fXmlFile);\n\n doc.getDocumentElement().normalize();\n debug(\"Chosen entity: \" + doc.getDocumentElement().getNodeName());\n\n NodeList placeList = doc.getElementsByTagName(\"place\");\n NodeList passageList = doc.getElementsByTagName(\"passage\");\n NodeList furnitureList = doc.getElementsByTagName(\"furniture\");\n NodeList storyList = doc.getElementsByTagName(\"story\");\n\n // Create object arrays\n ArrayList<Place> places = new ArrayList<>();\n ArrayList<Item> items = new ArrayList<>();\n ArrayList<Passage> passages = new ArrayList<>();\n ArrayList<Furniture> furnitures = new ArrayList<Furniture>();\n\n // parse story text\n Node storyNode = storyList.item(0);\n Element storyElement = (Element) storyNode;\n debug(\"Intro: \" + storyElement.getElementsByTagName(\"introduction\").item(0).getTextContent());\n debug(\"Level: \" + storyElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"Version: \" + storyElement.getElementsByTagName(\"version\").item(0).getTextContent());\n // add story elements to world\n world.setIntroduction(\n storyElement.getElementsByTagName(\"introduction\").item(0).getTextContent());\n world.setLevelName(storyElement.getElementsByTagName(\"name\").item(0).getTextContent());\n world.setLevelVersion(storyElement.getElementsByTagName(\"version\").item(0).getTextContent());\n\n // parse all existing Places\n for (int placeCounter = 0; placeCounter < placeList.getLength(); placeCounter++) {\n Node placeNode = placeList.item(placeCounter);\n\n debug(\"\\nCurrent Element: \" + placeNode.getNodeName());\n\n if (placeNode.getNodeType() == Node.ELEMENT_NODE) {\n Element placeElement = (Element) placeNode;\n\n debug(\"- Ending: \" + placeElement.getAttribute(\"end\"));\n debug(\"- id: \" + placeElement.getAttribute(\"id\"));\n debug(\"- Name: \" + placeElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- Description: \"\n + placeElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create Places.\n places.add(new Place(placeElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n placeElement.getElementsByTagName(\"description\").item(0).getTextContent().replace(\"\\\\n\", \"\\n\")));\n\n // add EndingPlace to World, set endingText to Places' Description\n if (placeElement.getAttribute(\"end\").equals(\"bad\")) {\n world.addBadEnding(places.get(placeCounter),\n places.get(placeCounter).getDescription());\n } else if(placeElement.getAttribute(\"end\").equals(\"good\")) {\n world.addGoodEnding(places.get(placeCounter),\n places.get(placeCounter).getDescription());\n }\n \n // parse all existing Place Items\n NodeList itemList = placeElement.getElementsByTagName(\"item\");\n\n for (int itemCounter = 0; itemCounter < itemList.getLength(); itemCounter++) {\n Node itemNode = itemList.item(itemCounter);\n\n Element itemElement = (Element) itemNode;\n\n debug(\"- Item\" + itemCounter + \":\");\n debug(\"- - Name: \" + itemElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - Description: \"\n + itemElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create items.\n items.add(new Item(itemElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n itemElement.getElementsByTagName(\"description\").item(0).getTextContent()));\n // Set items in current place.\n places.get(placeCounter).addObjectToPlace(getIncludedItem(itemElement, items));\n\n }\n }\n }\n\n // parse all furniture\n for (int furnitureCounter = 0; furnitureCounter < furnitureList\n .getLength(); furnitureCounter++) {\n Node furnitureNode = furnitureList.item(furnitureCounter);\n\n Element furnitureElement = (Element) furnitureNode;\n\n debug(\"\\nCurrent Element: \" + furnitureNode.getNodeName());\n\n debug(\"- Furniture\" + furnitureCounter);\n debug(\"- - In Place: \"\n + furnitureElement.getElementsByTagName(\"in-place\").item(0).getTextContent());\n debug(\n \"- - Name: \" + furnitureElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - Description: \"\n + furnitureElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create furniture objects\n furnitures.add(\n new Furniture(furnitureElement.getElementsByTagName(\"name\").item(0).getTextContent(), // name\n furnitureElement.getElementsByTagName(\"description\").item(0).getTextContent(), // description\n furnitureElement.getElementsByTagName(\"in-place\").item(0).getTextContent()));\n\n NodeList furnitureItemList = furnitureElement.getElementsByTagName(\"content-item\");\n\n // parse all Furniture Items\n for (int furnitureItemCounter = 0; furnitureItemCounter < furnitureItemList\n .getLength(); furnitureItemCounter++) {\n Node furnitureItemNode = furnitureItemList.item(furnitureItemCounter);\n\n Element furnitureItemElement = (Element) furnitureItemNode;\n\n debug(\"- - Content Items:\");\n debug(\"- - - Name: \"\n + furnitureItemElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - - Description: \"\n + furnitureItemElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n addItems(furnitureItemElement, furnitures, items, furnitureCounter);\n\n }\n\n NodeList furnitureObstacleList = furnitureElement.getElementsByTagName(\"obstacle\");\n\n // parse all Furniture Obstacles\n for (int furnitureObstacleCounter = 0; furnitureObstacleCounter < furnitureObstacleList\n .getLength(); furnitureObstacleCounter++) {\n Node furnitureObstacleNode = furnitureObstacleList.item(furnitureObstacleCounter);\n\n Element furnitureObstacleElement = (Element) furnitureObstacleNode;\n\n debug(\"- - Obstacle:\");\n debug(\"- - - Description: \" + furnitureObstacleElement.getElementsByTagName(\"description\")\n .item(0).getTextContent());\n debug(\"- - - Resolution: \" + furnitureObstacleElement.getElementsByTagName(\"resolution\")\n .item(0).getTextContent());\n // debug(\"- - - Requirement: \" +\n // furnitureObstacleElement.getElementsByTagName(\"requiredItem\").item(0).getTextContent());\n\n // create furniture obstacle\n if (furnitureObstacleElement.getAttribute(\"type\").equals(\"double\")) {\n // double Item obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new DoubleItemObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n getRequiredItem(items,\n furnitureObstacleElement.getElementsByTagName(\"requiredItem\").item(0)\n .getTextContent()),\n getRequiredItem(items, furnitureObstacleElement\n .getElementsByTagName(\"additionalItem\").item(0).getTextContent())));\n\n } else if (furnitureObstacleElement.getAttribute(\"type\").equals(\"riddle\")) {\n // riddle Obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new RiddleObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"requiredAnswer\").item(0)\n .getTextContent()));\n\n } else {\n // normal Obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new ItemObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n getRequiredItem(items, furnitureObstacleElement\n .getElementsByTagName(\"requiredItem\").item(0).getTextContent())));\n }\n // add damage points to obstacle\n if (!furnitureObstacleElement.getAttribute(\"damage\").equals(\"\")) {\n passages.get(furnitureCounter).getObstacle()\n .setDamagepoints(Integer.parseInt(furnitureObstacleElement.getAttribute(\"damage\")));\n }\n\n }\n\n }\n\n // Add current furniture to its containing Place\n setFurnitureInPlace(furnitures, places);\n\n // parse all existing passages\n for (int passageCounter = 0; passageCounter < passageList.getLength(); passageCounter++) {\n Node passageNode = passageList.item(passageCounter);\n\n debug(\"\\nCurrent Element: \" + passageNode.getNodeName());\n\n if (passageNode.getNodeType() == Node.ELEMENT_NODE) {\n Element passageElement = (Element) passageNode;\n\n debug(\"- id: \" + passageElement.getAttribute(\"id\"));\n debug(\"- Name: \" + passageElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- Description: \"\n + passageElement.getElementsByTagName(\"description\").item(0).getTextContent());\n debug(\"- Comes from: \"\n + passageElement.getElementsByTagName(\"comeFrom\").item(0).getTextContent());\n debug(\"- Connects to: \"\n + passageElement.getElementsByTagName(\"connectTo\").item(0).getTextContent());\n\n // Create Passage with connected Places.\n passages\n .add(new Passage(passageElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n passageElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n getFromPlace(passageElement, places), // from this Place\n getFollowPlace(passageElement, places)) // to that Place\n );\n\n // parse all existing Passage Obstacles\n NodeList obstacleList = passageElement.getElementsByTagName(\"obstacle\");\n\n for (int obstacleCounter = 0; obstacleCounter < obstacleList\n .getLength(); obstacleCounter++) {\n Node obstacleNode = obstacleList.item(obstacleCounter);\n\n Element obstacleElement = (Element) obstacleNode;\n\n debug(\"- Obstacle\" + passageCounter + \":\");\n debug(\"- - Description: \"\n + obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent());\n debug(\"- - Resolution: \"\n + obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent());\n // debug(\"- - Required Item: \" +\n // obstacleElement.getElementsByTagName(\"requiredItem\").item(0).getTextContent());\n\n // Create the obstacle for each passage.\n if (obstacleElement.getAttribute(\"type\").equals(\"double\")) {\n // double Item obstacle\n passages.get(passageCounter)\n .setObstacle(new DoubleItemObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n getRequiredItem(items,\n obstacleElement.getElementsByTagName(\"requiredItem\").item(0)\n .getTextContent()),\n getRequiredItem(items, obstacleElement.getElementsByTagName(\"additionalItem\")\n .item(0).getTextContent())));\n\n } else if (obstacleElement.getAttribute(\"type\").equals(\"riddle\")) {\n // riddle Obstacle\n passages.get(passageCounter).setObstacle(new RiddleObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"requiredAnswer\").item(0).getTextContent()));\n\n } else {\n // normal Obstacle\n passages.get(passageCounter)\n .setObstacle(new ItemObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n getRequiredItem(items, obstacleElement.getElementsByTagName(\"requiredItem\")\n .item(0).getTextContent())));\n }\n\n // add damage points to obstacle\n if (!obstacleElement.getAttribute(\"damage\").equals(\"\")) {\n passages.get(passageCounter).getObstacle()\n .setDamagepoints(Integer.parseInt(obstacleElement.getAttribute(\"damage\")));\n }\n\n\n }\n }\n }\n\n startingPlace = places.get(0);\n\n // Add Places to GameWorld\n addPlacesToWorld(places, world);\n\n // set starting Place in GameWorld\n if (world.getStartingPlace() == null) {\n world.setStartingPlace(startingPlace);\n }\n\n debug(\"\\n\\n\");\n debug(\"World has successfully been created! God saw all that he had made, and it was good.\");\n debug(\"\\n\\n\\n\\n\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public String LoadXML(String filename) throws org.xml.sax.SAXException,\n\t\t\tSAXException {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t// factory.setValidating(true);\n\t\t// factory.\n\t\tfactory.setIgnoringElementContentWhitespace(true);\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tFile file = new File(filename);\n\t\t\tdoc = builder.parse(file);\n\t\t\t// Do something with the document here.\n\t\t} catch (ParserConfigurationException e) {\n\t\t} catch (IOException e) {\n\t\t}\n\t\treturn doc.getElementsByTagName(\"text\").item(0).getFirstChild()\n\t\t\t\t.getNodeValue();\n\t}",
"public void loadData(){\n try {\n entities.clear();\n\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.parse(fileName);\n\n Node root = document.getDocumentElement();\n NodeList nodeList = root.getChildNodes();\n for (int i = 0; i < nodeList.getLength(); i++){\n Node node = nodeList.item(i);\n if (node.getNodeType() == Node.ELEMENT_NODE){\n Element element = (Element) node;\n Department department = createDepartmentFromElement(element);\n try{\n super.save(department);\n } catch (RepositoryException | ValidatorException e) {\n e.printStackTrace();\n }\n }\n }\n } catch (SAXException | ParserConfigurationException | IOException e) {\n e.printStackTrace();\n }\n }",
"public void loadFromXml(File configFile) throws XMLQroxyConfigException {\n try {\n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser saxParser = factory.newSAXParser();\n saxParser.parse(configFile, this);\n } catch (ParserConfigurationException | SAXException | IOException e) {\n throw new XMLQroxyConfigException(\"Error while parsing the config file: \" + e.getMessage(), e);\n }\n }",
"public static Document parseXMLFile(final File file) throws IOException {\n\t\ttry {\t\t\t\n\t\t\tfinal DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n\t\t\tfinal DocumentBuilder documentBuilder = builderFactory.newDocumentBuilder();\n\t\t\tfinal Document document = documentBuilder.parse(file);\n\t\t\t\n\t\t\treturn document;\n\t\t} catch (ParserConfigurationException | SAXException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"void loadXML(String path,\n SourceParameters parameters)\n throws SAXException, ProcessingException, IOException;",
"void readXML(Element elem) throws XMLSyntaxError;",
"public void readXMLFile(File file) {\n\t\treadXMLFile(file, -1, 0);\n\t}",
"public Document load(final String filename) throws IOException, SAXException {\n final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n factory.setNamespaceAware(true);\n final DocumentBuilder builder;\n try {\n builder = factory.newDocumentBuilder();\n } catch (final ParserConfigurationException pce) {\n pce.printStackTrace();\n return null;\n }\n final InputStream inputStream = getClass().getResourceAsStream(filename);\n if (inputStream != null) {\n // for files found in JARs\n return builder.parse(inputStream);\n } else {\n // for files directly on the file system\n return builder.parse(new File(filename));\n }\n }",
"public void parseDocument(String XMLFilePath) {\n\t \n\t SAXParserFactory spf = SAXParserFactory.newInstance();\n\t try {\n\t\tSAXParser sp = spf.newSAXParser();\n\t\tsp.parse(XMLFilePath, this);\n\t }catch(SAXException se) {\n\t\tse.printStackTrace();\n\t }catch(ParserConfigurationException pce) {\n\t\tpce.printStackTrace();\n\t }catch (IOException ie) {\n\t\tie.printStackTrace();\n\t }\n\t}",
"private void parseXmlFile(InputStream file)\n {\n\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n\ttry\n\t{\n\t // Using factory get an instance of document builder\n\t //Log.d(Constants.TAG, \"XMLReader::parseXmlFile - Creating a new Document Builder.\");\n\t DocumentBuilder db = dbf.newDocumentBuilder();\n\n\t // parse using builder to get DOM representation of the XML file\n\t //Log.d(Constants.TAG, \"XMLReader::parseXmlFile - Attempting to parse the file.\");\n\t // This line causes the program to crash when attempting to read the SVG file, which is in XML format.\n\t dom = db.parse(file);\n\t //Log.d(Constants.TAG, \"XMLReader::parseXmlFile - Finished parsing the file.\");\n\t}\n\tcatch (ParserConfigurationException pce)\n\t{\n\t Log.d(Constants.TAG, \"ParserConfigurationException MSG: \" + pce.getMessage());\n\n\t pce.printStackTrace();\n\t}\n\tcatch (SAXException se)\n\t{\n\t Log.d(Constants.TAG, \"SAXException MSG: \" + se.getMessage());\n\n\t se.printStackTrace();\n\t}\n\tcatch (IOException ioe)\n\t{\n\t Log.d(Constants.TAG, \"IOException MSG: \" + ioe.getMessage());\n\n\t ioe.printStackTrace();\n\t}\n\tcatch (Exception e)\n\t{\n\t Log.d(Constants.TAG, \"Exception MSG: \" + e.getMessage());\n\t e.printStackTrace();\n\t}\n\n\t//Log.d(Constants.TAG, \"XMLReader::parseXmlFile() Exiting!\");\n }",
"private Document initialize() {\r\n Document doc = null;\r\n try {\r\n File file = new File(\"./evidence.xml\");\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = dbFactory.newDocumentBuilder();\r\n doc = docBuilder.parse(file);\r\n doc.getDocumentElement().normalize();\r\n } catch (ParserConfigurationException | IOException | SAXException e) {\r\n System.err.println(\"Parser failed parse file:\"+e.getMessage());\r\n }\r\n return doc;\r\n }",
"public Document setUpDocumentToParse() throws ParserConfigurationException, SAXException, IOException{\n\t\tFile file = new File (dataFilePath);\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tDocument document = documentBuilder.parse(file);\n\n\t\treturn document;\n\t}",
"public Document getDocFromFile(String filename)\r\n throws ParserConfigurationException{\r\n {\r\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder db = dbf.newDocumentBuilder();\r\n Document doc = null;\r\n try{\r\n doc = db.parse(filename);\r\n }\r\n catch (Exception ex){\r\n System.out.println(\"XML parse failure\");\r\n ex.printStackTrace();\r\n }\r\n return doc;\r\n } \r\n }",
"public void readXmlFile() {\r\n try {\r\n ClassLoader classLoader = getClass().getClassLoader();\r\n File credentials = new File(classLoader.getResource(\"credentials_example.xml\").getFile());\r\n DocumentBuilderFactory Factory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder Builder = Factory.newDocumentBuilder();\r\n Document doc = Builder.parse(credentials);\r\n doc.getDocumentElement().normalize();\r\n username = doc.getElementsByTagName(\"username\").item(0).getTextContent();\r\n password = doc.getElementsByTagName(\"password\").item(0).getTextContent();\r\n url = doc.getElementsByTagName(\"url\").item(0).getTextContent();\r\n setUsername(username);\r\n setPassword(password);\r\n setURL(url);\r\n } catch (Exception error) {\r\n System.out.println(\"Error in parssing the given xml file: \" + error.getMessage());\r\n }\r\n }",
"private void loadFromXml(String fileName) throws IOException {\n\t\tElement root = new XmlReader().parse(Gdx.files.internal(fileName));\n\n\t\tthis.name = root.get(\"name\");\n\t\tGdx.app.log(\"Tactic\", \"Loading \" + this.name + \"...\");\n\n\t\tArray<Element> players = root.getChildrenByName(\"player\");\n\t\tint playerIndex = 0;\n\t\tfor (Element player : players) {\n\t\t\t//int shirt = player.getInt(\"shirt\"); // shirt number\n\t\t\t//Gdx.app.log(\"Tactic\", \"Location for player number \" + shirt);\n\n\t\t\t// regions\n\t\t\tArray<Element> regions = player.getChildrenByName(\"region\");\n\t\t\tfor (Element region : regions) {\n\t\t\t\tString regionName = region.get(\"name\"); // region name\n\n\t\t\t\tthis.locations[playerIndex][Location.valueOf(regionName).ordinal()] = new Vector2(region.getFloat(\"x\"), region.getFloat(\"y\"));\n\n\t\t\t\t//Gdx.app.log(\"Tactic\", locationId + \" read\");\n\t\t\t}\n\t\t\tplayerIndex++;\n\t\t}\t\n\t}",
"public static Document createDOMDocumentFromXmlFile(File file)\n throws ParserConfigurationException, IOException, SAXException {\n\n if (!file.exists()) {\n throw new RuntimeException(\"Could not find XML file: \" + file.getAbsolutePath());\n }\n\n DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n Document xmlDocument = documentBuilder.parse(file);\n\n return xmlDocument;\n }",
"public void parseXML(String XML);",
"public CommandProcessXML(String filePath){\n _xmlFile = new File(filePath);\n _dbFactory = DocumentBuilderFactory.newInstance();\n }",
"public void loadXML(){\n new DownloadXmlTask().execute(URL);\n }",
"public static Document getXMLDoc(String filename) throws ParserConfigurationException, IOException, SAXException {\n\n File xmlFile = new File(filename);\n\n // create instance of the document builder factory to get the builder\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\n // get the document builder from the factory\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\n // parse the file into the doc\n Document doc = dBuilder.parse(xmlFile);\n\n // normalize doc\n doc.getDocumentElement().normalize();\n\n return doc;\n }",
"private void loadFile() {\n String xmlContent = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><atomic-mass-table mass-units=\\\"u\\\" abundance-units=\\\"Mole Fraction\\\"><entry symbol=\\\"H\\\" atomic-number=\\\"1\\\"> <natural-abundance> <mass value=\\\"1.00794\\\" error=\\\"0.00007\\\" /> <isotope mass-number=\\\"1\\\"> <mass value=\\\"1.0078250319\\\" error=\\\"0.00000000006\\\" /> <abundance value=\\\"0.999885\\\" error=\\\"0.000070\\\" /> </isotope> <isotope mass-number=\\\"2\\\"> <mass value=\\\"2.0141017779\\\" error=\\\"0.0000000006\\\" /> <abundance value=\\\"0.000115\\\" error=\\\"0.000070\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"He\\\" atomic-number=\\\"2\\\"> <natural-abundance> <mass value=\\\"4.002602\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"3.0160293094\\\" error=\\\"0.0000000012\\\" /> <abundance value=\\\"0.00000134\\\" error=\\\"0.00000003\\\" /> </isotope> <isotope mass-number=\\\"4\\\"> <mass value=\\\"4.0026032497\\\" error=\\\"0.0000000015\\\" /> <abundance value=\\\"0.99999866\\\" error=\\\"0.00000003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Li\\\" atomic-number=\\\"3\\\"> <natural-abundance> <mass value=\\\"6.9421\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"6.0151223\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.0759\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"7\\\"> <mass value=\\\"7.0160041\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.9241\\\" error=\\\"0.0004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Be\\\" atomic-number=\\\"4\\\"> <natural-abundance> <mass value=\\\"9.012182\\\" error=\\\"0.000003\\\" /> <isotope mass-number=\\\"9\\\"> <mass value=\\\"9.0121822\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"B\\\" atomic-number=\\\"5\\\"> <natural-abundance> <mass value=\\\"10.881\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"10\\\"> <mass value=\\\"10.0129371\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.199\\\" error=\\\"0.007\\\" /> </isotope> <isotope mass-number=\\\"11\\\"> <mass value=\\\"11.0093055\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.801\\\" error=\\\"0.007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"C\\\" atomic-number=\\\"6\\\"> <natural-abundance> <mass value=\\\"12.0107\\\" error=\\\"0.0008\\\" /> <isotope mass-number=\\\"12\\\"> <mass value=\\\"12\\\" error=\\\"0\\\" /> <abundance value=\\\"0.9893\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"13\\\"> <mass value=\\\"13.003354838\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.0107\\\" error=\\\"0.0008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"N\\\" atomic-number=\\\"7\\\"> <natural-abundance> <mass value=\\\"14.0067\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"14\\\"> <mass value=\\\"14.0030740074\\\" error=\\\"0.0000000018\\\" /> <abundance value=\\\"0.99636\\\" error=\\\"0.00020\\\" /> </isotope> <isotope mass-number=\\\"15\\\"> <mass value=\\\"15.000108973\\\" error=\\\"0.000000012\\\" /> <abundance value=\\\"0.00364\\\" error=\\\"0.00020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"O\\\" atomic-number=\\\"8\\\"> <natural-abundance> <mass value=\\\"15.9994\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"16\\\"> <mass value=\\\"15.9949146223\\\" error=\\\"0.0000000025\\\" /> <abundance value=\\\"0.99759\\\" error=\\\"0.00016\\\" /> </isotope> <isotope mass-number=\\\"17\\\"> <mass value=\\\"16.99913150\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.00038\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"18\\\"> <mass value=\\\"17.9991604\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.00205\\\" error=\\\"0.00014\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"F\\\" atomic-number=\\\"9\\\"> <natural-abundance> <mass value=\\\"18.9984032\\\" error=\\\"0.0000005\\\" /> <isotope mass-number=\\\"19\\\"> <mass value=\\\"18.99840320\\\" error=\\\"0.00000007\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ne\\\" atomic-number=\\\"10\\\"> <natural-abundance> <mass value=\\\"20.1797\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"20\\\"> <mass value=\\\"19.992440176\\\" error=\\\"0.000000003\\\" /> <abundance value=\\\"0.9048\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"21\\\"> <mass value=\\\"20.99384674\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.0027\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"22\\\"> <mass value=\\\"21.99138550\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0925\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Na\\\" atomic-number=\\\"11\\\"> <natural-abundance> <mass value=\\\"22.989770\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"23\\\"> <mass value=\\\"22.98976966\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mg\\\" atomic-number=\\\"12\\\"> <natural-abundance> <mass value=\\\"24.3050\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"24\\\"> <mass value=\\\"23.98504187\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.7899\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"25\\\"> <mass value=\\\"24.98583700\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1000\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"26\\\"> <mass value=\\\"25.98259300\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1101\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Al\\\" atomic-number=\\\"13\\\"> <natural-abundance> <mass value=\\\"26.981538\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"27\\\"> <mass value=\\\"26.98153841\\\" error=\\\"0.00000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Si\\\" atomic-number=\\\"14\\\"> <natural-abundance> <mass value=\\\"28.0855\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"28\\\"> <mass value=\\\"27.97692649\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.92223\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"29\\\"> <mass value=\\\"28.97649468\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.04685\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"30\\\"> <mass value=\\\"29.97377018\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.03092\\\" error=\\\"0.00011\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"P\\\" atomic-number=\\\"15\\\"> <natural-abundance> <mass value=\\\"30.973761\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"31\\\"> <mass value=\\\"30.97376149\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"S\\\" atomic-number=\\\"16\\\"> <natural-abundance> <mass value=\\\"32.065\\\" error=\\\"0.005\\\" /> <isotope mass-number=\\\"32\\\"> <mass value=\\\"31.97207073\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.9499\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"33\\\"> <mass value=\\\"32.97145854\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.0075\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"34\\\"> <mass value=\\\"33.96786687\\\" error=\\\"0.00000014\\\" /> <abundance value=\\\"0.0425\\\" error=\\\"0.0024\\\" /> </isotope> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96708088\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0001\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cl\\\" atomic-number=\\\"17\\\"> <natural-abundance> <mass value=\\\"35.453\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"35\\\"> <mass value=\\\"34.96885271\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.7576\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"37\\\"> <mass value=\\\"36.96590260\\\" error=\\\"0.00000005\\\" /> <abundance value=\\\"0.2424\\\" error=\\\"0.0010\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ar\\\" atomic-number=\\\"18\\\"> <natural-abundance> <mass value=\\\"39.948\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96754626\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"0.0003365\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"38\\\"> <mass value=\\\"37.9627322\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.000632\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.962383124\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.996003\\\" error=\\\"0.000030\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"K\\\" atomic-number=\\\"19\\\"> <natural-abundance> <mass value=\\\"39.0983\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"39\\\"> <mass value=\\\"38.9637069\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.932581\\\" error=\\\"0.000044\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.96399867\\\" error=\\\"0.00000029\\\" /> <abundance value=\\\"0.000117\\\" error=\\\"0.000001\\\" /> </isotope> <isotope mass-number=\\\"41\\\"> <mass value=\\\"40.96182597\\\" error=\\\"0.00000028\\\" /> <abundance value=\\\"0.067302\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ca\\\" atomic-number=\\\"20\\\"> <natural-abundance> <mass value=\\\"40.078\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.9625912\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.96941\\\" error=\\\"0.00156\\\" /> </isotope> <isotope mass-number=\\\"42\\\"> <mass value=\\\"41.9586183\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.00647\\\" error=\\\"0.00023\\\" /> </isotope> <isotope mass-number=\\\"43\\\"> <mass value=\\\"42.9587668\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.00135\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"44\\\"> <mass value=\\\"43.9554811\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.02086\\\" error=\\\"0.00110\\\" /> </isotope> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9536927\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.00004\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.952533\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00187\\\" error=\\\"0.00021\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sc\\\" atomic-number=\\\"21\\\"> <natural-abundance> <mass value=\\\"44.955910\\\" error=\\\"0.000008\\\" /> <isotope mass-number=\\\"45\\\"> <mass value=\\\"44.9559102\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ti\\\" atomic-number=\\\"22\\\"> <natural-abundance> <mass value=\\\"47.867\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9526295\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"0.0825\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"47\\\"> <mass value=\\\"46.9517637\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0744\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.9479470\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.7372\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"49\\\"> <mass value=\\\"48.9478707\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0541\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"V\\\" atomic-number=\\\"23\\\"> <natural-abundance> <mass value=\\\"50.9415\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9471627\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.00250\\\" error=\\\"0.00004\\\" /> </isotope> <isotope mass-number=\\\"51\\\"> <mass value=\\\"50.9439635\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.99750\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cr\\\" atomic-number=\\\"24\\\"> <natural-abundance> <mass value=\\\"51.9961\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9460495\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.04345\\\" error=\\\"0.00013\\\" /> </isotope> <isotope mass-number=\\\"52\\\"> <mass value=\\\"51.9405115\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.83789\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"53\\\"> <mass value=\\\"52.9406534\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.09501\\\" error=\\\"0.00017\\\" /> </isotope> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.938846\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02365\\\" error=\\\"0.00007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mn\\\" atomic-number=\\\"25\\\"> <natural-abundance> <mass value=\\\"54.938049\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"55\\\"> <mass value=\\\"54.9380493\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Fe\\\" atomic-number=\\\"26\\\"> <natural-abundance> <mass value=\\\"55.845\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.9396147\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.05845\\\" error=\\\"0.00035\\\" /> </isotope> <isotope mass-number=\\\"56\\\"> <mass value=\\\"55.9349418\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.91754\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"57\\\"> <mass value=\\\"56.9353983\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02119\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9332801\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.00282\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Co\\\" atomic-number=\\\"27\\\"> <natural-abundance> <mass value=\\\"58.933200\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"59\\\"> <mass value=\\\"59.9331999\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ni\\\" atomic-number=\\\"28\\\"> <natural-abundance> <mass value=\\\"58.6934\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9353477\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.680769\\\" error=\\\"0.000089\\\" /> </isotope> <isotope mass-number=\\\"60\\\"> <mass value=\\\"59.9307903\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.262231\\\" error=\\\"0.000077\\\" /> </isotope> <isotope mass-number=\\\"61\\\"> <mass value=\\\"60.9310601\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.011399\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"62\\\"> <mass value=\\\"61.9283484\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0036345\\\" error=\\\"0.000017\\\" /> </isotope> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9279692\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.009256\\\" error=\\\"0.000009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cu\\\" atomic-number=\\\"29\\\"> <natural-abundance> <mass value=\\\"63.546\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"63\\\"> <mass value=\\\"62.9296007\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.6915\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"65\\\"> <mass value=\\\"64.9277938\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3085\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zn\\\" atomic-number=\\\"30\\\"> <natural-abundance> <mass value=\\\"65.409\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9291461\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.48268\\\" error=\\\"0.00321\\\" /> </isotope> <isotope mass-number=\\\"66\\\"> <mass value=\\\"65.9260364\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.27975\\\" error=\\\"0.00077\\\" /> </isotope> <isotope mass-number=\\\"67\\\"> <mass value=\\\"66.9271305\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.04102\\\" error=\\\"0.00021\\\" /> </isotope> <isotope mass-number=\\\"68\\\"> <mass value=\\\"67.9248473\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.19024\\\" error=\\\"0.00123\\\" /> </isotope> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.925325\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00631\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ga\\\" atomic-number=\\\"31\\\"> <natural-abundance> <mass value=\\\"69.723\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"69\\\"> <mass value=\\\"68.925581\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.60108\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"71\\\"> <mass value=\\\"70.9247073\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.39892\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ge\\\" atomic-number=\\\"32\\\"> <natural-abundance> <mass value=\\\"72.64\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.9242500\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.2038\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"72\\\"> <mass value=\\\"71.9220763\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2731\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"73\\\"> <mass value=\\\"72.9234595\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0776\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9211784\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.3672\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9214029\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0783\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"As\\\" atomic-number=\\\"33\\\"> <natural-abundance> <mass value=\\\"74.92160\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"75\\\"> <mass value=\\\"74.9215966\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Se\\\" atomic-number=\\\"34\\\"> <natural-abundance> <mass value=\\\"78.96\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9224767\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9192143\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0937\\\" error=\\\"0.0029\\\" /> </isotope> <isotope mass-number=\\\"77\\\"> <mass value=\\\"76.9199148\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0763\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.9173097\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2377\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.9165221\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.4961\\\" error=\\\"0.0041\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9167003\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.0873\\\" error=\\\"0.0022\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Br\\\" atomic-number=\\\"35\\\"> <natural-abundance> <mass value=\\\"79.904\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"79\\\"> <mass value=\\\"78.9183379\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.5069\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"81\\\"> <mass value=\\\"80.916291\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4931\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Kr\\\" atomic-number=\\\"36\\\"> <natural-abundance> <mass value=\\\"83.798\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.920388\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00355\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.916379\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.02286\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9134850\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.11593\\\" error=\\\"0.00031\\\" /> </isotope> <isotope mass-number=\\\"83\\\"> <mass value=\\\"82.914137\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11500\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.911508\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.56987\\\" error=\\\"0.00015\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.910615\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.17279\\\" error=\\\"0.00041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rb\\\" atomic-number=\\\"37\\\"> <natural-abundance> <mass value=\\\"85.4678\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"85\\\"> <mass value=\\\"84.9117924\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.7217\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9091858\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.2783\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sr\\\" atomic-number=\\\"38\\\"> <natural-abundance> <mass value=\\\"87.62\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.913426\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0056\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.9092647\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0986\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9088816\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0700\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"88\\\"> <mass value=\\\"87.9056167\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.8258\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Y\\\" atomic-number=\\\"39\\\"> <natural-abundance> <mass value=\\\"88.90585\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"89\\\"> <mass value=\\\"88.9058485\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zr\\\" atomic-number=\\\"40\\\"> <natural-abundance> <mass value=\\\"91.224\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"90\\\"> <mass value=\\\"89.9047022\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"0.5145\\\" error=\\\"0.0040\\\" /> </isotope> <isotope mass-number=\\\"91\\\"> <mass value=\\\"90.9056434\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1122\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.9050386\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1715\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9063144\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.1738\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.908275\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0280\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nb\\\" atomic-number=\\\"41\\\"> <natural-abundance> <mass value=\\\"92.90638\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"93\\\"> <mass value=\\\"92.9063762\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mo\\\" atomic-number=\\\"42\\\"> <natural-abundance> <mass value=\\\"95.94\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.906810\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.1477\\\" error=\\\"0.0031\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9050867\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0923\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"95\\\"> <mass value=\\\"94.9058406\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1590\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.9046780\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1668\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"97\\\"> <mass value=\\\"96.9030201\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0956\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.9054069\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.2419\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.907476\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0967\\\" error=\\\"0.0020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ru\\\" atomic-number=\\\"44\\\"> <natural-abundance> <mass value=\\\"101.07\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.907604\\\" error=\\\"0.000009\\\" /> <abundance value=\\\"0.0554\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.905287\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.0187\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"99\\\"> <mass value=\\\"98.9059385\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\".01276\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.9042189\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1260\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"101\\\"> <mass value=\\\"100.9055815\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1706\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.9043488\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.3155\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.905430\\\" error=\\\".01862\\\" /> <abundance value=\\\"0.1862\\\" error=\\\"0.0027\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rh\\\" atomic-number=\\\"45\\\"> <natural-abundance> <mass value=\\\"1025.90550\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"103\\\"> <mass value=\\\"102.905504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pd\\\" atomic-number=\\\"46\\\"> <natural-abundance> <mass value=\\\"106.42\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.905607\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0102\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.904034\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.1114\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"105\\\"> <mass value=\\\"104.905083\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2233\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.903484\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2733\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.903895\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.2646\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.905153\\\" error=\\\"0.000012\\\" /> <abundance value=\\\"0.1172\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ag\\\" atomic-number=\\\"47\\\"> <natural-abundance> <mass value=\\\"107.8682\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"107\\\"> <mass value=\\\"106.905093\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.51839\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"109\\\"> <mass value=\\\"108.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.48161\\\" error=\\\"0.00008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cd\\\" atomic-number=\\\"48\\\"> <natural-abundance> <mass value=\\\"112.411\\\" error=\\\"0.008\\\" /> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.906458\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0125\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.904183\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.903006\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1249\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"111\\\"> <mass value=\\\"110.904182\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1280\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.9027577\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2413\\\" error=\\\"0.0021\\\" /> </isotope> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.9044014\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1222\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.9033586\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2873\\\" error=\\\"0.0042\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0749\\\" error=\\\"0.0018\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"In\\\" atomic-number=\\\"49\\\"> <natural-abundance> <mass value=\\\"114.818\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.904062\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0429\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903879\\\" error=\\\"0.000040\\\" /> <abundance value=\\\"0.9571\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sn\\\" atomic-number=\\\"50\\\"> <natural-abundance> <mass value=\\\"118.710\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.904822\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0097\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.902783\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0066\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903347\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0034\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.901745\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1454\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"117\\\"> <mass value=\\\"116.902955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0768\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"118\\\"> <mass value=\\\"117.901608\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2422\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"119\\\"> <mass value=\\\"118.903311\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0859\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.9021985\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3258\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9034411\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0463\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9052745\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0579\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sb\\\" atomic-number=\\\"51\\\"> <natural-abundance> <mass value=\\\"121.760\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"121\\\"> <mass value=\\\"120.9038222\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.5721\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042160\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.4279\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Te\\\" atomic-number=\\\"52\\\"> <natural-abundance> <mass value=\\\"127.60\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.904026\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.0009\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9030558\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0255\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042711\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9028188\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0474\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"125\\\"> <mass value=\\\"124.9044241\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0707\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.9033049\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1884\\\" error=\\\"0.0025\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9044615\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3174\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9062229\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.3408\\\" error=\\\"0.0062\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"I\\\" atomic-number=\\\"53\\\"> <natural-abundance> <mass value=\\\"126.90447\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"127\\\"> <mass value=\\\"126.904468\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Xe\\\" atomic-number=\\\"54\\\"> <natural-abundance> <mass value=\\\"131.293\\\" error=\\\"0.006\\\" /> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9058954\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.000952\\\" error=\\\"0.000003\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.904268\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.000890\\\" error=\\\"0.000002\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9035305\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.019102\\\" error=\\\"0.000008\\\" /> </isotope> <isotope mass-number=\\\"129\\\"> <mass value=\\\"128.9047799\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.264006\\\" error=\\\"0.000082\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9035089\\\" error=\\\"0.0000011\\\" /> <abundance value=\\\"0.040710\\\" error=\\\"0.000013\\\" /> </isotope> <isotope mass-number=\\\"131\\\"> <mass value=\\\"130.9050828\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.212324\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.9041546\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.269086\\\" error=\\\"0.000033\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.9053945\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.104357\\\" error=\\\"0.000021\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907220\\\" error=\\\"0.000008\\\" /> <abundance value=\\\"0.088573\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cs\\\" atomic-number=\\\"55\\\"> <natural-abundance> <mass value=\\\"132.90545\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"133\\\"> <mass value=\\\"132.905447\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ba\\\" atomic-number=\\\"56\\\"> <natural-abundance> <mass value=\\\"137.327\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.906311\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00106\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.905056\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00101\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.904504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02417\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"135\\\"> <mass value=\\\"134.905684\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.000003\\\" error=\\\"0.00012\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.904571\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.07854\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"137\\\"> <mass value=\\\"136.905822\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.11232\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905242\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.71698\\\" error=\\\"0.00042\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"La\\\" atomic-number=\\\"57\\\"> <natural-abundance> <mass value=\\\"138.9055\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.907108\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00090\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"139\\\"> <mass value=\\\"138.906349\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.99910\\\" error=\\\"0.00001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ce\\\" atomic-number=\\\"58\\\"> <natural-abundance> <mass value=\\\"140.116\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907140\\\" error=\\\"0.000050\\\" /> <abundance value=\\\"0.00185\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905986\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.00251\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"140\\\"> <mass value=\\\"139.905\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.88450\\\" error=\\\"0.00051\\\" /> </isotope> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.909241\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11114\\\" error=\\\"0.00051\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pr\\\" atomic-number=\\\"59\\\"> <natural-abundance> <mass value=\\\"140.90765\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"141\\\"> <mass value=\\\"140.907648\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nd\\\" atomic-number=\\\"60\\\"> <natural-abundance> <mass value=\\\"144.24\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.907719\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.272\\\" error=\\\"0.005\\\" /> </isotope> <isotope mass-number=\\\"143\\\"> <mass value=\\\"142.909810\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.122\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.910083\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.238\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"145\\\"> <mass value=\\\"144.912569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.083\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"146\\\"> <mass value=\\\"145.913113\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.172\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.916889\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.057\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.920887\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.056\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sm\\\" atomic-number=\\\"62\\\"> <natural-abundance> <mass value=\\\"150.36\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.911996\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0307\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"147\\\"> <mass value=\\\"146.914894\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1499\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.914818\\\" error=\\\"0.1124\\\" /> <abundance value=\\\"0.1124\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"149\\\"> <mass value=\\\"148.917180\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1382\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.917272\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0738\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919729\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2675\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.922206\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2275\\\" error=\\\"0.0029\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Eu\\\" atomic-number=\\\"63\\\"> <natural-abundance> <mass value=\\\"151.964\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"151\\\"> <mass value=\\\"150.919846\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4781\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"153\\\"> <mass value=\\\"152.921227\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.5219\\\" error=\\\"0.0006\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Gd\\\" atomic-number=\\\"64\\\"> <natural-abundance> <mass value=\\\"157.25\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919789\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0020\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.920862\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0218\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"155\\\"> <mass value=\\\"154.922619\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1480\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.922120\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2047\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"157\\\"> <mass value=\\\"156.923957\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1565\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924101\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2484\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.927051\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2186\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tb\\\" atomic-number=\\\"65\\\"> <natural-abundance> <mass value=\\\"158.92534\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"159\\\"> <mass value=\\\"158.925343\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Dy\\\" atomic-number=\\\"66\\\"> <natural-abundance> <mass value=\\\"162.500\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.924278\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00056\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924405\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00095\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.925194\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02329\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"161\\\"> <mass value=\\\"160.926930\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.18889\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.926795\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25475\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"163\\\"> <mass value=\\\"162.928728\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.24896\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929171\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.28260\\\" error=\\\"0.00054\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ho\\\" atomic-number=\\\"67\\\"> <natural-abundance> <mass value=\\\"164.93032\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"165\\\"> <mass value=\\\"164.930319\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Er\\\" atomic-number=\\\"68\\\"> <natural-abundance> <mass value=\\\"167.259\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.928775\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00139\\\" error=\\\"0.00005\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929197\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.01601\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"166\\\"> <mass value=\\\"165.930290\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33503\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"167\\\"> <mass value=\\\"166.932046\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.22869\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.932368\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.26978\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.935461\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.14910\\\" error=\\\"0.00036\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tm\\\" atomic-number=\\\"69\\\"> <natural-abundance> <mass value=\\\"168.93421\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"169\\\"> <mass value=\\\"168.934211\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Yb\\\" atomic-number=\\\"70\\\"> <natural-abundance> <mass value=\\\"173.04\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.933895\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0013\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.934759\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0304\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"171\\\"> <mass value=\\\"170.936323\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1428\\\" error=\\\"0.0057\\\" /> </isotope> <isotope mass-number=\\\"172\\\"> <mass value=\\\"171.936378\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2183\\\" error=\\\"0.0067\\\" /> </isotope> <isotope mass-number=\\\"173\\\"> <mass value=\\\"172.938207\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1613\\\" error=\\\"0.0027\\\" /> </isotope> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.938858\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3183\\\" error=\\\"0.0092\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.942569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1276\\\" error=\\\"0.0041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Lu\\\" atomic-number=\\\"71\\\"> <natural-abundance> <mass value=\\\"174.967\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"175\\\"> <mass value=\\\"174.9407682\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.9741\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.9426827\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.0259\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hf\\\" atomic-number=\\\"72\\\"> <natural-abundance> <mass value=\\\"178.49\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.940042\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0016\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.941403\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0526\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"177\\\"> <mass value=\\\"176.9432204\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1860\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"178\\\"> <mass value=\\\"177.9436981\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.2728\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"179\\\"> <mass value=\\\"178.9488154\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1362\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.9465488\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3508\\\" error=\\\"0.0016\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ta\\\" atomic-number=\\\"73\\\"> <natural-abundance> <mass value=\\\"180.9479\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.947466\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00012\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"181\\\"> <mass value=\\\"180.947996\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.99988\\\" error=\\\"0.00002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"W\\\" atomic-number=\\\"74\\\"> <natural-abundance> <mass value=\\\"183.84\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.946706\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0012\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"182\\\"> <mass value=\\\"181.948205\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.265\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"183\\\"> <mass value=\\\"182.9502242\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1431\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.9509323\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.3064\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.954362\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2843\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Re\\\" atomic-number=\\\"75\\\"> <natural-abundance> <mass value=\\\"186.207\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"185\\\"> <mass value=\\\"184.952955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3740\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557505\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.6260\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Os\\\" atomic-number=\\\"76\\\"> <natural-abundance> <mass value=\\\"190.23\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.952491\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0002\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.953838\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0159\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557476\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.0196\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"188\\\"> <mass value=\\\"187.9558357\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1324\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"189\\\"> <mass value=\\\"188.958145\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1615\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.958445\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2626\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961479\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.4078\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ir\\\" atomic-number=\\\"77\\\"> <natural-abundance> <mass value=\\\"192.217\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"191\\\"> <mass value=\\\"190.960591\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.373\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"193\\\"> <mass value=\\\"192.962923\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.627\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pt\\\" atomic-number=\\\"78\\\"> <natural-abundance> <mass value=\\\"195.078\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.959930\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00014\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961035\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00782\\\" error=\\\"0.00007\\\" /> </isotope> <isotope mass-number=\\\"194\\\"> <mass value=\\\"193.962663\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.32967\\\" error=\\\"0.00099\\\" /> </isotope> <isotope mass-number=\\\"195\\\"> <mass value=\\\"194.964774\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33832\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.964934\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25242\\\" error=\\\"0.00041\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.967875\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.07163\\\" error=\\\"0.00055\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Au\\\" atomic-number=\\\"79\\\"> <natural-abundance> <mass value=\\\"196.96655\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"197\\\"> <mass value=\\\"196.966551\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hg\\\" atomic-number=\\\"80\\\"> <natural-abundance> <mass value=\\\"200.59\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.965814\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0015\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.966752\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0997\\\" error=\\\"0.0020\\\" /> </isotope> <isotope mass-number=\\\"199\\\"> <mass value=\\\"198.968262\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1687\\\" error=\\\"0.0022\\\" /> </isotope> <isotope mass-number=\\\"200\\\"> <mass value=\\\"199.968309\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2310\\\" error=\\\"0.0019\\\" /> </isotope> <isotope mass-number=\\\"201\\\"> <mass value=\\\"200.970285\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1318\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"202\\\"> <mass value=\\\"201.970625\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2986\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973475\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0687\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tl\\\" atomic-number=\\\"81\\\"> <natural-abundance> <mass value=\\\"204.3833\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"203\\\"> <mass value=\\\"202.972329\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2952\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"205\\\"> <mass value=\\\"204.974412\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.7048\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pb\\\" atomic-number=\\\"82\\\"> <natural-abundance> <mass value=\\\"207.2\\\" error=\\\"0.1\\\" /> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973028\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.014\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"206\\\"> <mass value=\\\"205.974449\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.241\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"207\\\"> <mass value=\\\"206.975880\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.221\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"208\\\"> <mass value=\\\"207.976636\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.524\\\" error=\\\"0.001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Bi\\\" atomic-number=\\\"83\\\"> <natural-abundance> <mass value=\\\"208.98038\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"209\\\"> <mass value=\\\"208.980384\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Th\\\" atomic-number=\\\"90\\\"> <natural-abundance> <mass value=\\\"232.0381\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"232\\\"> <mass value=\\\"232.0380495\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pa\\\" atomic-number=\\\"91\\\"> <natural-abundance> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"231\\\"> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"U\\\" atomic-number=\\\"92\\\"> <natural-abundance> <mass value=\\\"238.02891\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"234\\\"> <mass value=\\\"234.0409447\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.000054\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"235\\\"> <mass value=\\\"235.0439222\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.007204\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"238\\\"> <mass value=\\\"238.0507835\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.992742\\\" error=\\\"0.000010\\\" /> </isotope> </natural-abundance> </entry></atomic-mass-table>\";\n try {\n// this.document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(in);\n this.document = XMLParser.parse(xmlContent);\n } catch (Exception e) {\n throw new RuntimeException(\"Error reading atomic_system.xml.\");\n }\n\n NodeList nodes = document.getElementsByTagName(\"entry\");\n\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n\n String symbol = node.getAttributes().getNamedItem(\"symbol\").getNodeValue();\n\n entries.put(symbol, new Entry(node));\n }\n }",
"public static void main(String[] args) throws ParserConfigurationException {\n\t\tDocumentBuilder dBuilder;\n\t\tDocument doc = null;\n\t\tdBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t\ttry {\n\t\t\tdoc = dBuilder.parse(new File(filepath));\n\t\t} catch (SAXException | IOException e) {\n\t\t\tSystem.out.println(\"Invalid File / Xml\");\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t\tSystem.out.println(\"Root element is: <\" + doc.getDocumentElement().getNodeName() + \">\");\n\n\t\tNodeList childNodes = doc.getDocumentElement().getChildNodes();\n\t\tfor (int i = 0; i < childNodes.getLength(); i++) {\n\t\t\tNode node = childNodes.item(i);\n\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\tString name = node.getNodeName();\n\t\t\t\tString value = node.getTextContent();\n\t\t\t\tSystem.out.println(\"Node name: '\" + name + \"' has text content: \" + value);\n\t\t\t}\n\t\t}\n\n\t\t// Validate XML against schema.xsd\n\t\tSchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n\n\t\t// Validate will throw exception only if xml is not valid against the schema\n\t\ttry {\n\t\t\tSchema schema = factory.newSchema(new File(schemapath));\n\t\t\tValidator validator = schema.newValidator();\n\t\t\tvalidator.validate(new StreamSource(new File(filepath)));\n\t\t\tSystem.out.println(\"XML is valid. No exception was thrown\");\n\t\t} catch (SAXException | IOException e) {\n\t\t\tSystem.out.println(\"Invalid XML. Exception found: \" + e.getMessage());\n\t\t}\n\t}",
"public void loadDocument() {\n\t\ttry {\n\t\t\tString defaultDirectory = Utils.lastVisitedDirectory;\n\t\t\tif (Utils.lastVisitedDocumentDirectory != null)\n\t\t\t\tdefaultDirectory = Utils.lastVisitedDocumentDirectory;\n\n\t\t\tJFileChooser fileChooser = new JFileChooser(defaultDirectory);\n\t\t\tint returnVal = fileChooser.showOpenDialog(new JFrame());\n\n\t\t\tif (returnVal != JFileChooser.APPROVE_OPTION) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tURL fileURL = fileChooser.getSelectedFile().toURL();\n\n\t\t\t((XsdTreeStructImpl) xsdTree).loadDocument(fileURL);\n\t\t\txsdTree.getMessageManager().sendMessage(\"XML document \" + fileURL + \" loaded.\", MessageManagerInt.simpleMessage);\n\t\t} catch (IOException urie) {\n\n\t\t} catch (SAXException saxe) {\n\n\t\t}\n\t\texampleLine = null;\n\t\t// updatePreview();\n\t}",
"public void readxml() throws JAXBException, FileNotFoundException {\n Player loadplayer = xml_methods.load();\n logger.info(\"player name: \" + loadplayer.getName());\n if (!item.isEmpty()) {\n logger.trace(loadplayer.getitem(0).getName());\n }\n tfName.setText(loadplayer.getName());\n isset = true;\n player = loadplayer;\n\n }",
"public static Document parse(final File file) {\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder db;\r\n\t\tDocument dom = null;\r\n\t\ttry {\r\n\t\t\tdb = dbf.newDocumentBuilder();\r\n\t\t\tdom = db.parse(file);\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn dom;\r\n\t}",
"public static Document getXmlDom(String xmlFilePath) {\n Document doc = null;\n try {\n Builder builder = new Builder();\n File file = new File(xmlFilePath);\n doc = builder.build(file);\n\n } catch (ParsingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return doc;\n }",
"public static NodeList readXML(String filename, String id)\r\n\t{\r\n\t\t\r\n\t\tNode child = readXML(filename);\r\n\t // Lista di tutti gli elementi\r\n\t NodeList list = ((Element)child).getElementsByTagName(id);\r\n\t \r\n\t\t \r\n\t\treturn list;\r\n\t}",
"void read(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException;",
"private static Document loadXMLFromString(String xml) throws ParserConfigurationException, SAXException,\n\t\t\tIOException {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\tInputSource is = new InputSource(new StringReader(xml));\n\t\treturn builder.parse(is);\n\t}",
"public Element readFromGameFile(String fileName) {\n\n Element element = null;\n File file = new File(SifebUtil.GAME_FILE_DIR + fileName + \".xml\");\n\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(file);\n doc.getDocumentElement().normalize();\n System.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"Game\");\n Node nNode = nList.item(0);\n element = (Element) nNode;\n\n } catch (Exception e) {\n element = null;\n e.printStackTrace();\n }\n\n return element;\n }",
"public XmlPullParser getLocalXML(String filename) throws IOException {\r\n\t\ttry {\r\n\t\t\tin = mContext.getAssets().open(filename);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tXmlPullParser parser = Xml.newPullParser();\r\n\t\t\tparser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);\r\n\t\t\tparser.setInput(in, null);\r\n\t\t\tparser.nextTag();\r\n\t\t\treturn parser;\r\n\t\t} catch (XmlPullParserException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"public XmlParser(String strFile) throws XmlException\n {\n File fXmlFile = new File(strFile);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder;\n try\n {\n dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(fXmlFile);\n doc.getDocumentElement().normalize();\n }\n catch (ParserConfigurationException ex)\n {\n throw new XmlException(\"Unable to initialize XML parser for: \" + strFile);\n }\n catch (SAXException ex)\n {\n throw new XmlException(\"Incorrect XML format: \" + strFile);\n }\n catch (IOException ex)\n {\n throw new XmlException(\"Unable to open XML file: \" + strFile);\n }\n }",
"public void process(final String filename) throws JDOMException, IOException {\n\n // Parsing our XML file being located below \"resources\"\n final Document docInput = builder.build(\n getClass().getClassLoader().getResource(filename)\n );\n\n // Accessing the document's root element <catalog>\n final Element docRoot = docInput.getRootElement();\n\n // Accessing the <item> children of parent element <catalog>\n docRoot.getChildren().stream().\n map(item -> \"Article: \" + item.getText() +\n \", order number: \" + item.getAttributeValue(\"orderNo\")).\n forEach(System.out::println);\n }",
"private static Document read (File file) throws MalformedURLException, DocumentException {\r\n\t\tSAXReader reader = new SAXReader();\r\n\t\tDocument document = reader.read(file);\r\n\t\treturn document;\r\n\t}",
"public Repository fromXml(String file) {\n File xmlFile = new File(file);\n Repository repository = new Repository();\n Contracts contracts = null;\n JAXBContext jaxbContext;\n try {\n jaxbContext = JAXBContext.newInstance(Contracts.class);\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n if (!xmlFile.exists()) System.out.println(\"File does not exist\");\n assert jaxbUnmarshaller != null;\n contracts = (Contracts) jaxbUnmarshaller.unmarshal(xmlFile);\n } catch (JAXBException e) {\n e.printStackTrace();\n }\n assert contracts != null;\n repository.setArrayList((ArrayList<Contract>) contracts.getContractList());\n\n return repository;\n\n }",
"private void loadOrRefreshXml(File file, boolean isLoad) throws Exception{\n\t\t\n\t // Remove the old content displayed\n \t\tthis.getXmlTextAreaPanel().removeAll();\n \t\t \n \t// The root node of the JTree. Is a special node that has no parent but can have childs \n \tDefaultMutableTreeNode base = new DefaultMutableTreeNode(\"XML Viewer\");\t \t\t \n\t DefaultTreeModel treeModel = new DefaultTreeModel(base);\n\t \t \n\t\txmlJTree = new JTree(treeModel);\n\t\txmlJTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\n\t\txmlJTree.setAutoscrolls(true);\n\t\txmlJTree.setCellRenderer(new CustomCellRenderer());\n\t \t \n\t\t// Create the xml parser\n\t SAXParserFactory fact = SAXParserFactory.newInstance();\n\t\tSAXParser parser = fact.newSAXParser();\t \t\t\t\t\n\t\t\t\t \n\t\t// Set to the parser the handler (ie a class that extends the default event handler: DefaultHandler)\n\t\tFile f = new File(this.sourceXMLfileTextField.getText());\n\t\tparser.parse(file,new CustomSaxParseHandler(base,xmlJTree));\n\t\t\n\t\t// By default compact all the tree before show it\n\t\tint row = xmlJTree.getRowCount() - 1;\n\t // Note: use '2' as fix value to compact only the child and not the root\n\t while (row >= 2) {\n\t xmlJTree.collapseRow(row);\t \t \n\t row--;\n\t } \t\t\t\t \n\t\t\t \t\t\t \n\t\tthis.getXmlTextAreaPanel().add(xmlJTree);\n\t\t\t \n\t\t// Refresh (and redraw) the panel and show the tree view of the chosen XML file\n\t\tthis.revalidate();\n\t \t\n\t\tif(!isLoad) //only for refresh xml show a message\n\t\t{\n\t\t messageLabel.setForeground(Color.GREEN);\n\t\t messageLabel.setText(\"Input Reloaded successfully\");\n\t\t} \n\t}",
"public void load(String filename){\n //Create a file if its not already on disk\n File extDir = new File(this.getFilesDir(), filename);\n\n //Read text from file\n StringBuilder text = new StringBuilder();\n\n\n //Needs lots of try and catch blocks because so much can go wrong\n try{\n\n BufferedReader br = new BufferedReader(new FileReader(extDir));\n String line;\n\n while ((line = br.readLine()) != null) {\n text.append(line);\n text.append('\\n');\n }//end while\n\n br.close();//Close the buffer\n }//end try\n catch (FileNotFoundException e){//If file not found on disk here.\n Toast.makeText(this, \"There was no data to load\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n\n catch (IOException e)//If io Exception here\n {\n Toast.makeText(this, \"Error loading file\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }//end catch\n\n\n //Set the data from the file content and conver it to a String\n String data = new String(text);\n\n //Safety first Parse data if available.\n if (data.length() > 0) {\n parseXML(data);\n }\n else\n Toast.makeText(this, \"There is no data to display\", Toast.LENGTH_LONG).show();\n }",
"private Document parse(String path) throws DocumentException, MalformedURLException {\n File file = new File(path);\r\n SAXReader saxReader = new SAXReader();\r\n return saxReader.read(file);\r\n }",
"public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException {\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\r\n\t\t//Create object of DocumentBuilder using DocumentBuilderFactory - to get the Document object for XML\r\n\t\tDocumentBuilder builder = documentBuilderFactory.newDocumentBuilder();\r\n\t\t\r\n\t\t//Create object of Document by parsing the input XML - to be able to obtain the NodeList for traversal.\r\n\t\tDocument document = builder.parse(\"D://employees.xml\");\r\n\t\t//ClassLoader.getSystemResourceAsStream(\"employees.xml\")\r\n\t\t\r\n\t\t//Create object of NodeList from the Document object - to be able to identify individual nodes (items)\r\n\t\tNodeList nodeList = document.getChildNodes();\r\n\t\t\r\n\t\tList<Employee> empList = new ArrayList<Employee>();\r\n\r\n\t\t//Looping over nodeList\r\n\t\tfor(int i=0;i<nodeList.getLength();i++)\r\n\t\t{\r\n\t\t\t//Picking up a node/item from the list\r\n\t\t\tNode node = nodeList.item(i);\r\n\t\t\t\r\n\t\t\tif(node instanceof Element)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t//emp.id = node.getAttributes().getNamedItem(\"id\").getNodeValue();\r\n\t\t\t\t\r\n\t\t\t\tNodeList internalNodeList = node.getChildNodes();\r\n\t\t\t\t\r\n\t\t\t\tfor(int j=0; j < internalNodeList.getLength(); j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEmployee emp = new Employee();\r\n\t\t\t\t\t\r\n\t\t\t\t\tNode iNode = internalNodeList.item(j);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(iNode instanceof Element)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString iNodeText = iNode.getLastChild().getTextContent().trim();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tswitch(iNodeText)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase \"firstName\":\r\n\t\t\t\t\t\t\temp.firstName = iNodeText;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"lastName\":\r\n\t\t\t\t\t\t\temp.lastName = iNodeText;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"location\":\r\n\t\t\t\t\t\t\temp.location = iNodeText;\r\n\t\t\t\t\t\t\tbreak;\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\tempList.add(emp);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(Employee emp : empList)\r\n\t\t{\r\n\t\t\tSystem.out.println(emp);\r\n\t\t}\r\n\t}",
"public static Document parseXML(File xmlFile) throws BaseException\r\n\t{\r\n\t\tDocument xmlDoc = null;\r\n\t\t// Ensure that the file is present and can be read.\r\n\t\tif (xmlFile != null && xmlFile.canRead())\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\txmlDoc = parseXML(new FileInputStream(xmlFile));\r\n\t\t\t} catch (FileNotFoundException e)\r\n\t\t\t{\r\n\t\t\t\tthrow new BaseException(\"ERR_FILE_PARSE\", \"Unable to load file provided\", e);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn xmlDoc;\r\n\t}",
"XMLDocument load(XMLStreamReader reader) throws XMLStreamException, IllegalStateException;",
"private NodeList getNodeListFromFile(String xmlFileName) throws ParserConfigurationException, SAXException, IOException {\r\n\t\ttry{\r\n\t\t\t//sample XMLParser code, nothing to change\r\n\t\t\tFile fXmlFile = new File(xmlFileName);\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\r\n\t\t\tdoc.getDocumentElement().normalize();\r\n\t\t\treturn doc.getElementsByTagName(\"element\");\r\n\t\t} catch ( Throwable throwable ) {\r\n\t\t System.out.println(throwable.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public Document parseFile(InputStream inputStream) {\r\n \r\n try {\r\n setDocument(docBuilder.parse(inputStream));\r\n }\r\n catch (SAXException e) {\r\n log.debug(\"Wrong XML file structure: \" + e.getMessage());\r\n return null;\r\n }\r\n catch (IOException e) {\r\n \te.printStackTrace();\r\n log.debug(\"Could not read source file: \" + e.getMessage());\r\n }\r\n log.debug(\"XML file parsed\");\r\n return getDocument();\r\n }",
"public static void readXML(){\n try{\n Document doc = getDoc(\"config.xml\");\n Element root = doc.getRootElement();\n\n //Muestra los elementos dentro de la configuracion del xml\n \n System.out.println(\"Color : \" + root.getChildText(\"color\"));\n System.out.println(\"Pattern : \" + root.getChildText(\"pattern\"));\n System.out.println(\"Background : \" + root.getChildText(\"background\"));\n \n\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n }",
"public Document parse(File aFile)\n\t\t\t\t throws org.xml.sax.SAXException, java.io.IOException {\n\t\t/**\n\t\t * @todo Fix/implement this later\n\t\t */\n\t\tthrow new SAXException(\"Not supported\");\n\t}",
"public boolean loadData() {\n try {\n SAXReader reader = new SAXReader();\n Document xmlDoc = reader.read(xmlFile);\n\n Element rootNode = xmlDoc.getRootElement();\n\n rootTreeIterate(rootNode);\n\n } catch (DocumentException ex) {\n logger.error(\"Document loading error:\", ex);\n return false;\n }\n\n return true;\n }",
"@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }",
"public void parse()\n throws ClassNotFoundException, IllegalAccessException,\n\t InstantiationException, IOException, SAXException,\n\t ParserConfigurationException\n {\n\tSAXParser saxParser = SAXParserFactory.newInstance().newSAXParser();\n\txmlReader = saxParser.getXMLReader();\n\txmlReader.setContentHandler(this);\n\txmlReader.setEntityResolver(this);\n\txmlReader.setErrorHandler(this);\n\txmlReader.setDTDHandler(this);\n\txmlReader.parse(xmlSource);\n\t}",
"private void parseDocument()\n {\n\tElement docEle = dom.getDocumentElement();\n\n\t// get a nodelist of <employee> elements\n\tNodeList nl = docEle.getElementsByTagName(\"path\");\n\tif (nl != null && nl.getLength() > 0)\n\t{\n\t for (int i = 0; i < nl.getLength(); i++)\n\t {// System.out.println(i);\n\n\t\t// get the employee element\n\t\tElement el = (Element) nl.item(i);\n\n\t\t// get the Employee object\n\t\tmakeRoom(el);\n\n\t }\n\n\t //Log.d(\"NUMROOMS\", \"numRooms = \" + numDetectedRooms + \" \" + \"numHallways = \" + numDetectedHallways);\n\t}\n\t// This will read in the numbers. This is possibly useful for giving the rooms their correct numbers.\n\t// Find all of the glyphs within the room using it's coordinates and the ID designated by roomsMap.\n\t// Organize their coordinates from left to right and translate the filename to what number they are.\n\t// These numbers from left to right are the room number.\n\n\t/*\n\t * NodeList glyphs = docEle.getElementsByTagName(\"use\"); if (nl != null && glyphs.getLength() > 0) { for (int i = 0; i < glyphs.getLength(); i++) {\n\t * \n\t * //get the employee element Element el = (Element) glyphs.item(i); //System.out.println(el.getAttribute(\"id\")); String x = el.getAttribute(\"x\"); String y = el.getAttribute(\"y\");\n\t * \n\t * //Create a new Employee with the value read from the xml nodes\n\t * \n\t * myGlyphs.add(new Point((int)Double.parseDouble(x), (int)(Double.parseDouble(y))));\n\t * \n\t * } }\n\t */\n\n\t//Log.d(Constants.TAG, \"XMLReader::parseDocument() Exiting!\");\n }",
"public abstract XMLDocument parse(URL url);",
"public static Document getDoc(File inputFile) throws ParserConfigurationException, IOException\r\n {\r\n Document parsedDocument = null;\r\n DocumentBuilderFactory f = null;\r\n try\r\n {\r\n //System.out.println(\"Validazione XML abilitata: \" + enableValidationFromGui);\r\n //System.out.println(\"Esclusione Spazi Bianchi Elementi XML Abilitata: \" + enableIgnoringWhitespaceFromGui);\r\n File xmlFile = inputFile;\r\n f = DocumentBuilderFactory.newInstance();\r\n f.setValidating(enableValidationFromGui); \r\n f.setIgnoringElementContentWhitespace(enableIgnoringWhitespaceFromGui);\r\n DocumentBuilder b = f.newDocumentBuilder();\r\n ErrorHandler h = new xmlValidationErrorHandler();\r\n b.setErrorHandler(h);\r\n parsedDocument = (Document) b.parse(xmlFile);\r\n }\r\n catch (ParserConfigurationException | SAXException | IOException e)\r\n {\r\n System.out.println(e.toString()); \r\n }\r\n if(f.isValidating() && enableValidationFromGui)\r\n return parsedDocument;\r\n else\r\n return parsedDocument; \r\n }",
"public HelperClass parseXML(File file1)\n\t{\n\t\tString a =null;\n\t\tList<String> list1 = new ArrayList<String>();\n\t\tString id = \"\";\n\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\ttry\n\t\t{\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tDocument doc = builder.parse(file1.toString());\n\t\t\tElement root = doc.getDocumentElement();\n\t\t\tid = root.getAttribute(\"id\");\n\t\t\t\n\t\t\tNodeList requirementList = doc.getElementsByTagName(\"requirements\");\n\t\t\tfor(int k=0;k<requirementList.getLength();k++) \n\t\t\t{\n\t\t\t\tNode r = requirementList.item(k);\n\t\t\t\tif(r.getNodeType() == Node.ELEMENT_NODE)\n\t\t\t\t{\n\t\t\t\t\tElement requirement = (Element) r;\n\t\t\t\t\tNodeList nameList = requirement.getChildNodes();\n\t\t\t\t\tfor(int j=0;j<nameList.getLength();j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tNode n = nameList.item(j); \n\t\t\t\t\t\tif(n.getNodeType() == Node.ELEMENT_NODE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tElement name3 = (Element) n;\n\t\t\t\t\t\t\ta = name3.getTextContent();\n\t\t\t\t\t\t\tlist1.add(a);\n\t\t\t\t\t\t\tSystem.out.println(a);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tHelperClass toolIdMap = new HelperClass();\n\t\ttoolIdMap.setKey(id);\n\t\ttoolIdMap.setTools(list1);\n\t\treturn toolIdMap;\n\n\t}",
"void processElement(File documentPath) \n\t\t\tthrows XMLFormatException;",
"public Document parse(String xmlString) {\n \n Document document = null;\n try { \n //DOM parser instance\n DocumentBuilder builder = builderFactory.newDocumentBuilder();\n //parse an XML file into a DOM tree\n document = builder.parse( new InputSource( new StringReader( xmlString ) ) ); \n \n } catch (ParserConfigurationException ex) {\n Logger.getLogger(DOMParser.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SAXException ex) {\n Logger.getLogger(DOMParser.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(DOMParser.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n return document;\n }",
"public GongDomObject(File file) throws ParserConfigurationException, InvalidTagException, SAXException, IOException {\r\n super(file);\r\n }",
"private static void staxReader(File file) throws XMLStreamException, FileNotFoundException, FactoryConfigurationError, IOException {\n\n FileInputStream fis = new FileInputStream(file);\n Page[] ns0pages = StaxPageParser.pagesFromFile(fis);\n\n// reporter(ns0pages);\n }",
"public void loadConfig(XMLElement xml) {\r\n\r\n }",
"public void testXmlReader() throws Exception {\n File file = new File(\"src/test/resources/reader/sample.xml\");\n final URL testdata = file.toURI().toURL();\n reader.parse(testdata, creator);\n assertEquals(\"Did not create expected number of nodes\", 1, creator.size());\n }",
"private void loadFile(){\n\tint returnVal = fileChooser.showOpenDialog(this);\n\n\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t File file = fileChooser.getSelectedFile();\n\t SAXParserFactory spf = SAXParserFactory.newInstance();\n\t try {\n\t\tInputStream xmlInput = new FileInputStream(file);\n\t\tSAXParser saxParser = spf.newSAXParser();\n\t\tRoomXMLParser rxp = new RoomXMLParser();\n\t\tsaxParser.parse(xmlInput, rxp);\n\n\t\trooms = rxp.getRooms();\n\t\tnumPlayers = rxp.getPlayers();\n\t\tnumNPCs = rxp.getNPCs();\n\t\trevalidate();\n\t }\n\t catch(SAXException|ParserConfigurationException|IOException e){\n\t\te.printStackTrace();\n\t }\n\t}\n }",
"public static Document getDocument(File file, boolean namespaceAware) {\r\n Document document = null;\r\n try {\r\n // parse an XML document into a DOM tree\r\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory\r\n .newInstance();\r\n documentFactory.setNamespaceAware(namespaceAware);\r\n // documentFactory.setAttribute(\"http://java.sun.com/xml/jaxp/properties/schemaLanguage\",\r\n // \"http://www.w3.org/2001/XMLSchema\");\r\n DocumentBuilder parser = documentFactory.newDocumentBuilder();\r\n\r\n document = parser.parse(file);\r\n } catch (Exception e) {\r\n log.error(\"getDocument error: \", e);\r\n }\r\n return document;\r\n }",
"public static Petrinet loadXML(String filename) {\n\t\tIPetrinet ipn = loadXMLInteractive(filename);\n\t\tif(ipn != null) return PetrinetTransform.convert(ipn);\n\t\treturn null;\n\t}",
"@Override\n public void buildListDevices(final String fileName) {\n XMLStreamReader reader;\n String name;\n try (FileInputStream inputStream\n = new FileInputStream(new File(fileName))) {\n reader = inputFactory.createXMLStreamReader(inputStream);\n\n while (reader.hasNext()) {\n int type = reader.next();\n if (type == XMLStreamConstants.START_ELEMENT) {\n name = reader.getLocalName();\n parseSpecificDevice(name, reader);\n }\n }\n\n LOGGER.info(\"Parsing by DOM parser was successfully done!\");\n } catch (XMLStreamException ex) {\n LOGGER.error(\"StAX parsing error!\");\n } catch (FileNotFoundException ex) {\n LOGGER.error(\"File \" + fileName + \" not found!\");\n } catch (ParsingException e) {\n LOGGER.error(e.getMessage());\n } catch (IOException e) {\n LOGGER.error(\"Exception with file.\");\n }\n }",
"public XMLUserDAO() {\r\n\t\ttry {\r\n\t\t\t// Parse the XML into DOM standard.\r\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\t\t\tdocument = db.parse(new File(\"users.xml\"));\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}",
"public Element readFromEditorFile(String filePath) {\n Element element = null;\n File file = new File(filePath);\n\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(file);\n doc.getDocumentElement().normalize();\n System.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"MainEditor\");\n Node nNode = nList.item(0);\n element = (Element) nNode;\n\n } catch (Exception e) {\n element = null;\n e.printStackTrace();\n }\n\n return element;\n }",
"public static WebXml parseWebXmlFromFile(File theFile,\n EntityResolver theEntityResolver)\n throws SAXException, ParserConfigurationException, IOException\n {\n InputStream in = null;\n try\n {\n in = new FileInputStream(theFile);\n return parseWebXml(in, theEntityResolver);\n }\n finally\n {\n if (in != null)\n {\n try\n {\n in.close();\n }\n catch (IOException ioe)\n {\n // we'll pass on the original IO error, so ignore this one\n }\n }\n }\n }",
"public abstract T readFromXml(XmlPullParser parser, int version, Context context)\n throws IOException, XmlPullParserException;",
"public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException{\n\t File inputFile = new File(\"C:\\\\Users\\\\msamiull\\\\workspace\\\\jgraphx-master\\\\t.xml\");\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(inputFile);\r\n \r\n\t\tdoc.getDocumentElement().normalize();\r\n System.out.println(\"Main element :\"+ doc.getDocumentElement().getNodeName());\r\n// NodeList nodeList = doc.getElementsByTagName(\"root\");\r\n \r\n NodeList nodeList = doc.getElementsByTagName(\"iOOBN\");\r\n// NamedNodeMap attribList = doc.getAttributes();\r\n \r\n// nonRecursiveParserXML(nList, doc);\r\n\r\n ArrayList<String> tagList = new ArrayList<String>();\r\n// tagList.add(\"mxCell\");\r\n// tagList.add(\"mxGeometry\");\r\n// tagList.add(\"mxPoint\");\r\n tagList.add(\"Node\");\r\n tagList.add(\"state\");\r\n tagList.add(\"tuple\"); // purposely i raplced \"datarow\" by \"tuple\" so that my parser can consider state first before tuple/data\r\n tagList.add(\"parent\");\r\n \r\n recursiveParserXML(nodeList, tagList);\r\n\r\n }",
"org.apache.ant.common.model.Project parseXMLBuildFile(java.io.File xmlBuildFile) throws org.apache.ant.common.util.ExecutionException;",
"public void initParser(String file) {\n if (checkFileExists(file)) {\n parseXml(file);\n }\n }",
"private void loadData() throws Exception {\n List<Student> listOfStudents = new ArrayList<>();\n DocumentBuilderFactory documentBuilderFactory =\n DocumentBuilderFactory.newInstance();\n\n DocumentBuilder documentBuilder =\n documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.parse(XMLfile);\n Element root = document.getDocumentElement();\n\n NodeList nodes = root.getChildNodes();\n int len = nodes.getLength();\n for (int i = 0; i < len; i++) {\n Node studentNode = nodes.item(i);\n if (studentNode instanceof Element) {\n Student b = createStudent((Element) studentNode);\n listOfStudents.add(b);\n }\n }\n Map<Long, Student> map= new HashMap<>();\n for (Student s : listOfStudents){\n map.putIfAbsent(s.getId(),s);\n }\n this.setEntities(map);\n }",
"public static Element openXML(String filePath,String XMLFileName) {\r\n Document doc = null;\r\n try {\r\n SAXBuilder builder = new SAXBuilder();\r\n doc = builder.build(new File(Config.getWebAppPath() +\r\n \"/WEB-INF/xml/\" +filePath+\"/\"+ XMLFileName));\r\n }\r\n catch (Exception e) {\r\n System.out.println(\"XMLFile Open Failure->\" + e.getMessage());\r\n }\r\n if (doc == null) {\r\n \tSystem.out.println(\"XMLHandler----->文件不存在\");\r\n return null;\r\n }\r\n\r\n return doc.getRootElement();\r\n }",
"FormattedSmartPlaylist readFromFile(File file) throws JAXBException, FileNotFoundException;",
"public static History loadFromXML(String fileName) throws FileNotLoadedException {\n\t\ttry {\n\t\tJAXBContext context = JAXBContext.newInstance(History.class);\n\t\tUnmarshaller unmarshaller = context.createUnmarshaller();\n\t\t\n\t\t// Read from file\n\t\tHistory history = (History) unmarshaller.unmarshal(new File(fileName));\t\t\n\t\t\n\t\treturn history;\n\t\t} catch (JAXBException e) {\n\t\t\tSystem.err.println(e + \"/nFile not loaded!\");\n throw new FileNotLoadedException();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tSystem.err.println(\"File not found. Check that a file with the name '\" + fileName + \"' exists!\");\n throw new FileNotLoadedException();\n\t\t}\t\n\t}",
"public void parseDocument(File XMLInputFile) throws FunctionException {\r\n\t\t\t\r\n\t\t\tLog.log(\"XMLParser -> parseDocument started\");\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t//get a factory\r\n\t\t\t\tSAXParserFactory spf = SAXParserFactory.newInstance();\r\n\t\t\t\t//get a new instance of parser\r\n\t\t\t\tSAXParser sp = spf.newSAXParser();\r\n\t\t\t\t//parse the file and also register this class for call backs\r\n\t\t\t\tsp.parse(XMLInputFile, this);\r\n\t\t\t}catch(SAXException se) {\r\n\t\t\t\tthrow new FunctionException(\"SAXException had occurred.\\n\"+se.getMessage());\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\tthrow new FunctionException(\"ParserConfigurationException had occurred.\\n\"+pce.getMessage());\r\n\t\t\t}catch (IOException ie) {\r\n\t\t\t\tthrow new FunctionException(\"IOException had occurred.\\n\"+ie.getMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLog.log(\"XMLParser -> parseDocument completed\");\r\n\t\t}",
"public Object fromXML(File xmlFile) throws XMLUtilityException {\r\n\t\tObject beanObject = null;\r\n\t\tbeanObject = unmarshaller.fromXML(xmlFile);\r\n\t\treturn beanObject;\r\n\t}",
"private static Document parseXML(InputStream stream) throws Exception {\n DocumentBuilderFactory objDocumentBuilderFactory = null;\n DocumentBuilder objDocumentBuilder = null;\n Document doc = null;\n try {\n objDocumentBuilderFactory = DocumentBuilderFactory.newInstance();\n objDocumentBuilder = objDocumentBuilderFactory.newDocumentBuilder();\n doc = objDocumentBuilder.parse(stream);\n } catch (Exception ex) {\n throw ex;\n }\n return doc;\n }",
"private static void parse_xml() {\n\t\tUiHierarchyXmlLoader loader = new UiHierarchyXmlLoader();\n\t\tBasicTreeNode btn = loader.parseXml(\"/home/haos/haos.xml\");\n\n\t\tUtil.log(btn.getChildrenList());\n\t\tUtil.log(dump_node(btn, 0));\n\n\t\tfor (BasicTreeNode child : btn.getChildren()) {\n\t\t\tif (child instanceof UiNode) {\n\t\t\t\tsearch_for_clickables((UiNode) child);\n\t\t\t} else {\n\t\t\t\tUtil.err(child + \" is NOT UiNode\");\n\t\t\t}\n\t\t}\n\n\t\tList<Rectangle> nafs = loader.getNafNodes();\n\t\tUtil.log(nafs);\n\t}",
"private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t \tFile fXmlFile = new File(fileName);\n\t \tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t \tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t \tDocument doc = dBuilder.parse(fXmlFile);\n\t \tElement taxonomy = (Element) doc.getChildNodes().item(0);\n\n\t \tprocessTaxonomyChildren(null, taxonomy.getChildNodes());\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}",
"private void loadBoardFromXML(){\n int x = 0;\n int y = 0;\n int width = 0;\n try {\n File inputFile = new File(\"Config\\\\level1.xml\");\n DocumentBuilderFactory dbFactory\n = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(inputFile);\n doc.getDocumentElement().normalize();\n\n NodeList nList = doc.getElementsByTagName(\"line\");\n for(int n = 0; n < nList.getLength(); ++ n){\n Node nNode = nList.item(n);\n NodeList innerList = nNode.getChildNodes();\n for(int j = 0; j < innerList.getLength(); ++j){\n Node innerNode = innerList.item(j);\n if(innerNode.getTextContent().equals(\"wall\")){\n Wall wall = new Wall(x,y);\n walls.add(wall);\n } else if(innerNode.getTextContent().equals(\"empty_field\")){\n } else if(innerNode.getTextContent().equals(\"player\")){\n player = new Player(x,y);\n } else if(innerNode.getTextContent().equals(\"box\")){\n Box box = new Box(x,y);\n boxes.add(box);\n } else if(innerNode.getTextContent().equals(\"end_position\")){\n End_position end_position = new End_position(x,y);\n end_positions.add(end_position);\n }\n x+= DISTANCE;\n }\n //next row\n y += DISTANCE;\n if(width < x){\n width = x;\n }\n if(LEVEL_WIDTH < x) LEVEL_WIDTH = x;\n x = 0;\n }\n LEVEL_HEIGHT = y;\n }catch(Exception ex){\n ex.printStackTrace();\n }\n }",
"protected abstract void _fromXml_(Element in_xml) throws ConfigurationException;",
"private void parseNodes() throws ParserException{\n NodeList fileNodesList = root.getElementsByTagName(\"file\");\n NodeList nodeNodesList = root.getElementsByTagName(\"node\");\n NodeXML tmp;\n for(int i=0; i<nodeNodesList.getLength(); i++){\n tmp = getNode((Element) nodeNodesList.item(i));\n mapForAccess.put(tmp.hostname,tmp);\n if(tmp.isMaster) {\n master = tmp;\n }\n else {\n slaves.add(tmp);\n }\n }\n }"
] | [
"0.72715116",
"0.68735945",
"0.6774739",
"0.6755751",
"0.671903",
"0.671879",
"0.6665013",
"0.66283774",
"0.6611237",
"0.6494421",
"0.6488911",
"0.64634085",
"0.6462303",
"0.64164776",
"0.6397816",
"0.63884985",
"0.636907",
"0.6366248",
"0.63622415",
"0.63514435",
"0.63190836",
"0.62940985",
"0.62897056",
"0.6283638",
"0.628353",
"0.6277599",
"0.6271969",
"0.62705326",
"0.6250995",
"0.6232781",
"0.62321675",
"0.62209475",
"0.62071955",
"0.61915445",
"0.61910623",
"0.61605746",
"0.6155402",
"0.6109944",
"0.6098039",
"0.6091387",
"0.6086016",
"0.6080774",
"0.6067289",
"0.6059775",
"0.6053738",
"0.60291594",
"0.60199213",
"0.60124135",
"0.60028714",
"0.59799653",
"0.5947337",
"0.5939132",
"0.593531",
"0.59181404",
"0.5906936",
"0.5894083",
"0.58832854",
"0.5877098",
"0.58722687",
"0.5863105",
"0.58559245",
"0.58398986",
"0.5821498",
"0.58019763",
"0.57978046",
"0.57769024",
"0.57630944",
"0.5745077",
"0.5743214",
"0.5740534",
"0.5738642",
"0.5730874",
"0.5721609",
"0.5710472",
"0.5702243",
"0.5685449",
"0.56761134",
"0.5670649",
"0.5669919",
"0.5666643",
"0.5658016",
"0.5657032",
"0.564451",
"0.563647",
"0.5626582",
"0.5620209",
"0.56161463",
"0.5610146",
"0.56040686",
"0.559886",
"0.5589793",
"0.55857635",
"0.5579599",
"0.5563175",
"0.5559636",
"0.55464333",
"0.55431956",
"0.55393076",
"0.5529139",
"0.55287004"
] | 0.684054 | 2 |
Created by siva on 1/2/2017. | public interface CalApptDAO {
public List<CalApptBO> getAllCalAppts();
public CalApptBO getCalApptById(int id);
public int updateCalAppt(CalApptBO calApptBO);
public int insertCalAppt(CalApptBO calApptBO);
public int deleteCalAppt(int apptId);
} | {
"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 public void func_104112_b() {\n \n }",
"@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\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n public int describeContents() { return 0; }",
"private void m50366E() {\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\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n public void init() {\n }",
"private void init() {\n\n\t}",
"public void gored() {\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\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 getExras() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n void init() {\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\n protected void init() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n public void init() {}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"private void kk12() {\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}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void init() {\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}",
"public void mo6081a() {\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"private MetallicityUtils() {\n\t\t\n\t}",
"public void mo12628c() {\n }",
"private void strin() {\n\n\t}",
"public void mo21877s() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override public int describeContents() { return 0; }",
"public void mo12930a() {\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"protected void mo6255a() {\n }"
] | [
"0.59251577",
"0.5814574",
"0.57968456",
"0.57516295",
"0.57476014",
"0.56830525",
"0.568219",
"0.568219",
"0.56716543",
"0.55654746",
"0.55653554",
"0.55596966",
"0.55516696",
"0.55220675",
"0.55192184",
"0.55098283",
"0.5506408",
"0.5492252",
"0.5476638",
"0.54763925",
"0.54753846",
"0.54717594",
"0.54717594",
"0.54717594",
"0.54717594",
"0.54717594",
"0.5470644",
"0.5467548",
"0.5456386",
"0.5447913",
"0.5444515",
"0.54411674",
"0.5440676",
"0.5415735",
"0.5415102",
"0.54125607",
"0.5397999",
"0.5397921",
"0.5397921",
"0.53959924",
"0.53959924",
"0.53959924",
"0.53959924",
"0.53959924",
"0.53959924",
"0.5395099",
"0.53804195",
"0.53758526",
"0.5374754",
"0.5374627",
"0.5368454",
"0.53640383",
"0.5362852",
"0.53517115",
"0.53479904",
"0.53479904",
"0.53479904",
"0.53461444",
"0.5345455",
"0.5345455",
"0.5345455",
"0.533606",
"0.53194773",
"0.53165406",
"0.53165406",
"0.53165406",
"0.53165406",
"0.53165406",
"0.53165406",
"0.53165406",
"0.53148943",
"0.53148943",
"0.53148943",
"0.5303663",
"0.5303663",
"0.52912045",
"0.52883613",
"0.5275705",
"0.52747834",
"0.52747834",
"0.52711207",
"0.5269311",
"0.52682495",
"0.5265734",
"0.525888",
"0.5251925",
"0.5251359",
"0.5247065",
"0.52449906",
"0.52426624",
"0.5237961",
"0.5230079",
"0.52295625",
"0.5223357",
"0.52223784",
"0.5221094",
"0.52061725",
"0.52032995",
"0.5199994",
"0.5199994",
"0.5198342"
] | 0.0 | -1 |
Adds the given model element to the collection. | void addModelElement(EObject modelElement); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void add(E element) {\n\t\t// your code here\n\t}",
"public boolean add(Object element);",
"void add(Object element);",
"public synchronized void addElement(WModelObject object)\n\t{\n\t\tm_elements.addElement(object);\n\t}",
"public void addElement(Object obj);",
"@Override\r\n\tpublic void add(T element) {\n\t\tthis._list.add(element);\r\n\t}",
"public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }",
"public void add(T element);",
"public void add(T element);",
"public void add (T element);",
"void add( ModelObject modelObject, Long id );",
"public void add(Object obj) { \n\t\tcollection.addElement(obj);\n\t}",
"public void addElement(Expression element){\n\t\telements.add(element);\n\t}",
"public abstract void add(T element);",
"public abstract void add(T element);",
"@Override\n\tpublic boolean add(T element) {\n\t\titemProbs_.put(element, 1d);\n\t\telementArray_ = null;\n\t\tklSize_ = 0;\n\t\treturn true;\n\t}",
"public void add(Object value) {\n verifyModifiable();\n\n elements.add(value);\n }",
"public boolean add(Element element) {\n if (addNoNotify(element)) {\n setChanged();\n Message message = Message.makeAdded(element);\n notifyObservers(message);\n return true;\n } else {\n return false;\n }\n\n }",
"public void addExisting(SelectableGraphElement element)\n {\n elements.add(element);\n }",
"void add(T element);",
"void add(T element);",
"@Override\n public void add(T element) {\n add(size(), element);\n }",
"Form addElement(Element element);",
"public void addToModel(Object object, StsModel model)\n\t{\n\t}",
"public void addElement(String itemText, T itemModel) {\n\t\tthis.modelList.add(itemModel);\n\t\tsuper.addItem(itemText);\n\t}",
"void add(int index, Object element);",
"public void addToRatebooks(entity.ImpactTestingRateBook element);",
"public void add(SVGElementModel parentModel, SVGElementModel model) {\n \t\tinsertBefore(parentModel, model, null);\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}",
"void addToModel(Model model, List<Event> eventsToAdd) throws Exception {\n for (Event p: eventsToAdd) {\n model.addEvent(p);\n }\n }",
"public void add(X elem);",
"public ElementsBag add(HTMLElement element) {\n iterable.elements.push(element);\n return that();\n }",
"@Override\n\tpublic Integer addModel(PhotoTag model) throws BaseException {\n\t\treturn this.insert(\"Mapper.PhotoTag.insert\", model);\n\t}",
"public void add(int index, E element);",
"public void addElement(TLProperty element);",
"public void addElement(T itemModel) {\n\t\tthis.addElement(adapter.getListBoxDescription(itemModel), itemModel);\n\t}",
"public void add(int element);",
"public void addElement(Integer elem){\n\t\tlist.add(elem);\n\t}",
"public void addElement(Integer e){\n list.add(e);\n }",
"public void add(E item);",
"public static <E> boolean addNotNull(Collection<E> collection, E element) {\n\t\tif (element == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn collection.add(element);\n\t}",
"public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }",
"public void add(T element) {\r\n if (element == null) {\r\n throw new IllegalArgumentException(); \r\n } \r\n if (size == elements.length) { \r\n resize(elements.length * 2); \r\n }\r\n elements[size()] = element; \r\n size++; \r\n }",
"public void addElement(Replicated obj)\r\n\t{\n\t\tinsert(obj, seq.size());\r\n\t}",
"public abstract void add(String element) throws RemoteException;",
"public void addElement(ThingNode element)\n\t{\n\t\tsuper.addElement(element);\n\t\telements.add(element);\n\t}",
"void addElement(FormElement elt);",
"public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }",
"public abstract boolean addDataTo(Element element);",
"void add(E item);",
"void add(E item);",
"void add(E item);",
"public void addItem(Object item) {\r\n\t\tlistModel.addElement(item);\r\n\t}",
"public void addItem(View v){\n //Creates a new IngredientModel, adds it to the List<IngredientModel>\n IngredientModel ingredientModel = new IngredientModel(ingredientEditText.getText().toString());\n ingredientModelList.add(ingredientModel);\n //Notifies the adapter the data set has changed in order to update the recyclerView\n ingredientSearchAdapter.notifyDataSetChanged();\n }",
"public void push(E element) {\r\n items.add(0, element);\r\n }",
"public void addElement(final FeatureElement newElement)\n\t{\n\t\tfeatureElements.add(newElement);\n\t}",
"public void push(Object element) {\r\n\t\tal.add(element, al.listSize);\r\n\t}",
"public TempList<T> add(T elem) {\n chk();\n list.add(elem);\n return this;\n }",
"boolean add(T element);",
"boolean add(T element);",
"public void add() {\n }",
"public void add(String element) {\n\t\tslist.add(element);\n\t}",
"@Override\n public void add(Object o) {\n gameCollection.addElement(o);\n }",
"public abstract void add(T element, int index);",
"public void addElement(int index, TLProperty element);",
"@Override\r\n\tpublic void addElement(VOI o) {\r\n add(o); // add the voi to the vector\r\n }",
"@Override\n public boolean add(T e) {\n if (elements.add(e)) {\n ordered.add(e);\n return true;\n } else {\n return false;\n }\n }",
"public void add(E entity);",
"public void addPetModel(PetModel param) {\n if (localPetModel == null) {\n localPetModel = new PetModel[] { };\n }\n\n //update the setting tracker\n localPetModelTracker = true;\n\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localPetModel);\n list.add(param);\n this.localPetModel = (PetModel[]) list.toArray(new PetModel[list.size()]);\n }",
"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 void add(Object o);",
"void add(int index, T element);",
"void add(int index, T element);",
"public void add(E e) {\n\t\tentities.add(e);\n\t}",
"@Override\n\tpublic void add(Object o) {\n\t}",
"@Override\n public abstract void addToXmlElement(Element element);",
"public void add(E element) {\n\t\tif (element == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\n\t\tif (size < elements.length) {\n\t\t\telements[size] = element;\n\t\t\tsize++;\n\t\t} else {\n\t\t\t// grow array\n\t\t\tint currentSize = elements.length;\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tE[] temp = (E[]) new Object[currentSize * 2];\n\t\t\tfor (int i = 0; i < size(); i++) {\n\t\t\t\ttemp[i] = elements[i];\n\t\t\t}\n\t\t\telements = temp;\n\t\t\telements[size] = element;\n\t\t\tsize++;\n\t\t}\n\n\t}",
"public void addElement(Object ob) {\r\n\t\tif (ob == null) {\r\n\t\t\telements.add(TObject.nullVal());\r\n\t\t} else if (ob instanceof TObject || ob instanceof ParameterSubstitution || ob instanceof Variable || ob instanceof FunctionDef || ob instanceof Operator || ob instanceof StatementTree || ob instanceof TableSelectExpression) {\r\n\t\t\telements.add(ob);\r\n\t\t} else {\r\n\t\t\tthrow new Error(\"Unknown element type added to expression: \" + ob.getClass());\r\n\t\t}\r\n\t}",
"public void add(String element){\n\t\tif(!contains(element)){\n\t\t\tlist.addLast(element);\n\t\t}\n\t}",
"public void add(T element){\r\n if (element == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n \r\n // If array is full, double the size\r\n if (size == elements.length) {\r\n resize(elements.length * 2);\r\n }\r\n \r\n elements[size] = element;\r\n size++;\r\n }",
"public void add(SelectableGraphElement element)\n {\n if (!element.isSelected()) {\n element.setSelected(true);\n elements.add(element);\n }\n }",
"public void validAdd(String element){\n\t\tlist.addLast(element);\n\t}",
"public void add(Object e)\n {\n if(numElements == maxElements)\n doubleCapacity();\n \n // Add element\n if(!contains(e))\n elements[numElements++] = e;\n }",
"@Override\n public boolean add(final T element) {\n if (this.size > this.data.length - 1) {\n this.doubleArraySizeBy(2);\n }\n\n this.data[this.size++] = element;\n return true;\n }",
"@Override\n\tpublic void add() {\n\t\t\n\t}",
"void addToModel(Model model, int numGenerated) throws Exception {\n addToModel(model, generateEventList(numGenerated));\n }",
"public void addModel(SimpleModel model) {\n Preconditions.checkState(!registered);\n Preconditions.checkNotNull(model.getFullName());\n Preconditions.checkArgument(!models.containsKey(Ascii.toLowerCase(model.getFullName())));\n Preconditions.checkArgument(!modelsById.containsKey(model.getId()));\n String fullName = model.getFullName();\n models.put(Ascii.toLowerCase(fullName), model);\n modelsById.put(model.getId(), model);\n }",
"public void push(T element) {\n\t\t//add the new element\n\t\telements.add(element);\n\n\t}",
"public void add() {\n\n }",
"E add(E element) {\n\t\t\tshort index = (short)((element.hashCode() >> 24) & 0x000000FF);\n\t\t\tE obj = nodes[index].add(this, element.hashCode(), element, (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}",
"@Override\n public boolean add(E e) {\n notNull(e);\n if (size >= elementData.length) {\n int newCapacity = (elementData.length << 1);\n elementData = Arrays.copyOf(elementData, newCapacity);\n }\n elementData[size++] = e;\n return true;\n }",
"@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}",
"public boolean add(T element) {\n if (this.position >= this.container.length) {\n this.enlargeCapacity();\n }\n this.container[this.position++] = element;\n return true;\n }",
"public void add() {\n\t\t\n\t}",
"public void add(T element, int pos);",
"void append(E element);",
"@Override\n <T> void add(T object);",
"@Override\n\tpublic FileModel add(FileModel c) {\n\t\treturn fm.save(c);\n\t}",
"public void add(Object element) {\n queue.put( new DelayedElement( element ) );\n }",
"@Override\n public boolean add(T e) {\n if (numElements == maxElements) {\n doubleCapacity();\n }\n\n // Add element\n elements[numElements++] = e;\n return true;\n }"
] | [
"0.7105732",
"0.70143634",
"0.69426817",
"0.68226373",
"0.6588444",
"0.65755284",
"0.6562389",
"0.6525841",
"0.6525841",
"0.65045077",
"0.6487551",
"0.64591336",
"0.6443752",
"0.63616645",
"0.63616645",
"0.62611425",
"0.62439495",
"0.62259984",
"0.6218746",
"0.62127656",
"0.62127656",
"0.6209835",
"0.6159507",
"0.615349",
"0.60804373",
"0.60783875",
"0.6073141",
"0.60630375",
"0.604424",
"0.6020447",
"0.6019057",
"0.60168254",
"0.6001389",
"0.6000381",
"0.5980465",
"0.5972852",
"0.59596425",
"0.595454",
"0.59195304",
"0.59148216",
"0.5908754",
"0.5903664",
"0.5899289",
"0.586459",
"0.584782",
"0.58443135",
"0.5823129",
"0.5800893",
"0.57830596",
"0.578256",
"0.578256",
"0.578256",
"0.57736784",
"0.5756605",
"0.57558274",
"0.57526463",
"0.5748671",
"0.57476485",
"0.57475394",
"0.57475394",
"0.5742043",
"0.5733516",
"0.57242763",
"0.5721136",
"0.57182765",
"0.5715914",
"0.570944",
"0.5707759",
"0.57065743",
"0.56957835",
"0.56930596",
"0.5680822",
"0.5680822",
"0.5677928",
"0.5677155",
"0.5676452",
"0.567188",
"0.5670641",
"0.56686103",
"0.56590503",
"0.5647354",
"0.56413996",
"0.56396323",
"0.56378937",
"0.5635396",
"0.56313634",
"0.56309044",
"0.562359",
"0.56224436",
"0.56205904",
"0.56158906",
"0.5615802",
"0.5612053",
"0.56069696",
"0.5592317",
"0.55918926",
"0.55878484",
"0.5564072",
"0.5552797",
"0.5548473"
] | 0.7818147 | 0 |
Checks whether a given model element is contained in the collection. | boolean containsInstance(EObject modelElement); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean contains(E element) {\r\n return items.contains(element);\r\n }",
"public boolean contains(Object elem);",
"public boolean contains(E element);",
"public boolean contains(WModelObject object)\n\t{\n\t\treturn m_elements.contains(object);\n\t}",
"public boolean contains(SVGElement element) {\n \t\treturn elementToModel.containsKey(element);\n \t}",
"@Override\r\n\tpublic boolean contains(T element) {\n\t\treturn false;\r\n\t}",
"public boolean contains(Object element) {\n\n\t\tif (element == null) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"ArrayList cannot contain a null element.\");\n\t\t}\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tObject object = this.storedObjects[i];\n\t\t\tif (object.equals(element)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean contains(T element);",
"public boolean contains(T elem) {\n return list.contains(elem);\n }",
"@Override\n public boolean contains(final Object element) {\n return this.lastIndexOf(element) != -1;\n }",
"public boolean contains(ElementType element){\n for(ElementType e:this){\n if(e.equals(element)){\n return true;\n }\n }\n return false;\n }",
"public boolean contains(E elem) {\n return indexOf(elem) != -1;\n }",
"boolean contains(T element);",
"public boolean contains(E obj){\n\t\tif (obj == null)\n\t\t\tthrow new IllegalArgumentException(\"The given item is null.\");\n\t\tfor(E val : this) {\n\t\t\tif(val.equals(obj))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean contains(E elem) {\n Iterator<E> inorder = getInorderIterator();\n\n while (inorder.hasNext()) {\n if (inorder.next().equals(elem)) {\n return true;\n }\n }\n return false;\n }",
"public boolean contains(Object o) {\n\n Object value = elements.get(o);\n return value != null;\n }",
"public boolean contains(E item){\n\t\treturn (find(item) != null) ? true : false;\n\t}",
"public boolean contains(E value);",
"public abstract boolean contains(Object item);",
"public abstract boolean contains(E e);",
"public boolean contains(E item) {\r\n\t\treturn (find(item) != null);\r\n\t}",
"public boolean contains(Object o);",
"public boolean contains(Object o);",
"public boolean contains(E element) {\n // TODO: YOUR CODE HERE\n return backwards.containsKey(element);\n }",
"public boolean hasElement(String name) {\n return elements.has(name);\n }",
"boolean hasElement();",
"public boolean containsAll(Collection coll) {\n\n return elements.keySet().containsAll(coll);\n }",
"public boolean contains(E e) {\n\t /*\n\t * Add code here\n\t */\n\t\t for(int c=0;c<num_elements;c++){\n\t\t\t if(elements[c]==e){\n\t\t\t\t return true;\n\t\t\t }\n\t\t }\n\t return false;\n\t }",
"boolean contains();",
"public static boolean checkElement(Element element) \n\t{\n\t\treturn LIST_OF_ELEMENT.containsValue(element);\n\t}",
"public void contains(@Nullable Object element) {\n if (!Iterables.contains(getSubject(), element)) {\n failWithRawMessage(\"%s should have contained <%s>\", getDisplaySubject(), element);\n }\n }",
"@Override\n\tpublic boolean contains(T targetElement) {\n\t\t\n\t\treturn findAgain(targetElement, root);\n\t}",
"@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}",
"@Override\n\tpublic boolean contains(E e) {\n\t\treturn false;\n\t}",
"public boolean contains(String searchVal) {\n return collection.contains(searchVal);\n }",
"@Override\n\tpublic boolean contains(T elem) {\n\t\tfor (int i = 0; i < valCount; ++i) {\n\t\t\tif (values[i].equals(elem)) { // if current value is same\n\t\t\t\treturn true;\n\t\t\t} else if (comp.compare(values[i],elem) < 0) { // finds the set of children that can possibly contain elem\n\t\t\t\treturn children[i].contains(elem);\n\t\t\t}\n\t\t}\n\t\tif (childCount > 1) { // check final set of children\n\t\t\treturn children[valCount - 1].contains(elem);\n\t\t}\n\t\treturn false;\n\t}",
"boolean hasContains();",
"Boolean contains(X x);",
"@Override\n public final boolean contains(final Object o) {\n return Collections.exists(getComponents(),\n new Assertion<PriorityList<? extends _PriorityElement_>>() {\n public boolean isTrueFor(PriorityList<? extends _PriorityElement_> s) {\n return s.contains(o);\n }\n });\n }",
"public boolean contains(final Object value) {\n\t\tboolean found = false;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tif (elements[i].equals(value)) {\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn found;\n\t}",
"@Override\n @SuppressWarnings(\"unchecked\")\n public boolean contains(Object o) {\n return search((E) o) != null;\n }",
"boolean contains(Object o);",
"boolean contains(Object o);",
"boolean contains(Object o);",
"protected boolean isValid() {\n return COLLECTION.getList().contains(this);\n }",
"boolean contains(String element);",
"public boolean contains( AnyType x )\r\n\t{\r\n\t\treturn contains( x, root );\r\n\t}",
"boolean isElement(Object object);",
"public boolean contains(T anEntry) {\n\t\tfor(int i=0; i<numberOfElements; i++) {\n\t\t\tif(list[i].equals(anEntry)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean containsElement(int i, T obj);",
"public boolean contains(E item) {\n\n return bstContains(item, root);\n }",
"public boolean contains(T obj) {\r\n\t\tlogger.trace(\"Enter contains\");\r\n\t\tlogger.trace(\"Exit contains\");\r\n\t\treturn data.contains(obj);\r\n\t}",
"public boolean contains(E item) {\n \t\n \tif(item == null) {\n \t\tthrow new IllegalArgumentException(\"Invalid parameter!\");\n \t}\n \t\n \t// create iterator instance to go thru set\n \tIterator<E> iterateSet = this.iterator(); \t\n \twhile(iterateSet.hasNext()) {\n \t\t// searches for a target item\n \t\tif( iterateSet.next().equals(item)) {\n \t\t\treturn true;\n \t\t}\n \t}\n \t\n \treturn false;\n }",
"boolean contains(E element) {\n\t\t\tshort index = (short)((element.hashCode() >> 24) & 0x000000FF);\n\t\t\treturn nodes[index].contains(element.hashCode(), (byte) 1);\n\t\t}",
"@Override\r\n\t\tpublic boolean contains(E value) {\n\t\t\treturn value == null;\r\n\t\t}",
"public boolean contains(T item) {\n synchronized(this) {\n return _treeSet.contains(item);\n }\n }",
"public boolean contains (E val) {\n return containsRecursive(root, val);\n }",
"@Override\n public boolean containsAll(final Collection<?> collection) {\n this.checkCollectionNotNull(collection);\n final Iterator<?> iterator = collection.iterator();\n\n while (iterator.hasNext()) {\n if (!this.contains(iterator.next())) {\n return false;\n }\n }\n\n return true;\n }",
"public boolean containsItem(T itemModel) {\n\t\tif (itemModel == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tif (searchComparator != null) {\n\t\t\t\tthis.getItemIndex(itemModel, searchComparator);\n\t\t\t} else {\n\t\t\t\tthis.getItemIndex(itemModel);\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean containsElement(String elementName) {\r\n for (int i = 0; i < eventFields.size(); i++) {\r\n EventDataEntry currentEntry = eventFields.get(i);\r\n if (currentEntry.getColumnName().equalsIgnoreCase(elementName)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean contains(Type item);",
"public boolean contains(Course c) {\n return courseList.contains(c); \n }",
"@Override\n\t\tpublic boolean contains(Object o) {\n\t\t\treturn false;\n\t\t}",
"@Override\r\n public boolean contains(E target) {\r\n if(find(target) != null) return true;\r\n return false;\r\n }",
"public boolean contains(T value) { return root == null ? false : root.contains(value); }",
"public boolean contains(int elem){\n return itemArray[count-1] == elem;\n }",
"public boolean contains(T element) {\n\t\tif (head == null)\n\t\t\treturn false;\n\t\tNode<T> curNode = head;\n\t\twhile (curNode != null) {\n\t\t\tif (curNode.value.equals(element))\n\t\t\t\treturn true;\n\t\t\tcurNode = curNode.next;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean contains (Object item){\n\t\t// compute the hash table index\n\t\t\t\tint index = (item.hashCode() & Integer.MAX_VALUE) % table.length;\n\n\t\t\t\t// find the item and return false if item is in the ArrayList\n\t\t\t\tif (table[index].contains((T)item))\n\t\t\t\t\treturn true;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t}",
"public boolean contains(T x) {\n\t\tEntry<T> t = getSplay(find(x));\n\t\tif(t != null && t.element == x) {\n\t\t\tsplay(t);\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean contains(T instance);",
"public boolean contains(AnyType x) {\r\n\t\treturn contains(x, root);\r\n\t}",
"@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}",
"@Test\n public void testContains_Contain() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n instance.add(3);\n\n boolean expResult = true;\n boolean result = instance.contains(1);\n assertEquals(expResult, result);\n }",
"boolean containsAll(Collection<?> c);",
"@Test\r\n public void testContains() {\r\n Grocery entry1 = new Grocery(\"Mayo\", \"Dressing / Mayo\", 1, 2.99f, 1);\r\n\r\n // Test element does not exist case\r\n assertFalse(instance.contains(entry1));\r\n\r\n instance.add(entry1);\r\n\r\n // Test element exists case\r\n assertTrue(instance.contains(entry1));\r\n }",
"public boolean evaluate(T obj) {\n\t\treturn set.contains(obj);\n\t}",
"public synchronized boolean contains(\n Object oObject)\n {\n if (oObject == null || !this.m_GenericClass.isInstance(oObject))\n {\n return false;\n }\n\n // Assert: object != null && object instanceOf E\n E element = this.m_GenericClass.cast(oObject);\n\n return findNode(element).m_NodePointer != null;\n }",
"public boolean contains ( Object o ){\n\n \tboolean doesContain = false;\n\n \tfor(int i = 0; i < list.size(); i++){\n\n if(list.get(i).equals(o)){\n doesContain = true;\n }\n\n }\n\n \treturn doesContain;\n\n }",
"public boolean contains(T val);",
"public boolean contains(int elemToBeSearched)\n\t{\n\t\tSinglyLinkedListNode nextNode = head;\n\t\tSinglyLinkedListNode prevNode = null;\n\t\twhile(head != null)\n\t\t{\n\t\t\tif(nextNode.getData() == elemToBeSearched)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprevNode = nextNode;\n\t\t\t\tnextNode = prevNode.getNext();\n\t\t\t\tif(nextNode == null)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean doesContain(T t) {\n if (Arrays.asList(a).contains(t)) {\n return true;\n } else {\n return false;\n }\n }",
"@Override\n public boolean contains(Object o) {\n return contains(root, o);\n }",
"boolean contains(T o);",
"@Test\r\n public void testContains() {\r\n System.out.println(\"contains\");\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 = true;\r\n boolean result = instance.contains(o);\r\n assertEquals(expResult, result);\r\n \r\n }",
"public boolean contains(Object value)\r\n {\r\n return contains(root, value);\r\n }",
"public boolean contains(int element) {\n for(Integer i:data) {\n if(i!=null && i==element) {\n return true;\n }\n }\n return false;\n /*for(int i=0;i<data.length;i++) {\n if(data[i]==element) {\n return true;\n }\n }\n return false;*/\n }",
"boolean\tcontains(Object o);",
"public boolean containsObject(T obj);",
"public boolean containsObject(T obj);",
"public final boolean contains(final E entity) {\n return getJpaTemplate().contains(entity);\n }",
"public boolean contains(SeqItemset set)\n\t{\n\t\tif (m_size<set.m_size) return false;\n\t\tint ind = 0;\n\t\tint i = 0;\n\t\twhile ((i<set.m_size) && (-1!=ind))\n\t\t{\n\t\t\tind = indexOf(set.elementIdAt(i));\n\t\t\ti++;\n\t\t}\n\t\tif (-1==ind) return false;\n\t\telse return true;\n\t}",
"public boolean contains(Object value) {\n\t\treturn false;\n\t}",
"public boolean isContained(T aData){\r\n return this.findNodeWith(aData) != null;\r\n }",
"public boolean contains (E item)\n {\n int index = indexOf(item);\n if (index != -1)\n return true; // item found\n else\n return false; // item not found\n }",
"public boolean has(String itemName);",
"public boolean contains(T target);",
"public boolean contains(CParamImpl param);",
"@Override\n public boolean contains(Object o) {\n return indexOf(o) >= 0;\n }"
] | [
"0.74375343",
"0.7354667",
"0.73255044",
"0.7236172",
"0.7009629",
"0.70009637",
"0.69965285",
"0.6961159",
"0.6896237",
"0.68439466",
"0.6805967",
"0.6785213",
"0.66583025",
"0.66288716",
"0.6545925",
"0.6532002",
"0.64975494",
"0.64516425",
"0.6438266",
"0.6437224",
"0.64098996",
"0.63852555",
"0.63852555",
"0.6379687",
"0.6366288",
"0.6334633",
"0.6312002",
"0.63049114",
"0.63046396",
"0.62994355",
"0.6286151",
"0.6279078",
"0.6275073",
"0.62645197",
"0.6253537",
"0.6232882",
"0.6222391",
"0.61901385",
"0.6178922",
"0.61770666",
"0.615729",
"0.61523575",
"0.61523575",
"0.61523575",
"0.6149011",
"0.61186945",
"0.60948986",
"0.6094131",
"0.6072292",
"0.6065713",
"0.60603374",
"0.6053738",
"0.60468346",
"0.6036623",
"0.6023544",
"0.6019766",
"0.6014987",
"0.60102516",
"0.60066515",
"0.600124",
"0.59932745",
"0.5968686",
"0.5968299",
"0.59667397",
"0.5962152",
"0.5957682",
"0.59539115",
"0.59506404",
"0.59501773",
"0.59457237",
"0.5941943",
"0.5934877",
"0.5934877",
"0.5934877",
"0.5929232",
"0.5926978",
"0.5913985",
"0.5893542",
"0.5886645",
"0.5886134",
"0.58821577",
"0.5872639",
"0.5869503",
"0.58664644",
"0.5863771",
"0.5862726",
"0.58502895",
"0.58501136",
"0.58450115",
"0.58361495",
"0.58361495",
"0.5827847",
"0.5823574",
"0.5818551",
"0.5814574",
"0.58106965",
"0.58092314",
"0.5806695",
"0.57998085",
"0.5787301"
] | 0.7175666 | 4 |
Returns all directly contained model element of the collection, i.e. a hierarchical representation of the model elements. | Collection<EObject> getModelElements(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Set<EObject> getAllModelElements();",
"Collection<V> getAllElements();",
"Collection<T> getSimpleModelObjects();",
"public Collection<T> dump() {\n\t\treturn internalElements();\n\t}",
"public Collection findAll() {\n\t\treturn null;\r\n\t}",
"Collection<Element> getElementTreeFromPlainList() {\n Map<String, Element> values = new HashMap<String, Element>();\n for (String[] s : data) {\n values.put(s[0], new Element(s[2], s[1]));\n }\n\n // creates a result list\n Collection<Element> result = new ArrayList<Element>();\n\n // for each element in the result list that has a parent, put it into it\n // otherwise it is added to the result list\n for (Element e : values.values()) {\n if (e.parent != null) {\n values.get(e.parent).getChildren().add(e);\n } else {\n result.add(e);\n }\n }\n\n return result;\n }",
"Collection<Element> getElementTreeFromPlainList() {\n Map<String, Element> values = new HashMap<String, Element>();\n for (String[] s : data) {\n values.put(s[0], new Element(s[2], s[1]));\n }\n\n // creates a result list\n Collection<Element> result = new ArrayList<Element>();\n\n // for each element in the result list that has a parent, put it into it\n // otherwise it is added to the result list\n for (Element e : values.values()) {\n if (e.parent != null) {\n values.get(e.parent).getChildren().add(e);\n } else {\n result.add(e);\n }\n }\n\n return result;\n }",
"public List<Subset> getElements() {\n\t\treturn subSetList;\n\t}",
"@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}",
"@Override\n\tpublic AllegationsElement Elements() {\n\t\treturn new AllegationsElement(driver);\n\t}",
"public Collection<CustomHudElement> getCustomElements();",
"@Override\n\tpublic T getRootElements() {\n\t\treturn null;\n\t}",
"synchronized Collection getCreatedElements() {\n Collection col = new ArrayList(nestedElements.size());\n Iterator it = nestedElements.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry entry = (Map.Entry)it.next();\n if (entry.getValue() != null) {\n col.add(entry.getValue());\n }\n }\n return col;\n }",
"public List<MenuElement> getElements()\n {\n return elements;\n }",
"ILitePackCollection getRoot();",
"@Override\n public List<IExpression> getElements() {\n return elements;\n }",
"public List allElements() {\r\n\t\tArrayList elems = new ArrayList();\r\n\t\tfor (int i = 0; i < elements.size(); ++i) {\r\n\t\t\tObject ob = elements.get(i);\r\n\t\t\tif (ob instanceof Operator) {\r\n\t\t\t} else if (ob instanceof FunctionDef) {\r\n\t\t\t\tExpression[] params = ((FunctionDef) ob).getParameters();\r\n\t\t\t\tfor (int n = 0; n < params.length; ++n) {\r\n\t\t\t\t\telems.addAll(params[n].allElements());\r\n\t\t\t\t}\r\n\t\t\t} else if (ob instanceof TObject) {\r\n\t\t\t\tTObject tob = (TObject) ob;\r\n\t\t\t\tif (tob.getTType() instanceof TArrayType) {\r\n\t\t\t\t\tExpression[] exp_list = (Expression[]) tob.getObject();\r\n\t\t\t\t\tfor (int n = 0; n < exp_list.length; ++n) {\r\n\t\t\t\t\t\telems.addAll(exp_list[n].allElements());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\telems.add(ob);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\telems.add(ob);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn elems;\r\n\t}",
"public Collection getSpecialisation()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{\n \t\tCollection col = new ArrayList();\n \t\tcol = instance.getSpecialization(this.refMofId());\n \t\t\n \t\treturn col; \t\t\n \t}\n \n \treturn ((Uml15Package)this.refOutermostPackage()).getCore().getAParentSpecialization().getSpecialization(this);\n }",
"private Vector<ResourceLocation> getElements() {\n return getRef().elements;\n }",
"java.lang.String getCollection();",
"@Override\r\n public List<Element> findElements()\r\n {\n return null;\r\n }",
"public Enumeration elements()\n {\n return element.elements();\n }",
"public List<Component> getAllTree() {\n\t\tList<Component> ret = new ArrayList<>();\n\t\tret.add(this);\n\t\tfor (Component c : getChilds()) {\n\t\t\tList<Component> childs = c.getAllTree();\n\t\t\t// retire les doublons\n\t\t\tfor (Component c1 : childs) {\n\t\t\t\tif (!ret.contains(c1)) {\n\t\t\t\t\tret.add(c1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"private Object[] elements() {\n return elements.toArray();\n }",
"public Collection getGeneralization()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{\n \t\tCollection col = new ArrayList();\n \t\tcol = instance.getGeneralization(this.refMofId());\n \t\t\n \t\treturn col; \t\t\n \t}\n \n \treturn super_getGeneralization();\n }",
"public Collection<ChildType> getChildren();",
"public ObjectList<DynamicModelPart> getChildren() {\n return this.children;\n }",
"public HashSet getElements() {\n\treturn elements;\n }",
"public Object[] getElements() {\r\n\t\treturn elements.clone();\r\n\t}",
"@Override\n public List<T> findAll() {\n return manager\n .createQuery(\"from \" + elementClass.getSimpleName() + \" e\", elementClass)\n .getResultList();\n }",
"@Override\n\tpublic List<Object> getCollection() {\n\t\treturn null;\n\t}",
"Iterable<? extends XomNode> elements();",
"public ArrayList<Elezione> caricaElezioni() {\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Elezione> map = db.getTreeMap(\"elezione\");\n\t\t\tArrayList<Elezione> elezioni = new ArrayList<Elezione>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\telezioni.add(map.get(key));\n\t\t\t}\n\t\t\treturn elezioni;\n\t\t}",
"public SVGElementModel getRoot() {\n \t\treturn store.getRootItems().get(0);\n \t}",
"@Override\n\tpublic String getCollection() {\n\t\treturn null;\n\t}",
"String getCollection();",
"public Collection<Item> findAll() {\n\t\tCollection<Item> Items;\n\t\tItems = this.itemRepository.findAll();\n\n\t\treturn Items;\n\t}",
"@Override\n\tpublic ArrayList<Representation> getALL() {\n\t\treturn null;\n\t}",
"public Collection<V> getAllElements() {\n\t\treturn cacheMap.values();\n\t}",
"public Collection getCollection() {\n return mCollection;\n }",
"public List<Expression> getElements() {\n\t\treturn elements;\n\t}",
"public FeatureCollection<SimpleFeatureType,SimpleFeature> getCollection() {\n return (SimpleFeatureCollection) collection;\n }",
"public List<Node> getRootElements() {\n List<Node> subRoots = tree.find(\"s\", \"neb\", \"objc\");\n List<Node> directRoots = this.tree.getChildren().stream()\n .filter(x -> !x.getPosGroup().equals(\"$.\") && !x.getPosGroup().equals(\"$,\") && !x.getPosGroup().equals(\"$(\"))\n .collect(Collectors.toList());\n\n subRoots.addAll(directRoots);\n\n return subRoots;\n }",
"E[] getAll();",
"@XmlTransient\n Collection<Tag> getTagCollection();",
"public java.util.ArrayList<Species> getAllSpecies() {\n ArrayList<Species> answer = new ArrayList<Species>();\n getAllDescendantSpecies(overallRoot, answer);\n return answer;\n \n }",
"@XmlTransient\n Collection<Autore> getAutoreCollection();",
"public Layer_ElementsCollection()\n\t{\n\t\tthis.elements = new ArrayList<GIS_element>();\n\t}",
"private List<E> snapshot() {\n\t\tList<E> list = Lists.newArrayListWithExpectedSize(size());\n\t\tfor (Multiset.Entry<E> entry : entrySet()) {\n\t\t\tE element = entry.getElement();\n\t\t\tfor (int i = entry.getCount(); i > 0; i--) {\n\t\t\t\tlist.add(element);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"public Collection getListaNominalEleicaoVotos(){\n return this.eleicaoDB.getListaNominalEleicaoVotos();\n }",
"@Override\n public List<E> allItems() {\n return new ArrayList(graphNodes.keySet());\n }",
"public Collection<BaseGenerator> \n getChildren() \n {\n return Collections.unmodifiableCollection(pChildren.values());\n }",
"Collection<? extends Object> getFullHadith();",
"public synchronized Enumeration elements()\n\t{\n\t\treturn m_elements.elements();\n\t}",
"@XmlTransient\n Collection<Libro> getLibroCollection1();",
"ArrayList<E> getAll();",
"public synchronized Collection getElementos() {\n return elemento.values();\n }",
"public List getChildren(){\n List result = new ArrayList();\n Iterator it = getSpecialisation().iterator();\n while(it.hasNext()){\n Generalization g = (Generalization)it.next(); \n result.add(g.getChild());\n //System.out.println(\" \"+getName()+\" Parent:\" +g.getParent().getName());\n }\n return result;\n }",
"public java.lang.String getCollection() {\n return instance.getCollection();\n }",
"public SeleniumQueryObject children() {\n\t\treturn ChildrenFunction.children(this, elements);\n\t}",
"abstract public Collection<? extends IZipNode> getChildren();",
"public List<NodoRuta> getElementos() { \n \n return new ArrayList<NodoRuta>(nodos);\n }",
"public final Object [] getVisibleElements() {\r\n\t\tfinal List<XElementNode> roots = new ArrayList<XElementNode>();\t\t\t\t\r\n\t\tStringBuffer paths = new StringBuffer();\r\n\r\n\t\t//if right side is empty, we take selection of left side:\r\n\t\tif(targetHierarchyTree.isEmpty()) {\r\n//\t\t\tfinal Map <FastMSTreeItem, XElementNode> parents = new HashMap<FastMSTreeItem, XElementNode>();\r\n\t\t\tfinal LinkedHashSet <FastMSTreeItem> currentSelection = sourceHierarchyTree.getSelection(); \r\n\t\t\tfor (FastMSTreeItem it: currentSelection) {\r\n\t\t\t\tpaths.append(it.getModel().getPath());\r\n\t\t\t\tpaths.append(\",\");\r\n\t\t\t}\r\n\t\t\tsourceHierarchyTree.traverse(new FastMSTreeItemVisitor() {\r\n\t\t\t\tpublic boolean visit(FastMSTreeItem item, FastMSTreeItem parent) {\r\n\t\t\t\t\tXElementNode elNode = getElementNodeCopyFrom(item);\r\n//\t\t\t\t\telNode.removeChildren();\r\n//\t\t\t\t\tparents.put(item, elNode);\r\n\t\t\t\t\titem.setElementNode(elNode);\r\n\t\t\t\t\tXElementNode xParent = getParent(parent); //, parents); //parents.get(parent);\r\n\t\t\t\t\tif(xParent == null)\r\n\t\t\t\t\t\troots.add(elNode);\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\txParent.forceAddChild(elNode);\r\n\t\t\t\t\t\telNode.setParent(xParent);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\txAxisHierarchy.addProperty(\"filterPaths\", paths.toString());\r\n\t\t} else {\r\n\t\t\tfinal Map<FastMSTreeItem, XElementNode> parents = new HashMap<FastMSTreeItem, XElementNode>();\r\n\t\t\tfinal List <String> filterPaths = new ArrayList <String>();\r\n\t\t\ttargetHierarchyTree.traverse(new FastMSTreeItemVisitor(){\r\n\t\t\t\tpublic boolean visit(FastMSTreeItem item, FastMSTreeItem parent) {\r\n\t\t\t\t\tXObjectModel node = item.getXObjectModel();\r\n\t\t\t\t\tString path = node.get(\"filterPath\");\r\n\t\t\t\t\tif (path != null) {\r\n\t\t\t\t\t\tfilterPaths.add(path);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn item.getChildCount() > 0;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tfor (String f: filterPaths) {\r\n\t\t\t\tpaths.append(f);\r\n\t\t\t\tpaths.append(\",\");\r\n\t\t\t}\r\n\t\t\ttargetHierarchyTree.traverse(new FastMSTreeItemVisitor() {\r\n\t\t\t\tpublic boolean visit(FastMSTreeItem item, FastMSTreeItem parent) {\r\n\t\t\t\t\tXElementNode elNode = getElementNodeCopyFrom(item);\r\n\t\t\t\t\telNode.removeChildren();\r\n\t\t\t\t\titem.setElementNode(elNode);\r\n\t\t\t\t\tXElementNode xParent = getParent(parent); //parents.get(parent);\r\n\t\t\t\t\tif(xParent == null)\r\n\t\t\t\t\t\troots.add(elNode);\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\txParent.forceAddChild(elNode);\r\n\t\t\t\t\t\telNode.setParent(xParent);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t});\t\t\t\r\n\t\t\txAxisHierarchy.addProperty(\"filterPaths\", paths.toString());\r\n\t\t}\r\n\t\treturn new Object [] {roots.toArray(new XElementNode[0]), paths.toString()};\r\n\t}",
"public List<Element> getChildElements() {\n return getChildNodes().stream().filter(n -> n instanceof Element)\n .map(n -> (Element) n).collect(Collectors.toUnmodifiableList());\n }",
"public Object[] getFilteredChildren() {\n\t\treturn getFilteredChildren(txTableViewer);\n\t}",
"public Iterable<HTMLElement> elements() {\n return iterable;\n }",
"@Override\n public LinkedList<ApfsElement> getChildren() {\n return this.children;\n }",
"public Set<MindObject> getDirectSubComponents(){\n return new HashSet<>();\n }",
"public List<T> getItems() {\n return SerDes.unmirrorList(getElement().getItems(), getItemClass());\n }",
"public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllPartOfSet_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), PARTOFSET);\r\n\t}",
"private Collection<COREModel> getAllRealisationModels() {\n Collection<COREModel> allRealisationModels = new ArrayList<COREModel>();\n Collection<? extends COREModel> aspects = EMFModelUtil.collectElementsOfType(concern,\n CorePackage.Literals.CORE_CONCERN__MODELS, RamPackage.eINSTANCE.getAspect());\n Collection<? extends COREModel> ucms = EMFModelUtil.collectElementsOfType(concern,\n CorePackage.Literals.CORE_CONCERN__MODELS, UCMPackage.eINSTANCE.getUseCaseMap());\n allRealisationModels.addAll(aspects);\n allRealisationModels.addAll(ucms);\n return allRealisationModels;\n }",
"@Override\r\n\tpublic List<WebElement> findElements() {\n\t\thandleContext(bean.getIn());\r\n\t\treturn driver.getRealDriver().findElements(bean.getBys().get(0));\r\n\t}",
"public Collection<VisualLexiconNode> getChildren() {\n \t\treturn children;\n \t}",
"@Override\n\tpublic Collection<Eleve> findAll() {\n\t\treturn map.values();\n\t}",
"public Vector getChildren() {\n return null;\n }",
"public ReactorResult<java.lang.String> getAllPartOfSet_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), PARTOFSET, java.lang.String.class);\r\n\t}",
"@Override\n\tpublic ArrayList<Elezione> listaElezioni() {\n\t\tArrayList<Elezione> listaElezioni = caricaElezioni();\n\t\treturn listaElezioni;\n\t}",
"public WModelObject getElementObject()\n\t{\n\t\tWModelObject elementObject = null;\n\n\t\ttry\n\t\t{\n\t\t\t//Class objClass = Class.forName(m_elementObjectClassName);\n\t\t\t//elementObject = (WModelObject)objClass.newInstance();\n\t\t\t//elementObject.setParent(this);\n\t\t\t//return elementObject;\n\n\t\t\tClass modelObjectClass = Class.forName(m_elementObjectClassName);\n\t\t\tClass[] parameterClass = {Class.forName(\"java.lang.String\"), Class.forName(\"java.lang.String\")};\n\t\t\tConstructor constructor = modelObjectClass.getConstructor(parameterClass);\n\t\t\tObject[] parameterObj = {\"\", getImplTypeName()}; //the first parameter is blank to indicate no driver\n\t\t\t\t\t\t\t\t\t //provided this model object\n\t\t\telementObject = (WModelObject)constructor.newInstance(parameterObj);\n\t\t\telementObject.setParent(this);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (NoSuchMethodException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Cannot load element object class for WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (InvocationTargetException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Cannot load element object class for WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (ClassNotFoundException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Cannot load element object class for WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (InstantiationException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Cannot instantiate element object in WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (IllegalAccessException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Illegal access when instantiating element object in WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t}",
"@Nonnull\n\t@Override\n\tpublic NodeCollection getItems() {\n\t\treturn items;\n\t}",
"public Collection findAll() throws InfrastructureException {\r\n\t\tCollection col;\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"findAll ini\");\r\n\t\t\tcol = getHibernateTemplate().find(\"from Trasllat as tdi order by tdi.id\");\t\t\t\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"findAll failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\tlogger.debug(\"findAll fin\");\r\n\t\treturn col;\r\n\t}",
"@XmlTransient\n Collection<Prestito> getPrestitoCollection();",
"public Vector getChildren() {\n return this.children;\n }",
"ProductInner innerModel();",
"default List<SemanticRegion<T>> allChildren() {\n List<SemanticRegion<T>> result = new LinkedList<>();\n for (SemanticRegion<T> r : this) {\n result.add(r);\n }\n return result;\n }",
"public Collection getListaPartidosEleicaoVotos(){\n return this.eleicaoDB.getListaPartidosEleicaoVotos();\n }",
"@XmlTransient\n Collection<Libro> getLibroCollection();",
"public List getParents()\n {\n \tList result = new ArrayList();\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n\n \tif (instance != null)\n \t{\n \t if (instance.isRepresentative(this.refMofId())&&\n \t instance.hasRefObject(this.refMofId()))\n \t {\n \t if (getGeneralization().isEmpty() && !(this instanceof Interface) && !(this instanceof Enumeration))\n \t {\n \t \tresult.add(OclLibraryHelper.getInstance(this).\n \t\t\t\t\t\t\t\t\t\t\tgetAny());\n \t return result;\n \t \t }\n \t } \t \n \t \n\t \tif (equals(OclLibraryHelper.getInstance(this).getVoid()))\n\t \t{\n\t \t\tModel topPackage = ModelHelper.\n\t \t\t\t\t\t\t \t\tgetInstance(\n\t \t\t\t\t\t\t \t\t\t\t(Uml15Package) this.refOutermostPackage()).\n\t \t\t\t\t\t\t \t\t\t\t\t\tgetTopPackage();\n\t \t\tresult.addAll(((NamespaceImpl)topPackage).getAllClassesWithoutSpez());\n\t \t\treturn result;\n\t \t}\n \t} \n \tIterator it = getGeneralization().iterator();\n\n \twhile(it.hasNext())\n \t{\n \t Generalization g = (Generalization)it.next(); \n \t result.add(g.getParent());\n \t}\n \treturn result;\n }",
"@Override\n public List<Part> findAll() {\n List<Part> resultList = new ArrayList<>();\n repositoryPart.findAll().iterator().forEachRemaining(resultList::add);\n return resultList;\n }",
"public static List<AddCollection> findAllProduct() {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Element[] getRootElements() {\r\n\t\treturn new Element[] { this.getDefaultRootElement() };\r\n\t}",
"public ArrayList<IGeneSetElement> getGenesetElements(){\r\n\t\treturn geneSetElements;\r\n\t}",
"@Override\n public Collection<WrapperAwareElement> getChildren()\n {\n return null;\n }",
"public Collection<P> getPoolableElements();",
"public Set getAllPersistableChildren() {\n \n Set children = new HashSet();\n children.addAll(comments);\n return children;\n }",
"public Enumeration getElements() {\r\n return elements.elements();\r\n }",
"public Enumeration elements();",
"public ArrayList<Elemento> getElementos() {\n\t\treturn elementos;\n\t}",
"public abstract Enumeration elements();",
"Collection<Node> allNodes();",
"public /*@ non_null @*/ JMLObjectBag<E> toBag() {\n JMLObjectBag<E> ret = new JMLObjectBag<E>();\n JMLIterator<E> elems = iterator();\n while (elems.hasNext()) {\n //@ assume elems.moreElements;\n E o = elems.next();\n E e = (o == null ? null : o);\n ret = ret.insert(e);\n }\n return ret;\n }"
] | [
"0.759301",
"0.7287214",
"0.6451468",
"0.6344118",
"0.6297174",
"0.6194129",
"0.6194129",
"0.61209023",
"0.6109524",
"0.6100993",
"0.6072781",
"0.6056828",
"0.6048171",
"0.6013581",
"0.60036683",
"0.60005546",
"0.59906876",
"0.59899694",
"0.5987824",
"0.59720564",
"0.59583396",
"0.59532845",
"0.5926299",
"0.5922348",
"0.5913767",
"0.5899265",
"0.58923334",
"0.5870455",
"0.5858921",
"0.58496743",
"0.5841909",
"0.58369917",
"0.5832618",
"0.58235925",
"0.5822858",
"0.5801444",
"0.5796462",
"0.57934195",
"0.5779576",
"0.5769817",
"0.5767571",
"0.57629496",
"0.5761105",
"0.57554835",
"0.57553077",
"0.57328236",
"0.5713546",
"0.56956017",
"0.56811684",
"0.56798035",
"0.5665807",
"0.5663299",
"0.5653946",
"0.5645456",
"0.5637701",
"0.5634847",
"0.56107605",
"0.55972457",
"0.5591544",
"0.5586159",
"0.5585083",
"0.5580623",
"0.5577156",
"0.5576669",
"0.5576074",
"0.55756813",
"0.5572328",
"0.5571831",
"0.55703086",
"0.5563478",
"0.5542937",
"0.55421275",
"0.5536721",
"0.5533324",
"0.55318403",
"0.5527607",
"0.55250114",
"0.55213386",
"0.55151594",
"0.54888254",
"0.5484099",
"0.54817295",
"0.5476819",
"0.54726195",
"0.5470798",
"0.54682595",
"0.5468062",
"0.54661644",
"0.54640836",
"0.54515564",
"0.5443471",
"0.5439463",
"0.54392076",
"0.5438876",
"0.54381716",
"0.5437033",
"0.5434353",
"0.5432644",
"0.5405655",
"0.5398287"
] | 0.7316746 | 1 |
Deletes the given model element from the collection. | void deleteModelElement(EObject modelElement); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void delete(T element);",
"void deleteElement(int elementId);",
"public T remove(T element) throws EmptyCollectionException, ElementNotFoundException;",
"@Override\r\n\tpublic void delete(T element) {\n\r\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}",
"E remove(Id id);",
"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}",
"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}",
"void remove( ModelObject object );",
"@Override\n public void eliminarElemento(Object elemento) {\n database.delete(elemento);\n }",
"public void delete(E model) {\n\t\tgetHibernateTemplate().delete(model);\r\n\t}",
"public T remove (T element);",
"protected void delete(final R element) throws MessageLabelException {\n getService().delete(element);\n }",
"boolean remove(String elementId);",
"public void delete( final T model )\n\t{\n\t\tthis.dao.delete( model );\n\t}",
"public boolean delete(ModelObject obj);",
"public void remove(T element);",
"public void deletePolynom(int position) {\n collection.remove(position);\n }",
"@Override\r\n\tpublic void deleteItem() {\n\t\taPList.remove();\r\n\t}",
"@Override\n\tpublic void delete(NewsCollection findOne) {\n\t\tnewsCollectionMapper.delete(findOne);\n\t\t\n\t}",
"public void deleteModelAt(int index) {\r\n if (index < models.size()) {\r\n models.removeElementAt(index);\r\n }\r\n }",
"public void removeFromRatebooks(entity.ImpactTestingRateBook element);",
"@Override\n\tpublic boolean delete(Eleve o) {\n\t\tmap.remove(o.getId(), o);\n\t\treturn true;\n\t}",
"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 boolean removeElement(Object obj);",
"int deleteByPrimaryKey(String EQP_MODEL_ID);",
"public boolean deleteItem(int index);",
"public E remove();",
"public E remove();",
"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}",
"void remove(PK id);",
"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 removeItem(int id);",
"public void eliminarTodosLosElementos(){\n\t\tlistModel.removeAllElements();\n\t}",
"@Override\n\tpublic Integer delModel(String tagID) throws BaseException {\n\t\treturn this.delete(\"Mapper.PhotoTag.deleteByID\", tagID);\n\t}",
"@Override\r\n\tpublic boolean remove(T element) {\n\t\treturn this._list.remove(element);\r\n\t}",
"void documentRemoved(SingleDocumentModel model);",
"@Override\n\tpublic int deleteByPrimaryKey(String modelid) {\n\t\treturn equipmentSetvalMapper.deleteByPrimaryKey(modelid);\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}",
"public void deleteById(String id);",
"public void deleteOne(String id) {\n\t\t mongoTemplate.remove(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}",
"Form removeElement(Element element);",
"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 removeItem(T itemModel) {\n\t\tthis.removeItem(this.getItemIndex(itemModel));\n\t}",
"boolean remove (I id);",
"void onDeleteItem(E itemElementView);",
"public boolean remove(Object element) {\n\n\t\tif (element == null) {\n\t\t\tthrow new IllegalArgumentException(\"ArrayList cannot contain null.\");\n\t\t}\n\t\tint index = -1;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tObject object = this.storedObjects[i];\n\t\t\tif (object.equals(element)) {\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (index == -1) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i = index + 1; i < this.size; i++) {\n\t\t\tthis.storedObjects[i - 1] = this.storedObjects[i];\n\t\t}\n\t\tthis.size--;\n\t\tthis.storedObjects[this.size] = null;\n\t\treturn true;\n\t}",
"private void deleteFile() {\r\n actionDelete(dataModelArrayList.get(position));\r\n }",
"@Override\n\tpublic void deleteItem(Object toDelete) {}",
"@Override\n\tpublic boolean delete(String internalModel) {\n\t\treturn false;\n\t}",
"public boolean deleteById(Object id);",
"public boolean deleteById(Object id);",
"int deleteByExample(E example);",
"void deleteById(Integer id);",
"void deleteById(Integer id);",
"boolean remove(T element);",
"@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 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}",
"public void deleteItem(int index) {\n this.items.remove(index);\n }",
"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 delete() \n\t\t\t\tthrows model.ConsistencyException, PersistenceException{\n //TODO Check delegation to abstract class and overwrite if necessary!\n this.getMyCONCMModelItem().delete();\n }",
"public void deleteByPrimaryKey(Long tagId) {\n }",
"public synchronized void eliminar(int nombre){\n\n elemento.remove(nombre);\n \n }",
"public void delById(Serializable id) ;",
"public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);",
"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 }",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void deleteItem(String string) {\n itemArrayList.remove(string);\n saveArrayList(itemArrayList, \"itemArrayList\");\n }",
"public void remove(SVGElementModel model) {\n \t\tif (model.getOwner() == this) {\n \t\t\t// Update the SVG model\n \t\t\torphan(model);\n \n \t\t\t// Update the DOM tree\n \t\t\tElement element = model.getElement();\n \t\t\tElement parentElement = element.getParentElement();\n \t\t\tif (parentElement != null) {\n \t\t\t\tparentElement.removeChild(element);\n \t\t\t}\n \t\t\tElement twin = model.getTwin();\n \t\t\tElement parentTwin = twin.getParentElement();\n \t\t\tif (parentTwin != null) {\n \t\t\t\tparentTwin.removeChild(twin);\n \t\t\t}\n \t\t\t\n \t\t\t// Update the model tree\n \t\t\tif (model.getParent() != null) {\n \t\t\t\tmodel.getParent().remove(model);\n \t\t\t}\n \t\t\t\n \t\t\t// Update the store\n \t\t\tstore.removeAll(model);\n \t\t\tstore.remove(model);\n \t\t}\n \t}",
"public E remove(int index);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"@DELETE\n public void delete() {\n try {\n dao.delete(dao.retrieveById(id));\n } catch (EntityInUse eiu) {\n throw new WebApplicationException(WSUtils.buildError(400, EntityInUse.ERROR_MESSAGE));\n }\n }",
"@Command(\"delete\")\n @NotifyChange({\"events\", \"selectedEvent\"})\n public void delete() {\n if(this.selectedEvent != null) {\n eventDao.delete(this.selectedEvent);\n this.selectedEvent = null;\n }\n }",
"public boolean remove(T element, Point2D pos);",
"void deleteById(int id);",
"public void deleteById(int theId);",
"public ContentObject remove(\n )\n {\n ContentObject removedObject = objects.remove(index);\n refresh();\n\n return removedObject;\n }",
"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 removeObject(String id);",
"void deleteElementDefinition(String elementName) throws IllegalArgumentException;",
"@Override\n\tpublic boolean delete(Patient model) {\n\t\treturn false;\n\t}",
"public void delete(K id);",
"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}",
"boolean deleteById(int id);",
"void delete(E entity);",
"void delete(E entity);",
"public void removeArtifact(ArtifactModel artifact);"
] | [
"0.68521106",
"0.6758707",
"0.6740455",
"0.6554566",
"0.65042394",
"0.64661527",
"0.64648217",
"0.6395211",
"0.6365591",
"0.63487136",
"0.6321384",
"0.62948376",
"0.62789464",
"0.6242097",
"0.61746806",
"0.6168673",
"0.6150382",
"0.61298317",
"0.5979601",
"0.59427696",
"0.5866676",
"0.5856434",
"0.58561",
"0.581676",
"0.57957226",
"0.5772752",
"0.57705146",
"0.57529736",
"0.57529736",
"0.5740892",
"0.5734276",
"0.5731168",
"0.57221",
"0.57083356",
"0.5707016",
"0.5690763",
"0.5685492",
"0.5643851",
"0.5624123",
"0.56213313",
"0.5619738",
"0.561346",
"0.5604445",
"0.55954415",
"0.55929166",
"0.558427",
"0.556812",
"0.55657005",
"0.55647016",
"0.5543145",
"0.55305386",
"0.55305386",
"0.55082667",
"0.5505258",
"0.5505258",
"0.55008435",
"0.5497629",
"0.54937774",
"0.54919815",
"0.5486593",
"0.5477052",
"0.5474339",
"0.5469516",
"0.546049",
"0.54508746",
"0.54453367",
"0.54395175",
"0.54395175",
"0.54395175",
"0.54395175",
"0.54395175",
"0.5438693",
"0.5438231",
"0.5433352",
"0.54274994",
"0.54274994",
"0.54274994",
"0.54274994",
"0.54274994",
"0.54274994",
"0.54274994",
"0.54274994",
"0.54274994",
"0.54274994",
"0.54234535",
"0.5422876",
"0.54228204",
"0.54157674",
"0.54042083",
"0.5402063",
"0.5385063",
"0.53823674",
"0.5380882",
"0.5377967",
"0.5377702",
"0.5376332",
"0.53725547",
"0.53672594",
"0.53672594",
"0.5366379"
] | 0.77868557 | 0 |
Returns a flat representation of all model elements in the collection. | Set<EObject> getAllModelElements(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<T> dump() {\n\t\treturn internalElements();\n\t}",
"Collection<V> getAllElements();",
"Collection<T> getSimpleModelObjects();",
"Collection<EObject> getModelElements();",
"public com.google.protobuf.ByteString\n getCollectionBytes() {\n return instance.getCollectionBytes();\n }",
"@Override\n public String toString() {\n StringBuilder stringBuilder = new StringBuilder();\n for (Item item : this) {\n stringBuilder.append(item.toString()).append(\" \");\n }\n return stringBuilder.toString();\n }",
"private List<Object> serializeActualCollectionMembers(AbstractPersistentCollection collection)\r\n\t{\r\n\t\tList<Object> result = new ArrayList<Object>();\r\n\t\tif (!collection.wasInitialized())\r\n\t\t{\r\n\t\t\tcollection.forceInitialization();\r\n\t\t}\r\n\t\tIterator<Object> itr = collection.entries(null);\r\n\t\twhile (itr.hasNext())\r\n\t\t{\r\n\t\t\tObject next = itr.next();\r\n\t\t\tObject newObj = serialize(next);\r\n\t\t\tresult.add(newObj);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public Collection findAll() {\n\t\treturn null;\r\n\t}",
"private List<E> snapshot() {\n\t\tList<E> list = Lists.newArrayListWithExpectedSize(size());\n\t\tfor (Multiset.Entry<E> entry : entrySet()) {\n\t\t\tE element = entry.getElement();\n\t\t\tfor (int i = entry.getCount(); i > 0; i--) {\n\t\t\t\tlist.add(element);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"@Override\n\tpublic String getCollection() {\n\t\treturn null;\n\t}",
"java.lang.String getCollection();",
"public String flatten() {\n\t\tString data;\n\t\t// We use simple name, because the fleshed out version of this class is\n\t\t// in the default package for data types: de.nec.nle.siafu.data\n\t\tString fullClassName = this.getClass().getName();\n\t\tString className = fullClassName.substring(fullClassName\n\t\t\t\t.lastIndexOf(\".\") + 1);\n\t\tdata = className + \":\";\n\t\tdata += b;\n\t\treturn data;\n\t}",
"public List<T> getItems() {\n return SerDes.unmirrorList(getElement().getItems(), getItemClass());\n }",
"public static <E> String concatElements(Collection<E> collection) {\n return concatElements(collection, EMPTY);\n }",
"public java.lang.String getCollection() {\n return instance.getCollection();\n }",
"@Override\n\tpublic List<Object> getCollection() {\n\t\treturn null;\n\t}",
"public void flatten();",
"@Override\n public String toString() {\n return this.toList().toString();\n }",
"@Override\n\tpublic ArrayList<Representation> getALL() {\n\t\treturn null;\n\t}",
"public FlatData flatten() {\n\t\t\treturn new Text(description).flatten();\n\t\t}",
"@XmlTransient\n Collection<Autore> getAutoreCollection();",
"public com.google.protobuf.ByteString\n getCollectionBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(collection_);\n }",
"public /*@ non_null @*/ JMLObjectBag<E> toBag() {\n JMLObjectBag<E> ret = new JMLObjectBag<E>();\n JMLIterator<E> elems = iterator();\n while (elems.hasNext()) {\n //@ assume elems.moreElements;\n E o = elems.next();\n E e = (o == null ? null : o);\n ret = ret.insert(e);\n }\n return ret;\n }",
"public String toString () {\n\t\tString resumen = \"\";\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tresumen = resumen + this.get(i).toString();\n\t\t}\n\t\treturn resumen;\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder stb = new StringBuilder();\r\n\t\tfor (int i = 0; i < elements.size(); i++) {\r\n\t\t\tstb.append(\"Element \" + i + \":\" + elements.get(i) + \" \");\r\n\t\t}\r\n\t\treturn stb.toString();\r\n\t}",
"private Object[] elements() {\n return elements.toArray();\n }",
"public void flatten (){\n // Don't need to do anything\n }",
"public String toString() {\n StringBuilder s = new StringBuilder();\n for (Item item : this) {\n s.append(item + \" \");\n }\n return s.toString().substring(0, s.length() - 1);\n }",
"String getCollection();",
"@Override\r\n\tpublic String toString(){\r\n\t\tString output = \"[ \";\r\n\t\tIterator<Object> it = iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tObject n = it.next();\r\n\t\t\toutput += n + \" \"; \r\n\t\t}\r\n\t\toutput += \"]\";\r\n\t\treturn output;\r\n\t}",
"@Override public List<String> gridRepresentation() {\n assert(checkRep());\n return representation;\n }",
"protected SimpleTypeImpl getSimpleCollection() {\n // Single property collection retrieve\n SimpleTypeImpl simpleCollectionString = new SimpleTypeImpl(\"simpleNameSpace\", SIMPLE_TYPE_NAME, null, true, null, null, null);\n return simpleCollectionString;\n }",
"List<Model> selectAll();",
"public FlatData flatten() {\n\t\tString data;\n\t\tdouble[] coords = coordinateTools.localToCoordinates(this);\n\t\tdata = this.getClass().getName() + \":\";\n\t\tdata += coords[0] + \"#\" + coords[1];\n\t\treturn new FlatData(data);\n\t}",
"public Iterator<String> listAllandAnonClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listClasses());\r\n\t}",
"public Set<String> getAllModelName(){\n return buildAuto.getAllModelName();\n }",
"public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(Item item : this) {\n\t\t\tsb.append(\"[\" + item + \"],\");\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public void flatten()\n\t{\n\t}",
"public List<ModelObject> readAll();",
"protected abstract ArrayList<Element> _toXml_();",
"default void flatten() {\n\t\tFieldGraph<F> flatGraph = FieldGraph.of(getFields());\n\t\tC flatClone = cloneFlat();\t// have to clone, because pull doesn't change value if pulling from self\n\t\tfor (F field : getFields())\n\t\t\tpull(field, flatClone, flatGraph);\n\t}",
"protected final String collectionString(final Collection c) {\n assert c != null;\n String result = \"{\"; //$NON-NLS-1$\n for (Iterator i = c.iterator(); i.hasNext();) {\n Object item = i.next();\n result = result + item.getClass().getName()\n + \"@\" + item.hashCode(); //$NON-NLS-1$\n if (i.hasNext()) {\n result = result + \", \"; //$NON-NLS-1$\n }\n }\n result = result + \"}\"; //$NON-NLS-1$\n return result;\n }",
"public Collection getFullValidationList ()\n\t{\n\t\tArrayList list = new ArrayList(getBasicValidationList());\n\t\tString className = getClassName();\n\t\tPersistenceClassElement persistenceClass = \n\t\t\tgetPersistenceClass(className);\n\n\t\tif (persistenceClass != null)\n\t\t{\n\t\t\tPersistenceFieldElement[] fields = persistenceClass.getFields();\n\t\t\tint i, count = ((fields != null) ? fields.length : 0);\n\n\t\t\tlist.add(createSerializableClassComponent(className));\n\t\t\tlist.add(createKeyClassComponent(persistenceClass.getKeyClass()));\n\t\t\tlist.add(createClassMappingComponent(persistenceClass));\n\t\t\tlist.add(createKeyColumnMappingComponent(persistenceClass));\n\n\t\t\tfor (i = 0; i < count; i++)\n\t\t\t{\n\t\t\t\tPersistenceFieldElement field = fields[i];\n\n\t\t\t\tlist.add(createFieldCardinalityComponent(field));\n\t\t\t\tlist.add(createFieldMappingComponent(field));\n\t\t\t\tlist.add(createFieldBlobMappingComponent(field));\n\t\t\t\tlist.addAll(getRelatedClassValidationList(field));\n\t\t\t}\n\t\t}\n\n\t\treturn Collections.unmodifiableCollection(list);\n\t}",
"com.google.protobuf.ByteString\n getCollectionBytes();",
"@RequestMapping(method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\t@Transactional(readOnly = true)\r\n\tpublic Collection<Model> list() {\r\n\t\treturn getService().list();\r\n\t}",
"public static String getAll(){\n\t\tEntityType[] values = values();\n\t\tString readableString = \"\";\n\t\t\n\t\tfor (int i=0; i<values.length; i++){\n\t\t\treadableString += values[i].toString();\n\t\t\tif (i < values.length) {\n\t\t\t\treadableString += \", \";\n\t\t\t} else {\n\t\t\t\treadableString += \".\";\n\t\t\t}\n\t\t}\n\t\treturn readableString;\n\t}",
"@Override\n public String toString() {\n StringBuilder r = new StringBuilder(\"\");\n for (Itemset itemset : itemsets) {\n r.append(\"{t=\");\n r.append(itemset.getTimestamp());\n r.append(\", \");\n for (Item item : itemset.getItems()) {\n String string = item.toString();\n r.append(string);\n r.append(' ');\n }\n r.append('}');\n }\n return r.append(\" \").toString();\n }",
"protected String exportElements() {\n\t\treturn \"\";\n\t}",
"public String[] getAll() {\n return toList().toArray(new String[0]);\n }",
"@XmlTransient\n Collection<Prestito> getPrestitoCollection();",
"public Collection getGeneralization()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{\n \t\tCollection col = new ArrayList();\n \t\tcol = instance.getGeneralization(this.refMofId());\n \t\t\n \t\treturn col; \t\t\n \t}\n \n \treturn super_getGeneralization();\n }",
"public String toString()\r\n {\r\n String s = new String();\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n s += vi.getObject().toString()+ Static.defaultSeparator;\r\n vi = vi.getNext();\r\n }\r\n \r\n return s;\r\n }",
"public List allElements() {\r\n\t\tArrayList elems = new ArrayList();\r\n\t\tfor (int i = 0; i < elements.size(); ++i) {\r\n\t\t\tObject ob = elements.get(i);\r\n\t\t\tif (ob instanceof Operator) {\r\n\t\t\t} else if (ob instanceof FunctionDef) {\r\n\t\t\t\tExpression[] params = ((FunctionDef) ob).getParameters();\r\n\t\t\t\tfor (int n = 0; n < params.length; ++n) {\r\n\t\t\t\t\telems.addAll(params[n].allElements());\r\n\t\t\t\t}\r\n\t\t\t} else if (ob instanceof TObject) {\r\n\t\t\t\tTObject tob = (TObject) ob;\r\n\t\t\t\tif (tob.getTType() instanceof TArrayType) {\r\n\t\t\t\t\tExpression[] exp_list = (Expression[]) tob.getObject();\r\n\t\t\t\t\tfor (int n = 0; n < exp_list.length; ++n) {\r\n\t\t\t\t\t\telems.addAll(exp_list[n].allElements());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\telems.add(ob);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\telems.add(ob);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn elems;\r\n\t}",
"public Collection<T> readAll();",
"public java.lang.String getCollection() {\n return collection_;\n }",
"@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}",
"@XmlTransient\n Collection<Tag> getTagCollection();",
"public String getListAttributesPref()\n {\n Serializer<Collection<RecognizedElement>> serializer = new Serializer<Collection<RecognizedElement>>();\n return serializer.serialize(tree.getChildren());\n }",
"ArrayList<E> getAll();",
"public Collection getCollection() {\n return mCollection;\n }",
"private List<Multiset.Entry<E>> snapshot() {\n\t\t\tList<Multiset.Entry<E>> list = Lists\n\t\t\t\t\t.newArrayListWithExpectedSize(size());\n\t\t\tfor (Multiset.Entry<E> entry : this) {\n\t\t\t\tlist.add(entry);\n\t\t\t}\n\t\t\treturn list;\n\t\t}",
"public static <T> String toString(Iterable<T> collection) {\n return toString(collection.iterator());\n }",
"public ArrayList<Fonds> getCollection(){\r\n return collection;\r\n }",
"public Collection<V> l_() {\n return new d(this);\n }",
"public static String printCollection(Collection l) {\n return printCollection(l, \"\");\n }",
"public Collection<V> getAllElements() {\n\t\treturn cacheMap.values();\n\t}",
"@XmlTransient\n Collection<Libro> getLibroCollection1();",
"@Override\n\tpublic Collection<V> values() {\n\t\t// TODO\n\t\treturn new ValueView();\n\t}",
"public static <T> Collection<String> toString(Collection<T> collection) {\n\t\tCollection<String> strings = new ArrayList<String>();\n\t\tfor (T item : collection)\n\t\t\tstrings.add(item.toString());\n\t\treturn strings;\n\t}",
"static public Collection bagFlatten(Object source) {\n\t\tCollection result = new ArrayList();\n\t\tif ( source instanceof Collection ) {\n\t\t\tIterator it = ((Collection)source).iterator();\n\t\t\twhile ( it.hasNext() ) {\n\t\t\t\tObject elem = it.next();\n\t\t\t\tif ( elem instanceof Collection ) {\n\t\t\t\t\tresult.addAll( bagFlatten(elem));\n\t\t\t\t} else {\n\t\t\t\t\tresult.add(elem);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public String toString() {\n // TODO\n StringBuilder s = new StringBuilder(\"[\");\n\n for (E e : this) {\n s.append(e).append(\", \");\n }\n\n String ss = s.substring(0, s.length() - 2);\n return ss += \"]\";\n }",
"public List<BaseObject> getAllItems() {\n ArrayList<BaseObject> list = new ArrayList<BaseObject>(ufos);\n list.add(ship);\n list.addAll(bombs);\n list.addAll(rockets);\n return list;\n }",
"@Override\n\tpublic String toString() {\n\t\tArrayList<Integer> elements = new ArrayList<Integer>();\n\n\t\tfillInOrderElements(_root, elements);\n\n\t\treturn elements.toString();\n\t}",
"public static <E> String concatElementsSkipNulls(Collection<E> collection) {\n return concatElementsSkipNulls(collection, EMPTY);\n }",
"Collection<T> findAll();",
"E[] getAll();",
"public ReactorResult<java.lang.String> getAllPartOfSet_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), PARTOFSET, java.lang.String.class);\r\n\t}",
"@NonNull\n Collection<TObj> getAll() {\n Collection<TObj> result = new LinkedList<>();\n for (int countR = mData.size(), i = 0; i < countR; i++) {\n int rowKey = mData.keyAt(i);\n SparseArrayCompat<TObj> columns = mData.get(rowKey);\n for (int countC = columns.size(), j = 0; j < countC; j++) {\n int key = columns.keyAt(j);\n result.add(columns.get(key));\n }\n }\n return result;\n }",
"public Collection<T> getItems() {\r\n return Collections.unmodifiableCollection(items);\r\n }",
"public Collection getSpecialisation()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{\n \t\tCollection col = new ArrayList();\n \t\tcol = instance.getSpecialization(this.refMofId());\n \t\t\n \t\treturn col; \t\t\n \t}\n \n \treturn ((Uml15Package)this.refOutermostPackage()).getCore().getAParentSpecialization().getSpecialization(this);\n }",
"public String show() {\n\t\t \t\tString result =\"\";\n\t\t \t\tGson gson = new Gson();\n\t\t \t\tfor(Olders o : collectionsOlders){\n\t\t\t\t\t\tresult+=gson.toJson(o,Olders.class) + \"\\n\";\n\n\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t }",
"public String toString() {\n StringBuilder string = new StringBuilder();\n Iterator<E> i = iterator();\n if (!this.isEmpty()) {\n while (i.hasNext()) {\n string.append(i.next());\n if (i.hasNext()) {\n string.append(\", \");\n }\n }\n }\n return string.toString();\n }",
"public List<o> selectAll();",
"@Override\n\tpublic void getAll() {\n\t\tfor (int i = 0; i < dto.length; i++) {\n\t\t\tSystem.out.println(dto[i]);\n\t\t}\n\n\t}",
"private Collection<COREModel> getAllRealisationModels() {\n Collection<COREModel> allRealisationModels = new ArrayList<COREModel>();\n Collection<? extends COREModel> aspects = EMFModelUtil.collectElementsOfType(concern,\n CorePackage.Literals.CORE_CONCERN__MODELS, RamPackage.eINSTANCE.getAspect());\n Collection<? extends COREModel> ucms = EMFModelUtil.collectElementsOfType(concern,\n CorePackage.Literals.CORE_CONCERN__MODELS, UCMPackage.eINSTANCE.getUseCaseMap());\n allRealisationModels.addAll(aspects);\n allRealisationModels.addAll(ucms);\n return allRealisationModels;\n }",
"@SuppressWarnings(\"unchecked\")\n public <T> IndexedCollection<T> collection() {\n return (IndexedCollection<T>) journal\n .retrieve(BarbelQueries.all(id), queryOptions(orderBy(ascending(BarbelQueries.EFFECTIVE_FROM))))\n .stream().map(d -> processingState.expose(context, (Bitemporal) d)).collect(Collectors.toList());\n }",
"public Collection<Item> findAll() {\n\t\tCollection<Item> Items;\n\t\tItems = this.itemRepository.findAll();\n\n\t\treturn Items;\n\t}",
"public Collection getAllAuxClasss();",
"public String toString() {\n\t\tif (list.size() < 1)\n\t\t\treturn \"There is no element in the Set.\";\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (Object item : list) {\n\t\t\tif (sb.length() > 0)\n\t\t\t\tsb.append(\", \").append(\"[\").append(item.toString()).append(\"]\");\n\t\t\telse\n\t\t\t\tsb.append(\"[\").append(item.toString()).append(\"]\");\n\t\t}\n\t\treturn sb.toString();\n\t}",
"@Override\n public String toString()\n {\n return Arrays.toString(this.toArray());\n }",
"synchronized Collection getCreatedElements() {\n Collection col = new ArrayList(nestedElements.size());\n Iterator it = nestedElements.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry entry = (Map.Entry)it.next();\n if (entry.getValue() != null) {\n col.add(entry.getValue());\n }\n }\n return col;\n }",
"public FeatureCollection<SimpleFeatureType,SimpleFeature> getCollection() {\n return (SimpleFeatureCollection) collection;\n }",
"public String toString()\n {\n return element.toString();\n }",
"public Iterable<T> iterable() {\n return new ResourceCollectionIterable<>(this);\n }",
"List<Mallscroerule> selectAll();",
"@Override\n\tpublic AllegationsElement Elements() {\n\t\treturn new AllegationsElement(driver);\n\t}",
"public Object[] getElements() {\r\n\t\treturn elements.clone();\r\n\t}",
"public static final SourceModel.Expr showJCollection(SourceModel.Expr collection) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showJCollection), collection});\n\t\t}",
"private void clearCollection() {\n \n collection_ = getDefaultInstance().getCollection();\n }",
"Collection<V> getAllEntries();"
] | [
"0.67661023",
"0.64894843",
"0.6467788",
"0.6410849",
"0.5731302",
"0.5659566",
"0.56558603",
"0.561641",
"0.55725914",
"0.5567916",
"0.5548262",
"0.5519964",
"0.5500748",
"0.5499895",
"0.54874676",
"0.54866886",
"0.54822177",
"0.5461297",
"0.5458734",
"0.54499036",
"0.5442611",
"0.5439083",
"0.53905064",
"0.53778106",
"0.53729886",
"0.53703976",
"0.5370218",
"0.5355697",
"0.5336683",
"0.5329334",
"0.530169",
"0.5301605",
"0.5297807",
"0.529159",
"0.52879417",
"0.5266289",
"0.52654415",
"0.52653223",
"0.52632946",
"0.5256351",
"0.52540326",
"0.5241079",
"0.5238191",
"0.52299166",
"0.52254015",
"0.5222534",
"0.5220743",
"0.52195317",
"0.5167859",
"0.5156176",
"0.51441324",
"0.51374805",
"0.51358056",
"0.51341",
"0.51309305",
"0.51071763",
"0.5107124",
"0.5101029",
"0.5097552",
"0.50871897",
"0.50854224",
"0.508159",
"0.5079579",
"0.5066073",
"0.50625104",
"0.50570357",
"0.50504595",
"0.504707",
"0.5046715",
"0.50453377",
"0.50391424",
"0.5033667",
"0.50330627",
"0.50295466",
"0.502795",
"0.50237614",
"0.501987",
"0.501375",
"0.50107956",
"0.5003068",
"0.49990585",
"0.49985808",
"0.4997494",
"0.49963242",
"0.49939778",
"0.49937627",
"0.49858344",
"0.49835834",
"0.49801973",
"0.49741596",
"0.4968268",
"0.49629253",
"0.49582294",
"0.49556586",
"0.49394003",
"0.49304032",
"0.49286675",
"0.49273553",
"0.49222112",
"0.4917848"
] | 0.6543182 | 1 |
Initializes the ID caches of the project with the given mappings. | void initCaches(Map<EObject, String> eObjectToIdMap, Map<String, EObject> idToEObjectMap); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initialize(String id, ConfigMap configMap) {}",
"private void init() {\n clearCaches();\n }",
"private static void mapDbAsstIDs()\r\n {\r\n if (dbIdMap == null) {\r\n dbIdMap = new HashMap<String, Integer>();\r\n dbIdMap.put(\"repair\", 1);\r\n dbIdMap.put(\"fuel\", 2);\r\n dbIdMap.put(\"tuition\", 3);\r\n dbIdMap.put(\"clothing\", 4);\r\n dbIdMap.put(\"registration\", 5);\r\n dbIdMap.put(\"utilities\", 21);\r\n }\r\n }",
"private void registerCaches(){\n // Initialize region arraylist\n prisoners = new HashMap<>();\n regions = QueryManager.getRegions();\n prisonBlocks = QueryManager.getPrisonBlocks();\n portals = QueryManager.getPortals();\n }",
"@PostConstruct\r\n public void init() {\n List<Person> personList = personRepository.findAll();\r\n for(Person person:personList)\r\n personHashMap.put(person.getId(),person);\r\n }",
"private void init() {\r\n final List<VCSystem> vcs = datastore.createQuery(VCSystem.class)\r\n .field(\"url\").equal(Parameter.getInstance().getUrl())\r\n .asList();\r\n if (vcs.size() != 1) {\r\n logger.error(\"Found: \" + vcs.size() + \" instances of VCSystem. Expected 1 instance.\");\r\n System.exit(-1);\r\n }\r\n vcSystem = vcs.get(0);\r\n\r\n project = datastore.getByKey(Project.class, new Key<Project>(Project.class, \"project\", vcSystem.getProjectId()));\r\n\r\n }",
"public AutoIndexMap()\n\t\t{\n\t\t\t// Initialise instance variables\n\t\t\tindices = new IdentityHashMap<>();\n\t\t}",
"private void init() {\n\t\tmap = new LinkedHashMap<String, HeaderData>();\r\n\t\tList<HeaderData> list = config.getColumns();\r\n\t\tfor(HeaderData info: list){\r\n\t\t\tString id = info.getId();\r\n\t\t\tif(id == null) throw new IllegalArgumentException(\"Null id found for \"+info.getClass().getName());\r\n\t\t\t// Map the id to info\r\n\t\t\tmap.put(info.getId(), info);\r\n\t\t}\r\n\t}",
"private static native void initCachedClassMap();",
"public void InitMap() {\n for (int i=0; i<m_mapSize; i++) {\n SetColour(i, null);\n }\n }",
"@PostConstruct\n public void initCache() {\n cache = Collections.synchronizedMap(new HashMap<>(cacheCapacity, 1));\n }",
"private void initializeIdGen() {\n try {\n InitialContext context = new InitialContext();\n Object o = context.lookup(\"idgenerator/IdGenEJB\");\n IdGenHome idGenHome = (IdGenHome) PortableRemoteObject.narrow(o, IdGenHome.class);\n idGen = idGenHome.create();\n } catch (Exception ex) {\n throw new DatabaseException(\"Failed to intialize Id Generator.\", ex);\n }\n }",
"public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}",
"public void init() {\n\t\tif (cache != null) {\n\t\t\tcache.dispose();\n\t\t\tcache = null;\n\t\t}\n\t\tcache = cacheFactory.create(CacheFactoryDirective.NoDCE, \"test\");\n\t}",
"protected void initializeCache() {\n if (cacheResults && initialized) {\n dataCache = new HashMap<String, Map<String, Map<String, BaseAttribute>>>();\n }\n }",
"public void initMap() {\n\t\tmap = new Map();\n\t\tmap.clear();\n\t\tphase = new Phase();\n\t\tmap.setPhase(phase);\n\t\tmapView = new MapView();\n\t\tphaseView = new PhaseView();\n\t\tworldDomiView = new WorldDominationView();\n\t\tcardExchangeView = new CardExchangeView();\n\t\tphase.addObserver(phaseView);\n\t\tphase.addObserver(cardExchangeView);\n\t\tmap.addObserver(worldDomiView);\n\t\tmap.addObserver(mapView);\n\t}",
"private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}",
"private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}",
"public static void initialize() {\r\n\t\tif (!connectionByProjectIdMap.isEmpty()) {\r\n\t\t\tcloseAllMsiDb();\r\n\t\t\tconnectionByProjectIdMap.clear();\r\n\t\t}\r\n\t\tif (udsDbConnection != null) {\r\n\t\t\tinitializeUdsDb();\r\n\t\t}\r\n\t}",
"public void init(List<Class<?>> mappedClasses)\n {\n\t\t//only if not already initialized\n\t\tif (!mInitialized) {\n\t\t\n\t\t\t//only create all entities without extract their fields and insert its into entities def cache.\n\t \tentities = new ArrayList<EntityDef>();\n\t\t\tfor (Class<?> clazz : mappedClasses) {\n entities.add(createEntityDef(clazz));\n }\n\t\t\t//extracting all entities properties and fields (realtionship fields partially)\n\t\t\tfor (EntityDef entityDef : entities) {\n entityDef.init();\n }\n\t\t\t//configure all single tables with their subclasses...\n\t\t\tfor (EntityDef entityDef : entities) {\n if (SingleTableSubclass.SingleTableSuperclass.class.isAssignableFrom(entityDef.getClass())) {\n SingleTableSubclass.SingleTableSuperclass.class.cast(entityDef).initSubclasses();\n }\n }\n\t\t\t//to avoid call this method one more time...\n\t\t\tmInitialized = true;\n\t\t}\n\t}",
"public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}",
"private void init() {\n UNIGRAM = new HashMap<>();\n }",
"public void initMap(String path) {\n \tgameState = StateParser.makeGame(path);\n\t\tintel = gameState.getCtrlIntel();\t\n\t\tsnakes = gameState.getSnake();\n\t\tmap = gameState.getMap();\n }",
"private native static void initIDs();",
"public void init_lookup(){\n for(int i =0 ; i< MAX ; i++){\n lookup[i] =0;\n }\n }",
"private static native void initIDs();",
"private static native void initIDs();",
"private static native void initIDs();",
"FixedTextureCache()\n {\n textureMap = new HashMap();\n componentMap = new HashMap();\n }",
"private void initialiseMap(ArrayList<Sprite> allSprites){\n\t\tint x = (allSprites.get(0).getXOffset()*-2) + App.COLUMNS;\n\t\tint y = (allSprites.get(0).getYOffset()*-2) + App.ROWS;\n\t\t\n\t\tgameMap = new MapCell[x][y];\n\t\t\n\t\t//initialise the gameMap\n\t\tfor (int i = 0; i < x; i++) {\n\t\t\tfor( int j = 0; j < y; j++) {\n\t\t\t\tthis.gameMap[i][j] = new MapCell();\n\t\t\t}\n\t\t}\n\t}",
"private Map(int id) {\n\t\tthis.id = Integer.valueOf(id);\n\t\tSystem.out.println(\"Initializing map: \" + this.toString() + \" (\" + this.id + \")\");\n\t}",
"public static void loadCache() {\n\t\t // it is the temporary replacement to database. We should use DB instead\n\t Circle circle = new Circle();\n\t circle.setId(\"1\");\n\t shapeMap.put(circle.getId(),circle);\n\n\t Square square = new Square();\n\t square.setId(\"2\");\n\t shapeMap.put(square.getId(),square);\n\n\t Rectangle rectangle = new Rectangle();\n\t rectangle.setId(\"3\");\n\t \n\t Circle circle2 = new Circle();\n\t circle2.setId(\"4\");\n\t circle2.setType(\"Big Circle\");\n\t shapeMap.put(circle2.getId(),circle2);\n\t shapeMap.put(rectangle.getId(), rectangle);\n\t }",
"protected void createLookupCache() {\n }",
"protected void initializeCache() {\n\t\tif (cache == null){\n\t\t\tcache = Collections.synchronizedMap(new HashMap());\n\t\t}\n\t\telse{\n\t\t\tcache.clear();\n\t\t}\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic void init() {\n\t\tif (allcode.isEmpty()) {\r\n\t\t\tCode code = new Code();\r\n\r\n\t\t\tList list = this.dynamicsqldao.findbyWhere(code, Code.class);\r\n\t\t\tif (list.isEmpty() == false) {\r\n\t\t\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\t\t\tcode = new Code();\r\n\t\t\t\t\tcode = (Code) list.get(i);\r\n\t\t\t\t\tString ckey = code.getCode();\r\n\t\t\t\t\tList codelist = this.dynamicsqldao\r\n\t\t\t\t\t\t\t.findbyWhere( code, Code.class);\r\n\t\t\t\t\tallcode.put(ckey, codelist);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void init() {\n\n File folder = new File(MAP_PATH);\n File[] listOfFiles = folder.listFiles();\n\n for (int i = 0; i < Objects.requireNonNull(listOfFiles).length; i++) {\n this.mapFiles.add(new File(MAP_PATH + listOfFiles[i].getName()));\n }\n }",
"void init() {\n List<Artifact> artifacts = null;\n final List<RepositoryInfo> infos = RepositoryPreferences.getInstance().getRepositoryInfos();\n for (final RepositoryInfo info : infos) {\n if (info.isLocal()) {\n final File localrepo = new File(info.getRepositoryPath() + File.separator\n + DEFAULT_GID_PREFIX.replace('.', '/'));\n if (localrepo.exists()) {\n artifacts = resolveArtifacts(new File(info.getRepositoryPath()), localrepo);\n }\n }\n }\n\n if (artifacts == null) {\n artifacts = new ArrayList<Artifact>(1);\n }\n\n populateLocalTree(artifacts);\n populateAppPane(model.getApps());\n }",
"private void setUpRouteIDsAndIndexes() {\n\n\n for (int i = 0; i < routeIDsOfBillboards.size(); i++) {\n\n List<Integer> routeIDs = routeIDsOfBillboards.get(i);\n\n for (int j = 0; j < routeIDs.size(); j++) {\n\n int routeID = routeIDs.get(j);\n routeIDSet.add(routeID);\n }\n }\n\n buildHash();\n\n for (int i = 0; i < routeIDsOfBillboards.size(); i++) {\n\n List<Integer> routeIndexes = new ArrayList<>();\n List<Integer> routeIDs = routeIDsOfBillboards.get(i);\n for (int j = 0; j < routeIDs.size(); j++) {\n\n int routeID = routeIDs.get(j);\n int routeIndex = (int) routeIDMap.get(routeID);\n routeIndexes.add(routeIndex);\n }\n routeIndexesOfBillboards.add(routeIndexes);\n }\n }",
"private void initIDFMap(List<List<Map<String,List<Double>>>> tfMap){\n\t\tfor (int i = 0; i < tfMap.size(); i++) {\n\t\t\tList<Map<String,List<Double>>> gestureDocument = tfMap.get(i);\n\t\t\tfor (int j = 0; j < gestureDocument.size(); j++) {\n\t\t\t\tMap<String,List<Double>> tempMap = gestureDocument.get(j);\n\t\t\t\tIterator<Entry<String, List<Double>>> it = tempMap.entrySet().iterator();\n\t\t\t\t while (it.hasNext()) {\n\t\t\t\t Map.Entry<String,Integer> pairs = (Map.Entry)it.next(); \n\t\t\t\t if(getTfIDFMapGlobal().containsKey(pairs.getKey()))\n\t\t\t\t \tgetTfIDFMapGlobal().put(pairs.getKey(), getTfIDFMapGlobal().get(pairs.getKey())+1);\n\t\t\t\t else\n\t\t\t\t \tgetTfIDFMapGlobal().put(pairs.getKey(), 1);\n\t\t\t\t }\n\t\t\t}\n\t\t}\n\t}",
"public void init() {\n initLayers();\n for (int i = 0; i < indivCount; i++) {\n ArrayList<Layer> iLayers = new ArrayList<>();\n for (Layer l : layers)\n iLayers.add(l.cloneSettings());\n individuals[i] = new Individual(iLayers);\n }\n }",
"private void initialiseAll() {\n // now that all the BeanDescriptors are in their map\n // we can initialise them which sorts out circular\n // dependencies for OneToMany and ManyToOne etc\n BeanDescriptorInitContext initContext = new BeanDescriptorInitContext(asOfTableMap, draftTableMap, asOfViewSuffix);\n\n // PASS 1:\n // initialise the ID properties of all the beans\n // first (as they are needed to initialise the\n // associated properties in the second pass).\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initialiseId(initContext);\n }\n\n // PASS 2:\n // now initialise all the inherit info\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initInheritInfo();\n }\n\n // PASS 3:\n // now initialise all the associated properties\n for (BeanDescriptor<?> d : descMap.values()) {\n // also look for intersection tables with\n // associated history support and register them\n // into the asOfTableMap\n d.initialiseOther(initContext);\n }\n\n // PASS 4:\n // now initialise document mapping which needs target descriptors\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initialiseDocMapping();\n }\n\n // create BeanManager for each non-embedded entity bean\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initLast();\n if (!d.isEmbedded()) {\n beanManagerMap.put(d.fullName(), beanManagerFactory.create(d));\n checkForValidEmbeddedId(d);\n }\n }\n }",
"private void init() {\n mMemoryCache = new LruCache<String, Bitmap>(DEFAULT_MEM_CACHE_SIZE) {\n /**\n * Measure item size in kilobytes rather than units which is more\n * practical for a bitmap cache\n */\n @Override\n protected int sizeOf(String key, Bitmap bitmap) {\n final int bitmapSize = getBitmapSize(bitmap) / 1024;\n return bitmapSize == 0 ? 1 : bitmapSize;\n }\n };\n }",
"@PostConstruct\n\tpublic void init() {\n\t // TODO create cacheTreeMgr using HashMap or EhCache\n cacheTree = new CacheTreeHashMap();\n\t cacheTree.init();\n\t}",
"private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}",
"public IntObjectHashMap() {\n resetToDefault();\n }",
"private void initMaps()\r\n\t{\r\n\t\tenergiesForCurrentKOppParity = new LinkedHashMap<Integer, Double>();\r\n\t\tinputBranchWithJ = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedR = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedP = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularP = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularR = new LinkedHashMap<Integer, Double>();\r\n\t\tupperEnergyValuesWithJ = new LinkedHashMap<Integer, Double>();\r\n\t}",
"private void initCountMap() {\n\t\tcountMap.put(\"cells.BlueSchellingCell\", 0);\n\t\tcountMap.put(\"cells.OrangeSchellingCell\", 0);\n\t\tcountMap.put(\"cells.LiveCell\", 0);\n\t\tcountMap.put(\"cells.DeadCell\", 0);\n\t\tcountMap.put(\"cells.TreeCell\", 0);\n\t\tcountMap.put(\"cells.BurningTreeCell\", 0);\n\t\tcountMap.put(\"cells.EmptyLandCell\", 0);\n\t\tcountMap.put(\"cells.EmptyCell\", 0);\n\t\tcountMap.put(\"cells.SharkCell\", 0);\n\t\tcountMap.put(\"cells.FishCell\", 0);\n\t\tcountMap.put(\"cells.AntGroupCell\", 0);\n\t\tcountMap.put(\"cells.BlueRPSCell\", 0);\n\t\tcountMap.put(\"cells.GreenRPSCell\", 0);\n\t\tcountMap.put(\"cells.RedRPSCell\", 0);\n\t\tcountMap.put(\"cells.WhiteRPSCell\", 0);\n\t}",
"private void initialize(final DBFileAccess dBFileAccess) {\n\tMap<Long, String[]> cachedRecords = new HashMap<Long, String[]>();\n\tTreeSet<Long> recyclableRecordNumbers = new TreeSet<Long>();\n\n\tassert this.dBFileAccess == null;\n\n\t// Fill map of cached records\n\ttry {\n\t Iterator<Long> validRecordNumberIterator = dBFileAccess.iterator();\n\t long prevRecNo = -1; // To determine gaps b/w consecutive record\n\t // #'s.\n\t while (validRecordNumberIterator.hasNext()) {\n\t\tlong recNo = validRecordNumberIterator.next();\n\t\tString[] recData = null;\n\n\t\trecData = dBFileAccess.readRecord(recNo);\n\t\tcachedRecords.put(recNo, recData);\n\n\t\t// Update recyclableRecordNumbers if necessary (i.e., on gaps in\n\t\t// the sequence of valid record numbers). Each missing record #\n\t\t// in\n\t\t// the sequence of valid record numbers corresponds to an empty,\n\t\t// recyclable slot in the database file.\n\t\twhile (++prevRecNo < recNo) {\n\t\t recyclableRecordNumbers.add(prevRecNo);\n\t\t}\n\t }\n\t} catch (Exception e) {\n\t // Either a runtime exception thrown by the iterator, or a record\n\t // not found exception or a database file exception thrown by the\n\t // read record method.\n\t throw new DatabaseException(Text.CANT_INITIALIZE_DATABASE_CACHE\n\t\t + Text.NESTED_EXCEPTION_IS + e.getMessage(), e);\n\t}\n\n\t// Assignments here b/o failure atomicity\n\tthis.dBFileAccess = dBFileAccess;\n\tthis.cachedRecords = cachedRecords;\n\tthis.recyclableRecordNumbers = recyclableRecordNumbers;\n\n\tlockedRecordsInfo = new HashMap<Long, LockInfo>();\n }",
"public void initialise() \n\t{\n\t\tthis.docids = scoresMap.keys();\n\t\tthis.scores = scoresMap.getValues();\n\t\tthis.occurrences = occurrencesMap.getValues();\t\t\n\t\tresultSize = this.docids.length;\n\t\texactResultSize = this.docids.length;\n\n\t\tscoresMap.clear();\n\t\toccurrencesMap.clear();\n\t\tthis.arraysInitialised = true;\n\t}",
"private static synchronized void initializeMeasureMaps() {\n\t\tintensityMeasuresList=ExerciseIntensityMeasure.getAll();\n\t\tquantityMeasuresList=ExerciseQuantityMeasure.getAll();\n\t\tintensityCodesToNamesMap=new HashMap(intensityMeasuresList.size());\n\t\tquantityCodesToNamesMap=new HashMap(quantityMeasuresList.size());\n\n\t\t// these (and the lists above) come from the db, but they can be static \n\t\t// because they change so infrequently (haven't changed in five years and\n\t\t// counting), and only manually via the db.\n\t\tfor (int i=0; i<intensityMeasuresList.size(); i++) {\n\t\t\tfinal ExerciseIntensityMeasure m=(ExerciseIntensityMeasure)intensityMeasuresList.get(i);\n\t\t\tintensityCodesToNamesMap.put(m.getCode(),m.getName());\n\t\t}\n\t\tfor (int i=0; i<quantityMeasuresList.size(); i++) {\n\t\t\tfinal ExerciseQuantityMeasure m=(ExerciseQuantityMeasure)quantityMeasuresList.get(i);\n\t\t\tquantityCodesToNamesMap.put(m.getCode(),m.getName());\n\t\t}\n\t\tmeasureMapsInitialized=true;\n\t\t\n\t}",
"public void initialize() {\n\t\tnumRows = gridConfig.getNumRows();\n\t\tnumCols = gridConfig.getNumCols();\n\t\tgridCellCount = numRows * numCols;\n\t\tcreateMaps();\n\t\tsetCurrSimulationMap();\n\t\tcellWidth = SIZE / numCols;\n\t\tcellHeight = SIZE / numRows;\n\t\tcurrentGrid = new Cell[numRows][numCols];\n\t\tnewGrid = new Cell[numRows][numCols];\n\t\tempty(currentGrid);\n\t\tempty(newGrid);\n\t\tsetShapes();\n\t\tsetInitialStates();\n\t}",
"public void init(){\n\t\tcontentInBank = new TreeMap<>();\n\t\tint bank=0;\n\t\tfor (int i = 0; i < MEMORY_ADDRESS_LIMIT; i++) {\n\t\t\tbank = i % numOfbank;\n\t\t\t\n\t\t\tif (contentInBank.get(bank) == null) {\n\t\t\t\tMap<Integer,Entry>con = new TreeMap<>();\n\t\t\t\tcon.put(i, new Entry(MemoryType.UNDEF,\"0\", i));\n\t\t\t\tcontentInBank.put(bank, con);\n\t\t\t} else {\n\t\t\t\tcontentInBank.get(bank).put(i, new Entry(MemoryType.UNDEF,\"0\", i));\t\n\t\t\t}\n\t\t}\n\t}",
"protected void createLookupCache()\n/* */ {\n/* 1260 */ this.lookup = new SimpleCache(1, Math.max(getSize() * 2, 64));\n/* */ }",
"private void initViews(){\n map = findViewById(R.id.map);\n }",
"private <T extends Reference> void buildMap(Map<String, T> map, List<T> objects) {\n for (T candidateObject : objects) {\n String rid = candidateObject.getId();\n log.debug(\"...... caching RID: {}\", rid);\n map.put(rid, candidateObject);\n }\n }",
"@Override\n public void reloadCachedMappings() {\n }",
"@Override\n public void reloadCachedMappings() {\n }",
"public void init() {\n\t\tM_log.info(\"initialization...\");\n\t\t\n\t\t// register as an entity producer\n\t\tm_entityManager.registerEntityProducer(this, SakaiGCalendarServiceStaticVariables.REFERENCE_ROOT);\n\t\t\n\t\t// register functions\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW_ALL);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_EDIT);\n\t\t\n \t\t//Setup cache. This will create a cache using the default configuration used in the memory service.\n \t\tcache = memoryService.newCache(CACHE_NAME);\n\t}",
"@Before\n\tpublic void init()\n\t{\n\t\tEntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(\"persistenceUnit\");\n\t\tEntityManager entityManager = entityManagerFactory.createEntityManager();\n\t\tcacheManager = new CacheManagerDefaultImpl();\n\t\t((CacheManagerDefaultImpl) cacheManager).setEntityManager(entityManager);\n\t}",
"public IDReferences()\n {\n idReferences = new Hashtable();\n idValidation = new Hashtable();\n }",
"public void initMap() {\r\n\r\n\t\tproviders = new AbstractMapProvider[3];\t\r\n\t\tproviders[0] = new Microsoft.HybridProvider();\r\n\t\tproviders[1] = new Microsoft.RoadProvider();\r\n\t\tproviders[2] = new Microsoft.AerialProvider();\r\n\t\t/*\r\n\t\t * providers[3] = new Yahoo.AerialProvider(); providers[4] = new\r\n\t\t * Yahoo.RoadProvider(); providers[5] = new OpenStreetMapProvider();\r\n\t\t */\r\n\t\tcurrentProviderIndex = 0;\r\n\r\n\t\tmap = new InteractiveMap(this, providers[currentProviderIndex],\r\n\t\t\t\tUtilities.mapOffset.x, Utilities.mapOffset.y,\r\n\t\t\t\tUtilities.mapSize.x, Utilities.mapSize.y);\r\n\t\tmap.panTo(locationUSA);\r\n\t\tmap.setZoom(minZoom);\r\n\r\n\t\tupdateCoordinatesLimits();\r\n\t}",
"private void initialize() {\n\t\tplayerMap = new HashMap<>();\n\t\ttypeMap = new HashMap<>();\n\t\tfor (ProductType type : ProductType.values()) {\n\t\t\tMap<ProductState, Map<Integer, Set<Product>>> stateMap = new HashMap<>();\n\t\t\tfor (ProductState state : ProductState.values()) {\n\t\t\t\tMap<Integer, Set<Product>> map = new HashMap<>();\n\t\t\t\tstateMap.put(state, map);\n\t\t\t}\n\t\t\ttypeMap.put(type, stateMap);\n\t\t}\n\t}",
"private void initLayoutReferences() {\n // Initializing views\n initViews();\n // Initializing mapView element\n initMap();\n }",
"@PostConstruct\n public void postConstruct() {\n for (DBMetadataRepository repository : dbMetadataRepositories) {\n repositoryMap.put(repository.getProvider(), repository);\n }\n }",
"public Mapper() {\n\t\t\n\t\tmirMap = scanMapFile(\"mirMap.txt\");\n\t\tgeneMap = scanMapFile(\"geneMap.txt\");\n\t\t\n\t}",
"public static void initDictionaries()\r\n\t{\r\n\t\t\r\n\t\tString cfdictversion = getInitialDictVersion();\r\n\t\t\r\n\t\t//long time = System.currentTimeMillis();\r\n\t\t//System.out.println(\"Dictionaries initialized start\");\r\n\t\t\r\n\t\t\r\n\t\t//get the dictionary config file into a DOM\r\n\t\tloadDictionaryConfig();\r\n\t\tif(dictionaryConfig == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Problem loading dictionaryconfig.xml\");\r\n\t\t\r\n\t\t//load the default dictionaries into the cache\r\n\t\t//this is kind of weak but it'll do pig... it'll do...\r\n\t\tif (cfdictversion.trim().length() == 0) {\r\n\t\t\tcfdictversion = getFirstVersion(CFDIC);\r\n\t\t}\r\n\t\tString htdictversion = getFirstVersion(HTDIC);\r\n\t\tString jsdictversion = getFirstVersion(JSDIC);\r\n\t\t\r\n\t\t\r\n\t\t//load the dictionary into the cache\r\n\t\tloadDictionaryByVersion(cfdictversion);\r\n\t\tloadDictionaryByVersion(htdictversion);\r\n\t\tloadDictionaryByVersion(jsdictversion);\r\n\t\t\r\n\t\t//load from the cache to the live\r\n\t\tloadDictionaryFromCache(cfdictversion,CFDIC);\r\n\t\tloadDictionaryFromCache(cfdictversion,SQLDIC);\r\n\t\tloadDictionaryFromCache(htdictversion,HTDIC);\r\n\t\tloadDictionaryFromCache(jsdictversion,JSDIC);\r\n\t\t\t\t\r\n\t\t//System.out.println(\"Dictionaries initialized in \" + (System.currentTimeMillis() - time) + \" ms\");\r\n\t}",
"private OwBootstrapToIdMapping()\r\n {\r\n\r\n }",
"private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}",
"ExternalIdBundleMapper(final String uniqueIdScheme) {\n _idSupplier = new UniqueIdSupplier(uniqueIdScheme);\n }",
"private void initTiles(){\n\t\ttiles = new Tile[size * size];\n\t\tfor(int i = 0; i < tiles.length; i++){\n\t\t\ttiles[i] = new Tile(KEYS[i]);\n\t\t}\n\t}",
"public void initIDFactories(int gPI, int pId, Connection conn) {\n\t\tDebug.println(\"We initialize the ID factories!\");\n\t\tIDGenerator.initialized(gPI, pId, conn);\n\t\tIterator<Map.Entry<String, DatabaseTable>> it = annotatedTableSchema\n\t\t\t\t.entrySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tMap.Entry<String, DatabaseTable> entry = (Map.Entry<String, DatabaseTable>) it\n\t\t\t\t\t.next();\n\t\t\tDatabaseTable dT = entry.getValue();\n\t\t\tString tableName = dT.get_Table_Name();\n\t\t\tDebug.println(\"We initialize the ID generator for \" + tableName);\n\t\t\tHashMap<String, DataField> pkMap = dT.get_Primary_Key_List();\n\t\t\tIterator<Map.Entry<String, DataField>> pkIt = pkMap.entrySet()\n\t\t\t\t\t.iterator();\n\t\t\twhile (pkIt.hasNext()) {\n\t\t\t\tMap.Entry<String, DataField> pkField = (Map.Entry<String, DataField>) pkIt\n\t\t\t\t\t\t.next();\n\t\t\t\tDataField pkDF = pkField.getValue();\n\t\t\t\tif (pkDF.is_AutoIncrement()\n\t\t\t\t\t\t&& pkDF.get_Data_Type().toUpperCase().contains(\"INT\")) {\n\t\t\t\t\tDebug.println(\"We initialize the ID generator for \"\n\t\t\t\t\t\t\t+ tableName + \" key \" + pkDF.get_Data_Field_Name());\n\t\t\t\t\tiDFactory.add_ID_Generator(tableName,\n\t\t\t\t\t\t\tpkDF.get_Data_Field_Name());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void updateOrgMap() {\n String sql = \"SELECT DISTINCT(staticId) FROM meta.organization\";\n ResultSet rs = db.query(connId, sql);\n try {\n ArrayList<String> staticIds = new ArrayList<String>();\n while (rs != null && rs.next()) {\n staticIds.add(String.valueOf(rs.getInt(\"staticId\")));\n }\n\n for (String staticId : staticIds) {\n Organization org = getOrg(staticId);\n orgMap.put(org.getStaticId(), org);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n logger.error(e.getMessage());\n } finally {\n try {\n rs.close();\n rs = null;\n } catch (SQLException se) {\n // ignore\n }\n }\n }",
"public MultiCache () {\n super();\n this.locals = new ArrayList<Coordinates>();\n this.stage = 0;\n }",
"public IntMap()\r\n {\r\n this(16);\r\n }",
"public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}",
"@SuppressWarnings(\"static-access\")\n\tpublic SequenceMap() {\n\t\tthis.seqNumbers = new HashMap<>();\n\t}",
"public void initConfigurations() {\r\n for (int configId = 0; configId < savedConfigurations.length; configId++) {\r\n if (configId == InterfaceConfiguration.HD_TEXTURES.getId()) {\r\n continue;\r\n }\r\n int value = savedConfigurations[configId];\r\n if (value != 0) {\r\n set(configId, value, false);\r\n }\r\n }\r\n }",
"public static void startCaching() {\n\t\t/*\n\t\t * component caching happens if the collection exists\n\t\t */\n\t\tfor (ComponentType aType : ComponentType.values()) {\n\t\t\tif (aType.preLoaded == false) {\n\t\t\t\taType.cachedOnes = new HashMap<String, Object>();\n\t\t\t}\n\t\t}\n\t}",
"public void init(BackingMapManagerContext context);",
"public int allocate_map() {\r\n\t\tp_id = new int[idSize];\r\n\t\tif (p_id == null)\r\n\t\t\treturn -1;\r\n\t\telse\r\n\t\t\treturn 1;\r\n\t}",
"public IdentificationSet(int initialCapacity, float loadFactor) {\n map = new HashMap<>(initialCapacity, loadFactor);\n init();\n }",
"private final void initializeCache() {\r\n try {\r\n UserIndex index = makeUserIndex(this.dbManager.getUserIndex());\r\n for (UserRef ref : index.getUserRef()) {\r\n String email = ref.getEmail();\r\n String userString = this.dbManager.getUser(email);\r\n User user = makeUser(userString);\r\n this.updateCache(user);\r\n }\r\n }\r\n catch (Exception e) {\r\n server.getLogger().warning(\"Failed to initialize users \" + StackTrace.toString(e));\r\n }\r\n }",
"public IdentificationSet(int initialCapacity) {\n map = new HashMap<>(initialCapacity);\n init();\n }",
"public void setUp()\n {\n map = new Map(5, 5, null);\n }",
"private void populateGlobalLibraryMap(@NotNull BuildController controller) {\n for (VariantOnlyModuleModel moduleModel : myModuleModelsById.values()) {\n File buildId = moduleModel.getBuildId();\n if (!myLibraryMapsByBuildId.containsKey(buildId)) {\n GlobalLibraryMap map = controller.findModel(moduleModel.getGradleProject(), GlobalLibraryMap.class);\n if (map != null) {\n myLibraryMapsByBuildId.put(buildId, map);\n }\n }\n }\n }",
"private void init() {\n\n\t\tinitializeLists();\n\t\tcreateTiles();\n\t\tcreateTileViews();\n\t\tshuffleTiles();\n\n\t}",
"public PhoneCommManager() {\n downloadedProjectAssets = new ConcurrentHashMap<String, String>();\n }",
"private ClassCache1 (final Class[] ks, \n final IFn[] vs,\n final Map m) {\n classes0 = ks;\n methods = vs; \n nonlinear = m; }",
"public Project(Long projectId) {\n this.id = projectId;\n this.groups = new HashSet<>();\n this.nextGroupId = 0L;\n this.symbols = new HashSet<>();\n this.nextSymbolId = 1L;\n\n this.userId = 0L;\n this.mirrorUrls = \"\";\n }",
"private void initializeMaps(){\n\t\t\n\t\tsteps = new HashMap<Integer, Set<PlanGraphStep>>();\n\t\tfacts = new HashMap<Integer, Set<PlanGraphLiteral>>();\n\t\tinconsistencies = new HashMap<Integer, Set<LPGInconsistency>>();\n\t\t\n\t\tfor(int i = 0; i <= maxLevel; i++) {\n\t\t\tsteps.put(i, new HashSet<PlanGraphStep>());\n\t\t\tfacts.put(i, new HashSet<PlanGraphLiteral>());\n\t\t\tinconsistencies.put(i, new HashSet<LPGInconsistency>());\n\t\t}\n\t\t\n\t\t/* This level holds only the special action end which has the goals as preconditions */\n\t\tsteps.put(maxLevel + 1, new HashSet<PlanGraphStep>());\n\t}",
"public void cacheId(final String id, IConstruct c) {\r\n\t\tif (ids == null) {\r\n\t\t\tids = new TreeBidiMap();\r\n\t\t}\r\n\t\tids.put(id, c);\r\n\t}",
"private void populateMaps() {\n\t\t//populate the conversion map.\n\t\tconvertMap.put(SPACE,(byte)0);\n\t\tconvertMap.put(VERTICAL,(byte)1);\n\t\tconvertMap.put(HORIZONTAL,(byte)2);\n\n\t\t//build the hashed numbers based on the training input. 1-9\n\t\tString trainingBulk[] = new String[]{train1,train2,train3,\"\"};\n\t\tbyte[][] trainer = Transform(trainingBulk);\n\t\tfor(int i=0; i < 9 ;++i) {\n\t\t\tint val = hashDigit(trainer, i);\n\t\t\tnumbers.put(val,i+1);\n\t\t}\n\t\t//train Zero\n\t\ttrainingBulk = new String[]{trainz1,trainz2,trainz3,\"\"};\n\t\tint zeroVal = hashDigit(Transform(trainingBulk), 0);\n\t\tnumbers.put(zeroVal,0);\n\n\n\t}",
"public IdentityMap(int size) {\n maxSize = size;\n searchKey = new CacheKey(new Vector(1), null, null);\n }",
"public IdentificationSet() {\n map = new HashMap<>();\n init();\n }",
"public Map<T, V> populateMap() {\n Map<T, V> map = new HashMap<>();\n for (int i = 0; i < entryNumber; i++) {\n cacheKeys[i] = (T) Integer.toString(random.nextInt(1000000000));\n String key = cacheKeys[i].toString();\n map.put((T) key, (V) Integer.toString(random.nextInt(1000000000)));\n }\n return map;\n }",
"public void init()\n {\n this.tripDict = new HashMap<String, Set<Trip>>();\n this.routeDict = new HashMap<String, Double>();\n this.tripList = new LinkedList<Trip>();\n this.computeAllPaths();\n this.generateDictionaries();\n }",
"private void initMapNameMapping() {\n mMapNameMapping.clear();\n\n // Load the name mapping from the config\n ConfigurationSection mappingSection = getConfig().getConfigurationSection(MappingSectionName);\n if (mappingSection != null) {\n // Load and check the mapping found in the config\n Map<String, Object> configMap = mappingSection.getValues(false);\n for (Map.Entry<String, Object> entry : configMap.entrySet()) {\n mMapNameMapping.put(entry.getKey(), (String) entry.getValue());\n }\n } else {\n getLogger().warning(String.format(\"[%s] found no configured mapping, creating a default one.\", mPdfFile.getName()));\n }\n\n // If there are new worlds in the server add them to the mapping\n List<World> serverWorlds = getServer().getWorlds();\n for (World w : serverWorlds) {\n if (!mMapNameMapping.containsKey(w.getName())) {\n mMapNameMapping.put(w.getName(), w.getName());\n }\n }\n\n // Set the new mapping in the config\n getConfig().createSection(MappingSectionName, mMapNameMapping);\n }",
"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}",
"@Override\n public void initialize() {\n emissary.core.MetadataDictionary.initialize();\n }",
"public TeamCacheManager() {\r\n }"
] | [
"0.5971669",
"0.5744237",
"0.5692017",
"0.56738657",
"0.56026906",
"0.5497261",
"0.5486443",
"0.53997785",
"0.5397525",
"0.53897095",
"0.53752214",
"0.5371435",
"0.5359326",
"0.53472656",
"0.53337014",
"0.53315437",
"0.5286094",
"0.52835035",
"0.52677214",
"0.5262994",
"0.5251395",
"0.5237612",
"0.52323574",
"0.521654",
"0.51884466",
"0.5182509",
"0.5182509",
"0.5182509",
"0.5156555",
"0.5150135",
"0.514204",
"0.5139996",
"0.51170564",
"0.5110719",
"0.51008856",
"0.50867087",
"0.5065904",
"0.5047898",
"0.5044586",
"0.5041004",
"0.5038469",
"0.50333923",
"0.50215065",
"0.5010549",
"0.50049716",
"0.49960065",
"0.49893582",
"0.49877718",
"0.49740604",
"0.4956984",
"0.49563742",
"0.4951453",
"0.4949447",
"0.4940541",
"0.49400434",
"0.49342173",
"0.49342173",
"0.4933062",
"0.4919249",
"0.49111652",
"0.49109936",
"0.49096212",
"0.49066383",
"0.48987433",
"0.48765874",
"0.48761457",
"0.48684245",
"0.48618704",
"0.48476085",
"0.48472005",
"0.48442432",
"0.48300168",
"0.4828085",
"0.4826247",
"0.48228765",
"0.4822571",
"0.4813494",
"0.480401",
"0.48035517",
"0.4801953",
"0.4798337",
"0.47961658",
"0.47955507",
"0.47873044",
"0.47839916",
"0.47836772",
"0.47746637",
"0.47720113",
"0.4771956",
"0.47672117",
"0.47606897",
"0.47525755",
"0.47522002",
"0.47431222",
"0.47327864",
"0.47317305",
"0.47286618",
"0.47281137",
"0.47279626",
"0.47228086"
] | 0.6955385 | 0 |
a game event has occurred | public void notify(IGameEvent event)
{
switch (event.getType())
{
case GameEvent.GAME_LOST_EVENT:
GameLostEvent gameLostEvent = (GameLostEvent)event;
destroy();
//TODO:Show "You lose" message here
//redirect to main menu on loser
Intent youLoseIntent = new Intent(this,YouLoseActivity.class);
Bundle bundle = new Bundle();
bundle.putInt("gameScore",gameLostEvent.getScore() );
youLoseIntent.putExtras(bundle);
startActivityForResult(youLoseIntent, 0);
break;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void gameEnded() {}",
"void onNewGame();",
"public abstract void onLostGame();",
"public void handleNewGameEvent(ActionEvent event) {\n\t\tgame.startNewGame();\n\t}",
"void gameStarted();",
"void gameStarted();",
"public abstract void onSolvedGame();",
"void notifyNewGame();",
"void gameFinished();",
"@Override\r\n\tpublic void onBattleEvent(BattleEvent e) {\n\t\t\r\n\t}",
"void onEDHGameStart();",
"boolean isGameComplete();",
"@Override\r\n\tpublic void updateGameFinished() {\n\t\t\r\n\t}",
"public void gameOver() {\r\n\t\tgameFrame.gameOver();\r\n\t\tnotifyViews();\r\n\t}",
"@Override\n public void gameChanged(GameChangedEvent<M> evt) {\n if (controller.isDone() && !winnerDialogShown_) {\n winnerDialogShown_ = true;\n showWinnerDialog();\n }\n else if (!winnerDialogShown_) {\n super.gameChanged(evt);\n }\n }",
"public void notifyGameOver() {\n\t\tgameOver = true;\n\t}",
"private void gameOver() {\n\t\t\n\t}",
"private void randomEventPhase() {\n ClickObserver.getInstance().setTerrainFlag(\"RandomEvents\");\n ArrayList<Piece> randomEvents = new ArrayList<Piece>();\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n Game.getHelpText().setText(\"Random Event Phase. Players may now play 1 Random Event from their racks.\");\n }\n });\n\n try { Thread.sleep(2000); } catch(Exception e) { return; }\n\n for (Player p : playerList) {\n player = p;\n doneClicked = false;\n ClickObserver.getInstance().setActivePlayer(player);\n\n pause();\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n TheCupGUI.update();\n Game.getRackGui().setOwner(player);\n }\n });\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n Game.getHelpText().setText(player.getName() + \", you may now play one of your Random Events.\");\n }\n });\n\n while (isPaused) {\n while (!doneClicked) {\n if (randomEventFlag) {\n System.out.println(randomEvent.getName());\n ((RandomEvent)randomEvent).performAbility();\n break;\n }\n \n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n randomEventFlag = false;\n randomEvent = null;\n }\n ClickObserver.getInstance().setTerrainFlag(\"\"); \n }",
"@Override\n\tpublic void gameStopped() {\n\t}",
"@Override\n\tpublic void onGameStopped(String arg0, String arg1) {\n\t\t\n\t}",
"void gameResumed();",
"@Override\n\tpublic void OnGameEnd() {\n\t\tsuper.OnGameEnd();\n\t}",
"public void addGameEventListener(GameEventListener gameEventListener);",
"void onStartGameRequested();",
"public void handleEvent(PlayerPosition event)\r\n {\r\n if(m_active)\r\n {\r\n String name = m_botAction.getPlayerName(event.getPlayerID());\r\n\r\n if(event.isInSafe())\r\n {\r\n int ship = m_botAction.getPlayer(event.getPlayerID()).getShipType();\r\n int freq = m_botAction.getPlayer(event.getPlayerID()).getFrequency();\r\n boolean delayExceeded = true;\r\n\r\n if(delaySeconds > 0)\r\n {\r\n long currentTime = System.currentTimeMillis();\r\n\r\n if(m_entryTimes.containsKey(name))\r\n {\r\n long entryTime = m_entryTimes.get(name);\r\n int delta = (int)(currentTime - entryTime);\r\n\r\n if(!enableMS) {\r\n // Do the delay in seconds.\r\n delta /= Tools.TimeInMillis.SECOND;\r\n }\r\n\r\n if(delta < delaySeconds)\r\n {\r\n delayExceeded = false;\r\n }\r\n else\r\n {\r\n m_entryTimes.remove(name);\r\n }\r\n }\r\n else\r\n {\r\n m_entryTimes.put(name, currentTime);\r\n delayExceeded = false;\r\n }\r\n }\r\n\r\n if(delayExceeded)\r\n {\r\n if(specPlayer)\r\n {\r\n m_botAction.spec(event.getPlayerID());\r\n m_botAction.spec(event.getPlayerID());\r\n\r\n if(!speccedMsg.equalsIgnoreCase(\"none\")) {\r\n if(speccedSound != 0)\r\n m_botAction.sendArenaMessage(name + \" \" + speccedMsg, speccedSound);\r\n else\r\n m_botAction.sendArenaMessage(name + \" \" + speccedMsg);\r\n }\r\n }\r\n\r\n if(changeShip && ship != targetShip)\r\n {\r\n m_botAction.setShip(event.getPlayerID(), targetShip);\r\n\r\n if(!shipChgMsg.equalsIgnoreCase(\"none\")) {\r\n if(shipSound != 0)\r\n m_botAction.sendArenaMessage(name + \" \" + shipChgMsg, shipSound);\r\n else\r\n m_botAction.sendArenaMessage(name + \" \" + shipChgMsg);\r\n }\r\n\r\n }\r\n\r\n if(changeFreq && freq != targetFreq)\r\n {\r\n m_botAction.setFreq(event.getPlayerID(), targetFreq);\r\n\r\n if(!freqChgMsg.equalsIgnoreCase(\"none\")) {\r\n if(freqSound != 0)\r\n m_botAction.sendArenaMessage(name + \" \" + freqChgMsg, freqSound);\r\n else\r\n m_botAction.sendArenaMessage(name + \" \" + freqChgMsg);\r\n }\r\n }\r\n }\r\n }\r\n else if(delaySeconds > 0)\r\n {\r\n m_entryTimes.remove(name);\r\n }\r\n }\r\n }",
"@Override\n public void gameStateChanged()\n {\n update();\n \n // check for \"game over\" or \"game won\"\n if ( game.getState() == GameState.LOST )\n {\n JOptionPane.showMessageDialog(\n this, \n game.getLoseMessage(), \"Game over!\",\n JOptionPane.INFORMATION_MESSAGE);\n game.createNewGame();\n }\n else if ( game.getState() == GameState.WON )\n {\n JOptionPane.showMessageDialog(\n this, \n game.getWinMessage(), \"Well Done!\",\n JOptionPane.INFORMATION_MESSAGE);\n game.createNewGame();\n }\n else if (game.messageForPlayer())\n {\n JOptionPane.showMessageDialog(\n this, \n game.getPlayerMessage(), \"Important Information\",\n JOptionPane.INFORMATION_MESSAGE); \n }\n }",
"protected void forfeitClicked(ActionEvent e) {\n if (board.ended){\n message.setText(\"The game is ended. Please start new game\");\n return ;\n }\n int curturn = board.turn;\n if (curturn == 0){\n playerScores[ 1- blackPlayer] ++;\n }else\n playerScores[blackPlayer] ++;\n refreshScore();\n }",
"@Override\n\tpublic void onGameStarted(String arg0, String arg1, String arg2) {\n\t\t\n\t}",
"protected abstract boolean isGameFinished();",
"@Override\n public void handle(Event event) {\n secondPlayer();\n }",
"@Override\n\tpublic void onEnter(Game game) {\n\t\t\n\t}",
"boolean hasGameEndedResponse();",
"@SubscribeEvent(receiveCanceled = true)\n public void onEvent(RenderGameOverlayEvent.Post event) {\n switch (event.getType()) {\n case HEALTH:\n\n break;\n default: // If it's not one of the above cases, do nothing\n break;\n }\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n controller.gameOver();\n }",
"public void pressNewGame() {\n }",
"@Override\n public void clicked(InputEvent event, float x, float y) {\n audioManager.playEvilBunnieGod();\n audioManager.setNewState(State.IDLE);\n manager.setScreen(new GameplayScreen(manager, 1));\n }",
"private boolean eventOccured(History.HistoryView stateHistory){\n\t\tif(step-lastEvent >= maxStepInterval){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\t// Check deaths of our footmen\n\t\t\tboolean event = deathOccured(stateHistory, playernum);\n\t\t\t// Check deaths of enemy footmen\n\t\t\tevent = event || deathOccured(stateHistory, playernum);\n\t\t\t// Check if footmen has been hurt\n\t\t\tevent = event || hasBeenDamaged(stateHistory, playernum);\n\t\t\treturn event;\n\t\t}\n\t}",
"public void add(GameEvent e);",
"public void notifyGameEnded() {\n this.myStatusString.setText(\"Game Ended\");\n final LineBorder line = new LineBorder(Color.RED, 2, true);\n this.myStatusString.setBorder(line);\n this.myStatusString.setForeground(Color.RED);\n this.myStatusString.setFont(new Font(FONT_TIMES, Font.BOLD, NUM_FONT_SIZE_BIG));\n \n }",
"public void playerLost()\r\n {\r\n \r\n }",
"public void checkGame() {\n\n\t}",
"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 }",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"public static interface GameEventListener {\n\t\tvoid onGameStarted(); // Called on game start\n\t\tvoid onGameEnded(Chess.Color winner); // Called on game end, winner is null if stalemate\n\t\tvoid onMoveTaken(Piece captured); // Called after a move is taken, passes captured piece as arg\n\t\tvoid onCheck(Chess.Color inCheckColor); // Called when inCheckColor becomes in check\n\t}",
"public void onTurnOver() {}",
"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 }",
"void onGameEnded(Chess.Color winner);",
"private void gameEnded() {\n\t\ttimer.stop();\n\t\tlevelStartTimer.stop();\n\n\t\tfinal String name = JOptionPane.showInputDialog(null,\n\t\t\t\t\"Please enter you name: \", \"The game has ended.\", 1);\n\t\tif (name != null) {\n\t\t\tThread thread = new Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tHighScoreDAO highScoreDAO = HighScoreDAOImpl.getInstance();\n\t\t\t\t\tList<HighScore> highScores = highScoreDAO.getAllHighScore();\n\t\t\t\t\thighScore.setName(name);\n\t\t\t\t\thighScore.setDate(new Date());\n\t\t\t\t\thighScores.add(highScore);\n\t\t\t\t\tCollections.sort(highScores);\n\t\t\t\t\thighScoreDAO.deleteAllHighScore();\n\t\t\t\t\tif (highScores.size() > 10)\n\t\t\t\t\t\tfor (int i = 0; i < 10; ++i)\n\t\t\t\t\t\t\thighScoreDAO.addHighScore(highScores.get(i));\n\t\t\t\t\telse\n\t\t\t\t\t\tfor (HighScore hs : highScores)\n\t\t\t\t\t\t\thighScoreDAO.addHighScore(hs);\n\t\t\t\t}\n\t\t\t};\n\t\t\tthread.start();\n\t\t}\n\n\t\t// fires a new ActionEvent indicating that the game has ended\n\t\tlistener.actionPerformed(new ActionEvent(this,\n\t\t\t\tActionEvent.RESERVED_ID_MAX + 1, \"endgame\"));\n\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tif (game.getPlayerID() == -1)\n\t\t\t{\n\t\t\t\tclearMsgArea();\n\t\t\t\tgame.makeConnection();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintMsg(\"You're already in the game.\\n\");\n\t\t\t}\n\t\t\t/*\n\t\t\tBigTwoDeck ndeck = new BigTwoDeck();\n\t\t\tndeck.shuffle();\n\t\t\tgame.start(ndeck);\n\t\t\t*/\n\n\t\t}",
"public void gameComplete() {\n if (soundToggle == true) {\n gameComplete.start();\n } // if\n }",
"protected boolean hasGameStarted() {\r\n return super.hasGameStarted();\r\n }",
"public void Gamefinished()\n\t\t{\n\t\t\tplayers_in_game--;\n\t\t}",
"public void handleGameWin() {\n\t\tint packId = mCurrentLevel.getPackId();\n\t\tint levelNum = mCurrentLevel.getLevelNum();\n\t\t\n\t\tList<PackEntity> allEpisode = GameDB.getInstance().getAllEpisodes();\n\t\t\n\t\tif (allEpisode == null || allEpisode.size() == 0) {\n\t\t\tLog.e(TAG, \"allepisode is null\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tPackEntity episode = allEpisode.get(packId - 1);\n\t\t\n\t\tGameDB.getInstance().updateCompleteLevel(packId, levelNum);\n\t\t\n\t\tif (levelNum < episode.getNumberOfLevel()) {\n\t\t\tSceneManager.getInstance().showWinLevelMenu();\n\t\t}\n\t\telse {\n\t\t\t//unlock next episode\n\t\t\tif (packId < allEpisode.size()) {\n\t\t\t\tGameDB.getInstance().unlockEpisode(packId + 1);\n\t\t\t\tSceneManager.getInstance().showWinEpisodeMenu();\n\t\t\t}\n\t\t\t//game win\n\t\t\telse {\n\t\t\t\tSceneManager.getInstance().showWinGameScreen();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//play win sound\n\t\tGameManager.getInstance().playGameWinSound();\n\t}",
"private void tick(){\n \n this.village.tick();\n if(this.village.getTurn() > 1){\n this.lastEventTextBox.setText(this.currentEvent.getEventResultText());\n }\n this.currentEvent = this.getNewEvent();\n this.updateUIAfterTick();\n \n }",
"@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}",
"public void theGameMenuClicked() {\n System.out.println(\"THE GAME (you just lost it)\");\n }",
"private void currentGamesBtnListener() {\n currentGamesBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new CurrentGamesScreen(game));\n }\n });\n }",
"public void isGameOver() { \r\n myGameOver = true;\r\n myGamePaused = true; \r\n }",
"public void eventManager(Event event){\n\t\tif(event.type == Event.Type.CLOSED){\n\t\t\t//System.out.println(\"The user pressed the close button!\");\n\t\t\tLightCore.window.close();\n\t\t}\n\t\telse if(event.type == Event.Type.MOUSE_BUTTON_PRESSED){\n\t\t\t\n\t\t\tJFileChooser dialog;\n\t\t\tLoadSaveFilter filter;\n\t\t\tMouseButtonEvent mouse = event.asMouseButtonEvent();\n \t \tCellPosition pos = isInside(mouse.position);\n \t \t\n \t \tif(mouse.button == Mouse.Button.LEFT){\n\t \t \tif(LightCore.soundButton.isInside(mouse.position)){\n\t\t\t\t\tif(LightCore.sound.getStatus() == SoundSource.Status.PLAYING)\n\t\t\t\t\t\tLightCore.sound.pause();\n\t\t\t\t\telse\n\t\t\t\t\t\tLightCore.sound.play();\n\t\t\t\t\tLightCore.soundButton.changeTexture();\n\t\t\t\t\ttoDisplay.set(LightCore.soundButton.getId(), LightCore.soundButton.getSprite());\n\t\t\t\t}\n \t \t}\n \t \t\n \t \tswitch(getEvent(mouse)){\n\t\t\t\tcase GRID_ADD:\n\t\t\t\t\tif(pos.isFound()){\n\t\t\t\t\t\tif(robot){\n\t\t\t\t\t\t\tif(!(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof EmptyCell))\n\t\t\t\t\t\t\t\tdisplay.displayRobot(pos.getLine(), pos.getColumn(), originX, originY);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t//System.out.println(\"Add cube on : \\t\\tLine : \" + pos.getLine() + \", column : \" + pos.getColumn() + \", level : \" + pos.getLevel());\n\t\t \t \t\t\tif(light){\n\t\t \t \t\t\t\tif(!(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof TeleportCell) \n\t\t \t \t\t\t\t\t\t\t&& !(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof ColoredCell)\n\t\t \t \t\t\t\t\t\t\t&& !(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof LightableCell)){\n\t\t\t \t \t\t\t\tif(pos.getLevel() > -1){\n\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.removeCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t \t \t\t\t\t\tLightableCell cell = new LightableCell(pos.getLine(), pos.getColumn(), pos.getLevel());\n\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t \t \t\t\t\t}\n\t\t\t \t \t\t\t\telse{\n\t\t\t \t \t\t\t\t\tLightableCell cell = new LightableCell(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t \t \t\t\t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1, true, false);\n\t\t\t \t \t\t\t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\t\t\t \t \t\t\t\t}\n\t\t \t \t\t\t\t}\n\t\t \t \t\t\t}\n\t\t \t \t\t\telse if(teleport){\n\t\t \t \t\t\t\tif(nextColour != null){\n\t\t \t \t\t\t\t\tif(!(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof TeleportCell) \n\t\t \t \t\t\t\t\t\t\t&& !(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof ColoredCell)\n\t\t \t \t\t\t\t\t\t\t&& !(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof LightableCell)){\n\t\t\t\t\t \t \t\t\tif(!firstTeleport){\n\t\t\t\t\t\t\t\t \t \tdisableAllButton();\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tteleport1 = new Position(pos.getLine(), pos.getColumn());\n\t\t\t\t\t\t\t \t \t\tteleport2 = null;\n\t\t\t\t \t \t\t\t\t}\n\t\t\t\t \t \t\t\t\n\t\t\t\t \t \t\t\t\tif(pos.getLevel() > -1){\n\t\t\t\t\t \t \t\t\t\tTeleportCell cell = new TeleportCell(pos.getLine(), pos.getColumn(), pos.getLevel(), -1, -1, nextColour);\n\t\t\t\t\t \t \t\t\t\tdisplay.gridDisplay.removeCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t\t\t \t \t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t\t \t \t\t\t\t}\n\t\t\t\t\t \t \t\t\t\telse{\n\t\t\t\t\t \t \t\t\t\t\tTeleportCell cell = new TeleportCell(pos.getLine(), pos.getColumn(), pos.getLevel()+1, -1, -1, nextColour);\n\t\t\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t\t \t \t\t\t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1, true, false);\n\t\t\t\t\t \t \t\t\t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\t\t\t\t\t \t \t\t\t\t}\n\t\t\t\t \t \t\t\t\t\n\t\t\t\t\t \t \t\t\tif(!firstTeleport)\n\t\t\t\t\t \t \t\t\t\tfirstTeleport = true;\n\t\t\t\t\t \t \t\t\telse if(firstTeleport && (pos.getLine() != teleport1.getX() || pos.getColumn() != teleport1.getY())){\n\t\t\t\t\t \t \t\t\t\tenableAllButton();\n\t\t\t\t\t\t\t \t \t\tfirstTeleport = false;\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tteleport2 = new Position(pos.getLine(), pos.getColumn());\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\t// Get teleport cells\n\t\t\t\t\t\t\t \t \t\tTeleportCell teleportCell1 = (TeleportCell)display.gridDisplay.grid.getCell(teleport1.getX(), teleport1.getY());\n\t\t\t\t\t\t\t \t \t\tTeleportCell teleportCell2 = (TeleportCell)display.gridDisplay.grid.getCell(teleport2.getX(), teleport2.getY());\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tteleportCell1.setDestXY(teleport2.getX(), teleport2.getY());\n\t\t\t\t\t\t\t \t \t\tteleportCell2.setDestXY(teleport1.getX(), teleport1.getY());\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tdisplay.gridDisplay.grid.setCell(teleportCell1);\n\t\t\t\t\t\t\t \t \t\tdisplay.gridDisplay.grid.setCell(teleportCell2);\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tusedColour.add(nextColour);\n\t\t\t\t\t\t\t \t \t\tnextColour();\n\t\t\t\t \t \t\t\t\t}\n\t\t \t \t\t\t\t\t}\n\t\t \t \t\t\t\t}\n\t\t \t \t\t\t}\n\t\t \t \t\t\telse{\n\t\t\t \t \t\t\tif(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof NormalCell \n\t\t\t \t \t\t\t\t\t|| display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof EmptyCell\n\t\t\t \t \t\t\t\t\t|| (display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof ColoredCell && (blue || orange || purple || red))){\n\t\t\t \t \t\t\t\tif(blue || orange || purple || red){\n\t\t\t\t \t \t\t\t\tif(pos.getLevel() > -1){\n\t\t\t\t \t \t\t\t\t\tColoredCell cell = new ColoredCell(pos.getLine(), pos.getColumn(), pos.getLevel(), colour);\n\t\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.removeCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t \t \t\t\t\t}\n\t\t\t\t \t \t\t\t\telse{\n\t\t\t\t \t \t\t\t\t\tColoredCell cell = new ColoredCell(pos.getLine(), pos.getColumn(), pos.getLevel()+1, colour);\n\t\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t \t \t\t\t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1, true, false);\n\t\t\t\t \t \t\t\t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\t\t\t\t \t \t\t\t\t}\n\t\t\t \t \t\t\t\t\t\n\t\t\t \t \t\t\t\t}\n\t\t\t \t \t\t\t\telse{\n\t\t\t \t \t\t\t\t\tNormalCell cell = new NormalCell(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t\t \t \t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t \t \t\t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1, true, false);\n\t\t\t \t \t\t\t\t}\t\t\t \t \t\t\t\t\n\t\t\t \t \t\t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\t\t\t \t \t\t\t}\n\t\t \t \t\t\t}\n\t\t \t \t\t\t\n\t\t \t \t\t\tif(pos.getColumn() == Robot.wheatley.getColumn() && pos.getLine() == Robot.wheatley.getLine() && pos.getLevel() > -1)\n\t\t \t \t\t\t\tdisplay.displayRobot(pos.getLine(), pos.getColumn(), originX, originY);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase GRID_DELETE:\n\t\t\t\t\tif(pos.isFound() && pos.getLevel() > -1){\n\t\t\t\t\t\tCell cell = display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(\"Remove cube on : \\tLine : \" + pos.getLine() + \", column : \" + pos.getColumn() + \", level : \" + pos.getLevel());\n\t \t \t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel(), false, false);\n\t \t \t\t\tdisplay.gridDisplay.removeCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t \t \t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\t \t \t\t\t\n\t\t\t\t\t\tif(cell instanceof TeleportCell){\n\t\t\t\t\t\t\tTeleportColour currentTeleportColour = ((TeleportCell)cell).getColour();\n\t\t\t\t\t\t\tif(firstTeleport && currentTeleportColour.equals(nextColour)){\n\t\t\t\t\t\t\t\tfirstTeleport = false;\n\t\t\t\t\t\t\t\tenableAllButton();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(((TeleportCell)cell).getDestX() != -1 && ((TeleportCell)cell).getDestY() != -1){\n\t\t\t\t\t\t\t\tTeleportCell newCell = (TeleportCell)display.gridDisplay.grid.getCell(((TeleportCell)cell).getDestX(), ((TeleportCell)cell).getDestY());\n\t\t\t\t\t\t\t\tdisplay.anim.addRemoveCube(newCell.getX(), newCell.getY(), newCell.getHeight(), false, false);\n\t\t\t \t \t\t\tdisplay.gridDisplay.removeCube(newCell.getX(), newCell.getY(), newCell.getHeight()+1);\n\t\t\t \t \t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tusedColour.remove(currentTeleportColour);\n\t\t\t\t\t\t\tif(currentTeleportColour.equals(nextColour))\n\t\t\t\t\t\t\t\tnextColour();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(pos.getColumn() == Robot.wheatley.getColumn() && pos.getLine() == Robot.wheatley.getLine())\n\t\t\t\t\t\t\tif(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof EmptyCell)\n\t\t\t\t\t\t\t\tdisplay.deleteRobot();\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tdisplay.displayRobot(pos.getLine(), pos.getColumn(), originX, originY);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase LIGHT:\n\t\t\t\t\tlightButton.changeTexture();\n \t \t\t\t\ttoDisplay.set(lightButton.getId(), lightButton.getSprite());\n \t \t\t\t\t\n \t \t\t\t\tresetButton(EditorEvent.LIGHT);\n \t \t\t\t\n\t \t \t\tlight = !light;\n\t \t \t\tif(!light)\n\t \t \t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SAVE:\n\t\t\t\t\tif(display.robotIsDisplayed){\n\t\t\t\t\t\tsaveButton.changeTexture();\n\t\t\t\t\t\ttoDisplay.set(saveButton.getId(), saveButton.getSprite());\n\t\t\t\t\t\tLightCore.window.clear(Color.WHITE);\n\t\t\t\t\t\tdisplay();\n\t\t\t\t\t\tLightCore.window.display();\n\t\t\t\t\t\t\n\t\t\t\t\t\tdialog = new JFileChooser();\n\t\t\t\t\t\t\n\t\t\t\t\t\tfilter = new LoadSaveFilter(new String[]{\"json\"}, \"Fichier texte au format JSON (*.json)\");\n\t\t\t\t\t\tdialog.setAcceptAllFileFilterUsed(false);\n\t\t\t\t\t\tdialog.addChoosableFileFilter(filter);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (dialog.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t\t File file = dialog.getSelectedFile();\n\t\t\t\t\t\t \n\t\t\t\t\t\t String fileName = file.getAbsolutePath();\n\t\t\t\t\t\t \n\t\t\t\t\t\t int i = fileName.lastIndexOf(\".\");\n\t\t\t\t\t\t if(i != -1 && fileName.charAt(i-1) != '/'){\n\t\t\t\t\t\t\t fileName = fileName.substring(0, i); \n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t // Print a selection menu for list of actions\n\t\t\t\t\t\t ActionSelector selec = new ActionSelector();\n\t\t\t\t\t\t while(!selec.isValid && !selec.isAborted){\n\t\t\t\t\t\t\t System.out.print(\"\");\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t if(selec.isValid){\n\t\t\t\t\t\t\t ArrayList<_Executable> listOfActions = new ArrayList<_Executable>();\n\t\t\t\t\t\t\t if(selec.checkForward.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Forward());\n\t\t\t\t\t\t\t if(selec.checkJump.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Jump());\n\t\t\t\t\t\t\t if(selec.checkTurnRight.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Turn(RelativeDirection.RIGHT, Colour.WHITE));\n\t\t\t\t\t\t\t if(selec.checkTurnLeft.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Turn(RelativeDirection.LEFT, Colour.WHITE));\n\t\t\t\t\t\t\t if(selec.checkWash.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Wash());\n\t\t\t\t\t\t\t if(selec.checkClone.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Clone());\n\t\t\t\t\t\t\t if(selec.checkBreak.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Break());\n\t\t\t\t\t\t\t listOfActions.add(new Light());\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t int numbOfMain = (selec.mainLimit.getText().equals(\"\"))? 12 : Integer.parseInt(selec.mainLimit.getText());\n\t\t\t\t\t\t\t int numbOfProc1 = (selec.p1Limit.getText().equals(\"\"))? 0 : Integer.parseInt(selec.p1Limit.getText());\n\t\t\t\t\t\t\t int numbOfProc2 = (selec.p2Limit.getText().equals(\"\"))? 0 : Integer.parseInt(selec.p2Limit.getText());\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t Level level = new Level(display.gridDisplay.grid, listOfActions, selec.checkP1.getState(), selec.checkP2.getState(), numbOfMain, numbOfProc1, numbOfProc2);\n\t\t\t\t\t\t\t ParserJSON.serialize(fileName+\".json\", level);\n\t\t\t\t\t\t\t display.gridDisplay.grid.printGrid();\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t selec.dispose();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsaveButton.changeTexture();\n\t\t\t\t\t\ttoDisplay.set(saveButton.getId(), saveButton.getSprite());\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Le robot n'est pas affiché, impossible de sauvegarder.\", \"Erreur\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase LOAD:\n\t\t\t\t\tloadButton.changeTexture();\n\t\t\t\t\ttoDisplay.set(loadButton.getId(), loadButton.getSprite());\n\t\t\t\t\tLightCore.window.clear(Color.WHITE);\n\t\t\t\t\tdisplay();\n\t\t\t\t\tLightCore.window.display();\n\t\t\t\t\t\n\t\t\t\t\tdialog = new JFileChooser();\n\t\t\t\t\t\n\t\t\t\t\tfilter = new LoadSaveFilter(new String[]{\"json\"}, \"Fichier texte au format JSON (*.json)\");\n\t\t\t\t\tdialog.setAcceptAllFileFilterUsed(false);\n\t\t\t\t\tdialog.addChoosableFileFilter(filter);\n\t\t\t\t\t\n\t\t\t\t\tif (dialog.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t File file = dialog.getSelectedFile();\n\t\t\t\t\t Grid toOpen = ParserJSON.deserialize(file.getAbsolutePath()).getGrid();\n\t\t\t\t\t originX = (GRID_DISPLAY_SIZE/2)+MARGIN_LEFT;\n\t\t\t\t\t originY = (WINDOW_HEIGHT/2-MARGIN_LEFT-(toOpen.getSize()*Textures.cellTexture.getSize().y)/2);\n\t\t\t\t\t display.reinit(toOpen, originX, originY);\n\t\t\t\t\t toDisplay = new ArrayList<Drawable>();\n\t\t\t\t\t canva = new CanvaDisplay(toOpen.getSize(), originX, originY);\n\t\t\t\t\t initConstantDisplay();\n\t\t\t\t\t \n\t\t\t\t\t //System.out.println(file.getAbsolutePath());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tloadButton.changeTexture();\n\t\t\t\t\t\ttoDisplay.set(loadButton.getId(), loadButton.getSprite());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase ROBOT:\n\t\t\t\t\trobotButton.changeTexture();\n \t \t\t\t\ttoDisplay.set(robotButton.getId(), robotButton.getSprite());\n \t \t\t\t\t\n \t \t\t\t\tresetButton(EditorEvent.ROBOT);\n\t\t\t\t \t\n\t \t \t\trobot = !robot;\n\t \t \t\tif(!robot)\n\t \t \t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase HOME:\n\t\t\t\t\tLightCore.menu = true;\n\t\t\t\t\tLightCore.editor = false;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TURN_LEFT:\n\t\t\t\t\tdisplay.rotate(0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase TURN_RIGHT:\n\t\t\t\t\tdisplay.rotate(1);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TURN_ROBOT_LEFT:\n\t\t\t\t\tdisplay.rotateRobot(RelativeDirection.LEFT);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TURN_ROBOT_RIGHT:\n\t\t\t\t\tdisplay.rotateRobot(RelativeDirection.RIGHT);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SPLASH_BLUE:\n\t\t\t\t\tblueSplash.changeTexture();\n\t\t\t\t\ttoDisplay.set(blueSplash.getId(), blueSplash.getSprite());\n\t\t\t\t\t\n\t\t\t\t\tcolour = Colour.BLUE;\n\t\t\t\t\tresetButton(EditorEvent.SPLASH_BLUE);\n\t\t\t\t\t\n\t\t\t\t\tblue = !blue;\n\t\t\t\t\tif(!blue)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SPLASH_ORANGE:\n\t\t\t\t\torangeSplash.changeTexture();\n\t\t\t\t\ttoDisplay.set(orangeSplash.getId(), orangeSplash.getSprite());\n\t\t\t\t\t\n\t\t\t\t\tcolour = Colour.ORANGE;\n\t\t\t\t\tresetButton(EditorEvent.SPLASH_ORANGE);\n\t\t\t\t\t\n\t\t\t\t\torange = !orange;\n\t\t\t\t\tif(!orange)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SPLASH_PURPLE:\n\t\t\t\t\tpurpleSplash.changeTexture();\n\t\t\t\t\ttoDisplay.set(purpleSplash.getId(), purpleSplash.getSprite());\n\t\t\t\t\t\n\t\t\t\t\tcolour = Colour.PURPLE;\n\t\t\t\t\tresetButton(EditorEvent.SPLASH_PURPLE);\n\t\t\t\t\t\n\t\t\t\t\tpurple = !purple;\n\t\t\t\t\tif(!purple)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SPLASH_RED:\n\t\t\t\t\tredSplash.changeTexture();\n\t\t\t\t\ttoDisplay.set(redSplash.getId(), redSplash.getSprite());\n\t\t\t\t\t\n\t\t\t\t\tcolour = Colour.RED;\n\t\t\t\t\tresetButton(EditorEvent.SPLASH_RED);\n\t\t\t\t\t\n\t\t\t\t\tred = !red;\n\t\t\t\t\tif(!red)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TELEPORT:\n\t\t\t\t\tteleportButton.changeTexture();\n\t \t\t\t\ttoDisplay.set(teleportButton.getId(), teleportButton.getSprite());\n\t \t\t\t\t\n\t \t \t\tresetButton(EditorEvent.TELEPORT);\n\t \t \t\t\n\t\t \t \tteleport = !teleport;\n\t\t \t \tif(!teleport)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n \t \t}\n\t\t}\n\t}",
"private void gameOver() {\n System.out.println(\"GAME OVER!!\");\n\n reset();\n mGameOver = true;\n mChangeObserver.gameOver();\n }",
"public void gameOver() {\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tjoinGame();\n\t\t\t}",
"public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBecauseICan();\n }",
"public abstract void RunOnGameOpen();",
"public void gameRunning()\n{\n}",
"public void onBattleMessage(BattleMessageEvent e) {\n System.out.println(\"Msg> \" + e.getMessage());\n }",
"private void checkResults() {\n\t\tif (isOver()) {\n\t\t\tfor (GameListener gameListener : gameListeners) {\n\t\t\t\tgameListener.gameOverCallback();\n\t\t\t}\n\t\t}\n\t}",
"public void onBattleMessage(BattleMessageEvent e) {\n//\t\tSystem.out.println(\"Msg> \" + e.getMessage());\n\t}",
"public void handleEvent(GameEvent<S, A> e) {\n\t\t\r\n\t\tif (playerId == e.getState().getTurn() && !game.isFinished()){\r\n\t\t\tif (playerMode != PlayerMode.manual && (e.getType() == GameEvent.EventType.Info || e.getType() == GameEvent.EventType.Change)) {\r\n\t\t\t\tdecideMakeAutomaicMove();\r\n\t\t\t}\r\n\r\n\t\t\telse if (e.getType() == GameEvent.EventType.Start){\r\n\t\t\t\tif (playerMode == PlayerMode.random) makeRandomMove();\r\n\t\t\t\telse if (playerMode == PlayerMode.smart) makeSmartMove();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void onBoardEvent(BoardEvent e) {\n\t\tif(e.getId() == BoardEvent.CAPTURE || e.getId() == BoardEvent.DROP){\r\n\t\t\tselected = -1;\r\n\t\t\tb.selectedFromHand(selected);\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t\telse if(e.getId() == BoardEvent.TURN_END){\r\n\t\t\tplayer = player^1;\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t}",
"public void finishGame() {\r\n gameFinished = true;\r\n }",
"void gameFinished(String message) {\n leader.acknowledgeGameFinished(message);\n opponent.acknowledgeGameFinished(message);\n\n leader.requestRematch();\n opponent.requestRematch();\n }",
"public void gameWon()\n {\n ScoreBoard endGame = new ScoreBoard(\"You Win!\", scoreCounter.getValue());\n addObject(endGame, getWidth()/2, getHeight()/2);\n }",
"public void runEvent();",
"void gameOver();",
"void gameOver();",
"public boolean gameWon(){\n return false;\n }",
"public void timGUIEventReceived(TimGUIEvent event) \n {\n /* TODO: remove debug msg */\n //System.out.println(\"TimGame got \" + event.getCommand() + \" from TimGUI\");\n \n if(event.getCommand().equals(TimGUIEvent.START)) \n {\n /* Start the game */\n switchGameState(GameState.RUNNING);\n }\n else if(event.getCommand().equals(TimGUIEvent.STOP)) \n {\n /* Stop the game */\n switchGameState(GameState.EDITING);\n }\n else if(event.getCommand().equals(TimGUIEvent.SETTINGS))\n {\n /* settings change */\n\t PlayerSetting ps = pf.getPlayerSetting();\n \t if (pf.getPlayerSetting().getMusic() == PlayerSetting.Setting.OFF)\n \t {\n \t \tap.stopMusic();\n }\n \t else\n \t {\n \t \tap.playMusic();\n \t }\n \ttimWorld.setGravity(ps.getGravity());\n\t }\n else \n {\n startEventQueue(event);\n }\n }",
"public void check_empate_GAME_OVER() {\n doNothing().when(c0).sendEvent(EventType.GAME_OVER, null);\n \n //Capturamos el evento GAME_OVER y comprobamos sus parámetros\n ArgumentCaptor<Event> argument = ArgumentCaptor.forClass(Event.class);\n verify(c0, times(1)).sendEvent(eq(EventType.GAME_OVER), argument.capture());\n Object event = argument.getValue();\n WinnerValue wv = (WinnerValue) event;\n \n assertEquals(\"Al haber empate, el valor del ganador debería ser null\", null, wv);\n }",
"@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}",
"public void triggerEndGame()\n\t{\n\t\tif(livesRemaining <= 0)\n\t\t{\n\t\t\tmP[0].stop();\n\t\t\tmP[1].stop();\n\t\t\tmP[2].stop();\n\t\t\tendGame = new Alert(AlertType.CONFIRMATION);\n\t\t\tendGame.setTitle(\"1942\");\n\t\t\tendGame.setHeaderText(null);\n\t\t\tendGame.getButtonTypes().clear();\n\t\t\tendGame.setContentText(\"You're dead! \\nYou finished with \" + p1Score + \" points. \\nWould you like to play again?\");\n\t\t\tendGame.getButtonTypes().addAll(ButtonType.YES, ButtonType.NO);\n\t\t\tendGame.setGraphic(new ImageView(new Image(\"file:images/gameOver.png\")));\n\t\t\tspawnTimerTL.stop();\n\t\t\tmainTimer.stop();\n\t\t\tp1.getNode().setImage(null); //Removes player from screen\n\t\t\tOptional<ButtonType> result = endGame.showAndWait();\n\n\t\t\tif(result.get() == ButtonType.YES)\n\t\t\t{\n\t\t\t\tlivesRemaining = 3;\n\t\t\t\thealthRemaining = 10;\n\t\t\t\tivHealthBar.setImage(imgHealth[healthRemaining]);\n\t\t\t\tivLives.setImage(imgLives[livesRemaining]);\t\n\n\t\t\t\tif (highScore < p1Score)\n\t\t\t\t\thighScore = p1Score;\n\t\t\t\ttry //Writes new high score and throws IO Exception\n\t\t\t\t{\n\t\t\t\tfileWriter = new FileWriter(highScoreSave);\n\t\t\t\tfileWriter.write(String.valueOf(highScore));\n\t\t\t\tfileWriter.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException e)\n\t\t\t\t{e.printStackTrace();}\n\t\t\t\t\n\t\t\t\tlblHighScore.setText(Integer.toString(highScore));\n\t\t\t\tp1Score = 0;\n\t\t\t\tlblp1score.setText(Integer.toString(p1Score));\n\n\t\t\t\tp1.setDead(false);\n\t\t\t\tmainTimer.start();\n\t\t\t\tspawnTimerTL.play();\n\t\t\t\t\n\t\t\t\tfor(int k = 0; k < enemyPlanes.length; k++)\n\t\t\t\t{\n\t\t\t\t\tenemyPlanes[k].toggleIsDead(true);\n\t\t\t\t\tenemyPlanes[k].setY(2000);\n\t\t\t\t\tenemyPlanes[k].getNode().setLayoutY(enemyPlanes[k].getY());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (highScore < p1Score)\n\t\t\t\t\thighScore = p1Score;\n\t\t\t\ttry //Writes new high score and throws IO Exception\n\t\t\t\t{\n\t\t\t\tfileWriter = new FileWriter(highScoreSave);\n\t\t\t\tfileWriter.write(String.valueOf(highScore));\n\t\t\t\tfileWriter.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException e)\n\t\t\t\t{e.printStackTrace();}\n\t\t\t\tthankYou = new Alert(AlertType.INFORMATION);\n\t\t\t\tthankYou.setTitle(\"1942\");\n\t\t\t\tthankYou.setHeaderText(null);\n\t\t\t\tthankYou.setGraphic(new ImageView(new Image(\"file:images/plane.png\")));\n\t\t\t\tthankYou.setContentText(\"Thank you for playing.\\nGoodbye!\");\n\t\t\t\tthankYou.show();\n\t\t\t\tPlatform.exit();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}\n\t}",
"public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}",
"public void consulterEvent() {\n\t\t\n\t}",
"public void gameOver(){\n\t\tstatus.setGameStarted(false);\n\t\tstatus.setGameOver(true);\n\t\tgameScreen.doNewGame();\n\t\tsoundMan.StopMusic();\n\t\n\t\t// delay to display \"Game Over\" messa\tprivate Object rand;\n\n\t\tTimer timer = new Timer(3000, new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstatus.setGameOver(false);\n\t\t\t}\n\t\t});\n\t\ttimer.setRepeats(false);\n\t\ttimer.start();\n\t}",
"boolean addEasyGamePlayed();",
"boolean onEvent(Event event);",
"public void fireGameEvent(GameEvent evt){\r\n if (!isChessclubSpecificEvent(evt))\r\n super.fireGameEvent(evt);\r\n else{\r\n Object [] listeners = listenerList.getListenerList();\r\n for (int i = 0; i < listeners.length; i += 2){\r\n if (listeners[i] == GameListener.class){\r\n GameListener listener = (GameListener)listeners[i+1];\r\n try{\r\n if (evt instanceof CircleEvent){ \r\n if (listener instanceof ChessclubGameListener) \r\n ((ChessclubGameListener)listener).circleAdded((CircleEvent)evt);\r\n }\r\n else if (evt instanceof ArrowEvent){\r\n if (listener instanceof ChessclubGameListener)\r\n ((ChessclubGameListener)listener).arrowAdded((ArrowEvent)evt);\r\n }\r\n else\r\n throw new IllegalArgumentException(\"Unknown GameEvent type: \"+evt.getClass());\r\n } catch (RuntimeException e){\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n }",
"protected boolean processPrimaryGameChanged(int gameNumber){\n return true;\n }",
"@Override\n\tpublic void onGameOver(ReadOnlyBoard board, Counter winner) {\n\n\t}",
"private void gameOver() {\n\t\tgameOver=true;\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\tupdateGame();\n\t}",
"void notifyGameComplete(FinalScore score);",
"public void notifyGameOver() {\n this.myStatusString.setText(\"Game Over\");\n final LineBorder line = new LineBorder(Color.RED, 2, true);\n this.myStatusString.setBorder(line);\n this.myStatusString.setForeground(Color.RED);\n this.myStatusString.setFont(new Font(FONT_TIMES, Font.BOLD, NUM_FONT_SIZE_BIG));\n \n }",
"boolean onInteracted(GameCharacter source);",
"@Override\n public void gameOver(GameController game) {\n updateScreen(game);\n ((MultiplayerHostController) Main.game).updateClient();\n\n switch (game.getCurrentState()) {\n case END_DRAW:\n JOptionPane.showMessageDialog(this, \"Draw!\");\n break;\n case END_CIRCLE:\n JOptionPane.showMessageDialog(this, \"You won!\");\n break;\n case END_CROSS:\n JOptionPane.showMessageDialog(this, \"You lost!\");\n break;\n }\n stopGame();\n }",
"@Override\n public void endGame(){\n gameOver = true;\n }",
"public void completedGame()\n\t{\n\t\tJOptionPane.showMessageDialog(this,\"Congratulations, you beat the game!\" + ship.getTotalScore(), \"Beat the Game\", JOptionPane.INFORMATION_MESSAGE);\n\t\tbuttonPanel.endGameButton.setEnabled(false);\n\t\tsendScore();\n\t}",
"@Override\r\n public void clicked(InputEvent event, float x, float y) {\n\r\n \t\tGameDataInterface gameData = GameDataUtils.getInstance();\r\n \t\t\r\n \t\t/*\r\n \t\t * hardcoded a instance to send to the gameDataInterface\r\n \t\t */\r\n \t\tInstance instance = new Instance();\r\n \t\tinstance.setBoardId(1);\r\n \t\tinstance.setInstanceId(2);\r\n \t\tinstance.setMissionId(1);\r\n \t\tinstance.setTurnId(1);\r\n \t\t\r\n \t\tgameData.loadInstance(game,instance); \r\n \t\tgame.setScreen(game.board);\r\n }"
] | [
"0.71412003",
"0.6990698",
"0.6931753",
"0.6827192",
"0.6803705",
"0.6803705",
"0.6727091",
"0.6711276",
"0.66823405",
"0.6677878",
"0.6672251",
"0.66482115",
"0.65949833",
"0.65690845",
"0.6530662",
"0.6521199",
"0.6483409",
"0.64566284",
"0.6452928",
"0.64487153",
"0.6442044",
"0.64341366",
"0.6430513",
"0.64146346",
"0.6394871",
"0.6390844",
"0.6381187",
"0.636903",
"0.63393146",
"0.6337295",
"0.6336652",
"0.63076836",
"0.63063216",
"0.6304575",
"0.6301813",
"0.6299735",
"0.62993795",
"0.6289176",
"0.62767005",
"0.6269566",
"0.62673384",
"0.6253734",
"0.6224242",
"0.6224181",
"0.621748",
"0.62166476",
"0.6206947",
"0.6202104",
"0.6177824",
"0.6176649",
"0.61645454",
"0.61631",
"0.6162088",
"0.61559206",
"0.6154618",
"0.61538184",
"0.61522764",
"0.61470985",
"0.61442524",
"0.6127684",
"0.61147904",
"0.61116606",
"0.61092454",
"0.6105728",
"0.61011183",
"0.60924405",
"0.6089029",
"0.60886264",
"0.6086824",
"0.60804105",
"0.60763",
"0.60603684",
"0.60483885",
"0.60454005",
"0.60412973",
"0.60412973",
"0.6040645",
"0.6037694",
"0.6036919",
"0.60186803",
"0.60186803",
"0.60186803",
"0.60185236",
"0.60178804",
"0.6010277",
"0.6007373",
"0.6000854",
"0.5995695",
"0.59925854",
"0.5988543",
"0.59863997",
"0.5984529",
"0.59743434",
"0.59715563",
"0.5967339",
"0.59622794",
"0.5960634",
"0.5953774",
"0.5946073",
"0.59455484"
] | 0.6641103 | 12 |
kill the activity on back pressed | @Override
public void onBackPressed()
{
onStop();
super.onBackPressed();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onBackPressed() {\n\t\tIntent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n System.exit(0);\n\t}",
"@Override\n public void onBackPressed() {\n if (backPressed >= 1) {\n finishAffinity();\n super.onBackPressed();\n\n\n } else {\n // clean up\n backPressed = backPressed + 1;\n Toast.makeText(this, getString(R.string.press_back_exit),\n Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n myoBackgroundService = new Intent(this, MyoBackgroundService.class);\n stopService(myoBackgroundService);\n backgroundIntentService = new Intent(this, BackgroundIntentService.class);\n stopService(backgroundIntentService);\n isTextRcvData = false;\n moveTaskToBack(true);\n android.os.Process.killProcess(android.os.Process.myPid());\n }",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, WorkSpace.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.putExtra(\"Close this app\", true);\n startActivity(intent);\n finish();\n }",
"public void onBackPressed()\n {\n hideSystemUI(activity);\n }",
"@Override\n public void onBackPressed() {\n Intent i = new Intent(StockAdjustmentList.this, ActivityHomeScreen.class);\n startActivity(i);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n finish();\n }",
"@Override\n public void onBackPressed() {\n this.finish();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tmoveTaskToBack(false);\n\t}",
"public void onBackPressed() {\n // do nothing. We want to force user to stay in this activity and not drop out.\n }",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}",
"@Override\n public void onBackPressed() {\n\n Intent homeIntent = new Intent(Intent.ACTION_MAIN);\n homeIntent.addCategory( Intent.CATEGORY_HOME );\n homeIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent);\n }",
"@Override\n public void onBackPressed()\n {\n Intent intent = new Intent(this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\n startActivity(intent);\n finish();\n }",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tIntent i = new Intent(this, MainActivity.class);\r\n\t\tstartActivity(i);\r\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tthis.finish();\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}",
"public void onBackPressed() {\n C0486WU wu = this.f2780c;\n if (wu != null) {\n wu.mo1418b();\n }\n finish();\n Share_IP.super.onBackPressed();\n setResult(0, new Intent());\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tthis.finish();\n\t}",
"@Override\n public void onBackPressed() {\n exit++;\n System.out.println(\"###############exit\" + exit);\n if (exit == 1) {\n start = System.currentTimeMillis();\n Toast.makeText(this, \"再点击退出\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n end = System.currentTimeMillis();\n if (end - start < 3000) {\n//\t\t\t\tSystem.exit(0);\n//\t\t\t\tAppActivityManager.getAppManager().finishAllActivity();\n finish();\n } else {\n Toast.makeText(this, \"再点击退出\", Toast.LENGTH_SHORT).show();\n start = System.currentTimeMillis();\n return;\n }\n }\n }",
"@Override\n public void onBackPressed() {\n this.moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }",
"public void onBackPressed() {\n\t\tLog.d(USER_TAG, \"onBackPressed\");\n\t\tmoveTaskToBack(true);\n\t}",
"public void onBackPresed() {\n\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\n\n\t}",
"@Override\n public void onBackPressed() {\n finishAffinity();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tIntro.gubunView = 0;\n\t\tIntent i = new Intent(getApplicationContext(), Tab.class);\n\t\tstartActivity(i);\n\t\tfinish();\n\t}",
"public void onBackPressed() {\n\n Intent i = new Intent(Saved_Address.this, User_Profile.class);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n\n }",
"@Override\n public void onClick(View v) {\n onBackPressed();\n// Intent intent = new Intent(UnitCardSettingActivity.this, IndexActivity.class);\n// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n// startActivity(intent);\n// finish();\n }",
"@Override\n public void onBackPressed() {\n\n finish();\n }",
"private void onBack() {\n\t\tIntent startMain = new Intent(Intent.ACTION_MAIN);\r\n\t\tstartMain.addCategory(Intent.CATEGORY_HOME);\r\n\t\tstartMain.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); // //FLAG_ACTIVITY_NEW_TASK\r\n\t\tstartActivity(startMain);\r\n\t}",
"public void backPressed(View v){\n finish();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n public void onBackPressed() {\n mediaPlayer.pause();\n Intent intent = new Intent(this, MainMenuActivity.class);\n startActivity(intent);\n finish();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\t finish();\n\t}",
"@Override\n public void onBackPressed() {\n timer.cancel();\n // Tell the user that their data will be destroyed\n Toast.makeText(getApplicationContext(), \"Stopping and deleting recording...\", Toast.LENGTH_SHORT)\n .show();\n super.onBackPressed();\n }",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tmoveTaskToBack(true);\r\n\t\tsuper.onBackPressed();\r\n\t}",
"@Override\n public void onBackPressed() {\n /*startAppAd.onBackPressed();\n super.onBackPressed();*/\n\n if(blnExit)\n {\n super.onBackPressed();\n return;\n }\n this.blnExit = true;\n // startAppAd.onBackPressed();\n\n\n Toast.makeText(ActHome.this,\"Please click BACK again to EXIT.\",Toast.LENGTH_SHORT).show();\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n blnExit = false;\n }\n },2000);\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}",
"public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n Intent intent = getIntent();\n setResult(0,intent);\n\n super.onBackPressed();\n }",
"@Override\r\n public void onBackPressed() {\n moveTaskToBack(true);\r\n }",
"@Override\n public void onBackPressed() {\n if (exit) {\n System.exit(0);\n } else {\n Toast.makeText(this, \"Press Back again to Exit.\",\n Toast.LENGTH_SHORT).show();\n exit = true;\n new Handler().postDelayed(new Runnable() { //3 sn içinde iki defa basıldı mı kontrolu için\n @Override\n public void run() {\n exit = false;\n }\n }, 3 * 1000);\n }\n }",
"public void onBack(View v){\r\n finish();\r\n }",
"@Override\n public void onBackPressed() {\n \tsuper.onBackPressed();\n \tManualTestActivity.FlagMc = true;\n \tmHandler.removeCallbacks(pRunnable);\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n public void run() {\n t.cancel();\n onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(BillofLandingActivity.this, HomeActivity.class);\n startActivity(intent);\n finish();\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n finishAffinity();\n\n }",
"protected void goBack() {\r\n\t\tfinish();\r\n\t}",
"@Override\n\t\tpublic void onBackPressed() {\n\t\t\tsuper.onBackPressed();\n\t\t\trelease();\n\t\t\tdialog=null;\n\t\t\tmPlayMedia.setOnClickListener(null);\n\t\t\tmPauseMedia.setOnClickListener(null);\n\t\t\tmPlayMedia=null;\n\t\t\tmPauseMedia=null;\n\t\t\tmMediaSeekBar=null;\n\t\t\tmRunTime=null;\n\t\t\tmTotalTime=null;\n\t\t\tfinish();\n\t\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tIntent i = new Intent(WelcomeActivity.this, MainActivity.class);\r\n\t\tWelcomeActivity.this.finish();\r\n\t\tstartActivity(i);\r\n\t\tsuper.onBackPressed();\r\n\r\n\t}",
"@Override\r\n public void onClick(View view) {\r\n finish();\r\n onBackPressed();\r\n\r\n }",
"@Override\n\tpublic void onBackPressed() {\n \t//Reference: http://stackoverflow.com/questions/11495188/how-to-put-application-to-background\n \t//; last accessed: 14 April 2015, answer by: JavaCoderEx\n \tIntent i = new Intent(Intent.ACTION_MAIN);\n i.addCategory(Intent.CATEGORY_HOME);\n startActivity(i); \n }",
"public void GoBackbtn(View view){\n Intent backIntent = new Intent(this, MainActivity.class);\n backIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(backIntent);\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n\n }",
"@Override\n public void onBackPressed()\n {\n if(backButtonCount >= 1)\n {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n else\n {\n Toast.makeText(this, \"Press the back button once again to close the application.\", Toast.LENGTH_SHORT).show();\n backButtonCount++;\n }\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tIntent i = new Intent(getApplicationContext(), Tab.class);\n\t\tstartActivity(i);\n\t\tfinish();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\t\n\t\tremoveClickList();\n\t\tfinish();\n\t}",
"public void onBackPressed(){\n super.onBackPressed();\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n finishAffinity();\n\n }else {\n finish();\n }\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n finish();\n }",
"public void stopAct(View view){\n finish();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tif (wv1.canGoBack()) {\n\t wv1.goBack();\n\t\t}else \n\t\t{\n\t\t\twv1.stopLoading();\n\t\t\twv1.clearCache(true);\n\t\t\tfinish();\n\t }\n\t}",
"@Override\n public void onBackPressed() {\n runExitAnimation(new Runnable() {\n public void run() {\n // *Now* go ahead and exit the activity\n finish();\n }\n });\n }",
"@Override\n public void onBackPressed()\n {\n Intent appointbackpress=new Intent(AppointmentActivity.this,PatientActivity.class);\n startActivity(appointbackpress);\n finish();\n }",
"@Override\n public void onBackPressed(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\treturn;\n\t}",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, SplashActivity.class);\n startActivity(intent);\n }",
"public void onBackPressed(){\n finish();\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"public void exitActivity() {\n\n finish();\n\n }",
"@Override\n public void onBackPressed() {\n \tsetResult(RESULT_OK, getIntent());\n \tfinish();\n }",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tif (mTaskType == Globals.TASK_TYPE_NEW) {\n\t\t\t\n\t\t\tIntent intent = new Intent(this, TrackingService.class);\n\t\t\tif(mBound){\n\t\t\t\tunbindService(mConnection);\n\t\t\t\tmBound = false;\n\t\t\t}\n\t\t\tstopService(intent);\n\t\t\t// notification has flag auto_cancel set\n\t\t\tfinish();\t\t\n\t\t}\n\t\t\n\t\tsuper.onBackPressed();\n\t}"
] | [
"0.78835666",
"0.7872585",
"0.7871903",
"0.78287816",
"0.7805391",
"0.77505267",
"0.77422035",
"0.7729479",
"0.7699043",
"0.7692814",
"0.7692814",
"0.7691294",
"0.766956",
"0.7659125",
"0.76521176",
"0.7647435",
"0.7613604",
"0.7612032",
"0.76034117",
"0.759672",
"0.7592999",
"0.7592999",
"0.7573073",
"0.7570569",
"0.75704324",
"0.75634193",
"0.756321",
"0.7557889",
"0.75560635",
"0.75532144",
"0.7543014",
"0.75372475",
"0.75372475",
"0.7536826",
"0.7535726",
"0.75245243",
"0.7521547",
"0.75186205",
"0.75166905",
"0.75166905",
"0.75166905",
"0.7511753",
"0.7509551",
"0.7508112",
"0.7501284",
"0.7495099",
"0.7494116",
"0.74873215",
"0.74873215",
"0.74873215",
"0.74873215",
"0.74873215",
"0.74873215",
"0.74873215",
"0.74864763",
"0.74864763",
"0.74760556",
"0.7475892",
"0.7467971",
"0.74658746",
"0.74604505",
"0.7446968",
"0.74299693",
"0.7429458",
"0.7420627",
"0.7418156",
"0.7417064",
"0.74166244",
"0.7416093",
"0.7415738",
"0.7412943",
"0.7409669",
"0.74041927",
"0.7403663",
"0.74030465",
"0.7398323",
"0.73974127",
"0.73964393",
"0.73958427",
"0.73942465",
"0.73942465",
"0.73942465",
"0.73942465",
"0.73942465",
"0.73942465",
"0.73942465",
"0.73942465",
"0.73942465",
"0.73942465",
"0.73942465",
"0.73942465",
"0.73942465",
"0.73942465",
"0.73942465",
"0.73930484",
"0.7383986",
"0.7383107",
"0.7383107",
"0.7383107",
"0.73796445"
] | 0.78425366 | 3 |
Sets the "items" attribute with a collection of Docente entities that are retrieved from TipoTrabajo?cap_first and returns the navigation outcome. | public String navigateDocenteCollection() {
if (this.getSelected() != null) {
FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("Docente_items", this.getSelected().getDocenteCollection());
}
return this.mobilePageController.getMobilePagesPrefix() + "/docente/index";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@ApiModelProperty(value = \"The items that are setup to rebill\")\r\n public List<AutoOrderItem> getItems() {\r\n return items;\r\n }",
"public Item getItems() {\n return items;\n }",
"public void setItems(Item items) {\n this.items = items;\n }",
"public Item[] getItems()\n {\n return items;\n }",
"public void setItems(ItemList items) {\r\n this.items = items;\r\n }",
"@Transactional\r\n\tpublic List<UIDataModelEntity>getLinks(int startItem){\r\n\t\tPageRequest page = new PageRequest(startItem, PAGE_OFFSET);\r\n\t\tPage<Item> items = itemRepo.findAll(page);\r\n\t\tList<UIDataModelEntity> uiEntitiesList = new ArrayList<>();\r\n\t\tfor(Item item : items){\r\n\t\t\titem.getItemLinks().size();\r\n\t\t\tSet<ItemLink> links = item.getItemLinks();\r\n\t\t\tCategory category = item.getCategory();\r\n\t\t\tUIDataModelEntity modelEntity = new UIDataModelEntity();\r\n\t\t\tmodelEntity.setCategoryName(category.getName());\r\n\t\t\tmodelEntity.setCompanyName(item.getName());\r\n\t\t\tlinks.stream().forEach(e->{modelEntity.getGoogleLinks().add(e.getLink());});\r\n\t\t\tuiEntitiesList.add(modelEntity);\r\n\t\t}\r\n\t\t\r\n\t\treturn uiEntitiesList;\r\n\t\t\r\n\t}",
"@Override\n public Set<T> getItems() {\n return items;\n }",
"public String navigateAlunoTurmaList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"AlunoTurma_items\", this.getSelected().getAlunoTurmaList());\n }\n return \"/pages/prime/alunoTurma/index\";\n }",
"public String navigateRutaCollection() {\n Municipio selected = this.getSelected();\n if (selected != null) {\n MunicipioFacade ejbFacade = (MunicipioFacade) this.getFacade();\n Collection<Ruta> selectedRutaCollection = ejbFacade.findRutaCollection(selected);\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Ruta_items\", selectedRutaCollection);\n }\n return \"/app/ruta/index\";\n }",
"public String navigatePartidoCollection1() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Partido_items\", this.getSelected().getPartidoCollection1());\n }\n return \"/partido/index\";\n }",
"public List<Item> getItems() {\n return items;\n }",
"public List<Item> getItems() {\n return items;\n }",
"public String navigatePartidoCollection() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Partido_items\", this.getSelected().getPartidoCollection());\n }\n return \"/partido/index\";\n }",
"public List<MainItemOrdered> findAll();",
"public List<Producto> traerTodos () {\n \n return jpaProducto.findProductoEntities();\n \n \n \n }",
"@Override\n\tpublic List<Marca> listaporitem() {\n\t\treturn marcadao.listaporitem();\n\t}",
"public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }",
"private boolean seleccionarItemEnListado(){\n\t\t\n\t\tint indice = this.getUltIdDoc();\n\t\tif (indice > -1){ //solo si se eligió un doc\n\t\t\tif ((indice+1) > tablaDocs.getItemCount()){ //se pasa de la cantidad de elemento en la lista, poner el de mas arriba en su lugar\n\t\t\t\tthis.setUltIdDoc(tablaDocs.getItemCount()-1);\n\t\t\t\tindice = this.getUltIdDoc(); \n\t\t\t}\n\t\t\ttablaDocs.setSelection(indice); \n\t\t\tlistaDocumentos.setSelection(indice);\n\t\t}\n\t\treturn true;\n\t}",
"public List<SalesOrderItem> getItemOrFetch()\r\n throws ODataException\r\n {\r\n if (toItem == null) {\r\n toItem = fetchItem();\r\n }\r\n return toItem;\r\n }",
"public TireList findOrderedItems(){\n \n try{\n sql = \"Select * From OrderedItems Where OrderID = \" + getOrderID();\n ResultSet resultSetOrder = db.SelectDB(sql);\n \n Tire orderedTire;\n while(resultSetOrder.next()){\n orderedTire = new Tire();\n orderedTire.setQuantity(resultSetOrder.getInt(\"Quantity\"));\n ResultSet resultSetTire = db.SelectDB(\"Select * From Tire Where TireID = \" + resultSetOrder.getString(\"TireID\"));\n while(resultSetTire.next()){\n orderedTire.setStockID(resultSetTire.getString(\"TireID\"));\n orderedTire.setType(resultSetTire.getString(\"TireType\"));\n orderedTire.setSize(resultSetTire.getString(\"TireSize\"));\n orderedTire.setBrand(resultSetTire.getString(\"Brand\"));\n orderedTire.setStock(resultSetTire.getString(\"Stock\"));\n orderedTire.setPrice(resultSetTire.getString(\"Price\"));\n orderedTire.setVehicleType(resultSetTire.getString(\"VehicleType\"));\n orderedItems.addItem(orderedTire);\n }\n }\n }\n catch(SQLException e){\n System.out.println(\"Error generating list of Orders: \" + e);\n }\n return orderedItems;\n }",
"public void setItems(String items)\n {\n _items = items;\n }",
"@Override public Set<String> forcedItems() {\n Set<String> forcedItems = new HashSet<>(first.forcedItems());\n forcedItems.addAll(next.forcedItems());\n return forcedItems;\n }",
"public java.util.Set<com.jspgou.cms.entity.OrderItem> getItems () {\r\n\t\treturn items;\r\n\t}",
"public String navigatePartidoCollection3() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Partido_items\", this.getSelected().getPartidoCollection3());\n }\n return \"/partido/index\";\n }",
"public void setItems (java.util.Set<com.jspgou.cms.entity.OrderItem> items) {\r\n\t\tthis.items = items;\r\n\t}",
"public String navigateFechamentoList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Fechamento_items\", this.getSelected().getFechamentoList());\n }\n return \"/pages/prime/fechamento/index\";\n }",
"@Override\n\tpublic List<Estadoitem> listar() {\n\t\treturn estaitemdao.listar();\n\t}",
"public com.kingdee.eas.fdc.market.DocumentItemCollection getItems()\n {\n return (com.kingdee.eas.fdc.market.DocumentItemCollection)get(\"items\");\n }",
"@Override\r\n\t\tpublic List<Item> getItems() {\n\t\t\treturn null;\r\n\t\t}",
"public String navigateDetalleofertaCollection() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Detalleoferta_items\", this.getSelected().getDetalleofertaCollection());\n }\n return \"/detalleoferta/index\";\n }",
"public String navigatePartidoCollection2() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Partido_items\", this.getSelected().getPartidoCollection2());\n }\n return \"/partido/index\";\n }",
"public void setItems(ArrayList<Item> items) {\n\t\tthis.items = items;\n\t}",
"public NavigableSet<Utilisateur> getUtilisateurs();",
"private void getTravelItems() {\n String[] columns = Columns.getTravelColumnNames();\n Cursor travelCursor = database.query(TABLE_NAME, columns, null, null, null, null, Columns.KEY_TRAVEL_ID.getColumnName());\n travelCursor.moveToFirst();\n while (!travelCursor.isAfterLast()) {\n cursorToTravel(travelCursor);\n travelCursor.moveToNext();\n }\n travelCursor.close();\n }",
"public List<SalesOrderItem> fetchItem()\r\n throws ODataException\r\n {\r\n if (erpConfigContext == null) {\r\n throw new ODataException(ODataExceptionType.OTHER, \"Failed to fetch related objects of type SalesOrderItem.\", new IllegalStateException(\"Unable to execute OData query. The entity was created locally without an assigned ERP configuration context. This method is applicable only on entities which were retrieved or created using the OData VDM.\"));\r\n }\r\n final StringBuilder odataResourceUrl = new StringBuilder(getEntityCollection());\r\n odataResourceUrl.append(\"(\");\r\n odataResourceUrl.append(\"SalesOrder=\");\r\n odataResourceUrl.append(ODataTypeValueSerializer.of(EdmSimpleTypeKind.String).toUri(salesOrder));\r\n odataResourceUrl.append(\")/\");\r\n odataResourceUrl.append(\"to_Item\");\r\n final ODataQueryBuilder builder = ODataQueryBuilder.withEntity(getEndpointUrl(), odataResourceUrl.toString());\r\n final ODataQuery query = builder.build();\r\n final ErpEndpoint erpEndpoint = new ErpEndpoint(erpConfigContext);\r\n final ODataQueryResult result = query.execute(erpEndpoint);\r\n final List<SalesOrderItem> entityList = result.asList(SalesOrderItem.class);\r\n for (SalesOrderItem entity: entityList) {\r\n entity.setErpConfigContext(erpConfigContext);\r\n }\r\n return entityList;\r\n }",
"@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}",
"@ApiModelProperty(value = \"Array of Receipt Items\")\n @JsonProperty(\"items\")\n public List<ReceiptItem> getItems() {\n return items;\n }",
"public List<ItemsResponse> getListItems(ItemsRequest req) throws DAOException {\n\t\tlogger.debug(\" --- getListItems [ HNotaDAO ] --- \" );\n\t\tlogger.debug(\" --- request : \"+req.toString()+\" --- \" );\n\t\t\n\t\t\n\t\tList<ItemsResponse> lista = null;\n\t\tStringBuilder query = new StringBuilder();\n\n\t\tint limit = req.getLimit();\n\t\tint page = req.getPage();\n\n\t\tif (limit == 0 || page == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tint to = limit * page;\n\t\tint from = (to - limit) + 1;\n\n\t\tquery.append(\" SELECT * FROM (SELECT @rownum:=@rownum+1 rank , q.* \");\n\t\tquery.append(\" \t\tFROM ( SELECT n.FC_ID_CONTENIDO AS id , \");\n\t\tquery.append(\" \t\t\t\t\t\tn.FC_TITULO AS title, \");\n query.append(\" \t\t\t n.FC_CN AS user , \");\n\t\tquery.append(\" \t\t\t\t\t\tn.FC_DESCRIPCION AS description , \");\n\t\tquery.append(\" \t\t\t\t\t\tn.FD_FECHA_PUBLICACION AS date , \");\n\t\tquery.append(\" \t\t\t\t\t\tn.FC_ID_TIPO_NOTA AS typeItem, \");\n\t\tquery.append(\" \t\t\t\t\t\tn.FC_FRIENDLY_URL AS url_item , \");\n\t\tquery.append(\" \t\t\t\t\t\tn.FC_ID_ESTATUS_NOTA AS status , \");\n\t\tquery.append(\" \t\t\t\t\t\tn.FC_IMAGEN_PRINCIPAL AS image , \");\n\t\tquery.append(\" \t\t\t\t\t\tcategoria.FC_ID_CATEGORIA AS idCategories , \");\n\t\tquery.append(\" \t\t\t\t\t\tcategoria.FC_DESCRIPCION AS descCategories, \");\n\t\tquery.append(\" \t\t\t\t\t\tdeporte.FC_DESCRIPCION AS descSport, \");\n\t\tquery.append(\" \t\t\t\t\t\tdeporte.FC_ID_DEPORTE AS idSport \");\n\t\tquery.append(\" \t\t\t\tFROM yog_ba_h_nota n \");\n\t\tquery.append(\" \t\t\t\tLEFT JOIN yog_ba_c_categoria categoria ON n.FC_ID_CATEGORIA = categoria.FC_ID_CATEGORIA \");\n\t\tquery.append(\" \t\t\t\tLEFT JOIN yog_ba_c_deporte deporte ON n.FC_ID_DEPORTE = deporte.FC_ID_DEPORTE \");\n\t\tquery.append(\" \t\t \t\t WHERE 1=1 \");\n\t\t\n\t\tif (req.getType().equals(\"categoria\")) {\n\t\t\tquery.append(\" AND categoria.FC_ID_CATEGORIA = '\" + req.getId() + \"' \");\n\t\t}\n\t\t\n\t\t\n\t\tif (req.getType().equals(\"deporte\")) {\n\t\t\tquery.append(\" AND deporte.FC_ID_DEPORTE = '\" + req.getId() + \"' \");\n\t\t}\n\t\t\n\t\tif (req.getStatus() != null && !req.getStatus().equals(\"\"))\n\t\t\tquery.append(\" AND n.FC_ID_ESTATUS_NOTA = '\" + req.getStatus() + \"' \");\n\n\t\tquery.append(\" ORDER BY FD_FECHA_PUBLICACION DESC ) AS q ,(SELECT @rownum:=0) num ) r \");\n\t\tquery.append(\" WHERE r.rank >= \" + from + \" AND r.rank <= \" + to + \" \");\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\ttry {\n\n\t\t\tlista = jdbcTemplate.query(query.toString(), new BeanPropertyRowMapper<ItemsResponse>(ItemsResponse.class));\n\n\t\t} catch (Exception e) {\n\n\t\t\tlogger.error(\"--- Error getListItems [ HNotaDAO ] :\", e);\n\n\t\t\tthrow new DAOException(e.getMessage());\n\n\t\t}\n\n\t\treturn lista;\n\n\t}",
"@Override\r\n\tpublic List<Tramite_presentan_info_impacto> lista() {\n\t\treturn tramite.lista();\r\n\t}",
"public DesktopClient printItemList() {\n String uri = \"http://localhost:8080/api/items\";\n RestTemplate restTemplate = new RestTemplate();\n ResponseEntity<Item[]> result = restTemplate.getForEntity(uri, Item[].class);\n Item[] items = result.getBody();\n List<Item> itemList = new ArrayList<>();\n if (items != null) {\n itemList.addAll(Arrays.asList(items));\n\n for (Item item :\n itemList) {\n System.out.println(item.toString());\n }\n } else {\n System.out.println(\"Didn't get items.\");\n }\n\n return this;\n }",
"public void setItems(nl.webservices.www.soap.GCRItem[] items) {\n this.items = items;\n }",
"@RequestMapping(value = \"/items\", method = RequestMethod.GET)\n public ItemResponse getAllReceipts() {\n\n List items = itemsDBService.getItems();\n List itemNew = new ArrayList();\n for (Object i : items) {\n ItemEntity ie = (ItemEntity) i;\n itemNew.add(Item.builder().itemNumber(ie.getItemNumber())\n .itemUnitCount(ie.getItemUnitCount())\n .itemName(ie.getItemName())\n .itemPrice(ie.getItemPrice())\n .itemUnitPrice(ie.getItemUnitPrice())\n .itemCategory(ie.getItemCategory())\n .itemDiscount(ie.getItemDiscount())\n .itemWarantyEndDate(ie.getItemWarantyEndDate())\n .itemTypeCode(ie.getItemTypeCode())\n .build()\n );\n }\n return ItemResponse.builder().items(itemNew).build();\n }",
"public void setItems(){\n }",
"@Override\n public void takeOrder(List<Item> restItem, int constID) {\n\n }",
"public ArrayList<Item> getItems()\n {\n return items;\n }",
"@Test\r\n public void testListar() {\r\n TipoItemRN rn = new TipoItemRN();\r\n TipoItem item = new TipoItem();\r\n item.setDescricao(\"ListarDescriçãoTipoItem\");\r\n rn.salvar(item);\r\n \r\n TipoItem item2 = new TipoItem();\r\n item2.setDescricao(\"ListarDescriçãoTipoItem2\");\r\n rn.salvar(item2);\r\n \r\n List<TipoItem> tipoItens = rn.listar();\r\n \r\n assertTrue(tipoItens.size() >0);\r\n \r\n rn.remover(item);\r\n rn.remover(item2);\r\n }",
"public List<ItemDTO> getItems()\n\t{\t\n\t\tList<ItemDTO> itemsList = new ArrayList<>();\n\t\tfor (ItemData item : items) \n\t\t\titemsList.add(new ItemDTO(item.idItem,item.description,item.price,item.VAT,item.quantitySold));\t\n\t\treturn itemsList;\n\t}",
"@RequestMapping(method=RequestMethod.GET, value = \"/item\", produces = \"application/json\")\n public List<Item> getItems()\n {\n return this.itemRepository.getItems();\n }",
"public Item[] getItems() {\n/* 3068 */ if (this.vitems != null) {\n/* 3069 */ return this.vitems.getAllItemsAsArray();\n/* */ }\n/* 3071 */ return emptyItems;\n/* */ }",
"public List<OrderItem> findAllOrderItem(){\n List<OrderItem> orderItems=findAll();\n return orderItems;\n }",
"public void setItemWanted(Item item) {\n itemWanted = item;\n }",
"public void ParcoursInfixe(ArrayList<Item> items) {\r\n// Item[] listeItem= new Item[this.taille()];\r\n if (getGauche() != null) {\r\n getGauche().ParcoursInfixe(items);\r\n }\r\n items.add((Item) getElement());\r\n if (getDroite() != null) {\r\n getDroite().ParcoursInfixe(items);\r\n }\r\n// return listeItem;\r\n }",
"@Test\n public void missingEntity() {\n\n final URI entityURI =\n getClient().newURIBuilder(SERVICE_URI).appendEntitySetSegment(ES_KEY_NAV).appendKeySegment(1).build();\n\n // Request to single (non collection) navigation property\n ClientEntity entity = getFactory().newEntity(ET_KEY_NAV);\n final ClientLink navLinkOne =\n getFactory().newEntityNavigationLink(NAV_PROPERTY_ET_KEY_NAV_ONE, getClient().newURIBuilder(SERVICE_URI)\n .appendEntitySetSegment(ES_KEY_NAV).appendKeySegment(42).build());\n entity.addLink(navLinkOne);\n\n try {\n getEdmEnabledClient().getCUDRequestFactory()\n .getEntityUpdateRequest(entityURI, UpdateType.PATCH, entity).execute();\n fail();\n } catch (ODataClientErrorException e) {\n assertEquals(HttpStatusCode.NOT_FOUND.getStatusCode(), e.getStatusLine().getStatusCode());\n }\n\n // Request to collection navigation propetry\n entity = getFactory().newEntity(ET_KEY_NAV);\n final ClientLink navLinkMany =\n getFactory().newEntitySetNavigationLink(NAV_PROPERTY_ET_KEY_NAV_MANY, getClient().newURIBuilder(SERVICE_URI)\n .appendEntitySetSegment(ES_KEY_NAV).appendKeySegment(3).build());\n entity.addLink(navLinkMany);\n\n try {\n getEdmEnabledClient().getCUDRequestFactory()\n .getEntityUpdateRequest(entityURI, UpdateType.PATCH, entity).execute();\n } catch (ODataClientErrorException e) {\n assertEquals(HttpStatusCode.NOT_FOUND.getStatusCode(), e.getStatusLine().getStatusCode());\n }\n }",
"private static List<Item> getItems() {\n\t\treturn items;\n\t}",
"@Override\n public List<Item> viewAllItems() {\n // calls List<Item> itemRepo.findCatalog();\n return itemRepo.findCatalog();\n }",
"List<ItemPedido> findAll();",
"public List<ReturnItem> getItems() {\n return (List<ReturnItem>) get(\"items\");\n }",
"public void setOrderByItems(List newItems) {\n orderByItems = newItems;\n }",
"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}",
"public ArrayList<FavoritoItem> obtenerFavoritos() throws ValidacionException{\n //Obtener las transacciones y filtrarlas\n ArrayList<Transaccion> transacciones = listarTodo();\n ArrayList<FavoritoItem> favoritos = new ArrayList<FavoritoItem>();\n ArrayList<Transaccion> transaccionesFiltradas = new ArrayList<Transaccion>();\n\n transaccionesFiltradas.addAll(transacciones);\n for (Transaccion tr: transacciones){\n if((tr.getFavorito()).equals(false)){\n transaccionesFiltradas.remove(tr);\n }\n }\n\n //Aramar listado de DTO\n for (Transaccion tr: transaccionesFiltradas){\n FavoritoItem fav = new FavoritoItem();\n fav.setIdTransaccion(tr.getId().toString());\n fav.setNombreTransaccion(tr.getNombre());\n fav.setTipo(tr.getTipo());\n\n // Integer cantidadCuentas = obtenerCuentasPorTransaccion()\n fav.setCantidadCuentasAsociadas(\"(ninguna cuenta asociada)\");\n favoritos.add(fav);\n }\n return favoritos;\n }",
"public Item[] getItems() {\n return items.toArray(new Item[0]);\n }",
"@RequestMapping(method=RequestMethod.PUT, value = \"/item\", produces = \"application/json\")\n public void setItems(ArrayList<Item> itemsToSet)\n {\n this.itemRepository.setItems(itemsToSet);\n }",
"public List<RLOrder> getItems() {\n\t\treturn _orders.getPage(_currentPage);\n\t}",
"@Override\n\tpublic int getNavigationItemCount() {\n\t\treturn 0;\n\t}",
"public ObservableList<TodoItem> getTodoItems() {\n return todoItems;\n }",
"@Override\n public T getItemVO() {\n return this.itemVO;\n }",
"protected List<View> getItems() {\n return items;\n }",
"private InputStream includeNavItems(UiExtensionService service) {\n StringBuilder sb = new StringBuilder(\"\\n\");\n for (UiExtension extension : service.getExtensions()) {\n for (UiView view : extension.views()) {\n sb.append(String.format(NAV_FORMAT, view.id(), view.label()));\n }\n }\n return new ByteArrayInputStream(sb.toString().getBytes());\n }",
"ICpItem getCpItem();",
"java.util.List<io.opencannabis.schema.commerce.OrderItem.Item> \n getItemList();",
"public ArrayList<Collectable> getItems(){\n return items;\n }",
"public List<Item> getItems(){\n\t\treturn data;\n\t}",
"public StudyDashBoardPage clickOnNavigateDropDownItems(String navItems) {\n\t\tWebElement navLocator = findElement(By.xpath(\"//span[text()='NAVIGATE']/..//following-sibling::ul/li/a[contains(text(),'\"+navItems+\"')]\"));\n waitAndClick(navLocator);\n\t\treturn PageFactory.initElements(driver, StudyDashBoardPage.class);\n\n}",
"public List<T> getItems() {\n if (items == null) {\n items = this.ejbFacade.findAll();\n }\n return items;\n }",
"public int getItems() {\n return items;\n }",
"TypeAssociation getConcerneTraitementObjectifTraitementObjectif();",
"public List<Item> getItems() {\n\t\treturn this.items;\n\t}",
"@Override\r\n\tpublic List<Conta> RecuperTodos() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List<Item> findItemList() {\n\t\tCriteriaBuilder cb=entityManager.getCriteriaBuilder();\n\t\tCriteriaQuery<Item> query = cb.createQuery(Item.class); \n // Root<Item> item = query.from(Item.class);\n List<Item> itemList= entityManager.createQuery(query).getResultList();\n\t\treturn itemList;\n\t}",
"@Override\r\n\tpublic Collection<TVA> obtenirTousTVA() {\n\t\treturn null;\r\n\t}",
"public List<ItemsResponse> getListItemsByTitle(ItemsRequestByTitle req) throws DAOException {\n\t\tlogger.debug(\" --- getListItemsByTitle [ HNotaDAO ] --- \" );\n\t\tlogger.debug(\" --- request : \"+req.toString()+\" --- \" );\n\t\t\n\t\t\n\t\tList<ItemsResponse> lista = null;\n\t\tStringBuilder query = new StringBuilder();\n\n\t\tint limit = req.getLimit();\n\t\tint page = req.getPage();\n\n\t\tif (limit == 0 || page == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tint to = limit * page;\n\t\tint from = (to - limit) + 1;\n\n\t\tquery.append(\" SELECT * FROM (SELECT @rownum:=@rownum+1 rank , q.* \");\n\t\tquery.append(\" \t\tFROM ( SELECT n.FC_ID_CONTENIDO AS id , \");\n\t\tquery.append(\" \t\t\t\t\t\tn.FC_TITULO AS title, \");\n query.append(\" \t\t\t n.FC_CN AS user , \");\n\t\tquery.append(\" \t\t\t\t\t\tn.FC_DESCRIPCION AS description , \");\n\t\tquery.append(\" \t\t\t\t\t\tn.FD_FECHA_PUBLICACION AS date , \");\n\t\tquery.append(\" \t\t\t\t\t\tn.FC_ID_TIPO_NOTA AS typeItem, \");\n\t\tquery.append(\" \t\t\t\t\t\tn.FC_FRIENDLY_URL AS url_item , \");\n\t\tquery.append(\" \t\t\t\t\t\tn.FC_ID_ESTATUS_NOTA AS status , \");\n\t\tquery.append(\" \t\t\t\t\t\tn.FC_IMAGEN_PRINCIPAL AS image , \");\n\t\tquery.append(\" \t\t\t\t\t\tcategoria.FC_ID_CATEGORIA AS idCategories , \");\n\t\tquery.append(\" \t\t\t\t\t\tcategoria.FC_DESCRIPCION AS descCategories, \");\n\t\tquery.append(\" \t\t\t\t\t\tdeporte.FC_DESCRIPCION AS descSport, \");\n\t\tquery.append(\" \t\t\t\t\t\tdeporte.FC_ID_DEPORTE AS idSport \");\n\t\tquery.append(\" \t\t\t\tFROM yog_ba_h_nota n \");\n\t\tquery.append(\" \t\t\t\tLEFT JOIN yog_ba_c_categoria categoria ON n.FC_ID_CATEGORIA = categoria.FC_ID_CATEGORIA \");\n\t\tquery.append(\" \t\t\t\tLEFT JOIN yog_ba_c_deporte deporte ON n.FC_ID_DEPORTE = deporte.FC_ID_DEPORTE \");\n\t\tquery.append(\" \t\t \t\t WHERE 1=1 \");\n\t\t\n\t\tif (req.getType().equals(\"categoria\")) {\n\t\t\tquery.append(\" \tAND categoria.FC_ID_CATEGORIA = '\" + req.getId() + \"' \");\n\t\t}\n\n\t\tif (req.getType().equals(\"deporte\")) {\n\t\t\tquery.append(\" AND deporte.FC_ID_DEPORTE = '\" + req.getId() + \"' \");\n\t\t}\n\t\t\n\t\tif (req.getAuthor() != null && !req.getAuthor().equals(\"\"))\n\t\t\tquery.append(\" \t AND n.FC_CN = '\" + req.getAuthor() + \"' \");\n\t\t\n\n\t\tif (req.getTitle() != null && !req.getTitle().equals(\"\"))\n\t\t\tquery.append(\" \t\tAND N.FC_TITULO LIKE '%\" + req.getTitle() + \"%' \");\n\n\t\tif (req.getStatus() != null && !req.getStatus().equals(\"\"))\n\t\t\tquery.append(\" AND n.FC_ID_ESTATUS_NOTA = '\" + req.getStatus() + \"' \");\n\n\t\t\n\t\tquery.append(\" ORDER BY FD_FECHA_PUBLICACION DESC ) AS q ,(SELECT @rownum:=0) num ) r \");\n\t\tquery.append(\" WHERE r.rank >= \" + from + \" AND r.rank <= \" + to + \" \");\n\t\t\n\t\t\n\t\t\n\n\t\ttry {\n\n\t\t\tlista = jdbcTemplate.query(query.toString(), new BeanPropertyRowMapper<ItemsResponse>(ItemsResponse.class));\n\n\t\t} catch (Exception e) {\n\n\t\t\tlogger.error(\" --- Error getListItemsByTitle [ HNotaDAO ] : \", e);\n\n\t\t\tthrow new DAOException(e.getMessage());\n\n\t\t}\n\n\t\treturn lista;\n\n\t}",
"public ArrayOfItem getItem() {\r\n return localItem;\r\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 }",
"public List<T> items() {\n return items;\n }",
"public java.util.List<io.opencannabis.schema.commerce.OrderItem.Item> getItemList() {\n return item_;\n }",
"public DAOTablaMenuProductos() {\r\n\t\trecursos = new ArrayList<Object>();\r\n\t}",
"@Override\n\tpublic List<item> findAll() {\n\t\treturn donkyClientFeign.lista().stream().map(p -> new item(p,1)).collect(Collectors.toList());\n\t}",
"List<Navigation> getNavigationList();",
"com.rpg.framework.database.Protocol.Item getItems(int index);",
"@Override\n\tpublic List<Articoli> SelArticoliByFilter(String Filtro, String OrderBy, String Tipo)\n\t{\n\t\treturn null;\n\t}",
"public nl.webservices.www.soap.GCRItem[] getItems() {\n return items;\n }",
"public void setItem(Item item) {\n this.item = item;\n }",
"public Optional<List<SalesOrderItem>> getItemOrNull() {\r\n return Optional.fromNullable(toItem);\r\n }",
"@SuppressWarnings (\"rawtypes\") public java.util.List getItems(){\n return this.items;\n }",
"public void inicializarItemInvoice() {\r\n\t\ttry {\r\n\t\t\teditarItem = false;\r\n\t\t\trequired = true;\r\n\t\t\tpo = new PO();\r\n\t\t\tlistPos = new ArrayList<PO>();\r\n\t\t\titemInvoice = null;\r\n\t\t\titemPO = null;\r\n\t\t\tpartNumber = null;\r\n\t\t\tBasicFiltroPO filtroPO = new BasicFiltroPO();\r\n\r\n\t\t\tCarga c = facade.getCargaById(invoice.getCarga().getId());\r\n\t\t\tfiltroPO.setFilial(c.getFilial());\r\n\t\t\tlistPos = facade.listarPO(filtroPO);\r\n\t\t\tpoConverter = new ConverterUtil<PO>(listPos);\r\n\r\n\t\t} catch (BusinessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n public ResponseEntity<Collection<TodoItemDto>> getTodoItems(Integer todoItemId) {\n\n return null;\n }",
"public NavigableSet<Groupe> getGroupes();",
"public void changeSelectAnio(int item){\n\t\tList<CrGeneralDTO> listAnioHRTemp = new ArrayList<CrGeneralDTO>();\n\t\t\n\t\tIterator<CrGeneralDTO> it3 = listAnioHR.iterator();\n\t\t\n\t\twhile (it3.hasNext()) {\n\t\t\tCrGeneralDTO obj = it3.next();\n\t\t\tif(obj.getId() == item) {\n\t\t\t\tobj.setSeleted(true);\n\t\t\t\tselectAnnioRecord = Integer.parseInt(obj.getDescripcion());\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tobj.setSeleted(false);\n\t\t\t}\n\t\t\t\n\t\t\tlistAnioHRTemp.add(obj);\n\t\t}\n\t\t\n\t\tlistAnioHR = new ArrayList<CrGeneralDTO>();\n\t\tlistAnioHR = listAnioHRTemp;\n\t\t\n\t\t//================ Cargar Lista Predios ==============\n\t\t\ttry {\n\t\t\t\tlistPrediosHR = cajaBo.obtenerPredios(this.referencia.getPersonaId(),selectAnnioRecord);\n\t\t\t\t\n\t\t\t\tIterator<CrGeneralDTO> it4 = listPrediosHR.iterator();\n\t\t\t\twhile (it3.hasNext()) {\n\t\t\t\t\tCrGeneralDTO obj = it4.next();\n\t\t\t\t\tobj.setSeleted(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t//====================================================\n\t\t\n \t}",
"public List<Items> list() {\n\t\treturn itemDao.list();\r\n\t}",
"private java.util.Vector getContentItems()\r\n\t{\r\n\t\treturn contentItems;\r\n\t}"
] | [
"0.5542197",
"0.5458511",
"0.5423568",
"0.53247565",
"0.5227976",
"0.5162513",
"0.5158199",
"0.51494855",
"0.5126079",
"0.50966305",
"0.5085995",
"0.5085995",
"0.5047325",
"0.5014992",
"0.50074035",
"0.49946198",
"0.49925733",
"0.49828637",
"0.49786893",
"0.49745694",
"0.4962907",
"0.4960133",
"0.49533117",
"0.49456316",
"0.4937437",
"0.49341485",
"0.49203113",
"0.4911271",
"0.49058473",
"0.4882358",
"0.48721966",
"0.48513162",
"0.4835101",
"0.4809414",
"0.48078465",
"0.4795938",
"0.47846234",
"0.47763827",
"0.47734177",
"0.47482586",
"0.47387308",
"0.47322127",
"0.47312677",
"0.47163355",
"0.47107023",
"0.47054973",
"0.4703401",
"0.4694023",
"0.4690444",
"0.4690442",
"0.46776062",
"0.46741742",
"0.4669101",
"0.46659064",
"0.4650912",
"0.46470657",
"0.46450576",
"0.46410698",
"0.46347067",
"0.46285486",
"0.4621473",
"0.46211928",
"0.46166682",
"0.46115774",
"0.46109095",
"0.4610709",
"0.4610342",
"0.46081197",
"0.4605667",
"0.46047035",
"0.45945022",
"0.45787874",
"0.45710254",
"0.45665616",
"0.4561681",
"0.45576036",
"0.45574483",
"0.45378146",
"0.45374998",
"0.45317227",
"0.45243493",
"0.45223564",
"0.4517488",
"0.45138225",
"0.4509162",
"0.45059252",
"0.4505906",
"0.45013714",
"0.4500737",
"0.44990814",
"0.4488495",
"0.44868115",
"0.4478466",
"0.44741142",
"0.44718492",
"0.44698107",
"0.44567698",
"0.4456734",
"0.44545695",
"0.4452338"
] | 0.58890027 | 0 |
A comment to describe the origin request policy. The comment cannot be longer than 128 characters. | public void setComment(String comment) {
this.comment = comment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OriginRequestPolicyConfig withComment(String comment) {\n setComment(comment);\n return this;\n }",
"@ApiModelProperty(value = \"The Software Statement RFC-3986-compliant policy URI\")\n\n@Size(max=256) \n public String getPolicyUri() {\n return policyUri;\n }",
"String privacyPolicy();",
"@ApiModelProperty(value = \"String describing the policy\")\n public String getDescription() {\n return description;\n }",
"org.hl7.fhir.String getComments();",
"java.lang.String getSignatureComments();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPolicyLine();",
"@Override\n\tpublic String createComment_request() {\n\t\treturn null;\n\t}",
"public String getComment() {\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getComment() \" );\n Via via=(Via)sipHeader;\n return via.getComment();\n }",
"String decideResponseOriginHeader(List<String> allowed, String origin) {\n\t\tif (allowed == null || allowed.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tif (allowed.contains(\"*\")) {\n\t\t\treturn \"*\";\n\t\t}\n\t\tif (allowed.contains(origin)) {\n\t\t\treturn origin;\n\t\t}\n\t\treturn null;\n\t}",
"public void setPolicyLine(java.lang.String value);",
"@Override\n public Exp getBasePolicyCode() {\n return null;\n }",
"@ApiModelProperty(value = \"Purpose for which the token was requested.\")\n public String getDescription() {\n return description;\n }",
"String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}",
"String getBlockPolicy();",
"public String getComment() {\n return description;\n }",
"public String getRestrictionDescription() {\n return restrictionDescription;\n }",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment() {\n Object ref = comment_;\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 if (bs.isValidUtf8()) {\n comment_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getPolicyURL() {\n return policyURL;\n }",
"String getComment();",
"String getComment();",
"public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}",
"public String getComment() {\n Object ref = comment_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comment_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"String getComment() {\n final StringBuilder sb = new StringBuilder();\n sb.append(indent(1)).append(\"/**\").append(EOL);\n sb.append(indent(1)).append(\" * \").append(\"{@code\").append(EOL);\n\n // Unwrapped so that you can search through the descriptor\n // file for a message and not have to worry about line breaks\n final String ws = formatString; // wrapText(formatString, 70);\n\n final String[] sa = ws.split(EOL);\n for (final String s : sa) {\n sb.append(indent(1)).append(\" * \").append(s).append(EOL);\n }\n\n sb.append(indent(1)).append(\" * \").append(\"}\").append(EOL);\n sb.append(indent(1)).append(\" */\").append(EOL);\n return sb.toString();\n }",
"org.hl7.fhir.String addNewComments();",
"public String getPolicy() {\r\n String policy = \"\";\r\n if (!policyRules.isEmpty()) {\r\n policy += policyRules.get(0).getRule().trim();\r\n for (int i = 1; i < policyRules.size(); i++) {\r\n policy += \",\" + policyRules.get(i).getRule().trim();\r\n }\r\n }\r\n\r\n return policy.trim();\r\n }",
"public String description(){\n\t\treturn \"Mark: \" + mark + \"\\n\" + \"Comment: \" + comment;\n\t}",
"public PolicyDetailsRecord() {\n\t\tsuper(PolicyDetails.POLICY_DETAILS);\n\t}",
"public static String getPolicyString(short policy) {\n\t\treturn POLICY_STRINGS[policy];\n\t}",
"public String getOrigin() {\n return origin;\n }",
"public String getOrigin() {\n return origin;\n }",
"public final String getComment() {\n return comment;\n }",
"public String getSampleComment();",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"com.google.protobuf.ByteString\n getCommentBytes();",
"public String getComment() {\n return comment ;\n }",
"public String getOrigin(){\n\t\treturn origin;\n\t}",
"public String getComment()\n {\n return comment;\n }",
"public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }",
"public void setComments(java.lang.String value);",
"public String getComment(){\n return comment;\n }",
"public String getComment() {\n return this.comment;\n }",
"public String getComment(){\n return this.comment;\n }",
"public String getAcCommentsMessage() {\n return acCommentsMessage;\n }",
"public String getComment() {\r\n\t\treturn comment;\r\n\t}",
"public java.lang.String getPolicyNo() {\n return policyNo;\n }",
"public java.lang.String getPolicyNo() {\n return policyNo;\n }",
"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();",
"java.lang.String getComments();",
"com.google.protobuf.ByteString\n getCommentsBytes();",
"public String getComment() {\n\t\tif (comment != null)\n\t\t\treturn ProteomeXchangeFilev2_1.COM + TAB\n\t\t\t// + \"comment\" + TAB\n\t\t\t\t\t+ comment;\n\t\treturn null;\n\t}",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public String getComment() {\n\t\treturn comment;\n\t}",
"@Override\n\tpublic String getReferrerPolicy() {\n\t\tNodeList nl = document.getElementsByTagName(\"meta\");\n\t\t// The last one takes precedence\n\t\tfor (int i = nl.getLength() - 1; i >= 0; i--) {\n\t\t\tElement el = (Element) nl.item(i);\n\t\t\tif (\"referrer\".equalsIgnoreCase(el.getAttribute(\"name\"))) {\n\t\t\t\tString policy = el.getAttribute(\"content\");\n\t\t\t\tif (policy.length() != 0) {\n\t\t\t\t\tmetaReferrerPolicy = policy;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn metaReferrerPolicy;\n\t}",
"public void setPolicy(short policy) {\n\t\t_policy = policy;\n\t}",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getComments() {\n java.lang.Object ref = comments_;\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 comments_ = s;\n }\n return s;\n }\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"public String parameterComment() {\n return parameterComment;\n }",
"public static String getChallenge() {\n return \"00 84 00 00 00\";\n }",
"public java.lang.String getComments() {\n java.lang.Object ref = comments_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comments_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setComment(String comment);",
"public void setComment(String comment);",
"@NotNull\n String getDescription();",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static String buildSecurityQuestionURL() {\n return NISUtils.getURL() + \"/nis/nwapi/v2/customer/securityquestion\";\n\t}",
"@Override\n public String getDescription() {\n return \"Arbitrary message\";\n }",
"void setSignatureComments(java.lang.String signatureComments);",
"public StringWithCustomFacts getRestrictionNotice() {\n return restrictionNotice;\n }",
"void setComments(org.hl7.fhir.String comments);",
"ContentSecurityPolicy getContentSecurityPolicy();",
"public void setHopscomment( java.lang.String newValue ) {\n __setCache(\"hopscomment\", newValue);\n }",
"@Override\n\tpublic String getDesignation() {\n\t\treturn \"NOTE \";\n\t}",
"@Override\n public void comment(String comment)\n {\n }",
"@Override\n\tpublic java.lang.String getDescription() {\n\t\treturn _permissionType.getDescription();\n\t}",
"private String issuer() {\n return \"spoqn.com\";\n }",
"@ApiModelProperty(value = \"A description of the claim.\")\n public DtoValueString getDescription() {\n return description;\n }",
"String getCheckinComment();",
"public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCommentContent() {\n return commentContent;\n }"
] | [
"0.600284",
"0.59364176",
"0.581487",
"0.5692022",
"0.54967624",
"0.5483498",
"0.5459916",
"0.542538",
"0.53623563",
"0.5335817",
"0.5334937",
"0.5301174",
"0.5251088",
"0.5200294",
"0.51979524",
"0.5149952",
"0.5090156",
"0.5090113",
"0.5090113",
"0.5090113",
"0.5090113",
"0.5090113",
"0.5090113",
"0.5066206",
"0.50631636",
"0.504865",
"0.504865",
"0.50412095",
"0.4967592",
"0.49643293",
"0.49594346",
"0.49364096",
"0.49348542",
"0.49326962",
"0.4910612",
"0.49081367",
"0.49081367",
"0.48987997",
"0.4890665",
"0.48738885",
"0.48738885",
"0.48738885",
"0.48738885",
"0.48738885",
"0.48738885",
"0.48738885",
"0.4873811",
"0.48713538",
"0.4855036",
"0.48516446",
"0.48515624",
"0.4841552",
"0.48413572",
"0.4840075",
"0.48359266",
"0.4831098",
"0.48246902",
"0.48098183",
"0.48098183",
"0.47943437",
"0.47943437",
"0.47943437",
"0.47943437",
"0.47943437",
"0.47943437",
"0.47943437",
"0.47943437",
"0.47943437",
"0.47776005",
"0.47745788",
"0.4773458",
"0.4770306",
"0.4770306",
"0.476752",
"0.47659683",
"0.47655052",
"0.47495565",
"0.47487408",
"0.47487408",
"0.4732743",
"0.47283593",
"0.47246087",
"0.4709615",
"0.4709615",
"0.47080776",
"0.4704952",
"0.4690252",
"0.46820885",
"0.46804672",
"0.4677638",
"0.46727583",
"0.46707165",
"0.46677446",
"0.4667688",
"0.46618366",
"0.46588942",
"0.46434748",
"0.46423993",
"0.463848",
"0.4632109",
"0.46264753"
] | 0.0 | -1 |
A comment to describe the origin request policy. The comment cannot be longer than 128 characters. | public String getComment() {
return this.comment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OriginRequestPolicyConfig withComment(String comment) {\n setComment(comment);\n return this;\n }",
"@ApiModelProperty(value = \"The Software Statement RFC-3986-compliant policy URI\")\n\n@Size(max=256) \n public String getPolicyUri() {\n return policyUri;\n }",
"String privacyPolicy();",
"@ApiModelProperty(value = \"String describing the policy\")\n public String getDescription() {\n return description;\n }",
"org.hl7.fhir.String getComments();",
"java.lang.String getSignatureComments();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPolicyLine();",
"@Override\n\tpublic String createComment_request() {\n\t\treturn null;\n\t}",
"public String getComment() {\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getComment() \" );\n Via via=(Via)sipHeader;\n return via.getComment();\n }",
"public void setPolicyLine(java.lang.String value);",
"String decideResponseOriginHeader(List<String> allowed, String origin) {\n\t\tif (allowed == null || allowed.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tif (allowed.contains(\"*\")) {\n\t\t\treturn \"*\";\n\t\t}\n\t\tif (allowed.contains(origin)) {\n\t\t\treturn origin;\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n public Exp getBasePolicyCode() {\n return null;\n }",
"@ApiModelProperty(value = \"Purpose for which the token was requested.\")\n public String getDescription() {\n return description;\n }",
"String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}",
"String getBlockPolicy();",
"public String getComment() {\n return description;\n }",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getRestrictionDescription() {\n return restrictionDescription;\n }",
"public String getComment() {\n Object ref = comment_;\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 if (bs.isValidUtf8()) {\n comment_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getPolicyURL() {\n return policyURL;\n }",
"String getComment();",
"String getComment();",
"public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}",
"public String getComment() {\n Object ref = comment_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comment_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"String getComment() {\n final StringBuilder sb = new StringBuilder();\n sb.append(indent(1)).append(\"/**\").append(EOL);\n sb.append(indent(1)).append(\" * \").append(\"{@code\").append(EOL);\n\n // Unwrapped so that you can search through the descriptor\n // file for a message and not have to worry about line breaks\n final String ws = formatString; // wrapText(formatString, 70);\n\n final String[] sa = ws.split(EOL);\n for (final String s : sa) {\n sb.append(indent(1)).append(\" * \").append(s).append(EOL);\n }\n\n sb.append(indent(1)).append(\" * \").append(\"}\").append(EOL);\n sb.append(indent(1)).append(\" */\").append(EOL);\n return sb.toString();\n }",
"org.hl7.fhir.String addNewComments();",
"public String description(){\n\t\treturn \"Mark: \" + mark + \"\\n\" + \"Comment: \" + comment;\n\t}",
"public String getPolicy() {\r\n String policy = \"\";\r\n if (!policyRules.isEmpty()) {\r\n policy += policyRules.get(0).getRule().trim();\r\n for (int i = 1; i < policyRules.size(); i++) {\r\n policy += \",\" + policyRules.get(i).getRule().trim();\r\n }\r\n }\r\n\r\n return policy.trim();\r\n }",
"public PolicyDetailsRecord() {\n\t\tsuper(PolicyDetails.POLICY_DETAILS);\n\t}",
"public static String getPolicyString(short policy) {\n\t\treturn POLICY_STRINGS[policy];\n\t}",
"public String getOrigin() {\n return origin;\n }",
"public String getOrigin() {\n return origin;\n }",
"public final String getComment() {\n return comment;\n }",
"public String getSampleComment();",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"com.google.protobuf.ByteString\n getCommentBytes();",
"public String getComment() {\n return comment ;\n }",
"public String getComment()\n {\n return comment;\n }",
"public String getOrigin(){\n\t\treturn origin;\n\t}",
"public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }",
"public String getComment(){\n return comment;\n }",
"public void setComments(java.lang.String value);",
"public String getComment(){\n return this.comment;\n }",
"public String getAcCommentsMessage() {\n return acCommentsMessage;\n }",
"public String getComment() {\r\n\t\treturn comment;\r\n\t}",
"public java.lang.String getPolicyNo() {\n return policyNo;\n }",
"public java.lang.String getPolicyNo() {\n return policyNo;\n }",
"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();",
"java.lang.String getComments();",
"public String getComment() {\n\t\tif (comment != null)\n\t\t\treturn ProteomeXchangeFilev2_1.COM + TAB\n\t\t\t// + \"comment\" + TAB\n\t\t\t\t\t+ comment;\n\t\treturn null;\n\t}",
"com.google.protobuf.ByteString\n getCommentsBytes();",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n\tpublic String getReferrerPolicy() {\n\t\tNodeList nl = document.getElementsByTagName(\"meta\");\n\t\t// The last one takes precedence\n\t\tfor (int i = nl.getLength() - 1; i >= 0; i--) {\n\t\t\tElement el = (Element) nl.item(i);\n\t\t\tif (\"referrer\".equalsIgnoreCase(el.getAttribute(\"name\"))) {\n\t\t\t\tString policy = el.getAttribute(\"content\");\n\t\t\t\tif (policy.length() != 0) {\n\t\t\t\t\tmetaReferrerPolicy = policy;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn metaReferrerPolicy;\n\t}",
"public void setPolicy(short policy) {\n\t\t_policy = policy;\n\t}",
"public java.lang.String getComments() {\n java.lang.Object ref = comments_;\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 comments_ = s;\n }\n return s;\n }\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"public String parameterComment() {\n return parameterComment;\n }",
"public static String getChallenge() {\n return \"00 84 00 00 00\";\n }",
"public java.lang.String getComments() {\n java.lang.Object ref = comments_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comments_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setComment(String comment);",
"public void setComment(String comment);",
"@NotNull\n String getDescription();",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static String buildSecurityQuestionURL() {\n return NISUtils.getURL() + \"/nis/nwapi/v2/customer/securityquestion\";\n\t}",
"@Override\n public String getDescription() {\n return \"Arbitrary message\";\n }",
"void setSignatureComments(java.lang.String signatureComments);",
"public StringWithCustomFacts getRestrictionNotice() {\n return restrictionNotice;\n }",
"void setComments(org.hl7.fhir.String comments);",
"public void setHopscomment( java.lang.String newValue ) {\n __setCache(\"hopscomment\", newValue);\n }",
"ContentSecurityPolicy getContentSecurityPolicy();",
"@Override\n\tpublic String getDesignation() {\n\t\treturn \"NOTE \";\n\t}",
"@Override\n public void comment(String comment)\n {\n }",
"@Override\n\tpublic java.lang.String getDescription() {\n\t\treturn _permissionType.getDescription();\n\t}",
"@ApiModelProperty(value = \"A description of the claim.\")\n public DtoValueString getDescription() {\n return description;\n }",
"private String issuer() {\n return \"spoqn.com\";\n }",
"String getCheckinComment();",
"public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCommentContent() {\n return commentContent;\n }"
] | [
"0.60019714",
"0.59342885",
"0.58115476",
"0.5691147",
"0.5499147",
"0.54837596",
"0.54584527",
"0.5428354",
"0.5364685",
"0.53330266",
"0.53329295",
"0.5298703",
"0.5252348",
"0.5203775",
"0.51941127",
"0.51535696",
"0.5094",
"0.5094",
"0.5094",
"0.5094",
"0.5094",
"0.5094",
"0.5091272",
"0.50699556",
"0.50597423",
"0.5051892",
"0.5051892",
"0.5044792",
"0.49714202",
"0.4966507",
"0.4961391",
"0.49375",
"0.49333152",
"0.49311632",
"0.49084264",
"0.4907217",
"0.4907217",
"0.49023315",
"0.48936582",
"0.4877567",
"0.4877567",
"0.4877567",
"0.4877567",
"0.4877567",
"0.4877567",
"0.4877567",
"0.48774678",
"0.48749062",
"0.48552528",
"0.48541677",
"0.48538077",
"0.48449638",
"0.48442662",
"0.4839651",
"0.4833322",
"0.4828334",
"0.48071527",
"0.48071527",
"0.4796205",
"0.4796205",
"0.4796205",
"0.4796205",
"0.4796205",
"0.4796205",
"0.4796205",
"0.4796205",
"0.4796205",
"0.47796857",
"0.4777203",
"0.47771823",
"0.47738633",
"0.47738633",
"0.4769287",
"0.47656977",
"0.47633898",
"0.47525257",
"0.47469124",
"0.47469124",
"0.47349045",
"0.4728503",
"0.47275966",
"0.4713096",
"0.4713096",
"0.47113252",
"0.47086132",
"0.4690942",
"0.46837512",
"0.46806014",
"0.46785572",
"0.46748754",
"0.46707425",
"0.46694306",
"0.4668988",
"0.46647078",
"0.4659763",
"0.46438557",
"0.46433002",
"0.46400186",
"0.46352398",
"0.46302158"
] | 0.48438936 | 53 |
A comment to describe the origin request policy. The comment cannot be longer than 128 characters. | public OriginRequestPolicyConfig withComment(String comment) {
setComment(comment);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@ApiModelProperty(value = \"The Software Statement RFC-3986-compliant policy URI\")\n\n@Size(max=256) \n public String getPolicyUri() {\n return policyUri;\n }",
"String privacyPolicy();",
"@ApiModelProperty(value = \"String describing the policy\")\n public String getDescription() {\n return description;\n }",
"org.hl7.fhir.String getComments();",
"java.lang.String getSignatureComments();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPolicyLine();",
"@Override\n\tpublic String createComment_request() {\n\t\treturn null;\n\t}",
"public String getComment() {\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getComment() \" );\n Via via=(Via)sipHeader;\n return via.getComment();\n }",
"String decideResponseOriginHeader(List<String> allowed, String origin) {\n\t\tif (allowed == null || allowed.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tif (allowed.contains(\"*\")) {\n\t\t\treturn \"*\";\n\t\t}\n\t\tif (allowed.contains(origin)) {\n\t\t\treturn origin;\n\t\t}\n\t\treturn null;\n\t}",
"public void setPolicyLine(java.lang.String value);",
"@Override\n public Exp getBasePolicyCode() {\n return null;\n }",
"@ApiModelProperty(value = \"Purpose for which the token was requested.\")\n public String getDescription() {\n return description;\n }",
"String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}",
"String getBlockPolicy();",
"public String getComment() {\n return description;\n }",
"public String getRestrictionDescription() {\n return restrictionDescription;\n }",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment() {\n Object ref = comment_;\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 if (bs.isValidUtf8()) {\n comment_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getPolicyURL() {\n return policyURL;\n }",
"String getComment();",
"String getComment();",
"public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}",
"public String getComment() {\n Object ref = comment_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comment_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"String getComment() {\n final StringBuilder sb = new StringBuilder();\n sb.append(indent(1)).append(\"/**\").append(EOL);\n sb.append(indent(1)).append(\" * \").append(\"{@code\").append(EOL);\n\n // Unwrapped so that you can search through the descriptor\n // file for a message and not have to worry about line breaks\n final String ws = formatString; // wrapText(formatString, 70);\n\n final String[] sa = ws.split(EOL);\n for (final String s : sa) {\n sb.append(indent(1)).append(\" * \").append(s).append(EOL);\n }\n\n sb.append(indent(1)).append(\" * \").append(\"}\").append(EOL);\n sb.append(indent(1)).append(\" */\").append(EOL);\n return sb.toString();\n }",
"org.hl7.fhir.String addNewComments();",
"public String getPolicy() {\r\n String policy = \"\";\r\n if (!policyRules.isEmpty()) {\r\n policy += policyRules.get(0).getRule().trim();\r\n for (int i = 1; i < policyRules.size(); i++) {\r\n policy += \",\" + policyRules.get(i).getRule().trim();\r\n }\r\n }\r\n\r\n return policy.trim();\r\n }",
"public String description(){\n\t\treturn \"Mark: \" + mark + \"\\n\" + \"Comment: \" + comment;\n\t}",
"public PolicyDetailsRecord() {\n\t\tsuper(PolicyDetails.POLICY_DETAILS);\n\t}",
"public static String getPolicyString(short policy) {\n\t\treturn POLICY_STRINGS[policy];\n\t}",
"public String getOrigin() {\n return origin;\n }",
"public String getOrigin() {\n return origin;\n }",
"public final String getComment() {\n return comment;\n }",
"public String getSampleComment();",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"com.google.protobuf.ByteString\n getCommentBytes();",
"public String getComment() {\n return comment ;\n }",
"public String getOrigin(){\n\t\treturn origin;\n\t}",
"public String getComment()\n {\n return comment;\n }",
"public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }",
"public void setComments(java.lang.String value);",
"public String getComment(){\n return comment;\n }",
"public String getComment() {\n return this.comment;\n }",
"public String getComment(){\n return this.comment;\n }",
"public String getAcCommentsMessage() {\n return acCommentsMessage;\n }",
"public String getComment() {\r\n\t\treturn comment;\r\n\t}",
"public java.lang.String getPolicyNo() {\n return policyNo;\n }",
"public java.lang.String getPolicyNo() {\n return policyNo;\n }",
"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();",
"java.lang.String getComments();",
"com.google.protobuf.ByteString\n getCommentsBytes();",
"public String getComment() {\n\t\tif (comment != null)\n\t\t\treturn ProteomeXchangeFilev2_1.COM + TAB\n\t\t\t// + \"comment\" + TAB\n\t\t\t\t\t+ comment;\n\t\treturn null;\n\t}",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public String getComment() {\n\t\treturn comment;\n\t}",
"@Override\n\tpublic String getReferrerPolicy() {\n\t\tNodeList nl = document.getElementsByTagName(\"meta\");\n\t\t// The last one takes precedence\n\t\tfor (int i = nl.getLength() - 1; i >= 0; i--) {\n\t\t\tElement el = (Element) nl.item(i);\n\t\t\tif (\"referrer\".equalsIgnoreCase(el.getAttribute(\"name\"))) {\n\t\t\t\tString policy = el.getAttribute(\"content\");\n\t\t\t\tif (policy.length() != 0) {\n\t\t\t\t\tmetaReferrerPolicy = policy;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn metaReferrerPolicy;\n\t}",
"public void setPolicy(short policy) {\n\t\t_policy = policy;\n\t}",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getComments() {\n java.lang.Object ref = comments_;\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 comments_ = s;\n }\n return s;\n }\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"public String parameterComment() {\n return parameterComment;\n }",
"public static String getChallenge() {\n return \"00 84 00 00 00\";\n }",
"public java.lang.String getComments() {\n java.lang.Object ref = comments_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comments_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setComment(String comment);",
"public void setComment(String comment);",
"@NotNull\n String getDescription();",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static String buildSecurityQuestionURL() {\n return NISUtils.getURL() + \"/nis/nwapi/v2/customer/securityquestion\";\n\t}",
"@Override\n public String getDescription() {\n return \"Arbitrary message\";\n }",
"void setSignatureComments(java.lang.String signatureComments);",
"public StringWithCustomFacts getRestrictionNotice() {\n return restrictionNotice;\n }",
"void setComments(org.hl7.fhir.String comments);",
"ContentSecurityPolicy getContentSecurityPolicy();",
"public void setHopscomment( java.lang.String newValue ) {\n __setCache(\"hopscomment\", newValue);\n }",
"@Override\n\tpublic String getDesignation() {\n\t\treturn \"NOTE \";\n\t}",
"@Override\n public void comment(String comment)\n {\n }",
"@Override\n\tpublic java.lang.String getDescription() {\n\t\treturn _permissionType.getDescription();\n\t}",
"private String issuer() {\n return \"spoqn.com\";\n }",
"@ApiModelProperty(value = \"A description of the claim.\")\n public DtoValueString getDescription() {\n return description;\n }",
"String getCheckinComment();",
"public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCommentContent() {\n return commentContent;\n }"
] | [
"0.59364176",
"0.581487",
"0.5692022",
"0.54967624",
"0.5483498",
"0.5459916",
"0.542538",
"0.53623563",
"0.5335817",
"0.5334937",
"0.5301174",
"0.5251088",
"0.5200294",
"0.51979524",
"0.5149952",
"0.5090156",
"0.5090113",
"0.5090113",
"0.5090113",
"0.5090113",
"0.5090113",
"0.5090113",
"0.5066206",
"0.50631636",
"0.504865",
"0.504865",
"0.50412095",
"0.4967592",
"0.49643293",
"0.49594346",
"0.49364096",
"0.49348542",
"0.49326962",
"0.4910612",
"0.49081367",
"0.49081367",
"0.48987997",
"0.4890665",
"0.48738885",
"0.48738885",
"0.48738885",
"0.48738885",
"0.48738885",
"0.48738885",
"0.48738885",
"0.4873811",
"0.48713538",
"0.4855036",
"0.48516446",
"0.48515624",
"0.4841552",
"0.48413572",
"0.4840075",
"0.48359266",
"0.4831098",
"0.48246902",
"0.48098183",
"0.48098183",
"0.47943437",
"0.47943437",
"0.47943437",
"0.47943437",
"0.47943437",
"0.47943437",
"0.47943437",
"0.47943437",
"0.47943437",
"0.47776005",
"0.47745788",
"0.4773458",
"0.4770306",
"0.4770306",
"0.476752",
"0.47659683",
"0.47655052",
"0.47495565",
"0.47487408",
"0.47487408",
"0.4732743",
"0.47283593",
"0.47246087",
"0.4709615",
"0.4709615",
"0.47080776",
"0.4704952",
"0.4690252",
"0.46820885",
"0.46804672",
"0.4677638",
"0.46727583",
"0.46707165",
"0.46677446",
"0.4667688",
"0.46618366",
"0.46588942",
"0.46434748",
"0.46423993",
"0.463848",
"0.4632109",
"0.46264753"
] | 0.600284 | 0 |
A unique name to identify the origin request policy. | public void setName(String name) {
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPolicyName() {\n \t\treturn policyName;\n \t}",
"@Attribute(order = 100, validators = { RequiredValueValidator.class })\n\t\tString policyName();",
"@Override\n public Exp getBasePolicyCode() {\n return null;\n }",
"int getOriginName();",
"String privacyPolicy();",
"public String getPolicyGroupName() \n {\n return policyGroupName;\n }",
"public java.lang.String getPolicyURL() {\n return policyURL;\n }",
"public ServerName getOrigin() {\n return origin;\n }",
"public String getCurrentRequestId()\n\t{\n\t\tString reqID = (String) MDC.get(REQUEST_ID);\n\t\tif (reqID == null || \"\".equals(reqID))\n\t\t{\n\t\t\treqID = \"RID_\" + UUID.randomUUID().toString();\n\t\t\tMDC.put(REQUEST_ID, reqID);\n\t\t}\n\t\treturn reqID;\n\t}",
"public String getName() {\n\t\t\n\t\tString name = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\tname = securityContext.getIdToken().getPreferredUsername();\n\t\t}\n\t\t\n\t\treturn name;\n\t}",
"public String getDnsPolicy() {\n return dnsPolicy;\n }",
"public java.lang.String getPolicyNo() {\n return policyNo;\n }",
"public java.lang.String getPolicyNo() {\n return policyNo;\n }",
"public String getOrigin() {\n if (originId == null) {\n Utility util = Utility.getInstance();\n String id = util.getUuid();\n if (Platform.appId != null) {\n byte[] hash = crypto.getSHA256(util.getUTF(Platform.appId));\n id = util.bytes2hex(hash).substring(0, id.length());\n }\n originId = util.getDateOnly(new Date()) + id;\n }\n return originId;\n }",
"private String getPolicyFileName(String caFileName) {\n return caFileName.substring(0, caFileName\n .lastIndexOf(\".\")) + \n SIGNING_POLICY_FILE_SUFFIX ;\n }",
"public java.lang.String getOriginProviderId() {\n java.lang.Object ref = originProviderId_;\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 originProviderId_ = s;\n return s;\n }\n }",
"public java.lang.String getOriginProviderId() {\n java.lang.Object ref = originProviderId_;\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 originProviderId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@JsonProperty(\"origin_name\")\n public String getOriginName() {\n return originName;\n }",
"protected String createRequestId(HttpServletRequest ignored) {\n return idGenerator.next();\n }",
"@Override\n public String getName() {\n return Constant.messages.getString(\"pscanrules.noanticsrftokens.name\");\n }",
"public String getAbyssPolicy()\n {\n return m_AbyssPolicy;\n }",
"public static String getPolicyString(short policy) {\n\t\treturn POLICY_STRINGS[policy];\n\t}",
"public static <T> String generateName(@NonNull final ResourceHandlerRequest<T> request) {\n return IdentifierUtils.generateResourceIdentifier(\n request.getLogicalResourceIdentifier(),\n request.getClientRequestToken(),\n MAX_LENGTH_RESOURCE_NAME\n );\n }",
"@AutoEscape\n\tpublic String getRequesterName();",
"public String getSecurityPolicyFile()\n\t{\n\t\treturn securityPolicyFile;\n\t}",
"public String getOrigin() {\n return origin;\n }",
"public String getOrigin() {\n return origin;\n }",
"Policy _get_policy(int policy_type);",
"@JsonProperty(\"origin_name\")\n public void setOriginName(String originName) {\n this.originName = originName;\n }",
"OctetString getSecurityName();",
"java.lang.String getRequestId();",
"public java.lang.String getWebToCaseDefaultOrigin() {\n return webToCaseDefaultOrigin;\n }",
"String decideResponseOriginHeader(List<String> allowed, String origin) {\n\t\tif (allowed == null || allowed.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tif (allowed.contains(\"*\")) {\n\t\t\treturn \"*\";\n\t\t}\n\t\tif (allowed.contains(origin)) {\n\t\t\treturn origin;\n\t\t}\n\t\treturn null;\n\t}",
"public String getOrigin(){\n\t\treturn origin;\n\t}",
"String getServerRequestId();",
"@XmlElement(name = \"source_policy\")\r\n public ProtectionSourcePolicy getSourcePolicy() {\r\n return sourcePolicy;\r\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"@ApiModelProperty(value = \"The Software Statement RFC-3986-compliant policy URI\")\n\n@Size(max=256) \n public String getPolicyUri() {\n return policyUri;\n }",
"public OriginRequestPolicyConfig withName(String name) {\n setName(name);\n return this;\n }",
"private PolicyHeader loadPolicyHeader(HttpServletRequest request) {\r\n Logger l = LogUtils.enterLog(getClass(), \"loadPolicyHeader\", new Object[]{request});\r\n LogUtils.setPage(\"ActionClass:\"+getClass().getName());\r\n PolicyHeader policyHeader = null;\r\n String policyNo = \"\";\r\n //endorsement quote id used when policyViewMode=\"ENDQUOTE\"\r\n String endQuoteId = request.getParameter(\"endQuoteId\");\r\n if (\"null\".equalsIgnoreCase(endQuoteId)) {\r\n endQuoteId = \"\";\r\n }\r\n\r\n if (!StringUtils.isBlank(request.getParameter(RequestIds.POLICY_NO))) {\r\n policyNo = request.getParameter(RequestIds.POLICY_NO);\r\n }\r\n else {\r\n if (RequestStorageManager.getInstance().has(RequestStorageIds.POLICY_NO)) {\r\n policyNo = (String) RequestStorageManager.getInstance().get(RequestStorageIds.POLICY_NO);\r\n }\r\n }\r\n\r\n if (!StringUtils.isBlank(policyNo)) {\r\n\r\n //if the policyNo is changed, unlock previour held lock\r\n if (UserSessionManager.getInstance().getUserSession().has(UserSessionIds.POLICY_HEADER)) {\r\n\r\n PolicyHeader previousPolicyHeader =\r\n (PolicyHeader) UserSessionManager.getInstance().getUserSession().get(UserSessionIds.POLICY_HEADER);\r\n if (previousPolicyHeader != null && !previousPolicyHeader.getPolicyNo().equals(policyNo)) {\r\n if (getLockManager().unLockPreviouslyHeldLock()) {\r\n UserSessionManager.getInstance().getUserSession().remove(UserSessionIds.POLICY_HEADER);\r\n }\r\n else {\r\n l.logp(Level.WARNING, getClass().getName(), \"execute\", \"For policy number:'\"+policyNo+\"', \" +\r\n \"it could not release the locks possible due to another user acquiring the lock in the meantime when the lock expired!\");\r\n }\r\n }\r\n }\r\n\r\n String policyTermHistoryId = null;\r\n PolicyViewMode policyViewMode = PolicyViewMode.WIP;\r\n\r\n if (request.getParameter(RequestIds.POLICY_TERM_HISTORY_ID) != null) {\r\n if (!StringUtils.isBlank(request.getParameter(RequestIds.POLICY_TERM_HISTORY_ID)))\r\n policyTermHistoryId = request.getParameter(RequestIds.POLICY_TERM_HISTORY_ID);\r\n }\r\n else {\r\n // If there is an in progress workflow for this policyNo, system retrieves policyTermHistoryId from this workflow.\r\n WorkflowAgent wa = WorkflowAgentImpl.getInstance();\r\n if (wa.hasWorkflow(policyNo)) {\r\n policyTermHistoryId = (String) wa.getWorkflowAttribute(policyNo, RequestIds.POLICY_TERM_HISTORY_ID);\r\n }\r\n else if (RequestStorageManager.getInstance().has(RequestStorageIds.POLICY_TERM_HISTORY_ID)) {\r\n policyTermHistoryId = RequestStorageManager.getInstance().get(RequestStorageIds.POLICY_TERM_HISTORY_ID).toString();\r\n }\r\n }\r\n\r\n // If there is an in progress workflow for this policyNo, system retrieves endQuoteId & policyViewMode from this workflow.\r\n WorkflowAgent wa = WorkflowAgentImpl.getInstance();\r\n String polViewMode = \"\";\r\n if (wa.hasWorkflow(policyNo)) {\r\n if(StringUtils.isBlank(endQuoteId) && wa.hasWorkflowAttribute(policyNo, RequestIds.END_QUOTE_ID)) {\r\n endQuoteId = (String) wa.getWorkflowAttribute(policyNo, RequestIds.END_QUOTE_ID);\r\n if (wa.hasWorkflowAttribute(policyNo, RequestIds.POLICY_VIEW_MODE)) {\r\n polViewMode = (String) wa.getWorkflowAttribute(policyNo, RequestIds.POLICY_VIEW_MODE);\r\n }\r\n }\r\n }\r\n String viewMode = !StringUtils.isBlank(polViewMode)? polViewMode : request.getParameter(RequestIds.POLICY_VIEW_MODE);\r\n\r\n if (!StringUtils.isBlank(viewMode)) {\r\n if (viewMode.indexOf(PolicyViewMode.ENDQUOTE.getName()) > -1) {\r\n viewMode = PolicyViewMode.ENDQUOTE.getName();\r\n }\r\n policyViewMode = PolicyViewMode.getInstance(viewMode);\r\n }\r\n\r\n/* String policyLockId = \"\";\r\n if (request.getParameter(RequestIds.POLICY_LOCK_ID) != null) {\r\n policyLockId = request.getParameter(RequestIds.POLICY_LOCK_ID);\r\n }*/\r\n\r\n try {\r\n PolicyManager polMgr = getPolicyManager();\r\n String process = request.getParameter(\"process\");\r\n String requestId = getClass().getName() + \"&process=\" + process;\r\n boolean isMonitorPolicy = isMonitorPolicyProcess(process);\r\n if (request.getParameter(POLICY_PHASE_CODE) != null) {\r\n RequestStorageManager.getInstance().set(POLICY_PHASE_CODE, request.getParameter(POLICY_PHASE_CODE));\r\n }\r\n policyHeader = polMgr.loadPolicyHeader(policyNo, policyTermHistoryId, policyViewMode, endQuoteId, requestId, process, isMonitorPolicy);\r\n\r\n String activityDisplayInformation = MessageManager.getInstance().formatMessage(\r\n \"cs.policy.activityHistory.displayInformation\",\r\n new String[]{policyHeader.getPolicyHolderName()});\r\n\r\n getActivityHistoryManager().recordActivityHistory(\r\n ApplicationContext.getInstance().getProperty(\"applicationId\", \"Policy\"),\r\n \"POLICY\", policyHeader.getPolicyNo(), policyHeader.getPolicyId(),\r\n \"\", activityDisplayInformation, \"\");\r\n }\r\n catch (Exception e) {\r\n AppException ae = ExceptionHelper.getInstance().handleException(\"Unable to find policy information for : \" + policyNo, e);\r\n l.throwing(getClass().getName(), \"loadPolicyHeader\", ae);\r\n throw ae;\r\n }\r\n\r\n request.setAttribute(RequestIds.POLICY_HEADER, policyHeader);\r\n request.setAttribute(RequestIds.SELECTED_POLICY_VIEW_MODE, policyHeader.getPolicyIdentifier().getPolicyViewMode());\r\n request.setAttribute(RequestIds.IS_POLICY_VIEW_MODE_VISIBLE, YesNoFlag.getInstance(policyHeader.isShowViewMode()));\r\n //request.setAttribute(RequestIds.POLICY_LOCK_ID, policyHeader.getPolicyIdentifier().getPolicyLockId());\r\n }\r\n else {\r\n try {\r\n if (getLockManager().unLockPreviouslyHeldLock()) {\r\n UserSessionManager.getInstance().getUserSession().remove(UserSessionIds.POLICY_HEADER);\r\n }\r\n else {\r\n throw new AppException(\"Unable to unlock previously held lock.\");\r\n }\r\n UserCacheManager.getInstance().remove(UserCacheManager.POLICY_OASIS_FIELDS_CACHE);\r\n }\r\n catch (Exception e) {\r\n AppException ae = ExceptionHelper.getInstance().handleException(\"Unable to find policy information for : \" + policyNo, e);\r\n l.throwing(getClass().getName(), \"loadPolicyHeader\", ae);\r\n throw ae;\r\n }\r\n }\r\n\r\n if (policyHeader != null) {\r\n if (UserSessionManager.getInstance().getUserSession().has(RequestIds.PREVIOUS_POLICY_NO) &&\r\n policyHeader.getPolicyNo().equals(UserSessionManager.getInstance().getUserSession().get(RequestIds.PREVIOUS_POLICY_NO))) {\r\n request.setAttribute(RequestIds.IS_SAME_POLICY_B, \"Y\");\r\n }\r\n else {\r\n request.setAttribute(RequestIds.IS_SAME_POLICY_B, \"N\");\r\n }\r\n UserSessionManager.getInstance().getUserSession().set(RequestIds.PREVIOUS_POLICY_NO, policyHeader.getPolicyNo());\r\n }\r\n else {\r\n request.setAttribute(RequestIds.IS_SAME_POLICY_B, \"N\");\r\n }\r\n\r\n if (l.isLoggable(Level.FINER)) {\r\n l.exiting(getClass().getName(), \"loadPolicyHeader\", policyHeader);\r\n }\r\n return policyHeader;\r\n }",
"public interface ICredentials extends RequestPolicyFactory {\n\n}",
"public java.lang.String getPolicyNbr() {\n return policyNbr;\n }",
"public DistributionPolicyInternal setName(String name) {\n this.name = name;\n return this;\n }",
"protected String getIdentifier() {\n return getBaseUrl() + normalizePath(getRequest().getPath());\n }",
"String getHeader(HttpServletRequest request, String name) throws ValidationException;",
"public static URL getUrlForPolicySync(){\r\n\t\tString strUrl = getBaseURL() + \"mip_services/core/api/1.0/policy\";\r\n\t\treturn str2url(strUrl);\r\n\t}",
"@Nullable\n @Override\n public String getName() {\n return /*this.requestMethod + \" \" +*/ this.url;\n }",
"public String getName() {\n\t\tLOGGER.debug(\"SecurityObject#getName [name=\" + this.name + \"]\");\n\n\t\treturn this.name;\n\t}",
"public String getOrigId () {\n return origId;\n }",
"public String getOrigId () {\n return origId;\n }",
"String getUniqueSignature();",
"public String getPolicy() {\r\n String policy = \"\";\r\n if (!policyRules.isEmpty()) {\r\n policy += policyRules.get(0).getRule().trim();\r\n for (int i = 1; i < policyRules.size(); i++) {\r\n policy += \",\" + policyRules.get(i).getRule().trim();\r\n }\r\n }\r\n\r\n return policy.trim();\r\n }",
"public String getPolicyArn() {\n return this.policyArn;\n }",
"public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }",
"public com.google.protobuf.ByteString\n getOriginProviderIdBytes() {\n java.lang.Object ref = originProviderId_;\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 originProviderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getRequestUrlName() {\n return \"Source\"; // TODO: parameter\n }",
"java.lang.String getRequestID();",
"public void setPolicyURL(java.lang.String policyURL) {\n this.policyURL = policyURL;\n }",
"java.lang.String getSignatureProviderId();",
"String getBlockPolicy();",
"public String getIssuerName() {\n return issuerName;\n }",
"public String getProtocolName()\n {\n return Resources.getString(\"plugin.dictaccregwizz.PROTOCOL_NAME\");\n }",
"public String getRestrictionName() {\n return restrictionName;\n }",
"public String getQtlName() {\n return (String) getAttributeInternal(QTLNAME);\n }",
"@Override\n public String getUrl() {\n return getOriginUrl();\n }",
"public com.google.protobuf.ByteString\n getOriginProviderIdBytes() {\n java.lang.Object ref = originProviderId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n originProviderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"protected PolicyHeader reloadPolicyHeader(HttpServletRequest request) {\r\n Logger l = LogUtils.getLogger(getClass());\r\n if (l.isLoggable(Level.FINER)) {\r\n l.entering(getClass().getName(), \"reloadPolicyHeader\", new Object[]{request});\r\n }\r\n\r\n request.removeAttribute(RequestIds.POLICY_HEADER);\r\n RequestStorageManager.getInstance().remove(RequestStorageIds.POLICY_HEADER);\r\n PolicyHeader policyHeader = loadPolicyHeader(request);\r\n\r\n if (l.isLoggable(Level.FINER)) {\r\n l.exiting(getClass().getName(), \"reloadPolicyHeader\", policyHeader);\r\n }\r\n\r\n return policyHeader;\r\n }",
"public String policyNo() {\r\n sleep(2000);\r\n String profileNoLable = pageHeaderForPolicyFolder.getAttribute(\"innerHTML\");\r\n String[] portfolioNo = profileNoLable.split(\" \", 3);\r\n return portfolioNo[2];\r\n }",
"public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }",
"public String getOrigin() {\n return mOrigin;\n }",
"public void setRequesterName(String requesterName);",
"protected String getName() {\n\t\tfinal String tmpName = getClass().getSimpleName();\n\t\tif (tmpName.length() == 0) {\n\t\t\t// anonymous class\n\t\t\treturn \"???\";//createAlgorithm(replanningContext).getClass().getSimpleName();\n\t\t}\n\n\t\treturn tmpName;\n\t}",
"protected String cacheKey(HttpServletRequest req) {\n return req.getRequestURI();\n }",
"Origins(String origin){\n\t\tthis.origin = origin;\n\t}",
"public String getSigRequest() {\n return sigRequest;\r\n }",
"private String getJwt(HttpServletRequest request) {\n String authHeader = request.getHeader(\"Authorization\");\n if (authHeader != null && authHeader.startsWith(\"Bearer \")) {\n return authHeader.replace(\"Bearer \", \"\");\n }\n return null;\n }",
"public String getOrigin()\n {\n return m_origin;\n }",
"public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }",
"public static String generateName() {\n return new Generex(PatternValidator.NAME_PATTERN).random();\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPolicyLine();",
"public int generatePolicyNum(){\n\t\tRandom rnd = new Random();\n\t\tint polNum = rnd.nextInt(899999) + 100000; \t\n\t\t\n\t\treturn polNum;\t\t\t\n\t}",
"private String issuer() {\n return \"spoqn.com\";\n }",
"public String generateUniqueSignature(){\n final String uuid = UniqueIdentifierGenerator.generateUniqueIdentifier();\n setSignature(uuid);\n return uuid;\n }",
"public String getOriginator() {\n return originator;\n }",
"public PolicyIDImpl() {\n super();\n }",
"public String getSignName() {\n return signName;\n }",
"public void setPolicyLine(java.lang.String value);",
"@Override\n\tpublic String name() {\n\n\t\treturn NAME;\n\t}",
"String getPresetName();",
"public static String format(ChallengeRequest request) {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(request.getScheme().getTechnicalName());\r\n sb.append(\" realm=\\\"\").append(request.getRealm()).append('\"');\r\n return sb.toString();\r\n }",
"public void setPolicy(short policy) {\n\t\t_policy = policy;\n\t}",
"abstract UUID getRequestId();",
"@Override\n\tprotected String getProgramId(HttpServletRequest request)\n\t{\n\t\treturn \"BPRA02\";\n\t}",
"public com.vmware.converter.DVSPolicy getPolicy() {\r\n return policy;\r\n }",
"public abstract String getSigAlgName();",
"public int getLNSRequestId() {\n return LNSRequestId;\n }",
"public static CustomPolicy createDefaultCustomPolicy() {\n CustomPolicy customPolicy = new CustomPolicy(SAMPLE_CUSTOM_RULE);\n customPolicy.setKeyTemplate(\"$userId\");\n String siddhiQuery = \"FROM RequestStream SELECT userId, ( userId == 'admin@carbon.super' ) AS isEligible , \"\n + \"str:concat('admin@carbon.super','') as throttleKey INSERT INTO EligibilityStream;\"\n + \"FROM EligibilityStream[isEligible==true]#throttler:timeBatch(1 min) SELECT throttleKey, \"\n + \"(count(userId) >= 5 as isThrottled, expiryTimeStamp group by throttleKey INSERT ALL EVENTS into \"\n + \"ResultStream;\";\n\n customPolicy.setSiddhiQuery(siddhiQuery);\n customPolicy.setDescription(\"Sample custom policy\");\n return customPolicy;\n }",
"public String getCookieHeaderName() {\n\treturn getCookieHeaderName(version);\n }",
"public CorsPolicy corsPolicy() {\n return this.corsPolicy;\n }",
"void removePolicyController(String name);"
] | [
"0.68103296",
"0.6771613",
"0.6066658",
"0.5730213",
"0.569812",
"0.5682288",
"0.56342715",
"0.56274265",
"0.55718863",
"0.5501357",
"0.5497524",
"0.5483823",
"0.5483823",
"0.5482238",
"0.5475418",
"0.5455818",
"0.54347533",
"0.54025906",
"0.5391406",
"0.53714055",
"0.53316474",
"0.5319552",
"0.5297877",
"0.5291275",
"0.5290281",
"0.52479",
"0.52479",
"0.52372503",
"0.5222474",
"0.5219117",
"0.520339",
"0.5198083",
"0.51958627",
"0.51742643",
"0.51720923",
"0.5134484",
"0.5127127",
"0.5127127",
"0.51251817",
"0.51157343",
"0.5101607",
"0.5089752",
"0.49964988",
"0.49889618",
"0.4988205",
"0.49740562",
"0.49605334",
"0.493632",
"0.49294227",
"0.4929317",
"0.4929317",
"0.49286976",
"0.49262315",
"0.4906834",
"0.49005643",
"0.4896256",
"0.489594",
"0.48902628",
"0.48804596",
"0.4878442",
"0.4867896",
"0.48659542",
"0.48637006",
"0.48613217",
"0.4847008",
"0.48348695",
"0.48328587",
"0.48278734",
"0.48259622",
"0.48258027",
"0.48173907",
"0.47967035",
"0.47935036",
"0.47830614",
"0.47811073",
"0.4777709",
"0.47730768",
"0.47708797",
"0.47703803",
"0.47684997",
"0.47593006",
"0.47581607",
"0.4758107",
"0.47519374",
"0.47478333",
"0.47473472",
"0.4742893",
"0.4741552",
"0.47392538",
"0.47385696",
"0.47381464",
"0.47357258",
"0.47309554",
"0.4729944",
"0.4728681",
"0.47233403",
"0.47167787",
"0.47131568",
"0.47094074",
"0.47073308",
"0.4707066"
] | 0.0 | -1 |
A unique name to identify the origin request policy. | public String getName() {
return this.name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPolicyName() {\n \t\treturn policyName;\n \t}",
"@Attribute(order = 100, validators = { RequiredValueValidator.class })\n\t\tString policyName();",
"@Override\n public Exp getBasePolicyCode() {\n return null;\n }",
"int getOriginName();",
"String privacyPolicy();",
"public String getPolicyGroupName() \n {\n return policyGroupName;\n }",
"public java.lang.String getPolicyURL() {\n return policyURL;\n }",
"public ServerName getOrigin() {\n return origin;\n }",
"public String getCurrentRequestId()\n\t{\n\t\tString reqID = (String) MDC.get(REQUEST_ID);\n\t\tif (reqID == null || \"\".equals(reqID))\n\t\t{\n\t\t\treqID = \"RID_\" + UUID.randomUUID().toString();\n\t\t\tMDC.put(REQUEST_ID, reqID);\n\t\t}\n\t\treturn reqID;\n\t}",
"public String getName() {\n\t\t\n\t\tString name = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\tname = securityContext.getIdToken().getPreferredUsername();\n\t\t}\n\t\t\n\t\treturn name;\n\t}",
"public String getDnsPolicy() {\n return dnsPolicy;\n }",
"public java.lang.String getPolicyNo() {\n return policyNo;\n }",
"public java.lang.String getPolicyNo() {\n return policyNo;\n }",
"public String getOrigin() {\n if (originId == null) {\n Utility util = Utility.getInstance();\n String id = util.getUuid();\n if (Platform.appId != null) {\n byte[] hash = crypto.getSHA256(util.getUTF(Platform.appId));\n id = util.bytes2hex(hash).substring(0, id.length());\n }\n originId = util.getDateOnly(new Date()) + id;\n }\n return originId;\n }",
"private String getPolicyFileName(String caFileName) {\n return caFileName.substring(0, caFileName\n .lastIndexOf(\".\")) + \n SIGNING_POLICY_FILE_SUFFIX ;\n }",
"public java.lang.String getOriginProviderId() {\n java.lang.Object ref = originProviderId_;\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 originProviderId_ = s;\n return s;\n }\n }",
"public java.lang.String getOriginProviderId() {\n java.lang.Object ref = originProviderId_;\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 originProviderId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@JsonProperty(\"origin_name\")\n public String getOriginName() {\n return originName;\n }",
"protected String createRequestId(HttpServletRequest ignored) {\n return idGenerator.next();\n }",
"@Override\n public String getName() {\n return Constant.messages.getString(\"pscanrules.noanticsrftokens.name\");\n }",
"public String getAbyssPolicy()\n {\n return m_AbyssPolicy;\n }",
"public static String getPolicyString(short policy) {\n\t\treturn POLICY_STRINGS[policy];\n\t}",
"public static <T> String generateName(@NonNull final ResourceHandlerRequest<T> request) {\n return IdentifierUtils.generateResourceIdentifier(\n request.getLogicalResourceIdentifier(),\n request.getClientRequestToken(),\n MAX_LENGTH_RESOURCE_NAME\n );\n }",
"public String getSecurityPolicyFile()\n\t{\n\t\treturn securityPolicyFile;\n\t}",
"@AutoEscape\n\tpublic String getRequesterName();",
"public String getOrigin() {\n return origin;\n }",
"public String getOrigin() {\n return origin;\n }",
"Policy _get_policy(int policy_type);",
"@JsonProperty(\"origin_name\")\n public void setOriginName(String originName) {\n this.originName = originName;\n }",
"OctetString getSecurityName();",
"java.lang.String getRequestId();",
"public java.lang.String getWebToCaseDefaultOrigin() {\n return webToCaseDefaultOrigin;\n }",
"String decideResponseOriginHeader(List<String> allowed, String origin) {\n\t\tif (allowed == null || allowed.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tif (allowed.contains(\"*\")) {\n\t\t\treturn \"*\";\n\t\t}\n\t\tif (allowed.contains(origin)) {\n\t\t\treturn origin;\n\t\t}\n\t\treturn null;\n\t}",
"public String getOrigin(){\n\t\treturn origin;\n\t}",
"String getServerRequestId();",
"@XmlElement(name = \"source_policy\")\r\n public ProtectionSourcePolicy getSourcePolicy() {\r\n return sourcePolicy;\r\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"@ApiModelProperty(value = \"The Software Statement RFC-3986-compliant policy URI\")\n\n@Size(max=256) \n public String getPolicyUri() {\n return policyUri;\n }",
"public OriginRequestPolicyConfig withName(String name) {\n setName(name);\n return this;\n }",
"private PolicyHeader loadPolicyHeader(HttpServletRequest request) {\r\n Logger l = LogUtils.enterLog(getClass(), \"loadPolicyHeader\", new Object[]{request});\r\n LogUtils.setPage(\"ActionClass:\"+getClass().getName());\r\n PolicyHeader policyHeader = null;\r\n String policyNo = \"\";\r\n //endorsement quote id used when policyViewMode=\"ENDQUOTE\"\r\n String endQuoteId = request.getParameter(\"endQuoteId\");\r\n if (\"null\".equalsIgnoreCase(endQuoteId)) {\r\n endQuoteId = \"\";\r\n }\r\n\r\n if (!StringUtils.isBlank(request.getParameter(RequestIds.POLICY_NO))) {\r\n policyNo = request.getParameter(RequestIds.POLICY_NO);\r\n }\r\n else {\r\n if (RequestStorageManager.getInstance().has(RequestStorageIds.POLICY_NO)) {\r\n policyNo = (String) RequestStorageManager.getInstance().get(RequestStorageIds.POLICY_NO);\r\n }\r\n }\r\n\r\n if (!StringUtils.isBlank(policyNo)) {\r\n\r\n //if the policyNo is changed, unlock previour held lock\r\n if (UserSessionManager.getInstance().getUserSession().has(UserSessionIds.POLICY_HEADER)) {\r\n\r\n PolicyHeader previousPolicyHeader =\r\n (PolicyHeader) UserSessionManager.getInstance().getUserSession().get(UserSessionIds.POLICY_HEADER);\r\n if (previousPolicyHeader != null && !previousPolicyHeader.getPolicyNo().equals(policyNo)) {\r\n if (getLockManager().unLockPreviouslyHeldLock()) {\r\n UserSessionManager.getInstance().getUserSession().remove(UserSessionIds.POLICY_HEADER);\r\n }\r\n else {\r\n l.logp(Level.WARNING, getClass().getName(), \"execute\", \"For policy number:'\"+policyNo+\"', \" +\r\n \"it could not release the locks possible due to another user acquiring the lock in the meantime when the lock expired!\");\r\n }\r\n }\r\n }\r\n\r\n String policyTermHistoryId = null;\r\n PolicyViewMode policyViewMode = PolicyViewMode.WIP;\r\n\r\n if (request.getParameter(RequestIds.POLICY_TERM_HISTORY_ID) != null) {\r\n if (!StringUtils.isBlank(request.getParameter(RequestIds.POLICY_TERM_HISTORY_ID)))\r\n policyTermHistoryId = request.getParameter(RequestIds.POLICY_TERM_HISTORY_ID);\r\n }\r\n else {\r\n // If there is an in progress workflow for this policyNo, system retrieves policyTermHistoryId from this workflow.\r\n WorkflowAgent wa = WorkflowAgentImpl.getInstance();\r\n if (wa.hasWorkflow(policyNo)) {\r\n policyTermHistoryId = (String) wa.getWorkflowAttribute(policyNo, RequestIds.POLICY_TERM_HISTORY_ID);\r\n }\r\n else if (RequestStorageManager.getInstance().has(RequestStorageIds.POLICY_TERM_HISTORY_ID)) {\r\n policyTermHistoryId = RequestStorageManager.getInstance().get(RequestStorageIds.POLICY_TERM_HISTORY_ID).toString();\r\n }\r\n }\r\n\r\n // If there is an in progress workflow for this policyNo, system retrieves endQuoteId & policyViewMode from this workflow.\r\n WorkflowAgent wa = WorkflowAgentImpl.getInstance();\r\n String polViewMode = \"\";\r\n if (wa.hasWorkflow(policyNo)) {\r\n if(StringUtils.isBlank(endQuoteId) && wa.hasWorkflowAttribute(policyNo, RequestIds.END_QUOTE_ID)) {\r\n endQuoteId = (String) wa.getWorkflowAttribute(policyNo, RequestIds.END_QUOTE_ID);\r\n if (wa.hasWorkflowAttribute(policyNo, RequestIds.POLICY_VIEW_MODE)) {\r\n polViewMode = (String) wa.getWorkflowAttribute(policyNo, RequestIds.POLICY_VIEW_MODE);\r\n }\r\n }\r\n }\r\n String viewMode = !StringUtils.isBlank(polViewMode)? polViewMode : request.getParameter(RequestIds.POLICY_VIEW_MODE);\r\n\r\n if (!StringUtils.isBlank(viewMode)) {\r\n if (viewMode.indexOf(PolicyViewMode.ENDQUOTE.getName()) > -1) {\r\n viewMode = PolicyViewMode.ENDQUOTE.getName();\r\n }\r\n policyViewMode = PolicyViewMode.getInstance(viewMode);\r\n }\r\n\r\n/* String policyLockId = \"\";\r\n if (request.getParameter(RequestIds.POLICY_LOCK_ID) != null) {\r\n policyLockId = request.getParameter(RequestIds.POLICY_LOCK_ID);\r\n }*/\r\n\r\n try {\r\n PolicyManager polMgr = getPolicyManager();\r\n String process = request.getParameter(\"process\");\r\n String requestId = getClass().getName() + \"&process=\" + process;\r\n boolean isMonitorPolicy = isMonitorPolicyProcess(process);\r\n if (request.getParameter(POLICY_PHASE_CODE) != null) {\r\n RequestStorageManager.getInstance().set(POLICY_PHASE_CODE, request.getParameter(POLICY_PHASE_CODE));\r\n }\r\n policyHeader = polMgr.loadPolicyHeader(policyNo, policyTermHistoryId, policyViewMode, endQuoteId, requestId, process, isMonitorPolicy);\r\n\r\n String activityDisplayInformation = MessageManager.getInstance().formatMessage(\r\n \"cs.policy.activityHistory.displayInformation\",\r\n new String[]{policyHeader.getPolicyHolderName()});\r\n\r\n getActivityHistoryManager().recordActivityHistory(\r\n ApplicationContext.getInstance().getProperty(\"applicationId\", \"Policy\"),\r\n \"POLICY\", policyHeader.getPolicyNo(), policyHeader.getPolicyId(),\r\n \"\", activityDisplayInformation, \"\");\r\n }\r\n catch (Exception e) {\r\n AppException ae = ExceptionHelper.getInstance().handleException(\"Unable to find policy information for : \" + policyNo, e);\r\n l.throwing(getClass().getName(), \"loadPolicyHeader\", ae);\r\n throw ae;\r\n }\r\n\r\n request.setAttribute(RequestIds.POLICY_HEADER, policyHeader);\r\n request.setAttribute(RequestIds.SELECTED_POLICY_VIEW_MODE, policyHeader.getPolicyIdentifier().getPolicyViewMode());\r\n request.setAttribute(RequestIds.IS_POLICY_VIEW_MODE_VISIBLE, YesNoFlag.getInstance(policyHeader.isShowViewMode()));\r\n //request.setAttribute(RequestIds.POLICY_LOCK_ID, policyHeader.getPolicyIdentifier().getPolicyLockId());\r\n }\r\n else {\r\n try {\r\n if (getLockManager().unLockPreviouslyHeldLock()) {\r\n UserSessionManager.getInstance().getUserSession().remove(UserSessionIds.POLICY_HEADER);\r\n }\r\n else {\r\n throw new AppException(\"Unable to unlock previously held lock.\");\r\n }\r\n UserCacheManager.getInstance().remove(UserCacheManager.POLICY_OASIS_FIELDS_CACHE);\r\n }\r\n catch (Exception e) {\r\n AppException ae = ExceptionHelper.getInstance().handleException(\"Unable to find policy information for : \" + policyNo, e);\r\n l.throwing(getClass().getName(), \"loadPolicyHeader\", ae);\r\n throw ae;\r\n }\r\n }\r\n\r\n if (policyHeader != null) {\r\n if (UserSessionManager.getInstance().getUserSession().has(RequestIds.PREVIOUS_POLICY_NO) &&\r\n policyHeader.getPolicyNo().equals(UserSessionManager.getInstance().getUserSession().get(RequestIds.PREVIOUS_POLICY_NO))) {\r\n request.setAttribute(RequestIds.IS_SAME_POLICY_B, \"Y\");\r\n }\r\n else {\r\n request.setAttribute(RequestIds.IS_SAME_POLICY_B, \"N\");\r\n }\r\n UserSessionManager.getInstance().getUserSession().set(RequestIds.PREVIOUS_POLICY_NO, policyHeader.getPolicyNo());\r\n }\r\n else {\r\n request.setAttribute(RequestIds.IS_SAME_POLICY_B, \"N\");\r\n }\r\n\r\n if (l.isLoggable(Level.FINER)) {\r\n l.exiting(getClass().getName(), \"loadPolicyHeader\", policyHeader);\r\n }\r\n return policyHeader;\r\n }",
"public interface ICredentials extends RequestPolicyFactory {\n\n}",
"public java.lang.String getPolicyNbr() {\n return policyNbr;\n }",
"public DistributionPolicyInternal setName(String name) {\n this.name = name;\n return this;\n }",
"protected String getIdentifier() {\n return getBaseUrl() + normalizePath(getRequest().getPath());\n }",
"String getHeader(HttpServletRequest request, String name) throws ValidationException;",
"public static URL getUrlForPolicySync(){\r\n\t\tString strUrl = getBaseURL() + \"mip_services/core/api/1.0/policy\";\r\n\t\treturn str2url(strUrl);\r\n\t}",
"@Nullable\n @Override\n public String getName() {\n return /*this.requestMethod + \" \" +*/ this.url;\n }",
"String getUniqueSignature();",
"public String getOrigId () {\n return origId;\n }",
"public String getOrigId () {\n return origId;\n }",
"public String getName() {\n\t\tLOGGER.debug(\"SecurityObject#getName [name=\" + this.name + \"]\");\n\n\t\treturn this.name;\n\t}",
"public String getPolicy() {\r\n String policy = \"\";\r\n if (!policyRules.isEmpty()) {\r\n policy += policyRules.get(0).getRule().trim();\r\n for (int i = 1; i < policyRules.size(); i++) {\r\n policy += \",\" + policyRules.get(i).getRule().trim();\r\n }\r\n }\r\n\r\n return policy.trim();\r\n }",
"public String getPolicyArn() {\n return this.policyArn;\n }",
"public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }",
"public com.google.protobuf.ByteString\n getOriginProviderIdBytes() {\n java.lang.Object ref = originProviderId_;\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 originProviderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getRequestUrlName() {\n return \"Source\"; // TODO: parameter\n }",
"java.lang.String getRequestID();",
"public void setPolicyURL(java.lang.String policyURL) {\n this.policyURL = policyURL;\n }",
"java.lang.String getSignatureProviderId();",
"String getBlockPolicy();",
"public String getIssuerName() {\n return issuerName;\n }",
"public String getProtocolName()\n {\n return Resources.getString(\"plugin.dictaccregwizz.PROTOCOL_NAME\");\n }",
"public String getRestrictionName() {\n return restrictionName;\n }",
"public String getQtlName() {\n return (String) getAttributeInternal(QTLNAME);\n }",
"@Override\n public String getUrl() {\n return getOriginUrl();\n }",
"public com.google.protobuf.ByteString\n getOriginProviderIdBytes() {\n java.lang.Object ref = originProviderId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n originProviderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"protected PolicyHeader reloadPolicyHeader(HttpServletRequest request) {\r\n Logger l = LogUtils.getLogger(getClass());\r\n if (l.isLoggable(Level.FINER)) {\r\n l.entering(getClass().getName(), \"reloadPolicyHeader\", new Object[]{request});\r\n }\r\n\r\n request.removeAttribute(RequestIds.POLICY_HEADER);\r\n RequestStorageManager.getInstance().remove(RequestStorageIds.POLICY_HEADER);\r\n PolicyHeader policyHeader = loadPolicyHeader(request);\r\n\r\n if (l.isLoggable(Level.FINER)) {\r\n l.exiting(getClass().getName(), \"reloadPolicyHeader\", policyHeader);\r\n }\r\n\r\n return policyHeader;\r\n }",
"public String policyNo() {\r\n sleep(2000);\r\n String profileNoLable = pageHeaderForPolicyFolder.getAttribute(\"innerHTML\");\r\n String[] portfolioNo = profileNoLable.split(\" \", 3);\r\n return portfolioNo[2];\r\n }",
"public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }",
"public String getOrigin() {\n return mOrigin;\n }",
"public void setRequesterName(String requesterName);",
"protected String getName() {\n\t\tfinal String tmpName = getClass().getSimpleName();\n\t\tif (tmpName.length() == 0) {\n\t\t\t// anonymous class\n\t\t\treturn \"???\";//createAlgorithm(replanningContext).getClass().getSimpleName();\n\t\t}\n\n\t\treturn tmpName;\n\t}",
"protected String cacheKey(HttpServletRequest req) {\n return req.getRequestURI();\n }",
"Origins(String origin){\n\t\tthis.origin = origin;\n\t}",
"public String getSigRequest() {\n return sigRequest;\r\n }",
"private String getJwt(HttpServletRequest request) {\n String authHeader = request.getHeader(\"Authorization\");\n if (authHeader != null && authHeader.startsWith(\"Bearer \")) {\n return authHeader.replace(\"Bearer \", \"\");\n }\n return null;\n }",
"public String getOrigin()\n {\n return m_origin;\n }",
"public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }",
"public static String generateName() {\n return new Generex(PatternValidator.NAME_PATTERN).random();\n }",
"public int generatePolicyNum(){\n\t\tRandom rnd = new Random();\n\t\tint polNum = rnd.nextInt(899999) + 100000; \t\n\t\t\n\t\treturn polNum;\t\t\t\n\t}",
"private String issuer() {\n return \"spoqn.com\";\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPolicyLine();",
"public String generateUniqueSignature(){\n final String uuid = UniqueIdentifierGenerator.generateUniqueIdentifier();\n setSignature(uuid);\n return uuid;\n }",
"public PolicyIDImpl() {\n super();\n }",
"public String getOriginator() {\n return originator;\n }",
"public String getSignName() {\n return signName;\n }",
"public void setPolicyLine(java.lang.String value);",
"public static String format(ChallengeRequest request) {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(request.getScheme().getTechnicalName());\r\n sb.append(\" realm=\\\"\").append(request.getRealm()).append('\"');\r\n return sb.toString();\r\n }",
"@Override\n\tpublic String name() {\n\n\t\treturn NAME;\n\t}",
"public void setPolicy(short policy) {\n\t\t_policy = policy;\n\t}",
"String getPresetName();",
"@Override\n\tprotected String getProgramId(HttpServletRequest request)\n\t{\n\t\treturn \"BPRA02\";\n\t}",
"abstract UUID getRequestId();",
"public com.vmware.converter.DVSPolicy getPolicy() {\r\n return policy;\r\n }",
"public abstract String getSigAlgName();",
"public int getLNSRequestId() {\n return LNSRequestId;\n }",
"public static CustomPolicy createDefaultCustomPolicy() {\n CustomPolicy customPolicy = new CustomPolicy(SAMPLE_CUSTOM_RULE);\n customPolicy.setKeyTemplate(\"$userId\");\n String siddhiQuery = \"FROM RequestStream SELECT userId, ( userId == 'admin@carbon.super' ) AS isEligible , \"\n + \"str:concat('admin@carbon.super','') as throttleKey INSERT INTO EligibilityStream;\"\n + \"FROM EligibilityStream[isEligible==true]#throttler:timeBatch(1 min) SELECT throttleKey, \"\n + \"(count(userId) >= 5 as isThrottled, expiryTimeStamp group by throttleKey INSERT ALL EVENTS into \"\n + \"ResultStream;\";\n\n customPolicy.setSiddhiQuery(siddhiQuery);\n customPolicy.setDescription(\"Sample custom policy\");\n return customPolicy;\n }",
"public String getCookieHeaderName() {\n\treturn getCookieHeaderName(version);\n }",
"public CorsPolicy corsPolicy() {\n return this.corsPolicy;\n }",
"void removePolicyController(String name);"
] | [
"0.6809448",
"0.6770867",
"0.6067784",
"0.57285357",
"0.57008207",
"0.56826305",
"0.5635702",
"0.5627242",
"0.5572165",
"0.549972",
"0.54980433",
"0.54843956",
"0.54843956",
"0.5482105",
"0.54760456",
"0.5454691",
"0.5433714",
"0.54012346",
"0.5392043",
"0.53707314",
"0.53328747",
"0.5319056",
"0.5296407",
"0.5292188",
"0.528973",
"0.5247576",
"0.5247576",
"0.5237111",
"0.5221247",
"0.5218567",
"0.5201941",
"0.5198519",
"0.5195294",
"0.51741236",
"0.517144",
"0.5134926",
"0.5127087",
"0.5127087",
"0.51260203",
"0.5114541",
"0.5101728",
"0.5091182",
"0.4996546",
"0.49890146",
"0.49882466",
"0.49724734",
"0.4961724",
"0.49350798",
"0.49299064",
"0.49291667",
"0.49291667",
"0.4928773",
"0.49269587",
"0.490671",
"0.49017105",
"0.48954296",
"0.48951152",
"0.48902398",
"0.48817775",
"0.48772064",
"0.48681584",
"0.48650184",
"0.4863439",
"0.48613128",
"0.48467174",
"0.48350278",
"0.483209",
"0.4827639",
"0.482635",
"0.48247066",
"0.48170865",
"0.47953016",
"0.47927806",
"0.47830442",
"0.47808215",
"0.47786716",
"0.4772955",
"0.47706056",
"0.47696215",
"0.4768593",
"0.4760579",
"0.47594887",
"0.47593376",
"0.4754223",
"0.47493696",
"0.4747097",
"0.47424632",
"0.4742151",
"0.4738741",
"0.47385728",
"0.4736592",
"0.4736144",
"0.47314212",
"0.47299954",
"0.47292644",
"0.47238222",
"0.47168964",
"0.4714889",
"0.47093776",
"0.47076613",
"0.4705332"
] | 0.0 | -1 |
A unique name to identify the origin request policy. | public OriginRequestPolicyConfig withName(String name) {
setName(name);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPolicyName() {\n \t\treturn policyName;\n \t}",
"@Attribute(order = 100, validators = { RequiredValueValidator.class })\n\t\tString policyName();",
"@Override\n public Exp getBasePolicyCode() {\n return null;\n }",
"int getOriginName();",
"String privacyPolicy();",
"public String getPolicyGroupName() \n {\n return policyGroupName;\n }",
"public java.lang.String getPolicyURL() {\n return policyURL;\n }",
"public ServerName getOrigin() {\n return origin;\n }",
"public String getCurrentRequestId()\n\t{\n\t\tString reqID = (String) MDC.get(REQUEST_ID);\n\t\tif (reqID == null || \"\".equals(reqID))\n\t\t{\n\t\t\treqID = \"RID_\" + UUID.randomUUID().toString();\n\t\t\tMDC.put(REQUEST_ID, reqID);\n\t\t}\n\t\treturn reqID;\n\t}",
"public String getName() {\n\t\t\n\t\tString name = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\tname = securityContext.getIdToken().getPreferredUsername();\n\t\t}\n\t\t\n\t\treturn name;\n\t}",
"public String getDnsPolicy() {\n return dnsPolicy;\n }",
"public String getOrigin() {\n if (originId == null) {\n Utility util = Utility.getInstance();\n String id = util.getUuid();\n if (Platform.appId != null) {\n byte[] hash = crypto.getSHA256(util.getUTF(Platform.appId));\n id = util.bytes2hex(hash).substring(0, id.length());\n }\n originId = util.getDateOnly(new Date()) + id;\n }\n return originId;\n }",
"public java.lang.String getPolicyNo() {\n return policyNo;\n }",
"public java.lang.String getPolicyNo() {\n return policyNo;\n }",
"private String getPolicyFileName(String caFileName) {\n return caFileName.substring(0, caFileName\n .lastIndexOf(\".\")) + \n SIGNING_POLICY_FILE_SUFFIX ;\n }",
"public java.lang.String getOriginProviderId() {\n java.lang.Object ref = originProviderId_;\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 originProviderId_ = s;\n return s;\n }\n }",
"public java.lang.String getOriginProviderId() {\n java.lang.Object ref = originProviderId_;\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 originProviderId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@JsonProperty(\"origin_name\")\n public String getOriginName() {\n return originName;\n }",
"protected String createRequestId(HttpServletRequest ignored) {\n return idGenerator.next();\n }",
"@Override\n public String getName() {\n return Constant.messages.getString(\"pscanrules.noanticsrftokens.name\");\n }",
"public String getAbyssPolicy()\n {\n return m_AbyssPolicy;\n }",
"public static String getPolicyString(short policy) {\n\t\treturn POLICY_STRINGS[policy];\n\t}",
"public static <T> String generateName(@NonNull final ResourceHandlerRequest<T> request) {\n return IdentifierUtils.generateResourceIdentifier(\n request.getLogicalResourceIdentifier(),\n request.getClientRequestToken(),\n MAX_LENGTH_RESOURCE_NAME\n );\n }",
"@AutoEscape\n\tpublic String getRequesterName();",
"public String getSecurityPolicyFile()\n\t{\n\t\treturn securityPolicyFile;\n\t}",
"public String getOrigin() {\n return origin;\n }",
"public String getOrigin() {\n return origin;\n }",
"Policy _get_policy(int policy_type);",
"@JsonProperty(\"origin_name\")\n public void setOriginName(String originName) {\n this.originName = originName;\n }",
"OctetString getSecurityName();",
"java.lang.String getRequestId();",
"public java.lang.String getWebToCaseDefaultOrigin() {\n return webToCaseDefaultOrigin;\n }",
"String decideResponseOriginHeader(List<String> allowed, String origin) {\n\t\tif (allowed == null || allowed.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tif (allowed.contains(\"*\")) {\n\t\t\treturn \"*\";\n\t\t}\n\t\tif (allowed.contains(origin)) {\n\t\t\treturn origin;\n\t\t}\n\t\treturn null;\n\t}",
"public String getOrigin(){\n\t\treturn origin;\n\t}",
"String getServerRequestId();",
"@XmlElement(name = \"source_policy\")\r\n public ProtectionSourcePolicy getSourcePolicy() {\r\n return sourcePolicy;\r\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"@ApiModelProperty(value = \"The Software Statement RFC-3986-compliant policy URI\")\n\n@Size(max=256) \n public String getPolicyUri() {\n return policyUri;\n }",
"private PolicyHeader loadPolicyHeader(HttpServletRequest request) {\r\n Logger l = LogUtils.enterLog(getClass(), \"loadPolicyHeader\", new Object[]{request});\r\n LogUtils.setPage(\"ActionClass:\"+getClass().getName());\r\n PolicyHeader policyHeader = null;\r\n String policyNo = \"\";\r\n //endorsement quote id used when policyViewMode=\"ENDQUOTE\"\r\n String endQuoteId = request.getParameter(\"endQuoteId\");\r\n if (\"null\".equalsIgnoreCase(endQuoteId)) {\r\n endQuoteId = \"\";\r\n }\r\n\r\n if (!StringUtils.isBlank(request.getParameter(RequestIds.POLICY_NO))) {\r\n policyNo = request.getParameter(RequestIds.POLICY_NO);\r\n }\r\n else {\r\n if (RequestStorageManager.getInstance().has(RequestStorageIds.POLICY_NO)) {\r\n policyNo = (String) RequestStorageManager.getInstance().get(RequestStorageIds.POLICY_NO);\r\n }\r\n }\r\n\r\n if (!StringUtils.isBlank(policyNo)) {\r\n\r\n //if the policyNo is changed, unlock previour held lock\r\n if (UserSessionManager.getInstance().getUserSession().has(UserSessionIds.POLICY_HEADER)) {\r\n\r\n PolicyHeader previousPolicyHeader =\r\n (PolicyHeader) UserSessionManager.getInstance().getUserSession().get(UserSessionIds.POLICY_HEADER);\r\n if (previousPolicyHeader != null && !previousPolicyHeader.getPolicyNo().equals(policyNo)) {\r\n if (getLockManager().unLockPreviouslyHeldLock()) {\r\n UserSessionManager.getInstance().getUserSession().remove(UserSessionIds.POLICY_HEADER);\r\n }\r\n else {\r\n l.logp(Level.WARNING, getClass().getName(), \"execute\", \"For policy number:'\"+policyNo+\"', \" +\r\n \"it could not release the locks possible due to another user acquiring the lock in the meantime when the lock expired!\");\r\n }\r\n }\r\n }\r\n\r\n String policyTermHistoryId = null;\r\n PolicyViewMode policyViewMode = PolicyViewMode.WIP;\r\n\r\n if (request.getParameter(RequestIds.POLICY_TERM_HISTORY_ID) != null) {\r\n if (!StringUtils.isBlank(request.getParameter(RequestIds.POLICY_TERM_HISTORY_ID)))\r\n policyTermHistoryId = request.getParameter(RequestIds.POLICY_TERM_HISTORY_ID);\r\n }\r\n else {\r\n // If there is an in progress workflow for this policyNo, system retrieves policyTermHistoryId from this workflow.\r\n WorkflowAgent wa = WorkflowAgentImpl.getInstance();\r\n if (wa.hasWorkflow(policyNo)) {\r\n policyTermHistoryId = (String) wa.getWorkflowAttribute(policyNo, RequestIds.POLICY_TERM_HISTORY_ID);\r\n }\r\n else if (RequestStorageManager.getInstance().has(RequestStorageIds.POLICY_TERM_HISTORY_ID)) {\r\n policyTermHistoryId = RequestStorageManager.getInstance().get(RequestStorageIds.POLICY_TERM_HISTORY_ID).toString();\r\n }\r\n }\r\n\r\n // If there is an in progress workflow for this policyNo, system retrieves endQuoteId & policyViewMode from this workflow.\r\n WorkflowAgent wa = WorkflowAgentImpl.getInstance();\r\n String polViewMode = \"\";\r\n if (wa.hasWorkflow(policyNo)) {\r\n if(StringUtils.isBlank(endQuoteId) && wa.hasWorkflowAttribute(policyNo, RequestIds.END_QUOTE_ID)) {\r\n endQuoteId = (String) wa.getWorkflowAttribute(policyNo, RequestIds.END_QUOTE_ID);\r\n if (wa.hasWorkflowAttribute(policyNo, RequestIds.POLICY_VIEW_MODE)) {\r\n polViewMode = (String) wa.getWorkflowAttribute(policyNo, RequestIds.POLICY_VIEW_MODE);\r\n }\r\n }\r\n }\r\n String viewMode = !StringUtils.isBlank(polViewMode)? polViewMode : request.getParameter(RequestIds.POLICY_VIEW_MODE);\r\n\r\n if (!StringUtils.isBlank(viewMode)) {\r\n if (viewMode.indexOf(PolicyViewMode.ENDQUOTE.getName()) > -1) {\r\n viewMode = PolicyViewMode.ENDQUOTE.getName();\r\n }\r\n policyViewMode = PolicyViewMode.getInstance(viewMode);\r\n }\r\n\r\n/* String policyLockId = \"\";\r\n if (request.getParameter(RequestIds.POLICY_LOCK_ID) != null) {\r\n policyLockId = request.getParameter(RequestIds.POLICY_LOCK_ID);\r\n }*/\r\n\r\n try {\r\n PolicyManager polMgr = getPolicyManager();\r\n String process = request.getParameter(\"process\");\r\n String requestId = getClass().getName() + \"&process=\" + process;\r\n boolean isMonitorPolicy = isMonitorPolicyProcess(process);\r\n if (request.getParameter(POLICY_PHASE_CODE) != null) {\r\n RequestStorageManager.getInstance().set(POLICY_PHASE_CODE, request.getParameter(POLICY_PHASE_CODE));\r\n }\r\n policyHeader = polMgr.loadPolicyHeader(policyNo, policyTermHistoryId, policyViewMode, endQuoteId, requestId, process, isMonitorPolicy);\r\n\r\n String activityDisplayInformation = MessageManager.getInstance().formatMessage(\r\n \"cs.policy.activityHistory.displayInformation\",\r\n new String[]{policyHeader.getPolicyHolderName()});\r\n\r\n getActivityHistoryManager().recordActivityHistory(\r\n ApplicationContext.getInstance().getProperty(\"applicationId\", \"Policy\"),\r\n \"POLICY\", policyHeader.getPolicyNo(), policyHeader.getPolicyId(),\r\n \"\", activityDisplayInformation, \"\");\r\n }\r\n catch (Exception e) {\r\n AppException ae = ExceptionHelper.getInstance().handleException(\"Unable to find policy information for : \" + policyNo, e);\r\n l.throwing(getClass().getName(), \"loadPolicyHeader\", ae);\r\n throw ae;\r\n }\r\n\r\n request.setAttribute(RequestIds.POLICY_HEADER, policyHeader);\r\n request.setAttribute(RequestIds.SELECTED_POLICY_VIEW_MODE, policyHeader.getPolicyIdentifier().getPolicyViewMode());\r\n request.setAttribute(RequestIds.IS_POLICY_VIEW_MODE_VISIBLE, YesNoFlag.getInstance(policyHeader.isShowViewMode()));\r\n //request.setAttribute(RequestIds.POLICY_LOCK_ID, policyHeader.getPolicyIdentifier().getPolicyLockId());\r\n }\r\n else {\r\n try {\r\n if (getLockManager().unLockPreviouslyHeldLock()) {\r\n UserSessionManager.getInstance().getUserSession().remove(UserSessionIds.POLICY_HEADER);\r\n }\r\n else {\r\n throw new AppException(\"Unable to unlock previously held lock.\");\r\n }\r\n UserCacheManager.getInstance().remove(UserCacheManager.POLICY_OASIS_FIELDS_CACHE);\r\n }\r\n catch (Exception e) {\r\n AppException ae = ExceptionHelper.getInstance().handleException(\"Unable to find policy information for : \" + policyNo, e);\r\n l.throwing(getClass().getName(), \"loadPolicyHeader\", ae);\r\n throw ae;\r\n }\r\n }\r\n\r\n if (policyHeader != null) {\r\n if (UserSessionManager.getInstance().getUserSession().has(RequestIds.PREVIOUS_POLICY_NO) &&\r\n policyHeader.getPolicyNo().equals(UserSessionManager.getInstance().getUserSession().get(RequestIds.PREVIOUS_POLICY_NO))) {\r\n request.setAttribute(RequestIds.IS_SAME_POLICY_B, \"Y\");\r\n }\r\n else {\r\n request.setAttribute(RequestIds.IS_SAME_POLICY_B, \"N\");\r\n }\r\n UserSessionManager.getInstance().getUserSession().set(RequestIds.PREVIOUS_POLICY_NO, policyHeader.getPolicyNo());\r\n }\r\n else {\r\n request.setAttribute(RequestIds.IS_SAME_POLICY_B, \"N\");\r\n }\r\n\r\n if (l.isLoggable(Level.FINER)) {\r\n l.exiting(getClass().getName(), \"loadPolicyHeader\", policyHeader);\r\n }\r\n return policyHeader;\r\n }",
"public interface ICredentials extends RequestPolicyFactory {\n\n}",
"public java.lang.String getPolicyNbr() {\n return policyNbr;\n }",
"protected String getIdentifier() {\n return getBaseUrl() + normalizePath(getRequest().getPath());\n }",
"public DistributionPolicyInternal setName(String name) {\n this.name = name;\n return this;\n }",
"String getHeader(HttpServletRequest request, String name) throws ValidationException;",
"public static URL getUrlForPolicySync(){\r\n\t\tString strUrl = getBaseURL() + \"mip_services/core/api/1.0/policy\";\r\n\t\treturn str2url(strUrl);\r\n\t}",
"@Nullable\n @Override\n public String getName() {\n return /*this.requestMethod + \" \" +*/ this.url;\n }",
"String getUniqueSignature();",
"public String getName() {\n\t\tLOGGER.debug(\"SecurityObject#getName [name=\" + this.name + \"]\");\n\n\t\treturn this.name;\n\t}",
"public String getOrigId () {\n return origId;\n }",
"public String getOrigId () {\n return origId;\n }",
"public String getPolicy() {\r\n String policy = \"\";\r\n if (!policyRules.isEmpty()) {\r\n policy += policyRules.get(0).getRule().trim();\r\n for (int i = 1; i < policyRules.size(); i++) {\r\n policy += \",\" + policyRules.get(i).getRule().trim();\r\n }\r\n }\r\n\r\n return policy.trim();\r\n }",
"public String getPolicyArn() {\n return this.policyArn;\n }",
"public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }",
"public com.google.protobuf.ByteString\n getOriginProviderIdBytes() {\n java.lang.Object ref = originProviderId_;\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 originProviderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getRequestUrlName() {\n return \"Source\"; // TODO: parameter\n }",
"java.lang.String getRequestID();",
"java.lang.String getSignatureProviderId();",
"public void setPolicyURL(java.lang.String policyURL) {\n this.policyURL = policyURL;\n }",
"String getBlockPolicy();",
"public String getIssuerName() {\n return issuerName;\n }",
"public String getProtocolName()\n {\n return Resources.getString(\"plugin.dictaccregwizz.PROTOCOL_NAME\");\n }",
"public String getRestrictionName() {\n return restrictionName;\n }",
"public String getQtlName() {\n return (String) getAttributeInternal(QTLNAME);\n }",
"@Override\n public String getUrl() {\n return getOriginUrl();\n }",
"public com.google.protobuf.ByteString\n getOriginProviderIdBytes() {\n java.lang.Object ref = originProviderId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n originProviderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }",
"public String policyNo() {\r\n sleep(2000);\r\n String profileNoLable = pageHeaderForPolicyFolder.getAttribute(\"innerHTML\");\r\n String[] portfolioNo = profileNoLable.split(\" \", 3);\r\n return portfolioNo[2];\r\n }",
"protected PolicyHeader reloadPolicyHeader(HttpServletRequest request) {\r\n Logger l = LogUtils.getLogger(getClass());\r\n if (l.isLoggable(Level.FINER)) {\r\n l.entering(getClass().getName(), \"reloadPolicyHeader\", new Object[]{request});\r\n }\r\n\r\n request.removeAttribute(RequestIds.POLICY_HEADER);\r\n RequestStorageManager.getInstance().remove(RequestStorageIds.POLICY_HEADER);\r\n PolicyHeader policyHeader = loadPolicyHeader(request);\r\n\r\n if (l.isLoggable(Level.FINER)) {\r\n l.exiting(getClass().getName(), \"reloadPolicyHeader\", policyHeader);\r\n }\r\n\r\n return policyHeader;\r\n }",
"public String getOrigin() {\n return mOrigin;\n }",
"protected String getName() {\n\t\tfinal String tmpName = getClass().getSimpleName();\n\t\tif (tmpName.length() == 0) {\n\t\t\t// anonymous class\n\t\t\treturn \"???\";//createAlgorithm(replanningContext).getClass().getSimpleName();\n\t\t}\n\n\t\treturn tmpName;\n\t}",
"public void setRequesterName(String requesterName);",
"protected String cacheKey(HttpServletRequest req) {\n return req.getRequestURI();\n }",
"Origins(String origin){\n\t\tthis.origin = origin;\n\t}",
"public String getSigRequest() {\n return sigRequest;\r\n }",
"public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }",
"public static String generateName() {\n return new Generex(PatternValidator.NAME_PATTERN).random();\n }",
"private String getJwt(HttpServletRequest request) {\n String authHeader = request.getHeader(\"Authorization\");\n if (authHeader != null && authHeader.startsWith(\"Bearer \")) {\n return authHeader.replace(\"Bearer \", \"\");\n }\n return null;\n }",
"public String getOrigin()\n {\n return m_origin;\n }",
"public int generatePolicyNum(){\n\t\tRandom rnd = new Random();\n\t\tint polNum = rnd.nextInt(899999) + 100000; \t\n\t\t\n\t\treturn polNum;\t\t\t\n\t}",
"private String issuer() {\n return \"spoqn.com\";\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPolicyLine();",
"public String generateUniqueSignature(){\n final String uuid = UniqueIdentifierGenerator.generateUniqueIdentifier();\n setSignature(uuid);\n return uuid;\n }",
"public String getOriginator() {\n return originator;\n }",
"public PolicyIDImpl() {\n super();\n }",
"public String getSignName() {\n return signName;\n }",
"@Override\n\tpublic String name() {\n\n\t\treturn NAME;\n\t}",
"String getPresetName();",
"public void setPolicyLine(java.lang.String value);",
"public static String format(ChallengeRequest request) {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(request.getScheme().getTechnicalName());\r\n sb.append(\" realm=\\\"\").append(request.getRealm()).append('\"');\r\n return sb.toString();\r\n }",
"public void setPolicy(short policy) {\n\t\t_policy = policy;\n\t}",
"abstract UUID getRequestId();",
"@Override\n\tprotected String getProgramId(HttpServletRequest request)\n\t{\n\t\treturn \"BPRA02\";\n\t}",
"public com.vmware.converter.DVSPolicy getPolicy() {\r\n return policy;\r\n }",
"public abstract String getSigAlgName();",
"public int getLNSRequestId() {\n return LNSRequestId;\n }",
"public String getCookieHeaderName() {\n\treturn getCookieHeaderName(version);\n }",
"public static CustomPolicy createDefaultCustomPolicy() {\n CustomPolicy customPolicy = new CustomPolicy(SAMPLE_CUSTOM_RULE);\n customPolicy.setKeyTemplate(\"$userId\");\n String siddhiQuery = \"FROM RequestStream SELECT userId, ( userId == 'admin@carbon.super' ) AS isEligible , \"\n + \"str:concat('admin@carbon.super','') as throttleKey INSERT INTO EligibilityStream;\"\n + \"FROM EligibilityStream[isEligible==true]#throttler:timeBatch(1 min) SELECT throttleKey, \"\n + \"(count(userId) >= 5 as isThrottled, expiryTimeStamp group by throttleKey INSERT ALL EVENTS into \"\n + \"ResultStream;\";\n\n customPolicy.setSiddhiQuery(siddhiQuery);\n customPolicy.setDescription(\"Sample custom policy\");\n return customPolicy;\n }",
"void removePolicyController(String name);",
"public CorsPolicy corsPolicy() {\n return this.corsPolicy;\n }"
] | [
"0.6809696",
"0.6771039",
"0.6064411",
"0.57317615",
"0.56956214",
"0.5682151",
"0.5631227",
"0.56266755",
"0.5573897",
"0.55040914",
"0.54951614",
"0.5483061",
"0.54825944",
"0.54825944",
"0.54746556",
"0.54558307",
"0.5434835",
"0.5402839",
"0.5394219",
"0.53729755",
"0.5328606",
"0.5319146",
"0.53015065",
"0.52938366",
"0.5287571",
"0.52468",
"0.52468",
"0.52343863",
"0.5221847",
"0.5219565",
"0.52040845",
"0.5197121",
"0.5193912",
"0.5173162",
"0.51723295",
"0.51309407",
"0.51257086",
"0.51257086",
"0.51228285",
"0.5098386",
"0.5088311",
"0.499623",
"0.49903348",
"0.49870402",
"0.49735525",
"0.49590513",
"0.49383754",
"0.4930501",
"0.4930269",
"0.4929549",
"0.4929549",
"0.4924691",
"0.49050367",
"0.49007714",
"0.48961732",
"0.48960283",
"0.48919272",
"0.48784685",
"0.48766804",
"0.48653626",
"0.48652864",
"0.486503",
"0.48615164",
"0.48476264",
"0.48333678",
"0.48327288",
"0.48294583",
"0.48263267",
"0.4825234",
"0.48166463",
"0.47968742",
"0.47965044",
"0.47836632",
"0.47799554",
"0.47768477",
"0.47739032",
"0.4773262",
"0.4772859",
"0.47699493",
"0.4759542",
"0.4757178",
"0.47567964",
"0.4755077",
"0.47476372",
"0.47474608",
"0.47441095",
"0.47425285",
"0.474073",
"0.47391492",
"0.4738341",
"0.47337496",
"0.4732406",
"0.47311908",
"0.47260237",
"0.47233745",
"0.4717419",
"0.47122926",
"0.47112915",
"0.4705368",
"0.47045964"
] | 0.5112608 | 39 |
The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront. | public void setHeadersConfig(OriginRequestPolicyHeadersConfig headersConfig) {
this.headersConfig = headersConfig;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void displayOriginRequestHeaders(HttpRequest argOriginRequest) {\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tHeader[] headers = argOriginRequest.getAllHeaders();\r\n\t\t\tif (headers != null) {\r\n\t\t\t\tlogger.debug(\"======================= ORIGIN REQUEST HEADERS : BEGIN =============================\");\r\n\t\t\t\tlogger.debug(argOriginRequest.getRequestLine().toString());\r\n\t\t\t\tfor (Header header : headers) {\r\n\t\t\t\t\tlogger.debug(header.getName() + \": \" + header.getValue());\r\n\t\t\t\t}\r\n\t\t\t\tlogger.debug(\"======================= ORIGIN REQUEST HEADERS : END =============================\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public abstract HttpHeaders headers();",
"Map<String, String> getRequestHeaders();",
"Map<String, String> getHeaders();",
"RequestHeaders headers();",
"private HttpHeaders getHeaders() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n\t\treturn headers;\n\t}",
"public Header[] getRequestHeaders();",
"Headers getHeaders();",
"public static Map<String, String> getHeaders() {\n if (headers == null) {\n headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"X-Custom-Header\", \"application/json\");\n }\n return headers;\n }",
"public OriginRequestPolicyHeadersConfig getHeadersConfig() {\n return this.headersConfig;\n }",
"Map<String, List<String>> getHeaders();",
"public String[] getHeaders(){\n String[] headers={\"Owner Unit ID\",\"Origin Geoloc\",\"Origin Name\",\"Number of Assets\",};\n return headers;\n }",
"public HttpResponseHeaders getHeaders() {\n return mHeaders;\n }",
"public HttpHeaders getHeaders()\r\n/* 63: */ {\r\n/* 64: 93 */ if (this.headers == null)\r\n/* 65: */ {\r\n/* 66: 94 */ this.headers = new HttpHeaders();\r\n/* 67: */ Enumeration headerValues;\r\n/* 68: 95 */ for (Enumeration headerNames = this.servletRequest.getHeaderNames(); headerNames.hasMoreElements(); \r\n/* 69: 98 */ headerValues.hasMoreElements())\r\n/* 70: */ {\r\n/* 71: 96 */ String headerName = (String)headerNames.nextElement();\r\n/* 72: 97 */ headerValues = this.servletRequest.getHeaders(headerName);\r\n/* 73: 98 */ continue;\r\n/* 74: 99 */ String headerValue = (String)headerValues.nextElement();\r\n/* 75:100 */ this.headers.add(headerName, headerValue);\r\n/* 76: */ }\r\n/* 77: */ }\r\n/* 78:104 */ return this.headers;\r\n/* 79: */ }",
"@Override public Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n\n return params;\n }",
"public Map<String, String> headers() {\n return this.header.headers();\n }",
"public Header[] getRequestHeaders() {\n return getRequestHeaderGroup().getAllHeaders();\n }",
"public VersionedMap getHeaders ()\n {\n return headers;\n }",
"public Headers getHeaders() {\n if (headers == null) {\n headers = new DefaultHeaders();\n }\n return headers;\n }",
"protected Map<String, String> getRequiredResponseHeaders()\n {\n if (requiredHttpHeaders != null)\n {\n return requiredHttpHeaders;\n }\n if (scimHttpClient.getScimClientConfig().getExpectedHttpResponseHeaders() != null)\n {\n return scimHttpClient.getScimClientConfig().getExpectedHttpResponseHeaders();\n }\n Map<String, String> requiredHttpHeaders = new HashMap<>();\n requiredHttpHeaders.put(HttpHeader.CONTENT_TYPE_HEADER, HttpHeader.SCIM_CONTENT_TYPE);\n return requiredHttpHeaders;\n }",
"public Map<String, List<String>> getHeaders() {\n\t\t\treturn headers;\n\t\t}",
"public Map<String, HeaderInfo> getHeaders() {\n\t\treturn headers;\n\t}",
"private String calculateAllowHeaders(Map<String, String> queryHeaders) {\n\t\t\treturn System.getProperty(ACCESS_CONTROL_ALLOW_HEADER_PROPERTY_NAME,\n\t\t\t\t\tDEFAULT_ALLOWED_HEADERS);\n\t\t}",
"public java.lang.String getReqHeaders() {\n return req_headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return httpClientRequest.getHeaders();\n }",
"public Vector<YANG_Header> getHeaders() {\n\t\treturn headers;\n\t}",
"public Map getHeaders() {\r\n if (headers == null) {\r\n headers = new HashMap();\r\n }\r\n\r\n return headers;\r\n }",
"public java.lang.String getReqHeaders() {\n return req_headers;\n }",
"public Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }",
"public interface HttpResponseHeaders {\n\n /**\n * Http status code\n */\n int statusCode();\n\n /**\n * all commons headers(exclude request line)\n */\n List<Header> headers();\n}",
"public final Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }",
"public Map<String, String> getExtraHeaders() {\n return Collections.unmodifiableMap(extraHeaders);\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/json\"); // header format wysłanej wiadomości - JSON\n params.put(\"Accept\", \"application/json\"); // header format otrzymanej wiadomości -JSON\n params.put(\"Consumer\", C.HEDDER_CUSTOMER); // header Consumer\n params.put(\"Authorization\", C.HEDDER_BEARER + shar.getString(C.KEY_FOR_SHAR_TOKEN, \"\")); // header Authorization\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/json\"); // header format wysłanej wiadomości - JSON\n params.put(\"Accept\", \"application/json\"); // header format otrzymanej wiadomości -JSON\n params.put(\"Consumer\", C.HEDDER_CUSTOMER); // header Consumer\n params.put(\"Authorization\", C.HEDDER_BEARER + shar.getString(C.KEY_FOR_SHAR_TOKEN, \"\")); // header Authorization\n return params;\n }",
"public Map<String, List<String>> getHeaders(){\n if (this.mResponseHeaders == null){\n this.mResponseHeaders = mConnection.getHeaderFields();\n }\n return this.mResponseHeaders;\n }",
"public MultiMap getHeaders() {\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return authenticator.getVolleyHttpHeaders();\n }",
"public Map<String, String> getRequestHeaders(HttpServletRequest request) {\n Map<String, String> headers = new HashMap<String, String>();\n\n if (request == null)\n return headers;\n\n Enumeration headerNames = request.getHeaderNames();\n while (headerNames.hasMoreElements()) {\n String headerName = (String) headerNames.nextElement();\n String headerVal = request.getHeader(headerName);\n\n headers.put(headerName, headerVal);\n }\n\n\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }",
"public Set<String> getHeaderNames() {\n return headers.keySet();\n }",
"private HashMap<String, String> getHeaders() {\n mHeaders = new HashMap<>();\n // set user'token if user token is not set\n if ((this.mToken == null || this.mToken.isEmpty()) && mProfile != null)\n this.mToken = mProfile.getToken();\n\n if (this.mToken != null && !this.mToken.isEmpty()) {\n mHeaders.put(\"Authorization\", \"Token \" + this.mToken);\n Log.e(\"TOKEN\", mToken);\n }\n\n mHeaders.put(\"Content-Type\", \"application/form-data\");\n mHeaders.put(\"Accept\", \"application/json\");\n return mHeaders;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return (mHeaders != null && mHeaders.size() > 3) ? mHeaders : NetworkUtils.this.getHeaders();\n }",
"public Map<String, AbstractHeader> getHeaders()\n\t{\n\t\treturn headers;\n\t}",
"public Header[] getResponseHeaders() {\n return getResponseHeaderGroup().getAllHeaders();\n }",
"private static void addAdditionalHttpHeaders(Request.Builder requestBuilder) {\n for (Map.Entry<String, String> entry : Parley.getInstance().getNetwork().headers.entrySet()) {\n String name = entry.getKey();\n String value = entry.getValue();\n\n requestBuilder.addHeader(name, value);\n }\n }",
"public List<HttpHeaderOption> getRequestHeadersToAddList() {\n return requestHeadersToAdd;\n }",
"public static void displayOriginResponseHeaders(\r\n\t\t\tHttpResponse argOriginResponse) {\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tHeader[] headers = argOriginResponse.getAllHeaders();\r\n\t\t\tif (headers != null) {\r\n\t\t\t\tlogger.debug(\"======================= ORIGIN RESPONSE HEADERS : BEGIN =============================\");\r\n\t\t\t\tlogger.debug(argOriginResponse.getStatusLine().toString());\r\n\t\t\t\tfor (Header header : headers) {\r\n\t\t\t\t\tlogger.debug(header.getName() + \": \" + header.getValue());\r\n\t\t\t\t}\r\n\t\t\t\tlogger.debug(\"======================= ORIGIN RESPONSE HEADERS : END =============================\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public List<HttpHeaderOption> getRequestHeadersToAddList() {\n return requestHeadersToAdd;\n }",
"public List<String> getHeaders() {\n try {\n return load().getHeaderNames();\n } catch (IOException ex) {\n Logger.getLogger(IntelligentSystem.class.getName()).log(Level.SEVERE, null, ex);\n }\n return Collections.EMPTY_LIST;\n }",
"@Override\n public Enumeration<String> getHeaderNames() {\n List<String> names = new ArrayList<String>();\n names.addAll(Collections.list(super.getHeaderNames()));\n names.add(\"Authorization\");\n return Collections.enumeration(names);\n }",
"public Map<String,List<String>> getHeaderMap() {\n\n\t\treturn headers;\n\t}",
"private HttpHeaders getHttpHeaders()\r\n\t{\n HttpHeaders lHttpHeaders = new HttpHeaders();\r\n lHttpHeaders.setContentType(MediaType.APPLICATION_JSON);\r\n lHttpHeaders.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\r\n // set basic authorization with api key and its value\r\n lHttpHeaders.setBasicAuth( PaymentConstant.API_KEY_ID, PaymentConstant.API_KEY_PASSWORD );\r\n return lHttpHeaders;\r\n\t}",
"public Set<QName> getHeaders() {\n\t\treturn headers;\n\t}",
"public HashMap<String, String> getHeader() {\n HashMap<String, String> header = new HashMap<String, String>();\n//\t\theader.put(\"Content-Type\", pref.getString(\"application/json\", \"application/json\"));\n /*header.put(\"authId\", pref.getString(KEY_USER_ID, KEY_USER_ID));\n header.put(\"authToken\", pref.getString(KEY_AUTH_TOKEN, KEY_AUTH_TOKEN));*/\n\n\n header.put(\"authId\", pref.getString(KEY_USER_ID, \"1\"));\n header.put(\"authToken\", pref.getString(KEY_AUTH_TOKEN, \"s4nbp5FibJpfEY9q\"));\n\n return header;\n }",
"@Override\n public Collection<String> getRestHeaders() {\n return Arrays.asList(KerberosRealm.AUTHENTICATION_HEADER, KrbConstants.WWW_AUTHENTICATE );\n }",
"@Override\n\t\t\tpublic Map<String, String> getHeaders() throws AuthFailureError {\n\t\t\t\tHashMap<String, String> headers = new HashMap<String, String>();\n\t\t\t\theaders.put(\"Content-Type\", \"application/json;charset=UTF-8\");\n\t\t\t\treturn headers;\n\t\t\t}",
"@Nonnull @NonnullElements @NotLive @Unmodifiable public List<Pair<String,String>> getHeaders() {\n return headerList;\n }",
"List<Header> headers();",
"private Map<String, String> getDefaultAdditionalHeader() {\n Map<String, String> additionalHeader = new HashMap<>();\n additionalHeader.put(\"accept-encoding \", \"gzip, deflate, sdch\");\n additionalHeader.put(\"Referer\", referer);\n additionalHeader.put(\"Upgrade-Insecure-Requests\", \"1\");\n return additionalHeader;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n headers.put(\"User-Agent\", \"MyTestApp\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders(){\n AndroidApplication app = (AndroidApplication)getApplication();\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Accept\", \"application/json\" );\n headers.put(\"Cookie\", \"session-cookie=\" + app.getCookie() );\n return headers;\n }",
"private static void addAdditionalHttpHeaders(LazyHeaders.Builder requestBuilder) {\n for (Map.Entry<String, String> entry : Parley.getInstance().getNetwork().headers.entrySet()) {\n String name = entry.getKey();\n String value = entry.getValue();\n\n requestBuilder.addHeader(name, value);\n }\n }",
"private HttpHeaders prepareLoginHeaders() {\n ResponseEntity<TokenLoginResponse> loginResponse = requestLoginResponse();\n HttpHeaders httpHeaders = new HttpHeaders();\n httpHeaders.add(\"Authorization\", \"Bearer \" + loginResponse.getBody().getToken());\n return httpHeaders;\n }",
"public interface HttpRequest {\n\n /**\n * Gets the HTTP request {@link URL}.\n */\n URL getUrl();\n\n /**\n * Gets the HTTP request method.\n */\n String getMethod();\n\n /**\n * Gets an immutable map containing the request headers and their values.\n */\n Map<String, List<String>> getHeaders();\n\n /**\n * Gets the header's value.\n *\n * @param name Header name for which to retrieve the value.\n *\n * @return The header's value, which might also be {@code null} if not set.\n */\n String getHeader(String name);\n\n /**\n * Sets an HTTP header or overwrites an existing HTTP header with new value.\n * <p>\n * Trying to set an HTTP header with null name will return immediately.\n * Trying to set one of the following restricted headers will also return immediately.\n * </p>\n * <ul>\n * <li>{@code Access-Control-Request-Headers}</li>\n * <li>{@code Access-Control-Request-Method}</li>\n * <li>{@code Connection}</li>\n * <li>{@code Content-Length}</li>\n * <li>{@code Content-Transfer-Encoding}</li>\n * <li>{@code Host}</li>\n * <li>{@code Keep-Alive}</li>\n * <li>{@code Origin}</li>\n * <li>{@code Trailer}</li>\n * <li>{@code Transfer-Encoding}</li>\n * <li>{@code Upgrade}</li>\n * <li>{@code Via}</li>\n * </ul>\n *\n * @param name The header's name, which must not be {@code null} or any of the restricted headers.\n * @param value The header's value\n */\n void setHeader(String name, String value);\n}",
"public Map<String, List<String>> getResponseHeaders() {\n return responseHeaders == null ? Collections.EMPTY_MAP : responseHeaders;\n }",
"FS2ObjectHeaders getHeaders();",
"public Map<String, List<String>> getInitialHeaders() {\n return mInitialHeaders;\n }",
"public List<HttpHeaderOption> getResponseHeadersToAddList() {\n return responseHeadersToAdd;\n }",
"@Override\r\n\tpublic Set<QName> getHeaders() {\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Set<QName> getHeaders() {\r\n\t\treturn null;\r\n\t}",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"authorization\", apikey);\n\n\n return params;\n }",
"public List<HttpHeaderOption> getResponseHeadersToAddList() {\n return responseHeadersToAdd;\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n params.put(\"Authorization\", appUtil.getPrefrence(\"token_type\") + \" \" + appUtil.getPrefrence(\"access_token\"));\n return params;\n }",
"String getResponseHeader();",
"@Override\n public Enumeration<String> getHeaders(String name) {\n if (name.equalsIgnoreCase(\"Authorization\")) {\n return Collections.enumeration(Arrays.asList(getHeader(name)));\n } else {\n return super.getHeaders(name);\n }\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n //params.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n params.put(\"Authorization\", appUtil.getPrefrence(\"token_type\")+\" \"+appUtil.getPrefrence(\"access_token\"));\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/json\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/json\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"private Header[] requestHeadMaker() {\n\t\tHeader[] header = {\n\t\t\t\tnew BasicHeader(\"User-Agent\", \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36\")\n\t\t\t\t//new BasicHeader(HttpHeaders.USER_AGENT, \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36\")\n\t\t\t, new BasicHeader(\"Accpet-Language\", \"ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7,ja;q=0.6\")\n\t\t\t, new BasicHeader(\"Accept-Charset\", \"application/x-www-form-urlencoded; charset=UTF-8\")\n\t\t\t, new BasicHeader(\"Origin\", \"https://developer.riotgames.com\")\n\t\t\t, //new BasicHeader(\"X-Riot-Token\", riotApiKey)\n\t\t};\n\t\treturn header;\n\t}",
"@Override\n public Map<String, String> getHeaders() {\n System.out.println(\"------token:---------\"+token);\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n params.put(\"authorization\",\"Bearer \"+token);\n\n\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n System.out.println(\"------token:---------\"+token);\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n params.put(\"authorization\",\"Bearer \"+token);\n\n\n return params;\n }",
"public Optional<List<Headers>> headers() {\n return Codegen.objectProp(\"headers\", TypeShape.<List<Headers>>builder(List.class).addParameter(Headers.class).build()).config(config).get();\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Authorization\", loggedInUser.getToken_type()+\" \"+loggedInUser.getAccess_token());\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"Accept\", \"application/json\");\n return headers;\n }",
"public Map<String, List<String>> getHeaders() throws NullPointerException {\n if (headers != null) {\n return headers;\n }\n throw new NullPointerException(\"getHeaders must be called after asArray or asObject\");\n }",
"private HttpHeaders getHeaders(String token) {\r\n UserDetails userDetails = new UserDetails();\r\n userDetails.setEmail(jwtUtil.extractEmail(token));\r\n userDetails.setClientType(ClientType.valueOf((String) jwtUtil.extractAllClaims(token).get(\"clientType\")));\r\n HttpHeaders httpHeaders = new HttpHeaders();\r\n httpHeaders.set(\"Authorization\", jwtUtil.generateToken(userDetails));\r\n return httpHeaders;\r\n }",
"public void copyHeaders(DriverRequest originalRequest, HttpRequest httpRequest) {\n String baseUrl = originalRequest.getBaseUrl().toString();\n String visibleBaseUrl = originalRequest.getVisibleBaseUrl();\n for (Header header : originalRequest.getOriginalRequest().getAllHeaders()) {\n String name = header.getName();\n // Special headers\n if (HttpHeaders.REFERER.equalsIgnoreCase(name) && isForwardedRequestHeader(HttpHeaders.REFERER)) {\n String value = header.getValue();\n value = urlRewriter.rewriteReferer(value, baseUrl, visibleBaseUrl);\n httpRequest.addHeader(name, value);\n // All other headers are copied if allowed\n } else if (isForwardedRequestHeader(name)) {\n httpRequest.addHeader(header);\n }\n }\n // process X-Forwarded-For header\n String remoteAddr = originalRequest.getOriginalRequest().getRemoteAddr();\n\n if (remoteAddr != null) {\n String forwardedFor = null;\n if (httpRequest.containsHeader(\"X-Forwarded-For\")) {\n forwardedFor = httpRequest.getFirstHeader(\"X-Forwarded-For\").getValue();\n }\n\n if (forwardedFor == null) {\n forwardedFor = remoteAddr;\n } else {\n forwardedFor = forwardedFor + \", \" + remoteAddr;\n }\n\n httpRequest.setHeader(\"X-Forwarded-For\", forwardedFor);\n }\n\n // Process X-Forwarded-Proto header\n if (!httpRequest.containsHeader(\"X-Forwarded-Proto\")) {\n httpRequest.addHeader(\"X-Forwarded-Proto\",\n UriUtils.extractScheme(originalRequest.getOriginalRequest().getRequestLine().getUri()));\n }\n }",
"@Override\n\tpublic Collection<String> getHeaders(String name) {\n\t\treturn null;\n\t}",
"HttpHeaders headForHeaders(URI url) throws RestClientException;",
"public String[] getParticularResponseHeaders() {\n return null;\n }",
"protected static HttpHeaders getJsonHeaders(){ \n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n headers.setContentType(MediaType.APPLICATION_JSON);\n return headers;\n }",
"@Given(\"^API Headers are set$\")\n public void apiHeadersAreSet(){\n\n myRequest.contentType(ContentType.JSON)\n .baseUri(\"http://10.4.10.105/api/v1/\")\n .header(\"Auth-token\",\"ec6effac-7b12-4021-ba80-c682169cff60\");\n\n }"
] | [
"0.7182265",
"0.715534",
"0.71082205",
"0.7089163",
"0.70659244",
"0.7024808",
"0.69982445",
"0.699599",
"0.6978063",
"0.6924159",
"0.6915473",
"0.6903489",
"0.6895051",
"0.68705446",
"0.683307",
"0.68211967",
"0.68211967",
"0.67975205",
"0.67288744",
"0.66534096",
"0.6615653",
"0.6602539",
"0.65920496",
"0.65700257",
"0.65620565",
"0.65325457",
"0.6508545",
"0.6508217",
"0.649934",
"0.64992756",
"0.6496498",
"0.6496131",
"0.64948076",
"0.64026",
"0.63968587",
"0.63968587",
"0.6380932",
"0.63750416",
"0.6364145",
"0.63481086",
"0.6346077",
"0.6346077",
"0.6346077",
"0.63453853",
"0.63444614",
"0.6339447",
"0.6326841",
"0.63177073",
"0.6300386",
"0.6289642",
"0.6282745",
"0.62778205",
"0.6256156",
"0.6215116",
"0.620899",
"0.61963946",
"0.61727804",
"0.61119604",
"0.6107928",
"0.6098179",
"0.6091727",
"0.60619843",
"0.60521007",
"0.6039322",
"0.60386103",
"0.601977",
"0.60175854",
"0.5989728",
"0.5988832",
"0.59830755",
"0.5979672",
"0.5974138",
"0.59733504",
"0.59733504",
"0.5971975",
"0.59685314",
"0.59680015",
"0.5964697",
"0.5943967",
"0.59335893",
"0.5912772",
"0.5912772",
"0.5891365",
"0.5891365",
"0.5891365",
"0.5891365",
"0.5891365",
"0.5881704",
"0.58756423",
"0.58756423",
"0.58690345",
"0.5868817",
"0.585529",
"0.58498675",
"0.5843607",
"0.5822845",
"0.58204",
"0.5820075",
"0.5817503",
"0.5810722"
] | 0.58272576 | 95 |
The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront. | public OriginRequestPolicyHeadersConfig getHeadersConfig() {
return this.headersConfig;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void displayOriginRequestHeaders(HttpRequest argOriginRequest) {\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tHeader[] headers = argOriginRequest.getAllHeaders();\r\n\t\t\tif (headers != null) {\r\n\t\t\t\tlogger.debug(\"======================= ORIGIN REQUEST HEADERS : BEGIN =============================\");\r\n\t\t\t\tlogger.debug(argOriginRequest.getRequestLine().toString());\r\n\t\t\t\tfor (Header header : headers) {\r\n\t\t\t\t\tlogger.debug(header.getName() + \": \" + header.getValue());\r\n\t\t\t\t}\r\n\t\t\t\tlogger.debug(\"======================= ORIGIN REQUEST HEADERS : END =============================\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public abstract HttpHeaders headers();",
"Map<String, String> getRequestHeaders();",
"Map<String, String> getHeaders();",
"RequestHeaders headers();",
"private HttpHeaders getHeaders() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n\t\treturn headers;\n\t}",
"public Header[] getRequestHeaders();",
"Headers getHeaders();",
"public static Map<String, String> getHeaders() {\n if (headers == null) {\n headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"X-Custom-Header\", \"application/json\");\n }\n return headers;\n }",
"Map<String, List<String>> getHeaders();",
"public String[] getHeaders(){\n String[] headers={\"Owner Unit ID\",\"Origin Geoloc\",\"Origin Name\",\"Number of Assets\",};\n return headers;\n }",
"public HttpResponseHeaders getHeaders() {\n return mHeaders;\n }",
"public HttpHeaders getHeaders()\r\n/* 63: */ {\r\n/* 64: 93 */ if (this.headers == null)\r\n/* 65: */ {\r\n/* 66: 94 */ this.headers = new HttpHeaders();\r\n/* 67: */ Enumeration headerValues;\r\n/* 68: 95 */ for (Enumeration headerNames = this.servletRequest.getHeaderNames(); headerNames.hasMoreElements(); \r\n/* 69: 98 */ headerValues.hasMoreElements())\r\n/* 70: */ {\r\n/* 71: 96 */ String headerName = (String)headerNames.nextElement();\r\n/* 72: 97 */ headerValues = this.servletRequest.getHeaders(headerName);\r\n/* 73: 98 */ continue;\r\n/* 74: 99 */ String headerValue = (String)headerValues.nextElement();\r\n/* 75:100 */ this.headers.add(headerName, headerValue);\r\n/* 76: */ }\r\n/* 77: */ }\r\n/* 78:104 */ return this.headers;\r\n/* 79: */ }",
"@Override public Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n\n return params;\n }",
"public Map<String, String> headers() {\n return this.header.headers();\n }",
"public Header[] getRequestHeaders() {\n return getRequestHeaderGroup().getAllHeaders();\n }",
"public VersionedMap getHeaders ()\n {\n return headers;\n }",
"public Headers getHeaders() {\n if (headers == null) {\n headers = new DefaultHeaders();\n }\n return headers;\n }",
"protected Map<String, String> getRequiredResponseHeaders()\n {\n if (requiredHttpHeaders != null)\n {\n return requiredHttpHeaders;\n }\n if (scimHttpClient.getScimClientConfig().getExpectedHttpResponseHeaders() != null)\n {\n return scimHttpClient.getScimClientConfig().getExpectedHttpResponseHeaders();\n }\n Map<String, String> requiredHttpHeaders = new HashMap<>();\n requiredHttpHeaders.put(HttpHeader.CONTENT_TYPE_HEADER, HttpHeader.SCIM_CONTENT_TYPE);\n return requiredHttpHeaders;\n }",
"public Map<String, List<String>> getHeaders() {\n\t\t\treturn headers;\n\t\t}",
"public Map<String, HeaderInfo> getHeaders() {\n\t\treturn headers;\n\t}",
"private String calculateAllowHeaders(Map<String, String> queryHeaders) {\n\t\t\treturn System.getProperty(ACCESS_CONTROL_ALLOW_HEADER_PROPERTY_NAME,\n\t\t\t\t\tDEFAULT_ALLOWED_HEADERS);\n\t\t}",
"public java.lang.String getReqHeaders() {\n return req_headers;\n }",
"public Vector<YANG_Header> getHeaders() {\n\t\treturn headers;\n\t}",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return httpClientRequest.getHeaders();\n }",
"public java.lang.String getReqHeaders() {\n return req_headers;\n }",
"public Map getHeaders() {\r\n if (headers == null) {\r\n headers = new HashMap();\r\n }\r\n\r\n return headers;\r\n }",
"public Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }",
"public interface HttpResponseHeaders {\n\n /**\n * Http status code\n */\n int statusCode();\n\n /**\n * all commons headers(exclude request line)\n */\n List<Header> headers();\n}",
"public final Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }",
"public Map<String, String> getExtraHeaders() {\n return Collections.unmodifiableMap(extraHeaders);\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/json\"); // header format wysłanej wiadomości - JSON\n params.put(\"Accept\", \"application/json\"); // header format otrzymanej wiadomości -JSON\n params.put(\"Consumer\", C.HEDDER_CUSTOMER); // header Consumer\n params.put(\"Authorization\", C.HEDDER_BEARER + shar.getString(C.KEY_FOR_SHAR_TOKEN, \"\")); // header Authorization\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/json\"); // header format wysłanej wiadomości - JSON\n params.put(\"Accept\", \"application/json\"); // header format otrzymanej wiadomości -JSON\n params.put(\"Consumer\", C.HEDDER_CUSTOMER); // header Consumer\n params.put(\"Authorization\", C.HEDDER_BEARER + shar.getString(C.KEY_FOR_SHAR_TOKEN, \"\")); // header Authorization\n return params;\n }",
"public Map<String, List<String>> getHeaders(){\n if (this.mResponseHeaders == null){\n this.mResponseHeaders = mConnection.getHeaderFields();\n }\n return this.mResponseHeaders;\n }",
"public MultiMap getHeaders() {\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return authenticator.getVolleyHttpHeaders();\n }",
"public Map<String, String> getRequestHeaders(HttpServletRequest request) {\n Map<String, String> headers = new HashMap<String, String>();\n\n if (request == null)\n return headers;\n\n Enumeration headerNames = request.getHeaderNames();\n while (headerNames.hasMoreElements()) {\n String headerName = (String) headerNames.nextElement();\n String headerVal = request.getHeader(headerName);\n\n headers.put(headerName, headerVal);\n }\n\n\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }",
"public Set<String> getHeaderNames() {\n return headers.keySet();\n }",
"private HashMap<String, String> getHeaders() {\n mHeaders = new HashMap<>();\n // set user'token if user token is not set\n if ((this.mToken == null || this.mToken.isEmpty()) && mProfile != null)\n this.mToken = mProfile.getToken();\n\n if (this.mToken != null && !this.mToken.isEmpty()) {\n mHeaders.put(\"Authorization\", \"Token \" + this.mToken);\n Log.e(\"TOKEN\", mToken);\n }\n\n mHeaders.put(\"Content-Type\", \"application/form-data\");\n mHeaders.put(\"Accept\", \"application/json\");\n return mHeaders;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return (mHeaders != null && mHeaders.size() > 3) ? mHeaders : NetworkUtils.this.getHeaders();\n }",
"public Map<String, AbstractHeader> getHeaders()\n\t{\n\t\treturn headers;\n\t}",
"public Header[] getResponseHeaders() {\n return getResponseHeaderGroup().getAllHeaders();\n }",
"private static void addAdditionalHttpHeaders(Request.Builder requestBuilder) {\n for (Map.Entry<String, String> entry : Parley.getInstance().getNetwork().headers.entrySet()) {\n String name = entry.getKey();\n String value = entry.getValue();\n\n requestBuilder.addHeader(name, value);\n }\n }",
"public List<HttpHeaderOption> getRequestHeadersToAddList() {\n return requestHeadersToAdd;\n }",
"public static void displayOriginResponseHeaders(\r\n\t\t\tHttpResponse argOriginResponse) {\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tHeader[] headers = argOriginResponse.getAllHeaders();\r\n\t\t\tif (headers != null) {\r\n\t\t\t\tlogger.debug(\"======================= ORIGIN RESPONSE HEADERS : BEGIN =============================\");\r\n\t\t\t\tlogger.debug(argOriginResponse.getStatusLine().toString());\r\n\t\t\t\tfor (Header header : headers) {\r\n\t\t\t\t\tlogger.debug(header.getName() + \": \" + header.getValue());\r\n\t\t\t\t}\r\n\t\t\t\tlogger.debug(\"======================= ORIGIN RESPONSE HEADERS : END =============================\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public List<HttpHeaderOption> getRequestHeadersToAddList() {\n return requestHeadersToAdd;\n }",
"public List<String> getHeaders() {\n try {\n return load().getHeaderNames();\n } catch (IOException ex) {\n Logger.getLogger(IntelligentSystem.class.getName()).log(Level.SEVERE, null, ex);\n }\n return Collections.EMPTY_LIST;\n }",
"@Override\n public Enumeration<String> getHeaderNames() {\n List<String> names = new ArrayList<String>();\n names.addAll(Collections.list(super.getHeaderNames()));\n names.add(\"Authorization\");\n return Collections.enumeration(names);\n }",
"public Map<String,List<String>> getHeaderMap() {\n\n\t\treturn headers;\n\t}",
"private HttpHeaders getHttpHeaders()\r\n\t{\n HttpHeaders lHttpHeaders = new HttpHeaders();\r\n lHttpHeaders.setContentType(MediaType.APPLICATION_JSON);\r\n lHttpHeaders.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\r\n // set basic authorization with api key and its value\r\n lHttpHeaders.setBasicAuth( PaymentConstant.API_KEY_ID, PaymentConstant.API_KEY_PASSWORD );\r\n return lHttpHeaders;\r\n\t}",
"public Set<QName> getHeaders() {\n\t\treturn headers;\n\t}",
"public HashMap<String, String> getHeader() {\n HashMap<String, String> header = new HashMap<String, String>();\n//\t\theader.put(\"Content-Type\", pref.getString(\"application/json\", \"application/json\"));\n /*header.put(\"authId\", pref.getString(KEY_USER_ID, KEY_USER_ID));\n header.put(\"authToken\", pref.getString(KEY_AUTH_TOKEN, KEY_AUTH_TOKEN));*/\n\n\n header.put(\"authId\", pref.getString(KEY_USER_ID, \"1\"));\n header.put(\"authToken\", pref.getString(KEY_AUTH_TOKEN, \"s4nbp5FibJpfEY9q\"));\n\n return header;\n }",
"@Override\n public Collection<String> getRestHeaders() {\n return Arrays.asList(KerberosRealm.AUTHENTICATION_HEADER, KrbConstants.WWW_AUTHENTICATE );\n }",
"@Override\n\t\t\tpublic Map<String, String> getHeaders() throws AuthFailureError {\n\t\t\t\tHashMap<String, String> headers = new HashMap<String, String>();\n\t\t\t\theaders.put(\"Content-Type\", \"application/json;charset=UTF-8\");\n\t\t\t\treturn headers;\n\t\t\t}",
"@Nonnull @NonnullElements @NotLive @Unmodifiable public List<Pair<String,String>> getHeaders() {\n return headerList;\n }",
"List<Header> headers();",
"private Map<String, String> getDefaultAdditionalHeader() {\n Map<String, String> additionalHeader = new HashMap<>();\n additionalHeader.put(\"accept-encoding \", \"gzip, deflate, sdch\");\n additionalHeader.put(\"Referer\", referer);\n additionalHeader.put(\"Upgrade-Insecure-Requests\", \"1\");\n return additionalHeader;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n headers.put(\"User-Agent\", \"MyTestApp\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders(){\n AndroidApplication app = (AndroidApplication)getApplication();\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Accept\", \"application/json\" );\n headers.put(\"Cookie\", \"session-cookie=\" + app.getCookie() );\n return headers;\n }",
"private static void addAdditionalHttpHeaders(LazyHeaders.Builder requestBuilder) {\n for (Map.Entry<String, String> entry : Parley.getInstance().getNetwork().headers.entrySet()) {\n String name = entry.getKey();\n String value = entry.getValue();\n\n requestBuilder.addHeader(name, value);\n }\n }",
"private HttpHeaders prepareLoginHeaders() {\n ResponseEntity<TokenLoginResponse> loginResponse = requestLoginResponse();\n HttpHeaders httpHeaders = new HttpHeaders();\n httpHeaders.add(\"Authorization\", \"Bearer \" + loginResponse.getBody().getToken());\n return httpHeaders;\n }",
"public interface HttpRequest {\n\n /**\n * Gets the HTTP request {@link URL}.\n */\n URL getUrl();\n\n /**\n * Gets the HTTP request method.\n */\n String getMethod();\n\n /**\n * Gets an immutable map containing the request headers and their values.\n */\n Map<String, List<String>> getHeaders();\n\n /**\n * Gets the header's value.\n *\n * @param name Header name for which to retrieve the value.\n *\n * @return The header's value, which might also be {@code null} if not set.\n */\n String getHeader(String name);\n\n /**\n * Sets an HTTP header or overwrites an existing HTTP header with new value.\n * <p>\n * Trying to set an HTTP header with null name will return immediately.\n * Trying to set one of the following restricted headers will also return immediately.\n * </p>\n * <ul>\n * <li>{@code Access-Control-Request-Headers}</li>\n * <li>{@code Access-Control-Request-Method}</li>\n * <li>{@code Connection}</li>\n * <li>{@code Content-Length}</li>\n * <li>{@code Content-Transfer-Encoding}</li>\n * <li>{@code Host}</li>\n * <li>{@code Keep-Alive}</li>\n * <li>{@code Origin}</li>\n * <li>{@code Trailer}</li>\n * <li>{@code Transfer-Encoding}</li>\n * <li>{@code Upgrade}</li>\n * <li>{@code Via}</li>\n * </ul>\n *\n * @param name The header's name, which must not be {@code null} or any of the restricted headers.\n * @param value The header's value\n */\n void setHeader(String name, String value);\n}",
"public Map<String, List<String>> getResponseHeaders() {\n return responseHeaders == null ? Collections.EMPTY_MAP : responseHeaders;\n }",
"FS2ObjectHeaders getHeaders();",
"public Map<String, List<String>> getInitialHeaders() {\n return mInitialHeaders;\n }",
"public List<HttpHeaderOption> getResponseHeadersToAddList() {\n return responseHeadersToAdd;\n }",
"@Override\r\n\tpublic Set<QName> getHeaders() {\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Set<QName> getHeaders() {\r\n\t\treturn null;\r\n\t}",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"authorization\", apikey);\n\n\n return params;\n }",
"public List<HttpHeaderOption> getResponseHeadersToAddList() {\n return responseHeadersToAdd;\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n params.put(\"Authorization\", appUtil.getPrefrence(\"token_type\") + \" \" + appUtil.getPrefrence(\"access_token\"));\n return params;\n }",
"String getResponseHeader();",
"@Override\n public Enumeration<String> getHeaders(String name) {\n if (name.equalsIgnoreCase(\"Authorization\")) {\n return Collections.enumeration(Arrays.asList(getHeader(name)));\n } else {\n return super.getHeaders(name);\n }\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n //params.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n params.put(\"Authorization\", appUtil.getPrefrence(\"token_type\")+\" \"+appUtil.getPrefrence(\"access_token\"));\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/json\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/json\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"private Header[] requestHeadMaker() {\n\t\tHeader[] header = {\n\t\t\t\tnew BasicHeader(\"User-Agent\", \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36\")\n\t\t\t\t//new BasicHeader(HttpHeaders.USER_AGENT, \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36\")\n\t\t\t, new BasicHeader(\"Accpet-Language\", \"ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7,ja;q=0.6\")\n\t\t\t, new BasicHeader(\"Accept-Charset\", \"application/x-www-form-urlencoded; charset=UTF-8\")\n\t\t\t, new BasicHeader(\"Origin\", \"https://developer.riotgames.com\")\n\t\t\t, //new BasicHeader(\"X-Riot-Token\", riotApiKey)\n\t\t};\n\t\treturn header;\n\t}",
"@Override\n public Map<String, String> getHeaders() {\n System.out.println(\"------token:---------\"+token);\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n params.put(\"authorization\",\"Bearer \"+token);\n\n\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n System.out.println(\"------token:---------\"+token);\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n params.put(\"authorization\",\"Bearer \"+token);\n\n\n return params;\n }",
"public Optional<List<Headers>> headers() {\n return Codegen.objectProp(\"headers\", TypeShape.<List<Headers>>builder(List.class).addParameter(Headers.class).build()).config(config).get();\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Authorization\", loggedInUser.getToken_type()+\" \"+loggedInUser.getAccess_token());\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"Accept\", \"application/json\");\n return headers;\n }",
"public Map<String, List<String>> getHeaders() throws NullPointerException {\n if (headers != null) {\n return headers;\n }\n throw new NullPointerException(\"getHeaders must be called after asArray or asObject\");\n }",
"private HttpHeaders getHeaders(String token) {\r\n UserDetails userDetails = new UserDetails();\r\n userDetails.setEmail(jwtUtil.extractEmail(token));\r\n userDetails.setClientType(ClientType.valueOf((String) jwtUtil.extractAllClaims(token).get(\"clientType\")));\r\n HttpHeaders httpHeaders = new HttpHeaders();\r\n httpHeaders.set(\"Authorization\", jwtUtil.generateToken(userDetails));\r\n return httpHeaders;\r\n }",
"public void copyHeaders(DriverRequest originalRequest, HttpRequest httpRequest) {\n String baseUrl = originalRequest.getBaseUrl().toString();\n String visibleBaseUrl = originalRequest.getVisibleBaseUrl();\n for (Header header : originalRequest.getOriginalRequest().getAllHeaders()) {\n String name = header.getName();\n // Special headers\n if (HttpHeaders.REFERER.equalsIgnoreCase(name) && isForwardedRequestHeader(HttpHeaders.REFERER)) {\n String value = header.getValue();\n value = urlRewriter.rewriteReferer(value, baseUrl, visibleBaseUrl);\n httpRequest.addHeader(name, value);\n // All other headers are copied if allowed\n } else if (isForwardedRequestHeader(name)) {\n httpRequest.addHeader(header);\n }\n }\n // process X-Forwarded-For header\n String remoteAddr = originalRequest.getOriginalRequest().getRemoteAddr();\n\n if (remoteAddr != null) {\n String forwardedFor = null;\n if (httpRequest.containsHeader(\"X-Forwarded-For\")) {\n forwardedFor = httpRequest.getFirstHeader(\"X-Forwarded-For\").getValue();\n }\n\n if (forwardedFor == null) {\n forwardedFor = remoteAddr;\n } else {\n forwardedFor = forwardedFor + \", \" + remoteAddr;\n }\n\n httpRequest.setHeader(\"X-Forwarded-For\", forwardedFor);\n }\n\n // Process X-Forwarded-Proto header\n if (!httpRequest.containsHeader(\"X-Forwarded-Proto\")) {\n httpRequest.addHeader(\"X-Forwarded-Proto\",\n UriUtils.extractScheme(originalRequest.getOriginalRequest().getRequestLine().getUri()));\n }\n }",
"public void setHeadersConfig(OriginRequestPolicyHeadersConfig headersConfig) {\n this.headersConfig = headersConfig;\n }",
"@Override\n\tpublic Collection<String> getHeaders(String name) {\n\t\treturn null;\n\t}",
"public String[] getParticularResponseHeaders() {\n return null;\n }",
"HttpHeaders headForHeaders(URI url) throws RestClientException;",
"protected static HttpHeaders getJsonHeaders(){ \n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n headers.setContentType(MediaType.APPLICATION_JSON);\n return headers;\n }",
"@Given(\"^API Headers are set$\")\n public void apiHeadersAreSet(){\n\n myRequest.contentType(ContentType.JSON)\n .baseUri(\"http://10.4.10.105/api/v1/\")\n .header(\"Auth-token\",\"ec6effac-7b12-4021-ba80-c682169cff60\");\n\n }"
] | [
"0.7183675",
"0.7152357",
"0.71048117",
"0.7086269",
"0.70622134",
"0.70220405",
"0.6996087",
"0.6992831",
"0.69754666",
"0.69131064",
"0.69029987",
"0.6893538",
"0.68683857",
"0.6831342",
"0.6819495",
"0.6819495",
"0.6796393",
"0.6726944",
"0.6651483",
"0.6613329",
"0.6600151",
"0.6590904",
"0.65685433",
"0.65605557",
"0.65307754",
"0.650666",
"0.6506099",
"0.6497612",
"0.6497281",
"0.6494876",
"0.6493907",
"0.64930856",
"0.6402261",
"0.63950753",
"0.63950753",
"0.63790494",
"0.6373546",
"0.6362624",
"0.6345316",
"0.63439184",
"0.63439184",
"0.63439184",
"0.634368",
"0.63423723",
"0.633796",
"0.63250566",
"0.631623",
"0.6297352",
"0.6288629",
"0.6284554",
"0.62768877",
"0.62546515",
"0.62136316",
"0.6207152",
"0.61936176",
"0.61713266",
"0.6109381",
"0.61066574",
"0.60960627",
"0.60914904",
"0.60601723",
"0.60494155",
"0.60362154",
"0.60360146",
"0.6016404",
"0.6014824",
"0.59876347",
"0.5987014",
"0.59810567",
"0.5979003",
"0.5973091",
"0.59722656",
"0.59722656",
"0.59696406",
"0.59675467",
"0.59660566",
"0.59616613",
"0.5942687",
"0.5931405",
"0.59102046",
"0.59102046",
"0.5889016",
"0.5889016",
"0.5889016",
"0.5889016",
"0.5889016",
"0.5878937",
"0.5873445",
"0.5873445",
"0.58677197",
"0.5866547",
"0.5854004",
"0.58474034",
"0.58424115",
"0.5827569",
"0.5821157",
"0.5819001",
"0.58169395",
"0.58145136",
"0.58075595"
] | 0.69249094 | 9 |
The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront. | public OriginRequestPolicyConfig withHeadersConfig(OriginRequestPolicyHeadersConfig headersConfig) {
setHeadersConfig(headersConfig);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void displayOriginRequestHeaders(HttpRequest argOriginRequest) {\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tHeader[] headers = argOriginRequest.getAllHeaders();\r\n\t\t\tif (headers != null) {\r\n\t\t\t\tlogger.debug(\"======================= ORIGIN REQUEST HEADERS : BEGIN =============================\");\r\n\t\t\t\tlogger.debug(argOriginRequest.getRequestLine().toString());\r\n\t\t\t\tfor (Header header : headers) {\r\n\t\t\t\t\tlogger.debug(header.getName() + \": \" + header.getValue());\r\n\t\t\t\t}\r\n\t\t\t\tlogger.debug(\"======================= ORIGIN REQUEST HEADERS : END =============================\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public abstract HttpHeaders headers();",
"Map<String, String> getRequestHeaders();",
"Map<String, String> getHeaders();",
"RequestHeaders headers();",
"private HttpHeaders getHeaders() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n\t\treturn headers;\n\t}",
"public Header[] getRequestHeaders();",
"Headers getHeaders();",
"public static Map<String, String> getHeaders() {\n if (headers == null) {\n headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"X-Custom-Header\", \"application/json\");\n }\n return headers;\n }",
"public OriginRequestPolicyHeadersConfig getHeadersConfig() {\n return this.headersConfig;\n }",
"Map<String, List<String>> getHeaders();",
"public String[] getHeaders(){\n String[] headers={\"Owner Unit ID\",\"Origin Geoloc\",\"Origin Name\",\"Number of Assets\",};\n return headers;\n }",
"public HttpResponseHeaders getHeaders() {\n return mHeaders;\n }",
"public HttpHeaders getHeaders()\r\n/* 63: */ {\r\n/* 64: 93 */ if (this.headers == null)\r\n/* 65: */ {\r\n/* 66: 94 */ this.headers = new HttpHeaders();\r\n/* 67: */ Enumeration headerValues;\r\n/* 68: 95 */ for (Enumeration headerNames = this.servletRequest.getHeaderNames(); headerNames.hasMoreElements(); \r\n/* 69: 98 */ headerValues.hasMoreElements())\r\n/* 70: */ {\r\n/* 71: 96 */ String headerName = (String)headerNames.nextElement();\r\n/* 72: 97 */ headerValues = this.servletRequest.getHeaders(headerName);\r\n/* 73: 98 */ continue;\r\n/* 74: 99 */ String headerValue = (String)headerValues.nextElement();\r\n/* 75:100 */ this.headers.add(headerName, headerValue);\r\n/* 76: */ }\r\n/* 77: */ }\r\n/* 78:104 */ return this.headers;\r\n/* 79: */ }",
"@Override public Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n\n return params;\n }",
"public Map<String, String> headers() {\n return this.header.headers();\n }",
"public Header[] getRequestHeaders() {\n return getRequestHeaderGroup().getAllHeaders();\n }",
"public VersionedMap getHeaders ()\n {\n return headers;\n }",
"public Headers getHeaders() {\n if (headers == null) {\n headers = new DefaultHeaders();\n }\n return headers;\n }",
"protected Map<String, String> getRequiredResponseHeaders()\n {\n if (requiredHttpHeaders != null)\n {\n return requiredHttpHeaders;\n }\n if (scimHttpClient.getScimClientConfig().getExpectedHttpResponseHeaders() != null)\n {\n return scimHttpClient.getScimClientConfig().getExpectedHttpResponseHeaders();\n }\n Map<String, String> requiredHttpHeaders = new HashMap<>();\n requiredHttpHeaders.put(HttpHeader.CONTENT_TYPE_HEADER, HttpHeader.SCIM_CONTENT_TYPE);\n return requiredHttpHeaders;\n }",
"public Map<String, List<String>> getHeaders() {\n\t\t\treturn headers;\n\t\t}",
"public Map<String, HeaderInfo> getHeaders() {\n\t\treturn headers;\n\t}",
"private String calculateAllowHeaders(Map<String, String> queryHeaders) {\n\t\t\treturn System.getProperty(ACCESS_CONTROL_ALLOW_HEADER_PROPERTY_NAME,\n\t\t\t\t\tDEFAULT_ALLOWED_HEADERS);\n\t\t}",
"public java.lang.String getReqHeaders() {\n return req_headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return httpClientRequest.getHeaders();\n }",
"public Vector<YANG_Header> getHeaders() {\n\t\treturn headers;\n\t}",
"public Map getHeaders() {\r\n if (headers == null) {\r\n headers = new HashMap();\r\n }\r\n\r\n return headers;\r\n }",
"public java.lang.String getReqHeaders() {\n return req_headers;\n }",
"public Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }",
"public interface HttpResponseHeaders {\n\n /**\n * Http status code\n */\n int statusCode();\n\n /**\n * all commons headers(exclude request line)\n */\n List<Header> headers();\n}",
"public final Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }",
"public Map<String, String> getExtraHeaders() {\n return Collections.unmodifiableMap(extraHeaders);\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/json\"); // header format wysłanej wiadomości - JSON\n params.put(\"Accept\", \"application/json\"); // header format otrzymanej wiadomości -JSON\n params.put(\"Consumer\", C.HEDDER_CUSTOMER); // header Consumer\n params.put(\"Authorization\", C.HEDDER_BEARER + shar.getString(C.KEY_FOR_SHAR_TOKEN, \"\")); // header Authorization\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/json\"); // header format wysłanej wiadomości - JSON\n params.put(\"Accept\", \"application/json\"); // header format otrzymanej wiadomości -JSON\n params.put(\"Consumer\", C.HEDDER_CUSTOMER); // header Consumer\n params.put(\"Authorization\", C.HEDDER_BEARER + shar.getString(C.KEY_FOR_SHAR_TOKEN, \"\")); // header Authorization\n return params;\n }",
"public Map<String, List<String>> getHeaders(){\n if (this.mResponseHeaders == null){\n this.mResponseHeaders = mConnection.getHeaderFields();\n }\n return this.mResponseHeaders;\n }",
"public MultiMap getHeaders() {\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return authenticator.getVolleyHttpHeaders();\n }",
"public Map<String, String> getRequestHeaders(HttpServletRequest request) {\n Map<String, String> headers = new HashMap<String, String>();\n\n if (request == null)\n return headers;\n\n Enumeration headerNames = request.getHeaderNames();\n while (headerNames.hasMoreElements()) {\n String headerName = (String) headerNames.nextElement();\n String headerVal = request.getHeader(headerName);\n\n headers.put(headerName, headerVal);\n }\n\n\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }",
"public Set<String> getHeaderNames() {\n return headers.keySet();\n }",
"private HashMap<String, String> getHeaders() {\n mHeaders = new HashMap<>();\n // set user'token if user token is not set\n if ((this.mToken == null || this.mToken.isEmpty()) && mProfile != null)\n this.mToken = mProfile.getToken();\n\n if (this.mToken != null && !this.mToken.isEmpty()) {\n mHeaders.put(\"Authorization\", \"Token \" + this.mToken);\n Log.e(\"TOKEN\", mToken);\n }\n\n mHeaders.put(\"Content-Type\", \"application/form-data\");\n mHeaders.put(\"Accept\", \"application/json\");\n return mHeaders;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return (mHeaders != null && mHeaders.size() > 3) ? mHeaders : NetworkUtils.this.getHeaders();\n }",
"public Map<String, AbstractHeader> getHeaders()\n\t{\n\t\treturn headers;\n\t}",
"public Header[] getResponseHeaders() {\n return getResponseHeaderGroup().getAllHeaders();\n }",
"private static void addAdditionalHttpHeaders(Request.Builder requestBuilder) {\n for (Map.Entry<String, String> entry : Parley.getInstance().getNetwork().headers.entrySet()) {\n String name = entry.getKey();\n String value = entry.getValue();\n\n requestBuilder.addHeader(name, value);\n }\n }",
"public List<HttpHeaderOption> getRequestHeadersToAddList() {\n return requestHeadersToAdd;\n }",
"public static void displayOriginResponseHeaders(\r\n\t\t\tHttpResponse argOriginResponse) {\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tHeader[] headers = argOriginResponse.getAllHeaders();\r\n\t\t\tif (headers != null) {\r\n\t\t\t\tlogger.debug(\"======================= ORIGIN RESPONSE HEADERS : BEGIN =============================\");\r\n\t\t\t\tlogger.debug(argOriginResponse.getStatusLine().toString());\r\n\t\t\t\tfor (Header header : headers) {\r\n\t\t\t\t\tlogger.debug(header.getName() + \": \" + header.getValue());\r\n\t\t\t\t}\r\n\t\t\t\tlogger.debug(\"======================= ORIGIN RESPONSE HEADERS : END =============================\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public List<HttpHeaderOption> getRequestHeadersToAddList() {\n return requestHeadersToAdd;\n }",
"public List<String> getHeaders() {\n try {\n return load().getHeaderNames();\n } catch (IOException ex) {\n Logger.getLogger(IntelligentSystem.class.getName()).log(Level.SEVERE, null, ex);\n }\n return Collections.EMPTY_LIST;\n }",
"@Override\n public Enumeration<String> getHeaderNames() {\n List<String> names = new ArrayList<String>();\n names.addAll(Collections.list(super.getHeaderNames()));\n names.add(\"Authorization\");\n return Collections.enumeration(names);\n }",
"public Map<String,List<String>> getHeaderMap() {\n\n\t\treturn headers;\n\t}",
"private HttpHeaders getHttpHeaders()\r\n\t{\n HttpHeaders lHttpHeaders = new HttpHeaders();\r\n lHttpHeaders.setContentType(MediaType.APPLICATION_JSON);\r\n lHttpHeaders.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\r\n // set basic authorization with api key and its value\r\n lHttpHeaders.setBasicAuth( PaymentConstant.API_KEY_ID, PaymentConstant.API_KEY_PASSWORD );\r\n return lHttpHeaders;\r\n\t}",
"public Set<QName> getHeaders() {\n\t\treturn headers;\n\t}",
"public HashMap<String, String> getHeader() {\n HashMap<String, String> header = new HashMap<String, String>();\n//\t\theader.put(\"Content-Type\", pref.getString(\"application/json\", \"application/json\"));\n /*header.put(\"authId\", pref.getString(KEY_USER_ID, KEY_USER_ID));\n header.put(\"authToken\", pref.getString(KEY_AUTH_TOKEN, KEY_AUTH_TOKEN));*/\n\n\n header.put(\"authId\", pref.getString(KEY_USER_ID, \"1\"));\n header.put(\"authToken\", pref.getString(KEY_AUTH_TOKEN, \"s4nbp5FibJpfEY9q\"));\n\n return header;\n }",
"@Override\n public Collection<String> getRestHeaders() {\n return Arrays.asList(KerberosRealm.AUTHENTICATION_HEADER, KrbConstants.WWW_AUTHENTICATE );\n }",
"@Override\n\t\t\tpublic Map<String, String> getHeaders() throws AuthFailureError {\n\t\t\t\tHashMap<String, String> headers = new HashMap<String, String>();\n\t\t\t\theaders.put(\"Content-Type\", \"application/json;charset=UTF-8\");\n\t\t\t\treturn headers;\n\t\t\t}",
"@Nonnull @NonnullElements @NotLive @Unmodifiable public List<Pair<String,String>> getHeaders() {\n return headerList;\n }",
"List<Header> headers();",
"private Map<String, String> getDefaultAdditionalHeader() {\n Map<String, String> additionalHeader = new HashMap<>();\n additionalHeader.put(\"accept-encoding \", \"gzip, deflate, sdch\");\n additionalHeader.put(\"Referer\", referer);\n additionalHeader.put(\"Upgrade-Insecure-Requests\", \"1\");\n return additionalHeader;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n headers.put(\"User-Agent\", \"MyTestApp\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders(){\n AndroidApplication app = (AndroidApplication)getApplication();\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Accept\", \"application/json\" );\n headers.put(\"Cookie\", \"session-cookie=\" + app.getCookie() );\n return headers;\n }",
"private static void addAdditionalHttpHeaders(LazyHeaders.Builder requestBuilder) {\n for (Map.Entry<String, String> entry : Parley.getInstance().getNetwork().headers.entrySet()) {\n String name = entry.getKey();\n String value = entry.getValue();\n\n requestBuilder.addHeader(name, value);\n }\n }",
"private HttpHeaders prepareLoginHeaders() {\n ResponseEntity<TokenLoginResponse> loginResponse = requestLoginResponse();\n HttpHeaders httpHeaders = new HttpHeaders();\n httpHeaders.add(\"Authorization\", \"Bearer \" + loginResponse.getBody().getToken());\n return httpHeaders;\n }",
"public interface HttpRequest {\n\n /**\n * Gets the HTTP request {@link URL}.\n */\n URL getUrl();\n\n /**\n * Gets the HTTP request method.\n */\n String getMethod();\n\n /**\n * Gets an immutable map containing the request headers and their values.\n */\n Map<String, List<String>> getHeaders();\n\n /**\n * Gets the header's value.\n *\n * @param name Header name for which to retrieve the value.\n *\n * @return The header's value, which might also be {@code null} if not set.\n */\n String getHeader(String name);\n\n /**\n * Sets an HTTP header or overwrites an existing HTTP header with new value.\n * <p>\n * Trying to set an HTTP header with null name will return immediately.\n * Trying to set one of the following restricted headers will also return immediately.\n * </p>\n * <ul>\n * <li>{@code Access-Control-Request-Headers}</li>\n * <li>{@code Access-Control-Request-Method}</li>\n * <li>{@code Connection}</li>\n * <li>{@code Content-Length}</li>\n * <li>{@code Content-Transfer-Encoding}</li>\n * <li>{@code Host}</li>\n * <li>{@code Keep-Alive}</li>\n * <li>{@code Origin}</li>\n * <li>{@code Trailer}</li>\n * <li>{@code Transfer-Encoding}</li>\n * <li>{@code Upgrade}</li>\n * <li>{@code Via}</li>\n * </ul>\n *\n * @param name The header's name, which must not be {@code null} or any of the restricted headers.\n * @param value The header's value\n */\n void setHeader(String name, String value);\n}",
"public Map<String, List<String>> getResponseHeaders() {\n return responseHeaders == null ? Collections.EMPTY_MAP : responseHeaders;\n }",
"FS2ObjectHeaders getHeaders();",
"public Map<String, List<String>> getInitialHeaders() {\n return mInitialHeaders;\n }",
"public List<HttpHeaderOption> getResponseHeadersToAddList() {\n return responseHeadersToAdd;\n }",
"@Override\r\n\tpublic Set<QName> getHeaders() {\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Set<QName> getHeaders() {\r\n\t\treturn null;\r\n\t}",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"authorization\", apikey);\n\n\n return params;\n }",
"public List<HttpHeaderOption> getResponseHeadersToAddList() {\n return responseHeadersToAdd;\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n params.put(\"Authorization\", appUtil.getPrefrence(\"token_type\") + \" \" + appUtil.getPrefrence(\"access_token\"));\n return params;\n }",
"String getResponseHeader();",
"@Override\n public Enumeration<String> getHeaders(String name) {\n if (name.equalsIgnoreCase(\"Authorization\")) {\n return Collections.enumeration(Arrays.asList(getHeader(name)));\n } else {\n return super.getHeaders(name);\n }\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n //params.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n params.put(\"Authorization\", appUtil.getPrefrence(\"token_type\")+\" \"+appUtil.getPrefrence(\"access_token\"));\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/json\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/json\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"private Header[] requestHeadMaker() {\n\t\tHeader[] header = {\n\t\t\t\tnew BasicHeader(\"User-Agent\", \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36\")\n\t\t\t\t//new BasicHeader(HttpHeaders.USER_AGENT, \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36\")\n\t\t\t, new BasicHeader(\"Accpet-Language\", \"ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7,ja;q=0.6\")\n\t\t\t, new BasicHeader(\"Accept-Charset\", \"application/x-www-form-urlencoded; charset=UTF-8\")\n\t\t\t, new BasicHeader(\"Origin\", \"https://developer.riotgames.com\")\n\t\t\t, //new BasicHeader(\"X-Riot-Token\", riotApiKey)\n\t\t};\n\t\treturn header;\n\t}",
"@Override\n public Map<String, String> getHeaders() {\n System.out.println(\"------token:---------\"+token);\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n params.put(\"authorization\",\"Bearer \"+token);\n\n\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n System.out.println(\"------token:---------\"+token);\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n params.put(\"authorization\",\"Bearer \"+token);\n\n\n return params;\n }",
"public Optional<List<Headers>> headers() {\n return Codegen.objectProp(\"headers\", TypeShape.<List<Headers>>builder(List.class).addParameter(Headers.class).build()).config(config).get();\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Authorization\", loggedInUser.getToken_type()+\" \"+loggedInUser.getAccess_token());\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"Accept\", \"application/json\");\n return headers;\n }",
"public Map<String, List<String>> getHeaders() throws NullPointerException {\n if (headers != null) {\n return headers;\n }\n throw new NullPointerException(\"getHeaders must be called after asArray or asObject\");\n }",
"private HttpHeaders getHeaders(String token) {\r\n UserDetails userDetails = new UserDetails();\r\n userDetails.setEmail(jwtUtil.extractEmail(token));\r\n userDetails.setClientType(ClientType.valueOf((String) jwtUtil.extractAllClaims(token).get(\"clientType\")));\r\n HttpHeaders httpHeaders = new HttpHeaders();\r\n httpHeaders.set(\"Authorization\", jwtUtil.generateToken(userDetails));\r\n return httpHeaders;\r\n }",
"public void copyHeaders(DriverRequest originalRequest, HttpRequest httpRequest) {\n String baseUrl = originalRequest.getBaseUrl().toString();\n String visibleBaseUrl = originalRequest.getVisibleBaseUrl();\n for (Header header : originalRequest.getOriginalRequest().getAllHeaders()) {\n String name = header.getName();\n // Special headers\n if (HttpHeaders.REFERER.equalsIgnoreCase(name) && isForwardedRequestHeader(HttpHeaders.REFERER)) {\n String value = header.getValue();\n value = urlRewriter.rewriteReferer(value, baseUrl, visibleBaseUrl);\n httpRequest.addHeader(name, value);\n // All other headers are copied if allowed\n } else if (isForwardedRequestHeader(name)) {\n httpRequest.addHeader(header);\n }\n }\n // process X-Forwarded-For header\n String remoteAddr = originalRequest.getOriginalRequest().getRemoteAddr();\n\n if (remoteAddr != null) {\n String forwardedFor = null;\n if (httpRequest.containsHeader(\"X-Forwarded-For\")) {\n forwardedFor = httpRequest.getFirstHeader(\"X-Forwarded-For\").getValue();\n }\n\n if (forwardedFor == null) {\n forwardedFor = remoteAddr;\n } else {\n forwardedFor = forwardedFor + \", \" + remoteAddr;\n }\n\n httpRequest.setHeader(\"X-Forwarded-For\", forwardedFor);\n }\n\n // Process X-Forwarded-Proto header\n if (!httpRequest.containsHeader(\"X-Forwarded-Proto\")) {\n httpRequest.addHeader(\"X-Forwarded-Proto\",\n UriUtils.extractScheme(originalRequest.getOriginalRequest().getRequestLine().getUri()));\n }\n }",
"public void setHeadersConfig(OriginRequestPolicyHeadersConfig headersConfig) {\n this.headersConfig = headersConfig;\n }",
"@Override\n\tpublic Collection<String> getHeaders(String name) {\n\t\treturn null;\n\t}",
"HttpHeaders headForHeaders(URI url) throws RestClientException;",
"public String[] getParticularResponseHeaders() {\n return null;\n }",
"protected static HttpHeaders getJsonHeaders(){ \n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n headers.setContentType(MediaType.APPLICATION_JSON);\n return headers;\n }",
"@Given(\"^API Headers are set$\")\n public void apiHeadersAreSet(){\n\n myRequest.contentType(ContentType.JSON)\n .baseUri(\"http://10.4.10.105/api/v1/\")\n .header(\"Auth-token\",\"ec6effac-7b12-4021-ba80-c682169cff60\");\n\n }"
] | [
"0.7182265",
"0.715534",
"0.71082205",
"0.7089163",
"0.70659244",
"0.7024808",
"0.69982445",
"0.699599",
"0.6978063",
"0.6924159",
"0.6915473",
"0.6903489",
"0.6895051",
"0.68705446",
"0.683307",
"0.68211967",
"0.68211967",
"0.67975205",
"0.67288744",
"0.66534096",
"0.6615653",
"0.6602539",
"0.65920496",
"0.65700257",
"0.65620565",
"0.65325457",
"0.6508545",
"0.6508217",
"0.649934",
"0.64992756",
"0.6496498",
"0.6496131",
"0.64948076",
"0.64026",
"0.63968587",
"0.63968587",
"0.6380932",
"0.63750416",
"0.6364145",
"0.63481086",
"0.6346077",
"0.6346077",
"0.6346077",
"0.63453853",
"0.63444614",
"0.6339447",
"0.6326841",
"0.63177073",
"0.6300386",
"0.6289642",
"0.6282745",
"0.62778205",
"0.6256156",
"0.6215116",
"0.620899",
"0.61963946",
"0.61727804",
"0.61119604",
"0.6107928",
"0.6098179",
"0.6091727",
"0.60619843",
"0.60521007",
"0.6039322",
"0.60386103",
"0.601977",
"0.60175854",
"0.5989728",
"0.5988832",
"0.59830755",
"0.5979672",
"0.5974138",
"0.59733504",
"0.59733504",
"0.5971975",
"0.59685314",
"0.59680015",
"0.5964697",
"0.5943967",
"0.59335893",
"0.5912772",
"0.5912772",
"0.5891365",
"0.5891365",
"0.5891365",
"0.5891365",
"0.5891365",
"0.5881704",
"0.58756423",
"0.58756423",
"0.58690345",
"0.5868817",
"0.585529",
"0.58498675",
"0.5843607",
"0.58272576",
"0.5822845",
"0.58204",
"0.5820075",
"0.5817503",
"0.5810722"
] | 0.0 | -1 |
The cookies from viewer requests to include in origin requests. | public void setCookiesConfig(OriginRequestPolicyCookiesConfig cookiesConfig) {
this.cookiesConfig = cookiesConfig;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map<String, String> getCookies() {\r\n return _cookies;\r\n }",
"public OriginRequestPolicyCookiesConfig getCookiesConfig() {\n return this.cookiesConfig;\n }",
"public static Series<Cookie> getResourceCookies() {\n return getRequest() == null ? null : getRequest().getCookies();\n }",
"public Cookie[] getCookieObjects() {\n\t\tCookie[] result = request.getCookies();\n\t\treturn result != null ? result : new Cookie[0];\n\t}",
"@Override\r\n public void getAllCookies()\r\n {\n\r\n }",
"public List<Cookie> getCookies() {\n return cookies == null ? Collections.EMPTY_LIST : cookies;\n }",
"Cookie[] getCookies();",
"@Override\n\t\tpublic Cookie[] getCookies() {\n\t\t\treturn null;\n\t\t}",
"public abstract Cookie[] getResponseCookies();",
"public Collection<Cookie> getCookies()\n\t{\n\t\tparseCookiesIfNecessary();\n\t\tif (this.cookies != null)\n\t\t\treturn this.cookies.values();\n\t\telse\n\t\t\treturn null;\n\t}",
"public Cookies cookies() {\n return new Cookies() {\n @Override\n public Optional<Cookie> get(String name) {\n return cookies.stream().filter(c -> c.name().equals(name)).findFirst();\n }\n\n @Override\n public Iterator<Cookie> iterator() {\n return cookies.iterator();\n }\n };\n }",
"public String[] getCookies() throws GGException{\n\t\tif(!authorized){\n\t\t\tthrow new GGException(GGErrorCodes.GG_UNABLE_TO_AUTH);\n\t\t}\n\t\treturn cookies;\n\t}",
"public Series<Cookie> getCookies() {\n // Lazy initialization with double-check.\n Series<Cookie> c = this.cookies;\n if (c == null) {\n synchronized (this) {\n c = this.cookies;\n if (c == null) {\n this.cookies = c = new CookieSeries();\n }\n }\n }\n return c;\n }",
"private static Cookie getCookie() {\n if (cookie == null) {\n synchronized (DefaultEntityManagerImpl.class) {\n if (cookie == null) {\n cookie = new Cookie(cookieName, getAppTokenId());\n }\n }\n }\n return cookie;\n }",
"@Override\r\n public void getCookie(String name)\r\n {\n\r\n }",
"@Override\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\n Log.i(\"response\", response.headers.toString());\n Log.d(TAG, \"parseNetworkResponse\");\n Map<String, String> responseHeaders = response.headers;\n String rawCookies = responseHeaders.get(\"Set-Cookie\");\n Log.i(\"cookies\", rawCookies);\n return super.parseNetworkResponse(response);\n }",
"private Cookie getCookie(HttpServletRequest request,String name) {\r\n\t\tCookie[] cookies=request.getCookies();\r\n\r\n\t\tfor(Cookie c:cookies){\r\n\t\t\tif(c.getName().equals(name))\r\n\t\t\t\treturn c;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"private void setCookies(URLConnection conn) {\n\t\tif (cookies.isEmpty()) {conn.setRequestProperty(\"Cookie\", \"\"); return;}\n\n\t\tconn.setRequestProperty(\"Cookie\", cookies);\n\t\tprocessor.printSys(\"Cookies Set: \" + cookies);\n\t}",
"public static synchronized Cookie[] getCookies(HttpSession session) {\n Vector cookiesPending = (Vector) getObject(session, COOKIES_PENDING);\n Vector cookiesSent = (Vector) getObject(session, COOKIES_SENT);\n\n // Determine the total number of cookies\n int cookieCount = 0;\n if (cookiesPending != null) {\n cookieCount = cookieCount + cookiesPending.size();\n }\n if (cookiesSent != null) {\n cookieCount = cookieCount + cookiesSent.size();\n }\n\n // Construct the list of cookies\n Cookie[] cookiesAll = null;\n if (cookieCount > 0) {\n cookiesAll = new Cookie[cookieCount];\n int cookieIdx = 0;\n\n // Get a combined list of all pending and sent cookies\n Cookie current = null;\n if (cookiesSent != null) {\n for (int s = 0; s < cookiesSent.size(); s++) {\n cookiesAll[cookieIdx] = (Cookie) cookiesSent.get(s);\n cookieIdx++;\n }\n }\n\n // Pending cookies will overwrite any existing cookies\n if (cookiesPending != null) {\n for (int p = 0; p < cookiesPending.size(); p++) {\n cookiesAll[cookieIdx] = (Cookie) cookiesPending.get(p);\n cookieIdx++;\n }\n }\n\n }\n\n\n return cookiesAll;\n }",
"public String getSeCookie() {\n return seCookie;\n }",
"public void part2(){\n Cookie c1 = new Cookie(\"uid\", \"2018\", 1800,false);\n Cookie c2 = new Cookie(\"PICK_KEY\", \"ahmd13ldsws8cw\",10800,true);\n Cookie c3 = new Cookie(\"REMEMBER_ME\",\"true\",10800,true);\n }",
"@Test\n\t //Extracting a string from the response\n\t public void getBasicAuthTestResultCookies() {\n\t Cookies cookies = given ()\n\t \t.spec(requestSpec)\n\t .when()\n\t .get (\"/maps/api/place/textsearch/json\")\n\t .detailedCookies();\n\t System.out.println(\"Cookies\"+cookies.size());\n\t System.out.println(\"CookiesList\"+cookies.getList(\"cookie1\").size());\n\t //System.out.println(\"Cookies\"+cookies.values().toString());\n\t //Assert.assertEquals(statusCode.toString(), \"200\");\n\t }",
"public Set<Cookie> getCookies(String name) {\r\n Set<Cookie> matchCookies = new HashSet<Cookie>();\r\n if (lastCookies != null) {\r\n for (Cookie c : lastCookies) {\r\n if (c.getName().equals(name)) {\r\n matchCookies.add(c);\r\n }\r\n }\r\n }\r\n return matchCookies;\r\n }",
"@Test\n\tpublic void testDetailedCookies() {\n\t\tResponse response = get(\"http://jsonplaceholder.typicode.com/photos\");\n\t\t\n\t\tCookie o = response.getDetailedCookie(\"__cfduid\");\n\t\t\n\t\tSystem.out.println(\"Detailed: \"+o.hasExpiryDate());\n\t\tSystem.out.println(\"Detailed: \"+o.getExpiryDate());\n\t\tSystem.out.println(\"Detailed: \"+o.hasValue());\n\t}",
"@DOMSupport(DomLevel.ONE)\r\n @Property String getCookie();",
"public static Cookie getSessionCookieActual(final Request request) {\n if (request.raw().getCookies() == null) {\n return null;\n }\n for (Cookie cookie : request.raw().getCookies()) {\n if (cookie.getName().equals(\"session\")) {\n return cookie;\n }\n }\n return null;\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.970 -0500\", hash_original_method = \"E3D7D6931554145E868760CB2C4A26A3\", hash_generated_method = \"EE86FFF77F12F6E87C0C4F0204A00383\")\n \nprivate String cookies(String url) {\n return CookieManager.getInstance().getCookie(url);\n }",
"public Cookie Found(HttpServletRequest request) {\n\t\tfor(Cookie c : request.getCookies()) {\n\t\t\tif(c.getName().equals(\"CS5300J17\")) return c;\n\t\t}\n\t\treturn null;\n\t}",
"public void setCookies(Series<Cookie> cookies) {\n this.cookies = cookies;\n }",
"static Map<String, Cookie> parseCookies(Headers headers) {\n\t\tMap<String, String> params = parseHeaderParams(headers.get(HeaderName.COOKIE));\n\t\tMap<String, Cookie> cookies = new LinkedHashMap<>();\n\t\tfor (Map.Entry<String, String> entry : params.entrySet()) {\n\t\t\tif (!entry.getValue().isEmpty()) {\n\t\t\t\tcookies.put(entry.getKey(), new Cookie(entry.getKey(), entry.getValue()));\n\t\t\t}\n\t\t}\n\t\treturn cookies;\n\t}",
"public boolean isSetCookies() {\n return this.cookies != null;\n }",
"@Override\n public Map<String, String> getHeaders(){\n AndroidApplication app = (AndroidApplication)getApplication();\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Accept\", \"application/json\" );\n headers.put(\"Cookie\", \"session-cookie=\" + app.getCookie() );\n return headers;\n }",
"String getCookiePath()\n {\n return getApplicationContext();\n }",
"public static Series<CookieSetting> getResourceCookieSettings() {\n return getResourceResponse() == null ? null : getResourceResponse().getCookieSettings();\n }",
"protected static void initializeCookieStatus(HttpURLConnection urlConnection) {\n CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ALL));\n cookies = urlConnection.getHeaderFields().get(\"Set-Cookie\");\n }",
"public static void dumpCookies( HttpServletRequest request, StringBuilder b ) {\n b.append( \"Cookies:\" );\n b.append( LF );\n if ( null != request.getCookies() ) {\n for ( Cookie cookie : request.getCookies() ) {\n String description = \"\";\n try {\n description = cookie.toString();\n } catch ( Exception e ) {\n LOG.warning( \"Exception describing cookie: \" + e.getMessage() );\n }\n b.append( \" \" + description + LF );\n }\n }\n b.append( \"---------------- End of Cookies\" );\n b.append( LF );\n }",
"public List<Cookie> parse(HeaderElement[] headerElementArr, CookieOrigin cookieOrigin) throws MalformedCookieException {\n return createCookies(headerElementArr, adjustEffectiveHost(cookieOrigin));\n }",
"public Cookie getCookieValueByName(HttpServletRequest request, String name) {\n if (request.getCookies() == null) {\n return null;\n }\n for (int i = 0; i < request.getCookies().length; i++) {\n if (request.getCookies()[i].getName().equals(name)) {\n return request.getCookies()[i];\n }\n }\n return null;\n }",
"HttpClientRequest addCookie(Cookie cookie);",
"public String getCookie(String name) {\r\n return _cookies.get(name);\r\n }",
"public static String getGoogleCookie() {\n return GOOGLE_COOKIE;\n }",
"private List<HttpCookie> parseCookiesFromHeaders(HttpHeaders httpHeaders) {\n List<HttpCookie> cookies = Lists.newArrayList();\n List<String> cookieHeaders = httpHeaders.get(HttpHeaders.SET_COOKIE);\n if (cookieHeaders != null) {\n cookieHeaders.forEach(header -> cookies.addAll(HttpCookie.parse(header)));\n }\n\n cookieHeaders = httpHeaders.get(HttpHeaders.SET_COOKIE2);\n if (cookieHeaders != null) {\n cookieHeaders.forEach(header -> cookies.addAll(HttpCookie.parse(header)));\n }\n return cookies;\n }",
"private List<String> getSessionIdFromCookie()\n //----------------------------------------------------------------\n {\n String name = null;\n String value = null;\n PageContext pageContext = null;\n HttpServletRequest httpRequest = null;\n Cookie[] cookies = null;\n pageContext = (PageContext) this.getJspContext();\n List<String> sessionList = null;\n\n /*\n * There might be multiple Cookies with the same name\n * Get the value for each Cookie and store it in the List\n */\n\n sessionList = new LinkedList<String>();\n\n if (pageContext != null)\n {\n httpRequest = (HttpServletRequest) pageContext.getRequest();\n if (httpRequest != null)\n {\n cookies = httpRequest.getCookies();\n if (cookies != null)\n {\n for (Cookie cookie : cookies)\n {\n if (cookie != null)\n {\n name = cookie.getName();\n if (name != null && name.length() > 0 && name.equals(COOKIE_NAME))\n {\n value = cookie.getValue();\n if (value != null && value.length() > 0)\n {\n sessionList.add(value);\n }\n }\n }\n }\n }\n }\n }\n\n return sessionList;\n }",
"public void storeCookies(URLConnection conn) throws IOException {\n\n\t\t// let's determine the domain from where these cookies are being sent\n\t\tString domain = getDomainFromHost(conn.getURL().getHost());\n\n\t\tMap<String, Map<String, String>> domainStore; // this is where we will\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// store cookies for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// this domain\n\n\t\t// now let's check the store to see if we have an entry for this domain\n\t\tif (store.containsKey(domain)) {\n\t\t\t// we do, so lets retrieve it from the store\n\t\t\tdomainStore = store.get(domain);\n\t\t} else {\n\t\t\t// we don't, so let's create it and put it in the store\n\t\t\tdomainStore = new HashMap<String, Map<String, String>>();\n\t\t\tstore.put(domain, domainStore);\n\t\t}\n\n\t\t// OK, now we are ready to get the cookies out of the URLConnection\n\n\t\tString headerName = null;\n\t\tfor (int i = 1; (headerName = conn.getHeaderFieldKey(i)) != null; i++) {\n\t\t\tif (headerName.equalsIgnoreCase(SET_COOKIE)) {\n\t\t\t\tMap<String, String> cookie = new HashMap<String, String>();\n\t\t\t\tStringTokenizer st = new StringTokenizer(\n\t\t\t\t\t\tconn.getHeaderField(i), COOKIE_VALUE_DELIMITER);\n\n\t\t\t\t// the specification dictates that the first name/value pair\n\t\t\t\t// in the string is the cookie name and value, so let's handle\n\t\t\t\t// them as a special case:\n\n\t\t\t\tif (st.hasMoreTokens()) {\n\t\t\t\t\tString token = st.nextToken();\n\t\t\t\t\tString name = token.substring(0,\n\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR));\n\t\t\t\t\tString value = token.substring(\n\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR) + 1,\n\t\t\t\t\t\t\ttoken.length());\n\t\t\t\t\tdomainStore.put(name, cookie);\n\t\t\t\t\tcookie.put(name, value);\n\t\t\t\t}\n\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\tString t1 = \"\";\n\t\t\t\t\tString t2 = \"\";\n\t\t\t\t\tString token = st.nextToken();\n\t\t\t\t\tint seperatorPosition = token.indexOf(NAME_VALUE_SEPARATOR);\n\t\t\t\t\tif (seperatorPosition >= 0) {\n\t\t\t\t\t\tt1 = token.substring(0,\n\t\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR))\n\t\t\t\t\t\t\t\t.toLowerCase();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tt1 = \"\";\n\t\t\t\t\t}\n\t\t\t\t\tt2 = token.substring(\n\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR) + 1,\n\t\t\t\t\t\t\ttoken.length());\n\t\t\t\t\t/*\n\t\t\t\t\t * cookie.put(token.substring(0,\n\t\t\t\t\t * token.indexOf(NAME_VALUE_SEPARATOR)).toLowerCase(),\n\t\t\t\t\t * token.substring(token.indexOf(NAME_VALUE_SEPARATOR) + 1,\n\t\t\t\t\t * token.length()));\n\t\t\t\t\t */\n\t\t\t\t\tcookie.put(t1, t2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n public void delAllCookies()\r\n {\n\r\n }",
"private String getCookieValue(HttpServletRequest request, String name) {\n Cookie[] cookies = request.getCookies();\n\n if (cookies != null) { //Stupid servlet API!\n for (Cookie cookie : cookies) {\n if (name.equals(cookie.getName())) {\n return cookie.getValue();\n }\n }\n }\n\n return \"\";\n }",
"public Builder cookies(final Map<String, String> cookies) {\n this.cookies.putAll(cookies);\n return this;\n }",
"private void setCookies(HttpServletRequest request, HttpServletResponse response, int currentPage, int recordsOnPage) {\n CookieManager cookieManager = new CookieManager(request);\n String currentPageString = Integer.toString(currentPage);\n response.addCookie(cookieManager.makeCookie(CookieName.USERS_CURRENT_PAGE, currentPageString));\n\n String recordsOnPageString = Integer.toString(recordsOnPage);\n response.addCookie(cookieManager.makeCookie(CookieName.RECORDS_ON_USERS_PAGE, recordsOnPageString));\n }",
"private String createCookies() {\n\n String bengLoginID = uid + \"\";\n String timeStr = MyApplication.getInstance().authorTime;\n ToastUtil.toast(timeStr + \"\");\n String cookes = MyApplication.getInstance().bengLoginId + \"; \" + MyApplication.getInstance().userHit + \"; \" + MyApplication.getInstance().authorID + \"; \" + timeStr + \"; \" + MyApplication.getInstance().phpSessid;\n ToastUtil.toast(cookes);\n return cookes;\n\n }",
"protected static void addCookies(HttpURLConnection urlConnection) {\n for (String cookie : cookies) {\n urlConnection.addRequestProperty(\"Cookie\", cookie.split(\";\", 2)[0]);\n }\n }",
"public Set<String> getStoredOrigins() {\n // In case the pre-emptive disk read in initStorage hasn't occurred by the time we actually\n // need the value.\n try (StrictModeContext ignored = StrictModeContext.allowDiskReads()) {\n // The set returned by getStringSet must not be modified. The consistency of the stored\n // data is not guaranteed if you do, nor is your ability to modify the instance at all.\n return new HashSet<>(mPreferences.getStringSet(KEY_ALL_ORIGINS, new HashSet<>()));\n }\n }",
"public Optional<Cookie> cookie(String name) {\n return cookies().get(name);\n }",
"@Override\n public void addCookie(Cookie arg0) {\n\n }",
"void killAllCookies(HttpServletRequest request, HttpServletResponse response);",
"public Cookie getCookieObject(String name) {\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies != null)\n\t\t\tfor (Cookie cookie : cookies)\n\t\t\t\tif (cookie.getName().equals(name))\n\t\t\t\t\treturn cookie;\n\t\treturn null;\n\t}",
"private Cookie getCookieByName(HttpServletRequest request, String name) {\n Map<String, Cookie> cookieMap = readCookieMap(request);\n if (cookieMap.containsKey(name)) {\n Cookie cookie = (Cookie) cookieMap.get(name);\n return cookie;\n } else {\n return null;\n }\n }",
"@Test(singleThreaded = true)\n public void cookiesShouldBeIgnored() {\n Mockit.setUpMock(AbstractHttpClient.class, new MockAbstractHttpClient(new MockHooks() {\n @Override\n public void responseHook(BasicHttpResponse response) {\n response.setHeader(\"Set-Cookie\", \"foo=bar; path=/;\");\n }\n }));\n connection.execute(new AddonList(), apiKey);\n\n Mockit.setUpMock(AbstractHttpClient.class, new MockAbstractHttpClient(new MockHooks() {\n @Override\n public void beforeAssertions(HttpUriRequest request, HttpContext context) {\n Assert.assertEquals(request.getHeaders(\"Cookie\").length, 0, \"Cookies should be ignored, but there are cookies present.\");\n }\n }));\n // run this twice to ensure the set-cookie was sent from the first request\n connection.execute(new AddonList(), apiKey);\n Mockit.tearDownMocks(AbstractHttpClient.class);\n }",
"private int storeCookies(URLConnection con) {\n\t\tString headerName = null;\n\n\t\tint totalNewCookies = 0;\n\n\t\tfor (int i = 1; (headerName = con.getHeaderFieldKey(i)) != null; i++) if (headerName.equals(\"Set-Cookie\")) totalNewCookies += addCookie(con.getHeaderField(i)); //add to the total the number of new cookies found by add cookie for each cookie\n\n\t\treturn totalNewCookies;\n\t}",
"public static String retrieveLoginCookies(HashMap<String, String> params) throws IOException {\n String url = Constants.LOGIN_URL;\n CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ALL));\n HttpURLConnection con = null;\n try {\n URL obj = new URL(url);\n con = (HttpURLConnection) obj.openConnection();\n } catch (UnknownHostException e) {\n //try to fix broken url\n con = (HttpURLConnection) new URL(\"http://\" + url).openConnection();\n }\n\n //add request header\n con.setRequestMethod(\"POST\");\n //just for fun\n con.setRequestProperty(\"Accept-Language\", \"ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4,de;q=0.2\");\n\n String urlParameters = \"\";\n\n for (Map.Entry<String, String> e : params.entrySet()) {\n urlParameters += e.getKey() + \"=\" + e.getValue() + \"&\";\n }\n\n //send post request\n con.setDoOutput(true);\n DataOutputStream wr = new DataOutputStream(con.getOutputStream());\n wr.writeBytes(urlParameters);\n wr.flush();\n wr.close();\n\n\n // temporary to build request cookie header\n String sessionCookie = \"\";\n // find the cookies in the response header from the first request\n List<String> cookies = con.getHeaderFields().get(\"Set-Cookie\");\n if (cookies != null) {\n for (String cookie : cookies) {\n // only want the first part of the cookie header that has the value\n String value = cookie.split(\";\")[0];\n sessionCookie += value + \";\";\n }\n }\n return sessionCookie;\n }",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public HttpsConnection setCookies(final String cookies) {\n setHeader(\"Cookie\", cookies);\n return this;\n }",
"private String getAppCookieValue(HttpServletRequest request) {\n Cookie[] cookies = request.getCookies();\n if (cookies != null) {\n for (Cookie cookie : cookies) {\n if(cookie.getName().equals(\"costsManager\"))\n return cookie.getValue();\n }\n }\n return \"\";\n }",
"void addCookie(HttpServletResponse response, Cookie cookie);",
"@Override\n\tpublic CookieDTO cookieView(CookieDTO cookieDTO) throws Exception {\n\t\tSystem.out.println(\"cookie service 실행 CookieView\");\n\t\treturn cookie.cookieView(cookieDTO);\n\t}",
"public Object getUnderlying() {\n return ahcCookie;\n }",
"public void setCookies(Map<String, String> cookies) throws IOException {\r\n if (cookies == null)\r\n return;\r\n this.cookies.putAll(cookies);\r\n }",
"@Override\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\n // since we don't know which of the two underlying network vehicles\n // will Volley use, we have to handle and store session cookies manually\n Map<String, String> responseHeaders = response.headers;\n Log.d(\"cookies_login\", responseHeaders.get(\"Set-Cookie\"));\n sessionManager.setCookie(responseHeaders.get(\"Set-Cookie\"));\n\n return super.parseNetworkResponse(response);\n }",
"@Override\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\n // since we don't know which of the two underlying network vehicles\n // will Volley use, we have to handle and store session cookies manually\n Map<String, String> responseHeaders = response.headers;\n Log.d(\"cookies_login\", responseHeaders.get(\"Set-Cookie\"));\n sessionManager.setCookie(responseHeaders.get(\"Set-Cookie\"));\n\n return super.parseNetworkResponse(response);\n }",
"public void deleteAllVisibleCookies();",
"Node.Cookie getCookie( Class type ) {\n return null;\n }",
"public static String getSessionCookie(final Request request) {\n if (request.raw().getCookies() == null) {\n return null;\n }\n for (Cookie cookie : request.raw().getCookies()) {\n if (cookie.getName().equals(\"session\")) {\n return cookie.getValue();\n }\n }\n return null;\n }",
"public String read(String name) {\n\t\t\treturn this.cookies.get(name);\n\t\t}",
"@BeforeTest\n\tpublic void init() {\n\t\tMap<String, String> cokiesinit = given().when().get(COOKIE_URL).then().statusCode(200)\n\t\t\t\t.extract().cookies();\n\t\tcookieMap.putAll(cokiesinit); \n\t}",
"private void authorize(){\n\t\t\n\t\tURL authURL = null;\n\t\tURL homeURL = null;\n\t\tURLConnection homeCon = null;\n\t\t\n\t\tString loginPage = GG.GG_LOGIN+\"?ACCOUNT=\"+GG.GG_UID\n\t\t\t+\"&PASSWORD=\"+GG.GG_PASS;\n\t\tString cookieString = \"\";\n\t\tString cookieString1 = \"\";\n\t\t\n\t\ttry{\n\t\t\thomeURL = new URL(GG.GG_HOME);\n\t\t\thomeCon = homeURL.openConnection();\n\t\t\t\n\t\t\t// Look At the headers\n\t\t\tMap headerMap = homeCon.getHeaderFields();\n\t\t\t\n\t\t\t// Look for the Cookie\n\t\t\tif(headerMap.containsKey(\"Set-Cookie\")){\n\t\t\t\t\n\t\t\t\t// this gets the exact value of the header\n\t\t\t\t// otherwise gets some formatted string\n\t\t\t\tcookieString = homeCon.getHeaderField(\"Set-Cookie\");\n\t\t\t\t//log.finest(\"cookie1: \"+cookieString);\n\t\t\t\t\n\t\t\t\tauthURL = new URL(loginPage);\n\t\t\t\tHttpURLConnection.setFollowRedirects(false);\n\t\t\t\tHttpURLConnection loginCon = (HttpURLConnection) authURL.openConnection();\n\t\t\t\t\n\t\t\t\t// doOutput must be set before connecting\n\t\t\t\tloginCon.setAllowUserInteraction(true);\n\t\t\t\tloginCon.setUseCaches(false);\n\t\t\t\tloginCon.setDoOutput(true);\n\t\t\t\tloginCon.setRequestProperty(\"Cookie\", cookieString);\n\t\t\t\tloginCon.connect();\n\t\t\t\t\n\t\t\t\t// Look At the headers\n\t\t\t\tMap headerMap1 = loginCon.getHeaderFields();\n\t\t\t\t\n\t\t\t\tcookieString1 = loginCon.getHeaderField(\"Set-Cookie\");\n\t\t\t\t//log.finest(\"cookie2: \"+cookieString1);\n\t\t\t\tif(!Pattern.matches(\".*\\\\.\"+GG.GG_UID+\"\\\\.\\\\d+.*\", cookieString1)){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString location = loginCon.getHeaderField(\"Location\");\n\t\t\t\tURL gotURL = new URL(location);\n\t\t\t\tHttpURLConnection gotCon = (HttpURLConnection) gotURL.openConnection();\n\t\t\t\t// doOutput must be set before connecting\n\t\t\t\tgotCon.setAllowUserInteraction(true);\n\t\t\t\tgotCon.setUseCaches(false);\n\t\t\t\tgotCon.setDoOutput(true);\n\t\t\t\tgotCon.setRequestProperty(\"Cookie\", cookieString);\n\t\t\t\tgotCon.setRequestProperty(\"Cookie\", cookieString1);\n\t\t\t\t\n\t\t\t\tgotCon.connect();\n\t\t\t\t\n\t\t\t\t// Got the Cookies\n\t\t\t\tcookies[0] = cookieString;\n\t\t\t\tcookies[1] = cookieString1;\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tlog.info(\"Unable to find the Cookie\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\tauthorized = true;\n\t}",
"private static void cookieMonster (HTTPRequest request)\n\t{\n\t /*if (!request.isCookiesParsed ())\n\t {\n\t \t retVal = request.cookieMonster ();\n\t }*/\n\t \n\t}",
"public String getCookie(String name) {\n\t\treturn getCookie(name, null);\n\t}",
"public Set<Credentials> getCredentials() {\n return credentials;\n }",
"public String getCookieHeaderName() {\n\treturn getCookieHeaderName(version);\n }",
"public static void deleteAllCookies() {\n\t\tLOG.info(\"Deleting all browser cookies\");\n\t\tConstants.driver.manage().deleteAllCookies();\n\t\tLOG.info(\"Deleted all cookies\");\n\n\t}",
"public c get() {\n return this.e.providesCookieManager();\n }",
"public static Cookie getCookie(HttpServletRequest request, String cookieName) {\n\t\tfor (Cookie cookie : request.getCookies()) {\n\t\t\tif (cookieName.equals(cookie.getName())) {\n\t\t\t\treturn cookie;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static void acceptCookies() {\n WebElement acceptButton = Browser.driver.findElement(ACCEPT_COOKIES_BUTTON);\n if(acceptButton.isDisplayed()){\n click(ACCEPT_COOKIES_BUTTON);\n }\n }",
"@Override\n\t\tpublic Object getCredentials() {\n\t\t\treturn null;\n\t\t}",
"@Override\n\tpublic Object getCredentials() {\n\t\treturn credentials;\n\t}",
"public String toString()\n {\n return \"{CookieValue(\" + cookieValues + \")}\";\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.967 -0500\", hash_original_method = \"D5A9FC7DDB356B7F9D175C82B50A2AF1\", hash_generated_method = \"24C7574FF957618A543446AAAEE4BC4D\")\n \nprivate void setCookies(String url, String value) {\n if (value.contains(\"\\r\") || value.contains(\"\\n\")) {\n // for security reason, filter out '\\r' and '\\n' from the cookie\n int size = value.length();\n StringBuilder buffer = new StringBuilder(size);\n int i = 0;\n while (i != -1 && i < size) {\n int ir = value.indexOf('\\r', i);\n int in = value.indexOf('\\n', i);\n int newi = (ir == -1) ? in : (in == -1 ? ir : (ir < in ? ir\n : in));\n if (newi > i) {\n buffer.append(value.subSequence(i, newi));\n } else if (newi == -1) {\n buffer.append(value.subSequence(i, size));\n break;\n }\n i = newi + 1;\n }\n value = buffer.toString();\n }\n CookieManager.getInstance().setCookie(url, value);\n }",
"@Test\n public void handlingCookies () {\n\n driver.get(\"https://www.amazon.com\");\n// 1. find the total number of cookies\n Set<Cookie> setOfCookies = driver.manage().getCookies();// returns all of the cookies as Set\n int totalNumberOfCookies = setOfCookies.size();\n System.out.println(\"totalNumberOfCookies is \"+totalNumberOfCookies);\n\n// 2. print cookies\n // As the setOfCookies is a set. We have to print them from a loop.\n for (Cookie eachCookie:setOfCookies) {\n System.out.println(\"each name: \"+eachCookie.getName());\n System.out.println(\"each value: \"+eachCookie.getValue());\n }\n\n// 3. get cookies by name : i18n-prefs (I select a cookie name from the console)\n Cookie named1_i18n_prefs = driver.manage().getCookieNamed(\"i18n-prefs\");\n\n System.out.println(\"the cookie named -i18n-prefs: \" + named1_i18n_prefs);\n System.out.println(\"value of the named ... \" + named1_i18n_prefs.getValue());\n\n// 4. add new cookie\n Cookie myCookie = new Cookie(\"my cookie\" , \"How does my cookie look like\");\n driver.manage().addCookie(myCookie);\n totalNumberOfCookies = driver.manage().getCookies().size();\n System.out.println(\"New total number is : \" + totalNumberOfCookies);\n\n Set<Cookie> newSetOfCookies = driver.manage().getCookies();\n for(Cookie eachCookie : newSetOfCookies) {\n System.out.println(\"new cookie in the new set: \" + eachCookie );\n }\n\n// 5. delete some certain cookies by name\n driver.manage().deleteCookieNamed(\"skin\"); // by name of the cookie\n driver.manage().deleteCookie(named1_i18n_prefs); // by the cookie\n totalNumberOfCookies = driver.manage().getCookies().size();\n System.out.println(\"newer total number = \" + totalNumberOfCookies);\n\n// 6. delete all cookies\n driver.manage().deleteAllCookies();\n totalNumberOfCookies = driver.manage().getCookies().size();\n System.out.println(\"newest total number = \" + totalNumberOfCookies);\n\n\n\n }",
"@Override\n public void filter(ContainerRequestContext requestContext,\n ContainerResponseContext responseContext) throws IOException {\n HttpSession session = requestManager.getHttpSession();\n\n session.keepAlive();\n sessionManager.save(session);\n\n NewCookie sessionCookie = new NewCookie(COOKIE_NAME, session.getSessionId(),\n \"/\", null, null, -1, true, true);\n\n\n logger.trace(\"Request completed with session id {}\", sessionCookie);\n responseContext.getHeaders().add(HttpHeaders.SET_COOKIE, sessionCookie);\n }",
"String getCookie(HttpServletRequest request, String name) throws ValidationException;",
"public static synchronized String getCookieInfo(URL u)\n {\n\tinitialize();\n\n\tString cookie = null;\n\n\ttry\n\t{\n\t // Find key to lookup cookie table\n\t String key = u.getProtocol() + u.getHost() + u.getFile();\n\n\t // To lookup the cookie, just the URL hostname and path without filename\n\t int index = key.lastIndexOf('/');\n\n\t if (index < 0)\n\t\treturn null;\n\n\t key = key.substring(0, index);\n\n\t try\n\t {\n\t\tcookie = cookieHandler.getCookieInfo(u.toString());\n\n\t\t// Store cookie into cache\n\t\t//\n\t\tif (cookie != null && !cookie.equals(\"\") && !cookie.equals(\"\\n\") && !cookie.equals(\"\\r\\n\"))\n\t\t cookieTable.put(key, cookie);\n\t\telse {\n\t\t cookieTable.put(key, \"\");\n\t\t cookie = null;\n\t\t}\n\t }\n\t catch (ServiceUnavailableException se)\n\t {\n\t\tSystem.out.println(ResourceHandler.getMessage(\"cookiehandler.noservice\"));\n\n\t\t// Obtain cookie from cache\n\t\tcookie = (String) cookieTable.get(key);\n\t }\n\n\t if (cookie != null)\n\t {\n\t\tTrace.msgNetPrintln(\"cookiehandler.connect\", new Object[] {u, cookie});\n\t }\n\t}\n\tcatch (Throwable e)\n\t{\n\t e.printStackTrace();\n\t}\n\n return cookie;\n }",
"public void setCookies(String[] cookies) throws IOException {\r\n if (cookies == null)\r\n return;\r\n for (int i = 0; i < cookies.length - 1; i += 2) {\r\n setCookie(cookies[i], cookies[i + 1]);\r\n }\r\n }",
"private Cookie getCookieByName(String name) {\n Cookie[] cookies = VaadinService.getCurrentRequest().getCookies();\n\n // Iterate to find cookie by its name\n for (Cookie cookie : cookies) {\n if (name.equals(cookie.getName())) {\n return cookie;\n }\n }\n\n return null;\n }",
"public void setCookies(URLConnection conn) throws IOException {\n\n\t\t// let's determine the domain and path to retrieve the appropriate\n\t\t// cookies\n\t\tURL url = conn.getURL();\n\t\tString domain = getDomainFromHost(url.getHost());\n\t\tString path = url.getPath();\n\n\t\tMap<String, Map<String, String>> domainStore = store.get(domain);\n\t\tif (domainStore == null)\n\t\t\treturn;\n\t\tStringBuffer cookieStringBuffer = new StringBuffer();\n\n\t\tIterator<String> cookieNames = domainStore.keySet().iterator();\n\t\twhile (cookieNames.hasNext()) {\n\t\t\tString cookieName = cookieNames.next();\n\t\t\tMap<String, String> cookie = (Map<String, String>) domainStore\n\t\t\t\t\t.get(cookieName);\n\t\t\t// check cookie to ensure path matches and cookie is not expired\n\t\t\t// if all is cool, add cookie to header string\n\t\t\tif (comparePaths((String) cookie.get(PATH), path)\n\t\t\t\t\t&& isNotExpired((String) cookie.get(EXPIRES))) {\n\t\t\t\tcookieStringBuffer.append(cookieName);\n\t\t\t\tcookieStringBuffer.append(\"=\");\n\t\t\t\tcookieStringBuffer.append((String) cookie.get(cookieName));\n\t\t\t\tif (cookieNames.hasNext())\n\t\t\t\t\tcookieStringBuffer.append(SET_COOKIE_SEPARATOR);\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tconn.setRequestProperty(COOKIE, cookieStringBuffer.toString());\n\t\t} catch (java.lang.IllegalStateException ise) {\n\t\t\tIOException ioe = new IOException(\n\t\t\t\t\t\"Illegal State! Cookies cannot be set on a URLConnection that is already connected. \"\n\t\t\t\t\t\t\t+ \"Only call setCookies(java.net.URLConnection) AFTER calling java.net.URLConnection.connect().\");\n\t\t\tthrow ioe;\n\t\t}\n\t}",
"public String getCmsNoCookies() {\n return (String) get(\"cms_no_cookies\");\n }",
"public static String getCookiesFromWebkit(String domain, String[] hosts, String[] paths, String cookieFile) {\r\n\t\tString retval = \"\";\r\n\t\tlogger.debug(\"Cookiefile: {}\", cookieFile);\r\n\t\tFile file = new File(cookieFile);\r\n\r\n\t\t/*\r\n\t\t * Opera seems to lock the cookies.sqlite all the time, so\r\n\t\t * we get a database locked exception, so the best way to avoid this,\r\n\t\t * is copy the sqlite-file and work here with the copy.\r\n\t\t */\r\n\t\tString newCookieFile = cookieFile + \"bh_copy.sqlite\";\r\n\r\n\t\tsynchronized (copyDBLock) {\r\n\t\t\tif (System.currentTimeMillis() > (lastSqliteCopy + 180000)) {\r\n\t\t\t\tCopyUtil.copy(cookieFile, newCookieFile);\r\n\t\t\t\tlastSqliteCopy = System.currentTimeMillis();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tretval = getCookiesFromWebkitSqlite(newCookieFile, domain, hosts, paths, dbLock);\r\n\t\t} catch (ClassNotFoundException | SQLException ex) {\r\n\t\t\tlogger.error(\"Could not read cookies from: {}\", file.getAbsolutePath(), ex);\r\n\t\t}\r\n\r\n\t\treturn retval;\r\n\t}",
"@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n Cookie cookie = requestContext.getCookies().get(COOKIE_NAME);\n String sessionId = null;\n if (cookie != null) {\n sessionId = cookie.getValue();\n logger.trace(\"Request received with session id {}\", sessionId);\n }\n HttpSession httpSession = sessionManager.getOrCreate(sessionId);\n requestManager.setHttpSession(httpSession);\n }",
"@Override\r\n public void delCookie(String name)\r\n {\n\r\n }"
] | [
"0.72387284",
"0.69367564",
"0.69241923",
"0.68988955",
"0.68353415",
"0.68038523",
"0.6793431",
"0.67628545",
"0.6612621",
"0.6594174",
"0.65337354",
"0.64467674",
"0.6145164",
"0.60553604",
"0.5995681",
"0.5904755",
"0.58495086",
"0.5810338",
"0.57532585",
"0.57070196",
"0.5703145",
"0.5700939",
"0.5649441",
"0.56364644",
"0.561201",
"0.56119925",
"0.56006646",
"0.5578079",
"0.555712",
"0.5545455",
"0.5510088",
"0.5502378",
"0.54975486",
"0.5495104",
"0.5486933",
"0.54825294",
"0.5458071",
"0.54200757",
"0.54147756",
"0.5405985",
"0.54025006",
"0.5400826",
"0.53915495",
"0.5388139",
"0.5381296",
"0.5379273",
"0.53779894",
"0.5372134",
"0.5347325",
"0.53419185",
"0.5320125",
"0.5313226",
"0.5303656",
"0.5291275",
"0.5285802",
"0.52634543",
"0.52453095",
"0.5237417",
"0.52238506",
"0.522361",
"0.522361",
"0.522361",
"0.522361",
"0.5219218",
"0.5213915",
"0.5211315",
"0.5196413",
"0.51949644",
"0.51796156",
"0.5178098",
"0.5178098",
"0.51729083",
"0.51585805",
"0.51520866",
"0.5151997",
"0.5141965",
"0.5132328",
"0.51268244",
"0.5119874",
"0.50987744",
"0.5086019",
"0.50781405",
"0.5071931",
"0.5043127",
"0.5019716",
"0.501695",
"0.5015193",
"0.49946758",
"0.4985182",
"0.49801472",
"0.49594763",
"0.49585012",
"0.4917959",
"0.4899316",
"0.4894559",
"0.4872076",
"0.4871323",
"0.48611954",
"0.48527792",
"0.4845657"
] | 0.5705989 | 20 |
The cookies from viewer requests to include in origin requests. | public OriginRequestPolicyCookiesConfig getCookiesConfig() {
return this.cookiesConfig;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map<String, String> getCookies() {\r\n return _cookies;\r\n }",
"public static Series<Cookie> getResourceCookies() {\n return getRequest() == null ? null : getRequest().getCookies();\n }",
"public Cookie[] getCookieObjects() {\n\t\tCookie[] result = request.getCookies();\n\t\treturn result != null ? result : new Cookie[0];\n\t}",
"@Override\r\n public void getAllCookies()\r\n {\n\r\n }",
"public List<Cookie> getCookies() {\n return cookies == null ? Collections.EMPTY_LIST : cookies;\n }",
"Cookie[] getCookies();",
"@Override\n\t\tpublic Cookie[] getCookies() {\n\t\t\treturn null;\n\t\t}",
"public abstract Cookie[] getResponseCookies();",
"public Collection<Cookie> getCookies()\n\t{\n\t\tparseCookiesIfNecessary();\n\t\tif (this.cookies != null)\n\t\t\treturn this.cookies.values();\n\t\telse\n\t\t\treturn null;\n\t}",
"public Cookies cookies() {\n return new Cookies() {\n @Override\n public Optional<Cookie> get(String name) {\n return cookies.stream().filter(c -> c.name().equals(name)).findFirst();\n }\n\n @Override\n public Iterator<Cookie> iterator() {\n return cookies.iterator();\n }\n };\n }",
"public String[] getCookies() throws GGException{\n\t\tif(!authorized){\n\t\t\tthrow new GGException(GGErrorCodes.GG_UNABLE_TO_AUTH);\n\t\t}\n\t\treturn cookies;\n\t}",
"public Series<Cookie> getCookies() {\n // Lazy initialization with double-check.\n Series<Cookie> c = this.cookies;\n if (c == null) {\n synchronized (this) {\n c = this.cookies;\n if (c == null) {\n this.cookies = c = new CookieSeries();\n }\n }\n }\n return c;\n }",
"private static Cookie getCookie() {\n if (cookie == null) {\n synchronized (DefaultEntityManagerImpl.class) {\n if (cookie == null) {\n cookie = new Cookie(cookieName, getAppTokenId());\n }\n }\n }\n return cookie;\n }",
"@Override\r\n public void getCookie(String name)\r\n {\n\r\n }",
"@Override\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\n Log.i(\"response\", response.headers.toString());\n Log.d(TAG, \"parseNetworkResponse\");\n Map<String, String> responseHeaders = response.headers;\n String rawCookies = responseHeaders.get(\"Set-Cookie\");\n Log.i(\"cookies\", rawCookies);\n return super.parseNetworkResponse(response);\n }",
"private Cookie getCookie(HttpServletRequest request,String name) {\r\n\t\tCookie[] cookies=request.getCookies();\r\n\r\n\t\tfor(Cookie c:cookies){\r\n\t\t\tif(c.getName().equals(name))\r\n\t\t\t\treturn c;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"private void setCookies(URLConnection conn) {\n\t\tif (cookies.isEmpty()) {conn.setRequestProperty(\"Cookie\", \"\"); return;}\n\n\t\tconn.setRequestProperty(\"Cookie\", cookies);\n\t\tprocessor.printSys(\"Cookies Set: \" + cookies);\n\t}",
"public static synchronized Cookie[] getCookies(HttpSession session) {\n Vector cookiesPending = (Vector) getObject(session, COOKIES_PENDING);\n Vector cookiesSent = (Vector) getObject(session, COOKIES_SENT);\n\n // Determine the total number of cookies\n int cookieCount = 0;\n if (cookiesPending != null) {\n cookieCount = cookieCount + cookiesPending.size();\n }\n if (cookiesSent != null) {\n cookieCount = cookieCount + cookiesSent.size();\n }\n\n // Construct the list of cookies\n Cookie[] cookiesAll = null;\n if (cookieCount > 0) {\n cookiesAll = new Cookie[cookieCount];\n int cookieIdx = 0;\n\n // Get a combined list of all pending and sent cookies\n Cookie current = null;\n if (cookiesSent != null) {\n for (int s = 0; s < cookiesSent.size(); s++) {\n cookiesAll[cookieIdx] = (Cookie) cookiesSent.get(s);\n cookieIdx++;\n }\n }\n\n // Pending cookies will overwrite any existing cookies\n if (cookiesPending != null) {\n for (int p = 0; p < cookiesPending.size(); p++) {\n cookiesAll[cookieIdx] = (Cookie) cookiesPending.get(p);\n cookieIdx++;\n }\n }\n\n }\n\n\n return cookiesAll;\n }",
"public void setCookiesConfig(OriginRequestPolicyCookiesConfig cookiesConfig) {\n this.cookiesConfig = cookiesConfig;\n }",
"public String getSeCookie() {\n return seCookie;\n }",
"public void part2(){\n Cookie c1 = new Cookie(\"uid\", \"2018\", 1800,false);\n Cookie c2 = new Cookie(\"PICK_KEY\", \"ahmd13ldsws8cw\",10800,true);\n Cookie c3 = new Cookie(\"REMEMBER_ME\",\"true\",10800,true);\n }",
"@Test\n\t //Extracting a string from the response\n\t public void getBasicAuthTestResultCookies() {\n\t Cookies cookies = given ()\n\t \t.spec(requestSpec)\n\t .when()\n\t .get (\"/maps/api/place/textsearch/json\")\n\t .detailedCookies();\n\t System.out.println(\"Cookies\"+cookies.size());\n\t System.out.println(\"CookiesList\"+cookies.getList(\"cookie1\").size());\n\t //System.out.println(\"Cookies\"+cookies.values().toString());\n\t //Assert.assertEquals(statusCode.toString(), \"200\");\n\t }",
"public Set<Cookie> getCookies(String name) {\r\n Set<Cookie> matchCookies = new HashSet<Cookie>();\r\n if (lastCookies != null) {\r\n for (Cookie c : lastCookies) {\r\n if (c.getName().equals(name)) {\r\n matchCookies.add(c);\r\n }\r\n }\r\n }\r\n return matchCookies;\r\n }",
"@Test\n\tpublic void testDetailedCookies() {\n\t\tResponse response = get(\"http://jsonplaceholder.typicode.com/photos\");\n\t\t\n\t\tCookie o = response.getDetailedCookie(\"__cfduid\");\n\t\t\n\t\tSystem.out.println(\"Detailed: \"+o.hasExpiryDate());\n\t\tSystem.out.println(\"Detailed: \"+o.getExpiryDate());\n\t\tSystem.out.println(\"Detailed: \"+o.hasValue());\n\t}",
"@DOMSupport(DomLevel.ONE)\r\n @Property String getCookie();",
"public static Cookie getSessionCookieActual(final Request request) {\n if (request.raw().getCookies() == null) {\n return null;\n }\n for (Cookie cookie : request.raw().getCookies()) {\n if (cookie.getName().equals(\"session\")) {\n return cookie;\n }\n }\n return null;\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.970 -0500\", hash_original_method = \"E3D7D6931554145E868760CB2C4A26A3\", hash_generated_method = \"EE86FFF77F12F6E87C0C4F0204A00383\")\n \nprivate String cookies(String url) {\n return CookieManager.getInstance().getCookie(url);\n }",
"public Cookie Found(HttpServletRequest request) {\n\t\tfor(Cookie c : request.getCookies()) {\n\t\t\tif(c.getName().equals(\"CS5300J17\")) return c;\n\t\t}\n\t\treturn null;\n\t}",
"public void setCookies(Series<Cookie> cookies) {\n this.cookies = cookies;\n }",
"static Map<String, Cookie> parseCookies(Headers headers) {\n\t\tMap<String, String> params = parseHeaderParams(headers.get(HeaderName.COOKIE));\n\t\tMap<String, Cookie> cookies = new LinkedHashMap<>();\n\t\tfor (Map.Entry<String, String> entry : params.entrySet()) {\n\t\t\tif (!entry.getValue().isEmpty()) {\n\t\t\t\tcookies.put(entry.getKey(), new Cookie(entry.getKey(), entry.getValue()));\n\t\t\t}\n\t\t}\n\t\treturn cookies;\n\t}",
"public boolean isSetCookies() {\n return this.cookies != null;\n }",
"@Override\n public Map<String, String> getHeaders(){\n AndroidApplication app = (AndroidApplication)getApplication();\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Accept\", \"application/json\" );\n headers.put(\"Cookie\", \"session-cookie=\" + app.getCookie() );\n return headers;\n }",
"String getCookiePath()\n {\n return getApplicationContext();\n }",
"public static Series<CookieSetting> getResourceCookieSettings() {\n return getResourceResponse() == null ? null : getResourceResponse().getCookieSettings();\n }",
"protected static void initializeCookieStatus(HttpURLConnection urlConnection) {\n CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ALL));\n cookies = urlConnection.getHeaderFields().get(\"Set-Cookie\");\n }",
"public static void dumpCookies( HttpServletRequest request, StringBuilder b ) {\n b.append( \"Cookies:\" );\n b.append( LF );\n if ( null != request.getCookies() ) {\n for ( Cookie cookie : request.getCookies() ) {\n String description = \"\";\n try {\n description = cookie.toString();\n } catch ( Exception e ) {\n LOG.warning( \"Exception describing cookie: \" + e.getMessage() );\n }\n b.append( \" \" + description + LF );\n }\n }\n b.append( \"---------------- End of Cookies\" );\n b.append( LF );\n }",
"public List<Cookie> parse(HeaderElement[] headerElementArr, CookieOrigin cookieOrigin) throws MalformedCookieException {\n return createCookies(headerElementArr, adjustEffectiveHost(cookieOrigin));\n }",
"public Cookie getCookieValueByName(HttpServletRequest request, String name) {\n if (request.getCookies() == null) {\n return null;\n }\n for (int i = 0; i < request.getCookies().length; i++) {\n if (request.getCookies()[i].getName().equals(name)) {\n return request.getCookies()[i];\n }\n }\n return null;\n }",
"HttpClientRequest addCookie(Cookie cookie);",
"public String getCookie(String name) {\r\n return _cookies.get(name);\r\n }",
"private List<HttpCookie> parseCookiesFromHeaders(HttpHeaders httpHeaders) {\n List<HttpCookie> cookies = Lists.newArrayList();\n List<String> cookieHeaders = httpHeaders.get(HttpHeaders.SET_COOKIE);\n if (cookieHeaders != null) {\n cookieHeaders.forEach(header -> cookies.addAll(HttpCookie.parse(header)));\n }\n\n cookieHeaders = httpHeaders.get(HttpHeaders.SET_COOKIE2);\n if (cookieHeaders != null) {\n cookieHeaders.forEach(header -> cookies.addAll(HttpCookie.parse(header)));\n }\n return cookies;\n }",
"public static String getGoogleCookie() {\n return GOOGLE_COOKIE;\n }",
"private List<String> getSessionIdFromCookie()\n //----------------------------------------------------------------\n {\n String name = null;\n String value = null;\n PageContext pageContext = null;\n HttpServletRequest httpRequest = null;\n Cookie[] cookies = null;\n pageContext = (PageContext) this.getJspContext();\n List<String> sessionList = null;\n\n /*\n * There might be multiple Cookies with the same name\n * Get the value for each Cookie and store it in the List\n */\n\n sessionList = new LinkedList<String>();\n\n if (pageContext != null)\n {\n httpRequest = (HttpServletRequest) pageContext.getRequest();\n if (httpRequest != null)\n {\n cookies = httpRequest.getCookies();\n if (cookies != null)\n {\n for (Cookie cookie : cookies)\n {\n if (cookie != null)\n {\n name = cookie.getName();\n if (name != null && name.length() > 0 && name.equals(COOKIE_NAME))\n {\n value = cookie.getValue();\n if (value != null && value.length() > 0)\n {\n sessionList.add(value);\n }\n }\n }\n }\n }\n }\n }\n\n return sessionList;\n }",
"public void storeCookies(URLConnection conn) throws IOException {\n\n\t\t// let's determine the domain from where these cookies are being sent\n\t\tString domain = getDomainFromHost(conn.getURL().getHost());\n\n\t\tMap<String, Map<String, String>> domainStore; // this is where we will\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// store cookies for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// this domain\n\n\t\t// now let's check the store to see if we have an entry for this domain\n\t\tif (store.containsKey(domain)) {\n\t\t\t// we do, so lets retrieve it from the store\n\t\t\tdomainStore = store.get(domain);\n\t\t} else {\n\t\t\t// we don't, so let's create it and put it in the store\n\t\t\tdomainStore = new HashMap<String, Map<String, String>>();\n\t\t\tstore.put(domain, domainStore);\n\t\t}\n\n\t\t// OK, now we are ready to get the cookies out of the URLConnection\n\n\t\tString headerName = null;\n\t\tfor (int i = 1; (headerName = conn.getHeaderFieldKey(i)) != null; i++) {\n\t\t\tif (headerName.equalsIgnoreCase(SET_COOKIE)) {\n\t\t\t\tMap<String, String> cookie = new HashMap<String, String>();\n\t\t\t\tStringTokenizer st = new StringTokenizer(\n\t\t\t\t\t\tconn.getHeaderField(i), COOKIE_VALUE_DELIMITER);\n\n\t\t\t\t// the specification dictates that the first name/value pair\n\t\t\t\t// in the string is the cookie name and value, so let's handle\n\t\t\t\t// them as a special case:\n\n\t\t\t\tif (st.hasMoreTokens()) {\n\t\t\t\t\tString token = st.nextToken();\n\t\t\t\t\tString name = token.substring(0,\n\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR));\n\t\t\t\t\tString value = token.substring(\n\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR) + 1,\n\t\t\t\t\t\t\ttoken.length());\n\t\t\t\t\tdomainStore.put(name, cookie);\n\t\t\t\t\tcookie.put(name, value);\n\t\t\t\t}\n\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\tString t1 = \"\";\n\t\t\t\t\tString t2 = \"\";\n\t\t\t\t\tString token = st.nextToken();\n\t\t\t\t\tint seperatorPosition = token.indexOf(NAME_VALUE_SEPARATOR);\n\t\t\t\t\tif (seperatorPosition >= 0) {\n\t\t\t\t\t\tt1 = token.substring(0,\n\t\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR))\n\t\t\t\t\t\t\t\t.toLowerCase();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tt1 = \"\";\n\t\t\t\t\t}\n\t\t\t\t\tt2 = token.substring(\n\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR) + 1,\n\t\t\t\t\t\t\ttoken.length());\n\t\t\t\t\t/*\n\t\t\t\t\t * cookie.put(token.substring(0,\n\t\t\t\t\t * token.indexOf(NAME_VALUE_SEPARATOR)).toLowerCase(),\n\t\t\t\t\t * token.substring(token.indexOf(NAME_VALUE_SEPARATOR) + 1,\n\t\t\t\t\t * token.length()));\n\t\t\t\t\t */\n\t\t\t\t\tcookie.put(t1, t2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n public void delAllCookies()\r\n {\n\r\n }",
"public Builder cookies(final Map<String, String> cookies) {\n this.cookies.putAll(cookies);\n return this;\n }",
"private String getCookieValue(HttpServletRequest request, String name) {\n Cookie[] cookies = request.getCookies();\n\n if (cookies != null) { //Stupid servlet API!\n for (Cookie cookie : cookies) {\n if (name.equals(cookie.getName())) {\n return cookie.getValue();\n }\n }\n }\n\n return \"\";\n }",
"private void setCookies(HttpServletRequest request, HttpServletResponse response, int currentPage, int recordsOnPage) {\n CookieManager cookieManager = new CookieManager(request);\n String currentPageString = Integer.toString(currentPage);\n response.addCookie(cookieManager.makeCookie(CookieName.USERS_CURRENT_PAGE, currentPageString));\n\n String recordsOnPageString = Integer.toString(recordsOnPage);\n response.addCookie(cookieManager.makeCookie(CookieName.RECORDS_ON_USERS_PAGE, recordsOnPageString));\n }",
"private String createCookies() {\n\n String bengLoginID = uid + \"\";\n String timeStr = MyApplication.getInstance().authorTime;\n ToastUtil.toast(timeStr + \"\");\n String cookes = MyApplication.getInstance().bengLoginId + \"; \" + MyApplication.getInstance().userHit + \"; \" + MyApplication.getInstance().authorID + \"; \" + timeStr + \"; \" + MyApplication.getInstance().phpSessid;\n ToastUtil.toast(cookes);\n return cookes;\n\n }",
"protected static void addCookies(HttpURLConnection urlConnection) {\n for (String cookie : cookies) {\n urlConnection.addRequestProperty(\"Cookie\", cookie.split(\";\", 2)[0]);\n }\n }",
"public Set<String> getStoredOrigins() {\n // In case the pre-emptive disk read in initStorage hasn't occurred by the time we actually\n // need the value.\n try (StrictModeContext ignored = StrictModeContext.allowDiskReads()) {\n // The set returned by getStringSet must not be modified. The consistency of the stored\n // data is not guaranteed if you do, nor is your ability to modify the instance at all.\n return new HashSet<>(mPreferences.getStringSet(KEY_ALL_ORIGINS, new HashSet<>()));\n }\n }",
"public Optional<Cookie> cookie(String name) {\n return cookies().get(name);\n }",
"@Override\n public void addCookie(Cookie arg0) {\n\n }",
"void killAllCookies(HttpServletRequest request, HttpServletResponse response);",
"public Cookie getCookieObject(String name) {\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies != null)\n\t\t\tfor (Cookie cookie : cookies)\n\t\t\t\tif (cookie.getName().equals(name))\n\t\t\t\t\treturn cookie;\n\t\treturn null;\n\t}",
"private Cookie getCookieByName(HttpServletRequest request, String name) {\n Map<String, Cookie> cookieMap = readCookieMap(request);\n if (cookieMap.containsKey(name)) {\n Cookie cookie = (Cookie) cookieMap.get(name);\n return cookie;\n } else {\n return null;\n }\n }",
"@Test(singleThreaded = true)\n public void cookiesShouldBeIgnored() {\n Mockit.setUpMock(AbstractHttpClient.class, new MockAbstractHttpClient(new MockHooks() {\n @Override\n public void responseHook(BasicHttpResponse response) {\n response.setHeader(\"Set-Cookie\", \"foo=bar; path=/;\");\n }\n }));\n connection.execute(new AddonList(), apiKey);\n\n Mockit.setUpMock(AbstractHttpClient.class, new MockAbstractHttpClient(new MockHooks() {\n @Override\n public void beforeAssertions(HttpUriRequest request, HttpContext context) {\n Assert.assertEquals(request.getHeaders(\"Cookie\").length, 0, \"Cookies should be ignored, but there are cookies present.\");\n }\n }));\n // run this twice to ensure the set-cookie was sent from the first request\n connection.execute(new AddonList(), apiKey);\n Mockit.tearDownMocks(AbstractHttpClient.class);\n }",
"private int storeCookies(URLConnection con) {\n\t\tString headerName = null;\n\n\t\tint totalNewCookies = 0;\n\n\t\tfor (int i = 1; (headerName = con.getHeaderFieldKey(i)) != null; i++) if (headerName.equals(\"Set-Cookie\")) totalNewCookies += addCookie(con.getHeaderField(i)); //add to the total the number of new cookies found by add cookie for each cookie\n\n\t\treturn totalNewCookies;\n\t}",
"public static String retrieveLoginCookies(HashMap<String, String> params) throws IOException {\n String url = Constants.LOGIN_URL;\n CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ALL));\n HttpURLConnection con = null;\n try {\n URL obj = new URL(url);\n con = (HttpURLConnection) obj.openConnection();\n } catch (UnknownHostException e) {\n //try to fix broken url\n con = (HttpURLConnection) new URL(\"http://\" + url).openConnection();\n }\n\n //add request header\n con.setRequestMethod(\"POST\");\n //just for fun\n con.setRequestProperty(\"Accept-Language\", \"ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4,de;q=0.2\");\n\n String urlParameters = \"\";\n\n for (Map.Entry<String, String> e : params.entrySet()) {\n urlParameters += e.getKey() + \"=\" + e.getValue() + \"&\";\n }\n\n //send post request\n con.setDoOutput(true);\n DataOutputStream wr = new DataOutputStream(con.getOutputStream());\n wr.writeBytes(urlParameters);\n wr.flush();\n wr.close();\n\n\n // temporary to build request cookie header\n String sessionCookie = \"\";\n // find the cookies in the response header from the first request\n List<String> cookies = con.getHeaderFields().get(\"Set-Cookie\");\n if (cookies != null) {\n for (String cookie : cookies) {\n // only want the first part of the cookie header that has the value\n String value = cookie.split(\";\")[0];\n sessionCookie += value + \";\";\n }\n }\n return sessionCookie;\n }",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public HttpsConnection setCookies(final String cookies) {\n setHeader(\"Cookie\", cookies);\n return this;\n }",
"private String getAppCookieValue(HttpServletRequest request) {\n Cookie[] cookies = request.getCookies();\n if (cookies != null) {\n for (Cookie cookie : cookies) {\n if(cookie.getName().equals(\"costsManager\"))\n return cookie.getValue();\n }\n }\n return \"\";\n }",
"void addCookie(HttpServletResponse response, Cookie cookie);",
"@Override\n\tpublic CookieDTO cookieView(CookieDTO cookieDTO) throws Exception {\n\t\tSystem.out.println(\"cookie service 실행 CookieView\");\n\t\treturn cookie.cookieView(cookieDTO);\n\t}",
"public Object getUnderlying() {\n return ahcCookie;\n }",
"public void setCookies(Map<String, String> cookies) throws IOException {\r\n if (cookies == null)\r\n return;\r\n this.cookies.putAll(cookies);\r\n }",
"@Override\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\n // since we don't know which of the two underlying network vehicles\n // will Volley use, we have to handle and store session cookies manually\n Map<String, String> responseHeaders = response.headers;\n Log.d(\"cookies_login\", responseHeaders.get(\"Set-Cookie\"));\n sessionManager.setCookie(responseHeaders.get(\"Set-Cookie\"));\n\n return super.parseNetworkResponse(response);\n }",
"@Override\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\n // since we don't know which of the two underlying network vehicles\n // will Volley use, we have to handle and store session cookies manually\n Map<String, String> responseHeaders = response.headers;\n Log.d(\"cookies_login\", responseHeaders.get(\"Set-Cookie\"));\n sessionManager.setCookie(responseHeaders.get(\"Set-Cookie\"));\n\n return super.parseNetworkResponse(response);\n }",
"public void deleteAllVisibleCookies();",
"Node.Cookie getCookie( Class type ) {\n return null;\n }",
"public String read(String name) {\n\t\t\treturn this.cookies.get(name);\n\t\t}",
"public static String getSessionCookie(final Request request) {\n if (request.raw().getCookies() == null) {\n return null;\n }\n for (Cookie cookie : request.raw().getCookies()) {\n if (cookie.getName().equals(\"session\")) {\n return cookie.getValue();\n }\n }\n return null;\n }",
"@BeforeTest\n\tpublic void init() {\n\t\tMap<String, String> cokiesinit = given().when().get(COOKIE_URL).then().statusCode(200)\n\t\t\t\t.extract().cookies();\n\t\tcookieMap.putAll(cokiesinit); \n\t}",
"private void authorize(){\n\t\t\n\t\tURL authURL = null;\n\t\tURL homeURL = null;\n\t\tURLConnection homeCon = null;\n\t\t\n\t\tString loginPage = GG.GG_LOGIN+\"?ACCOUNT=\"+GG.GG_UID\n\t\t\t+\"&PASSWORD=\"+GG.GG_PASS;\n\t\tString cookieString = \"\";\n\t\tString cookieString1 = \"\";\n\t\t\n\t\ttry{\n\t\t\thomeURL = new URL(GG.GG_HOME);\n\t\t\thomeCon = homeURL.openConnection();\n\t\t\t\n\t\t\t// Look At the headers\n\t\t\tMap headerMap = homeCon.getHeaderFields();\n\t\t\t\n\t\t\t// Look for the Cookie\n\t\t\tif(headerMap.containsKey(\"Set-Cookie\")){\n\t\t\t\t\n\t\t\t\t// this gets the exact value of the header\n\t\t\t\t// otherwise gets some formatted string\n\t\t\t\tcookieString = homeCon.getHeaderField(\"Set-Cookie\");\n\t\t\t\t//log.finest(\"cookie1: \"+cookieString);\n\t\t\t\t\n\t\t\t\tauthURL = new URL(loginPage);\n\t\t\t\tHttpURLConnection.setFollowRedirects(false);\n\t\t\t\tHttpURLConnection loginCon = (HttpURLConnection) authURL.openConnection();\n\t\t\t\t\n\t\t\t\t// doOutput must be set before connecting\n\t\t\t\tloginCon.setAllowUserInteraction(true);\n\t\t\t\tloginCon.setUseCaches(false);\n\t\t\t\tloginCon.setDoOutput(true);\n\t\t\t\tloginCon.setRequestProperty(\"Cookie\", cookieString);\n\t\t\t\tloginCon.connect();\n\t\t\t\t\n\t\t\t\t// Look At the headers\n\t\t\t\tMap headerMap1 = loginCon.getHeaderFields();\n\t\t\t\t\n\t\t\t\tcookieString1 = loginCon.getHeaderField(\"Set-Cookie\");\n\t\t\t\t//log.finest(\"cookie2: \"+cookieString1);\n\t\t\t\tif(!Pattern.matches(\".*\\\\.\"+GG.GG_UID+\"\\\\.\\\\d+.*\", cookieString1)){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString location = loginCon.getHeaderField(\"Location\");\n\t\t\t\tURL gotURL = new URL(location);\n\t\t\t\tHttpURLConnection gotCon = (HttpURLConnection) gotURL.openConnection();\n\t\t\t\t// doOutput must be set before connecting\n\t\t\t\tgotCon.setAllowUserInteraction(true);\n\t\t\t\tgotCon.setUseCaches(false);\n\t\t\t\tgotCon.setDoOutput(true);\n\t\t\t\tgotCon.setRequestProperty(\"Cookie\", cookieString);\n\t\t\t\tgotCon.setRequestProperty(\"Cookie\", cookieString1);\n\t\t\t\t\n\t\t\t\tgotCon.connect();\n\t\t\t\t\n\t\t\t\t// Got the Cookies\n\t\t\t\tcookies[0] = cookieString;\n\t\t\t\tcookies[1] = cookieString1;\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tlog.info(\"Unable to find the Cookie\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\tauthorized = true;\n\t}",
"private static void cookieMonster (HTTPRequest request)\n\t{\n\t /*if (!request.isCookiesParsed ())\n\t {\n\t \t retVal = request.cookieMonster ();\n\t }*/\n\t \n\t}",
"public String getCookie(String name) {\n\t\treturn getCookie(name, null);\n\t}",
"public Set<Credentials> getCredentials() {\n return credentials;\n }",
"public String getCookieHeaderName() {\n\treturn getCookieHeaderName(version);\n }",
"public static void deleteAllCookies() {\n\t\tLOG.info(\"Deleting all browser cookies\");\n\t\tConstants.driver.manage().deleteAllCookies();\n\t\tLOG.info(\"Deleted all cookies\");\n\n\t}",
"public c get() {\n return this.e.providesCookieManager();\n }",
"public static Cookie getCookie(HttpServletRequest request, String cookieName) {\n\t\tfor (Cookie cookie : request.getCookies()) {\n\t\t\tif (cookieName.equals(cookie.getName())) {\n\t\t\t\treturn cookie;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static void acceptCookies() {\n WebElement acceptButton = Browser.driver.findElement(ACCEPT_COOKIES_BUTTON);\n if(acceptButton.isDisplayed()){\n click(ACCEPT_COOKIES_BUTTON);\n }\n }",
"@Override\n\t\tpublic Object getCredentials() {\n\t\t\treturn null;\n\t\t}",
"@Override\n\tpublic Object getCredentials() {\n\t\treturn credentials;\n\t}",
"public String toString()\n {\n return \"{CookieValue(\" + cookieValues + \")}\";\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.967 -0500\", hash_original_method = \"D5A9FC7DDB356B7F9D175C82B50A2AF1\", hash_generated_method = \"24C7574FF957618A543446AAAEE4BC4D\")\n \nprivate void setCookies(String url, String value) {\n if (value.contains(\"\\r\") || value.contains(\"\\n\")) {\n // for security reason, filter out '\\r' and '\\n' from the cookie\n int size = value.length();\n StringBuilder buffer = new StringBuilder(size);\n int i = 0;\n while (i != -1 && i < size) {\n int ir = value.indexOf('\\r', i);\n int in = value.indexOf('\\n', i);\n int newi = (ir == -1) ? in : (in == -1 ? ir : (ir < in ? ir\n : in));\n if (newi > i) {\n buffer.append(value.subSequence(i, newi));\n } else if (newi == -1) {\n buffer.append(value.subSequence(i, size));\n break;\n }\n i = newi + 1;\n }\n value = buffer.toString();\n }\n CookieManager.getInstance().setCookie(url, value);\n }",
"@Test\n public void handlingCookies () {\n\n driver.get(\"https://www.amazon.com\");\n// 1. find the total number of cookies\n Set<Cookie> setOfCookies = driver.manage().getCookies();// returns all of the cookies as Set\n int totalNumberOfCookies = setOfCookies.size();\n System.out.println(\"totalNumberOfCookies is \"+totalNumberOfCookies);\n\n// 2. print cookies\n // As the setOfCookies is a set. We have to print them from a loop.\n for (Cookie eachCookie:setOfCookies) {\n System.out.println(\"each name: \"+eachCookie.getName());\n System.out.println(\"each value: \"+eachCookie.getValue());\n }\n\n// 3. get cookies by name : i18n-prefs (I select a cookie name from the console)\n Cookie named1_i18n_prefs = driver.manage().getCookieNamed(\"i18n-prefs\");\n\n System.out.println(\"the cookie named -i18n-prefs: \" + named1_i18n_prefs);\n System.out.println(\"value of the named ... \" + named1_i18n_prefs.getValue());\n\n// 4. add new cookie\n Cookie myCookie = new Cookie(\"my cookie\" , \"How does my cookie look like\");\n driver.manage().addCookie(myCookie);\n totalNumberOfCookies = driver.manage().getCookies().size();\n System.out.println(\"New total number is : \" + totalNumberOfCookies);\n\n Set<Cookie> newSetOfCookies = driver.manage().getCookies();\n for(Cookie eachCookie : newSetOfCookies) {\n System.out.println(\"new cookie in the new set: \" + eachCookie );\n }\n\n// 5. delete some certain cookies by name\n driver.manage().deleteCookieNamed(\"skin\"); // by name of the cookie\n driver.manage().deleteCookie(named1_i18n_prefs); // by the cookie\n totalNumberOfCookies = driver.manage().getCookies().size();\n System.out.println(\"newer total number = \" + totalNumberOfCookies);\n\n// 6. delete all cookies\n driver.manage().deleteAllCookies();\n totalNumberOfCookies = driver.manage().getCookies().size();\n System.out.println(\"newest total number = \" + totalNumberOfCookies);\n\n\n\n }",
"@Override\n public void filter(ContainerRequestContext requestContext,\n ContainerResponseContext responseContext) throws IOException {\n HttpSession session = requestManager.getHttpSession();\n\n session.keepAlive();\n sessionManager.save(session);\n\n NewCookie sessionCookie = new NewCookie(COOKIE_NAME, session.getSessionId(),\n \"/\", null, null, -1, true, true);\n\n\n logger.trace(\"Request completed with session id {}\", sessionCookie);\n responseContext.getHeaders().add(HttpHeaders.SET_COOKIE, sessionCookie);\n }",
"String getCookie(HttpServletRequest request, String name) throws ValidationException;",
"public static synchronized String getCookieInfo(URL u)\n {\n\tinitialize();\n\n\tString cookie = null;\n\n\ttry\n\t{\n\t // Find key to lookup cookie table\n\t String key = u.getProtocol() + u.getHost() + u.getFile();\n\n\t // To lookup the cookie, just the URL hostname and path without filename\n\t int index = key.lastIndexOf('/');\n\n\t if (index < 0)\n\t\treturn null;\n\n\t key = key.substring(0, index);\n\n\t try\n\t {\n\t\tcookie = cookieHandler.getCookieInfo(u.toString());\n\n\t\t// Store cookie into cache\n\t\t//\n\t\tif (cookie != null && !cookie.equals(\"\") && !cookie.equals(\"\\n\") && !cookie.equals(\"\\r\\n\"))\n\t\t cookieTable.put(key, cookie);\n\t\telse {\n\t\t cookieTable.put(key, \"\");\n\t\t cookie = null;\n\t\t}\n\t }\n\t catch (ServiceUnavailableException se)\n\t {\n\t\tSystem.out.println(ResourceHandler.getMessage(\"cookiehandler.noservice\"));\n\n\t\t// Obtain cookie from cache\n\t\tcookie = (String) cookieTable.get(key);\n\t }\n\n\t if (cookie != null)\n\t {\n\t\tTrace.msgNetPrintln(\"cookiehandler.connect\", new Object[] {u, cookie});\n\t }\n\t}\n\tcatch (Throwable e)\n\t{\n\t e.printStackTrace();\n\t}\n\n return cookie;\n }",
"public void setCookies(String[] cookies) throws IOException {\r\n if (cookies == null)\r\n return;\r\n for (int i = 0; i < cookies.length - 1; i += 2) {\r\n setCookie(cookies[i], cookies[i + 1]);\r\n }\r\n }",
"private Cookie getCookieByName(String name) {\n Cookie[] cookies = VaadinService.getCurrentRequest().getCookies();\n\n // Iterate to find cookie by its name\n for (Cookie cookie : cookies) {\n if (name.equals(cookie.getName())) {\n return cookie;\n }\n }\n\n return null;\n }",
"public void setCookies(URLConnection conn) throws IOException {\n\n\t\t// let's determine the domain and path to retrieve the appropriate\n\t\t// cookies\n\t\tURL url = conn.getURL();\n\t\tString domain = getDomainFromHost(url.getHost());\n\t\tString path = url.getPath();\n\n\t\tMap<String, Map<String, String>> domainStore = store.get(domain);\n\t\tif (domainStore == null)\n\t\t\treturn;\n\t\tStringBuffer cookieStringBuffer = new StringBuffer();\n\n\t\tIterator<String> cookieNames = domainStore.keySet().iterator();\n\t\twhile (cookieNames.hasNext()) {\n\t\t\tString cookieName = cookieNames.next();\n\t\t\tMap<String, String> cookie = (Map<String, String>) domainStore\n\t\t\t\t\t.get(cookieName);\n\t\t\t// check cookie to ensure path matches and cookie is not expired\n\t\t\t// if all is cool, add cookie to header string\n\t\t\tif (comparePaths((String) cookie.get(PATH), path)\n\t\t\t\t\t&& isNotExpired((String) cookie.get(EXPIRES))) {\n\t\t\t\tcookieStringBuffer.append(cookieName);\n\t\t\t\tcookieStringBuffer.append(\"=\");\n\t\t\t\tcookieStringBuffer.append((String) cookie.get(cookieName));\n\t\t\t\tif (cookieNames.hasNext())\n\t\t\t\t\tcookieStringBuffer.append(SET_COOKIE_SEPARATOR);\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tconn.setRequestProperty(COOKIE, cookieStringBuffer.toString());\n\t\t} catch (java.lang.IllegalStateException ise) {\n\t\t\tIOException ioe = new IOException(\n\t\t\t\t\t\"Illegal State! Cookies cannot be set on a URLConnection that is already connected. \"\n\t\t\t\t\t\t\t+ \"Only call setCookies(java.net.URLConnection) AFTER calling java.net.URLConnection.connect().\");\n\t\t\tthrow ioe;\n\t\t}\n\t}",
"public String getCmsNoCookies() {\n return (String) get(\"cms_no_cookies\");\n }",
"public static String getCookiesFromWebkit(String domain, String[] hosts, String[] paths, String cookieFile) {\r\n\t\tString retval = \"\";\r\n\t\tlogger.debug(\"Cookiefile: {}\", cookieFile);\r\n\t\tFile file = new File(cookieFile);\r\n\r\n\t\t/*\r\n\t\t * Opera seems to lock the cookies.sqlite all the time, so\r\n\t\t * we get a database locked exception, so the best way to avoid this,\r\n\t\t * is copy the sqlite-file and work here with the copy.\r\n\t\t */\r\n\t\tString newCookieFile = cookieFile + \"bh_copy.sqlite\";\r\n\r\n\t\tsynchronized (copyDBLock) {\r\n\t\t\tif (System.currentTimeMillis() > (lastSqliteCopy + 180000)) {\r\n\t\t\t\tCopyUtil.copy(cookieFile, newCookieFile);\r\n\t\t\t\tlastSqliteCopy = System.currentTimeMillis();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tretval = getCookiesFromWebkitSqlite(newCookieFile, domain, hosts, paths, dbLock);\r\n\t\t} catch (ClassNotFoundException | SQLException ex) {\r\n\t\t\tlogger.error(\"Could not read cookies from: {}\", file.getAbsolutePath(), ex);\r\n\t\t}\r\n\r\n\t\treturn retval;\r\n\t}",
"@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n Cookie cookie = requestContext.getCookies().get(COOKIE_NAME);\n String sessionId = null;\n if (cookie != null) {\n sessionId = cookie.getValue();\n logger.trace(\"Request received with session id {}\", sessionId);\n }\n HttpSession httpSession = sessionManager.getOrCreate(sessionId);\n requestManager.setHttpSession(httpSession);\n }",
"@Override\r\n public void delCookie(String name)\r\n {\n\r\n }"
] | [
"0.7237613",
"0.69230855",
"0.68985987",
"0.6835624",
"0.68034965",
"0.6793045",
"0.6762831",
"0.6612331",
"0.65937185",
"0.6533473",
"0.64456475",
"0.61440396",
"0.60540867",
"0.59953743",
"0.5905497",
"0.5849215",
"0.5811661",
"0.57532495",
"0.5708315",
"0.570574",
"0.57046705",
"0.5701295",
"0.5649658",
"0.5636522",
"0.5610609",
"0.5610099",
"0.56005055",
"0.55779153",
"0.5558995",
"0.55462164",
"0.5511076",
"0.55028296",
"0.5495207",
"0.54940224",
"0.5489005",
"0.5482162",
"0.54605937",
"0.5419513",
"0.54150575",
"0.5404528",
"0.5402057",
"0.5400456",
"0.538965",
"0.53880465",
"0.5381612",
"0.5379263",
"0.5378563",
"0.53738564",
"0.53471524",
"0.534358",
"0.53216416",
"0.5312252",
"0.5304807",
"0.5291681",
"0.5284975",
"0.52630866",
"0.5245951",
"0.5238385",
"0.5223237",
"0.5222477",
"0.5222477",
"0.5222477",
"0.5222477",
"0.5220558",
"0.5213675",
"0.52117735",
"0.51975626",
"0.51934004",
"0.518183",
"0.5178944",
"0.5178944",
"0.51735765",
"0.51582617",
"0.51514953",
"0.5149858",
"0.51433253",
"0.51334053",
"0.51272726",
"0.51185846",
"0.5098042",
"0.5085488",
"0.50792575",
"0.5070006",
"0.5042744",
"0.50219315",
"0.50163394",
"0.5013867",
"0.49938938",
"0.49860105",
"0.49806276",
"0.49590978",
"0.4957167",
"0.49171767",
"0.490193",
"0.4894316",
"0.48728007",
"0.48702613",
"0.486095",
"0.48525953",
"0.48453048"
] | 0.6936035 | 1 |
The cookies from viewer requests to include in origin requests. | public OriginRequestPolicyConfig withCookiesConfig(OriginRequestPolicyCookiesConfig cookiesConfig) {
setCookiesConfig(cookiesConfig);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map<String, String> getCookies() {\r\n return _cookies;\r\n }",
"public OriginRequestPolicyCookiesConfig getCookiesConfig() {\n return this.cookiesConfig;\n }",
"public static Series<Cookie> getResourceCookies() {\n return getRequest() == null ? null : getRequest().getCookies();\n }",
"public Cookie[] getCookieObjects() {\n\t\tCookie[] result = request.getCookies();\n\t\treturn result != null ? result : new Cookie[0];\n\t}",
"@Override\r\n public void getAllCookies()\r\n {\n\r\n }",
"public List<Cookie> getCookies() {\n return cookies == null ? Collections.EMPTY_LIST : cookies;\n }",
"Cookie[] getCookies();",
"@Override\n\t\tpublic Cookie[] getCookies() {\n\t\t\treturn null;\n\t\t}",
"public abstract Cookie[] getResponseCookies();",
"public Collection<Cookie> getCookies()\n\t{\n\t\tparseCookiesIfNecessary();\n\t\tif (this.cookies != null)\n\t\t\treturn this.cookies.values();\n\t\telse\n\t\t\treturn null;\n\t}",
"public Cookies cookies() {\n return new Cookies() {\n @Override\n public Optional<Cookie> get(String name) {\n return cookies.stream().filter(c -> c.name().equals(name)).findFirst();\n }\n\n @Override\n public Iterator<Cookie> iterator() {\n return cookies.iterator();\n }\n };\n }",
"public String[] getCookies() throws GGException{\n\t\tif(!authorized){\n\t\t\tthrow new GGException(GGErrorCodes.GG_UNABLE_TO_AUTH);\n\t\t}\n\t\treturn cookies;\n\t}",
"public Series<Cookie> getCookies() {\n // Lazy initialization with double-check.\n Series<Cookie> c = this.cookies;\n if (c == null) {\n synchronized (this) {\n c = this.cookies;\n if (c == null) {\n this.cookies = c = new CookieSeries();\n }\n }\n }\n return c;\n }",
"private static Cookie getCookie() {\n if (cookie == null) {\n synchronized (DefaultEntityManagerImpl.class) {\n if (cookie == null) {\n cookie = new Cookie(cookieName, getAppTokenId());\n }\n }\n }\n return cookie;\n }",
"@Override\r\n public void getCookie(String name)\r\n {\n\r\n }",
"@Override\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\n Log.i(\"response\", response.headers.toString());\n Log.d(TAG, \"parseNetworkResponse\");\n Map<String, String> responseHeaders = response.headers;\n String rawCookies = responseHeaders.get(\"Set-Cookie\");\n Log.i(\"cookies\", rawCookies);\n return super.parseNetworkResponse(response);\n }",
"private Cookie getCookie(HttpServletRequest request,String name) {\r\n\t\tCookie[] cookies=request.getCookies();\r\n\r\n\t\tfor(Cookie c:cookies){\r\n\t\t\tif(c.getName().equals(name))\r\n\t\t\t\treturn c;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"private void setCookies(URLConnection conn) {\n\t\tif (cookies.isEmpty()) {conn.setRequestProperty(\"Cookie\", \"\"); return;}\n\n\t\tconn.setRequestProperty(\"Cookie\", cookies);\n\t\tprocessor.printSys(\"Cookies Set: \" + cookies);\n\t}",
"public static synchronized Cookie[] getCookies(HttpSession session) {\n Vector cookiesPending = (Vector) getObject(session, COOKIES_PENDING);\n Vector cookiesSent = (Vector) getObject(session, COOKIES_SENT);\n\n // Determine the total number of cookies\n int cookieCount = 0;\n if (cookiesPending != null) {\n cookieCount = cookieCount + cookiesPending.size();\n }\n if (cookiesSent != null) {\n cookieCount = cookieCount + cookiesSent.size();\n }\n\n // Construct the list of cookies\n Cookie[] cookiesAll = null;\n if (cookieCount > 0) {\n cookiesAll = new Cookie[cookieCount];\n int cookieIdx = 0;\n\n // Get a combined list of all pending and sent cookies\n Cookie current = null;\n if (cookiesSent != null) {\n for (int s = 0; s < cookiesSent.size(); s++) {\n cookiesAll[cookieIdx] = (Cookie) cookiesSent.get(s);\n cookieIdx++;\n }\n }\n\n // Pending cookies will overwrite any existing cookies\n if (cookiesPending != null) {\n for (int p = 0; p < cookiesPending.size(); p++) {\n cookiesAll[cookieIdx] = (Cookie) cookiesPending.get(p);\n cookieIdx++;\n }\n }\n\n }\n\n\n return cookiesAll;\n }",
"public void setCookiesConfig(OriginRequestPolicyCookiesConfig cookiesConfig) {\n this.cookiesConfig = cookiesConfig;\n }",
"public String getSeCookie() {\n return seCookie;\n }",
"public void part2(){\n Cookie c1 = new Cookie(\"uid\", \"2018\", 1800,false);\n Cookie c2 = new Cookie(\"PICK_KEY\", \"ahmd13ldsws8cw\",10800,true);\n Cookie c3 = new Cookie(\"REMEMBER_ME\",\"true\",10800,true);\n }",
"@Test\n\t //Extracting a string from the response\n\t public void getBasicAuthTestResultCookies() {\n\t Cookies cookies = given ()\n\t \t.spec(requestSpec)\n\t .when()\n\t .get (\"/maps/api/place/textsearch/json\")\n\t .detailedCookies();\n\t System.out.println(\"Cookies\"+cookies.size());\n\t System.out.println(\"CookiesList\"+cookies.getList(\"cookie1\").size());\n\t //System.out.println(\"Cookies\"+cookies.values().toString());\n\t //Assert.assertEquals(statusCode.toString(), \"200\");\n\t }",
"public Set<Cookie> getCookies(String name) {\r\n Set<Cookie> matchCookies = new HashSet<Cookie>();\r\n if (lastCookies != null) {\r\n for (Cookie c : lastCookies) {\r\n if (c.getName().equals(name)) {\r\n matchCookies.add(c);\r\n }\r\n }\r\n }\r\n return matchCookies;\r\n }",
"@Test\n\tpublic void testDetailedCookies() {\n\t\tResponse response = get(\"http://jsonplaceholder.typicode.com/photos\");\n\t\t\n\t\tCookie o = response.getDetailedCookie(\"__cfduid\");\n\t\t\n\t\tSystem.out.println(\"Detailed: \"+o.hasExpiryDate());\n\t\tSystem.out.println(\"Detailed: \"+o.getExpiryDate());\n\t\tSystem.out.println(\"Detailed: \"+o.hasValue());\n\t}",
"@DOMSupport(DomLevel.ONE)\r\n @Property String getCookie();",
"public static Cookie getSessionCookieActual(final Request request) {\n if (request.raw().getCookies() == null) {\n return null;\n }\n for (Cookie cookie : request.raw().getCookies()) {\n if (cookie.getName().equals(\"session\")) {\n return cookie;\n }\n }\n return null;\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.970 -0500\", hash_original_method = \"E3D7D6931554145E868760CB2C4A26A3\", hash_generated_method = \"EE86FFF77F12F6E87C0C4F0204A00383\")\n \nprivate String cookies(String url) {\n return CookieManager.getInstance().getCookie(url);\n }",
"public Cookie Found(HttpServletRequest request) {\n\t\tfor(Cookie c : request.getCookies()) {\n\t\t\tif(c.getName().equals(\"CS5300J17\")) return c;\n\t\t}\n\t\treturn null;\n\t}",
"public void setCookies(Series<Cookie> cookies) {\n this.cookies = cookies;\n }",
"static Map<String, Cookie> parseCookies(Headers headers) {\n\t\tMap<String, String> params = parseHeaderParams(headers.get(HeaderName.COOKIE));\n\t\tMap<String, Cookie> cookies = new LinkedHashMap<>();\n\t\tfor (Map.Entry<String, String> entry : params.entrySet()) {\n\t\t\tif (!entry.getValue().isEmpty()) {\n\t\t\t\tcookies.put(entry.getKey(), new Cookie(entry.getKey(), entry.getValue()));\n\t\t\t}\n\t\t}\n\t\treturn cookies;\n\t}",
"public boolean isSetCookies() {\n return this.cookies != null;\n }",
"@Override\n public Map<String, String> getHeaders(){\n AndroidApplication app = (AndroidApplication)getApplication();\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Accept\", \"application/json\" );\n headers.put(\"Cookie\", \"session-cookie=\" + app.getCookie() );\n return headers;\n }",
"String getCookiePath()\n {\n return getApplicationContext();\n }",
"public static Series<CookieSetting> getResourceCookieSettings() {\n return getResourceResponse() == null ? null : getResourceResponse().getCookieSettings();\n }",
"protected static void initializeCookieStatus(HttpURLConnection urlConnection) {\n CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ALL));\n cookies = urlConnection.getHeaderFields().get(\"Set-Cookie\");\n }",
"public static void dumpCookies( HttpServletRequest request, StringBuilder b ) {\n b.append( \"Cookies:\" );\n b.append( LF );\n if ( null != request.getCookies() ) {\n for ( Cookie cookie : request.getCookies() ) {\n String description = \"\";\n try {\n description = cookie.toString();\n } catch ( Exception e ) {\n LOG.warning( \"Exception describing cookie: \" + e.getMessage() );\n }\n b.append( \" \" + description + LF );\n }\n }\n b.append( \"---------------- End of Cookies\" );\n b.append( LF );\n }",
"public List<Cookie> parse(HeaderElement[] headerElementArr, CookieOrigin cookieOrigin) throws MalformedCookieException {\n return createCookies(headerElementArr, adjustEffectiveHost(cookieOrigin));\n }",
"public Cookie getCookieValueByName(HttpServletRequest request, String name) {\n if (request.getCookies() == null) {\n return null;\n }\n for (int i = 0; i < request.getCookies().length; i++) {\n if (request.getCookies()[i].getName().equals(name)) {\n return request.getCookies()[i];\n }\n }\n return null;\n }",
"HttpClientRequest addCookie(Cookie cookie);",
"public String getCookie(String name) {\r\n return _cookies.get(name);\r\n }",
"public static String getGoogleCookie() {\n return GOOGLE_COOKIE;\n }",
"private List<HttpCookie> parseCookiesFromHeaders(HttpHeaders httpHeaders) {\n List<HttpCookie> cookies = Lists.newArrayList();\n List<String> cookieHeaders = httpHeaders.get(HttpHeaders.SET_COOKIE);\n if (cookieHeaders != null) {\n cookieHeaders.forEach(header -> cookies.addAll(HttpCookie.parse(header)));\n }\n\n cookieHeaders = httpHeaders.get(HttpHeaders.SET_COOKIE2);\n if (cookieHeaders != null) {\n cookieHeaders.forEach(header -> cookies.addAll(HttpCookie.parse(header)));\n }\n return cookies;\n }",
"private List<String> getSessionIdFromCookie()\n //----------------------------------------------------------------\n {\n String name = null;\n String value = null;\n PageContext pageContext = null;\n HttpServletRequest httpRequest = null;\n Cookie[] cookies = null;\n pageContext = (PageContext) this.getJspContext();\n List<String> sessionList = null;\n\n /*\n * There might be multiple Cookies with the same name\n * Get the value for each Cookie and store it in the List\n */\n\n sessionList = new LinkedList<String>();\n\n if (pageContext != null)\n {\n httpRequest = (HttpServletRequest) pageContext.getRequest();\n if (httpRequest != null)\n {\n cookies = httpRequest.getCookies();\n if (cookies != null)\n {\n for (Cookie cookie : cookies)\n {\n if (cookie != null)\n {\n name = cookie.getName();\n if (name != null && name.length() > 0 && name.equals(COOKIE_NAME))\n {\n value = cookie.getValue();\n if (value != null && value.length() > 0)\n {\n sessionList.add(value);\n }\n }\n }\n }\n }\n }\n }\n\n return sessionList;\n }",
"public void storeCookies(URLConnection conn) throws IOException {\n\n\t\t// let's determine the domain from where these cookies are being sent\n\t\tString domain = getDomainFromHost(conn.getURL().getHost());\n\n\t\tMap<String, Map<String, String>> domainStore; // this is where we will\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// store cookies for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// this domain\n\n\t\t// now let's check the store to see if we have an entry for this domain\n\t\tif (store.containsKey(domain)) {\n\t\t\t// we do, so lets retrieve it from the store\n\t\t\tdomainStore = store.get(domain);\n\t\t} else {\n\t\t\t// we don't, so let's create it and put it in the store\n\t\t\tdomainStore = new HashMap<String, Map<String, String>>();\n\t\t\tstore.put(domain, domainStore);\n\t\t}\n\n\t\t// OK, now we are ready to get the cookies out of the URLConnection\n\n\t\tString headerName = null;\n\t\tfor (int i = 1; (headerName = conn.getHeaderFieldKey(i)) != null; i++) {\n\t\t\tif (headerName.equalsIgnoreCase(SET_COOKIE)) {\n\t\t\t\tMap<String, String> cookie = new HashMap<String, String>();\n\t\t\t\tStringTokenizer st = new StringTokenizer(\n\t\t\t\t\t\tconn.getHeaderField(i), COOKIE_VALUE_DELIMITER);\n\n\t\t\t\t// the specification dictates that the first name/value pair\n\t\t\t\t// in the string is the cookie name and value, so let's handle\n\t\t\t\t// them as a special case:\n\n\t\t\t\tif (st.hasMoreTokens()) {\n\t\t\t\t\tString token = st.nextToken();\n\t\t\t\t\tString name = token.substring(0,\n\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR));\n\t\t\t\t\tString value = token.substring(\n\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR) + 1,\n\t\t\t\t\t\t\ttoken.length());\n\t\t\t\t\tdomainStore.put(name, cookie);\n\t\t\t\t\tcookie.put(name, value);\n\t\t\t\t}\n\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\tString t1 = \"\";\n\t\t\t\t\tString t2 = \"\";\n\t\t\t\t\tString token = st.nextToken();\n\t\t\t\t\tint seperatorPosition = token.indexOf(NAME_VALUE_SEPARATOR);\n\t\t\t\t\tif (seperatorPosition >= 0) {\n\t\t\t\t\t\tt1 = token.substring(0,\n\t\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR))\n\t\t\t\t\t\t\t\t.toLowerCase();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tt1 = \"\";\n\t\t\t\t\t}\n\t\t\t\t\tt2 = token.substring(\n\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR) + 1,\n\t\t\t\t\t\t\ttoken.length());\n\t\t\t\t\t/*\n\t\t\t\t\t * cookie.put(token.substring(0,\n\t\t\t\t\t * token.indexOf(NAME_VALUE_SEPARATOR)).toLowerCase(),\n\t\t\t\t\t * token.substring(token.indexOf(NAME_VALUE_SEPARATOR) + 1,\n\t\t\t\t\t * token.length()));\n\t\t\t\t\t */\n\t\t\t\t\tcookie.put(t1, t2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n public void delAllCookies()\r\n {\n\r\n }",
"private String getCookieValue(HttpServletRequest request, String name) {\n Cookie[] cookies = request.getCookies();\n\n if (cookies != null) { //Stupid servlet API!\n for (Cookie cookie : cookies) {\n if (name.equals(cookie.getName())) {\n return cookie.getValue();\n }\n }\n }\n\n return \"\";\n }",
"public Builder cookies(final Map<String, String> cookies) {\n this.cookies.putAll(cookies);\n return this;\n }",
"private void setCookies(HttpServletRequest request, HttpServletResponse response, int currentPage, int recordsOnPage) {\n CookieManager cookieManager = new CookieManager(request);\n String currentPageString = Integer.toString(currentPage);\n response.addCookie(cookieManager.makeCookie(CookieName.USERS_CURRENT_PAGE, currentPageString));\n\n String recordsOnPageString = Integer.toString(recordsOnPage);\n response.addCookie(cookieManager.makeCookie(CookieName.RECORDS_ON_USERS_PAGE, recordsOnPageString));\n }",
"private String createCookies() {\n\n String bengLoginID = uid + \"\";\n String timeStr = MyApplication.getInstance().authorTime;\n ToastUtil.toast(timeStr + \"\");\n String cookes = MyApplication.getInstance().bengLoginId + \"; \" + MyApplication.getInstance().userHit + \"; \" + MyApplication.getInstance().authorID + \"; \" + timeStr + \"; \" + MyApplication.getInstance().phpSessid;\n ToastUtil.toast(cookes);\n return cookes;\n\n }",
"protected static void addCookies(HttpURLConnection urlConnection) {\n for (String cookie : cookies) {\n urlConnection.addRequestProperty(\"Cookie\", cookie.split(\";\", 2)[0]);\n }\n }",
"public Set<String> getStoredOrigins() {\n // In case the pre-emptive disk read in initStorage hasn't occurred by the time we actually\n // need the value.\n try (StrictModeContext ignored = StrictModeContext.allowDiskReads()) {\n // The set returned by getStringSet must not be modified. The consistency of the stored\n // data is not guaranteed if you do, nor is your ability to modify the instance at all.\n return new HashSet<>(mPreferences.getStringSet(KEY_ALL_ORIGINS, new HashSet<>()));\n }\n }",
"public Optional<Cookie> cookie(String name) {\n return cookies().get(name);\n }",
"@Override\n public void addCookie(Cookie arg0) {\n\n }",
"void killAllCookies(HttpServletRequest request, HttpServletResponse response);",
"public Cookie getCookieObject(String name) {\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies != null)\n\t\t\tfor (Cookie cookie : cookies)\n\t\t\t\tif (cookie.getName().equals(name))\n\t\t\t\t\treturn cookie;\n\t\treturn null;\n\t}",
"private Cookie getCookieByName(HttpServletRequest request, String name) {\n Map<String, Cookie> cookieMap = readCookieMap(request);\n if (cookieMap.containsKey(name)) {\n Cookie cookie = (Cookie) cookieMap.get(name);\n return cookie;\n } else {\n return null;\n }\n }",
"@Test(singleThreaded = true)\n public void cookiesShouldBeIgnored() {\n Mockit.setUpMock(AbstractHttpClient.class, new MockAbstractHttpClient(new MockHooks() {\n @Override\n public void responseHook(BasicHttpResponse response) {\n response.setHeader(\"Set-Cookie\", \"foo=bar; path=/;\");\n }\n }));\n connection.execute(new AddonList(), apiKey);\n\n Mockit.setUpMock(AbstractHttpClient.class, new MockAbstractHttpClient(new MockHooks() {\n @Override\n public void beforeAssertions(HttpUriRequest request, HttpContext context) {\n Assert.assertEquals(request.getHeaders(\"Cookie\").length, 0, \"Cookies should be ignored, but there are cookies present.\");\n }\n }));\n // run this twice to ensure the set-cookie was sent from the first request\n connection.execute(new AddonList(), apiKey);\n Mockit.tearDownMocks(AbstractHttpClient.class);\n }",
"private int storeCookies(URLConnection con) {\n\t\tString headerName = null;\n\n\t\tint totalNewCookies = 0;\n\n\t\tfor (int i = 1; (headerName = con.getHeaderFieldKey(i)) != null; i++) if (headerName.equals(\"Set-Cookie\")) totalNewCookies += addCookie(con.getHeaderField(i)); //add to the total the number of new cookies found by add cookie for each cookie\n\n\t\treturn totalNewCookies;\n\t}",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public static String retrieveLoginCookies(HashMap<String, String> params) throws IOException {\n String url = Constants.LOGIN_URL;\n CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ALL));\n HttpURLConnection con = null;\n try {\n URL obj = new URL(url);\n con = (HttpURLConnection) obj.openConnection();\n } catch (UnknownHostException e) {\n //try to fix broken url\n con = (HttpURLConnection) new URL(\"http://\" + url).openConnection();\n }\n\n //add request header\n con.setRequestMethod(\"POST\");\n //just for fun\n con.setRequestProperty(\"Accept-Language\", \"ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4,de;q=0.2\");\n\n String urlParameters = \"\";\n\n for (Map.Entry<String, String> e : params.entrySet()) {\n urlParameters += e.getKey() + \"=\" + e.getValue() + \"&\";\n }\n\n //send post request\n con.setDoOutput(true);\n DataOutputStream wr = new DataOutputStream(con.getOutputStream());\n wr.writeBytes(urlParameters);\n wr.flush();\n wr.close();\n\n\n // temporary to build request cookie header\n String sessionCookie = \"\";\n // find the cookies in the response header from the first request\n List<String> cookies = con.getHeaderFields().get(\"Set-Cookie\");\n if (cookies != null) {\n for (String cookie : cookies) {\n // only want the first part of the cookie header that has the value\n String value = cookie.split(\";\")[0];\n sessionCookie += value + \";\";\n }\n }\n return sessionCookie;\n }",
"public HttpsConnection setCookies(final String cookies) {\n setHeader(\"Cookie\", cookies);\n return this;\n }",
"private String getAppCookieValue(HttpServletRequest request) {\n Cookie[] cookies = request.getCookies();\n if (cookies != null) {\n for (Cookie cookie : cookies) {\n if(cookie.getName().equals(\"costsManager\"))\n return cookie.getValue();\n }\n }\n return \"\";\n }",
"void addCookie(HttpServletResponse response, Cookie cookie);",
"@Override\n\tpublic CookieDTO cookieView(CookieDTO cookieDTO) throws Exception {\n\t\tSystem.out.println(\"cookie service 실행 CookieView\");\n\t\treturn cookie.cookieView(cookieDTO);\n\t}",
"public Object getUnderlying() {\n return ahcCookie;\n }",
"public void setCookies(Map<String, String> cookies) throws IOException {\r\n if (cookies == null)\r\n return;\r\n this.cookies.putAll(cookies);\r\n }",
"@Override\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\n // since we don't know which of the two underlying network vehicles\n // will Volley use, we have to handle and store session cookies manually\n Map<String, String> responseHeaders = response.headers;\n Log.d(\"cookies_login\", responseHeaders.get(\"Set-Cookie\"));\n sessionManager.setCookie(responseHeaders.get(\"Set-Cookie\"));\n\n return super.parseNetworkResponse(response);\n }",
"@Override\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\n // since we don't know which of the two underlying network vehicles\n // will Volley use, we have to handle and store session cookies manually\n Map<String, String> responseHeaders = response.headers;\n Log.d(\"cookies_login\", responseHeaders.get(\"Set-Cookie\"));\n sessionManager.setCookie(responseHeaders.get(\"Set-Cookie\"));\n\n return super.parseNetworkResponse(response);\n }",
"public void deleteAllVisibleCookies();",
"Node.Cookie getCookie( Class type ) {\n return null;\n }",
"public String read(String name) {\n\t\t\treturn this.cookies.get(name);\n\t\t}",
"public static String getSessionCookie(final Request request) {\n if (request.raw().getCookies() == null) {\n return null;\n }\n for (Cookie cookie : request.raw().getCookies()) {\n if (cookie.getName().equals(\"session\")) {\n return cookie.getValue();\n }\n }\n return null;\n }",
"@BeforeTest\n\tpublic void init() {\n\t\tMap<String, String> cokiesinit = given().when().get(COOKIE_URL).then().statusCode(200)\n\t\t\t\t.extract().cookies();\n\t\tcookieMap.putAll(cokiesinit); \n\t}",
"private void authorize(){\n\t\t\n\t\tURL authURL = null;\n\t\tURL homeURL = null;\n\t\tURLConnection homeCon = null;\n\t\t\n\t\tString loginPage = GG.GG_LOGIN+\"?ACCOUNT=\"+GG.GG_UID\n\t\t\t+\"&PASSWORD=\"+GG.GG_PASS;\n\t\tString cookieString = \"\";\n\t\tString cookieString1 = \"\";\n\t\t\n\t\ttry{\n\t\t\thomeURL = new URL(GG.GG_HOME);\n\t\t\thomeCon = homeURL.openConnection();\n\t\t\t\n\t\t\t// Look At the headers\n\t\t\tMap headerMap = homeCon.getHeaderFields();\n\t\t\t\n\t\t\t// Look for the Cookie\n\t\t\tif(headerMap.containsKey(\"Set-Cookie\")){\n\t\t\t\t\n\t\t\t\t// this gets the exact value of the header\n\t\t\t\t// otherwise gets some formatted string\n\t\t\t\tcookieString = homeCon.getHeaderField(\"Set-Cookie\");\n\t\t\t\t//log.finest(\"cookie1: \"+cookieString);\n\t\t\t\t\n\t\t\t\tauthURL = new URL(loginPage);\n\t\t\t\tHttpURLConnection.setFollowRedirects(false);\n\t\t\t\tHttpURLConnection loginCon = (HttpURLConnection) authURL.openConnection();\n\t\t\t\t\n\t\t\t\t// doOutput must be set before connecting\n\t\t\t\tloginCon.setAllowUserInteraction(true);\n\t\t\t\tloginCon.setUseCaches(false);\n\t\t\t\tloginCon.setDoOutput(true);\n\t\t\t\tloginCon.setRequestProperty(\"Cookie\", cookieString);\n\t\t\t\tloginCon.connect();\n\t\t\t\t\n\t\t\t\t// Look At the headers\n\t\t\t\tMap headerMap1 = loginCon.getHeaderFields();\n\t\t\t\t\n\t\t\t\tcookieString1 = loginCon.getHeaderField(\"Set-Cookie\");\n\t\t\t\t//log.finest(\"cookie2: \"+cookieString1);\n\t\t\t\tif(!Pattern.matches(\".*\\\\.\"+GG.GG_UID+\"\\\\.\\\\d+.*\", cookieString1)){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString location = loginCon.getHeaderField(\"Location\");\n\t\t\t\tURL gotURL = new URL(location);\n\t\t\t\tHttpURLConnection gotCon = (HttpURLConnection) gotURL.openConnection();\n\t\t\t\t// doOutput must be set before connecting\n\t\t\t\tgotCon.setAllowUserInteraction(true);\n\t\t\t\tgotCon.setUseCaches(false);\n\t\t\t\tgotCon.setDoOutput(true);\n\t\t\t\tgotCon.setRequestProperty(\"Cookie\", cookieString);\n\t\t\t\tgotCon.setRequestProperty(\"Cookie\", cookieString1);\n\t\t\t\t\n\t\t\t\tgotCon.connect();\n\t\t\t\t\n\t\t\t\t// Got the Cookies\n\t\t\t\tcookies[0] = cookieString;\n\t\t\t\tcookies[1] = cookieString1;\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tlog.info(\"Unable to find the Cookie\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\tauthorized = true;\n\t}",
"private static void cookieMonster (HTTPRequest request)\n\t{\n\t /*if (!request.isCookiesParsed ())\n\t {\n\t \t retVal = request.cookieMonster ();\n\t }*/\n\t \n\t}",
"public String getCookie(String name) {\n\t\treturn getCookie(name, null);\n\t}",
"public Set<Credentials> getCredentials() {\n return credentials;\n }",
"public String getCookieHeaderName() {\n\treturn getCookieHeaderName(version);\n }",
"public static void deleteAllCookies() {\n\t\tLOG.info(\"Deleting all browser cookies\");\n\t\tConstants.driver.manage().deleteAllCookies();\n\t\tLOG.info(\"Deleted all cookies\");\n\n\t}",
"public c get() {\n return this.e.providesCookieManager();\n }",
"public static Cookie getCookie(HttpServletRequest request, String cookieName) {\n\t\tfor (Cookie cookie : request.getCookies()) {\n\t\t\tif (cookieName.equals(cookie.getName())) {\n\t\t\t\treturn cookie;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static void acceptCookies() {\n WebElement acceptButton = Browser.driver.findElement(ACCEPT_COOKIES_BUTTON);\n if(acceptButton.isDisplayed()){\n click(ACCEPT_COOKIES_BUTTON);\n }\n }",
"@Override\n\t\tpublic Object getCredentials() {\n\t\t\treturn null;\n\t\t}",
"@Override\n\tpublic Object getCredentials() {\n\t\treturn credentials;\n\t}",
"public String toString()\n {\n return \"{CookieValue(\" + cookieValues + \")}\";\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.967 -0500\", hash_original_method = \"D5A9FC7DDB356B7F9D175C82B50A2AF1\", hash_generated_method = \"24C7574FF957618A543446AAAEE4BC4D\")\n \nprivate void setCookies(String url, String value) {\n if (value.contains(\"\\r\") || value.contains(\"\\n\")) {\n // for security reason, filter out '\\r' and '\\n' from the cookie\n int size = value.length();\n StringBuilder buffer = new StringBuilder(size);\n int i = 0;\n while (i != -1 && i < size) {\n int ir = value.indexOf('\\r', i);\n int in = value.indexOf('\\n', i);\n int newi = (ir == -1) ? in : (in == -1 ? ir : (ir < in ? ir\n : in));\n if (newi > i) {\n buffer.append(value.subSequence(i, newi));\n } else if (newi == -1) {\n buffer.append(value.subSequence(i, size));\n break;\n }\n i = newi + 1;\n }\n value = buffer.toString();\n }\n CookieManager.getInstance().setCookie(url, value);\n }",
"@Test\n public void handlingCookies () {\n\n driver.get(\"https://www.amazon.com\");\n// 1. find the total number of cookies\n Set<Cookie> setOfCookies = driver.manage().getCookies();// returns all of the cookies as Set\n int totalNumberOfCookies = setOfCookies.size();\n System.out.println(\"totalNumberOfCookies is \"+totalNumberOfCookies);\n\n// 2. print cookies\n // As the setOfCookies is a set. We have to print them from a loop.\n for (Cookie eachCookie:setOfCookies) {\n System.out.println(\"each name: \"+eachCookie.getName());\n System.out.println(\"each value: \"+eachCookie.getValue());\n }\n\n// 3. get cookies by name : i18n-prefs (I select a cookie name from the console)\n Cookie named1_i18n_prefs = driver.manage().getCookieNamed(\"i18n-prefs\");\n\n System.out.println(\"the cookie named -i18n-prefs: \" + named1_i18n_prefs);\n System.out.println(\"value of the named ... \" + named1_i18n_prefs.getValue());\n\n// 4. add new cookie\n Cookie myCookie = new Cookie(\"my cookie\" , \"How does my cookie look like\");\n driver.manage().addCookie(myCookie);\n totalNumberOfCookies = driver.manage().getCookies().size();\n System.out.println(\"New total number is : \" + totalNumberOfCookies);\n\n Set<Cookie> newSetOfCookies = driver.manage().getCookies();\n for(Cookie eachCookie : newSetOfCookies) {\n System.out.println(\"new cookie in the new set: \" + eachCookie );\n }\n\n// 5. delete some certain cookies by name\n driver.manage().deleteCookieNamed(\"skin\"); // by name of the cookie\n driver.manage().deleteCookie(named1_i18n_prefs); // by the cookie\n totalNumberOfCookies = driver.manage().getCookies().size();\n System.out.println(\"newer total number = \" + totalNumberOfCookies);\n\n// 6. delete all cookies\n driver.manage().deleteAllCookies();\n totalNumberOfCookies = driver.manage().getCookies().size();\n System.out.println(\"newest total number = \" + totalNumberOfCookies);\n\n\n\n }",
"@Override\n public void filter(ContainerRequestContext requestContext,\n ContainerResponseContext responseContext) throws IOException {\n HttpSession session = requestManager.getHttpSession();\n\n session.keepAlive();\n sessionManager.save(session);\n\n NewCookie sessionCookie = new NewCookie(COOKIE_NAME, session.getSessionId(),\n \"/\", null, null, -1, true, true);\n\n\n logger.trace(\"Request completed with session id {}\", sessionCookie);\n responseContext.getHeaders().add(HttpHeaders.SET_COOKIE, sessionCookie);\n }",
"String getCookie(HttpServletRequest request, String name) throws ValidationException;",
"public static synchronized String getCookieInfo(URL u)\n {\n\tinitialize();\n\n\tString cookie = null;\n\n\ttry\n\t{\n\t // Find key to lookup cookie table\n\t String key = u.getProtocol() + u.getHost() + u.getFile();\n\n\t // To lookup the cookie, just the URL hostname and path without filename\n\t int index = key.lastIndexOf('/');\n\n\t if (index < 0)\n\t\treturn null;\n\n\t key = key.substring(0, index);\n\n\t try\n\t {\n\t\tcookie = cookieHandler.getCookieInfo(u.toString());\n\n\t\t// Store cookie into cache\n\t\t//\n\t\tif (cookie != null && !cookie.equals(\"\") && !cookie.equals(\"\\n\") && !cookie.equals(\"\\r\\n\"))\n\t\t cookieTable.put(key, cookie);\n\t\telse {\n\t\t cookieTable.put(key, \"\");\n\t\t cookie = null;\n\t\t}\n\t }\n\t catch (ServiceUnavailableException se)\n\t {\n\t\tSystem.out.println(ResourceHandler.getMessage(\"cookiehandler.noservice\"));\n\n\t\t// Obtain cookie from cache\n\t\tcookie = (String) cookieTable.get(key);\n\t }\n\n\t if (cookie != null)\n\t {\n\t\tTrace.msgNetPrintln(\"cookiehandler.connect\", new Object[] {u, cookie});\n\t }\n\t}\n\tcatch (Throwable e)\n\t{\n\t e.printStackTrace();\n\t}\n\n return cookie;\n }",
"public void setCookies(String[] cookies) throws IOException {\r\n if (cookies == null)\r\n return;\r\n for (int i = 0; i < cookies.length - 1; i += 2) {\r\n setCookie(cookies[i], cookies[i + 1]);\r\n }\r\n }",
"private Cookie getCookieByName(String name) {\n Cookie[] cookies = VaadinService.getCurrentRequest().getCookies();\n\n // Iterate to find cookie by its name\n for (Cookie cookie : cookies) {\n if (name.equals(cookie.getName())) {\n return cookie;\n }\n }\n\n return null;\n }",
"public String getCmsNoCookies() {\n return (String) get(\"cms_no_cookies\");\n }",
"public void setCookies(URLConnection conn) throws IOException {\n\n\t\t// let's determine the domain and path to retrieve the appropriate\n\t\t// cookies\n\t\tURL url = conn.getURL();\n\t\tString domain = getDomainFromHost(url.getHost());\n\t\tString path = url.getPath();\n\n\t\tMap<String, Map<String, String>> domainStore = store.get(domain);\n\t\tif (domainStore == null)\n\t\t\treturn;\n\t\tStringBuffer cookieStringBuffer = new StringBuffer();\n\n\t\tIterator<String> cookieNames = domainStore.keySet().iterator();\n\t\twhile (cookieNames.hasNext()) {\n\t\t\tString cookieName = cookieNames.next();\n\t\t\tMap<String, String> cookie = (Map<String, String>) domainStore\n\t\t\t\t\t.get(cookieName);\n\t\t\t// check cookie to ensure path matches and cookie is not expired\n\t\t\t// if all is cool, add cookie to header string\n\t\t\tif (comparePaths((String) cookie.get(PATH), path)\n\t\t\t\t\t&& isNotExpired((String) cookie.get(EXPIRES))) {\n\t\t\t\tcookieStringBuffer.append(cookieName);\n\t\t\t\tcookieStringBuffer.append(\"=\");\n\t\t\t\tcookieStringBuffer.append((String) cookie.get(cookieName));\n\t\t\t\tif (cookieNames.hasNext())\n\t\t\t\t\tcookieStringBuffer.append(SET_COOKIE_SEPARATOR);\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tconn.setRequestProperty(COOKIE, cookieStringBuffer.toString());\n\t\t} catch (java.lang.IllegalStateException ise) {\n\t\t\tIOException ioe = new IOException(\n\t\t\t\t\t\"Illegal State! Cookies cannot be set on a URLConnection that is already connected. \"\n\t\t\t\t\t\t\t+ \"Only call setCookies(java.net.URLConnection) AFTER calling java.net.URLConnection.connect().\");\n\t\t\tthrow ioe;\n\t\t}\n\t}",
"public static String getCookiesFromWebkit(String domain, String[] hosts, String[] paths, String cookieFile) {\r\n\t\tString retval = \"\";\r\n\t\tlogger.debug(\"Cookiefile: {}\", cookieFile);\r\n\t\tFile file = new File(cookieFile);\r\n\r\n\t\t/*\r\n\t\t * Opera seems to lock the cookies.sqlite all the time, so\r\n\t\t * we get a database locked exception, so the best way to avoid this,\r\n\t\t * is copy the sqlite-file and work here with the copy.\r\n\t\t */\r\n\t\tString newCookieFile = cookieFile + \"bh_copy.sqlite\";\r\n\r\n\t\tsynchronized (copyDBLock) {\r\n\t\t\tif (System.currentTimeMillis() > (lastSqliteCopy + 180000)) {\r\n\t\t\t\tCopyUtil.copy(cookieFile, newCookieFile);\r\n\t\t\t\tlastSqliteCopy = System.currentTimeMillis();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tretval = getCookiesFromWebkitSqlite(newCookieFile, domain, hosts, paths, dbLock);\r\n\t\t} catch (ClassNotFoundException | SQLException ex) {\r\n\t\t\tlogger.error(\"Could not read cookies from: {}\", file.getAbsolutePath(), ex);\r\n\t\t}\r\n\r\n\t\treturn retval;\r\n\t}",
"@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n Cookie cookie = requestContext.getCookies().get(COOKIE_NAME);\n String sessionId = null;\n if (cookie != null) {\n sessionId = cookie.getValue();\n logger.trace(\"Request received with session id {}\", sessionId);\n }\n HttpSession httpSession = sessionManager.getOrCreate(sessionId);\n requestManager.setHttpSession(httpSession);\n }",
"@Override\r\n public void delCookie(String name)\r\n {\n\r\n }"
] | [
"0.7237137",
"0.69354516",
"0.69224465",
"0.68976045",
"0.68353355",
"0.68021035",
"0.6791745",
"0.67619324",
"0.66112185",
"0.6591663",
"0.6531761",
"0.6444562",
"0.6143302",
"0.6053896",
"0.5995528",
"0.5905758",
"0.58487386",
"0.5810411",
"0.5751393",
"0.5707078",
"0.57063776",
"0.57047534",
"0.5701495",
"0.56480473",
"0.56368995",
"0.5611651",
"0.5610311",
"0.5600469",
"0.55777436",
"0.555773",
"0.5544364",
"0.5510534",
"0.55033326",
"0.5497084",
"0.54945076",
"0.5487328",
"0.548286",
"0.545767",
"0.54191244",
"0.5413739",
"0.5404563",
"0.5401599",
"0.54002565",
"0.53904456",
"0.53866494",
"0.53809094",
"0.53792936",
"0.53777117",
"0.53736407",
"0.5347859",
"0.53421324",
"0.53226566",
"0.53116167",
"0.5304113",
"0.52913725",
"0.5284118",
"0.5262781",
"0.5245407",
"0.5237358",
"0.52235407",
"0.52235407",
"0.52235407",
"0.52235407",
"0.5222509",
"0.52189803",
"0.52151334",
"0.52113456",
"0.51976377",
"0.51942044",
"0.518036",
"0.5178639",
"0.5178639",
"0.517268",
"0.51575506",
"0.5151929",
"0.51507527",
"0.5143389",
"0.5132768",
"0.5127364",
"0.511868",
"0.50980675",
"0.50860846",
"0.5077417",
"0.50713176",
"0.5042021",
"0.5019344",
"0.5017301",
"0.5014693",
"0.49950284",
"0.49853396",
"0.49798808",
"0.49595702",
"0.49574655",
"0.49175236",
"0.4900165",
"0.48935333",
"0.48718464",
"0.48715737",
"0.48599726",
"0.485354",
"0.48448125"
] | 0.0 | -1 |
The URL query strings from viewer requests to include in origin requests. | public void setQueryStringsConfig(OriginRequestPolicyQueryStringsConfig queryStringsConfig) {
this.queryStringsConfig = queryStringsConfig;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getOriginUrl() {\n Uri.Builder builder = url.buildUpon();\n for (Param p : queryParams) {\n builder.appendQueryParameter(p.key, p.value);\n }\n return builder.build().toString();\n }",
"String getQueryRequestUrl();",
"String getQueryResultsUrl();",
"public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }",
"public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }",
"String getRequestedUrl();",
"public String getRequestURIWithoutQuery() {\n if (requestURIWithoutQuery != null) {\n return requestURIWithoutQuery;\n }\n requestURIWithoutQuery = super.getRequestURI();\n if (requestURIWithoutQuery == null) {\n requestURIWithoutQuery = \"\";\n }\n return requestURIWithoutQuery;\n }",
"String getRequestURL();",
"@Override\n public StringBuffer getRequestURL() {\n //StringBuffer requestURL = super.getRequestURL();\n //System.out.println(\"URL: \" + requestURL.toString());\n return this.requestURL;\n }",
"public String getUrl() {\n return _Web_search.getBaseUrl() + getQuery();\n }",
"@Override \n public String getRequestURI() {\n if (requestURI != null) {\n return requestURI;\n }\n\n StringBuilder buffer = new StringBuilder();\n buffer.append(getRequestURIWithoutQuery());\n if (super.getQueryString() != null) {\n buffer.append(\"?\").append(super.getQueryString());\n }\n return requestURI = buffer.toString();\n }",
"String getQueryString ();",
"@Override\n\tpublic Collection<URL> getUrlsToFilter() {\n\t\tSet<URL> filterSet = new HashSet<URL>();\n\t\tString url=\"http://www.infoq.com/news/2012/11/Panel-WinRT-Answers;jsessionid=91AB81A159E85692E6F1199644E2053C \";\n\t\tfilterSet.add(URL.valueOf(url));\n\t\treturn filterSet;\n\t}",
"public final static String getFullRequestUrl(final HttpServletRequest req) {\n return req.getRequestURL().toString() + (StringUtils.hasText(req.getQueryString()) ? \"?\"+req.getQueryString() : \"\");\n }",
"String getQueryStateUrl();",
"public String getQueryParamsAsString() {\n\t\tStringBuffer params = new StringBuffer(30);\n\t\tString key, value;\n\t\tfor (Iterator it = validQueryParams.keySet().iterator(); it.hasNext();) {\n\t\t\tkey = (String) it.next();\n\t\t\tvalue = (String) validQueryParams.get(key);\n\t\t\tparams.append(key).append(\"=\").append(value);\n//\t\t\tif (it.hasNext()) {\n\t\t\t\tparams.append(\"&\");\n//\t\t\t}\n\t\t}\n\t\t// add extral value(used in web page)\n\t\tparams.append(\"hasQueried=true\");\n\t\treturn params.toString();\n\t}",
"public StringBuffer getRequestURL() {\n return new StringBuffer(url);\n }",
"Map<UrlParameterName, List<String>> urlParameters() {\n return this.url().query().parameters();\n }",
"private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }",
"@Override\n\t\tpublic String getQueryString() {\n\t\t\treturn null;\n\t\t}",
"public String getQuery()\n\t{\n\t\tVRL loc=getLocation();\n\t\t\n\t\tif (loc==null)\n\t\t\treturn null;\n\t\t\n\t\treturn loc.getQuery();\n\t}",
"public String generateQueryParams() {\n if (petition.getParamsMap().entrySet().size() == 0)\n return \"\";\n else {\n boolean first = true;\n StringBuffer queryParams = new StringBuffer(\"?\");\n Iterator<Map.Entry<String, String>> it = petition.getParamsMap()\n .entrySet().iterator();\n // just iterate the map and fill the httpParams with its content\n while (it.hasNext()) {\n if (!first)\n queryParams.append(\"&\");\n else\n first = false;\n Map.Entry<String, String> e = (Entry<String, String>) it.next();\n String key = URLEncoder.encode(e.getKey());\n String value = URLEncoder.encode(e.getValue());\n queryParams.append(String.format(\"%s=%s\", key, value));\n\n }\n return queryParams.toString();\n }\n }",
"public String getQueryString() {\n\t\tif (query.isEmpty())\n\t\t\treturn null;\n\n\t\tif (queryString == null)\n\t\t\tqueryString = mapToString(query, \"&\");\n\n\t\treturn queryString;\n\t}",
"@Override\n public String getUrl() {\n return getOriginUrl();\n }",
"public String toQueryUrl() {\n StringBuilder urlBuilder = new StringBuilder();\n Set<Map.Entry<String, Object>> entrySet = params.entrySet();\n int i = entrySet.size();\n for (Map.Entry<String, Object> entry : entrySet) {\n try {\n if (null != entry.getValue()) {\n urlBuilder.append(entry.getKey()).append('=')\n .append(URLEncoder.encode(String.valueOf(entry.getValue()), DEFAULT_ENC));\n if (i > 1) {\n urlBuilder.append('&');\n }\n }\n i--;\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }\n \n return urlBuilder.toString();\n }",
"private static String getQuery() {\n String scope = \"\";\n generateState();\n\n for (String s : SCOPES) {\n scope += \"+\" + s;\n }\n\n return \"?response_type=code&redirect_uri=\" + REDIRECT_URL +\n \"&client_id=\" + CLIENT_KEY +\n \"&scope=\" + scope +\n \"&STATE=\" + STATE;\n }",
"public java.lang.String getQueryString() {\n return bugQuery.getQueryString();\n }",
"@Override\n public String getQueryString() {\n return queryString;\n }",
"@NonNull\n public String getQueryParameters() throws UnsupportedEncodingException {\n return getPostDataString(Collections.singletonList(\"alt\"), Collections.singletonList(\"media\"), true);\n }",
"public OriginRequestPolicyQueryStringsConfig getQueryStringsConfig() {\n return this.queryStringsConfig;\n }",
"public String customQueryString() {\n return this.customQueryString;\n }",
"@Override\n public String getUrl() {\n StringBuilder sb = new StringBuilder(baseUrl);\n if (mUrlParams.size() > 0) {\n sb.append(\"?\");\n for (String key : mUrlParams.keySet()) {\n sb.append(key);\n sb.append(\"=\");\n sb.append(mUrlParams.get(key));\n sb.append(\"&\");\n }\n }\n String result = sb.substring(0, sb.length() - 1);\n return result;\n }",
"@Override\n\t\tpublic StringBuffer getRequestURL() {\n\t\t\treturn null;\n\t\t}",
"public String getRequestUri()\n {\n return requestUri;\n }",
"public String getUrlCustomParameters() {\r\n return urlCustomParameters;\r\n }",
"public Map getQueryParameterMap(PortletWindow window) {\n return queryParams;\n }",
"public String getRequestUrl(){\n return this.requestUrl;\n }",
"void setQueryRequestUrl(String queryRequestUrl);",
"public Map<String, String> getQueryParams(QueryInfo queryInfo) {\n Map<String, String> queryParams = super.getQueryParams(queryInfo);\n String str = queryParams.get(\"query\");\n if (!TextUtils.isEmpty(str)) {\n String queryExtras = SearchConfig.get().getSuggestionConfig().getQueryExtras(str);\n if (!TextUtils.isEmpty(queryExtras)) {\n queryParams.put(\"extraInfo\", queryExtras);\n Log.d(\"SearchSource\", \"On append extra [%s] to query [%s]\", queryExtras, str);\n }\n }\n queryParams.remove(\"enableShortcut\");\n return queryParams;\n }",
"public String getQueryString() {\n\t\treturn queryString;\n\t}",
"java.lang.String getQuery();",
"java.lang.String getQuery();",
"public static String getRequestUrl(HttpServletRequest argRequest) {\r\n\t\tStringBuffer requestURL = argRequest.getRequestURL();\r\n\t\tString queryString = argRequest.getQueryString();\r\n\t\tif (requestURL != null) {\r\n\t\t\tif (queryString != null && !queryString.isEmpty()) {\r\n\t\t\t\trequestURL.append(HttpConstants.QMARK).append(queryString);\r\n\t\t\t}\r\n\t\t\treturn requestURL.toString();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public String getSrcSpecialRequests() {\r\n return (String) getAttributeInternal(SRCSPECIALREQUESTS);\r\n }",
"private String getQueryStringFromParser() {\n return (getString() == null) ? \"\" : getString();\n }",
"public String getQueryString() {\n return queryString;\n }",
"public String getEditorUrl()\n {\n return m_queryRequest;\n }",
"String getQuery();",
"public String createQueryString() {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\r\n\t\tSet<Map.Entry<String, Object>> set = queryParams.entrySet();\r\n\t\tEnumeration<Map.Entry<String, Object>> en = Collections.enumeration(set);\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile (en.hasMoreElements())\r\n\t\t\t{\r\n\t\t\t\tMap.Entry<String, Object> entry = en.nextElement();\r\n\t\t\t\tString key = entry.getKey();\r\n\t\t\t\tObject val = entry.getValue();\r\n\t\t\t\tif (val instanceof String)\r\n\t\t\t\t{\r\n\t\t\t\t\tString s = null;\r\n\t\t\t\t\ts = (String) val;\r\n\t\t\t\t\ts = URLEncoder.encode(s, \"US-ASCII\");\r\n\t\t\t\t\tsb.append(\"&\").append(key).append(\"=\").append(s);\r\n\t\t\t\t}\r\n\t\t\t\telse if (val instanceof String[])\r\n\t\t\t\t\tsb.append(\"&\").append(getNameValueString(key, (String[]) val));\r\n\t\t\t}\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\r\n\t\treturn sb.substring(1);\r\n\t}",
"@Override\r\n public List<String> getMatchedURIs() {\n return null;\r\n }",
"public URI getRequestURI();",
"java.lang.String getQueryAuthorizations();",
"public String getFinalAppUrls() {\r\n return finalAppUrls;\r\n }",
"com.cmpe275.grpcComm.QueryParams getQueryParams();",
"private static String getRequestPath(final IWebRequest request) {\n\n String requestPath = request.getPathWithinApplication();\n\n final int fragmentIndex = requestPath.indexOf(';');\n if (fragmentIndex != -1) {\n requestPath = requestPath.substring(0, fragmentIndex);\n }\n\n return requestPath;\n\n }",
"@Override\n\tpublic String[] getAuthorizedUrlPatterns() {\n\t\treturn null;\n\t}",
"public String getQueryString(){\n return this.queryString;\n }",
"public String getQueryString() {\n return _query;\n }",
"public Map getQueryParameterMap() {\n return queryParams;\n }",
"public Set<URL> getTargetPageURLs(){\n\t\tSet<URL> urls = new HashSet<URL>();\n\t\tString url = \"http://www.infoq.com/news/2012/12/twemproxy;jsessionid=1652D82C3359CBAB67DA00B26BE7784B\";\n\t\turls.add(URL.valueOf(url));\n\t\treturn urls;\n\t}",
"public String buildFilter() {\n String qs = \"\";\n Set<Map.Entry<String, String>> set = instance.arguments.entrySet();\n\n for (Map.Entry<String, String> entry : set) {\n qs += entry.getKey() + \"=\" + entry.getValue() + \"&\";\n }\n return qs.substring(0, qs.length() - 1);\n }",
"public String getQueryRequest()\n {\n return m_queryRequest;\n }",
"private String buildRedirectionDetailsBaseUrl( )\n {\n UrlItem urlRedirectionDetails = new UrlItem( MultiviewFormResponseDetailsJspBean.getMultiviewRecordDetailsBaseUrl( ) );\n\n if ( !CollectionUtils.isEmpty( _listFormFilterDisplay ) )\n {\n for ( IFormFilterDisplay formFilterDisplay : _listFormFilterDisplay )\n {\n // Add all the filters values\n String strFilterValue = formFilterDisplay.getValue( );\n if ( !StringUtils.isEmpty( strFilterValue ) )\n {\n String strFilterFullName = FormsConstants.PARAMETER_URL_FILTER_PREFIX + formFilterDisplay.getParameterName( );\n urlRedirectionDetails.addParameter( strFilterFullName, strFilterValue );\n }\n }\n }\n\n // Add the selected panel technical code\n urlRedirectionDetails.addParameter( FormsConstants.PARAMETER_SELECTED_PANEL, _strSelectedPanelTechnicalCode );\n\n // Add sort filter data to the url\n addFilterSortConfigToUrl( urlRedirectionDetails );\n\n return urlRedirectionDetails.getUrl( );\n }",
"static public String getURI(HttpServletRequest request){\r\n\t\treturn request.getRequestURI();\r\n\t}",
"@Override\n public String toString() {\n if (this.map.getMap().isEmpty()) return \"\";\n final StringBuilder param = new StringBuilder(this.map.getMap().size() * 40);\n for (final Map.Entry<String, String> entry: entrySet()) {\n param.append(MultiProtocolURL.escape(entry.getKey()))\n .append('=')\n .append(MultiProtocolURL.escape(entry.getValue()))\n .append('&');\n }\n param.setLength(param.length() - 1);\n return param.toString();\n }",
"@Override\n public String getRequestURI() {\n if (httpRequest instanceof HttpRequestImpl) {\n return strip(context, ((HttpRequestImpl) httpRequest).requestRawPath());\n }\n return strip(context, super.getRequestURI());\n }",
"@Override\n\tpublic String[] getPublicUrlPatterns() {\n\t\treturn null;\n\t}",
"private String getUrlPlanetSearch() {\n return this.url + this.resource + this.resourceSearch;\n }",
"public String getRequestURI ()\n {\n return uri;\n }",
"String getRequestUrl() {\n return requestUrl;\n }",
"public String getFinalUrls() {\r\n return finalUrls;\r\n }",
"private String expandURLParameters()\n throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {\n StringBuilder result = new StringBuilder(mRequestURL.length()+16);\n\n StringTokenizer stringTokenizer = new StringTokenizer(mRequestURL, \"/\");\n StringBuilder getterName = new StringBuilder(128);\n while(stringTokenizer.hasMoreTokens()) {\n String urlSection = stringTokenizer.nextToken();\n if(!urlSection.startsWith(\"{\") || !urlSection.endsWith(\"}\")) {\n result.append(urlSection);\n result.append('/');\n continue;\n }\n\n if(getterName.length() != 0) {\n getterName.delete(0, getterName.length());\n }\n\n getterName.append(\"get\");\n getterName.append(Character.toUpperCase(urlSection.charAt(1)));\n getterName.append(urlSection.substring(2, urlSection.length()-1));\n Method getter = getClass().getMethod(getterName.toString(), GETTER_PARAMETERS);\n Object value = getter.invoke(this, (Object[])null);\n result.append(value.toString());\n result.append('/');\n }\n\n if(!mRequestURL.endsWith(\"/\")) {\n result.deleteCharAt(result.length()-1);\n }\n\n return result.toString();\n }",
"public static final String lastVisitUrl(HttpServletRequest req) {\n String lastVisitUrl = req.getRequestURI();\n if (req.getQueryString() != null) {\n lastVisitUrl += \"?\" + req.getQueryString();\n }\n return lastVisitUrl;\n }",
"@Override\n\tpublic String[] getRequestFilterIgnoreUrlPatterns() {\n\t\treturn aryIgnoreUrl;\n\t}",
"public String getSearchUrl();",
"public String toString() {\n StringBuffer buf = new StringBuffer();\n\n // Append context-path\n buf.append(contextPath);\n\n // Append real path (path besides control params, think \"niceuri\")\n if (realPath != null) {\n buf.append(realPath);\n }\n\n // Append \"control-parameters\"\n if (!pathParams.isEmpty()) {\n buf.append(\"/\");\n for (Iterator iter = pathParams.keySet().iterator(); iter.hasNext();) {\n String name = (String) iter.next();\n String[] values = (String[]) pathParams.get(name);\n buf.append(name);\n buf.append(\"/\");\n buf.append(PathParser.encodeValues(values));\n\n if (iter.hasNext()) {\n buf.append(\"/\");\n }\n }\n }\n\n // Append servlet-path (infoglue-action)\n if (webWorkAction != null) {\n buf.append(\"/\");\n buf.append(webWorkAction);\n }\n\n // Append query-parameters\n if (!queryParams.isEmpty()) {\n buf.append(\"?\");\n for (Iterator iter = queryParams.keySet().iterator(); iter.hasNext();) {\n // Iterating over names\n String name = (String) iter.next();\n String[] values = (String[]) queryParams.get(name);\n for (int i = 0; i < values.length; i++) {\n // Iterating over values\n buf.append(name);\n buf.append(\"=\");\n buf.append(values[i]);\n if (i < values.length - 1) {\n buf.append(\"&\");\n }\n }\n if (iter.hasNext()) {\n buf.append(\"&\");\n }\n }\n }\n\n // Append local navigation (reference)\n if (local != null && local.length() > 0) {\n buf.append(\"#\");\n buf.append(local);\n }\n if (log.isDebugEnabled()) {\n log.debug(\"Generated URL: \" + buf.toString());\n }\n return buf.toString();\n }",
"public String getRegisteredRedirectUris() {\n return registeredRedirectUris;\n }",
"@Override\r\n public List<String> getMatchedURIs(boolean arg0) {\n return null;\r\n }",
"public String getRequestUrlName() {\n return \"Source\"; // TODO: parameter\n }",
"List<Parameter> baseUriParameters();",
"public String getFilter() {\n\t\treturn url.getFilter();\n }",
"public String[] getUrls() {\n\t\tif (results == null)\n\t\t\treturn null;\n\t\tWebSearchResult[] resultsArray = results.listResults();\n\t\tString[] urls = new String[resultsArray.length];\n\t\tfor (int i = 0; i < urls.length; i++) {\n\t\t\turls[i] = resultsArray[i].getUrl();\n\t\t}\n\t\treturn urls;\n\t}",
"private String getHref(HttpServletRequest request)\n {\n String respath = request.getRequestURI();\n if (respath == null)\n \trespath = \"\";\n String codebaseParam = getRequestParam(request, CODEBASE, null);\n int idx = respath.lastIndexOf('/');\n if (codebaseParam != null)\n if (respath.indexOf(codebaseParam) != -1)\n idx = respath.indexOf(codebaseParam) + codebaseParam.length() - 1;\n String href = respath.substring(idx + 1); // Exclude /\n href = href + '?' + request.getQueryString();\n return href;\n }",
"public String getQueryString(String contentEncoding) {\n // Check if the sampler has a specified content encoding\n if(JOrphanUtils.isBlank(contentEncoding)) {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n contentEncoding = EncoderCache.URL_ARGUMENT_ENCODING;\n }\n StringBuilder buf = new StringBuilder();\n PropertyIterator iter = getArguments().iterator();\n boolean first = true;\n while (iter.hasNext()) {\n HTTPArgument item = null;\n /*\n * N.B. Revision 323346 introduced the ClassCast check, but then used iter.next()\n * to fetch the item to be cast, thus skipping the element that did not cast.\n * Reverted to work more like the original code, but with the check in place.\n * Added a warning message so can track whether it is necessary\n */\n Object objectValue = iter.next().getObjectValue();\n try {\n item = (HTTPArgument) objectValue;\n } catch (ClassCastException e) {\n log.warn(\"Unexpected argument type: \"+objectValue.getClass().getName());\n item = new HTTPArgument((Argument) objectValue);\n }\n final String encodedName = item.getEncodedName();\n if (encodedName.length() == 0) {\n continue; // Skip parameters with a blank name (allows use of optional variables in parameter lists)\n }\n if (!first) {\n buf.append(QRY_SEP);\n } else {\n first = false;\n }\n buf.append(encodedName);\n if (item.getMetaData() == null) {\n buf.append(ARG_VAL_SEP);\n } else {\n buf.append(item.getMetaData());\n }\n \n // Encode the parameter value in the specified content encoding\n try {\n buf.append(item.getEncodedValue(contentEncoding));\n }\n catch(UnsupportedEncodingException e) {\n log.warn(\"Unable to encode parameter in encoding \" + contentEncoding + \", parameter value not included in query string\");\n }\n }\n return buf.toString();\n }",
"@Override\n\t\tpublic String getRequestURI() {\n\t\t\treturn null;\n\t\t}",
"public ExternalUrl getExternalUrls() {\n return externalUrls;\n }",
"public String getQueryString(String contentEncoding) {\n \n CollectionProperty arguments = getArguments().getArguments();\n // Optimisation : avoid building useless objects if empty arguments\n if(arguments.size() == 0) {\n return \"\";\n }\n \n // Check if the sampler has a specified content encoding\n if (JOrphanUtils.isBlank(contentEncoding)) {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n contentEncoding = EncoderCache.URL_ARGUMENT_ENCODING;\n }\n \n StringBuilder buf = new StringBuilder(arguments.size() * 15);\n PropertyIterator iter = arguments.iterator();\n boolean first = true;\n while (iter.hasNext()) {\n HTTPArgument item = null;\n /*\n * N.B. Revision 323346 introduced the ClassCast check, but then used iter.next()\n * to fetch the item to be cast, thus skipping the element that did not cast.\n * Reverted to work more like the original code, but with the check in place.\n * Added a warning message so can track whether it is necessary\n */\n Object objectValue = iter.next().getObjectValue();\n try {\n item = (HTTPArgument) objectValue;\n } catch (ClassCastException e) {\n log.warn(\"Unexpected argument type: \" + objectValue.getClass().getName());\n item = new HTTPArgument((Argument) objectValue);\n }\n final String encodedName = item.getEncodedName();\n if (encodedName.length() == 0) {\n continue; // Skip parameters with a blank name (allows use of optional variables in parameter lists)\n }\n if (!first) {\n buf.append(QRY_SEP);\n } else {\n first = false;\n }\n buf.append(encodedName);\n if (item.getMetaData() == null) {\n buf.append(ARG_VAL_SEP);\n } else {\n buf.append(item.getMetaData());\n }\n \n // Encode the parameter value in the specified content encoding\n try {\n buf.append(item.getEncodedValue(contentEncoding));\n } catch(UnsupportedEncodingException e) {\n log.warn(\"Unable to encode parameter in encoding \" + contentEncoding + \", parameter value not included in query string\");\n }\n }\n return buf.toString();\n }",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"public String getQueryString() {\n return m_queryString;\n }",
"public String getRequestURI() {\n return uri;\n }",
"default String args() {\n return (String) metadata().get(\"x-uri-args\");\n }",
"private String getRequestUrl(String query) {\n\n StringBuilder builder = new StringBuilder();\n float lat, lng;\n\n // check for location, if not found, check for locally saved location\n if (location != null) {\n lat = location.lat;\n lng = location.lng;\n } else {\n lat = SharedPrefs.get(C.sp_last_lat);\n lng = SharedPrefs.get(C.sp_last_long);\n }\n String locationStr;\n // if even that is not found, search near Bangalore\n if (lat == -1 || lng == -1) {\n locationStr = \"near=Bengaluru\";\n } else {\n locationStr = \"ll=\" + lat + \",\" + lng;\n }\n\n builder.append(C.API_SEARCH)\n .append(\"client_id=\").append(C.FS_CLIENT_ID).append(\"&\")\n .append(\"client_secret=\").append(C.FS_CLIENT_SECRET).append(\"&\")\n .append(\"v=20191231&\")\n .append(\"limit=20&\")\n .append(\"intent=checkin&\")\n .append(locationStr);\n\n if (query != null) {\n builder.append(\"&query=\").append(query);\n }\n\n return builder.toString();\n\n }",
"public java.util.List<ConnectionQueryStringParameter> getQueryStringParameters() {\n return queryStringParameters;\n }",
"public String getEmbeddedUrlRE() {\n return getPropertyAsString(EMBEDDED_URL_RE,\"\");\n }",
"public StringBuilder getDemandSearchURLForDemandId() {\n\t\tStringBuilder url = new StringBuilder(configs.getBillingServiceHost());\n\t\turl.append(configs.getDemandSearchEndPoint());\n\t\turl.append(\"?\");\n\t\turl.append(\"tenantId=\");\n\t\turl.append(\"{1}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"businessService=\");\n\t\turl.append(\"{2}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"consumerCode=\");\n\t\turl.append(\"{3}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"isPaymentCompleted=false\");\n\t\treturn url;\n\t}",
"@SuppressWarnings(\"boxing\")\n @Override\n protected String getCustomQueryStringVariables() {\n String unitsParam = \"\";\n if (radiusUnitOverride != null) {\n unitsParam = String.format(\"&spatialUnits=%s\", SharpEnum.value(radiusUnitOverride));\n }\n return String.format(Constants.getDefaultLocale(), \"queryShape=%s&spatialRelation=%s&spatialField=%s&distErrPrc=%.5f%s\", UrlUtils.escapeDataString(queryShape), SharpEnum.value(spatialRelation), spatialFieldName,\n distanceErrorPercentage, unitsParam);\n }"
] | [
"0.72871846",
"0.71905744",
"0.63596356",
"0.62278205",
"0.62278205",
"0.6113529",
"0.6059315",
"0.6025161",
"0.5988152",
"0.5926859",
"0.5917828",
"0.59154516",
"0.5892884",
"0.58883315",
"0.5880111",
"0.5878703",
"0.5848155",
"0.5785168",
"0.5784631",
"0.5772261",
"0.5758304",
"0.57473296",
"0.5722026",
"0.5688442",
"0.56827873",
"0.56754863",
"0.5671364",
"0.56712496",
"0.5632859",
"0.56180257",
"0.5601931",
"0.55806136",
"0.55297226",
"0.55288726",
"0.5521855",
"0.55111694",
"0.5509957",
"0.5507693",
"0.5485962",
"0.5477786",
"0.5476354",
"0.5476354",
"0.5473384",
"0.54712397",
"0.5452039",
"0.5450986",
"0.54427177",
"0.54088646",
"0.540558",
"0.5386953",
"0.5369358",
"0.5353912",
"0.53198457",
"0.52999955",
"0.52988636",
"0.52910095",
"0.5290963",
"0.5289094",
"0.528665",
"0.5256195",
"0.5252497",
"0.5241768",
"0.5241204",
"0.5238266",
"0.52283096",
"0.522084",
"0.5214111",
"0.52130836",
"0.52102166",
"0.5201814",
"0.51906264",
"0.5187713",
"0.51826507",
"0.5179927",
"0.5172451",
"0.5165564",
"0.5162849",
"0.5156825",
"0.5143686",
"0.5109906",
"0.51052797",
"0.51042634",
"0.5100462",
"0.5088685",
"0.5075719",
"0.50504136",
"0.5049237",
"0.5048742",
"0.5048742",
"0.5048742",
"0.5048742",
"0.5048742",
"0.5048742",
"0.5047459",
"0.5046089",
"0.50347626",
"0.5033158",
"0.50188416",
"0.5013556",
"0.50107235",
"0.50098836"
] | 0.0 | -1 |
The URL query strings from viewer requests to include in origin requests. | public OriginRequestPolicyQueryStringsConfig getQueryStringsConfig() {
return this.queryStringsConfig;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getOriginUrl() {\n Uri.Builder builder = url.buildUpon();\n for (Param p : queryParams) {\n builder.appendQueryParameter(p.key, p.value);\n }\n return builder.build().toString();\n }",
"String getQueryRequestUrl();",
"String getQueryResultsUrl();",
"public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }",
"public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }",
"String getRequestedUrl();",
"public String getRequestURIWithoutQuery() {\n if (requestURIWithoutQuery != null) {\n return requestURIWithoutQuery;\n }\n requestURIWithoutQuery = super.getRequestURI();\n if (requestURIWithoutQuery == null) {\n requestURIWithoutQuery = \"\";\n }\n return requestURIWithoutQuery;\n }",
"String getRequestURL();",
"@Override\n public StringBuffer getRequestURL() {\n //StringBuffer requestURL = super.getRequestURL();\n //System.out.println(\"URL: \" + requestURL.toString());\n return this.requestURL;\n }",
"public String getUrl() {\n return _Web_search.getBaseUrl() + getQuery();\n }",
"@Override \n public String getRequestURI() {\n if (requestURI != null) {\n return requestURI;\n }\n\n StringBuilder buffer = new StringBuilder();\n buffer.append(getRequestURIWithoutQuery());\n if (super.getQueryString() != null) {\n buffer.append(\"?\").append(super.getQueryString());\n }\n return requestURI = buffer.toString();\n }",
"String getQueryString ();",
"@Override\n\tpublic Collection<URL> getUrlsToFilter() {\n\t\tSet<URL> filterSet = new HashSet<URL>();\n\t\tString url=\"http://www.infoq.com/news/2012/11/Panel-WinRT-Answers;jsessionid=91AB81A159E85692E6F1199644E2053C \";\n\t\tfilterSet.add(URL.valueOf(url));\n\t\treturn filterSet;\n\t}",
"public final static String getFullRequestUrl(final HttpServletRequest req) {\n return req.getRequestURL().toString() + (StringUtils.hasText(req.getQueryString()) ? \"?\"+req.getQueryString() : \"\");\n }",
"public String getQueryParamsAsString() {\n\t\tStringBuffer params = new StringBuffer(30);\n\t\tString key, value;\n\t\tfor (Iterator it = validQueryParams.keySet().iterator(); it.hasNext();) {\n\t\t\tkey = (String) it.next();\n\t\t\tvalue = (String) validQueryParams.get(key);\n\t\t\tparams.append(key).append(\"=\").append(value);\n//\t\t\tif (it.hasNext()) {\n\t\t\t\tparams.append(\"&\");\n//\t\t\t}\n\t\t}\n\t\t// add extral value(used in web page)\n\t\tparams.append(\"hasQueried=true\");\n\t\treturn params.toString();\n\t}",
"String getQueryStateUrl();",
"public StringBuffer getRequestURL() {\n return new StringBuffer(url);\n }",
"Map<UrlParameterName, List<String>> urlParameters() {\n return this.url().query().parameters();\n }",
"private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }",
"@Override\n\t\tpublic String getQueryString() {\n\t\t\treturn null;\n\t\t}",
"public String getQuery()\n\t{\n\t\tVRL loc=getLocation();\n\t\t\n\t\tif (loc==null)\n\t\t\treturn null;\n\t\t\n\t\treturn loc.getQuery();\n\t}",
"public String generateQueryParams() {\n if (petition.getParamsMap().entrySet().size() == 0)\n return \"\";\n else {\n boolean first = true;\n StringBuffer queryParams = new StringBuffer(\"?\");\n Iterator<Map.Entry<String, String>> it = petition.getParamsMap()\n .entrySet().iterator();\n // just iterate the map and fill the httpParams with its content\n while (it.hasNext()) {\n if (!first)\n queryParams.append(\"&\");\n else\n first = false;\n Map.Entry<String, String> e = (Entry<String, String>) it.next();\n String key = URLEncoder.encode(e.getKey());\n String value = URLEncoder.encode(e.getValue());\n queryParams.append(String.format(\"%s=%s\", key, value));\n\n }\n return queryParams.toString();\n }\n }",
"public String getQueryString() {\n\t\tif (query.isEmpty())\n\t\t\treturn null;\n\n\t\tif (queryString == null)\n\t\t\tqueryString = mapToString(query, \"&\");\n\n\t\treturn queryString;\n\t}",
"@Override\n public String getUrl() {\n return getOriginUrl();\n }",
"public String toQueryUrl() {\n StringBuilder urlBuilder = new StringBuilder();\n Set<Map.Entry<String, Object>> entrySet = params.entrySet();\n int i = entrySet.size();\n for (Map.Entry<String, Object> entry : entrySet) {\n try {\n if (null != entry.getValue()) {\n urlBuilder.append(entry.getKey()).append('=')\n .append(URLEncoder.encode(String.valueOf(entry.getValue()), DEFAULT_ENC));\n if (i > 1) {\n urlBuilder.append('&');\n }\n }\n i--;\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }\n \n return urlBuilder.toString();\n }",
"private static String getQuery() {\n String scope = \"\";\n generateState();\n\n for (String s : SCOPES) {\n scope += \"+\" + s;\n }\n\n return \"?response_type=code&redirect_uri=\" + REDIRECT_URL +\n \"&client_id=\" + CLIENT_KEY +\n \"&scope=\" + scope +\n \"&STATE=\" + STATE;\n }",
"public java.lang.String getQueryString() {\n return bugQuery.getQueryString();\n }",
"@Override\n public String getQueryString() {\n return queryString;\n }",
"@NonNull\n public String getQueryParameters() throws UnsupportedEncodingException {\n return getPostDataString(Collections.singletonList(\"alt\"), Collections.singletonList(\"media\"), true);\n }",
"public String customQueryString() {\n return this.customQueryString;\n }",
"@Override\n public String getUrl() {\n StringBuilder sb = new StringBuilder(baseUrl);\n if (mUrlParams.size() > 0) {\n sb.append(\"?\");\n for (String key : mUrlParams.keySet()) {\n sb.append(key);\n sb.append(\"=\");\n sb.append(mUrlParams.get(key));\n sb.append(\"&\");\n }\n }\n String result = sb.substring(0, sb.length() - 1);\n return result;\n }",
"@Override\n\t\tpublic StringBuffer getRequestURL() {\n\t\t\treturn null;\n\t\t}",
"public String getRequestUri()\n {\n return requestUri;\n }",
"public String getUrlCustomParameters() {\r\n return urlCustomParameters;\r\n }",
"public Map getQueryParameterMap(PortletWindow window) {\n return queryParams;\n }",
"public String getRequestUrl(){\n return this.requestUrl;\n }",
"void setQueryRequestUrl(String queryRequestUrl);",
"public Map<String, String> getQueryParams(QueryInfo queryInfo) {\n Map<String, String> queryParams = super.getQueryParams(queryInfo);\n String str = queryParams.get(\"query\");\n if (!TextUtils.isEmpty(str)) {\n String queryExtras = SearchConfig.get().getSuggestionConfig().getQueryExtras(str);\n if (!TextUtils.isEmpty(queryExtras)) {\n queryParams.put(\"extraInfo\", queryExtras);\n Log.d(\"SearchSource\", \"On append extra [%s] to query [%s]\", queryExtras, str);\n }\n }\n queryParams.remove(\"enableShortcut\");\n return queryParams;\n }",
"public String getQueryString() {\n\t\treturn queryString;\n\t}",
"java.lang.String getQuery();",
"java.lang.String getQuery();",
"public static String getRequestUrl(HttpServletRequest argRequest) {\r\n\t\tStringBuffer requestURL = argRequest.getRequestURL();\r\n\t\tString queryString = argRequest.getQueryString();\r\n\t\tif (requestURL != null) {\r\n\t\t\tif (queryString != null && !queryString.isEmpty()) {\r\n\t\t\t\trequestURL.append(HttpConstants.QMARK).append(queryString);\r\n\t\t\t}\r\n\t\t\treturn requestURL.toString();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public String getSrcSpecialRequests() {\r\n return (String) getAttributeInternal(SRCSPECIALREQUESTS);\r\n }",
"private String getQueryStringFromParser() {\n return (getString() == null) ? \"\" : getString();\n }",
"public String getQueryString() {\n return queryString;\n }",
"public String getEditorUrl()\n {\n return m_queryRequest;\n }",
"String getQuery();",
"public String createQueryString() {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\r\n\t\tSet<Map.Entry<String, Object>> set = queryParams.entrySet();\r\n\t\tEnumeration<Map.Entry<String, Object>> en = Collections.enumeration(set);\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile (en.hasMoreElements())\r\n\t\t\t{\r\n\t\t\t\tMap.Entry<String, Object> entry = en.nextElement();\r\n\t\t\t\tString key = entry.getKey();\r\n\t\t\t\tObject val = entry.getValue();\r\n\t\t\t\tif (val instanceof String)\r\n\t\t\t\t{\r\n\t\t\t\t\tString s = null;\r\n\t\t\t\t\ts = (String) val;\r\n\t\t\t\t\ts = URLEncoder.encode(s, \"US-ASCII\");\r\n\t\t\t\t\tsb.append(\"&\").append(key).append(\"=\").append(s);\r\n\t\t\t\t}\r\n\t\t\t\telse if (val instanceof String[])\r\n\t\t\t\t\tsb.append(\"&\").append(getNameValueString(key, (String[]) val));\r\n\t\t\t}\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\r\n\t\treturn sb.substring(1);\r\n\t}",
"@Override\r\n public List<String> getMatchedURIs() {\n return null;\r\n }",
"public URI getRequestURI();",
"java.lang.String getQueryAuthorizations();",
"public String getFinalAppUrls() {\r\n return finalAppUrls;\r\n }",
"com.cmpe275.grpcComm.QueryParams getQueryParams();",
"private static String getRequestPath(final IWebRequest request) {\n\n String requestPath = request.getPathWithinApplication();\n\n final int fragmentIndex = requestPath.indexOf(';');\n if (fragmentIndex != -1) {\n requestPath = requestPath.substring(0, fragmentIndex);\n }\n\n return requestPath;\n\n }",
"public String getQueryString(){\n return this.queryString;\n }",
"public String getQueryString() {\n return _query;\n }",
"@Override\n\tpublic String[] getAuthorizedUrlPatterns() {\n\t\treturn null;\n\t}",
"public Map getQueryParameterMap() {\n return queryParams;\n }",
"public Set<URL> getTargetPageURLs(){\n\t\tSet<URL> urls = new HashSet<URL>();\n\t\tString url = \"http://www.infoq.com/news/2012/12/twemproxy;jsessionid=1652D82C3359CBAB67DA00B26BE7784B\";\n\t\turls.add(URL.valueOf(url));\n\t\treturn urls;\n\t}",
"public String buildFilter() {\n String qs = \"\";\n Set<Map.Entry<String, String>> set = instance.arguments.entrySet();\n\n for (Map.Entry<String, String> entry : set) {\n qs += entry.getKey() + \"=\" + entry.getValue() + \"&\";\n }\n return qs.substring(0, qs.length() - 1);\n }",
"public String getQueryRequest()\n {\n return m_queryRequest;\n }",
"private String buildRedirectionDetailsBaseUrl( )\n {\n UrlItem urlRedirectionDetails = new UrlItem( MultiviewFormResponseDetailsJspBean.getMultiviewRecordDetailsBaseUrl( ) );\n\n if ( !CollectionUtils.isEmpty( _listFormFilterDisplay ) )\n {\n for ( IFormFilterDisplay formFilterDisplay : _listFormFilterDisplay )\n {\n // Add all the filters values\n String strFilterValue = formFilterDisplay.getValue( );\n if ( !StringUtils.isEmpty( strFilterValue ) )\n {\n String strFilterFullName = FormsConstants.PARAMETER_URL_FILTER_PREFIX + formFilterDisplay.getParameterName( );\n urlRedirectionDetails.addParameter( strFilterFullName, strFilterValue );\n }\n }\n }\n\n // Add the selected panel technical code\n urlRedirectionDetails.addParameter( FormsConstants.PARAMETER_SELECTED_PANEL, _strSelectedPanelTechnicalCode );\n\n // Add sort filter data to the url\n addFilterSortConfigToUrl( urlRedirectionDetails );\n\n return urlRedirectionDetails.getUrl( );\n }",
"static public String getURI(HttpServletRequest request){\r\n\t\treturn request.getRequestURI();\r\n\t}",
"@Override\n public String toString() {\n if (this.map.getMap().isEmpty()) return \"\";\n final StringBuilder param = new StringBuilder(this.map.getMap().size() * 40);\n for (final Map.Entry<String, String> entry: entrySet()) {\n param.append(MultiProtocolURL.escape(entry.getKey()))\n .append('=')\n .append(MultiProtocolURL.escape(entry.getValue()))\n .append('&');\n }\n param.setLength(param.length() - 1);\n return param.toString();\n }",
"@Override\n public String getRequestURI() {\n if (httpRequest instanceof HttpRequestImpl) {\n return strip(context, ((HttpRequestImpl) httpRequest).requestRawPath());\n }\n return strip(context, super.getRequestURI());\n }",
"@Override\n\tpublic String[] getPublicUrlPatterns() {\n\t\treturn null;\n\t}",
"private String getUrlPlanetSearch() {\n return this.url + this.resource + this.resourceSearch;\n }",
"public String getRequestURI ()\n {\n return uri;\n }",
"String getRequestUrl() {\n return requestUrl;\n }",
"public String getFinalUrls() {\r\n return finalUrls;\r\n }",
"private String expandURLParameters()\n throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {\n StringBuilder result = new StringBuilder(mRequestURL.length()+16);\n\n StringTokenizer stringTokenizer = new StringTokenizer(mRequestURL, \"/\");\n StringBuilder getterName = new StringBuilder(128);\n while(stringTokenizer.hasMoreTokens()) {\n String urlSection = stringTokenizer.nextToken();\n if(!urlSection.startsWith(\"{\") || !urlSection.endsWith(\"}\")) {\n result.append(urlSection);\n result.append('/');\n continue;\n }\n\n if(getterName.length() != 0) {\n getterName.delete(0, getterName.length());\n }\n\n getterName.append(\"get\");\n getterName.append(Character.toUpperCase(urlSection.charAt(1)));\n getterName.append(urlSection.substring(2, urlSection.length()-1));\n Method getter = getClass().getMethod(getterName.toString(), GETTER_PARAMETERS);\n Object value = getter.invoke(this, (Object[])null);\n result.append(value.toString());\n result.append('/');\n }\n\n if(!mRequestURL.endsWith(\"/\")) {\n result.deleteCharAt(result.length()-1);\n }\n\n return result.toString();\n }",
"public static final String lastVisitUrl(HttpServletRequest req) {\n String lastVisitUrl = req.getRequestURI();\n if (req.getQueryString() != null) {\n lastVisitUrl += \"?\" + req.getQueryString();\n }\n return lastVisitUrl;\n }",
"@Override\n\tpublic String[] getRequestFilterIgnoreUrlPatterns() {\n\t\treturn aryIgnoreUrl;\n\t}",
"public String getSearchUrl();",
"public String toString() {\n StringBuffer buf = new StringBuffer();\n\n // Append context-path\n buf.append(contextPath);\n\n // Append real path (path besides control params, think \"niceuri\")\n if (realPath != null) {\n buf.append(realPath);\n }\n\n // Append \"control-parameters\"\n if (!pathParams.isEmpty()) {\n buf.append(\"/\");\n for (Iterator iter = pathParams.keySet().iterator(); iter.hasNext();) {\n String name = (String) iter.next();\n String[] values = (String[]) pathParams.get(name);\n buf.append(name);\n buf.append(\"/\");\n buf.append(PathParser.encodeValues(values));\n\n if (iter.hasNext()) {\n buf.append(\"/\");\n }\n }\n }\n\n // Append servlet-path (infoglue-action)\n if (webWorkAction != null) {\n buf.append(\"/\");\n buf.append(webWorkAction);\n }\n\n // Append query-parameters\n if (!queryParams.isEmpty()) {\n buf.append(\"?\");\n for (Iterator iter = queryParams.keySet().iterator(); iter.hasNext();) {\n // Iterating over names\n String name = (String) iter.next();\n String[] values = (String[]) queryParams.get(name);\n for (int i = 0; i < values.length; i++) {\n // Iterating over values\n buf.append(name);\n buf.append(\"=\");\n buf.append(values[i]);\n if (i < values.length - 1) {\n buf.append(\"&\");\n }\n }\n if (iter.hasNext()) {\n buf.append(\"&\");\n }\n }\n }\n\n // Append local navigation (reference)\n if (local != null && local.length() > 0) {\n buf.append(\"#\");\n buf.append(local);\n }\n if (log.isDebugEnabled()) {\n log.debug(\"Generated URL: \" + buf.toString());\n }\n return buf.toString();\n }",
"public String getRegisteredRedirectUris() {\n return registeredRedirectUris;\n }",
"@Override\r\n public List<String> getMatchedURIs(boolean arg0) {\n return null;\r\n }",
"public String getRequestUrlName() {\n return \"Source\"; // TODO: parameter\n }",
"List<Parameter> baseUriParameters();",
"public String getFilter() {\n\t\treturn url.getFilter();\n }",
"public String[] getUrls() {\n\t\tif (results == null)\n\t\t\treturn null;\n\t\tWebSearchResult[] resultsArray = results.listResults();\n\t\tString[] urls = new String[resultsArray.length];\n\t\tfor (int i = 0; i < urls.length; i++) {\n\t\t\turls[i] = resultsArray[i].getUrl();\n\t\t}\n\t\treturn urls;\n\t}",
"private String getHref(HttpServletRequest request)\n {\n String respath = request.getRequestURI();\n if (respath == null)\n \trespath = \"\";\n String codebaseParam = getRequestParam(request, CODEBASE, null);\n int idx = respath.lastIndexOf('/');\n if (codebaseParam != null)\n if (respath.indexOf(codebaseParam) != -1)\n idx = respath.indexOf(codebaseParam) + codebaseParam.length() - 1;\n String href = respath.substring(idx + 1); // Exclude /\n href = href + '?' + request.getQueryString();\n return href;\n }",
"public String getQueryString(String contentEncoding) {\n // Check if the sampler has a specified content encoding\n if(JOrphanUtils.isBlank(contentEncoding)) {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n contentEncoding = EncoderCache.URL_ARGUMENT_ENCODING;\n }\n StringBuilder buf = new StringBuilder();\n PropertyIterator iter = getArguments().iterator();\n boolean first = true;\n while (iter.hasNext()) {\n HTTPArgument item = null;\n /*\n * N.B. Revision 323346 introduced the ClassCast check, but then used iter.next()\n * to fetch the item to be cast, thus skipping the element that did not cast.\n * Reverted to work more like the original code, but with the check in place.\n * Added a warning message so can track whether it is necessary\n */\n Object objectValue = iter.next().getObjectValue();\n try {\n item = (HTTPArgument) objectValue;\n } catch (ClassCastException e) {\n log.warn(\"Unexpected argument type: \"+objectValue.getClass().getName());\n item = new HTTPArgument((Argument) objectValue);\n }\n final String encodedName = item.getEncodedName();\n if (encodedName.length() == 0) {\n continue; // Skip parameters with a blank name (allows use of optional variables in parameter lists)\n }\n if (!first) {\n buf.append(QRY_SEP);\n } else {\n first = false;\n }\n buf.append(encodedName);\n if (item.getMetaData() == null) {\n buf.append(ARG_VAL_SEP);\n } else {\n buf.append(item.getMetaData());\n }\n \n // Encode the parameter value in the specified content encoding\n try {\n buf.append(item.getEncodedValue(contentEncoding));\n }\n catch(UnsupportedEncodingException e) {\n log.warn(\"Unable to encode parameter in encoding \" + contentEncoding + \", parameter value not included in query string\");\n }\n }\n return buf.toString();\n }",
"@Override\n\t\tpublic String getRequestURI() {\n\t\t\treturn null;\n\t\t}",
"public String getQueryString(String contentEncoding) {\n \n CollectionProperty arguments = getArguments().getArguments();\n // Optimisation : avoid building useless objects if empty arguments\n if(arguments.size() == 0) {\n return \"\";\n }\n \n // Check if the sampler has a specified content encoding\n if (JOrphanUtils.isBlank(contentEncoding)) {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n contentEncoding = EncoderCache.URL_ARGUMENT_ENCODING;\n }\n \n StringBuilder buf = new StringBuilder(arguments.size() * 15);\n PropertyIterator iter = arguments.iterator();\n boolean first = true;\n while (iter.hasNext()) {\n HTTPArgument item = null;\n /*\n * N.B. Revision 323346 introduced the ClassCast check, but then used iter.next()\n * to fetch the item to be cast, thus skipping the element that did not cast.\n * Reverted to work more like the original code, but with the check in place.\n * Added a warning message so can track whether it is necessary\n */\n Object objectValue = iter.next().getObjectValue();\n try {\n item = (HTTPArgument) objectValue;\n } catch (ClassCastException e) {\n log.warn(\"Unexpected argument type: \" + objectValue.getClass().getName());\n item = new HTTPArgument((Argument) objectValue);\n }\n final String encodedName = item.getEncodedName();\n if (encodedName.length() == 0) {\n continue; // Skip parameters with a blank name (allows use of optional variables in parameter lists)\n }\n if (!first) {\n buf.append(QRY_SEP);\n } else {\n first = false;\n }\n buf.append(encodedName);\n if (item.getMetaData() == null) {\n buf.append(ARG_VAL_SEP);\n } else {\n buf.append(item.getMetaData());\n }\n \n // Encode the parameter value in the specified content encoding\n try {\n buf.append(item.getEncodedValue(contentEncoding));\n } catch(UnsupportedEncodingException e) {\n log.warn(\"Unable to encode parameter in encoding \" + contentEncoding + \", parameter value not included in query string\");\n }\n }\n return buf.toString();\n }",
"public ExternalUrl getExternalUrls() {\n return externalUrls;\n }",
"public String getQueryString() {\n return m_queryString;\n }",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"public String getRequestURI() {\n return uri;\n }",
"default String args() {\n return (String) metadata().get(\"x-uri-args\");\n }",
"private String getRequestUrl(String query) {\n\n StringBuilder builder = new StringBuilder();\n float lat, lng;\n\n // check for location, if not found, check for locally saved location\n if (location != null) {\n lat = location.lat;\n lng = location.lng;\n } else {\n lat = SharedPrefs.get(C.sp_last_lat);\n lng = SharedPrefs.get(C.sp_last_long);\n }\n String locationStr;\n // if even that is not found, search near Bangalore\n if (lat == -1 || lng == -1) {\n locationStr = \"near=Bengaluru\";\n } else {\n locationStr = \"ll=\" + lat + \",\" + lng;\n }\n\n builder.append(C.API_SEARCH)\n .append(\"client_id=\").append(C.FS_CLIENT_ID).append(\"&\")\n .append(\"client_secret=\").append(C.FS_CLIENT_SECRET).append(\"&\")\n .append(\"v=20191231&\")\n .append(\"limit=20&\")\n .append(\"intent=checkin&\")\n .append(locationStr);\n\n if (query != null) {\n builder.append(\"&query=\").append(query);\n }\n\n return builder.toString();\n\n }",
"public java.util.List<ConnectionQueryStringParameter> getQueryStringParameters() {\n return queryStringParameters;\n }",
"public String getEmbeddedUrlRE() {\n return getPropertyAsString(EMBEDDED_URL_RE,\"\");\n }",
"public StringBuilder getDemandSearchURLForDemandId() {\n\t\tStringBuilder url = new StringBuilder(configs.getBillingServiceHost());\n\t\turl.append(configs.getDemandSearchEndPoint());\n\t\turl.append(\"?\");\n\t\turl.append(\"tenantId=\");\n\t\turl.append(\"{1}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"businessService=\");\n\t\turl.append(\"{2}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"consumerCode=\");\n\t\turl.append(\"{3}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"isPaymentCompleted=false\");\n\t\treturn url;\n\t}",
"@SuppressWarnings(\"boxing\")\n @Override\n protected String getCustomQueryStringVariables() {\n String unitsParam = \"\";\n if (radiusUnitOverride != null) {\n unitsParam = String.format(\"&spatialUnits=%s\", SharpEnum.value(radiusUnitOverride));\n }\n return String.format(Constants.getDefaultLocale(), \"queryShape=%s&spatialRelation=%s&spatialField=%s&distErrPrc=%.5f%s\", UrlUtils.escapeDataString(queryShape), SharpEnum.value(spatialRelation), spatialFieldName,\n distanceErrorPercentage, unitsParam);\n }"
] | [
"0.7284183",
"0.7190249",
"0.6359226",
"0.62292427",
"0.62292427",
"0.61118233",
"0.60588264",
"0.6023927",
"0.5986357",
"0.5925862",
"0.59170485",
"0.5916523",
"0.5891946",
"0.5888038",
"0.58801496",
"0.5879504",
"0.5846927",
"0.57846415",
"0.57834715",
"0.57720983",
"0.57597935",
"0.5748285",
"0.57228667",
"0.56845",
"0.56837046",
"0.5675815",
"0.56732017",
"0.567155",
"0.5634092",
"0.5601854",
"0.5579458",
"0.55277956",
"0.55276275",
"0.5521344",
"0.5511587",
"0.5508002",
"0.5507448",
"0.5486651",
"0.54785764",
"0.54777104",
"0.54777104",
"0.54723257",
"0.5470894",
"0.54520893",
"0.5451798",
"0.54425436",
"0.54100335",
"0.54072416",
"0.5384989",
"0.5368477",
"0.53543925",
"0.53185815",
"0.5301866",
"0.5298727",
"0.52912205",
"0.5289973",
"0.5289944",
"0.5287186",
"0.5254856",
"0.5252901",
"0.52424395",
"0.5239271",
"0.5237277",
"0.52277213",
"0.52194595",
"0.52121896",
"0.5211014",
"0.52092326",
"0.52000505",
"0.5188886",
"0.51880604",
"0.5182021",
"0.5177803",
"0.51718885",
"0.51651275",
"0.5161101",
"0.51558965",
"0.5142886",
"0.51091033",
"0.5105725",
"0.5103512",
"0.5099916",
"0.5090538",
"0.5073796",
"0.5050791",
"0.5048017",
"0.50477695",
"0.50474423",
"0.50474423",
"0.50474423",
"0.50474423",
"0.50474423",
"0.50474423",
"0.5044878",
"0.50345296",
"0.5032799",
"0.5019703",
"0.50134176",
"0.50104403",
"0.50094235"
] | 0.56175756 | 29 |
The URL query strings from viewer requests to include in origin requests. | public OriginRequestPolicyConfig withQueryStringsConfig(OriginRequestPolicyQueryStringsConfig queryStringsConfig) {
setQueryStringsConfig(queryStringsConfig);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getOriginUrl() {\n Uri.Builder builder = url.buildUpon();\n for (Param p : queryParams) {\n builder.appendQueryParameter(p.key, p.value);\n }\n return builder.build().toString();\n }",
"String getQueryRequestUrl();",
"String getQueryResultsUrl();",
"public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }",
"public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }",
"String getRequestedUrl();",
"public String getRequestURIWithoutQuery() {\n if (requestURIWithoutQuery != null) {\n return requestURIWithoutQuery;\n }\n requestURIWithoutQuery = super.getRequestURI();\n if (requestURIWithoutQuery == null) {\n requestURIWithoutQuery = \"\";\n }\n return requestURIWithoutQuery;\n }",
"String getRequestURL();",
"@Override\n public StringBuffer getRequestURL() {\n //StringBuffer requestURL = super.getRequestURL();\n //System.out.println(\"URL: \" + requestURL.toString());\n return this.requestURL;\n }",
"public String getUrl() {\n return _Web_search.getBaseUrl() + getQuery();\n }",
"@Override \n public String getRequestURI() {\n if (requestURI != null) {\n return requestURI;\n }\n\n StringBuilder buffer = new StringBuilder();\n buffer.append(getRequestURIWithoutQuery());\n if (super.getQueryString() != null) {\n buffer.append(\"?\").append(super.getQueryString());\n }\n return requestURI = buffer.toString();\n }",
"String getQueryString ();",
"@Override\n\tpublic Collection<URL> getUrlsToFilter() {\n\t\tSet<URL> filterSet = new HashSet<URL>();\n\t\tString url=\"http://www.infoq.com/news/2012/11/Panel-WinRT-Answers;jsessionid=91AB81A159E85692E6F1199644E2053C \";\n\t\tfilterSet.add(URL.valueOf(url));\n\t\treturn filterSet;\n\t}",
"public final static String getFullRequestUrl(final HttpServletRequest req) {\n return req.getRequestURL().toString() + (StringUtils.hasText(req.getQueryString()) ? \"?\"+req.getQueryString() : \"\");\n }",
"String getQueryStateUrl();",
"public String getQueryParamsAsString() {\n\t\tStringBuffer params = new StringBuffer(30);\n\t\tString key, value;\n\t\tfor (Iterator it = validQueryParams.keySet().iterator(); it.hasNext();) {\n\t\t\tkey = (String) it.next();\n\t\t\tvalue = (String) validQueryParams.get(key);\n\t\t\tparams.append(key).append(\"=\").append(value);\n//\t\t\tif (it.hasNext()) {\n\t\t\t\tparams.append(\"&\");\n//\t\t\t}\n\t\t}\n\t\t// add extral value(used in web page)\n\t\tparams.append(\"hasQueried=true\");\n\t\treturn params.toString();\n\t}",
"public StringBuffer getRequestURL() {\n return new StringBuffer(url);\n }",
"Map<UrlParameterName, List<String>> urlParameters() {\n return this.url().query().parameters();\n }",
"private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }",
"@Override\n\t\tpublic String getQueryString() {\n\t\t\treturn null;\n\t\t}",
"public String getQuery()\n\t{\n\t\tVRL loc=getLocation();\n\t\t\n\t\tif (loc==null)\n\t\t\treturn null;\n\t\t\n\t\treturn loc.getQuery();\n\t}",
"public String generateQueryParams() {\n if (petition.getParamsMap().entrySet().size() == 0)\n return \"\";\n else {\n boolean first = true;\n StringBuffer queryParams = new StringBuffer(\"?\");\n Iterator<Map.Entry<String, String>> it = petition.getParamsMap()\n .entrySet().iterator();\n // just iterate the map and fill the httpParams with its content\n while (it.hasNext()) {\n if (!first)\n queryParams.append(\"&\");\n else\n first = false;\n Map.Entry<String, String> e = (Entry<String, String>) it.next();\n String key = URLEncoder.encode(e.getKey());\n String value = URLEncoder.encode(e.getValue());\n queryParams.append(String.format(\"%s=%s\", key, value));\n\n }\n return queryParams.toString();\n }\n }",
"public String getQueryString() {\n\t\tif (query.isEmpty())\n\t\t\treturn null;\n\n\t\tif (queryString == null)\n\t\t\tqueryString = mapToString(query, \"&\");\n\n\t\treturn queryString;\n\t}",
"@Override\n public String getUrl() {\n return getOriginUrl();\n }",
"public String toQueryUrl() {\n StringBuilder urlBuilder = new StringBuilder();\n Set<Map.Entry<String, Object>> entrySet = params.entrySet();\n int i = entrySet.size();\n for (Map.Entry<String, Object> entry : entrySet) {\n try {\n if (null != entry.getValue()) {\n urlBuilder.append(entry.getKey()).append('=')\n .append(URLEncoder.encode(String.valueOf(entry.getValue()), DEFAULT_ENC));\n if (i > 1) {\n urlBuilder.append('&');\n }\n }\n i--;\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }\n \n return urlBuilder.toString();\n }",
"private static String getQuery() {\n String scope = \"\";\n generateState();\n\n for (String s : SCOPES) {\n scope += \"+\" + s;\n }\n\n return \"?response_type=code&redirect_uri=\" + REDIRECT_URL +\n \"&client_id=\" + CLIENT_KEY +\n \"&scope=\" + scope +\n \"&STATE=\" + STATE;\n }",
"public java.lang.String getQueryString() {\n return bugQuery.getQueryString();\n }",
"@Override\n public String getQueryString() {\n return queryString;\n }",
"@NonNull\n public String getQueryParameters() throws UnsupportedEncodingException {\n return getPostDataString(Collections.singletonList(\"alt\"), Collections.singletonList(\"media\"), true);\n }",
"public OriginRequestPolicyQueryStringsConfig getQueryStringsConfig() {\n return this.queryStringsConfig;\n }",
"public String customQueryString() {\n return this.customQueryString;\n }",
"@Override\n public String getUrl() {\n StringBuilder sb = new StringBuilder(baseUrl);\n if (mUrlParams.size() > 0) {\n sb.append(\"?\");\n for (String key : mUrlParams.keySet()) {\n sb.append(key);\n sb.append(\"=\");\n sb.append(mUrlParams.get(key));\n sb.append(\"&\");\n }\n }\n String result = sb.substring(0, sb.length() - 1);\n return result;\n }",
"@Override\n\t\tpublic StringBuffer getRequestURL() {\n\t\t\treturn null;\n\t\t}",
"public String getRequestUri()\n {\n return requestUri;\n }",
"public String getUrlCustomParameters() {\r\n return urlCustomParameters;\r\n }",
"public Map getQueryParameterMap(PortletWindow window) {\n return queryParams;\n }",
"public String getRequestUrl(){\n return this.requestUrl;\n }",
"void setQueryRequestUrl(String queryRequestUrl);",
"public Map<String, String> getQueryParams(QueryInfo queryInfo) {\n Map<String, String> queryParams = super.getQueryParams(queryInfo);\n String str = queryParams.get(\"query\");\n if (!TextUtils.isEmpty(str)) {\n String queryExtras = SearchConfig.get().getSuggestionConfig().getQueryExtras(str);\n if (!TextUtils.isEmpty(queryExtras)) {\n queryParams.put(\"extraInfo\", queryExtras);\n Log.d(\"SearchSource\", \"On append extra [%s] to query [%s]\", queryExtras, str);\n }\n }\n queryParams.remove(\"enableShortcut\");\n return queryParams;\n }",
"public String getQueryString() {\n\t\treturn queryString;\n\t}",
"java.lang.String getQuery();",
"java.lang.String getQuery();",
"public static String getRequestUrl(HttpServletRequest argRequest) {\r\n\t\tStringBuffer requestURL = argRequest.getRequestURL();\r\n\t\tString queryString = argRequest.getQueryString();\r\n\t\tif (requestURL != null) {\r\n\t\t\tif (queryString != null && !queryString.isEmpty()) {\r\n\t\t\t\trequestURL.append(HttpConstants.QMARK).append(queryString);\r\n\t\t\t}\r\n\t\t\treturn requestURL.toString();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public String getSrcSpecialRequests() {\r\n return (String) getAttributeInternal(SRCSPECIALREQUESTS);\r\n }",
"private String getQueryStringFromParser() {\n return (getString() == null) ? \"\" : getString();\n }",
"public String getQueryString() {\n return queryString;\n }",
"public String getEditorUrl()\n {\n return m_queryRequest;\n }",
"String getQuery();",
"public String createQueryString() {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\r\n\t\tSet<Map.Entry<String, Object>> set = queryParams.entrySet();\r\n\t\tEnumeration<Map.Entry<String, Object>> en = Collections.enumeration(set);\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile (en.hasMoreElements())\r\n\t\t\t{\r\n\t\t\t\tMap.Entry<String, Object> entry = en.nextElement();\r\n\t\t\t\tString key = entry.getKey();\r\n\t\t\t\tObject val = entry.getValue();\r\n\t\t\t\tif (val instanceof String)\r\n\t\t\t\t{\r\n\t\t\t\t\tString s = null;\r\n\t\t\t\t\ts = (String) val;\r\n\t\t\t\t\ts = URLEncoder.encode(s, \"US-ASCII\");\r\n\t\t\t\t\tsb.append(\"&\").append(key).append(\"=\").append(s);\r\n\t\t\t\t}\r\n\t\t\t\telse if (val instanceof String[])\r\n\t\t\t\t\tsb.append(\"&\").append(getNameValueString(key, (String[]) val));\r\n\t\t\t}\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\r\n\t\treturn sb.substring(1);\r\n\t}",
"@Override\r\n public List<String> getMatchedURIs() {\n return null;\r\n }",
"public URI getRequestURI();",
"java.lang.String getQueryAuthorizations();",
"public String getFinalAppUrls() {\r\n return finalAppUrls;\r\n }",
"com.cmpe275.grpcComm.QueryParams getQueryParams();",
"private static String getRequestPath(final IWebRequest request) {\n\n String requestPath = request.getPathWithinApplication();\n\n final int fragmentIndex = requestPath.indexOf(';');\n if (fragmentIndex != -1) {\n requestPath = requestPath.substring(0, fragmentIndex);\n }\n\n return requestPath;\n\n }",
"@Override\n\tpublic String[] getAuthorizedUrlPatterns() {\n\t\treturn null;\n\t}",
"public String getQueryString(){\n return this.queryString;\n }",
"public String getQueryString() {\n return _query;\n }",
"public Map getQueryParameterMap() {\n return queryParams;\n }",
"public Set<URL> getTargetPageURLs(){\n\t\tSet<URL> urls = new HashSet<URL>();\n\t\tString url = \"http://www.infoq.com/news/2012/12/twemproxy;jsessionid=1652D82C3359CBAB67DA00B26BE7784B\";\n\t\turls.add(URL.valueOf(url));\n\t\treturn urls;\n\t}",
"public String buildFilter() {\n String qs = \"\";\n Set<Map.Entry<String, String>> set = instance.arguments.entrySet();\n\n for (Map.Entry<String, String> entry : set) {\n qs += entry.getKey() + \"=\" + entry.getValue() + \"&\";\n }\n return qs.substring(0, qs.length() - 1);\n }",
"public String getQueryRequest()\n {\n return m_queryRequest;\n }",
"private String buildRedirectionDetailsBaseUrl( )\n {\n UrlItem urlRedirectionDetails = new UrlItem( MultiviewFormResponseDetailsJspBean.getMultiviewRecordDetailsBaseUrl( ) );\n\n if ( !CollectionUtils.isEmpty( _listFormFilterDisplay ) )\n {\n for ( IFormFilterDisplay formFilterDisplay : _listFormFilterDisplay )\n {\n // Add all the filters values\n String strFilterValue = formFilterDisplay.getValue( );\n if ( !StringUtils.isEmpty( strFilterValue ) )\n {\n String strFilterFullName = FormsConstants.PARAMETER_URL_FILTER_PREFIX + formFilterDisplay.getParameterName( );\n urlRedirectionDetails.addParameter( strFilterFullName, strFilterValue );\n }\n }\n }\n\n // Add the selected panel technical code\n urlRedirectionDetails.addParameter( FormsConstants.PARAMETER_SELECTED_PANEL, _strSelectedPanelTechnicalCode );\n\n // Add sort filter data to the url\n addFilterSortConfigToUrl( urlRedirectionDetails );\n\n return urlRedirectionDetails.getUrl( );\n }",
"static public String getURI(HttpServletRequest request){\r\n\t\treturn request.getRequestURI();\r\n\t}",
"@Override\n public String toString() {\n if (this.map.getMap().isEmpty()) return \"\";\n final StringBuilder param = new StringBuilder(this.map.getMap().size() * 40);\n for (final Map.Entry<String, String> entry: entrySet()) {\n param.append(MultiProtocolURL.escape(entry.getKey()))\n .append('=')\n .append(MultiProtocolURL.escape(entry.getValue()))\n .append('&');\n }\n param.setLength(param.length() - 1);\n return param.toString();\n }",
"@Override\n public String getRequestURI() {\n if (httpRequest instanceof HttpRequestImpl) {\n return strip(context, ((HttpRequestImpl) httpRequest).requestRawPath());\n }\n return strip(context, super.getRequestURI());\n }",
"@Override\n\tpublic String[] getPublicUrlPatterns() {\n\t\treturn null;\n\t}",
"private String getUrlPlanetSearch() {\n return this.url + this.resource + this.resourceSearch;\n }",
"public String getRequestURI ()\n {\n return uri;\n }",
"String getRequestUrl() {\n return requestUrl;\n }",
"public String getFinalUrls() {\r\n return finalUrls;\r\n }",
"private String expandURLParameters()\n throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {\n StringBuilder result = new StringBuilder(mRequestURL.length()+16);\n\n StringTokenizer stringTokenizer = new StringTokenizer(mRequestURL, \"/\");\n StringBuilder getterName = new StringBuilder(128);\n while(stringTokenizer.hasMoreTokens()) {\n String urlSection = stringTokenizer.nextToken();\n if(!urlSection.startsWith(\"{\") || !urlSection.endsWith(\"}\")) {\n result.append(urlSection);\n result.append('/');\n continue;\n }\n\n if(getterName.length() != 0) {\n getterName.delete(0, getterName.length());\n }\n\n getterName.append(\"get\");\n getterName.append(Character.toUpperCase(urlSection.charAt(1)));\n getterName.append(urlSection.substring(2, urlSection.length()-1));\n Method getter = getClass().getMethod(getterName.toString(), GETTER_PARAMETERS);\n Object value = getter.invoke(this, (Object[])null);\n result.append(value.toString());\n result.append('/');\n }\n\n if(!mRequestURL.endsWith(\"/\")) {\n result.deleteCharAt(result.length()-1);\n }\n\n return result.toString();\n }",
"public static final String lastVisitUrl(HttpServletRequest req) {\n String lastVisitUrl = req.getRequestURI();\n if (req.getQueryString() != null) {\n lastVisitUrl += \"?\" + req.getQueryString();\n }\n return lastVisitUrl;\n }",
"@Override\n\tpublic String[] getRequestFilterIgnoreUrlPatterns() {\n\t\treturn aryIgnoreUrl;\n\t}",
"public String getSearchUrl();",
"public String toString() {\n StringBuffer buf = new StringBuffer();\n\n // Append context-path\n buf.append(contextPath);\n\n // Append real path (path besides control params, think \"niceuri\")\n if (realPath != null) {\n buf.append(realPath);\n }\n\n // Append \"control-parameters\"\n if (!pathParams.isEmpty()) {\n buf.append(\"/\");\n for (Iterator iter = pathParams.keySet().iterator(); iter.hasNext();) {\n String name = (String) iter.next();\n String[] values = (String[]) pathParams.get(name);\n buf.append(name);\n buf.append(\"/\");\n buf.append(PathParser.encodeValues(values));\n\n if (iter.hasNext()) {\n buf.append(\"/\");\n }\n }\n }\n\n // Append servlet-path (infoglue-action)\n if (webWorkAction != null) {\n buf.append(\"/\");\n buf.append(webWorkAction);\n }\n\n // Append query-parameters\n if (!queryParams.isEmpty()) {\n buf.append(\"?\");\n for (Iterator iter = queryParams.keySet().iterator(); iter.hasNext();) {\n // Iterating over names\n String name = (String) iter.next();\n String[] values = (String[]) queryParams.get(name);\n for (int i = 0; i < values.length; i++) {\n // Iterating over values\n buf.append(name);\n buf.append(\"=\");\n buf.append(values[i]);\n if (i < values.length - 1) {\n buf.append(\"&\");\n }\n }\n if (iter.hasNext()) {\n buf.append(\"&\");\n }\n }\n }\n\n // Append local navigation (reference)\n if (local != null && local.length() > 0) {\n buf.append(\"#\");\n buf.append(local);\n }\n if (log.isDebugEnabled()) {\n log.debug(\"Generated URL: \" + buf.toString());\n }\n return buf.toString();\n }",
"public String getRegisteredRedirectUris() {\n return registeredRedirectUris;\n }",
"@Override\r\n public List<String> getMatchedURIs(boolean arg0) {\n return null;\r\n }",
"public String getRequestUrlName() {\n return \"Source\"; // TODO: parameter\n }",
"List<Parameter> baseUriParameters();",
"public String getFilter() {\n\t\treturn url.getFilter();\n }",
"public String[] getUrls() {\n\t\tif (results == null)\n\t\t\treturn null;\n\t\tWebSearchResult[] resultsArray = results.listResults();\n\t\tString[] urls = new String[resultsArray.length];\n\t\tfor (int i = 0; i < urls.length; i++) {\n\t\t\turls[i] = resultsArray[i].getUrl();\n\t\t}\n\t\treturn urls;\n\t}",
"private String getHref(HttpServletRequest request)\n {\n String respath = request.getRequestURI();\n if (respath == null)\n \trespath = \"\";\n String codebaseParam = getRequestParam(request, CODEBASE, null);\n int idx = respath.lastIndexOf('/');\n if (codebaseParam != null)\n if (respath.indexOf(codebaseParam) != -1)\n idx = respath.indexOf(codebaseParam) + codebaseParam.length() - 1;\n String href = respath.substring(idx + 1); // Exclude /\n href = href + '?' + request.getQueryString();\n return href;\n }",
"public String getQueryString(String contentEncoding) {\n // Check if the sampler has a specified content encoding\n if(JOrphanUtils.isBlank(contentEncoding)) {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n contentEncoding = EncoderCache.URL_ARGUMENT_ENCODING;\n }\n StringBuilder buf = new StringBuilder();\n PropertyIterator iter = getArguments().iterator();\n boolean first = true;\n while (iter.hasNext()) {\n HTTPArgument item = null;\n /*\n * N.B. Revision 323346 introduced the ClassCast check, but then used iter.next()\n * to fetch the item to be cast, thus skipping the element that did not cast.\n * Reverted to work more like the original code, but with the check in place.\n * Added a warning message so can track whether it is necessary\n */\n Object objectValue = iter.next().getObjectValue();\n try {\n item = (HTTPArgument) objectValue;\n } catch (ClassCastException e) {\n log.warn(\"Unexpected argument type: \"+objectValue.getClass().getName());\n item = new HTTPArgument((Argument) objectValue);\n }\n final String encodedName = item.getEncodedName();\n if (encodedName.length() == 0) {\n continue; // Skip parameters with a blank name (allows use of optional variables in parameter lists)\n }\n if (!first) {\n buf.append(QRY_SEP);\n } else {\n first = false;\n }\n buf.append(encodedName);\n if (item.getMetaData() == null) {\n buf.append(ARG_VAL_SEP);\n } else {\n buf.append(item.getMetaData());\n }\n \n // Encode the parameter value in the specified content encoding\n try {\n buf.append(item.getEncodedValue(contentEncoding));\n }\n catch(UnsupportedEncodingException e) {\n log.warn(\"Unable to encode parameter in encoding \" + contentEncoding + \", parameter value not included in query string\");\n }\n }\n return buf.toString();\n }",
"@Override\n\t\tpublic String getRequestURI() {\n\t\t\treturn null;\n\t\t}",
"public ExternalUrl getExternalUrls() {\n return externalUrls;\n }",
"public String getQueryString(String contentEncoding) {\n \n CollectionProperty arguments = getArguments().getArguments();\n // Optimisation : avoid building useless objects if empty arguments\n if(arguments.size() == 0) {\n return \"\";\n }\n \n // Check if the sampler has a specified content encoding\n if (JOrphanUtils.isBlank(contentEncoding)) {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n contentEncoding = EncoderCache.URL_ARGUMENT_ENCODING;\n }\n \n StringBuilder buf = new StringBuilder(arguments.size() * 15);\n PropertyIterator iter = arguments.iterator();\n boolean first = true;\n while (iter.hasNext()) {\n HTTPArgument item = null;\n /*\n * N.B. Revision 323346 introduced the ClassCast check, but then used iter.next()\n * to fetch the item to be cast, thus skipping the element that did not cast.\n * Reverted to work more like the original code, but with the check in place.\n * Added a warning message so can track whether it is necessary\n */\n Object objectValue = iter.next().getObjectValue();\n try {\n item = (HTTPArgument) objectValue;\n } catch (ClassCastException e) {\n log.warn(\"Unexpected argument type: \" + objectValue.getClass().getName());\n item = new HTTPArgument((Argument) objectValue);\n }\n final String encodedName = item.getEncodedName();\n if (encodedName.length() == 0) {\n continue; // Skip parameters with a blank name (allows use of optional variables in parameter lists)\n }\n if (!first) {\n buf.append(QRY_SEP);\n } else {\n first = false;\n }\n buf.append(encodedName);\n if (item.getMetaData() == null) {\n buf.append(ARG_VAL_SEP);\n } else {\n buf.append(item.getMetaData());\n }\n \n // Encode the parameter value in the specified content encoding\n try {\n buf.append(item.getEncodedValue(contentEncoding));\n } catch(UnsupportedEncodingException e) {\n log.warn(\"Unable to encode parameter in encoding \" + contentEncoding + \", parameter value not included in query string\");\n }\n }\n return buf.toString();\n }",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"public String getQueryString() {\n return m_queryString;\n }",
"public String getRequestURI() {\n return uri;\n }",
"default String args() {\n return (String) metadata().get(\"x-uri-args\");\n }",
"private String getRequestUrl(String query) {\n\n StringBuilder builder = new StringBuilder();\n float lat, lng;\n\n // check for location, if not found, check for locally saved location\n if (location != null) {\n lat = location.lat;\n lng = location.lng;\n } else {\n lat = SharedPrefs.get(C.sp_last_lat);\n lng = SharedPrefs.get(C.sp_last_long);\n }\n String locationStr;\n // if even that is not found, search near Bangalore\n if (lat == -1 || lng == -1) {\n locationStr = \"near=Bengaluru\";\n } else {\n locationStr = \"ll=\" + lat + \",\" + lng;\n }\n\n builder.append(C.API_SEARCH)\n .append(\"client_id=\").append(C.FS_CLIENT_ID).append(\"&\")\n .append(\"client_secret=\").append(C.FS_CLIENT_SECRET).append(\"&\")\n .append(\"v=20191231&\")\n .append(\"limit=20&\")\n .append(\"intent=checkin&\")\n .append(locationStr);\n\n if (query != null) {\n builder.append(\"&query=\").append(query);\n }\n\n return builder.toString();\n\n }",
"public java.util.List<ConnectionQueryStringParameter> getQueryStringParameters() {\n return queryStringParameters;\n }",
"public String getEmbeddedUrlRE() {\n return getPropertyAsString(EMBEDDED_URL_RE,\"\");\n }",
"public StringBuilder getDemandSearchURLForDemandId() {\n\t\tStringBuilder url = new StringBuilder(configs.getBillingServiceHost());\n\t\turl.append(configs.getDemandSearchEndPoint());\n\t\turl.append(\"?\");\n\t\turl.append(\"tenantId=\");\n\t\turl.append(\"{1}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"businessService=\");\n\t\turl.append(\"{2}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"consumerCode=\");\n\t\turl.append(\"{3}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"isPaymentCompleted=false\");\n\t\treturn url;\n\t}",
"@SuppressWarnings(\"boxing\")\n @Override\n protected String getCustomQueryStringVariables() {\n String unitsParam = \"\";\n if (radiusUnitOverride != null) {\n unitsParam = String.format(\"&spatialUnits=%s\", SharpEnum.value(radiusUnitOverride));\n }\n return String.format(Constants.getDefaultLocale(), \"queryShape=%s&spatialRelation=%s&spatialField=%s&distErrPrc=%.5f%s\", UrlUtils.escapeDataString(queryShape), SharpEnum.value(spatialRelation), spatialFieldName,\n distanceErrorPercentage, unitsParam);\n }"
] | [
"0.72871846",
"0.71905744",
"0.63596356",
"0.62278205",
"0.62278205",
"0.6113529",
"0.6059315",
"0.6025161",
"0.5988152",
"0.5926859",
"0.5917828",
"0.59154516",
"0.5892884",
"0.58883315",
"0.5880111",
"0.5878703",
"0.5848155",
"0.5785168",
"0.5784631",
"0.5772261",
"0.5758304",
"0.57473296",
"0.5722026",
"0.5688442",
"0.56827873",
"0.56754863",
"0.5671364",
"0.56712496",
"0.5632859",
"0.56180257",
"0.5601931",
"0.55806136",
"0.55297226",
"0.55288726",
"0.5521855",
"0.55111694",
"0.5509957",
"0.5507693",
"0.5485962",
"0.5477786",
"0.5476354",
"0.5476354",
"0.5473384",
"0.54712397",
"0.5452039",
"0.5450986",
"0.54427177",
"0.54088646",
"0.540558",
"0.5386953",
"0.5369358",
"0.5353912",
"0.53198457",
"0.52999955",
"0.52988636",
"0.52910095",
"0.5290963",
"0.5289094",
"0.528665",
"0.5256195",
"0.5252497",
"0.5241768",
"0.5241204",
"0.5238266",
"0.52283096",
"0.522084",
"0.5214111",
"0.52130836",
"0.52102166",
"0.5201814",
"0.51906264",
"0.5187713",
"0.51826507",
"0.5179927",
"0.5172451",
"0.5165564",
"0.5162849",
"0.5156825",
"0.5143686",
"0.5109906",
"0.51052797",
"0.51042634",
"0.5100462",
"0.5088685",
"0.5075719",
"0.50504136",
"0.5049237",
"0.5048742",
"0.5048742",
"0.5048742",
"0.5048742",
"0.5048742",
"0.5048742",
"0.5047459",
"0.5046089",
"0.50347626",
"0.5033158",
"0.50188416",
"0.5013556",
"0.50107235",
"0.50098836"
] | 0.0 | -1 |
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. | @Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getComment() != null)
sb.append("Comment: ").append(getComment()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getHeadersConfig() != null)
sb.append("HeadersConfig: ").append(getHeadersConfig()).append(",");
if (getCookiesConfig() != null)
sb.append("CookiesConfig: ").append(getCookiesConfig()).append(",");
if (getQueryStringsConfig() != null)
sb.append("QueryStringsConfig: ").append(getQueryStringsConfig());
sb.append("}");
return sb.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() { return stringify(this, true); }",
"@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"@Override\n public String toString() {\n return new Gson().toJson(this);\n }",
"@Override\n public String toString() {\n ObjectMapper mapper = new ObjectMapper();\n try {\n return mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n return null;\n }\n }",
"@Override\n public String toString() {\n return new GsonBuilder().serializeNulls().create().toJson(this).toString();\n }",
"public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }",
"@Override\n public String toString() {\n return gson.toJson(this);\n }",
"@Override\n public String toString() {\n final Map<String, Object> augmentedToStringFields = Reflect.getStringInstanceVarEntries(this);\n augmentToStringFields(augmentedToStringFields);\n return Reflect.joinStringMap(augmentedToStringFields, this);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}",
"@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }",
"@Override\n public String toString() {\n // TODO this is a sudo method only for testing puroposes\n return \"{name: 5aled, age:15}\";\n }",
"public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String toString() {\n\t\t//TODO add your own field name here\t\t\n\t\t//return buffer.append(this.yourFieldName).toString();\n\t\treturn \"\";\n\t}",
"public String toString() {\n\t\treturn toString(true);\n\t}",
"public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName()).append(\",\");\n if (getPhoneNumber() != null)\n sb.append(\"PhoneNumber: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getEmail() != null)\n sb.append(\"Email: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getIdentificationNumber() != null)\n sb.append(\"IdentificationNumber: \").append(getIdentificationNumber()).append(\",\");\n if (getIdentificationExpirationDate() != null)\n sb.append(\"IdentificationExpirationDate: \").append(getIdentificationExpirationDate()).append(\",\");\n if (getIdentificationIssuingOrg() != null)\n sb.append(\"IdentificationIssuingOrg: \").append(getIdentificationIssuingOrg()).append(\",\");\n if (getDevicePickupId() != null)\n sb.append(\"DevicePickupId: \").append(getDevicePickupId());\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\treturn this.toJSONString(0);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\n\t}",
"@Override\n public String toString() {\n Gson gson = new Gson();\n\n String json = gson.toJson(this);\n System.out.println(\"json \\n\" + json);\n return json;\n }",
"@Override\n public String toString() {\n return toString(false, true, true, null);\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}",
"public String toString() {\n\t\treturn toString(this);\n\t}",
"@Override\n public final String toString() {\n return asString(0, 4);\n }",
"@Override\n public String toString() {\n return MoreObjects.toStringHelper(this) //\n .add(\"name\", getName()) //\n .add(\"phNumber\", getPhNumber()) //\n .add(\"emailId\", getEmailId()) //\n .add(\"parent\", getParent()) //\n .toString();\n }",
"public java.lang.String toString() {\n return this.stringValue;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn MoreObjects.toStringHelper(this) //\r\n\t\t\t\t.add(\"id\", getId()) //\r\n\t\t\t\t.add(\"parameter\", getParameter()) //\r\n\t\t\t\t.add(\"value\", getValue()) //\r\n\t\t\t\t.add(\"hieraAddress\", getHieraAddress()) //\r\n\t\t\t\t.toString();\r\n\t}",
"public String toString() {\n StringBuilder stringBuilder = new StringBuilder(40);\n stringBuilder.append(\"property '\").append(this.getName()).append(\"' (\");\n if (this._accessorMethod != null) {\n stringBuilder.append(\"via method \").append(this._accessorMethod.getDeclaringClass().getName()).append(\"#\").append(this._accessorMethod.getName());\n } else {\n stringBuilder.append(\"field \\\"\").append(this._field.getDeclaringClass().getName()).append(\"#\").append(this._field.getName());\n }\n if (this._serializer == null) {\n stringBuilder.append(\", no static serializer\");\n } else {\n stringBuilder.append(\", static serializer of type \" + this._serializer.getClass().getName());\n }\n stringBuilder.append(')');\n return stringBuilder.toString();\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\treturn this.str;\n\t}",
"@Override\n public String toString() {\n byte[] buffer = toBuffer();\n return (buffer == null) ? null : new String(buffer, StandardCharsets.UTF_8);\n }",
"@Override\n public String toString() {\n return (this.str);\n }",
"public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}",
"@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n dump(builder, 0, '\\'');\n return builder.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn JSON.toJSONString(this,SerializerFeature.WriteMapNullValue,\n\t\t\t\tSerializerFeature.WriteNonStringKeyAsString,\n\t\t\t\tSerializerFeature.WriteNullListAsEmpty,\n\t\t\t\tSerializerFeature.WriteNullNumberAsZero,\n\t\t\t\tSerializerFeature.WriteNullStringAsEmpty);\n\t}",
"@Override\n\tpublic String toString() {\n\t\tif (repr == null)\n\t\t\trepr = toString(null);\n\n\t\treturn repr;\n\t}",
"public String toString() {\n\treturn createString(data);\n }",
"public String toString() {\n\t\t\tif (this.getKey() == null) {\n\t\t\t\treturn \"\";\n\t\t\t} else {\n\t\t\t\treturn \"Key:\" + this.getKey() + \" Value:\" + this.getValue();\n\t\t\t}\n\t\t}",
"@Override\n public String toString() {\n return mString;\n }",
"public String toString() {\n return toDisplayString();\n }",
"public java.lang.String toString()\n {\n return this.stringValue;\n }",
"public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToStringFK(\"Project\", getProject()));\n buffer.append(objectToStringFK(\"User\", getUser()));\n buffer.append(objectToString(\"Status\", getStatus()));\n buffer.append(objectToString(\"LastActivityDate\", getLastActivityDate()));\n buffer.append(objectToString(\"HasPiSeen\", getHasPiSeen()));\n buffer.append(objectToString(\"HasDpSeen\", getHasDpSeen()));\n buffer.append(objectToString(\"HasAdminSeen\", getHasAdminSeen()));\n buffer.append(objectToString(\"HasRequestorSeen\", getHasRequestorSeen()));\n buffer.append(objectToString(\"EmailStatus\", getEmailStatus()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }",
"public String toString() {\r\n\t\treturn \"Name: \" + getName() + \" Phone: \" + phoneNumber + \" Email: \" + email;\r\n\t\t\r\n\t}",
"public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}",
"public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}",
"@Override\n public String toString() {\n return string;\n }",
"@Override\n public final String toString() {\n return this.value;\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn value + \"\";\r\n\t}",
"public String toString() {\n\t\treturn toString(0, 0);\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"\";\r\n\t}",
"@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}",
"public String toString() {\r\n\t\treturn \"Name: \" + name + \"\\nAddress: \" + addr + \"\\n\" + city + \"\\n\"\r\n\t\t\t\t+ state + \"\\n\" + zip + \"\\nPhone: \" + phone + \"\\nId: \" + id\r\n\t\t\t\t+ \"\\nMajor: \" + major + \"\\nGPA: \" + gpa;\r\n\t}",
"public synchronized String toString() {\n StringBuffer oBuffer = new StringBuffer();\n\n oBuffer\n .append(\"Preprocessing params: \").append(this.oPreprocessingParams).append(\"\\n\")\n .append(\"Feature extraction params: \").append(this.oFeatureExtractionParams).append(\"\\n\")\n .append(\"Classification params: \").append(this.oClassificationParams);\n\n return oBuffer.toString();\n }",
"public String toString() {\r\n\t\treturn \"Name: \" + getName() + \"\\nAddress: \" + getAddress() + \"\\nPhone Number: \" + getPhoneNumber();\r\n\t}",
"@Override String toString();",
"@Override\n\tpublic String toString() {\n\t\treturn \"\";\n\t}",
"@Override\n public String toString() {\n return value();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn this.toAnticipatedString();\n\t}",
"public String toString(){\r\n\t\tString superString = super.toString();\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\t//Add the object to the string\r\n\t\tbuilder.append(\". \");\r\n\t\tif (this.error != null) {\r\n\t\t\tbuilder.append(error.toString());\r\n\t\t\tbuilder.append(\". \");\r\n\t\t}\r\n\t\tbuilder.append(\"Object: \");\r\n\t\tbuilder.append(object.toString());\r\n\t\tif (this.recordRoute)\r\n\t\t\tbuilder.append(\", [RECORD_ROUTE]\");\r\n\t\tif (this.reRouting) \r\n\t\t\tbuilder.append(\", [RE-ROUTING]\");\r\n\t\t//Add the masks to the string\r\n\t\tif (this.mask != null) {\r\n\t\t\tbuilder.append(\", label set: \");\r\n\t\t\tbuilder.append(mask.toString());\r\n\t\t}\r\n\t\treturn superString.concat(builder.toString());\r\n\t}",
"@Override\n public String toString() {\n try {\n return new ObjectMapper().writeValueAsString(this);\n } catch (final JsonProcessingException ioe) {\n return ioe.getLocalizedMessage();\n }\n }",
"public String toString()\r\n\t{\r\n\t\treturn toCharSequence().toString();\r\n\t}",
"public String toString() {\n\t\treturn \"{\\\"username\\\":\\\"\" + this.username + \"\\\",\\\"apiKey\\\":\\\"\"\n\t\t\t\t+ this.apiKey + \"\\\",\\\"apiSecret:\\\"\" + this.apiSecret\n\t\t\t\t+ \"\\\",\\\"nonce:\\\"\" + this.nonce + \"\\\"}\";\n\t}",
"@Override\n public String toString() {\n return Objects.toStringHelper(this)\n .addValue(this.id)\n .addValue(this.name)\n .addValue(this.author)\n .addValue(this.description)\n .addValue(this.pictureOfCover)\n .toString();\n }",
"public String getAsString() {\n\t\treturn new String(this.getAsBytes());\n\t}",
"@Override\n public String toString() {\n return toStringHelper(this)\n .addValue(id)\n .addValue(firstName)\n .addValue(lastName)\n .addValue(email)\n .addValue(activities)\n .addValue(password).toString();\n }",
"public String toString() {\n return \"\" + data;\n }",
"public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the class attribute if required; default: don't.\r\n\t\tif (getIncludeClassAttribute() == true)\r\n\t\t\tOutString.append(getClassAttribute());\r\n\t\t// Add any transformation information,\r\n\t\t// probably the minimum is the x and y values.\r\n\t\t// again this is new to Java 1.4;\r\n\t\t// this function returns a StringBuffer.\r\n\t\tOutString.append(getAttributes());\r\n\t\t// close the tag.\r\n\t\tOutString.append(\">\");\r\n\t\tOutString.append(\"&\"+entityReferenceName+\";\");\r\n\t\t// close tag\r\n\t\tOutString.append(\"</\");\r\n\t\tOutString.append(getType());\r\n\t\tOutString.append(\">\");\r\n\r\n\t\treturn OutString.toString();\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn new StringBuilder()\n\t\t\t.append(this.getClass().getSimpleName())\n\t\t\t.append(\" { id:\").append(id)\n\t\t\t.append(\", version:\").append(version)\n\t\t\t.append(\" }\")\n\t\t\t.toString();\n\t}",
"public String toString() {\n\t\treturn (getValue().toString());\r\n\t}",
"public String toString ( ) {\r\n String returnString = _name + \"{ id: \" + _uniqueID + \" pos: [\"+ getPosition().getPosition() + \"] }\";\r\n return returnString;\r\n }",
"public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToString(\"ProjectName\", getProjectName()));\n buffer.append(objectToStringFK(\"DataProvider\", getDataProvider()));\n buffer.append(objectToStringFK(\"PrimaryInvestigator\", getPrimaryInvestigator()));\n buffer.append(objectToStringFK(\"CreatedBy\", getCreatedBy()));\n buffer.append(objectToString(\"CreatedTime\", getCreatedTime()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }",
"public String toString() {\n String output = \"\\nName: \" + name;\n output += \"\\nType: \" + type;\n output += \"\\nContact Details: \" + contactNo;\n output += \"\\nEmail address: \" + email;\n output += \"\\nResidentail Address: \" + address;\n\n return output;\n }",
"@Override \n\tpublic String toString() {\n\t\treturn stringForm;\n\t}",
"@Override public String toString();",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" {\");\n sb.append(\" \\\"fileid\\\":\\\"\").append(fileid);\n sb.append(\", \\\"filename\\\":\\\"\").append(filename);\n sb.append(\", \\\"fileupdate\\\":\\\"\").append(fileupdate);\n sb.append(\", \\\"filepath\\\":\\\"\").append(filepath);\n sb.append(\", \\\"fileuploader\\\":\\\"\").append(fileuploader);\n sb.append(\", \\\"isdelete\\\":\\\"\").append(isdelete);\n sb.append(\", \\\"filedesc\\\":\\\"\").append(filedesc);\n sb.append(\", \\\"filetype\\\":\\\"\").append(filetype);\n sb.append(\"\\\"}\");\n return sb.toString();\n }",
"public final String toString() {\n\t\tStringWriter write = new StringWriter();\n\t\tString out = null;\n\t\ttry {\n\t\t\toutput(write);\n\t\t\twrite.flush();\n\t\t\tout = write.toString();\n\t\t\twrite.close();\n\t\t} catch (UnsupportedEncodingException use) {\n\t\t\tuse.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\treturn (out);\n\t}",
"public String toString() {\n\t\treturn super.toString();\n\t\t// This gives stack overflows:\n\t\t// return ToStringBuilder.reflectionToString(this);\n\t}",
"public String toString() {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\t\tDocument document = XMLUtils.newDocument();\n\t\tdocument.appendChild(toXML(document));\n\t\tXMLUtils.write(bos, document);\n\n\t\treturn bos.toString();\n\t}",
"public String toString() {\n\t\treturn String.format(\"%s\\nID: %d\\nDescription: %s\\n\", name.toUpperCase(), id, description); \n\t}",
"public String toString() {\r\n String result = \"Name: \" + name + \"\\n\";\r\n\r\n result += \"Address: \" + address + \"\\n\";\r\n result += \"Phone: \" + phone;\r\n\r\n return result;\r\n }",
"@Override\n public String toString() {\n return \"\" + this.value;\n }",
"public String toString()\n\t{\n\t\treturn String.format(\"%-25s%-15s\\n%-25s%-15s\\n%-25s%-15s\\n%-25s%-15d\\n%-25s%-15s\\n%-25s$%,-13.2f\", \n\t\t\t\t \t\t \t \"Name\", this.getName(), \"Address:\", this.getAddress(), \"Telephone number:\", this.getTelephone(), \n\t\t\t\t \t\t \t \"Customer Number:\", this.getCustNum(), \"Email notifications:\", this.getSignedUp() == true ? \"Yes\" : \"No\",\n\t\t\t\t \t\t \t \"Purchase amount:\", this.getCustomerPurchase());\n\t}",
"public String toString() {\n\t\treturn str;\n\t}",
"public String toString() {\n return String.format(mFormat,\n format(mManufacturer),\n format(mBrand),\n format(mModel),\n mResolution,\n mDensity,\n mAndroidDensity,\n mVersion,\n mSdk,\n mLanguage);\n }",
"@Override\r\n public String toString() {\r\n return toSmartText().toString();\r\n }",
"@Override\n public String toString()\n {\n return this.toLsString();\n }",
"@Override\n public String toString() {\n return Helper.concat(this.getClass().getName(), \"{\",\n \"id:\", getId(),\n \", name:\", getName(),\n \", positions:\", positions,\n \", resourceRoles:\", resourceRoles,\n \"}\");\n }",
"public String toString()\n {\n return this.string;\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getVersion() != null)\n sb.append(\"version: \").append(getVersion()).append(\",\");\n if (getResource() != null)\n sb.append(\"resource: \").append(getResource()).append(\",\");\n if (getPath() != null)\n sb.append(\"path: \").append(getPath()).append(\",\");\n if (getHttpMethod() != null)\n sb.append(\"httpMethod: \").append(getHttpMethod()).append(\",\");\n if (getHeaders() != null)\n sb.append(\"headers: \").append(getHeaders().toString()).append(\",\");\n if (getMultiValueHeaders() != null)\n sb.append(\"multiValueHeaders: \").append(getMultiValueHeaders().toString()).append(\",\");\n if (getQueryStringParameters() != null)\n sb.append(\"queryStringParameters: \").append(getQueryStringParameters().toString()).append(\",\");\n if (getMultiValueQueryStringParameters() != null)\n sb.append(\"multiValueQueryStringParameters: \").append(getMultiValueQueryStringParameters().toString()).append(\",\");\n if (getPathParameters() != null)\n sb.append(\"pathParameters: \").append(getPathParameters().toString()).append(\",\");\n if (getStageVariables() != null)\n sb.append(\"stageVariables: \").append(getStageVariables().toString()).append(\",\");\n if (getRequestContext() != null)\n sb.append(\"requestContext: \").append(getRequestContext().toString()).append(\",\");\n if (getBody() != null)\n sb.append(\"body: \").append(getBody()).append(\",\");\n if (getIsBase64Encoded() != null)\n sb.append(\"isBase64Encoded: \").append(getIsBase64Encoded());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String toString() {\n return \"\";\n }"
] | [
"0.8098023",
"0.80729294",
"0.80471045",
"0.80471045",
"0.80242705",
"0.79729",
"0.79374725",
"0.79282546",
"0.7908959",
"0.7893721",
"0.7782485",
"0.778223",
"0.77669334",
"0.77661014",
"0.77661014",
"0.77661014",
"0.77553314",
"0.7727662",
"0.7721703",
"0.7672967",
"0.7672967",
"0.7667559",
"0.7652598",
"0.7650276",
"0.76428825",
"0.76425177",
"0.7635537",
"0.7633883",
"0.76215214",
"0.7619859",
"0.76181144",
"0.759696",
"0.7588292",
"0.7588101",
"0.7554084",
"0.7536908",
"0.7534354",
"0.7530501",
"0.7525512",
"0.7524698",
"0.75201446",
"0.75052255",
"0.74982625",
"0.7474119",
"0.74527085",
"0.74217755",
"0.741975",
"0.74180776",
"0.741694",
"0.74167645",
"0.7410847",
"0.7405079",
"0.74031186",
"0.7402249",
"0.7402249",
"0.73947006",
"0.73943037",
"0.73942703",
"0.73906785",
"0.73889005",
"0.737708",
"0.7376053",
"0.73702604",
"0.7360619",
"0.73589414",
"0.73482203",
"0.73416543",
"0.7340226",
"0.73337793",
"0.73287976",
"0.7326672",
"0.7325971",
"0.7320813",
"0.7318709",
"0.7313421",
"0.731257",
"0.7311095",
"0.7299784",
"0.72934186",
"0.72911435",
"0.72905064",
"0.7290345",
"0.728669",
"0.727815",
"0.72755426",
"0.72739244",
"0.7271282",
"0.72596276",
"0.7259492",
"0.72576606",
"0.72557086",
"0.7250277",
"0.72480845",
"0.72459245",
"0.7245424",
"0.7241205",
"0.72395205",
"0.723672",
"0.7236532",
"0.72316235",
"0.72245795"
] | 0.0 | -1 |
/ 1) ArrayLists are flexible in size. 2) ArrayLists cannot store multiple data types 3) ArrayLists store nonprimitive data type. 4) ArrayLists are updates version of Arrays. 5) | public static void main(String[] args) {
ArrayList<Integer>list1 = new ArrayList<>();
System.out.println(list1);
//How to add element into an ArrayList.
//add() method uses Insertion order.(yerlestirme sirasi)
list1.add(12);
list1.add(12);
list1.add(33);
//How to add an element into a specific index
list1.add(1,45);
System.out.println(list1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n int[] myIntArray = new int[10]; // int array\n String[] myStringArray = new String[10]; // String array\n\n ArrayList<String> myStringArrayList = new ArrayList<String>(); // String ArrayList\n myStringArrayList.add(\"Peti\");\nclass IntClass {//create an integer class is a lots of code !! use built in function!\n private int integer;\n\n public IntClass(int integer) {\n this.integer = integer;\n }\n\n public int getInteger() {\n return integer;\n }\n\n public void setInteger(int integer) {\n this.integer = integer;\n }\n}\n //ArrayList<int> intArraylist = new ArrayList<int>();\n //this is cannot work because arrayList only can accept objects not primitive types!\n ArrayList<IntClass> intArraylist = new ArrayList<IntClass>();\n intArraylist.add(new IntClass(12)); // too long and messy solution !\n //built in classes !!\n Integer integer = new Integer(12);\n Double doubleValue = new Double(10.34);\n\n ArrayList<Integer> intArrayList = new ArrayList<Integer>();\n for (int i = 0; i<=10; i++){\n intArrayList.add(Integer.valueOf(i)); // this is autoboxing to convert an int to an Integer\n }\n for (int i = 0; i<=10; i++){\n System.out.println(i + \" --> \" + intArrayList.get(i).intValue()); //this is unboxing to convert the Integer value back into an int !!\n }\n //shorter version to doing this becasue Java know this automatically and do it on the background\n Integer myIntValue = 56; //Integer.valueOf(56);\n int myInt = myIntValue; // myIntValue.getValue();\n\n //annother example for auto and unboxing !!\n ArrayList<Double> doubleList = new ArrayList<Double>();\n for (double dbl = 0.0; dbl <= 10.0; dbl+=0.5){\n doubleList.add(dbl); //doubleList.add(Double.valueOf(dbl));\n }\n\n for (int i = 0; i<doubleList.size();i++){\n double value = doubleList.get(i); //double value = doubleList.get(i).doubleValue();\n System.out.println(i + \" --> \" + value);\n }\n\n\n\n\n\n\n\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static void main(String[] args) {\n\t\t\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tArrayList ar = new ArrayList();\n\t\tar.add(1);\n\t\tar.add(2);\n\t\tar.add(3);\n\t\tar.add(\"Tom\");\n\t\tar.add(12.33);\n\t\t\n\t\tfor(int i=0; i<ar.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(ar.get(i));\n\t\t}\n\t\t\n\t // 2. dynamic generic array\n\t\t\n\t\tArrayList <Integer> ar1 = new ArrayList <Integer>();\n\t\t\n\t\tar1.add(89);\n\t\tar1.add(56);\n\t\tfor(int i=0; i<ar1.size(); i++)\n\t\t{\n\t\t System.out.println(ar1.get(i));\n\t\t}\n\tSystem.out.println(\"******************\");\t\n\t\n\tArrayList <Integer> ar2 = new ArrayList <Integer>();\n\t\n\tar2.add(55);\n\tar2.add(88);\n\tfor(int i=0; i<ar2.size(); i++)\n\t{\n\t System.out.println(ar2.get(i));\n\t}\n\tSystem.out.println(\"*********************\");\n\t\n\t//3. adding two generic array values, ensure the type of both array should be same\n\t\n\t\tar1.addAll(ar2);\n\t\t\n\t\tSystem.out.println(ar1.size());\n\t\t\n\t\tfor(int i=0; i<ar1.size(); i++)\n\t\t{\n\t\t System.out.println(ar1.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(\"***************************\");\n\t\t\n\t\t//4. Initializing arraylist of objects\n\t\t\n\t\tArrayList<Employee> ar3 = new ArrayList<Employee>();\n\t\t\n\t\tEmployee e1 = new Employee(1, \"pretty\", 5000);\n\t\tEmployee e2 = new Employee(2, \"renault\", 7000);\n\t\tEmployee e3 = new Employee(3, \"java\", 8000);\n\t\tEmployee e4 = new Employee(4, \"divya\", 9000);\n\t\t\n\t\tar3.add(e1);\n\t\tar3.add(e2);\n\t\tar3.add(e3);\n\t\tar3.add(e4);\n\t\t\n\t\tSystem.out.println(ar3.size());\n\t\t\n\t\tIterator<Employee> it = ar3.iterator();\n\t\t\n\t\twhile(it.hasNext())\n\t\t{\n\t\t Employee emp = it.next();\n\t\t\tSystem.out.print(emp.empno + \" \");\n\t\t\tSystem.out.print(emp.empname + \" \");\n\t\t\tSystem.out.print(emp.empsalary + \" \");\n\t\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t}",
"void setArrayGeneric(int paramInt)\n/* */ {\n/* 1062 */ this.length = paramInt;\n/* 1063 */ this.datums = new Datum[paramInt];\n/* 1064 */ this.pickled = null;\n/* 1065 */ this.pickledCorrect = false;\n/* */ }",
"public static void m2(ArrayList<?> al)\n\t{\n\t\t//al.add(\"Marshal Mathers\");\n\t\t//al.add(\"Slim Shady\");\n\t\t//al.add(10);\n\t\t//al.add(10.5f);\n\t\tal.add(null);\t// null is allowed, because it is valid value for any type\n\t}",
"public void create() {\n String[] arrays = new String[100];\n ArrayList<String> list1 = new ArrayList(); //Object[10]\n list1.size(); //0\n list1.add(\"Vivek\"); //object[0] = \"Vivek\"\n list1.size(); //1\n list1.get(0);//\"Vivek\"\n\n list1.remove(1);\n\n list1.add(0, \"Vivek\");\n\n\n ArrayList<String> list3 = new ArrayList<String>(list1);\n\n ArrayList<Student> list = new ArrayList<Student>();\n\n\n\n }",
"public ArrayList() {\n _size = 0;\n _store = (E[]) new Object[32];\n }",
"private <T> void populateArrayFromList(T[] arr, ArrayList<T> arrayList) {\n\t\tSystem.out.println(\"Array size \" + arr.length);\n\t\tSystem.out.println(\"ArrayList size \" + arrayList.size());\n\t\tfor (int i = 0; i < arrayList.size(); i++) {\n\t\t\tsavedListModel.addElement(arrayList.get(i).toString());\n\t\t\tarr[i] = arrayList.get(i);\n\t\t}\n\t}",
"public ArrayList61B() {\n\t\tthis.size = 1;\n\t\tthis.arrayList = (E[]) new Object[this.size];\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\n\t\t// RSN NOTE -- ArrayList can grow in size, arrays can't\n\t\tlist.add(1);\n\t\tlist.add(2);\n\t\tSystem.out.println(\"Length \" + list.size());\n\t\t\n\t\t// RSN NOTE -- Elements can be inserted or deleted from any locaiton, NOT in array\n\t\tArrayList<String> sList = new ArrayList<String>();\n\t\tsList.add(\"ONE\");\n\t\tsList.add(\"TWO\");\n\t\tsList.add(\"THREE\");\n\t\tsList.remove(1); // ====NOTE=====>>> compare Arraylist remove with LinkedListDemo remove\n\t\tSystem.out.println(sList.toString());\n\t\t\n\t\tSystem.out.println(\"Contains \"+sList.contains(\"THREE\")); //====NOTE=====>>>SUPER IMP; compare contains of arrayList and Linked List\n\t\t\n\t\t/*\n\t\t * ArrayList class has methods to perform solo modifications ( add(), remove()Ö ), \n\t\t * bulk modifications ( addAll(), removeAll(), retainAll()Ö ), searching( indexOf(), lasIndexOf() ) and iterations( iterator() ).\n\t\t */\n\t\t\n\t\t// RSN NOTE -- If generics are not used, ARRAY list can hold any data type\n\t\t ArrayList listForAll = new ArrayList(); //ArrayList without generics\n\t listForAll.add(\"ZERO\"); //adding string type object\n\t listForAll.add(1); //adding primitive int type\n\t listForAll.add(20.24); //adding primitive double type\n\t listForAll.add(new Float(23.56)); //Adding Float wrapper type object\n\t listForAll.add(new Long(25)); //Adding Long wrapper type object\n\t \n\t System.out.println(listForAll); //Output : [ZERO, 1, 20.24, 23.56, 25]\n\t \n\t // RSN NOTE -- Array Insertion time\n\t arrayInserionTime();\n\t \n\t listIteratorMovesInBothDirections();\n\t \n\t reverseElementInList();\n\t \n\t convertBetweenArrayAndList();\n\n\t}",
"public void genericIntegerArray() {\n\t\tArrayList<Integer> a1 = new ArrayList<Integer>();\n\t\ta1.add(20);\n\t\ta1.add(11);\n\t\tSystem.out.println(\"Integer generic ArrayList a1: \" + a1);\n\n\t}",
"void mo9148a(int i, ArrayList<C0889x> arrayList);",
"void arrayListToArray() {\n List<String> coolStringList = Arrays.asList( \"Java\", \"Scala\", \"Groovy\" ); //Declare &initialize o\n //coolStringList.add( \"Syed\" ); // Exception in thread \"main\" java.lang.UnsupportedOperationException\n coolStringList.set( 0, \"Syed\" );// works well\n System.out.println( coolStringList );\n/*\n /) Its not as fast as Arrays.asList() but more flexible.\n\n 2) This method actually copies the content of the underlying array into ArrayList provided.\n\n\n 3) Since you are creating copy of original array, you can add, modify and remove any element without affecting original one.*/\n\n List<String> assetList = new ArrayList();\n String[] asset = {\"equity\", \"stocks\", \"gold\", \"foriegn exchange\", \"fixed income\", \"futures\", \"options\"};\n Collections.addAll( assetList, asset );\n System.out.println( assetList );\n assetList.add( \"Mohammed\" );\n System.out.println( assetList );\n\n List newAssetList = new ArrayList();\n newAssetList.addAll( Arrays.asList( asset ) );\n System.out.println( newAssetList );\n newAssetList.add( \"YNS\" );\n System.out.println( newAssetList );\n /*String [] currency = {\"SGD\", \"USD\", \"INR\", \"GBP\", \"AUD\", \"SGD\"};\n System.out.println(\"Size of array: \" + currency.length);\n List<String> currencyList = CollectionUtils.arrayToList(currency);\n*/\n }",
"@SuppressWarnings(\"unchecked\")\n\tprotected void grow(){\n\t\t// makes new arraylist\n\t\tT[] temp = (T[]) new Object[data.length *2];\n\t\tfor(int i = 0; i < data.length; i++ ){\n\t\t\ttemp[i] = data[i];\n\t\t}\n\t\tdata = temp;\n\t}",
"public SimpleArrayList() {\n this.values = new Object[SimpleArrayList.DEFAULT_SIZE];\n }",
"public SimpleArrayList(int size) {\n this.values = new Object[size];\n }",
"public MyArrayList(int length) {\n data = new Object[length];\n }",
"void arrays_hierarchy_may_lead_to_unsafety() {\n\r\n Object[] objectArray = new Long[1];\r\n objectArray[0] = \"boom\"; // Throws ArrayStoreException\r\n\r\n // Generic Collections are invariant (don't preserve inheritance):\r\n // i.e. if Child extends Parent, then List<Child> isn't a subtype of List<Parent>.\r\n\r\n // Using Collections, it raises issue at compile time:\r\n\r\n /**\r\n * List<Object> numbers = new ArrayList<Number>();\r\n * numbers.add(\"boom\");\r\n */\r\n\r\n }",
"public void testingArrayList() {\r\n\t\tSystem.err\r\n\t\t\t\t.println(\"Class NewFeatures, method testingArrayList called!\");\r\n\t\t// we don't need to write data type two times\r\n\t\t// ArrayList<String> list = new ArrayList<String>();\r\n\t\tArrayList<String> list = new ArrayList<>();\r\n\t\tlist.add(\"hey\");\r\n\t\tlist.add(\"kello\");\r\n\t\tlist.add(\"labas\");\r\n\t\tSystem.out.println(\"\\nValue in list:\" + list.get(0));\r\n\t\tSystem.out.println(\"Printing out the ArrayList: \" + list);\r\n\t\tSystem.out.println(\"Class NewFeatures, method testingArrayList done!\");\r\n\t}",
"public static void main (String[] args){\n\n ArrayList<Integer> studentNumbers1 = new ArrayList<>();\n studentNumbers1.add(25);\n System.out.println(studentNumbers1.get(0)); // <- unboxing\n /**\n * solution 2 : create custom wrapper class - intWrapper\n */\n ArrayList<intWrapper> studentNumbers2 = new ArrayList<>();\n /**\n * studentNumbers2.add(12); <- Autoboxing\n * java is automatically boxing primitive data type to Object\n * error : intWrapper class does not have any add function so, we can do \"Boxing\" in the parameter\n * with create new object with int value\n */\n studentNumbers2.add(new intWrapper(12)); // <- Boxing\n System.out.println(studentNumbers2.get(0).getIntValue()); // <-Unboxing\n\n\n /**\n * Autoboxing testing with Double\n */\n ArrayList<Double> demoList = new ArrayList<>();\n demoList.add(25.5);\n demoList.add(new Double(25.2));\n /**\n * Java compiler convert the code like below.\n * Below command is done while autoboxing\n */\n demoList.add(Double.valueOf(10.3));\n System.out.println(demoList.get(0)); // <-Autoboxing\n System.out.println(demoList.get(0).doubleValue()); // <- command is done while autoboxing\n\n }",
"public ArrayList() {\n //sets an array with no length\n this.array = (E[]) new Object[0];\n }",
"public DynArrayList() {\n data =(E[]) new Object[CAPACITY];\n }",
"@Test\n\tpublic void testAddList() {\n\t\tarrayList = new ArrayListImplementation<String>();\n\t\tarrayList.addItem(\"1\");\n\t\tarrayList.addItem(\"2\");\n\t\tArrayListImplementation<String> tempArrayList = new ArrayListImplementation<String>();\n\t\ttempArrayList.addItem(\"4\");\n\t\ttempArrayList.addItem(\"5\");\n\t\ttempArrayList.addItem(\"6\");\n\t\tint sizeBeforeListAdded = arrayList.getActualSize();\n\t\tarrayList.addList(tempArrayList);\n\t\tint sizeAfterListAdded = arrayList.getActualSize();\n\t\tassertNotEquals(sizeBeforeListAdded, sizeAfterListAdded);\n\t}",
"public static void processArrayList(){\n ArrayList<String> newArray = new ArrayList<String>();\n newArray.addAll(groceryList.getGroceryList()); //Method 1: adds all items from the groceryList into the newArray\n\n ArrayList<String> newArray2 = new ArrayList<String>(groceryList.getGroceryList()); //Method 2: same as method 1 but the copying happens at the time of initialising the newArray2\n\n //if for some reason you want to save all the contents of an arrayList into an array\n String[] myArray = new String[groceryList.getGroceryList().size()]; //create the array to be equal to the size of the arraylist\n myArray = groceryList.getGroceryList().toArray(myArray); //convert an arraylist of strings (the outcome of getGroceryList()), and save it into our array\n }",
"public MutableArray(ARRAY paramARRAY, int paramInt, CustomDatumFactory paramCustomDatumFactory)\n/* */ {\n/* 155 */ this.length = -1;\n/* 156 */ this.elements = null;\n/* 157 */ this.datums = null;\n/* 158 */ this.pickled = paramARRAY;\n/* 159 */ this.pickledCorrect = true;\n/* 160 */ this.sqlType = paramInt;\n/* 161 */ this.old_factory = paramCustomDatumFactory;\n/* 162 */ this.isNChar = false;\n/* */ }",
"public static void arrayListSubtypeTest()\r\n\t{\r\n\t\tArrayList<Person> persons = new ArrayList<Person>();\r\n\t persons.add(new Person(\"twoa\"));\r\n\t persons.add(new Person(\"threea\"));\r\n\t PrintCollection(persons);\r\n\t // PrintCollection1(persons);\r\n\t PrintCollection2(persons);\r\n\t}",
"public ArrayBackedList(IList list) {\n while (list.size() > stringArray.length) {\n reallocArray();\n }\n for (int i = 0; i < list.size(); i++) {\n stringArray[i] = list.get(i);\n }\n }",
"public MyArrayList() {\n data = new Object[10];\n }",
"private Object arrayToSPLArray(String name, JSONArray jarr, Type ptype) throws Exception {\n\t\tif(l.isLoggable(TraceLevel.DEBUG)) {\n\t\t\tl.log(TraceLevel.DEBUG, \"Creating Array: \" + name);\n\t\t}\n\t\tCollectionType ctype = (CollectionType) ptype;\n\t\tint cnt=0;\n\t\tString cname = \"List: \" + name;\n\n\t\tswitch(ctype.getElementType().getMetaType()) {\n\t\tcase INT8:\n\t\tcase UINT8: \n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tbyte[] arr= new byte[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Byte)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT16:\n\t\tcase UINT16:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tshort[] arr= new short[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Short)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT32:\n\t\tcase UINT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tint[] arr= new int[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Integer)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase INT64:\n\t\tcase UINT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tlong[] arr= new long[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Long)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase BOOLEAN:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tboolean[] arr= new boolean[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Boolean)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tfloat[] arr= new float[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Float)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tdouble[] arr= new double[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Double)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase USTRING:\n\t\t{\n\t\t\tList<String> lst = new ArrayList<String>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((String)obj);\n\t\t\t}\n\t\t\treturn lst.toArray(new String[lst.size()]);\n\t\t} \n\n\t\tcase BSTRING:\n\t\tcase RSTRING:\n\t\t{\n\t\t\tList<RString> lst = new ArrayList<RString>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((RString)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase TUPLE:\n\t\t{\n\t\t\tList<Tuple> lst = new ArrayList<Tuple>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Tuple)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase LIST:\n\t\tcase BLIST:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase SET:\n\t\tcase BSET:\n\t\t{\n\t\t\tSet<Object> lst = new HashSet<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase DECIMAL32:\n\t\tcase DECIMAL64:\n\t\tcase DECIMAL128:\n\t\t{\n\t\t\tList<BigDecimal> lst = new ArrayList<BigDecimal>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((BigDecimal)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase TIMESTAMP:\n\t\t{\n\t\t\tList<Timestamp> lst = new ArrayList<Timestamp>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Timestamp)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\n\t\t//TODO -- not yet supported types\n\t\tcase BLOB:\n\t\tcase MAP:\n\t\tcase BMAP:\n\t\tcase COMPLEX32:\n\t\tcase COMPLEX64:\n\t\tdefault:\n\t\t\tthrow new Exception(\"Unhandled array type: \" + ctype.getElementType().getMetaType());\n\t\t}\n\n\t}",
"public void addDatatoArrayList(ArrayList<Object> ar1) {\n\t\tar1.add(1);\n\t\tar1.add(\"anu\");\n\t\tar1.add(1.3);\n\t\tar1.add(true);\n\t\tar1.add('&');\n\t\tar1.add(false);\n\t\tSystem.out.println(\"Data aaded to ArrayList\");\n\t}",
"public static void main(String[] args) {\n\t\tArrayList rawList = new ArrayList();\n\t\t\n\t\t//collection can hhold any type of data\n\t\trawList.add(\"jai shree ram\");\n\t\trawList.add(23);\n\t\trawList.add(new Object());\n\t\t\n\t\t//problem is here\n\t\tString one = (String) rawList.get(0);\n\t\tint two = (Integer) rawList.get(1);\n\t\tObject three = rawList.get(2);\n\t\tSystem.out.println(one + \" \" + two + \" \"+three);\n\t\t\n\t}",
"@Test\r\n\tpublic void testToArrayType() {\r\n\t\tMunitions[] sample1 = new Munitions[5];\r\n\t\tsample1 = list.toArray(sample1);\r\n\t\tAssert.assertEquals(15, sample1.length);\r\n\t\tfor (int i = 0; i < sample1.length; i++) {\r\n\t\t\tAssert.assertNotNull(sample1[i]);\r\n\t\t}\r\n\t\tMunitions[] sample2 = new Munitions[20];\r\n\t\tsample2 = list.toArray(sample2);\r\n\t\tAssert.assertEquals(20, sample2.length);\r\n\t\tfor (int i = 0; i < sample2.length - list.size(); i++) {\r\n\t\t\tAssert.assertNotNull(sample1[i]);\r\n\t\t}\r\n\t}",
"public interface ExternalArrayData{\n /**\n * Return the element at the specified index. The result must be a type that is valid in JavaScript:\n * Number, String, or Scriptable. This method will not be called unless \"index\" is in\n * range.\n */\n Object getArrayElement(int index);\n\n /**\n * Set the element at the specified index. This method will not be called unless \"index\" is in\n * range. The method must check that \"value\" is a valid type, and convert it if necessary.\n */\n void setArrayElement(int index, Object value);\n\n /**\n * Return the length of the array.\n */\n int getArrayLength();\n}",
"public static void main(String args[]) throws IOException, ClassNotFoundException {\n ArrayList<Integer> intArrayList = new ArrayList<Integer>();\n ArrayList<String> stringArrayList = new ArrayList<String>();\n \n // Add numbers to intArrayList\n for (int i=0;i<10;i++){\n intArrayList.add(i);\n }\n \n // Add strings to stringArrayList\n for (Integer i : intArrayList){\n stringArrayList.add(\"Nummer \" + i);\n }\n \n System.out.println(\"ArrayList of Integer objects\");\n printArrayList(intArrayList);\n System.out.println();\n \n System.out.println(\"ArrayList of String objects\");\n printArrayList(stringArrayList);\n System.out.println();\n \n writeArrayList(intArrayList);\n System.out.println(readArrayList());\n }",
"public ArrayList() {\n arr = (T[]) new Object[10];\n size = 0;\n }",
"public static void main(String[] args) {\n\n Integer[] integers = new Integer[] {1,2,3,4,5};\n List<Integer>list = new ArrayList<>(Arrays.asList(integers)); // correct one\n System.out.println(\"Converted from Array to List = \" + list);\n\n // this will be a fixed-size list- you can not use add method.\n List<Integer>fixedSizeList = Arrays.asList(integers); // bunu da yapabiliriz ama element ekleme yapamayiz.\n //fixedSizeList.add(6); bunda hata verecek. cunku fixedsize olarak convert ettik. \"unsupported operation exception\" uyarisi verir\n\n\n //Converting list to Array\n Integer[] convertedFromList =list.toArray(new Integer[0]); // sifir yerine herhangi bi sey yazilabilir. ama 0 yazmada fayda var.\n System.out.println(\"Converted from List to Array = \"+ Arrays.toString(convertedFromList));\n\n //Converting an Array to set\n Set<Integer>set = new HashSet<>(Arrays.asList(integers));\n System.out.println(\"Converted from Array to Set = \" + set);\n\n // Converting Set to Array\n Integer[] convertedFromSet = set.toArray(new Integer[0]);\n System.out.println(\"Converted from Set to Array = \" + Arrays.toString(convertedFromSet));\n\n // converting List to Set\n Set<Integer>setFromList = new HashSet<>(list); // bu en cok , ayni value varsa isimize yarar. cunku set'de duplicate yok\n System.out.println(\"Converted list to Set = \" + setFromList);\n\n // Converting Set to List\n List<Integer>listFromSet = new ArrayList<>(setFromList);\n listFromSet.add(9); // en sona ekler\n System.out.println(\"Converted Set to List = \" + listFromSet);\n\n }",
"public ArrayList() {\n\t\tthis.elements = new Object[5];\n\t\tthis.last = -1;\n\t}",
"public static void main(String[] args) {\n\t\tArrayList al = new ArrayList(); // support heterogeneous data main any type of value\r\n\t\t// add new element\r\n\t\tal.add(15);\r\n\t\tal.add(\"welocome\");\r\n\t\tal.add(2020);\r\n\t\tal.add(15.5);\r\n\t\tal.add(\"A\");\r\n\r\n\t\tSystem.out.println(al);\r\n\t\t// size of Arrylist\r\n\t\tSystem.out.println(\"no of index \" + al.size());\r\n\t\t\r\n\t\t// remove method\r\n\t\tal.remove(2);\r\n \tSystem.out.println(al);\r\n\r\n\t\t// Inert a data\r\n\t\tal.add(2, 2021);\r\n\t\tSystem.out.println(\"add the data in array list\" + al);\r\n\t\t// Retried the specific element\r\n\t\r\n \tSystem.out.println(al.get(2));\r\n\t\t// change and replace the element\r\n\t\tal.set(2, 2022);\r\n\t\tSystem.out.println(al);\r\n\t\t\r\n\t\t// search // contains\r\n\t\tSystem.out.println(al.contains(\"welocome\")); \r\n\t\t\r\n\t\t// is empty\r\n\t\tSystem.out.println(al.isEmpty());\r\n\r\n\t\tIterator it = al.iterator();\r\n\t\t\r\n\t\twhile (it.hasNext()) {\r\n\t\tSystem.out.println(it.next());\r\n\t\t}\r\n\r\n\t}",
"public List_inArraySlots() {\n intElements = new int[INITIAL_CAPACITY];\n doubleElements = new double[INITIAL_CAPACITY];\n stringElements = new String[INITIAL_CAPACITY];\n\n typeOfElements = new int[INITIAL_CAPACITY];\n }",
"@org.junit.jupiter.api.Test\r\n void toArray() {\n mll.add(\"A\");\r\n Object [] backDoor = mll.toArray();\r\n backDoor[0] = \"HAHHA\";\r\n\r\n assertEquals(\"A\", mll.get(0));\r\n }",
"public interface ExternalArrayData\n{\n /**\n * Return the element at the specified index. The result must be a type that is valid in JavaScript:\n * Number, String, or Scriptable. This method will not be called unless \"index\" is in\n * range.\n */\n Object getArrayElement(int index);\n\n /**\n * Set the element at the specified index. This method will not be called unless \"index\" is in\n * range. The method must check that \"value\" is a valid type, and convert it if necessary.\n */\n void setArrayElement(int index, Object value);\n\n /**\n * Return the length of the array.\n */\n int getArrayLength();\n}",
"private void doubleArray()\n\t{\n\t\tT[] oldList = list;\n\t\tint oldSize = oldList.length;\n\t\t\n\t\tlist = (T[]) new Object[2 * oldSize];\n\t\t\n\t\t// copy entries from old array to new, bigger array\n\t\tfor (int index = 0; index < oldSize; index++)\n\t\t\tlist[index] = oldList[index];\n\t}",
"public KWArrayList(){\n capacity = INITIAL_CAPACITY;\n theData = (E[]) new Object[capacity];\n }",
"@Test public void getArrayShouldReturnCorrectArray() throws SQLException {\n\t\tList<String> list = new ArrayList<>();\n\t\tArray array = new ListArray(list, Types.VARCHAR);\n\t\tassertTrue(array.getArray() instanceof String[]);\n\t\tlist.add(\"test\");\n\t\tarray = new ListArray(list, Types.VARCHAR);\n\t\tassertEquals(\"test\", ((String[])array.getArray())[0]);\n\t\tlist.add(\"test2\");\n\t\tarray = new ListArray(list, Types.VARCHAR);\n\t\tassertEquals(\"test2\", ((String[])array.getArray())[1]);\n\t}",
"public static void main(String[] args) {\n ArrayList<Object> ar = new ArrayList<Object>();\n ar.add(100);\n ar.add(100);\n ar.add(\"testing\");\n ar.add('c');\n ar.add(12.36);\n ar.add(true);\n\n System.out.println(ar);\n System.out.println(ar.get(4));\n System.out.println(ar.size());\n System.out.println(\"LI = \"+ 0);\n System.out.println(\"HI = \" + (ar.size()-1));\n\n ar.add(500);\n ar.add(400);\n System.out.println(ar.size());\n\n }",
"public abstract ArrayList<? extends Domain> read();",
"public static void main(String[] args)\r\n\t{\nArrayList al = new ArrayList<>();\r\nal.add(10);\r\nal.add(\"manu\");\r\nal.add('m');\r\nObject [] ob=al.toArray();\r\nfor (int i = 0; i < ob.length; i++)\r\n{\r\n\tSystem.out.println(ob[i]);\r\n\t\r\n}\r\n\t}",
"public static void TestGenericMethod_addToCollection()\r\n\t{\n\t\tCollection<Object> objc = new ArrayList<Object>();\r\n\t\tCollection<Integer> intc = new ArrayList<Integer>();\r\n\t\tObject[] objs = new Object[2];\r\n\t\taddToCollection(objs, objc);\r\n\t\tString[] strings = new String[2];\r\n\t\tfor (int i = 0; i < strings.length; ++i)\r\n\t\t\tstrings[i] = Integer.toString(i);\r\n\t\t// Object argument inferred.\r\n\t\taddToCollection(strings, objc);\r\n\t\t// now you can print the array of objects ONLY.\r\n\t\tCollection<String> stringc = new ArrayList<String>();\r\n\t\taddToCollection(strings, stringc);\r\n\t\tint[] ints = new int[2];\r\n\t\tfor (int i = 0; i < ints.length; ++i)\r\n\t\t\tints[i] = i;\r\n\t\t// FAILS: is it an int or string?\r\n\t\t//addToCollection(ints, stringc);\r\n\t\t// FAILS: No autoboxing.\r\n\t\t//addToCollection<Integer>(ints,intc);\r\n\t}",
"public MutableArray(int paramInt, float[] paramArrayOfFloat, ORADataFactory paramORADataFactory)\n/* */ {\n/* 133 */ this.sqlType = paramInt;\n/* 134 */ this.factory = paramORADataFactory;\n/* 135 */ this.isNChar = false;\n/* */ \n/* 137 */ setArray(paramArrayOfFloat);\n/* */ }",
"public ArrayList() {\n elements = new Object[DEFAULT_CAPACITY];\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tObject[] newList = new Object[size * 2];\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tnewList[i] = get(i);\n\t\t}\n\t\tlist = (E[]) newList;\n\t\tsize *= 2;\n\t}",
"public MutableArray(Object[] paramArrayOfObject, int paramInt, CustomDatumFactory paramCustomDatumFactory)\n/* */ {\n/* 180 */ this.sqlType = paramInt;\n/* 181 */ this.old_factory = paramCustomDatumFactory;\n/* 182 */ this.isNChar = false;\n/* */ \n/* 184 */ setObjectArray(paramArrayOfObject);\n/* */ }",
"private void setData(T data, int size, List<? extends T> memory, T type) { }",
"public ArrayList(Object[] e){\n this();\n for(Object i : e){\n this.add((T)i);\n }\n }",
"public NumericObjectArrayList() {\r\n list = new Copiable[10];\r\n count = 0;\r\n }",
"a(ArrayList arrayList) {\n super(1);\n this.$result = arrayList;\n }",
"public static void main(String[] args) {\n\t\tArrayList ar=new ArrayList();\n\t\tar.add(100);\n\t\tar.add(200);\n\t\t\n\t\t ArrayList<Integer> arr=new ArrayList<Integer>();\n\t\t arr.add(10);\n\t\t arr.add(200);\n\t\t arr.add(400);\n\t\t \n\t\t \n\t\t System.out.println(arr.size());//length of arraylist\n\t\t \n\t\t //iteration\n\t\t for(int i=0;i<arr.size();i++) {\n\t\t\t System.out.println(i);\n\t\t }\n\t\t \n\t\t for(Integer e:arr) {\n\t\t\t System.out.println(e);\n\t\t }\n\t\t \n\t\t arr.stream().forEach(e->System.out.println(e));\n\t\t \n\t\t Iterator<Integer>it=arr.iterator();\n\t\t while(it.hasNext()) {\n\t\t\t System.out.println(it.next());\n\t\t }\n\t\tSystem.out.println(\"******************************************\");\n\n\t\t//create one arraylist with another\n\t\t\n\t\tArrayList<Integer> list= new ArrayList<Integer>(Arrays.asList(10,20,30,40,50));\n\t\t\n\t\t//arraylist methods\n\t\t//1.Add\n\t\tlist.add(90);\n\t\tSystem.out.println(list);\n\t\t\n\t\t//2.AddAll\n\t\tArrayList<String> ar1=new ArrayList<String>(Arrays.asList(\"Ruby\",\"Python\",\"Java\",\"C#\"));\n\t\t\n\t\tArrayList<String> ar2=new ArrayList<String>(Arrays.asList(\"Testing\",\"Devops\"));\n\n\t\tar1.addAll(ar2);\n\t\tar2.addAll(ar1);\n\t\tSystem.out.println(ar1);\n\t\tSystem.out.println(ar2);\n\t\t\n\t\t//3.clear\n\t\t//ar1.clear();\n\t\tSystem.out.println(ar1);\n\t\t\n\t\t//4.clone\n\t\tArrayList<String> clonelist=( ArrayList<String>)ar2.clone();\n\t\tSystem.out.println(clonelist);\n\n\t\t//5.contains\n\t\tSystem.out.println(ar2.contains(\"python\"));\n\t\t\n\t\t//6.index of\n\t\tSystem.out.println(ar1);\n\t\tSystem.out.println(ar1.indexOf(\"java\")>0);\n\t\t\n\t\t//7.last index of-returns inetegre\n\t\t\n\t\tArrayList<String> list1=new ArrayList<String>(Arrays.asList(\"Anu\",\"Naveen\",\"Tom\"));\n\t\tint i=list1.lastIndexOf(\"test\");\n\t\tSystem.out.println(i);\n\t\t\n\t\t//8.remove\n\t\tlist1.remove(1);\n\t\tlist1.remove(\"Anu\");\n\t\t\n\t\t//9.removeif\n\t\tArrayList<Integer> numbers=new ArrayList<Integer>(Arrays.asList(1,2,3,4,5,6,7,8,9,10));\n\t\tnumbers.removeIf(num->num%2==0);//printing all odd numbers /elimnating even numbers\n\t\tSystem.out.println(numbers);\n\t\t\n\t\t//10.retain All\n\t\tArrayList<String> al=new ArrayList<String>(Arrays.asList(\"ANu\",\"Robin\",\"Sky\",\"Red\"));\n\t\tal.retainAll(Collections.singleton(\"ANu\"));\n\t\tSystem.out.println(al);\n\t\t\n\t\t//11.How to create a substring from arraylist\n\t\tArrayList<Integer> no=new ArrayList<Integer>(Arrays.asList(1,2,3,4,5,6,7,8,9,12,13,14));\n\t\t\n\t\tArrayList<Integer> substring=new ArrayList<Integer>(no.subList(3, 9));\n\t\tSystem.out.println(substring);\n\t\t\n\t\t//How to convert an arraylist to array\n\t\tObject arr1[]=no.toArray();\n\t\tSystem.out.println(Arrays.toString(arr1));\n\t\t\n\t\tfor(Object e:arr1) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\t/*How to synchronise arraylist\n\t\t * 1.collections.synchronisedlist()->returns a synchronised list\n\t\t * 2.CopyOnWriteArraylist-synchronised variant of arraylist\n\t\t*/\n\t\t\n\t\tList<String> namelist=(List<String>) Collections.synchronizedCollection(new ArrayList<String>());\n\t\t\n\t\t\n\t\t//How to remove duplicate elements using linkedhashset and streams\n\t\t\n\t\t//how to compare 2 arraylist\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList1() {\n\t\telements = (E[]) new Object[CAPACITY];\n\t\tsize = 0;\n\t}",
"private PyObject[] listtoarray(ArrayList<PyObject> a)\n {\n PyObject[] results = new PyObject[a.size()];\n int iter = 0;\n for (PyObject pt : a) {\n results[iter] = pt;\n iter++;\n }\n return results;\n }",
"@Test\n\tpublic void createListWithArraysUtil() {\n\t\tList<String> list = new ArrayList<>();\n\t\tlist.add(\"AAPL\");\n\t\tlist.add(\"MSFT\");\n\n\t\tList<String> copy = Arrays.asList(\"AAPL\", \"MSFT\");\n\n\t\tassertTrue(list.equals(copy));\n\t}",
"public static void main(String[] args) {\n ArrayList<String> list = new ArrayList<>(3); // from JDK1.7+, <>可以不写内容,但<>本身要写\n System.out.println(list); // 空的ArrayList 打印输出:[]\n\n /*\n ArrayList.add()\n */\n\n // 向集合内添加数据,需要add(), 返回 true or false\n boolean isSuccess1 = list.add(\"Roger\");\n boolean isSuccess2 = list.add(\"Francesca\");\n boolean isSuccess3 = list.add(\"Keka\");\n System.out.println(list); // [Hello, world, !!!]\n\n System.out.println(\"1. Add is success? \" + isSuccess1); // true\n System.out.println(\"2. Add is success? \" + isSuccess2); // true\n System.out.println(\"3. Add is success? \" + isSuccess3); // true\n\n //list.add(100) // wrong datatype, should be String, same with <String>\n\n /*\n ArrayList.get()\n */\n String name = list.get(1);\n System.out.println(\"1. element in ArrayList is \" + name); // Francesca, index start from 0\n\n /*\n ArrayList.remove()\n */\n String removeName = list.remove(2);\n System.out.println(\"Removed name is \" + removeName); // Keka\n System.out.println(list); // [Roger, Francesca]\n\n /*\n ArrayList.size()\n */\n int size = list.size();\n System.out.println(size); // 2\n\n /*\n ArrayList excises\n */\n ArrayList<String> list2 = new ArrayList<>();\n list2.add(\"person1\");\n list2.add(\"person2\");\n list2.add(\"person3\");\n\n // iterate ArrayList\n for (int i = 0; i < list2.size(); i++) {\n System.out.println(list2.get(i));\n }\n\n\n }",
"private void m10259a(ArrayList<Double> arrayList) {\n int size = arrayList.size();\n if (size <= this.f8993u) {\n this.f8973a.mo3315b((ArrayList) arrayList);\n return;\n }\n ArrayList arrayList2 = new ArrayList();\n int i = size / this.f8993u;\n for (int i2 = 0; i2 < this.f8993u; i2++) {\n int i3 = i2 * i;\n if (i3 >= size) {\n arrayList2.add(arrayList.get(size - 1));\n } else {\n arrayList2.add(arrayList.get(i3));\n }\n }\n this.f8973a.mo3315b(arrayList2);\n }",
"public static void main(String[] args) {\n //Generic Version of Collection\n ArrayList<String> arrayList = new ArrayList<>();\n arrayList.add(\"Deepak\");\n arrayList.add(\"Kumar\");\n arrayList.add(\"Hello\");\n arrayList.add(\"Sandeep\");\n System.out.println(\"Collection Before Array Conversion=\" + arrayList);\n String[] names = new String[arrayList.size()];\n arrayList.toArray(names);\n System.out.println(\"Array After Conversion From Collection\");\n for (int i = 0; i < names.length; i++) {\n System.out.println(names[i]);\n }\n //Collection Normal Version\n ArrayList arrayList1 = new ArrayList<>();\n arrayList1.add(\"Deepak\");\n arrayList1.add('a');\n arrayList1.add(1);\n arrayList1.add(10.9f);\n arrayList1.add(10.90);\n arrayList1.add(true);\n\n\n System.out.println(\"Normal Colection without Conversion\"+arrayList1);\n Object[] object = arrayList1.toArray();\n\n System.out.println(\"Array After Conversion From Normal Collection\");\n for (int i = 0; i < object.length; i++) {\n System.out.println(object[i]);\n }\n\n ///Array to Collection Conversion\n String[] names1 = new String[]{\"Deepak\",\"Kuldeep\",\"Sandeep\",\"Pardeep\"};\n ArrayList<String> namesCollection = new ArrayList(Arrays.asList(names1));\n System.out.println(namesCollection);\n\n\n }",
"public void mo44054a(String str, Object obj) {\n if (this.f41052d == null) {\n this.f41052d = new ArrayList(this.f41051c != null ? 2 : 1);\n }\n if (this.f41051c != null) {\n this.f41052d.add(str);\n }\n int i = 0;\n if (obj instanceof byte[]) {\n byte[] bArr = (byte[]) obj;\n ArrayList arrayList = new ArrayList(bArr.length);\n int length = bArr.length;\n while (i < length) {\n arrayList.add(Byte.valueOf(bArr[i]));\n i++;\n }\n this.f41052d.add(arrayList);\n } else if (obj instanceof boolean[]) {\n boolean[] zArr = (boolean[]) obj;\n ArrayList arrayList2 = new ArrayList(zArr.length);\n int length2 = zArr.length;\n while (i < length2) {\n arrayList2.add(Boolean.valueOf(zArr[i]));\n i++;\n }\n this.f41052d.add(arrayList2);\n } else if (obj instanceof short[]) {\n short[] sArr = (short[]) obj;\n ArrayList arrayList3 = new ArrayList(sArr.length);\n int length3 = sArr.length;\n while (i < length3) {\n arrayList3.add(Short.valueOf(sArr[i]));\n i++;\n }\n this.f41052d.add(arrayList3);\n } else if (obj instanceof char[]) {\n char[] cArr = (char[]) obj;\n ArrayList arrayList4 = new ArrayList(cArr.length);\n int length4 = cArr.length;\n while (i < length4) {\n arrayList4.add(Character.valueOf(cArr[i]));\n i++;\n }\n this.f41052d.add(arrayList4);\n } else if (obj instanceof int[]) {\n int[] iArr = (int[]) obj;\n ArrayList arrayList5 = new ArrayList(iArr.length);\n int length5 = iArr.length;\n while (i < length5) {\n arrayList5.add(Integer.valueOf(iArr[i]));\n i++;\n }\n this.f41052d.add(arrayList5);\n } else if (obj instanceof long[]) {\n long[] jArr = (long[]) obj;\n ArrayList arrayList6 = new ArrayList(jArr.length);\n int length6 = jArr.length;\n while (i < length6) {\n arrayList6.add(Long.valueOf(jArr[i]));\n i++;\n }\n this.f41052d.add(arrayList6);\n } else if (obj instanceof float[]) {\n float[] fArr = (float[]) obj;\n ArrayList arrayList7 = new ArrayList(fArr.length);\n int length7 = fArr.length;\n while (i < length7) {\n arrayList7.add(Float.valueOf(fArr[i]));\n i++;\n }\n this.f41052d.add(arrayList7);\n } else if (obj instanceof double[]) {\n double[] dArr = (double[]) obj;\n ArrayList arrayList8 = new ArrayList(dArr.length);\n int length8 = dArr.length;\n while (i < length8) {\n arrayList8.add(Double.valueOf(dArr[i]));\n i++;\n }\n this.f41052d.add(arrayList8);\n } else {\n this.f41052d.add(obj);\n }\n }",
"public void method_6436() {\r\n super();\r\n this.field_6225 = new ArrayList();\r\n this.field_6226 = new HashMap();\r\n }",
"void setNullArray()\n/* */ {\n/* 1051 */ this.length = -1;\n/* 1052 */ this.elements = null;\n/* 1053 */ this.datums = null;\n/* 1054 */ this.pickled = null;\n/* 1055 */ this.pickledCorrect = false;\n/* */ }",
"public MutableArray(float[] paramArrayOfFloat, int paramInt, CustomDatumFactory paramCustomDatumFactory)\n/* */ {\n/* 213 */ this.sqlType = paramInt;\n/* 214 */ this.old_factory = paramCustomDatumFactory;\n/* 215 */ this.isNChar = false;\n/* */ \n/* 217 */ setArray(paramArrayOfFloat);\n/* */ }",
"@Test\r\n public void testGenericArray()\r\n {\r\n Type t0 = Types.create(List.class).withType(Number.class).build();\r\n Type arrayType = Types.createGenericArrayType(t0);\r\n test(arrayType);\r\n }",
"public MutableArray(int[] paramArrayOfInt, int paramInt, CustomDatumFactory paramCustomDatumFactory)\n/* */ {\n/* 202 */ this.sqlType = paramInt;\n/* 203 */ this.old_factory = paramCustomDatumFactory;\n/* 204 */ this.isNChar = false;\n/* */ \n/* 206 */ setArray(paramArrayOfInt);\n/* */ }",
"public MyArrayList() {\n this.IntList = new int[10];\n this.CharList = new Character[10];\n this.StringList = new String[5];\n \n // fill all 3 arrays with data\n for(int i = 0; i < IntList.length; i++) {\n IntList[i] = (int) (Math.random()*52);\n }\n\t \n // Populate char array\n for(int i = 0; i < CharList.length; i++) {\n \n Random random = new Random();\n CharList[i] = (char)(random.nextInt(26) + 'a');\n }\n\t \n // Populate String array\n StringList[0] = \"joe\";\n StringList[1] = \"mark\";\n StringList[2] = \"abbey\";\n StringList[3] = \"tony\";\n StringList[4] = \"kevin\"; \n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tint tempSize = size * 2;\n\t\tE[] tempList = (E[]) new Object[tempSize];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\ttempList[i] = list[i];\n\t\t}\n\t\tlist = tempList;\n\t}",
"public MutableArray(Datum[] paramArrayOfDatum, int paramInt, CustomDatumFactory paramCustomDatumFactory)\n/* */ {\n/* 169 */ this.sqlType = paramInt;\n/* 170 */ this.old_factory = paramCustomDatumFactory;\n/* 171 */ this.isNChar = false;\n/* */ \n/* 173 */ setDatumArray(paramArrayOfDatum);\n/* */ }",
"@Test public void getBaseTypeShouldReturnCorrectType() throws SQLException {\n\t\tList<Object> list = new ArrayList<>();\n\t\tArray array;\n\t\tfor (int type : Array.TYPES_SUPPORTED) {\n\t\t\tarray = new ListArray(list, type);\n\t\t\tassertEquals(type, array.getBaseType());\n\t\t}\n\t}",
"public void updateAnimalList(){\r\n // if (animals != null && animals.size() > 0)\r\n // {\r\n // \r\n // }\r\n // else\r\n // {\r\n animals.clear();\r\n \r\n for (fit5042.assign.repository.entity.Animal animal : animalManagedBean.getAllAnimals())//for each animal entry in the Entity Class Animal, get all animals\r\n {\r\n animals.add(animal); //add Animal data to the ArrayList<Animal> animals\r\n }\r\n \r\n setAnimal(animals); //set the global ArrayList attribute with the local ArrayList attribute\r\n // }\r\n }",
"public OrderedArrayList()\n {\n _data = new ArrayList<Comparable>();\n }",
"@SuppressWarnings(\"unchecked\")\n public ArrayList(ArrayList<E> lst) {\n list = (E[])new Object[lst.size()];\n capacity = lst.capacity;\n size = lst.size;\n for(int i = 0; i < size; i++) {\n list[i] = lst.list[i];\n }\n }",
"public static void main(String[] args) {\n ArrayList<IntClass> intClassArrayList = new ArrayList<IntClass>();\n for(int i=0 ;i < 10 ;i++){\n intClassArrayList.add(i,new IntClass(i+1));\n }\n\n for(int i=0 ;i<intClassArrayList.size();i++){\n System.out.println(intClassArrayList.get(i).getNumber()+\" \");\n }\n\n ArrayList<Integer> integerArrayList = new ArrayList<Integer>();\n for(int i=0 ;i<10;i++){\n integerArrayList.add(Integer.valueOf(i));\n }\n\n for(int i=0 ;i<integerArrayList.size();i++){\n System.out.println(i + \" ----> \"+ integerArrayList.get(i).intValue());\n }\n\n ArrayList<Double> doubleArrayList = new ArrayList<Double>();\n for(double dbl = 0 ; dbl < 10.0 ;dbl += 1.0){\n doubleArrayList.add(Double.valueOf(dbl));\n }\n\n for(int i=0;i<doubleArrayList.size() ; i++){\n System.out.println(i + \" ----> \"+ doubleArrayList.get(i).doubleValue());\n }\n\n ArrayList<Long> longArrayList = new ArrayList<Long>();\n System.out.print(\"Enter the number of inputs Size : \");\n int noOfElements = scanner.nextInt();\n\n for(int i=0;i< noOfElements ;i++){\n System.out.print(\"Enter long integer \"+(i+1) +\" : \" );\n longArrayList.add(Long.valueOf(scanner.nextLong()));\n }\n\n System.out.println(\"The Long values are : \");\n for(int i=0;i<longArrayList.size();i++){\n System.out.println(\"Value \"+(i+1) + \" : \"+longArrayList.get(i).longValue());\n }\n }",
"public MutableArray(int paramInt, double[] paramArrayOfDouble, ORADataFactory paramORADataFactory)\n/* */ {\n/* 111 */ this.sqlType = paramInt;\n/* 112 */ this.factory = paramORADataFactory;\n/* 113 */ this.isNChar = false;\n/* */ \n/* 115 */ setArray(paramArrayOfDouble);\n/* */ }",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default List<IData> asList() {\n \n return notSupportedCast(\"IData[]\");\n }",
"public static void main(String args[]){\r\n Object objArray;\r\n \r\n \t Scanner input = new Scanner(System.in);\r\n \t // display on console enter file name\r\n \t System.out.println(\"Enter array list data separated by a comma - for example 1, 2, 3, 4 : \");\r\n\r\n \t input = new Scanner(System.in);\r\n Object arrayListInput = input.nextLine();\r\n \r\n // create instance of class ArrayList.java\r\n \t Arraylist arrayList = new Arraylist();\r\n\r\n \t // load input data into array list object\r\n \t arrayList.loadArrayList(arrayListInput);\r\n\r\n \t // determine if array list object is empty \t \r\n \t boolean arrayListEmpty = arrayList.isEmpty();\r\n \t \r\n \t System.out.println(\"Is the array list empty \" + arrayListEmpty);\r\n \r\n arrayList.add(\"10\"); \r\n \t System.out.println(\"Add object to array list\");\r\n \t \r\n objArray = arrayList.get(5);\r\n \t System.out.println(\"Get object from array list \");\r\n \r\n }",
"@ZenCodeType.Method\n static IData listOf(IData... members) {\n \n if(members == null) {\n return new ListData();\n }\n \n int type = 0;\n final int byteIndex = 1;\n final int intIndex = 2;\n final int longIndex = 4;\n final int otherIndex = 8;\n \n for(IData member : members) {\n if(member instanceof ByteData) {\n type |= byteIndex;\n } else if(member instanceof IntData || member instanceof ShortData) {\n type |= intIndex;\n } else if(member instanceof LongData) {\n type |= longIndex;\n } else {\n type |= otherIndex;\n }\n }\n \n if((type & otherIndex) != 0) {\n return new ListData(members);\n } else if((type & longIndex) != 0) {\n long[] result = new long[members.length];\n for(int i = 0; i < members.length; i++) {\n result[i] = members[i].asLong();\n }\n return new LongArrayData(result);\n } else if((type & intIndex) != 0) {\n int[] result = new int[members.length];\n for(int i = 0; i < members.length; i++) {\n result[i] = members[i].asInt();\n }\n return new IntArrayData(result);\n } else if((type & byteIndex) != 0) {\n byte[] result = new byte[members.length];\n for(int i = 0; i < members.length; i++) {\n result[i] = members[i].asByte();\n }\n return new ByteArrayData(result);\n }\n \n return new ListData();\n }",
"public static void main(String[] args) {\n\t\tint[] a=new int[10];\n\t\tInteger a1[]= {10,20,30};\n\t\t\n\t\t\n\t\tArrayList<Integer>a2=new ArrayList<Integer>(Arrays.asList(a1));\n\tVector <Integer> aggg4=new Vector<Integer>();\n\tSystem.out.println(aggg4.capacity());\n\t\ta2.add(80);\n\t\ta2.add(90);\n\t\ta2.add(100);\n//\t\tfor(int i=0;i<a2.size();i++)\n//\t\t{\n\t\t\tSystem.out.println(a2);\n\t\t\tInteger a3[]=new Integer[a2.size()];\n\t\t\ta2.toArray(a3);\n\t\t\tfor(int i=0;i<a3.length;i++)\n\t\t\t{\n\t\t\tSystem.out.println(a3[i]);\n\t\t\t}\n\t\t\tArrayList a4=new ArrayList<Integer>();\n\t\t\ta4.add(110);\n\t\t\ta4.add(120);\n\t\t\tObject[] i=a4.toArray();\n\t\t\tfor(Object oo:i)\n\t\t\t{\n\t\t\t\tSystem.out.println(oo);\n\t\t\t}\n\t\n\t\t\t\n\t\t\t\n\t//}\n\t}",
"public static void main(String[] args) {\n Collection collection= new ArrayList();\n collection.add(1500);\n collection.add(true);\n collection.add(12.32);\n collection.add(\"s\");\n collection.add('f');\n //System.out.println(collection);\n\n //Collection add(item) bunda item qo'sha olsa true aksi bo'lsa false qataradi\n System.out.println(collection.add(2200)); // bunda console da true bo'ladi 2200 qo'sha olgani uchun\n\n /* Collection ni addAll metothdi bu bizga collection methodiga narsalarni collection1 b-n\n ketma ketlikda qo'shish imkonini beradi*/\n\n Collection collection1=new ArrayList();\n collection1.addAll(collection);\n collection1.add(\"otherNumber1\");\n collection1.add(\"otherNumber2\");\n collection1.add(\"otherNumber3\");\n System.out.println(collection1);\n\n // boolean remove(object item) bu ko'rsatilgan obyektni collectionda o'chiradi listlarda index bilan bajariladi\n collection1.remove(12.32);\n System.out.println(collection1);\n\n // boolean removeAll(Collection<?> col)\n collection1.removeAll(collection);\n System.out.println(collection1);\n\n\n\n\n\n }",
"public MyArrayList() {\n elements = new Object[DEFAULT_CAPACITY];\n }",
"public static void m5(ArrayList<? super B> al)\n\t{\n\t\t//al.add(\"Marshal Mathers\");\n\t\t//al.add(\"Slim Shady\");\n\t\t//al.add(345);\n\t\tal.add(null);\t// null is allowed, because it is valid value for any type\n\t}",
"public MutableArray(int paramInt, Object[] paramArrayOfObject, ORADataFactory paramORADataFactory)\n/* */ {\n/* 100 */ this.sqlType = paramInt;\n/* 101 */ this.factory = paramORADataFactory;\n/* 102 */ this.isNChar = false;\n/* */ \n/* 104 */ setObjectArray(paramArrayOfObject);\n/* */ }",
"public static void m3(ArrayList<? extends Number> al)\n\t{\n\t\t//al.add(\"Marshal Mathers\");\n\t\t//al.add(\"Slim Shady\");\n\t\tal.add(null);\t// null is allowed, because it is valid value for any type\n\t}",
"public ArrayList(int initialCapacity, int growthFactor) {\n\t\tthis.storedObjects = new Object[initialCapacity];\n\t\tthis.growthFactor = growthFactor;\n\t}",
"public COSArrayList( List<E> actualList, COSArray cosArray )\n {\n actual = actualList;\n array = cosArray;\n\n // if the number of entries differs this may come from a filter being\n // applied at the PDModel level \n if (actual.size() != array.size()) {\n isFiltered = true;\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList() {\n\t\tsize = 0;\n\t\tlist = (E[]) new Object[INIT_SIZE];\n\t}",
"interface MyCollection{\n\n boolean\tadd(Object o); // Ensures that this collection contains the specified element (optional operation).\n void\tclear(); // Removes all of the elements from this collection (optional operation).\n boolean\tcontains(Object o); // Returns true if this collection contains the specified element.\n boolean\tequals(Object o); // Compares the specified object with this collection for equality.\n boolean\tremove(Object o); // Removes a single instance of the specified element from this collection, if it is present (optional operation).\n boolean\tisEmpty(); // Returns true if this collection contains no elements.\n int\tsize(); // Returns the number of elements in this collection.\n //Object[] toArray(); // Returns an array containing all of the elements in this collection.\n\n/*\n boolean\tcontainsAll(Collection<?> c); Returns true if this collection contains all of the elements in the specified collection.\n int\thashCode(); Returns the hash code value for this collection.\n Iterator<E>\titerator(); Returns an iterator over the elements in this collection.\n boolean\tremoveAll(Collection<?> c); Removes all of this collection's elements that are also contained in the specified collection (optional operation).\n boolean\tretainAll(Collection<?> c); Retains only the elements in this collection that are contained in the specified collection (optional operation).\n <T> T[]\ttoArray(T[] a); Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array.\n*/\n\n\n\n\n}",
"void setDatumArray(Datum[] paramArrayOfDatum)\n/* */ {\n/* 979 */ if (paramArrayOfDatum == null) {\n/* 980 */ setNullArray();\n/* */ }\n/* */ else {\n/* 983 */ this.length = paramArrayOfDatum.length;\n/* 984 */ this.elements = null;\n/* 985 */ this.datums = ((Datum[])paramArrayOfDatum.clone());\n/* 986 */ this.pickled = null;\n/* 987 */ this.pickledCorrect = false;\n/* */ }\n/* */ }",
"public void setArrayList(ArrayList<Chalet> arrayList) {\n this.arrayList.addAll(arrayList);\n notifyDataSetChanged();// to update the sutats\n }",
"public SimpleArrayList(E[] array) {\n this.values = Arrays.copyOf(array, array.length);\n this.index = this.values.length;\n }",
"public ArrayList61B(int initialCapacity) { \n\t\tif (initialCapacity < 1) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\telse {\n\t\t\tthis.size = initialCapacity;\n\t\t\tthis.arrayList = (E[]) new Object[this.size];\n\t\t\tthis.numberOfElements = 0;\n\t\t}\n\t}",
"private Object[] buildList(int size) {\n list.clear();\n int expectedSize = ArrayList.INITIAL_CAPACITY;\n while (expectedSize < size) {\n expectedSize *= 2;\n }\n Object[] expected = new Object[expectedSize];\n\n for (int i = 0; i < size; i++) {\n String data = i + \"a\";\n list.addToBack(data);\n expected[i] = data;\n }\n return expected;\n }",
"public static void main(String[] args) {\n Integer[] mymass= new Integer[10];\n for(int i=0;i<mymass.length;i++)\n mymass[i]=i;\n System.out.println(Arrays.toString(mymass));\n replace(mymass,3,4);\n System.out.println(Arrays.toString(mymass));\n\n ArrayList<Integer> mylist =toArrayList(mymass);\n\n Apple a1=new Apple();\n Apple a2=new Apple();\n Apple a3=new Apple();\n\n Orange o1 = new Orange();\n Orange o2= new Orange();\n\n Box<Apple> box1 = new Box<Apple>();\n Box<Orange> box2 = new Box<Orange>();\n\n box1.putbox(a1);\n box1.putbox(a2);\n box1.putbox(a3);\n\n }",
"testarray() {\r\n \tarrayList = new Arraylist();\t\r\n\t}",
"public interface IArrayList <E> {\n void add(E e);\n\n}",
"public MyArrayList() {\r\n\t\tthis.list=new Object[this.capacity];\r\n\t}",
"public void add(T element) {\n if (size + 1 >= capacity) {\n if (capacity == 0) capacity = 1;\n else capacity *= 2; // double the array size\n T[] tempArrayList = (T[]) new Object[capacity];\n for (int i = 0; i < size; i++) tempArrayList[i] = genericArrayList[i];\n genericArrayList = tempArrayList; // genericArray has extra null at the end\n }\n genericArrayList[size++] = element;\n }",
"public abstract ArrayList<STTPoint> getWrappedData();"
] | [
"0.6581157",
"0.6578604",
"0.6384306",
"0.63233584",
"0.629145",
"0.62519056",
"0.6232327",
"0.6226919",
"0.61898947",
"0.6181715",
"0.61740243",
"0.61378604",
"0.612578",
"0.60696733",
"0.605858",
"0.6045574",
"0.6026386",
"0.5999936",
"0.5992958",
"0.5963747",
"0.59445965",
"0.5940551",
"0.5927136",
"0.5917119",
"0.5916223",
"0.5911339",
"0.5890999",
"0.5882808",
"0.5882787",
"0.5875836",
"0.5817858",
"0.58065075",
"0.58062667",
"0.58000916",
"0.5799342",
"0.57908577",
"0.5786872",
"0.5771357",
"0.57689226",
"0.57644355",
"0.5759824",
"0.5740063",
"0.57272726",
"0.5721208",
"0.57208097",
"0.5719097",
"0.57163465",
"0.569876",
"0.56969535",
"0.5695834",
"0.56937516",
"0.5687806",
"0.5679085",
"0.5678568",
"0.56623626",
"0.5655592",
"0.56524837",
"0.56338936",
"0.5631016",
"0.5622679",
"0.56211966",
"0.56181324",
"0.56092215",
"0.5608556",
"0.5606597",
"0.5606105",
"0.56031245",
"0.55900335",
"0.55884224",
"0.5585434",
"0.55703527",
"0.5570139",
"0.5568461",
"0.55682886",
"0.5566488",
"0.556608",
"0.55425656",
"0.5539703",
"0.5537508",
"0.5531515",
"0.5528754",
"0.5524077",
"0.55208033",
"0.55180675",
"0.55132663",
"0.55091065",
"0.5501351",
"0.55005723",
"0.54948837",
"0.5493403",
"0.5492398",
"0.5489422",
"0.5485202",
"0.5484534",
"0.5476182",
"0.54598904",
"0.5458206",
"0.54547983",
"0.5452827",
"0.54465485",
"0.544169"
] | 0.0 | -1 |
Removes all EnemyFish 'hit' by a FishBomb. Updates the score of the player for every 'hit' fish. | public void handleFishBomb(FishBomb aFishBomb) {
ArrayList<EnemyFish> fishToRemove = new ArrayList<EnemyFish>();
for (EnemyFish currEnemyFish : fEnemyFishList) {
BoundingBox currEnemyFishBoundingBox = currEnemyFish.getSprite().getBoundingBox();
if (aFishBomb.intersectsRectangle(currEnemyFishBoundingBox)) {
GameLoop.updateScore(currEnemyFish);
fishToRemove.add(currEnemyFish);
}
}
for (EnemyFish currEnemyFish : fishToRemove) {
fEnemyFishList.remove(currEnemyFish);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clearEnemies() {\n\t\tIterator<Entity> it = entities.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tEntity e = it.next();\n\t\t\t//Skip playerfish\n\t\t\tif (e instanceof PlayerFish) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//Kill and remove the entity\n\t\t\te.kill();\n\t\t\tit.remove();\n\t\t}\n\t\t\n\t\t//Remove all non playerfish from collidables\n\t\tcollidables.removeIf(c -> !(c instanceof PlayerFish));\n\t\tdrawables.removeIf(c -> !(c instanceof PlayerFish));\n\t}",
"public void checkForHits(){\n\t\tfor(Missile missile : this.missiles){\n\t\t\tif(missile != null && !missile.isDestroyed()){\n\t\t\t\t// Check buildings\n\t\t\t\tfor (int i = 0; i < this.buildings.length; i++) {\n\t\t\t\t\tif(!this.buildings[i].isDestroyed()){\n\t\t\t\t\t\tif (this.buildings[i].getHitBox().intersects(missile.getHitBox())) {\n\t\t\t\t\t\t\tthis.buildings[i].destroy();\n\t\t\t\t\t\t\tmissile.setDestroyed(true);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Check turrets\n\t\t\t\tfor (int i = 0; i < this.turrets.length; i++ ) {\n\t\t\t\t\tif(!this.turrets[i].isDestroyed()){\n\t\t\t\t\t\tif (!missile.isFriendly() && this.turrets[i].getHitBox().intersects(missile.getHitBox())) {\n\t\t\t\t\t\t\tthis.turrets[i].destroy();\n\t\t\t\t\t\t\tmissile.setDestroyed(true);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Checks Missile vs. Friendly Missile collisions\n\t\t\t\tfor (Missile fMissile : this.friendlyMissiles){\n\t\t\t\t\tif(!fMissile.isDestroyed() && fMissile != null){\n\t\t\t\t\t\tif (missile.getHitBox().intersects(fMissile.getHitBox())) {\n\t\t\t\t\t\t\tfMissile.setDestroyed(true);\n\t\t\t\t\t\t\tmissile.setDestroyed(true);\n\t\t\t\t\t\t\tthis.incrementScore(this.SCORE_INCREASE);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void drop(){\r\n if(activeFish.isEmpty()) return;\r\n \r\n ArrayList<Fish> toremove = new ArrayList<Fish>();\r\n for(Fish bone : activeFish){\r\n bone.drop();\r\n\r\n if(!(bone.inBounds())){ // branch for out of bound fh\r\n toremove.add(bone);\r\n }\r\n }\r\n missedFish(toremove);\r\n\r\n update();\r\n }",
"public void missedFish(ArrayList<Fish> hitList){\r\n for(Fish missing: hitList){\r\n getChildren().remove(missing.fishView);\r\n activeFish.remove(missing);\r\n }\r\n }",
"public void removeAllMissiles(){\n\t\tfor (Missile missile : this.missiles){\n\t\t\tif(!missile.isDestroyed() && missile != null){\n\t\t\t\tmissile.setDestroyed(true);\n\t\t\t\tmissile = null;\n\t\t\t}\n\t\t}\n\t\tfor (Missile fMissile : this.friendlyMissiles){\n\t\t\tif(!fMissile.isDestroyed() && fMissile != null){\n\t\t\t\tfMissile.setDestroyed(true);\n\t\t\t\tfMissile = null;\n\t\t\t}\n\t\t}\n\t}",
"public void removeOffScreenEnemyFish(BoundingBox aBoundingBox) {\n for (int i = 0; i < fEnemyFishList.size(); i++) {\n EnemyFish currEnemyFish = fEnemyFishList.get(i);\n BoundingBox currEnemyFishBoundingBox = currEnemyFish.getSprite().getBoundingBox();\n if (!aBoundingBox.intersects(currEnemyFishBoundingBox)) {\n this.remove(i);\n }\n }\n }",
"private void fireball1Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball1.getX() - 1, fireball1.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball1.getX() - 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tGObject topRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY());\r\n\t\tGObject bottomRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tif(topLeft == player || bottomLeft == player || topRight == player || bottomRight == player) {\r\n\t\t\tremove(fireball1);\r\n\t\t\tfireball1 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"public void removeMissiles(){\n nunMissiles--;\n }",
"private void fireball2Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball2.getX() - 1, fireball2.getY());\r\n\t\tGObject topRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball2.getX() - 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tGObject bottomRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(fireball2);\r\n\t\t\tfireball2 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"public void endBattle() {\n for (BattleEffect btlEff : effectsToRemove) {\n btlEff.remove();\n }\n playerInCombat.resetHealthAndMana();\n }",
"static void removeBomb(int x, int y)\r\n {\r\n Map<Integer,Integer> map = new HashMap<Integer, Integer>();\r\n damagedBombs.put(x, map); \r\n damagedBombs.get(x).put(y,0);\r\n \r\n /*\r\n if(twoSecondBombs.get(x) != null)\r\n twoSecondBombs.get(x).remove(y);\r\n \r\n if(oneSecondBombs.get(x) != null)\r\n oneSecondBombs.get(x).remove(y);\r\n */\r\n }",
"public void removeBalls() {\r\n for (Ball ball : this.ballsList) {\r\n ball.removeFromGame(this);\r\n }\r\n this.ballsList.clear();\r\n }",
"void delete_missiles() {\n // Player missiles\n for (int i = ship.missiles.size()-1; i >= 0; i --) {\n Missile missile = ship.missiles.get(i);\n if (missile.y_position <= Dimensions.LINE_Y) {\n ImageView ship_missile_image_view = ship_missile_image_views.get(i);\n game_pane.getChildren().remove(ship_missile_image_view);\n ship_missile_image_views.remove(i);\n ship.missiles.remove(missile);\n }\n }\n\n // Enemy missiles\n for (int i = Alien.missiles.size()-1; i >= 0; i --) {\n Missile missile = Alien.missiles.get(i);\n if (missile.y_position > scene_height) {\n ImageView alien_missile_image_view = alien_missile_image_views.get(i);\n game_pane.getChildren().remove(alien_missile_image_view);\n alien_missile_image_views.remove(i);\n Alien.missiles.remove(missile);\n }\n }\n }",
"void clear_missiles() {\n // Remove ship missiles\n ship.missiles.clear();\n for (ImageView ship_missile_image_view : ship_missile_image_views) {\n game_pane.getChildren().remove(ship_missile_image_view);\n }\n ship_missile_image_views.clear();\n\n // Remove alien missiles\n Alien.missiles.clear();\n for (ImageView alien_missile_image_view : alien_missile_image_views) {\n game_pane.getChildren().remove(alien_missile_image_view);\n }\n alien_missile_image_views.clear();\n }",
"private void deleteAttacks(){\n while(!attacksToDelete.isEmpty()){\n attacks.remove(attacksToDelete.remove());\n }\n }",
"public void sharkAttack() {\n if (fins>0) \n fins--;\n }",
"void removeBomb();",
"public void act() \r\n {\r\n Actor hitMC = getOneIntersectingObject(MC.class);\r\n if (hitMC != null) {\r\n ((Hall) getWorld()).player.health++;\r\n getWorld().removeObject(this);\r\n }\r\n }",
"public void killAll() {\n for (Map.Entry<Integer, Enemy> entry :enemies.entrySet()) {\n if (!!!entry.getValue().isDead()) {\n entry.getValue().setHealth(0);\n }\n }\n }",
"public void hitEvent(Block beingHit, Ball hitter) {\r\n if (beingHit.getHits() <= 1) {\r\n beingHit.removeFromGame(this.gameLevel);\r\n this.remainingBlocks.decrease(1);\r\n }\r\n }",
"public void checkBombs(final Integer tile){\n if(bombs_location.contains(tile)){\n if(invulnerable){\n showTimedAlertDialog(\"PHEW!\", \"Your GODMODE saved your life\", 5);\n invulnerable = false;\n return;\n }\n invulnerable = false;\n Lejos.makeSound_Boom();\n hp = hp-1;\n DrawHP();\n bombs_location.remove(tile);\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n MultiplayerManager.getInstance().SendMessage(\"bomb_remove \" + revertTile(tile).toString());\n }\n }, 1000);\n if(hp==0){\n onLose();\n }\n showTimedAlertDialog(\"PWNED!\", \"You just stepped on a mine\", 3);\n }\n }",
"public void removeHitListener(HitListener hl) {\nthis.hitListeners.remove(hl);\n}",
"public void performAttack(){\r\n // For every zombie\r\n for (int i = 0 ; i < allZombies.getZombies().size(); i++) {\r\n // Variables used to prevent long getter lines\r\n int zombieX = allZombies.getZombies().get(i).getCurrX();\r\n int zombieY = allZombies.getZombies().get(i).getCurrY();\r\n Zombie zombie = allZombies.getZombies().get(i);\r\n // If the zombie is in range and alive:\r\n if(isInRange(zombieX,zombieY) && zombie.isAlive()) {\r\n // kill the zombie and increase score by 1.\r\n allZombies.getZombies().get(i).setAlive(false);\r\n increaseScore();\r\n }\r\n }\r\n }",
"public void checkForHits ()\n\t\t{\n\t\t\tif (ball.getRectangle().x < 0) {\n\t\t\t\t//computerAI.getCharacter().gotHit(player.getCharacter().getDamage());\n\t\t\t\tplayer1.character.gotHit(player2.character.getDamage());\n\t\t\t\tball.reset();\n\t\t\t\tif (player1.character.getHitPoints() <= 0) { //hit points=0 attempt to end game\n\t\t\t\t\t//WinWindow.lose_window(0);\n\t\t\t\t\tendGame();\n\t\t\t\t}\n\t\t\t} else if (ball.getRectangle().x > WIDTH - ball.getRectangle().width) {\n\t\t\t\tplayer2.character.gotHit(player1.character.getDamage());\n\t\t\t\tball.reset();\n\t\t\t\tif (player2.character.getHitPoints() <= 0) { //hit points=0 attempt to end game\n\t\t\t\t\t//dispose(); TODO - this might be necessary for resetting, but it's currently a breaking change\n\t\t\t\t\t//WinWindow.lose_window(1);\n\t\t\t\t\tendGame();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void processEnemyHitsAndDeaths(AbstractEnemy enemy) {\n this.scoreCounter.changeScore(2000, '+'); // This was put here to see all objectives being met\n this.gameState.updateScoreGoals(this.scoreCounter);\n this.gameState.updateEnemyHitGoals(enemy.getEnemyType());\n this.killCount += 1; \n }",
"public void tick()\n{\n y+=speed;\n\n for(int i=0; i<game.ea.size(); i++)\n {\n EntityA tempEnt= game.ea.get(i);\n if(Physics.Coliision(this,tempEnt))\n {\n c.removeEntity(tempEnt); //zeby po trafieniu znikal pocisk\n c.removeEntity(this);\n game.setEnemy_killed(game.getEnemy_killed()+1);\n\n }\n }\n\n/*\n* If Enemy is out of bounds player get - points\n* and loses some stamina.\n*\n* Enemies are removed from list after disapears\n */\n\n if(y>(App.getHEIGHT()-20)*2)\n {\n App.addHealth(-10);\n App.addPOINTS(-3);\n c.removeEntity(this);\n }\n\n anim.runAnimation();\n\n /*\n * If App is not in game state it doesn't\n * need to have any enemies\n */\n\n if(App.State != App.STATE.GAME)\n {\n delEnemies();\n\n }\n}",
"public void PSShot()\n\t{\n\t\t//collision can only occur if an enemy missile and a PlayerShip are spawned\n\t\tif(gameObj[1].size() > 0 && gameObj[3].size() > 0)\n\t\t{\n\t\t\tint mis = new Random().nextInt(gameObj[3].size());\n\t\t\tgameObj[1].remove(0);\n\t\t\tgameObj[3].remove(mis);\n\t\t\tlives--;\n\t\t\tSystem.out.println(\"An enemy missile has struck a PS -1 life\");\n\t\t\tif(lives >0) \n\t\t\t\tSystem.out.println(\"you have \" + lives + \" left\");\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Game over\");\n\t\t\t\tgameOver();\n\t\t\t}\n\t\t}else\n\t\t\tSystem.out.println(\"A player ship and an enemy missile are not spawned\");\t\t\n\t}",
"public void cleanupBattle(List<Enemy> defeatedEnemies){\r\n Character character = world.getCharacter();\r\n updateAllies();\r\n\r\n ArrayList<MovingEntity> deadFriendlies = new ArrayList<MovingEntity>();\r\n for (MovingEntity friendly: world.getFriendlyEntities()) {\r\n if (friendly.getCurrHP() <= 0) {\r\n deadFriendlies.add(friendly);\r\n friendly.destroy();\r\n }\r\n }\r\n world.getFriendlyEntities().removeAll(deadFriendlies);\r\n\r\n \r\n //ArrayList<Enemy> defeatedEnemies = battle.getDefeated();\r\n for(Enemy defeatedEnemy : defeatedEnemies) {\r\n killEnemy(defeatedEnemy);\r\n }\r\n\r\n if (character.getCurrHP() <= 0) {\r\n world.setGameStateLose();\r\n }\r\n }",
"@Override\n public void hitEvent(Block beingHit, Ball hitter) {\n if (beingHit.getHitsCounter() == 0) {\n beingHit.removeFromGame(this.game);\n //removes this listener from the being hit's listeners list.\n beingHit.removeHitListener(this);\n //decreasing the amount of blocks by 1.\n this.remainingBlocks.decrease(1);\n\n }\n }",
"public void NPSShot()\n\t{\n\t\t//can only occur if a friendly missile and \n\t\t//a NPS are spawned\n\t\tif(gameObj[2].size() > 0 && gameObj[4].size() > 0)\n\t\t{\n\t\t\tint nps = new Random().nextInt(gameObj[2].size());\n\t\t\tint mis = new Random().nextInt(gameObj[4].size());\n\t\t\tgameObj[2].remove(nps);\n\t\t\tgameObj[4].remove(mis);\n\t\t\tscore += 500;\n\t\t\tSystem.out.println(\"A player misile has struck a NPS! +500 points\");\n\t\t}else\n\t\t\tSystem.out.println(\"An NPS and a friendly missile are not spawned\");\n\t}",
"public void hitEvent(Collidable beingHit, Fire bullet) {\r\n int index = this.enemies.indexOf((Enemy) beingHit);\r\n this.removeEnemy((Enemy) beingHit);\r\n this.startLocations.remove(index);\r\n }",
"public void removeBomb(Bomb b) {\r\n this.bombs.remove(b);\r\n }",
"void check_missile_collisions() {\n for (int i = ship.missiles.size()-1; i >= 0; i --) {\n Missile missile = ship.missiles.get(i);\n for (int j = aliens.size()-1; j >= 0; j --) {\n Alien alien = aliens.get(j);\n boolean hit = alien.checkMissileCollisions(missile);\n if (hit) {\n alien_destroyed_audio.play();\n\n // Move the missile off-screen to be deleted by delete_missiles()\n missile.moveOffScreen();\n\n // Update the score, speed up remaining aliens, remove the alien\n update_score(alien.points);\n Alien.speed_up();\n alien_audio_intervals = (long) (500000000 - (100000000 * Alien.alien_speed));\n ImageView alien_image_view = alien_image_views.get(j);\n game_pane.getChildren().remove(alien_image_view);\n alien_image_views.remove(j);\n aliens.remove(alien);\n break;\n }\n }\n }\n\n // Check if any alien missiles hit the ship\n for (int i = Alien.missiles.size()-1; i >= 0; i --) {\n Missile missile = Alien.missiles.get(i);\n // Only check missiles that have reached the y-coordinate of the player\n if (missile.y_position+missile.missile_height >= ship.y_position) {\n boolean hit = ship.checkMissileCollisions(missile);\n if (hit) {\n ship_destroyed_clip.play();\n\n // Player loses a life\n lives -= 1;\n lives_text.setText(\"Lives: \" + lives);\n\n // Ship and missiles not respawn/removed for last life so that player can see how they died\n if (lives > 0){\n // Move the missile off-screen, deleted by delete_missiles()\n missile.moveOffScreen();\n ship_respawn();\n }\n break;\n }\n }\n }\n }",
"public void hitEvent(Block beingHit, Ball hitter) {\r\n if (beingHit.getHitPoints() == 0) {\r\n if (beingHit.rUEnemy() && hitter.isEnemy()) {\r\n return;\r\n }\r\n if (beingHit.rUEnemy()) {\r\n remainingBlocks.decrease(1);\r\n enemies.removeEnemy(beingHit);\r\n } else {\r\n beingHit.removeFromGameLevel(game);\r\n beingHit.removeHitListener(this);\r\n }\r\n }\r\n }",
"@Override\r\n public void hitEvent(Block beingHit, Ball hitter) {\n this.currentScore.increase(5);\r\n // and destroying a block is worth and additional 10 points\r\n if (beingHit.getHitPointsNumber() == 0) {\r\n this.currentScore.increase(10);\r\n }\r\n }",
"public void collision() {\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).tick();\n\n if (friendlyBullets.get(i).getImgY() <= 40) {\n friendlyBullets.get(i).bulletImage.delete();\n friendlyBullets.remove(friendlyBullets.get(i));\n i--;\n continue;\n }\n\n for (int j = 0; j < enemies.size(); j++) {\n\n if (friendlyBullets.get(i).getHitbox().intersects(enemies.get(j).getHitbox())) {\n\n friendlyBullets.get(i).hit();\n friendlyBullets.remove(friendlyBullets.get(i));\n i--;\n\n enemies.get(j).hit();\n\n if (enemies.get(j).getHp() <= 0) {\n enemies.remove(enemies.get(j));\n score.setScore(50);\n j--;\n }\n //end this loop\n j = enemies.size();\n }\n }\n\n }\n\n ///////////////////////////////////////////////////////////////////////////////////////\n\n\n // Enemy out of bounds\n for (int i = 0; i < enemies.size(); i++) {\n\n enemies.get(i).tick();\n\n // Out of bounds\n if (enemies.get(i).getEnemyImage().getY() >= 750) {\n enemies.get(i).getEnemyImage().delete();\n enemies.remove(enemies.get(i));\n\n if (enemies.size() > 1) {\n i--;\n }\n }\n }\n\n\n //////////////////////////////////////////////////////////////////////////\n\n //powerUps out of bounds and collision with spaceships\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).tick();\n\n if (powerUps.get(i).getImgY() >= 745) {\n\n powerUps.get(i).powerUpImage.delete();\n powerUps.remove(powerUps.get(i));\n\n i--;\n continue;\n }\n\n for (int j = 0; j < spaceShips.size(); j++) {\n\n if (spaceShips.get(j).getHitbox().intersects(powerUps.get(i).getHitbox())) {\n\n\n spaceShips.get(j).powerUp(powerUps.get(i).getPowerUpType());\n powerUps.get(i).hit();\n powerUps.remove(powerUps.get(i));\n\n //if it collides with one leave the for loop\n i--;\n j = spaceShips.size();\n }\n }\n\n }\n\n }",
"public void shotShip() {\r\n score -= 20;\r\n System.out.println(\"Current Score = \"+score);\r\n }",
"void update() {\n for (int i = 0; i < bullets.size(); i++) {//if any bullets expires remove it\n if (bullets.get(i).off) {\n bullets.remove(i);\n i--;\n }\n }\n move();//move everything\n checkPositions();//check if anything has been shot or hit\n }",
"private void checkForDeaths() {\n Iterator<Entity> entityIter = this.entities.iterator();\n\n //geht alle teilnehmer durch\n while ( entityIter.hasNext() ) {\n Entity entity = entityIter.next();\n\n //und entfernt sie wenn sie tot sind aus der liste und der engine\n if ( this.combatMapper.get(entity).curHealth <= 0 ) {\n entityIter.remove();\n\n //alle actions der entity entfernen, können ja nichts machen wenn sie tot sind\n Iterator<IAction> actionIter = this.actions.iterator();\n\n while ( actionIter.hasNext() ) {\n if ( actionIter.next().getOwner().equals(entity) ) {\n actionIter.remove();\n }\n }\n\n this.combatExp += this.combatMapper.get(entity).level * 5; //TODO\n\n EventSystem.getInstance().commitEvent(new Event(EventSystem.EventType.KILL_EVENT, entity));\n\n this.combatSystem.getEngine().removeEntity(entity);\n }\n }\n }",
"public void youBrokeSon(){\n\t\tcoinList.clear();\n\t}",
"public void kill()\r\n {\n if(isTouching(TopDownPlayer.class))\r\n {\r\n health(1);\r\n\r\n getWorld().removeObject(player);\r\n //getWorld().addObject (new Test(), 20, 20);\r\n\r\n }\r\n // if(healthCount >= 1)\r\n // {\r\n // World world;\r\n // world = getWorld();\r\n // getWorld().removeObject(player);\r\n // \r\n // getWorld().addObject (new Test(), 20, 20);\r\n // }\r\n }",
"public void endGame()\r\n {\r\n for (Cell c : gameBoard.bombList)\r\n {\r\n if (c.isBomb())\r\n {\r\n if (c.getText() == \"X\")\r\n {\r\n c.setId(\"correctFlag\");\r\n }\r\n else\r\n {\r\n c.setId(\"bombClicked\");\r\n }\r\n }\r\n else if (c.getText() == \"X\")\r\n {\r\n c.setId(\"incorrectFlag\");\r\n }\r\n c.setDisable(true);\r\n }\r\n if (gameBoard.emptyRemaining == 0)\r\n {\r\n win();\r\n }\r\n else\r\n {\r\n lose();\r\n }\r\n System.out.println(\"Game Over...\");\r\n scoreBoard.resetBtn.setDisable(false);\r\n }",
"public void endGame(){\n if(character.getHp() > 0 )effectHandler.endGame();\n character.clearBuffs();\n }",
"public void checkBombs() {\n for (Bomb bomb : bombs) {\n if (ship.intersects(bomb)) {\n ship.die();\n bomb.die();\n }\n\n if (bomb.getY() >= height)\n bomb.die();\n }\n }",
"public void countHits() {\nif (this.hitpoints <= 0) {\nreturn;\n}\nthis.hitpoints = this.hitpoints - 1;\n}",
"@Override\n public void hitFeedBack(boolean hit, Fleet enemyShips) {\n this.hit = hit;\n }",
"private void updateClearedTiles() {\r\n int count = 0;\r\n for (int r = 0; r < gridSize; r++) {\r\n for (int c = 0; c < gridSize; c++) {\r\n if (!grid[r][c].isHidden() && !grid[r][c].isBomb()) {\r\n count++;\r\n }\r\n }\r\n }\r\n clearedTiles = count;\r\n }",
"public void hitEvent(Block beingHit, Ball hitter) {\r\n if (beingHit.getHitPoints() == 0) {\r\n beingHit.removeHitListener(this);\r\n beingHit.removeFromGame(this.game);\r\n remainingBlocks.decrease(1);\r\n }\r\n }",
"public void baptism() {\n for (Card targetCard : Battle.getInstance().getActiveAccount().getActiveCardsOnGround().values()) {\n if (targetCard instanceof Minion) {\n targetCard.setHolyBuff(2, 1);\n }\n }\n }",
"@Override\n\tpublic void remove()\n\t{\n\t\tsuper.remove();\n\t\tgetMyPlayer().getGoldMines().remove(this);\n\t}",
"public void healPokemon() {\r\n\t\tfor (Pokemon p : ownedPokemon) {\r\n\t\t\tp.resetCurrentHP();\r\n\t\t}\r\n\t}",
"public void update() {\n if (player.getPlaying()) { //if player alive\n bg.update(); //update background\n player.update(); //update player\n //player collision detection, if player hits any baddies or their bullets is playing sets to false\n for (int i = 0; i < gargants.size(); i++) {\n if (collision(gargants.get(i), player)) {\n //gargants.remove(i);\n player.setPlaying(false);\n\n }\n for (int j = 0; j < demons.size(); j++) {\n if (collision(demons.get(j), player)) {\n //demons.remove(j);\n player.setPlaying(false);\n\n }\n for (int k = 0; k < dragons.size(); k++) {\n if (collision(dragons.get(k), player)) {\n //dragons.remove(k);\n player.setPlaying(false);\n\n }\n for (int l = 0; l < demonShots.size(); l++) {\n if (collision(demonShots.get(l), player)) {\n //demonShots.remove(l);\n player.setPlaying(false);\n\n }\n\n }\n }\n }\n }\n\n for (int i = 0; i < bullets.size(); i++) { //for each bullet\n bullets.get(i).update(); //update them\n if (bullets.get(i).getX() > WIDTH + 10) {\n bullets.remove(i); //if off screen delete\n }\n }\n\n for (int i = 0; i < demonShots.size(); i++) { // for each demon bullet\n demonShots.get(i).update(); //update them\n if (demonShots.get(i).getX() < -100) {\n demonShots.remove(i); //if off screen delete\n }\n }\n\n long gargantElapseTime = (System.nanoTime() - gargantStartTime) / 1000000;\n if (gargantElapseTime > (1200 - player.getScore() / 3)) { //as score increases, more will spawn\n gargants.add(new Gargant(BitmapFactory.decodeResource(getResources(), R.drawable.gargant), WIDTH + 10, (int) (rand.nextDouble() * (HEIGHT)), 64, 64, 8));\n if (gargants.size() >= 13) { //limit amount of this enemy to 13\n gargants.remove(gargants.size() - 1);\n }\n gargantStartTime = System.nanoTime();\n }\n for (int i = 0; i < gargants.size(); i++) { // for each gargant\n gargants.get(i).update(); //update them\n for (int j = 0; j < bullets.size(); j++) {\n if (collision(gargants.get(i), bullets.get(j))) {\n //when shot remove enemy and bullet\n gargants.remove(i);\n bullets.remove(j);\n player.addScore(10); //10 score for these guys\n break;\n }\n }\n if (gargants.get(i).getX() < -100) {\n gargants.remove(i); //if off screen remove\n }\n }\n\n if (level >= 3) { //only spawn demon above level 3\n long demonElapseTime = (System.nanoTime() - demonStartTime) / 1000000;\n if (demonElapseTime > (12000 - player.getScore() / 3)) { //as score increases, more will spawn\n demons.add(new Demon(BitmapFactory.decodeResource(getResources(), R.drawable.demon), WIDTH + 10, (int) (rand.nextDouble() * (HEIGHT)), 64, 64, 8));\n if (demons.size() >= 10) { //limit amount of this enemy to 10\n demons.remove(demons.size() - 1);\n }\n demonStartTime = System.nanoTime();\n }\n for (int i = 0; i < demons.size(); i++) { //for each demon\n demons.get(i).update(); //update them\n int n = rand.nextInt(1001); //random int between 1 and 1000\n if (n > 980) { //if random int > 980 shoot demon bullet\n demonShots.add(new HellFire(BitmapFactory.decodeResource(getResources(), R.drawable.hellfire_0), demons.get(i).getX(), demons.get(i).getY(), 64, 64));\n }\n for (int j = 0; j < bullets.size(); j++) {\n if (collision(demons.get(i), bullets.get(j))) {\n demonHitCount++; //each hit with bullet increases hitcount\n bullets.remove(j);\n if (demonHitCount >= 10) { //when hit more than 10 times it dies\n demonHitCount = 0;\n demons.remove(i);\n bullets.remove(j);\n player.addScore(100); //100 score for these big bois\n }\n }\n }\n if (demons.get(i).getX() < -100) {\n demons.remove(i); //if off screen delete\n }\n }\n }\n\n\n if (level >= 2) { //only spawn dragon above level 3\n long dragonElapseTime = (System.nanoTime() - dragonStartTime) / 1000000;\n if (dragonElapseTime > (6000 - player.getScore() / 3)) { //as score increases, more will spawn\n dragons.add(new Dragon(BitmapFactory.decodeResource(getResources(), R.drawable.dragon), WIDTH + 10, (int) (rand.nextDouble() * (HEIGHT)), 128, 128, 8));\n if (dragons.size() >= 5) { //dragons limitted to only 5\n dragons.remove(dragons.size() - 1);\n }\n dragonStartTime = System.nanoTime();\n }\n for (int i = 0; i < dragons.size(); i++) {\n dragons.get(i).update();\n for (int j = 0; j < bullets.size(); j++) {\n if (collision(dragons.get(i), bullets.get(j))) {\n dragonHitCount++; //if hit increase hitcount\n bullets.remove(j);\n if (dragonHitCount >= 4) { //when hit 4 times it dies\n dragonHitCount = 0;\n dragons.remove(i);\n bullets.remove(j);\n player.addScore(25); //25 score for dragons\n }\n break;\n }\n }\n if (dragons.get(i).getX() < -100) {\n dragons.remove(i); //when off screen remove\n }\n }\n }\n }\n }",
"private void collideWithBall() {\n die();\n }",
"public void deleteScore() {\n\t\tthis.score = 0;\n\t}",
"public void clearBalls();",
"void onAttackDestroyed(AttackObject attack) {\n attacksToDelete.add(attack);\n if(attack.isPlayerAttack()){\n playerAttackCount--;\n }\n }",
"@Override\n public void hit(int atk) {\n hp = hp - atk;\n }",
"@Override\n public void action() throws Exception {\n if (!can_hit || count > 0)\n count++;\n if (count == 100) {\n can_hit = true;\n }\n else if (count == this.bombCountLimit) {\n bombPlaced--;\n count = 0;\n }\n\n if(Gdx.input.isKeyJustPressed(Input.Keys.SPACE)){\n go_ia=!go_ia;\n }\n if(go_ia){\n ia_count++;\n if(ia_count==11)\n ia_count=0;\n }\n if(go_ia&&ia_count==10) {\n\n int move = -1;\n int mode = 0;\n\n\n\n log.info(\"count bomb: \" + count);\n\n double enemyDist = sqrt(pow((playerX - enemyX), 2)+pow((playerY - enemyY), 2));\n if(powerUpFree) {\n currentGoalX = goalX;\n currentGoalY = goalY;\n if(deepSearch){\n currentGoalX = 1;\n currentGoalY = 1;\n }\n if(enemyDist < 7 && !enemyClean){\n if(enemyDist <= bombRange && sqrt(pow((playerX - goalX), 2)+pow((playerY - goalY), 2)) > 2)\n mode = 2;\n\n }\n }\n\n\n\n if (!can_hit) {\n mode = 1;\n log.info(\"can't hit\");\n }\n else if(doorLocked) {\n mode = 3;\n }\n /*if (count > 0 && count <= this.bombCountLimit && (playerX!=bombGoalX || playerY!=bombGoalY)){\n currentGoalX = bombGoalX;\n currentGoalY = bombGoalY;\n log.info(\"bomb goal\");\n }*/\n\n\n\n\n log.info(\"CURRENT goal x: \" + currentGoalX +\", CURRENT goal y: \" + currentGoalY);\n log.info(\"CURRENT bombgoal x: \" + bombGoalX +\", current bombgoal y: \" + bombGoalY);\n log.info(\"CURRENT player x: \" + playerX +\", current player y: \" + playerY);\n log.info(\"powerup free: \" + powerUpFree);\n log.info(\"CURRENT ENEMY: [\" + enemyX + \", \" + enemyY + \"] \");\n\n ArrayList<Action> actions = new ArrayList<>();\n ArrayList<Wall> walls = new ArrayList<>();\n ArrayList<EnemyPath> enemyPaths = new ArrayList<>();\n ArrayList<Around> around = new ArrayList<>();\n\n playerX = this.x/40;\n playerY = this.y/40;\n\n for( int i = 0; i < 4; i++ ){\n if (can_move[i]) {\n if (mode != 1 || checkSafe(i))\n actions.add(new Action(i));\n walls.add(new Wall(i, 0));\n }\n else if (can_destroy[i]){\n walls.add(new Wall(i, 1));\n if (mode != 1 || checkSafe(i))\n actions.add(new Action(i));\n }\n else\n walls.add(new Wall(i, 3));\n if(freeAround[i])\n around.add(new Around(i, 0));\n else\n around.add(new Around(i, 2));\n\n if ( !enemyFree[i] && enemyDist > bombRange)\n enemyPaths.add(new EnemyPath(i, 1));\n if( !enemyFree[i] && enemyDist <= bombRange || (bombRange == 1 && enemyDist <= 2))\n enemyPaths.add(new EnemyPath(i, 2));\n else if (enemyDist <= bombRange)\n enemyPaths.add(new EnemyPath(i, 1));\n else if(enemyFree[i])\n enemyPaths.add(new EnemyPath(i, 0));\n }\n if(sqrt(pow((playerX - bombGoalX), 2)+pow((playerY - bombGoalY), 2)) > bombRange ||\n mode != 1 || (playerX != bombGoalX && playerY != bombGoalY))\n actions.add(new Action(4));\n\n ai.load_fact( new Position(playerX, playerY),\n actions,\n makeDistances(buildDistances(currentGoalX, currentGoalY)),\n makeBombDistances(buildDistances(bombX, bombY)),\n makeEnemyDistances(buildDistances(enemyX, enemyY)),\n walls,\n around,\n enemyPaths,\n new Mode(mode)\n );\n\n AnswerSets answers = ai.getAnswerSets();\n while(answers.getAnswersets().get(0).getAnswerSet().isEmpty()){\n ai.load_fact( new Position(playerX, playerY),\n actions,\n makeDistances(buildDistances(currentGoalX, currentGoalY)),\n makeBombDistances(buildDistances(bombX, bombY)),\n makeEnemyDistances(buildDistances(enemyX, enemyY)),\n walls,\n around,\n enemyPaths,\n new Mode(mode)\n );\n answers = ai.getAnswerSets();\n }\n\n for (AnswerSet an : answers.getAnswersets()) {\n Pattern pattern = Pattern.compile(\"^choice\\\\((\\\\d+)\\\\)\");\n Matcher matcher;\n for (String atom : an.getAnswerSet()) {\n //System.out.println(atom);\n matcher = pattern.matcher(atom);\n\n if (matcher.find()) {\n log.info(\"DLV output: \" + matcher.group(1));\n move = Integer.parseInt(matcher.group(1));\n }\n }\n }\n if (move == 1) {\n set_allCan_move(0, true);\n this.x += 40;\n }\n else if (move == 2) {\n set_allCan_move(0, true);\n this.y += 40;\n }\n else if (move == 3) {\n set_allCan_move(0, true);\n this.y -= 40;\n }\n else if (move == 0) {\n set_allCan_move(0, true);\n this.x -= 40;\n }\n else if (move == 4 && can_hit && (playerX != goalX || playerY != goalY)) {\n ai_hit = true;\n can_hit = false;\n this.bombX=playerX;\n this.bombY=playerY;\n this.bombGoalX=playerX;\n this.bombGoalY=playerY;\n bombPlaced++;\n }\n moves.add(move);\n ai.clear();\n }\n else{\n playerX = this.x/40;\n playerY = this.y/40;\n }\n\n\n if (Gdx.input.isKeyPressed(Input.Keys.A)&&can_move[0]) {\n set_allCan_move(0, true);\n this.x -= 5;\n }\n if (Gdx.input.isKeyPressed(Input.Keys.D)&&can_move[1]) {\n set_allCan_move(0, true);\n this.x += 5;\n }\n if (Gdx.input.isKeyPressed((Input.Keys.W))&&can_move[2]) {\n this.y += 5;\n set_allCan_move(0, true);\n }\n if (Gdx.input.isKeyPressed((Input.Keys.S))&&can_move[3]){\n set_allCan_move(0, true);\n this.y -= 5;\n }\n if (Gdx.input.isKeyPressed((Input.Keys.Z)) && can_hit) {\n can_hit = false;\n this.bombX=playerX;\n this.bombY=playerY;\n this.bombGoalX=playerX;\n this.bombGoalY=playerY;\n bombPlaced++;\n }\n\n if (Gdx.input.isKeyPressed((Input.Keys.N)))\n log.info(\"CURRENT ENEMY: [\" + enemyX + \", \" + enemyY + \"] \");\n }",
"public void update(){\n if(clearing) {\n attacks.clear();\n attacksToAdd.clear();\n attacksToDelete.clear();\n playerAttackCount = 0;\n clearing = false;\n } else {\n for (AttackObject attack : attacks) {\n attack.update();\n checkAttackCollisionsFor(attack);\n checkAttackReachedEnd(attack);\n if (attack.wasDestroyed()) {\n onAttackDestroyed(attack);\n }\n }\n deleteAttacks();\n addAttacks();\n }\n }",
"private void subtractEnemyMissile() {\n this.enemyMissile -= 1;\n }",
"@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}",
"public void resetHitsLeft(){\n int count = 0;\n for(Ship ship: ships){\n count += ship.getLocation().size();\n }\n hitsLeft = count;\n }",
"public void decLives()\n\t{\n\t\tlives--;\n\t\tshipSpawned = false;\t\n\t\tif(lives <= 0)\n\t\t{\n\t\t\tSystem.out.println(\"Game over\");\n\t\t\tif(isSound() && !isPaused())\n\t\t\t\tdeath.play();\n\t\t\tsetGameOver(true);\n\t\t\tnotifyObservers();\n\t\t\treturn;\n\t\t}\n\t\tthis.addPlayerShip();\n\t}",
"public void collisionVS() {\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).tick();\n\n if (enemyBullets.get(i).getImgY() >= 750 || enemyBullets.get(i).getImgY() <= 40) {\n\n enemyBullets.get(i).bulletImage.delete();\n enemyBullets.remove(enemyBullets.get(i));\n i--;\n continue;\n }\n\n for (int j = 0; j < spaceShips.size(); j++) {\n\n if (spaceShips.get(j).getHitbox().intersects(enemyBullets.get(i).getHitbox())) {\n\n spaceShips.get(j).hit();\n enemyBullets.get(i).hit();\n enemyBullets.remove(enemyBullets.get(i));\n\n if (spaceShips.get(j).getHp() <= 0) {\n spaceShips.remove(spaceShips.get(j));\n }\n\n //if it collides with one leave the for loop\n i--;\n j = spaceShips.size();\n }\n }\n }\n\n //////////////////////////////////////////////////////////////////////////////////////////////\n\n // SPACESHIPS WITH ENEMIES AND ENEMY BULLETS\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).tick();\n\n // WITH ENEMIES\n for (int j = 0; j < enemies.size(); j++) {\n if (spaceShips.get(i).getHitbox().intersects(enemies.get(j).getHitbox())) {\n\n spaceShips.get(i).hit();\n enemies.get(j).hit(20);\n enemies.remove(enemies.get(j));\n\n if (spaceShips.get(i).getHp() <= 0) {\n spaceShips.remove(spaceShips.get(i));\n }\n\n //if it collides with one leave the for loop\n j = enemies.size();\n }\n }\n }\n }",
"private void notdrawy()\n\t{\n\t\t// check if a flag for a item has been set to see if the item has died and remove it from the arraylist\n\t\tfor (int i =0; i < drawableItems.size();i++)\n\t\t\tif (drawableItems.get(i).isDead())\n\t\t\t{\n\t\t\t\t//remove the corps\n\t\t\t\tdrawableItems.remove(i);\n\t\t\t\t//add to score\n\t\t\t\tscore += +100;\n\t\t\t}\n\t\t\n\t\t//check if any enterties enter each others bounds and if so means they have collided and will trigger the collision on the entitie\n\t\tfor (int i = 0; i < drawableItems.size();i++)\n\t\t\tfor (int j = 0; j < drawableItems.size();j++)\n\t\t\t\tif (j != i)\n\t\t\t\t\tif (drawableItems.get(j).getBounds().intersect(drawableItems.get(i).getBounds()))\n\t\t\t\t\t\tif (drawableItems.get(i).equals(player))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdrawableItems.get(j).collision();\n\t\t\t\t\t\t\tdrawableItems.get(i).collision();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdrawableItems.get(j).collision();\n\t\t\n\t\t//sets have bullets\n\t\tfor (int i = 0; i < player.getGun().getBullets().size();i++)\n\t\t\tfor (int j = 0; j<drawableItems.size();j++)\n\t\t\t\tif (!drawableItems.get(j).equals(player))\n\t\t\t\t\tif (drawableItems.get(j).getBounds().intersect(player.getGun().getBullets().get(i).getBounds()))\n\t\t\t\t\t{\n\t\t\t\t\t\tdrawableItems.get(j).hit(player.getGun().getBullets().get(i).getDamage());\n\t\t\t\t\t\t//tell the bullet it has collided\n\t\t\t\t\t\tplayer.getGun().getBullets().get(i).collision();\n\t\t\t\t\t\t// we want to add to score\n\t\t\t\t\t\tscore++;\n\t\t\t\t\t}\n\t\t\n\t\t// {debug} add new zombies to fight\n\t\tif (drawableItems.size() < 20)\n\t\t\tdrawableItems.add(new ObjectItem(Statics.getScreenWidth() - 100,Statics.getScreenHeight() - 300));\n\t\t\n\t\t//update player p\n\t\tsettarget(player.getPosX(),player.getPosY());\n\t}",
"@Override\r\n public void onHit(int damage){\n if(box2body != null){\r\n hp -= damage;\r\n screen.getGameManager().get(\"Sounds/orc-34-hit.wav\", Sound.class).play();\r\n if(this.hp <= 0) {\r\n screen.bodiesToDelete.add(box2body);\r\n deleteFlag = true;\r\n screen.spawnedCreatures.remove(this);\r\n screen.getGameManager().get(\"Sounds/orc-32-death.wav\", Sound.class).play();\r\n\r\n //Award Experience\r\n screen.getPlayer().awardExperience(this.experienceValue);\r\n screen.getPlayer().increaseKillCount();\r\n }\r\n }\r\n //Attack player when damaged\r\n //Prevents player from sniping monsters using Wander AI\r\n if(currentState != State.ATTACKING){\r\n Vector2 orcPosition = new Vector2(box2body.getPosition().x, box2body.getPosition().y);\r\n Vector2 playerPosition = new Vector2(screen.getPlayer().box2body.getPosition().x, screen.getPlayer().box2body.getPosition().y);\r\n\r\n currentState = State.HASBEENATTACKED;\r\n velocity = new Vector2(playerPosition.x - orcPosition.x, playerPosition.y - orcPosition.y);\r\n box2body.setLinearVelocity(velocity.scl(speed));\r\n }\r\n }",
"public void notifyAlienKilled() {\n\t\talienCount--;\n\t\t\n\t\tif (alienCount <= 0) {\n\t\t\tround++;\n\t\t\tif(round % 1 == 0) {\n\t\t\t\tinitBoss();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tinitEntitiesNoShip();\n\t\t\t}\n//\t\t\tnotifyWin();\n\t\t\t// System.out.println(\"Score: \" + score);\n\t\t}\n\t\t\n\t\t// if there are still some aliens left then they all need to get faster, so\n\t\t// speed up all the existing aliens\n\t\tfor (int i=0;i<entities.size();i++) {\n\t\t\tEntity entity = (Entity) entities.get(i);\n\t\t\t\n\t\t\tif (entity instanceof AlienEntity) {\n\t\t\t\t// speed up by 2%\n\t\t\t\tentity.setHorizontalMovement(entity.getHorizontalMovement() * 1.02);\n\t\t\t}\n\t\t}\n\t}",
"public void tick() {\n\t\tif (Math.abs(disToPlayerX()) > Math.abs(disToPlayerY())) {\r\n\t\t\tif (disToPlayerX()<0) {\r\n\t\t\t\tx -= speed;\t//moves enemy to the left\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tx += speed; //moves enemy to the right\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (disToPlayerY()<0) {\r\n\t\t\t\ty-=speed; //moves enemy up\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ty+=speed; //moves enemy down\r\n\t\t\t}\r\n\t\t}\r\n\t\tenemyRectangle.setLocation((int)x,(int) y); //updates hitbox of enemy\r\n\r\n\t\t//checks all enemies and see if they run into player\r\n\t\tfor (int i=0;i<c.getEnemys().size();i++) {\r\n\t\t\tif (enemyRectangle.getBounds().intersects(player.getRectangle().getBounds())) {\r\n\t\t\t\tkillEnemy(); //removes the enemy\r\n\t\t\t\tPlayer.health -=10; //removes 10 health\r\n\t\t\t\tbreak; //doesn't work without this BREAK. DO NOT REMOVE\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//checks all bullets if they hit an enemy\r\n\t\tfor (int i = 0;i<c.getBullets().size();i++) {\r\n\t\t\tif (enemyRectangle.getBounds().intersects(c.getBullets().get(i).getRect().getBounds())) {\r\n\t\t\t\tkillEnemy(); //removes enemy\r\n\t\t\t\tc.removeBullet(c.getBullets().get(i)); //removes the bullet\r\n\t\t\t\tPlayer.score += 50; //adds 50 to the score\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"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 setHits(Hits hits) {\n this.hits = hits;\n }",
"public void delMissile(Missile missile)\r\n {\n \r\n \r\n boolean remove = missiles.remove(missile);\r\n try {\r\n missile.finalize();\r\n } catch (Throwable ex) {\r\n Logger.getLogger(Object_.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n //System.out.println(\"Remove: \" + remove);\r\n }",
"@Override\n\tpublic void fire(Ball firer) {\n\t balls.add(firer);\n\t firer.setAbsorbed(true);\n\t setBalls();\n\t firer.setVx(0);\n\t firer.setVy(0);\n\t //somehow ball being fired out came back and hit!\n\t if (firer.equals(firingBall)) {\n\t firingBall = null;\n\t gb.removeFromActiveList(this);\n\t }\n\t gb.resetScore();\n\t\tsuper.fire(firer);\n\t}",
"public static void removeBody(Body obj, Body bullet) {\r\n \tif(obj==myPlayer.getBody()) {\r\n \t\t//We've been hit.\r\n \t\tmyPlayer.takeDamage(0.09f);\r\n \t}\r\n \tbulletsToRemove.add(bullet);\r\n }",
"public void resetHitStatistics()\n {\n m_stats.resetHitStatistics();\n }",
"void playerHit() {\n if (lives == 0) {//if no lives left\n isDead = true;\n } else {//remove a life and reset positions\n lives -=1;\n immortalityTimer = 100;\n resetPositions();\n }\n }",
"public void resetDamages() {\n damages = new ArrayList<>();\n }",
"public void tick(){\n\t\tfor(int i=0;i<object.size(); i++){\n\t\t\ttempObject = object.get(i);\n\t\t\ttempObject.tick(object);\n\t\t\tif(tempObject.getId() == ObjectId.Player){\n\t\t\t\tif(tempObject.position.x == MouseInput.exitPosition.x&&\n\t\t\t\t tempObject.position.y == MouseInput.exitPosition.y){\n\t\t\t\t\tgame.score += game.timeLeft;\n\t\t\t\t\tSystem.out.println(\"exited\");\n\t\t\t\t\tgame.levelCompleted=true;\n\t\t\t\t}\n\t\t\t\tif(game.player.health <= 0){\n\t\t\t\t\tobject.clear();\n\t\t\t\t\tgame.gameLoop=1;\n\t\t\t\t\tgame.State=STATE.GAMEOVER;\n\t\t\t}\n\t\t}\n\t\t// bomb is null when exploded\t\t\n\t\tif(Bomb.exploded(bomb, object)){\n\t\t\tbomb=null;\t\t\t\n\t\t}\n\t\t\n\t\tif(System.currentTimeMillis()-Player.tHit < 3000){\n\t\t\tPlayer.invincible = true;\n\t\t}\n\t\telse{\n\t\t\tPlayer.invincible = false;\n\t\t}\n\t\t\n\t\tif(Power.consumed(power, object)) {\n\t\t\tpower=null;\n\t\t}\n\t\t}\n\t\t\n\t}",
"public void trackBullets(){\n // bossbullet control, if it hit the bound, remove the bullet\n for(int i = 0; i < bossBullets.size(); i++){\n Bullet tempBullet = bossBullets.get(i);\n tempBullet.update();\n tempBullet.drawBullet();\n // print (tempBullet.posX, tempBullet.posY,'\\n');\n if(tempBullet.detectBound()){\n bossBullets.remove(i);\n continue;\n }\n\n if(tempBullet.hitObject(Main.player) && !Main.player.invincible){\n Main.player.decreaseHealth(1);\n Main.player.posX = width / 2;\n Main.player.posY = height * 9 / 10;\n Main.player.invincible = true;\n Main.player.invincibleTime = millis();\n }\n\n }\n }",
"private void subtractPlayerMissile() {\n this.playerMissile -= 1;\n }",
"public void hitEvent(Block beingHit, Ball hitter) {\n // remove the ball which hit.\n hitter.removeFromGame(game);\n // if this is the last ball - remove the listener.\n if (this.remainingBalls.getValue() == 1\n && (game.getNumOfLives().getValue() == 1 || this.game.getRemainedBlocks().getValue() == 0)) {\n beingHit.removeHitListener(this);\n }\n // updating the current number of balls.\n this.remainingBalls.decrease(1);\n }",
"private void tryToKillStuff(final Bomb b) {\n \t\tfor (Bomb bomb : bombs)\n \t\t\tif (bomb != b && !bomb.isCurrentlyExploding())\n \t\t\t\tif (eac.isInExplosionArea(b, bomb)) {\n \t\t\t\t\tbomb.goBomf();\n \t\t\t\t}\n \n \t\tif (eac.isInExplosionArea(b, bman.get(0))) {\n \t\t\talive = false;\n \t\t\tgui.lost();\n \t\t}\n \t}",
"@Override\n\tprotected void simpleUpdate() {\n\t\tif(danks.isEmpty()){\n\t\t\tdanks.clear();\n\t\t\tnewDanks();\n\t\t}\n\n\t\tArrayList<Projectiles> projs = hero.getArray();\n\t\tIterator<Dank> enemIt = danks.iterator();\n\n\t\twhile(enemIt.hasNext()){\n\t\t\tDank e = enemIt.next();\n\t\t\tif(hero.getBounds().intersects(e.getBounds())){\n\t\t\t\tif(!isPaused)\n\t\t\t\t\tisPaused = !isPaused;\n\t\t\t\tgameOver = true;\n\t\t\t\tprojs.clear();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j = 0; j < projs.size(); j++){\n\t\t\t\tif(e.getBounds().intersects(projs.get(j).getBounds())){\n\t\t\t\t\tscore += e.getSpeed();\n\t\t\t\t\tenemIt.remove();\n\t\t\t\t\tprojs.remove(j);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\te.move();\n\t\t}\n\t}",
"private static void checkCollisions() {\n ArrayList<Entity> bulletsArray = bullets.entities;\n ArrayList<Entity> enemiesArray = enemies.entities;\n for (int i = 0; i < bulletsArray.size(); ++i) {\n for (int j = 0; j < enemiesArray.size(); ++j) {\n if (j < 0) {\n continue;\n }\n if (i < 0) {\n break;\n }\n Entity currentBullet = bulletsArray.get(i);\n Entity currentEnemy = enemiesArray.get(j);\n if (Collision.boxBoxOverlap(currentBullet, currentEnemy)) {\n ++player.hiScore;\n if (currentBullet.collided(currentEnemy)) {\n --i;\n }\n if (currentEnemy.collided(currentBullet)) {\n --j;\n }\n }\n }\n }\n textHiScore.setString(\"HISCORE:\" + player.hiScore);\n\n // Check players with bonuses\n ArrayList<Entity> bonusArray = bonus.entities;\n for (int i = 0; i < bonusArray.size(); ++i) {\n Entity currentBonus = bonusArray.get(i);\n if (Collision.boxBoxOverlap(player, currentBonus)) {\n if (currentBonus.collided(player)) {\n --i;\n player.collided(currentBonus);\n }\n }\n }\n }",
"private static void eatPoison(int i) {\r\n\t\tstate = MOVE;\r\n\t\tscore -= 10;\r\n\r\n\t\tfood.remove(i);\r\n\t\tsnake.removeLast();\r\n\t\tsnake.removeLast();\r\n\t}",
"List<T> removeHits(BeanCacheResult<T> cacheResult);",
"void garbageCollector() {\n Enemy ETR = null;\n Sprite BTR = null;\n Medkit MTR = null;\n for (Enemy e: enemies) {\n if (e.eTank.getX() < -100) {\n ETR = e;\n }\n }\n for (Sprite c: smBullets) {\n if (c.getX() > width + 100) {\n BTR = c;\n }\n if (c.getY() > height + 100) {\n BTR = c;\n }\n if (c.getX() < -100) {\n BTR = c;\n }\n if (c.getY() < -100) {\n BTR = c;\n }\n }\n \n for (Medkit med : health) {\n if (med.timer <= 0) {\n MTR = med;\n }\n }\n //gets rid of bullets that went off-screen\n if (BTR != null) {\n smBullets.remove(BTR);\n println(\"Deleted bullet\");\n }\n if (ETR != null) {\n enemies.remove(ETR);\n }\n //Medkits to despawn\n if (MTR != null) {\n health.remove(MTR);\n }\n}",
"public void refillMissiles(Iterator<ICollider> psIterator, ICollider curObj, ICollider ship)\n\t{\n\t\tif(((SpaceStation)curObj).getVisibility())\n\t\t{\n\t\t\tif(ship instanceof PlayerShip)\n\t\t\t\t((PlayerShip)ship).reload();\n\t\t\telse if (ship instanceof NonPlayerShip)\n\t\t\t\t((NonPlayerShip)ship).reload();\n\t\t\tSystem.out.println(\"Ammo refilled\");\n\t\t}else\n\t\t\tSystem.out.println(\"SpaceStation is blinking\");\n\t\tpsIterator.remove();\n\t\t\n\t}",
"public static void removeIceAndFire(){\r\n for(int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[i].length; j++) {\r\n if(board[i][j].isOnFireForTheNextNTurns == currentTurn){\r\n board[i][j].isOnFire = false;\r\n }\r\n if(board[i][j].isFrozenForTheNextNTurns == currentTurn){\r\n board[i][j].isFrozen = false;\r\n }\r\n }\r\n }\r\n }",
"protected void clearUpdateScores() {\n\t\tupdateScore.clear();\n\t}",
"@Override\n\tpublic void action() {\n\t if (firingBall.getY() + firingBall.getRadius() < this.y) { \n\t //deactivate absorber locally and in GameBoard\n\t firingBall = null;\n\t gb.removeFromActiveList(this);\n\t }\n\t}",
"public static void playerEffectivelyEndsBattlePhase() {\r\n for (int index = 1; index <= 5; index++){\r\n SummonedMonster MonsterCPU = SummonedMonster.getNthSummonedMonster(index, false);\r\n if (MonsterCPU.isExisting) {\r\n MonsterCPU.canStillAttackThisTurn = false;\r\n }\r\n }\r\n endAttack(false);\r\n }",
"public void dropItLikeItsHot(){\n\t\tint score_increment = 0;\n\t\tPoint test_location = new Point(pieceOrigin);\n\t\twhile(true){\n\t\t\ttest_location.y += 1;\n\t\t\tif(!collides(test_location, currentPiece)){\n\t\t\t\tpieceOrigin.y += 1;\n\t\t\t\tscore_increment += 1;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscore += score_increment*100;\n\t\tgossipGirl();\n\t\trepaint();\n\t}",
"public double castFireball(){\n this.mana -= fireball.manaCost;\n return fireball.hit();\n }",
"public void removeFromGame(){\n this.isInGame = false;\n }",
"public void cashOut(){\n Iterator<Player> iter = players.iterator();\n while (iter.hasNext()){\n Player player = iter.next();\n if(player.cashOut()){\n iter.remove();\n System.out.println(player + \" has cashed out!\");\n }\n }\n }",
"public void Fire()\n {\n Random random = new Random();\n int randNum = random.nextInt(limit);\n\n //Check to see if this bomb is dropped\n if(!owner.BehindInvader() && !this.Visible() && randNum == HIT_VAL)\n {\n //Set this bomb to visible\n this.Visible(true);\n this.PlaySound();\n this.x = this.owner.X();\n this.y = this.owner.Y();\n }\n\n //Check for collision with the defender\n if(Bomb.enemy.Visible() && this.Visible() && this.Collision(Bomb.enemy))\n {\n Bomb.enemy.Hit();\n this.Visible(false);\n }\n //Move the bomb down\n else if(this.Visible())\n {\n this.y++;\n\n //Check for collision with the floor\n if(this.y >= GameConstants.GROUND - this.imageHeight)\n {\n this.Visible(false);\n }\n //Check for collision with the barriers\n for(Barrier barrier : Bomb.barriers.Barriers())\n {\n for(BarrierBlock block : barrier.BarrierBlocks())\n {\n if(this.Collision(block))\n {\n block.Visible(false);\n //Removal could cause Comodification issue\n block.Damaged(true);\n this.Visible(false);\n //May not need this return\n return;\n }\n }\n }\n }\n }",
"private void collision(){\n\t\tboolean touched = false;\n\t\tboolean hit;\n\t\tint j =0;\n\t\twhile ( j< this.game_.getSaveBaby().size() && !touched){\n\t\t\tBabyBunnies b = this.game_.getSaveBaby().get(j);\n\t\t\ttouched = this.game_.getBunnyHood().getPosition().dst(b.getPosition())<=80;\n\t\t\thit = this.game_.getWolf().getPosition().dst(b.getPosition())<=80;\n\t\t\tif (touched){\n\t\t\t\tthis.game_.setBabySaved(b);\n\t\t\t}\n\t\t\tif (hit){\n\t\t\t\tthis.game_.wolfCatchBunnies(b);\n\t\t\t\t/**\n\t\t\t\t * Test de callback, retour vers l app android\n\t\t\t\t */\n\t\t\t\tif(this.game_.getScoreWolf()==3){\n\t\t\t\t\tif (this.gameCallBack != null) {\n\n this.gameCallBack.gameOverActivity(this.game_.getScoreBunny());\n\t\t\t\t\t\tthis.isGameOver=true;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tGdx.app.log(\"MyGame\", \"To use this class you must implement MyGameCallback!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tj++;\n\t\t}\n\t}",
"private void subtractEnemyHealth(int damage) {\n this.enemyShipHealth -= damage;\n }",
"private void peaShooterAction(PeaShooter s, int i, int j) {\n\t\tif (s.getHp() <= 0) {\n\t\t\tthis.board.removeModel(s, i, j);\n\t\t} else {\n\t\t\tfor (int k = j; k < this.board.getLength(); k++) {\n\t\t\t\tif (this.board.getModel(i, k) instanceof AbstractZombie) {\n\t\t\t\t\ts.attack(this.board.getModel(i, k));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void emptyBullets() {\n for(int i = 0; i < bossBullets.size(); i++){\n Bullet tempBullet = bossBullets.get(i);\n bossBullets.remove(i);\n }\n }"
] | [
"0.628002",
"0.6200398",
"0.61992306",
"0.619489",
"0.60360783",
"0.60154206",
"0.6008967",
"0.5939271",
"0.59074503",
"0.585753",
"0.56982845",
"0.5619524",
"0.56040186",
"0.55981195",
"0.55358666",
"0.5525055",
"0.5516535",
"0.5508373",
"0.5503018",
"0.5497888",
"0.54879105",
"0.5478282",
"0.5463205",
"0.5440117",
"0.54167974",
"0.54143566",
"0.54039353",
"0.53813374",
"0.537271",
"0.53624713",
"0.5350057",
"0.53492355",
"0.53454757",
"0.53437996",
"0.5334266",
"0.5325329",
"0.53151745",
"0.530257",
"0.52996236",
"0.52788883",
"0.525527",
"0.52502465",
"0.5226704",
"0.5211899",
"0.52118903",
"0.52109516",
"0.5206512",
"0.5197037",
"0.51964337",
"0.51785874",
"0.51776415",
"0.5161676",
"0.51561177",
"0.5154095",
"0.51527965",
"0.5148505",
"0.51469827",
"0.51360554",
"0.51324165",
"0.5132099",
"0.5125208",
"0.5124239",
"0.51041573",
"0.5099628",
"0.50964344",
"0.50943124",
"0.509175",
"0.50855327",
"0.5084464",
"0.50831217",
"0.50753367",
"0.50689393",
"0.50659066",
"0.5061175",
"0.50575197",
"0.5056368",
"0.50552726",
"0.5054681",
"0.5050235",
"0.5042044",
"0.50232655",
"0.501766",
"0.5015432",
"0.50134873",
"0.5012478",
"0.50077695",
"0.5002935",
"0.50002515",
"0.49920356",
"0.49900872",
"0.49808013",
"0.4978927",
"0.49736863",
"0.49730676",
"0.49718368",
"0.4969201",
"0.4968835",
"0.4959134",
"0.49490017",
"0.49488872"
] | 0.7539472 | 0 |
Searches for an intersection between the EnemyFish and the parameter PlayerFish. If an intersection is found, a comparison is made ( Enemy Fish small than PlayerFish ? ). If it is, the player's score is updated. | public Pair<Integer, Boolean> intersectsPlayerFish(PlayerFish aPlayerFish) {
for (int i = 0; i < fEnemyFishList.size(); i++) {
Entity currEnemyFish = fEnemyFishList.get(i);
if (aPlayerFish.intersects(currEnemyFish)) {
BoundingBox currEnemyFishBoundingBox = currEnemyFish.getSprite().getBoundingBox();
int currEnemyFishSize = currEnemyFishBoundingBox.getWidth();
BoundingBox aPlayerFishBoundingBox = aPlayerFish.getSprite().getBoundingBox();
int aPlayerFishSize = aPlayerFishBoundingBox.getWidth();
if (currEnemyFishSize < aPlayerFishSize) {
GameLoop.updateScore(currEnemyFish);
return new Pair<Integer, Boolean>(i, false);
} else if (aPlayerFish.getLives() > 1) {
aPlayerFish.decrementLives();
return new Pair<Integer, Boolean>(i, false);
} else {
return new Pair<Integer, Boolean>(i, true);
}
}
}
return new Pair<>(-1, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handleFishBomb(FishBomb aFishBomb) {\n\n ArrayList<EnemyFish> fishToRemove = new ArrayList<EnemyFish>();\n\n for (EnemyFish currEnemyFish : fEnemyFishList) {\n\n BoundingBox currEnemyFishBoundingBox = currEnemyFish.getSprite().getBoundingBox();\n\n if (aFishBomb.intersectsRectangle(currEnemyFishBoundingBox)) {\n\n GameLoop.updateScore(currEnemyFish);\n fishToRemove.add(currEnemyFish);\n \n }\n }\n\n for (EnemyFish currEnemyFish : fishToRemove) {\n fEnemyFishList.remove(currEnemyFish);\n }\n }",
"@EventHandler(priority = EventPriority.HIGH)\n\tpublic void onFishing(PlayerFishEvent event)\n\t{\n\t\tif (!event.getState().equals(State.CAUGHT_FISH))\n\t\t\treturn;\n\t\t\n\t\tProfessionStats prof = new ProfessionStats(perms, data, config, event.getPlayer().getUniqueId());\n\t\tString professionReq = config.getString(\"fishing.professionReq\");\n\t\tBukkit.getLogger().info(\"professionReq: \" + professionReq); //TODO\n\t\tif (professionReq == null)\n\t\t\treturn;\n\t\tString tierReq = config.getString(\"fishing.tierReq\");\n\t\tBukkit.getLogger().info(\"tierReq: \" + tierReq); //TODO\n\t\tif (tierReq == null)\n\t\t\treturn;\n\t\tint exp = config.getInt(\"fishing.exp\");\n\t\t\n\t\tList<String> professions = prof.getProfessions();\n\t\t\n\t\tfor (String p: professions)\n\t\t\tif (professionReq.equalsIgnoreCase(p))\n\t\t\t{\n\t\t\t\tBukkit.getLogger().info(\"Profession matched: \" + p); //TODO\n\t\t\t\t\n\t\t\t\tif (!prof.hasTier(professionReq, tierReq))\n\t\t\t\t{\n\t\t\t\t\tevent.setCancelled(true);\n\t\t\t\t\tBukkit.getLogger().info(\"Drop cancelled.\"); //TODO\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tif (!prof.isPracticeFatigued(professionReq))\n\t\t\t\t\t{\n\t\t\t\t\t\taddExperience(event.getPlayer(), professionReq, exp);\n\t\t\t\t\t\tBukkit.getLogger().info(\"Experience added.\"); //TODO\n\t\t\t\t\t}\n\t\t\t}\n\t}",
"@EventHandler\r\n\tpublic void onFish(PlayerFishEvent e) {\n\t\tif(!(e.getCaught() == null)) {\r\n\t\t\tBukkit.broadcastMessage(ChatColor.YELLOW + e.getPlayer().getDisplayName() + \r\n\t\t\t\t\tChatColor.GRAY + \" has caught \" +\r\n\t\t\t\t\tChatColor.YELLOW + e.getCaught().getName());\r\n\t\t}\r\n\t\t \r\n\t\t// Notifies everyone in chat that a player is fishing in water\r\n\t\tif(e.getState() == State.FISHING && e.getState() != State.IN_GROUND) {\r\n\t\t\tBukkit.broadcastMessage(ChatColor.YELLOW + e.getPlayer().getDisplayName() +\r\n\t\t\t\t\t\tChatColor.GRAY + \" immerses themself in the wonders of fishing\");\r\n\t\t\te.getPlayer().updateInventory();\r\n\t\t}\r\n\t}",
"Fish findFish(){\r\n\t\t//step through GameCollection using iterator to find first instance of a fish\r\n\t\tIterator iterator = gc.getIterator();\r\n\t\twhile(iterator.hasNext()){\r\n\t\t\tGameObject g = iterator.getNext();\r\n\t\t\tif (g instanceof Fish)return (Fish)g;\r\n\t\t}\r\n\treturn nullFish;\r\n\t}",
"public void checkCollisions() {\n\t\t List<Missile> missiles = player.getMissiles();\n\t\t for(Missile n : missiles) {\n\t\t\t Rectangle r1 = n.getBounds();\n\t\t\t for(Mushroom mush : mushrooms) {\n\t\t\t\t Rectangle r2 = mush.getBounds();\n\t\t\t\t r2.x += 8;\n\t\t\t\t if(r1.intersects(r2)) {\n\t\t\t\t\t mush.hitCnt += 1;\n\t\t\t\t\t if(mush.hitCnt == 3) {\n\t\t\t\t\t\t score += 5;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t\t mush.setVisible(false);\n\t\t\t\t\t } else {\n\t\t\t\t\t\t score += 1;\n\t\t\t\t\t\t n.setVisible(false);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Missile hits Centipede\n\t\t //missiles = player.getMissiles();\n\t\t for(Missile m: missiles) {\n\t\t\t Rectangle rm = m.getBounds();\n\t\t\t for(int i = 0; i < centipede.size(); i++) {\n\t\t\t\t Segment s = centipede.get(i);\n\t\t\t\t Rectangle rs = s.getBounds();\n\t\t\t\t if(rs.intersects(rm)) {\n\t\t\t\t\ts.hit();\n\t\t\t\t\tscore = (s.hitCnt < 2 ? score +2 : score + 0);\n\t\t\t\t\tif(s.hitCnt == 2){\n\t\t\t\t\t\t//split centipede\n\t\t\t\t\t\tscore += 5;\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t\tcentipede.remove(i);\n\t\t\t\t\t\t//mushrooms.add(new Mushroom(s.getX(), s.getY()));\n\t\t\t\t\t}else {\n\t\t\t\t\t\tm.setVisible(false);\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if missile hits spider\n\t\t missiles = player.getMissiles();\n\t\t for(Missile m : missiles) {\n\t\t\t Rectangle mBound = m.getBounds();\n\t\t\t Rectangle spiderBound = spider.getBounds();\n\t\t\t if(mBound.intersects(spiderBound)) {\n\t\t\t\t spiderHitCnt += 1;\n\t\t\t\t if(spiderHitCnt == 2) {\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t\t spider.setVisible(false);\n\t\t\t\t\t score += 600;\n\t\t\t\t } else {\n\t\t\t\t\t score += 100;\n\t\t\t\t\t m.setVisible(false);\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if centipede hits mushroom\n\t\t for(Segment c : centipede) {\n\t\t\t Rectangle cB = c.getBounds();\n\t\t\t for(Mushroom m: mushrooms) {\n\t\t\t\t Rectangle mB = new Rectangle(m.getX(), m.getY() + 5, m.getWidth(), m.getHeight() - 10);\n\t\t\t\t mB.y += 3;\n\t\t\t\t if(cB.intersects(mB)) {\n\t\t\t\t\t//makes each segment to go downs\n\t\t\t\t\tc.y += 16;\n\t\t\t\t\tc.dx = -c.dx;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t //check if Centipede hits Player\n\t\t Rectangle playerBounds = player.getBounds();\n\t\t for(Segment s : centipede) {\n\t\t\t Rectangle sB = s.getBounds();\n\t\t\t if(playerBounds.intersects(sB)) {\n\t\t\t\t playerLives -= 1;\n\t\t\t\t playerHitCnt += 1;\n\t\t\t\t if(playerHitCnt > MAX_HIT_COUNT) {\n\t\t\t\t\t// System.out.println(playerLives+\" \"+ x);\n\t\t\t\t\t player.setVisible(false);\n\t\t\t\t\t inGame = false;\n\t\t\t\t }else {\n\t\t\t\t\t\tplayer.x = 707;\n\t\t\t\t\t\tplayer.y = 708;\n\t\t\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\t\t\tplayer = new Player(300, 400);\n\t\t\t\t\t\tregenMushrooms();\n\t\t\t\t\t}\n\t\t\t }\n\t\t }\n\n\t\t //check if Spider hits Player\n\t\t playerBounds = player.getBounds();\n\t\t Rectangle spiderBounds = spider.getBounds();\n\t\t if(spiderBounds.intersects(playerBounds)) {\n\t\t\tplayerLives -= 1;\n\t\t\tplayerHitCnt += 1;\n\t\t\tif(playerLives > MAX_HIT_COUNT) {\n\t\t\t\t//System.out.println(playerLives+\" \"+ y);\n\t\t\t\tplayer.setVisible(false);\n\t\t\t\tspider.setVisible(false);\n\t\t\t}else {\n\t\t\t\tregenMushrooms();\n\t\t\t\tcentipede.clear();\n\t\t\t\tcreateCentipede();\n\t\t\t\tplayer.x = 707;\n\t\t\t\tplayer.y = 708;\n\t\t\t\tPoint location = getLocationOnScreen();\n\t\t\t\trobot.mouseMove(location.x + 250, location.y + 425);\n\t\t\t\tplayer = new Player(300, 400);\n\t\t\t}\n\t\t}\n\t }",
"public void eat(ArrayList<Fish> list) {\n\t\tSystem.out.println(\">>>>>\"+list.size());\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t// ¾ØÐÎÏཻ¾ÍÅжÏsize\n\t\t\tFish fish1 = this;\n\t\t\tFish fish2 = list.get(i);\n\t\t\tif (fish1 != fish2\n\t\t\t\t\t&& ((fish1.x >= fish2.x && fish1.x <= fish2.x + fish2.size && fish1.y >= fish2.y\n\t\t\t\t\t\t\t&& fish1.y <= fish2.y + fish2.size)\n\t\t\t\t\t|| (fish1.x >= fish2.x && fish1.x <= fish2.x + fish2.size && fish1.y + fish1.size >= fish2.y\n\t\t\t\t\t\t\t&& fish1.y + fish1.size <= fish2.y + fish2.size)\n\t\t\t\t\t|| (fish1.x + fish1.size >= fish2.x && fish1.x + fish1.size <= fish2.x + fish2.size\n\t\t\t\t\t\t\t&& fish1.y >= fish2.y && fish1.y <= fish2.y + fish2.size)\n\t\t\t\t\t|| (fish1.x + fish1.size >= fish2.x && fish1.x + fish1.size <= fish2.x + fish2.size\n\t\t\t\t\t\t\t&& fish1.y + fish1.size >= fish2.y && fish1.y + fish1.size <= fish2.y + fish2.size))) {\n\n\t\t\t\tif (fish1.size > fish2.size) {\n\t\t\t\t\tfish1.size += fish2.size / 4;\n\t\t\t\t\tfish2.size = 0;\n\t\t\t\t\t//musiceat.playEatMusic();\n\t\t\t\t} else if (fish1.size < fish2.size) {\n\t\t\t\t\tfish2.size += fish1.size / 4;\n\t\t\t\t\tfish1.size = 0;\n\t\t\t\t\t //musiceat.playEatMusic();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void checkForFish(){\n Object obj=charactersOccupiedTheLocation[1];\n if(obj!=null){\n Thread t=new Thread((Fish)obj);\n t.start(); //start the thread of the fish\n try {\n t.join(); //join warrior's thread to the end of the fish thread\n } catch (InterruptedException ex) {}\n }\n }",
"private void itemIntersectsPlayer(Entity item){\n WeaponComponent weaponComponent = player.weaponComponent;\n HealthComponent healthComponent = (HealthComponent) player.getComponent(ComponentType.HEALTH);\n\n EntityType type = item.getEntityType();\n\n\n switch (type){\n\n case ASSAULT_RIFLE:\n AssaultRifle rifle = (AssaultRifle) item;\n rifle.setInInventory(true);\n weaponComponent.addWeapon(item);\n room.getEntityManager().removeEntity(rifle);\n break;\n\n case SHOTGUN:\n Shotgun shotgun = (Shotgun) item;\n shotgun.setInInventory(true);\n weaponComponent.addWeapon(item);\n room.getEntityManager().removeEntity(shotgun);\n break;\n\n case SWORD:\n Sword sword = (Sword) item;\n sword.setInInventory(true);\n weaponComponent.addWeapon(item);\n room.getEntityManager().removeEntity(sword);\n break;\n\n\n case SHIELD:\n Shield shield = (Shield) item;\n shield.setInInventory(true);\n healthComponent.setHasShield(true);\n room.getEntityManager().removeEntity(shield);\n break;\n\n case SPEEDBOOST:\n SpeedBoost speedBoost = (SpeedBoost) item;\n speedBoost.setInInventory(true);\n player.startBoost(10000);\n room.getEntityManager().removeEntity(speedBoost);\n break;\n\n case HEART:\n Heart heart = (Heart) item;\n heart.setInInventory(true);\n healthComponent.incrementCurrentHealth();\n //do player logic here\n room.getEntityManager().removeEntity(heart);\n break;\n\n\n }\n\n\n }",
"@Override\n\tpublic boolean equals(Object o) {\n\t\treturn(o instanceof SalmonFish);\n\t}",
"public void update(){\n if(player.getPlaying()) {\n // update player animation.\n player.update();\n // update background animation.\n bg.update();\n // checks if skater has finished falling animation to end the game.\n if (player.animate instanceof FallAnimate && player.animate.getDone()) {\n player.setPlaying(false);\n player.setFall(false);\n System.out.println(\"End \" + player.getPlaying());\n }\n // checks if player has reached required points.\n if(player.getScore() > TARGETSCORE){\n player.setPlaying(false);\n levelCompleted = true;\n levelReset = System.nanoTime();\n }\n // increment jumpcounter while crouched.\n if (player.animate instanceof CrouchingAnimate && (jumpCounter <= 25)) {\n jumpCounter++;\n }\n // Creating Bananas:\n long bananaElapsed = (System.nanoTime() - bananaStartTime) / 1000000;\n if(bananaElapsed > 10500 && MainActivity.difficulty != 0){\n bananas.add(new Banana(BitmapFactory.decodeResource(getResources(),\n R.drawable.bigbanana), WIDTH + 10, (int) (HEIGHT * 0.85), 40, 40, 1));\n bananaStartTime = System.nanoTime();\n }\n //collision detection:\n for (int i = 0; i < bananas.size(); i++) {\n bananas.get(i).update();\n if (collision(bananas.get(i), player)) {\n bananas.remove(i);\n player.setFall(true);\n player.setPlaying(false);\n break;\n }\n // removing bananas when off screen\n if (bananas.get(i).getX() < -100) {\n bananas.remove(i);\n break;\n }\n }\n // Creating Cones:\n long coneElapsed = (System.nanoTime() - coneStartTime) / 1000000;\n if (coneElapsed > 5000) {\n cones.add(new TallBricks(BitmapFactory.decodeResource(getResources(),\n R.drawable.tallbricks), WIDTH + 10, (int) (HEIGHT * 0.59), 100, 161, 1));\n coneStartTime = System.nanoTime();\n }\n // update and check collisions.\n for (int i = 0; i < cones.size(); i++) {\n\n cones.get(i).update();\n if (collision(cones.get(i), player) && MainActivity.difficulty == 0) {\n cones.remove(i);\n player.forceSetScore(-500);\n break;\n }\n\n if (collision(cones.get(i), player) && MainActivity.difficulty != 0) {\n cones.remove(i);\n player.setFall(true);\n break;\n }\n // removing cones when off screen\n if (cones.get(i).getX() < -100) {\n cones.remove(i);\n break;\n }\n\n if((cones.get(i).getX() < player.getX() -15) ){\n cones.remove(i);\n player.setPendingPoints(1000);\n break;\n }\n }\n }\n else if(player.getPlaying() == false && levelCompleted){\n long resetElapsed = (System.nanoTime()-levelReset)/1000000;\n if(resetElapsed > 4000) {\n Intent resultIntent = new Intent();\n resultIntent.putExtra(\"result\",true);\n ((Activity)context).setResult(Activity.RESULT_OK,resultIntent);\n ((Activity)context).finish();\n }\n }\n else if(player.getPlaying() == false && !levelCompleted){\n if(!reset){\n newGameCreated = false;\n startReset = System.nanoTime();\n reset = true;\n }\n\n long resetElapsed = (System.nanoTime()-startReset)/1000000;\n\n if(resetElapsed > 2500 && !newGameCreated){\n newGame();\n }\n else if(resetElapsed < 2500 && started){\n player.update();\n }\n }\n }",
"private static void checkCollisions() {\n ArrayList<Entity> bulletsArray = bullets.entities;\n ArrayList<Entity> enemiesArray = enemies.entities;\n for (int i = 0; i < bulletsArray.size(); ++i) {\n for (int j = 0; j < enemiesArray.size(); ++j) {\n if (j < 0) {\n continue;\n }\n if (i < 0) {\n break;\n }\n Entity currentBullet = bulletsArray.get(i);\n Entity currentEnemy = enemiesArray.get(j);\n if (Collision.boxBoxOverlap(currentBullet, currentEnemy)) {\n ++player.hiScore;\n if (currentBullet.collided(currentEnemy)) {\n --i;\n }\n if (currentEnemy.collided(currentBullet)) {\n --j;\n }\n }\n }\n }\n textHiScore.setString(\"HISCORE:\" + player.hiScore);\n\n // Check players with bonuses\n ArrayList<Entity> bonusArray = bonus.entities;\n for (int i = 0; i < bonusArray.size(); ++i) {\n Entity currentBonus = bonusArray.get(i);\n if (Collision.boxBoxOverlap(player, currentBonus)) {\n if (currentBonus.collided(player)) {\n --i;\n player.collided(currentBonus);\n }\n }\n }\n }",
"@Test\n\tpublic void testAddScoreAndGetWinner2() throws BattleshipException {\n\t\t\n\t\t//Play Julia\n\t\tinitScores(playerJulia);\n\t\t\t\n\t\t//Julia realiza 46 disparos a distintos Crafts y destruye 46 Destroyer, 10 Cruiser y 5 Bomber\n\t\tfor (int i=0; i<46; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tcraftScore.score(CraftFactory.createCraft(\"ship.Destroyer\", Orientation.NORTH));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Cruiser\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Bomber\", Orientation.EAST));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Julia(PlayerFile):263\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Julia(PlayerFile):46\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Raul\n\t\tinitScores(playerRaul);\n\t\t//Raul realiza 45 disparos a distintos Crafts y destruye 10 Carrier, 30 Battleship y 5 Fighter\n\t\tfor (int i=0; i<45; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tif (i<30) craftScore.score(CraftFactory.createCraft(\"ship.Battleship\", Orientation.NORTH));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Carrier\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Fighter\", Orientation.EAST));\n\t\t}\n\t\t\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Raul(PlayerRandom):310\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Julia(PlayerFile):46\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Laura\n\t\tinitScores(playerLaura);\n\t\t//Laura realiza 120 disparos a distintos Crafts y destruye 30 Battleship, 10 Cruiser y 5 Fighter\n\t\tfor (int i=0; i<120; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tif (i<30) craftScore.score(CraftFactory.createCraft(\"ship.Battleship\", Orientation.EAST));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Cruiser\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Fighter\", Orientation.SOUTH));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Raul(PlayerRandom):310\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Laura(PlayerRandom):120\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Simon\n\t\tinitScores(playerSimon);\n\t\t//Simon realiza 100 disparos a distintos Crafts y destruye 40 Bomber, 15 Destroyer y 75 Transport\n\t\tfor (int i=0; i<100; i++) {\n\t\t\thitScore.score(CellStatus.DESTROYED);\n\t\t\tif (i<40) craftScore.score(CraftFactory.createCraft(\"aircraft.Bomber\", Orientation.NORTH));\n\t\t\tif (i<15) craftScore.score(CraftFactory.createCraft(\"ship.Destroyer\", Orientation.WEST));\n\t\t\tif (i<75) craftScore.score(CraftFactory.createCraft(\"aircraft.Transport\", Orientation.EAST));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Simon(PlayerFile):1995\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Laura(PlayerRandom):120\",hitRanking.getWinner().toString());\n\t\tcompareRankings(SRANKING4, rankingsToString());\n\t}",
"public void checkHits() {\n\t\t// your code here\n\t\tfor (int i = 0; i < enemyX.length; i++) {\n\t\t\tif (distance((int)xI, (int)yI, enemyX[i], enemyY[i]) <= DIAM_ENEMY/2 + DIAM_LAUNCHER/2) {\n\t\t\t}\n\t\t}\n\t}",
"public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }",
"void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n t.isCollected = true;\n }\n if (t.isHelicopter && this.collected == 1\n && ((t.x == this.player.x && t.y == this.player.y) || (t.isHelicopter\n && this.collected == 1 && t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected = 0;\n this.helicopter.isCollected = true;\n }\n }\n }",
"@Override\n\tpublic boolean equals(Object o) {\n\t\treturn (o instanceof TunaFish);\n\t}",
"public void calcMatch() {\n if (leftResult == null || rightResult == null) {\n match_score = 0.0f;\n } else {\n match_score = FaceLockHelper.Similarity(leftResult.getFeature(), rightResult.getFeature(), rightResult.getFeature().length);\n match_score *= 100.0f;\n tvFaceMatchScore1.setText(Float.toString(match_score));\n llFaceMatchScore.setVisibility(View.VISIBLE);\n\n }\n }",
"@Override\n\tpublic boolean equals(Object o) {\n\t\treturn (o instanceof AnchovyFish);\n\t}",
"@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)\n\tpublic void onPlayerFish(PlayerFishEvent event)\n\t{\n\t Entity entity = event.getCaught();\n\t if(entity == null) return; //if nothing pulled, uninteresting event\n\t \n\t //if should be protected from pulling in land claims without permission\n\t if(entity.getType() == EntityType.ARMOR_STAND || entity instanceof Animals)\n\t {\n\t Player player = event.getPlayer();\n\t PlayerData playerData = instance.dataStore.getPlayerData(player.getUniqueId());\n\t Claim claim = instance.dataStore.getClaimAt(entity.getLocation(), false, playerData.lastClaim);\n\t if(claim != null)\n\t {\n\t //if no permission, cancel\n\t String errorMessage = claim.allowContainers(player);\n\t if(errorMessage != null)\n\t {\n\t event.setCancelled(true);\n\t\t\t\t\tinstance.sendMessage(player, TextMode.Err, Messages.NoDamageClaimedEntity, claim.getOwnerName());\n\t return;\n\t }\n\t }\n\t }\n\t}",
"@Override\n\tpublic boolean equals(Object other) { \n\t\tif (other instanceof Fish) {\n\t\t\tFish otherFish =((Fish) other);\n\t\t\treturn this.xloc == otherFish.getXLoc() && this.yloc == otherFish.getYLoc()\n\t\t\t\t\t\t\t\t&& this.isCaught == otherFish.isCaught && this.direction\n\t\t\t\t\t\t\t\t== otherFish.direction && this.species == otherFish.species;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean isAtFish(){\n final RSNPC[] fishing_spots = NPCs.findNearest(\"Fishing spot\");\n if (fishing_spots.length < 1){\n return false;\n }\n return fishing_spots[0].isOnScreen();\n }",
"@Override\n\tpublic void win() {\n\t\t\n\t\tfround[fighter1]++;\n\t fplatz[fighter1]=Math.round((float)fplatz[fighter1]/2); \n\t \n\t\tnextRound();\n\t}",
"public void update(Player localPlayer)\n\t{\n\t\t\n\t\tfor (int i = 0; i < entities.size(); i++)\n\t\t{\n\t\t\tif (entities.get(i) != null)\n\t\t\t\tentities.get(i).update();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < players.size(); i++)\n\t\t{\n\t\t\tif (players.get(i) != null)\n\t\t\t\tplayers.get(i).update();\n\t\t}\n\t\t\n\t\tif (localPlayer != null)\n\t\t{\n\t\t\tthis.screenPos = new DVector((WIDTH/2) - localPlayer.worldPos.getX(),\n\t\t\t\t\t(HEIGHT/2) - localPlayer.worldPos.getY());\n\t\t}\n\t\t\n\t\tcheckCollisions();\n\t\n\t\tCollections.sort(players, new Comparator<PlayerMP>() {\n\t\t @Override\n\t\t public int compare(PlayerMP p1, PlayerMP p2) {\n\t\t if (p1.score < p2.score)\n\t\t return 1;\n\t\t if (p1.score > p2.score)\n\t\t return -1;\n\t\t return 0;\n\t\t }\n\t\t});\n\t\t\n\t}",
"Float getScore();",
"private void fireball2Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball2.getX() - 1, fireball2.getY());\r\n\t\tGObject topRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball2.getX() - 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tGObject bottomRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(fireball2);\r\n\t\t\tfireball2 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"public void scoreSheep(Sheep s, int team) {\n\t\tif (_hasBeenWon) { p(\"!!!! Can't score a sheep yet!\"); return; }\n\t\t\n\t\t_score[team] += 1;\n\t\tp(\"Team \" + team + \" has scored \" + _score[team] + \" sheep!\");\n\t\t\n\t\tupdateScores();\n//\n//\t\tInvokeMessage im = new InvokeMessage();\n//\t\tim.setArguments(new Object[]{_score[0], _score[1]});\n//\t\tim.setMethodName(\"updateScore\");\n//\t\tim.sendToAll();\n\t\t\n\t\tif (_score[team] >= _scoreToWin) {\n\t\t\tp(\"Team \" + team + \" is the winner!\");\n\t\t\t\n\t\t\t_hasBeenWon = true;\n\t\t\t\n\t\t\t// If I'm not replaying, then reset the game.\n\t\t\tif (!_sps.getReplayer().isReplay()) {\n\t\t\t\tresetGame();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Not resetting bc I'm in playback.\");\n\t\t\t}\n\t\t}\n\t}",
"public void gameOver ()\n {\n Greenfoot.delay (50);\n if (gameOver)\n {\n fader = new Fader (); // create a new fader\n addObject (fader, 400, 300); // add the fader object to the world\n if (UserInfo.isStorageAvailable()) {\n HighScore highScore = new HighScore (score);\n addObject (highScore, 300, 170);\n }\n Greenfoot.stop();\n }\n }",
"public void checkPlayerCollisions() {\n\t\t//Iterate over the players\n\t\tfor (PlayerFish player : getPlayers()) {\n\t\t\t//Get collidables parallel.\n\t\t\tcollidables.parallelStream()\n\t\t\t\n\t\t\t//We only want the collidables we actually collide with\n\t\t\t.filter(collidable -> player != collidable && player.doesCollides(collidable))\n\t\t\t\n\t\t\t//We want to do the for each sequentially, otherwise we get parallelism issues\n\t\t\t.sequential()\n\t\t\t\n\t\t\t//Iterate over the elements\n\t\t\t.forEach(collidable -> {\n\t\t\t\tplayer.onCollide(collidable);\n\t\t\t\tcollidable.onCollide(player);\n\t\t\t});\n\t\t}\n\t}",
"@Override\n\tpublic void update() \n\t{\n\t\tPoint loc = getLocationCopy();\n\t\tEnemy c = game.findNearestEnemy(loc);\n\t\tif (c == null)\n\t\t\treturn;\n\t\t\n\t\tif(c.getLocation().distance(loc) < 100 && game.getFrameCount() % 30 == 0)\n\t\t{\n\t\t\tFlyingSalt s = new FlyingSalt(game, loc, \n\t\t\t\t\t\t\t\t\tc.getLocation().x - position.x,\n\t\t\t\t\t\t\t\t\tc.getLocation().y - position.y);\n\t\t\tgame.addAnimatable(s);\n\t\t}\n\t}",
"public Boolean gameIsOver(){\n\n if(playerShipDead || enemyShipDead){\n if(enemyShipDead && !(deathTriggered)){\n deathTriggered = true;\n playerScore += scoreToGain; //This will depend on the enemyShip's score amount. Only affects the display.\n playerGoldAmount += goldToGain;\n //playerShip.setPointsWorth(playerScore); // Doesn't work.\n }\n return true;\n } else {\n return false;\n }\n }",
"public void score(){\r\n\t\tint playerLocation = player.getLocationX();\r\n\t\tint obstacleX = obstacle.getLocationX();\r\n\t\tint obstacleY = obstacle.getLocationY();\r\n\r\n\r\n\t\tstr =\"\" + countCoins;\r\n\r\n\t\t//if you hit a coin, the number of points goes up by one.\r\n\t\tif(obstacleY == 280 && obstacleX==300 && playerLocation == 250){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\t\tif(obstacleY== 450 && obstacleX==300 && playerLocation ==450){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\r\n\t\t//if you hit the green monster, you lose one point.\r\n\t\tif((obstacleX-50) == 250 && (obstacleY-240) == 250 && playerLocation ==250){\r\n\t\t\tcountCoins--;\r\n\t\t}\r\n\r\n\t\t//if you hit the blue monster, you lose 3 points.\r\n\t\tif((obstacleX+180) == 480 && (obstacleY+180) == 250 && playerLocation ==450){\r\n\t\t\tcountCoins-=3;\r\n\t\t}\r\n\t}",
"public int getFishingLevel()\n\t{\n\t\tint level = (int) Math.pow(m_skillFishExp, 0.333333333333333333333333333);\n\t\tif(level <= 100)\n\t\t\treturn level;\n\t\telse\n\t\t\treturn 100;\n\t}",
"public int CollisionBetween2RedPlayers(Player player)\n {\n int total_collisions = 0;\n try\n {\n RedPlayer red_player = (RedPlayer) player;\n total_collisions += check4CollisionWithRed(player);\n player.setCollisions(total_collisions);\n }\n catch (Exception e)\n {\n return -1;\n }\n return total_collisions;\n }",
"public void updateWithPointWonBy(Player player) {\n if(managerTennisMatch.statusTennisMatch == \"ClassicalGame\") {\n if (player == player1) {\n managerTennisMatch.checkScoreAndUpdateGame(player, player2);\n } else {\n managerTennisMatch.checkScoreAndUpdateGame(player, player1);\n }\n } else if(managerTennisMatch.statusTennisMatch == \"TieBreakInProgress\") {\n player.setScore(player.getScore() + 1);\n if((player1.getScore() >= 7 && player1.getScore() - player2.getScore() >= 2) || (player2.getScore() >= 7 && player2.getScore() - player1.getScore() >= 2)) {\n tennisSetList.get(tennisSetList.size() - 1).getBaseGameList().add(new TieBreakGame(player));\n player1.setScore(0);\n player2.setScore(0);\n }\n } else {\n return;\n }\n }",
"private void scoregain() {\n \tif (playerturn%2==0) {\n \tscoreplayer1 = scoreplayer1+2;}\n if(playerturn%2==1) {\n \tscoreplayer2 = scoreplayer2+2;\n }\n }",
"public void gameOver() {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Game is over. Calculating points\");\r\n\t\tstatus = \"over\";\r\n\t\ttry {\r\n\t\t\tupdateBoard();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tupdateEvents(false);\r\n\t\tEmbedBuilder embed = new EmbedBuilder();\r\n\t\tembed.setTitle(\"Game Results\");\r\n\t\tMap<Integer, Integer> scores = new HashMap<Integer, Integer>();\r\n\t\t\r\n\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\tscores.put(i,players.get(i).calculatePoints());\r\n\t\t\t// Utils.getName(players.get(i).getPlayerID(),guild)\r\n\t\t}\r\n\t\t\r\n\t\tList<Entry<Integer, Integer>> sortedList = sortScores(scores);\r\n\t\t\r\n\t\t// If tied, add highest artifact values\r\n\t\tif ((playerCount > 1) && (sortedList.get(0).getValue().equals(sortedList.get(1).getValue()))) {\r\n\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Scores were tied\");\r\n\t\t\tint highestScore = sortedList.get(0).getValue();\r\n\t\t\tfor (Map.Entry<Integer, Integer> entry : sortedList) {\r\n\t\t\t\t// Only add artifacts to highest scores\r\n\t\t\t\tif (entry.getValue().equals(highestScore)) {\r\n\t\t\t\t\tscores.put(entry.getKey(),entry.getValue()+players.get(entry.getKey()).getHighestArtifactValue());\r\n\t\t\t\t\tplayers.get(entry.getKey()).setAddedArtifactValue(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Sort with added artifact values\r\n\t\tsortedList = sortScores(scores);\r\n\t\t\r\n\t\t// Assigns 1st, 2nd, 3rd\r\n\t\tfor (int i = 0; i < sortedList.size(); i++) {\r\n\t\t\tMap.Entry<Integer, Integer> entry = sortedList.get(i);\r\n\t\t\t// If tie, include artifact\r\n\t\t\tString name = Utils.getName(players.get(entry.getKey()).getPlayerID(),guild);\r\n\t\t\tif (players.get(entry.getKey()).getAddedArtifactValue()) {\r\n\t\t\t\tint artifactValue = players.get(entry.getKey()).getHighestArtifactValue();\r\n\t\t\t\tembed.addField(Utils.endGamePlaces[i],\"**\"+name+\"** - ``\"+(entry.getValue()-artifactValue)+\" (\"+artifactValue+\")``\",true);\r\n\t\t\t} else {\r\n\t\t\t\tembed.addField(Utils.endGamePlaces[i],\"**\"+name+\"** - ``\"+entry.getValue()+\"``\",true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tembed.setFooter(\"Credit to Renegade Game Studios\", null);\r\n\t\tgameChannel.sendMessage(embed.build()).queueAfter(dragonAttackingDelay+3000,TimeUnit.MILLISECONDS);\r\n\t\t\r\n\t\tGlobalVars.remove(this);\r\n\t}",
"@Override\n public void onUpdate(double tpf) {\n int x = (int)((entity.getX() + 30/2 ) / 30);\n int y = (int)((entity.getY() + 30/2 ) / 30);\n\n int px = (int)((player.getX() + 30/2 ) / 30);\n int py = (int)((player.getY() + 30/2 ) / 30);\n\n if (x == px || y == py) {\n shoot();\n }\n }",
"float getScore();",
"float getScore();",
"private void fireball1Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball1.getX() - 1, fireball1.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball1.getX() - 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tGObject topRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY());\r\n\t\tGObject bottomRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tif(topLeft == player || bottomLeft == player || topRight == player || bottomRight == player) {\r\n\t\t\tremove(fireball1);\r\n\t\t\tfireball1 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"protected void attackEntity(Entity var1, float var2)\n {\n if (this.attackTime <= 0 && var2 < 2.0F && var1.boundingBox.maxY > this.boundingBox.minY && var1.boundingBox.minY < this.boundingBox.maxY)\n {\n this.attackTime = 20;\n this.attackEntityAsMob(var1);\n }\n }",
"public void attack(Player player) {\n this.damage = 18 - player.getfPoint(); // the higher the Fighter skill,\n // the lower the damage. change the math.\n int newHealth = player.getShip().getHealth() - damage;\n player.getShip().setHealth(newHealth);\n }",
"private void processPlayerCollision() {\n\t\t// This starts by converting the player vertices to global positions.\n\t\tVector3 playerGlobalPosition = player.getGlobalPositionVector();\n\t\tVector3 playerGlobalRotation = player.getGlobalRotationVector();\n\n\t\tVector3 playerVertex1 = new Vector3(player.hitboxPoints[0], player.hitboxPoints[1]);\n\t\tVector3 playerVertex2 = new Vector3(player.hitboxPoints[2], player.hitboxPoints[3]);\n\t\tVector3 playerVertex3 = new Vector3(player.hitboxPoints[4], player.hitboxPoints[5]);\n\t\t// TODO: Confirm this is correct.\n\t\tVector3 playerVertex1Global = new Vector3(playerVertex1.x * -Math.sin(Math.toRadians(playerGlobalRotation.z)), playerVertex1.y * Math.cos(Math.toRadians(playerGlobalRotation.z))).add(playerGlobalPosition);\n\t\tVector3 playerVertex2Global = new Vector3(playerVertex2.x * -Math.sin(Math.toRadians(playerGlobalRotation.z)), playerVertex2.y * Math.cos(Math.toRadians(playerGlobalRotation.z))).add(playerGlobalPosition);\n\t\tVector3 playerVertex3Global = new Vector3(playerVertex3.x * -Math.sin(Math.toRadians(playerGlobalRotation.z)), playerVertex3.y * Math.cos(Math.toRadians(playerGlobalRotation.z))).add(playerGlobalPosition);\n\n\t\tfor (AsteroidsAsteroid a : asteroids) {\n\t\t\t// If any of the vertices collide and the player is alive, lose a life.\n\t\t\tif ((a.collides(playerVertex1Global) || a.collides(playerVertex2Global) || a.collides(playerVertex3Global)) && player.isShowing()) {\n\t\t\t\tloseLife();\n\t\t\t}\n\t\t}\n\t}",
"private void scoring(NameInfo name1Info, NameInfo name2Info, int flag) {\n\t\tString name1 = name1Info.getName();\n\t\tString name2 = name2Info.getName();\n\t\tString type1 = name1Info.getType();\n\t\tString type2 = name2Info.getType();\n\t\tif (name1.length() == 0 || name2.length() == 0) {\n\t\t\tscore = 0.0f;\n\t\t\tscoreShingle = 0.0f;\n\t\t\treason = \"There is an empty name.\";\n\t\t\treturn;\n\t\t}\n\t\tswitch (flag) {\n\t\t\n\t\tcase 1: // PER\n\t\t\tscoreShingle = (float)LSHUtils.dice(name1, name2);\n\t\t\tfloat scorePER = getPERScore(name1Info, name2Info);\n\t\t\treason = \"Type: \" + name1Info.getType() + \". metric\";\n\t\t\tif (score < scorePER) {\n\t\t\t\tscore = scorePER;\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase 2: // LOC\n\t\t\tscoreShingle = (float)LSHUtils.dice(name1, name2);\n\t\t\tscore = shortMan.scoring(name1, name2);\n\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by JaroWinkler metric with Shortcut.\";\n\t\t\tfloat countryLangScore = countryMan.scoring(name1, name2);\n\t\t\tif (score < countryLangScore) {\n\t\t\t\tscore = countryLangScore;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by JaroWinkler metric with Country-Language list.\";\n\t\t\t\tif (score < scoreShingle) {\n\t\t\t\t\tscore = scoreShingle;\n\t\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by Shingling\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase 3: // ORG\n\t\t\tscoreShingle = (float)LSHUtils.dice(name1, name2);\n\t\t\tscore = acroMan.scoring(name1Info, name2Info);\n\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by JaroWinkler metric with Acronym.\";\n\t\t\tif (scoreShingle > score) {\n\t\t\t\tscore = scoreShingle;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by Shingling\";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase 4: // GEN\n\t\t\tscoreShingle = (float)LSHUtils.dice(name1, name2);\n\t\t\tfloat scorePer = getPERScore(name1Info, name2Info);\n\t\t\tfloat scoreShort = shortMan.scoring(name1, name2);\n\t\t\tfloat scoreCL = countryMan.scoring(name1, name2);\n\t\t\tfloat scoreAcro = acroMan.scoring(name1Info, name2Info);\n\t\t\tif (scoreAcro > score) {\n\t\t\t\tscore = scoreAcro;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by JaroWinkler metric with Acronym.\";\n\t\t\t}\n\t\t\tif (scoreCL > score) {\n\t\t\t\tscore = scoreCL;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by JaroWinkler metric with Country-Language list.\";\n\t\t\t}\n\t\t\tif (scoreShort > score) {\n\t\t\t\tscore = scoreShort;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by JaroWinkler metric with Shortcut.\";\n\t\t\t}\n\t\t\tif (scorePer > score) {\n\t\t\t\tscore = scorePer;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric\";\n\t\t\t}\n\t\t\tif (scoreShingle > score) {\n\t\t\t\tscore = scoreShingle;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by Shingling\";\n\t\t\t}\n\t\t\tif (acroMan.isSpecificCase()) {\n\t\t\t\tscore = scoreAcro;\n\t\t\t\treason = \"Type: \" + name1Info.getType() + \". metric; Scored by JaroWinkler metric with Acronym.\";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase 5: // Two different types\n\t\t\tif (type1.equals(\"PER\") || type2.equals(\"PER\")) {\n\t\t\t\tscore = 0.0f;\n\t\t\t\treason = \"Type: \" + type1 + \". and \" + type2 + \". cannot be compared\";\n\t\t\t} else if (type1.equals(\"LOC\") || type2.equals(\"LOC\")) {\n\t\t\t\tscore = shortMan.scoring(name1, name2);\n\t\t\t\treason = \"Type: LOC. metric; Scored by JaroWinkler metric with Shortcut.\";\n\t\t\t} else if (type1.equals(\"ORG\") || type2.equals(\"ORG\")) {\n\t\t\t\tfloat orgScore = acroMan.scoring(name1Info, name2Info);\n\t\t\t\tif (score < orgScore) {\n\t\t\t\t\tscore = orgScore;\n\t\t\t\t\treason = \"Type: ORG. metric; Scored by JaroWinkler metric with Acronym.\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tscore = 0.0f;\n\t\t\t\treason = \"Type: \" + type1 + \". and \" + type2 + \". cannot be compared\";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tscore = 0.0f;\n\t\t\treason = \"#######SHOULD NOT HAPPEN#######\";\n\t\t}\n\t\tif (name1.equalsIgnoreCase(name2))\n\t\t\tscore = 1.0f;\n\t\tif (!name1Info.getType().equals(\"PER\") && !name2Info.getType().equals(\"PER\"))\n\t\t\thandleLargeRatio(name1, name2);\n\t}",
"@Override\r\n public void hitEvent(Block beingHit, Ball hitter) {\n this.currentScore.increase(5);\r\n if (beingHit.getHitPoints() == 1) {\r\n this.currentScore.increase(10);\r\n }\r\n }",
"boolean isNearMatch(double score);",
"void update()\n\t{\n\t\t// the snake moves this function records it\n\t\ttheSnake.update();\n\n\t\t// checks if the snake is alive\n\t\tplaying = theSnake.isAlive();\n\n\t\t// checks if the snake has eaten a fruit\n\t\tif (theSnake.getXofPartI(0) == fruit[0] && theSnake.getYofPartI(0) == fruit[1] && theSnake.getZofPartI(0) == fruit[2])\n\t\t{\n\t\t\t// the snake grows\n\t\t\ttheSnake.grow();\n\t\t\t// a new fruit location needs to be determined\n\t\t\tplaceFruit();\n\t\t}\n\t}",
"public void hitCheck(){\n int cookieCenterX = cookieX + cookie.getWidth()/2;\n int cookieCenterY = cookieY + cookie.getHeight()/2;\n\n //0 <= cookieCenterX <= kirbyWidth\n //kirbyY <= cookieCenterY <= kirbyY + cookieHeight\n if(0 <= cookieCenterX && cookieCenterX <= kirbySize &&\n kirbyY <= cookieCenterY && cookieCenterY <= kirbyY + kirbySize){\n\n //weakest score cookie\n score +=5;\n cookieX = -10;\n }\n\n //cake\n int cakeCenterX = cakeX + cake.getWidth()/2;\n int cakeCenterY = cakeY + cake.getHeight()/2;\n\n if(0 <= cakeCenterX && cakeCenterX <= kirbySize &&\n kirbyY <= cakeCenterY && cakeCenterY <= kirbyY + kirbySize){\n\n //meh avg.\n score +=15;\n cakeX = -10;\n }\n\n //pizza\n int pizzaCenterX = pizzaX + pizza.getWidth()/2;\n int pizzaCenterY = pizzaY + pizza.getHeight()/2;\n if(0 <= pizzaCenterX && pizzaCenterX <= kirbySize &&\n kirbyY <= pizzaCenterY && pizzaCenterY <= kirbyY + kirbySize) {\n\n score += 30;\n pizzaX = -10; //remember when copy past own code... CHANGE cookieX INTO pizzaX !!!\n }\n\n //bomb\n int bombCenterX = bombX + bomb.getWidth()/2;\n int bombCenterY = bombY + bomb.getHeight()/2;\n\n if(0 <= bombX && bombCenterX <= kirbySize &&\n kirbyY <= bombCenterY && bombCenterY <= kirbyY + kirbySize){\n\n //stop timer...\n timer.cancel();\n timer = null;\n\n //show result... ty youtube...\n Intent intent = new Intent(getApplicationContext(), result.class);\n intent.putExtra(\"SCORE\", score);\n startActivity(intent);\n\n\n }\n\n\n }",
"private void checkSpikeCollisions() {\n\t\t\n\t\t//check collisions with up spikes\n\t\tint len = upSpikes.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tSpike spike = upSpikes.get(i);\n\t\t\t\n\t\t\tif(OverlapTester.overlapCircleRectangle(spike.bounds, player.bounds)) {\n\t\t\t\tplayerAlive = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//check collisions with down spikes\n\t\tlen = downSpikes.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tSpike spike = downSpikes.get(i);\n\t\t\t\n\t\t\tif(OverlapTester.overlapCircleRectangle(spike.bounds, player.bounds)) {\n\t\t\t\tplayerAlive = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//check collisions with right spikes\n\t\tlen = rightSpikes.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tSpike spike = rightSpikes.get(i);\n\t\t\t\n\t\t\tif(OverlapTester.overlapCircleRectangle(spike.bounds, player.bounds)) {\n\t\t\t\tplayerAlive = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//check collisions with left spikes\n\t\tlen = leftSpikes.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tSpike spike = leftSpikes.get(i);\n\t\t\t\n\t\t\tif(OverlapTester.overlapCircleRectangle(spike.bounds, player.bounds)) {\n\t\t\t\tplayerAlive = false;\n\t\t\t}\n\t\t}\n\t}",
"float getMatch();",
"@Override\n public void collide(ScreenObject other) {\n switch (other.getType()) {\n case ASTEROID:\n hp -= other.dealDamage();\n break;\n case ENEMY:\n hp -= other.dealDamage();\n break;\n case ENEMYBULLET:\n hp -= other.dealDamage();\n break;\n case MACGUFFIN:\n macguffinsCollected++;\n break;\n case PORT:\n if (macguffinsCollected >= level.getMacguffinCount()\n && boundingCircle.contains(other.getPosition())) {\n Gdx.app.log(\"Ship\", \"level over\");\n //ends level\n }\n break;\n }\n }",
"public ShotResult checkForHit(Admiral admiral, int playerShot) {\r\n\t\tAdmiral opponentAdmiral = returnOpponent(admiral);\r\n\t\tint[] mapGrid = opponentAdmiral.getMapGrid();\r\n\t\tadmiral.setCountOfPlayerShots((admiral.getCountOfPlayerShots()) + 1);\r\n\t\tShotResult result = ShotResult.Miss;\r\n\t\tIterator<Unit> iteratorForShips = opponentAdmiral.getFleet().iterator();\r\n\t\twhile (iteratorForShips.hasNext()) {\r\n\t\t\tUnit ship = iteratorForShips.next();\r\n\t\t\tArrayList<Integer> location = ship.getLocationCells();\r\n\t\t\tIterator<Integer> iteratorFofCells = location.iterator();\r\n\t\t\twhile (iteratorFofCells.hasNext()) {\r\n\t\t\t\tInteger cell = iteratorFofCells.next();\r\n\t\t\t\tif (cell == playerShot) {\r\n\t\t\t\t\tmapGrid[cell] = 2;\r\n\t\t\t\t\titeratorFofCells.remove();\r\n\t\t\t\t\tint countOfHits = ship.getHitsToSunk();\r\n\t\t\t\t\tship.setHitsToSunk(--countOfHits);\r\n\t\t\t\t\tif (ship.getHitsToSunk() == 0) {\r\n\t\t\t\t\t\tresult = ShotResult.Sunk;\t\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.println(\"Sunk \" + ship.getTypeOfShip() + \" \"+ ship.getName());\r\n\t\t\t\t\t\titeratorForShips.remove();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tresult = ShotResult.Hit;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (result.equals(ShotResult.Miss)) {\r\n\t\t\tmapGrid[playerShot] = -1;\r\n\t\t}\r\n\t\tif (returnOpponent(admiral).getFleet().isEmpty()) {\r\n\t\t\tgameWin = true;\r\n\t\t\twinner = admiral;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public int fight(HW10Monster a, HW10Monster b,HW10Trainer a1,HW10Trainer b1 )\n\t{\n\t\t\n\t\tif(a.type.equals(\"earth\") && b.type.equals(\"fire\"))//determines which case the pokemon will have a stronger or weaker type attack power\n\t\t\t{\n\t\t\t\ta.damage= (int)(a.damage + (.30*a.damage));//sets the first trainers pokemon attack to be extra strong against the seconds trainer pokemon\n\t\t\t\tb.damage=(int)(b.damage - (.30*b.damage));\n\t\t\t}\n\t\telse if(a.type.equals(\"earth\") && b.type.equals(\"water\"))\n\t\t\t{\n\t\t\t\ta.damage= (int)(a.damage - (.30*a.damage));\n\t\t\t\tb.damage=(int)(b.damage + (.30*b.damage));\n\t\t\t}\n\t\telse if(a.type.equals(\"water\") && b.type.equals(\"earth\"))\n\t\t\t{\n\t\t\t\ta.damage= (int)(a.damage + (a.damage*.30));\n\t\t\t\tb.damage=(int)(b.damage - (b.damage*.30));\n\t\t\t}\n\t\telse if(a.type.equals(\"water\") && b.type.equals(\"fire\"))\n\t\t\t{\n\t\t\t\ta.damage= (int)(a.damage - (a.damage*.30));\n\t\t\t\tb.damage=(int)(b.damage + (b.damage*.30));\n\t\t\t}\n\t\telse if(a.type.equals(\"fire\") && b.type.equals(\"earth\"))\n\t\t\t{\n\t\t\t\ta.damage= (int)(a.damage - (a.damage*.30));\n\t\t\t\tb.damage=(int)(b.damage + (b.damage*.30));\n\t\t\t}\n\t\telse if(a.type.equals(\"fire\") && b.type.equals(\"water\"))\n\t\t\t{\n\t\t\t\ta.damage= (int)(a.damage + (a.damage*.30));\n\t\t\t\tb.damage=(int)(b.damage - (b.damage*.30));\n\t\t\t}\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\twhile(a.hp>0 && b.hp>0)//while both pokemon are still above zero continue to take away hp\n\t\t\t{\n\t\t\t\ta.hp=a.hp - b.damage;\n\t\t\t\tb.hp=b.hp - a.damage;\n\t\t\n\t\t\t\n\t\t\t if(a.hp<1 && b.hp<1)//if pokemon are below 1 \n\t\t\t \t{\n\t\t\n\t\t\t\treturn 3;\n\t\t\t\t}\n\t\t\telse if(a.hp>1 && b.hp<1) \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t else if (a.hp<1 && b.hp>1)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\treturn 2;\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t}\n\t\n\t\t\treturn 5;\n\t}",
"public void addScore(){\n\n // ong nuoc 1\n if(birdS.getX() == waterPipeS.getX1() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX1() + 50){\n score++;\n bl = false;\n }\n\n //ong nuoc 2\n if(birdS.getX() == waterPipeS.getX2() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX2() + 50){\n score++;\n bl = false;\n }\n\n // ong nuoc 3\n if(birdS.getX() == waterPipeS.getX3() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX3() + 50){\n score++;\n bl = false;\n }\n\n }",
"public void checkCollision(Actor player) {\n\n for (int i = 0; i < activePickups.size(); i++) {\n Pickup p = activePickups.get(i);\n\n if (p.getBounds().intersects(player.getBounds())) {\n p.despawn();\n if (p instanceof FogLightsPickup) {\n PlayerInventory.incrementFogLights();\n } else if (p instanceof SlowMotionPickup) {\n PlayerInventory.incrementSlowMotion();\n } else if (p instanceof InvincibilityPickup) {\n PlayerInventory.incrementInvincibility();\n\n } else if (p instanceof CoinPickup) {\n coinsPickedUp++;\n canvas.playSound(\"coin.wav\");\n }\n }\n }\n }",
"public static void score() {\n\t\tSystem.out.println(\"SCORE: \");\n\t\tSystem.out.println(player1 + \": \" + score1);\n\t\tSystem.out.println(player2 + \": \" + score2);\n\t}",
"public void compare(){\n\t\tboolean gameOver = false;\n\t\tfor (int j = 0; j < player.size(); j++){\n\t\t\t/**\n\t\t\t * gameover screen\n\t\t\t */\n\t\t\tif (player.get(j) != input.get(j)){\n\t\t\t\tif (score <= 3){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" + \"You got the rank \"\n\t\t\t\t\t\t+ \"of a Joker with a score of \" + score + '.');}\n\t\t\t\telse if (score > 3 && score <= 10){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" +\n\t\t\t\t\"You got the ranking of a Knight with a score of \" + score + '.');}\n\t\t\t\telse if (score > 10 && score <=20){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" +\n\t\t\t\t\"You got the ranking of a King with a score of \" + score + '.');}\n\t\t\t\telse if (score >20){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" +\n\t\t\t\t\"You got the ranking of a Master with a score of \" + score + '.');}\n\t\t\t\tgameOver = true;\n\t\t\t\tif (score > highScore){\n\t\t\t\t\thighScore = score;\n\t\t\t\t\tscoreBoard.setHighScore(highScore);\n\t\t\t\t}\n\t\t\t\tplayer.clear();\n\t\t\t\tinput.clear();\n\t\t\t\tlist();\n\t\t\t\t++totalGames;\n\t\t\t\tfindGames();\n\t\t\t\tfindAvg();\n\t\t\t\tscore = 0;\n\t\t\t\tscoreBoard.setScore(score);\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * starts new round after a successful round\n\t\t */\n\t\tif (player.size() == input.size() && !gameOver){\n\t\t\tplayer.clear();\n\t\t\tscore++;\n\t\t\tscoreBoard.setScore(score);\n\t\t\tstartGame();\n\t\t\t}\n\t}",
"public void incrementAttack(Fighter f1, Fighter f2)\r\n {\r\n if(f1.getAttacking() == 1) //if the fighter is attacking\r\n {\r\n if(f1.getAttackT() == 5) //if 5 frames have passed\r\n {\r\n int[] i = new int[4]; \r\n i = attackHitBox(f1); //gets the x,y, height, and width of the attack\r\n \r\n //if the attack position overlapps the other fighter's position and the other fighter isn't blocking\r\n if (i[0] <= f2.getPos()[0] + f2.getSize() && i[0] + i[2] >= f2.getPos()[0] && i[1] <= f2.getPos()[1] + f2.getSize() && i[1] + i[3] >= f2.getPos()[1] && f2.getBlocking() != 1)\r\n {\r\n f2.setHealth(f2.getHealth() - f1.getAttack().getDamage()); //deal damage to the fighter\r\n if(f1.getRight() == true){ \r\n f2.setKnockBackVel(f1.getAttack().getKnockBack()[0],f1.getAttack().getKnockBack()[1]); //apply knockback going right\r\n }else\r\n {\r\n f2.setKnockBackVel(-f1.getAttack().getKnockBack()[0],f1.getAttack().getKnockBack()[1]); //apply knockback going left\r\n }\r\n }\r\n f1.setAttackT(0); //reset attack timer\r\n f1.setAttacking(2); //sets the fighter to cooldown\r\n }else\r\n {\r\n f1.setAttackT(f1.getAttackT() + 1); //increments timer\r\n }\r\n }\r\n\r\n if(f1.getAttacking() == 2) //if fighter is in cooldown\r\n {\r\n if(f1.getAttackT() == f1.getAttack().getTime()) //if the timer has waited the cooldown of the last attack\r\n {\r\n f1.setAttackT(0); //resets the timer\r\n f1.setAttacking(0); //sets the fighter to \"can attack\"\r\n }\r\n else\r\n {\r\n f1.setAttackT(f1.getAttackT() + 1); //increment timer\r\n }\r\n }\r\n }",
"@Override\r\n\tpublic void onPlayerHit(Player p) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onPlayerHit(Player p) {\n\t\t\r\n\t}",
"public void update(){\n if(newPlayer.getRunning()) {\n\n if (botborder.isEmpty())\n {\n newPlayer.setRunning(false);\n return;\n }\n if (topborder.isEmpty())\n {\n newPlayer.setRunning(false);\n return;\n }\n\n background.update();\n newPlayer.update();\n\n\n //A threshold that the border can have based on the score\n maxBorderHeight = 30+newPlayer.getScore()/difficulty;\n if (maxBorderHeight > height/4){\n maxBorderHeight = height/4;\n minBorderHeight = 5+newPlayer.getScore()/difficulty;\n }\n\n for (int i = 0; i < topborder.size(); i++){\n if (collision(topborder.get(i), newPlayer)){\n newPlayer.setRunning(false);\n }\n }\n for (int i = 0; i < botborder.size(); i++){\n if (collision(botborder.get(i), newPlayer)){\n newPlayer.setRunning(false);\n }\n }\n\n this.updateTopBorder();\n //Create the borders\n this.updateBotBorder();\n\n //Adds smoke from spaceship from the timer\n long timeElapsed = (System.nanoTime() - outTimer)/1000000;\n if(timeElapsed > 120){\n effect.add(new Effects(newPlayer.getX(), newPlayer.getY()+30)); //Balls will appear out of backside of spaceship.\n outTimer = System.nanoTime();\n }\n for (int i = 0; i < effect.size(); i++){\n //Go through every ball and then update\n effect.get(i).update();\n if (effect.get(i).getX()<-10){\n effect.remove(i); //Removes the balls that are off the screen\n }\n }\n\n //Adds enemies in, first one in middle, rest are random\n long enemyElapsed = (System.nanoTime()- enemyStart)/1000000;\n //Higher the score is, the less delay there is\n if (enemyElapsed> (1500 - newPlayer.getScore()/4)){\n\n if (enemy.size() == 0){\n enemy.add(new Enemy(BitmapFactory.decodeResource(getResources(),R.drawable.enemy1), width+10, height + 50,25, 30, 30, 1));\n }\n else {\n enemy.add(new Enemy(BitmapFactory.decodeResource(getResources(),R.drawable.enemy1), width + 10, (int) (rng.nextDouble()*(height-(maxBorderHeight*2))+maxBorderHeight),25,30, newPlayer.getScore(), 1));\n }\n //Reset Timer\n enemyStart = System.nanoTime();\n\n }\n\n long shipElapsed = (System.nanoTime()-secondaryTimer)/1000000;\n\n\n if (newPlayer.getScore() == 150){\n level = 2;\n }\n\n //Randomised spot for secondary enemy\n if (newPlayer.getScore()%150==0) {\n if (newEnemy.size() == 0) {\n newEnemy.add(new secondaryEnemy(BitmapFactory.decodeResource(getResources(), R.drawable.enemy2), width + 5, (int) (rng.nextDouble() * (height - (maxBorderHeight * 2)) + maxBorderHeight), 32, 26, 5, 1));\n newEnemy.add(new secondaryEnemy(BitmapFactory.decodeResource(getResources(), R.drawable.enemy2), width + 5, (int) (rng.nextDouble() * (height - (maxBorderHeight * 2)) + maxBorderHeight), 32, 26, 5, 1));\n }\n\n secondaryTimer = System.nanoTime();\n }\n\n long thirdElapsed = (System.nanoTime()- tertiaryTimer)/1000000;\n\n if (newPlayer.getScore() == 300){\n level = 3;\n }\n if (level == 3) {\n if (enemyElapsed> (1500 - newPlayer.getScore()/4))\n\n //CHANGE THIS YOU PLEB!!!!\n if (thirdEnemy.size() == 0) {\n thirdEnemy.add(new thirdShip(BitmapFactory.decodeResource(getResources(), R.drawable.longship), width + 10, (int) (rng.nextDouble() * (height - (maxBorderHeight * 2)) + maxBorderHeight), 31, 49, 45, 1));\n } else {\n thirdEnemy.add(new thirdShip(BitmapFactory.decodeResource(getResources(), R.drawable.longship), width + 10, (int) (rng.nextDouble() * (height - (maxBorderHeight * 2)) + maxBorderHeight), 31, 49, newPlayer.getScore()/4, 1));\n }\n\n //Reset Timer\n tertiaryTimer = System.nanoTime();\n }\n\n //Go through every enemy and collision will check if two game objects are colliding.\n for (int i = 0; i < enemy.size(); i++){\n enemy.get(i).update();\n if(collision(enemy.get(i), newPlayer)){\n enemy.remove(i);\n newPlayer.setRunning(false);\n break;\n }\n if (enemy.get(i).getX()<-100){\n enemy.remove(i);\n break;\n }\n }\n\n for (int i = 0; i < newEnemy.size(); i++) {\n newEnemy.get(i).update();\n if (collision(newEnemy.get(i), newPlayer)) {\n newEnemy.remove(i);\n newPlayer.setRunning(false);\n break;\n }\n if (newEnemy.get(i).getX() < -100) {\n newEnemy.remove(i);\n break;\n }\n }\n\n for (int i = 0; i < thirdEnemy.size(); i++) {\n thirdEnemy.get(i).update();\n if (collision(thirdEnemy.get(i), newPlayer)) {\n thirdEnemy.remove(i);\n newPlayer.setRunning(false);\n break;\n }\n if (thirdEnemy.get(i).getX() < -100) {\n thirdEnemy.remove(i);\n break;\n }\n }\n\n }\n else {\n //Reset the acceleration of the player, if not reset then the start death animation will occur and everything will reset\n newPlayer.resetAcceleration();\n if (!reset){\n gamenew = false;\n startDeath = System.nanoTime();\n reset = true;\n disappear = true;\n death = new deathAnimation(BitmapFactory.decodeResource(getResources(),R.drawable.damage), newPlayer.getX(),newPlayer.getY()-30,329,137,1);\n level = 1;\n }\n death.update();\n\n long timeElapsed = (System.nanoTime()-startDeath)/1000000;\n\n //If time has passed and there is no new game yet, then create a new game.\n if (timeElapsed > 2500 && !gamenew){\n newGame();\n }\n\n }\n }",
"public void update(GameContainer gc, StateBasedGame sbg, int i) throws SlickException {\n\r\n //spriteID = new SpriteSheet(\"Images/Free/Main Characters/Pink Man/Run2 (32x32).png\",32,32);\r\n //CA = new Animation(spriteID,50);\r\n \r\n Franklen.CheckMove(gc);\r\n \r\n if(ground.getY()<=Franklen.getYP()+32){\r\n Franklen.setGround(true);\r\n }\r\n else{\r\n Franklen.setGround(false);\r\n }\r\n for (int k = 0; k < Apples.length; k++) {\r\n if(Franklen.getHitBox().intersects(Apples[k].getHitbox())&&Apples.length>0){\r\n \r\n Apples[k].setX(1000);\r\n \r\n apples++;\r\n }\r\n }\r\n \r\n\r\n if(finish.intersects(Franklen.getHitBox())&&apples==10){\r\n sbg.enterState(1, new FadeOutTransition(), new FadeInTransition());\r\n }\r\n }",
"public void hitEvent(Block beingHit, Ball hitter) {\r\n this.currentScore.increase(5);\r\n if (beingHit.getHitPoints() == 0) {\r\n this.currentScore.increase(10);\r\n }\r\n }",
"public void hitAlienScore() {\r\n //Add 5 to the score\r\n score += 5;\r\n System.out.println(\"Current Score = \"+score);\r\n }",
"public void fight(Knight otherKnight){\n System.out.println(\"Starting the great fight: \" + this.name + \" VS \" + otherKnight.name);\n if (this.sumEquipmentWeight() + this.weight < otherKnight.sumEquipmentWeight() + otherKnight.weight)\n System.out.println(\"Winner is \" + otherKnight.name);\n else if (this.sumEquipmentWeight() + this.weight > otherKnight.sumEquipmentWeight() + otherKnight.weight)\n System.out.println(\"Winner is \" + this.name);\n else if (this.sumEquipmentPrice() < otherKnight.sumEquipmentPrice())\n System.out.println(\"Winner is \" + otherKnight.name);\n else if (this.sumEquipmentPrice() > otherKnight.sumEquipmentPrice())\n System.out.println(\"Winner is \" + this.name);\n else System.out.println(\"We have no winner.\");\n }",
"public void updatePlayer(Player player) {\n Duration playDuration = Duration.ofMinutes(player.getStatistic(Statistic.PLAY_ONE_MINUTE) / 20 / 60);\n int hoursPlayed = Math.toIntExact(playDuration.toHours());\n this.objective.getScore(player.getName()).setScore(hoursPlayed);\n }",
"private void findFood() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\tlogger.error(\"Should not happen\");\n\t\t\treturn;\n\t\t}\n\n\t\t_food = null;\n\t\tfloat distance = 0;\n\t\t\n\t\tfor (FoodEntry entry : map.values()) { \n\t\t\tfloat d = _obj.getPPosition().sub(entry.obj.getPPosition()).length();\n\t\t\tif (_food == null || d < distance) { \n\t\t\t\t_food = entry.obj;\n\t\t\t\tdistance = d;\n\t\t\t}\n\t\t}\n\t}",
"public boolean canFish() {\r\n\t\tif (location == Location.SAFARI || location == Location.CAVE) {\r\n\t\t\treturn items.containsKey(FishingRod.getFishingRodInstance());\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void updateScore(){\r\n if (this.isArtist || winners.contains(this)) {\r\n this.score += pointsGainedLastRound;\r\n }\r\n pointsGainedLastRound = 0;\r\n placeLastRound = 0;\r\n }",
"public void updateFitness() {\n Particle p;\n for (int i = 0; i < SWARM_SIZE; i++) {\n p = swarm.get(i);\n p.setFitnessValue(getFitnessValue(p.getVector().getPos()));\n p.setpBestFitness(getFitnessValue(p.getpBest().getPos()));\n }\n }",
"private void harvest() {\n\t\t// if VERY far from flower, it must have died. start scouting\n\t\tif(grid.getDistance(grid.getLocation(targetFlower),grid.getLocation(this)) > 200) {\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// if crop storage is full, return to hive with information\n\t\telse if(food >= maxCrop) {\n\t\t\tif(targetFlower != null) {\n\t\t\t\tlastFlowerNectar = targetFlower.food;\n\t\t\t}\n\t\t\tstate = \"RETURNING\";\n\t\t}\n\t\t// if daylight is diminishing, return to hive\n\t\telse if(clock.time > (endForagingTime + 1.0)){\n\t\t\tlastFlowerNectar = 0;\n\t\t\tstate = \"RETURNING\";\n\t\t}\n\t\t// if flower loses all nectar, start scouting for new flower\n\t\telse if(targetFlower.food <= 0){\n\t\t\tstate = \"AIMLESSSCOUTING\";\n\t\t\ttempTime = clock.time;\n\t\t}\n\t\t// semi-random decision to scout for new flower if current flower has low food\n\t\telse if(RandomHelper.nextIntFromTo(0,(int)(maxFlowerNectar/4)) > targetFlower.food &&\n\t\t\t\tRandomHelper.nextDoubleFromTo(0,1) < forageNoise){\n\t\t\tstate = \"AIMLESSSCOUTING\";\n\t\t\ttempTime = clock.time;\n\t\t}\n\t\t// otherwise continue harvesting current flower\n\t\telse{\n\t\t\thover(grid.getLocation(targetFlower));\n\t\t\ttargetFlower.food -= foragingRate;\n\t\t\tfood += foragingRate;\n\t\t\tfood -= lowMetabolicRate;\n\t\t}\n\t}",
"private int scoreCalc(HousingLocation h) {\n\t\tint score = 0;\n\t\tscore += managementScore*h.managementScore;\n\t\tscore += amenitiesScore*h.amenitiesScore;\n\t\tscore += locationScore*h.locationScore;\n\t\tscore += communityChillFactorScore*h.communityChillFactorScore;\n\t\t\n\t\treturn score;\n\t\t\n\t}",
"public float getScore(){return score;}",
"public int compareTo(FontMatch match) {\n/* 710 */ return Double.compare(match.score, this.score);\n/* */ }",
"private void update() {\n if(!Constants.GAME_OVER) {\n deltaTime = (int) (System.currentTimeMillis() - startTime);\n startTime = System.currentTimeMillis();\n elapsedTime = (int) (System.currentTimeMillis() - initTime)/1000;\n Constants.ELAPSED_TIME = elapsedTime;\n //Log.d(\"FRAMES \", \"\"+ Constants.FRAME_COUNT);\n //call update on every object\n player.update();\n enemyManager.update(player);\n starManager.update(player.getSpeed());\n asteroidManager.update(player);\n } else {\n playing = false;\n sound.stopBg();\n for(int i = 0; i < highScore.length; i++) {\n if (Constants.SCORE > highScore[i]) {\n final int endI = i;\n highScore[i] = Constants.SCORE;\n // Log.d(\"SCORE \", \"\" + highScore[i]);\n break;\n }\n }\n\n SharedPreferences.Editor editor = sharedPreferences.edit();\n for(int i = 0; i < highScore.length; i++) {\n int index = i + 1;\n editor.putInt(\"score\" + index, highScore[i]);\n }\n editor.apply();\n }\n }",
"public int putPlayerOnField(CPlayerEntity pPlayer, CPositionEntity pPosition){\r\n int i = 0;\r\n int lReturnValue = PUT_PLAYER_FAILURE_PLAYER_NOT_IN_SQUAD;\r\n for (CYourPlayerEntry lPlayerEntry : mYourPlayerEntries) {\r\n if (lPlayerEntry.getPlayer() != null) {\r\n if (lPlayerEntry.getPlayer().getId() == pPlayer.getId() && lPlayerEntry.getPosition() == null) {\r\n lReturnValue = PUT_PLAYER_SUCCESS_NO_SWAP;\r\n }\r\n }\r\n }\r\n\r\n /*\r\n * if we found the player we want to put in our squad\r\n * we go through every player of the squad\r\n */\r\n if (lReturnValue == PUT_PLAYER_SUCCESS_NO_SWAP){\r\n for (CYourPlayerEntry lPlayerEntry : mYourPlayerEntries){\r\n if (lPlayerEntry.getPosition() != null) {\r\n /*\r\n * if a player in the squad already has the position\r\n * where we want to put our passed player, we set his\r\n * position to null (to swap him to the bench)\r\n */\r\n if (lPlayerEntry.getPosition().getName().equals(pPosition.getName())) {\r\n editPlayerPosition(i, null);\r\n lReturnValue = PUT_PLAYER_SUCCESS_WITH_SWAP;\r\n }\r\n }\r\n /*\r\n * when we finally find our passed player, we set\r\n * his position to the passed one\r\n */\r\n if (lPlayerEntry.getPlayer() != null) {\r\n if (lPlayerEntry.getPlayer().getId() == pPlayer.getId()) {\r\n editPlayerPosition(i, pPosition);\r\n }\r\n }\r\n i++;\r\n }\r\n }\r\n return lReturnValue;\r\n }",
"boolean score(String lineItemId, Score score);",
"public boolean Calculation(Player player, Attack currentAttack) {\n\t\tint tabXYWH[] = currentAttack.getAttackPosition(player);\n\t\tboolean collisionJoueur = false;\n\t\tboolean hasHit = false;\n\t\tReceiveHit receiveHit = new ReceiveHit();\n\t\t// Collision avec des joueurs ?\n\t\tfor (Player otherPlayer : Game.listPlayers) {\n\t\t\tif (otherPlayer != player) {\n\t\t\t\tcollisionJoueur = Collision.collision(tabXYWH[0], tabXYWH[1], tabXYWH[2], tabXYWH[3], otherPlayer.playerPosition.x, otherPlayer.playerPosition.y, otherPlayer.playerPosition.w, otherPlayer.playerPosition.h);\n\t\t\t\tif (collisionJoueur) {\n\t\t\t\t\tCombatMgr playerCombatMgr = player.playerCombatMgr;\n\t\t\t\t\tif(player.playerInfoBoolean.isTurningRight) {\n\t\t\t\t\t\treceiveHit.Calculation(otherPlayer, playerCombatMgr.currentAttack.getDamage(),playerCombatMgr.currentAttack.getPowerX(),playerCombatMgr.currentAttack.getPowerY());\n\t\t\t\t\t} else {\n\t\t\t\t\t\treceiveHit.Calculation(otherPlayer,playerCombatMgr.currentAttack.getDamage(),-playerCombatMgr.currentAttack.getPowerX(),playerCombatMgr.currentAttack.getPowerY());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (playerCombatMgr.currentAttack.getName().equals(\"Small\")) {\n\t\t\t\t\t\tSoundManager.play_once(\"smallhit\") ;\n\t\t\t\t\t} else if (playerCombatMgr.currentAttack.getName().equals(\"Big\")) {\n\t\t\t\t\t\tSoundManager.play_once(\"bighit\") ;\n\t\t\t\t\t}else if (playerCombatMgr.currentAttack.getName().equals(\"Special1\")) {\n\t\t\t\t\t\tSoundManager.play_once(\"special1\") ;\n\t\t\t\t\t}else if (playerCombatMgr.currentAttack.getName().equals(\"Special2\")) {\n\t\t\t\t\t\tSoundManager.play_once(\"special2\") ;\n\t\t\t\t\t}else if (playerCombatMgr.currentAttack.getName().equals(\"Special3\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\thasHit = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn hasHit;\n\t}",
"private void collision(){\n\t\tboolean touched = false;\n\t\tboolean hit;\n\t\tint j =0;\n\t\twhile ( j< this.game_.getSaveBaby().size() && !touched){\n\t\t\tBabyBunnies b = this.game_.getSaveBaby().get(j);\n\t\t\ttouched = this.game_.getBunnyHood().getPosition().dst(b.getPosition())<=80;\n\t\t\thit = this.game_.getWolf().getPosition().dst(b.getPosition())<=80;\n\t\t\tif (touched){\n\t\t\t\tthis.game_.setBabySaved(b);\n\t\t\t}\n\t\t\tif (hit){\n\t\t\t\tthis.game_.wolfCatchBunnies(b);\n\t\t\t\t/**\n\t\t\t\t * Test de callback, retour vers l app android\n\t\t\t\t */\n\t\t\t\tif(this.game_.getScoreWolf()==3){\n\t\t\t\t\tif (this.gameCallBack != null) {\n\n this.gameCallBack.gameOverActivity(this.game_.getScoreBunny());\n\t\t\t\t\t\tthis.isGameOver=true;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tGdx.app.log(\"MyGame\", \"To use this class you must implement MyGameCallback!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tj++;\n\t\t}\n\t}",
"private void checkCollisions(MovementEngine currentShip)\n\t{\t\t\n\t\tif (currentShip.getWeaponName() == Constants.PLAYER \n\t\t\t\t|| currentShip.getWeaponName() == Constants.ENEMY_FIGHTER\n\t\t\t\t|| currentShip.getWeaponName() == Constants.ENEMY_BOSS\t\n\t\t\t\t|| currentShip.getWeaponName() == Constants.MISSILE_PLAYER\t\n\t\t\t\t|| currentShip.getWeaponName() == Constants.MISSILE_ENEMY\n\t\t\t\t|| currentShip.getWeaponName() == Constants.GUN_ENEMY\t\n\t\t\t\t|| currentShip.getWeaponName() == Constants.GUN_PLAYER\n\t\t\t\t|| currentShip.getWeaponName() == Constants.PARACHUTE\n\t\t\t\t&& currentShip.getDestroyedFlag() == false)\n\t\t{\n\t\t\tfor(int i = 0; i < GameState._weapons.size(); i ++)\n\t\t\t{\t\t\t\t\t\n\t\t\t\tif (i < GameState._weapons.size())\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tMovementEngine ship = GameState._weapons.get(i);\t\t\t\t\t\n\t\t\t\t\t\tif (ship.getWeaponName() == Constants.PLAYER \n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.ENEMY_FIGHTER\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.ENEMY_BOSS\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.MISSILE_PLAYER\t\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.MISSILE_ENEMY\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.GUN_ENEMY\t\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.GUN_PLAYER\n\t\t\t\t\t\t\t\t|| ship.getWeaponName() == Constants.PARACHUTE\n\t\t\t\t\t\t\t\t&& ship.getDestroyedFlag() == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint diffX = Math.abs((int)(currentShip.getX() - ship.getX())); \n\t\t\t\t\t\t\tint diffY = Math.abs((int)(currentShip.getY() - ship.getY())); \n\t\t\t\t\t\t\tif (diffX <= (10 * GameState._density) && diffY <= (10 * GameState._density))\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcurrentShip.onCollision(ship);\n\t\t\t\t\t\t\t\tship.onCollision(currentShip);\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(ArrayIndexOutOfBoundsException e)\n\t\t\t\t\t{\n\t\t\t\t\t\t// ignore and continue\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"public void move() {\n for (EnemyFish currEnemyFish : fEnemyFishList) {\n int movespeed = currEnemyFish.getMoveSpeed();\n if (currEnemyFish.isLefty()) {\n currEnemyFish.getSprite().updateX(movespeed);\n } else {\n currEnemyFish.getSprite().updateX(-movespeed);\n }\n }\n }",
"private void intersectPlayerWithWall(Entity entity){\n player.setXVelocity(0);\n player.setYVelocity(0);\n\n //sets the x and y pos to be the correct wall placment, will need to know where the wall is relative to the player to do this\n\n int wallCenterYPos = (entity.getY() + (entity.getHeight() / 2));\n int playerCenterYPos = (player.getY() + (player.getHeight() / 2));\n int wallCenterXPos = (entity.getX() + (entity.getWidth() / 2));\n int playerCenterXPos = (player.getX() + (player.getWidth() / 2));\n\n //uses Minkowski sum\n\n float wy = (entity.getWidth() + player.getWidth()) * (wallCenterYPos - playerCenterYPos);\n float hx = (entity.getHeight() + player.getHeight()) * (wallCenterXPos - playerCenterXPos);\n\n if (wy > hx) {\n if (wy > -hx) {\n //bottom of player hitting wall\n //push the player off the wall so the collision ends\n player.setY(entity.getY() - player.getHeight());\n return;\n\n } else {\n //left of wall\n //push the player off the wall so the collision ends\n player.setX(entity.getX() + entity.getWidth());\n return;\n }\n } else {\n if (wy > -hx) {\n //right of wall\n //push the player off the wall so the collision ends\n player.setX(entity.getX() - player.getWidth());\n return;\n } else {\n //top of player hitting wall\n //push the player off the wall so the collision ends\n player.setY(entity.getY() + entity.getHeight());\n return;\n }\n\n }\n }",
"public void act() \n {\n // need to explicitly cast as the World subclass (i.e., Game)\n playField = (Game)getWorld();\n \n // behavior depends on the game status\n if ( playField.getGameStatus() == Status.NOT_PLAYING )\n {\n // don't do anything\n }\n else if ( playField.getGameStatus() == Status.PLAYING )\n {\n move();\n \n /* \n * Check for intersection with the player's paddle \n */\n Paddle possiblePaddle = (Paddle)( getOneObjectAtOffset(-4,0,Paddle.class) );\n if ( possiblePaddle != null )\n {\n // Display debug message\n System.out.printf(\"Ball has intersected with %s\\n\",possiblePaddle.toString());\n \n // compute return angle and increase speed by 10%\n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n double hitLocation = (this.getExactY()-4.0) - (possiblePaddle.getExactY()-32.0);\n int returnAngle = (int)( 315.0 + (90.0/64.0)*hitLocation );\n getMovement().setDirection( returnAngle );\n getMovement().scale( 1.1 );\n playField.playHighBlip();\n } // end if\n \n /* \n * Check for intersection with the CPU paddle \n */\n CPUPaddle possibleCPUPaddle = (CPUPaddle)( getOneObjectAtOffset(+4,0,CPUPaddle.class) );\n if ( possibleCPUPaddle != null )\n {\n // Display debug message\n System.out.printf(\"Ball has intersected with %s\\n\",possibleCPUPaddle.toString());\n \n // compute return angle and increase speed by 10%\n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n double hitLocation = (this.getExactY()-4.0) - (possibleCPUPaddle.getExactY()-32.0);\n int returnAngle = (int)( 225.0 - (90.0/64.0)*hitLocation );\n getMovement().setDirection( returnAngle );\n getMovement().scale( 1.1 );\n playField.playHighBlip();\n } // end if\n \n /*\n * If the ball hits the boundary, simply have it reflect off the \n * surface in the opposite Y direction \n */\n Boundary possibleTopBoundary = (Boundary)( getOneObjectAtOffset(0,-4,Boundary.class) );\n Boundary possibleBottomBoundary = (Boundary)( getOneObjectAtOffset(0,4,Boundary.class) );\n if ( possibleTopBoundary != null || possibleBottomBoundary != null )\n {\n getMovement().revertVertical();\n playField.playLowBlip();\n } // end if \n \n // check if the ball has passed the player's paddle\n if ( getExactX() <= 0 )\n {\n playField.updateScore( PLAYER_TWO );\n \n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n setLocation( playField.GAME_WIDTH / 2, playField.GAME_HEIGHT / 2 );\n getMovement().setNeutral();\n getMovement().add( new Vector( -45 + Greenfoot.getRandomNumber( 90 ), 3.0 ) );\n \n if ( Greenfoot.getRandomNumber( 2 ) == 0 )\n {\n getMovement().revertHorizontal();\n } // end inner if\n \n playField.playLongBeep();\n } // end outer if\n \n // check if the ball has passed the CPU's paddle\n if ( getExactX() >= playField.GAME_WIDTH )\n {\n playField.updateScore( PLAYER_ONE );\n \n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n setLocation( playField.GAME_WIDTH / 2, playField.GAME_HEIGHT / 2 );\n getMovement().setNeutral();\n getMovement().add( new Vector( -45 + Greenfoot.getRandomNumber( 90 ), 3.0 ) );\n \n if ( Greenfoot.getRandomNumber( 2 ) == 0 )\n {\n getMovement().revertHorizontal();\n } // end inner if\n \n playField.playLongBeep();\n } // end outer if\n \n } \n else if ( playField.getGameStatus() == Status.GAME_OVER )\n {\n playField.removeObject( this );\n } // end multiway if/else\n \n }",
"public void startMatch() throws InterruptedException {\r\n\t\t//Get Active Pokemon\r\n\t\tfor (Pokemon selectedPokemon : yourPokemon) {\r\n\t\t\tif (selectedPokemon != null) {\r\n\t\t\t\tuser = selectedPokemon;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (Pokemon selectedPokemon : foesPokemon) {\r\n\t\t\tif (selectedPokemon != null) {\r\n\t\t\t\tfoe = selectedPokemon;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcalculateActivePokemon();\r\n\r\n\t\t//Start game loop\r\n\t\twhile (pokemonActiveUser > 0 && pokemonActiveFoe > 0) {\r\n\t\t\t\r\n\t\t\t//Is the user's Pokemon knocked out?\r\n\t\t\tif (user.isKnockedOut()) {\r\n\t\t\t\tmoveEffectsUser = new ArrayList<Move_Recurring>();\r\n\t\t\t\tuser = yourPokemon[6 - pokemonActiveUser];\r\n\t\t\t\tSystem.out.println(\"Go \" + user.getName() + \"!\");\r\n\t\t\t\tuser.resetStats();\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 0; i < moveEffectsFoe.size(); i++) {\r\n\t\t\t\t\tif (moveEffectsFoe.get(i) instanceof LeechSeed) {\r\n\t\t\t\t\t\tmoveEffectsFoe.remove(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Is the foe Pokemon knocked out?\r\n\t\t\tif (foe.isKnockedOut()) {\r\n\t\t\t\tmoveEffectsFoe = new ArrayList<Move_Recurring>();\r\n\t\t\t\tfoe = foesPokemon[6 - pokemonActiveFoe];\r\n\t\t\t\tSystem.out.println(\"Go \" + foe.getName() + \"!\");\r\n\t\t\t\tfoe.resetStats();\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 0; i < moveEffectsUser.size(); i++) {\r\n\t\t\t\t\tif (moveEffectsUser.get(i) instanceof LeechSeed) {\r\n\t\t\t\t\t\tmoveEffectsUser.remove(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\t\r\n\t\t\t//Input selected move for the user's Pokemon to preform\r\n\t\t\tselectedMoveUser = null;\r\n\t\t\twhile (selectedMoveUser == null) {\r\n\t\t\t\t\r\n\t\t\t\t//Display Foe\r\n\t\t\t\tSystem.out.println(\"FOE Pokemon\");\r\n\t\t\t\tfoe.displayPokemon();\r\n\t\t\t\tSystem.out.println(\"\");\r\n\r\n\t\t\t\t//Display User Pokemon\r\n\t\t\t\tSystem.out.println(\"YOUR Pokemon\");\r\n\t\t\t\tuser.displayPokemon();\r\n\t\t\t\t\r\n\t\t\t\t//Display active Pokemon's moves\r\n\t\t\t\tSystem.out.println(user.getMoveList());\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.print(\"Select Move: \");\r\n\t\t\t\tString input = scanner.next().trim().toUpperCase();\r\n\t\t\t\t\r\n\t\t\t\tif (input.equals(\"1\") || input.equals(\"2\") || input.equals(\"3\") || input.equals(\"4\")) {\r\n\t\t\t\t\tselectedMoveUser = user.getMove(Integer.parseInt(input) - 1);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor (int i = 0; i < user.getNumberOfMoves(); i++) {\r\n\t\t\t\t\t\tif (user.getMove(i).toString().trim().toUpperCase() == input) {\r\n\t\t\t\t\t\t\tselectedMoveUser = user.getMove(i);\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\t//Uses lazy evaluation\r\n\t\t\t\tif (selectedMoveUser != null && selectedMoveUser.getPP() < 1) {\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\tSystem.out.println(\"That move is out of PP!\");\r\n\t\t\t\t\tselectedMoveUser = null;\r\n\t\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (selectedMoveUser == null) {\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\tSystem.out.println(\"Please enter valid input\");\r\n\t\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Is someone using Mirror Move?\r\n\t\t\tif (selectedMoveUser instanceof MirrorMove) {\r\n\t\t\t\tif (selectedMoveFoe == null) {\r\n\t\t\t\t\tSystem.out.println(user.getName() + \" failed to use \" + selectedMoveUser.getName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tselectedMoveUser = selectedMoveFoe;\r\n\t\t\t\t\tSystem.out.println(user.getName() + \" copied \" + foe.getName() + \"'s last move!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (selectedMoveFoe instanceof MirrorMove) {\r\n\t\t\t\tif (usersLastMove == null) {\r\n\t\t\t\t\tSystem.out.println(foe.getName() + \" failed to use \" + selectedMoveFoe.getName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tselectedMoveFoe = usersLastMove;\r\n\t\t\t\t\tSystem.out.println(foe.getName() + \" copied \" + user.getName() + \"'s last move!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t//Select move for foe Pokemon\r\n\t\t\tRandom generator = new Random();\r\n\t\t\tselectedMoveFoe = foe.getMove(generator.nextInt(foe.getNumberOfMoves()));\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\t//Who goes first?\r\n\t\t\tif (selectedMoveUser.isFast() && !(selectedMoveFoe.isFast())) {\r\n\t\t\t\tuserGoesFirst = true;\r\n\t\t\t} else if (selectedMoveFoe.isFast() && !(selectedMoveUser.isFast())) {\r\n\t\t\t\tuserGoesFirst = false;\r\n\t\t\t} else {\r\n\t\t\t\tuserGoesFirst = user.getSpeed() >= foe.getSpeed();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Run Turn\r\n\t\t\tif (userGoesFirst) {\r\n\t\t\t\tSystem.out.println(\"Your Pokemon \" + user.getName() + \" started it's turn\");\r\n\t\t\t\tselectedMoveUser.doMove(user, foe);\r\n\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t\tSystem.out.println(\"The foe's Pokemon \" + foe.getName() + \" started it's turn\");\r\n\t\t\t\tselectedMoveFoe.doMove(foe, user);\r\n\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"The foe's Pokemon \" + foe.getName() + \" started it's turn\");\r\n\t\t\t\tselectedMoveFoe.doMove(foe, user);\r\n\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t\tSystem.out.println(\"Your Pokemon \" + user.getName() + \" started it's turn\");\r\n\t\t\t\tselectedMoveUser.doMove(user, foe);\r\n\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Is there any moves that have lasting effects?\r\n\t\t\tif (selectedMoveUser instanceof Move_Recurring) {\r\n\t\t\t\tmoveEffectsUser.add((Move_Recurring) selectedMoveUser.clone());\r\n\t\t\t}\r\n\t\t\tif (selectedMoveFoe instanceof Move_Recurring) {\r\n\t\t\t\tmoveEffectsFoe.add((Move_Recurring) selectedMoveFoe.clone());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor (Move_Recurring effect: moveEffectsUser) {\r\n\t\t\t\teffect.periodicEffect(user, foe);\r\n\t\t\t}\r\n\t\t\tfor (Move_Recurring effect: moveEffectsFoe) {\r\n\t\t\t\teffect.periodicEffect(foe, user);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tuser.getStatus().endOfTurn(user);\r\n\t\t\tfoe.getStatus().endOfTurn(foe);\r\n\t\t\t\r\n\t\t\t//Distribute experience\r\n\t\t\tif (foe.isKnockedOut() && user.isKnockedOut() == false) {\r\n\t\t\t\tSystem.out.println(\"Foe's Pokemon \" + foe.getName() + \" was knocked out!\");\r\n\t\t\t\tuser = user.addExperience((int) (foe.getBaseExperienceYield() * 1.5 * foe.getLevel()));\r\n\t\t\t} else if (user.isKnockedOut() && foe.isKnockedOut() == false) {\r\n\t\t\t\tSystem.out.println(\"Your Pokemon \" + user.getName() + \" was knocked out!\");\r\n\t\t\t\t foe = foe.addExperience((int) (user.getBaseExperienceYield() * 1.5 * user.getLevel()));\r\n\t\t\t}\r\n\t\t\tcalculateActivePokemon();\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"----\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t\t\r\n\t\t//Output results\r\n\t\tif (pokemonActiveFoe < 1) {\r\n\t\t\t//Game won!\r\n\r\n\t\t\tSystem.out.println(\"YOU WIN!\");\r\n\t\t} else if (pokemonActiveUser < 1) {\r\n\t\t\t//Game lost\r\n\t\t\tSystem.out.println(\"All your Pokemon were knocked out...\");\r\n\t\t\tSystem.out.println(\"You Lose\");\r\n\t\t}\r\n\t}",
"public abstract float getScore();",
"private boolean detectCollisions(GameState mGaemState,ArrayList<GameObject> objects,SoundEngine se,ParticleSystem ps){\n boolean playerHit = false;\n for (GameObject go1:objects){\n if (go1.checkActive()){\n //the 1st object is active\n //so worth checking\n\n for (GameObject go2:objects){\n if (go2.checkActive()){\n //the 2nd object is active\n //so worth checking\n if (RectF.intersects(go1.getTransform().getCollider(),go2.getTransform().getCollider())){\n\n //switch goes here\n //there has been a collision\n //but does it matter?\n switch (go1.getTag() + \" with \" + go2.getTag()){\n case \"Player with Alien Laser\":\n playerHit = true;\n mGaemState.lostLife(se);\n\n break;\n\n case \"Player with Alien\":\n playerHit =true;\n mGaemState.lostLife(se);\n\n break;\n\n case \"Player Laser with Alien\":\n mGaemState.increaseScore();\n //respawn the alien\n ps.emitParticles(new PointF(go2.getTransform().getLocation().x,go2.getTransform().getLocation().y));\n go2.setInactive();\n go2.spawn(objects.get(Level.PLAYER_INDEX).getTransform());\n go1.setInactive();\n se.playAlienExplode();\n\n break;\n\n default:\n break;\n }\n\n }\n }\n }\n }\n }\n return playerHit;\n }",
"public static Player getEffectedPlayers(Player efPlayer) {\r\n //the chosen player will be returned\r\n return efPlayer;\r\n }",
"public synchronized void updateScore(PlayerHandler playerHandler) {\n\n int points = teams.length * Server.TEAM_SCORE / numMaxPlayers;\n playerHandler.increaseCorrectAnswers();\n\n if(points < 3){\n points = 3;\n }\n\n if (playerHandler.getTeam() == teams[0]) {\n score -= points;\n System.out.println(score);\n return;\n }\n score += points;\n }",
"@Override\n\tpublic void run() {\n\t\ttry{\n\t\t\tList<Player> playerList = Game.getPlayers();\n\t\t\tList<Ship> temp_list = new ArrayList<Ship>();\n\t\t\twhile(Alpha.getGameRunning()){\n\t\t\t\tThread.sleep(100L);\n\t\t\t\t\n\t\t\t\t//iterates through the players\n\t\t\t\tfor(int i = 0; i<playerList.size(); i++){\n\t\t\t\t\ttemp_list.clear();\n\t\t\t\t\tList<Ship> shipList = playerList.get(i).getShips();\n\t\t\t\t\tplayerList.get(i).resetVisibleEnemies(); //makes sure there is no overadding visible ships\n\t\t\t\t\t\n\t\t\t\t\t//iterates through the players' ships\n\t\t\t\t\tfor(int j = 0; j<shipList.size(); j++){\n\t\t\t\t\t\tShip temp_ship = shipList.get(j);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//iterates through other players\n\t\t\t\t\t\tfor(int k = 0; k<playerList.size(); k++){\n\t\t\t\t\t\t\tif(k!=i){\n\t\t\t\t\t\t\t\tList<Ship> enemyList = playerList.get(k).getShips();\n\t\t\t\t\t\t\t\tint count = 0;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//iterates through other players' shiplist to find ships in range\n\t\t\t\t\t\t\t\tfor(int l = 0; l< enemyList.size(); l++){\n\t\t\t\t\t\t\t\t\tShip enemyShip = enemyList.get(l);\n\t\t\t\t\t\t\t\t\tdouble range = Game.findRangeBetween(temp_ship, enemyShip);\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Vision: Ship1 is \" + range + \" from Ship2\");\n\t\t\t\t\t\t\t\t\tif(range <= temp_ship.getSightRange()){\n\t\t\t\t\t\t\t\t\t\t//TODO: add it to sighted lists and set ship boolean to spotted\n\t\t\t\t\t\t\t\t\t\tif(!temp_list.contains(enemyShip)){\n\t\t\t\t\t\t\t\t\t\t\ttemp_list.add(enemyShip);\n\t\t\t\t\t\t\t\t\t\t\tenemyShip.setVisible(true);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} if(count==enemyList.size()){\n\t\t\t\t\t\t\t\t\ttemp_ship.setVisible(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tplayerList.get(i).setVisibleEnemies(temp_list);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch(InterruptedException e){\n\t\t\te.printStackTrace();\n\t\t} finally{\n\t\t\t\n\t\t}\n\n\t}",
"@Override\r\n\tpublic void onPlayerHit(Player p) {\n\r\n\t}",
"public void SZTFromEveryOtherPlayer(int value) {\n\t\tfor(Player p:players) {\n\t\t\tif(p!=current) {\n\t\t\t\tp.lowerScore(value);\n\t\t\t\tcurrent.raiseScore(value);\n\t\t\t}\n\t\t}\n\t}",
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"public boolean isUseableByPlayer(EntityPlayer entityPlayer)\n {\n return this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord) == this &&\n entityPlayer.getDistanceSq((double) this.xCoord + 0.5D, (double) this.yCoord + 0.5D,\n (double) this.zCoord + 0.5D) <= 64.0D;\n }",
"private void doMatchesStats(int week){\r\n \r\n \r\n List<FantasyMatch> fMatches = fmatchBean.findByWeek(week);\r\n for(int i = 0; i < fMatches.size(); i++){\r\n FantasyMatch fm = fMatches.get(i);\r\n FantasyTeam team1 = fm.getTeam1();\r\n FantasyTeam team2 = fm.getTeam2();\r\n int team1Points = 0, team2Points = 0;\r\n \r\n team1Points += retrievePoints(fm.getTeam1QB(), week);\r\n team2Points += retrievePoints(fm.getTeam2QB(), week);\r\n \r\n team1Points += retrievePoints(fm.getTeam1RB1(), week);\r\n team2Points += retrievePoints(fm.getTeam2RB1(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1RB2(), week);\r\n team2Points += retrievePoints(fm.getTeam2RB2(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1WR1(), week);\r\n team2Points += retrievePoints(fm.getTeam2WR1(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1WR2(), week);\r\n team2Points += retrievePoints(fm.getTeam2WR2(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1WRRB(), week);\r\n team2Points += retrievePoints(fm.getTeam2WRRB(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1TE(), week);\r\n team2Points += retrievePoints(fm.getTeam2TE(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1K(), week);\r\n team2Points += retrievePoints(fm.getTeam2K(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1DEF(), week);\r\n team2Points += retrievePoints(fm.getTeam2DEF(), week);\r\n \r\n fm.setTeam1Points(team1Points);\r\n fm.setTeam2Points(team2Points);\r\n \r\n if(team1Points > team2Points){\r\n team1.setWins(team1.getWins() + 1);\r\n team2.setLosses(team2.getLosses() + 1);\r\n }\r\n if(team1Points == team2Points){\r\n team1.setDraws(team1.getDraws() + 1);\r\n team2.setDraws(team2.getDraws() + 1);\r\n }\r\n if(team1Points < team2Points){\r\n team1.setLosses(team1.getLosses() + 1);\r\n team2.setWins(team2.getWins() + 1);\r\n }\r\n \r\n team1.setPointsFor(team1.getPointsFor() + team1Points);\r\n team1.setPointsAgainst(team1.getPointsAgainst() + team2Points);\r\n \r\n team2.setPointsFor(team2.getPointsFor() + team2Points);\r\n team2.setPointsAgainst(team2.getPointsAgainst() + team1Points);\r\n \r\n fmatchBean.edit(fm);\r\n ftBean.edit(team1);\r\n ftBean.edit(team2);\r\n }\r\n \r\n List<FantasyLeague> leagues = flBean.findAll();\r\n for(int i = 0; i < leagues.size(); i++){\r\n List<FantasyTeam> teams = ftBean.findByLeague(leagues.get(i));\r\n \r\n //DO SORTING BY WINS\r\n Collections.sort(teams, new TeamWinComparator());\r\n \r\n for(int j = 0; j < teams.size(); j++){\r\n FantasyTeam team = teams.get(j);\r\n team.setPreviousRank(team.getRank());\r\n team.setRank(j + 1); \r\n }\r\n }\r\n \r\n }",
"boolean collidesShip(Ship s) {\n // establish a rectangle for the player ship\n Rectangle ship = new Rectangle((int)s.getX() + 5, (int)s.getY(), 30, 50);\n\n // determine if an enemy blast intersects ship rectangle\n for(int i = 0; i < enemyBarrage.size(); i++) {\n Rectangle blaster = new Rectangle((int)enemyBarrage.get(i).getX(), (int)enemyBarrage.get(i).getY(), WIDTH, HEIGHT);\n if (blaster.intersects(ship)) {\n return true; // hit\n }\n }\n return false; // miss\n }",
"public void updatePlayerScoreForUsername(String username) {\n for (Player P : fliegeScore.getPlayers()) {\n if (P.getPlayerName().compareTo(username) == 0) {\n P.setScore(P.getScore() + 1);\n }\n }\n }",
"public int compareTo(Object x) {\n if (x instanceof Fish) {\n Fish f=(Fish)x;\n // lets compare by name\n // return name.compareTo(f.getName());\n //by fins\n if(fins<f.getFins()) return -1; //if fins of first are < fins of second\n if(fins==f.getFins()) return 0;\n return 1; // if fins of first are > fins of second\n }\n else {//panic\n System.out.println(\"Error: You can only compare fish to fish, duh!\");\n System.exit(1);\n }\n return 0;\n }",
"private Pair<Integer, Pair<Integer, Integer>> analyze(GameField gf, boolean isHuman) {\n ArrayList<Pair<Integer, Integer>> freeBoxes = gf.getEmptyFields();\n\n if (freeBoxes.isEmpty()) {\n return new Pair<>(0, null);\n }\n\n if (Game.updateStatus(gf) == WIN_O) {\n return new Pair<>(SITUATION_SCORE, null);\n }\n\n if (Game.updateStatus(gf) == WIN_X) {\n return new Pair<>(-SITUATION_SCORE, null);\n }\n\n\n ArrayList<Pair<Integer, Pair<Integer, Integer>>> moves = new ArrayList<>();\n\n for (Pair move : freeBoxes) {\n if (isHuman) {\n moves.add(analyze(new GameField(gf, (int)move.getKey(), (int)move.getValue(), HUMAN_MARK), false));\n } else {\n moves.add(analyze(new GameField(gf, (int)move.getKey(), (int)move.getValue(), AI_MARK), true));\n }\n }\n\n int bestMove = 0;\n int best;\n if (isHuman) {\n best = INF;\n for (int i = 0; i < moves.size(); i++) {\n if (moves.get(i).getKey() < best) {\n best = moves.get(i).getKey();\n bestMove = i;\n }\n }\n } else {\n best = -INF;\n for (int i = 0; i < moves.size(); i++) {\n if (moves.get(i).getKey() > best) {\n best = moves.get(i).getKey();\n bestMove = i;\n }\n }\n }\n\n return new Pair<>(best, freeBoxes.get(bestMove));\n }",
"public int getPlayerScore();",
"public boolean execute(FamilyMember f){\r\n\t\tif(check(f)){\r\n\t\t\tif (this.bonus!=null) {\r\n\t\t\t\tfor (Effect effect : this.bonus){\r\n\t\t\t\t\teffect.executeEffect(f);\r\n\t\t\t\t\tSystem.out.println(\"bonus in this action space is \"+effect.toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"no bonus here to take!\");\r\n\t\t\t}\r\n\t\t\tthis.getFamiliarIn().add(f);\r\n\t\t\tf.setAlreadyPlaced(true);\r\n\t\t\tf.setFamilyMemberPosition(this);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse return false;\r\n\t}"
] | [
"0.5629139",
"0.52964395",
"0.5097721",
"0.49914134",
"0.49796656",
"0.49686474",
"0.4967404",
"0.49610716",
"0.49331567",
"0.48740172",
"0.48689273",
"0.48246226",
"0.480552",
"0.47817823",
"0.47732928",
"0.47713965",
"0.4767803",
"0.47610873",
"0.47571278",
"0.47536752",
"0.4716822",
"0.4708522",
"0.46988314",
"0.4649546",
"0.46479508",
"0.46433097",
"0.4639255",
"0.4636825",
"0.46231383",
"0.46211898",
"0.4604144",
"0.4596925",
"0.45888138",
"0.45786098",
"0.45732433",
"0.45548883",
"0.4541768",
"0.45380986",
"0.45380986",
"0.45341235",
"0.45305434",
"0.4524807",
"0.45218614",
"0.45206293",
"0.45067504",
"0.45032796",
"0.44981802",
"0.44933435",
"0.44870493",
"0.44760883",
"0.4472267",
"0.44624114",
"0.44610798",
"0.4456972",
"0.44495672",
"0.4439413",
"0.44376615",
"0.4433688",
"0.4432991",
"0.4432991",
"0.44256473",
"0.44226226",
"0.441743",
"0.44148546",
"0.4408678",
"0.44086087",
"0.44080126",
"0.4405019",
"0.44010592",
"0.43976378",
"0.43961215",
"0.43950203",
"0.43864202",
"0.438519",
"0.43836057",
"0.438034",
"0.43783805",
"0.4378013",
"0.4377478",
"0.43739763",
"0.43691134",
"0.43663597",
"0.43620968",
"0.43600902",
"0.43587267",
"0.43580994",
"0.43486077",
"0.4347602",
"0.43468466",
"0.43459663",
"0.43446824",
"0.43371138",
"0.43368435",
"0.43291003",
"0.43270665",
"0.43251777",
"0.4313299",
"0.431325",
"0.43100575",
"0.43096647"
] | 0.7476815 | 0 |
Removes fish that have moved outside a certain bounding box. | public void removeOffScreenEnemyFish(BoundingBox aBoundingBox) {
for (int i = 0; i < fEnemyFishList.size(); i++) {
EnemyFish currEnemyFish = fEnemyFishList.get(i);
BoundingBox currEnemyFishBoundingBox = currEnemyFish.getSprite().getBoundingBox();
if (!aBoundingBox.intersects(currEnemyFishBoundingBox)) {
this.remove(i);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void removeBall(Coordinates at);",
"public void remove(DrawEvent currentEvent) {\n super.removeElement(currentEvent);\n bounds.x = Integer.MAX_VALUE;\n bounds.y = Integer.MAX_VALUE;\n for (int i = 0; i < this.size(); i++) {\n DrawEvent event = (DrawEvent) this.elementAt(i);\n DrawShape shape = event.getShape();\n if (shape.getX() < bounds.x) {\n bounds.x = shape.getX();\n }\n if (shape.getY() < bounds.y) {\n bounds.y = shape.getY();\n }\n }\n }",
"public boolean detectBound(){\n // super.detectBound();\n if(posY > height || posY < 0){\n Main.enemies.remove(this);\n return true;\n }\n return false;\n\n }",
"public void drop(){\r\n if(activeFish.isEmpty()) return;\r\n \r\n ArrayList<Fish> toremove = new ArrayList<Fish>();\r\n for(Fish bone : activeFish){\r\n bone.drop();\r\n\r\n if(!(bone.inBounds())){ // branch for out of bound fh\r\n toremove.add(bone);\r\n }\r\n }\r\n missedFish(toremove);\r\n\r\n update();\r\n }",
"private static boolean checkOutside(float [][] myBox, float[][] otherBox)\n {\n vloop:\n for (int v = 0; v < 4; v++)\n {\n int v1 = (v + 1) & 3; // wrap at 4 back to 0\n float edgeX = myBox[v][0] - myBox[v1][0];\n float edgeY = myBox[v][1] - myBox[v1][1];\n float reX = -edgeY;\n float reY = edgeX;\n \n if (reX == 0.0 && reY == 0.0)\n {\n continue vloop;\n }\n \n for (int e = 0; e < 4; e++)\n {\n float scalar = reX * (otherBox[e][0] - myBox[v1][0])\n + reY * (otherBox[e][1] - myBox[v1][1]);\n if (scalar < 0)\n {\n continue vloop;\n }\n }\n \n // If we got here, we have an edge with all vertexes from the\n // other rect on the outside:\n return true;\n }\n \n return false;\n }",
"public void removeFromCollision(Entity en){\n\t\tif (hitboxCollision.containsKey(en)){\n\t\t\tRectangle hitbox = hitboxCollision.get(en);\n\t\t\tareaCollision.remove(hitbox);\n\t\t\thitboxCollision.remove(en);\n\t\t}\n\t}",
"void removeIsBoundaryNodeOf(Boundary oldIsBoundaryNodeOf);",
"public void handleFishBomb(FishBomb aFishBomb) {\n\n ArrayList<EnemyFish> fishToRemove = new ArrayList<EnemyFish>();\n\n for (EnemyFish currEnemyFish : fEnemyFishList) {\n\n BoundingBox currEnemyFishBoundingBox = currEnemyFish.getSprite().getBoundingBox();\n\n if (aFishBomb.intersectsRectangle(currEnemyFishBoundingBox)) {\n\n GameLoop.updateScore(currEnemyFish);\n fishToRemove.add(currEnemyFish);\n \n }\n }\n\n for (EnemyFish currEnemyFish : fishToRemove) {\n fEnemyFishList.remove(currEnemyFish);\n }\n }",
"public void removeObstacle(Coord obstacleCoord);",
"private void removeArea() {\n \t\tthis.set.remove( this.area );\n \t\tthis.finish();\n \t}",
"public void bounceOffEdge()\n {\n int margin = 2;\n\n if (getX() <= margin || getX() >= getWorld().getWidth() - margin) //left or right side\n {\n turn(180);\n }\n if (getY() <= margin || getY() >= getWorld().getHeight() - margin) //top or bottom side\n {\n turn(180);\n }\n }",
"private List<Box> removeBoxes(List<Box> boxes, List<Integer> toKillList){\n for(int toKill : toKillList){\n if(contains(boxes,toKill)){\n boxes.remove(getBox(boxes,toKill));\n }\n }\n return boxes;\n }",
"@Override\n public void prune(long boundaryValue)\n {\n Iterator<MemorySegment> iterator = segments.iterator();\n while(iterator.hasNext())\n {\n MemorySegment segment = iterator.next();\n if(segment.lastVal() < boundaryValue)\n {\n iterator.remove();\n }\n }\n\n //Note: This maintains a currentSegment even if all segments have\n // been pruned.\n if(segments.size() == 0)\n {\n addSegment();\n }\n }",
"public ArrayList<E> removeAt(Point p) {\n\t\tArrayList<E> result = new ArrayList<E>();\n\t\tfor (E e : entities)\n\t\t\tif (e.getBounds().contains(p))\n\t\t\t\tresult.add(e);\n\t\tentities.removeAll(result);\n\t\treturn result;\n\t}",
"void removeNearbyPixels(Stroke theStroke){\n\t\tint index;\n\t\tint CurvIndex;\n\t\tint SpeedIndex;\n\t\tVector ptList = theStroke.getM_ptList();\n\t\tfor(index=0; index < CommonSegmentPts.size(); index++){\n\t\t\tPoint CommonPt = (PixelInfo)ptList.get((Integer)CommonSegmentPts.get(index));\n\t\t\tfor(CurvIndex = 0; CurvIndex < CurvVector.size(); CurvIndex++){\n\t\t\t\tPoint CurvPt = (PixelInfo)ptList.get((Integer)CurvVector.get(CurvIndex));\n\t\t\t\tif(CommonPt.distance(CurvPt) <= TolerantDistance){\n\t\t\t\t\tCurvVector.remove(CurvIndex--);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(SpeedIndex = 0; SpeedIndex < SpeedVector.size(); SpeedIndex++){\n\t\t\t\tPoint SpeedPt = (PixelInfo)ptList.get((Integer)SpeedVector.get(SpeedIndex));\n\t\t\t\tif(CommonPt.distance(SpeedPt) <= TolerantDistance){\n\t\t\t\t\tSpeedVector.remove(SpeedIndex--);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void destroyBounds() {\n size -= 4;\n this.setBounds(bounds.left, bounds.top);\n if (size <= 0) models.remove(this);\n }",
"@Override\n public Rectangle intersects( Rectangle boundingBox )\n {\n return null;\n }",
"public void removeLostBodies(){\n for(int i = physics.rigidBodies.size() - 1; i >= 0; i--){\n BObject body = physics.rigidBodies.get(i);\n Vector3f pos = body.getPosition();\n \n if(pos.z < -1000){\n int idx = group_bulletbodies.getChildIndex(body.displayShape);\n if(idx >= 0){\n group_bulletbodies.removeChild(idx);\n }\n physics.removeBody(body);\n }\n }\n }",
"@Test\n\tpublic void testEliminationByMediumBox(){\n\t\tsetBoardUp();\n\t\tMediumBox mBox = new MediumBox(board, 1, 1);\n\t\talgorithm.applyEliminationInMediumBox(mBox);\n\t\tint[] toBeRemoved = {1, 2, 8, 9};\n\t\tint[] fromCells = {0, 1, 4, 7, 8};\n\t\tboolean condition = true;\n\t\tfor(int i = 0; i < toBeRemoved.length; i++)\n\t\t\tfor(int j = 0; j < fromCells.length; j++)\n\t\t\t\tcondition &= !mBox.cell[fromCells[j]].possibilities.contains(toBeRemoved[i]);\t\t\n\t\t\n\t\tassertTrue(condition);\n\t}",
"private void moveToOutOfBounds(final Entity entity, final Rectangle boundsBox) {\n\t\tTransformPart transformPart = entity.get(TransformPart.class);\r\n\t\tfloat unboundedOverlapY = PolygonUtils.top(boundsBox) - transformPart.getBoundingBox().y;\r\n\t\tTranslatePart translate = entity.get(TranslatePart.class);\r\n\t\tVector2 velocity = translate.getVelocity();\r\n\t\tVector2 outOfBoundsOffset = velocity.scl(unboundedOverlapY / velocity.y);\r\n\t\ttransformPart.setPosition(transformPart.getPosition().add(outOfBoundsOffset));\r\n\t}",
"public void erase(double x, double y) {\n Shape test = new Circle(x, y, 10);\n for (int i = collisionBodies.size() - 1; i >= 0; i--) {\n CollisionBody line = collisionBodies.get(i);\n Shape intersect = Shape.intersect(line.getShape(), test);\n if (intersect.getBoundsInLocal().getWidth() != -1 || intersect.getBoundsInLocal().getHeight() != -1) {\n root.getChildren().remove(line.getLine());\n collisionBodies.remove(line);\n }\n }\n }",
"protected void checkEdges(){\n if (getX() > getWorld().getBackground().getWidth() + getImage().getWidth()){\n world.monsterAdded();\n getWorld().removeObject(this);\n world.decreaseLives();\n }\n }",
"public abstract void clipRect(int x, int y, int width, int height);",
"boolean removeObject(RectangleLatLng rectangle, String id);",
"public Centroid removeCentroid();",
"public void borders() {\n if (loc.y > height) {\n vel.y *= -bounce;\n loc.y = height;\n }\n if ((loc.x > width) || (loc.x < 0)) {\n vel.x *= -bounce;\n } \n //if (loc.x < 0) loc.x = width;\n //if (loc.x > width) loc.x = 0;\n }",
"public abstract boolean killOverlapCell(Rectangle rect);",
"public void removeFeasiblePOI(PlaceOfInterest placeOfInterest) {\n feasiblePOIs.remove(placeOfInterest);\n }",
"private void removeAllQueryBoundsFromGeometryRegistry()\r\n {\r\n myToolbox.getGeometryRegistry().removeGeometriesForSource(this);\r\n }",
"@Override\n void move(ListIterator<PlatformerGameObject> iterator) {\n //if moved outside the left boundary clean garbage\n if (getHitBox().getLeft() + coin.get(0).getWidth() <= 0) {\n iterator.remove();\n }\n updateHitBox(\"Left\", getHitBox().getLeft() - xVelocity);\n updateHitBox(\"Right\", getHitBox().getRight() - xVelocity);\n }",
"private void scanForBlockFarAway() {\r\n\t\tList<MapLocation> locations = gameMap.senseNearbyBlocks();\r\n\t\tlocations.removeAll(stairs);\r\n\t\tif (locations.size() == 0) {\r\n\t\t\tblockLoc = null;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t/* remove blocks that can be sensed */\r\n\t\tIterator<MapLocation> iter = locations.iterator();\r\n\t\twhile(iter.hasNext()) {\r\n\t\t\tMapLocation loc = iter.next();\r\n\t\t\tif (myRC.canSenseSquare(loc))\r\n\t\t\t\titer.remove();\r\n\t\t} \r\n\t\t\r\n\t\tlocations = navigation.sortLocationsByDistance(locations);\r\n\t\t//Collections.reverse(locations);\r\n\t\tfor (MapLocation block : locations) {\r\n\t\t\tif (gameMap.get(block).robotAtLocation == null){\r\n\t\t\t\t/* this location is unoccupied */\r\n\t\t\t\tblockLoc = block;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tblockLoc = null;\r\n\t}",
"public void lose(Part front){\n if(front.getY() < 0 || front.getX() + front.getW() > getWidth() || front.getX() < 0 || front.getY() + front.getH() > getHeight()){\n lost = true;\n }\n\n for (int i = 0; i < snake.size() - 15; i++) {\n if(front.getHitBox().intersects(snake.get(i).getHitBox())){\n lost = true;\n }\n }\n }",
"public boolean hitsWall(Entity e, ICollisionArea box) {\n\t\t// prevent playerfish from leaving the screen\n\t\tif (e instanceof PlayerFish) {\n\t\t\treturn box.isOutside(0, 0, getWidth(), getHeight());\n\t\t} else {\n\t\t\tdouble dw = 2.0 * box.getWidth() + 1;\n\t\t\tdouble dh = 2.0 * box.getHeight() + 1;\n\t\t\treturn box.isOutside(-dw, -dh, getWidth() + dw, getHeight() + dh);\n\t\t}\n\t}",
"public void gerak() \n {\n setLocation(getX(),getY()-5);\n if(getY()<20){\n getWorld().removeObject(this);\n }else\n cek_kena();\n \n }",
"@Override\n\tpublic void action() {\n\t if (firingBall.getY() + firingBall.getRadius() < this.y) { \n\t //deactivate absorber locally and in GameBoard\n\t firingBall = null;\n\t gb.removeFromActiveList(this);\n\t }\n\t}",
"void nuke() {\n\t\tfor (int a = 0; a < height; a++) {\n\t\t\tfor (int b = 0; b < width; b++) {\n\t\t\t\tif (FWorld[a][b] != null) {\n\t\t\t\t\tEZ.removeEZElement(FWorld[a][b]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tEZ.removeEZElement(background);\n\t\tEZ.removeEZElement(explosion);\n\t\tturtle.kill();\n\t}",
"private void fireball1Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball1.getX() - 1, fireball1.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball1.getX() - 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tGObject topRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY());\r\n\t\tGObject bottomRight = getElementAt(fireball1.getX() + fireball1.getWidth() + 1, fireball1.getY() + fireball1.getHeight());\r\n\t\tif(topLeft == player || bottomLeft == player || topRight == player || bottomRight == player) {\r\n\t\t\tremove(fireball1);\r\n\t\t\tfireball1 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"private void removeBoundaries(Graph graph, Boundaries boundaries) {\n for (Edge boundaryEdge : boundaries.edges) {\n graph.remove(boundaryEdge);\n }\n for (Node boundaryNode : boundaries.nodes) {\n graph.remove(boundaryNode);\n }\n }",
"public void RemoveBalloons (int x0, int y0)\n\t{\n\t\tcurrentSlice = i1.getCurrentSlice();\n\t\tipWallSegment = (i1.getStack()).getProcessor(i1.getCurrentSlice());\n\t\tpop = popSequence.PopList[currentSlice-1];\n\n\t\tdouble min_distance = 100000;\n\t\tint candidate = -1;\n\t\tfor (int i=0;i<pop.BallList.size();i++)\n\t\t{\n\t\t\tPoint P = ((Balloon)(pop.BallList.get(i))).getPoint();\n\t\t\tdouble d = (x0-P.getX())*(x0-P.getX()) + (y0-P.getY())*(y0-P.getY());\n\t\t\tif (d<min_distance)\n\t\t\t{\n\t\t\t\tcandidate = i;\n\t\t\t\tmin_distance = d;\n\t\t\t}\n\t\t}\n\t\tif (min_distance<64)\n\t\t{\n\t\t\tpop.remove(candidate);\n\t\t}\n\t\tpop = popSequence.PopList[currentSlice-1];\n\t}",
"private void fireball2Collisions() {\r\n\t\tGObject topLeft = getElementAt(fireball2.getX() - 1, fireball2.getY());\r\n\t\tGObject topRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY());\r\n\t\tGObject bottomLeft = getElementAt(fireball2.getX() - 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tGObject bottomRight = getElementAt(fireball2.getX() + fireball2.getWidth() + 1, fireball2.getY() + fireball2.getHeight());\r\n\t\tif(topLeft == player || topRight == player || bottomLeft == player || bottomRight == player) {\r\n\t\t\tremove(fireball2);\r\n\t\t\tfireball2 = null;\r\n\t\t\thits++;\r\n\t\t\tloseLife();\r\n\t\t}\r\n\t}",
"protected abstract void clipRect(final float x, final float y,\n final float width, final float height);",
"private void clearBounds() {\n this.bounds_ = null;\n this.bitField0_ &= -9;\n }",
"public void prune(double belowThreshold) {\n \n for(T first : getFirstDimension()) {\n \n for(T second : getMatches(first)) {\n \n if(get(first, second)<belowThreshold) {\n set(first, second, 0.0);\n }\n \n }\n \n }\n \n }",
"public void removeBalls() {\r\n for (Ball ball : this.ballsList) {\r\n ball.removeFromGame(this);\r\n }\r\n this.ballsList.clear();\r\n }",
"public void cleanUp(){\n\t\t//offset(-1*bounds.left, -1*bounds.top);\n\t}",
"public void removeBoat (int index) {\n Boat b = getBoatAt(index);\n int startX = Math.min(b.getStartX(), b.getEndX());\n System.out.println(\"removeBoat(): startX = \" + startX);\n int startY = Math.min(b.getStartY(), b.getEndY());\n System.out.println(\"removeBoat(): startY = \" + startY);\n int endX = Math.max(b.getStartX(), b.getEndX());\n System.out.println(\"removeBoat(): endX = \" + endX);\n int endY = Math.max(b.getStartY(), b.getEndY());\n System.out.println(\"removeBoat(): endY = \" + endY);\n \n //reset cells in grid.\n if (startX == endX) { \n for (int j = startY; j <= endY; j++) {\n System.out.println(\"removeBoat(): X constant. Changing coordinate: \" + j);\n grid[startX-1][j-1].setHasBoat(false);\n System.out.println(\"removeBoat(): Cell: \" + grid[startX-1][j-1]);\n } \n } else if (startY == endY) {\n for (int i = startX; i <= endX; i++) {\n System.out.println(\"removeBoat(): Y constant. Changing coordinate: \" + i);\n grid[i-1][startY-1].setHasBoat(false);\n System.out.println(\"removeBoat(): Cell: \" + grid[i-1][startY-1]);\n }\n }\n \n //reset boat\n b.setStartX(INVALID); \n b.setStartY(INVALID); \n b.setEndX(INVALID); \n b.setEndY(INVALID);\n \n }",
"void deleteEntitiesOf(Map<Location, SurfaceEntity> map, Rectangle rect, boolean checkBuildings) {\r\n\t\t// find buildings falling into the selection box\r\n\t\tif (rect != null) {\r\n\t\t\tBuilding bld = null;\r\n\t\t\tfor (int a = rect.x; a < rect.x + rect.width; a++) {\r\n\t\t\t\tfor (int b = rect.y; b > rect.y - rect.height; b--) {\r\n\t\t\t\t\tSurfaceEntity se = map.get(Location.of(a, b));\r\n\t\t\t\t\tif (se != null) {\r\n\t\t\t\t\t\tint x = a - se.virtualColumn;\r\n\t\t\t\t\t\tint y = b + se.virtualRow;\r\n\t\t\t\t\t\tfor (int x0 = x; x0 < x + se.tile.width; x0++) {\r\n\t\t\t\t\t\t\tfor (int y0 = y; y0 > y - se.tile.height; y0--) {\r\n\t\t\t\t\t\t\t\tmap.remove(Location.of(x0, y0));\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 (checkBuildings) {\r\n\t\t\t\t\t\tfor (int i = renderer.surface.buildings.size() - 1; i >= 0; i--) {\r\n\t\t\t\t\t\t\tbld = renderer.surface.buildings.get(i);\r\n\t\t\t\t\t\t\tif (bld.containsLocation(a, b)) {\r\n\t\t\t\t\t\t\t\trenderer.surface.buildings.remove(i);\r\n\t\t\t\t\t\t\t\tif (bld == currentBuilding) {\r\n\t\t\t\t\t\t\t\t\trenderer.buildingBox = null;\r\n\t\t\t\t\t\t\t\t\tcurrentBuilding = null;\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} else {\r\n\t\t\t\t\t\tfor (int i = renderer.surface.features.size() - 1; i >= 0; i--) {\r\n\t\t\t\t\t\t\tSurfaceFeature sf = renderer.surface.features.get(i);\r\n\t\t\t\t\t\t\tif (sf.containsLocation(a, b)) {\r\n\t\t\t\t\t\t\t\trenderer.surface.features.remove(i);\r\n\t\t\t\t\t\t\t\tif (sf.equals(currentBaseTile)) {\r\n\t\t\t\t\t\t\t\t\tcurrentBaseTile = null;\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 (checkBuildings && bld != null) {\r\n\t\t\t\tplaceRoads(bld.techId);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public IRectangleBound getClipBound();",
"@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.getY() < 0;\n\t}",
"private void removePosition(Point p) {\n\t\tfor(Point point : occupiedPositions) {\n\t\t\tif(p.x == point.x && p.y == point.y) {\n\t\t\t\toccupiedPositions.remove(point);\n\t\t\t}\n\t\t}\n\t}",
"private void removeQueryBoundsFromGeometryRegistry(QueryRegion region)\r\n {\r\n myToolbox.getGeometryRegistry().removeGeometriesForSource(this, new HashSet<Geometry>(region.getGeometries()));\r\n }",
"private void collapseIgloo() {\n blocks.sort(Comparator.comparing(a -> a.center.getY()));\n\n double minDistance, distance;\n Point3D R = new Point3D(0, -1, 0);\n for (int i = 0; i < blocks.size(); i++) {\n minDistance = Double.MAX_VALUE;\n for (int j = i - 1; j >= 0; j--) {\n if (boundingSpheresIntersect(blocks.get(i), blocks.get(j))) {\n distance = minDistance(blocks.get(i), blocks.get(j), R);\n if (distance < minDistance) {\n minDistance = distance;\n }\n }\n }\n if (minDistance != Double.MAX_VALUE) {\n blocks.get(i).move(R.multiply(minDistance));\n }\n }\n }",
"void removeFromAvailMoves(int x, int y) {\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\tavailMoves[x][y][i] = false;\n\t\t}\n\t}",
"public void collideBoundary() {\n\t\tif (getWorld() == null) return;\n\t\tif (getXCoordinate() < 1.01*getRadius())\n\t\t\tsetXVelocity(-getXVelocity());\n\t\tif (getXCoordinate() > getWorld().getWidth()-1.01*getRadius())\n\t\t\tsetXVelocity(-getXVelocity());\n\t\tif (getYCoordinate() < 1.01 * getRadius())\n\t\t\tsetYVelocity(-getYVelocity());\n\t\tif (getYCoordinate() > getWorld().getHeight()-1.01*getRadius())\n\t\t\tsetYVelocity(-getYVelocity());\n\t}",
"protected void shrink() {\n int cellsToDrop = snakeSize/2;\n this.snakeSize = snakeSize - cellsToDrop;\n // AMD: Reset the tip of the tail to be snake-free\n for (int xCell = 0; xCell < maxX; xCell++) {\n for (int yCell = 0; yCell < maxY; yCell++) {\n if (snakeSquares[xCell][yCell] > snakeSize) {\n snakeSquares[xCell][yCell] = NOT_A_SEGMENT;\n }\n }\n }\n }",
"public void dropItLikeItsHot(){\n\t\tint score_increment = 0;\n\t\tPoint test_location = new Point(pieceOrigin);\n\t\twhile(true){\n\t\t\ttest_location.y += 1;\n\t\t\tif(!collides(test_location, currentPiece)){\n\t\t\t\tpieceOrigin.y += 1;\n\t\t\t\tscore_increment += 1;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscore += score_increment*100;\n\t\tgossipGirl();\n\t\trepaint();\n\t}",
"public void removeFromGame(GameLevel game) {\n game.removeCollidable(this); // now block is not a part of the collidables.\n game.removeSprite(this); // now block is not a part of the sprites.\n }",
"public void remove(){\n\t\tsetBounds(800, 600, WIDTH, HEIGHT);\n\t}",
"private void bounceOffVerticalWall() {\n vx = -vx;\n }",
"Rectangle getCollisionBox();",
"void despawnHitbox() {\n\t\tif (hitbox == null) return;\n\t\thitbox.remove();\n\t\thitbox = null;\n\t}",
"public boolean intersects(BoundingBox other) {\r\n\t\treturn !(other.left > getRight()\r\n\t\t\t || other.getRight() < left\r\n\t\t\t || other.top > getBottom()\r\n\t\t\t || other.getBottom() < top);\r\n\t}",
"public void removeDead() {\n for (BaseObject object : new ArrayList<BaseObject>(bombs)) {\n if (!object.isAlive())\n bombs.remove(object);\n }\n\n for (BaseObject object : new ArrayList<BaseObject>(rockets)) {\n if (!object.isAlive())\n rockets.remove(object);\n }\n\n for (BaseObject object : new ArrayList<BaseObject>(ufos)) {\n if (!object.isAlive())\n ufos.remove(object);\n }\n }",
"public void moveWithinScreen(ICollisionArea box) {\n\t\tif (box.isOutside(0, 0, getWidth(), getHeight())) {\t\t\t\n\t\t\tif (box.getMaxX() > getWidth()) {\n\t\t\t\tbox.move(new Vec2d(-(box.getMaxX() - getWidth()), 0));\n\t\t\t}\n\t\t\t\n\t\t\tif (box.getMinX() < 0) {\n\t\t\t\tbox.move(new Vec2d(-box.getMinX(), 0));\n\t\t\t}\n\t\t\t\n\t\t\tif (box.getMaxY() > getHeight()) {\n\t\t\t\tbox.move(new Vec2d(0, box.getMaxY() - getHeight()));\n\t\t\t}\n\t\t\t\n\t\t\tif (box.getMinY() < 0) {\n\t\t\t\tbox.move(new Vec2d(0, box.getMinY()));\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {\n\t\tif (pic != null && (Math.abs(velocityX) > 5000 || Math.abs(velocityY) > 5000)) {\n\t\t\tobjects.remove(pic);\n\t\t\tpic = null;\n\t\t}\n\t\treturn false;\n\t}",
"void removeHasLongitude(Object oldHasLongitude);",
"void removeRoadside(int i);",
"private boolean stop() {\n\t\tboolean collide = false;\n\n\t\tdist = (int) MathMachine.distance((xOrigin - this.x), (yOrigin - this.y)); // distance traveled\n\t\tif (dist >= move_range) collide = true;\n\n\t\tif (Math.abs(x - xD) <= 2 && Math.abs(y - yD) <= 2) { // adding 8 shifts the collision box from the top left corner to the bottom right.\n\t\t\tcollide = true; // this is the important statement for collision detection. It works by looking at the tile you want to go to and seeing if it is solid.\n\t\t}\n\n\t\treturn collide;\n\t}",
"private void checkBoundaries() {\n if (!isDestroyed()) {\n float upperEdge = screen.getGameCam().position.y + screen.getGameViewPort().getWorldHeight() / 2;\n float bottomEdge = screen.getGameCam().position.y - screen.getGameViewPort().getWorldHeight() / 2;\n if (bottomEdge <= getY() + getHeight() && getY() <= upperEdge) {\n b2body.setActive(true);\n currentState = b2body.getLinearVelocity().x > 0 ? State.MOVING_RIGHT : State.MOVING_LEFT;\n } else {\n if (b2body.isActive()) { // Was on camera...\n // It's outside bottom edge\n if (bottomEdge > getY() + getHeight()) {\n if(!world.isLocked()) {\n world.destroyBody(b2body);\n }\n currentState = State.FINISHED;\n }\n }\n }\n }\n }",
"public void checkForRemoval()\n {\n if (life <= 0)\n {\n SideScrollingWorld world = (SideScrollingWorld) getWorld(); \n \n world.isPacmanDead = true;\n getWorld().removeObject(this);\n }\n }",
"void getBlowUp(int x, int y) {\n //YOUR CODE HERE\n\t whichBoard.remove(x, y);\n }",
"void verify(Fixture window, Fixture ninja){\n\t\tTransform transform = window.getBody().getTransform();\n\t\tPolygonShape shape = (PolygonShape) window.getShape();\n\t\tVector2 vec = new Vector2();\n\t\tVector2 temp = new Vector2();\n\t\tfloat height;\n\t\t\n\t\tshape.getVertex(1, vec);\n\t\tshape.getVertex(2, temp);\n\t\theight = temp.y - vec.y;\n\t\t\t\n\t\tshape.getVertex(3, vec);\n\t\ttransform.mul(vec);\n\t\t\t\n\t\t// now we have vec (the position of the window) and the height of the window\n\t\t\t\n\t\tif ( inBetween( vec.y-height , this.ninja.getFeetPos() , vec.y) ||\n\t\t\t inBetween( vec.y-height , this.ninja.getArmsPos() , vec.y)\t){\n\t\t\tenv.queueFixtureDeletion( window, ninja.getBody().getLinearVelocity() );\n\t\t\tenv.stopContactListener();\n\t\t\tGdx.input.setInputProcessor(null);\n\t\t}\n\t}",
"private boolean isOutsideParameters(HudPosition hudPosition, int x, int y) {\n int width = x + hudPosition.getWidth();\n int height = y + hudPosition.getHeight();\n\n int[] dimensions = this.getScreenDimensions();\n\n if (width > dimensions[0] - 5) {\n return true;\n\n } else if (height > dimensions[1] - 5) {\n return true;\n\n } else if (hudPosition.getX() < 5) {\n return true;\n\n } else return hudPosition.getY() < 5;\n }",
"public void moveSeagull( Envelope bounds ) {\n \n \n if (moveListener != null){\n moveListener.gullMoved(this.location);\n }\n \n double x = location.x;\n double offset = 0.008;\n if (generator.nextDouble() < 0.5 ){\n x = x - bounds.getWidth() * offset;\n }else{\n x = x + bounds.getWidth() * offset;\n }\n double y = location.y;\n if (generator.nextDouble() < 0.5){\n y = y - bounds.getHeight() * offset;\n }else{\n y = y + bounds.getHeight() * offset;\n }\n// double x = generator.nextDouble() * 2 - 1; // num between -1 and 1\n// double y = generator.nextDouble() * 2 - 1;\n \n// Coordinate new_loc = new Coordinate(location.x + x,location.y + y);\n Coordinate new_loc = new Coordinate(x,y);\n if (bounds.contains(new_loc)){\n this.location = new_loc;\n }else{\n //center on screen\n this.location = new Coordinate(bounds.getWidth()/2 + bounds.getMinX(), bounds.getHeight()/2 + bounds.getMinY());\n }\n\n }",
"public void setRectangleClip(int x, int y, float width, float height);",
"void removeHitListener(HitListener hl);",
"void removeHitListener(HitListener hl);",
"void removeHitListener(HitListener hl);",
"void removeHitListener(HitListener hl);",
"public void checkIsFrogAtTheEdge() {\n\t\tif (getY()<0 || getY()>800) {\n\t\t\tsetY(FrogPositionY);\t\n\t\t}\n\t\tif (getX()<-20) {\n\t\t\tmove(movementX*2, 0);\n\t\t} else if (getX()>600) {\n\t\t\tmove(-movementX*2, 0);\n\t\t}\n\t\tif (getY()<130 && ! ((getIntersectingObjects(End.class).size() >= 1))) {\n\t\t\tmove(0, movementY*2);\n\t\t\t\n\t\t}\n\t}",
"private void discardNecklaceIfVisible(){\n CardDealer cardDealer = CardDealer.getInstance();\n Treasure necklace = null;\n for (Treasure t: this.visibleTreasures){\n if (t.getType() == TreasureKind.NECKLACE){\n necklace = t;\n }\n }\n if (necklace != null){\n this.visibleTreasures.remove(necklace);\n cardDealer.giveTreasureBack(necklace);\n }\n }",
"public void removeEffectFromSpecialBrick(){\r\n\t\t\t// return everything to the original\r\n\t\t\tColor origColor = (specialBrickId.equals(\"Rect0\"))? discsColors[0]:(specialBrickId.equals(\"Rect1\"))? discsColors[1]:\r\n\t\t\t\t\t\t (specialBrickId.equals(\"Rect2\"))? discsColors[2]:(specialBrickId.equals(\"Rect3\"))? discsColors[3]:\r\n\t\t\t\t\t\t (specialBrickId.equals(\"Rect4\"))? discsColors[4]:(specialBrickId.equals(\"Rect5\"))? discsColors[5]:\r\n\t\t\t\t\t\t (specialBrickId.equals(\"Rect6\"))? discsColors[6]:(specialBrickId.equals(\"Rect7\"))? discsColors[7]:null; \r\n\t\t\tint origWidth = (specialBrickId.equals(\"Rect0\"))? 30:(specialBrickId.equals(\"Rect1\"))? 60:\r\n\t\t\t\t\t\t\t(specialBrickId.equals(\"Rect2\"))? 90:(specialBrickId.equals(\"Rect3\"))? 120:\r\n\t\t\t\t\t\t\t(specialBrickId.equals(\"Rect4\"))? 150:(specialBrickId.equals(\"Rect5\"))? 180:\r\n\t\t\t\t\t\t\t(specialBrickId.equals(\"Rect6\"))? 210:(specialBrickId.equals(\"Rect7\"))? 240:null;\r\n\t\t\tRectangle rect = new Rectangle(origWidth,20, origColor);\r\n\t\t\trect.setId(specialBrickId);\r\n\t\t\trect.setStroke(Color.BLACK);\r\n\t\t\trect.setStrokeWidth(3);\r\n\t\t\t\t\t\t\r\n\t\t\tswitch(specialBrickTower){\r\n\t\t\t\tcase \"firstTower\":\r\n\t\t\t\t\tfor(int i=0; i<firstTower.getChildren().size(); i++){ // cycle through the tower to check which one is the special brick\r\n\t\t\t\t\t\tif (firstTower.getChildren().get(i).getId().equals(specialBrickId)){\r\n\t\t\t\t\t\t\tfirstTower.getChildren().set(i, rect); // then reset it\r\n\t\t\t\t\t}}\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"secondTower\":\r\n\t\t\t\t\tfor(int i=0; i<secondTower.getChildren().size(); i++){\r\n\t\t\t\t\t\tif (secondTower.getChildren().get(i).getId().equals(specialBrickId)){\r\n\t\t\t\t\t\t\tsecondTower.getChildren().set(i, rect);\r\n\t\t\t\t\t}}\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"thirdTower\":\r\n\t\t\t\t\tfor(int i=0; i<thirdTower.getChildren().size(); i++){\r\n\t\t\t\t\t\tif (thirdTower.getChildren().get(i).getId().equals(specialBrickId)){\r\n\t\t\t\t\t\t\tthirdTower.getChildren().set(i, rect);\r\n\t\t\t\t\t}}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\trect.widthProperty().bind(scene.widthProperty().divide(3).subtract(250-origWidth));\r\n\t\t\trect.heightProperty().bind(scene.heightProperty().divide(19));\r\n\t\t\r\n\t\tif(countDownRunning){towersRegion.getChildren().remove(2);countDownRunning=false;} // remove the count down watch from the screen\t\t\r\n\t\tspecialBrickId=null; // reset the special brick id\r\n\t}",
"public void ballVSbrick(Ball bb, Brick br) {\n Rectangle bb_box = new Rectangle(bb.getX(), bb.getY(), bb.getWidth(), bb.getHeight());\r\n Rectangle br_box = new Rectangle(br.getX(), br.getY(), br.getWidth(), br.getHeight());\r\n\r\n if (bb_box.intersects(br_box)) {\r\n //collision\r\n if (bb.getVX() < 0 && bb.getVY() < 0) {//-x,-y\r\n bb.setVY(bb.getVY() * -1);\r\n //remove brick\r\n //totalBricks.get(i)\r\n }//Inconsistent with collision\r\n else if (bb.getVX() > 0 && (bb.getVY() > 0)) {//+x,+y\r\n bb.setVY(bb.getVY() * -1);\r\n }//works\r\n else if (bb.getVX() < 0 && (bb.getVY() > 0)) {//-x,+y\r\n bb.setVY(bb.getVY() * -1);\r\n }//also inconsistent with collision\r\n else if(bb.getVX()>0 && bb.getVY()<0){//+x,-y\r\n bb.setVY(bb.getVY()*-1);\r\n }\r\n }\r\n if (totalBricks.isEmpty()) {\r\n this.setCleared(true);\r\n }\r\n //when the ball hits a brick\r\n //remove the brick\r\n //update velocity of ball\r\n\r\n }",
"void delete_missiles() {\n // Player missiles\n for (int i = ship.missiles.size()-1; i >= 0; i --) {\n Missile missile = ship.missiles.get(i);\n if (missile.y_position <= Dimensions.LINE_Y) {\n ImageView ship_missile_image_view = ship_missile_image_views.get(i);\n game_pane.getChildren().remove(ship_missile_image_view);\n ship_missile_image_views.remove(i);\n ship.missiles.remove(missile);\n }\n }\n\n // Enemy missiles\n for (int i = Alien.missiles.size()-1; i >= 0; i --) {\n Missile missile = Alien.missiles.get(i);\n if (missile.y_position > scene_height) {\n ImageView alien_missile_image_view = alien_missile_image_views.get(i);\n game_pane.getChildren().remove(alien_missile_image_view);\n alien_missile_image_views.remove(i);\n Alien.missiles.remove(missile);\n }\n }\n }",
"void retainOutlineAndBoundaryGrid() {\n\t\tfor (final PNode child : getChildrenAsPNodeArray()) {\n\t\t\tif (child != selectedThumbOutline && child != yellowSIcolumnOutline && child != boundary) {\n\t\t\t\tremoveChild(child);\n\t\t\t}\n\t\t}\n\t\tcreateOrDeleteBoundary();\n\t}",
"private void removeGravity(SensorEvent event){\n\n final float alpha = 0.8f;\n\n // Isolate the force of gravity with the low-pass filter.\n mGravity[0] = alpha * mGravity[0] + (1 - alpha) * event.values[0];\n mGravity[1] = alpha * mGravity[1] + (1 - alpha) * event.values[1];\n mGravity[2] = alpha * mGravity[2] + (1 - alpha) * event.values[2];\n\n // Remove the gravity contribution with the high-pass filter.\n mLinearAcceleration[0] = event.values[0] - mGravity[0];\n mLinearAcceleration[1] = event.values[1] - mGravity[1];\n mLinearAcceleration[2] = event.values[2] - mGravity[2];\n\n }",
"public void checkWallBounce(){\n // Bounce the ball back when it hits the top of screen\n if (getRect().top < 0) {\n reverseYVelocity();\n clearObstacleY(40);\n }\n\n // If the ball hits left wall bounce\n if (getRect().left < 0) {\n reverseXVelocity();\n clearObstacleX(2);\n }\n\n // If the ball hits right wall Velocity\n if (getRect().right > screenX) {\n reverseXVelocity();\n clearObstacleX(screenX - 57);\n }\n }",
"public void hide()\r\n {\r\n for( AbstractShape s: getShapes() )\r\n {\r\n ( (Rectangle)s ).hide();\r\n }\r\n }",
"Rectangle getBoundingBox(Rectangle rect);",
"public void invalidateBounds() {\n\t\telementsBounds = null;\n\t}",
"public void removePiece(int x, int y)\r\n {\r\n if(isValidSqr(x, y)) board[x][y] = null;\r\n }",
"@Override\n public void processInput(Vector2f m) {\n\n //Check if mouse within bounds, if so, kill it\n if (mouse.buttonDown(MouseEvent.BUTTON1)) {\n if (m.x < this.tx + 800 && m.x > this.tx - 800 && m.y < this.ty + 800 && m.y > this.ty - 800) {\n this.shotDown = true;\n }\n }\n\n }",
"public void mueveBala() {\n switch (direccion) {\n case NORTE:\n posY -= velocidadBala;\n break;\n case SUR:\n posY += velocidadBala;\n break;\n case ESTE:\n posX += velocidadBala;\n break;\n case OESTE:\n posX -= velocidadBala;\n break;\n }\n actualizaHitbox();\n }",
"public ViewEdges extendsOutside(RectF bounds)\n {\n boolean left = false;\n boolean top = false;\n boolean right = false;\n boolean bottom = false;\n \n updateRotatedCorners();\n for (int i = 0; i < 4; i++)\n {\n left = left || (rotatedCorners[i][0] < bounds.left );\n top = top || (rotatedCorners[i][1] < bounds.top );\n right = right || (rotatedCorners[i][0] >= bounds.right );\n bottom = bottom || (rotatedCorners[i][1] >= bounds.bottom);\n }\n \n return new ViewEdges(left, top, right, bottom);\n }",
"public void keepObjectInsideGameWindow(Vector2f position) {\n if(keepInsideWindow) {\n if(position.x > Game.WIDTH) {\n position.x = 0.0f;\n } else if(position.x < 0.0f) {\n position.x = Game.WIDTH;\n }\n if(position.y > Game.HEIGHT) {\n position.y = 0.0f;\n } else if(position.y < 0.0f) {\n position.y = Game.HEIGHT;\n }\n }\n }",
"public void removeScenery(){\n\t\tfor(int i=0;i<grid.length;i++){\n\t\t\tfor(int j=0;j<grid[0].length;j++){\n\t\t\t\tif(grid[i][j].isScenery())\n\t\t\t\t\tgrid[i][j]=null;\n\t\t\t}\n\t\t}\n\t}",
"private boolean isNothingBehind(Direction direction, Box box){\n //TODO wall detection not only boxes\n for(Box temp : boxes){\n switch (direction){\n case DOWN:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()+DISTANCE == temp.getDestinationY())\n return false;\n break;\n case UP:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()-DISTANCE == temp.getDestinationY())\n return false;\n break;\n case LEFT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()-DISTANCE == temp.getDestinationX())\n return false;\n break;\n case RIGHT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()+DISTANCE == temp.getDestinationX())\n return false;\n break;\n }\n }\n for(Wall temp : walls){\n switch (direction){\n case DOWN:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()+DISTANCE == temp.getDestinationY())\n return false;\n break;\n case UP:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()-DISTANCE == temp.getDestinationY())\n return false;\n break;\n case LEFT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()-DISTANCE == temp.getDestinationX())\n return false;\n break;\n case RIGHT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()+DISTANCE == temp.getDestinationX())\n return false;\n break;\n }\n }\n return true;\n }",
"private void exitFromWest (int intersection, double time, Vehicle veh) {\n int index = getIntersectionIndex(intersection);\n LinkedList<Vehicle> queue = southVehsTurnLeft.get(index);\n if (isGreenSouthTurnLeft[index]) {\n exitFromAll(intersection, time, veh, Direction.W);\n queue.removeLast();\n if (!queue.isEmpty()) {\n Vehicle firstInQueue = queue.getLast();\n Event exit = new Event(time + Parameter.W, EventType.Exit, intersection, Direction.W, firstInQueue);\n ProcessEvents.getEventQueue().add(exit);\n }\n }\n }",
"@Override\n public void update()\n {\n if(!Rect.intersects(spriteBounds, gameRegion) || wasTouched)\n {\n destroy();\n }\n else\n {\n spriteBounds.offset(0, speed);\n }\n }",
"public boolean detectBound(){\n if(posX < 0 || posX > width || posY < 0 || posY > height){\n return true;\n }\n else{\n return false;\n }\n }"
] | [
"0.60304683",
"0.58871776",
"0.58588",
"0.5810979",
"0.5750786",
"0.57288915",
"0.5704131",
"0.56313545",
"0.5529695",
"0.54806596",
"0.5464947",
"0.5369235",
"0.53063715",
"0.5287769",
"0.5283776",
"0.5250235",
"0.5199455",
"0.5171526",
"0.5171046",
"0.5144587",
"0.5143806",
"0.51299113",
"0.51131284",
"0.5101908",
"0.5086815",
"0.50829554",
"0.5076344",
"0.5074003",
"0.50550634",
"0.504513",
"0.50166386",
"0.5010931",
"0.4999819",
"0.49826953",
"0.49717405",
"0.49629846",
"0.4960144",
"0.49478865",
"0.49403727",
"0.4935891",
"0.4909463",
"0.48957056",
"0.48941514",
"0.4889027",
"0.4880289",
"0.48770586",
"0.48764342",
"0.4872058",
"0.48632094",
"0.48528546",
"0.48463145",
"0.4845895",
"0.48449233",
"0.48408023",
"0.48368847",
"0.48352817",
"0.48324367",
"0.48191664",
"0.48099968",
"0.48076746",
"0.4800218",
"0.47921997",
"0.47918126",
"0.47865805",
"0.47818983",
"0.4773018",
"0.47654855",
"0.4764992",
"0.4764828",
"0.4758109",
"0.47513023",
"0.47492886",
"0.472972",
"0.47297034",
"0.47283757",
"0.4724515",
"0.4724515",
"0.4724515",
"0.4724515",
"0.47221857",
"0.47216353",
"0.4717208",
"0.47135764",
"0.4712323",
"0.47085068",
"0.47078532",
"0.4702735",
"0.4697158",
"0.46955892",
"0.46947148",
"0.46806243",
"0.4673928",
"0.46718025",
"0.4671403",
"0.4668944",
"0.46585765",
"0.4657406",
"0.46571866",
"0.4656619",
"0.46550828"
] | 0.707215 | 0 |
Renders all the fish to a particular GraphicsContext. | public void render(GraphicsContext aGraphicsContext) {
for (EnemyFish currEnemyFish : fEnemyFishList) {
currEnemyFish.getSprite().render(aGraphicsContext);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void drawAllGraphics(){\r\n\t\t \r\n\t}",
"public void render(Graphics g)\r\n\t{\r\n\t\tfor(Entity e : entities)\r\n\t\t{\r\n\t\t\te.render(g);\r\n\t\t}\t\r\n\t}",
"public void draw(Graphics g) {\n\t\tfor (var f : flowers) {\n\t\t\tf.draw(g);\n\t\t}\n\t\t\n\t\t//loop through weeds; draw each\n\t\tfor (var w : weeds) {\n\t\t\tw.draw(g);\n\t\t}\n\t}",
"void render(Graphics g);",
"public void draw(GraphicsContext gc) {\n\t\toriginalHelix.draw(gc);\n\t\tupperHelix.draw(gc);\n\t\tlowerHelix.draw(gc);\n\t\tmanager.draw(gc);\n\t}",
"@Override\r\n\tpublic void paint(Graphics g) {\n\t\tsuper.paint(g);\r\n\t\trender(g);\r\n\t}",
"public void render(Graphics g) {\n\t}",
"protected abstract void render(Graphics g);",
"public abstract void render(Graphics g);",
"public void render(Graphics g) {\n\t\tgrassBackground.render();\r\n\r\n for (WaterTile i : waterTileList) {\r\n i.render();\r\n }\r\n for (Log i: logList) {\r\n i.render();\r\n }\r\n for (LongLog i: longLogList) {\r\n i.render();\r\n }\r\n for (Turtle i : turtleList) {\r\n // Every 7 seconds, don't render the turtle\r\n if (timeElapsedMs >= turtleStartSinkTime && timeElapsedMs <= turtleStartRiseTime) {\r\n break;\r\n }\r\n else if (timeElapsedMs > turtleStartRiseTime) {\r\n turtleStartSinkTime += NEXTSINKTIME;\r\n turtleStartRiseTime += NEXTSINKTIME;\r\n }\r\n i.render();\r\n }\r\n\r\n extraLife.render();\r\n player.render();\r\n\r\n\t\tfor (Bus i : busList) {\r\n\t\t\ti.render();\r\n\t\t}\r\n\t\tfor (RaceCar i : raceCarList) {\r\n\t\t i.render();\r\n }\r\n for (Bike i : bikeList) {\r\n i.render();\r\n }\r\n\t\tfor (Bulldozer i : bulldozerList) {\r\n\t\t i.render();\r\n }\r\n for (Tree i : treeList) {\r\n i.render();\r\n }\r\n for (Goal i : goalList) {\r\n // Only render the frog in the goal if it has been reached\r\n if (i.getGoalReached()) {\r\n i.render();\r\n }\r\n }\r\n for (Life i: lifeList) {\r\n i.render();\r\n }\r\n\t}",
"protected void paintComponent(Graphics graphics){\n super.paintComponent(graphics);\n\n Graphics2D g2d = (Graphics2D)graphics;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);\n\n renderBackground(graphics);\n renderCard(graphics);\n renderCoin(graphics);\n }",
"public void renderAll() {\n GameObjectManager.instance.renderAll(graphics);\n this.repaint();\n }",
"public void paint() {\n BufferStrategy bs;\n bs = this.getBufferStrategy();\n\n Graphics g = bs.getDrawGraphics();\n g.drawImage(background, 0, 0, this.getWidth(), this.getHeight(), null);\n if (this.blackHoles != null) {\n for (BlackHole blackHole : this.blackHoles) {\n blackHole.paint(g);\n }\n }\n if (this.balls != null) {\n for (int i = 0; i <this.balls.size() ; i++) {\n this.balls.get(i).paint(g);\n }\n\n }\n\n bs.show();\n g.dispose();\n\n }",
"public void render (Graphics2D g);",
"protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n // draw all piles and the remaining cards left in the deck\n for (int i = 0; i < mainPiles.length; i++) {\n mainPiles[i].draw(g);\n }\n for (int i = 0; i < suitPiles.length; i++) {\n suitPiles[i].draw(g);\n }\n deckPile.draw(g);\n deck.draw(g);\n \n if (selectedPile != null) {\n selectedPile.draw(g);\n }\n }",
"void draw(GraphicsContext context);",
"public void render(Graphics g){\n\t\tfor(int i=0;i<object.size(); i++){\n\t\t\ttempObject = object.get(i);\n\t\t\ttempObject.render(g);\n\t\t}\n\t\tif(bomb!=null){\n\t\tbomb.render(g);\n\t\t}\n\t\tif(power!=null){\n\t\t\tpower.render(g);\n\t\t}\n\t\tg.setColor(Color.red);\n\t\tg.drawImage(game.tex.hud[0], 0, 476, null);//score hud\n\t\tg.setFont(new Font(\"TimesRoman\", Font.PLAIN, 38));\n\t\tg.drawString(game.player.health.toString(), 650, 590);\n\t}",
"public void draw(Graphics g)\n\t{\n\t\tg.drawString(\"The giraffe eats \" + getFood() + \".\", 30, 400);\n\t\tg.drawString(\"The giraffe lives in the \" + getHabitat() + \" and it weighs \"\n\t\t\t\t+ getWeight() + \" pounds.\", 30, 430);\n\t\tg.drawString(\"The giraffe sounds like this: \" + getSound(), 30, 450);\n\t\tg.drawString(\"The giraffe's neck length is \" + neckLen + \" feet\", 30, 480);\n\t\tg.drawString(\"The giraffe's coat color is \" + color, 30, 500);\n\t}",
"public void paint() {\r\n\r\n\t\tsuper.paint();\r\n\t\r\n\t\tint len = _composites.size();\r\n\t\tfor (int i = 0; i < len; i++) {\r\n\t\t\tComposite c = _composites.get(i);\r\n\t\t\tc.paint();\r\n\t\t}\t\t\t\t\t\t\r\n\t}",
"private void render() {\n\t\t// clear the screen and depth buffer\n\t\tglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t\t\n\t\t// draws the background\n\t\tdrawScreen(sprite.get(\"background\"));\n\t\t\n\t\t// drawing player\n\t\tif (!stopDrawingPlayer)\n\t\t\tdrawEntity(player);\n\t\t// drawing bullets\n\t\tdrawListEntity(bullet);\n\t\t// drawing enemy bullets\n\t\tdrawListEntity(enemy_bullet);\n\t\t// drawing enemies\n\t\tdrawListEntity(enemy);\n\t\t// drawing powerups\n\t\tdrawListEntity(powerup);\n\t\t// drawing explosions\n\t\tdrawListEntity(explosion);\n\t\t\n\t\t// draw health\n\t\tdefaultFont.drawString(10, 10, \"Health: \" + player.getHP() + \"/1000\");\n\t\t// draw cash\n\t\tdefaultFont.drawString(10, 40, \"Cash: $\" + cash);\n\t\t// draw shop prompt\n\t\tdefaultFont.drawString(displayWidth - 280, displayHeight - 40, \"Press F to enter shop\");\n\t\t\n\t\tif (stopDrawingPlayer) {\n\t\t\t// draw Game Over\n\t\t\tgameOverFont.drawString(displayWidth / 2 - gameOverFont.getWidth(\"Game Over!\") / 2, displayHeight\n\t\t\t\t\t/ 2 - gameOverFont.getHeight(\"Game Over!\") / 2 - 50, \"Game Over!\");\n\t\t\t\n\t\t\t// draw the score\n\t\t\tscoreFont.drawString(displayWidth / 2 - scoreFont.getWidth(\"Score: \" + totalCash) / 2, displayHeight\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Game Over!\")\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Score: \" + totalCash)\n\t\t\t\t\t/ 2 + 10 - 50, \"Score: \" + totalCash);\n\t\t}\n\t}",
"public void draw(Fighter[] fs)\r\n {\r\n this.dFs = fs; //sets the fighters that are used for drawing to the current fighters\r\n repaint(); //calls calls the paint function\r\n }",
"@Override\n\tpublic void paint(Graphics g) {\n\t\tg.setColor(getBackground());\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\n\t\t// Draw each of the DrawSurfaces in the correct order.\n\t\tfor (Object element : aiDrawingOrder) {\n\t\t\tpaint(g, element);\n\t\t}\n\t}",
"public abstract void render(Graphics2D graphics);",
"public void paint(Graphics g )\n {\n super.paint(g); // is no super.paint(), then lines stay on screen \n \n for ( int i=0; i<allTheShapesCount; i++ )\n {\n allTheShapes[ i ] . drawMe(g);\n }\n }",
"public void render(List<Creature> mobs, List<Food> foods) {\n canvas.getGraphicsContext2D().clearRect(0, 0, 600, 600);\n for(Creature c: mobs) {\n c.render(canvas.getGraphicsContext2D());\n }\n for(Food f: foods) {\n f.render(canvas.getGraphicsContext2D());\n }\n }",
"public void flush(){\r\n\t\tColor tempcol = screengraphics.getColor();\r\n\t\tscreengraphics.setColor(backgroundcolor);\r\n\t\tscreengraphics.fillRect(0, 0, sizex, sizey);\r\n\t\tscreengraphics.dispose();\r\n\t\tstrategy.show();\r\n\t\tscreengraphics =(Graphics2D) strategy.getDrawGraphics();\r\n\t\tscreengraphics.setColor(backgroundcolor);\r\n\t\tscreengraphics.fillRect(0, 0, sizex, sizey);\r\n\t\tscreengraphics.dispose();\r\n\t\tstrategy.show();\r\n\t\tscreengraphics =(Graphics2D) strategy.getDrawGraphics();\r\n\t\tscreengraphics.setColor(tempcol);\r\n\t\t\r\n\t}",
"public void draw(Graphics2D graphics){\n\t\t\n\t\tfor(Polygon2D face : faces){\n\t\t\tface.draw(graphics);\n\t\t}\n\t}",
"private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }",
"@Override\n public void handlePaint()\n {\n for(GraphicObject obj : this.graphicObjects)\n {\n obj.draw();\n }\n \n }",
"private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }",
"public void paint(Graphics g) {\n\t\t \n\t\tmyMeal[0] = new Cake(0, 0, Color.yellow);\n\t\tmyMeal[1] = new Pie(0, 100, Color.blue);\n\t\tmyMeal[2] = new Donut();\n\t\t\n\t\t// call the bake() in ALL of the Cake and Pie objects\n\t\tfor (int x = 0; x < myMeal.length; x++) {\n\t\t\tmyMeal[x].bake(g);\n\t\t}\n\t\t\n\t\tg.drawString(myMeal[2].whatAmI(), 125, 125);\n\t\t\n\t}",
"@Override\n public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)\n {\n this.renderFish((EntityFish)par1Entity, par2, par4, par6, par8, par9);\n }",
"public void paintComponent(Graphics g){\n super.paintComponent(g);\n for(int i = 0; i < count; i++){\n drawObjects[i].draw(g);\n } \n }",
"public void render(Graphics2D g, BFGWindowProperties properties) {\n\t\t\n\t}",
"public void render(Graphics g){\n\t\tint xStart = (int)Math.max(0, handler.getGameCamera().getxOffset() / Tile.TILE_WIDTH); //For better understanding add +1 there :)\r\n\t\tint xEnd = (int)Math.min(width, (handler.getGameCamera().getxOffset() + handler.getWidth()) / Tile.TILE_WIDTH + 1);\r\n\t\tint yStart = (int)Math.max(0, handler.getGameCamera().getyOffset() / Tile.TILE_HEIGHT);\r\n\t\tint yEnd = (int)Math.min(height, (handler.getGameCamera().getyOffset() + handler.getHeight()) / Tile.TILE_HEIGHT + 1);\r\n\t\t\r\n\t\tfor(int y = yStart; y < yEnd; y++){ //Be careful because x is always width \r\n\t\t\tfor(int x = xStart; x < xEnd; x++){\r\n\t\t\t\t//We multiply it because otherwise each tile will be shifted only by one pixel\r\n\t\t\t\t//Multiplying by static variable TILE_WIDT will shift it by the width of the tile\r\n\t\t\t\tgetTile(x, y).render(g, (int)(x * Tile.TILE_WIDTH - handler.getGameCamera().getxOffset()), (int)(y * Tile.TILE_HEIGHT - handler.getGameCamera().getyOffset()));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Renders\r\n\t\titemManager.render(g);\r\n\t\tentityManager.render(g);\r\n\t\tbulletManager.render(g);\r\n\t}",
"public void render(GameContainer gc, Graphics g){\n\n for(Renderable r:renderables){\n r.render(gc, g);\n }\n\n if(this.gameData.getCurrentRoom().getRoomType() == MasarRoom.VICTORYROOM) {\n this.gameData.getImageList().get(2).draw(226, 284);\n }\n\n if(this.gameData.getCurrentRoom().getRoomType() == MasarRoom.DEFEATROOM) {\n this.gameData.getImageList().get(3).draw(120, 288);\n }\n\n\n if(roomType == GAMEROOM){\n\n for(Renderable l: this.gameData.getLinkList()){\n l.render(gc, g);\n }\n for(Renderable s: this.gameData.getSystemList()){\n s.render(gc, g);\n }\n\n this.gameData.getImageList().get(0).draw(300, 5);\n this.gameData.getImageList().get(1).draw(800, 5);\n this.gameData.getButtonsImages().get(\"Enemy\").drawNextSubimage(600, 16);\n this.gameData.getButtonsImages().get(\"Allied\").drawNextSubimage(500, 16);\n\n TrueTypeFont font = this.gameData.getFont(\"UITopFont\");\n font.drawString(536, 0, \"VS\" , Color.green);\n\n int popa = this.gameData.getPopA();\n int pope = this.gameData.getPopE();\n int resa = this.gameData.getResA();\n int rese = this.gameData.getResE();\n\n if ( popa > 1000000 ) font.drawString(480 - font.getWidth(\"\"+popa/1000000 + \"M\"), 0, \"\"+popa/1000000 + \"M\" , Color.cyan);\n else if ( popa > 1000 ) font.drawString(480 - font.getWidth(\"\"+popa/1000 + \"K\"), 0, \"\"+popa/1000 + \"K\" , Color.cyan);\n else font.drawString(480 - font.getWidth(\"\"+popa), 0, \"\"+popa , Color.cyan);\n font.drawString(295 - font.getWidth(\"\"+resa), 0, \"\"+resa , Color.cyan);\n\n if ( pope > 1000000 ) font.drawString(620, 0, \"\"+pope/1000000 + \"M\" , Color.red);\n else if ( pope > 1000 ) font.drawString(620, 0, \"\"+pope/1000 + \"K\" , Color.red);\n else font.drawString(620, 0, \"\"+pope , Color.red);\n font.drawString(830, 0, \"\"+rese , Color.red);\n\n for(WindowSystem w: this.gameData.getWindowList()){\n if(w.getMs().isShowWindow())\n w.render(gc, g);\n }\n\n //this.getClickManager().renderHitboxes(gc, g);\n\n }\n\n //this.getClickManager().renderHitboxes(gc, g);\n }",
"private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\n\t}",
"@Override\r\n\tprotected void paintComponent(Graphics g) \r\n\t{\n\t\tsuper.paintComponent(g);\r\n\t\t\r\n\t\t// passes Graphics g into flappy\r\n\t\tflappy.flappybox.repaint(g); /// passes Graphics g into flappy\r\n\t}",
"@Override\n\tpublic void render(Graphics g)\n\t{\n\t}",
"private void render() {\n\n if (state == STATE.PAUSE) {\n\n return;\n }\n\n\n if (state == STATE.MENU) {\n\n menu.draw();\n arrow.render();\n return;\n\n }\n\n if (state == STATE.INSTRUCTIONS) {\n instructions.draw();\n return;\n }\n\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).render();\n }\n\n\n for (Enemy enemy : enemies) {\n enemy.render();\n }\n\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).render();\n }\n\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).render();\n }\n\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).render();\n }\n\n topBar.render();\n bottomBar.render();\n fps.render();\n score.render();\n\n\n }",
"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}",
"protected void paintComponent(Graphics g)\n\t\t{\n\t\t\tsuper.paintComponent(g); \n\t\t\t//drawing the background\n\t\t\tg.drawImage(BackGround, 0, 0, null); \n\t\t\n\t\t\t//if(GameOn == true)\n\t\t\t//{\n\t\t\t//calling the paint function of the game characters\n\t\t\tpl.paint(g);\n\t\t\n\t\t\t\n\t\t\tfor(int i = 0 ; i < EnemyList.size(); i++)\n\t\t\t{\n\t\t\t\tEnemyList.get(i).paint(g);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//drawing the explosions\n\t\t\tg.drawImage(Explosion, enExplosionX, enExplosionY, null); \n\t\t\tg.drawImage(Explosion, plExplosionX, plExplosionY, null); \n\t\t\n\t\t\tfont = new Font(\"LCD\", Font.BOLD, 25);\n\t\t\tg.setFont(font);\n\t\t\t\n\t\t\t//g.drawString(\"Time: \" + formatTime(gameTime),\t\t\t0, 615);\n\t\t g.drawString(\"Rockets Remaining: \" + pl.NumRockets, \t0, 635);\n\t\t g.drawString(\"Bullets Remaining: \" + pl.NumBullets, \t0, 655);\n\t\t g.drawString(\"Enemies Destroyed: \" + DestroyedEnemies, 0, 675);\n\t\t g.drawString(\"Runaway Enemies: \" + RunAwayEnemies, 0, 695); \n\t\t//}\n\t\t \n\t\t\tif(BulletFired = true)\n\t\t {\n\t\t \tfor(int i = 0; i < BulletList.size();i++)\n\t\t \t{\n\t\t \t\tBulletList.get(i).paint(g); \n\t\t \t}\n\t\t }\n\t\t \n\t\t \t\t \n\t\t if(RocketFired = true)\n\t\t {\n\t\t \tfor(int i = 0; i < RocketList.size();i++)\n\t\t \t{\n\t\t \t\tRocketList.get(i).paint(g); \n\t\t \t}\n\t\t }\n\t\t\tif(GameOn == false){\n\t\t \tg.drawImage(GameOver, 200, 0, null);\n\t\t \t//g.drawString(\"Enemies Destroyed: \" + DestroyedEnemies, 250, 10);\n\t\t }\n\t\t else if (WinsState == true )\n\t\t {\n\t\t \tg.drawImage(GameWin, 200, 0, null);\n\t\t \n\t\t }\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t}",
"public void draw(Graphics g, World world) {\n for (Shapes current : this.listShapes) {\n current.draw(g,world);\n }\n }",
"@Override\n\tpublic void draw() {\n\t\tbg.draw();\n\t\tfor(Test2 t : test)\n\t\t\tt.draw();\n\t\tfor(Test2 t : test2)\n\t\t\tt.draw();\n\t\t\n\t\tfor(Test2 t : test3)\n\t\t\tt.draw();\n\t\tobj.draw();\n\t\tEffect().drawEffect(1);\n\t}",
"public void render(Graphics g) {\n\t\t// Tile the background image\n\t\tfor (int i = 0; i < App.SCREEN_WIDTH; i += background.getWidth()) {\n\t\t\tfor (int j = -background.getHeight() + (int)backgroundOffset; j < App.SCREEN_HEIGHT; j += background.getHeight()) {\n\t\t\t\tbackground.draw(i, j);\n\t\t\t}\n\t\t}\n\t\t// Draw all sprites\n\t\tfor (Sprite sprite : sprites) {\n\t\t\tsprite.render();\n\t\t}\n\t\tg.drawString(\"Score: \" + score, 20, App.SCREEN_HEIGHT - 30);\n\t\tfor (int i = 1; i <= lives; ++i) {\n\t\t\tlivesImage.draw(20 + 40 * (i - 1), App.SCREEN_HEIGHT - 72);\n\t\t}\n\t}",
"public void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tfor(Shape s : shapes){\n\t\t\ts.paint(g);\n\t\t}\n\t}",
"public void render(Graphics g) {\n\t\tthis.width = window.getContentPane().getWidth();\n\t\tthis.height = window.getContentPane().getHeight();\n\t\t\n\t\tfor (int i = 0; i < myBalls.length; ++i) {\n\t\t\tif (myBalls[i] != null) {\n\t\t\t\tmyBalls[i].draw(g);\n\t\t\t}\n\t\t}\n\t}",
"public void render(Graphics g) {\n\t\tg.setColor(Color.MAGENTA);\n\t\tg.fillRect(x, y, 50, 50);\n\t\t\n\t\tg.setColor(Color.white);\n\t\tg.drawRect(x, y, 50, 50);\n\t\t\n\t\tg.setColor(Color.gray);\n\t\tg.fillRect(x, y - 10, 50, 2);\n\t\t\n\t\tg.setColor(Color.red);\n\t\tg.fillRect(x, y - 10, bossHealth, 2);\n\t}",
"@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}",
"@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}",
"public void render(float f) {\n update();\n\n long currentTime = System.currentTimeMillis();\n //Divide by a thousand to convert from milliseconds to seconds\n elapsedTime = (currentTime - lastTime) % 1000.0f;\n lastTime = currentTime;\n\n batch.begin();\n bg1.draw(batch, 1);\n bg2.draw(batch, 1);\n playerSprite.draw(batch);\n\n //Draws bullets if bullet array is holding bullet objects\n if (bullets.size() > 0) {\n for (Bullet bullet : bullets) {\n bullet.getSprite().draw(batch);\n }\n }\n\n //Draws worms if worm array is holding worm objects\n if (worms.size() > 0) {\n for (Worm worm : worms) {\n worm.getSprite().draw(batch);\n }\n }\n\n //Draws trojans if trojan array is holding trojan objects\n if (trojans.size() > 0) {\n if (bigTrojan == null) {\n for (Trojan trojan : trojans) {\n trojan.getSprite().draw(batch);\n }\n } else if (bigTrojan != null) {\n bigTrojan.getSprite().draw(batch);\n }\n }\n //Draws memLeaks if memLeak array is holding memLeak objects\n if (memLeaks.size() > 0) {\n for (MemoryLeak memLeak : memLeaks) {\n memLeak.getSprite().draw(batch);\n }\n }\n\n if (elissaArray.size() > 0) {\n for (Elissa elissa : elissaArray) {\n elissa.getSprite().draw(batch);\n }\n }\n\n //Draws ElissaFiles if elissaFiles array is holding files objects\n if (elissaFiles.size() > 0) {\n for (ElissaFiles file : elissaFiles) {\n file.getSprite().draw(batch);\n }\n }\n\n //Draws files if files array is holding files objects\n if (files.size() > 0) {\n for (Files file : files) {\n file.getSprite().draw(batch);\n }\n }\n\n //particle system\n particles.render(batch);\n\n switch (gameState) {\n case PLAYING:\n //Score\n scoreTxt = \"Score: \" + String.format(Locale.US, \"%06d\", score);\n uiFont.draw(batch, scoreTxt, 0, HEIGHT - (scoreLayout.height));\n //Health\n healthTxt = \"Health: \" + player.getHp();\n uiFont.draw(batch, healthTxt, WIDTH / 2, HEIGHT - (healthLayout.height));\n //MOVEMENT\n isTouched = Gdx.input.isTouched();\n //Gdx.app.log(\"Playing: \", \"Is touched: \" + isTouched);\n playerMovement();\n pauseButton.draw(batch, 1);\n stage.draw();\n break;\n case PAUSED:\n //Fill in pause code\n if (settingsOn == false) {\n pauseScreenRender();\n } else if (settingsOn == true) {\n settingsScreenRender();\n }\n break;\n case GAMEOVER:\n countdown = ((System.currentTimeMillis() - startTime) / 1000);\n Gdx.app.log(\"Seconds Elapsed: \", \"\" + ((System.currentTimeMillis() - startTime) / 1000));\n overlay.draw(batch, 0.5f);\n font.draw(batch, txt, WIDTH / 2 - layout.width / 2, HEIGHT / 2 + layout.height / 2);\n if (countdown == 5) {\n gameState = GameState.PLAYING;\n Lvl1.musicBackground.dispose();\n game.setScreen(AntiVirus.levelSelectScreen);\n }\n break;\n case COMPLETE:\n completeScreenRender();\n break;\n }\n batch.end();\n }",
"private void render() {\n\n // Clear the whole screen\n gc.clearRect(0, 0, canvas.getWidth(), canvas.getHeight());\n\n // Draw the background image\n gc.drawImage(curMap.getMap(), 0,0, canvas.getWidth(), canvas.getHeight());\n\n // Draw Paths\n for(DrawPath p : pathMap.values()) {\n p.draw(gc);\n }\n\n // Draw all of the lines and edges\n\n // Lines\n for(Line l : lineMap.values()) {\n l.draw(gc);\n }\n\n // Points\n for(Point p : pointMap.values()) {\n p.draw(gc);\n }\n\n // Images\n for(Img i : imgMap.values()) {\n i.draw(gc);\n }\n\n // Text\n for(Text t : textMap.values()) {\n t.draw(gc);\n }\n }",
"@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n render(g);\n }",
"public void render(Graphics2D g){\n if(game.gameState == Game.AppState.MENU){\n Font fnt0 = new Font(\"Serif\", Font.BOLD,45);\n Font fnt1 = new Font(\"Serif\", Font.BOLD,25);\n\n g.setFont(fnt0);\n g.setColor(Color.BLACK);\n g.drawString(\"DYNA BLASTER\", 122, 100);\n\n g.setFont(fnt1);\n g.fillRect(190,200,220,54);\n g.setColor(Color.cyan);\n g.drawString(\"PLAY\", 268, 235);\n\n g.setColor(Color.BLACK);\n g.fillRect(190,300,220,54);\n g.setColor(Color.cyan);\n g.drawString(\"BEST RESULTS\", 205, 335);\n\n g.setColor(Color.BLACK);\n g.fillRect(190,400,220,54);\n g.setColor(Color.cyan);\n g.drawString(\"HELP\", 268, 435);\n\n g.setColor(Color.BLACK);\n g.fillRect(190,500,220,54);\n g.setColor(Color.cyan);\n g.drawString(\"EXIT\", 272, 535);\n }\n else if(game.gameState == Game.AppState.RESULTS){\n Font fnt0 = new Font(\"Serif\", Font.BOLD, 35);\n Font fnt1 = new Font(\"Serif\", Font.BOLD, 25);\n Font fnt2 = new Font(\"Serif\", Font.BOLD, 20);\n\n g.setFont(fnt0);\n g.setColor(Color.BLACK);\n g.drawString(\"LIST\", 255, 80);\n g.setFont(fnt2);\n g.drawString(\"Place Nick Score\", 70, 120);\n for(int i=0;i<10;i++) {\n g.drawString(i+1+\" \"+handler.scores.getScores(i), 90, 150+30*i);\n }\n g.setFont(fnt1);\n g.setColor(Color.BLACK);\n g.fillRect(190,500,220,54);\n g.setColor(Color.cyan);\n g.drawString(\"BACK\", 265, 535);\n }\n else if(game.gameState == Game.AppState.HELP){\n Font fnt0 = new Font(\"Serif\", Font.BOLD, 35);\n Font fnt1 = new Font(\"Serif\", Font.BOLD, 25);\n Font fnt2 = new Font(\"Serif\", Font.BOLD, 20);\n Font fnt3 = new Font(\"Serif\", Font.PLAIN, 16);\n\n g.setFont(fnt0);\n g.setColor(Color.BLACK);\n g.drawString(\"HELP\", 255, 100);\n String []command=helpconfig.gethelpstring();\n g.setFont(fnt2);\n g.drawString(command[0], 70, 150);\n g.setFont(fnt3);\n g.drawString(command[1], 70, 170);\n g.drawString(command[2], 70, 190);\n g.setFont(fnt2);\n g.drawString(command[3], 70, 230);\n g.setFont(fnt3);\n for(int i=4;i<helpconfig.get_length_of_commands();i++) {\n g.drawString(command[i], 70, 250+(i-4)*20);\n\n }\n g.setFont(fnt1);\n g.setColor(Color.BLACK);\n g.fillRect(190,500,220,54);\n g.setColor(Color.cyan);\n g.drawString(\"BACK\", 265, 535);\n }\n }",
"private void drawFences(Graphics g){\n\t\tg.setColor(Color.BLACK);\n\t\tdrawInteriorFences(g);\n\t\tdrawPerimeterFences(g);\n\t}",
"public void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tfor(SnakeSquare i:sSquare)i.paint(g);\n\t\tsObst.paint(g);\n\t\tsFood.paint(g);\n\t\tboundary.paint(g);\n\t}",
"void render(GraphicsContext gc) {\n\t\tgc.save();\r\n\t\tAffine trans = new Affine();\r\n\t\ttrans.appendTranslation(locX, locY);\r\n\t\ttrans.appendRotation(angle);\r\n\t\t// draw the image using the specified transform\r\n\t\tgc.setTransform(trans);\r\n\t\tgc.drawImage(image, -radius, -radius);\r\n\t\t// Reset the transform (this is important)\r\n\t\tgc.restore();\r\n\t\t// Then draw bullets\r\n\t\tfor (Bullet b : bullets)\r\n\t\t\tb.render(gc);\r\n\r\n\t}",
"public void render(Graphics g) {\n\t\t// decide what color to be\n\t\tif (seenBots.size() > 0) {\n\t\t\tif (closeBots.size() > 0) {\n\t\t\t\tg.setColor(new Color(255, 0, 0));\n\t\t\t} else {\n\t\t\t\tg.setColor(new Color(255, 255, 0));\n\t\t\t}\n\t\t} else {\n\t\t\tg.setColor(new Color(0, 255, 0));\n\t\t}\n\t\t\n\t\t// render\n\t\trenderBot(g);\n\t\trenderLights(g);\n\t}",
"void render(GraphicsContext gc, double xOffSet, double yOffSet);",
"void render(Graphics2D brush);",
"public void render(Graphics g) {\n int sxtemp = sx, sytemp = sy;\n g.drawImage(background, 0, 0, 1024, 768, sxtemp, sytemp-768, sxtemp+1024, sytemp, null);\n \n for (Obstacle1 obstacle : floors) {\n\t Rectangle range = new Rectangle(obstacle.getLocation(), obstacle.getSize());\n g.drawImage(obstacle.getImage(), range.x - sx , range.y - sy + 768, range.width, range.height, null);\n //g.drawImage(obstacle, 666, 444, obstacle.getWidth(), obstacle.getHeight(), null);\n\t}\n\tfor (Obstacle2 stair : stairs) {\n\t Rectangle range = new Rectangle(stair.getLocation(), stair.getSize());\n if (stair.getFace() == Direction.RIGHT) {\n g.drawImage(stair.getImage(), range.x + range.width - sx, range.y - sy + 768, -range.width, range.height, null);\n } else {\n g.drawImage(stair.getImage(), range.x - sx , range.y - sy + 768, range.width, range.height, null);\n }\n //g.drawImage(obstacle, 666, 444, obstacle.getWidth(), obstacle.getHeight(), null);\n\t}\n\tfor (Obstacle3 obstacle : rocks) {\n\t Rectangle range = new Rectangle(obstacle.getLocation(), obstacle.getSize());\n g.drawImage(obstacle.getImage(), range.x - sx , range.y - sy + 768, range.width, range.height, null);\n\t}\n\t\n for (Sprite sprite : sprites) {\n //System.out.println(sprite.location);\n //System.out.printf(\"%d %d\\n\", sxtemp, sytemp);\n sprite.setLocation(new Point(sprite.getX()-sxtemp, sprite.getY()-sytemp+768));\n //System.out.printf(\"%d %d\\n\", sxtemp, sytemp);\n sprite.render(g);\n sprite.setLocation(new Point(sprite.getX()+sxtemp, sprite.getY()+sytemp-768));\n }\n for(DropItem dropItem : dropItems) {\n dropItem.setLocation(new Point(dropItem.getLocation().x-sxtemp, dropItem.getLocation().y-sytemp+768));\n dropItem.render(g);\n dropItem.setLocation(new Point(dropItem.getLocation().x+sxtemp, dropItem.getLocation().y+sytemp-768));\n }\n sx = sxtemp; sy = sytemp;\n\n BufferedImage bg = resizeImage((BufferedImage)background, background.getWidth(null)/16, background.getHeight(null)/16);\n g.drawImage(bg, 0, 0, null);\n for (Sprite sprite : sprites) {\n g.setColor(Color.RED);\n Point p = sprite.getLocation();\n if(sprite instanceof Boss) g.fillOval((int)(p.getX()/16), (int)(p.getY()/16), 16, 16);\n else g.fillOval((int)(p.getX()/16), (int)(p.getY()/16), 6, 6);\n }\n for(Obstacle obstacle : floors) {\n Point p = obstacle.getLocation();\n int w = obstacle.getImage().getWidth(null), h = obstacle.getImage().getHeight(null);\n BufferedImage img = resizeImage((BufferedImage)obstacle.getImage(), w/16, h/16);\n g.drawImage(img, (int)(p.getX()/16), (int)(p.getY()/16), null);\n }\n for(Obstacle obstacle : rocks) {\n Point p = obstacle.getLocation();\n int w = obstacle.getImage().getWidth(null), h = obstacle.getImage().getHeight(null);\n BufferedImage img = resizeImage((BufferedImage)obstacle.getImage(), w/16, h/16);\n g.drawImage(img, (int)(p.getX()/16), (int)(p.getY()/16), null);\n }\n for(Obstacle obstacle : stairs) {\n Point p = obstacle.getLocation();\n int w = obstacle.getImage().getWidth(null), h = obstacle.getImage().getHeight(null);\n BufferedImage img = resizeImage((BufferedImage)obstacle.getImage(), w/16, h/16);\n g.drawImage(img, (int)(p.getX()/16), (int)(p.getY()/16), null);\n }\n\n\n g.setColor(Color.green);\n Point p = player.getLocation();\n g.fillOval((int)(p.getX()/16), (int)(p.getY()/16), 8, 8);\n g.setColor(Color.black);\n g.drawOval((int)(p.getX()/16), (int)(p.getY()/16), 8, 8);\n\n g.drawImage(pause, 950, 0, null);\n\n g.setColor(Color.pink);\n g.fillRect(350, 650, 300, 80);\n g.setColor(Color.black);\n g.drawRect(350, 650, 300, 80);\n Image pl;\n try {\n pl = ImageIO.read(new File(\"assets/others/player.png\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(pl, 365, 655, null);\n g.setColor(Color.black);\n g.setFont(new Font(\"TimesRoman\", Font.BOLD, 16));\n g.drawString(\"LV. \" + player.lv, 415, 700); //player.exp + \"/\" + player.lv*100\n g.drawString(\"exp \", 480, 675);\n\n g.setFont(new Font(\"TimesRoman\", Font.PLAIN, 16));\n g.setColor(Color.GRAY);\n g.fillRect(510, 660, 120, 15);\n g.setColor(Color.YELLOW);\n g.fillRect(510, 660, (int) (player.exp * 120 / (player.lv*100)), 15);\n g.setColor(Color.BLACK);\n g.drawRect(510, 660, 120, 15);\n g.drawString(player.exp + \"/\" + player.lv*100, 520, 675);\n\n HealthPointBar hpBar = player.hpBar;\n int width = (int) (hpBar.getHp() * 120 / player.KNIGHT_HP);\n int widthMp = (int) (hpBar.getMp() * 120 / player.KNIGHT_MP);\n g.setColor(Color.RED);\n g.fillRect(510, 685, 120, 15);\n g.setColor(Color.GREEN);\n g.fillRect(510, 685, width, 15);\n g.setColor(Color.WHITE);\n g.fillRect(510, 705, 120, 15);\n g.setColor(Color.BLUE);\n g.fillRect(510, 705, widthMp, 15);\n g.setColor(Color.black);\n g.drawRect(510, 685, 120, 15);\n g.drawRect(510, 705, 120, 15);\n g.setFont(new Font(\"TimesRoman\", Font.PLAIN, 16));\n g.setColor(Color.black);\n g.drawString(\"HP \", 480, 700);\n g.drawString(\"MP \", 480, 720);\n g.drawString(hpBar.getHp() + \"/\" + player.KNIGHT_HP, 520, 700);\n g.drawString(hpBar.getMp() + \"/\" + player.KNIGHT_MP, 520, 720);\n\n\n //boss\n if(bossAppear && !bossDies) {\n g.setColor(Color.pink);\n g.fillRect(350, 0, 300, 80);\n g.setColor(Color.black);\n g.drawRect(350, 0, 300, 80);\n Image bo;\n try {\n bo = ImageIO.read(new File(\"assets/others/boss.png\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(bo, 560, -5, null);\n g.setColor(Color.black);\n\n g.setFont(new Font(\"TimesRoman\", Font.PLAIN, 16));\n hpBar = boss.hpBar;\n width = (int) (hpBar.getHp() * 150 / boss.HP);\n g.setColor(Color.RED);\n g.fillRect(420, 35, 150, 15);\n g.setColor(Color.GREEN);\n g.fillRect(420, 35, width, 15);\n g.setColor(Color.black);\n g.drawRect(420, 35, 150, 15);\n g.setFont(new Font(\"TimesRoman\", Font.PLAIN, 16));\n g.setColor(Color.black);\n g.drawString(\"HP \", 380, 50);\n g.drawString(hpBar.getHp() + \"/\" + boss.HP, 425, 50);\n\n }\n\n if(player.levelUping > 0) {\n player.levelUping--;\n Image lvup;\n try {\n lvup = ImageIO.read(new File(\"assets/lvup/\" + player.lv + \".png\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(lvup, 290, 80, null);\n }\n\n g.setFont(new Font(\"TimesRoman\", Font.BOLD, 16));\n g.setColor(Color.gray);\n if(player.lv >= 1) {\n Image skillu;\n try {\n skillu = ImageIO.read(new File(\"assets/skillicon/skillu.jpg\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(skillu, 0, 680, null);\n g.drawString(\"u\", 20, 675);\n }\n if(player.lv >= 2) {\n Image twoStepJump;\n try {\n twoStepJump = ImageIO.read(new File(\"assets/skillicon/2stepjump.jpg\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(twoStepJump, 50, 680, null);\n g.drawString(\"space\", 50, 675);\n }\n if(player.lv >= 3) {\n Image skilli;\n try {\n skilli = ImageIO.read(new File(\"assets/skillicon/skilli.jpg\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(skilli, 100, 680, null);\n g.drawString(\"i\", 120, 675);\n }\n if(player.lv >= 4) {\n Image skillo;\n try {\n skillo = ImageIO.read(new File(\"assets/skillicon/heal.png\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(skillo, 150, 680, null);\n g.drawString(\"o\", 170, 675);\n }\n\n int hp = player.hpPotionCount, mp = player.mpPotionCount, ring = player.ringCount;\n g.setColor(Color.yellow);\n g.fillRect(860, 680, 150, 50);\n g.setColor(Color.black);\n g.drawRect(860, 680, 50, 50);\n g.drawRect(910, 680, 50, 50);\n g.drawRect(960, 680, 50, 50);\n\n g.setFont(new Font(\"TimesRoman\", Font.BOLD, 16));\n g.setColor(Color.black);\n Image im;\n try {\n im = ImageIO.read(new File(\"assets/dropitem/33.png\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(im, 860, 680, null);\n g.setColor(Color.gray);\n g.drawString(\"1\", 895, 695);\n g.setColor(Color.black);\n g.drawString(\"\" + hp, 895, 730);\n\n try {\n im = ImageIO.read(new File(\"assets/dropitem/22.png\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(im, 910, 680, null);\n g.setColor(Color.gray);\n g.drawString(\"2\", 945, 695);\n g.setColor(Color.black);\n g.drawString(\"\" + mp, 945, 730);\n\n try {\n im = ImageIO.read(new File(\"assets/dropitem/11.png\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(im, 960, 680, null);\n g.setColor(Color.gray);\n g.drawString(\"3\", 995, 695);\n g.setColor(Color.black);\n g.drawString(\"\" + ring, 995, 730);\n }",
"private void render() {\n\t\tBufferStrategy buffStrat = display.getCanvas().getBufferStrategy();\n\t\tif(buffStrat == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3); //We will have 3 buffered screens for the game\n\t\t\treturn;\n\t\t}\n\n\t\t//A bufferstrategy prevents flickering since it preloads elements onto the display.\n\t\t//A graphics object is a paintbrush style object\n\t\tGraphics g = buffStrat.getDrawGraphics();\n\t\t//Clear the screen\n\t\tg.clearRect(0, 0, width, height); //Clear for further rendering\n\t\t\n\t\tif(State.getState() !=null) {\n\t\t\tState.getState().render(g);\n\t\t}\n\t\t//Drawings to be done in this space\n\t\t\n\t\t\n\t\t\n\t\tbuffStrat.show();\n\t\tg.dispose();\n\t}",
"public void draw() {\n GraphicsContext gc = getGraphicsContext2D();\n /*gc.clearRect(0, 0, getWidth(), getHeight());\n\n if (squareMap != null) {\n squareMap.draw(gc);\n }\n if (hexMap != null) {\n hexMap.draw(gc);\n }*/\n\n // Draw animations\n for (SpriteAnimationInstance anim : animationList) {\n anim.draw(gc);\n }\n\n // Lastly draw the dialogue window, no matter which canvas\n // we are on, all the same.\n DfSim.dialogueWindow.draw(gc);\n\n /*if (landMap != null) {\n landMap.draw(gc);\n }*/\n\n // Draw a border around the canvas\n //drawBorder(gc);\n\n // And now just draw everything directly from the simulator\n /*for (Raindrop item : sim.getDrops()) {\n drawMovableCircle(gc, item);\n }\n for (Earthpatch item : sim.getPatches()) {\n drawMovableCircle(gc, item);\n }\n for (SysShape item : sim.getShapes()) {\n drawSysShape(gc, item);\n }\n for (Spike item : sim.getSpikes()) {\n drawMovablePolygon(gc, item);\n }\n for (GravityWell item : sim.getGravityWells()) {\n drawGravityWell(gc, item);\n }*/\n }",
"public void draw()\n\t{\n\t\tdrawWalls();\n\n\t\tfor( Zombie z: zombies )\n\t\t{\n\t\t\tz.draw();\n\t\t}\n\t\tfor( Entity h: humans )\n\t\t{\n\t\t\th.draw();\n\t\t}\n\n\t\tdp.repaintAndSleep(rate);\n\t}",
"public void draw(DrawingContext context) {\n\t\t\t\t}",
"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\tpublic void update(Graphics g) \n\t{\n\t\tpaint(g); \n\t}",
"public void paint(Graphics g) {\n\t\t\n\t}",
"public void paint(Graphics g) {\n\t\tDimension d = getSize();\n\t\tint brickLine = d.height * 85 / 100;\n\t\tint brickHeight = d.height * 4 / 100;\n\t\tint skyline = brickLine + brickHeight;\n\n\t\t// draw solid sky, mortar, and moon\n\t\t// g.setColor(NIGHTSKY);\n\t\t// g.fillRect(0, 0, d.width, skyline);\n\t\tg.drawImage(bgImg, 0, 0, null);\n\n\t\t// Draw the snowflakes.\n\t\tfor (int i = 0; i < numFlakes; i++) {\n\t\t\tflakes[i].paint(this, g);\n\t\t}\n\t}",
"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 paint(Graphics g)\n\t{\n\t\tg.drawString(mouse.mouse.toString(), 500, 20);\n\t\t\n\t\tg.setColor(Color.black);\n\t\tPosition.drawAxis(g, 1);\n\t\tg.drawString(\"FPS: \"+thread.Engine.fps,10,20);\n\t\tg.drawString(\"FPSSCR: \"+fpsscr,10,40);\n\t\t\n\t\tEngine.ball1.drawFill(g);\n\t\t//Engine.ball1.drawVelocity(g);\n\t\tEngine.ball2.draw(g);\n\t\t//Engine.ball2.drawVelocity(g);\n\t\tEngine.plane1.draw(g, 1000);\n\t\tEngine.plane2.draw(g, 1000);\n\t\tEngine.plane3.draw(g, 1000);\n\t\tEngine.plane4.draw(g, 1000);\n\t\t\n\t\tmouse.mouse.draw(g, 1);\n\t\t\n\t\tupdatefps();\n\t}",
"public void render(Graphics2D g2d) {\n Iterator<Particle> iter = particles.iterator();\n g2d.setStroke(new BasicStroke(1.0f));\n\n while (iter.hasNext()) {\n Particle p = iter.next();\n p.render(g2d);\n }\n }",
"public void paint(Graphics g)\r\n\t{\r\n\t\t// First call the base class paint method to do a one time\r\n\t\t// Initialization - specific to the JoglCanvas class\r\n\t\tsuper.paint(g);\r\n\t\t//System.out.println(\"Call to paint\");\r\n\t\tdisplay();\r\n\t}",
"public void paint(Graphics2D g) {\n\t\tfor (Operation operation : operations) {\n\t\t\toperation.paint(g);\n\t\t}\n\t}",
"public void render(Graphics g){\n\t\tg.setColor(Color.WHITE);\n\t\tg.setFont(JudokaComponent.bigFont);\n\t\tfor (int i = 0; i < items.length; i++) {\n\t\t\tif(i == selectedItem && items[i] != null)\n\t\t\t\tg.drawString(\"> \" + items[i] + \" <\" , JudokaComponent.WIDTH / 2 - (items[i].length() + 4) * 10 + 200, 50 + JudokaComponent.HEIGHT / 2 + i * 40);\n\t\t\telse if(items[i] != null)\n\t\t\t\tg.drawString(items[i] , JudokaComponent.WIDTH / 2 - items[i].length() * 10 + 200, 50 + JudokaComponent.HEIGHT / 2 + i * 40);\n\t\t}\n\t}",
"public void update(Graphics g){\n paint (g);\r\n \r\n }",
"@Override\r\n public void render(final Graphics graphics) throws Exception\r\n {\r\n if (hasGameover())\r\n {\r\n //draw the victory screen\r\n graphics.drawImage(victory, 0, 0, null);\r\n }\r\n else\r\n {\r\n if (intermission.isActive())\r\n {\r\n //draw the intermission\r\n this.intermission.render(graphics);\r\n }\r\n else\r\n {\r\n //draw the background\r\n graphics.drawImage(background, 0, 0, null);\r\n\r\n //draw the current puzzle\r\n this.puzzles.render(graphics);\r\n\r\n //draw the pieces\r\n this.pieces.render(graphics);\r\n\r\n //draw the outline of the current puzzle\r\n this.puzzles.renderOutline(graphics);\r\n\r\n //draw the cursor\r\n this.puzzles.renderCursor(graphics);\r\n }\r\n }\r\n }",
"public void paint(Graphics g){\n\t\t\n\t}",
"public void paint(Graphics g) {\n\tupdate(g);\n }",
"public void render(GameState state) {\n // Render single frame\n do {\n // The following loop ensures that the contents of the drawing buffer\n // are consistent in case the underlying surface was recreated\n do {\n // Get a new graphics context every time through the loop\n // to make sure the strategy is validated\n Graphics2D graphics = (Graphics2D) bufferStrategy.getDrawGraphics();\n try {\n doRendering(graphics, state);\n } finally {\n // Dispose the graphics\n graphics.dispose();\n }\n // Repeat the rendering if the drawing buffer contents were restored\n } while (bufferStrategy.contentsRestored());\n\n // Display the buffer\n bufferStrategy.show();\n // Tell the system to do the drawing NOW;\n // otherwise it can take a few extra ms and will feel jerky!\n Toolkit.getDefaultToolkit().sync();\n\n // Repeat the rendering if the drawing buffer was lost\n } while (bufferStrategy.contentsLost());\n }",
"@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n if(image != null)\n {\n \tScaleImage();\n \tg.drawImage(image, 0, 0, null);\n }\n \n if(isFood())\n\t\t{\n \t\n\t\t\tGraphics2D g2 = (Graphics2D) g;\n\t\t\tg2.setColor(Color.red);\n\t\t\tg2.setStroke(new BasicStroke(3));\n\t\t\tg2.drawArc(getWidth()/2, getHeight()/2-5, 10, 10, 30, 210);\t \n\t\t\tg2.drawArc(getWidth()/2, getHeight()/2+5, 10, 10, 180, 270);\n\t\t\tg2.setStroke(new BasicStroke(1));\n\t\t\t\n\t\t}\n \n for (int i = 0; i < listAnimals.size(); i++) {\n\t\t\t(listAnimals.get(i)).drawAnimal(g);\n\t\t\t//System.out.println(\"draw object \" + listAnimals.get(i) + \", location \" + listAnimals.get(i).getLocation());\n\t\t}\n \n }",
"public void paintComponenet(){\r\n\t\tfor(DShape ds : shapes){\r\n\t\t\tds.draw();\r\n\t\t}\r\n\t}",
"@Override\n public void render(GameContainer gc, StateBasedGame stateBasedGame, Graphics g) throws SlickException {\n //Loads this seperate, else the map is over-riding all drawn during the game\n loadMap.render(gc, stateBasedGame, g);\n //Render all objects\n for (GameObject obj : objects) {\n obj.render(gc, stateBasedGame, g);\n }\n Input input = gc.getInput();\n int mouseX = input.getMouseX();\n int mouseY = input.getMouseY();\n\n if (sellTower || upgradePressed) {\n if (input.isMousePressed(1)) {\n sellTower = false;\n upgradePressed = false;\n }\n }\n\n //Draws this tower\n for (BasicTower basicTower : basicTowers) {\n basicTower.basicClicked.draw(basicTower.towerX * w, basicTower.towerY * w, w, w);\n }\n //Draws this tower\n for (SniperTower sniperTower : sniperTowers) {\n sniperTower.sniperClicked.draw(sniperTower.towerX * w, sniperTower.towerY * w, w, w);\n }\n //Draws this tower\n for (QuickTower quickTower : quickTowers) {\n quickTower.quickClicked.draw(quickTower.towerX * w, quickTower.towerY * w, w, w);\n }\n //Draws this tower\n for (BomberTower bomberTower : bomberTowers) {\n bomberTower.bomberClicked.draw(bomberTower.bombertowerX * w, bomberTower.bombertowerY * w, w, w);\n }\n\n //This draws for each enemy its healthbar based on it current HP\n for (Enemy enemies : enemies) {\n Rectangle bar = new Rectangle(enemies.getStartPosX() * w + 8,\n enemies.getStartPosY() * w,\n 50 * enemies.getHP() / ((enemy.startHP + currentLevel)), 6);\n GradientFill fill = new GradientFill(enemies.getStartPosX() * w + 8,\n 0, new Color(255, 60, 0),\n enemies.getStartPosX() * w + 60, 0, new Color(255, 180, 0));\n // g.drawString(\"\" + enemies.getHP(), enemies.getStartPosX() * w, enemies.getStartPosY() * w);\n\n g.setColor(Color.darkGray);\n g.fillRect(enemies.getStartPosX() * w + 8, enemies.getStartPosY() * w, 50, 6);\n g.fill(bar, fill);\n\n enemies.e1.draw(enemies.getStartPosX() * w + 8,\n enemies.getStartPosY() * w + 8, w - 16, w - 16);\n }\n\n //Controls the bullets\n for (int i = 0; i < bulletList.size(); i++) {\n Bullets bullets = bulletList.get(i);\n basicbulletSheet.draw(bullets.location.getX(), bullets.location.getY(), 32, 32);\n bulletCircle = new Circle(bullets.location.getX(), bullets.location.getY(), 10);\n for (Enemy enemy : enemies) {\n enemy.Playrect = new Circle(enemy.getStartPosX() * w + r,\n enemy.getStartPosY() * w + r, 25);\n if (bulletList.size() > 0 && bulletCircle.intersects(enemy.Playrect)) {\n bulletCount++;\n collides = true;\n enemy.setHP(enemy.getHP() - 1);\n if (collides) {\n bulletList.remove(i);\n } else {\n collides = false;\n }\n }\n }\n //If the bullet runs out of the screen, remove it\n if (bulletCircle.getX() > (loadMap.HEIGHT - 6) * w || bulletCircle.getY() > loadMap.WIDTH * w) {\n bulletList.remove(i);\n }\n //g.setColor(transparent);\n //g.fill(bulletCircle);\n }\n\n g.setColor(Color.green);\n g.drawString(\"Level: \" + currentLevel, 715, 385);\n\n //SELL TOWERS\n if (loadMap.MAP[mouseY / w][mouseX / w] == 12) {\n if (input.isMousePressed(0)) {\n sellTower = true;\n upgradePressed = false;\n }\n }\n //Remove sellTower or Upgradepressed if mouse is on a tower in the menu\n if (loadMap.MAP[mouseY / w][mouseX / w] == 8 || loadMap.MAP[mouseY / w][mouseX / w] == 6 ||\n loadMap.MAP[mouseY / w][mouseX / w] == 10 || loadMap.MAP[mouseY / w][mouseX / w] == 4) {\n sellTower = false;\n upgradePressed = false;\n }\n\n //Visible if selltower is pressed\n if (sellTower) {\n loadMap.MAP[4][11] = 13;\n } else {\n loadMap.MAP[4][11] = 12;\n }\n //Sell Basic\n if (loadMap.MAP[mouseY / w][mouseX / w] == 5 && basicTowers.listIterator().hasNext()) {\n BasicTower b = getBasicTower(mouseY / w, mouseX / w);\n g.drawString(\"BasicTower\", 715, 445);\n g.drawString(\"Refund value: \" + basicTowers.listIterator().next().refundValue, 715, 475);\n g.drawString(\"Upgrade Cost: \" + basicTowers.listIterator().next().upgradeCost, 715, 505);\n if (b != null) {\n g.drawString(\"Tower Level: \" + b.towerLevel, 715, 535);\n }\n if (sellTower) {\n if (input.isMousePressed(0)) {\n BasicTower t = getBasicTower(mouseY / w, mouseX / w);\n if (t != null) {\n player.addCredits(t.refundValue);\n basicTowers.remove(t);\n }\n loadMap.MAP[mouseY / w][mouseX / w] = 1;\n sellTower = false;\n }\n }\n }\n\n //Sell Bomber\n if (loadMap.MAP[mouseY / w][mouseX / w] == 7 && bomberTowers.listIterator().hasNext()) {\n BomberTower b = getBomberTower(mouseY / w, mouseX / w);\n g.drawString(\"BomberTower\", 715, 445);\n g.drawString(\"Refund value: \" + bomberTowers.listIterator().next().refundValue, 715, 475);\n g.drawString(\"Upgrade Cost: \" + bomberTowers.listIterator().next().upgradeCost, 715, 505);\n if (b != null) {\n g.drawString(\"Tower Level: \" + b.towerLevel, 715, 535);\n }\n if (sellTower) {\n if (input.isMousePressed(0)) {\n BomberTower t = getBomberTower(mouseY / w, mouseX / w);\n if (t != null) {\n player.addCredits(t.refundValue);\n bomberTowers.remove(t);\n }\n loadMap.MAP[mouseY / w][mouseX / w] = 1;\n sellTower = false;\n }\n }\n }\n\n //Sell QuickTower\n if (loadMap.MAP[mouseY / w][mouseX / w] == 9 && quickTowers.listIterator().hasNext()) {\n QuickTower b = getQuickTower(mouseY / w, mouseX / w);\n g.drawString(\"QuickTower\", 715, 445);\n g.drawString(\"Refund value: \" + quickTowers.listIterator().next().refundValue, 715, 475);\n g.drawString(\"Upgrade Cost: \" + quickTowers.listIterator().next().upgradeCost, 715, 505);\n if (b != null) {\n g.drawString(\"Tower Level: \" + b.towerLevel, 715, 535);\n }\n if (sellTower) {\n if (input.isMousePressed(0)) {\n QuickTower t = getQuickTower(mouseY / 64, mouseX / 64);\n if (t != null) {\n player.addCredits(t.refundValue);\n quickTowers.remove(t);\n }\n loadMap.MAP[mouseY / w][mouseX / w] = 1;\n sellTower = false;\n }\n }\n }\n //Sell Sniper\n if (loadMap.MAP[mouseY / w][mouseX / w] == 11 && sniperTowers.listIterator().hasNext()) {\n SniperTower s = getSniperTower(mouseY / w, mouseX / w);\n g.drawString(\"SniperTower\", 715, 445);\n g.drawString(\"Refund Value: \" + sniperTowers.listIterator().next().refundValue, 715, 475);\n g.drawString(\"Upgrade Cost: \" + sniperTowers.listIterator().next().upgradeCost, 715, 505);\n if (s != null) {\n g.drawString(\"Tower Level: \" + s.towerLevel, 715, 535);\n }\n if (sellTower) {\n if (input.isMousePressed(0)) {\n SniperTower t = getSniperTower(mouseY / 64, mouseX / 64);\n if (t != null) {\n player.addCredits(t.refundValue);\n sniperTowers.remove(t);\n }\n loadMap.MAP[mouseY / w][mouseX / w] = 1;\n sellTower = false;\n }\n }\n }\n\n\n //UPGRADE TOWERS\n if (loadMap.MAP[mouseY / w][mouseX / w] == 14) {\n if (input.isMousePressed(0)) {\n upgradePressed = true;\n }\n }\n //Visible if upgradePressed is pressed\n if (upgradePressed) {\n loadMap.MAP[4][13] = 15;\n } else {\n loadMap.MAP[4][13] = 14;\n }\n\n //Upgrade Basic\n if (loadMap.MAP[mouseY / w][mouseX / w] == 5 && basicTowers.listIterator().hasNext()) {\n if (upgradePressed) {\n if (input.isMousePressed(0)) {\n BasicTower t = getBasicTower(mouseY / w, mouseX / w);\n if (t != null) {\n if (t.towerLevel < t.maxTowerLevel) {\n if (player.getCredits() >= t.upgradeCost) {\n t.towerLevel++;\n t.ap = t.ap + 1;\n t.coolDown = t.coolDown - 50;\n\n player.addCredits(-t.upgradeCost);\n }\n }\n upgradePressed = false;\n }\n }\n }\n }\n\n //Upgrade Bomber\n if (loadMap.MAP[mouseY / w][mouseX / w] == 7 && bomberTowers.listIterator().hasNext()) {\n if (upgradePressed) {\n if (input.isMousePressed(0)) {\n BomberTower t = getBomberTower(mouseY / w, mouseX / w);\n if (t != null) {\n if (t.towerLevel < t.maxTowerLevel) {\n if (player.getCredits() >= t.upgradeCost) {\n t.towerLevel++;\n t.attackPower++;\n //t.Radius = t.setRadius();\n t.coolDown = t.coolDown - 300;\n\n player.addCredits(-t.upgradeCost);\n }\n }\n upgradePressed = false;\n }\n }\n }\n }\n\n //Upgrade Quick\n if (loadMap.MAP[mouseY / w][mouseX / w] == 9 && quickTowers.listIterator().hasNext()) {\n if (upgradePressed) {\n if (input.isMousePressed(0)) {\n QuickTower t = getQuickTower(mouseY / w, mouseX / w);\n if (t != null) {\n if (t.towerLevel < t.maxTowerLevel) {\n if (player.getCredits() >= t.upgradeCost) {\n t.towerLevel++;\n t.attackPower++;\n //t.Radius = t.setRadius();\n t.coolDown = t.coolDown - 20;\n\n player.addCredits(-t.upgradeCost);\n }\n }\n upgradePressed = false;\n }\n }\n }\n }\n\n //Upgrade Sniper\n if (loadMap.MAP[mouseY / w][mouseX / w] == 11 && sniperTowers.listIterator().hasNext()) {\n if (upgradePressed) {\n if (input.isMousePressed(0)) {\n SniperTower t = getSniperTower(mouseY / w, mouseX / w);\n if (t != null) {\n if (t.towerLevel < t.maxTowerLevel) {\n if (player.getCredits() >= t.upgradeCost) {\n t.towerLevel++;\n t.attackPower++;\n //t.Radius = t.setRadius();\n t.coolDown = t.coolDown - 500;\n\n player.addCredits(-t.upgradeCost);\n }\n }\n upgradePressed = false;\n }\n }\n }\n }\n\n g.setFont(pauseFont);\n g.setColor(white);\n g.drawString(\"PRESS 'ESC' FOR PAUSE\", 100,8);\n\n }",
"public void paint(Graphics g) {\n\t\tupdate(g);\n\t}",
"private void render() {\n final int numBuffers = 3;\n BufferStrategy bs = this.getBufferStrategy(); // starts value at null\n if (bs == null) {\n this.createBufferStrategy(numBuffers); // 3: buffer creations\n return;\n }\n Graphics g = bs.getDrawGraphics();\n\n g.setColor(Color.black); // stops flashing background\n g.fillRect(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);\n\n handler.render(g);\n\n if (gameStart == GAME_STATE.Game) {\n hud.render(g);\n } else if (gameStart == GAME_STATE.Menu || gameStart == GAME_STATE.Help || gameStart == GAME_STATE.GameOver || gameStart == GAME_STATE.GameVictory) {\n menu.render(g);\n }\n\n g.dispose();\n bs.show();\n }",
"void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}",
"public void draw(Graphics g) {\n for (Ghost ghost: ghostList) {\n ghost.draw(g);\n }\n }",
"@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2d = (Graphics2D) theGraphics; \n g2d.setPaint(PowerPaintMenus.getDrawColor());\n g2d.setStroke(new BasicStroke(PowerPaintMenus.getThickness()));\n if (!myFinishedDrawings.isEmpty()) {\n for (final Drawings drawing : myFinishedDrawings) {\n g2d.setColor(drawing.getColor());\n g2d.setStroke(drawing.getStroke());\n if (PowerPaintMenus.isFilled()) {\n g2d.fill(drawing.getShape());\n } else {\n g2d.draw(drawing.getShape()); \n }\n }\n }\n if (myHasShape) {\n g2d.draw(myCurrentShape);\n }\n }",
"public void render(Graphics g) {\r\n\t\tif(Game.gameState == Game.STATE.GameOver) {\r\n\t\t\tif(gameOverCount != 5) {\r\n\t\t\t\tg.drawImage(gameOverMenu.get(gameOverCount), 0, 0, null);\r\n\t\t\t\tgameOverSpeed++;\r\n\t\t\t\tif(gameOverSpeed % 5 == 0) {\r\n\t\t\t\t\tgameOverCount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tg.drawImage(gameOverMenu.get(4), 0, 0, null);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(Game.gameState == Game.STATE.Battle) {\r\n\t\t\tif(Battle.itemSelected) {\r\n\t\t\t\tif(itemSelect == false) {\r\n\t\t\t\t\t//System.out.println(\"FFF\");\r\n\t\t\t\t\tif(backToRegFromItem == true) {\r\n\t\t\t\t\t\tg.drawImage(itemMenu.get(1), 0, 0, null);\r\n\t\t\t\t\t\tGame.itemPouch.render(g);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tg.drawImage(itemMenu.get(0), 0, 0, null);\r\n\t\t\t\t\t\tGame.itemPouch.render(g);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(overItem == true) {\r\n\t\t\t\t\t\tFont fo = new Font(\"Cooper Black\", 1, 40);\r\n\t\t\t\t\t\tg.setColor(new Color(106, 215, 48));\r\n\t\t\t\t\t\tg.setFont(fo);\r\n\t\t\t\t\t\tg.drawImage(itemCover, Game.camX+482, Game.camY + overItemY, null);\r\n\t\t\t\t\t\tg.drawImage(text, Game.camX + 120, Game.camY + 625, null);\r\n\t\t\t\t\t\tif(curItemOver != null) {\r\n\t\t\t\t\t\t\tcurItemOverLst = curItemOver.itemDescript();\r\n\t\t\t\t\t\t\tint ySpot = 0;\r\n\t\t\t\t\t\t\tfor(int i = 0; i < curItemOverLst.size(); i++) {\r\n\t\t\t\t\t\t\t\tg.drawString(curItemOverLst.get(i), Game.camX + 390, Game.camY + 750 + ySpot);\r\n\t\t\t\t\t\t\t\tySpot += 25;\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\telse {\r\n\t\t\t\t\t//System.out.println(\"we mad eit\");\r\n\t\t\t\t\tg.drawImage(itemMenu.get(0), 0, 0, null);\r\n\t\t\t\t\tGame.itemPouch.render(g);\r\n\t\t\t\t\tFont fo = new Font(\"Cooper Black\", 1, 40);\r\n\t\t\t\t\tg.setColor(new Color(106, 215, 48));\r\n\t\t\t\t\tg.setFont(fo);\r\n\t\t\t\t\tg.drawImage(itemCover, Game.camX+482, Game.camY + overItemY, null);\r\n\t\t\t\t\tg.drawImage(text, Game.camX + 120, Game.camY + 625, null);\r\n\t\t\t\t\tif(curItemOver != null) {\r\n\t\t\t\t\t\tcurItemOverLst = curItemOver.itemDescript();\r\n\t\t\t\t\t\tint ySpot = 0;\r\n\t\t\t\t\t\tfor(int i = 0; i < curItemOverLst.size(); i++) {\r\n\t\t\t\t\t\t\tg.drawString(curItemOverLst.get(i), Game.camX + 390, Game.camY + 750 + ySpot);\r\n\t\t\t\t\t\t\tySpot += 25;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(overYes) g.drawImage(useItem.get(1), 0, 0, null);\r\n\t\t\t\t\telse if(overNo) g.drawImage(useItem.get(2), 0, 0, null);\r\n\t\t\t\t\telse g.drawImage(useItem.get(0), 0, 0, null);\r\n\t\t\t\t\t//System.out.println(\"wtf!\");\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\telse if(Battle.allySelected) {\r\n\t\t\t\tif(goBackFromAlly == true) {\r\n\t\t\t\t\tg.drawImage(allyMenu.get(1), Game.camX, Game.camY, null);\r\n\t\t\t\t\tGame.allies.render(g);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tg.drawImage(allyMenu.get(0), Game.camX, Game.camY, null);\r\n\t\t\t\t\tGame.allies.render(g);\r\n\t\t\t\t}\r\n\t\t\t\tif(overAnAlly) {\r\n\t\t\t\t\tg.drawImage(allyCover, Game.camX + xValForDrawingAlly, Game.camY + 300, null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(Game.gameState == Game.STATE.PostBattle) {\r\n\t\t\tif(ExperienceBar.levelUp != true && Battle.expToBeAdded == 0) {\r\n\t\t\t\tif(overNext) {\r\n\t\t\t\t\tg.drawImage(expMenuBattle.get(1), Game.camX, Game.camY, null);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tg.drawImage(expMenuBattle.get(0), Game.camX, Game.camY, null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(Battle.expToBeAdded == 0){\r\n\t\t\t\tg.drawImage(expMenuBattle.get(2), Game.camX, Game.camY, null);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tg.drawImage(expMenuBattle.get(2), Game.camX, Game.camY, null);\r\n\t\t\t}\r\n\t\t\tif(!ExperienceBar.levelUp) {\r\n\t\t\t\tFont fo = new Font(\"Cooper Black\", 1, 40);\r\n\t\t\t\tg.setColor(new Color(106, 215, 48));\r\n\t\t\t\tg.setFont(fo);\r\n\t\t\t\tGame.expBarTracker.render(g);\r\n\t\t\t\t\r\n\t\t\t\tg.drawImage(healthIcon.get(0), Game.camX + 142, Game.camY + 429, null);\r\n\t\t\t\tg.drawImage(allyIcon.get(0), Game.camX + 142, Game.camY + 499, null);\r\n\t\t\t\tg.drawImage(pummelIcon.get(0), Game.camX + 142, Game.camY + 569, null);\r\n\t\t\t\tg.drawImage(laserIcon.get(0), Game.camX + 142, Game.camY + 639, null);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tg.setFont(new Font(\"Cooper Black\",1,40));\r\n\t\t\t\tg.setColor(new Color(106, 190, 48));\r\n\t\t\t\t\r\n\t\t\t\tg.drawString(\"Upgrade Available!\", Game.camX + 420, Game.camY + 370);\r\n\t\t\t\tg.drawString(\"Select an area to upgrade by selecting an icon:\", Game.camX + 140, Game.camY + 410);\r\n\t\t\t\t\r\n\t\t\t\tFont fo = new Font(\"Cooper Black\", 1, 40);\r\n\t\t\t\tg.setColor(new Color(106, 215, 48));\r\n\t\t\t\tg.setFont(fo);\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\tif(overHealth) {\r\n\t\t\t\t\tg.drawImage(healthIcon.get(1), Game.camX + 142, Game.camY + 429, null);\r\n\t\t\t\t\tg.drawImage(text, Game.camX + 108, Game.camY + 687, null);\r\n\t\t\t\t\tdrawCenteredString(g, \"Health\", new Rectangle(Game.camX+13, Game.camY+780, Game.WIDTH, 50), fo);\r\n\t\t\t\t\tdrawCenteredString(g, \"Current Level: \" + ExperienceBar.healthLevel + \" (\" + HUD.maxHealth + \" Max Health)\", new Rectangle(Game.camX+8, Game.camY+830, Game.WIDTH, 50), fo);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tg.drawImage(healthIcon.get(0), Game.camX + 142, Game.camY + 429, null);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(overAlly) {\r\n\t\t\t\t\tg.drawImage(allyIcon.get(1), Game.camX + 142, Game.camY + 499, null);\r\n\t\t\t\t\tg.drawImage(text, Game.camX + 108, Game.camY + 687, null);\r\n\t\t\t\t\tg.setColor(Color.pink);\r\n\t\t\t\t\t//g.drawString(\"The effectiveness of Povy's allies. Current level: \" + ExperienceBar.allyLevel, Game.camX + 350, Game.camY + 830);\r\n\t\t\t\t\tdrawCenteredString(g, \"Allies\", new Rectangle(Game.camX+8, Game.camY + 780, Game.WIDTH, 50), fo);\r\n\t\t\t\t\tdrawCenteredString(g, \"Current Level: \" + ExperienceBar.allyLevel, new Rectangle(Game.camX+8, Game.camY+830, Game.WIDTH, 50), fo);\r\n\t\t\t\t}\r\n\t\t\t\telse g.drawImage(allyIcon.get(0), Game.camX + 142, Game.camY + 499, null);\r\n\t\t\t\t\r\n\t\t\t\tif(overPummel) {\r\n\t\t\t\t\tg.drawImage(pummelIcon.get(1), Game.camX + 142, Game.camY + 569, null);\r\n\t\t\t\t\tg.drawImage(text, Game.camX + 108, Game.camY + 687, null);\r\n\t\t\t\t\tg.setColor(Color.orange);\r\n\t\t\t\t\t//g.drawString(\"The strength of Povy's pummel attack. Current level: \" + ExperienceBar.pummelLevel, Game.camX + 350, Game.camY + 830);\r\n\t\t\t\t\t//drawCenteredString(g, \"THE STRENGTH OF POVY'S PUMMEL ATTACK. CURRENT LEVEL: \" + ExperienceBar.pummelLevel, new Rectangle(Game.camX+15, Game.camY + 780, Game.WIDTH, 50), fo);\r\n\t\t\t\t\tdrawCenteredString(g, \"Pummel\", new Rectangle(Game.camX+8, Game.camY + 780, Game.WIDTH, 50), fo);\r\n\t\t\t\t\tdrawCenteredString(g, \"Current Level: \" + ExperienceBar.pummelLevel, new Rectangle(Game.camX+8, Game.camY+830, Game.WIDTH, 50), fo);\r\n\t\t\t\t}\r\n\t\t\t\telse g.drawImage(pummelIcon.get(0), Game.camX + 142, Game.camY + 569, null);\r\n\t\t\t\t\r\n\t\t\t\tif(overLaser) {\r\n\t\t\t\t\tg.drawImage(laserIcon.get(1), Game.camX + 142, Game.camY + 639, null);\r\n\t\t\t\t\tg.drawImage(text, Game.camX + 108, Game.camY + 687, null);\r\n\t\t\t\t\tg.setColor(new Color(240, 20, 20));\r\n\t\t\t\t\t//g.drawString(\"The power of Povy's Laser Blaster. Current level: \" + ExperienceBar.laserLevel, Game.camX + 350, Game.camY + 830);\r\n\t\t\t\t\t//drawCenteredString(g, \"THE POWER OF POVY'S LASER BLASTER. CURRENT LEVEL: \" + ExperienceBar.laserLevel, new Rectangle(Game.camX, Game.camY + 780, Game.WIDTH, 50), fo);\r\n\t\t\t\t\tdrawCenteredString(g, \"Laser Blaster\", new Rectangle(Game.camX+8, Game.camY + 780, Game.WIDTH, 50), fo);\r\n\t\t\t\t\tdrawCenteredString(g, \"Current Level: \" + ExperienceBar.laserLevel, new Rectangle(Game.camX+8, Game.camY+830, Game.WIDTH, 50), fo);\r\n\t\t\t\t}\r\n\t\t\t\telse g.drawImage(laserIcon.get(0), Game.camX + 142, Game.camY + 639, null);\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\treturn;\r\n\t\t}\r\n\t\telse if(Game.gameState == Game.STATE.Paused) {\r\n\t\t\tif(pauseState == PauseState.Regular) {\r\n\t\t\t\tif(none == true) {\r\n\t\t\t\t\tg.drawImage(pauseMenu.get(0), Game.camX, Game.camY, null);\r\n\t\t\t\t}\r\n\t\t\t\telse if(option1 == true) {\r\n\t\t\t\t\tg.drawImage(pauseMenu.get(1), Game.camX, Game.camY, null);\r\n\t\t\t\t}\r\n\t\t\t\telse if(option2 == true) {\r\n\t\t\t\t\tg.drawImage(pauseMenu.get(2), Game.camX, Game.camY, null);\r\n\t\t\t\t}\r\n\t\t\t\telse if(option3 == true){\r\n\t\t\t\t\tg.drawImage(pauseMenu.get(3), Game.camX, Game.camY, null);\r\n\t\t\t\t}\r\n\t\t\t\telse if(option4 == true){\r\n\t\t\t\t\tg.drawImage(pauseMenu.get(5), Game.camX, Game.camY, null);\r\n\t\t\t\t}\r\n\t\t\t\telse if(option5 == true){\r\n\t\t\t\t\tg.drawImage(pauseMenu.get(4), Game.camX, Game.camY, null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(pauseState == PauseState.ItemScreen) {\r\n\t\t\t\tif(backToRegFromItem == true) {\r\n\t\t\t\t\tg.drawImage(itemMenu.get(1), Game.camX, Game.camY, null);\r\n\t\t\t\t\tGame.itemPouch.render(g);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tg.drawImage(itemMenu.get(0), Game.camX, Game.camY, null);\r\n\t\t\t\t\tGame.itemPouch.render(g);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(overItem == true) {\r\n\t\t\t\t\tFont fo = new Font(\"verdana\", 1, 22);\r\n\t\t\t\t\tg.setColor(new Color(106, 215, 48));\r\n\t\t\t\t\tg.setFont(fo);\r\n\t\t\t\t\tg.drawImage(itemCover, Game.camX+164, Game.camY + overItemY, null);\r\n\t\t\t\t\tg.drawImage(itemText, Game.camX + 480, Game.camY + 346, null); //Game.camY + overItemY - 100\r\n\t\t\t\t\tif(curItemOver != null) {\r\n\t\t\t\t\t\tcurItemOverLst = curItemOver.itemDescript();\r\n\t\t\t\t\t\tint ySpot = 0;\r\n\t\t\t\t\t\tif(curItemOverLst.size() == 1) {\r\n\t\t\t\t\t\t\tdrawCenteredString(g, curItemOverLst.get(0), new Rectangle(Game.camX+480, Game.camY +406, 790, 150), fo);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tfor(int i = 0; i < curItemOverLst.size(); i++) {\r\n\t\t\t\t\t\t\t\tdrawCenteredString(g, curItemOverLst.get(i), new Rectangle(Game.camX+480, Game.camY + 370 + ySpot, 790, 150), fo);\r\n\t\t\t\t\t\t\t\t//g.drawString(curItemOverLst.get(i), Game.camX + 390, Game.camY + 750 + ySpot);\r\n\t\t\t\t\t\t\t\tySpot += 35;\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(pauseState == PauseState.ItemUse) {\r\n\t\t\t\tg.drawImage(itemMenu.get(0), Game.camX, Game.camY, null);\r\n\t\t\t\tGame.itemPouch.render(g);\t\t\r\n\t\t\t\tif(curItemOver != null) {\r\n\t\t\t\t\tFont fo = new Font(\"verdana\", 1, 22);\r\n\t\t\t\t\tg.setColor(new Color(106, 215, 48));\r\n\t\t\t\t\tg.setFont(fo);\r\n\t\t\t\t\tg.drawImage(itemCover, Game.camX+164, Game.camY + overItemY, null);\r\n\t\t\t\t\tg.drawImage(itemText, Game.camX + 480, Game.camY + 346, null); //Game.camY + overItemY - 100\r\n\t\t\t\t\tif(curItemOver != null) {\r\n\t\t\t\t\t\tcurItemOverLst = curItemOver.itemDescript();\r\n\t\t\t\t\t\tint ySpot = 0;\r\n\t\t\t\t\t\tif(curItemOverLst.size() == 1) {\r\n\t\t\t\t\t\t\tdrawCenteredString(g, curItemOverLst.get(0), new Rectangle(Game.camX+480, Game.camY +406, 790, 150), fo);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tfor(int i = 0; i < curItemOverLst.size(); i++) {\r\n\t\t\t\t\t\t\t\tdrawCenteredString(g, curItemOverLst.get(i), new Rectangle(Game.camX+480, Game.camY + 370 + ySpot, 790, 150), fo);\r\n\t\t\t\t\t\t\t\t//g.drawString(curItemOverLst.get(i), Game.camX + 390, Game.camY + 750 + ySpot);\r\n\t\t\t\t\t\t\t\tySpot += 35;\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\tif(overYes) g.drawImage(useItem.get(1), Game.camX, Game.camY, null);\r\n\t\t\t\telse if(overNo) g.drawImage(useItem.get(2), Game.camX, Game.camY, null);\r\n\t\t\t\telse g.drawImage(useItem.get(0), Game.camX, Game.camY, null);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(pauseState == PauseState.ProgressScreen) {\r\n\t\t\t\tFont fo = new Font(\"Cooper Black\", 1, 40);\r\n\t\t\t\tg.setColor(new Color(106, 215, 48));\r\n\t\t\t\tg.setFont(fo);\r\n\t\t\t\tif(goBackFromProg) g.drawImage(expMenuPause.get(1), Game.camX, Game.camY, null);\r\n\t\t\t\telse g.drawImage(expMenuPause.get(0), Game.camX, Game.camY, null);\r\n\t\t\t\tGame.expBarTracker.render(g);\r\n\t\t\t\tif(overHealth) {\r\n\t\t\t\t\tg.drawImage(healthIcon.get(1), Game.camX + 142, Game.camY + 429, null);\r\n\t\t\t\t\tg.drawImage(text, Game.camX + 108, Game.camY + 687, null);\r\n\t\t\t\t\tdrawCenteredString(g, \"Health\", new Rectangle(Game.camX+13, Game.camY+780, Game.WIDTH, 50), fo);\r\n\t\t\t\t\tdrawCenteredString(g, \"Current Level: \" + ExperienceBar.healthLevel + \" (\" + HUD.maxHealth + \" Max Health)\", new Rectangle(Game.camX+8, Game.camY+830, Game.WIDTH, 50), fo);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tg.drawImage(healthIcon.get(0), Game.camX + 142, Game.camY + 429, null);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(overAlly) {\r\n\t\t\t\t\tg.drawImage(allyIcon.get(1), Game.camX + 142, Game.camY + 499, null);\r\n\t\t\t\t\tg.drawImage(text, Game.camX + 108, Game.camY + 687, null);\r\n\t\t\t\t\tg.setColor(Color.pink);\r\n\t\t\t\t\t//g.drawString(\"The effectiveness of Povy's allies. Current level: \" + ExperienceBar.allyLevel, Game.camX + 350, Game.camY + 830);\r\n\t\t\t\t\tdrawCenteredString(g, \"Allies\", new Rectangle(Game.camX+8, Game.camY + 780, Game.WIDTH, 50), fo);\r\n\t\t\t\t\tdrawCenteredString(g, \"Current Level: \" + ExperienceBar.allyLevel, new Rectangle(Game.camX+8, Game.camY+830, Game.WIDTH, 50), fo);\r\n\t\t\t\t}\r\n\t\t\t\telse g.drawImage(allyIcon.get(0), Game.camX + 142, Game.camY + 499, null);\r\n\t\t\t\t\r\n\t\t\t\tif(overPummel) {\r\n\t\t\t\t\tg.drawImage(pummelIcon.get(1), Game.camX + 142, Game.camY + 569, null);\r\n\t\t\t\t\tg.drawImage(text, Game.camX + 108, Game.camY + 687, null);\r\n\t\t\t\t\tg.setColor(Color.orange);\r\n\t\t\t\t\t//g.drawString(\"The strength of Povy's pummel attack. Current level: \" + ExperienceBar.pummelLevel, Game.camX + 350, Game.camY + 830);\r\n\t\t\t\t\t//drawCenteredString(g, \"THE STRENGTH OF POVY'S PUMMEL ATTACK. CURRENT LEVEL: \" + ExperienceBar.pummelLevel, new Rectangle(Game.camX+15, Game.camY + 780, Game.WIDTH, 50), fo);\r\n\t\t\t\t\tdrawCenteredString(g, \"Pummel\", new Rectangle(Game.camX+8, Game.camY + 780, Game.WIDTH, 50), fo);\r\n\t\t\t\t\tdrawCenteredString(g, \"Current Level: \" + ExperienceBar.pummelLevel, new Rectangle(Game.camX+8, Game.camY+830, Game.WIDTH, 50), fo);\r\n\t\t\t\t}\r\n\t\t\t\telse g.drawImage(pummelIcon.get(0), Game.camX + 142, Game.camY + 569, null);\r\n\t\t\t\t\r\n\t\t\t\tif(overLaser) {\r\n\t\t\t\t\tg.drawImage(laserIcon.get(1), Game.camX + 142, Game.camY + 639, null);\r\n\t\t\t\t\tg.drawImage(text, Game.camX + 108, Game.camY + 687, null);\r\n\t\t\t\t\tg.setColor(new Color(240, 20, 20));\r\n\t\t\t\t\t//g.drawString(\"The power of Povy's Laser Blaster. Current level: \" + ExperienceBar.laserLevel, Game.camX + 350, Game.camY + 830);\r\n\t\t\t\t\t//drawCenteredString(g, \"THE POWER OF POVY'S LASER BLASTER. CURRENT LEVEL: \" + ExperienceBar.laserLevel, new Rectangle(Game.camX, Game.camY + 780, Game.WIDTH, 50), fo);\r\n\t\t\t\t\tdrawCenteredString(g, \"Laser Blaster\", new Rectangle(Game.camX+8, Game.camY + 780, Game.WIDTH, 50), fo);\r\n\t\t\t\t\tdrawCenteredString(g, \"Current Level: \" + ExperienceBar.laserLevel, new Rectangle(Game.camX+8, Game.camY+830, Game.WIDTH, 50), fo);\r\n\t\t\t\t}\r\n\t\t\t\telse g.drawImage(laserIcon.get(0), Game.camX + 142, Game.camY + 639, null);\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\t\t\tif(pauseState == PauseState.AllyScreen) {\r\n\t\t\t\tif(goBackFromAlly == true) {\r\n\t\t\t\t\tg.drawImage(allyMenu.get(1), Game.camX, Game.camY, null);\r\n\t\t\t\t\tGame.allies.render(g);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tg.drawImage(allyMenu.get(0), Game.camX, Game.camY, null);\r\n\t\t\t\t\tGame.allies.render(g);\r\n\t\t\t\t}\r\n\t\t\t\tif(overAnAlly) {\r\n\t\t\t\t\tg.drawImage(allyCover, Game.camX + xValForDrawingAlly, Game.camY + 300, null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(pauseState == PauseState.AttireScreen) {\r\n\t\t\t\tif(goBackFromAttire == true) {\r\n\t\t\t\t\tg.drawImage(attireMenu.get(1), Game.camX, Game.camY, null);\r\n\t\t\t\t\tGame.costumePouch.render(g);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tg.drawImage(attireMenu.get(0), Game.camX, Game.camY, null);\r\n\t\t\t\t\tGame.costumePouch.render(g);\r\n\t\t\t\t}\r\n\t\t\t\tif(overAnOutfit) {\r\n\t\t\t\t\tg.drawImage(allyCover, Game.camX + xValForDrawingAttire, Game.camY + 300, null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void render(FeatureCollection fc, Envelope map, Style s) {\n if (graphics == null) {\n LOGGER.info(\"renderer passed null graphics\");\n \n return;\n }\n \n long startTime = 0;\n \n if (LOGGER.isLoggable(Level.FINE)) {\n startTime = System.currentTimeMillis();\n }\n \n mapExtent = map;\n \n //set up the affine transform and calculate scale values\n AffineTransform at = setUpTransform(mapExtent, screenSize);\n \n /* If we are rendering to a component which has already set up some form\n * of transformation then we can concatenate our transformation to it.\n * An example of this is the ZoomPane component of the swinggui module.*/\n if (concatTransforms) {\n graphics.getTransform().concatenate(at);\n } else {\n graphics.setTransform(at);\n }\n \n scaleDenominator = 1 / graphics.getTransform().getScaleX();\n \n //extract the feature type stylers from the style object and process them\n FeatureTypeStyle[] featureStylers = s.getFeatureTypeStyles();\n \n processStylers(fc, featureStylers);\n \n if (LOGGER.isLoggable(Level.FINE)) {\n long endTime = System.currentTimeMillis();\n double elapsed = (endTime - startTime) / 1000.0;\n LOGGER.fine(\"Rendered \" + fc.size() + \" features in \" + elapsed + \" sec.\");\n }\n }",
"public void repaint(Graphics g) {\n\t\t// sky\n\t\tg.setColor(Color.cyan);\n\t\tg.fillRect(0, 0, WIDTH, HEIGHT);\n\t\t\n\t\t// dirt\n\t\tg.setColor(Color.ORANGE);\n\t\tg.fillRect(0, HEIGHT - 120, WIDTH, 120);\n\t\t\n\t\t// grass\n\t\tg.setColor(Color.green);\n\t\tg.fillRect(0, HEIGHT - 120, WIDTH, 20);\n\t\t\n\t\t// bird\n\t\tg.setColor(Color.red);\n\t\tg.fillRect(bird.x, bird.y, bird.width, bird.height);\n\t\t\n\t\t// paints the columns\n\t\tfor (Rectangle column: columns) {\n\t\t\tpaintColumn(g, column);\n\t\t}\n\t\t\n\t\t// new font\n\t\tg.setColor(Color.white);\n\t\tg.setFont(new Font(\"Arial\", 1, 100));\n\t\t\n\t\t// text that appears at opening of game\n\t\tif (!started) {\n\t\t\tg.drawString(\"Click to start\", 215, HEIGHT / 2 - 15);\n\t\t}\n\t\t// appears if player loses\n\t\tif (gameOver) {\n\t\t\tg.drawString(\"Game Over\", 225, HEIGHT / 2 - 15);\n\t\t}\n\t\t// appears while player is playing\n\t\tif (!gameOver & started) {\n\t\t\tg.drawString(\"\"+score, WIDTH / 2 - 25, 100);\n\t\t}\n\t}",
"public void paintComponent(Graphics g) {\n g.drawImage(BACKGROUND, 0, 0, frame.getWidth(), frame.getHeight(), null);\n drawBird(g, bird.getImage(), 30, bird.getYLoc());\n\n for (PipePair pipe : pipes) {\n int x = pipe.getXLoc();\n\n int bottomY = pipe.getBottomY();\n int topHeight = pipe.getTopY();\n\n drawPipe(g, pipe.getTopPipe(), x, 0, topHeight);\n drawPipe(g, pipe.getBottomPipe(), x, bottomY, 320);\n }\n\n if (game.hasEnded()) {\n g.setFont(new Font(\"ArcadeClassic\", Font.PLAIN, 45));\n g.setColor(Color.WHITE);\n g.drawString(\"You Lost!\", 50, 170);\n g.drawString(\"Score: \" + game.getScore(), 45, 250);\n g.setFont(new Font(\"ArcadeClassic\", Font.PLAIN, 35));\n g.drawString(\"Highscore: \" + game.getHighScore(), 30, 310);\n } else {\n g.setFont(new Font(\"ArcadeClassic\", Font.PLAIN, 20));\n g.setColor(Color.WHITE);\n g.drawString(\"Score: \" + game.getScore(), 80, 400);\n g.drawString(\"Highscore: \" + game.getHighScore(), 80, 450);\n }\n hasRendered = true;\n }",
"@Override\r\n\tpublic void myPaint(Graphics g) {\n\t\tfor (int i = 0; i < karo.length; i++) {\r\n\t\t\tkaro[i].zeichnen(g);\r\n\t\t}\r\n\t}",
"public void food ()\r\n {\r\n\t//local colour variable for the food container\r\n\tColor container = new Color (191, 175, 178); //black shadows\r\n\t//local variable for the label\r\n\tColor label = new Color (196, 30, 58); //cardinal\r\n\t//local variable for the fish on the container\r\n\tColor fish = new Color (30, 133, 255); //dodger blue\r\n\t//local colour variable for the fish food\r\n\tColor fishFood = new Color (131, 105, 83); //pastel brown\r\n\r\n\t//loop used to animate the food container\r\n\tfor (int x = 0 ; x < 400 ; x++)\r\n\t{\r\n\t //array of local variable of x coordinates to the fish upper tail\r\n\t int upX[] = {832 - x, 832 - x, 845 - x};\r\n\t //array of local variable of y coordinates to the fish upper tail\r\n\t int upY[] = {88, 100, 85};\r\n\t //array of local variable of x coordinates to the fish lower tail\r\n\t int bottomX[] = {832 - x, 832 - x, 845 - x};\r\n\t //array of local variable of y coordinates to the fish lower tail\r\n\t int bottomY[] = {90, 102, 105};\r\n\r\n\t c.setColor (container);\r\n\t //container\r\n\t c.fillRect (775 - x, 20, 80, 110);\r\n\r\n\t c.setColor (label);\r\n\t //label\r\n\t c.fillRect (775 - x, 45, 80, 20);\r\n\r\n\t c.setColor (Color.black);\r\n\t c.setFont (new Font (\"Calibri\", 1, 15));\r\n\t //letters\r\n\t c.drawString (\"FISH FOOD\", 775 - x, 60);\r\n\r\n\t c.setColor (Color.white);\r\n\t //mouth\r\n\t c.fillArc (794 - x, 90, 10, 9, 220, 280);\r\n\r\n\t c.setColor (fish);\r\n\t //fish body\r\n\t c.fillOval (800 - x, 80, 35, 30);\r\n\t //fish tail\r\n\t c.setColor (fish);\r\n\t c.fillPolygon (upX, upY, 3);\r\n\t c.setColor (fish);\r\n\t c.fillPolygon (bottomX, bottomY, 3);\r\n\r\n\t c.setColor (Color.white);\r\n\t //eye\r\n\t c.fillOval (805 - x, 85, 17, 17);\r\n\r\n\t c.setColor (Color.black);\r\n\t //inner eye\r\n\t c.fillOval (808 - x, 92, 6, 6);\r\n\r\n\t c.setColor (fishFood);\r\n\t //food\r\n\t c.fillOval (788 - x, 92, 5, 5);\r\n\t c.setColor (fishFood);\r\n\t c.fillOval (785 - x, 87, 5, 5);\r\n\t c.setColor (fishFood);\r\n\t c.fillOval (782 - x, 96, 5, 5);\r\n\r\n\t //delay\r\n\t try\r\n\t {\r\n\t\tsleep (7);\r\n\t }\r\n\t catch (Exception e)\r\n\t {\r\n\t }\r\n\r\n\t}\r\n\r\n\t//loop used to animate the fish food container going down\r\n\tfor (int x = 0 ; x < 30 ; x++)\r\n\t{\r\n\t //array of local variable of x coordinates to the fish upper tail\r\n\t int upX[] = {432, 432, 445};\r\n\t //array of local variable of y coordinates to the fish upper tail\r\n\t int upY[] = {88 - x, 100 - x, 85 - x};\r\n\t //array of local variable of x coordinates to the fish lower tail\r\n\t int bottomX[] = {432, 432, 445};\r\n\t //array of local variable of y coordinates to the fish lower tail\r\n\t int bottomY[] = {90 - x, 102 - x, 105 - x};\r\n\r\n\t c.setColor (container);\r\n\t //container\r\n\t c.fillRect (375, 20 - x, 80, 110);\r\n\r\n\t c.setColor (label);\r\n\t //label\r\n\t c.fillRect (375, 45 - x, 80, 20);\r\n\r\n\t c.setColor (Color.black);\r\n\t c.setFont (new Font (\"Calibri\", 1, 15));\r\n\t //letters\r\n\t c.drawString (\"FISH FOOD\", 382, 60 - x);\r\n\r\n\t c.setColor (Color.white);\r\n\t //mouth\r\n\t c.fillArc (394, 90 - x, 10, 9, 220, 280);\r\n\r\n\t c.setColor (fish);\r\n\t //fish body\r\n\t c.fillOval (400, 80 - x, 35, 30);\r\n\t //fish tail\r\n\t c.setColor (fish);\r\n\t c.fillPolygon (upX, upY, 3);\r\n\t c.setColor (fish);\r\n\t c.fillPolygon (bottomX, bottomY, 3);\r\n\r\n\t c.setColor (Color.white);\r\n\t //eye\r\n\t c.fillOval (405, 85 - x, 17, 17);\r\n\r\n\t c.setColor (Color.black);\r\n\t //inner eye\r\n\t c.fillOval (408, 92 - x, 6, 6);\r\n\r\n\t c.setColor (fishFood);\r\n\t //food\r\n\t c.fillOval (388, 92 - x, 5, 5);\r\n\t c.setColor (fishFood);\r\n\t c.fillOval (385, 87 - x, 5, 5);\r\n\t c.setColor (fishFood);\r\n\t c.fillOval (382, 96 - x, 5, 5);\r\n\r\n\t //delay\r\n\t try\r\n\t {\r\n\t\tsleep (7);\r\n\t }\r\n\t catch (Exception e)\r\n\t {\r\n\t }\r\n\r\n\t}\r\n\r\n\t//loop used to animate the fish food going down\r\n\tfor (int x = 0 ; x < 30 ; x++)\r\n\t{\r\n\t //array of local variable of x coordinates to the fish upper tail\r\n\t int upX[] = {432, 432, 445};\r\n\t //array of local variable of y coordinates to the fish upper tail\r\n\t int upY[] = {58 + x, 70 + x, 55 + x};\r\n\t //array of local variable of x coordinates to the fish lower tail\r\n\t int bottomX[] = {432, 432, 445};\r\n\t //array of local variable of y coordinates to the fish lower tail\r\n\t int bottomY[] = {60 + x, 72 + x, 75 + x};\r\n\r\n\t c.setColor (container);\r\n\t //container\r\n\t c.fillRect (375, -10 + x, 80, 110);\r\n\r\n\t c.setColor (label);\r\n\t //label\r\n\t c.fillRect (375, 15 + x, 80, 20);\r\n\r\n\t c.setColor (Color.black);\r\n\t c.setFont (new Font (\"Calibri\", 1, 15));\r\n\t //letters\r\n\t c.drawString (\"FISH FOOD\", 382, 30 + x);\r\n\r\n\t c.setColor (Color.white);\r\n\t //mouth\r\n\t c.fillArc (394, 60 + x, 10, 9, 220, 280);\r\n\r\n\t c.setColor (fish);\r\n\t //fish body\r\n\t c.fillOval (400, 50 + x, 35, 30);\r\n\t //fish tail\r\n\t c.setColor (fish);\r\n\t c.fillPolygon (upX, upY, 3);\r\n\t c.setColor (fish);\r\n\t c.fillPolygon (bottomX, bottomY, 3);\r\n\r\n\t c.setColor (Color.white);\r\n\t //eye\r\n\t c.fillOval (405, 55 + x, 17, 17);\r\n\r\n\t c.setColor (Color.black);\r\n\t //inner eye\r\n\t c.fillOval (408, 62 + x, 6, 6);\r\n\r\n\t c.setColor (fishFood);\r\n\t //food\r\n\t c.fillOval (388, 62 + x, 5, 5);\r\n\t c.setColor (fishFood);\r\n\t c.fillOval (385, 57 + x, 5, 5);\r\n\t c.setColor (fishFood);\r\n\t c.fillOval (382, 66 + x, 5, 5);\r\n\r\n\t //delay\r\n\t try\r\n\t {\r\n\t\tsleep (7);\r\n\t }\r\n\t catch (Exception e)\r\n\t {\r\n\t }\r\n\t}\r\n\r\n\t//loop used to animate the fish food container going out\r\n\tfor (int x = 0 ; x < 400 ; x++)\r\n\t{\r\n\t //array of local variable of x coordinates to the fish upper tail\r\n\t int upX[] = {432 + x, 432 + x, 445 + x};\r\n\t //array of local variable of y coordinates to the fish upper tail\r\n\t int upY[] = {88, 100, 85};\r\n\t //array of local variable of x coordinates to the fish lower tail\r\n\t int bottomX[] = {432 + x, 432 + x, 445 + x};\r\n\t //array of local variable of y coordinates to the fish lower tail\r\n\t int bottomY[] = {90, 102, 105};\r\n\r\n\t c.setColor (container);\r\n\t //container\r\n\t c.fillRect (375 + x, 20, 80, 110);\r\n\r\n\t c.setColor (label);\r\n\t //label\r\n\t c.fillRect (375 + x, 45, 80, 20);\r\n\r\n\t c.setColor (Color.black);\r\n\t c.setFont (new Font (\"Calibri\", 1, 15));\r\n\t //letters\r\n\t c.drawString (\"FISH FOOD\", 382 + x, 60);\r\n\r\n\t c.setColor (Color.white);\r\n\t //mouth\r\n\t c.fillArc (394 + x, 90, 10, 9, 220, 280);\r\n\r\n\t c.setColor (fish);\r\n\t //fish body\r\n\t c.fillOval (400 + x, 80, 35, 30);\r\n\t //fish tail\r\n\t c.setColor (fish);\r\n\t c.fillPolygon (upX, upY, 3);\r\n\t c.setColor (fish);\r\n\t c.fillPolygon (bottomX, bottomY, 3);\r\n\r\n\t c.setColor (Color.white);\r\n\t //eye\r\n\t c.fillOval (405 + x, 85, 17, 17);\r\n\r\n\t c.setColor (Color.black);\r\n\t //inner eye\r\n\t c.fillOval (408 + x, 92, 6, 6);\r\n\r\n\t c.setColor (fishFood);\r\n\t //food\r\n\t c.fillOval (388 + x, 92, 5, 5);\r\n\t c.setColor (fishFood);;\r\n\t c.fillOval (385 + x, 87, 5, 5);\r\n\t c.setColor (fishFood);\r\n\t c.fillOval (382 + x, 96, 5, 5);\r\n\r\n\t //delay\r\n\t try\r\n\t {\r\n\t\tsleep (7);\r\n\t }\r\n\t catch (Exception e)\r\n\t {\r\n\t }\r\n\r\n\t}\r\n }",
"public void paint(Graphics g)\r\n {\r\n \r\n super.paint(g);\r\n g.drawImage(backgroundImage, 0, 0, null); //Draws Background image in background of panel\r\n \r\n if(mode == 0)\r\n {\r\n g.setColor(Color.magenta); \r\n g.setFont(new Font(\"Copperplate Gothic Bold\", Font.BOLD, 50));\r\n g.drawString(\"Yeet Fighter\",37,300); //Draws Title in magenta in font specified\r\n \r\n \r\n g.setColor(Color.gray);\r\n g.setFont(new Font(\"Impact\", Font.ITALIC, 20));\r\n g.drawString(\"Press any key to start\",700,550); //Draws prompt to start specification in gray in font specified\r\n }\r\n else if(mode == 1)\r\n {\r\n\r\n g.setColor(Color.white);\r\n g.fillRect(0,yMin, 1000, 10); //rectangle platform is drawn\r\n Color healthbar1 = new Color(255-(int)((dFs[0].getHealth()/totalH) * 255),(int)((dFs[0].getHealth()/totalH) * 255),0);\r\n g.setColor(healthbar1); \r\n g.fillRect(10,10,(int)((dFs[0].getHealth()/totalH) * 465),10); // health bar is drawn with color in spectrum of red through green based on red fighter health\r\n Color healthbar2 = new Color(255-(int)((dFs[1].getHealth()/totalH) * 255),(int)((dFs[1].getHealth()/totalH) * 255),0);\r\n g.setColor(healthbar2);\r\n g.fillRect(480+(465-(int)((dFs[1].getHealth()/totalH) * 465)),10,(int)((dFs[1].getHealth()/totalH) * 465),10); \r\n // health bar is drawn with color in spectrum of red through green based on red fighter health with x coordinates so that health bar moves away from center\r\n\r\n g.setColor(Color.red);\r\n \r\n \r\n if(dFs[0].getAttacking() == 2)\r\n {\r\n g.setColor(new Color(150, 0, 0)); //the fighter is drawn darker if they are in cooldown\r\n }else\r\n {\r\n g.setColor(new Color(255, 0, 0));\r\n }\r\n\r\n g.fillRect((int)dFs[0].getPos()[0],(int)dFs[0].getPos()[1],dFs[0].getSize(),dFs[0].getSize()); //red fighter is drawn\r\n //sets color of fighter to darker color if attack is in cooldown method else in norml state\r\n\r\n if(dFs[0].getAttacking() == 1)\r\n {\r\n g.setColor(Color.red);\r\n \r\n int[] i = new int[4];\r\n i = attackHitBox(dFs[0]);\r\n\r\n g.fillRect(i[0],i[1],i[2],i[3]); //draws the attack onto the screen\r\n }\r\n\r\n if(dFs[0].getBlocking() != 0)\r\n {\r\n if(dFs[0].getBlocking() == 1)\r\n {\r\n g.setColor(new Color(255, 255, 255)); //draws a white box if blocking\r\n }else\r\n {\r\n g.setColor(new Color(150, 150, 150)); //draws a gray box if in cooldown\r\n }\r\n g.fillRect((int) (dFs[0].getPos()[0] + 10) ,(int) (dFs[0].getPos()[1] + 10), dFs[0].getSize() -20 , dFs[0].getSize() - 20); \r\n //draws square used to indicate blocking on fighter that is blocking and in color based on whether block is in active state\r\n }\r\n\r\n\r\n if(dFs[1].getAttacking() == 2)\r\n {\r\n g.setColor(new Color(0, 150, 150));\r\n }else\r\n {\r\n g.setColor(new Color(0, 255, 255));\r\n }\r\n\r\n g.fillRect((int)dFs[1].getPos()[0],(int)dFs[1].getPos()[1],dFs[1].getSize(),dFs[1].getSize()); //blue fighter is drawn\r\n //sets color of fighter to darker color if attack is in cooldown method else in norml state\r\n\r\n if(dFs[1].getAttacking() == 1)\r\n {\r\n g.setColor(new Color(0, 255, 255));\r\n \r\n int[] i = new int[4];\r\n i = attackHitBox(dFs[1]);\r\n\r\n g.fillRect(i[0],i[1],i[2],i[3]);\r\n }\r\n\r\n if(dFs[1].getBlocking() != 0)\r\n {\r\n if(dFs[1].getBlocking() == 1)\r\n {\r\n g.setColor(new Color(255, 255, 255));\r\n }else\r\n {\r\n g.setColor(new Color(150, 150, 150));\r\n }\r\n g.fillRect((int) (dFs[1].getPos()[0] + 10) ,(int) (dFs[1].getPos()[1] + 10), dFs[1].getSize() -20 , dFs[1].getSize() - 20);\r\n //draws square used to indicate blocking on fighter that is blocking and in color based on whether block is in active state\r\n }\r\n\r\n\r\n\r\n\r\n }else if(mode == 2)\r\n {\r\n \r\n g.setFont(new Font(\"Agency FB\", Font.BOLD, 30)); \r\n g.setColor(Color.white);\r\n g.drawString(\"Developed By Joseph Rother & Akshan Sameullah\",200,570); //draws author label with color white and specified font\r\n \r\n if(dFs[0].getHealth() > 0)\r\n {\r\n g.setFont(new Font(\"Agency FB\", Font.BOLD, 190));\r\n g.setColor(Color.red);\r\n g.drawString(\"Red\",500,200);\r\n g.drawString(\"Wins\",500,400); //Draws Red Wins in specified font and in red if Red wins\r\n \r\n \r\n }else\r\n {\r\n \r\n \r\n g.setColor(Color.cyan);\r\n g.setFont(new Font(\"Agency FB\", Font.BOLD, 190));\r\n g.drawString(\"Blue\",500,200);\r\n g.drawString(\"Wins\",500,400); //Draws Blue Wins in specified font if red health is 0\r\n \r\n \r\n }\r\n Graphics2D g2 = (Graphics2D) g;\r\n AffineTransform at = new AffineTransform();\r\n at.setToRotation(Math.toRadians(270), 440, 380);\r\n g2.setTransform(at);\r\n g2.setColor(Color.magenta);\r\n g2.setFont(new Font(\"Magneto\", Font.BOLD, 170));\r\n g2.drawString(\"Game\",250,80);\r\n g2.drawString(\"Over\",300,250); //draws game over in vertical position in font specified and in pink (same color as title)\r\n }\r\n \r\n g.dispose();\r\n }",
"private void paintFrets(final Graphics g) {\n\n\t\tfinal boolean isFretless = getCurrentInstrument().isFretless();\n\t\tfinal boolean showEmptyStringsTwice = prefs.getBoolean(Preferences.FRETBOARD_VIEW_SHOW_EMPTY_STRINGS_TWICE);\n\t\tfinal boolean showEmptyStringsFrame = prefs.getBoolean(Preferences.FRETBOARD_VIEW_SHOW_EMPTY_STRINGS_FRAME);\n\n\t\tint x = IFigureConstants.FRETBOARD_OFFSET_X;\n\t\tint y0 = getOffsetY();\n\t\tif (getCurrentInstrument().hasDoubledStrings()) {\n\t\t\ty0 -= 2;\n\t\t}\n\t\tint y1 = y0 + IFigureConstants.FRET_HEIGHT * (getCurrentInstrument().getStringCount() - 1);\n\t\tif (getCurrentInstrument().hasDoubledStrings()) {\n\t\t\ty1 += 4;\n\t\t}\n\n\t\tg.setForegroundColor(ColorConstants.black);\n\n\t\t// draw dotted empty string fret\n\t\tif (showEmptyStringsTwice || !isLeftHander) {\n\t\t\tif (showEmptyStringsFrame) {\n\t\t\t\tg.setLineWidth(1);\n\t\t\t\tg.setLineStyle(SWT.LINE_DOT);\n\t\t\t\tg.setLineCap(SWT.CAP_FLAT);\n\t\t\t\tg.drawLine(x, y0, x, y1);\n\t\t\t}\n\t\t\tx += IFigureConstants.FRET_WIDTH;\n\t\t}\n\n\t\t// draw neck / first fret\n\t\tg.setLineWidth(isLeftHander ? 2 : 5);\n\t\tg.setLineStyle(SWT.LINE_SOLID);\n\t\tg.setLineCap(SWT.CAP_ROUND);\n\t\tg.drawLine(x, y0, x, y1);\n\n\t\t// draw frets\n\t\tx += IFigureConstants.FRET_WIDTH;\n\t\tg.setLineDash(new int[] { 1, 4 });\n\t\tg.setLineStyle(isFretless ? SWT.LINE_CUSTOM : SWT.LINE_SOLID);\n\t\tg.setLineWidth(2);\n\n\t\tfor (int i = 0; i < getCurrentInstrument().getFretCount() - 1; i++) {\n\t\t\tg.drawLine(x, y0, x, y1);\n\t\t\tx += IFigureConstants.FRET_WIDTH;\n\t\t}\n\n\t\t// last fret / draw neck\n\t\tg.setLineWidth(isLeftHander ? 5 : 2);\n\t\tg.setLineStyle(SWT.LINE_SOLID);\n\t\tg.drawLine(x, y0, x, y1);\n\t\tx += IFigureConstants.FRET_WIDTH;\n\n\t\t// draw last dotted empty string fret\n\t\tif (showEmptyStringsFrame && (showEmptyStringsTwice || isLeftHander)) {\n\t\t\tg.setLineWidth(1);\n\t\t\tg.setLineStyle(SWT.LINE_DOT);\n\t\t\tg.setLineCap(SWT.CAP_FLAT);\n\t\t\tg.drawLine(x, y0, x, y1);\n\t\t}\n\t}",
"public void draw(Graphics g) {\r\n\t\t\r\n\t}",
"@Override\n public void paintComponent(Graphics gg){\n \tGraphics2D g = (Graphics2D) gg;\n \tg.setColor(new Color(0,0,0));\n \tg.fillRect(0, 0, width, height);\n \t/// Draw Functions ///\n \t//menus.drawMenus(g);\n \t/// Rest ///\n \tfor(PhysicsObject obj: objects){\n \t\tobj.drawSelf(g);\n \t}\n \tg.setColor(new Color(255,255,255));\n \tg.fillOval(mx-3, my-3, 5, 5);\n }",
"public void drawAll(){\n for (Triangle triangle : triangles) {\n triangle.draw();\n }\n for (Circle circle : circles) {\n circle.draw();\n }\n for(Rectangle rectangle : rectangles){\n rectangle.draw();\n }\n }",
"@Override\n public void render() {\n sortEntities(Entity.getEntities());\n renderBackground();\n renderBattleState();\n if(selectedPc != null){\n MyGL2dRenderer.drawLabel(getSelectedPc().getCollisionBox().left - 4 * GameView.density() + cameraX,\n getSelectedPc().getCollisionBox().bottom - getSelectedPc().getCollisionBox().width() / 5 + cameraY,\n getSelectedPc().getCollisionBox().width() + 8 * GameView.density(),\n getSelectedPc().getCollisionBox().width() * 2 / 5,\n TextureData.selected_character_visual, 255);\n }\n if(!win){\n renderSpells();\n renderGold();\n }\n }"
] | [
"0.63255954",
"0.62934685",
"0.62853146",
"0.6211382",
"0.61916614",
"0.61418957",
"0.6135177",
"0.6107893",
"0.61007047",
"0.6071929",
"0.6067531",
"0.60586137",
"0.60535777",
"0.60404223",
"0.6035877",
"0.6028631",
"0.602528",
"0.60201466",
"0.6017408",
"0.59974957",
"0.59787816",
"0.5963386",
"0.5958271",
"0.5923103",
"0.59199274",
"0.5902029",
"0.5901859",
"0.58836067",
"0.58776796",
"0.58763903",
"0.5870859",
"0.5854521",
"0.5850033",
"0.58471507",
"0.5816042",
"0.5814587",
"0.5788741",
"0.57701457",
"0.57693285",
"0.57678586",
"0.5767801",
"0.576481",
"0.5764017",
"0.5761775",
"0.5760462",
"0.5759446",
"0.5757474",
"0.57412827",
"0.5739578",
"0.5739578",
"0.57341754",
"0.5732318",
"0.5729425",
"0.5727614",
"0.57256943",
"0.57231504",
"0.57229245",
"0.57160527",
"0.57124925",
"0.5703926",
"0.5702347",
"0.5699695",
"0.569404",
"0.5686546",
"0.5672819",
"0.56688625",
"0.5667302",
"0.5666413",
"0.56643736",
"0.5660415",
"0.5659927",
"0.5657609",
"0.56524",
"0.56522673",
"0.56479424",
"0.56438464",
"0.56334645",
"0.56326747",
"0.56309724",
"0.56279135",
"0.56276387",
"0.5622727",
"0.56218594",
"0.56210047",
"0.56204927",
"0.5618325",
"0.56154597",
"0.5608914",
"0.56085896",
"0.56080556",
"0.5607503",
"0.56062305",
"0.56053656",
"0.5603248",
"0.5601732",
"0.55996686",
"0.5597561",
"0.5592373",
"0.55917966",
"0.55912346"
] | 0.782297 | 0 |
Moves all the fish. | public void move() {
for (EnemyFish currEnemyFish : fEnemyFishList) {
int movespeed = currEnemyFish.getMoveSpeed();
if (currEnemyFish.isLefty()) {
currEnemyFish.getSprite().updateX(movespeed);
} else {
currEnemyFish.getSprite().updateX(-movespeed);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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}",
"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 }",
"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}",
"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 }",
"@Override\r\n public void move() {\r\n Grid<Actor> gr = getGrid();\r\n if (gr == null) {\r\n return;\r\n }\r\n Location loc = getLocation();\r\n if (gr.isValid(next)) {\r\n setDirection(getLocation().getDirectionToward(next));\r\n moveTo(next);\r\n } else {\r\n removeSelfFromGrid();\r\n }\r\n Flower flower = new Flower(getColor());\r\n flower.putSelfInGrid(gr, loc);\r\n }",
"public void moveAllItems() {\n for (BaseObject object : getAllItems()) {\n object.move();\n }\n }",
"public void moveAll()\n\t{\n\t\tmoveOutput = \"\";\n\t\tfor (int i = 0; i < 20; i++)\n\t\t{\n\t\t\tif (river[i] != null)\n\t\t\t{\n\t\t\t\triver[i].move(i);\n\t\t\t}\n\t\t}\n\t}",
"public void move(Fish fish, Pond pond, double x, double y)\n\t{\n double[] location = pond.findNearestPlant(x, y);\n fish.swimTowards(location[0], location[1]);\n\t}",
"public void act()\n {\n // Make sure fish is alive and well in the environment -- fish\n // that have been removed from the environment shouldn't act.\n if ( isInEnv() ) \n move();\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 moveAllDrones() {\n for (Pieces d : drones) {\n d.tryToMove(this);\n }\n }",
"public void move() {\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n\n lista[i].move();\n }\n }",
"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 act(){\n food = theWorld.getCloseFood(this);\n queenAnt = theWorld.getCloseQueen(this);\n if(getF){\n if(start){\n if(getLocation().isSameLocation(food.getLocation())){\n start = false;\n hunger += 50;\n hasFood = false;\n //eat the food\n }else{\n if(getLocation().getY() > food.getLocation().getY() && getLocation().getX() == food.getLocation().getX()){\n System.out.println(\"moving up\");\n setDirection(Location.NORTH);\n //go up\n move(new Location(this.getLocation().getX(), this.getLocation().getY() - 1));\n }else if(getLocation().getX() > food.getLocation().getX() && getLocation().getY() > food.getLocation().getY()){\n System.out.println(\"moving up left\");\n setDirection(Location.NORTH_WEST);\n //go up left\n move(new Location(this.getLocation().getX() - 1, this.getLocation().getY() - 1));\n }else if(getLocation().getX() > food.getLocation().getX() && getLocation().getY() == food.getLocation().getY()){\n System.out.println(\"moving left\");\n setDirection(Location.WEST);\n //go left\n move(new Location(this.getLocation().getX() - 1, this.getLocation().getY()));\n }else if(getLocation().getX() > food.getLocation().getX() && getLocation().getY() < food.getLocation().getY()){\n System.out.println(\"moving down left\");\n setDirection(Location.SOUTH_WEST);\n //go down left\n move(new Location(this.getLocation().getX() - 1, this.getLocation().getY() + 1));\n }else if(getLocation().getY() < food.getLocation().getY() && getLocation().getX() == food.getLocation().getX()){\n System.out.println(\"moving down\");\n setDirection(Location.SOUTH);\n //go down\n move(new Location(this.getLocation().getX(),this.getLocation().getY()+1));\n }else if(getLocation().getX() < food.getLocation().getX() && getLocation().getY() < food.getLocation().getY()){\n System.out.println(\"moving down right\");\n setDirection(Location.SOUTH_EAST);\n //go down right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()+1));\n }else if(getLocation().getX() < food.getLocation().getX() && getLocation().getY() == food.getLocation().getY()){\n System.out.println(\"moving right\");\n setDirection(Location.EAST);\n //go right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()));\n }else{\n System.out.println(\"moving up right\");\n setDirection(Location.NORTH_EAST);\n //go up right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()-1));\n }\n }\n }else{\n //get the food\n start = false;\n getF = false;\n food.giveFood(this);\n }\n }else if(getQ){\n if(start){\n if(getLocation().isSameLocation(food.getLocation())){\n food.giveFood(this);\n start = false;\n //get the food\n }else{\n if(getLocation().getY() > food.getLocation().getY() && getLocation().getX() == food.getLocation().getX()){\n //go up\n move(new Location(this.getLocation().getX(), this.getLocation().getY() - 1));\n }else if(getLocation().getX() > food.getLocation().getX() && getLocation().getY() > food.getLocation().getY()){\n //go up left\n move(new Location(this.getLocation().getX()-1,this.getLocation().getY()-1));\n }else if(getLocation().getX() > food.getLocation().getX() && food.getLocation().getY() == getLocation().getY()){\n //go left\n move(new Location(this.getLocation().getX()-1,this.getLocation().getY()));\n }else if(getLocation().getX() > food.getLocation().getX() && getLocation().getY() < food.getLocation().getY()){\n //go down left\n move(new Location(this.getLocation().getX()-1,this.getLocation().getY()+1));\n }else if(getLocation().getY() < food.getLocation().getY() && getLocation().getX() == food.getLocation().getX()){\n //go down\n move(new Location(this.getLocation().getX(),this.getLocation().getY()+1));\n }else if(getLocation().getX() < food.getLocation().getX() && getLocation().getY() < food.getLocation().getY()){\n //go down right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()+1));\n }else if(getLocation().getX() < food.getLocation().getX() && food.getLocation().getY() == getLocation().getY()){\n //go right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()));\n }else{\n //go up right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()-1));\n }\n }\n }else{\n if(getLocation().isSameLocation(queenAnt.getLocation())){\n giveQueenFood(queenAnt);\n //give the queen the food\n }else{\n if(getLocation().getY() > queenAnt.getLocation().getY() && getLocation().getX() == queenAnt.getLocation().getX()){\n //go up\n move(new Location(this.getLocation().getX(),this.getLocation().getY()-1));\n }else if(getLocation().getX() > queenAnt.getLocation().getX() && getLocation().getY() > queenAnt.getLocation().getY()){\n //go up left\n move(new Location(this.getLocation().getX()-1,this.getLocation().getY()-1));\n }else if(getLocation().getX() > queenAnt.getLocation().getX() && getLocation().getY() == queenAnt.getLocation().getY()){\n //go left\n move(new Location(this.getLocation().getX()-1,this.getLocation().getY()));\n }else if(getLocation().getX() > queenAnt.getLocation().getX() && getLocation().getY() < queenAnt.getLocation().getY()){\n //go down left\n move(new Location(this.getLocation().getX()-1,this.getLocation().getY()+1));\n }else if(getLocation().getY() < queenAnt.getLocation().getY() && getLocation().getX() == queenAnt.getLocation().getX()){\n //go down\n move(new Location(this.getLocation().getX(),this.getLocation().getY()+1));\n }else if(getLocation().getX() < queenAnt.getLocation().getX() && getLocation().getY() < queenAnt.getLocation().getY()){\n //go down right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()+1));\n }else if(getLocation().getX() < queenAnt.getLocation().getX() && getLocation().getY() == queenAnt.getLocation().getY()){\n //go right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()));\n }else{\n //go up right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()-1));\n }\n }\n }\n }else{\n if(hunger > 30){\n getQ = true;\n start = true;\n //assign closest queen location\n }else{\n getF = true;\n start = true;\n //assign closest food location\n }\n }\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 swim() {\n\t\tthis.fly();\n\t}",
"@Override\n\tpublic void move() {\n\t\tSystem.out.println(\"fly\");\n\n\t}",
"public void move() {\r\n\t\tSystem.out.print(\"This Goose moves forward\");\r\n\t}",
"public void moveMissiles(){\n\t\tfor(Missile missile : this.missiles){\n\t\t\tif(missile != null){\n\t\t\t\tmissile.move();\n\t\t\t}\n\t\t}\n\t}",
"public void allMoves(Chessboard c) {\n\t\tif (this.getIcon() != null) {\n\t\t\tthis.getLDMove(c);\n\t\t\tthis.getRDMove(c);\n\t\t\tthis.getFMove(c);\n\t\t}\n\t}",
"public void fireAll() {\n\n\t\tSystem.out.println(\"Round \" + roundNo + \": BEGIN!\");\n\n\t\tfor (Move ready : niceMoves) {\n\t\t\tready.fire();\n\t\t}\n\n\t}",
"public void move() {\n\t\tif(right) {\n\t\t\tgoRight();\n\t\t\tstate++;\n\t\t\tif(state > 5) {\n\t\t\t\tstate = 3;\n\t\t\t}\n\t\t}\n\t\telse if(left) {\n\t\t\tgoLeft();\n\t\t\tstate++;\n\t\t\tif(state > 2) {\n\t\t\t\tstate = 0;\n\t\t\t}\n\t\t}\n\t}",
"public void move() {\r\n\t\tSystem.out.print(\"This Tiger moves forward\");\r\n\t}",
"@Override\n protected void flamemove ()\n {\n \n }",
"private void actionPhase() {\n field.generateRandomFood( 100 );\n List<Blob> k = new ArrayList<>( this );\n Iterator<Blob> kIter;\n Blob currentBlob;\n\n while (!k.isEmpty()) {\n for (kIter = k.iterator(); kIter.hasNext(); ) {\n currentBlob = kIter.next();\n if ( currentBlob.getEnergy() > 0 && !currentBlob.isAtHome() ) {\n currentBlob.move();\n } else {\n kIter.remove();\n }\n }\n }\n }",
"public void moveAllTilesToStack()\n {\n for (int i = 0; i < gridColumns; i++)\n {\n for (int j = 0; j < gridRows; j++)\n {\n ArrayList<MahjongSolitaireTile> cellStack = tileGrid[i][j];\n moveTiles(cellStack, stackTiles);\n }\n } \n }",
"private void eat(List<Cell> fishList, Cell cell)\n\t{\n\t\tCell movedTo = duplicateToRandCell(cell, fishList);\n\t\tkill(cell);\n\t\tresetStarveTime(movedTo);\n\t}",
"private void moveAllLists() {\n\t\tfuelList.moveTo(position.x, position.y);\n\t\twellList.moveTo(position.x, position.y);\n\t\tstationList.moveTo(position.x, position.y);\n\t\tstationTaskList.moveTo(position.x, position.y);\n\t}",
"public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}",
"@Override\r\n\tpublic void fly() {\n\t\tsuper.fly();\r\n\t\tsuper.fly();\r\n\t\tsuper.fly();\r\n\t}",
"public void move() {\r\n\t\tSystem.out.print(\"This animal moves forward\");\r\n\t}",
"public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}",
"public void move(){\n\t\t\n\t}",
"public void move()\n\t{\n\t\tx = x + frogVelocityX;\n\t}",
"public void fly(){\n\t\t\n\t\t//If bird is facing up.\n\t\tif (i == 0){\n\t\t\t\n\t\t\t//Move up one position and change direction (i).\n\t\t\tsuper.p.y = super.p.y - 1;\n\t\t\ti = 1;\n\t\t\t\n\t\t\t//If bird is facing to the left.\n\t\t\t} else if (i == 1){\n\t\t\n\t\t\t//Move to the left one position and change direction (i).\n\t\t\tsuper.p.x = super.p.x - 1;\n\t\t\ti = 2;\n\t\t\t\n\t\t\t//If bird is facing down.\n\t\t\t} else if (i == 2){\n\t\t\n\t\t\t//Move down right one position and change direction (i).\n\t\t\tsuper.p.y = super.p.y + 1;\n\t\t\ti = 3;\n\t\t\t\n\t\t\t//If bird is facing to the right.\n\t\t\t} else if (i == 3){\n\t\t\n\t\t\t//Move to the right one position and change direction (i).\n\t\t\tsuper.p.x = super.p.x + 1;\n\t\t\ti = 0;\n\t\t}\n\t\t\n\t\t//Increase count of flights.\n\t\tsuper.countfly++;\n\t}",
"public void move()\r\n\t{\r\n\t\tfor (int a = 0; a < bullets.size(); a++)\r\n\t\t{\r\n\t\t\tBullet bullet = bullets.get(a);\r\n\t\t\tif (!bullet.move())\r\n\t\t\t{\r\n\t\t\t\tbullets.remove(a);\r\n\t\t\t\ta--;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void move() {\n energy -= 0.03;\n if (energy < 0) {\n energy = 0;\n }\n }",
"private void moveGame() {\r\n\t\tmoveFireball1();\r\n\t\tmoveFireball2();\r\n\t\tmoveMehran();\r\n\t\tmoveLaser();\r\n\t\tmoveBullet();\r\n\t\tcheckPlayerCollisions();\r\n\t\tcheckForBulletCollisions();\r\n\t\tpause(DELAY);\r\n\t\tcount++;\r\n\t}",
"private static void eatPoison(int i) {\r\n\t\tstate = MOVE;\r\n\t\tscore -= 10;\r\n\r\n\t\tfood.remove(i);\r\n\t\tsnake.removeLast();\r\n\t\tsnake.removeLast();\r\n\t}",
"private void shootMove() {\n for (int i = 0; i < fires.size(); i++) {\n //子弹往上移动\n fires.get(i).move();\n //注意这里remove需要放在下面\n if (fires.get(i).y < -1000) {\n fires.remove(fires.get(i));\n }\n }\n\n }",
"public void moveStopped()\n {\n for (GraphElement element : elements) {\n if(element instanceof Moveable) {\n Moveable moveable = (Moveable) element;\n moveable.setPositionToGhost();\n }\n } \n }",
"public void move() {\n int direction;\n int energy = maxEnergy;\n while (energy > 0) {\n energy -= speed;\n direction = (int) (4 * Math.random());\n for (int i = 0; i < speed; i++) {\n if (foodDetection()) {\n ArrayList<Creature> creatures = world.getCreatureList();\n //System.out.println(\"Moving to food, My Location: \" + x + \",\" + y);\n for (Creature c : creatures) {\n if (c.isStealth()) break;\n else if (c.getX() - x == - 1) { x--; break; }\n else if (c.getX() - x == 1) { x++; break; }\n else if (c.getY() - y == -1) { y--; break; }\n else if (c.getY() - y == 1) { y++; break; }\n }\n foodLocated();\n } else {\n if (direction == 0 && paths(\"up\")) { y++; }\n else if (direction == 1 && paths(\"down\")) { y--; }\n else if (direction == 2 && paths(\"left\")) { x--; }\n else if (direction == 3 && paths(\"right\")) { x++; }\n else direction = (int) (4 * Math.random());\n }\n }\n }\n }",
"public void move() {\n\r\n\t}",
"private void cleaningBallot() {\n\t\tturnLeft();\n\t\tmove();\n\t\tgrabStrayBeepers();\n\t\tturnAround();\n\t\tmove();\n\t\tmove();\n\t\tgrabStrayBeepers();\n\t}",
"public void move()\r\n {\r\n if(goRight)\r\n {\r\n setLocation(getX()+10,getY()+3);\r\n if(contFall<8)\r\n contFall++;\r\n else contFall=0;\r\n switch(contFall)\r\n {\r\n case 0:setImage(im1);\r\n break;\r\n case 2:setImage(im2);\r\n break;\r\n case 4:setImage(im3);\r\n break;\r\n case 6:setImage(im4);\r\n break;\r\n }\r\n }else\r\n {\r\n setLocation(getX()-10,getY()+3);\r\n if(contFall<8)\r\n contFall++;\r\n else contFall=0;\r\n switch(contFall)\r\n {\r\n case 0:setImage(im1);\r\n break;\r\n case 2:setImage(im2);\r\n break;\r\n case 4:setImage(im3);\r\n break;\r\n case 6:setImage(im4);\r\n break;\r\n }\r\n }\r\n if(getY()>getWorld().getHeight())\r\n ((CaveWorld)(getWorld())).deleteAxe(this);\r\n }",
"public void tick() {\r\n \t if (hasFalling()){\r\n if (!moveIfNoConflict(falling.moveDown(), falling))\r\n \t stopFallingBlock();\r\n \t }\r\n }",
"public void moveEverythingALittle(){\n //ponieważ wszystko idealnie jest zsynchronizowane to else nie wykona sie gdy current = getDestination\n if(player.getCurrentX()<player.getDestinationX())\n player.currentX += 1;\n else if(player.getCurrentX()>player.getDestinationX())\n player.currentX -= 1;\n\n if( player.getCurrentY()<player.getDestinationY())\n player.currentY += 1;\n else if( player.getCurrentY()>player.getDestinationY())\n player.currentY -= 1;\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n if(item.getCurrentX()<item.getDestinationX())\n item.currentX += 1;\n else if(item.getCurrentX()>item.getDestinationX())\n item.currentX -= 1;\n\n if( item.getCurrentY()<item.getDestinationY())\n item.currentY += 1;\n else if ( item.getCurrentY()>item.getDestinationY())\n item.currentY -= 1;\n }\n }",
"private void moveRemainingMhos() {\n\t\t\n\t\t//Iterate through every mho's X and Y values\n\t\tfor(int i = 0; i < mhoLocations.size()/2; i++) {\n\t\t\t\n\t\t\t//Assign mhoX and mhoY to the X and Y values of the mho that is currently being tested\n\t\t\tint mhoX = mhoLocations.get(i*2);\n\t\t\tint mhoY = mhoLocations.get(i*2+1);\n\t\t\t\n\t\t\t//Check if there is a fence 1 block away from the mho\n\t\t\tif(newMap[mhoX][mhoY+1] instanceof Fence || newMap[mhoX][mhoY-1] instanceof Fence || newMap[mhoX-1][mhoY] instanceof Fence || newMap[mhoX-1][mhoY+1] instanceof Fence || newMap[mhoX-1][mhoY-1] instanceof Fence || newMap[mhoX+1][mhoY] instanceof Fence || newMap[mhoX+1][mhoY+1] instanceof Fence || newMap[mhoX+1][mhoY-1] instanceof Fence) {\n\t\t\t\t\n\t\t\t\t//Assign the new map location as a Mho\n\t\t\t\tnewMap[mhoX][mhoY] = new BlankSpace(mhoX, mhoY, board);\n\t\t\t\t\n\t\t\t\t//Set the mho's move in the moveList\n\t\t\t\tmoveList[mhoX][mhoY] = Legend.SHRINK;\n\t\t\t\t\n\t\t\t\t//remove each X and Y from mhoLocations\n\t\t\t\tmhoLocations.remove(i*2+1);\n\t\t\t\tmhoLocations.remove(i*2);\n\t\t\t\t\n\t\t\t\t//Call moveRemainingMhos again, because the list failed to be checked through completely\n\t\t\t\tmoveRemainingMhos();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}",
"public void move() {\r\n\t\tmoveCount++;\r\n\t}",
"protected void wander() {\n\t\tfor(int i=3;i>0;){\n\t\t\tfindChest();\n\t\t\tint num = ((int) (Math.random()*100)) % 4;\n\t\t\tswitch (num+1){\n\t\t\t\tcase 1 :\n\t\t\t\t\tif(!(character.xOfFighter-1==game.getXofplayer()&&character.yOfFighter==game.getYofplayer())\n\t\t\t\t\t\t\t&&game.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter-1,character.yOfFighter)){\n\t\t\t\t\t\tcharacter.xOfFighter = character.xOfFighter-1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\tif(!(character.xOfFighter==game.getXofplayer()&&character.yOfFighter-1==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter,character.yOfFighter-1)){\n\t\t\t\t\t\tcharacter.yOfFighter = character.yOfFighter-1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\tif(!(character.xOfFighter+1==game.getXofplayer()&&character.yOfFighter==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter+1,character.yOfFighter)){\n\t\t\t\t\t\tcharacter.xOfFighter = character.xOfFighter+1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\tif(!(character.xOfFighter==game.getXofplayer()&&character.yOfFighter+1==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter,character.yOfFighter+1)){\n\t\t\t\t\t\tcharacter.yOfFighter = character.yOfFighter+1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfindChest();\n\t}",
"public void moveDeckWaste() {\n\t}",
"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 flyUpward() {\n /* Implement \"fly upward\" behavior if you want it! */\n }",
"private void putEveryOtherBeeper() {\n\t\twhile (frontIsClear()) {\n\t\t\tif (beepersPresent()) {\n\t\t\t\tmove();\n\t\t\t\tif (frontIsClear()) {\n\t\t\t\t\tmove();\n\t\t\t\t\tputBeeper();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmove();\n\t\t\t\tputBeeper();\n\t\t\t}\n\t\t}\t\n\t}",
"@Override\n\tpublic void move() {\n\t\t\n\t}",
"@Override\n\tpublic void move() {\n\t\tSystem.out.println(\"하늘을 날다\");\n\t}",
"public void move() {\n\t\tdouble xv = 0;\r\n\t\tdouble yv = 0;\r\n\t\t//this method allows the entity to hold both up and down (or left and right) and not move. gives for smooth direction change and movement\r\n\t\tif (moveRight) {\r\n\t\t\txv+=getSpeed();\r\n\t\t\torientation = Orientation.EAST;\r\n\t\t}\r\n\t\tif (moveLeft) {\r\n\t\t\txv-=getSpeed();\r\n\t\t\torientation = Orientation.WEST;\r\n\t\t}\r\n\t\tif (moveUp)\r\n\t\t\tyv-=getSpeed();\r\n\t\tif (moveDown)\r\n\t\t\tyv+=getSpeed();\r\n\t\tif (!doubleEquals(xv,0) || !doubleEquals(yv,0)) {\r\n\t\t\t((Player)this).useMana(0.1);\r\n\t\t\tImageIcon img = new ImageIcon(\"lib/assets/images/fireball.png\");\r\n\t\t\tBufferedImage image = new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.drawImage(img.getImage(), 0, 0, image.getWidth(), image.getHeight(), null);\r\n\t\t\tColor n = loop[ind%loop.length];\r\n\t\t\tind++;\r\n\t\t\timage = ImageProcessor.scaleToColor(image, n);\r\n\t\t\t//PopMessage.addPopMessage(new PopMessage(image,getX(),getY()));\r\n\t\t}\r\n\t\telse\r\n\t\t\t((Player)this).useMana(-0.1);\r\n\t\tmove(xv,yv);\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 }",
"@Override\n\tpublic void move() {\n\n\t}",
"@Override\n\tpublic void moveForward() {\n\t\tSystem.out.println(\"Animal moved foreward\");\n\t}",
"private void fish()\n {\n fishing.set(true);\n final int DELAY_VARIANCE = 5000, BASE_SLEEP = 2000;\n\n Tools.sleep(BASE_SLEEP);\n while (!interrupted)\n {\n /* Logout if either the user set a logout time or we ran out of lures. */\n final LocalTime logTime = timeProperty.get();\n if ((logTime != null && Tools.timePassed(logTime))\n || (lureQuit.get() && lure.isOutOfLures()))\n {\n Tools.typeStr(Lang.EN_LOGOUT);\n Controller.sendMessage(Lang.EN_MSG_LOGOUT_CONFIRM);\n break;\n }\n\n /* If a lure needs to be re-applied, use one. */\n if (lure.shouldApply()) lure.apply();\n\n Tools.typeStr(Lang.EN_CAST_FISHING);\n if (scan())\n Controller.sendMessage(reelIn() ? Lang.EN_MSG_FISH_CAUGHT\n : Lang.EN_ERROR_SPLASH_MISSING);\n else\n Controller.sendMessage(Lang.EN_ERROR_BOBBER_MISSING);\n /* Sleep for at least BASE_SLEEP plus an additional random amount. */\n Tools.sleep(BASE_SLEEP + Tools.fluctuate((long) (DELAY_VARIANCE * Math.random())));\n }\n fishing.set(false);\n }",
"private void moveToWall() {\n\t\t// TODO Auto-generated method stub\n\t\t// if front is clear then keep moving\n\t\twhile (this.frontIsClear()) {\n\t\t\tthis.move();\n\t\t}\n\t}",
"public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}",
"@Override\n\tpublic void move() {\n\t}",
"public void step() {\r\n\t\tcard1 = player1.getCard();\r\n\t\tcard2 = player2.getCard();\r\n\t\twarPile.add(card1);\r\n\t\twarPile.add(card2);\r\n\t\tgameState = \"Player 1: \" + card1 + \"\\n\" + \"Player 2: \" + card2 + \"\\n\";\r\n\t\tif(card1.getRank() == card2.getRank()) {\r\n\t\t\tgameState = \"Cards added to the War Pile\" + \"\\n\";\r\n\t\t}else if(card1.getRank() > card2.getRank()){\r\n\t\t\ttransferCards(player1);\r\n\t\t\tgameState = \"Cards go to Player 1 \\n\";\r\n\t\t}else {\r\n\t\t\ttransferCards(player2);\r\n\t\t\tgameState = \"Cards go to Player 2 \\n\";\r\n\t\t}\r\n\t\tmoves ++;\r\n\t}",
"public void act()\n {\n if (getGrid() == null)\n return;\n if (caughtPokemon.size() <= 0)\n {\n removeSelfFromGrid();\n System.out.println(toString() + \" has blacked out! \" + toString() + \" has appeared at a PokeCenter.\");\n return;\n }\n ArrayList<Location> moveLocs = getMoveLocations();\n Location loc = selectMoveLocation(moveLocs);\n makeMove(loc);\n }",
"private void moveFireball1() {\r\n\t\tif(count == 280 && dragon1 != null) {\r\n\t\t\tfireball1 = new GImage(\"fireball1.png\");\r\n\t\t\tadd(fireball1, dragon1.getX() - fireball1.getWidth(), dragon1.getY() + 10);\r\n\t\t\tcount = 0;\r\n\t\t}\r\n\t\tif(fireball1 != null) {\r\n\t\t\tfireball1.move(-FIREBALL_SPEED, 0);\r\n\t\t\t//checkWeaponCollisions(fireball1);\r\n\t\t\tfireball1Collisions();\r\n\t\t\tmoveOffScreen(fireball1);\r\n\t\t}\r\n\t}",
"public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}",
"public void move(){\n\t\tif (currentFloor == TOTALFLOORS) currentDirection = \"DOWN\"; else currentDirection =\"UP\";\t\t//sets inital direction for the elevator.\n\t\tfor (int x = 1; x <= TOTALFLOORS; x++){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//This loop will move the elevator through each floor. \n\t\t\tif (getTotalPassDestFloor()[currentFloor] >0 || destRequest[currentFloor] == 'Y')this.stop(); \t//Checks for the destined passengers or registered request for the current floor.\n\t\t\tif (currentDirection == \"UP\") currentFloor++; else currentFloor--;\t\t\t\t\t\t\t//Moves the elevator up/down based on the direction\n\t\t}\n\t\tif (currentFloor == 8) currentFloor--;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Adjusts currentfloor value when elevator-\n\t\tif (currentFloor == 0) currentFloor++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//-is at first or top most floor\n\t}",
"@Override\n public void move()\n {\n System.out.println(\"tightrope walking\");\n }",
"public void move() {\n super.move(DIRECTION.getRandom());\n }",
"public void reset() {\r\n\r\n for ( Card card : cards ) {\r\n if ( card.isFaceUp() ) {\r\n card.toggleFace( true );\r\n }\r\n }\r\n Collections.shuffle( cards );\r\n\r\n this.undoStack = new ArrayList<>();\r\n\r\n this.moveCount = 0;\r\n\r\n announce( null );\r\n }",
"public void move() {\n\t\tif ( board.getLevel() == 5 )\n\t\t\tmovementIndex = ( movementIndex + 1 ) % movement.length;\n\t}",
"@Override\r\n\tpublic void move() {\n\r\n\t}",
"private void easyMove(Board board) {\n\t\t\r\n\t}",
"private void gameMove() {\n for (int x = 0; x < list.size() - 2; x++) {\n // check if snake is touch coin\n if (Snake().isTouching(list.get(x))) {\n Snake().collected();\n list.get(x).collected();\n }\n }\n Snake().move();\n }",
"void undo() {\r\n if (_moveCount > 0) {\r\n undoPosition();\r\n }\r\n }",
"public void moveActors() {\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield.length; column++) {\n\t\t\t\tif (battlefield[row][column].getElf() != null) {\n\t\t\t\t\tbattlefield[row][column].getElf().move(battlefield, row,\n\t\t\t\t\t\t\tcolumn);\n\t\t\t\t}\n\t\t\t\tif (battlefield[row][column].getOrc() != null) {\n\t\t\t\t\tbattlefield[row][column].getOrc().move(battlefield, row,\n\t\t\t\t\t\t\tcolumn);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public void resetMove() {\n\t\tthis.moveMade = false;\n\t}",
"public void act() \n {\n move(3);\n turnAtEdge(); \n StrikeSeaHorse();\n }",
"void doMove() {\n\t\t// we saved the moves in a queue to avoid recursing.\n\t\tint[] move;\n\t\twhile(!moveQueue.isEmpty()) {\n\t\t\tmove = moveQueue.remove(); \n\t\t\tif (board[move[0]][move[1]] == 0) {\n\t\t\t\tinsertNumber(move[0], move[1], move[2]);\n\t\t\t}\n\t\t}\n\t\tgoOverLines();\n\t}",
"public void move(int from, int to) {\n // Peek the top element without popping it, to remain in\n // consistent state if push throws an exception\n towers[to].push(towers[from].peek());\n towers[from].pop();\n numMoves++;\n }",
"void moveForward();",
"private void swim(int speed){\r\n moveMuscles();\r\n moveBackFin();\r\n super.move(speed);\r\n\r\n }",
"private void wander(){\n\t\tmonster.moveRandom();\r\n\t\tsaveMove();\r\n\t}",
"public static void move (Species map[][], int plantHealth, int sheepHealth, int wolfHealth) {\n \n // Check map\n for (int y = 0; y < map[0].length; y++) {\n for (int x = 0; x < map.length; x++) {\n \n // Chooses an action to do (anything else does nothing)\n boolean [] actionChoice = action (map, x, y, plantHealth);\n \n // Avoid null pointers\n if (map[y][x] != null) {\n \n // Sheep\n // Check if sheep wants to move\n if ((map[y][x] instanceof Sheep) && (((Sheep)map[y][x]).getMoved() == false)) {\n ((Sheep)map[y][x]).loseHealthPerTurn();\n \n // If sheep run out of health, they die\n if ((map[y][x]).getHealth() < 1) {\n map[y][x] = null; \n \n // If sheep have sufficient health, they move, stay still, eat, or breed\n } else {\n \n // Choose direction using specific preferences (anything else stays still)\n int [] direction = moveDecision(map, x, y, plantHealth);\n \n // Chose to move up\n if (direction[0] == 1) {\n \n // Check in bounds\n if (y > 0) {\n \n // Wants to eat a plant\n if (actionChoice[0]) {\n \n // Depending on plant consumed, the effects vary\n if (map[y-1][x] instanceof EnergizingPlant) {\n ((Sheep)map[y][x]).energized(plantHealth);\n } else if (map[y-1][x] instanceof PoisonousPlant) {\n ((Sheep)map[y][x]).poisoned(plantHealth);\n } else {\n ((Sheep)map[y][x]).healed(plantHealth);\n }\n \n // Update sheep position\n ((Sheep)map[y][x]).setEnergy(((Sheep)map[y][x]).getEnergy()-1);\n ((Sheep)map[y][x]).up();\n ((Sheep)map[y][x]).setMoved(true);\n map[y-1][x] = map[y][x];\n map[y][x] = null;\n \n // Move to empty space\n } else if ((y > 0) && (map[y-1][x] == null)) {\n ((Sheep)map[y][x]).setEnergy(((Sheep)map[y][x]).getEnergy()-1);\n ((Sheep)map[y][x]).up();\n ((Sheep)map[y][x]).setMoved(true);\n map[y-1][x] = map[y][x];\n map[y][x] = null;\n }\n }\n \n // Chose to move down\n } else if (direction[0] == 2) {\n \n //Check in bounds\n if (y < map[0].length - 2) {\n \n // Wants to eat a plant\n if (actionChoice[0]) {\n \n // Depending on plant consumed, the effects vary\n if (map[y+1][x] instanceof EnergizingPlant) {\n ((Sheep)map[y][x]).energized(plantHealth);\n } else if (map[y+1][x] instanceof PoisonousPlant) {\n ((Sheep)map[y][x]).poisoned(plantHealth);\n } else {\n ((Sheep)map[y][x]).healed(plantHealth);\n }\n \n // Update sheep position\n ((Sheep)map[y][x]).setEnergy(((Sheep)map[y][x]).getEnergy()-1);\n ((Sheep)map[y][x]).down();\n ((Sheep)map[y][x]).setMoved(true);\n map[y+1][x] = map[y][x];\n map[y][x] = null;\n \n // Move to empty space\n } else if ((y < (map.length - 2)) && (map[y+1][x] == null)) {\n ((Sheep)map[y][x]).setEnergy(((Sheep)map[y][x]).getEnergy()-1);\n ((Sheep)map[y][x]).down();\n ((Sheep)map[y][x]).setMoved(true);\n map[y+1][x] = map[y][x];\n map[y][x] = null;\n }\n }\n \n // Chose to move left\n } else if (direction[0] == 3) {\n \n // Check in bounds\n if (x > 0) {\n \n // Wants to eat a plant\n if (actionChoice[0]) {\n \n // Depending on plant consumed, the effects vary\n if (map[y][x-1] instanceof EnergizingPlant) {\n ((Sheep)map[y][x]).energized(plantHealth);\n } else if (map[y][x-1] instanceof PoisonousPlant) {\n ((Sheep)map[y][x]).poisoned(plantHealth);\n } else {\n ((Sheep)map[y][x]).healed(plantHealth);\n } \n \n // Update sheep position\n ((Sheep)map[y][x]).setEnergy(((Sheep)map[y][x]).getEnergy()-1);\n ((Sheep)map[y][x]).left();\n ((Sheep)map[y][x]).setMoved(true);\n map[y][x-1] = map[y][x];\n map[y][x] = null;\n \n // Move to empty space\n } else if ((x > 0) && (map[y][x-1] == null)) {\n ((Sheep)map[y][x]).setEnergy(((Sheep)map[y][x]).getEnergy()-1);\n ((Sheep)map[y][x]).left();\n ((Sheep)map[y][x]).setMoved(true);\n map[y][x-1] = map[y][x];\n map[y][x] = null;\n }\n }\n \n // Chose to move right\n } else if (direction[0] == 4) {\n \n // Checks in bounds\n if (x < map.length - 2) {\n \n // Wants to eat a plant\n if (actionChoice[0]) {\n \n // Depending on plant consumed, the effects vary\n if (map[y][x+1] instanceof EnergizingPlant) {\n ((Sheep)map[y][x]).energized(plantHealth);\n } else if (map[y][x+1] instanceof PoisonousPlant) {\n ((Sheep)map[y][x]).poisoned(plantHealth);\n } else {\n ((Sheep)map[y][x]).healed(plantHealth);\n }\n \n // Update sheep position\n ((Sheep)map[y][x]).setEnergy(((Sheep)map[y][x]).getEnergy()-1);\n ((Sheep)map[y][x]).right();\n ((Sheep)map[y][x]).setMoved(true);\n map[y][x+1] = map[y][x];\n map[y][x] = null;\n \n // Move to empty space\n } else if ((x < (map.length - 2)) && (map[y][x+1] == null)) {\n ((Sheep)map[y][x]).setEnergy(((Sheep)map[y][x]).getEnergy()-1);\n ((Sheep)map[y][x]).right();\n ((Sheep)map[y][x]).setMoved(true);\n map[y][x+1] = map[y][x];\n map[y][x] = null;\n }\n \n }\n }\n \n }\n }\n \n // WOLF\n // Check if wolves wants to move \n if ((map[y][x] instanceof Wolf) && (((Wolf)map[y][x]).getMoved() == false)) { \n int run = 0;\n ((Wolf)map[y][x]).loseHealthPerTurn();\n \n // If wolves run out of health, they die\n if (map[y][x].getHealth() < 1) {\n map[y][x] = null;\n \n // If wolves have sufficient health, they move, stay still, eat, breed, or fight\n } else {\n \n // Choose direction using specific preferences (anything else stays still)\n int [] direction = moveDecision (map, x, y, plantHealth);\n \n // Chose to move up\n if (direction[1] == 1) {\n \n // Checks in bounds\n if (y > 0) {\n \n // Wants to eat a sheep\n if ((actionChoice[1]) && (map[y-1][x] instanceof Sheep)) {\n \n // Update healths\n ((Wolf)map[y][x]).healed(((Sheep)map[y-1][x]).getHealth());\n \n // Update wolf position\n ((Wolf)map[y][x]).setEnergy(((Wolf)map[y][x]).getEnergy()-1);\n ((Wolf)map[y][x]).up();\n ((Wolf)map[y][x]).setMoved(true);\n map[y-1][x] = map[y][x];\n map[y][x] = null;\n\n // Wants to fight\n } else if ((actionChoice[2]) && (map[y-1][x] instanceof Wolf)) {\n \n // Weaker wolf loses health; otherwise, nothing happens\n if (((Wolf)map[y][x]).compareTo((Wolf)map[y-1][x]) > 0) {\n ((Wolf)map[y-1][x]).damage(10);\n } else if (((Wolf)map[y][x]).compareTo((Wolf)map[y-1][x]) < 0) {\n ((Wolf)map[y][x]).damage(10);\n }\n \n // Move to empty space\n } else if ((x < (map.length - 2)) && (map[y-1][x] == null)) {\n ((Wolf)map[y][x]).setEnergy(((Wolf)map[y][x]).getEnergy()-1);\n ((Wolf)map[y][x]).right();\n ((Wolf)map[y][x]).setMoved(true);\n map[y-1][x] = map[y][x];\n map[y][x] = null;\n }\n }\n \n // Chose to move down\n } else if (direction[1] == 2) {\n \n // Checks in bounds\n if (y < map[0].length - 2) {\n \n // Wants to eat a sheep\n if ((actionChoice[1]) && (map[y+1][x] instanceof Sheep)) {\n \n // Update healths\n ((Wolf)map[y][x]).healed(((Sheep)map[y+1][x]).getHealth());\n \n // Update wolf position\n ((Wolf)map[y][x]).setEnergy(((Wolf)map[y][x]).getEnergy()-1);\n ((Wolf)map[y][x]).up();\n ((Wolf)map[y][x]).setMoved(true);\n map[y+1][x] = map[y][x];\n map[y][x] = null;\n \n // Wants to fight (does not move)\n } else if ((actionChoice[2]) && (map[y+1][x] instanceof Wolf)) {\n \n // Weaker wolf loses health; otherwise, nothing happens\n if (((Wolf)map[y][x]).compareTo((Wolf)map[y+1][x]) > 0) {\n ((Wolf)map[y+1][x]).damage(10);\n } else if (((Wolf)map[y][x]).compareTo((Wolf)map[y+1][x]) < 0) {\n ((Wolf)map[y][x]).damage(10);\n }\n \n // Move to empty space\n } else if ((x < (map.length - 2)) && (map[y+1][x] == null)) {\n ((Wolf)map[y][x]).setEnergy(((Wolf)map[y][x]).getEnergy()-1);\n ((Wolf)map[y][x]).right();\n ((Wolf)map[y][x]).setMoved(true);\n map[y+1][x] = map[y][x];\n map[y][x] = null;\n }\n }\n \n // Chose to move left\n } else if (direction[1] == 3) {\n \n // Checks in bounds\n if (x > 0) {\n \n // Wants to eat a sheep\n if ((actionChoice[1]) && (map[y][x-1] instanceof Sheep)) {\n \n // Update healths\n ((Wolf)map[y][x]).healed(((Sheep)map[y][x-1]).getHealth());\n \n // Update wolf position\n ((Wolf)map[y][x]).setEnergy(((Wolf)map[y][x]).getEnergy()-1);\n ((Wolf)map[y][x]).up();\n ((Wolf)map[y][x]).setMoved(true);\n map[y][x-1] = map[y][x];\n map[y][x] = null;\n \n // Wants to fight (does not move)\n } else if ((actionChoice[2]) && (map[y][x-1] instanceof Wolf)) {\n \n // Weaker wolf loses health; otherwise, nothing happens\n if (((Wolf)map[y][x]).compareTo((Wolf)map[y][x-1]) > 0) {\n ((Wolf)map[y][x-1]).damage(10);\n } else if (((Wolf)map[y][x]).compareTo((Wolf)map[y][x-1]) < 0) {\n ((Wolf)map[y][x]).damage(10);\n }\n \n // Move to empty space\n } else if ((x < (map.length - 2)) && (map[y][x-1] == null)) {\n ((Wolf)map[y][x]).setEnergy(((Wolf)map[y][x]).getEnergy()-1);\n ((Wolf)map[y][x]).right();\n ((Wolf)map[y][x]).setMoved(true);\n map[y][x-1] = map[y][x];\n map[y][x] = null;\n }\n }\n \n // Chose to move right \n } else if (direction[1] == 4) {\n \n // Checks in bounds\n if (x < map.length - 2) {\n \n // Wants to eat a sheep\n if ((actionChoice[1]) && (map[y][x+1] instanceof Sheep)) {\n \n // Update healths\n ((Wolf)map[y][x]).healed(((Sheep)map[y][x+1]).getHealth());\n \n // Update wolf position\n ((Wolf)map[y][x]).setEnergy(((Wolf)map[y][x]).getEnergy()-1);\n ((Wolf)map[y][x]).up();\n ((Wolf)map[y][x]).setMoved(true);\n map[y][x+1] = map[y][x];\n map[y][x] = null;\n \n // Wants to fight (does not move)\n } else if ((actionChoice[2]) && (map[y][x+1] instanceof Wolf)) {\n \n // Weaker wolf loses health; otherwise, nothing happens\n if (((Wolf)map[y][x]).compareTo((Wolf)map[y][x+1]) > 0) {\n ((Wolf)map[y][x+1]).damage(10);\n } else if (((Wolf)map[y][x]).compareTo((Wolf)map[y][x+1]) < 0) {\n ((Wolf)map[y][x]).damage(10);\n }\n \n // Move to empty space\n } else if ((x < (map.length - 2)) && (map[y][x+1] == null)) {\n ((Wolf)map[y][x]).setEnergy(((Wolf)map[y][x]).getEnergy()-1);\n ((Wolf)map[y][x]).right();\n ((Wolf)map[y][x]).setMoved(true);\n map[y][x+1] = map[y][x];\n map[y][x] = null;\n }\n }\n \n }\n }\n }\n \n }\n \n }\n }\n \n }",
"@Override\n\tpublic void movefrut(game_service game) throws JSONException {\n\t\tthis.fru = new ArrayList<fruit>();\n\t\tfor (String fruit1 : game.getFruits()) {\n\t\t\tfru.add(new fruit(fruit1));\n\t\t}\n\t}",
"private void moveBack(){\r\n\t\tturnAround();\r\n\t\tmove();\r\n\t}",
"boolean testMoveAllShips(Tester t) {\n return t.checkExpect(this.los3.moveAll(), new ConsLoGamePiece(\n new Ship(10, Color.CYAN, new MyPosn(51, 50), this.p6),\n new ConsLoGamePiece(new Ship(10, Color.CYAN, new MyPosn(51, 50), this.p6),\n new ConsLoGamePiece(new Ship(10, Color.CYAN, new MyPosn(50, 200), this.p3), this.mt))))\n && t.checkExpect(this.mt.moveAll(), this.mt);\n }",
"protected void moveToDestination(){\n\t\tqueue.clear();\n\t\twhile (destination[0] < 0){\n\t\t\tqueue.add(\"MOVE S\");\n\t\t\tdestination[0] += 1;\n\t\t}\n\t\twhile (destination[0] > 0){\n\t\t\tqueue.add(\"MOVE N\");\n\t\t\tdestination[0] -= 1;\n\t\t}\n\t\twhile (destination[1] < 0){\n\t\t\tqueue.add(\"MOVE E\");\n\t\t\tdestination[1] += 1;\n\t\t}\n\t\twhile (destination[1] > 0){\n\t\t\tqueue.add(\"MOVE W\");\n\t\t\tdestination[1] -= 1;\n\t\t}\n\t\tdestination = null;\n\t}",
"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 moveLeft() {\n\t\t\n\t}",
"@Override\n\tpublic void movment() {\n\t\tif(ghost.shot && fired) {\n\t\t\tif(direction == RIGHT)\n\t\t\t\tmove(RIGHT);\n\t\t\telse if(direction == LEFT)\n\t\t\t\tmove(LEFT);\n\t\t\telse if(direction == UP)\n\t\t\t\tmove(UP);\n\t\t\telse if(direction == DOWN)\n\t\t\t\tmove(DOWN);\n\t\t}\n\t}",
"public FarmerMover() {\n //super.addMove(goesAlone, s -> tryAlone(s));\n super.addMove(goesAlone, new UnaryOperator<State>() {\n @Override\n public State apply(State state) {\n return tryAlone(state);\n }\n });\n //super.addMove(takesWolf, s -> tryWolf(s));\n super.addMove(takesWolf, new UnaryOperator<State>() {\n @Override\n public State apply(State state) {\n return tryWolf(state);\n }\n });\n //super.addMove(takesGoat, s -> tryGoat(s));\n super.addMove(takesGoat, new UnaryOperator<State>() {\n @Override\n public State apply(State state) {\n return tryGoat(state);\n }\n });\n //super.addMove(takesCabbage, s -> tryCabbage(s));\n super.addMove(takesCabbage, new UnaryOperator<State>() {\n @Override\n public State apply(State state) {\n return tryCabbage(state);\n }\n });\n // super.addMove(takesGorilla, s-> takesGorilla(null));\n }",
"@Override\n \t\t\t\tpublic void doMove() {\n \n \t\t\t\t}",
"public void moveObjsToGoals() {\n\t\tMap<Integer, MovingFObject> map = sc.getInitPos();\r\n\t\tfor(int i = 0; i < map.size(); i++) {\r\n\t\t\tMovingFObject temp = map.get(i);\r\n\t\t\tsc.moveAtVelAtTimeToLoc(i, sc.getMaxVelocity(), 0, (Location)temp.getGoal());\r\n\t\t}\r\n\t}",
"public void makeNextMove() {\n\t\ttakeNextNonTabuedCheapestStep();\n\t\t}",
"void doneMoving();",
"private void follow() {\n\t\t// calculate distance back to hive\n\t\tdouble distToHive = grid.getDistance(grid.getLocation(this),grid.getLocation(hive));\n\t\t// if close to flower from dance information, start scouting\n\t\tif(distToHive > followDist - 5) {\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// otherwise keep flying in direction of dance\n\t\telse{\n\t\t\t// deviate slightly from correct angle because bee's aren't perfect (I don't think)\n\t\t\tcurrentAngle += RandomHelper.nextDoubleFromTo(-Math.PI/50, Math.PI/50);\n\t\t\tspace.moveByVector(this, 4, currentAngle,0);\n\t\t\tNdPoint myPoint = space.getLocation(this);\n\t\t\tgrid.moveTo(this, (int) myPoint.getX(), (int) myPoint.getY());\n\t\t\tfood -= highMetabolicRate;\n\t\t}\n\t}",
"private void moveMhos() {\n\t\tmoveAllignedMhos();\n\t\tmoveDiagonalMhos();\n\t\tmoveHorizontalMhos();\n\t\tmoveVerticalMhos();\n\t\tmoveRemainingMhos();\n\t\tupdateMhoLocationList();\n\t}"
] | [
"0.69429195",
"0.68941605",
"0.6839798",
"0.674867",
"0.6708253",
"0.6626727",
"0.65701646",
"0.6488166",
"0.6462933",
"0.64021146",
"0.63750684",
"0.6337616",
"0.62956274",
"0.6255246",
"0.62519765",
"0.62373906",
"0.622386",
"0.6157352",
"0.6128977",
"0.61172307",
"0.60835224",
"0.60565865",
"0.6043728",
"0.6033938",
"0.6019862",
"0.60128146",
"0.60006833",
"0.5997919",
"0.59789586",
"0.5964806",
"0.59460604",
"0.5945946",
"0.58935964",
"0.5885867",
"0.58572596",
"0.5855918",
"0.58478266",
"0.58470476",
"0.58361274",
"0.58351374",
"0.5831601",
"0.582739",
"0.5797143",
"0.5793082",
"0.5789893",
"0.5788064",
"0.5786982",
"0.5777975",
"0.57712847",
"0.57702893",
"0.57611936",
"0.5747545",
"0.57453203",
"0.5741879",
"0.5741875",
"0.5740978",
"0.5728272",
"0.5725748",
"0.57246053",
"0.5713059",
"0.5703745",
"0.568315",
"0.5682566",
"0.5674639",
"0.56585914",
"0.5658057",
"0.56537575",
"0.56485134",
"0.5644857",
"0.5640005",
"0.5638132",
"0.5636128",
"0.56297684",
"0.56239504",
"0.56238997",
"0.56232595",
"0.56184345",
"0.5609289",
"0.5607801",
"0.5604408",
"0.5601451",
"0.55983216",
"0.5597868",
"0.5597672",
"0.55966145",
"0.55950403",
"0.559122",
"0.5589953",
"0.55895567",
"0.5580829",
"0.5569604",
"0.5562864",
"0.55583495",
"0.5556097",
"0.555318",
"0.5543748",
"0.5543731",
"0.5540097",
"0.55272263",
"0.55235595"
] | 0.7038949 | 0 |
Implement an algorithm to determine if a string has all unique characters. | public static boolean checkUnique(String s) {
if (s == null || s.length() == 0)
return true;
HashMap<Character, Integer> map = new HashMap<Character, Integer>();
char[] arr = new char[s.length()];
for (int i = 0; i < s.length(); i++) {
if (!map.containsKey(s.charAt(i)))
map.put(s.charAt(i), 1);
else if (map.containsKey(s.charAt(i))) {
return false;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isUniqueChars(String str) {\n\t if(str.length() > 128) return false;\n\t \n\t //created hash table boolean to flag duplicate characters\n\t boolean [] check = new boolean [128];\n\t \n\t //run a for look in order to iterate through the string.\n for(int i = 0; i < str.length(); i++){\n //convert the characters of the string array into integers\n int val = str.charAt(i);\n //check the hash table for past characters seen, there are 128 ascii codes\n\t if(check[val]) return false;\n\t //turn on the true flag for characters you are seeing\n\t check[val] = true;\n\t }\n\t \n\t //pass the hash table therefore it is unique and true;\n\t return true;\n\n\t}",
"public static boolean hasAllUniqueChars1(String string) {\n for(int i = 0; i < string.length(); i++) {\n for(int j = i + 1; j < string.length(); j++) {\n if(string.charAt(i) == string.charAt(j)) return false;\n }\n }\n\n return true;\n }",
"public static boolean isAllUnique(String string) {\n\n // Let's create a new HashSet to cache the characters.\n HashSet<Character> set = new HashSet<>();\n\n for (char c : string.toCharArray()) {\n if (set.contains(c)) {\n return false;\n } else {\n set.add(c);\n }\n }\n\n return true;\n }",
"boolean hasUniqueCharactersTimeEfficient(String s) {\n Set<Character> characterSet = new HashSet<Character>();\n for(int i=0; i < s.length();i++) {\n if(characterSet.contains(s.charAt(i))) {\n return false;\n } else {\n characterSet.add(s.charAt(i));\n }\n }\n return true;\n }",
"public static boolean hasAllUniqueChars6(String string) {\n if(string.length() > LAST_LETTER - FIRST_LETTER + 1) return false;\n\n int vector = 0;\n\n for(int i = 0; i < string.length(); i++) {\n int value = string.charAt(i) - FIRST_LETTER;\n\n if((vector & (1 << value)) > 0) return false;\n else vector |= (1 << value);\n }\n\n return true;\n }",
"private static boolean isUnique(String str) {\n\t\tif(str.length() > 256)\n\t\t\treturn false;\n\t\tboolean [] char_set = new boolean[256];\n\t\tfor(int i =0; i<str.length();i++) {\n\t\t\tint value = str.charAt(i);\n\t\t\tif(char_set[value])\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tchar_set[value] = true;\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean hasUniqueChars(String str) {\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\tfor(int j = i+1; j < str.length(); j++) {\n\t\t\t\tif( str.charAt(i) == str.charAt(j) )\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean uniqueCharacters(String st) {\n\t\tif(st.length() > 256) return false;\n\t\t\n\t\tboolean[] char_set = new boolean[256];\n\t\tfor(int i=0; i < st.length(); i++) {\n\t\t\tint val = st.charAt(i);\n\t\t\tif(char_set[val])\n\t\t\t\treturn false;\n\t\t\tchar_set[val] = true;\n\t\t}\n\t\treturn true;\n\t}",
"boolean checkUnique(String str){\r\n\t\tif(str.length()>128){\r\n\t\t\treturn false;\r\n\t\t\t}\r\n\t\tboolean[] arr = new boolean[128];\r\n\t\tfor(int i=0; i< str.length(); i++){\r\n\t\t\tint val = str.charAt(i);\r\n\t\t\tif(arr[val])\r\n\t\t\t\treturn false;\r\n\t\t\tarr[val]=true;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"public boolean isUniqueChars(String str) {\n\t\tif (str.length() > 128) return false;\n\t\tboolean[] char_set = new boolean[128];\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tint val = str.charAt(i);\n\t\t\tif (char_set[val]) return false;\n\t\t\tchar_set[val] = true;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean uniqueString(String s) {\n java.util.HashSet<Character> hash = new java.util.HashSet<>();\n\n for (Character c : s.toCharArray()) {\n if (!hash.add(c)) return false;\n }\n return true;\n }",
"public static boolean hasAllUniqueChars2(String string) {\n HashSet<Character> characters = new HashSet<>();\n\n for(Character character : string.toCharArray()) {\n if (characters.contains(character)) return false;\n else characters.add(character);\n }\n\n return true;\n }",
"public static boolean isUnique(String input) {\r\n // Create a Set to insert characters\r\n Set<Character> set = new HashSet<>();\r\n\r\n // get all characters form String\r\n char[] characters = input.toCharArray();\r\n\r\n for (Character c : characters) {\r\n if (!set.add(c)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"private static boolean isUnique(String str) {\n if (str.length() > 128) {\n return false;\n }\n boolean[] boolArray = new boolean[128];\n for (int i = 0; i < str.length(); i++) {\n int val = str.charAt(i);\n if (boolArray[val]) {\n return false;\n }\n boolArray[val] = true;\n }\n return true;\n }",
"public static boolean isUnique(String s){\n\n\t\tint length = s.length();\n\t\tboolean count[] = new boolean[256];\n\t\tArrays.fill(count, false);\n\n\n\t\tint i = 0;\n\t\twhile (i < length){\n\t\t\tint num = Character.toLowerCase(s.charAt(i)) - 'a';\n\n\t\t\tif (count[num]){\n\t\t\t\treturn false;\n\t\t\t}else{\n\t\t\t\tcount[num] = true;\n\t\t\t}\n\t\t\ti += 1;\n\t\t}\n\t\treturn true;\n\n\n\t\t// in the end of the loop, return true\n\t}",
"public static boolean hasAllUniqueChars5(String string) {\n if(string.length() > ALPHABET_SIZE) return false;\n\n BitSet vector = new BitSet(ALPHABET_SIZE);\n for(int i = 0; i < string.length(); i++) {\n int ascii_code = (int) string.charAt(i);\n\n if(vector.get(ascii_code)) return false;\n else vector.set(ascii_code);\n }\n\n return true;\n }",
"public static boolean isUniqueChars(String str) {\n if (str.length() > 128) return false;\n\n boolean[] charSet = new boolean[128];\n for (char c : str.toCharArray()) {\n if (charSet[c]) return false;\n charSet[c] = true;\n }\n\n return true;\n }",
"public static boolean allUnique2(String s ){\n\t\tint value = 0;\n\t\tchar[] chars = s.toCharArray();\n\t\tfor(char c : chars) \n\t\t{\t\n\t\t\tint i = c -'a';\n\t\t\tif(((1<<i+1)&value)>0)\n\t\t\t\treturn false;\n\t\t\tvalue = value | (1<<i+1);\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isUnique(String str)\n\t{\n\t\tif(str.length()>128)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tboolean [] char_set= new boolean [128];\n\t\t\n\t\tfor(int i=0;i<str.length();i++)\n\t\t{\n\t\t\tint val = str.charAt(i);\n\t\t\tif(char_set[val])\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tchar_set[val]=true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public static boolean hasAllUniqueChars3(String string) {\n String sorted = Stream.of(string.split(\"\")).sorted().collect(Collectors.joining());\n\n for(int i = 1; i < sorted.length(); i++) {\n if(sorted.charAt(i - 1) == sorted.charAt(i)) return false;\n }\n\n return true;\n }",
"public static boolean isUnique(String s) {\n if (s.length() > 128) return false;\n\n // we dont need to check the last element\n for (int i = 0; i < s.length() - 1; i++){\n String current = \"\";\n current += s.charAt(i);\n// System.out.println(current);\n if (s.substring(i + 1).contains(current))\n return false;\n }\n return true;\n }",
"public boolean isStringMadeofAllUniqueChars(String word) {\n if (word.length() > 128) {\n return false;\n }\n boolean[] char_set = new boolean[128];\n for (int i = 0; i < word.length(); i++) {\n int val = word.charAt(i);\n System.out.println(val);\n if (char_set[val]) {\n return false;\n }\n char_set[val] = true;\n }\n return true;\n }",
"public static boolean hasAllUniqueChars4(String string) {\n if(string.length() > ALPHABET_SIZE) return false;\n\n boolean[] characters = new boolean[ALPHABET_SIZE];\n for(int i = 0; i < string.length(); i++) {\n int ascii_code = (int) string.charAt(i);\n\n if(characters[ascii_code]) return false;\n else characters[ascii_code] = true;\n }\n\n return true;\n }",
"public boolean isUnique(String s){\n // int[] visited = new int[256]; // O:256\n int[] visited = new int[8]; // int = 4 bytes = 32 bits, 8 ints = 32 bytes = 256 bits\n char[] array = s.toCharArray();\n for(char c:array){\n // for a value c in range of 0 - 256\n // it maps to the int at c/32 as index\n // it also maps the c%32 as the index of bits\n if(((visited[c/32] >>> (c%32)) & 1) != 0){\n // bit-tester of the k-th bits, k = c%32\n return false;\n }\n // bit-setter to 1 in the k-th bits\n visited[c/32] |= 1 << (c%32);\n }\n return true;\n }",
"public boolean testAllUniqueInplace(String string) {\n\t\tif (string.length() > 128) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\tfor (int j = i + 1; j < string.length(); j++) {\n\t\t\t\tchar ith = string.charAt(i);\n\t\t\t\tchar jth = string.charAt(j);\n\n\t\t\t\tif (ith == jth) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isAllCharacterUnique(String sIn) {\n if (sIn.length() > 32768) {\n return false;\n }\n for (char c : sIn.toCharArray()) {\n if (sIn.indexOf(c) != sIn.lastIndexOf(c)) return false;\n }\n return true;\n }",
"public static boolean uniqueCharStringNoDS(String s){\r\n for (int i = 0; i < s.length(); i++){\r\n for (int j = i+1; j < s.length(); j++){\r\n char temp = s.charAt(i);\r\n if (temp == s.charAt(j)){\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }",
"public static boolean isUnique(String str) {\n boolean[] char_set = new boolean[256];\n for (int i = 0; i < str.length(); i++) {\n //get ASCII value of characters\n int val = str.charAt(i);\n //Check in the boolean array if it is unique then set the value to true at corresponding index position\n //if value is already set at the required index position then return false\n if (char_set[val]) {\n return false;\n }\n char_set[val] = true;\n }\n return true;\n }",
"public static boolean isUnique1(String str) {\n HashSet<Character> set = new HashSet<>();\n for (int i = 0; i < str.length(); i++) {\n if (set.contains(str.charAt(i)))\n return false;\n set.add(str.charAt(i));\n }\n return true;\n }",
"public static boolean isUniqueUsingHashing(String str) {\n\t\tSet<Character> set = new HashSet<>();\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tchar c = str.charAt(i);\n\t\t\t// Checks if set already contains given character. If yes return false else add\n\t\t\t// to the set.\n\t\t\tif (set.contains(c)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tset.add(c);\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean isUniqueM2(String str) {\n\n if (str.length() > 128) return false;\n\n boolean[] char_set = new boolean[128];\n for (int i = 0; i < str.length(); i++) {\n int val = str.charAt(i);\n System.out.println(\"str.charAt(i): \" + val);\n if (char_set[val]) {\n return false;\n }\n char_set[val] = true;\n }\n return true;\n }",
"public static boolean isUniqueChars2(String str) {\n int checker = 0;\n for (int i = 0; i < str.length(); i++) {\n int val = str.charAt(i) - 'a';\n if ((checker & (1 << val)) > 0) return false;\n checker |= 1 << val;\n }\n return true;\n }",
"public static boolean isUniqueChars2(String str) {\n\t\tboolean[] char_set = new boolean[256];\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tint val = str.charAt(i);\n\t\t\tSystem.out.println(\"Value at i = \"+i +\" is \"+val);\n\t\t\tif (char_set[val]) return false;\n\t\t\tchar_set[val] = true;\n\t\t}\n\t\treturn true;\n\t}",
"boolean isUniqueUsingBruteForce(String str) {\n\t\t// If at any time we encounter 2 same\n\t\t// characters, return false\n\t\tfor (int i = 0; i < str.length(); i++)\n\t\t\tfor (int j = i + 1; j < str.length(); j++)\n\t\t\t\tif (str.charAt(i) == str.charAt(j))\n\t\t\t\t\treturn false;\n\t\t// If no duplicate characters encountered,\n\t\t// return true\n\t\treturn true;\n\t}",
"public static boolean uniqueCharString(String s){\r\n HashMap<Character, Integer> map = new HashMap<Character, Integer>();\r\n for (int i = 0; i < s.length(); i++){\r\n if (map.get(s.charAt(i)) == null){\r\n map.put(s.charAt(i), 1);\r\n }\r\n else {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"void ifUnique(char inputCharArray[])\n\t{\n\t\tint count=0;\n\t\t\n\t\tfor(int i=0; i<inputCharArray.length; i++)\n\t\t{\n\t\t\t//int ab = (int)inputCharArray[i]; \n\t\t\tchar ab = inputCharArray[i];\n\t\t\tfor (int j=0; j<i; j++)\n\t\t\t{\n\t\t\t\tif(ab==inputCharArray[j])\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"String not unique!\");\n\t\t\t\t\tcount = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor (int j=i+1; j<inputCharArray.length; j++)\n\t\t\t{\n\t\t\t\tif(ab==inputCharArray[j])\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"String not unique!\");\n\t\t\t\t\tcount = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (count==1)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif (count==0)\n\t\t{\n\t\t\tSystem.out.print(\"String unique!\");\n\t\t}\n\t}",
"public static boolean isUnique2(String str) {\n boolean[] arr = new boolean[128];\n for (int i = 0; i < str.length(); i++) {\n char temp = str.charAt(i);\n int index = temp;\n if (arr[index])\n return false;\n arr[index] = true;\n }\n return true;\n }",
"private static boolean isUnique(String str) {\n\t\tfor(char c: str.toCharArray()) {\n\t\t\tif(str.indexOf(c) == str.lastIndexOf(c))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public Boolean isUnique(String value) {\n\t\t//Validation step \n\t\tif (value == null || value.length() > 128) return false;\n\t\t\n\t\t//Logic to find if the string has only unique characters\n\t\tboolean[] asciiCharList = new boolean[128];\n\t\t\n\t\t//toUpperCase because is case insensitive (\"C\" == \"c\") \n\t\t//replaceAll(\"\\\\s\",\"\") because whitespace don't matters. \n\t\tfor (char letter : value.toUpperCase().replaceAll(\"\\\\s\",\"\").toCharArray()) {\n\t\t\tif (asciiCharList[(int) letter]) return false;\n\t\t\tasciiCharList[(int) letter] = true;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isUnique(String s, Set<Character> charset) {\n if (s.length() > 128) return false; // 128 characters in ASCII\n char[] charArray = s.toCharArray();\n\n for (int i = 0; i < charArray.length; i++) {\n Character current = charArray[i];\n if (charset.contains(current)) return false;\n else charset.add(current);\n }\n\n return true;\n }",
"public static void findUniqueOptimalSolution(String inputString) {\n boolean[] charArray = new boolean[128];\n for (int i = 0; i < inputString.length(); i++) {\n int val = inputString.charAt(i);\n if (charArray[val]) {\n System.out.println(\"Input String dont have unique characters:\" + inputString);\n return;\n }\n charArray[val] = true;\n }\n System.out.println(\"Input String has unique characters \" + inputString);\n }",
"public static boolean isUniqueUsingBitVector(String str) {\n\t\tInstant begin = Instant.now();\n\t\tint vector = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tint j = str.charAt(i) - 'a';\n\t\t\t// if condition checks if bit at index j is set or not. If bit is set, means\n\t\t\t// already duplicate character in string\n\t\t\tif ((vector & (1 << j)) > 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// Setting the bit at index j if already not set, which means character appeared\n\t\t\t// first time\n\t\t\tvector |= 1 << j;\n\t\t}\n\t\tSystem.out.println(\"UniqueUsingBitVector took: \" + Duration.between(Instant.now(), begin).toMillis() + \" ms\");\n\t\treturn true;\n\t}",
"private static boolean isUniqueM1(String str) {\n boolean isUnique = true;\n\n for (int i = 0; i < str.length(); i++) {\n\n for (int j = i + 1; j < str.length(); j++) {\n if (str.charAt(i) == str.charAt(j)) {\n isUnique = false;\n }\n }\n }\n return isUnique;\n }",
"public boolean isUnique(String input) {\n if (input == null || input.length() == 0) {\n return false;\n }\n\n char[] chars = input.toCharArray();\n Arrays.sort(chars);\n for (int i = 0; i < chars.length - 1; i += 1) {\n if (chars[i+1] == chars[i]) {\n return false;\n }\n }\n return true;\n }",
"boolean isUniqueUsingSorting(String str) {\n\t\tchar[] array = str.toCharArray();\n\t\t// Sorting the char array take NlogN time\n\t\tArrays.sort(array);\n\t\tfor (int i = 0; i < array.length - 1; i++) {\n\t\t\t// If adjacent characters are equal, return false\n\t\t\tif (array[i] == array[i + 1]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isUniqueSolInBits(String str){\n //init 32 bit int 0\n int checker = 0;\n for (int i = 0; i < str.length(); ++i){\n //map char 'a' to 'z' to 32 bit (only need 26 bits actually)\n int val = str.charAt(i) - 'a';\n if ((checker & (1 << val)) > 0) return false;\n checker |= (1 << val);\n }\n return true;\n }",
"@Test\n\tpublic void testIsUniqueOnUniqueString() {\n\t\tassertTrue(ArraysAndStrings.isUnique(UNIQUE_CHARACTERS));\n\t}",
"public boolean allUnique(String word) {\n if(word == null || word.length() <= 1) {\n return false;\n }\n char[] array = word.toCharArray();\n int[] alphabet = new int[8];\n for (char c : array) {\n int bitindex = c;\n int row = bitindex / 32;\n int col = bitindex % 32;\n if ((alphabet[row] & (1 << col)) != 0) {\n return false;\n } else {\n alphabet[row] = alphabet[row] | (1 << col);\n }\n }\n return true;\n }",
"static boolean isLocalUnique(String s) {\n\t\tboolean result = false;\n\t\tif (s != null && s.length() > 8) {\n\t\t\tresult = true;\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tchar c = s.charAt(i);\n\t\t\t\tif (isHex(c) == false) {\n\t\t\t\t\tresult = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public Boolean findUniqueness(final String inp) {\n boolean flag = true;\n for (int i = 0; i < inp.length(); i++) {\n for (int j = i + 1; j < inp.length(); j++) {\n if (inp.charAt(i) == inp.charAt(j)) {\n flag = false;\n }\n }\n }\n return flag;\n }",
"public boolean allUnique(String word) {\n int[] bitVector = new int[8];\n char[] array = word.toCharArray();\n for (char c : array) {\n if ((bitVector[c / 32] >>> (c % 32) & 1) != 0) {\n return false;\n }\n //\n bitVector[c / 32] |= 1 << (c % 32);\n }\n return true;\n }",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\r\n\r\n System.out.println(\"Please enter a String\");\r\n String input = sc.nextLine();\r\n\r\n if (isUnique(input)) {\r\n System.out.println(\"All characters of String are unique\");\r\n } else {\r\n System.out.println(\"All characters of String are not unique\");\r\n }\r\n\r\n sc.close();\r\n}",
"public static void main(String[] args) {\n\t\tString myString = \"abcdea\";\n\t\tint flag = 1;\n\t\t\n\t\tfor (int i=0; i < myString.length(); i++) {\n\t\t\tfor (int j=0; j < myString.length(); j++) {\n\t\t\t\tif(myString.charAt(i)==myString.charAt(j) && i!=j) {\n\t\t\t\t\tflag = 0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif(flag==1) {\n\t\t\tSystem.out.println(\"The string has unique characters\");\n\t\t}else {\n\t\t\tSystem.out.println(\"The string does not have unique characters\");\n\t\t}\n\n\t}",
"Set<String> getUniqueCharacterStrings();",
"public static boolean uniqueStringUsingArray(String str) {\n boolean[] boolArray = new boolean[256];\n for (int i = 0; i < str.length(); i++) {\n int val = str.charAt(i);\n if (boolArray[val]) {\n return false;\n }\n boolArray[val] = true;\n }\n return true;\n }",
"static void stringConstruction(String s) {\n\n StringBuilder buildUniq = new StringBuilder();\n boolean[] uniqCheck = new boolean[128];\n\n for (int i = 0; i < s.length(); i++) {\n if (!uniqCheck[s.charAt(i)]) {\n uniqCheck[s.charAt(i)] = true;\n if (uniqCheck[s.charAt(i)]){\n buildUniq.append(s.charAt(i));\n }\n }\n }\n String unique=buildUniq.toString();\n int n = unique.length();\n System.out.println(n);\n }",
"public static boolean isUnique(String st) {\n\t\tif(st == null || st==\"\") {\n\t\t\treturn true;\n\t\t}\n\t\tfor(int i=0; i< st.length()-1; i++) {\n\t\t\tif(st.substring(i+1).indexOf(st.substring(i,i+1)) !=-1) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean checkUniqueness(char[] input, int length){\n //check to see if they are all digits\n for(int i = 0; i < length; i++){\n if(Character.isDigit(input[i]) == false)\n return false;\n }\n\n //check for uniqueness\n for(int i = 0; i < length; i++){\n int numOccurrences = 0;\n for(int j = 0; j < length; j++){\n if(Character.getNumericValue(input[j]) == i){\n numOccurrences++;\n if(numOccurrences > 1)\n return false;\n }\n }\n }\n\n return true;\n }",
"public static String uniques(String str){\n String uniques = \"\";//lets use string str to find unique characters\n // int count = frequency(str,'a');//return type is int, therefore assign to int variable\n // System.out.println(count);//print the frequency of char 'a'\n//This step is use to identify if the character is unique, let's use loop for this\n for (char each : str.toCharArray()){\n // char ch = str.charAt(i); //to get char as a data type\n int count = frequency(str, each);\n //this is a frequency\n if(count == 1){//if count is equal to 1, concat it to unique variable\n uniques += each;\n }\n }\n return uniques;\n\n }",
"public static String uniqueChars(String str) {\n String result = \"\";\n char[] ch = str.toCharArray();\n\n for (int i = 0; i < ch.length; i++) {\n if(!result.contains(\"\" + ch[i])){\n result+=\"\" + ch[i];\n }\n\n }\n\n return result;\n }",
"public Boolean isUniqueUsingAPI(String value) {\n\t\t// We put each character of our value in a Set that don't allows duplicated values\n\t\tSet<String> items = new HashSet<String>(Arrays.asList(value.toUpperCase().replaceAll(\"\\\\s\",\"\").split(\"\")));\n\t\t\n\t\t// If the size of our set is different that the length of our string that means that on the string are duplicated values.\n\t\treturn value.length() == items.size();\n\t}",
"public boolean checkIfDublicate(String testPart){\n\t\t\n\t\tchar[] characters = testPart.toCharArray();\n // build HashMap with character and number of times they appear in String\n Map<Character, Integer> charMap = new HashMap<Character, Integer>();\n for (Character ch : characters) {\n if (charMap.containsKey(ch)) {\n charMap.put(ch, charMap.get(ch) + 1);\n } else {\n charMap.put(ch, 1);\n }\n }\n\n\n // Iterate through HashMap and return true if duplicates\n Set<Map.Entry<Character, Integer>> entrySet = charMap.entrySet();\n \n for (Map.Entry<Character, Integer> entry : entrySet) {\n if (entry.getValue() > 1) {\n return false;\n }\n }\n return true;\n\n//Read more: http://www.java67.com/2014/03/how-to-find-duplicate-characters-in-String-Java-program.html#ixzz4KEbZ7fhC\t\n\t}",
"public static boolean Solution(String str)\r\n\t{\r\n\t\t\r\n\t\t//Precondition if null, length <0 // Assuming the String Contains ASCII characters\r\n\t\tif(str==null||str.length()<0||str.length()>128)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t//example:\tString s1=\"abca@d\";\r\n\t\t\r\n\t\t\r\n\t\tboolean[] check=new boolean[256];\r\n\t\t\r\n\t\tfor(int i=0;i<str.length();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(check[str.charAt(i)]);\r\n\t\t\t\r\n\t\t\tif(check[str.charAt(i)])\r\n\t\t\t\t\r\n\t\t\t\treturn false;\r\n\t\t\telse\r\n\t\t\t\tcheck[str.charAt(i)]=true;\r\n\t\t}\r\n\t\t\t\t\r\n\t\t\r\n\t\treturn true;\r\n\t\t\r\n\t}",
"public boolean isAnagram(String s, String t) {\n if (s.length() != t.length()) return false; // O(1)\n int[] charFrequency = new int[26]; // O(1)\n\n for (char c : s.toCharArray()) { // O(N)\n int index = c - 'a'; // O(1)\n charFrequency[index]++; // O(1)\n }\n\n for (char c : t.toCharArray()) { // O(N)\n int index = c - 'a'; // O(1)\n if (charFrequency[index] == 0) return false; // O(1)\n charFrequency[index]--; // O(1)\n }\n\n for (int i : charFrequency) { // O(26) -> O(1)\n if (i > 0) return false; // O(1)\n }\n\n return true; // O(1)\n }",
"public boolean checkDuplicates(String chars) {\n char[] check = chars.toCharArray();\n for (int i = 0; i < chars.length(); i++) {\n for (int j = i + 1; j < chars.length(); j++) {\n if (check[i] == check[j]) {\n return true;\n }\n }\n }\n return false;\n }",
"public static boolean isPermutation(String str) {\n if (str == null || str.equals(\"\")) {\n return false;\n }\n char[] characters = new char[256];\n for (int i = 0; i < str.length(); i++) {\n characters[str.charAt(i)]++;\n }\n int count = 0;\n for (char c : characters) {\n if (!(c == 0 || c % 2 == 0)) {\n if (count == 0) {\n count++;\n } else {\n return false; // allow only one character to occur once\n }\n }\n }\n return true;\n }",
"public static boolean hasDuplicates(String s) {\n\t\tif (StringUtils.isEmpty(s)) {\n\t\t\treturn false;\n\t\t}\n\t\tchar[] c = s.toCharArray();\n\t\tArrays.sort(c);\n\t\tfor (int i = 0; i < c.length - 1; i++) {\n\t\t\tif (c[i] == c[i+1]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public static boolean checkAllAlphabets(String input) {\n if (input.length() < 26) {\n return false;\n }\n\n //Even a single character is missing, return false\n for (char ch = 'A'; ch <= 'Z'; ch++) {\n if (input.indexOf(ch) < 0 && input.indexOf((char) (ch + 32)) < 0) {\n return false;\n }\n }\n return true;\n }",
"static boolean possibleSameCharFreqByOneRemoval(String str)\n {\n int l = str.length();\n\n // fill frequency array\n int[] freq = new int[M];\n\n for (int i = 0; i < l; i++)\n freq[getIdx(str.charAt(i))]++;\n\n // if all frequencies are same, then return true\n if (allSame(freq, M))\n return true;\n\n /* Try decreasing frequency of all character\n by one and then check all equality of all\n non-zero frequencies */\n for (char c = 'a'; c <= 'z'; c++) {\n int i = getIdx(c);\n\n // Check character only if it occurs in str\n if (freq[i] > 0) {\n freq[i]--;\n\n if (allSame(freq, M))\n return true;\n freq[i]++;\n }\n }\n\n return false;\n }",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter a string:\");\n\t\tString inStr = in.nextLine();\n\t\tboolean isUnique = isUniqueChars( inStr);\n\t\tif( isUnique){\n\t\t\tSystem.out.println(inStr+\" has unique chars \");\n\t\t}else{\n\t\t\tSystem.out.println(inStr+\" has duplicate chars \");\n\t\t}\n\t\t\n\t}",
"public boolean verifyString(String s) {\n\t\t\n\t\tfor (int i = 0; i<s.length();i++) {\n\t\t\tif (!alphabet.contains(s.charAt(i))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"public boolean check(String str)\n {\n\n int count=0;\n int arr[] = new int[26];\n int i;\n boolean flag=false;\n str = str.replaceAll(\"[^a-zA-Z]\", \"\");\n str.toLowerCase();\n if(str==null) {\n System.out.println(\"string can't be null\");\n }\n else\n {\n if(str.length()==26) {\n for (i = 0; i < str.length(); i++) {\n if (count == 26) {\n flag = true;\n break;\n }\n char k = str.charAt(i);\n int j = (int) k - 'a';\n if (arr[j] == 0) {\n count++;\n arr[j] = 1;\n }\n }\n }\n else\n break;\n\n }\n return flag;\n }",
"boolean isIsUnique();",
"public static void main(String[] args) {\n\t\t\n\t\tboolean unique=true;\n\t\tString str=\"sami\";\n\t\tchar[] chars= str.toCharArray();\n\t\tArrays.sort(chars);\n\t\t\n\t\tfor(int i=0;i<=chars.length-2;i++){\n\t\t\t\n\t\t\tif(chars[i]==chars[i+1]){\n\t\t\t\tSystem.out.println(\"Not unique chracters\");\n\t\t\t\tunique=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t if(unique){\n\t \t System.out.println(\" unique chracters\");\n\t }\n\n\t}",
"@Test\n public void checkUniqueCharacter() {\n int numberOfChars = compressor.getCodes().size();\n assertTrue(numberOfChars == 86 || numberOfChars == 87, \"You appear to have some very strange end-of-line configuration on your machine!\");\n }",
"public static void main(String[] args) {\n String str = \"abcDaaafmOO\";\n String uniques = \"\";//lets use string str to find unique characters\n // int count = frequency(str,'a');//return type is int, therefore assign to int variable\n // System.out.println(count);//print the frequency of char 'a'\n//This step is use to identify if the character is unique, let's use loop for this\n for (char each : str.toCharArray()){\n // char ch = str.charAt(i); //to get char as a data type\n int count = frequency(str, each);\n //this is a frequency\n if(count == 1){//if count is equal to 1, concat it to unique variable\n uniques += each;\n }\n }\n System.out.println(\"unique values are: \"+uniques);\n System.out.println(\"========================\");\n String str2 = \"ppppoifugggggsxL\";\n String uniques2 = uniques(str2);\n System.out.println(\"unique values are: \"+uniques2);\n }",
"private boolean checkString(){\n createString();\n char[] charsJoinedString=this.joinedTextPalindrome.toCharArray();\n int lengthString=charsJoinedString.length-1;\n for(int i=0;i<charsJoinedString.length;i++){\n if(charsJoinedString[i]!=charsJoinedString[lengthString]){\n return false;\n }\n lengthString--;\n }\n return true;\n \n }",
"boolean isUnique();",
"public void nonRepeatingCharacter(String s)\n\t{\n\t\tMap<Character, Integer> charMap = new LinkedHashMap<>();\n\t\tCharacter unique = null;\n\t\tchar[] stringArray = s.toCharArray();\n\t\tint repeat =0;\n\t\tfor(int i=0; i< stringArray.length; i++ )\n\t\t{\n\t\t\tif(!charMap.keySet().contains(stringArray[i]))\n\t\t\t{\n\t\t\t\tcharMap.put(stringArray[i], 1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tInteger value = charMap.get(stringArray[i]);\n\t\t\t\tvalue++;\n\t\t\t\tcharMap.put(stringArray[i], value);\n\t\t\t}\n\t\t}\n\t\t//System.out.println(charMap.toString());\n\t\tfor(Character i : charMap.keySet())\n\t\t{\n\t\t\tint value = charMap.get(i);\n\t\t\tif(value == 1)\n\t\t\t{\n\t\t\t\tunique = i;\n\t\t\t\t//System.out.println(\"found unique \"+ unique);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i< stringArray.length; i++ )\n\t\t{\n\t\t\tif(unique!= null && stringArray[i] == unique)\n\t\t\t{\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n Set<Character> charSet = new HashSet<>();\n System.out.println(isUnique(\"test\", charSet));\n charSet = new HashSet<>();\n System.out.println(isUnique(\"teaspon\", charSet));\n\n System.out.println();\n\n System.out.println(isUnique(\"test\"));\n System.out.println(isUnique(\"teaspon\"));\n }",
"private static int solution2(String s) {\r\n int n = s.length();\r\n int ans = 0;\r\n for (int i = 0; i < n; i++)\r\n for (int j = i + 1; j <= n; j++)\r\n if (allUnique(s, i, j)) ans = Math.max(ans, j - i);\r\n return ans;\r\n }",
"public boolean checkInvalid2(String x) {\n for (int i = 0; i < x.length(); i++) {\n if (consonants.contains(String.valueOf(x.charAt(i)))) {\n count++;\n }\n }\n return count == x.length();\n\n }",
"public boolean containsAnagram(String s, String t) {\n\t\tint[] tmap = new int[26];\n\t\tfor (char c : t.toCharArray())\n\t\t\ttmap[c - 'A']++;\n\t\tint p1 = 0, p2 = 0;\n\t\tint minimumLen = Integer.MAX_VALUE;\n\t\tint expandedLength = t.length();\n\t\twhile (p1 < s.length() && p1 < s.length()) {\n\t\t\tif (tmap[s.charAt(p2++) - 'A']-- > 0) expandedLength--;\n\t\t\twhile (expandedLength == 0) {\n\t\t\t\tif (p2 - p1 < minimumLen) {\n\t\t\t\t\tminimumLen = p2 - p1;\n\t\t\t\t\tif (minimumLen == t.length()) return true;\n\t\t\t\t}\n\t\t\t\tif (p1 >= s.length()) break;\n\t\t\t\t// Exists in t.\n\t\t\t\tif (tmap[s.charAt(p1++) - 'A']++ == 0) expandedLength++;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isAnagram1(String s, String t) {\n if (s.length() != t.length()) return false;\n Function<String, Integer> countCode = str -> {\n int code = 0;\n for (int i = 0; i < str.length(); i++)\n code ^= str.charAt(i);\n return code;\n };\n return countCode.apply(s).equals(countCode.apply(t));\n }",
"public int countUniqueStrings()\n\t{\n\t\treturn countUniqueStrings(this.root);\n\t}",
"public static boolean isAnagram1(String s1, String s2) {\r\n int[] arr = new int[256]; //Number of Ascii Values\r\n\r\n for (int i = 0; i < s1.length(); i++) {\r\n arr[s1.charAt(i)]++;\r\n arr[s2.charAt(i)]--;\r\n }\r\n\r\n for (int i = 0; i < arr.length; i++) {\r\n if (arr[i] != 0) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }",
"public boolean canPermutePalindrome(String s) {\n /** s only contains lowercase chars. **/\n int[] occur = new int[26];\n for (char ch : s.toCharArray()) {\n occur[ch - 'a'] += 1;\n }\n\n int count = 0;\n for (int i = 0; i < occur.length; i++) {\n if (occur[i] % 2 == 1) {\n count += 1;\n }\n }\n return count <= 1;\n }",
"public static boolean checkAllCharsUsingRegex(String input) {\n if (input.length() < 26) {\n return false;\n }\n //Even a single character is missing, return false\n String regex = \"(?i)(?=.*a)(?=.*b)(?=.*c)(?=.*d)(?=.*e)(?=.*f)\"\n + \"(?=.*g)(?=.*h)(?=.*i)(?=.*j)(?=.*k)(?=.*l)(?=.*m)(?=.*n)\"\n + \"(?=.*o)(?=.*p)(?=.*q)(?=.*r)(?=.*s)(?=.*t)(?=.*u)(?=.*v)\"\n + \"(?=.*w)(?=.*x)(?=.*y)(?=.*z).*\";\n\n if (input.matches(regex)) {\n return true;\n }\n return false;\n }",
"public static boolean checksum(String s)\r\n\t{\r\n\t\tif((s.length()<3)||(s.charAt(0)!='$')||(s.charAt(s.length()-3)!='*'))\r\n\t\t\treturn false;\r\n\t\tString x=new String();\r\n\t\tx+=s.charAt(s.length()-2);\r\n\t\tx+=s.charAt(s.length()-1);\r\n\t\ts=s.substring(1,s.length()-3);\r\n\t\tchar c=s.charAt(0);\r\n\t\tfor(int i=1;i<s.length();i++)\r\n\t\t\tc^=s.charAt(i);\r\n\t\tif(x.charAt(0)=='0')\r\n\t\t\tx=x.substring(1,2);\r\n\t\treturn Integer.toHexString(c).equals(x.toLowerCase());\r\n\t}",
"public static boolean isAnagram(String s, String t) {\n int a = 0;\n for(int i=0;i<s.length();i++){\n a = a^s.charAt(i);\n }\n for(int i=0;i<t.length();i++){\n a = a^t.charAt(i);\n }\n return a == 0;\n\n }",
"static String isValid(String s) {\n\n\t\tMap<Character, Integer> charMap = new HashMap<>();\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (charMap.get(s.charAt(i)) == null) {\n\t\t\t\tcharMap.put(s.charAt(i), 1);\n\t\t\t} else {\n\t\t\t\tint value = charMap.get(s.charAt(i));\n\t\t\t\tcharMap.put(s.charAt(i), value + 1);\n\t\t\t}\n\t\t}\n\n\t\tint highest = 0;\n\t\tint secondHighest = 0;\n\t\tint singleCharcount = 0;\n\t\tfor (Map.Entry<Character, Integer> entry : charMap.entrySet()) {\n\t\t\tint num = entry.getValue();\n\t\t\tif (num == 1) {\n\t\t\t\tsingleCharcount++;\n\t\t\t\tif (singleCharcount >= 2) {\n\t\t\t\t\treturn \"NO\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (num > highest) {\n\t\t\t\tsecondHighest = highest;\n\t\t\t\thighest = num;\n\t\t\t} else if (num > secondHighest) {\n\t\t\t\tsecondHighest = num;\n\t\t\t}\n\t\t}\n\n\t\tif (highest - secondHighest > 2) {\n\t\t\treturn \"NO\";\n\t\t} else {\n\t\t\treturn \"YES\";\n\t\t}\n\t}",
"public static boolean isCon(String s){\n boolean flag = true;\n int i = 0;\n while(flag && i < s.length()){\n if ((s.charAt(i) >= 'a' && s.charAt(i) <= 'z') || (s.charAt(i) >= 'A' && s.charAt(i) <='Z')) {\n flag = (s.charAt(i) != 'a' && s.charAt(i) != 'A' &&\n s.charAt(i) != 'e' && s.charAt(i) != 'E' &&\n s.charAt(i) != 'i' && s.charAt(i) != 'I' &&\n s.charAt(i) != 'o' && s.charAt(i) != 'O' &&\n s.charAt(i) != 'u' && s.charAt(i) != 'U' );\n }else\n flag = false;\n \n i++;\n }\n return flag;\n }",
"public static boolean[] uniqueCharacters(int index){\n\t\tint numCharacters = characters[index].length;\n\t\tboolean[] unique = new boolean[numCharacters];\n\t\t\n\t\t//Initialize array\n\t\tfor (int i = 0; i < numCharacters; i++){\n\t\t\tunique[i] = false;\n\t\t}\n\t\t\n\t\t//Check number of characters\n\t\tif (numCharacters == 1){\n\t\t\t\n\t\t\t//If no previous characters, return true\n\t\t\tif (index == 0){\n\t\t\t\tunique[0] = true;\n\t\t\t\t\n\t\t\t//Else, check for unique characters\n\t\t\t}else{\n\t\t\t\tif (characters[index][0] != characters[index - 1][0]){\n\t\t\t\t\tunique[0] = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(characters[index - 1].length == 2){\n\t\t\t\t\tunique = new boolean[2];\n\t\t\t\t\tunique[1] = true;\n\t\t\t\t\tif (characters[index - 1][0] != characters[index][0]){\n\t\t\t\t\t\tunique[0] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}else{\n\t\t\t\n\t\t\tif (index == 0){\n\t\t\t\tunique[0] = true;\n\t\t\t\tunique[1] = true;\n\t\t\t\t\n\t\t\t}else if(characters[index - 1].length == 1){\n\t\t\t\tunique[1] = true;\n\t\t\t\t\n\t\t\t\tif (characters[index][0] != characters[index - 1][0]){\n\t\t\t\t\tunique[0] = true;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif (characters[index][0] != characters[index - 1][0]){\n\t\t\t\t\tunique[0] = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (characters[index - 1].length == 1){\n\t\t\t\t\tunique[1] = true;\n\t\t\t\t\t\n\t\t\t\t}else if (characters[index][1] != characters[index - 1][1]){\n\t\t\t\t\tunique[1] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn unique;\n\t}",
"public boolean isUnique();",
"public static void findUniqueUsingHashMap(String inputString) {\n\n HashMap<Character, Integer> stringHashMap = new HashMap<>();\n for (int i = 0; i < inputString.length(); i++) {\n if (stringHashMap.containsKey(inputString.charAt(i))) {\n System.out.println(\"Input String dont have unique characters:\" + inputString);\n return;\n }\n stringHashMap.put(inputString.charAt(i), i);\n }\n System.out.println(\"Input String has unique characters \" + inputString);\n }",
"private static boolean checkPermutationCountingArray(String s1, String s2) {\n // Strings are of unequal length. Cannot be permutations.\n if (s1.length() != s2.length()) {\n return false;\n }\n\n int[] characterCount = new int[128];\n for (int i = 0; i < s1.length(); i++) {\n characterCount[s1.charAt(i)]++;\n characterCount[s2.charAt(i)]--;\n }\n for (int i = 0; i < characterCount.length; i++) {\n if (characterCount[i] != 0) return false;\n }\n return true;\n }",
"@Test\n\tvoid testFirstUniqueCharacterInAString() {\n\t\tFirstUniqueCharacterInAString tester = new FirstUniqueCharacterInAString();\n\t\tassertEquals(0, tester.firstUniqChar(\"leetcode\"));\n\t\tassertEquals(2, tester.firstUniqChar(\"loveleetcode\"));\n\t\tassertEquals(-1, tester.firstUniqChar(\"aabbcc\"));\n\t\tassertEquals(6, tester.firstUniqChar(\"aabbccd\"));\n\t\tassertEquals(0, tester.firstUniqChar(\"a\"));\n\t\tassertEquals(-1, tester.firstUniqChar(\"\"));\n\t}",
"public static boolean canFormPalindrome(String str) {\n\t\n\t// Create a count array and initialize all\n\t// values as 0\n\tint count[] = new int[NO_OF_CHARS];\n\tArrays.fill(count, 0);\n\n\t// For each character in input strings,\n\t// increment count in the corresponding\n\t// count array\n\tfor (int i = 0; i < str.length(); i++)\n\tcount[(int)(str.charAt(i))]++;\n\n\t// Count odd occurring characters\n\tint odd = 0;\n\tfor (int i = 0; i < NO_OF_CHARS; i++) \n\t{\n\tif ((count[i] & 1) == 1)\n\t\todd++;\n\n\tif (odd > 1)\n\t\treturn false;\n\t}\n\n\t// Return true if odd count is 0 or 1,\n\treturn true;\n}",
"public boolean checkIfPermutationPalindrome(String str) {\n\n Hashtable<Character, Integer> table = generateTable(str);\n\n int oneOdd = 0;\n boolean flag;\n for(char ch : table.keySet()) {\n if(table.get(ch)%2 == 1) {\n oneOdd++;\n }\n }\n if(oneOdd <= 1) {\n flag = true;\n }\n else {\n flag = false;\n }\n if(str.length() == 0) {\n flag = false;\n }\n System.out.println(flag);\n return flag;\n }",
"private boolean containsValidCharacters(String inputString)\r\n {\r\n boolean validityFlag = true;\r\n int inputStringLength = inputString.trim().length();\r\n for (int i = 0 ; i < inputStringLength ; i++)\r\n {\r\n char digit = inputString.charAt(i);\r\n if (!((digit >= 'A' && digit <= 'Z') || (digit >= 'a' && digit <= 'z') || (digit >= '0' && digit <= '9')))\r\n {\r\n validityFlag = false;\r\n break;\r\n }\r\n }\r\n return validityFlag;\r\n }"
] | [
"0.8095279",
"0.8068671",
"0.80384827",
"0.8000393",
"0.7963777",
"0.7931937",
"0.79025024",
"0.79016227",
"0.7875805",
"0.787168",
"0.78433067",
"0.78232676",
"0.7820955",
"0.78130895",
"0.7785114",
"0.7761669",
"0.7733038",
"0.77259123",
"0.77221996",
"0.7717699",
"0.7665218",
"0.7614007",
"0.76050526",
"0.76032966",
"0.7598448",
"0.75689036",
"0.75401413",
"0.75034326",
"0.7467025",
"0.7452866",
"0.74514383",
"0.74413663",
"0.7435707",
"0.7399692",
"0.7338594",
"0.73243976",
"0.72929686",
"0.71967953",
"0.71791667",
"0.7170001",
"0.71083516",
"0.70910877",
"0.7074669",
"0.7061531",
"0.70496154",
"0.70352286",
"0.7008249",
"0.70007664",
"0.69474536",
"0.690416",
"0.685485",
"0.683391",
"0.68295264",
"0.6807394",
"0.6802302",
"0.6746933",
"0.669586",
"0.66868484",
"0.6496477",
"0.64469343",
"0.6426929",
"0.6413809",
"0.63631135",
"0.63580275",
"0.6305033",
"0.62742627",
"0.62482387",
"0.62265396",
"0.62023413",
"0.6196136",
"0.61822754",
"0.61713713",
"0.6131912",
"0.6123985",
"0.61226493",
"0.61216277",
"0.6115494",
"0.60880893",
"0.60866886",
"0.6062562",
"0.60563576",
"0.604347",
"0.599506",
"0.59677655",
"0.5932165",
"0.59271777",
"0.5877163",
"0.58290637",
"0.58248866",
"0.5817667",
"0.58169454",
"0.5814265",
"0.58136517",
"0.5804842",
"0.58039343",
"0.5800477",
"0.57911956",
"0.5778171",
"0.57750356",
"0.5773533"
] | 0.76897156 | 20 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
ActionBar bar = getActionBar();
int color = Color.parseColor("#FF038f0d");
bar.setBackgroundDrawable(new ColorDrawable(color));
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] | [
"0.7249201",
"0.7204109",
"0.7197405",
"0.71792436",
"0.7109801",
"0.7041446",
"0.7040234",
"0.70145714",
"0.7011273",
"0.6983118",
"0.6946729",
"0.6940447",
"0.6936383",
"0.6920103",
"0.6920103",
"0.6893587",
"0.6885479",
"0.6877562",
"0.6877041",
"0.6864375",
"0.6864375",
"0.6864375",
"0.6864375",
"0.6854553",
"0.6848997",
"0.68213886",
"0.6819509",
"0.6814738",
"0.68146676",
"0.68146676",
"0.6807654",
"0.6802825",
"0.679964",
"0.67930657",
"0.67922",
"0.67903394",
"0.6786084",
"0.6761232",
"0.6759505",
"0.67503023",
"0.6746139",
"0.6746139",
"0.6743613",
"0.6743027",
"0.6727706",
"0.67254",
"0.67245597",
"0.67245597",
"0.6723394",
"0.67136675",
"0.67081934",
"0.6706639",
"0.67022187",
"0.6700513",
"0.66984093",
"0.66964614",
"0.66886663",
"0.6685854",
"0.6685854",
"0.6685123",
"0.66817266",
"0.66811055",
"0.6679423",
"0.66700786",
"0.66692066",
"0.66648287",
"0.6659215",
"0.6659215",
"0.6659215",
"0.665847",
"0.6656809",
"0.6656809",
"0.6656809",
"0.66543585",
"0.6653763",
"0.6652573",
"0.6650882",
"0.66493136",
"0.66489655",
"0.6648397",
"0.6648281",
"0.664721",
"0.6647127",
"0.6645251",
"0.66444296",
"0.6644408",
"0.66408044",
"0.66365176",
"0.6635421",
"0.6634293",
"0.6634293",
"0.6634293",
"0.66340095",
"0.66314715",
"0.6629901",
"0.6628624",
"0.662851",
"0.66264814",
"0.6622667",
"0.6621362",
"0.6621362"
] | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
] | [
"0.7904536",
"0.78052336",
"0.7766536",
"0.7727363",
"0.76318616",
"0.7621916",
"0.7584545",
"0.7530609",
"0.74878335",
"0.74571276",
"0.74571276",
"0.7438656",
"0.7422694",
"0.7403604",
"0.73918706",
"0.7387049",
"0.7379379",
"0.73706305",
"0.7362634",
"0.7356091",
"0.7345742",
"0.7341655",
"0.7330208",
"0.73284286",
"0.7325726",
"0.7319205",
"0.731691",
"0.73137385",
"0.7304247",
"0.7304247",
"0.73017776",
"0.7298307",
"0.72933966",
"0.7286999",
"0.7283511",
"0.72811604",
"0.72787315",
"0.7259994",
"0.7259994",
"0.7259994",
"0.72595567",
"0.72595537",
"0.72501904",
"0.7224887",
"0.7219672",
"0.7217532",
"0.72043973",
"0.72010916",
"0.7199519",
"0.71928704",
"0.71855384",
"0.7177209",
"0.71689284",
"0.7167426",
"0.715412",
"0.71537405",
"0.7135554",
"0.7134872",
"0.7134872",
"0.7129713",
"0.7129041",
"0.71240187",
"0.7123551",
"0.7123167",
"0.71221936",
"0.71173894",
"0.71173894",
"0.71173894",
"0.71173894",
"0.71170884",
"0.7116871",
"0.7116271",
"0.7114722",
"0.7112311",
"0.7109584",
"0.7108896",
"0.7105745",
"0.70993924",
"0.70979136",
"0.7095834",
"0.70936936",
"0.70936936",
"0.70863414",
"0.7083095",
"0.7081166",
"0.70801973",
"0.7073687",
"0.7068324",
"0.7061727",
"0.7060408",
"0.7060199",
"0.7051346",
"0.70376796",
"0.70376796",
"0.7035851",
"0.70354784",
"0.70354784",
"0.7032029",
"0.70307976",
"0.70294225",
"0.70193213"
] | 0.0 | -1 |
Code to sign in an existing Organization (Or Super User) | public void studentSignIn(View view){
final EditText userName = (EditText) findViewById(R.id.StudentNameSignText);
final EditText password = (EditText) findViewById(R.id.StudentPasswordSignText);
final TextView error = (TextView) findViewById(R.id.ErrorStudentSignIn);
ParseUser.logInInBackground(userName.getText().toString(), password.getText().toString(),
new LogInCallback() {
public void done(ParseUser user, ParseException e) {
if (user != null) {
ParseUser currentUser = ParseUser.getCurrentUser();
boolean isOrg = (Boolean) currentUser.get("organization");
// Make sure it is not an organization signing in
// If it is a student, then log them them in!!!!
if(!isOrg){
Intent i = new Intent(getApplicationContext(), StudentMainNav.class);
startActivity(i);
}
//Actually an organization. Log them out!!!
else{
ParseUser.logOut();
error.setText("Please log in as an organization!");
}
}
//Student user does not exist. retype name and password or create a new account
else {
if(e.getCode() == ParseException.CONNECTION_FAILED){
error.setText("Internet connection lost");
}
else if(e.getCode() == ParseException.ACCOUNT_ALREADY_LINKED){
error.setText("Already logged in");
}
else{
error.setText("Account information not recognized");
}
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void signIn() {\n }",
"String signIn(String userName, String password) throws UserNotFoundException;",
"User signIn(String login, String password);",
"public void loginCorporateByCaller(CorporateLoginData corporateLoginData){\n type(By.name(\"auth[ACCOUNT]\"),corporateLoginData.getAccountnumber());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n type(By.name(\"auth[CALLER]\"),corporateLoginData.getAccountnumber());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n }",
"private void signIn() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestEmail()\n .build();\n\n // Build a GoogleSignInClient with the options specified by gso.\n GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(getActivity(), gso);\n\n // Starting the intent prompts the user to select a Google account to sign in with\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }",
"public String signIn(String username, String password);",
"public void click_SIGN_IN() {\r\n\t\tbtn_SIGN_IN.click();\r\n\t}",
"public void signIn()\r\n {\r\n FoodCenterRequestFactory factory = AndroidRequestUtils.getFoodCenterRF(context);\r\n ClientServiceRequest service = factory.getClientService();\r\n\r\n service.login(regId).fire(this);\r\n }",
"public void signInUser(){\n Intent intent = new Intent(this, AuthUiActivity.class);\n startActivity(intent);\n }",
"private void signIn() {\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }",
"private void signIn() {\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }",
"private void signIn() {\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }",
"private void signIn(){\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n\n GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, Constants.RC_SIGN_IN);\n\n }",
"public void user_signin()\r\n\t{\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"email\")).clear();\r\n\t\tdriver.findElement(By.id(\"email\")).sendKeys(UID);\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"pass\")).clear();\r\n\t\tdriver.findElement(By.id(\"pass\")).sendKeys(PWD);\r\n\t}",
"public void onClickedActiveDirectorySignIn() {\n showProgressDialog(getString(R.string.authentication_attempting));\n // Attempt to get a user and acquireTokenSilently\n // If this fails we will do an interactive request\n Log.d(TAG, \"onClickedActiveDirectorySignIn\");\n IAccount currentAccount =\n MicrosoftIdentityHelper.getUserByPolicy(activeDirectoryApp.getAccounts(), Constants.SISU_POLICY);\n final String[] scopes = Constants.SCOPES.split(\"\\\\s+\");\n if (currentAccount != null) {\n // We have 1 user\n activeDirectoryApp.acquireTokenSilentAsync(\n scopes,\n currentAccount,\n getAuthSilentCallback());\n } else {\n // We have no user (for required policy)\n activeDirectoryApp.acquireToken(MainActivity.this, scopes, getAuthInteractiveCallback());\n }\n }",
"private void signIn() {\n mGoogleSignInClient = buildGoogleSignInClient();\n startActivityForResult(mGoogleSignInClient.getSignInIntent(), REQUEST_CODE_SIGN_IN);\n }",
"private void signIn() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }",
"private void signIn() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }",
"private void signIn() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }",
"private void signIn() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }",
"private static void signInCorpMailApp()\n\t{\n\t\t\n\t\tif(driver==null)\n\t\t\tlaunchBrowser();\n\t\t\n\t\tdriver.get(\"https://mail.nagra.com/\");\n\t\t\n\t\tCommonUtil.sleep(30);\n\t\t\n\t\t/*WebElement txtUserName = driver.findElement(By.id(\"username\"));\n\t\tWebElement txtPassword = driver.findElement(By.id(\"password\"));\n\t\t\n\t\tdriver.getTitle()\n\t\t\n\t\t//Input user name\n\t\ttxtUserName.clear();\n\t\ttxtUserName.sendKeys(username);\n\t\t\n\t\t//Input password\n\t\ttxtPassword.clear();\n\t\ttxtPassword.sendKeys(password);\n\t\t\n\t\t//Click login\n\t\tdriver.findElement(By.id(\"SubmitCreds\")).click();*/\n\t}",
"private void signIn() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, SIGN_IN_CODE);\n }",
"public void signInExistingUser(View v) {\n attemptLogin();\n\n }",
"private void signIn() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RC_SIGN_IN);\n finish();\n }",
"private void startSignIn() {\n Intent intent = AuthUI.getInstance().createSignInIntentBuilder()\n .setIsSmartLockEnabled(!BuildConfig.DEBUG)\n .setAvailableProviders(Arrays.asList(\n new AuthUI.IdpConfig.EmailBuilder().build(),\n new AuthUI.IdpConfig.GoogleBuilder().build()))\n .setLogo(R.mipmap.ic_launcher)\n .build();\n\n startActivityForResult(intent, RC_SIGN_IN);\n }",
"public void createSignInIntent() {\n List<AuthUI.IdpConfig> providers = Arrays.asList(\n new AuthUI.IdpConfig.EmailBuilder().build()\n );\n\n startActivityForResult(AuthUI.getInstance()\n .createSignInIntentBuilder()\n .setAvailableProviders(providers)\n .build(), SIGN_IN);\n }",
"public AccountPage Signup_through_loginpage() {\n\tJavascriptExecutor js = (JavascriptExecutor)driver;\n\tjs.executeScript( \"arguments[0].click();\", SignUpButton );\n\tsignupPage.SignUp_Form();\n\treturn new AccountPage();\n\t}",
"@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}",
"@Test\r\n\tpublic void test_2_SignIn() {\n\t\tdriver.findElement(By.cssSelector(\"#nav-link-accountList > span.nav-line-2\")).click();\r\n\t\tString signIn = driver.getTitle();\r\n\t\tAssert.assertEquals(signIn, \"Amazon Sign In\");\r\n\t\t// enter email\r\n\t\tdriver.findElement(By.id(\"ap_email\")).sendKeys(email);\r\n\t\t// enter password\r\n\t\tdriver.findElement(By.id(\"ap_password\")).sendKeys(password);\r\n\t\t// click on submit\r\n\t\tdriver.findElement(By.id(\"signInSubmit\")).click();\r\n\t\tSystem.out.println(\"Sign in is successful\");\r\n\t}",
"private void signIn() {\n // [START_EXCLUDE silent]\n // [END_EXCLUDE]\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }",
"public void loginCorporate(CorporateLoginData corporateLoginData) {\n type(By.name(\"auth[ACCOUNT]\"), corporateLoginData.getAccountnumber());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n if (isSelectedPresent(By.name(\"auth[PIN]\"))){ // searching the pin field, if true - fills pin and caller\n type(By.name(\"auth[PIN]\"), corporateLoginData.getPin());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n if (isSelectedPresent(By.name(\"auth[CALLER]\"))) {\n type(By.name(\"auth[CALLER]\"), corporateLoginData.getCaller());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n }\n } else if (isSelectedPresent(By.name(\"auth[PASSWORD]\"))){ // searching the password field, if true - fills password and caller\n type(By.name(\"auth[PASSWORD]\"), corporateLoginData.getPin());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n if (isSelectedPresent(By.name(\"auth[CALLER]\"))) {\n type(By.name(\"auth[CALLER]\"), corporateLoginData.getCaller());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n }\n } else if (isSelectedPresent(By.name(\"auth[CALLER]\"))){ // searching the caller field, if true - fills caller\n type(By.name(\"auth[CALLER]\"), corporateLoginData.getCaller());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n }\n }",
"public void clickSignIn() {\r\n\t\tdriver.findElement(signIn).click();\r\n\t}",
"private void signIn() {\n Utility.showLoader(this);\n mGoogleApiClient.clearDefaultAccountAndReconnect();\n\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }",
"public LandingPage loginToAccount(){\n\t\taction.WaitForWebElement(linkLogin)\n\t\t\t .Click(linkLogin);\n\t\treturn this;\n\t}",
"public void UserSignInMethod(){\n // Passing Google Api Client into Intent.\n Intent AuthIntent = Auth.GoogleSignInApi.getSignInIntent(googleApiClient);\n startActivityForResult(AuthIntent, REQUEST_SIGN_IN_CODE);\n }",
"private void signInMethod() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n\n // Build a GoogleSignInClient with the options specified by gso.\n mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n }",
"public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}",
"public ConsumersLOEPage signIn (User user) {\r\n clickEmailField(driver);\r\n clearEmailField();\r\n inputEmail(user.getEmail());\r\n //\r\n clickPasswordField(driver);\r\n clearPasswordField();\r\n inputPassword(user.getPassword());\r\n //\r\n getsignInButtonField().submit();\r\n //\r\n return new ConsumersLOEPage(driver, user);\r\n }",
"@Override\n public void run() {\n try {\n stringOrganizationIds.remove(defaultOrg);\n List<Integer> organizationIds = FluentIterable.from(stringOrganizationIds)\n .transform(Ints.stringConverter()).toList();\n\n newUser.setActive(false);\n UserProfileStruct savedUser = createAccountInternal(conn, newUser, password, resetQuestion,\n resetAnswer, givenName, surname, organizationId);\n for (Integer orgId : organizationIds) {\n Profile profile = new Profile();\n profile.setGivenName(givenName);\n profile.setSurname(surname);\n profile.setOrganizationId(orgId);\n profile.setUserId(savedUser.credentialedUser.getId());\n profile = profilePersister.createProfile(profile, conn);\n\n authService.grantAtLeast(profile.getId(), ROLE_READER, orgId);\n authService.grantAtLeast(orgId, ROLE_ADMIN, profile.getId());\n }\n\n User user = savedUser.credentialedUser.getUser();\n user.setActive(true);\n persistenceService.process(conn, new UserPersister.UpdateUserFunc(user));\n conn.commit();\n } catch (Exception e) {\n closeConnection(conn);\n }\n }",
"@Given(\"^Open SignIn site$\")\t\t\t\t\t\n public void Open_SignIn_site() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n \tdriver.navigate().to(\"https://accounts.google.com/ServiceLogin/identifier?flowName=GlifWebSignIn&flowEntry=AddSession\");\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\t\t\n }",
"public void signIn(View view) {\n requestSignIn();\n }",
"public static void signin() {\n browseSetUp(chromeDriver, chromeDriverPath, url);\n // click on my account web element\n driver.findElement(By.cssSelector(\"#headerMyAccount > div.MyAccount__icon > div > div.HeaderIcon__primary > svg\")).click();\n // step two: enter your credentials\n //valid user name:\n driver.findElement(By.cssSelector(\"#SPSOSignIn > a > span\")).click();\n // step three: enter valid email\n driver.findElement(By.cssSelector(\"#email\")).sendKeys(\"ibrahimsidisaid@gmail.com\");\n // valid passoword:\n driver.findElement(By.id(\"password-input-field\")).sendKeys(\"java206java206\");\n // click on sign in\n driver.findElement(By.cssSelector(\"#single-signin__body > div > div.col__12-12.col__8-12--xs.u--paddingNone-top.col__4-12--lg.col__4-12--md.col__6-12--sm > form > button > span\")).click();\n\n\n\n\n }",
"public void signIn(String userName, String password) {\n\t}",
"public ProtocolProviderService signin()\n throws OperationFailedException\n {\n firstWizardPage.commitPage();\n\n return signin(registration.getUserID(), null);\n }",
"private void signIn(JSONArray parameter) {\n if (parameter.size() == 1) {\n nick = parameter.get(0).toString();\n clientInstance = new Client(client, this, nick);\n if (MailboxServer.addClientToList(nick, clientInstance) == true) {\n clientResponse(\"User \" + nick + \" connected\");\n }\n } else {\n failedClientResponse(\"Wrong Parameters\");\n }\n }",
"public HomePage clickOnSignInButton() {\n driver.findElement(signInButton).submit();\n\n // Return a new page object representing the destination. Should the login page\n // ever\n // go somewhere else (for example, a legal disclaimer) then changing the method\n // signature\n // for this method will mean that all tests that rely on this behaviour won't\n // compile.\n return new HomePage(driver);\n }",
"@Override\r\n protected final String loginAsAutoUser(boolean launch) {\r\n \t//login(DDConstants.AUTO_USERNAME, DDConstants.AUTO_PASSWORD, launch);\r\n \tsuper.login(getAutoUserName(), getAutoPassword(), launch);\r\n\r\n \tchooseApp();\r\n\r\n \treturn getCurrentUser();\r\n }",
"protected void launchSignIn()\r\n {\r\n \tIntent i = new Intent(this, LoginActivity.class);\r\n \tstartActivity(i);\r\n }",
"private void signIn() {\n final String email = ((EditText)findViewById(R.id.etSignInEmail)).getText().toString();\n final String password = ((EditText)findViewById(R.id.etSignInPassword)).getText().toString();\n\n mAuth.signInWithEmailAndPassword(email, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success\n updateUI();\n } else {\n // Sign in failure\n Toast.makeText(LoginActivity.this, \"Incorrect email and/or password.\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"public void signin() {\n\t\tStage window = new Stage();\n\t\t//Scene scene = new Scene(primarygridpane,400,500);\n\t\tSigninForm signin = new SigninForm();\n\t\tsignin.start(window);\n\t\tsignin.isLogged(this);\n\t}",
"public void signIn(View view) {\n\n //retrieve the elements containing email and pass input\n EditText emailEle = findViewById(R.id.email);\n EditText passwordEle = findViewById(R.id.pass);\n //retrieve the input\n String emailInput = emailEle.getText().toString();\n String passwordInput = passwordEle.getText().toString();\n\n //attempt to authenticate with the input. if we did, go to doctors list page\n email = emailInput;\n\n //verify that there is input.\n if(email.equals(\"\") || passwordInput.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Please input your username and password.\", Toast.LENGTH_SHORT)\n .show();\n return;\n }\n\n auth(emailInput, passwordInput);\n }",
"public Person login(String username, String password);",
"public abstract User login(User data);",
"public GitHubSignInPage openSignInPage() {\n\t\tsignInBtn = driver.findElement(By.linkText(SIGNIN_BTN_ID));\n\t\tsignInBtn.click();\n\t\tSystem.out.println(\"Navigating to signin page...\");\n\n\t\treturn new GitHubSignInPage(driver);\n\t}",
"public void LogIn() {\n\t\t\r\n\t}",
"public interface SigninRepository {\n void signin(String email, String username, String password);\n}",
"public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}",
"private void loginAccount() {\n\t\taccountManager.loginAccount(etEmail.getText().toString(), etPassword.getText().toString());\n\n\t}",
"public int logIn() {\n guestPresenter.printLogInMessage();\n int id = requestInt(\"id\");\n char[] password = requestString(\"password\").toCharArray();\n UserManager.UserType user = guestManager.logIn(id, password);\n\n if (user == null) {\n guestPresenter.logInFailure();\n return -1;\n } else {\n return id;\n }\n }",
"void signInComplete();",
"public void login(User user);",
"private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}",
"private void signInFeature() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestEmail()\n .build();\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .enableAutoManage(this, this)\n .addApi(Auth.GOOGLE_SIGN_IN_API, gso)\n .build();\n\n Button signInButton = (Button) findViewById(R.id.login_button);\n signInButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n signIn();\n }\n });\n }",
"@Test\n\tpublic void loginToOpentaps() {\n\t\tinvokeApp(\"chrome\", \"http://demo1.opentaps.org\");\n\n\t\t// Step 2: Enter user name\n\t\tenterById(\"username\", \"DemoSalesManager\");\n\n\t\t// Step 3: Enter Password\n\t\tenterById(\"password\", \"crmsfa\");\n\n\t\t// Step 4: Click Login\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\t\t// Step 5: Verify Username\n\t\tverifyTextContainsByXpath(\"//div[@id='form']/h2\", \"Welcome\");\n\t\t\n\t\t// Step 6: Click Logout\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\n\n\n\t}",
"@Override\n public long getOrganizationId() {\n return _usersCatastropheOrgs.getOrganizationId();\n }",
"public SignInPage clickSignin() {\n\t\tclick(SIGNIN_LOCATOR);\n\t\treturn new SignInPage(driver);\n\t\t\n\t}",
"@Override\n public boolean auth(String email, String pseudonyme) {\n Properties props = new Properties();\n props.setProperty(\"org.omg.CORBA.ORBInitialHost\", \"localhost\");\n props.setProperty(\"org.omg.CORBA.ORBInitialPort\", \"3700\");\n props.setProperty(\"java.naming.factory.initial\", \"com.sun.enterprise.naming.SerialInitContextFactory\");\n props.setProperty(\"java.naming.factory.url.pkgs\", \"com.sun.enterprise.naming\");\n props.setProperty(\"java.naming.factory.state\", \"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl\");\n \n StatelessDirectoryManagerBeanRemote sb = null;\n InitialContext ic;\n \n try {\n ic = new InitialContext(props);\n sb = (StatelessDirectoryManagerBeanRemote)ic.lookup(\"com.master2.datascale.directorymanager.bean.StatelessDirectoryManagerBeanRemote\");\n\t\t\t\n } catch (NamingException ex) {\n Logger.getLogger(StatefulAuctionManagerBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n\t\t\t\n return sb.auth(email, pseudonyme);\n }",
"public long getOrganizationId();",
"protected void login() {\n\t\t\r\n\t}",
"public User doAuthentication(String account, String password);",
"public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }",
"@Override\n public void onHuaweiLogoClick() {\n// HuaweiIdAuthParams authParams= new HuaweiIdAuthParamsHelper(HuaweiIdAuthParams.DEFAULT_AUTH_REQUEST_PARAM).setAccessToken().createParams();\n// HuaweiIdAuthService service = HuaweiIdAuthManager.getService (MainActivity.this, authParams);\n// startActivityForResult(service.getSignInIntent(), AppConstants.REQUEST_SIGN_IN_LOGIN_CODE);\n\n// if (AGConnectAuth.getInstance().getCurrentUser() != null) {\n// onLoginCorrect();\n// }\n\n HuaweiIdAuthParamsHelper huaweiIdAuthParamsHelper = new HuaweiIdAuthParamsHelper(HuaweiIdAuthParams.DEFAULT_AUTH_REQUEST_PARAM);\n HuaweiIdAuthParams authParams = huaweiIdAuthParamsHelper.setAccessToken().createParams();\n service = HuaweiIdAuthManager.getService(MainActivity.this, authParams);\n startActivityForResult(service.getSignInIntent(), AppConstants.REQUEST_SIGN_IN_LOGIN_CODE);\n }",
"@Override\r\n\tpublic void loginIn(Account account) throws ServiceException {\n\r\n\t}",
"public void shiro_signin(){\n Factory<SecurityManager> factory = new IniSecurityManagerFactory(\"classpath:shiro.ini\");\n SecurityManager securityManager = factory.getInstance();\n\n // for this simple example quickstart, make the SecurityManager\n // accessible as a JVM singleton. Most applications wouldn't do this\n // and instead rely on their container configuration or web.xml for\n // webapps. That is outside the scope of this simple quickstart, so\n // we'll just do the bare minimum so you can continue to get a feel\n // for things.\n SecurityUtils.setSecurityManager(securityManager);\n\n // Now that a simple Shiro environment is set up, let's see what you can do:\n\n // get the currently executing user:\n Subject currentUser = SecurityUtils.getSubject();\n\n // Do some stuff with a Session (no need for a web or EJB container!!!)\n Session session = currentUser.getSession();\n session.setAttribute(\"someKey\", \"aValue\");\n String value = (String) session.getAttribute(\"someKey\");\n if (value.equals(\"aValue\")) {\n logger.info(\"Retrieved the correct value! [\" + value + \"]\");\n }\n\n // let's login the current user so we can check against roles and permissions:\n if (!currentUser.isAuthenticated()) {\n UsernamePasswordToken token = new UsernamePasswordToken(\"root\", \"root\");\n token.setRememberMe(true);\n try {\n currentUser.login(token);\n } catch (UnknownAccountException uae) {\n logger.info(\"There is no user with username of \" + token.getPrincipal());\n } catch (IncorrectCredentialsException ice) {\n logger.info(\"Password for account \" + token.getPrincipal() + \" was incorrect!\");\n } catch (LockedAccountException lae) {\n logger.info(\"The account for username \" + token.getPrincipal() + \" is locked. \" +\n \"Please contact your administrator to unlock it.\");\n }\n // ... catch more exceptions here (maybe custom ones specific to your application?\n catch (AuthenticationException ae) {\n //unexpected condition? error?\n }\n }\n\n //say who they are:\n //print their identifying principal (in this case, a username):\n logger.info(\"User [\" + currentUser.getPrincipal() + \"] logged in successfully.\");\n\n //test a role:\n if (currentUser.hasRole(\"admin\")) {\n logger.info(\"has admin role\");\n } else {\n logger.info(\"no admin role\");\n }\n\n //test a typed permission (not instance-level)\n if (currentUser.isPermitted(\"order:read:finished\")) {\n logger.info(\"has order read \");\n } else {\n logger.info(\"no order read \");\n }\n }",
"private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }",
"public void login(HttpServletRequest req, HttpServletResponse res) throws IOException {\n\n // Client credentials\n Properties p = GlobalSettings.getNode(\"oauth.password-credentials\");\n String clientId = p.getProperty(\"client\");\n String secret = p.getProperty(\"secret\");\n ClientCredentials clientCredentials = new ClientCredentials(clientId, secret);\n\n // User credentials\n String username = req.getParameter(\"username\");\n String password = req.getParameter(\"password\");\n UsernamePassword userCredentials = new UsernamePassword(username, password);\n\n // Create request\n TokenResponse oauth = TokenRequest.newPassword(userCredentials, clientCredentials).post();\n if (oauth.isSuccessful()) {\n PSToken token = oauth.getAccessToken();\n\n // If open id was defined, we can get the member directly\n PSMember member = oauth.getMember();\n if (member == null) {\n member = OAuthUtils.retrieve(token);\n }\n\n if (member != null) {\n OAuthUser user = new OAuthUser(member, token);\n HttpSession session = req.getSession(false);\n String goToURL = this.defaultTarget;\n if (session != null) {\n ProtectedRequest target = (ProtectedRequest)session.getAttribute(AuthSessions.REQUEST_ATTRIBUTE);\n if (target != null) {\n goToURL = target.url();\n session.invalidate();\n }\n }\n session = req.getSession(true);\n session.setAttribute(AuthSessions.USER_ATTRIBUTE, user);\n res.sendRedirect(goToURL);\n } else {\n LOGGER.error(\"Unable to identify user!\");\n res.sendError(HttpServletResponse.SC_FORBIDDEN);\n }\n\n } else {\n LOGGER.error(\"OAuth failed '{}': {}\", oauth.getError(), oauth.getErrorDescription());\n if (oauth.isAvailable()) {\n res.sendError(HttpServletResponse.SC_FORBIDDEN);\n } else {\n res.sendError(HttpServletResponse.SC_BAD_GATEWAY);\n }\n }\n\n }",
"@NotNull public Builder authenticator(@NotNull Organization.Builder organization) {\n putValue(\"authenticator\", organization.build());\n return this;\n }",
"public void clickSignInButton() {\r\n\t\tsignInButton = driver.findElement(signInButtonSelector);\r\n\t\tsignInButton.click();\r\n\t\t\r\n\t}",
"public AgentDTO login(String login, String senha);",
"@Test\n public void ValidLoginTest() throws Exception {\n openDemoSite(driver).typeAuthInfo(loginEmail, \"Temp1234%\").signInByClick();\n }",
"@Override\n public boolean createAccount(String fullName, String username, String password, String email){\n // will change this if we make some errors.\n if(!usernameToPerson.containsKey(username)) { // check that there is not someone with that username\n Organizer og = new Organizer(fullName, username, password, email);\n updateUsernameToPerson(og.getUsername(), og); // see below\n idToPerson.put(og.getID(), og);\n return true;\n }\n\n return false;\n\n }",
"String registerUserWithGetCurrentSession(User user);",
"@Override\r\n\tpublic void login() {\n\t\t\r\n\t}",
"private void startSignIn() {\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }",
"private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }",
"@Parameters(\"browser\")\n @Test\n public void ossSignInValidTest() {\n OSSHome ossHome = new OSSHome();\n OSSSignIn ossSignIn =\n ossHome.header.navigateToOSSSignIn().signInto(\"john.orourke@sqs.com\", \"123456\");\n assertThat(ossSignIn.header.viewCustomerAccount, text(\"Please signup\"));\n }",
"public void clickSignInButton() {\r\n\t\tdriver.findElement(signInButton).click();\r\n\t}",
"private void signIn()\n {\n Intent intent = Auth.GoogleSignInApi.getSignInIntent(googleApiClient);\n // If user was already signed in earlier, log them out first\n if(signOutCode != 0)\n {\n signOut();\n }\n\n // Runtime permission for locations and network\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(MainActivity.this, new String[]{\n android.Manifest.permission.INTERNET,\n android.Manifest.permission.ACCESS_COARSE_LOCATION,\n android.Manifest.permission.ACCESS_FINE_LOCATION,\n android.Manifest.permission.ACCESS_NETWORK_STATE,\n android.Manifest.permission.SYSTEM_ALERT_WINDOW,\n android.Manifest.permission.WRITE_EXTERNAL_STORAGE\n\n }, PERMISSION);\n }\n startActivityForResult(intent, IntentConstants.INTENT_GOOGLE_REQUEST_CODE);\n\n }",
"@BeforeGroups(groups = \"REGION_ADMIN\")\n protected void loginRegionAdmin() throws Exception {\n login(\"region@eos.cz\", \"region\");\n }",
"@NotNull public Builder authenticator(@NotNull Organization organization) {\n putValue(\"authenticator\", organization);\n return this;\n }",
"public void enterOrgName() throws IOException {\n\t\tLoginSignupCompanyPage sp = new LoginSignupCompanyPage(driver);\n\t\tlog.info(\"Verifying the OrgName is available or not\");\n\t\tAssert.assertTrue(enterOrgName.isDisplayed());\n\t\tenterOrgName.sendKeys(BasePage.getCellData(xlsxName, sheetName, 13, 0));\n\n\t}",
"private void firebaseAuthLogin() {\n startActivityForResult(AuthUI.getInstance()\n .createSignInIntentBuilder()\n .setAvailableProviders(getProvider())\n .setLogo(R.drawable.logo_login)\n .setTheme(R.style.LoginTheme)\n .setIsSmartLockEnabled(false)\n .setTosAndPrivacyPolicyUrls(\n \"https://www.freeprivacypolicy.com/privacy/view/3ccea0b97b785480095259db0c31569d\",\n \"https://www.freeprivacypolicy.com/privacy/view/3ccea0b97b785480095259db0c31569d\")\n .build(), REQUEST_CODE_LOGIN);\n }",
"String organizationId();",
"private void startSignIn() {\n\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RES_CODE_SIGN_IN);\n }",
"@Override\r\n\tpublic int login(String email, String password) throws SQLException {\r\n\t\tint ID = companiesDAO.isCompanyExistsInt(email, password);\r\n\t\tif (ID > 0) {\r\n\t\t\tthis.companyID = ID;\r\n\t\t\treturn companyID;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"private void loggedInUser() {\n\t\t\n\t}",
"protected Response login() {\n return login(\"\");\n }",
"EmployeeMaster authenticateUser(int employeeId, String password);",
"User login(String email, String password) throws AuthenticationException;",
"protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }"
] | [
"0.6325741",
"0.63103145",
"0.6278437",
"0.60852826",
"0.60404956",
"0.59590936",
"0.59496146",
"0.5924416",
"0.58762026",
"0.58749807",
"0.58749807",
"0.58749807",
"0.5795834",
"0.5792392",
"0.57872117",
"0.57686925",
"0.5718239",
"0.5718239",
"0.5718239",
"0.5718239",
"0.57041675",
"0.5675861",
"0.5664674",
"0.5615986",
"0.5612925",
"0.55911297",
"0.5584047",
"0.5573915",
"0.55675185",
"0.555097",
"0.55424345",
"0.5490451",
"0.54778564",
"0.54768485",
"0.5468247",
"0.545514",
"0.5454796",
"0.5448174",
"0.5435834",
"0.5430234",
"0.5417385",
"0.54137427",
"0.5409559",
"0.5404976",
"0.53941095",
"0.53939927",
"0.5387987",
"0.53869385",
"0.53760225",
"0.5365809",
"0.5361773",
"0.5354673",
"0.5346549",
"0.5342283",
"0.5342153",
"0.53389347",
"0.53346467",
"0.53302723",
"0.5321189",
"0.5320775",
"0.53138655",
"0.5302398",
"0.52892166",
"0.52712595",
"0.5265058",
"0.5262718",
"0.52586454",
"0.5256066",
"0.5246455",
"0.524528",
"0.52424526",
"0.5242387",
"0.5237546",
"0.5230839",
"0.52292466",
"0.522391",
"0.52215743",
"0.5221148",
"0.521982",
"0.52184206",
"0.52169484",
"0.5215614",
"0.5210646",
"0.52069366",
"0.52043164",
"0.5189805",
"0.5188568",
"0.5185583",
"0.5185297",
"0.51847273",
"0.51841956",
"0.51807094",
"0.51761055",
"0.51739067",
"0.51683164",
"0.51582325",
"0.5151335",
"0.51465476",
"0.51450866",
"0.5136833"
] | 0.54733497 | 34 |
This set the range of numbers that the random will be generated from. | public static void main(String[] Args) {
//Generate a lottery number
lottery = (int) (Math.random() * RAND1);
//Prompt the user to enter a guess
Scanner input = new Scanner(System.in);
System.out.print("Enter your lottery pick (two digits): ");
guess = input.nextInt();
// Get digits from lottery
lotteryDigit1 = lottery / MULTI;
lotteryDigit2 = lottery % MULTI;
System.out.printf("The lottery number is " + lottery);
//Check the Guess
if (guess == lottery)
System.out.println("Exact match: you win $10,000");
else if (guessDigit2 == lotteryDigit1 && guessDigit1 == lotteryDigit2)
System.out.println("Match all digits: you win $3,000");
else if (guessDigit1 == lotteryDigit1 || guessDigit1 == lotteryDigit2
|| guessDigit2 == lotteryDigit1 || guessDigit2 == lotteryDigit2)
System.out.println("Match one digit: you win $1,000");
else
System.out.println(" Sorry, No Match ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RangeRandom(final float min, final float max) {\n this.max = max;\n this.min = min;\n this.random = new Random(System.nanoTime());\n }",
"public void setRange(Range range) { setRange(range, true, true); }",
"public static int customRandom(int range)\n {\n \tint random = (int)(Math.random()*10)%range;\n\t\n\treturn random;\n }",
"private void setRand(){\n rand = generator.nextInt(9) + 1;\n }",
"public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}",
"void assignRange() {\n rangeIndex = (int) Math.floor(value / step);\n }",
"private int _getRandomFromRange(int min, int max) {\n\t \n return min + random_.nextInt(max - min + 1);\n }",
"private int randomRange(int min, int max) {\n\t\tRandom random = new Random();\n\t\treturn random.nextInt((max - min) + 1) + min;\n\t}",
"public void setRange(int min, int max) {\n range = new PriceRange();\n range.setMaximum(max);\n range.setMinimum(min);\n }",
"private void setDefaultValidRange ()\r\n\t{\r\n\t\tm_lowerBounds = Integer.MIN_VALUE;\r\n\t\tm_upperBounds = Integer.MAX_VALUE;\r\n\t}",
"public abstract void setRange(double value, int start, int count);",
"public void speedRange1()\n\t{\n\t\trange = (gen.nextInt(upper1 - lower1)+1) + lower1;\n\t\tspeedBalloonY1 = range;\n\t}",
"public void speedRange5()\n\t{\n\t\trange = (gen.nextInt(upper5 - lower5)+1) + lower5;\n\t\tspeedBalloonY5 = range;\n\t}",
"public SettingInteger setValidRange(int min, int max) { _minValue = min; _maxValue = max; return this; }",
"private void initGeneValueDistributionRangeVector() {\n\t\tfor (int i = 0; i < GATracker.GENE_VALUE_DISTRIBUTION_SIZE; i++) {\n\t\t\t// Rounding the number off to the 4 significand digits\n\t\t\tgene_value_distribution_range[i] = i;\n\n\t\t}\n\t}",
"public void setGivenNumbers(int numbers) {\r\n\t\tthis.givenNumbers= numbers;\r\n\t}",
"public void speedRange4()\n\t{\n\t\trange = (gen.nextInt(upper4 - lower4)+1) + lower4;\n\t\tspeedBalloonY4 = range;\n\t}",
"public void set_random_choice()\r\n\t{\r\n\t\tfor (int i=0 ; i<size ; i++)\r\n\t\t{\r\n\t\t\tnumbers.add(get_not_selected_random_digit());\r\n\t\t}\r\n\t}",
"public void setRange(double min, double max) {\n super.setRange(min, max);\n }",
"int RandomGenerator0To29 (){\n\t\t int randomInt2 = 0;\n\t\t Random randomGenerator2 = new Random();\n\t\t for (int idx2 = 1; idx2 <= 10; ++idx2) {\n\t\t\t randomInt2 = randomGenerator2.nextInt(30);\n\t\t }\n\t\t return randomInt2;\n\t }",
"private static int randomBetween(Random r, int min, int max) {\n return r.nextInt(max - min) + min;\n }",
"public void setSightRange(int n){\n\tsightRange = n;\n }",
"public synchronized void setTargetRange(double minTarget, double maxTarget)\n {\n final String funcName = \"setTargetRange\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"min=%f,max=%f\", minTarget, maxTarget);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n this.minTarget = minTarget;\n this.maxTarget = maxTarget;\n }",
"public void speedRange3()\n\t{\n\t\trange = (gen.nextInt(upper3 - lower3)+1) + lower3;\n\t\tspeedBalloonY3 = range;\n\t}",
"public static void main(String[] args) {\n System.out.println(\"Random Number is :\"+ Range());\n }",
"public DoubleGenerator range(double min, double max) {\n this.max = max;\n this.min = min;\n return this;\n }",
"public LongRange(long number) {\n/* 73 */ this.min = number;\n/* 74 */ this.max = number;\n/* */ }",
"public void setValidRange (int lowerBounds, int upperBounds)\r\n\t{\r\n\t\tm_lowerBounds = lowerBounds;\r\n\t\tm_upperBounds = upperBounds;\r\n\t}",
"public SpriteIndexRandom(int min, int max) {\n\n this.min = min;\n this.max = max;\n }",
"public void setToRandomValue(RandomGenerator a_numberGenerator) {\n // maps the randomly determined value to the current bounds.\n // ---------------------------------------------------------\n setAllele(new Float( (m_upperBound - m_lowerBound) *\n a_numberGenerator.nextFloat() + m_lowerBound));\n }",
"private int randBetween(int start, int end) {\n\t\treturn start + (int)Math.round(Math.random() * (end - start));\n\t}",
"private int getRandomNumberInRange(int min, int max) {\r\n\r\n\t\tRandom r = new Random();\r\n\t\treturn ((r.nextInt(max - min) + 1) + min)*40;\r\n\t}",
"public void randomize() {\n\t\tx = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t\ty = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t}",
"public static void setRange(int max) {\r\n\t\tColors.max = max;\r\n\t}",
"@Override\n\tpublic void setAge () {\n\t\t// defining the random range for age between 1 up to 50\n\t\tint age = 1 + (int)(Math.random()*(3));\n\t\tthis.age = age;\n\t}",
"public void setRange(@IntRange(from = MIN_RANGE) int range) {\n setRange(mRangeStart, range, mIsPositive);\n }",
"Range controlLimits();",
"public void setCoords() \r\n {\r\n \tthis.coordX = rand.nextInt(10);\r\n \tthis.coordY = rand.nextInt(10);\r\n }",
"private static int randomNumberBetween(final int start, final int end) {\n\t\treturn start + (int) Math.round(Math.random() * (end - start));\n\t}",
"public void setRange(double lower, double upper) {\n/* 625 */ if (lower >= upper) {\n/* 626 */ throw new IllegalArgumentException(\"Requires 'lower' < 'upper'.\");\n/* */ }\n/* 628 */ setRange(new DateRange(lower, upper));\n/* */ }",
"private void initialiseNumbers() {\r\n double choice = Math.random();\r\n sourceNumbers = new int[6];\r\n if(choice<0.8) {\r\n //one big number, 5 small.\r\n sourceNumbers[0] = (Integer) bigPool.remove(0);\r\n for( int i=1; i<6; i++) {\r\n sourceNumbers[i] = (Integer) smallPool.remove(0);\r\n }\r\n } else {\r\n //two big numbers, 5 small\r\n sourceNumbers[0] = (Integer) bigPool.remove(0);\r\n sourceNumbers[1] = (Integer) bigPool.remove(0);\r\n for( int i=2; i<6; i++) {\r\n sourceNumbers[i] = (Integer) smallPool.remove(0);\r\n }\r\n }\r\n\r\n //for target all numbers from 101 to 999 are equally likely\r\n targetNumber = 101 + (int) (899 * Math.random());\r\n }",
"public static void rand_generator(int[] ran,int n,int min, int max){\r\n Random r1 = new Random(); // rand function\r\n for(int i=0;i<n;i++)\r\n {\r\n ran[i] = r1.nextInt((max - min) + 1) + min; // saving the random values in the corresponding arrays\r\n }\r\n }",
"private static int getRandomNumber(int min, int max) \n { //generates a random number within a range\n return (min + rand.nextInt((max - min) + 1));\n }",
"public int randomWithRange(){\n\r\n\t\tint[] diceRolls = new int[4];//roll four 6-sided dices\r\n\t\tint range;\r\n\t\tfor(int i = 0; i<diceRolls.length;i++) {\r\n\t\t\t//add each dice i rolled into an array\r\n\t\t\trange = 6;\r\n\t\t\tdiceRolls[i] = (int)(Math.random() * range) + 1;//assign a number btw 1-6\r\n\t\t}\r\n\t\tint smallest=diceRolls[0];\r\n\t\tfor(int i = 1; i<diceRolls.length; i++) {//will check for the smallest rolled dice\r\n\t\t\tif(diceRolls[i]<smallest) \r\n\t\t\t\tsmallest=diceRolls[i];\t\t\r\n\t\t}\r\n\t\tint sum=0;\r\n\t\tfor(int i = 0; i<diceRolls.length;i++) {//adds up all the sum\r\n\t\t\tsum = sum+diceRolls[i];\r\n\t\t}\r\n\t\treturn sum-smallest;//subtract by the smallest dice from the sum\r\n\t}",
"@Test\n public void testGetRandomRange() {\n // XXX what should be tested?\n // bad values to the range?\n // min == max?\n Assert.assertTrue(true);\n }",
"private int getRandomNumberInRange(int min, int max) {\n Random rand = new Random();\n return rand.nextInt((max - min) + 1) + min;\n }",
"public void setXDataRange(float min, float max);",
"public void setRandomGenes(int i){\n if (i > populationSize){\n throw new IllegalArgumentException(\"The number of random genes per generation must not be greater than the population size\");\n }\n randGenes = i;\n }",
"public void setRange(boolean range) {\r\n this.range = range;\r\n }",
"public Range(int minIn, int maxIn) {\n min = minIn;\n max = maxIn;\n }",
"public static int randomRangeBound(int minDigits, int maxDigits) {\r\n int digitBoundDiff = maxDigits - minDigits + 1;\r\n int i = rn.nextInt() % digitBoundDiff;\r\n if (i < 0) {\r\n i = -i;\r\n }\r\n return minDigits + i;\r\n }",
"protected int random(int min, int max) {\n\t\treturn this.rand.nextInt(max-min) + min;\n\t}",
"public int getRandomNumberInInterval() {\n\t\treturn getRandomNumberUsingNextInt(min, max);\n\t}",
"private int randomIntRange(int min, int max) {\r\n Random random = new Random();\r\n if (min < 0 || max < 0) {\r\n return (random.nextInt(Math.abs(max - min)) + Math.abs(min) + 1) * -1;\r\n }\r\n return random.nextInt(max - min) + min + 1;\r\n }",
"public void setLeftRange(int min, int max) {\n leftBeginning = min;\n leftEnd = max;\n }",
"@Override\n public int[] next() {\n min = rand.nextInt(100);\n max = rand.nextInt(100);\n Thread.yield();\n if (min > max) max = min;\n int[] ia = {min, max};\n return ia;\n }",
"public void setRandomX(int x) {\r\n\t\tthis.x1 = (int) (Math.random()*1000);\r\n\t}",
"public void setEffectiveRange(int value) {\n this.effectiveRange = value;\n }",
"@Override\n public void setMinRange(int minRange) {\n this.minRange = minRange;\n }",
"public void setValue(int n) {\r\n Throwable t = new Throwable();\r\n t.printStackTrace();\r\n int newValue = Math.max(n, min);\r\n if (newValue + getExtent() > max) {\r\n newValue = max - getExtent();\r\n }\r\n\r\n setRangeProperties(newValue, getExtent(), min, max, isAdjusting);\r\n }",
"public void setRightRange(int min, int max) {\n rightBeginning = min;\n rightEnd = max;\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tint max = 5;\r\n\t\tint min = 1;\r\n\t\tint r = random(min,max);\r\n\t\tSystem.out.println(r);\r\n\t\t\r\n\t}",
"private static int generateRandom(int min, int max) {\n // max - min + 1 will create a number in the range of min and max, including max. If you don´t want to include it, just delete the +1.\n // adding min to it will finally create the number in the range between min and max\n return r.nextInt(max-min+1) + min;\n }",
"public void setRange(int start, int end) {\n\t\tmStart = start;\n\t\tmEnd = end;\n\t\tmCurrent = start;\n\t\tupdateView();\n\t}",
"public static int randomNumber100(){\r\n int max = 100;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }",
"public void setMinRange(final int pMinRange) {\r\n fMinRange = pMinRange;\r\n }",
"public void setTimeRange(int itmin, int itmax) {\n _itmin = itmin;\n _itmax = itmax;\n }",
"private int generateWholoeNumInRange( int min, int max ) {\r\n\r\n // Evaluate random number from min to max including min and max\r\n return (int)(Math.random()*(max - min + 1) + min);\r\n\r\n }",
"private static int getRandomNumberInRange(int min, int max) {\n\n if (min >= max) {\n throw new IllegalArgumentException(\"max must be greater than min\");\n }\n Random r = new Random();\n return r.nextInt((max - min) + 1) + min;\n }",
"public void speedRange2()\n\t{\n\t\trange = (gen.nextInt(upper2 - lower2)+1) + lower2;\n\t\tspeedBalloonY2 = range;\n\t}",
"private void populateRandom(double[][] matrix, double min, double max) {\n\t\tdouble range = max - min;\n\t\tfor (int i = 0; i < matrix.length; i++) {\n\t\t\tfor (int j = 0; j < matrix[0].length; j++) {\n\t\t\t\tmatrix[i][j] = (range * Math.random()) + min;\n\t\t\t}\n\t\t}\n\t}",
"@JSProperty(\"range\")\n void setRange(double value);",
"protected static int randBetween(int min, int max) {\n\t\tRandom rand = new Random();\n\t\treturn rand.nextInt(max - (min + 1)) + min;\n\t}",
"public int compete() {\r\n\t\tint max = 20;\r\n\t\tint min = 10;\r\n\t\tRandom Rand = new Random();\r\n\t\tint ranNum = Rand.nextInt(max - min) + min;\r\n\t\treturn ranNum;\r\n\t}",
"public void setMaxGenerations(int value) { maxGenerations = value; }",
"private static double randomGenerator(double min, double max) {\n return (double)java.lang.Math.random() * (max - min +1) + min;\n }",
"private static int newSecretNumber(int min, int max)\n {\n Random rnd = new Random();\n return rnd.nextInt((max + 1 - min) + min);\n }",
"public void setRepRange(int reps, int min, int max) {\n if (isValidInterval(reps, min, max)) {\n this.reps = reps;\n repsMin = min;\n repsMax = max;\n } else {\n throw new IllegalArgumentException(\"Range must satisfy 0 < repsMin <= reps <= repsMax.\" +\n \" Found reps=\" + reps + \", [\" + min + \",\" + max +\"]\");\n }\n }",
"public static int randomNumber(){\r\n int max = 10;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }",
"public int randBetween(int start, int end) {\n\t\treturn start + (int) Math.round(Math.random() * (end - start));\n\t}",
"RandomArrayGenerator() {\n this.defaultLaenge = 16;\n }",
"public int coordinateGenerator(int max, int min) {\n\t\tRandom r = new Random();\n\t\tint a =r.nextInt(max - min) + min;\n\t\treturn a;\n\t}",
"public void setMinimum(int n) {\r\n int newMax = Math.max(n, max);\r\n int newValue = Math.max(n, getValue());\r\n int newExtent = Math.min(newMax - newValue, getExtent());\r\n setRangeProperties(newValue, newExtent, n, newMax, isAdjusting);\r\n }",
"@Override\n public int orinar() {\n\n return (int) (Math.random() * 400) + 400;\n }",
"int getRange();",
"public synchronized void setOutputRange(double minOutput, double maxOutput)\n {\n final String funcName = \"setOutputRange\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"min=%f,max=%f\", minOutput, maxOutput);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n if (maxOutput <= minOutput)\n {\n throw new IllegalArgumentException(\"maxOutput must be greater than minOutput\");\n }\n\n if (Math.abs(minOutput) == Math.abs(maxOutput))\n {\n outputLimit = maxOutput;\n }\n\n this.minOutput = minOutput;\n this.maxOutput = maxOutput;\n }",
"Range() {}",
"public LongRange(long number1, long number2) {\n/* 110 */ if (number2 < number1) {\n/* 111 */ this.min = number2;\n/* 112 */ this.max = number1;\n/* */ } else {\n/* 114 */ this.min = number1;\n/* 115 */ this.max = number2;\n/* */ } \n/* */ }",
"public static int randBetween(int start, int end) {\n return start + (int)Math.round(Math.random() * (end - start));\n }",
"private static int random(int min, int max) {\r\n\t\tRandom rand = java.util.concurrent.ThreadLocalRandom.current();\r\n\t\treturn min + (int) (rand.nextDouble()*(max-min));\r\n\t}",
"public AdornmentTypeRange(final int min, final int max) {\n\t\tthis.maxInteger = max;\n\t\tthis.minInteger = min;\n\t}",
"private Range() {}",
"public static int randomRound(){\r\n int max = 1000;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n return randNum;\r\n }",
"@Override\r\n public void setMinMax(Double min, Double max) {\r\n this.minIn = min;\r\n this.maxIn = max;\r\n }",
"public RangeSlider(int min, int max) {\n super(min, max);\n initSlider();\n }",
"public static int intSample(int range) throws IllegalArgumentException {\n return random_.nextInt(range);\n }",
"int RandomGeneratorZeroToThree (){\n\t\t int randomInt = 0;\n\t\t Random randomGenerator = new Random();\n\t\t for (int idx = 1; idx <= 10; ++idx) {\n\t\t\t randomInt = randomGenerator.nextInt(4);\n\n\t\t }\n\t\t return randomInt;\n\t }",
"public int getNextIntRange(int[] range) {\n\t\tint low = Math.min(range[0], range[1]);\r\n\t\tint high = Math.max(range[0], range[1]);\r\n\t\tint val = (int)((high - low)*this.rand.nextDouble() + (double)low);\r\n\t\treturn val;\r\n\t}",
"public void setDamage() {\n\t\tRandom rand = new Random();\n\t\tint damage = rand.nextInt(getMaxDamage()) + 1;\n\t\tthis.damage = damage;\n\t}",
"private int rand(int lower, int upper) {\n return lower + (int)(Math.random() * ((upper - lower) + 1));\n }",
"void setRandomNo() {\n\t\tno = 10000000 + (int) (Math.random() * 90000000);\n\t}"
] | [
"0.6865913",
"0.6836989",
"0.6787983",
"0.67378134",
"0.673143",
"0.6559691",
"0.6557358",
"0.65481174",
"0.64389694",
"0.64249617",
"0.64214545",
"0.64189196",
"0.6378161",
"0.6360618",
"0.6357158",
"0.63545156",
"0.63131857",
"0.6310808",
"0.6281232",
"0.62546444",
"0.6227221",
"0.61981434",
"0.6191865",
"0.61905533",
"0.6175871",
"0.61405206",
"0.61379415",
"0.61309314",
"0.6129276",
"0.6128852",
"0.6118944",
"0.6116592",
"0.6103027",
"0.6088553",
"0.6085308",
"0.60581803",
"0.60536766",
"0.6053313",
"0.6044972",
"0.6036354",
"0.6034495",
"0.6032739",
"0.6009141",
"0.5974596",
"0.59557205",
"0.59414065",
"0.5940823",
"0.5929966",
"0.59160984",
"0.59140754",
"0.5912972",
"0.5906833",
"0.5902146",
"0.58877176",
"0.58762807",
"0.58741796",
"0.58658355",
"0.586363",
"0.5863012",
"0.5853174",
"0.5836418",
"0.5831375",
"0.5826821",
"0.58182067",
"0.58090633",
"0.58072513",
"0.580707",
"0.5781914",
"0.5781136",
"0.5775369",
"0.5765057",
"0.57621753",
"0.575091",
"0.57486874",
"0.57410884",
"0.5741006",
"0.57399505",
"0.57380736",
"0.5736904",
"0.5724312",
"0.5717389",
"0.571685",
"0.5697432",
"0.5694445",
"0.5692871",
"0.5685976",
"0.56785834",
"0.5676753",
"0.56729573",
"0.56664944",
"0.56646645",
"0.5663978",
"0.5662677",
"0.566206",
"0.56599146",
"0.5654996",
"0.5652648",
"0.56424123",
"0.5640718",
"0.56350225",
"0.56325936"
] | 0.0 | -1 |
Runs only once after all suite | @AfterClass
public static void dropDown() {
ApplicationProperties properties = new ApplicationProperties();
UserApiResource userApiResource = new UserApiResource(properties);
// DropUsers dropUsers = new DropUsers(userApiResource);
// dropUsers.tearDownUsers();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void runAfterTest() {}",
"@AfterClass\n public static void runOnceAfterClass() {\n //System.out.println(\"@AfterClass - runOnceAfterClass\");\n }",
"@AfterAll\n public static void afterClass() {\n System.out.println(\"After!!! **** - I am only called once!!!\");\n }",
"@AfterClass\r\n public static void runOnceAfterClass() {\r\n System.out.println(\"@AfterClass - runOnceAfterClass\");\r\n }",
"@AfterSuite\n public void AftersuiteSetup2() throws Exception {\n\t\t\n\t}",
"@After\r\n\tpublic void doThatEveryTime() {\n\t}",
"@After\n\tpublic void testEachCleanup() {\n\t\tSystem.out.println(\"Test Completed!\");\n\t}",
"@AfterAll\n static void cleanOperate()\n { \n //clear reference of operate after all the tests done\n operate = null;\n System.out.println(\"only After all the tests....\");\n }",
"@AfterSuite(alwaysRun = true)\n public static void finishSuite() {\n /*\n The following instruction is used to tell log4j which file the log will be written to depending\n on the thread name. The thread name is used as the value threadId that is used as the routing\n key in the routing appender. Check the log4j2.xml config file.\n For more info check here:\n https://stackoverflow.com/questions/8355847/how-to-log-multiple-threads-in-different-log-files\n http://logging.apache.org/log4j/2.x/faq.html#separate_log_files\n */\n ThreadContext.put(THREAD_ID, Thread.currentThread().getName());\n\n int index = 0;\n for (DriverFactory webDriverThread : webDriverThreadPool) {\n logger.trace(\"Quit WebDriver {}\", index);\n index++;\n webDriverThread.quitDriver();\n }\n logger.trace(\"Remove WebDriver from ThreadLocal\");\n driverThread.remove();\n }",
"@AfterSuite\r\n\tpublic void tearDown() {\r\n\t\tSystem.out.println(\"Driver teared down\");\r\n\t}",
"@AfterClass\n\tpublic void afterClass() {\n\t}",
"@AfterTest\n\tpublic void afterTest() {\n\t}",
"@AfterClass\n public static void afterClass() throws InterruptedException {\n Thread.sleep(2000);\n }",
"@BeforeClass(enabled = true)\n\tpublic void oneTimeSetup() {\n\t\ttry {\n\t\t\tFile resultsDirectory = new File(AppConstants.TEST_RESULTS_DIRECTORY);\n\t\t\tif (!resultsDirectory.isDirectory()) {\n\t\t\t\tFileUtils.forceMkdir(resultsDirectory);\n\t\t\t} else {\n\t\t\t\tFileUtils.cleanDirectory(resultsDirectory);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tLOG.debug(\"Error cleaning the results directory\");\n\t\t}\n\t}",
"@AfterAll\n public static void tearDownClass() {\n }",
"@AfterAll\n public static void tearDownClass() {\n }",
"@AfterAll\n public static void tearDownClass() {\n }",
"@AfterAll\n public static void tearDownClass() {\n }",
"@AfterAll\n public static void tearDownClass() {\n }",
"@AfterAll\n public static void tearDownClass() {\n }",
"@AfterAll\n public static void tearDownClass() {\n }",
"@AfterAll\n public static void tearDownClass() {\n }",
"@AfterAll\n public static void tearDownClass() {\n }",
"@AfterAll\n public static void tearDownClass() {\n }",
"@AfterClass\n\tpublic static void after() {\n\t\tXMLRetryConfigMgr.setXML_FILE(ORIG_FILE);\n\t\tHzIntegrationTestUtil.afterClass();\n\t}",
"@AfterTest\n\tpublic void afterTest() {\n\t\tiDriver.quit();\n\t\tSystem.out.println(\"=====================VEGASF_419_END=====================\");\n\t}",
"@After\n public void afterTest(){\n }",
"@AfterSuite\n\tpublic void teardown() {\n\t\tlogger.info(\"ALL TESTS COMPLETED: Quiting driver\");\n\t\tgmailPg.quitDriver();\n\t}",
"@AfterMethod\n\tpublic void wrapUp() {\n\t\tDriverManager.getDriver().quit();\n\t\tExtentReport.report.endTest(ExtentManager.getExtTest());\n\t\tExtentReport.report.flush();\n\n\t}",
"@Before\r\n\tpublic void doThisEveryTime() {\n\t}",
"@After \n public void tearDownTest()\n {\n\t System.out.println(\"Test Complete\\n\\n\\n\\n\\n\");\n }",
"@AfterClass\n public static void tear() {\n System.out.println(\"*** After class ***\");\n }",
"@AfterClass\n public void cleanUp() {\n }",
"@After\n public void tearDown() {\n System.out.println(\"@After - Tearing Down Stuffs: Pass \"\n + ++tearDownCount);\n }",
"@BeforeClass // runs before all test cases; runs only once\n public static void setUpSuite() {\n\n }",
"@AfterClass\n static public void tearDownClass() {\n logger.info(\"Completed Example Code Unit Tests.\\n\");\n }",
"@After\n public void tearDown() {\n \n }",
"@Override\r\n\t@AfterTest\r\n\tpublic void endSetting() {\n\t\tSystem.out.println(\"结束系统设置测试\");\r\n\t}",
"@AfterEach\n private void afterEachEnd()\n {\n System.out.println(\"Test Completed \" + testInfo.getDisplayName());\n System.out.println(\"After Each Clean Test........\");\n System.out.println(\"Elapsed TIme : \" + ELAPSED_TIME + \" ns\");\n LOGGER.info(\"Elapsed TIme for \" + testInfo.getDisplayName() + \" : \" + ELAPSED_TIME);\n }",
"@AfterClass\r\n\tpublic static void afterClass() {\r\n\t\tSystem.out.println(\"in after class\");\r\n\t}",
"@BeforeClass\n public static void startup()\n {\n _shutdown();\n }",
"@AfterClass\n\tpublic void teardown(){\n\t}",
"@AfterSuite\r\n\tpublic void tearDown()\r\n\t{\n extent.flush();\r\n\t}",
"@AfterClass\n public static void tearDownClass() {\n System.out.println(\"Acabant tests\");\n }",
"@AfterClass\n\tpublic static void testCleanup() {\n\t}",
"@After\n public void tearDown () {\n }",
"@AfterAll\n public static void AfterAllInit()\n {\n System.out.println(\"After All Initiated........\");\n }",
"@AfterSuite\n\tpublic void teardown() {\n\t\t\n\t\tdriver.quit();\n\t}",
"@AfterTest\r\n public void tearDown() {\n }",
"@AfterSuite\n\tpublic void tearDown() {\n\t\tremoveSingleFileOrAllFilesInDirectory(\"file\", \"./Logs/Log4j.log\");\n\n\t\t// Flushing extent report after completing all test cases\n\t\treports.endTest(extent);\n\t\treports.flush();\n\t}",
"@After\n public void performanceTearDown() {\n try {\n Thread.sleep(300);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"void afterRun();",
"@After\n public void tearDown() {\n }",
"@After\n public void tearDown() {\n }",
"@After\n public void tearDown() {\n }",
"@After\n public void tearDown() {\n }",
"@After\n public void tearDown() {\n }",
"@After\n public void tearDown() {\n }",
"@After\n\tpublic void tearDown() {}",
"@Override\n\tpublic void onFinish(ISuite suite) {\n\n\t}",
"@After\n public void tearDown(){\n }",
"@After\n public void tearDown(){\n }",
"@AfterSuite\n public static void teardown() {\n Reporter.loadXMLConfig(new File(\"src/main/resources/extent-config.xml\"));\n Reporter.setSystemInfo(\"user\", System.getProperty(\"user.name\"));\n Reporter.setSystemInfo(\"os\", System.getProperty(\"os.name\"));\n Reporter.setSystemInfo(\"Selenium\", \"3.4.0\");\n Reporter.setSystemInfo(\"Cucumber\", \"1.2.5\");\n }",
"@After\n public final void tearDown() throws Exception\n {\n // Empty\n }",
"protected void tearDown() {\n // empty\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\n public void tearDown()\n {\n }",
"@After\r\n public void tearDown()\r\n {\r\n }",
"@After\r\n public void tearDown()\r\n {\r\n }",
"@After\r\n public void tearDown()\r\n {\r\n }",
"@After\r\n public void tearDown()\r\n {\r\n }",
"@After\n public void tearDown() {\n Configurator.setLevel(Main.class.getPackage().getName(), Level.INFO);\n }",
"@AfterMethod\n public void endTest(){\n reports.endTest(logger);\n }",
"protected void runAfterIteration() {}"
] | [
"0.7791578",
"0.7453813",
"0.7359249",
"0.732181",
"0.7138631",
"0.7137668",
"0.7136586",
"0.7072794",
"0.7053231",
"0.70517737",
"0.7018195",
"0.6998371",
"0.69653726",
"0.6961615",
"0.6954403",
"0.6954403",
"0.6954403",
"0.6954403",
"0.6954403",
"0.6954403",
"0.6954403",
"0.6954403",
"0.6954403",
"0.6954403",
"0.6949985",
"0.69452375",
"0.68966776",
"0.68958735",
"0.6883826",
"0.6881547",
"0.68792325",
"0.68693733",
"0.6860838",
"0.68556565",
"0.6854266",
"0.68163157",
"0.6798037",
"0.6762767",
"0.67520696",
"0.6750188",
"0.67404276",
"0.67362744",
"0.67353266",
"0.6695925",
"0.66941524",
"0.6691355",
"0.6691323",
"0.6689663",
"0.6686077",
"0.6682692",
"0.6678038",
"0.66748476",
"0.6673483",
"0.6673483",
"0.6673483",
"0.6673483",
"0.6673483",
"0.6664254",
"0.66467196",
"0.6638018",
"0.662576",
"0.662576",
"0.661369",
"0.6605982",
"0.6599529",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.6592501",
"0.659185",
"0.659185",
"0.659185",
"0.659185",
"0.6584465",
"0.6579748",
"0.65774053"
] | 0.0 | -1 |
Runs only once before test | @BeforeClass
public static void setUp() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Before\r\n\tpublic void doThisEveryTime() {\n\t}",
"protected void runBeforeTest() {}",
"@Override\n public void beforeFirstLogic() {\n }",
"protected void runBeforeStep() {}",
"protected void runBeforeIterations() {}",
"void beforeRun();",
"void before();",
"protected void runBeforeIteration() {}",
"protected abstract void before();",
"@Before\r\n\tpublic void before() {\r\n\t}",
"@BeforeAll\n static void setup() {\n log.info(\"@BeforeAll - executes once before all test methods in this class\");\n }",
"@BeforeSuite\r\n\t\tpublic void BeforeSute()\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Before suite\");\r\n\t\t}",
"public void prePerform() {\n // nothing to do by default\n }",
"@Before\n public void postSetUpPerTest(){\n\n }",
"public void before() {\n }",
"public void before() {\n }",
"@Stub\n\tpublic void before()\n\t{\n\t\t//\n\t}",
"@Before\n public void before() {\n }",
"@Before\n public void before() {\n }",
"@BeforeClass\n\tpublic void beforeClass() {\n\t}",
"@Override\n public void preRun() {\n super.preRun();\n }",
"@Before\n public void setupThis() {\n System.out.println(\"* Before test method *\");\n }",
"@Before\n public void beforeTest(){\n\n\n }",
"protected void preTest() {\n\t\tprintTestParmas();\n\t\tif (attenuatorSetUnderTest != null) {\n\t\t\tperipheralsConfig.setAttenuatorSetValue(attenuatorSetUnderTest,\n\t\t\t\t\tattenuatorSetUnderTest.getDefaultValueAttenuation());\n\t\t} else {\n\t\t\treport.report(\"There is no attenuator set \");\n\t\t}\n\t\tchangeOtherENBsToOOS();\n\n\t\t/*if (runWithDynamicCFI)\n\t\t\tenbConfig.enableDynamicCFI(this.dut);\n\t\telse\n\t\t\tenbConfig.disableDynamicCFI(this.dut);*/\n\t\t\n\t\tgetRadioProfile();\n\n\t\tprintResultsForTest = true;\n\t\tresetTestBol = false;\n\t\texceptionThrown = false;\n\t}",
"@BeforeClass // runs before all test cases; runs only once\n public static void setUpSuite() {\n\n }",
"@Before public void setUp() { }",
"@Before\n public void init() {\n Cache cache = cacheManager.getCache(\"default-test\");\n cache.clear();\n\n }",
"@Override\n @Before\n public void before() throws Exception {\n\n super.before();\n }",
"@BeforeClass\n public static void beforeClass() {\n }",
"@BeforeClass\n public void beforeclass() {\n\t}",
"@Before\n\t public void setUp() {\n\t }",
"@Before public void setUp() {\n }",
"@Before public void setUp() {\n }",
"@Before public void setUp() {\n }",
"@Before public void setUp() {\n }",
"@Before public void setUp() {\n }",
"@BeforeClass\n public static void runOnceBeforeClass() {\n //System.out.println(\"@BeforeClass - runOnceBeforeClass\");\n }",
"@Before\r\n\t public void setUp(){\n\t }",
"@BeforeClass\r\n\tpublic static void beforeClass() {\r\n\t\tSystem.out.println(\"in before class\");\r\n\t}",
"@BeforeClass(enabled =true)\n\tpublic void beforeClass(){\n\t\tSystem.out.println(\"In BeforeClass\");\n\t}",
"@Before\n\tpublic void setUp() {\n\t\ttest_count++;\n\t\tSystem.out.println(\"Test \"+ test_count);\n\t}",
"@Before\n public void setUp() {\n Log.getFindings().clear();\n Log.enableFailQuick(false);\n }",
"@BeforeEach\n\tpublic void runBeforeTests() {\n\t\ttestArrayList = new ArrayList<>(Arrays.asList(38, 3, 33, 36, 5, 70, 24, 47, 7, 27, 15, 48, 53, 32, 93));\n\t}",
"@BeforeTest\npublic void hai()\n{\n\t\n\tHello();\n\t\n}",
"@Before\r\n\tpublic void set_up(){\n\t}",
"@Before\r\n\tpublic void before() {\r\n\t\tSystem.out.println(\" Before() \");\r\n\t\tcalc = new CalculadoraDos();// no forma parte del test es una precondicion para ejecutar el test\r\n\t}",
"@Before\n public void setUp() {\n System.out.println(\"\\n@Before - Setting Up Stuffs: Pass \"\n + ++setUpCount);\n // write setup code that must be executed before each test method run\n }",
"@Override\r\n\t@BeforeMethod\r\n\tpublic void initSetting() {\n\t\tSystem.out.println(\"start\");\r\n\t\toTest.initSetting();\r\n\t}",
"@BeforeMethod\r\n\tpublic void beforeMethod() {\r\n\t\t//initializeTestBaseSetup();\r\n\t}",
"@Before\n\tpublic void setUp()\n\t{\n\t\tOptionsManager.getSingleton().setTestMode(true);\n\t\tQuestManager.resetSingleton();\n\t}",
"@Before\r\n\tpublic void setUp() {\n\t}",
"@BeforeClass\r\n public static void runOnceBeforeClass() {\r\n System.out.println(\"@BeforeClass - runOnceBeforeClass\");\r\n }",
"@BeforeClass(enabled = true)\n\tpublic void oneTimeSetup() {\n\t\ttry {\n\t\t\tFile resultsDirectory = new File(AppConstants.TEST_RESULTS_DIRECTORY);\n\t\t\tif (!resultsDirectory.isDirectory()) {\n\t\t\t\tFileUtils.forceMkdir(resultsDirectory);\n\t\t\t} else {\n\t\t\t\tFileUtils.cleanDirectory(resultsDirectory);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tLOG.debug(\"Error cleaning the results directory\");\n\t\t}\n\t}",
"@Before\r\n public void setUp()\r\n {\r\n }",
"@Before\r\n public void setUp()\r\n {\r\n }",
"@Before\r\n public void setUp()\r\n {\r\n }",
"@Before\r\n public void setUp()\r\n {\r\n }",
"@BeforeClass\n public static void oneTimeSetUp() {\n\n }",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\t//This method is unused. \r\n\t}",
"@BeforeTest\n\n public void Initialize() {\n\n\n}",
"protected abstract void preRun();",
"default void beforeUse() {\n\t}",
"protected abstract void beforeCall();",
"@Override\n public void beforeMethod(BQTestScope scope, ExtensionContext context) {\n this.withinTestMethod = true;\n\n // TODO: prefilter callbacks collection of \"beforeTestIfStarted\" in a separate collection to avoid iteration\n // on every run?\n if (isStarted()) {\n callbacks.forEach((k, v) -> beforeTestIfStarted(cayenneRuntime, k, v));\n }\n }",
"@Before\r\n public void before() throws Exception {\r\n }",
"@SuppressWarnings(\"PMD.JUnit4TestShouldUseTestAnnotation\")\n public void testPeriodic() {\n if (m_tmpFirstRun) {\n System.out.println(\"Default testPeriodic() method... Override me!\");\n m_tmpFirstRun = false;\n }\n }",
"@Before\n public void setup() {\n }",
"public void setUp()\r\n {\r\n //empty on purpose\r\n }",
"@Before\n\tpublic void setUp() {\n\t}",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@BeforeClass\n public static void oneTimeSetup() {\n System.out.println(\"@BeforeClass - One Time Setup with\");\n // write your one time initialization code here\n }",
"@BeforeAll\n\tstatic void initOperate()\n\t{\t\n\t\tSystem.out.println(\"only Before All the tests....\");\n\t\toperate = new Operations();\n\t}",
"@Before\n public void setUp () {\n }",
"@BeforeTest\n\tpublic void beforeTest() throws Exception {\n\t\textent = ExtentManager.getReporter(filePath);\n\t\trowData = testcase.get(this.getClass().getSimpleName());\n\t\ttest = extent.startTest(rowData.getTestcaseId(), rowData.getTestcaseDescription()).assignCategory(\"Watchlist\");\n\n\t}",
"@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}",
"@Before\n public void setUp() {\n }",
"@Before\r\n\tpublic void setup() {\r\n\t}",
"@Before\n public void init() {\n }",
"@Override\r\n\t@BeforeTest\r\n\tpublic void startSetting() {\n\t\tSystem.out.println(\"开始系统设置测试\");\r\n\t}",
"@Before\n public void setUp()\n {\n summary = \"\";\n allPassed = true;\n firstFailExpected = null;\n firstFailRun = null;\n captureSummary = \"\";\n captureRun = null;\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }",
"@Before\n public void setUp()\n {\n }"
] | [
"0.79800266",
"0.77299887",
"0.7354612",
"0.73248434",
"0.7268435",
"0.7213212",
"0.71793807",
"0.7179332",
"0.7081557",
"0.7064145",
"0.70541185",
"0.7013787",
"0.6951577",
"0.6945802",
"0.69332874",
"0.69332874",
"0.69311786",
"0.69247127",
"0.69247127",
"0.68834126",
"0.6878419",
"0.6869876",
"0.68689585",
"0.686728",
"0.6858172",
"0.6837384",
"0.6828157",
"0.68269634",
"0.6811263",
"0.6789908",
"0.67764556",
"0.6751802",
"0.6751802",
"0.6751802",
"0.6751802",
"0.6751802",
"0.67406946",
"0.67405784",
"0.67170876",
"0.67112154",
"0.6698682",
"0.6692215",
"0.6691751",
"0.66770065",
"0.66727954",
"0.6672656",
"0.6664825",
"0.6661562",
"0.66607946",
"0.66589844",
"0.66444707",
"0.6635139",
"0.66349006",
"0.6629595",
"0.6629595",
"0.6629595",
"0.6629595",
"0.66294867",
"0.6607794",
"0.66067374",
"0.660338",
"0.65850335",
"0.6583212",
"0.6579862",
"0.6577903",
"0.6570078",
"0.65641874",
"0.65638363",
"0.6562043",
"0.65589094",
"0.65589094",
"0.65589094",
"0.65589094",
"0.65589094",
"0.65564346",
"0.65530837",
"0.6552882",
"0.6550109",
"0.65493155",
"0.65466994",
"0.65370977",
"0.65369904",
"0.6536471",
"0.6533015",
"0.653134",
"0.653134",
"0.653134",
"0.653134",
"0.653134",
"0.653134",
"0.653134",
"0.653134",
"0.653134",
"0.653134",
"0.653134",
"0.653134",
"0.653134",
"0.653134",
"0.653134",
"0.653134",
"0.653134"
] | 0.0 | -1 |
KEEP FIELDS put your custom fields here KEEP FIELDS END | public EatTime() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected String[] ignoreFields() {\n\t\treturn null;\n\t}",
"public void formatFields() {\r\n\t}",
"private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, MANUAL_PRIORITY, STATE, CLASSIFICATION_CATEGORY, \"\n + \"TCLASSIFICATION_KEY, CLASSIFICATION_ID, \"\n + \"WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, \"\n + \"BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, \"\n + \"POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_1, CUSTOM_2, \"\n + \"CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10, \"\n + \"CUSTOM_11, CUSTOM_12, CUSTOM_13, CUSTOM_14, CUSTOM_15, CUSTOM_16, \"\n + \"CUSTOM_INT_1, CUSTOM_INT_2, CUSTOM_INT_3, CUSTOM_INT_4, CUSTOM_INT_5, \"\n + \"CUSTOM_INT_6, CUSTOM_INT_7, CUSTOM_INT_8\"\n + \"<if test=\\\"addClassificationNameToSelectClauseForOrdering\\\">, CNAME</if>\"\n + \"<if test=\\\"addAttachmentClassificationNameToSelectClauseForOrdering\\\">, ACNAME</if>\"\n + \"<if test=\\\"addAttachmentColumnsToSelectClauseForOrdering\\\">\"\n + \", ACLASSIFICATION_ID, ACLASSIFICATION_KEY, CHANNEL, REF_VALUE, ARECEIVED\"\n + \"</if>\"\n + \"<if test=\\\"addWorkbasketNameToSelectClauseForOrdering\\\">, WNAME</if>\"\n + \"<if test=\\\"joinWithUserInfo\\\">, ULONG_NAME </if>\";\n }",
"Fields fields();",
"protected Vector collectFields() {\n Vector fields = new Vector(1);\n fields.addElement(this.getField());\n return fields;\n }",
"@RegionEffects(\"writes publicField; reads defaultField\")\n private void someButNotAll() {\n publicField = privateField;\n protectedField = defaultField;\n }",
"private void clearFields() {\r\n keywords = \"\";\r\n searchBy = \"\";\r\n }",
"private void copyFields(NetcdfRecordInfo src, Set<String> excludedFields) {\n Iterator<String> keyIter = src.beanMap.keyIterator();\n Object val;\n while (keyIter.hasNext()) {\n String key = keyIter.next();\n if (this.beanMap.getWriteMethod(key) != null\n && !excludedFields.contains(key)) {\n val = src.beanMap.get(key);\n if (val != null) {\n this.beanMap.put(key, val);\n }\n }\n }\n }",
"@Override\r\n protected Object[] getFieldValues ()\r\n {\n return null;\r\n }",
"public ConfigurationBuilder onlyFields() {\n\t\tconfigurationBuilder.setAccessStrategy(AccessStrategy.ONLY_FIELDS);\n\t\treturn configurationBuilder;\n\t}",
"public void updateNonDynamicFields() {\n\n\t}",
"private void prepareFields(Entity entity, boolean usePrimaryKey) \r\n\t\t\tthrows IllegalArgumentException, IllegalAccessException, InvocationTargetException{\r\n\t\tprimaryKeyTos = new ArrayList<FieldTO>();\r\n\t\tfieldTos = new ArrayList<FieldTO>();\r\n\t\tField[] fields = entity.getClass().getDeclaredFields();\t\r\n\t\t\r\n\t\t//trunk entity to persistence\r\n\t\tfor(int i=0; i<fields.length; i++){\r\n\t\t\tField reflectionField = fields[i];\r\n\t\t\tif(reflectionField!=null){\r\n\t\t\t\treflectionField.setAccessible(true);\r\n\t\t\t\tAnnotation annoField = reflectionField.getAnnotation(GPAField.class);\r\n\t\t\t\tAnnotation annoFieldPK = reflectionField.getAnnotation(GPAPrimaryKey.class);\r\n\t\t\t\tAnnotation annoFieldBean = reflectionField.getAnnotation(GPAFieldBean.class);\r\n\t\t\t\t/* \r\n\t\t\t\t ainda falta validar a chave primária do objeto\r\n\t\t\t\t por enquanto so esta prevendo pk usando sequence no banco\r\n\t\t\t\t objeto id sempre é gerado no banco por uma sequence\r\n\t\t\t\t*/\r\n\t\t\t\tif(annoFieldPK!=null && annoFieldPK instanceof GPAPrimaryKey){\r\n\t\t\t\t\tGPAPrimaryKey pk = (GPAPrimaryKey)annoFieldPK;\r\n\t\t\t\t\t//if(pk.ignore() == true){\r\n\t\t\t\t\t//\tcontinue;\r\n\t\t\t\t\t//}else{\r\n\t\t\t\t\tString name = pk.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\t//}\r\n\t\t\t\t}\r\n\t\t\t\tif(annoField!=null && annoField instanceof GPAField){\r\n\t\t\t\t\tGPAField field = (GPAField)annoField;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif(annoFieldBean!=null && annoFieldBean instanceof GPAFieldBean){\r\n\t\t\t\t\tGPAFieldBean field = (GPAFieldBean)annoFieldBean;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private List<SuperSetterBasedBuilderField> deduplicateByName(List<SuperSetterBasedBuilderField> fields) {\n List<SuperSetterBasedBuilderField> result = new ArrayList<>();\n for (SuperSetterBasedBuilderField field : fields) {\n if (!alreadyContainsField(result, field)) {\n result.add(field);\n }\n }\n return result;\n }",
"@Override\n protected Set<StepField> getUsedFields( KafkaConsumerInputMeta meta ) {\n return null;\n }",
"private static FieldInfos filterFields(FieldInfos fieldInfos) {\n List<FieldInfo> fieldInfoCopy = new ArrayList<>(fieldInfos.size());\n for (FieldInfo fieldInfo : fieldInfos) {\n fieldInfoCopy.add(\n new FieldInfo(\n fieldInfo.name,\n fieldInfo.number,\n false,\n false,\n false,\n IndexOptions.NONE,\n DocValuesType.NONE,\n -1,\n fieldInfo.attributes(),\n 0,\n 0,\n 0,\n 0,\n fieldInfo.getVectorSimilarityFunction(),\n fieldInfo.isSoftDeletesField()\n )\n );\n }\n FieldInfos newFieldInfos = new FieldInfos(fieldInfoCopy.toArray(new FieldInfo[0]));\n return newFieldInfos;\n }",
"@Override\n\tpublic void consumeFields(Schema schema) {\n\n\t}",
"@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }",
"private void fillMandatoryFields_custom() {\n\n }",
"@Override\r\n\tpublic Field[] getExcludedFields() {\n\t\treturn null;\r\n\t}",
"@Override\n\tprotected void initializeFields() {\n\n\t}",
"private List<String> getExcludedFields() {\n List<String> temp = new ArrayList<>();\n temp.add(\"_rallyAPIMajor\");\n temp.add(\"_rallyAPIMinor\");\n temp.add(\"_ref\");\n temp.add(\"_refObjectUUID\");\n temp.add(\"_objectVersion\");\n temp.add(\"_refObjectName\");\n temp.add(\"ObjectUUID\");\n temp.add(\"VersionId\");\n temp.add(\"_type\");\n return temp;\n }",
"private ZipExtraField[] getAllExtraFieldsNoCopy() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"3fa9af0d-52ec-4dfb-8f8f-664dab78c7a2\");\n if (extraFields == null) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e10aa90d-39cc-4c84-8523-509199acd725\");\n return getUnparseableOnly();\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6f46f8f8-2f8d-4363-895b-687a45be39ed\");\n return unparseableExtra != null ? getMergedFields() : extraFields;\n }",
"public void testFields()\n {\n TestUtils.testNoAddedFields(getTestedClass(), null);\n }",
"void getNextField () \n\t\t\tthrows IOException, FileNotFoundException {\n \n\t\tcontext.field.setLength(0);\n\t\twhile ((! htmlChar.endsField) && (! atEnd)) {\n\t\t\tgetNextWord();\n\t\t\tif (context.word.length() > 0) {\n\t\t\t\tcontext.field.append (context.word.toString());\n\t\t\t}\n\t\t} \n \n // remove multiple trailing spaces from field\n // if (! context.preformatted) {\n while (context.field.length() > 1\n && context.field.charAt (context.field.length() - 1) == ' '\n && context.field.charAt (context.field.length() - 2) == ' ') {\n context.field.deleteCharAt (context.field.length() - 1);\n }\n // }\n\t}",
"private <T> Map<String, Field> getFields(final Class<T> destinationClass) {\n final Map<String, Field> mappedFields = new HashMap<>();\n logger.trace(\"Retrieving all declared fields for class: {}\", destinationClass);\n final List<Field> declaredFields = getFields(new ArrayList<>(), destinationClass);\n\n for (Field field : declaredFields) {\n if (!field.isAnnotationPresent(Ignore.class)) {\n mapFieldName(mappedFields, field);\n }\n }\n\n return mappedFields;\n }",
"private void clearFields(){\r\n fields.forEach(e -> e.clear());\r\n }",
"java.lang.String getFields();",
"public Fields getNonAggregatedFields()\n {\n return nonAggregatedFields;\n }",
"public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }",
"@Override\n\tpublic List<Field> getAll() {\n\t\treturn null;\n\t}",
"private Map<String,Field> getAllFields(Class clazz) {\n return this.getAllFields(clazz, false);\n }",
"private List<Field> getFields() {\n try {\n List<Field> fields = ResultSetUtil.getFields(databaseName, tableName, resultSets.get(0));\n if(fields.size() != MergeFactory.MAX_QUERY_FIELD_SIZE){\n throw new SqlParserException(\"the query fields max be equals \" + MergeFactory.MAX_QUERY_FIELD_SIZE);\n }\n return fields;\n } catch (SQLException e) {\n LOG.error(\"merge resultSet error\",e);\n throw new MergeException(\"merge resultSet error\" , e);\n }\n }",
"@Override\n\tprotected String getFields()\n\t{\n\t\tString fields = \" GAZOID, GAZFLD, GAZPVN, GAZTYP, GAZCLN, GAZCLS \";\n\t\treturn fields;\n\t}",
"private void fillMandatoryFields() {\n\n }",
"protected static Message cleanDoNotStoreFields(Message message) {\n Message.Builder messageBuilder = message.toBuilder();\n for (FieldDescriptor field : message.getAllFields().keySet()) {\n StorageMethod storageMethod = field.getOptions().getExtension(ExtensionsProto.storageMethod);\n if (storageMethod == StorageMethod.DO_NOT_STORE) {\n messageBuilder.clearField(field);\n } else if (field.getJavaType() == JavaType.MESSAGE) {\n if (field.isRepeated()) {\n for (int i = 0; i < message.getRepeatedFieldCount(field); i++) {\n messageBuilder.setRepeatedField(field, i, \n cleanDoNotStoreFields((Message) message.getRepeatedField(field, i)));\n }\n } else {\n messageBuilder.setField(field,\n cleanDoNotStoreFields((Message) message.getField(field)));\n }\n }\n }\n return messageBuilder.build();\n }",
"private void prepare( ) {\n super.prepare( schema.getCount( ) );\n serializer = new FieldSerializer[ fieldCount ];\n for ( int i = 0; i < fieldCount; i++ ) {\n FieldSchema field = schema.getField( i );\n serializer[i] = serializerByType[ field.getType().ordinal() ];\n }\n }",
"private List<String> rmDupInfo(List<String> fields) {\n Set<String> seen = new HashSet<>();\n List<String> uniqueNonEmptyFields = new ArrayList<>();\n for (String i : fields) {\n if (i.isEmpty() || i.equals(\".\")) {\n continue;\n } else {\n String fieldName = i.split(\"=\")[0];\n if (!seen.contains(fieldName)) {\n uniqueNonEmptyFields.add(i);\n seen.add(fieldName);\n }\n }\n }\n return uniqueNonEmptyFields;\n }",
"static List<Place.Field> getPlaceFields(Place.Field... placeFieldsToOmit) {\n List<Place.Field> placeFields = new ArrayList<>(Arrays.asList(Place.Field.values()));\n placeFields.removeAll(Arrays.asList(placeFieldsToOmit));\n\n return placeFields;\n }",
"@Override\n\tprotected String getParameterizedFields()\n\t{\n\t\tString fields = \" GAZOID=?, GAZFLD=?, GAZPVN=?, GAZTYP=?, GAZCLN=?, GAZCLS=? \";\n\t\treturn fields;\n\t}",
"@Override\n\tpublic void getFields(List<String> table) {\n\t\t\n\t}",
"java.lang.String getField1530();",
"private void setNewFields(String[] fields) {\n for (String fieldName : fields) {\n setNewField(fieldName);\n }\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 }",
"public void appendFields(List<Field> fields) {\n // zzzz! zzzz!\n }",
"public FieldsImpl() {\r\n logger.entering(CLASS_NAME, \"FieldsImpl()\");\r\n }",
"public Builder clearField1442() {\n \n field1442_ = getDefaultInstance().getField1442();\n onChanged();\n return this;\n }",
"public static void getSuperFields(Class<?> clazz, ArrayList<Field> all_fields) {\n\t\tif (clazz == Object.class)\n\t\t\treturn;\n\t\t\n\t\t//Field [] element_fields_ = clazz.getFields();\n\t\tField [] element_fields = clazz.getDeclaredFields(); //clazz.getFields();\n\t\tfor (Field f: element_fields) {\n\t\t\tall_fields.add(f);\n\t\t}\n\t\tgetSuperFields(clazz.getSuperclass(), all_fields);\n\t\t\n\t\treturn;\n\t}",
"@JsonAnyGetter\n public Map<String, String> otherFields() {\n return unknownFields;\n }",
"default void flatten() {\n\t\tFieldGraph<F> flatGraph = FieldGraph.of(getFields());\n\t\tC flatClone = cloneFlat();\t// have to clone, because pull doesn't change value if pulling from self\n\t\tfor (F field : getFields())\n\t\t\tpull(field, flatClone, flatGraph);\n\t}",
"@Override\n public void visit(FieldDeclaration n, Object arg) {\n \tArrayList<String> field = new ArrayList<String>();\n \tif(n.getJavaDoc()!=null){\n \t\tString declare = n.toString();\n \t\tdeclare = declare.replaceAll(\"(?s)(.*)private\", \"private\");\n \t\tdeclare = declare.replaceAll(\"(?s)=(.*)\", \"\");\n \t\tfield.add(declare.trim());\n\t \tString comment = n.getJavaDoc().getContent();\n\t \tcomment = comment.replaceAll(\"\\\\* @param (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @return (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @throws (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* \",\"\");\n\t \tfield.add(comment.trim()); \n\t \tfields.add(field);\n \t}\n \t}",
"private static void getAllFields(Class<?> clazz, ArrayList<Field> all_fields, ArrayList<Class<?>> all_classes) {\n\t\tif (clazz == Object.class)\n\t\t\treturn;\n\t\tall_classes.add(clazz);\n\t\t//Field [] element_fields_ = clazz.getFields();\n\t\tField [] element_fields = clazz.getDeclaredFields(); //clazz.getFields();\n\t\tfor (Field f: element_fields) {\n\t\t\tall_fields.add(f);\n\t\t}\n\t\tgetAllFields(clazz.getSuperclass(), all_fields, all_classes);\n\t\t\n\t\treturn;\n\t}",
"public Builder clearField1542() {\n \n field1542_ = getDefaultInstance().getField1542();\n onChanged();\n return this;\n }",
"synchronized public Set<String> getFields() {\n return Collections.unmodifiableSet(new HashSet<>(fields));\n }",
"public Map<String,String> getAllCustomFields(final SessionContext ctx)\n\t{\n\t\tMap<String,String> map = (Map<String,String>)getProperty( ctx, CUSTOMFIELDS);\n\t\treturn map != null ? map : Collections.EMPTY_MAP;\n\t}",
"public Builder clearField1241() {\n \n field1241_ = getDefaultInstance().getField1241();\n onChanged();\n return this;\n }",
"public Builder clearField1434() {\n \n field1434_ = getDefaultInstance().getField1434();\n onChanged();\n return this;\n }",
"public Builder clearField1441() {\n \n field1441_ = getDefaultInstance().getField1441();\n onChanged();\n return this;\n }",
"protected List<ExtraField> getExtraFieldView(\n\t\t\t\t\t\t\tCollection<GenericPolicy> policies) {\n\t\t\t\t\t\tList<ExtraField> rlExtraFields = new ArrayList<ExtraField>();\n\n\t\t\t\t\t\tif (policies.size() > 0) {\n\t\t\t\t\t\t\tArrayList<GenericPolicy> policyList = new ArrayList<GenericPolicy>(\n\t\t\t\t\t\t\t\t\tpolicies);\n\t\t\t\t\t\t\tGenericPolicy policy = policyList.get(0);\n\n\t\t\t\t\t\t\tif (policy.getRules() != null\n\t\t\t\t\t\t\t\t\t&& policy.getRules().size() > 0) {\n\t\t\t\t\t\t\t\tRule rule = policy.getRules().get(0);\n\n\t\t\t\t\t\t\t\tif (rule.getAttributeList() != null\n\t\t\t\t\t\t\t\t\t\t&& rule.getAttributeList().size() > 0) {\n\n\t\t\t\t\t\t\t\t\tfor (RuleAttribute attribute : rule\n\t\t\t\t\t\t\t\t\t\t\t.getAttributeList()) {\n\n\t\t\t\t\t\t\t\t\t\tif (RuleAttribute.NotifyKeys.NotifyEmails\n\t\t\t\t\t\t\t\t\t\t\t\t.name().equals(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tattribute.getKey())) {\n\t\t\t\t\t\t\t\t\t\t\t// Policy Based Email Address\n\t\t\t\t\t\t\t\t\t\t\tExtraField field_1 = new ExtraField();\n\t\t\t\t\t\t\t\t\t\t\tfield_1.setFieldType(\"Label\");\n\t\t\t\t\t\t\t\t\t\t\tfield_1.setLabelName(\"Policy Based Email Address:\");\n\t\t\t\t\t\t\t\t\t\t\tfield_1.setValue(attribute\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getValue());\n\t\t\t\t\t\t\t\t\t\t\tfield_1.setOrder(1);\n\t\t\t\t\t\t\t\t\t\t\trlExtraFields.add(field_1);\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif (RuleAttribute.NotifyKeys.NotifyActive\n\t\t\t\t\t\t\t\t\t\t\t\t.name().equals(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tattribute.getKey())) {\n\t\t\t\t\t\t\t\t\t\t\t// / Subject Based Email Address:\n\t\t\t\t\t\t\t\t\t\t\tExtraField field_2 = new ExtraField();\n\t\t\t\t\t\t\t\t\t\t\tfield_2.setFieldType(\"CheckBox\");\n\t\t\t\t\t\t\t\t\t\t\tfield_2.setLabelName(\"Subject Based Email Address:\");\n\t\t\t\t\t\t\t\t\t\t\tfield_2.setValue(String\n\t\t\t\t\t\t\t\t\t\t\t\t\t.valueOf(attribute\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getValue()));\n\n\t\t\t\t\t\t\t\t\t\t\tfield_2.setOrder(2);\n\t\t\t\t\t\t\t\t\t\t\trlExtraFields.add(field_2);\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// Effect Duration\n\t\t\t\t\t\t\t\tExtraField field_3 = new ExtraField();\n\t\t\t\t\t\t\t\tfield_3.setFieldType(\"Label\");\n\t\t\t\t\t\t\t\tfield_3.setValue(String.valueOf(rule\n\t\t\t\t\t\t\t\t\t\t.getEffectDuration()));\n\t\t\t\t\t\t\t\tfield_3.setLabelName(\"Effect Duration: (secs)\");\n\t\t\t\t\t\t\t\tfield_3.setOrder(3);\n\t\t\t\t\t\t\t\trlExtraFields.add(field_3);\n\n\t\t\t\t\t\t\t\t// Rollover period\n\t\t\t\t\t\t\t\tExtraField field_4 = new ExtraField();\n\t\t\t\t\t\t\t\tfield_4.setFieldType(\"Label\");\n\t\t\t\t\t\t\t\tfield_4.setValue(String.valueOf(rule\n\t\t\t\t\t\t\t\t\t\t.getRolloverPeriod()));\n\t\t\t\t\t\t\t\tfield_4.setLabelName(\"Rollover Period:\");\n\t\t\t\t\t\t\t\tfield_4.setOrder(4);\n\t\t\t\t\t\t\t\trlExtraFields.add(field_4);\n\n\t\t\t\t\t\t\t\t// priority\n\t\t\t\t\t\t\t\tExtraField field_5 = new ExtraField();\n\t\t\t\t\t\t\t\tfield_5.setFieldType(\"Label\");\n\t\t\t\t\t\t\t\tfield_5.setValue(String.valueOf(rule\n\t\t\t\t\t\t\t\t\t\t.getPriority()));\n\t\t\t\t\t\t\t\tfield_5.setLabelName(\"Priority:\");\n\t\t\t\t\t\t\t\tfield_5.setOrder(5);\n\t\t\t\t\t\t\t\trlExtraFields.add(field_5);\n\n\t\t\t\t\t\t\t\t// Effect\n\t\t\t\t\t\t\t\tExtraField field_6 = new ExtraField();\n\t\t\t\t\t\t\t\tfield_6.setFieldType(\"Label\");\n\t\t\t\t\t\t\t\tfield_6.setValue(String.valueOf(rule\n\t\t\t\t\t\t\t\t\t\t.getEffect()));\n\t\t\t\t\t\t\t\tfield_6.setLabelName(\"Effect:\");\n\t\t\t\t\t\t\t\tfield_6.setOrder(6);\n\t\t\t\t\t\t\t\trlExtraFields.add(field_6);\n\n\t\t\t\t\t\t\t\t// Condition\n\t\t\t\t\t\t\t\tExtraField field_7 = new ExtraField();\n\t\t\t\t\t\t\t\tfield_7.setFieldType(\"Label\");\n\t\t\t\t\t\t\t\tStringBuilder conditions = new StringBuilder();\n\n\t\t\t\t\t\t\t\tCondition condition = rule.getCondition();\n\n\t\t\t\t\t\t\t\tif (condition != null) {\n\n\t\t\t\t\t\t\t\t\tExpression expression = condition\n\t\t\t\t\t\t\t\t\t\t\t.getExpression();\n\t\t\t\t\t\t\t\t\tif (expression != null) {\n\t\t\t\t\t\t\t\t\t\tconditions\n\t\t\t\t\t\t\t\t\t\t\t\t.append(expression\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getPrimitiveValue()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getValue());\n\t\t\t\t\t\t\t\t\t\tconditions.append('\\n');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfield_7.setValue(String.valueOf(conditions\n\t\t\t\t\t\t\t\t\t\t.toString()));\n\t\t\t\t\t\t\t\tfield_7.setLabelName(\"Condition:\");\n\t\t\t\t\t\t\t\tfield_7.setOrder(7);\n\t\t\t\t\t\t\t\trlExtraFields.add(field_7);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn rlExtraFields;\n\t\t\t\t\t}",
"java.lang.String getField1230();",
"public Map<String, String> getOriginalFields() {\r\n return Collections.unmodifiableMap(originalFields);\r\n }",
"AlgOptTable extend( List<AlgDataTypeField> extendedFields );",
"private void newGroup()\n\t{\n\t\t// There is no need anymore to take care of the meta-data.\n\t\t// That is done once in DenormaliserMeta.getFields()\n\t\t//\n data.targetResult = new Object[meta.getDenormaliserTargetFields().length];\n \n for (int i=0;i<meta.getDenormaliserTargetFields().length;i++)\n {\n data.targetResult[i] = null;\n\n data.counters[i]=0L; // set to 0\n data.sum[i]=null;\n }\n\t}",
"@Override\n public int getFieldCount() {\n return 0;\n }",
"public Builder keepAll(){\n this.keepMode = KeepMode.ALL;\n return this;\n }",
"@Override public final DeclContext$Fields $DeclContext$Fields() { return DeclContext$Flds; }",
"protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }",
"@Override\n\tprotected String getParameterizedFields()\n\t{\n\t\tString fields = \" HBLNM=?, HBCFR=?, HBCFL=?, HBRNM=?, HBDLM=? \";\n\t\treturn fields;\n\t}",
"java.lang.String getField1406();",
"@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> fields(String... fields);",
"EmulatedFieldsForDumping(ObjectStreamClass streamClass) {\n super();\n emulatedFields = new EmulatedFields(streamClass.fields(),\n (ObjectStreamField[]) null);\n }",
"public Builder clearField1142() {\n \n field1142_ = getDefaultInstance().getField1142();\n onChanged();\n return this;\n }",
"@Override public final Redeclarable$Fields $Redeclarable$Fields() { return Redeclarable$Flds; }",
"public void clearFields() {\n\t\tid.clear();\n\t\tfn.clear();\n\t\tln.clear();\n\t\tage.clear();\n\t\tun.clear();\n\t\tpass.clear();\n\t\tdate.setValue(null);\n\t}",
"@Override\n public void noteConfiguration() {\n preprocessBean = new KeepColumnPreProcessorBean();\n super.noteConfiguration();\n }",
"java.lang.String getField1830();",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder= new ArrayList<String>();\n FieldOrder.add(\"dsapiVersionNo\");\n FieldOrder.add(\"sessionId\");\n FieldOrder.add(\"valueMark\");\n FieldOrder.add(\"fieldMark\");\n return FieldOrder;\n }",
"public Builder clearField1240() {\n \n field1240_ = getDefaultInstance().getField1240();\n onChanged();\n return this;\n }",
"default <T> T getAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers())) continue;\n if (Modifier.isTransient(field.getModifiers())) continue;\n\n if (!contains(field.getName())) continue;\n\n try {\n if (field.getType().equals(double.class)) {\n if (!isNumber(field.getName())) continue;\n field.setDouble(object, getDouble(field.getName()));\n } else if (field.getType().equals(float.class)) {\n if (!isNumber(field.getName())) continue;\n field.setFloat(object, (float) getDouble(field.getName()));\n } else if (field.getType().equals(int.class)) {\n if (!isNumber(field.getName())) continue;\n field.setInt(object, getInt(field.getName()));\n } else if (field.getType().equals(boolean.class)) {\n if (!isBoolean(field.getName())) continue;\n field.setBoolean(object, getBoolean(field.getName()));\n } else if (field.getType().equals(long.class)) {\n if (!isNumber(field.getName())) continue;\n field.setLong(object, getLong(field.getName()));\n } else if (field.getType().equals(short.class)) {\n if (!isNumber(field.getName())) continue;\n field.setShort(object, (short) getInt(field.getName()));\n } else if (field.getType().equals(byte.class)) {\n if (!isNumber(field.getName())) continue;\n field.setByte(object, (byte) getInt(field.getName()));\n } else {\n Object newValue = getType(field.getName(), field.getType());\n if (newValue == null) continue;\n\n field.set(object, newValue);\n }\n\n } catch (IllegalAccessException e) {\n //This should not happen hopefully.\n e.printStackTrace();\n }\n }\n\n return object;\n }",
"private FieldList getBestSupportingFieldList(Record record){\n FieldList best = null;\n List<FieldList> supported = getSupportingFieldLists(record);\n if (!supported.isEmpty()){\n int recordSize = record.size();\n for (FieldList candidate: supported){\n if (best == null){\n best = candidate;\n }\n else if (candidate.size() == recordSize && best.size() != recordSize){\n best = candidate;\n }\n else if (candidate.isDefault()){\n best = candidate;\n }\n }\n }\n return best;\n }",
"public Set<Field> getFields() {\r\n \t\t// We will only consider private fields in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredFields(), source.getFields());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getFields());\r\n \t}",
"java.lang.String getField1430();",
"private void getMarkerFields() {\n\r\n\t\tString strMarkerType = _strMarkerType.replace(\" \", \"\");\r\n\t\t\r\n\t\tFieldProperties[] listOfSourceFieldProperties = null;\r\n\t\tFieldProperties[] listOfDataFieldProperties = null;\r\n\t\tFieldProperties[] listOfGIDsFieldPropertiesForDArT = null;\r\n\t\t\r\n\t\tlistOfSourceColumnFields = new ArrayList<FieldProperties>();\r\n\t\tlistOfDataColumnFields = new ArrayList<FieldProperties>();\r\n\t\tlistOfAdditionalGIDsColumnFieldsForDArT = new ArrayList<FieldProperties>();\r\n\t\t\r\n\t\tif (strMarkerType.equals(\"SSRMarker\")){\r\n\t\t\t//strSourceFileName = \"SSRMarker\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.SSRMarker;\r\n\t\t\tstrSourceSheetTitle = \"SSRMarkers\";\r\n\t\t} else if (strMarkerType.equals(\"SNPMarker\")){\r\n\t\t\t//strSourceFileName = \"SNPMarker\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.SNPMarker;\r\n\t\t\tstrSourceSheetTitle = \"SNPMarkers\";\r\n\t\t} else if (strMarkerType.equals(\"CISRMarker\")){\r\n\t\t\t//strSourceFileName = \"CISRMarker\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.CISRMarker;\r\n\t\t\tstrSourceSheetTitle = \"CISRMarkers\";\r\n\t\t} else if (strMarkerType.equals(\"CAPMarker\")){\r\n\t\t\t//strSourceFileName = \"CAPMarker\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.CAPMarker;\r\n\t\t\tstrSourceSheetTitle = \"CAPMarkers\";\r\n\t\t} else if (strMarkerType.equals(\"SSRGenotype\")){\r\n\t\t\t//strSourceFileName = \"SSRGenotype_Source\";\r\n\t\t\t//strDataFileName = \"SSRGenotype_Data\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.SSRGenotype_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.SSRGenotype_Data;\r\n\t\t\tstrSourceSheetTitle = \"SSR_Source\";\r\n\t\t\tstrDataSheetTitle = \"SSR_Data List\";\r\n\t\t} /*else if (strMarkerType.equals(\"SNPGenotype\")){\r\n\t\t\t//strSourceFileName = \"SNPGenotype_Source\";\r\n\t\t\t//strDataFileName = \"SNPGenotype_Data\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.SNPGenotype_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.SNPGenotype_Data;\r\n\t\t\tstrSourceSheetTitle = \"SNPGenotype_Source\";\r\n\t\t\tstrDataSheetTitle = \"SNPGenotype_Data\";\r\n\t\t} */\r\n\t\telse if (strMarkerType.equals(\"GenericSNP\")){\r\n\t\t\t//\"Generic SNP\"\r\n\t\t\t//TODO: 20131206: Tulasi --- Implementation pending - to display the data from the template in the table \r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.SNPGenotype_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.SNPGenotype_Data;\r\n\t\t\tstrSourceSheetTitle = \"SNPGenotype_Source\";\r\n\t\t\tstrDataSheetTitle = \"SNPGenotype_Data\";\r\n\t\t} else if (strMarkerType.equals(\"LGCGenomicsSNP\")){\r\n\t\t\t//\"LGC Genomics SNP\"\r\n\t\t\t//TODO: 20131206: Tulasi --- Implementation pending - to display the data from the template in the table \r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.LGCGenomicsSNPGenotype_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.LGCGenomicsSNPGenotype_Data;\r\n\t\t\tstrSourceSheetTitle = \"LGCGenomicsSNPGenotype_Source\";\r\n\t\t\tstrDataSheetTitle = \"LGCGenomicsSNPGenotype_Data\";\r\n\t\t} else if (strMarkerType.equals(\"DArtGenotype\")){\r\n\t\t\t//strSourceFileName = \"DArtGenotype_Source\";\r\n\t\t\t//strDataFileName = \"DArtGenotype_Data\";\r\n\t\t\t//strAdditonalGIDsFileNameForDArt = \"DArtGenotype_GID\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.DArtGenotype_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.DArtGenotype_Data;\r\n\t\t\tlistOfGIDsFieldPropertiesForDArT = UploadTableFields.DArtGenotype_GID;\r\n\t\t\tstrSourceSheetTitle = \"DArT_Source\";\r\n\t\t\tstrDataSheetTitle = \"DArT_Data\";\r\n\t\t\tstrGIDsSheetTitleForDArT = \"DArT_GIDs\";\r\n\t\t} else if (strMarkerType.equals(\"AllelicData\") || strMarkerType.equals(\"ABHData\") ){\r\n\t\t\t//strSourceFileName = \"MappingGenotype_Source\";\r\n\t\t\t//strDataFileName = \"MappingGenotype_Data\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.MappingGenotype_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.MappingGenotype_Data;\r\n\t\t\tstrSourceSheetTitle = \"Mapping_Source\";\r\n\t\t\tstrDataSheetTitle = \"Mapping_DataList\";\r\n\t\t} else if (strMarkerType.equals(\"QTL\")){\r\n\t\t\t//strSourceFileName = \"QTL_Source\";\r\n\t\t\t//strDataFileName = \"QTL_Data\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.QTL_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.QTL_Data;\r\n\t\t\tstrSourceSheetTitle = \"QTL_Source\";\r\n\t\t\tstrDataSheetTitle = \"QTL_Data\";\r\n\t\t} else if (strMarkerType.equals(\"Map\")){\r\n\t\t\t//strSourceFileName = \"Map_Source\";\r\n\t\t\t//strDataFileName = \"Map_Data\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.Map_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.Map_Data;\r\n\t\t\tstrSourceSheetTitle = \"Map_Source\";\r\n\t\t\tstrDataSheetTitle = \"Map_Data\";\r\n\t\t} else if (strMarkerType.equals(\"MTA\")){\r\n\t\t\t//strSourceFileName = \"Map_Source\";\r\n\t\t\t//strDataFileName = \"Map_Data\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.MTA_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.MTA_Data;\r\n\t\t\tstrSourceSheetTitle = \"Map_Source\";\r\n\t\t\tstrDataSheetTitle = \"Map_Data\";\r\n\t\t}else {\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.SSRMarker;\r\n\t\t}\r\n\t\t\r\n\t\tif (null != listOfSourceFieldProperties){\r\n\t\t\tfor (FieldProperties fieldProperties : listOfSourceFieldProperties) {\r\n\t\t\t\tlistOfSourceColumnFields.add(fieldProperties);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (null != listOfDataFieldProperties){\r\n\t\t\tfor (FieldProperties fieldProperties : listOfDataFieldProperties) {\r\n\t\t\t\tlistOfDataColumnFields.add(fieldProperties);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (null != listOfVariableDataColumns){\r\n\t\t\t\tfor (String columnTitle : listOfVariableDataColumns){\r\n\t\t\t\t\tFieldProperties fieldProperties = new FieldProperties(columnTitle, UploadField.REQUIRED.toString(), \"\", \"\");\r\n\t\t\t\t\tlistOfDataColumnFields.add(fieldProperties);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (null != listOfGIDsFieldPropertiesForDArT){\r\n\t\t\tfor (FieldProperties fieldProperties : listOfGIDsFieldPropertiesForDArT) {\r\n\t\t\t\tlistOfAdditionalGIDsColumnFieldsForDArT.add(fieldProperties);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t}",
"public Builder clearField1243() {\n \n field1243_ = getDefaultInstance().getField1243();\n onChanged();\n return this;\n }",
"public Builder clearField1443() {\n \n field1443_ = getDefaultInstance().getField1443();\n onChanged();\n return this;\n }",
"@Override\n public StructFields duplicate() {\n final StructFields newStruct = new StructFields();\n newStruct.fields.putAll(fields.entrySet().stream()\n .map(ent -> new Tuple<>(ent.getKey(), ent.getValue().duplicate()))\n .collect(Collectors.toMap(Tuple::getA, Tuple::getB)));\n return newStruct;\n }",
"public Builder clearField1048() {\n \n field1048_ = getDefaultInstance().getField1048();\n onChanged();\n return this;\n }",
"java.lang.String getField1500();",
"public Builder clearField1446() {\n \n field1446_ = getDefaultInstance().getField1446();\n onChanged();\n return this;\n }",
"@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> fields(EntityField... fields);",
"java.lang.String getField4();",
"java.lang.String getField1512();",
"java.lang.String getField1730();",
"@Override\n\tprotected String getFields()\n\t{\n\t\tString fields = \" HBLNM, HBCFR, HBCFL, HBRNM, HBDLM \";\n\t\treturn fields;\n\t}",
"public Builder clearField1246() {\n \n field1246_ = getDefaultInstance().getField1246();\n onChanged();\n return this;\n }",
"public Builder clearField1284() {\n \n field1284_ = getDefaultInstance().getField1284();\n onChanged();\n return this;\n }",
"List<FieldRestrictions> fieldRestrictions();",
"public void clearOrderByFields()\r\n\t{\r\n\t\tthis.orderByFields.clear();\r\n\t}",
"@Override\n\tpublic void setFields(FieldList fl) {\n\t\tlogger.debug(\"setFields :\");\n\t\tsuper.setFields(fl);\n\t}",
"public Builder clearField1435() {\n \n field1435_ = getDefaultInstance().getField1435();\n onChanged();\n return this;\n }",
"public Builder clearField1242() {\n \n field1242_ = getDefaultInstance().getField1242();\n onChanged();\n return this;\n }",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder=new ArrayList<>();\n FieldOrder.add(\"eventId\");\n FieldOrder.add(\"timestamp\");\n FieldOrder.add(\"type\");\n FieldOrder.add(\"username\");\n FieldOrder.add(\"fullMessage\");\n return FieldOrder;\n }"
] | [
"0.59416205",
"0.5639585",
"0.5415948",
"0.5414844",
"0.5337502",
"0.5317737",
"0.5300493",
"0.52835107",
"0.528257",
"0.52172285",
"0.5210397",
"0.52023166",
"0.5193315",
"0.5119721",
"0.51156837",
"0.5107027",
"0.51057434",
"0.5083161",
"0.50756294",
"0.5057746",
"0.5047119",
"0.5042592",
"0.50172573",
"0.4987888",
"0.49816215",
"0.4927912",
"0.49253196",
"0.49182883",
"0.491244",
"0.49003163",
"0.48825392",
"0.4879383",
"0.48782516",
"0.48738757",
"0.48737022",
"0.48401973",
"0.48399025",
"0.48286748",
"0.48279786",
"0.48253798",
"0.48154104",
"0.48065853",
"0.48044786",
"0.48028702",
"0.47998002",
"0.47915587",
"0.4790517",
"0.47795764",
"0.47711992",
"0.47682664",
"0.47602654",
"0.47588068",
"0.47570646",
"0.4757038",
"0.47344184",
"0.4733439",
"0.47329634",
"0.47143823",
"0.47131872",
"0.47107062",
"0.47072664",
"0.47061607",
"0.47050157",
"0.46993682",
"0.4688043",
"0.46839458",
"0.46784255",
"0.46770415",
"0.467278",
"0.4671598",
"0.46698934",
"0.4669545",
"0.46666712",
"0.46514553",
"0.46487764",
"0.4643162",
"0.46386236",
"0.46382904",
"0.4628542",
"0.46272764",
"0.46229848",
"0.46176127",
"0.46174768",
"0.4616894",
"0.4615949",
"0.46124676",
"0.46112865",
"0.46111694",
"0.46081594",
"0.45980644",
"0.45950156",
"0.45942414",
"0.45928088",
"0.45863998",
"0.45860824",
"0.4578797",
"0.457733",
"0.45759505",
"0.45757982",
"0.4575649",
"0.4575555"
] | 0.0 | -1 |
Value to write if no title is found (optional). | public void setDefault(String defaultTitle) {
this.defaultTitle = defaultTitle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTitle(String value) {\n/* 337 */ setTitle((String)null, value);\n/* */ }",
"public void addTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), TITLE, value);\r\n\t}",
"public java.lang.String getTitle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TITLE$2);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public void setTitle(String title) {\r\n if (title != null) {\r\n this.title = title;\r\n }\r\n else{\r\n System.out.println(\"Not a valid title\");\r\n }\r\n }",
"public void setTitle(java.lang.String value) {\n this.title = value;\n }",
"@Override\r\n\tpublic String getTitle() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}",
"public String GetTitle(){ return(title); }",
"@Override\r\n\t\tpublic String getTitle()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public String getTitle() {\n/* 354 */ return getTitle((String)null);\n/* */ }",
"@Override\r\n public String getTitle()\r\n {\n return null;\r\n }",
"public void storeTitle(final String variableName);",
"@ObjectSupport public final String title() {\n return title==null\n ? title = createTitle()\n : title;\n }",
"@Override\n\tprotected String getTitle()\n\t{\n\t\treturn null;\n\t}",
"public void setTitle(java.lang.String title)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TITLE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TITLE$2);\n }\n target.setStringValue(title);\n }\n }",
"public void setTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), TITLE, value);\r\n\t}",
"public String getTitle( ) {\n return null;\r\n }",
"@Override\n\tpublic int getTitle() {\n\t\treturn 0;\n\t}",
"protected String getValueTitle() {\r\n\t\treturn \"Value\";\r\n\t}",
"private void setTitle(String userTitle){\n title = userTitle;\n }",
"public boolean hasTitle() {\n return fieldSetFlags()[0];\n }",
"public String getThatTitle(){\n return this.title;\n }",
"@Override\r\n\tpublic void getTitle(String title) {\n\t\t\r\n\t}",
"public void addTitle(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), TITLE, value);\r\n\t}",
"public void setTitle(String title) { this.title = title; }",
"public String get(String title) {\n\t\treturn prop.getProperty(title);\n\t}",
"@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}",
"@Override\n\tpublic CharSequence getTitle() {\n\t\treturn null;\n\t}",
"public String getTitle() {\n return null;\n }",
"@DISPID(-2147418043)\n @PropPut\n void title(\n java.lang.String rhs);",
"public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }",
"public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }",
"public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }",
"public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }",
"@Override\r\n public String getTitle() {\n return title;\r\n }",
"@Override\r\n\tprotected String getExportFileTitle() {\n\t\treturn null;\r\n\t}",
"protected void SetTitle(String newTitle){ title = newTitle; }",
"private String getTitle() {\n return title;\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"@Override\r\n public String getTitle() {\r\n return title;\r\n }",
"public void xsetTitle(com.a9.spec.opensearch.x11.QueryType.Title title)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.Title target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.Title)get_store().find_attribute_user(TITLE$2);\n if (target == null)\n {\n target = (com.a9.spec.opensearch.x11.QueryType.Title)get_store().add_attribute_user(TITLE$2);\n }\n target.set(title);\n }\n }",
"public String getTitle() { return title; }",
"public java.lang.Object getTitle() {\n return title;\n }",
"public String getTitle() { return this.title; }",
"public void removeTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), TITLE, value);\r\n\t}",
"@NonNull\r\n public String getTitle() {\r\n return f_title;\r\n }",
"@Override\n\tpublic String getTitle() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}",
"public void saveValue() {\n String[] idCol = assignedDataObject.getIdentifyTemplate().getIdentifyColumnNames();\n if (!(idCol.length == 1 && name.equals(idCol[0]))) { // method \"copy\" must not change unique key name! For any other methods it is not needed to save from frame.\n if (this.getText().equals(\"\")) {\n assignedDataObject.setInt(name, 0);\n } else {\n assignedDataObject.setInt(name, this.getIntValue());\n }\n }\n }",
"private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }",
"public String getTitle() {\n return bufTitle;\n }",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"@Input\n @Optional\n public String getTitle() {\n return _title;\n }",
"public String title()\n\t{\n\t\treturn title;\n\t}",
"private boolean updateTitle()\r\n\t{\r\n\t\tString newTitle = titleBase != null ? titleBase : \"\";\r\n\r\n\t\tif (propertyBrowser.isReadOnly() && readonlyText != null)\r\n\t\t{\r\n\t\t\tnewTitle += readonlyText;\r\n\t\t}\r\n\r\n\t\tif (propertyBrowser.isObjectModified() && modifiedText != null)\r\n\t\t{\r\n\t\t\tnewTitle += modifiedText;\r\n\t\t}\r\n\r\n\t\tif (title == null || !title.equals(newTitle))\r\n\t\t{\r\n\t\t\ttitle = newTitle;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void setTitle(Title title) {\r\n this.title = title;\r\n }",
"@Override\n public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return \"\";\n }",
"public void setTitle(java.lang.Object title) {\n this.title = title;\n }",
"public String getTitle() {\n \t\treturn title;\n \t}",
"public String getTitle() {\r\n\t\treturn (String) getProperty(\"title\");\t\r\n\t}",
"public String getTitle()\n {\n return (this.title);\n }",
"public Builder setTitle(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n title_ = value;\n onChanged();\n return this;\n }",
"public Builder setTitle(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n title_ = value;\n onChanged();\n return this;\n }",
"public String getTitle()\r\n {\r\n return title;\r\n }",
"public String getTitle()\r\n {\r\n return title;\r\n }",
"String get_title()\n {\n return title;\n }",
"public Title(String title)\r\n {\r\n this();\r\n if( title != null )\r\n add(title);\r\n }",
"public Builder setTitle(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n title_ = value;\n onChanged();\n return this;\n }",
"public void validateTitle()\r\n\t{\r\n\t\tString titleDisplayed = this.heading.getText();\r\n\t\tassertEquals(titleDisplayed, \"Dashboard\");\r\n\t\tSystem.out.println(\"Value is asserted\");\r\n\t\t\t}",
"@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"public java.lang.String getDefault_title() {\n return default_title;\n }",
"public String getTitle() {\r\n return insertMode ? \"\" : stringValue(CONTACTS_TITLE);\r\n }",
"public String getTitle() {\n\treturn title;\n}",
"public Builder setTitle(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n title_ = value;\n onChanged();\n return this;\n }",
"public String getTitle()\n\t{\n\t\treturn title;\n\t}",
"public String getTitle()\n\t{\n\t\treturn title;\n\t}",
"public void addAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}",
"public com.a9.spec.opensearch.x11.QueryType.Title xgetTitle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.Title target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.Title)get_store().find_attribute_user(TITLE$2);\n return target;\n }\n }",
"@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_dictData.setTitle(title);\n\t}",
"public String title() {\n\t\treturn title;\n\t}",
"private String insertTitle()\n {\n boolean valid = false;\n String title = \"\";\n \n Scanner console = new Scanner(System.in);\n \n while (!valid)\n {\n System.out.print(\"\\t\\tPlease insert the movies' title: \");\n title = console.nextLine().trim().toLowerCase();\n valid = validation.checkNoBlank(title);\n }\n \n return title;\n }",
"public default boolean hasTitle() {\n\t\tString title = getTitle();\n\t\treturn title != null && !title.trim().isEmpty();\n\t}",
"public static void addTitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, TITLE, value);\r\n\t}",
"@Override\n\tpublic java.lang.String getTitle() {\n\t\treturn _dictData.getTitle();\n\t}"
] | [
"0.58070797",
"0.5797471",
"0.5698605",
"0.5693548",
"0.56366414",
"0.56160504",
"0.56009126",
"0.56009126",
"0.56009126",
"0.5583325",
"0.5579866",
"0.55622697",
"0.555321",
"0.54992884",
"0.5482602",
"0.5475036",
"0.5453866",
"0.5427397",
"0.54175884",
"0.54086703",
"0.54052395",
"0.5394022",
"0.53818226",
"0.53669757",
"0.53588206",
"0.53565854",
"0.53520244",
"0.53178716",
"0.52986556",
"0.52959764",
"0.52923954",
"0.5291342",
"0.5290521",
"0.5290521",
"0.5290521",
"0.5290521",
"0.52861387",
"0.5281142",
"0.52643055",
"0.5257983",
"0.5253577",
"0.5253577",
"0.5253577",
"0.5253577",
"0.5253577",
"0.5253577",
"0.5253577",
"0.5253577",
"0.5253577",
"0.5253577",
"0.5253577",
"0.5253577",
"0.5246528",
"0.5245352",
"0.5241959",
"0.5230401",
"0.5227846",
"0.5227376",
"0.52243996",
"0.52130884",
"0.52053607",
"0.520458",
"0.52024615",
"0.5201395",
"0.5201395",
"0.5201395",
"0.5201395",
"0.5201395",
"0.51945746",
"0.51922727",
"0.51762015",
"0.51739603",
"0.51706374",
"0.5170411",
"0.5163778",
"0.5161032",
"0.51598096",
"0.5149251",
"0.5141652",
"0.5141652",
"0.5139833",
"0.5139833",
"0.5138069",
"0.51302755",
"0.5127498",
"0.5110947",
"0.51041603",
"0.51027524",
"0.5102126",
"0.51008904",
"0.50979346",
"0.50975966",
"0.50975966",
"0.5093795",
"0.5093664",
"0.50896436",
"0.50894433",
"0.5088741",
"0.5087578",
"0.5082753",
"0.508124"
] | 0.0 | -1 |
Override onAttach to make sure that the container activity has implemented the callback | @Override
public void onAttach(Context context) {
super.onAttach(context);
// This makes sure that the host activity has implemented the callback interface
// If not, it throws an exception
try {
mCallback = (OnStepClickListener) context;
} catch (ClassCastException e) {
throw new ClassCastException(context.toString()
+ " must implement OnStepClickListener");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void onAttach();",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n\n Log.v(TAG, \"on attach\");\n callback = (Callback)activity;\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n if (callbackManager != null) callbackManager.setActivity(activity);\n }",
"@Override\r\n public void onAttach(Context context) {\r\n super.onAttach(context);\r\n }",
"@Override\n public void onAttach(Activity activity)\n {\n super.onAttach(activity);\n // Verify that the host activity implements the callback interface\n try\n {\n // Instantiate the RestartGameDialogListener so we can send events\n // to the host\n mListener = (RestartGameDialogListener)activity;\n }\n catch (ClassCastException e)\n {\n throw new ClassCastException(activity.toString()\n + \" must implement RestartGameDialogListener\");\n }\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n // Verify that the host activity implements the callback interface\n try {\n // Instantiate the NoticeDialogListener so we can send events to the host\n dialogListener = (AddContractDialogListener) activity;\n } catch (ClassCastException e) {\n // The activity doesn't implement the interface, throw exception\n throw new ClassCastException(activity.toString() + \" must implement AddContractDialogListener\");\n }\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n // Ensure attached activity has implemented the callback interface.\n try {\n // Acquire the implemented callback\n mLoginFinishBtnClickListener = (onLoginFinishBtnClickListener) context;\n } catch (ClassCastException e) {\n // If not, it throws an exception\n throw new ClassCastException(context.toString() + \" must implement onLoginFinishBtnClickListener\");\n }\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n // Verify that the host activity implements the callback interface\n try {\n // Instantiate the SelectPetDialogListener so we can send events to the host\n listener = (SelectPetDialogListener) context;\n } catch (ClassCastException e) {\n // The activity doesn't implement the interface, throw exception\n throw new ClassCastException(\"Activity must implement AddPetDialogListener\");\n }\n }",
"@Override\n\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n // Verify that the host activity implements the callback interface\n try {\n // Instantiate the listener so we can send events to the host\n mListener = (TrackPlayerDialogListener) activity;\n } catch (ClassCastException e) {\n // The activity doesn't implement the interface, throw exception\n throw new ClassCastException(activity.toString()\n + \" must implement TrackPlayerDialogListener\");\n }\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}",
"@Override\r\n public void onAttach(Activity activity) {\n super.onAttach(activity);\r\n\r\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n // Verify that the host activity implements the callback interface\n try {\n // Instantiate the NoticeDialogListener so we can send events to the host\n mListener = (VoidReasonDialogListener) activity;\n } catch (ClassCastException e) {\n // The activity doesn't implement the interface, throw exception\n throw new ClassCastException(activity.toString()\n + \" must implement VoidReasonDialogListener\");\n }\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n // Verify that the host activity implements the callback interface\n try {\n // Instantiate the NoticeDialogListener so we can send events to the host\n mListener = (Listener) activity;\n } catch (ClassCastException e) {\n // The activity doesn't implement the interface, throw exception\n throw new ClassCastException(activity.toString()\n + \" must implement NoticeDialogListener\");\n }\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n }",
"@Override\n\tprotected void onAttachedToActivity() {\n\t\tsuper.onAttachedToActivity();\n\t}",
"@Override\n public void onAttach(Activity activity) {\n \tthis.activity = activity;\n \t\n \tsuper.onAttach(activity);\n \n // Verify that the host activity implements the callback interface\n try {\n // Instantiate the NoticeDialogListener so we can send events to the host\n mListener = (NoticeDialogListener) activity;\n } catch (ClassCastException e) {\n // The activity doesn't implement the interface, throw exception\n throw new ClassCastException(activity.toString()\n + \" must implement NoticeDialogListener\");\n }\n }",
"@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t}",
"@TargetApi(23)\n @Override\n public void onAttach(Context context) {\n super.onAttach(context);\n onAttachToContext(context);\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n\n // Verify that the host activity implements the callback interface\n try {\n // Instantiate the SetPasswordDialogListener so we can send events to the host\n deleteUserPromptListener = (DeleteUserPrompt.DeleteUserPromptListener) activity;\n } catch (ClassCastException e) {\n // The activity doesn't implement the interface, throw exception\n throw new ClassCastException(activity.toString()\n + \" must implement DeleteUserPromptListener\");\n }\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n // Verify that the host activity implements the callback interface\n try {\n // Instantiate the NoticeDialogListener so we can send events to the host\n mListener = (DialogListener) activity;\n } catch (ClassCastException e) {\n // The activity doesn't implement the interface, throw exception\n throw new ClassCastException(activity.toString()\n + \" must implement NoticeDialogListener\");\n }\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n // Verify that the host activity implements the callback interface\n try {\n // Instantiate the NoticeDialogListener so we can send events to the host\n mListener = (NoticeDialogListener) activity;\n } catch (ClassCastException e) {\n // The activity doesn't implement the interface, throw exception\n throw new ClassCastException(activity.toString()\n + \" must implement NoticeDialogListener\");\n }\n }",
"@Override\r\n\t\tpublic void onAttach(Activity activity) {\n\t\t\tsuper.onAttach(activity);\r\n\t\t\tmCallback=(Fragment_Listener)activity;\r\n\t\t\t\r\n\t\t}",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n\n // Activities containing this fragment must implement its callbacks.\n if (!(activity instanceof Callbacks)) {\n throw new IllegalStateException(\n \"Activity must implement fragment's callbacks.\");\n }\n mCallbacks = (Callbacks) activity;\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n\n // This makes sure that the container activity has implemented\n // the callback interface. If not, it throws an exception\n try {\n mCallback = (OnFriendSelectedListener) activity;\n } catch (ClassCastException e) {\n throw new ClassCastException(activity.toString()\n + \" must implement OnHeadlineSelectedListener\");\n }\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n // Verify that the host activity implements the callback interface\n try {\n // Instantiate the NoticeDialogListener so we can send events to the host\n mListener = (NewProjectDialogListener) activity;\n } catch (ClassCastException e) {\n // The activity doesn't implement the interface, throw exception\n throw new ClassCastException(activity.toString()\n + \" must implement NoticeDialogListener\");\n }\n }",
"@Override\n\tpublic void onAttach(final Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\t// Verify that the host activity implements the callback interface\n\t\ttry {\n\t\t\t// Instantiate the NoticeDialogListener so we can send events to the\n\t\t\t// host\n\t\t\tmListener = (NoticeDialogListener) activity;\n\t\t} catch (final ClassCastException e) {\n\t\t\t// The activity doesn't implement the interface, throw exception\n\t\t\tthrow new ClassCastException(activity.toString()\n\t\t\t\t\t+ \" must implement NoticeDialogListener\");\n\t\t}\n\t}",
"@SuppressWarnings(\"deprecation\")\n @Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n commonOnAttach(activity);\n }\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\n\t\t// This makes sure that the container activity has implemented\n\t\t// the callback interface. If not, it throws an exception\n\t\ttry {\n\t\t\tmCallback = (PickRecordCommunicator) activity;\n\t\t} catch (ClassCastException e) {\n\t\t\tthrow new ClassCastException(activity.toString()\n\t\t\t\t\t+ \" must implement PickRecordCommunicator\");\n\t\t}\n\t}",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n // Verify that the host activity implements the callback interface.\n try {\n // Instantiate the ImageChooserDialogListener so we can send events to the host.\n mListener = (ImageChooserDialogListener) activity;\n } catch (ClassCastException e) {\n // The activity doesn't implement the interface, throw exception.\n throw new ClassCastException(activity.toString()\n + \" must implement ImageChooserDialogListener.\");\n }\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n callEvents = (MesiboVideoCallFragment.OnCallEvents) activity;\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n\n // This makes sure that the host activity has implemented the callback interface\n // If not, it throws an exception\n try {\n mOnClickHandler = (RecipeDetailFragmentStepAdapter.OnRecipeStepClickHandler) context;\n mRecipeDetailHandler = (RecipeDetailHandler) context;\n } catch (ClassCastException e) {\n throw new ClassCastException(context.toString()\n + \" must implement RecipeDetailFragmentStepAdapter.OnRecipeStepClickHandler AND RecipeDetailHandler\");\n }\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n // Verify that the host activity implements the callback interface\n try {\n // Instantiate the NoticeDialogListener so we can send events to the host\n mListener = (LeaveChanDialogListener) activity;\n } catch (ClassCastException e) {\n // The activity doesn't implement the interface, throw exception\n throw new ClassCastException(activity.toString()\n + \" must implement LeaveChanDialogListener\");\n }\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tLog.d(\"Fragment02\",\"onAttach\");\n\t}",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n // Verify that the host activity implements the callback interface\n try {\n // Instantiate the SettingsManualInputDialogListener so we can send events to the host\n mListener = (SettingsManualInputDialogListener) activity;\n } catch (ClassCastException e) {\n // The activity doesn't implement the interface, throw exception\n throw new ClassCastException(activity.toString()\n + \" must implement SettingsManualInputDialogListener\");\n }\n }",
"@SuppressWarnings(\"deprecation\")\n @Override public void onAttach(Activity activity) {\n super.onAttach(activity);\n if (Build.VERSION.SDK_INT < 23) {\n onAttachToContext(activity);\n }\n }",
"public void onAttach() {\n super.onAttach(getActivity());\n Log.i(sFragmentName, \"onAttach()\");\n }",
"@Override\n public void onAttach(Activity activity){\n super.onAttach(activity);\n\n //refer the listener variable declared above to the host activity when the fragment is attached\n listener = (AddEditCardListener) activity;\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n onAttachToContext(activity);\n }\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n // get a reference to the hosting activity in listener, works bc host activity must implement interface\n listener = (OnFragmentInteractionListener) context;\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n try{\n// mCallback = (FragmentIterationListener) activity;\n// }catch(CastClassException ex){\n }catch(Exception ex){\n Log.e(MovimientoListFragment.TAG, \"El Activity debe implementar la interfaz FragmentIterationListener\");\n }\n }",
"@Override \n\tpublic void onAttach(Activity activity) { \n\t\tsuper.onAttach(activity); \n\t\t// Verify that the host activity implements the callback interface \n\t\ttry { \n\t\t\t// Instantiate the NoticeDialogListener so we can send events to the host \n\t\t\tmListener = (SettingsDialogListener) activity; \n\t\t} \n\t\tcatch (ClassCastException e) { \n\t\t\t// The activity doesn't implement the interface, throw exception \n\t\t\tthrow new ClassCastException(activity.toString() + \" must implement SettingsDialogListener\"); \n\t\t} \n\t}",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n\n // This makes sure that the host activity has implemented the callback interface\n // If not, it throws an exception\n try {\n paginationHandler = (PaginationHandler) context;\n } catch (ClassCastException e) {\n Timber.d(\"PaginationHandler is not set. Must be a tablet then.\");\n }\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n fragmentCallBack = (MainActivity) activity;// ActivityʵfragmentCallBack\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n if (Build.VERSION.SDK_INT < 23) {\n onAttachToContext(activity);\n }\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n Activity activity = getActivity();\n try {\n appBarHandler = ((HasAppBarHandler) activity).getAppBarHandler();\n } catch (ClassCastException e) {\n throw new ClassCastException(activity + \" must implement HasAppBarHandler\");\n }\n PLYAndroidHolder plyAndroidHolder;\n try {\n plyAndroidHolder = ((HasPLYAndroidHolder) activity).getPLYAndroidHolder();\n } catch (ClassCastException e) {\n throw new ClassCastException(activity + \" must implement HasPLYAndroidHolder\");\n }\n client = plyAndroidHolder.getPLYAndroid();\n if (client == null) {\n throw new RuntimeException(\"PLYAndroid must bet set before creating fragment \" + this);\n }\n // execute some of the queries sequentially (i.e. creating product, uploading image and info)\n sequentialClient = client.copyForOrderedThreadExecution();\n }",
"@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t\tthis.mActivity = activity;\r\n\t}",
"@Override\r\n public void onAttach(Activity activity) {\n super.onAttach(activity);\r\n act = (BaseActivity) activity;\r\n\r\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n\n try {\n mListener = (IFragmentListener) activity;\n } catch (ClassCastException e) {\n throw new ClassCastException(activity.toString() + \" must implement IFragmentListener\");\n }\n }",
"@Override\n public void onAttach(Activity activity) {\n \tsuper.onAttach(activity);\n \tthis.act=activity;\n \t\n try{\n mCallback = (FragmentIterationListener) activity;\n }catch(ClassCastException ex){\n Log.e(\"ExampleFragment\", \"El Activity debe implementar la interfaz FragmentIterationListener\");\n }\n }",
"@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t\tmActivity = activity;\r\n\t\tstartAppAd = new StartAppAd(activity);\r\n\t}",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tthis.activity = activity;\n\t\tsuper.onAttach(activity);\n\t}",
"@Override\n public void onAttach(@NotNull Context context) {\n AndroidSupportInjection.inject(this);\n super.onAttach(context);\n }",
"@Override\n public void onAttach(@NotNull Context context) {\n AndroidSupportInjection.inject(this);\n super.onAttach(context);\n }",
"@Override\n public void onAttach(Context context) {\n mcontext = context;\n super.onAttach( context );\n }",
"@Override\n public void onAttach(@NonNull Context context) {\n super.onAttach(context);\n mIMainActivity = (IMainActivity) getActivity();\n }",
"@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t\ttry {\r\n\t\t\tmListener = (AddItemDialogListener) activity;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n mMesasListListener = (MesasListListener) getActivity();\n }",
"@Override\n public void onAttach(@NonNull Context context) {\n super.onAttach(context);\n\n try {\n dListener = (dialogListener) context; // dialog interface is equal to activity instance\n } catch (ClassCastException e) {\n // in case dialogListener didnt implemented\n throw new ClassCastException(context.toString() + \"must Implement dialogListener interface to MainActivity First\");\n }\n }",
"@Override\r\n\tpublic void onAttach(Activity activity) {\r\n\t\tLog.d(TAG, \"onAttach\");\r\n\t\tsuper.onAttach(activity);\r\n\t\tmActivity = activity;\r\n\t\ttry{\r\n\t\t\tCallBackLocalUserListFragmentListener listener = (CallBackLocalUserListFragmentListener)activity;\r\n\t\t\tlistener.getLocalUserListFragment(this);\r\n\t\t}catch (ClassCastException e) {\r\n\t\t\tLog.d(TAG, activity.toString() + \"must implement CallBackLocalUserListFragmentListener\");\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tcontext = activity;\n\t}",
"private void myOnAttach(Context context) {\n\n if (context instanceof LoginFragmentInteractionListener) {\n mListener = (LoginFragmentInteractionListener) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement LoginFragmentInteractionListener\");\n }\n }",
"@Override\n public void onAttach(Activity activity)\n {\n super.onAttach(activity);\n mActivity = (PlayerActivity) activity;\n\n // Create and execute the background task.\n mTask = new PlayerBackgroundTask();\n mTask.execute();\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\n\t\tcontext = activity;\n\t}",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof ComposeTweetListener) {\n mTweetListener = (ComposeTweetListener) context;\n } else {\n throw new ClassCastException(context.toString()\n + \" must implement ComposeTweetFragment.ComposeTweetListener\");\n }\n }",
"public interface OnAttachListener {\n void onAttached();\n\n void onDetached();\n}",
"@Override\n public void onAttach(@NonNull final Context context) {\n AndroidSupportInjection.inject(this);\n super.onAttach(context);\n }",
"@Override\n public void onAttach(@NonNull final Context context) {\n AndroidSupportInjection.inject(this);\n super.onAttach(context);\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n this.context = activity;\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n assert (activity != null) : \"Receive a null treatment\";\n\n\t\ttry {\n\t\t\tbeanCallbacks = (BeanListCallbacks) activity;\n\t\t} catch(ClassCastException exceptionClass) {\n\t\t\tthrow new ClassCastException(activity.toString() + \" must implement BeanListCallbacks.\");\n\t\t}\n\t}",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n mContext = context;\n mPresenter = createPresenter();\n if (mPresenter != null) {\n mPresenter.attachView((V) this);\n }\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n // mHost=(NetworkDialogListener)context;\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tlistenr = (CheckStateListener) getActivity();\n\t}",
"@Override\r\n public void onAttach(Context context) {\r\n super.onAttach(context);\r\n if (context instanceof OnFragmentInteractionListener) {\r\n mListener = (OnFragmentInteractionListener) context;\r\n } else {\r\n throw new RuntimeException(context.toString()\r\n + \" must implement OnFragmentInteractionListener\");\r\n }\r\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof OnFragmentInteractionListener) {\n mListener = (OnFragmentInteractionListener) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tparentActivity=activity;\n\t}",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n mContext = getActivity();\n }",
"@Override\n\tpublic void onAttach(Activity activity){\n\t\tsuper.onAttach(activity);\n try {\n mToDoArchivedCallback = (ToggleToDoItemArchivedState) activity;\n } catch (ClassCastException e) {\n throw new ClassCastException(activity.toString()\n + \" must implement ToggleToDoItemArchivedState\");\n }\t\t\n\t}",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tmContext = activity;\n\t\tMylog.i(TAG, \"Login fragment is attached\");\n\t}",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if(context instanceof OnMap){\n mOnMap = (OnMap) context;\n }\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n\n //Log.d(\"DEBUGAPP\", TAG + \" onAttach\");\n\n if (activity instanceof MainActivity) {\n mainActivity = (MainActivity) activity;\n }\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tmContext = getActivity();\n\t}",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n if (activity instanceof LoadingListener) {\n loadingListener = (LoadingListener) activity;\n } else {\n throw new ClassCastException(activity.toString() + \" must implement LoadingListener\");\n }\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof FragmentTwo.fragmentTwoInterface) {\n listener = (FragmentTwo.fragmentTwoInterface) context;\n }\n else {\n throw new RuntimeException();\n }\n }",
"@Override\n public void onAttach(Context context){\n super.onAttach(context);\n Activity activity = (Activity) context;\n if (context instanceof Activity){\n activity = (Activity) context;\n }\n\n try{\n listener = (StationFragmentListener) activity;\n }\n catch(ClassCastException e){\n throw new ClassCastException(activity.toString()\n + \" must implement NoticeDialogListener\");\n }\n\n\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n listener = (LoginFragment.LoginFragmentListener) context;\n }",
"@Override\n public void onAttach(Activity activity) {\n //super.onAttach(context);\n\n super.onAttach(activity);\n try{\n EM = (EnviarMensaje) activity;\n } catch (ClassCastException e) {\n throw new ClassCastException(\"Necesitas implementar un mensaje\");\n }\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n\n Log.d(TAG, \"onAttach\");\n\n if(context instanceof SurveyVoteListener){\n mVoteListener = (SurveyVoteListener) context;\n Log.d(TAG, \"On attach survey vote listener set \" + mVoteListener);\n } else {\n throw new RuntimeException(context.toString() + \" must implement SurveyVoteListener\");\n }\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n\n try {\n onDateListener = (OnDateListener) activity;\n } catch (ClassCastException e) {\n throw new ClassCastException(activity.toString() + \" must implement OnDateListener\");\n }\n }",
"@Override\n public void onDetach() {\n if (callbackManager != null) callbackManager.setActivity(null);\n super.onDetach();\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n\n try {\n listener = (Button_Interface) activity;\n } catch (ClassCastException e) {\n throw new ClassCastException(activity.toString() + \" must implement Button_Interface\");\n }\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n try {\n callback = (QuestionDisplay.Display) context;\n } catch (ClassCastException e) {\n throw new ClassCastException(context.toString()\n + \" must implement OnHeadlineSelectedListener\");\n }\n }",
"@Override\n public void onAttach(Activity context) {\n super.onAttach(context);\n if (!busIsRegistered) {\n BusService.getBus().register(this);\n busIsRegistered = true;\n }\n this.context = context;\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n context=activity;\n userPreferences = new UserPreferences(context);\n jobManager = new JobManager(context);\n }",
"@Override\n\tpublic void onAttach(Context context) {\n\t\tsuper.onAttach(context);\n\t\tmContext = getActivity();\n\t}"
] | [
"0.80008924",
"0.7982926",
"0.7853515",
"0.7612218",
"0.76015514",
"0.7554143",
"0.75436616",
"0.75240314",
"0.75203705",
"0.7510079",
"0.7482968",
"0.7473909",
"0.7473909",
"0.7473909",
"0.74672127",
"0.74487925",
"0.74467325",
"0.74300414",
"0.74300414",
"0.7407447",
"0.73992217",
"0.739163",
"0.73808426",
"0.7379097",
"0.7360405",
"0.733915",
"0.7318734",
"0.727695",
"0.7271068",
"0.72692764",
"0.7256396",
"0.72521585",
"0.72225446",
"0.71892047",
"0.71599555",
"0.71249026",
"0.710581",
"0.71054",
"0.70852137",
"0.70480263",
"0.70234734",
"0.7013543",
"0.7006567",
"0.70007",
"0.6997759",
"0.69971895",
"0.6995932",
"0.6986027",
"0.69642127",
"0.6885872",
"0.68767893",
"0.6867708",
"0.6860191",
"0.68080574",
"0.6801362",
"0.67963535",
"0.6795757",
"0.6795757",
"0.6793655",
"0.67785615",
"0.67633367",
"0.67535067",
"0.67458516",
"0.6742958",
"0.6742005",
"0.6729827",
"0.67232305",
"0.6711323",
"0.67092675",
"0.67048955",
"0.67027414",
"0.67027414",
"0.6683986",
"0.6655575",
"0.6626029",
"0.6622214",
"0.6621952",
"0.6619166",
"0.66118693",
"0.65640014",
"0.65582234",
"0.65567076",
"0.65509796",
"0.65224975",
"0.6512981",
"0.64944607",
"0.6473498",
"0.64698017",
"0.6451851",
"0.6442063",
"0.64304453",
"0.639749",
"0.6385075",
"0.6372076",
"0.6359244",
"0.63486415",
"0.6332412",
"0.633099",
"0.63229996",
"0.628348"
] | 0.73893744 | 22 |
Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a screenshot from the resulting frame. Requires that the target was created with enabled BeginFrameControl. Designed for use with runallcompositorstagesbeforedraw, see also for more background. experimental | public jpuppeteer.cdp.cdp.entity.headlessexperimental.BeginFrameResponse beginFrame(jpuppeteer.cdp.cdp.entity.headlessexperimental.BeginFrameRequest request, int timeout) throws Exception {
return session.send("HeadlessExperimental.beginFrame", request, jpuppeteer.cdp.cdp.entity.headlessexperimental.BeginFrameResponse.class, timeout);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void takesScreenshot();",
"@Override\n public void capture() {\n captureScreen();\n }",
"public Bitmap makeScreenshot() {\n renderer.setScreenshot();\n requestRender();\n return renderer.getLastScreenshot();\n }",
"public void screenshot() {\n\t\tRemoteWebDriver rwd = ((RemoteWebDriver) web.driver);\r\n\t\ttry {\r\n\t\t\trwd.getCommandExecutor().execute(new Command(rwd.getSessionId(), DriverCommand.ELEMENT_SCREENSHOT));\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.reportStackTrace(e);\r\n\t\t}\r\n\r\n\t}",
"public void takeScreenShot();",
"public native void renderFrame();",
"public native void renderFrame();",
"private void takeScreenshot(Activity activity) {\n uiDevice.waitForIdle(2000);\n\n // Create a file and save it\n Date start = new Date();\n final File screenFile = new File(Environment.getExternalStorageDirectory(), \"screen_\" + start.toString() + \"_\" + rand.nextInt());\n uiDevice.takeScreenshot(screenFile, 0.5f, 50);\n\n // Finally, attempt to send that file over websockets\n socket.sendScreenshot(screenFile, activity, start);\n\n }",
"void renderFrame(){\n if(getPlayer().isChoosingFile()) return; // don't render while filechooser is active\n \n if(canvasFileWriter.writingMovieEnabled) chipCanvas.grabNextImage();\n chipCanvas.paintFrame(); // actively paint frame now, either with OpenGL or Java2D, depending on switch\n \n if(canvasFileWriter.writingMovieEnabled){\n canvasFileWriter.writeMovieFrame();\n }\n }",
"@Test\n public void captureEntirePageScreenshot() throws IllegalArgumentException {\n WebDriverCommandProcessor proc = new WebDriverCommandProcessor(\"http://localhost/\", manager.get());\n CommandFactory factory = new CommandFactory(proc);\n factory.newCommand(1, \"captureEntirePageScreenshot\");\n }",
"@Override\r\n\tpublic void onTestSuccess(ITestResult tr) {\n\t\tLog.info(tr.getName() + \"---Test method passed---\\n\");\r\n \ttry {\r\n\t\t\ttakeScreenShot(tr);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@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 static void captureScreenShot(WebDriver driver) {\n\t\tlogger.info(\"Taking the screenshot\");\n\t\ttry {\n\t\t\tString timeStamp = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n\n\t\t\tTakesScreenshot ScrObj = (TakesScreenshot) driver;\n\n\t\t\tThread.sleep(3000);\n\n\t\t\tFile CaptureImg = ScrObj.getScreenshotAs(OutputType.FILE);\n\t\t\tFileUtils.copyFile(CaptureImg, new File(\"./Screenshots/\" + timeStamp + \"_screenshot.png\"));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tlogger.error(\"Error occured while Capturing Screenshot\");\n\t\t}\n\t}",
"public void requestScreenshot(Project project)\n\t{\n\t\trenderer.requestScreenshot(project.getCurrentSheetIndex());\n\t}",
"private void screenshot() {\n final JComponent active = this.active;\n if (active != null && active.isValid()) {\n final BufferedImage image = new BufferedImage(active.getWidth(), active.getHeight(), BufferedImage.TYPE_INT_RGB);\n final Graphics2D handler = image.createGraphics();\n active.print(handler);\n handler.dispose();\n File file = new File(Preferences.userNodeForPackage(DesktopPane.class).get(SCREENSHOT_DIRECTORY_PREFS, \".\"));\n file = new File(file, getTitle(active.getClass()) + \".png\");\n try {\n assertTrue(ImageIO.write(image, \"png\", file));\n file = file.getParentFile();\n Desktop.getDesktop().open(file);\n } catch (IOException e) {\n JOptionPane.showInternalMessageDialog(active, e.getLocalizedMessage(),\n e.getClass().getSimpleName(), JOptionPane.ERROR_MESSAGE);\n }\n } else {\n JOptionPane.showInternalMessageDialog(this, \"No active window.\", \"Screenshot\", JOptionPane.WARNING_MESSAGE);\n }\n }",
"void onCaptureStart();",
"private void takePicture() {\n\n captureStillPicture();\n }",
"@Override\n\tpublic void draw() {\n\t\tdouble t = System.currentTimeMillis();\n\t\tdouble dt = t - currentTime;\n\t\tcurrentTime = t;\n\n\t\t// Fetch current animation\n\t\tBaseAnimation animation = AnimationManager.getInstance().getCurrentAnimation();\n\t\tif (animation == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Draw animation frame with delta time\n\t\tanimation.draw(dt);\n\n\t\t// Send image to driver\n\t\tdriver.displayImage(animation.getImage());\n\n\t\t// Display previews\n\t\tbackground(0);\n\t\tif (ledPreviewEnabled) {\n\t\t\timage(preview.renderPreview(animation.getImage()), 0, 0);\n\t\t} else {\n\t\t\ttextAlign(CENTER);\n\t\t\ttextSize(16);\n\t\t\ttext(\"Press W to preview the animation.\", previewRect.width/2, previewRect.height/2);\n\t\t}\n\t\t\n\t\tif (sourcePreviewEnabled && BaseCanvasAnimation.class.isAssignableFrom(animation.getClass())) {\n\t\t\timage(((BaseCanvasAnimation) animation).getCanvasImage(), 0, 0);\n\t\t} else if (sourcePreviewEnabled) {\n\n\t\t\t// Copy animation image (else the animation image gets resized)\n\t\t\t// and scale it for better visibility\n\t\t\tPImage sourcePreview = animation.getImage().get();\n\t\t\tsourcePreview.resize(130, 405);\n\n\t\t\timage(sourcePreview, 0, 0);\n\t\t}\n\n\t}",
"public CyFrame captureCurrentFrame() throws IOException{\n\t//\tCyNetwork currentNetwork = Cytoscape.getCurrentNetwork();\n\t\tCyFrame frame = new CyFrame(bundleContext);\n\n\t/*\tCyApplicationManager appManager = (CyApplicationManager) getService(CyApplicationManager.class);\n\t\tCyNetworkView networkView = appManager.getCurrentNetworkView(); */\n\t\n\t\t//extract view data to make the frame\n\t\tframe.populate(); \n\t\n\t\t//set the interpolation count, or number of frames between this frame and the next to be interpolated\n\t\tframe.setInterCount(fps);\n\t\n\t\t//frame.setID(networkView.getIdentifier()+\"_\"+frameid);\n\t\t//System.out.println(\"Frame ID: \"+frameid);\n\t\n\t\t//capture an image of the frame\n\t\tframe.captureImage();\n\t\n\t\t//frameid++;\n\t\n\t\treturn frame;\n\t\n\t}",
"void startCapturing() {\n //YOUR CODE HERE\n\t if (hasCaptured() == false) {\n\t\t pieceCaptured = true;\n\t }\n }",
"public void takeScreenShot() {\r\n \t\tgraph.clearSelection();\r\n \t\tgraph.showScreenShotDialog();\r\n \t}",
"public void capturescreen(WebDriver driver, String testName) throws IOException {\n\t\tTakesScreenshot ts = (TakesScreenshot) driver;\n\t\tFile source = ts.getScreenshotAs(OutputType.FILE);\n\t\tFile target = new File(System.getProperty(\"user.dir\")+ \"\\\\screenshots\\\\\" + testName + \".png\");\n\t\tSystem.out.println(target);\n\t\tFileUtils.copyFile(source, target);\n\t\tSystem.out.println(\"Screenshot Captured for : \" + testName);\n\t}",
"private void QueryScreenShot() {\n\t\tThread initThread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\tlbIm1.setIcon(new ImageIcon(images.get(currentFrameNum)));\n\t\t\t}\n\t\t};\n\t\tinitThread.start();\n\t}",
"@Override\r\n public void run() {\n Mat frame = grabFrame();\r\n\r\n//\t\t\t\t\t\t// convert and show the frame\r\n//\t\t\t\t\t\tImage imageToShow = Utils.mat2Image(frame);\r\n//\t\t\t\t\t\tupdateImageView(currentFrame, imageToShow);\r\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tsynchronized (mSync) {\n\t\t\t\t// 描画スレッドが実行されるまで待機\n\t\t\t\tif (!isRunning) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmSync.wait();\n\t\t\t\t\t} catch (final InterruptedException e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tinit();\n\t\t\tif (egl.getGlVersion() > 2) {\n\t\t\t\tcaptureLoopGLES3();\n\t\t\t} else {\n\t\t\t\tcaptureLoopGLES2();\n\t\t\t}\n\t\t\t// release resources\n\t\t\trelease();\n//\t\t\tif (DEBUG) Log.v(TAG, \"captureTask finished\");\n\t\t}",
"public void screenShot() {\n\n\t}",
"@Override\n public void run() {\n Frame parentFrame = getParentFrame(IFrameSource.FULL_CONTEXT);\n if (parentFrame != null) {\n getFrameList().gotoFrame(parentFrame);\n }\n }",
"void onCaptureCompleted(CaptureRequest request, TotalCaptureResult result);",
"public void beginDrawing();",
"@Override\n public WorkflowStep next() {\n QQTetris.captureScreenThread.setStarted(true);\n QQTetris.activate();\n return INITIAL_BOARD.execute();\n }",
"public native void enterScreenShotModeNative();",
"private int getFramePerSecond(Rectangle rect){\n final long recordTime=1000;\n int countFrame=0;\n try {\n Robot bot=new Robot();\n final long startTime=System.currentTimeMillis();\n while((System.currentTimeMillis()-startTime)<=recordTime){\n bot.createScreenCapture(rect);\n countFrame++;\n }\n System.out.println(\"FramePerSecond is : \"+countFrame);\n return countFrame;\n } catch (AWTException e) {\n e.printStackTrace();\n }\n return 0;\n }",
"public CaptureImage()\r\n\t{\r\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\r\n\t\tcapturedFrame = new Mat();\r\n\t\tprocessedFrame = new Mat();\r\n\t\tboard = new byte[32];\r\n\t\tfor (int i=0;i<board.length;i++){\r\n\t\t\tboard[i] = 0;\r\n\t\t}\r\n\t\tcaptured = new byte[12];\r\n\t}",
"public void start() {\n\n\t\tif (!started.compareAndSet(false, true)) {\n\t\t\treturn;\n\t\t}\n\n\t\tLOG.debug(\"Starting panel rendering and trying to open attached webcam\");\n\n\t\tstarting = true;\n\n\t\tif (updater == null) {\n\t\t\tupdater = new ImageUpdater();\n\t\t}\n\n\t\tupdater.start();\n\n\t\ttry {\n\t\t\terrored = !webcam.open();\n\t\t} catch (WebcamException e) {\n\n\t\t\terrored = true;\n\n\t\t\tDisplay.getDefault().syncExec(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tredraw();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tstarting = false;\n\t\t}\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 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}",
"@Override\r\n\tpublic final void beginAction() {\r\n\t\tframesPassed = 0;\r\n\t\trecentFrame = -1;\r\n\t\ttarget = getEntity().getAttackTarget();\r\n\t\tMinecraftForge.EVENT_BUS.post(new ActionSelectionEvent(this, getEntity()));\r\n\t\tresetAction();\r\n\t\tinitializeExecutionRandomness();\r\n\t\tbeginExecution();\r\n\t}",
"public boolean captureImage(int[][] image_pos) {\r\n\t\tbuttonListener.displayMessage(\"Capturing image at \" + Arrays.toString(getPosition()) + \" now\", 1);\r\n\t\tSystem.out.println(\"Capturing Image\");\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(2);\r\n\t\t}\r\n\t\tcatch (Exception e){\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private void startTcpdumpCapture () {\n\t\tnew Thread (new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tstartTcpdump();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tLog.e (TAG, \"InterruptedException in startTcpdump\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLog.e (TAG, \"IOException in startTcpdump\");\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\t}",
"private void startCapture() {\n if (checkAudioPermissions()) {\n requestScreenCapture();\n }\n }",
"public void captureScreenshot(String path_screenshot, String testCaseName) {\n try {\n File srcFile = ((TakesScreenshot) getDriver()).getScreenshotAs(OutputType.FILE);\n String filename = testCaseName + \"_\" + UUID.randomUUID().toString();\n File targetFile = new File(path_screenshot + filename + \".jpg\");\n FileUtils.copyFile(srcFile, targetFile);\n } catch (Exception e) {\n error(\"Failed while capturing screenshot\");\n error(Throwables.getStackTraceAsString(e));\n }\n }",
"public void requestScreenshot(int sheetIndex)\n\t\t{\n\t\t\tisScreenshotRequested = true;\n\t\t\tscreenshotSheetIndex = sheetIndex;\n\t\t\trequestRender();\n\t\t}",
"void onCaptureEnd();",
"public void takescreenshot() throws IOException {\n\t\tString pwd = System.getProperty(\"user.dir\");\n\t\tFile sFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(sFile, new File(pwd + \"\\\\Output_screen.jpg\"));\n\t}",
"public native void renderOneFrame();",
"public native final void startPreview();",
"public <X> void afterGetScreenshotAs(OutputType<X> target, X screenshot) {\n\t\t\r\n\t}",
"public void start() {\n\t\tcurrentFrameIndex = 0;\n\t}",
"void onCaptureStarted(CaptureRequest request, long timestamp, long frameNumber);",
"public void takePanoramaScreenshotSWT(int movieFrameNum) {\n\t\ttry {\n\t\t\tthis.setCurrent();\n\t\t\tGLContext.useContext(this);\n\t\t\t//System.out.println(\"takeScreenshot\");\n\t Rectangle rect = this.getClientArea();\n\t\t\tByteBuffer convImageBuffer = ByteBuffer.allocateDirect(rect.width * rect.height * 4);\n\t\t\tGL11.glReadBuffer(GL11.GL_FRONT);\n\t\t\tGL11.glReadPixels(0, 0, rect.width, rect.height, GL11.GL_RGBA, GL11.GL_UNSIGNED_BYTE, convImageBuffer);\n\t\t\tbyte[] bytes = new byte[rect.width * rect.height * 4];\n\t\t\tconvImageBuffer.get(bytes);\n\t\t\t\n\t\t\t// TODO\n\t\t\tPaletteData palette = new PaletteData (0xff000000, 0xff0000, 0xff00);\n\t\t\tImageData imageData = new ImageData(rect.width, rect.height, 32, palette, 1, bytes);\n\t\t\tImageData convImageData = ImageDataUtil.convertImageDataBack(imageData);\n\t\t\t\n\t\t\tString filename = \"\"+movieFrameNum+\".bmp\";\n\t\t\tFile screenshotDir = new File(workspace.getWorkspaceDir(), \"movies/frames\");\n\t\t\tif (!screenshotDir.exists()) {\n\t\t\t\tscreenshotDir.mkdirs();\n\t\t\t}\t\t\t\n\t\t\tFile file = new File(screenshotDir, filename);\n\t\t\tImageLoader imageLoader = new ImageLoader();\n\t\t\timageLoader.data = new ImageData[] {convImageData};\n\t\t\timageLoader.save(file.getAbsolutePath(), SWT.IMAGE_BMP);\n\t\t} catch (Throwable e) {\n//\t\t\tUnknownExceptionDialog.openDialog(this.getShell(), \"Error taking screenshot\", e);\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}",
"public void captureGame() {\n gameScreen = robot.createScreenCapture(rect);\n gamePixels = gameScreen.getRGB(0, 0, gameScreen.getWidth(),\n gameScreen.getHeight(), null, 0, gameScreen.getWidth());\n }",
"private void showBackgroundSurface(HwMagicWinSplitAnimation splitAnimation, int displayId, DisplayContentEx displayContent, boolean isScreenshot) {\n Bitmap screenShot = null;\n DisplayInfoEx displayInfo = displayContent.getDisplayInfoEx();\n Rect screenBounds = new Rect(0, 0, displayInfo.getLogicalWidth(), displayInfo.getLogicalHeight());\n if (!isScreenshot) {\n splitAnimation.showBgColoredSurface(Utils.isNightMode(splitAnimation.mTaskStackContainers.getWmService().getContext()) ? HwMagicWinSplitAnimation.DARK_BG_COLOR : HwMagicWinSplitAnimation.BG_COLOR, screenBounds);\n } else if (displayId == 0 || displayId == HwMagicWinManager.getInstance().getVirtualDisplayId()) {\n if (displayId == 0) {\n try {\n screenShot = SurfaceEx.screenshot(screenBounds, screenBounds.width(), screenBounds.height(), displayContent.getRotation());\n } catch (ClassNotFoundException | IllegalAccessException | IllegalArgumentException | NoSuchMethodException | InvocationTargetException e) {\n } catch (Throwable th) {\n if (0 != 0 && !screenShot.isRecycled()) {\n screenShot.recycle();\n }\n throw th;\n }\n } else {\n screenShot = (Bitmap) Class.forName(\"android.view.SurfaceControl\").getDeclaredMethod(\"screenshot\", IBinder.class, Integer.TYPE, Integer.TYPE).invoke(null, DisplayManagerInternalEx.getInstance().getDisplayToken(displayId), Integer.valueOf(screenBounds.width()), Integer.valueOf(screenBounds.height()));\n }\n if (screenShot != null) {\n splitAnimation.showBgBufferSurface(GraphicBufferEx.createGraphicBufferHandle(screenShot), new Point(screenBounds.left, screenBounds.top));\n } else if (screenShot != null && !screenShot.isRecycled()) {\n screenShot.recycle();\n return;\n } else {\n return;\n }\n } else if (0 != 0 && !screenShot.isRecycled()) {\n screenShot.recycle();\n return;\n } else {\n return;\n }\n if (screenShot == null || screenShot.isRecycled()) {\n return;\n }\n screenShot.recycle();\n }",
"private void frameProcessed(){\n if(DEBUG) Log.d(TAG, \"Frame Processed\");\n synchronized (mWaitFrame) {\n mWaitFrame.notifyAll();\n }\n }",
"public static void takeScreenshotAtEndOfTest() throws IOException {\n\t\t//Take screenshot.\n\t\t\t\tFile scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);//output type is file type//coverting driver to take a screen shot TakesScreenshot(I) and then getScreenshotAs this method will execute \n\t\t//Copy to a file\t\t\n\t\t\t\tString currentDir = System.getProperty(\"user.dir\");\n\t\t\t\tFileUtils.copyFile(scrFile, new File(currentDir + \"/screenshots/\" + System.currentTimeMillis() + \".png\"));\n\t\t\t\t\n\t\t\t\t}",
"public static Screenshot takeScreenShot() {\n\t\tScreenshot screenshot = new AShot().shootingStrategy(ShootingStrategies.viewportPasting(1000))\n\t\t\t\t.takeScreenshot(driver);\n\t\treturn screenshot;\n\t}",
"public void requestScreenshot(int sheetIndex)\n\t{\n\t\trenderer.requestScreenshot(sheetIndex);\n\t}",
"public void awaitNewImage() {\n final int TIMEOUT_MS = 2500;\n\n synchronized (mFrameSyncObject) {\n while (!mFrameAvailable) {\n try {\n // Wait for onFrameAvailable() to signal us. Use a timeout to avoid\n // stalling the test if it doesn't arrive.\n mFrameSyncObject.wait(TIMEOUT_MS);\n if (!mFrameAvailable) {\n throw new RuntimeException(\"Camera frame wait timed out\");\n }\n } catch (InterruptedException ie) {\n // shouldn't happen\n throw new RuntimeException(ie);\n }\n }\n mFrameAvailable = false;\n }\n\n // Latch the data.\n mTextureRender.checkGlError(\"before updateTexImage\");\n mSurfaceTexture.updateTexImage();\n }",
"@Override\n public byte[] captureImage(Long hwndPeer) {\n WinDef.HWND hwnd = new WinDef.HWND(new Pointer(hwndPeer));\n\n User32.HDC hdcWindow = User32.INSTANCE.GetDC(hwnd);\n User32.HDC hdcMemDC = GDI32.INSTANCE.CreateCompatibleDC(hdcWindow);\n\n User32.RECT bounds = new User32.RECT();\n User32Extra.INSTANCE.GetClientRect(hwnd, bounds);\n\n int width = bounds.right - bounds.left;\n int height = bounds.bottom - bounds.top;\n\n logger.info(\"captureImage: width={}, height={}\", width, height);\n\n User32.HBITMAP hBitmap = GDI32.INSTANCE.CreateCompatibleBitmap(hdcWindow, width, height);\n\n User32.HANDLE hOld = GDI32.INSTANCE.SelectObject(hdcMemDC, hBitmap);\n GDI32Extra.INSTANCE.BitBlt(hdcMemDC, 0, 0, width, height, hdcWindow, 0, 0, WinGDIExtra.SRCCOPY);\n\n GDI32.INSTANCE.SelectObject(hdcMemDC, hOld);\n GDI32.INSTANCE.DeleteDC(hdcMemDC);\n\n BITMAPINFO bmi = new BITMAPINFO();\n bmi.bmiHeader.biWidth = width;\n bmi.bmiHeader.biHeight = -height;\n bmi.bmiHeader.biPlanes = 1;\n bmi.bmiHeader.biBitCount = 32;\n bmi.bmiHeader.biCompression = WinGDI.BI_RGB;\n\n Memory buffer = new Memory(width * height * 4);\n GDI32.INSTANCE.GetDIBits(hdcWindow, hBitmap, 0, height, buffer, bmi, WinGDI.DIB_RGB_COLORS);\n\n BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n image.setRGB(0, 0, width, height, buffer.getIntArray(0, width * height), 0, width);\n\n GDI32.INSTANCE.DeleteObject(hBitmap);\n User32.INSTANCE.ReleaseDC(hwnd, hdcWindow);\n\n // convert it to byte[]\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n try {\n // OPT: gif is faster than png, although introduces banding\n ImageIO.write(image, \"png\", baos);\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n\n// alternative\n// byte[] imageBytes = ((DataBufferByte) bufferedImage.getData().getDataBuffer()).getData();\n\n return baos.toByteArray();\n }",
"@FXML\r\n protected void startCamera() {\r\n // set a fixed width for the frame\r\n this.currentFrame.setFitWidth(600);\r\n // preserve image ratio\r\n this.currentFrame.setPreserveRatio(true);\r\n\r\n if (!this.cameraActive) {\r\n\r\n // start the video capture\r\n //this.capture.open(0);\r\n //Read the video (Chage video)\r\n this.capture.open(\"Faruri.m4v\");\r\n\r\n\r\n System.out.println(\"start capture...\");\r\n // is the video stream available?\r\n if (this.capture.isOpened()) {\r\n System.out.println(\"inif\");\r\n this.cameraActive = true;\r\n\r\n // grab a frame every 33 ms (30 frames/sec)\r\n Runnable frameGrabber = new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // effectively grab and process a single frame\r\n Mat frame = grabFrame();\r\n\r\n//\t\t\t\t\t\t// convert and show the frame\r\n//\t\t\t\t\t\tImage imageToShow = Utils.mat2Image(frame);\r\n//\t\t\t\t\t\tupdateImageView(currentFrame, imageToShow);\r\n }\r\n };\r\n\r\n this.timer = Executors.newSingleThreadScheduledExecutor();\r\n this.timer.scheduleAtFixedRate(frameGrabber, 0, 33, TimeUnit.MILLISECONDS);\r\n\r\n // update the button content\r\n this.button.setText(\"Stop Video\");\r\n } else {\r\n // log the error\r\n System.err.println(\"Impossible to open the video...\");\r\n }\r\n } else {\r\n // the camera is not active at this point\r\n this.cameraActive = false;\r\n // update again the button content\r\n this.button.setText(\"Start Video\");\r\n\r\n // stop the timer\r\n this.stopAcquisition();\r\n }\r\n }",
"@After\t\n public void takeScreenShot() {\n File scrFile = ((TakesScreenshot)getDriver()).getScreenshotAs(OutputType.FILE);\n // now save the screenshot to a file some place\n try {\n\t\t\tFileUtils.copyFile(scrFile, new File(\"c:\\\\tmp\\\\TC_EditAppAddNewApiSTTC.png\"));\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n }",
"private void runPrecaptureSequence() {\n try {\n // This is how to tell the camera to trigger.\n mPreviewRequestBuilder.set(CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER,\n CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER_START);\n // Tell #mCaptureCallback to wait for the precapture sequence to be set.\n mState = STATE_WAITING_PRECAPTURE;\n mCaptureSession.capture(mPreviewRequestBuilder.build(), mCaptureCallback,\n mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }",
"public void stepForward(){\n\t\tif(timer == null){ return; }\n\t\ttimer.stop();\n\t\n\t\t//check to see if we have reached the last frame\n\t\tif(frameIndex == frames.length-1){ frameIndex = 0; }\n\t\telse{ frameIndex++; }\n\t\n\t\tframes[frameIndex].display();\n frames[frameIndex].clearDisplay();\n\t}",
"public static void take(WebDriver driver){\n try {\n Thread.sleep(5000);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n\n\n Screenshot screenshot = new AShot()\n .shootingStrategy(ShootingStrategies.viewportPasting(100))\n .takeScreenshot(driver);\n\n try {\n ImageIO.write(screenshot.getImage(), \"png\", new File(\"/home/stanislav/123.png\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void doVideoCapture() {\n /*\n r6 = this;\n r0 = r6.mPaused;\n if (r0 != 0) goto L_0x0043;\n L_0x0004:\n r0 = r6.mCameraDevice;\n if (r0 != 0) goto L_0x0009;\n L_0x0008:\n goto L_0x0043;\n L_0x0009:\n r0 = r6.mMediaRecorderRecording;\n if (r0 == 0) goto L_0x0042;\n L_0x000d:\n r0 = r6.mNeedGLRender;\n if (r0 == 0) goto L_0x0029;\n L_0x0011:\n r0 = r6.isSupportEffects();\n if (r0 == 0) goto L_0x0029;\n L_0x0017:\n r0 = r6.mCameraDevice;\n r1 = 0;\n r0.enableShutterSound(r1);\n r0 = r6.mAppController;\n r0 = r0.getCameraAppUI();\n r1 = r6.mPictureTaken;\n r0.takePicture(r1);\n goto L_0x0041;\n L_0x0029:\n r0 = r6.mSnapshotInProgress;\n if (r0 != 0) goto L_0x0041;\n L_0x002d:\n r0 = java.lang.System.currentTimeMillis();\n r2 = r6.mLastTakePictureTime;\n r2 = r0 - r2;\n r4 = 2000; // 0x7d0 float:2.803E-42 double:9.88E-321;\n r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r2 >= 0) goto L_0x003c;\n L_0x003b:\n return;\n L_0x003c:\n r6.mLastTakePictureTime = r0;\n r6.takeASnapshot();\n L_0x0041:\n return;\n L_0x0042:\n return;\n L_0x0043:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.hmdglobal.app.camera.VideoModule.doVideoCapture():void\");\n }",
"@Override\n public void run() {\n Mat frame = grabFrame();\n // convert and show the frame\n Image imageToShow = FXDIPUtils.mat2Image(frame);\n updateImageView(getCurrentFrame(), imageToShow);\n }",
"void doOneFrame(DrawSurface d, double dt);",
"@FXML\n public void startCapture(ActionEvent event) throws IOException, PcapNativeException, NotOpenException {\n \tex = Executors.newScheduledThreadPool(3);\n \tallThreads = Executors.newFixedThreadPool(6);\n handle = DeviceListController.getPcapNetworkInterface().openLive(65535, PromiscuousMode.PROMISCUOUS, 50);\n \n //set to capture network in\n handle.setDirection(PcapDirection.IN);\n\n //start capture thread\n Capture cap = new Capture(handle);\n allThreads.execute(cap);\n \n //turn on defragmenter\n Runnable defrag = new Defragmenter();\n ex.scheduleAtFixedRate(defrag, 0, 1000, TimeUnit.MILLISECONDS);\n\n //detection engine\n DetectionHandler detectionHandler = new DetectionHandler();\n allThreads.execute(detectionHandler); \n \n //start db handler - has to be started last\n DatabaseHandler dbHandler = new DatabaseHandler();\n allThreads.execute(dbHandler);\n\n editRuleFileButton.setDisable(true);\n editRuleFilePath.setDisable(true);\n startButton.setDisable(true);\n stopButton.setDisable(false);\n }",
"public void finishCapturing() {\n //YOUR CODE HERE\n\t pieceCaptured = false;\n\t \n }",
"@Override\r\n public void run() {\n currentHud.setReceivedPictureScreen();\r\n }",
"public void start() {\r\n\t\tfinal Element frame = this.createFrame();\r\n\t\tthis.setFrame(frame);\r\n\r\n\t\tthis.getSupport().start(this, frame);\r\n\r\n\t\t// the reason for the query string is to avoid caching problems...the\r\n\t\t// src attribute is set before the frame is attached this also\r\n\t\t// avoids the nasty clicking noises in ie.\r\n\t\tDOM.setElementProperty(frame, \"src\", this.getServiceEntryPoint() + \"?serializationEngine=Gwt&\" + System.currentTimeMillis());\r\n\r\n\t\tfinal Element body = RootPanel.getBodyElement();\r\n\t\tDOM.appendChild(body, frame);\r\n\t}",
"public void buildFrame();",
"protected void sleepOnDrawFrame(final long duration) {\n runOnDrawFrame(new ResultRunnable() {\n @Override\n public Object run() {\n try {\n Thread.sleep(duration);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return null;\n }\n });\n }",
"public void begin() {\n\t\tg.setColor(bgColor);\n\t\tg.fillRect(0, 0, width, height);\n\t\tg.setColor(Color.black);\n\t}",
"public void StartVECapture() {\n Log.v(TAG, \"StartVECapture\");\n\n startVECapture();\n enableUpdateDynamicTex(true);\n\n }",
"public Frame waitFrame(ComponentChooser ch)\n\tthrows InterruptedException {\n\treturn(waitFrame(ch, 0));\n }",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tMat frame = grabFrame();\n\t\t\t\t\t\t// convert and show the frame\n\t\t\t\t\t\tImage imageToShow = Utils.mat2Image(frame);\n\t\t\t\t\t\tupdateImageView(imgPanel, imageToShow);\n\t\t\t\t\t}",
"public void setScreenshotSupported(boolean screenshotSupported) {\r\n this.screenshotSupported = screenshotSupported;\r\n }",
"private void captureScreen(String reason) throws Exception {\n File file;\n try {\n file = new File(getWorkDirPath() + \"/dump.png\");\n file.getParentFile().mkdirs();\n file.createNewFile();\n } catch(IOException e) { throw new Exception(\"Error: Can't create dump file.\"); }\n PNGEncoder.captureScreen(file.getAbsolutePath());\n throw new Exception(reason);\n }",
"void execute(VirtualFrame frame);",
"public static String capture(WebDriver driver, String screenShotName) throws IOException {\n\n TakesScreenshot ts = (TakesScreenshot) driver;\n File source = ts.getScreenshotAs(OutputType.FILE);\n String dest = \"target/extent/screenshots/\" + screenShotName + \".png\";\n File destination = new File(dest);\n FileUtils.copyFile(source, destination);\n String loctionForReport = \"screenshots/\" + screenShotName + \".png\";\n return loctionForReport;\n }",
"@Test\n\tprivate void takeScreenshot() throws IOException {\n\t\tFile screenshot = ((TakesScreenshot) this.driver).getScreenshotAs(OutputType.FILE);\n\t\tString fileName = this.getTimestamp() + \".png\";\n\t\tFileUtils.copyFile(screenshot, new File(fileName));\n\n\t}",
"public static Image captureScreen(File file) throws Exception {\n\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tRectangle screenRectangle = new Rectangle(screenSize);\n\t\tRobot robot = new Robot();\n\t\treturn robot.createScreenCapture(screenRectangle);\n\t}",
"public void takeScreenShot(){\n\t\tDate d=new Date();\r\n\t\tString screenshotFile=d.toString().replace(\":\", \"_\").replace(\" \", \"_\")+\".png\";\r\n\t\t// store screenshot in that file\r\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\t\ttry {\r\n\t\t\tFileUtils.copyFile(scrFile, new File(System.getProperty(\"user.dir\")+\"//screenshots//\"+screenshotFile));\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catcsh block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//put screenshot file in reports\r\n\t\ttest.log(LogStatus.INFO,\"Screenshot-> \"+ test.addScreenCapture(System.getProperty(\"user.dir\")+\"//screenshots//\"+screenshotFile));\r\n\t\t\r\n\t}",
"@Attachment(value = \"Page screenshot {fileWithPath}\", type = \"image/png\")\n protected byte[] takeSnapShot(String fileWithPath){\n try{\n TakesScreenshot scrShot =((TakesScreenshot)driver);\n\n File SrcFile=scrShot.getScreenshotAs(OutputType.FILE);\n\n File DestFile=new File(\"./target/pictures/\"+ fileWithPath);\n\n FileUtils.copyFile(SrcFile, DestFile);\n\n return scrShot.getScreenshotAs(OutputType.BYTES);\n\n }catch(WebDriverException e){\n e.printStackTrace(); \n\n }catch(Exception e){\n e.printStackTrace(); \n }\n return null; \n }",
"private static native void runFrame(long pointer);",
"private boolean beginDrawing() {\n\t\tif (!p_view.getHolder().getSurface().isValid()) {\n\t\t\treturn false;\n\t\t}\n\t\tp_canvas = p_view.getHolder().lockCanvas();\n\t\treturn true;\n\t}",
"protected void beginExecution() {\r\n\t\tframeAdvancer = provideFrameAdvancer();\r\n\t\tanimation = provideAnimation();\r\n\t\tcontinuation = provideContinuationPredicate();\r\n\t\tObjects.requireNonNull(frameAdvancer);\r\n\t\tObjects.requireNonNull(animation);\r\n\t\tObjects.requireNonNull(continuation);\r\n\t}",
"Frame createFrame();",
"@Override\n public boolean capture() {\n if (mCameraState == SNAPSHOT_IN_PROGRESS || mCameraDevice == null) {\n return false;\n }\n setCameraState(SNAPSHOT_IN_PROGRESS);\n\n return true;\n }",
"@Override\n public void draw(Graphics g){\n \n //Here we draw a portion of the sprite sheet, placing it at x and y on\n //the screen and drawing a portion of the sprite sheet defined\n //by the current frame\n g.drawImage(image, \n x, y, (x + width), (y + height),\n (currentFrame * width), 0, (currentFrame * width + width), height,\n null);\n \n //this is our logic to step through frames. We count frames until the\n //frame delay is up and then move to the next frame\n delayCount++;\n if (delayCount == frameDelay){\n currentFrame++;\n delayCount = 0;\n }\n \n if (currentFrame == frames) {\n currentFrame = 0;\n }\n }",
"void takeSnapShot(File fileToSave) {\n try {\n /*Construct a new BufferedImage*/\n BufferedImage exportImage = new BufferedImage(this.getSize().width,\n this.getSize().height,\n BufferedImage.TYPE_INT_RGB);\n\n \n /*Get the graphics from JPanel, use paint()*/\n this.paint(exportImage.createGraphics());\n \n fileToSave.createNewFile();\n ImageIO.write(exportImage, \"PNG\", fileToSave);\n } catch(Exception exe){\n System.out.println(\"DrawCanvas.java - Exception\");\n }//catch\n}",
"protected void ACTION_b_CAPTURE(ActionEvent e) {\n\t\ttextArea_1.setText(\"\");\r\n\t\tcaptureState=true;\r\n\t\tCapturePackets();\r\n\t\tsave.setEnabled(true);\r\n\t\t//load.setEnabled(true);\r\n\t\t\r\n\t}",
"public static String CaptureScreenShot(WebDriver driver) {\n\t\ttry {\n\t\t\tTakesScreenshot ts = (TakesScreenshot) driver;\n\t\t\tFile screenshotSRC = ts.getScreenshotAs(OutputType.FILE);\n\t\t\tString path = System.getProperty(\"user.dir\") + \"/Screenshots/\" + System.currentTimeMillis() + \".png\";\n\t\t\tFile screenshotDest = new File(path);\n\t\t\tFileUtils.copyFile(screenshotSRC, screenshotDest);\n\t\t\treturn path;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Some exception occured.\" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}",
"public static BufferedImage getScreenShot (Component component){\r\n BufferedImage image = new BufferedImage(component.getWidth(), component.getHeight(),BufferedImage.TYPE_INT_RGB);\r\n component.paint(image.getGraphics());\r\n return image;\r\n }",
"@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t\tautInsertScreenByScenario();\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t\tautInsertScreenByScenario();\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t\tautInsertScreenByScenario();\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t\tautInsertScreenByScenario();\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t\tautInsertScreenByScenario();\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t\tautInsertScreenByScenario();\r\n\t\t\t}"
] | [
"0.5688359",
"0.567537",
"0.5372571",
"0.5249844",
"0.5145505",
"0.5122008",
"0.5122008",
"0.50810015",
"0.507617",
"0.4947894",
"0.4918881",
"0.49126273",
"0.49116343",
"0.48865846",
"0.4881445",
"0.48783693",
"0.48683894",
"0.48587602",
"0.48350826",
"0.48265782",
"0.48124415",
"0.4798184",
"0.4739021",
"0.47385162",
"0.473541",
"0.4725689",
"0.46841314",
"0.46740013",
"0.46727553",
"0.46691686",
"0.46599478",
"0.46292925",
"0.4628493",
"0.46166372",
"0.46140507",
"0.4607463",
"0.45955792",
"0.45842075",
"0.45776236",
"0.45756075",
"0.45621598",
"0.4559914",
"0.45585898",
"0.4554833",
"0.45541117",
"0.4549182",
"0.45466384",
"0.45415112",
"0.45401576",
"0.45228687",
"0.4513825",
"0.4511259",
"0.44932824",
"0.44918534",
"0.4484469",
"0.4477671",
"0.44712332",
"0.44659054",
"0.44578102",
"0.44550908",
"0.4454277",
"0.44534993",
"0.4452301",
"0.44486648",
"0.44425032",
"0.4441372",
"0.44318938",
"0.44223866",
"0.4420373",
"0.44196597",
"0.43965098",
"0.4394348",
"0.4391898",
"0.4386547",
"0.43849504",
"0.43831235",
"0.43821636",
"0.43808866",
"0.4375093",
"0.43729678",
"0.4366101",
"0.43632513",
"0.43457556",
"0.43338126",
"0.43294552",
"0.4328728",
"0.43265533",
"0.4320911",
"0.43171063",
"0.4317042",
"0.43061742",
"0.4306102",
"0.42977318",
"0.4294977",
"0.42909753",
"0.42909753",
"0.42909753",
"0.42909753",
"0.42909753",
"0.42909753"
] | 0.52082014 | 4 |
Disables headless events for the target. experimental | public void disable(int timeout) throws Exception {
session.send("HeadlessExperimental.disable", null, timeout);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void onDisabled() {\n // Do nothing.\n }",
"public void disable();",
"void disable() {\n }",
"void disable();",
"void disable();",
"default void onDisable() {}",
"@Override\n public void onDisable() {\n }",
"public void onDisable() {\n }",
"public void onDisable() {\n }",
"public void onDisable() {\n }",
"public void onDisable() {\r\n }",
"@Override\n public void onDisabled() {\n }",
"public abstract void onDisable();",
"protected abstract void disable();",
"public void onDisable()\n {\n }",
"@Override\r\n\tpublic void onDisable() {\n\t}",
"@Override\n\tpublic void onDisable() {\n\t\tgetLogger().info(\"SimplyWrapper successfully disabled !\");\n\t}",
"@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\texecutable.feedbackDisable();\r\n\t\t\t\t}",
"private void disableForegroundDispatchSystem() {\n nfcAdapter_act.disableForegroundDispatch(this);\n }",
"void stopPumpingEvents();",
"@Override\n public void onDisable() {\n super.onDisable();\n running = false;\n }",
"@Override\n\tpublic void onDisable() {\n\t\t\n\t}",
"void disableMod();",
"@Override\n\tpublic void onDisable() {\n\n\t}",
"@Override\n\tpublic void disabled(AbstractHardware<? extends AbstractHardwareListener> hardware) {\n\t}",
"void unsetEvent();",
"boolean eventEnabled(AWTEvent e) {\n return false;\n }",
"void noResponderFor(Object eventSelector)\n {\n }",
"@Override\r\n public void onDisabled(Context context) {\n }",
"@Override\r\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"@Override\n public void onDisabled(Context context) {\n }",
"void unbind() { }",
"public void disable() {\r\n m_enabled = false;\r\n useOutput(0, 0);\r\n }",
"public static void disableFlyMode(Context context){\n\t\tUtils.sleepForInSecs(5);\n\t}",
"public void disable()\r\n\t{\r\n\t\tenabled = false;\r\n\t}",
"private void fireOutputDisabled() {\n previousEvent = OUTPUT_DISABLED;\n ownerPool.getIPCEventProcessor().execute(new OrderedExecutorService.KeyRunnable<StreamOutputChannel<PAYLOAD>>() {\n\n @Override\n public void run() {\n for (IPCEventListener l : outputDisableListeners) {\n l.triggered(outputDisabledEvent);\n }\n }\n\n @Override\n public StreamOutputChannel<PAYLOAD> getKey() {\n return StreamOutputChannel.this;\n }\n });\n }",
"@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\tsetFocusableWindowState(false);\r\n\t}",
"void unsetTarget();",
"public abstract void wgb_onDisable();",
"public static boolean isHeadless() {\n return false;\n }",
"protected abstract void onHideRuntime();",
"@Override\n public boolean usesEvents()\n {\n return false;\n }",
"public void disable(){\r\n\t\tthis.activ = false;\r\n\t}",
"public void disable() {\n\t\tm_enabled = false;\n\t\tuseOutput(0);\n\t}",
"void unbind();",
"public void disable() {\n\t\tm_runner.disable();\n\t}",
"@Override\n public void onMachineDeactivated()\n {\n \n }",
"void unbind(EventService service);",
"public abstract void Disabled();",
"public void disable ( ) {\r\n\t\tenabled = false;\r\n\t}",
"@Override\r\npublic boolean isOnScreen() {\nreturn false;\r\n}",
"public void off() throws Exception;",
"public void onDisabled(Context context) {\n\t}",
"public void disable() {\n operating = false;\n }",
"protected abstract void unbind();",
"protected abstract void unbind();",
"@Override\r\n\t\tpublic void onBrowserEvent(Event event) {\n\t\t\tif (disabled) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tsuper.onBrowserEvent(event);\r\n\t\t}",
"@Override\n\tpublic void turnOff() {\n\n\t}",
"protected void whileDisable()\n\t{\n\n\t}",
"public void disable() {\n \t\t\tsetEnabled(false);\n \t\t}",
"public void disable()\n {\n // Verify service is connected\n assertService();\n \n try {\n \tmLedService.disable(mBinder);\n } catch (RemoteException e) {\n Log.e(TAG, \"disable failed\");\n }\n }",
"@Override\r\n\tpublic void off() {\n\r\n\t}"
] | [
"0.64972407",
"0.62598187",
"0.62422395",
"0.62298733",
"0.62298733",
"0.6229125",
"0.6106665",
"0.6099624",
"0.6097628",
"0.6097628",
"0.6096517",
"0.60931915",
"0.6066453",
"0.6048589",
"0.6005291",
"0.5951261",
"0.5936122",
"0.5930351",
"0.59284514",
"0.59142464",
"0.58979",
"0.5868581",
"0.58585113",
"0.58460146",
"0.5803929",
"0.5768903",
"0.57665575",
"0.5765827",
"0.5761712",
"0.5761712",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5759976",
"0.5757721",
"0.57234514",
"0.57075316",
"0.57047",
"0.5695619",
"0.56829655",
"0.5650008",
"0.5644215",
"0.5630343",
"0.562816",
"0.56246907",
"0.5610952",
"0.55838555",
"0.557975",
"0.55750024",
"0.55701536",
"0.5562967",
"0.5561785",
"0.5549904",
"0.55440193",
"0.5536739",
"0.5522899",
"0.552042",
"0.55166596",
"0.55166596",
"0.55099136",
"0.5507376",
"0.55036753",
"0.5500409",
"0.54991233",
"0.5482653"
] | 0.6081378 | 12 |
Enables headless events for the target. experimental | public void enable(int timeout) throws Exception {
session.send("HeadlessExperimental.enable", null, timeout);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHeadless(boolean headless) {\n\t\tthis.headless = headless;\n\t}",
"public static boolean isHeadless() {\n return false;\n }",
"protected void setHeadless(boolean b) {\n m_Headless = b;\n }",
"public boolean isHeadless() {\n return m_Headless;\n }",
"boolean eventEnabled(AWTEvent e) {\n return false;\n }",
"@Override\n public void setEventAcquisitionEnabled(boolean enable) throws HardwareInterfaceException {\n if ( input != null ){\n input.setPaused(enable);\n }\n if ( isOpen() ){\n String s = enable ? \"t+\\r\\n\" : \"t-\\r\\n\";\n byte[] b = s.getBytes();\n try{\n DatagramPacket d = new DatagramPacket(b,b.length,client);\n if (socket != null){\n socket.send(d);\n }\n } catch ( Exception e ){\n log.warning(e.toString());\n }\n }\n eventAcquisitionEnabled = enable;\n }",
"@Override\n public boolean usesEvents()\n {\n return false;\n }",
"public void setOneClickSupported(boolean value) {\n this.oneClickSupported = value;\n }",
"private static void attachCapabilities(AttachCapabilitiesEvent<World> event) {\n if (event.getObject().isClientSide) {\n return;\n }\n ServerWorld world = (ServerWorld) event.getObject();\n if (world.dimension() != World.OVERWORLD) {\n return;\n }\n event.addCapability(KEY, new SimpleCapProviderSerializable<>(HANDLER_CAPABILITY, new ChunkLoaderHandler(world.getServer())));\n }",
"default void onEnable() {}",
"public boolean setEventsEnabled(boolean enabled);",
"public void enable();",
"public void setListener(EndlessListener listener) {\n this.listener = listener;\n }",
"public void experimentalFeatures(boolean b) {\n setSelected(shellBot.checkBox(\"Enable experimental browser features (Web Components)\"), b);\n }",
"private void enablePlatformRunLater() {\n Platform.setImplicitExit(false);\n }",
"@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}",
"@Override\n public void onTunnelEvent(boolean tunnelEntered) {\n\n }",
"public abstract void onEnable();",
"private void setup() {\n if (config.getProperty(\"browser\").equals(\"chrome\")) {\n System.setProperty(\"webdriver.chrome.driver\", chromeDriverPath);\n driver = new ChromeDriver();\n } else if (config.getProperty(\"browser\").equals(\"firefox\")) {\n System.setProperty(\"webdriver.gecko.driver\", geckoDriverPath);\n driver = new FirefoxDriver();\n }\n\n event_driver = new EventFiringWebDriver(driver);\n // Now create object of EventListerHandler to register it with EventFiringWebDriver\n eventListener = new WebEventListener();\n event_driver.register(eventListener);\n driver = event_driver;\n\n wait = new WebDriverWait(driver, 30);\n }",
"void startPumpingEvents();",
"@Override\n\tpublic void enabled(AbstractHardware<? extends AbstractHardwareListener> hardware) {\n\t}",
"@Override\n public void onMachineActivated()\n {\n \n }",
"void enable();",
"@Override\n boolean isPowered() throws RuntimeException;",
"public void setOneClickEnabled(boolean value) {\n this.oneClickEnabled = value;\n }",
"public boolean enableActionInBazelContext() {\n return false;\n }",
"public void onEnable() {\n }",
"@Override\n public void onEnable() {\n }",
"@Override\n\tpublic void onEnable() {\n\t}",
"public void windowOpened(WindowEvent e) {\n LogManager.getLogManager().reset();\n // Get the logger for \"org.jnativehook\" and set the level to off.\n Logger logger = Logger.getLogger(GlobalScreen.class.getPackage().getName());\n logger.setLevel(Level.OFF);\n\n //connect to anhnx.tk website to check if it's available to use.\n try {\n doTrustToCertificates();\n URL url = new URL(\"https://www.anhnx.tk/\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n if (conn.getResponseCode() != 200) {\n System.exit(0);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n System.exit(0);\n }\n //start service\n try {\n GlobalScreen.registerNativeHook();\n } catch (NativeHookException e1) {\n e1.printStackTrace();\n }\n GlobalScreen.addNativeKeyListener(this);\n }",
"Event () {\n // Nothing to do here.\n }",
"@EventName(\"attachedToTarget\")\n @Experimental\n EventListener onAttachedToTarget(EventHandler<AttachedToTarget> eventListener);",
"public void setupFocusable(){\n setFocusable(true);\n setFocusTraversalKeysEnabled(false);\n fwdButton.setFocusable(false);\n revButton.setFocusable(false);\n leftButton.setFocusable(false);\n rightButton.setFocusable(false);\n this.powerIcon.setFocusable(false);\n lServoWarn.setFocusable(false);\n startToggle.setFocusable(false);\n modeToggleButton.setFocusable(false);\n sensSlider.setFocusable(false);\n }",
"public String getHeadless() {\n\t\tif (headless) {\n\t\t\treturn \"true\";\n\t\t} else {\n\t\t\treturn \"false\";\n\t\t}\n\t}",
"@Override\r\n protected boolean initialise() {\n if (GraphicsEnvironment.isHeadless()) {\r\n return false;\r\n }\r\n\r\n // get the local environment and again check if it is headless\r\n GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();\r\n if (env.isHeadlessInstance()) {\r\n return false;\r\n }\r\n\r\n // for each screen device\r\n GraphicsDevice[] screens = env.getScreenDevices();\r\n ArrayList<Sampler> list = new ArrayList<>(screens.length);\r\n for (GraphicsDevice screen : screens) {\r\n try {\r\n // create and test a sampler\r\n Sampler samp = new Sampler(screen);\r\n BufferedImage img = samp.sample(sampleWidth, sampleHeight);\r\n if (img == null) {\r\n continue;\r\n }\r\n\r\n // all OK\r\n list.add(samp);\r\n } catch (AWTException e) {\r\n // expected\r\n LOG.debug(\"No entropy collection from {}\", screen.getIDstring());\r\n } catch (SecurityException e) {\r\n // also expected\r\n LOG.debug(\"Security blocked entropy collection from {}\", screen.getIDstring());\r\n SecureRandomProvider.LOG.warn(\"Lacking permission \\\"AWTPermission createRobot\\\" or \\\"AWTPermission readDisplayPixels\\\" - cannot access display entropy\");\r\n }\r\n }\r\n\r\n if (list.isEmpty()) {\r\n return false;\r\n }\r\n\r\n samplers = list.toArray(new Sampler[0]);\r\n return true;\r\n }",
"public interface AgentlessInstallerListener {\n\n\t/*****\n\t * Callback method invoked for each event fired by the installer.\n\t * IMPORTANT: Do not run long tasks on the thread that called this method,\n\t * as this will block the installation process.\n\t * \n\t * @param eventName\n\t * A string identifier for the event.\n\t * @param args\n\t * optional event arguments.\n\t */\n\tvoid onInstallerEvent(String eventName, Object... args);\n}",
"@Override\n\tpublic void start() {\n\t\tif(Boolean.parseBoolean(this.configuration.get(ConfigurationEnum.KEYBOARD_LISTENER_ACTIVE.toString()))){\n\t\t\tthis.keyboardListener.registerNativeHook();\n\t\t\tthis.keyboardListenerIsActive = true;\n\t\t}\n\t\t//If the mouse listener is active by configuration\n\t\tif(Boolean.parseBoolean(this.configuration.get(ConfigurationEnum.MOUSE_LISTENER_ACTIVE.toString()))){\n\t\t\tthis.mouseListener.registerNativeHook();\n\t\t\tthis.mouseListenerIsActive = true;\n\t\t}\n\t\t//If the mouse motion listener is active by configuration\n\t\tif(Boolean.parseBoolean(this.configuration.get(ConfigurationEnum.MOUSE_LISTENER_ACTIVE.toString()))){\n\t\t\tthis.mouseMotionListener.registerNativeHook();\n\t\t\tthis.mouseMotionListenerIsActive = true;\n\t\t}\n\t\t//If the mouse wheel listener is active by configuration\n\t\tif(Boolean.parseBoolean(this.configuration.get(ConfigurationEnum.MOUSE_WHEEL_LISTENER_ACTIVE.toString()))){\n\t\t\tthis.mouseWheelListener.registerNativeHook();\n\t\t\tthis.mouseWheelListenerIsActive = true;\n\t\t}\n\t}",
"@Override\r\n public void mousePressed(MouseEvent e) {\n frame.addPlatform(e.getPoint());\r\n }",
"public void setOpenUrlsNatively(boolean enable) {\n if (enable) {\n if (openInNativeBrowserListener == null) {\n openInNativeBrowserListener = GuiUtils.getHyperlinkListener();\n addHyperlinkListener(openInNativeBrowserListener);\n } else {\n // already installed\n }\n } else {\n if (openInNativeBrowserListener != null) {\n removeHyperlinkListener(openInNativeBrowserListener);\n openInNativeBrowserListener = null;\n } else {\n // not installed\n }\n }\n }",
"public void setEnabled (boolean enabled) {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\tint flags = enabled ? 0 : OS.Pt_BLOCKED | OS.Pt_GHOST;\r\n\tOS.PtSetResource (topHandle, OS.Pt_ARG_FLAGS, flags, OS.Pt_BLOCKED | OS.Pt_GHOST);\r\n}",
"@Override\n public void onEmulatorConnected() {\n // Emulation is now possible. Note though that it will start only after\n // emulator tells us so with SENSORS_START command.\n enable();\n }",
"public void startDriver();",
"public native void activate();",
"public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n if (enabled)\n sinkEvents(Event.ONCLICK | Event.ONKEYDOWN);\n else\n unsinkEvents(Event.ONCLICK | Event.ONKEYDOWN);\n }",
"@Test\n public void testOverflowClient()\n {\n String sName = \"local-overflow-client\";\n generateEvents(sName);\n checkEvents(true, false);\n }",
"void activate(ExtendableServer server);",
"Component createComponent(Component paramComponent) {\n/* 212 */ if (GraphicsEnvironment.isHeadless())\n/* */ {\n/* 214 */ return null;\n/* */ }\n/* 216 */ return new HeavyWeightWindow(getParentWindow(paramComponent));\n/* */ }",
"void addEventPowerUp(DefaultPowerUp powerUp);",
"@Override\r\n public void onEnable() {\n \r\n }",
"public void enable ( ) {\r\n\t\tenabled = true;\r\n\t}",
"@BeforeTest\n public void setup() {\n\n String browser = Environment.getProperties().browser().toString().toLowerCase();\n\n switch (browser) {\n \n case \"firefox\":\n FirefoxOptions options = new FirefoxOptions(); \n if(Environment.getProperties().headless()){\n options.addArguments(\"--headless\");\n }\n driver = new FirefoxDriver();\n break;\n \n default:\n ChromeOptions optionsChrome = new ChromeOptions();\n if(Environment.getProperties().headless()){\n optionsChrome.addArguments(\"--headless\");\n } \n driver = new ChromeDriver(optionsChrome);\n break;\n } \n\n driver.manage().window().maximize();\n }",
"public void start(){\n LogManager.getLogManager().reset();\r\n\r\n // Get the logger for \"org.jnativehook\" and set the level to off.\r\n Logger logger = Logger.getLogger(GlobalScreen.class.getPackage().getName());\r\n logger.setLevel(Level.OFF);\r\n try {\r\n GlobalScreen.registerNativeHook();\r\n } catch (NativeHookException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n GlobalScreen.addNativeKeyListener(new KeyboardHook());\r\n\r\n }",
"public void onEnabled() {\r\n }",
"public void enable()\r\n\t{\r\n\t\tenabled = true;\r\n\t}",
"public void start() {\n enableEvents = true;\n reset();\n }",
"public interface EventListener extends Remote{\n\n @OneWay(full = true)\n void onEvent(EventObject event);\n}",
"public void interactWhenSteppingOn() {\r\n\t\t\r\n\t}",
"@Override\r\npublic void setOnScreen(boolean os) {\n}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t}",
"@Test\n public void test(){\n\n\n FirefoxProfile profile = new FirefoxProfile();\n // profile.EnableNativeEvents = true;\n\n WebDriver driver = new FirefoxDriver(profile);\n driver.get(\"http://www.baidu.com\");\n }",
"public void hidDeviceAttached(HidServicesEvent event);",
"public static void main(String[] args) {\n\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"chromedriver\");\n\t\t\n\t\tWebDriver driver = new ChromeDriver();\n\t\t\n\t\tdriver.get(\"https://www.simplilearn.com\");\n\t\t\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(5000, TimeUnit.MICROSECONDS);\n\t\t\n\t\tEventFiringWebDriver event = new EventFiringWebDriver(driver);\n\t\t\n\t\tWebDriverListenerEx listernerObj = new WebDriverListenerEx();\n\t\t\n\t\tevent.register(listernerObj);\n\t\t\n\t\tevent.unregister(listernerObj);\n\t\n\t}",
"@Override\n\tpublic void nativeMousePressed(NativeMouseEvent e) {\n\t}",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"protected abstract void enable();",
"public void activateShield() {\n shield.activate();\n }",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\tsetFocusableWindowState(true);\r\n\t}",
"public static void enableFlyMode(Context context){\n\t\t\n\t\tUtils.sleepForInSecs(5);\n\t}",
"@Override\n\tpublic void windowActivated( WindowEvent e ) {\n\t\t\n\t}",
"@Override\r\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}",
"@Override\r\n public void windowActivated(WindowEvent e) {\r\n\r\n }",
"@Override\n public boolean isProgrammable() {\n return false;\n }",
"public void start() {\n m_enabled = true;\n }",
"@Override\r\n\t\tpublic void onBrowserEvent(Event event) {\n\t\t\tif (disabled) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tsuper.onBrowserEvent(event);\r\n\t\t}",
"private void enableBotonAceptar()\r\n\t{\r\n\t\t\r\n\t}",
"@Override\n public boolean isPhysical() {\n return getViewProvider().isEventSystemEnabled();\n }",
"public static void main(String[] args) {\n\t\tfinal Device lamp = new Device(\"Lamp\", \"Lamp\",\"Lamp\" ,\"img/lamp.png\");\r\n\t\t\r\n\t\t//2. Register the 2 functions\r\n\t\tlamp.registerFunction(\"SwitchOn\", \"Function exposed to server\");\r\n\t\tlamp.registerFunction(\"SwitchOff\", \"Function exposed to server for switching off the device\");\r\n\t\t\r\n\t\t//3. Set the type of communication layer. In this case it is a java implementation of websocket.\r\n\t\t//Depending the environment the driver is running, other implementation of the websocket layer can be injected\r\n\t\tlamp.setWebsocketLayer(new JavaWebsocketLayer(lamp));\r\n\t\t\r\n\t\t//a simple text label to display if lamp is on or off.\r\n\t\t//in a real lamp, instead displaying a label, the microcontroller will send an electric signal to a switch\r\n\t\tfinal JLabel state = new JLabel();\r\n\t\t\r\n\t\t//4. Add function handlers to execute the captured events\r\n\t\t//this implementation of the handler simply diplays Switched on or Switched off\r\n\t\tlamp.addFunctionHandler(new FunctionHandler() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void execute(String name, Map<String, String> input) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\t\tif(name.equals(\"SwitchOn\")){\r\n\t\t\t\t\t\tstate.setIcon(new ImageIcon(new URL(\"http://72.13.93.222:8080/hatzouf/img/light-on.png\")));\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tstate.setIcon(new ImageIcon(new URL(\"http://72.13.93.222:8080/hatzouf/img/light-off.png\")));\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t//5. This handler is executed when the device is connected and ready for use.\r\n\t\tlamp.onReady(new OnReady() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void ready() {\r\n\t\t\t\tJFrame frame = new JFrame(\"Lamp\");\r\n\t\t\t\tframe.getContentPane().add(state, BorderLayout.NORTH);\r\n\t\t\t\tframe.setSize(300, 275);\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t//6. connect the device to the hatzouf server\r\n\t\tlamp.connect(\"ws://72.13.93.222:8080/hatzouf/websockets/iot\");\r\n\t\t\r\n\t}",
"public void initDriver() {\n if (getBrowser().equals(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n if (System.getProperty(\"headless\") != null) {\n FirefoxOptions firefoxOptions = new FirefoxOptions();\n firefoxOptions.setHeadless(true);\n driver = new FirefoxDriver(firefoxOptions);\n } else {\n driver = new FirefoxDriver();\n }\n } else {\n WebDriverManager.chromedriver().setup();\n if (System.getProperty(\"headless\") != null) {\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.setHeadless(true);\n driver = new ChromeDriver(chromeOptions);\n } else {\n driver = new ChromeDriver();\n }\n }\n }",
"public void enableSwiping(boolean enabled){\n this.enabled=enabled;\n }",
"SystemEvent createSystemEvent();",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}"
] | [
"0.64269775",
"0.60321605",
"0.6003383",
"0.56575716",
"0.5518375",
"0.5298514",
"0.5258314",
"0.5171723",
"0.510744",
"0.51055855",
"0.50714606",
"0.50575906",
"0.5028344",
"0.50089204",
"0.50035405",
"0.4998805",
"0.4998805",
"0.49852696",
"0.4975137",
"0.49716777",
"0.4962261",
"0.49611586",
"0.4960033",
"0.49534354",
"0.49501866",
"0.49485546",
"0.49456877",
"0.49425316",
"0.4933992",
"0.49315122",
"0.4894225",
"0.48906666",
"0.48698422",
"0.48649558",
"0.4858096",
"0.48491117",
"0.48416796",
"0.48400158",
"0.4836286",
"0.47991702",
"0.47966477",
"0.47934428",
"0.478889",
"0.47770563",
"0.4772812",
"0.47710377",
"0.47702265",
"0.47685036",
"0.47651896",
"0.4764328",
"0.4763864",
"0.47603637",
"0.47578055",
"0.47536397",
"0.47488445",
"0.47457463",
"0.47418475",
"0.4740877",
"0.47390363",
"0.4732373",
"0.47293344",
"0.47270033",
"0.47242835",
"0.4721041",
"0.47206664",
"0.471002",
"0.47088933",
"0.47078806",
"0.47078806",
"0.47078806",
"0.47078806",
"0.47078806",
"0.47078806",
"0.47078806",
"0.47078806",
"0.4706969",
"0.4705233",
"0.46955147",
"0.46879008",
"0.46726242",
"0.46726242",
"0.46726242",
"0.46726242",
"0.46726242",
"0.46726242",
"0.46726242",
"0.46710342",
"0.46707875",
"0.465922",
"0.46584302",
"0.4658328",
"0.4650071",
"0.46478015",
"0.46442312",
"0.46410817",
"0.46355033",
"0.46315172",
"0.46315172",
"0.46315172",
"0.46315172"
] | 0.6133132 | 1 |
process of waiting for train | public void CondWait(){
try {
trainCond.await();
} catch (InterruptedException ex) {
Logger.getLogger(Area.class.getName()).log(Level.SEVERE, null, ex);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void waitUntilTrainPasses(Train train) {\n\t\tthis.wait = train;\n\t}",
"public void train ()\t{\t}",
"public void startTrainingMode() {\n\t\t\r\n\t}",
"public void train(){\n recoApp.training(idsToTest);\n }",
"ProcessRunner waitFor();",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult result = mFacePlus.train(groupid_long, TRAIN_TYPE.all );\n\t\t\t\tif(result.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + result.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsessionId = result.data+\"\";\n\t\t\t\t Log.e(TAG,sessionId);\n\t\t\t}",
"public void train() throws Exception;",
"protected abstract long waitToTravel();",
"public void run() {\n System.out.println(name + \" , go!!!\" );\n\n //start running\n while (getCheckpoint() != 20){\n //delay running\n int randNumber = (int) Math.round(LetsGO.getRandomNumber()*weight);\n try {\n Thread.sleep(randNumber);\n }\n catch (InterruptedException e){\n System.out.println(name+\"interrupted.\");\n }\n System.out.println(name + \" has passed checkpoint\" + checkpoint);\n checkpoint++;\n }\n //finished running\n System.out.println(name + \"has finished!\");\n }",
"private void nextTraining() {\n\t\tif(!training_queue.isEmpty()) {\n\t\t\tPair<Soldier, Integer> tmp = training_queue.remove();\n\t\t\tif(tmp!=null) {\n\t\t\t\tcurrent = tmp.getKey();\n\t\t\t\tnb_to_train = tmp.getValue();\t\t\n\t\t\t\tnb_rounds = current.getTime_prod();\n\t\t\t}else {\n\t\t\t\tcurrent = null;\n\t\t\t\tnb_to_train = 1;\n\t\t\t\tnb_rounds = 100+50*(owner_castle.getLevel()+1);\n\t\t\t\tupgrade = true;\n\t\t\t}\n\t\t}else\n\t\t\tcurrent = null;\n\t}",
"public void run() {\n\n // Initialize control center.\n\n control = new Dispatch(parameters);\n control.run();\n linked = control.gettasks();\n\n // Initialize trains.\n\n trains = new TrainSim[parameters.numTrains];\n\n for (int i = 0; i < parameters.numTrains; i++) {\n\n trains[i] = new TrainSim(parameters, i);\n trains[i].genbasis();\n\n }\n\n // Add linked tasks to trains.\n\n for (Task each : linked) {\n\n int trainid = each.getTrain();\n each = new Task(each.getType(), each.getBeginTime(), parameters, false);\n each.setID(trainid);\n if (each.getArrTime() < parameters.numHours*60) {\n trains[trainid].linktask(each);\n }\n }\n\n // Run each train\n\n for (TrainSim each : trains) {\n\n each.run();\n\n }\n\n }",
"public void driveTrainLoop() {\n if (Config.getInstance().getBoolean(Key.ROBOT__HAS_DRIVETRAIN)) {\n // Check User Inputs\n double driveThrottle = mOperatorInterface.getDriveThrottle();\n double driveTurn = mOperatorInterface.getDriveTurn();\n\n boolean WantsAutoAim = mOperatorInterface.getFeederSteer();\n\n // Continue Driving\n if (WantsAutoAim == true) {\n // Harvest Mode - AutoSteer Functionality\n // Used for tracking a ball\n // we may want to limit the speed?\n // RobotTracker.RobotTrackerResult DriveResult =\n // mRobotTracker.GetFeederStationError(Timer.getFPGATimestamp());\n mDriveState = DriveState.AUTO_DRIVE;\n\n VisionPacket vp = mRobotTracker.GetTurretVisionPacket(Timer.getFPGATimestamp());\n // mDrive.autoSteerFeederStation(driveThrottle, vp.Error_Angle);\n } else {\n // Standard Manual Drive\n mDrive.setDrive(driveThrottle, driveTurn, false);\n\n // if we were previously in auto drive.. turn it off\n if (mDriveState == DriveState.AUTO_DRIVE) {\n mDriveState = DriveState.MANUAL;\n }\n }\n }\n }",
"@Override\n\tpublic void run() \n\t{\n\n\t\ttry \n\t\t{\n\t\tif(isDriver) \n\t\t\t{\n\t\t\t\tSystem.out.println(\" waiting for the workers\");\n\t\t\t\tstopSignal.await();\n\t\t\t\tSystem.out.println(\" driver Shutting down.\");\n\t\t\t}\n\t\telse \n\t\t\t{\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tSystem.out.println(\" Caller waiting \");\n\t\t\t\tstartSignal.await();\n\t\t\t\tSystem.out.println(\" Caller counting down \");\n\t\t\t\tstopSignal.countDown();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) \n\t\t{\n\t\t\tSystem.err.println(\"e:\"+e.getMessage());\n\t\t}\n\n\t}",
"@Override\n public boolean waitToProceed() {\n return false;\n }",
"public void run() {\n\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"准备。。。\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tp.await();//等待\n\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"已接受。。。\");\n\t\t\t\t\t\tThread.sleep((long)(Math.random()*10000));\n\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"完成。。。\");\n\t\t\t\t\t\ts.countDown();//三次后为0 释放主线程中的等待\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}",
"@Override\n\tpublic void trainLocal() throws Exception {\n\t\tdouble [][] input = parameters.getInput();\n\t\tdouble [][] result = ann.getResults(parameters);\n\t\tif (state == preTraining) {//in this case, it is running in the pre-training mode.\n\t\t\tinput = newInput;\n\t\t\tresult = newInput;\n\t\t}\n\t\terr = 0; \n\t\tfor (int i = 0; i < mb; i++) {\t\n\t\t\tif (pos > input.length - 1) {\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\terr = err + ann.runEpoch(input[pos], pos, result[pos], parameters);\n\t\t\tpos++;\n\t\t}\n\t}",
"public abstract void onWait();",
"public Status waitUntilFinished();",
"protected void execute() {\n \tRobot.driveTrain.keepHeadingDrive(0, 0, targetDirection);\n }",
"private void submit() {\r\n\t\tassignTracked();\r\n\t\tBkitPoma.startLoading(constants.BkitPoma_startLoading_wating());\r\n\t\tpostSubmit();\r\n\t}",
"public void train()\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n System.out.println(\"Start Training ..\");\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Training Text %..\");\n\t\t\ttrainText();\n\n\t\t\tSystem.out.println(\"Training Complex %..\");\n\t\t\ttrainCombined();\n\n\t\t\tSystem.out.println(\"Training Feature %..\");\n\t\t\ttrainFeatures();\n\n\t\t\tSystem.out.println(\"Training Lexicon %..\");\n\t\t\t//trainLexicon();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"protected void execute() {\r\n\r\n double tempInches = Robot.driveTrain.getRangeInches();\r\n if(tempInches<0)\r\n {\r\n Robot.driveTrain.stop();\r\n return;\r\n }\r\n\r\n if (tempInches > Preferences.ultraStopDistance) {\r\n if (Preferences.tankDriveMode) {\r\n Robot.driveTrain.tankDrive(Robot.oi.getDriverLeft().getY(), Robot.oi.getDriverRight().getY());\r\n } else {\r\n Robot.driveTrain.arcadeDrive(Robot.oi.getDriverLeft().getY(), Robot.oi.getDriverRight().getX());\r\n }\r\n } else if(complete == false) {\r\n if(Robot.driveTrain.autoTurnToAngle(0)){\r\n complete = true;\r\n Robot.driveTrain.setDirection();\r\n Robot.driveTrain.resetEncoders();\r\n }\r\n }\r\n\r\n if (complete) {\r\n //Robot.driveTrain.autoTurnToAngle(0);\r\n Robot.driveTrain.autoDriveStraight(tempInches - Preferences.ultraStopDistance);\r\n }\r\n\r\n }",
"protected void execute() {\n\t\tBBox bBox = bBoxLocator.getBBox();\n\t\tSmartDashboard.putBoolean(\"Can See With Vision\", wasDetected);\n\n\t\tif (bBox != null) {\n\t\t\twasDetected = true;\n\t\t\tpidAngle.setSetpoint(Robot.drivetrain.getHeading() + bBox.angleDeg);\n\t\t\tSmartDashboard.putNumber(\"PID Vision Setpoint Angle\", pidAngle.getSetpoint());\n\t\t}\n\n\t\tif (!waitForVision || wasDetected) {\n\t\t\tRobot.drivetrain.drive(driveOutput * (useAccelerationFiler ? filter.output() : 1), driveCurve);\n\t\t}\n\t}",
"public void runLastTime(){\n\t\t/*try {\n\t\t\tlong timeDiff = 100;\n\t\t\t\n\t\t\tFeatureListController controller = new FeatureListController(timeDiff);\n\t\t\tTestSensorListener listener1 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener1);\n\t\t\tTestSensorListener listener2 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener2);\n\t\t\t\n\t\t\t\n\t\t\t//20 samples in total\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0;i<2;++i){\n\t\t\t\tSensorListener listener;\n\t\t\t\tif(i==0)\n\t\t\t\t\tlistener = listener1;\n\t\t\t\telse \n\t\t\t\t\tlistener = listener2;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"LISTENER\" + (i+1));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Now:\" + new Date().getTime());\n\t\t\t\tList<FeatureList> featureLists = controller.getLastFeatureListsInMilliseconds(listener, -1);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with milliseconds method\");\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with n method\");\n\t\t\t\tList<FeatureList> featureLists2 = controller.getLastNFeatureList(listener, -1);\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last milliseconds \" + 40);\n\t\t\t\tList<FeatureList> featureLists3 = controller.getLastFeatureListsInMilliseconds(listener, 40);\n\t\t\t\tfor(FeatureList l : featureLists3)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last N Feature Lists \" + 6);\n\t\t\t\tList<FeatureList> featureLists4 = controller.getLastNFeatureList(listener, 6);\n\t\t\t\tfor(FeatureList l : featureLists4)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t}\n\t\t\t\n\n\t\t} catch (InterruptedException ex) {\n\t\t\tSystem.out.println(ex.getLocalizedMessage());\n//Logger.getLogger(CaseFeatureListController.class.getName()).log(Level.SEVERE, new double[10], ex);\n\t\t}*/\n\t\t\n\t}",
"public void waitForData() {\n waitForData(1);\n }",
"@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tTask t = bq.take();\n\n\t\t\t\t\n\t\t\t\tThread.sleep(t.getProcessTime() * 1000);\n\t\t\t\twaitingTime.addAndGet((-1) * t.getProcessTime());\n\t\t\t\tSimulator.getFrame().displayData(\"Client \"+t.getNr()+\" left. \\n\");\n\t\t\t\tsize--;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"public void drivetrainInitialization()\n\t{\n\t\tleftSRX.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, Constants.kTimeoutMs);\n\t\tleftSRX.setSensorPhase(true);\n\t\tleftSRX.configNominalOutputForward(0, Constants.kTimeoutMs);\n\t\tleftSRX.configNominalOutputReverse(0, Constants.kTimeoutMs);\n\t\tleftSRX.configPeakOutputForward(1, Constants.kTimeoutMs);\n\t\tleftSRX.configPeakOutputReverse(-1, Constants.kTimeoutMs);\n\n\t\t// // Config left side PID Values\n\t\t// leftSRX.selectProfileSlot(Constants.drivePIDIdx, 0);\n\t\t// leftSRX.config_kF(Constants.drivePIDIdx, Constants.lDrivekF, Constants.kTimeoutMs);\n\t\t// leftSRX.config_kP(Constants.drivePIDIdx, Constants.lDrivekP, Constants.kTimeoutMs);\n\t\t// leftSRX.config_kI(Constants.drivePIDIdx, Constants.lDrivekI, Constants.kTimeoutMs);\n\t\t// leftSRX.config_kD(Constants.drivePIDIdx, Constants.lDrivekD, Constants.kTimeoutMs);\n\n\t\t// Config right side PID settings\n\t\trightSRX.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, Constants.drivePIDIdx, Constants.kTimeoutMs);\n\t\trightSRX.setSensorPhase(true);\n\t\trightSRX.configNominalOutputForward(0, Constants.kTimeoutMs);\n\t\trightSRX.configNominalOutputReverse(0, Constants.kTimeoutMs);\n\t\trightSRX.configPeakOutputForward(1, Constants.kTimeoutMs);\n\t\trightSRX.configPeakOutputReverse(-1, Constants.kTimeoutMs);\n\n\t\t// // Config right side PID Values\n\t\t// rightSRX.selectProfileSlot(Constants.drivePIDIdx, 0);\n\t\t// rightSRX.config_kF(Constants.drivePIDIdx, Constants.rDrivekF, Constants.kTimeoutMs);\n\t\t// rightSRX.config_kP(Constants.drivePIDIdx, Constants.rDrivekP, Constants.kTimeoutMs);\n\t\t// rightSRX.config_kI(Constants.drivePIDIdx, Constants.rDrivekI, Constants.kTimeoutMs);\n\t\t// rightSRX.config_kD(Constants.drivePIDIdx, Constants.rDrivekD, Constants.kTimeoutMs);\n\n\t\t// Set up followers\n\t\tleftSPX1.follow(leftSRX);\n\t\tleftSPX2.follow(leftSRX);\n\n\t\trightSPX1.follow(rightSRX);\n\t\trightSPX2.follow(rightSRX);\n\t\t\n\t\trightSRX.setInverted(true);\n\t\trightSPX1.setInverted(true);\n\t\trightSPX2.setInverted(true);\n }",
"private void stopWait(int ticket) throws CommandException, InterruptedException {\n if (DEBUG) System.err.printf(\"Train: %d\\tWaiting for track %d\\n\", this.id, ticket);\n TSimInterface.getInstance().setSpeed(this.id, 0);\n acc(ticket);\n TSimInterface.getInstance().setSpeed(this.id, speed);\n if (DEBUG) System.err.printf(\"Train: %d\\tGot track %d\\n\", this.id, ticket);\n }",
"protected void end() {\n \tRobot.driveTrain.stop();\n }",
"protected void end() {\n \tRobot.driveTrain.stop();\n }",
"public void train(SieveDocuments trainingInfo) {\r\n\t\t// no training\r\n\t}",
"@Override\n public void run() {\n if(counter+1<trainingObjectList.size()) {\n setupForGame();\n }\n else{//bitir activity. main activitiye dönülebilir belki.\n dbHandler.setTrainingCompletedAll(trainingID);\n if (!CheckNetwork.isOnline(MatchingGame.this)) {\n Log.d(TAG, \"MatchingGame no db no wifi, checknetworktrue\");\n CheckNetwork.showNoConnectionDialog(MatchingGame.this, false, 2); //display dialog\n } else {\n new CreateTrainingResponse(MatchingGame.this, false, username).execute(trainingID);\n Intent intent = new Intent(MatchingGame.this, MainActivity.class);\n intent.putExtra(\"username\", username);\n //startActivity(intent);\n //finish();\n }\n }\n }",
"@Override\n protected void end() {\n Robot.driveTrain.stop();\n }",
"@Override\n public void run() {\n if(counter+1<trainingObjectList.size()) {\n setupForGame();\n }\n else{//bitir activity. main activitiye dönülebilir belki.\n dbHandler.setTrainingCompletedAll(trainingID);\n if (!CheckNetwork.isOnline(MatchingGame.this)) {\n Log.d(TAG, \"MatchingGame no db no wifi, checknetworktrue\");\n CheckNetwork.showNoConnectionDialog(MatchingGame.this, false, 2); //display dialog\n } else {\n new CreateTrainingResponse(MatchingGame.this, false, username).execute(trainingID);\n Intent intent = new Intent(MatchingGame.this, MainActivity.class);\n intent.putExtra(\"username\", username);\n //startActivity(intent);\n //finish();\n }\n }\n }",
"protected void TestProcess() {\n\t\tchangeCPUWDStatus(false);\n\t\twhile (testIsNotDoneStatus) {\n\t\t\tresetParams();\n\t\t\ttry {\n\t\t\t\tif (!startTrafficAndSample()) {\n\t\t\t\t\ttestIsNotDoneStatus = false;\n\t\t\t\t\tresetTestBol = false;\n\t\t\t\t\texceptionThrown = true;\n\t\t\t\t\tGeneralUtils.stopAllLevels();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\treport.report(\"Stopping Parallel Commands From Java Exception\" + e.getMessage());\t\t\t\t\n\t\t\t\ttestIsNotDoneStatus = false;\n\t\t\t\tresetTestBol = false;\n\t\t\t\texceptionThrown = true;\n\t\t\t\treason = \"network connection Error\";\n\t\t\t\treport.report(e.getMessage() + \" caused Test to stop\", Reporter.FAIL);\n\t\t\t\te.printStackTrace();\n\t\t\t\tGeneralUtils.stopAllLevels();\n\t\t\t}\n\t\t\tif (resetTestBol) {\n\t\t\t\tnumberOfResets++;\n\t\t\t\tif (syncCommands != null) {\n\t\t\t\t\treport.report(\"Stopping Parallel Commands\");\n\t\t\t\t\tsyncCommands.stopCommands();\n\t\t\t\t}\n\t\t\t\tmakeThreadObjectFinish();\n\t\t\t\tif (syncCommands != null) {\n\t\t\t\t\treport.report(\"Commands File Path: \" + syncCommands.getFile());\n\t\t\t\t}\n\t\t\t\ttestIsNotDoneStatus = true;\n\t\t\t\t// stop level\n\t\t\t\ttry {\n\t\t\t\t\tif (syncCommands != null) {\n\t\t\t\t\t\tsyncCommands.moveFileToReporterAndAddLink();\n\t\t\t\t\t}\n\t\t\t\t\treport.report(\"Stopping Traffic\");\n\t\t\t\t\ttrafficSTC.stopTraffic();\n\t\t\t\t\ttrafficSTC.addResultFilesToReport(String.valueOf(numberOfResets));\n\t\t\t\t\treport.report(\"Resetting test\", Reporter.WARNING);\n\t\t\t\t\treason = \"reset Test because of stream halt\";\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (numberOfResets >= 3) {\n\t\t\t// using this flag in order to NOT print results.\n\t\t\ttestIsNotDoneStatus = false;\n\t\t\tprintResultsForTest = false;\n\t\t\treport.report(\"Test Was Reseted Too many times because of more then \" + PRECENT_OF_UE_RESET + \"%\"\n\t\t\t\t\t+ \" Of the Streams are in Halt - check Setup\", Reporter.FAIL);\n\t\t\treason = \"Test Was Restarted Too many Times due to Traffic halt\";\n\t\t}\n\t\ttry {\n\t\t\tif (syncCommands != null) {\n\t\t\t\tsyncCommands.stopCommands();\n\t\t\t}\n\t\t} catch (Exception e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tmakeThreadObjectFinish();\n\t\ttry {\n\t\t\tif (syncCommands != null) {\n\t\t\t\tsyncCommands.moveFileToReporterAndAddLink();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\treport.report(\"Exception in ReporterHelper.copyFileToReporterAndAddLink could not attach Command File\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tchangeCPUWDStatus(true);\n\t}",
"public void train() {\n while (!environment.inTerminalState()) {\n\n Action action = policy.chooseAction(environment);\n List<Double> stateAction = environment.getStateAction(action);\n\n double knownReward = environment.immediateReward(action);\n double totalReward = environment.performAction(action);\n double unknownReward = totalReward - knownReward;\n\n // Next state of environment is implicitly passed.\n backup(stateAction, unknownReward);\n }\n }",
"public void readTaskComplete() {\n\t\tnode.incrementNodesCompleted();\n\t\tif(node.getNodesCompleted() ==node.getCurrentMessagingNodesList().getSize()) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"going to sleep\");\n\t\t\t\tThread.sleep(1000*15);\n\t\t\t\tfor(NodeLink n : node.getCurrentMessagingNodesList().getList()) {\n\t\t\t\t\tMessage message = new PullTrafficRequest();\t\t\t\t\n\t\t\t\t\tSocket senderSocket = node.getConnections().getSocketWithName(n.ipAddress);\n\t\t\t\t\tnew TCPSender(senderSocket, message);\n\t\t\t\t}\n\t\t\t} catch (IOException e) {e.printStackTrace();\n\t\t\t} catch (InterruptedException e) {e.printStackTrace();}\n\t\t}\n\t}",
"protected void execute() {\n\t\tdouble error = -1;\n\t\tdouble proportion = 1;\n\t\tdouble coefficient = 1;\n\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.StartDepth)) { error = Robot.depth_.get_degrees_x(); }\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.StartCubeSearch)) { error = Robot.cube_.get_degrees_x(); }\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.StartRFT)) { error = Robot.rft_.get_degrees_x(); }\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.PlatformBlueSearch) || \n\t\t\t\tvision.equalsIgnoreCase(SocketVisionSender.PlatformRedSearch)) { error = Robot.platform_.get_degrees_x(); }\n\t\t\n\t\tif(error == -1) {\n\t\t\tproportion = Drivetrain.kPGyroConstant * (Robot.drivetrain.getGyroHeading() - initHeading);\n\n\t\t} else {\n\t\t\tproportion = error * kP;\n\t\t\t//drive vision\n\t\t\tif(error == 0) initHeading = Robot.drivetrain.getGyroHeading();\n\t\t}\n\n\t\tcoefficient = (initDistance - Robot.drivetrain.getRightEncoderPos(0)) / initDistance;\n\t\tcoefficient = Robot.drivetrain.thresholdVBus(coefficient);\n\n\t\tRobot.drivetrain.tankDrive(coefficient * (vBus - proportion), -coefficient * (vBus + proportion));\n\n\t}",
"@Test\n public void testNextWaiting() {\n }",
"private void trainNetwork(long iterations) {\n\t\ttrainer.startTraining(network, iterations);\r\n\r\n\t}",
"private void waitUntilReady() {\n\t\t\twhile (deque.isEmpty() && loadThread.isAlive()) {\n//\t\t\t\ttry {\n//\t\t\t\t\tThread.sleep(100);\n//\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\tExceptionUtils.throwAsRuntimeException(e);\n//\t\t\t\t}\n\t\t\t}\n\t\t}",
"protected void execute() {\n \tRobot.driveTrain.driveByArcade(_speed, 0);\n }",
"private void train() throws IOException {\r\n\r\n // Set Listeners, to see results of evaluation during training process and testing\r\n vgg16Transfer.setListeners(new ScoreIterationListener(100));\r\n trainWriter.write(\"\\n Train model....\");\r\n System.out.println(\"\\n Train model....\");\r\n int iterationsCounter = 0;\r\n // Go through all data \"epochs\" - number of times\r\n for(int n = 0; n < epochs; n++) {\r\n System.out.println(String.format(\"Epoch %d started training\", n + 1));\r\n trainWriter.write(String.format(\"Epoch %d started training\", n + 1));\r\n\r\n //Reset training iterator to the new epoch\r\n trainIterator.reset();\r\n // Go through all data once, till it's end\r\n while (trainIterator.hasNext()) {\r\n iterationsCounter++;\r\n trainingData = trainIterator.next();\r\n normalizer.fit(trainingData);\r\n vgg16Transfer.fit(trainingData);\r\n System.out.println(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n\r\n }\r\n System.out.println(String.format(\"Epoch %d finished training\", n + 1));\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n // Get results and check them\r\n Evaluation eval = new Evaluation(numLabels);\r\n testIterator.reset();\r\n while(testIterator.hasNext()) {\r\n testData = testIterator.next();\r\n normalizer.fit(testData);\r\n INDArray features = testData.getFeatures();\r\n INDArray labels = testData.getLabels();\r\n INDArray predicted = vgg16Transfer.outputSingle(features);\r\n eval.eval(labels, predicted);\r\n }\r\n System.out.println(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n System.out.println(eval.stats());\r\n System.out.println(eval.confusionToString());\r\n trainWriter.write(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n trainWriter.write(eval.stats());\r\n trainWriter.write(eval.confusionToString());\r\n }\r\n System.out.println(\"\\n *** Training finished! *** \");\r\n trainWriter.write(\"\\n *** Training finished! *** \");\r\n }",
"protected void execute() {\n\t\tcurrent = Robot.encoder.getDistance();\n\t\terror = target - current;\n\t\tscaled_error = error * scale;\n\t\tP = Constants.kDriveTrainP * scaled_error;\n\t\tI += Constants.kDriveTrainI * scaled_error;\n\t\tD = (scaled_error - p_error) / Constants.kDriveTrainD;\n\n\t\tdouble output = P + I + D;\n\n\t\tSmartDashboard.putNumber(\"cur_angle\", Robot.imu.getAngleZ());\n\t\tSmartDashboard.putNumber(\"output\", output);\n\t\tSmartDashboard.putNumber(\"encoder distance\", Robot.encoder.getDistance());\n//\t\tRobot.chassis.tankDrive(output, output);\n\t\tdouble theta = 0 - Robot.imu.getAngleZ();\n\t\tdouble correction = theta * 0.035;\n\t\tSmartDashboard.putNumber(\"correction\", correction);\n\t\tif (theta < 0)\n\t\t\tRobot.mChassis.tankDrive(output + correction, output);\n\t\telse if (theta > 0)\n\t\t\tRobot.mChassis.tankDrive(output, output + correction);\n\t\telse\n\t\t\tRobot.mChassis.tankDrive(output, output);\n\n\t\tif (Math.abs(error) < 0.1)\n\t\t\tisFinished = true;\n\n\t}",
"protected abstract void beforeWait();",
"public static void test_2(){\r\n try{\r\n System.out.println(\"\\n\\nTestCase-2\\n\\n\");\r\n TestNetwork n=new TestNetwork(4,4,2);\r\n Paxos p=new Paxos(n);\r\n p.runPaxos();\r\n n.change_DPmode(-1,1);\r\n for(int i=0;i<10;i++) //Block the channel of all processes\r\n n.block_channel(i, 1); \r\n Thread.sleep(500);\r\n for(int i=0;i<4;i++) //Release all Proposers\r\n n.block_channel(i,0); \r\n Thread.sleep(1000);\r\n for(int i=4;i<8;i++) //Release all Acceptors\r\n n.block_channel(i,0);\r\n Thread.sleep(1000);\r\n n.block_channel(9,0); //Release one of the learner's channel\r\n Thread.sleep(1000); \r\n n.block_channel(8,0); //Lets release the next learner's channel\r\n Thread.sleep(5000);\r\n n.terminate_run();\r\n Thread.sleep(2000);\r\n System.out.println(\"\\n\\nTERMINATED PAXOS RUN-2\");\r\n n.printTrace();\r\n }\r\n catch(Exception e){}\r\n}",
"public void cycle() {\r\n processTask(); // tune relative frequency?\r\n processConcept(); // use this order to check the new result\r\n }",
"public void performTraining() {\n\tint counter = 0;\n\tint success = 0;\n\n\tdo {\n\t success = 0;\n\n\t for (int ii = 0; ii < pl.size(); ii++) {\n\t\tPattern pn = pl.get(ii);\n\t\tbp.runNetwork(pn);\n\t\tbp.trainNetwork(pn);\n\n\t\tdouble truth[] = pn.getOutput();\t\t\n\t\tdouble results[] = bp.getOutputPattern();\n\n\t\tboolean failed = false;\n\n// \t\tSystem.out.print(\"patt \" + ii + \" \");\n// \t\tdouble[] input = pn.getInput();\n// for (int jj = 0; jj < input.length; jj++) {\n// \t\t System.out.print(round2(input[jj]) + \" \");\n// \t\t}\n// \t\tSystem.out.print(\"// \");\n// for (int jj = 0; jj < truth.length; jj++) {\n// \t\t System.out.print(round2(truth[jj]) + \" \");\n// \t\t}\n// \t\tSystem.out.println();\n\n// for (int jj = 0; jj < results.length; jj++) {\n// \t\t System.out.print(results[jj] + \" \");\n// \t\t // System.out.print(round2(results[jj]) + \" \");\n// \t\t}\n// \t\tSystem.out.println();\n\t\t\n\t\tfor (int jj = 0; jj < results.length; jj++) {\n if (round1(results[jj]) != round2(truth[jj])) {\n failed = true;\n }\n\t\t}\n \n if (!failed) {\n ++success;\n } \n }\n\n\t if ((++counter % 100) == 0) {\n System.out.println(counter + \" success:\" + success + \" needed:\" + pl.size());\n }\n } while (success < pl.size());\n\t\n\tSystem.out.println(\"Training complete in \" + counter + \" cycles\");\n }",
"protected abstract long waitOnQueue();",
"public void waitingForPartner();",
"protected void end() {\n \tSystem.out.println(\"pid Get\" + RobotMap.visionSensor.pidGet());\n\t\tRobotMap.visionSensor.stopProcessing();\n \tRobotMap.VisionDistanceRightPIDController.stop();\n\t\tRobotMap.VisionDistanceLeftPIDController.stop();\n\t\tRobot.driveTrain.setTalonsReversedState(false);\n \tRobot.driveTrain.resetTalonControlMode();\n\t\tSystem.out.println(\"Drived to traget\");\n\t}",
"public void runModel(){\n\t\tcurrentView.getDynamicModelView().getModel().setProgressMonitor(progressMonitor);\r\n\t\tnew Thread(currentView.getDynamicModelView().getModel()).start();\r\n\r\n\t\tsetStatusBarText(\"Ready\");\r\n\t}",
"public IObserver train(IContext context) throws ThinklabException;",
"public final void activate(){\n waitingToExecute = true;\n }",
"protected void end() {\n\t\tRobot._driveTrain.setAuton(false);\n\t\tRobot._driveTrain.tankDrive(0, 0);\n\t}",
"public static void waitToGo() {\r\n try {\r\n sendMessageToMaster(SocketMessage.SLAVE_READY_TO_GO);\r\n wait_to_run.acquire();\r\n } catch (InterruptedException e) {\r\n }\r\n }",
"private void await() {\n try {\n game.getBarrier().await();\n } catch (InterruptedException | BrokenBarrierException e) {\n e.printStackTrace();\n }\n }",
"protected void waitUntilCommandFinished() {\n }",
"public void train() {\n\t\tfor (int i = 0; i < numberOfIterations; i++) {\n\t\t\t// for each training record\n\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\t// calculate inputs and outputs\n\t\t\t\tforwardCalculation(records.get(j).input);\n\t\t\t\t// compute errors, update weights and thetas\n\t\t\t\tbackwardCalculation(records.get(j).output);\n\t\t\t}\n//\t\t\tpostprocessOutputs();\n\t\t}\n\t}",
"void waitAll();",
"protected abstract void afterWait();",
"private void waitForBackgroupTasks() {\n this.objectStore.getAllObjectIDs();\n this.objectStore.getAllEvictableObjectIDs();\n this.objectStore.getAllMapTypeObjectIDs();\n }",
"private void runOnlineModel() {\n myScenario.setProbe(myProbe);\n myScenario.setSynchronizationMode(mySrcSelector);\n try {\n myScenario.resync();\n myScenario.run();\n } catch (SynchronizationException e) {\n System.out.println(e);\n } catch (ModelException e) {\n System.out.println(e);\n }\n }",
"private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}",
"protected int getWait() \t\t\t\t{\treturn wait;\t\t}",
"protected void execute() {\n \tRobot.driveTrain.arcadeNoConstants(MOVE_SPEED_PERCENT, Robot.driveTrain.gyroPReturn(direction));\n }",
"public void getPredictions() throws IOException, InterruptedException{\n //splitColsDataFiles();\n for(String learner:listLearners){\n File modelsFolder = new File(\"models/\"+learner);\n File[] IPFolders = modelsFolder.listFiles();\n for (File nodeFolder : IPFolders) {\n if (nodeFolder.isDirectory()) {\n File[] filesInFolder = nodeFolder.listFiles();\n ArrayList<String> filesINFolderAL = new ArrayList<String>();\n for(int i=0;i<filesInFolder.length;i++){\n filesINFolderAL.add(filesInFolder[i].getName());\n }\n if(filesINFolderAL.contains(model) && filesINFolderAL.contains(\"data.properties\")){\n System.out.println(\"Generating data for: \" + nodeFolder.getPath());\n // read properties file\n // get indices of variables\n // paste appropriate cols in models/temp\n // change commands below with appropriate data\n Properties dataProps = loadProps(nodeFolder.getPath()+\"/data.properties\");\n ArrayList<Integer> indices = new ArrayList<Integer>();\n String featuresS = dataProps.getProperty(\"sampled_variables\");\n if(featuresS!=null){\n String[] featuresArray = featuresS.split(\" \");\n for(int i=0;i<featuresArray.length;i++){\n indices.add(i, Integer.parseInt(featuresArray[i]));\n }\n // the order of indices is important\n Collections.sort(indices);\n\n String pasteTrainTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTrainTempCommand += \" models/temp/tr_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTrainTempCommand += \" models/temp/tr_targets.csv > models/temp/tr_temp.csv\";\n System.out.println(pasteTrainTempCommand);\n Process pasteTrainTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTrainTempCommand});\n pasteTrainTemp_process.waitFor();\n\n\n String pasteTestTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTestTempCommand += \" models/temp/te_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTestTempCommand += \" models/temp/te_targets.csv > models/temp/te_temp.csv\";\n System.out.println(pasteTestTempCommand);\n Process pasteTestTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTestTempCommand});\n pasteTestTemp_process.waitFor();\n \n // Add a new case when adding a new learner\n if(learner.equals(\"gpfunction\") || learner.equals(\"ruletree\") || learner.equals(\"rulelist\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }else if(learner.equals(\"mplcs\")){// C OR C++\n String predictTrain_command = \"learners/\" + learner + \" -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"learners/\" + learner + \" -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"lccb\")){ // Python\n String predictTrain_command = \"python learners/\" + learner + \".py -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"python learners/\" + learner + \".py -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n System.out.println(predictTest_command);\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"SBBJ\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }\n \n }\n }\n }\n }\n }\n }",
"public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void trainBernoulli() {\t\t\n\t\tMap<String, Cluster> trainingDataSet = readFile(trainLabelPath, trainDataPath, \"training\");\n\t\tMap<String, Cluster> testingDataSet = readFile(testLabelPath, testDataPath, \"testing\");\n\n\t\t// do testing, if the predicted class and the gold class is not equal, increment one\n\t\tdouble error = 0;\n\n\t\tdouble documentSize = 0;\n\n\t\tSystem.out.println(\"evaluate the performance\");\n\t\tfor (int testKey = 1; testKey <= 20; testKey++) {\n\t\t\tCluster testingCluster = testingDataSet.get(Integer.toString(testKey));\n\t\t\tSystem.out.println(\"Cluster: \"+testingCluster.toString());\n\n\t\t\tfor (Document document : testingCluster.getDocuments()) {\n\t\t\t\tdocumentSize += 1; \n\t\t\t\tList<Double> classprobability = new ArrayList<Double>();\n\t\t\t\tMap<String, Integer> testDocumentWordCounts = document.getWordCount();\n\n\t\t\t\tfor (int classindex = 1; classindex <= 20; classindex++) {\n\t\t\t\t\t// used for calculating the probability\n\t\t\t\t\tCluster trainCluster = trainingDataSet.get(Integer.toString(classindex));\n\t\t\t\t\t// System.out.println(classindex + \" \" + trainCluster.mClassId);\n\t\t\t\t\tMap<String, Double> bernoulliProbability = trainCluster.bernoulliProbabilities;\n\t\t\t\t\tdouble probability = Math.log(trainCluster.getDocumentSize()/trainDocSize);\n\t\t\t\t\tfor(int index = 1; index <= voc.size(); index++ ){\n\n\t\t\t\t\t\t// judge whether this word is stop word \n\t\t\t\t\t\tboolean isStopwords = englishStopPosition.contains(index);\n\t\t\t\t\t\tif (isStopwords) continue;\n\n\t\t\t\t\t\tboolean contain = testDocumentWordCounts.containsKey(Integer.toString(index));\t\t\t\t\t\t\n\t\t\t\t\t\tif (contain) {\n\t\t\t\t\t\t\tprobability += Math.log(bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tprobability += Math.log(1 - bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// put the probability into the map for the specific class\n\t\t\t\t\tclassprobability.add(probability);\n\t\t\t\t}\n\t\t\t\tObject obj = Collections.max(classprobability);\n\t\t\t\t// System.out.println(classprobability);\n\t\t\t\tString predicte_class1 = obj.toString();\n\t\t\t\t// System.out.println(predicte_class1);\n\t\t\t\t// System.out.println(Double.parseDouble(predicte_class1));\n\t\t\t\tint index = classprobability.indexOf(Double.parseDouble(predicte_class1));\n\t\t\t\t// System.out.println(index);\n\t\t\t\tString predicte_class = Integer.toString(index + 1);\n\n\n\t\t\t\tconfusion_matrix[testKey - 1][index] += 1;\n\n\t\t\t\t// System.out.println(document.docId + \": G, \" + testKey + \"; P: \" + predicte_class);\n\t\t\t\tif (!predicte_class.equals(Integer.toString(testKey))) {\n\t\t\t\t\terror += 1;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize);\n\t\t}\n\n\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize + \" precision rate : \" + (1 - error/documentSize));\n\n\t\t// print confusion matrix\n\t\tprintConfusionMatrix(confusion_matrix);\n\t}",
"protected void unqueueTrain(final BackendEngineStatus queued, final ServerTracker server) {\n\n this.logger.logDebugQueueAction(this.logFrom, \"train\", this.serviceIdentity,\n queued.getAiid(), queued.getDevId(), server.getServerIdentifier());\n\n // read the queue status of this ai\n BackendEngineStatus currentStatus = null;\n try {\n currentStatus = this.database.getAiQueueStatus(this.serviceIdentity, queued.getAiid());\n } catch (DatabaseException e) {\n this.logger.logException(this.logFrom, e);\n }\n\n // if there is a status and the AI was not deleted (shouldn't happen)\n if ((currentStatus == null) || (currentStatus.isDeleted())) {\n this.logger.logError(this.logFrom,\n String.format(\"trying to train but bot %s has been deleted\", queued.getAiid().toString()));\n return;\n }\n\n try {\n // carefully set the AI status to indicate that the AI is training and the\n // slot is in use\n // when training actually starts the server will call us back to set status\n this.database.updateAIStatus(this.serviceIdentity, queued.getAiid(),\n TrainingStatus.AI_TRAINING, server.getServerIdentifier(),\n currentStatus.getTrainingProgress(), currentStatus.getTrainingError());\n\n // send the start training command after setting the DB status to avoid status callback coming back\n // before the the API is ready to receive it\n\n // tell the chosen server to start training\n this.queueServicesProvider.get().startTrainingDirect(this.serviceIdentity,\n new AiIdentity(currentStatus.getDevId(), queued.getAiid(),\n this.serviceIdentity.getLanguage(), this.serviceIdentity.getVersion()),\n server.getServerUrl(), server.getServerIdentifier());\n\n } catch (ServerConnector.AiServicesException e) {\n handleTrainTaskFailure(queued, server, e);\n } catch (DatabaseException e) {\n this.logger.logError(this.logFrom, String.format(\"failed to set endpoint in status: %s\", e.toString()));\n }\n }",
"protected void waitDownloads() throws Exception {\n runtimeWrapper.newCommand();\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile(true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000*20);\r\n\t\t\t\t\t\tas.generateDiagModel(dataset);\r\n\t\t\t\t\t\tRDFReasoning.output(dataset);\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}",
"public void run() {\r\n ouputProgressModel.setPogressStarted(true);\r\n try {\r\n for (int i = 0; i <= 100; i += 10) {\r\n // pause the thread\r\n Thread.sleep(PROCCESS_SLEEP_LENGTH);\r\n // update the percent value\r\n ouputProgressModel.setPercentComplete(i);\r\n SessionRenderer.render(\"progressExample\");\r\n }\r\n }\r\n catch (InterruptedException e) { }\r\n ouputProgressModel.setPogressStarted(false);\r\n }",
"public void TrainDataset(){\n\t\ttry{\n\t\t\t//Testing delegate method\n\t\t\tMessageController.logToConsole(\"Hey, I'm from train button\");\n\t\t\t\n\t\t\t//Pass in the real training dataset\n\t\t\tfindSuitableK(new String[]{\"Hello\", \"World\"});\n\t\t\t\n\t\t\t//Pass in the 'k' and 'query string'\n\t\t\tfindKNN(2, \"anything\");\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tthrow ex;\n\t\t}\n\t\tfinally{\n\t\t\t\n\t\t}\n\t}",
"private void waitForBuyersAction() throws InterruptedException\n {\n while(waiting)\n {\n Thread.sleep(100);\n }\n waiting = true;\n }",
"private void acc(int ticket) throws InterruptedException {\n trackStatus[ticket].acquire();\n if (DEBUG) System.err.printf(\"Train: %d\\tAcquired: %d\\n\", this.id, ticket);\n }",
"private void awaitT(){\n try {\n game.getBarrier().await(20, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (BrokenBarrierException e) {\n e.printStackTrace();\n } catch (TimeoutException e) {\n trimBarrier();\n synchronized (lock){\n if(!botSignal){\n bot = new BotClient();\n new Thread(bot).start();\n botSignal = true;\n }\n\n }\n }\n }",
"public void doneClassifying() {\n\t\tbinaryTrainClassifier = trainFactory.trainClassifier(binaryTrainingData);\n\t\tmultiTrainClassifier = testFactory.trainClassifier(multiTrainingData);\n\t\tLinearClassifier.writeClassifier(binaryTrainClassifier, BINARY_CLASSIFIER_FILENAME);\n\t\tLinearClassifier.writeClassifier(multiTrainClassifier, MULTI_CLASSIFIER_FILENAME);\n\t}",
"public void waitToFinish()\n {\n while(!this.finished)\n {\n try\n {\n Thread.sleep(1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n }",
"public void run() {\n\t\tif ((phase == 0) && (pState.equals(\"ru\"))) {\t\n\t\t\tPyOS.askForResource(PyOS.waitingList6, 6);\n\t\t\tneededResource = 6;\n\t\t\tphase = 1;\n\t\t}\n\t\t//2) asks for supervisor memory\n\t\tif ((phase == 1) && (receivedResource == 6) && (pState.equals(\"ru\"))) {\t\n\t\t\tPyOS.askForResource(PyOS.waitingList2, 2);\n\t\t\tneededResource = 2;\n\t\t\tphase = 2;\n\t\t}\n\t\t\n\t\t//3)asks for hard drive memory\n\t\t//TODO\n\t\tif ((phase == 2) && (receivedResource == 2) && (pState.equals(\"ru\"))) {\t\n\t\t\n\t\t\tPyOS.askForResource(PyOS.waitingList4, 4);\n\t\t\tneededResource = 4;\n\t\t\tphase = 3;\n\t\t}\n\t\t\n\t\t//4) copies task to hard drive memmory\n\t\t//TODO\n\t\tif ((phase == 3) && (receivedResource == 4) && (pState.equals(\"ru\"))) {\t\n\t\t\tneededResource = 0;\n\t\t\t\n\t\t\tString line = new String();\n\t\t\t\n\t\t\tdo {\n\t\t\t\ttry {\n\t\t\t\t\tline = OSUI.flash.readLine();\n\t\t\t\t\tif (line != null) {\n\t\t\t\t\t\tHdd.openFileForWriting(filesInUse);\n\t\t\t\t\t\tHdd.writeToFile(filesInUse, line);\n\t\t\t\t\t\tHdd.closeFile(filesInUse);\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} while (line != null && !line.equals(\"$END\"));\n\t\t\t\n\t\t\tif (line == null) {\n\t\t\t\tPyOS.askForResource(PyOS.waitingList1, 1);\n\t\t\t\tPyOS.freeResource(PyOS.waitingList2, 2, ownedResList.get(1));\n\t\t\t\tPyOS.freeResource(PyOS.waitingList4, 4, ownedResList.get(1));\n\t\t\t} else {\n\t\t\t\tfilesInUse++;\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tPyOS.freeResource(PyOS.waitingList6, 6, ownedResList.get(0));\n\t\t\tphase = 4;\n\t\t}\n\t\t\n\t\t//5 TODO free flash, hard drive resources\n\t\tif ((phase == 4) && (pState.equals(\"ru\"))){\n\t\t\tPyOS.freeResource(PyOS.waitingList2, 2, ownedResList.get(0));\n\t\t\tPyOS.freeResource(PyOS.waitingList4, 4, ownedResList.get(0));\n\t\t\tphase = 5;\n\t\t}\n\t\t\n\t\t//7) creates resource task in hard drive\n\t\t//TODO resource should contain fileId\n\t\tif ((phase == 5) && (pState.equals(\"ru\"))) {\n\t\t\t\n\t\t\t\n\t\t\tPyOS.createResource(7, intID);\n\t\t\townedResList.add(createdResList.get(createdResList.size()-1));\n\t\t\townedResList.get(ownedResList.size()-1).user = PyOS.findProcessByIntId(intID);\n\t\t\t((TaskInHardDrive)ownedResList.get(ownedResList.size()-1)).computingTime = 1;\n\t\t\tPyOS.freeResource(PyOS.waitingList7, 7, ownedResList.get(ownedResList.size()-1));\n\t\t\tphase = 0;\n\t\t}\n\t}",
"@Override\n protected void execute() {\n Robot.driveTrain.tankDrive(1);\n }",
"protected void awaitResult(){\t\n\t\ttry {\n\t\t\t/*place thread/tuple identifier in waitlist for future responses from web service*/\n\t\t\tResponses.getInstance().addToWaitList(this.transId, this);\n\t\t\tthis.latch.await();\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\n\t\t\tLogger.getLogger(\"RSpace\").log(Level.WARNING, \"Transaction #\" + transId + \" response listener was terminated\");\n\t\t}\n\t}",
"private void dofakework() {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n protected void end() {\n Robot.driveTrain.tankDrive(0, 0);\n }",
"private void run() {\n\t\tfor (int i = 0; i < 1000; i++){\n\t\t\t\n\t\t\tdouble sample = Math.random()*2.0;\n\t\t\tdataset.addObservation(sample);\n\t\t\t\n\t\t\t// stats\n\t\t\tsum += sample;\n\t\t\tn++;\n\t\t\tav = sum/n;\n\n\t\t\t// create new xy dataset\n\t\t\n\t\t\ttry {Thread.sleep(1000L);} catch (Exception e) {}\n\t\t\t\n\t\t}\n\t\t\n\t\t \n\t}",
"@Override\n public void run() {\n try {\n while (this.getState() != Thread.State.TERMINATED) {\n IDataModel dataModel = myDataModelController.getCurrentModel();\n\n if ((dataModel != null) && (!dataModel.isModelChecked())) {\n runAllValidations(dataModel);\n }\n Thread.sleep(CYCLE_SLEEP_TIME);\n }\n } catch (InterruptedException e) {\n // state = Thread.State.TERMINATED;\n this.interrupt();\n }\n }",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twhile(!(gst.done&&gpt.done));\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,gst.resultFile);\r\n\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}",
"@Override\n public void runOpMode() throws InterruptedException {\n robot = new OptimizedRobot(gamepad1, gamepad2, telemetry, hardwareMap);\n\n // Grab our controller 1 using robot.getController1()\n\n controller1 = robot.getController1();\n\n // Grab our our encoders using robot.getEncoder() there are TWO of them\n // Use xEncoder and yEncoder for the names!\n\n xEncoder = robot.getEncoder(\"XEncoder\");\n yEncoder = robot.getEncoder(\"YEncoder\");\n\n // Reverse the direction of our left encoder using encoder.setDirection()\n\n xEncoder.setDirection(Encoder.Direction.REVERSE);\n\n\n // Waiting for the play button to be pressed\n waitForStart();\n\n robot.log(\"Instructions\", \"Your job is the move the robot \"+DISTANCE_TO_TRAVEL+\" forward and right for each trial!\");\n\n for(int i = 0; i < NUM_SAMPLES; i++) {\n robot.addLog(\"Prompt\", \"Trial #\"+(i+1)+\" of \"+NUM_SAMPLES);\n robot.addLog(\"Prompt\", \"Set up your robot on its start position and press A to start the tuning!\");\n robot.pushLog();\n\n while(!controller1.getBool(OptimizedController.Key.A)) {\n }\n\n prevX = xEncoder.getCurrentPosition();\n prevY = yEncoder.getCurrentPosition();\n\n robot.addLog(\"Running\", \"Drag your robot forward \"+DISTANCE_TO_TRAVEL+\" inches and \"+DISTANCE_TO_TRAVEL+\" inches to the right!\");\n robot.addLog(\"Running\", \"Try to keep the robot straight the entire time--try using a line on the floor for reference.\");\n robot.addLog(\"Instructions\", \"Press B when you have finished moving the robot!\");\n robot.pushLog();\n\n while(!controller1.getBool(OptimizedController.Key.B)) {\n estimatedX = xEncoder.getCurrentPosition() - prevX;\n estimatedY = yEncoder.getCurrentPosition() - prevY;\n }\n\n xTraveled[i] = estimatedX;\n yTraveled[i] = estimatedY;\n }\n\n\n double xCoefficient = 0;\n double yCoefficient = 0;\n\n for(int num : xTraveled) {\n xCoefficient += (TICKS_PER_REV * (DISTANCE_TO_TRAVEL / (2 * Math.PI * ODOMETRY_WHEEL_RADIUS))) / num;\n }\n\n for(int num : yTraveled) {\n yCoefficient += (TICKS_PER_REV * (DISTANCE_TO_TRAVEL / (2 * Math.PI * ODOMETRY_WHEEL_RADIUS))) / num;\n }\n\n xCoefficient /= NUM_SAMPLES;\n yCoefficient /= NUM_SAMPLES;\n\n robot.addLog(\"xEncoder Coefficient = \", Math.abs(xCoefficient));\n robot.addLog(\"yEncoder Coefficient = \", Math.abs(yCoefficient));\n robot.pushLog();\n\n while(opModeIsActive()) {\n }\n }",
"private void train(NeuralDataSet input) {\n\n\tfinal NeuralDataSet theInput = input;\n\tfinal VirtualLibraryButler that = this;\n\n\ttraining = new Thread() {\n\t public void run() {\n\n\t\torg.encog.util.logging.Logging.setConsoleLevel(Level.OFF);\n\n\t\tfinal Train train = new CompetitiveTraining(brain, 0.7,\n\t\t\ttheInput, new NeighborhoodGaussian(\n\t\t\t\tnew GaussianFunction(0.0, 5.0, 1.5)));\n\t\tStrategy smartLearn = new SmartLearningRate();\n\n\t\tsmartLearn.init(train);\n\t\ttrain.addStrategy(smartLearn);\n\n\t\tint epoch = 0;\n\t\tint errorSize = 250;\n\n\t\tdouble[] lastErrors = new double[errorSize];\n\n\t\t// training loop\n\t\tdo {\n\t\t train.iteration();\n\t\t // System.out.println(\"Epoch #\" + epoch + \" Error:\" +\n\t\t // train.getError()); // + \" MovingAvg:\" + movingAvg);\n\t\t lastErrors[epoch % errorSize] = train.getError();\n\n\t\t double avg = 0;\n\t\t for (int i = 0; (i < epoch) && (i < errorSize); ++i)\n\t\t\tavg = (avg * i + lastErrors[i]) / (i + 1);\n\n\t\t if (Math.abs(avg - train.getError()) < 0.01)\n\t\t\ttrain.setError(0.001);\n\n\t\t epoch++;\n\t\t} while (train.getError() > 0.01);\n\n\t\t// System.out.println(\"training complete.\");\n\n\t\tthat.initialized = true;\n\t }\n\t};\n\n\ttraining.start();\n }",
"public void runBlocking() {\n if (!this.stopAction.isDone()) {\n this.tryPerformBeforeAction();\n this.tryCreateTaskAssignment();\n this.startLoadGeneration();\n }\n this.stopAction.join();\n this.stopLoadGeneration();\n this.stopFinished.complete(null);\n }",
"public void waitForDecision(){\n if(gameOver) {\n return;\n }\n if(!decisionActive) {\n try {\n uiWaiting = true;\n synchronized(uiWait) {\n uiWait.wait();\n }\n } catch (Exception e) { logger.log(\"\"+e); }\n }\n }",
"private void waitFor() {\n if (done) {\n return;\n }\n\n synchronized (waitObj) {\n while (!done) {\n try {\n waitObj.wait();\n } catch (InterruptedException ex) {\n ex.printStackTrace(System.err);\n }\n }\n }\n if (excpetion != null) {\n throw excpetion;\n }\n }",
"protected void execute() {\n \tSmartDashboard.putBoolean(\"Close?\", isClose());\n \tif (isClose()) {\n \t\tRobotMap.DRIVETRAIN_SUBSYSTEM.drive(0.0, MIN_SPEED, 0.0);\n \t}\n }",
"private void trainFeatures() throws Exception\n\t{\n\t\tdbiterator.setDataSource(DBInstanceIterator.DBSource.FEATURE);\n\t\tSystem.out.println(\"Starting reading Feature Trainingset ..\");\n\t\tPipe serialpipe = getFeaturePipe();\n\t\tInstanceList feature_instances = new InstanceList(serialpipe);\n\t\tSystem.out.println(\"Preprocessing on Feature Trainingset ..\");\n\t\tfeature_instances.addThruPipe(dbiterator);\n\t\tSystem.out.println(\"Feature Training set : \" + feature_instances.size());\n\t\tSystem.out.println(\"Saving preprocessed data ..\");\n\t\tsaveinstances(feature_instances, Train + \"F.bin\");\n\t\tSystem.out.println(\"Saving Features data ..\");\n\t\tfeature_instances.getDataAlphabet().dump(new PrintWriter(new File(Attributes + \"feature.dat\")));\n\t\tClassifierTrainer trainer = new NaiveBayesTrainer();\n\t\tSystem.out.println(\"NaiveBayes Starts Training on Feature training set ..\");\n\t\tClassifier classifier = trainer.train(feature_instances);\n\t\tSystem.out.println(\"Targets labels : \\t\"+classifier.getLabelAlphabet());\n\t\tSystem.out.println(\"Saving Naive Bayes Classifier ..\");\n\t\tsaveModel(classifier, Feature_Train);\n\t\tSystem.out.println(\"Feature classifier saved to : \" + Feature_Train);\n\t}",
"public void run() {\n\t\t// Child threads start here to begin testing-- tests are below\n\t\n\t\t// We suggest writing a series of zero-sum tests,\n\t\t// i.e. lists should be empty between tests. \n\t\t// The interimBarr enforces this.\n\t\ttry {\n\t\t\tcontainsOnEmptyListTest();\n\t\t\tinterimBarr.await();\n\t\t\tsentinelsInEmptyListTest();\n\t\t\tprintResBarr.await();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"private void step()\n\t\t{\n\t\tif(currentAlgo!=null && !isRunning())\n\t\t\t{\n\t\t\tthread=new SteppingThread();\n\t\t\tbStartStop.setText(\"Stepping\");\n\t\t\tthread.toStop=true;\n\t\t\tcurrentAlgo.setStopping(false);\n\t\t\tthread.start();\n//\t\t\tcurrentAlgo.setStopping(false);\n//\t\t\tcurrentAlgo.run(this);\n\t\t\t}\n\t\t}",
"private void run() {\n log.log(Level.INFO, \"Starting multiple evaluation of {0} tasks\", tasks.size());\n boolean done = tasks.isEmpty();\n while (!done) {\n boolean hasFreeTasks = true;\n while (hasCapacity() && hasFreeTasks) {\n File task = getFreeTask();\n if (task == null) {\n hasFreeTasks = false;\n } else {\n EvaluatorHandle handle = new EvaluatorHandle();\n if (handle.createEvaluator(task, log, isResume)) {\n log.fine(\"Created new evaluation handler\");\n evaluations.add(handle);\n }\n }\n }\n\n log.log(Level.INFO, \"Tasks in progress: {0}, Unfinished tasks: {1}\", new Object[]{evaluations.size(), tasks.size()});\n try {\n Thread.sleep(5000);\n } catch (InterruptedException ex) {\n //Bla bla\n }\n checkRunningEvaluations();\n done = tasks.isEmpty();\n }\n\n }",
"public void status_wait(UploadHandle h) throws Exception {\n \tStatusHandler sturl = (StatusHandler) h;\n String status = \"NA\";\n Integer time_check = 0;\n while(time_check < sturl.timeout && !status.equals(\"SUCCESS\"))\n {\n HttpResponse response = client.get(new URI(sturl.status_url));\n String statusxml = this.read_http_entity(response.getEntity());\n Document doc = this.db.parse(new ByteArrayInputStream(statusxml.getBytes(\"UTF-8\")));\n XPathExpression status_xpath = this.xPath.compile(\"//step[@id='\"+sturl.step.toString()+\"']/@status\");\n NodeList nodeList = (NodeList)status_xpath.evaluate(doc, XPathConstants.NODESET);\n for(int i=0; i<nodeList.getLength(); i++)\n {\n Node childNode = nodeList.item(i);\n status = childNode.getNodeValue();\n }\n Thread.sleep(1 * 1000);\n time_check++;\n }\n if(time_check == sturl.timeout) { throw new InterruptedException(\"Unable to check for completed upload status.\"); }\n }",
"@Override\n public void execute() {\n // Use squared inputs\n // Might want to change that for competition\n m_driveTrain.arcadeDrive(m_throttle.getAsDouble(), m_turn.getAsDouble(), true);\n }",
"@Override\n public void runOpMode() throws InterruptedException {\n initialize();\n\n waitForStart();\n\n /* drivetrain.Strafe(1F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(1F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(1F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 20, Direction.LEFT); */\n\n sleep(6000);\n\n drivetrain.Strafe(.5F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 30, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 30, Direction.LEFT);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.1f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.3f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.5f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 2f, this);\n\n\n /*drivetrain.Strafe(.75F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.75F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.75F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 20, Direction.LEFT);\n sleep(6000);\n\n drivetrain.Strafe(.5F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.RIGHT);\n sleep(2000);\n\n\n drivetrain.Strafe(.5F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.LEFT);\n sleep(2000); */\n\n drivetrain.StopAll();\n\n\n\n }"
] | [
"0.7579316",
"0.6548509",
"0.63046354",
"0.62851703",
"0.6278908",
"0.62110907",
"0.61443585",
"0.60415155",
"0.5986649",
"0.59763485",
"0.5975602",
"0.59653103",
"0.5950705",
"0.59052217",
"0.58932114",
"0.58684933",
"0.5857912",
"0.58561885",
"0.58125895",
"0.57895494",
"0.5758661",
"0.5754948",
"0.5731878",
"0.5717873",
"0.57162267",
"0.57150555",
"0.5690882",
"0.56879103",
"0.56821567",
"0.56821567",
"0.5675927",
"0.56310874",
"0.5619811",
"0.5612593",
"0.56080115",
"0.55869585",
"0.55809426",
"0.5579739",
"0.55500937",
"0.55409557",
"0.5539839",
"0.551776",
"0.55005574",
"0.5495968",
"0.5484751",
"0.54835474",
"0.54684466",
"0.54556125",
"0.54556125",
"0.545385",
"0.543801",
"0.5434881",
"0.5430768",
"0.543065",
"0.5428904",
"0.5424781",
"0.5415411",
"0.5406136",
"0.5404713",
"0.5404528",
"0.5400688",
"0.5399515",
"0.5398196",
"0.5397428",
"0.5388503",
"0.5383679",
"0.5381708",
"0.5372219",
"0.53714883",
"0.5363932",
"0.53607476",
"0.53573346",
"0.53550524",
"0.53525025",
"0.53466696",
"0.53465676",
"0.5345011",
"0.5342284",
"0.5337609",
"0.5325767",
"0.5325695",
"0.5315226",
"0.5315005",
"0.53077155",
"0.53037584",
"0.5302553",
"0.5283781",
"0.5282638",
"0.5281433",
"0.5278455",
"0.5276707",
"0.52757305",
"0.5274847",
"0.5272791",
"0.5271499",
"0.5269767",
"0.5268674",
"0.52671343",
"0.526652",
"0.526492"
] | 0.68471736 | 1 |
signal to wait for train | public void CondSignal(){
trainCond.signal();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void waitUntilTrainPasses(Train train) {\n\t\tthis.wait = train;\n\t}",
"public void CondWait(){\n try {\r\n trainCond.await();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Area.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public void train ()\t{\t}",
"public synchronized void signalStep() {\n s = true;\n notifyAll();\n }",
"public abstract void onWait();",
"public void signalTheWaiter();",
"public void startTrainingMode() {\n\t\t\r\n\t}",
"@Override\n public void run() {\n transmit_set();\n }",
"public void train() throws Exception;",
"private void stopWait(int ticket) throws CommandException, InterruptedException {\n if (DEBUG) System.err.printf(\"Train: %d\\tWaiting for track %d\\n\", this.id, ticket);\n TSimInterface.getInstance().setSpeed(this.id, 0);\n acc(ticket);\n TSimInterface.getInstance().setSpeed(this.id, speed);\n if (DEBUG) System.err.printf(\"Train: %d\\tGot track %d\\n\", this.id, ticket);\n }",
"protected void end() {\n \tRobot.driveTrain.stop();\n }",
"protected void end() {\n \tRobot.driveTrain.stop();\n }",
"@Override\n protected void end() {\n Robot.driveTrain.stop();\n }",
"private void onTrainActionSelected() {\n\t\tArrayList<Myo> connectedDevices = Hub.getInstance()\n\t\t\t\t.getConnectedDevices();\n\t\tif (connectedDevices.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Get the Myo to train. In this case, we will train the first Myo in\n\t\t// the Hub's\n\t\t// connected devices list.\n\t\tMyo myo = connectedDevices.get(0);\n\n\t\t// Launch the TrainActivity for the specified Myo.\n\t\tIntent intent = new Intent(this, TrainActivity.class);\n\t\tintent.putExtra(TrainActivity.EXTRA_ADDRESS, myo.getMacAddress());\n\t\tstartActivity(intent);\n\t}",
"public void signalFailureStatus() {\n \tthis.signalFailureActive = this.trainModelGUI.signalFailStatus();\n \tif(this.signalFailureActive) {\n \tthis.setGPSAntenna(true);\n \tthis.setMBOAntenna(true);\n \t} else {\n \t\tthis.setGPSAntenna(false);\n \tthis.setMBOAntenna(false);\n \t}\n\n \t\n }",
"protected void end() {\n \tRobot.driveTrain.setPower(0, 0);\n }",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tFeaturesSelectorAndFunctions.bar = new ProgressIndicator();\n\t\t\t\t\n\t\t\t\tMain.messagePane.addNewMessage(\"Training classfier...\\n\");\n//\t\t\t\tnew Thread(new Runnable() {\n//\t\t\t\t\t@Override \n//\t\t\t\t\tpublic void run() {\n//\t\t\t\t\t\tfor (int i=1; i<=100; i++) {\n//\t\t\t\t\t\t\tfinal int counter = i;\n//\t\t\t\t\t\t\tPlatform.runLater(new Runnable() {\n//\t\t\t\t\t\t\t\t@Override \n//\t\t\t\t\t\t\t\tpublic void run() {\n//\t\t\t\t\t\t\t\t\t//bar.setProgress(counter/100.0);\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t});\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}}).start();\n\t\t\t\t\n\t\t\t\tArrayList<ArrayList<Mat>> a = FileManager.readTrainFile(new File(\"/Users/KaioHenrique/workspace/tp_PID/test_files/train.txt\"));\n\t\t\t\tCoach.means = Coach.matToMeans(a);\n\t\t\t\tint i=0;\n\t\t\t\twhile(i<a.size()){\n\t\t\t\t\tMain.messagePane.addNewMessage(\"A media do descritor \"+i + \" e \" + Coach.means[i][0] + \" : \" +Coach.means[i][1] );\n\t\t\t\t\tSystem.out.println(\"A media da class \"+i + \" e \" + Coach.means[i][0] + \" : \" +Coach.means[i][1] );\n\t\t\t\t\ti++;\n\t\t\t\t}\n//\t\t\t\tfindBestParameters();\n\t\t\t}",
"@Override\n\tpublic void run() \n\t{\n\n\t\ttry \n\t\t{\n\t\tif(isDriver) \n\t\t\t{\n\t\t\t\tSystem.out.println(\" waiting for the workers\");\n\t\t\t\tstopSignal.await();\n\t\t\t\tSystem.out.println(\" driver Shutting down.\");\n\t\t\t}\n\t\telse \n\t\t\t{\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tSystem.out.println(\" Caller waiting \");\n\t\t\t\tstartSignal.await();\n\t\t\t\tSystem.out.println(\" Caller counting down \");\n\t\t\t\tstopSignal.countDown();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) \n\t\t{\n\t\t\tSystem.err.println(\"e:\"+e.getMessage());\n\t\t}\n\n\t}",
"public void actionTrain(Train t) {\n\t\t\t t.setVitesseScalaire(vitesse);\n\t\t}",
"static void onSpinWait() {\n }",
"boolean notifyBegin();",
"protected void end() {\n\t\tRobot._driveTrain.setAuton(false);\n\t\tRobot._driveTrain.tankDrive(0, 0);\n\t}",
"@Before\n public void init(){\n mSignal = new CountDownLatch(1);\n }",
"public void runLastTime(){\n\t\t/*try {\n\t\t\tlong timeDiff = 100;\n\t\t\t\n\t\t\tFeatureListController controller = new FeatureListController(timeDiff);\n\t\t\tTestSensorListener listener1 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener1);\n\t\t\tTestSensorListener listener2 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener2);\n\t\t\t\n\t\t\t\n\t\t\t//20 samples in total\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0;i<2;++i){\n\t\t\t\tSensorListener listener;\n\t\t\t\tif(i==0)\n\t\t\t\t\tlistener = listener1;\n\t\t\t\telse \n\t\t\t\t\tlistener = listener2;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"LISTENER\" + (i+1));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Now:\" + new Date().getTime());\n\t\t\t\tList<FeatureList> featureLists = controller.getLastFeatureListsInMilliseconds(listener, -1);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with milliseconds method\");\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with n method\");\n\t\t\t\tList<FeatureList> featureLists2 = controller.getLastNFeatureList(listener, -1);\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last milliseconds \" + 40);\n\t\t\t\tList<FeatureList> featureLists3 = controller.getLastFeatureListsInMilliseconds(listener, 40);\n\t\t\t\tfor(FeatureList l : featureLists3)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last N Feature Lists \" + 6);\n\t\t\t\tList<FeatureList> featureLists4 = controller.getLastNFeatureList(listener, 6);\n\t\t\t\tfor(FeatureList l : featureLists4)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t}\n\t\t\t\n\n\t\t} catch (InterruptedException ex) {\n\t\t\tSystem.out.println(ex.getLocalizedMessage());\n//Logger.getLogger(CaseFeatureListController.class.getName()).log(Level.SEVERE, new double[10], ex);\n\t\t}*/\n\t\t\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult result = mFacePlus.train(groupid_long, TRAIN_TYPE.all );\n\t\t\t\tif(result.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + result.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsessionId = result.data+\"\";\n\t\t\t\t Log.e(TAG,sessionId);\n\t\t\t}",
"@Override\n protected void end() {\n Robot.driveTrain.tankDrive(0, 0);\n }",
"@Override\n public void end(boolean interrupted) {\n drivetrain.set(0, 0);\n }",
"void OnSignalLost();",
"public void train(){\n recoApp.training(idsToTest);\n }",
"public synchronized void signalEvent()\r\n\t{\r\n\t\tnotifyAll();\r\n\t}",
"protected abstract void beforeWait();",
"private void train(NeuralDataSet input) {\n\n\tfinal NeuralDataSet theInput = input;\n\tfinal VirtualLibraryButler that = this;\n\n\ttraining = new Thread() {\n\t public void run() {\n\n\t\torg.encog.util.logging.Logging.setConsoleLevel(Level.OFF);\n\n\t\tfinal Train train = new CompetitiveTraining(brain, 0.7,\n\t\t\ttheInput, new NeighborhoodGaussian(\n\t\t\t\tnew GaussianFunction(0.0, 5.0, 1.5)));\n\t\tStrategy smartLearn = new SmartLearningRate();\n\n\t\tsmartLearn.init(train);\n\t\ttrain.addStrategy(smartLearn);\n\n\t\tint epoch = 0;\n\t\tint errorSize = 250;\n\n\t\tdouble[] lastErrors = new double[errorSize];\n\n\t\t// training loop\n\t\tdo {\n\t\t train.iteration();\n\t\t // System.out.println(\"Epoch #\" + epoch + \" Error:\" +\n\t\t // train.getError()); // + \" MovingAvg:\" + movingAvg);\n\t\t lastErrors[epoch % errorSize] = train.getError();\n\n\t\t double avg = 0;\n\t\t for (int i = 0; (i < epoch) && (i < errorSize); ++i)\n\t\t\tavg = (avg * i + lastErrors[i]) / (i + 1);\n\n\t\t if (Math.abs(avg - train.getError()) < 0.01)\n\t\t\ttrain.setError(0.001);\n\n\t\t epoch++;\n\t\t} while (train.getError() > 0.01);\n\n\t\t// System.out.println(\"training complete.\");\n\n\t\tthat.initialized = true;\n\t }\n\t};\n\n\ttraining.start();\n }",
"protected void execute() {\n \tRobot.driveTrain.keepHeadingDrive(0, 0, targetDirection);\n }",
"public void driveTrainLoop() {\n if (Config.getInstance().getBoolean(Key.ROBOT__HAS_DRIVETRAIN)) {\n // Check User Inputs\n double driveThrottle = mOperatorInterface.getDriveThrottle();\n double driveTurn = mOperatorInterface.getDriveTurn();\n\n boolean WantsAutoAim = mOperatorInterface.getFeederSteer();\n\n // Continue Driving\n if (WantsAutoAim == true) {\n // Harvest Mode - AutoSteer Functionality\n // Used for tracking a ball\n // we may want to limit the speed?\n // RobotTracker.RobotTrackerResult DriveResult =\n // mRobotTracker.GetFeederStationError(Timer.getFPGATimestamp());\n mDriveState = DriveState.AUTO_DRIVE;\n\n VisionPacket vp = mRobotTracker.GetTurretVisionPacket(Timer.getFPGATimestamp());\n // mDrive.autoSteerFeederStation(driveThrottle, vp.Error_Angle);\n } else {\n // Standard Manual Drive\n mDrive.setDrive(driveThrottle, driveTurn, false);\n\n // if we were previously in auto drive.. turn it off\n if (mDriveState == DriveState.AUTO_DRIVE) {\n mDriveState = DriveState.MANUAL;\n }\n }\n }\n }",
"@Override\n public boolean waitToProceed() {\n return false;\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile(true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000*20);\r\n\t\t\t\t\t\tas.generateDiagModel(dataset);\r\n\t\t\t\t\t\tRDFReasoning.output(dataset);\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}",
"protected abstract void afterWait();",
"public void waitForInputSignal(){\r\n\t\ttry {\r\n\t\t\tSystem.in.read();\r\n\t\t\tSystem.in.read();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void TrainDataset(){\n\t\ttry{\n\t\t\t//Testing delegate method\n\t\t\tMessageController.logToConsole(\"Hey, I'm from train button\");\n\t\t\t\n\t\t\t//Pass in the real training dataset\n\t\t\tfindSuitableK(new String[]{\"Hello\", \"World\"});\n\t\t\t\n\t\t\t//Pass in the 'k' and 'query string'\n\t\t\tfindKNN(2, \"anything\");\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tthrow ex;\n\t\t}\n\t\tfinally{\n\t\t\t\n\t\t}\n\t}",
"private void kickControlThread() {\r\n\t\tcontrolSignal.release();\r\n\t}",
"public void animateRailToStation(Train train){\n\t}",
"public static void waitToGo() {\r\n try {\r\n sendMessageToMaster(SocketMessage.SLAVE_READY_TO_GO);\r\n wait_to_run.acquire();\r\n } catch (InterruptedException e) {\r\n }\r\n }",
"void notifyStart();",
"public void drivetrainInitialization()\n\t{\n\t\tleftSRX.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, Constants.kTimeoutMs);\n\t\tleftSRX.setSensorPhase(true);\n\t\tleftSRX.configNominalOutputForward(0, Constants.kTimeoutMs);\n\t\tleftSRX.configNominalOutputReverse(0, Constants.kTimeoutMs);\n\t\tleftSRX.configPeakOutputForward(1, Constants.kTimeoutMs);\n\t\tleftSRX.configPeakOutputReverse(-1, Constants.kTimeoutMs);\n\n\t\t// // Config left side PID Values\n\t\t// leftSRX.selectProfileSlot(Constants.drivePIDIdx, 0);\n\t\t// leftSRX.config_kF(Constants.drivePIDIdx, Constants.lDrivekF, Constants.kTimeoutMs);\n\t\t// leftSRX.config_kP(Constants.drivePIDIdx, Constants.lDrivekP, Constants.kTimeoutMs);\n\t\t// leftSRX.config_kI(Constants.drivePIDIdx, Constants.lDrivekI, Constants.kTimeoutMs);\n\t\t// leftSRX.config_kD(Constants.drivePIDIdx, Constants.lDrivekD, Constants.kTimeoutMs);\n\n\t\t// Config right side PID settings\n\t\trightSRX.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, Constants.drivePIDIdx, Constants.kTimeoutMs);\n\t\trightSRX.setSensorPhase(true);\n\t\trightSRX.configNominalOutputForward(0, Constants.kTimeoutMs);\n\t\trightSRX.configNominalOutputReverse(0, Constants.kTimeoutMs);\n\t\trightSRX.configPeakOutputForward(1, Constants.kTimeoutMs);\n\t\trightSRX.configPeakOutputReverse(-1, Constants.kTimeoutMs);\n\n\t\t// // Config right side PID Values\n\t\t// rightSRX.selectProfileSlot(Constants.drivePIDIdx, 0);\n\t\t// rightSRX.config_kF(Constants.drivePIDIdx, Constants.rDrivekF, Constants.kTimeoutMs);\n\t\t// rightSRX.config_kP(Constants.drivePIDIdx, Constants.rDrivekP, Constants.kTimeoutMs);\n\t\t// rightSRX.config_kI(Constants.drivePIDIdx, Constants.rDrivekI, Constants.kTimeoutMs);\n\t\t// rightSRX.config_kD(Constants.drivePIDIdx, Constants.rDrivekD, Constants.kTimeoutMs);\n\n\t\t// Set up followers\n\t\tleftSPX1.follow(leftSRX);\n\t\tleftSPX2.follow(leftSRX);\n\n\t\trightSPX1.follow(rightSRX);\n\t\trightSPX2.follow(rightSRX);\n\t\t\n\t\trightSRX.setInverted(true);\n\t\trightSPX1.setInverted(true);\n\t\trightSPX2.setInverted(true);\n }",
"protected abstract long waitToTravel();",
"public void stopTrainingMode() {\n\t\t\r\n\t}",
"public void runModel(){\n\t\tcurrentView.getDynamicModelView().getModel().setProgressMonitor(progressMonitor);\r\n\t\tnew Thread(currentView.getDynamicModelView().getModel()).start();\r\n\r\n\t\tsetStatusBarText(\"Ready\");\r\n\t}",
"public void setSelectedTrain(Train train){\n\n this.selectedTrain = train;\n }",
"public final void activate(){\n waitingToExecute = true;\n }",
"public void waitForData() {\n waitForData(1);\n }",
"@Override\n public void robotPeriodic() {\n // m_driveTrain.run(gulce);\n\n\n\n // workingSerialCom.StringConverter(ros_string, 2);\n // RoboticArm.run( workingSerialCom.StringConverter(ros_string, 2));\n }",
"private void nextTraining() {\n\t\tif(!training_queue.isEmpty()) {\n\t\t\tPair<Soldier, Integer> tmp = training_queue.remove();\n\t\t\tif(tmp!=null) {\n\t\t\t\tcurrent = tmp.getKey();\n\t\t\t\tnb_to_train = tmp.getValue();\t\t\n\t\t\t\tnb_rounds = current.getTime_prod();\n\t\t\t}else {\n\t\t\t\tcurrent = null;\n\t\t\t\tnb_to_train = 1;\n\t\t\t\tnb_rounds = 100+50*(owner_castle.getLevel()+1);\n\t\t\t\tupgrade = true;\n\t\t\t}\n\t\t}else\n\t\t\tcurrent = null;\n\t}",
"private void waitForSignal(Object obj, String comment) {\r\n\t\tif (comment != null) log(mName + \": \" + comment);\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tobj.wait();\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n protected void execute() {\n Robot.driveTrain.drive(Robot.oi.joystick);\n }",
"@Override\r\n\tpublic void run() {\n\t\tint preState;\r\n\t\twhile(true){\r\n\t\t\tpreState = this.state;\r\n\t\t\twhile(preState==this.state)\r\n\t\t\t\t;\r\n\t\t\tpreState = this.state;\r\n\t\t\tnotifySensor(this.state);\r\n\t\t}\r\n\t}",
"protected void execute() {\r\n\r\n double tempInches = Robot.driveTrain.getRangeInches();\r\n if(tempInches<0)\r\n {\r\n Robot.driveTrain.stop();\r\n return;\r\n }\r\n\r\n if (tempInches > Preferences.ultraStopDistance) {\r\n if (Preferences.tankDriveMode) {\r\n Robot.driveTrain.tankDrive(Robot.oi.getDriverLeft().getY(), Robot.oi.getDriverRight().getY());\r\n } else {\r\n Robot.driveTrain.arcadeDrive(Robot.oi.getDriverLeft().getY(), Robot.oi.getDriverRight().getX());\r\n }\r\n } else if(complete == false) {\r\n if(Robot.driveTrain.autoTurnToAngle(0)){\r\n complete = true;\r\n Robot.driveTrain.setDirection();\r\n Robot.driveTrain.resetEncoders();\r\n }\r\n }\r\n\r\n if (complete) {\r\n //Robot.driveTrain.autoTurnToAngle(0);\r\n Robot.driveTrain.autoDriveStraight(tempInches - Preferences.ultraStopDistance);\r\n }\r\n\r\n }",
"default void setWaitForStartPoint() {\n\t\t// only relevant for vectors\n\t}",
"@Override\n protected void end() {\n Robot.driveTrain.StopPolarXPID();\n Robot.driveTrain.StopPolarYPID();\n }",
"public void waitingForPartner();",
"private static void record(boolean train) {\n\t\t// IF its training mode then record initial training instances with labels FOR TRAINING\n\t\tif (train) {\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tSystem.out.println(\"Please make hand gesture for **\" + words[j]\n\t\t\t\t\t\t+ \"** now.\");\n\t\t\t\tcountdown();\n\t\t\t\tdataCollector.insertName(words[j], \"N/A\");\n\n\t\t\t\t// Automatic mode\n\t\t\t\tboolean motion = true;\n\t\t\t\tboolean activated = false;\n\t\t\t\tdouble distance = 0.0;\n\t\t\t\tlong timestamp = -1;\n\t\t\t\tlong elapsed_time = 0;\n\t\t\t\tint track = 0;\n\t\t\t\tdouble data[] = null;\n\t\t\t\twhile (motion) {\n\t\t\t\t\thub.run(READING_FREQUENCY);\n\n\t\t\t\t\t// Activate the recording here when detecting initial\n\t\t\t\t\t// motion\n\t\t\t\t\tif (activated == false) {\n\t\t\t\t\t\tdistance = (Data.calcEuclideanDistance(data,\n\t\t\t\t\t\t\t\tdataCollector.getData()));\n\t\t\t\t\t\tif (distance > 3) {\n\t\t\t\t\t\t\ttimestamp = dataCollector.getTimeStamp();\n\t\t\t\t\t\t\tactivated = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdata = dataCollector.getData();\n\t\t\t\t\t}\n\n\t\t\t\t\t// Deactivate the recording here by updating the data\n\t\t\t\t\t// every 1/2 seconds and detecting if motion has been\n\t\t\t\t\t// made or no\n\t\t\t\t\telse {\n\t\t\t\t\t\tdataCollector.saveDataToInstance(words[j], train);\n\t\t\t\t\t\ttrack++;\n\n\t\t\t\t\t\telapsed_time += dataCollector.getTimeStamp()\n\t\t\t\t\t\t\t\t- timestamp;\n\t\t\t\t\t\ttimestamp = dataCollector.getTimeStamp();\n\n\t\t\t\t\t\t// Update the data every 1/2 second\n\t\t\t\t\t\tif (elapsed_time > 200000) {\n\t\t\t\t\t\t\telapsed_time = 0;\n\t\t\t\t\t\t\tdistance = (Data.calcEuclideanDistance(data,dataCollector.getData()));\n\t\t\t\t\t\t\t// System.out.println(distance);\n\t\t\t\t\t\t\tif (distance < 0.5) {\n\t\t\t\t\t\t\t\t// System.out.println(track);\n\t\t\t\t\t\t\t\ttrack = 0;\n\t\t\t\t\t\t\t\tmotion = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdata = dataCollector.getData();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(Arrays.toString(data));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t}\n\t\t}\n\n\t\t// Otherwise just record to Instances without applying labels for TESTING\n\t\telse {\n\t\t\tcountdown();\n//\t\t\t// Automatic mode+\n\t\t\tSystem.out.println(\"Reading Calibrating Data.......\");\n\t\t\tdataCollector.startCalibration(hub, READING_FREQUENCY); // let the user start at idle position, record data and reset data to zero.\n\t\t\tSystem.out.println((\"Calibration Data Reading Completed!\"));\n\t\t\tint columns = 0;\n\t\t\twhile (columns++ < 300) {\n\t\t\t\t// run the event loop for READING_FREQUENCY milliseconds and\n\t\t\t\t// record all values within this time\n\t\t\t\thub.run(READING_FREQUENCY);\n\t\t\t\tdataCollector.saveDataToInstance(null, train);\n\t\t\t\t//dataCollector.saveDataToInstanceDom(null, train);\n\t\t\t}\n\t\t\t\n\t\t}\n//\t\t\tboolean motion = true;\n//\t\t\tboolean activated = false;\n//\t\t\tdouble distance = 0.0;\n//\t\t\tlong timestamp = -1;\n//\t\t\tlong elapsed_time = 0;\n//\t\t\tint track = 0;\n//\t\t\tdouble data[] = null;\n//\t\t\twhile (motion) {\n//\t\t\t\thub.run(READING_FREQUENCY);\n//\t\t\t\t// Activate the recording here when detecting initial motion\n//\t\t\t\tif (activated == false) {\n//\t\t\t\t\tdistance = (Data.calcEuclideanDistance(data,dataCollector.getData()));\n//\t\t\t\t\tif (distance > 3) {\n//\t\t\t\t\t\ttimestamp = dataCollector.getTimeStamp();\n//\t\t\t\t\t\tactivated = true;\n//\t\t\t\t\t}\n//\t\t\t\t\tdata = dataCollector.getData();\n//\t\t\t\t}\n//\n//\t\t\t\t// Deactivate the recording here by updating the data\n//\t\t\t\t// every 1/2 seconds and detecting if motion has been\n//\t\t\t\t// made or no\n//\t\t\t\telse {\n//\t\t\t\t\tdataCollector.saveDataToInstance(null, train);\n////\t\t\t\t\tSystem.out.println(dataCollector.getData());\n//\t\t\t\t\ttrack++;\n//\n//\t\t\t\t\telapsed_time += dataCollector.getTimeStamp() - timestamp;\n//\t\t\t\t\ttimestamp = dataCollector.getTimeStamp();\n//\n//\t\t\t\t\t// Update the data every 1/2 second\n//\t\t\t\t\tif (elapsed_time > 200000) {\n//\t\t\t\t\t\telapsed_time = 0;\n//\t\t\t\t\t\tdistance = (Data.calcEuclideanDistance(data,dataCollector.getData()));\n//\t\t\t\t\t\t// System.out.println(distance);\n//\t\t\t\t\t\tif (distance < 0.5) {\n//\t\t\t\t\t\t\t// System.out.println(track);\n//\t\t\t\t\t\t\ttrack = 0;\n//\t\t\t\t\t\t\tmotion = false;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tdata = dataCollector.getData();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n\t\t}",
"public void handleSimStatusCompleted() {\n }",
"protected void interrupted() {\n \tRobot.driveTrain.stop();\n }",
"public void setStopTrainModel() {\n HwHidataJniAdapter hwHidataJniAdapter = HwHidataJniAdapter.getInstance();\n if (hwHidataJniAdapter != null) {\n hwHidataJniAdapter.nativeSetIsStop(true);\n }\n }",
"public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}",
"public void train(SieveDocuments trainingInfo) {\r\n\t\t// no training\r\n\t}",
"private void step()\n\t\t{\n\t\tif(currentAlgo!=null && !isRunning())\n\t\t\t{\n\t\t\tthread=new SteppingThread();\n\t\t\tbStartStop.setText(\"Stepping\");\n\t\t\tthread.toStop=true;\n\t\t\tcurrentAlgo.setStopping(false);\n\t\t\tthread.start();\n//\t\t\tcurrentAlgo.setStopping(false);\n//\t\t\tcurrentAlgo.run(this);\n\t\t\t}\n\t\t}",
"private void buildWaitScene(){\n\t\t//Nothing to do\n\t}",
"public void kirimNotifikasiPengajuan(Training training){\n\t\t\n\t}",
"public synchronized void nudge() {\n notifyAll();\n }",
"public void run() {\n System.out.println(name + \" , go!!!\" );\n\n //start running\n while (getCheckpoint() != 20){\n //delay running\n int randNumber = (int) Math.round(LetsGO.getRandomNumber()*weight);\n try {\n Thread.sleep(randNumber);\n }\n catch (InterruptedException e){\n System.out.println(name+\"interrupted.\");\n }\n System.out.println(name + \" has passed checkpoint\" + checkpoint);\n checkpoint++;\n }\n //finished running\n System.out.println(name + \"has finished!\");\n }",
"public void on() {\n\t\tSystem.out.println(\"Tuner is on\");\n\n\t}",
"public Status waitUntilFinished();",
"void notifyStop();",
"@Override\n public void initialize() {\n drivetrain.enable();\n }",
"@Override\n protected void execute() {\n Robot.driveTrain.tankDrive(1);\n }",
"@Override\n public void end(boolean interrupted) {\n System.out.println(\"Stopping\");\n driveTrainSubsystem.drive(0.0);\n }",
"@Override\npublic void run() {\n\n while(true){\n \n driveSimulation();\n\n waitSleep(5);\n }\n \n}",
"protected void unqueueTrain(final BackendEngineStatus queued, final ServerTracker server) {\n\n this.logger.logDebugQueueAction(this.logFrom, \"train\", this.serviceIdentity,\n queued.getAiid(), queued.getDevId(), server.getServerIdentifier());\n\n // read the queue status of this ai\n BackendEngineStatus currentStatus = null;\n try {\n currentStatus = this.database.getAiQueueStatus(this.serviceIdentity, queued.getAiid());\n } catch (DatabaseException e) {\n this.logger.logException(this.logFrom, e);\n }\n\n // if there is a status and the AI was not deleted (shouldn't happen)\n if ((currentStatus == null) || (currentStatus.isDeleted())) {\n this.logger.logError(this.logFrom,\n String.format(\"trying to train but bot %s has been deleted\", queued.getAiid().toString()));\n return;\n }\n\n try {\n // carefully set the AI status to indicate that the AI is training and the\n // slot is in use\n // when training actually starts the server will call us back to set status\n this.database.updateAIStatus(this.serviceIdentity, queued.getAiid(),\n TrainingStatus.AI_TRAINING, server.getServerIdentifier(),\n currentStatus.getTrainingProgress(), currentStatus.getTrainingError());\n\n // send the start training command after setting the DB status to avoid status callback coming back\n // before the the API is ready to receive it\n\n // tell the chosen server to start training\n this.queueServicesProvider.get().startTrainingDirect(this.serviceIdentity,\n new AiIdentity(currentStatus.getDevId(), queued.getAiid(),\n this.serviceIdentity.getLanguage(), this.serviceIdentity.getVersion()),\n server.getServerUrl(), server.getServerIdentifier());\n\n } catch (ServerConnector.AiServicesException e) {\n handleTrainTaskFailure(queued, server, e);\n } catch (DatabaseException e) {\n this.logger.logError(this.logFrom, String.format(\"failed to set endpoint in status: %s\", e.toString()));\n }\n }",
"public void kirimNotifikasiPersetujuan(Training training){\n\t\t\n\t}",
"public void animateStationToRail(Train train){\n\t}",
"public void arraiter() {\n \tthis.running = false;\n }",
"public abstract void ready();",
"private void listen() {\n doneSignal.reset();\n mouseListener.startListening();\n\n try { doneSignal.await(); }\n catch (InterruptedException ex) { }\n catch (BrokenBarrierException ex) { }\n\n execute(mouseListener.getLastX(), mouseListener.getLastY());\n }",
"@Override\n public boolean continueWaitState(SceKernelThreadInfo thread, ThreadWaitInfo wait) {\n SceKernelEventFlagInfo event = eventMap.get(wait.EventFlag_id);\n if (event == null) {\n thread.cpuContext._v0 = ERROR_KERNEL_NOT_FOUND_EVENT_FLAG;\n return false;\n }\n\n // Check EventFlag.\n if (checkEventFlag(event, wait.EventFlag_bits, wait.EventFlag_wait, wait.EventFlag_outBits_addr)) {\n event.threadWaitingList.removeWaitingThread(thread);\n thread.cpuContext._v0 = 0;\n return false;\n }\n\n return true;\n }",
"private void acc(int ticket) throws InterruptedException {\n trackStatus[ticket].acquire();\n if (DEBUG) System.err.printf(\"Train: %d\\tAcquired: %d\\n\", this.id, ticket);\n }",
"@Override\n public void handleLearningEvent(LearningEvent le) {\n iterationCounter++;\n if (iterationCounter % 10 == 0) {\n consumerProducer.startProducing();\n }\n }",
"private void awaitT(){\n try {\n game.getBarrier().await(20, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (BrokenBarrierException e) {\n e.printStackTrace();\n } catch (TimeoutException e) {\n trimBarrier();\n synchronized (lock){\n if(!botSignal){\n bot = new BotClient();\n new Thread(bot).start();\n botSignal = true;\n }\n\n }\n }\n }",
"public void doWait() {\n\t\tsynchronized(lockObject){\n\t\t\t//Now even if the notify() is called earlier without a pre-wait() call then it will check the condition\n\t\t\t//and will found \"resumeSignal\" to be true hence, will not enter the waiting state.\n\t\t\tif(!resumeSignal){\n\t\t\t\ttry{\n\t\t\t\t\tlockObject.wait();\n\t\t\t\t} catch(InterruptedException e){}\n\t\t\t}\n\t\t\t//Waiting state is over. So, clear the signal flag and continue running.\n\t\t\tresumeSignal = false;\n\t\t}\n\t}",
"@Override\n public void runOpMode() throws InterruptedException {\n super.runOpMode();\n // LeftServo.setPosition(0.4);\n // RightServo.setPosition(0.5);\n\n waitForStart();\n telemetry.addData(\"Angles\", MyDriveTrain.getAngle());\n telemetry.update();\n telemetry.addData(\"Mikum:\", Mikum);\n telemetry.update();\n LF.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.FLOAT);\n RF.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.FLOAT);\n LB.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.FLOAT);\n RB.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.FLOAT);\n\n MyDriveTrain.encoderDrive(0.8, -30, 30, 30, -30, 1);\n MyDriveTrain.Rotate(0,0.1,10);\n// Mikum = MyVuforiaStone.ConceptVuforiaSkyStoneNavigationWebcam();\n// Mikum = 3;\n LF.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n RF.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n LB.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n RB.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n\n if (Mikum > 2) {\n telemetry.addLine(\"you're on the right\");\n telemetry.update();\n MyDriveTrain.encoderDrive(0.8, -84, 84, 84, -84, 1);\n MyIntake.maxIntake();\n MyDriveTrain.encoderDrive(0.8, -25, -25, -25, -25, 2);\n sleep(500);\n// MyDriveTrain.Verification(cubeIn,cubeNotInMM);\n\n MyIntake.ShutDown();\n MyDriveTrain.encoderDrive(0.8, 45, -45, -45, 45, 1);\n MyDriveTrain.Rotate(0,0.1,10);\n MyDriveTrain.encoderDrive(0.8, 100, 100, 100, 100, 2);\n }\n\n else if (Mikum < -2) {\n telemetry.addLine(\"you're on the left\");\n telemetry.update();\n MyDriveTrain.encoderDrive(0.8, 15, 15, 15, 15, 2);\n MyDriveTrain.encoderDrive(0.8, -86, 86, 86, -86, 1);\n MyIntake.maxIntake();\n MyDriveTrain.encoderDrive(0.8, -25, -25, -25, -25, 2);\n sleep(500);\n// MyDriveTrain.Verification(cubeIn,cubeNotInMM);\n\n MyIntake.ShutDown();\n MyDriveTrain.encoderDrive(0.8, 50, -50, -50, 50, 1);\n MyDriveTrain.Rotate(0,0.1,10);\n MyDriveTrain.encoderDrive(1, 85, 85, 85, 85, 2);\n\n\n\n } else {\n telemetry.addLine(\"You are on the center!\");\n telemetry.update();\n MyDriveTrain.encoderDrive(0.8, 30, 30, 30, 30, 2);\n MyDriveTrain.encoderDrive(0.5, -82, 82, 82, -82, 1);\n MyIntake.maxIntake();\n MyDriveTrain.encoderDrive(0.8, -25, -25, -25, -25, 2);\n sleep(500);\n// MyDriveTrain.Verification(cubeIn,cubeNotInMM);\n\n MyIntake.ShutDown();\n MyDriveTrain.encoderDrive(0.8, 45, -45, -45, 45, 1);\n MyDriveTrain.Rotate(0,0.1,10);\n MyDriveTrain.encoderDrive(1, 80, 80, 80, 80, 2);\n\n }\n\n MyDriveTrain.Rotate(0,0.2,10);\n MyIntake.maxIntake();\n sleep(500);\n MyIntake.ShutDown();\n Output.setPosition(OutputDown);\n MyDriveTrain.encoderDrive(1, 130, 130, 130, 130, 2);\n MyDriveTrain.encoderDrive(0.8, -5, 5, 5, -5, 1);\n\n MyDriveTrain.RotateP(90,1,10,0.0108);\n sleep(500);\n MyDriveTrain.encoderDrive(0.2,29,29,29,29,2);\n MyDriveTrain.Rotate(90,0.1,10);\n LeftServo.setPosition(0.15);\n RightServo.setPosition(0.2);\n MyDriveTrain.encoderDrive(0.1,10,10,10,10,2);\n LeftServo.setPosition(LeftServoDown);\n RightServo.setPosition(RightServoDown);\n sleep(500);\n MyDriveTrain.encoderDrive(1,-90,-90,-90,-90,2);\n MyDriveTrain.Rotate(-0,0.5,10);\n MyDriveTrain.encoderDrive(1,40,40,40,40,2);\n\n MyElevator.ElevateWithEncoder(-450, 0.8, 0.5);\n sleep(500);\n Arm.setPosition(1);\n sleep(1500);\n MyElevator.ElevateWithEncoder(0, 0.3, 0.0035);\n sleep(700);\n Output.setPosition(OutputUp);\n sleep(500);\n MyElevator.ElevateWithEncoder(-500, 0.3, 0.5);\n Arm.setPosition(0.135);\n sleep(1000);\n MyElevator.ElevateWithEncoder(0, 0.5, 0.003);\n\n LeftServo.setPosition(LeftServoUp);\n RightServo.setPosition(RightServoUp);\n MyDriveTrain.Rotate(0,0.4,10);\n MyDriveTrain.encoderDrive(0.3,-30,30,30,-30,2);\n ParkingMot.setPosition(ParkingMotIn);\n sleep(500);\n MyDriveTrain.encoderDrive(0.8, -5, 5, 5, -5, 1);\n MyDriveTrain.encoderDrive(0.5,-43,-43, -43,-43,1);\n }",
"protected void waitUntilCommandFinished() {\n }",
"public void teleopPeriodic() {\n \t//driveTrain.setInputSpeed(xbox.getAxisLeftY(), xbox.getAxisRightY());\n \t\n \tdriveTrain.print();\n \t\n \t// funcao PID\n \tif (xbox.getButtonX()) {\n\t\t\tbotaoapertado = true;\n\t\t} else if (xbox.getButtonY()) {\n\t\t\tbotaoapertado = false;\n\t\t\tdriveTrain.start();\n\t\t\tdriveTrain.setSetPoint(0, 0);\n\t\t}\n \tif (botaoapertado) {\n \t\tdriveTrain.setSetPoint(100, 100);\n\t\t}\n \t\n }",
"public void train() {\n while (!environment.inTerminalState()) {\n\n Action action = policy.chooseAction(environment);\n List<Double> stateAction = environment.getStateAction(action);\n\n double knownReward = environment.immediateReward(action);\n double totalReward = environment.performAction(action);\n double unknownReward = totalReward - knownReward;\n\n // Next state of environment is implicitly passed.\n backup(stateAction, unknownReward);\n }\n }",
"public boolean signalAllWaiters()\n {\n int w=waiting.get();\n if (w>0) return signal(w);\n return false;\n }",
"@Override\n public void end(boolean interrupted) {\n drivetrain.disable();\n }",
"public void landFromLatch() {\n }",
"protected void end() {\n \tSystem.out.println(\"pid Get\" + RobotMap.visionSensor.pidGet());\n\t\tRobotMap.visionSensor.stopProcessing();\n \tRobotMap.VisionDistanceRightPIDController.stop();\n\t\tRobotMap.VisionDistanceLeftPIDController.stop();\n\t\tRobot.driveTrain.setTalonsReversedState(false);\n \tRobot.driveTrain.resetTalonControlMode();\n\t\tSystem.out.println(\"Drived to traget\");\n\t}",
"private synchronized boolean waitResume() {\n return true;\n }",
"void waitingForMyTurn();",
"@Test\n public void waitNotifyTest() throws InterruptedException {\n EventStorage storage=new EventStorage();\n\n // Creates a Producer and a Thread to run it\n Producer producer=new Producer(storage);\n Thread thread1=new Thread(producer);\n\n // Creates a Consumer and a Thread to run it\n Consumer consumer=new Consumer(storage);\n Thread thread2=new Thread(consumer);\n\n // Starts the thread\n thread2.start();\n thread1.start();\n\n\n thread1.join();\n thread2.join();\n\n }"
] | [
"0.77340597",
"0.66363674",
"0.6444308",
"0.61044896",
"0.6047691",
"0.6047426",
"0.5915263",
"0.5854453",
"0.57820904",
"0.5755931",
"0.57447237",
"0.57447237",
"0.571434",
"0.5631679",
"0.5627684",
"0.5600621",
"0.5600084",
"0.5566091",
"0.55660295",
"0.5525304",
"0.5519111",
"0.544825",
"0.5447377",
"0.5445869",
"0.54163206",
"0.5413494",
"0.5412969",
"0.54105306",
"0.54007244",
"0.5400461",
"0.53945994",
"0.53943706",
"0.5394357",
"0.5384252",
"0.5362377",
"0.53602403",
"0.5319209",
"0.5292898",
"0.52910924",
"0.52846336",
"0.5281186",
"0.528092",
"0.5265508",
"0.52642983",
"0.52602977",
"0.5259727",
"0.5257732",
"0.52495205",
"0.5249516",
"0.5249449",
"0.5248294",
"0.5245634",
"0.52442116",
"0.5222758",
"0.52223885",
"0.5213415",
"0.52096957",
"0.5208593",
"0.5183748",
"0.5177157",
"0.5174881",
"0.5174258",
"0.5165817",
"0.5163845",
"0.51558214",
"0.5146902",
"0.5144737",
"0.51444834",
"0.51419175",
"0.5131104",
"0.5130229",
"0.5124077",
"0.512194",
"0.5116209",
"0.51140004",
"0.51129335",
"0.5109807",
"0.5109671",
"0.51074034",
"0.5101847",
"0.51008904",
"0.50963086",
"0.50948155",
"0.50912625",
"0.5088254",
"0.5071169",
"0.5067025",
"0.50565255",
"0.5052325",
"0.50475144",
"0.50463146",
"0.504578",
"0.5042512",
"0.50366527",
"0.50356865",
"0.50314325",
"0.5030187",
"0.50300145",
"0.50277674",
"0.5013419"
] | 0.67625624 | 1 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_register);
DBInit();
initViews();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
toRegister();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
RegisterActivity.this.finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void done(List<TeacherUser> userlist, BmobException e) {
if (username.isEmpty() || password.isEmpty() || passagain.isEmpty() || phonenumber.isEmpty()) {
toast("请将信息填写完整!");
progressDialog.dismiss();
} else if (!passagain.equals(password)) {
progressDialog.dismiss();
toast("两次输入的密码不一致!");
} else if (userlist.size() > 0) {
progressDialog.dismiss();
toast("用户名已存在,请重新输入");
} else {
progressDialog.setMessage("正在注册...");
TeacherUser teacher = new TeacherUser(username, password, phonenumber);
teacher.save(new SaveListener<String>() {
@Override
public void done(String message, BmobException e) {
// TODO Auto-generated method stub
if (e == null) {
progressDialog.dismiss();
toast("注册成功,请登录!");
RegisterActivity.this.finish();
} else {
progressDialog.dismiss();
toast("失败," + e.getMessage());
}
}
});
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void done(String message, BmobException e) {
if (e == null) {
progressDialog.dismiss();
toast("注册成功,请登录!");
RegisterActivity.this.finish();
} else {
progressDialog.dismiss();
toast("失败," + e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Associations (Imposed from DBSTable). In Exasol, Most of objects "derived" from Tables don't have those.. | @Override
public Collection<? extends DBSEntityAssociation> getReferences(@NotNull DBRProgressMonitor monitor) throws DBException {
return Collections.emptyList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void readAssociations() {\n // proxy the collections for lazy loading\n Class c = getClass();\n for (Field f : c.getDeclaredFields()) {\n for (Annotation a : f.getAnnotations()) {\n if (a.annotationType().equals(HasMany.class)) {\n HasManyProxy proxyHandler = new HasManyProxy(this, f, (HasMany) a);\n associationProxies.add(proxyHandler);\n Classes.setFieldValue(this, f.getName(), Proxy.newProxyInstance(List.class.getClassLoader(),\n new Class[]{List.class}, proxyHandler));\n } else if (a.annotationType().equals(HasAndBelongsToMany.class)) {\n // TODO implement\n } else if (a.annotationType().equals(HasOne.class)) {\n // TODO implement\n } else if (a.annotationType().equals(BelongsTo.class)) {\n BelongsTo belongsTo = (BelongsTo) a;\n if (!(f.getGenericType() instanceof Class))\n throw new IllegalAnnotationException(\"@BelongsTo can only be applied to non-generic fields\");\n ActiveRecord ar = (ActiveRecord) Classes.newInstance(f.getGenericType());\n String fk = ActiveRecords.foriegnKey(f.getGenericType());\n if (!belongsTo.foreignKey().equals(\"\")) fk = belongsTo.foreignKey();\n System.out.println(\"foriegn key = \" + fk);\n Object fkValue = Classes.getFieldValue(this, fk);\n if (fkValue != null) {\n ar.read(fkValue);\n Classes.setFieldValue(this, f.getName(), ar);\n }\n }\n }\n }\n }",
"protected CcddJTableHandler getAssociationsTable()\n {\n return assnsTable;\n }",
"Table getReferencedTable();",
"public JoinedTable[] getJoinedTables();",
"public ResultMap<Association> associations();",
"Table getReferences();",
"public interface IEntry extends IRelation {\r\n\r\n String getJoinColumnName();\r\n\r\n\r\n void setJoinColumnName(String joinColumnName);\r\n\r\n\r\n String getJoinAttributeName();\r\n\r\n\r\n void setJoinAttributeName(String joinAttributeName);\r\n\r\n\r\n String getJoinEntityIdentifier();\r\n\r\n\r\n void setJoinEntityIdentifier(String joinEntityIdentifier);\r\n\r\n \r\n Entity getJoinEntity();\r\n}",
"public interface ForeignKey extends Comparable<ForeignKey> {\r\n\r\n\t/**\r\n\t * Return the foreign key's name.\r\n\t */\r\n\tString getName();\r\n\r\n\t/**\r\n\t * Return the foreign key's \"base\" table.\r\n\t */\r\n\tTable getBaseTable();\r\n\r\n\t/**\r\n\t * Return the foreign key's \"referenced\" table.\r\n\t */\r\n\tTable getReferencedTable();\r\n\r\n\t/**\r\n\t * Return the foreign key's column pairs.\r\n\t * @see ColumnPair\r\n\t */\r\n\tIterator<ColumnPair> columnPairs();\r\n\r\n\t/**\r\n\t * Return the foreign key's single column pair. Throw an\r\n\t * IllegalStateException if the foreign key has more than one column pair.\r\n\t */\r\n\tColumnPair columnPair();\r\n\r\n\t/**\r\n\t * Return the size of the foreign key's column pairs.\r\n\t * @see ColumnPair\r\n\t */\r\n\tint columnPairsSize();\r\n\r\n\t/**\r\n\t * Return the foreign key's \"base\" columns.\r\n\t * @see ColumnPair\r\n\t */\r\n\tIterator<Column> baseColumns();\r\n\r\n\t/**\r\n\t * Return the foreign key's \"base\" columns that are not part of\r\n\t * the base table's primary key.\r\n\t * @see ColumnPair\r\n\t */\r\n\tIterator<Column> nonPrimaryKeyBaseColumns();\r\n\r\n\t/**\r\n\t * Return the foreign key's \"referenced\" columns.\r\n\t * @see ColumnPair\r\n\t */\r\n\tIterator<Column> referencedColumns();\r\n\r\n\t/**\r\n\t * Return a Java-appropriate name for a field that holds the entity\r\n\t * mapped to the foreign key's \"referenced\" table.\r\n\t */\r\n\tString getJavaFieldName();\r\n\r\n\t/**\r\n\t * Return whether the foreign key's default Java field name matches the\r\n\t * specified Java identifier, respecting the database's case-sensitivity.\r\n\t */\r\n\tboolean defaultMatchesJavaFieldName(String javaFieldName);\r\n\r\n\t/**\r\n\t * Return whether the foreign key is the default for the specified Java\r\n\t * field name, respecting the database's case-sensitivity.\r\n\t */\r\n\tboolean isDefaultFor(String javaFieldName);\r\n\r\n\t/**\r\n\t * Return whether the foreign key references the primary key of the\r\n\t * \"referenced\" table and that primary key has only a single column.\r\n\t */\r\n\tboolean referencesSingleColumnPrimaryKey();\r\n\r\n\r\n\t/**\r\n\t * Pair up the foreign key's column pairs, matching each \"base\" column with\r\n\t * the appropriate \"referenced\" column.\r\n\t * @see #columnPairs()\r\n\t */\r\n\tinterface ColumnPair extends Comparable<ColumnPair> {\r\n\r\n\t\t/**\r\n\t\t * Return the column pair's \"base\" column.\r\n\t\t */\r\n\t\tColumn baseColumn();\r\n\r\n\t\t/**\r\n\t\t * Return the column pair's \"referenced\" column.\r\n\t\t */\r\n\t\tColumn referencedColumn();\r\n\r\n\t}\r\n\r\n}",
"private void setRelationships(Map<String, StringBuilder> tablesSQLMap, \n\t\t\tTable table) {\n\t\tfor(String tableName : table.getRelationships().keySet()) {\n\t\t\tStringBuilder createStatement = tablesSQLMap.get(tableName);\n\t\t\tint length;\n\t\t\tStringBuilder constraint;\n\t\t\t\n\t\t\tswitch(table.getRelationships().get(tableName)) {\n\t\t\t\tcase MANYTOMANY:\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase ONETOMANY:\n\t\t\t\t\tconstraint = new StringBuilder();\n\t\t\t\t\tconstraint\n\t\t\t\t\t\t.append(\",\\n\\t\"+table.getTableName()+\"_id \")\n\t\t\t\t\t\t.append(ColumnType.INTEGER.getValue())\n\t\t\t\t\t\t.append(\" \"+ColumnConstraint.NOT_NULL.getValue()+\", \\n\\t\");\n\t\t\t\t\t\n\t\t\t\t\tconstraint\n\t\t\t\t\t\t.append(TableConstraint.FOREIGN_KEY.getValue())\n\t\t\t\t\t\t.append(\" (\"+tableName+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.REFERENCES)\n\t\t\t\t\t\t.append(\" \"+table.getTableName()+\"(\"+table.getTableName()+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.DELETE_CASCADE.getValue());\n\t\t\t\t\t\n\t\t\t\t\tlength = createStatement.length();\n\t\t\t\t\tcreateStatement.replace(length-6, length-5, constraint.toString());\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase ONETOONE:\n\t\t\t\t\tconstraint = new StringBuilder();\n\t\t\t\t\tconstraint\n\t\t\t\t\t\t.append(\",\\n\\t\"+table.getTableName()+\"_id \")\n\t\t\t\t\t\t.append(ColumnType.INTEGER.getValue())\n\t\t\t\t\t\t.append(\" \"+ColumnConstraint.NOT_NULL.getValue()+\", \\n\\t\");\n\t\t\t\t\t\n\t\t\t\t\tconstraint.append(TableConstraint.CONSTRAINT.getValue()+\" \")\n\t\t\t\t\t\t.append(\"fk_\"+table.getTableName()+\"_id\"+\" \")\n\t\t\t\t\t\t.append(TableConstraint.FOREIGN_KEY.getValue())\n\t\t\t\t\t\t.append(\" (\"+table.getTableName()+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.REFERENCES)\n\t\t\t\t\t\t.append(\" \"+table.getTableName()+\"(\"+table.getTableName()+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.DELETE_CASCADE.getValue());\n\t\t\t\t\t\n\t\t\t\t\tlength = createStatement.length();\n\t\t\t\t\tcreateStatement.replace(length-6, length-5, constraint.toString());\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public interface Link<T> extends ITable<T>, List<T>, RandomAccess {\r\n /**\r\n * Set number of the linked objects \r\n * @param newSize new number of linked objects (if it is greater than original number, \r\n * than extra elements will be set to null)\r\n */\r\n public void setSize(int newSize);\r\n \r\n /**\r\n * Returns <tt>true</tt> if there are no related object\r\n *\r\n * @return <tt>true</tt> if there are no related object\r\n */\r\n boolean isEmpty();\r\n\r\n /**\r\n * Get related object by index\r\n * @param i index of the object in the relation\r\n * @return referenced object\r\n */\r\n public T get(int i);\r\n\r\n /**\r\n * Get related object by index without loading it.\r\n * Returned object can be used only to get it OID or to compare with other objects using\r\n * <code>equals</code> method\r\n * @param i index of the object in the relation\r\n * @return stub representing referenced object\r\n */\r\n public Object getRaw(int i);\r\n\r\n /**\r\n * Replace i-th element of the relation\r\n * @param i index in the relartion\r\n * @param obj object to be included in the relation \r\n * @return the element previously at the specified position.\r\n */\r\n public T set(int i, T obj);\r\n\r\n /**\r\n * Assign value to i-th element of the relation.\r\n * Unlike Link.set methos this method doesn't return previous value of the element\r\n * and so is faster if previous element value is not needed (it has not to be fetched from the database)\r\n * @param i index in the relartion\r\n * @param obj object to be included in the relation \r\n */\r\n public void setObject(int i, T obj);\r\n\r\n /**\r\n * Remove object with specified index from the relation\r\n * Unlike Link.remove methos this method doesn't return removed element and so is faster \r\n * if it is not needed (it has not to be fetched from the database)\r\n * @param i index in the relartion\r\n */\r\n public void removeObject(int i);\r\n\r\n /**\r\n * Insert new object in the relation\r\n * @param i insert poistion, should be in [0,size()]\r\n * @param obj object inserted in the relation\r\n */\r\n public void insert(int i, T obj);\r\n\r\n /**\r\n * Add all elements of the array to the relation\r\n * @param arr array of obects which should be added to the relation\r\n */\r\n public void addAll(T[] arr);\r\n \r\n /**\r\n * Add specified elements of the array to the relation\r\n * @param arr array of obects which should be added to the relation\r\n * @param from index of the first element in the array to be added to the relation\r\n * @param length number of elements in the array to be added in the relation\r\n */\r\n public void addAll(T[] arr, int from, int length);\r\n\r\n /**\r\n * Add all object members of the other relation to this relation\r\n * @param link another relation\r\n */\r\n public boolean addAll(Link<T> link);\r\n\r\n /**\r\n * Return array with relation members. Members are not loaded and \r\n * size of the array can be greater than actual number of members. \r\n * @return array of object with relation members used in implementation of Link class\r\n */\r\n public Object[] toRawArray(); \r\n\r\n /**\r\n * Get all relation members as array.\r\n * The runtime type of the returned array is that of the specified array. \r\n * If the index fits in the specified array, it is returned therein. \r\n * Otherwise, a new array is allocated with the runtime type of the \r\n * specified array and the size of this index.<p>\r\n *\r\n * If this index fits in the specified array with room to spare\r\n * (i.e., the array has more elements than this index), the element\r\n * in the array immediately following the end of the index is set to\r\n * <tt>null</tt>. This is useful in determining the length of this\r\n * index <i>only</i> if the caller knows that this index does\r\n * not contain any <tt>null</tt> elements.)<p>\r\n * @return array of object with relation members\r\n */\r\n public <T> T[] toArray(T[] arr);\r\n\r\n /**\r\n * Checks if relation contains specified object instance\r\n * @param obj specified object\r\n * @return <code>true</code> if object is present in the collection, <code>false</code> otherwise\r\n */\r\n public boolean containsObject(T obj);\r\n\r\n /**\r\n * Check if i-th element of Link is the same as specified obj\r\n * @param i element index\r\n * @param obj object to compare with\r\n * @return <code>true</code> if i-th element of Link reference the same object as \"obj\"\r\n */\r\n public boolean containsElement(int i, T obj);\r\n\r\n /**\r\n * Get index of the specified object instance in the relation. \r\n * This method use comparison by object identity (instead of equals() method) and\r\n * is significantly faster than List.indexOf() method\r\n * @param obj specified object instance\r\n * @return zero based index of the object or -1 if object is not in the relation\r\n */\r\n public int indexOfObject(Object obj);\r\n\r\n /**\r\n * Get index of the specified object instance in the relation\r\n * This method use comparison by object identity (instead of equals() method) and\r\n * is significantly faster than List.indexOf() method\r\n * @param obj specified object instance\r\n * @return zero based index of the object or -1 if object is not in the relation\r\n */\r\n public int lastIndexOfObject(Object obj);\r\n\r\n /**\r\n * Remove all members from the relation\r\n */\r\n public void clear();\r\n\r\n /**\r\n * Get iterator through link members\r\n * This iterator supports remove() method.\r\n * @return iterator through linked objects\r\n */\r\n public Iterator<T> iterator();\r\n\r\n /**\r\n * Replace all direct references to linked objects with stubs. \r\n * This method is needed tyo avoid memory exhaustion in case when \r\n * there is a large numebr of objectys in databasse, mutually\r\n * refefencing each other (each object can directly or indirectly \r\n * be accessed from other objects).\r\n */\r\n public void unpin();\r\n \r\n /**\r\n * Replace references to elements with direct references.\r\n * It will impove spped of manipulations with links, but it can cause\r\n * recursive loading in memory large number of objects and as a result - memory\r\n * overflow, because garbage collector will not be able to collect them\r\n */\r\n public void pin(); \r\n}",
"public interface RelationInfoDao extends BaseDao<RelationInfoDO> {\n\n HashMap<String,String> getDependents(String tableNames);\n\n List<HashMap<String,String>> getParentTable(String tableNames);\n\n List<HashMap<String,String>> getChlidTable(String s);\n}",
"@Override\n\tpublic String getJoinTable() {\n\t\treturn null;\n\t}",
"static void checkObjects() {\n String[] names = new String[]{\"Person\", \"Address\", \"CreditCard\", \"Pincode\", \"Bank\"};\n EntityManager em = factory.createEntityManager();\n\n System.out.println(\"-----------------------------------\");\n for (String name : names) {\n Query q = em.createQuery(String.format(\"select x from %s x\", name));\n\n List resultList = q.getResultList();\n for (Object x : resultList) {\n System.out.println(x);\n }\n System.out.println(\"-----------------------------------\");\n }\n em.close();\n }",
"public static interface Relation {\n\t\t//some relations are read-only\n\t\tpublic boolean isWriteable();\n\n\t\tpublic String getName();\n\n\t\t/**\n\t\t* Get the model for the relation. This will return a blank tuple, which will show\n\t\t* the ordered list of columns and the type for each. This is basically metadata.\n\t\t*/\n\t\tpublic Tuple getModel();\n\n\t\t/**\n\t\t* Get the number of rows (Tuples) in the relation.\n\t\t*/\n\t\tpublic int getRows();\n\n\t\t//----------------------------\n\t\t//operations on a Relation\n\t\t/**\n\t\t* projection narrows the number of columns in a relation.\n\t\t* This is the part of an sql statement that list the columns, e.g.\n\t\t*\tSELECT firstname,lastname FROM contact.\n\t\t* The contact table has a lot columns that these, but we only need these\n\t\t* two.\n\t\t*/\n\t\tpublic Relation project(Tuple t) throws RelationException;\n\n\t\t/**\n\t\t* Select narrows the number of rows returned.\n\t\t*/\n\t\tpublic Relation select(Condition c) throws RelationException;\n\n\t\t/**\n\t\t* Join this relation with another one based on the condition, and give it a name.\n\t\t* The implementation of this is complicated, because it must also create a dynamic\n\t\t* Tuple\n\t\t*/\n\t\tpublic Relation join(Relation r, Condition c, String name) throws RelationException;\n\t\t//-------------------------------\n\n\t\t/**\n\t\t* A cursor is the equivalent of a ResultSet. There may be different types\n\t\t* of Cursors depending on if this is coming directly from the database\n\t\t* or from a derived relation.\n\t\t*/\n\t\tpublic Cursor getCursor() throws RelationException;\n\n\t\t//-------------------------------\n\t\t//change data in the relation\n\t\t//I had this as part of Transaction, but I guess it belongs here.\n\t\t/**\n\t\t* Insert a Tuple into the relation. This may fail for various reasons\n\t\t* including IO problems, invalid transaction state, or constraint violations.\n\t\t* Or if the relation is read-only\n\t\t*/\n\t\tpublic Key insert(Transaction tx,Tuple t) throws RelationException;\n\n\t\t/**\n\t\t* Get the tuple that you just inserted by the Key\n\t\t*/\n\t\tpublic Tuple get(Key k) throws RelationException;\n\n\t\t/**\n\t\t* Update the relation with changed data in the Tuple.\n\t\t* The old data is stored in the _audit table.\n\t\t*/\n\t\tpublic void update(Transaction tx,Tuple old, Tuple nu) throws RelationException;\n\n\t\t/**\n\t\t* Delete the object. Must provide old state of object before doing so, so it\n\t\t* can be audited.\n\t\t*/\n\t\tpublic void delete(Transaction tx,Tuple old) throws RelationException;\n\n\t}",
"FromTableJoin createFromTableJoin();",
"@Test\n public void testJoinOn_withTwoValidTables() {\n String table1column0 = \"user_id\";\n String table1column1 = \"age\";\n int idValue0 = 0;\n int ageValue0 = 23;\n int idValue1 = 1;\n int ageValue1 = 22;\n int idValue2 = 2;\n int ageValue2 = 18;\n String table2column0 = \"pet_id\";\n String table2column1 = \"owner_id\";\n int pet1_id = 0;\n int pet2_id = 1;\n\n try {\n // Set up ModelExtension Table\n String sql = \"CREATE TABLE ModelExtension (\" +\n table1column0 + \" int, \" +\n table1column1 + \" int)\";\n PreparedStatement pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.execute();\n sql = \"INSERT INTO ModelExtension (\" +\n table1column0 + \", \" +\n table1column1 + \") VALUES (\" +\n idValue0 + \", \" +\n ageValue0 + \"), (\" +\n idValue1 + \", \" +\n ageValue1 + \"), (\" +\n idValue2 + \", \" +\n ageValue2 + \")\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.executeUpdate();\n // Set up Test Table\n sql = \"CREATE TABLE Test (\" +\n table2column0 + \" int, \" +\n table2column1 + \" int)\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.execute();\n sql = \"INSERT INTO Test (\" +\n table2column0 + \", \" +\n table2column1 + \") VALUES (\" +\n pet1_id + \", \" +\n idValue0 + \"), (\" +\n pet2_id + \", \" +\n idValue1 + \")\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n\n List<ModelExtension> models = child.findAll()\n .joinOn(\n new ModelExtensionWithAnnotation(), \n table1column0, \n table2column1)\n .execute(ModelExtension.class);\n\n assertEquals(2, models.size());\n assertEquals(idValue0, models.get(0).get(table1column0));\n assertEquals(ageValue0, models.get(0).get(table1column1));\n assertEquals(pet1_id, models.get(0).get(table2column0));\n assertEquals(idValue0, models.get(0).get(table2column1));\n\n assertEquals(idValue1, models.get(1).get(table1column0));\n assertEquals(ageValue1, models.get(1).get(table1column1));\n assertEquals(pet2_id, models.get(1).get(table2column0));\n assertEquals(idValue1, models.get(1).get(table2column1));\n }",
"public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}",
"private void switchRelations() throws TransactionAbortedException, DbException {\n // IMPLEMENT ME\n }",
"private String addClassAssociations() {\n\n symplifyClassRelationMap();\n\n String result = \"\";\n Set<String> keys = classRelationMap.keySet(); // get all keys\n\n for (String key : keys) {\n\n String[] classes = key.split(\"-\");\n\n if (mapIfInterface.get(classes[0])) result += \"[<interface>;\" + classes[0] + \"]\";\n else result += \"[\" + classes[0] + \"]\";\n\n result += classRelationMap.get(key); // Add connection\n\n if (mapIfInterface.get(classes[1])) result += \"[<interface>;\" + classes[1] + \"]\";\n else result += \"[\" + classes[1] + \"]\";\n\n result += \",\";\n }\n return result;\n }",
"@DISPID(1610940428) //= 0x6005000c. The runtime will prefer the VTID if present\n @VTID(34)\n Relations relations();",
"@SuppressWarnings({\"unchecked\", \"fallthrough\"})\n public static Class<? extends DataObject> modelFromTables(Connection connection, String classname, Action action, String... tablenames) throws Exception {\n\n /*\n SQL generation\n\n INSERT INTO T ( cols ) VALUES ( vals );\n UPDATE T SET cols WHERE vals;\n DELETE FROM T WHERE vals;\n SELECT * FROM cols WHERE vals;\n */\n\n ClassPool pool = ClassPool.getDefault();\n // this line is necessary for web applications (web container class loader in play)\n pool.appendClassPath(new LoaderClassPath(org.xillium.data.DataObject.class.getClassLoader()));\n\n CtClass cc = pool.makeClass(classname);\n cc.addInterface(pool.getCtClass(\"org.xillium.data.DataObject\"));\n ConstPool cp = cc.getClassFile().getConstPool();\n\n List<String> fragments = new ArrayList<String>();\n Set<String> unique = new HashSet<String>();\n\n/*SQL*/ StringBuilder\n cols = new StringBuilder(), // CREATE: COLUMNS, RETRIEVE: TABLES, UPDATE: SET CLAUSES, DELETE: (not used), SEARCH: TABLES\n vals = new StringBuilder(), // CREATE: VALUES, RETRIEVE: COND'S, UPDATE: COND'S, DELETE: COND'S, SEARCH: COND'S\n flds = new StringBuilder();\n\n // for SEARCH only\n Map<String, List<Pair<Integer, Integer>>> voptional = new HashMap<String, List<Pair<Integer, Integer>>>();\n Map<String, List<Pair<Integer, Integer>>> foptional = new HashMap<String, List<Pair<Integer, Integer>>>();\n Map<String, String> nametrans = new HashMap<String, String>();\n\n DatabaseMetaData meta = connection.getMetaData();\n String schema = meta.getUserName();\n List<String> dominant = new ArrayList<String>();\n\n for (int i = 0; i < tablenames.length; ++i) {\n // Dominant tables are recognized and maintained in 'dominant' list\n if (tablenames[i].charAt(0) == DOMINANT_INDICATOR) {\n tablenames[i] = tablenames[i].substring(1);\n dominant.add(tablenames[i]);\n }\n\n PreparedStatement stmt = connection.prepareStatement(\"SELECT * FROM \" + tablenames[i]);\n ResultSetMetaData rsmeta = stmt.getMetaData();\n Map<String, Integer> colref = new HashMap<String, Integer>();\n for (int j = 1, jj = rsmeta.getColumnCount(); j <= jj; ++j) {\n colref.put(rsmeta.getColumnLabel(j), new Integer(j));\n }\n\n Set<String> primaryKeys = new HashSet<String>();\n ResultSet keys = meta.getPrimaryKeys(connection.getCatalog(), schema, tablenames[i]);\n while (keys.next()) {\n primaryKeys.add(keys.getString(PKEY_COLUMN));\n }\n keys.close();\n\n // RETRIEVE is not compatible with tables without a primary key\n if (primaryKeys.isEmpty() && action.op == Operation.RETRIEVE) {\n throw new RuntimeException(\"Primary key expected for RETRIEVE command, but missing on table \" + tablenames[i]);\n }\n\n // ISA keys and table join conditions\n Set<String> isaKeys = new HashSet<String>();\n if (i > 0) {\n keys = meta.getImportedKeys(connection.getCatalog(), schema, tablenames[i]);\n while (keys.next()) {\n String jointable = null;\n for (int j = 0; j < i; ++j) {\n if (keys.getString(FKEY_REFERENCED_TABLE).equals(tablenames[j])) {\n jointable = tablenames[j];\n break;\n }\n }\n if (jointable != null) {\n String column = keys.getString(FKEY_REFERENCING_COLUMN);\n isaKeys.add(column);\n if (action.op == Operation.RETRIEVE || action.op == Operation.SEARCH) {\n /*SQL*/ vals.append(tablenames[i]).append('.').append(column).append('=').append(jointable).append('.').append(column).append(\" AND \");\n }\n }\n }\n keys.close();\n }\n\n String alias = ((action.op == Operation.RETRIEVE || action.op == Operation.SEARCH) && tablenames.length > 1) ? tablenames[i]+'.' : \"\";\n\n if (action.op != Operation.RETRIEVE && action.op != Operation.SEARCH) {\n cols.setLength(0);\n vals.setLength(0);\n flds.setLength(0);\n } else {\n /*SQL*/ if (cols.length() > 0) cols.append(',');\n /*SQL*/ cols.append(tablenames[i]);\n }\n\n // Go through all columns in action.args for UPDATE and SEARCH operations\n Set<String> requested = new HashSet<String>();\n Set<String> required = new HashSet<String>();\n if (action.op == Operation.UPDATE) {\n // UPDATE: the elements in the SET clause => cols\n for (String column: calcUpdateColumns(action.args, colref, primaryKeys)) {\n // skip all key columns, which might be legally included through the restriction list\n if (primaryKeys.contains(column)) continue;\n // ... and SET others\n Integer idx = colref.get(column);\n if (idx != null) {\n /*SQL*/ if (cols.length() > 0) cols.append(',');\n /*SQL*/ String restriction = action.restriction == null ? null : action.restriction.get(column);\n if (restriction == null) {\n boolean reqd = action.isRequired(column);\n if (reqd) {\n /*SQL*/ cols.append(column).append(\"=?\");\n } else {\n /*SQL*/ cols.append(column).append(\"=COALESCE(?,\").append(column).append(')');\n }\n /*SQL*/ if (flds.length() > 0) flds.append(',');\n flds.append(fieldName(tablenames[i], column)).append(':').append(rsmeta.getColumnType(idx.intValue()));\n requested.add(column);\n if (reqd) required.add(column);\n } else {\n /*SQL*/ cols.append(column).append('=').append(restriction);\n }\n }\n }\n } else if (action.op == Operation.SEARCH && action.args != null) {\n // SEARCH: the elements in the WHERE clause => vals\n for (int c = 0; c < action.args.length; ++c) {\n // skip all ISA columns, which might be legally included through the restriction list\n if (isaKeys.contains(action.args[c])) continue;\n // else ...\n Integer idx = colref.get(action.args[c]);\n if (idx != null) {\n /*SQL*/ String restriction = action.restriction == null ? null : action.restriction.get(action.args[c]);\n /*SQL*/ if (restriction == null || restriction.charAt(0) == NEGATIVE_INDICATOR) {\n if (restriction != null) {\n /*SQL*/ vals.append(tablenames[i]).append('.').append(action.args[c]).append(\"<>\").append(restriction.substring(1)).append(\" AND \");\n }\n int vstart = vals.length(), fstart = flds.length();\n /*SQL*/ vals.append(tablenames[i]).append('.').append(action.args[c]).append(action.cmps[c]).append(\"? AND \");\n flds.append(fieldName(tablenames[i], action.args[c])).append(':').append(rsmeta.getColumnType(idx.intValue())).append(',');\n if (!action.reqd[c]) {\n traceOptional(voptional, action.args[c], vstart, vals.length());\n traceOptional(foptional, action.args[c], fstart, flds.length());\n }\n requested.add(action.args[c]);\n if (action.reqd[c]) required.add(action.args[c]);\n } else {\n /*SQL*/ vals.append(tablenames[i]).append('.').append(action.args[c]).append('=').append(restriction).append(\" AND \");\n }\n }\n }\n }\n\n ResultSet columns = meta.getColumns(connection.getCatalog(), schema, tablenames[i], \"%\");\n columns:while (columns.next()) {\n String name = columns.getString(COLUMN_NAME), fname = fieldName(tablenames[i], name);\n int idx = colref.get(name).intValue();\n\n if ((action.op == Operation.RETRIEVE || action.op == Operation.DELETE) && !primaryKeys.contains(name)) {\n continue;\n } else if (action.op == Operation.UPDATE && !requested.contains(name) && !primaryKeys.contains(name)) {\n continue;\n } else if (action.op == Operation.SEARCH && !requested.contains(name)) {\n continue;\n }\n\n /*SQL*/ String restriction = action.restriction == null ? null : action.restriction.get(name);\n switch (action.op) {\n case CREATE:\n if (action.args != null) for (int j = 0; j < action.args.length; ++j) {\n if (action.args[j].equals(name)) continue columns;\n }\n /*SQL*/ if (cols.length() > 0) {\n /*SQL*/ cols.append(',');\n /*SQL*/ vals.append(',');\n /*SQL*/ }\n /*SQL*/ cols.append(name);\n /*SQL*/ if (restriction == null || restriction.charAt(0) == NEGATIVE_INDICATOR) {\n /*SQL*/ vals.append('?');\n /*SQL*/ if (flds.length() > 0) flds.append(',');\n flds.append(fname).append(':').append(rsmeta.getColumnType(idx));\n } else {\n /*SQL*/ vals.append(restriction);\n }\n break;\n case RETRIEVE:\n if (i > 0) {\n // NOTE: ISA relation dictates that sub-tables' primary key == super-table's primary key\n // therefore the join condition generated above is sufficient already\n break;\n }\n // fall through for the super-table\n case DELETE:\n // only primary key columns\n generateCondition(restriction, vals, flds, alias + name, fname, rsmeta.getColumnType(idx));\n break;\n case UPDATE:\n // only primary key & updating columns\n if (primaryKeys.contains(name)) {\n generateCondition(restriction, vals, flds, name, fname, rsmeta.getColumnType(idx));\n }\n break;\n case SEARCH:\n // file optionals lists under field names\n nametrans.put(name, fname);\n voptional.put(fname, voptional.get(name));\n foptional.put(fname, foptional.get(name));\n break;\n }\n\n if ((restriction != null && restriction.charAt(0) != NEGATIVE_INDICATOR) || isaKeys.contains(name)) {\n continue;\n } else if (unique.contains(name)) {\n continue;\n //throw new RuntimeException(\"Duplicate column in ISA relationship detected \" + tablenames[i] + ':' + name);\n } else {\n unique.add(name);\n }\n\n CtField field = new CtField(pool.getCtClass(MetaDataHelper.getClassName(rsmeta, idx)), fname, cc);\n field.setModifiers(java.lang.reflect.Modifier.PUBLIC);\n AnnotationsAttribute attr = new AnnotationsAttribute(cp, AnnotationsAttribute.visibleTag);\n\n if (required.contains(name)) {\n addAnnotation(attr, cp, \"org.xillium.data.validation.required\");\n } else if (columns.getInt(IS_NULLABLE) == DatabaseMetaData.attributeNoNulls) {\n if ((action.op != Operation.UPDATE || primaryKeys.contains(name)) && action.op != Operation.SEARCH) {\n addAnnotation(attr, cp, \"org.xillium.data.validation.required\");\n }\n }\n\n if (rsmeta.getPrecision(idx) != 0) {\n addAnnotation(attr, cp, \"org.xillium.data.validation.size\", \"value\", new IntegerMemberValue(cp, rsmeta.getPrecision(idx)));\n }\n\n addAnnotation(attr, cp, \"org.xillium.data.persistence.crud.tablename\", \"value\", new StringMemberValue(tablenames[i], cp));\n\n field.getFieldInfo().addAttribute(attr);\n cc.addField(field);\n }\n columns.close();\n stmt.close();\n\n switch (action.op) {\n case CREATE:\n fragments.add(\"org.xillium.data.persistence.ParametricStatement\");\n fragments.add(flds.toString());\n fragments.add(\"INSERT INTO \" + tablenames[i] + '(' + cols.toString() + \") VALUES(\" + vals.toString() + ')');\n fragments.add(Strings.toCamelCase(tablenames[i], '_'));\n break;\n case UPDATE:\n if (cols.length() > 0) {\n fragments.add(\"org.xillium.data.persistence.ParametricStatement\");\n fragments.add(flds.toString());\n fragments.add(\"UPDATE \" + tablenames[i] + \" SET \" + cols.toString() + \" WHERE \" + vals.toString().replaceAll(\" AND *$\", \"\"));\n fragments.add(Strings.toCamelCase(tablenames[i], '_'));\n }\n break;\n case DELETE:\n fragments.add(\"org.xillium.data.persistence.ParametricStatement\");\n fragments.add(flds.toString());\n fragments.add(\"DELETE FROM \" + tablenames[i] + \" WHERE \" + vals.toString().replaceAll(\" AND *$\", \"\"));\n fragments.add(Strings.toCamelCase(tablenames[i], '_'));\n break;\n case RETRIEVE:\n case SEARCH:\n break;\n }\n }\n\n if (action.op == Operation.RETRIEVE) {\n fragments.add(\"org.xillium.data.persistence.ParametricQuery\");\n fragments.add(flds.toString());\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols + \" WHERE \" + vals.toString().replaceAll(\" AND *$\", \"\"));\n fragments.add(\"\");\n } else if (action.op == Operation.SEARCH) {\n if (action.opts != null) {\n for (int i = 0; i < action.opts.length; ++i) {\n action.opts[i] = nametrans.get(action.opts[i]);\n }\n int count = 1 << action.opts.length;\n\n String vtext = vals.toString(), ftext = flds.toString();\n for (int i = 0; i < count; ++i) {\n char[] vchars = vtext.toCharArray(), fchars = ftext.toCharArray();\n for (int j = 0; j < action.opts.length; ++j) {\n List<Pair<Integer, Integer>> vlist = voptional.get(action.opts[j]);\n List<Pair<Integer, Integer>> flist = foptional.get(action.opts[j]);\n if (vlist == null || flist == null) {\n throw new RuntimeException(\"Column{\"+action.opts[j]+\"}NotInRelevantTables\");\n }\n if ((i & (1 << j)) == 0) {\n for (Pair<Integer, Integer> part: vlist) Arrays.fill(vchars, part.first, part.second, ' ');\n for (Pair<Integer, Integer> part: flist) Arrays.fill(fchars, part.first, part.second, ' ');\n }\n }\n\n fragments.add(\"org.xillium.data.persistence.ParametricQuery\");\n fragments.add(new String(fchars).replaceAll(\"\\\\s+\", \" \"));\n String vals0 = new String(vchars).replaceAll(\"\\\\s+\", \" \").replaceAll(\" AND *$\", \"\").trim();\n if (vals0.length() > 0) {\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols + \" WHERE \" + vals0);\n } else {\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols);\n }\n fragments.add(\"\");\n }\n } else {\n fragments.add(\"org.xillium.data.persistence.ParametricQuery\");\n fragments.add(flds.toString());\n if (vals.length() > 0) {\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols + \" WHERE \" + vals.toString().replaceAll(\" AND *$\", \"\"));\n } else {\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols);\n }\n fragments.add(\"\");\n }\n }\n\n CtField field = new CtField(pool.getCtClass(\"org.xillium.data.persistence.ParametricStatement[]\"), STATEMENT_FIELD_NAME, cc);\n field.setModifiers(java.lang.reflect.Modifier.PUBLIC | java.lang.reflect.Modifier.STATIC | java.lang.reflect.Modifier.FINAL);\n cc.addField(field, CtField.Initializer.byCallWithParams(\n pool.getCtClass(CrudCommand.class.getName()), \"buildStatements\", fragments.toArray(new String[fragments.size()])\n ));\n\n return (Class<? extends DataObject>)cc.toClass(CrudCommand.class.getClassLoader(), CrudCommand.class.getProtectionDomain());\n }",
"public interface IDiagnosableEntity { }",
"public abstract void queryReferences(CoreEditorTableModel model) throws SQLException;",
"Iterator<Column> referencedColumns();",
"@Transactional(readOnly = true)\n public void associationsAndJoinsExamples() {\n List<Customer> customersWithOrders = getSession().createQuery(\"from Customer as customer inner join customer.orders as ord with ord.shipCountry = 'UK'\").list();\n System.out.println(customersWithOrders.size());\n\n List<Customer> customersWithFetchOrders = getSession().createQuery(\"from Customer as customer inner join fetch customer.orders as ord where ord.shipCountry = 'UK'\").list();\n System.out.println(customersWithOrders.size());\n\n //FETCH keyword - dociąganie obiektów - iloczyn kartezjanski - sa 2 kolekcje\n //List<Customer> customersWithOrderDetails = getSession().createQuery(\"from Customer as customer inner join fetch customer.orders as ord inner join fetch ord.orderDetails as orderDetail\").list();\n //System.out.println(customersWithOrderDetails.size());\n }",
"public interface EntityTable<T extends Entity> extends Set<T>, Serializable {\n\n\t/**\n\t * Get all Entities stored in this table at a specified location. Note that the members of this Collection\n\t * may change over time. This method makes two guarantees: that at the time of being called, all members of\n\t * this Set with the specified Location will be present in the Collection; and that all future members of the\n\t * Collection will also have that Location.\n\t *\n\t * @param loc the Location to find Entities from\n\t * @return a Collection view of the entities with Location loc\n\t */\n\tSet<T> get(Location loc);\n\n\tstatic <T extends Entity> EntityTable<T> unmodifiable(EntityTable<T> et) {\n\t\treturn new UnmodifiableEntityTable<>(et);\n\t}\n\n\t/**\n\t * Basic wrapper class to prevent external modification\n\t */\n\tclass UnmodifiableEntityTable<E extends Entity> implements EntityTable<E> {\n\n\t\tprivate final EntityTable<E> parent;\n\n\t\tpublic UnmodifiableEntityTable(EntityTable<E> parent) {\n\t\t\tthis.parent = parent;\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean add(E e) {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\n\t\t@Override\n\t\tpublic Iterator iterator() {\n\t\t\treturn parent.iterator();\n\t\t}\n\n\t\t@Override\n\t\tpublic int size() {\n\t\t\treturn parent.size();\n\t\t}\n\n\t\t@Override\n\t\tpublic Set<E> get(Location loc) {\n\t\t\tSet<E> out = parent.get(loc);\n\t\t\t//System.out.println(out);\n\t\t\treturn out;\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn parent.isEmpty();\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean contains(Object o) {\n\t\t\treturn parent.contains(o);\n\t\t}\n\n\t\t@Override\n\t\tpublic Object[] toArray() {\n\t\t\treturn parent.toArray();\n\t\t}\n\n\t\t@Override\n\t\tpublic Object[] toArray(Object[] a) {\n\t\t\treturn parent.toArray(a);\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean remove(Object o) {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean containsAll(Collection c) {\n\t\t\treturn parent.containsAll(c);\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean addAll(Collection c) {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean retainAll(Collection c) {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean removeAll(Collection c) {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\n\t\t@Override\n\t\tpublic void clear() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\t}\n}",
"private void indirectAssociations_DeriveIndirectInheritance() {\n try{\n \tList<FamixAssociation> indirectInheritanceAssociations = new ArrayList<FamixAssociation>();\n\t for (FamixAssociation directAssociation : theModel.associations) {\n if (directAssociation.to == null || directAssociation.from == null || directAssociation.to.equals(\"\") || directAssociation.from.equals(\"\")){ \n \tnumberOfNotConnectedWaitingAssociations ++;\n }\n else if (directAssociation instanceof FamixInheritanceDefinition){ \n \t\t\t\tindirectInheritanceAssociations.addAll(indirectAssociations_AddIndirectInheritanceAssociation(directAssociation.from, directAssociation.to, directAssociation.lineNumber));\n\t\t\t\t}\n\t\t\t}\n\t for (FamixAssociation indirectInheritanceAssociation : indirectInheritanceAssociations) {\n\t \taddToModel(indirectInheritanceAssociation);\n\t }\n } catch (Exception e) {\n\t this.logger.debug(new Date().toString() + \" \" + e);\n\t e.printStackTrace();\n }\n }",
"void clearAssociations();",
"private <T extends Model> QuerySet<T> all(Class<T> modelClass) {\n QuerySet<T> querySet = new QuerySet<T>();\n querySet.setEntity((Class<T>) this.entity);\n PreparedStatement statement = null;\n ResultSet resultSet = null;\n OneToOneField oneToOneFieldAnnotation = null;\n ForeignKeyField foreignKeyFieldAnnotation = null;\n ManyToManyField manyToManyFieldAnnotation = null;\n try {\n String sql = \"SELECT * FROM\";\n tableName = TableUtil.getTableName(modelClass);\n sql = String.format(\"%s %s\", sql, tableName);\n if (JediEngine.DEBUG) {\n System.out.println(sql + \";\\n\");\n }\n connect();\n statement = connection.prepareStatement(sql);\n resultSet = statement.executeQuery();\n if (!resultSet.next()) {\n return querySet;\n }\n resultSet.beforeFirst();\n while (resultSet.next()) {\n Object obj = entity.newInstance();\n Field id = jedi.db.models.Model.class.getDeclaredField(\"id\");\n id.setAccessible(true);\n // Oracle returns BigDecimal object.\n if (connection.toString().startsWith(\"oracle\")) {\n id.set(\n obj,\n ((java.math.BigDecimal) resultSet.getObject(id.toString().substring(id.toString().lastIndexOf('.') + 1))).intValue());\n } else {\n // MySQL and PostgreSQL returns a Integer object.\n id.set(obj, resultSet.getObject(id.toString().substring(id.toString().lastIndexOf('.') + 1)));\n }\n List<Field> _fields = JediEngine.getAllFields(this.entity);\n for (Field field : _fields) {\n field.setAccessible(true);\n if (!JediEngine.isJediField(field)) {\n continue;\n }\n if (field.toString().substring(field.toString().lastIndexOf('.') + 1).equals(\"serialVersionUID\")) {\n continue;\n }\n if (field.getName().equalsIgnoreCase(\"objects\")) {\n continue;\n }\n oneToOneFieldAnnotation = field.getAnnotation(OneToOneField.class);\n foreignKeyFieldAnnotation = field.getAnnotation(ForeignKeyField.class);\n manyToManyFieldAnnotation = field.getAnnotation(ManyToManyField.class);\n FetchType fetchType = JediEngine.FETCH_TYPE;\n Manager manager = null;\n if (manyToManyFieldAnnotation != null) {\n fetchType = fetchType.equals(FetchType.NONE) ? manyToManyFieldAnnotation.fetch_type() : fetchType;\n if (fetchType.equals(FetchType.EAGER)) {\n String packageName = this.entity.getPackage().getName();\n String model = manyToManyFieldAnnotation.model().getSimpleName();\n model = Model.class.getSimpleName().equals(model) ? \"\" : model;\n Class superClazz = null;\n Class clazz = null;\n if (model.isEmpty()) {\n ParameterizedType genericType = null;\n if (ParameterizedType.class.isAssignableFrom(field.getGenericType().getClass())) {\n genericType = (ParameterizedType) field.getGenericType();\n superClazz = ((Class) (genericType.getActualTypeArguments()[0])).getSuperclass();\n if (superClazz == Model.class) {\n clazz = (Class) genericType.getActualTypeArguments()[0];\n model = clazz.getSimpleName();\n }\n }\n }\n String references = manyToManyFieldAnnotation.references();\n if (references == null || references.trim().isEmpty()) {\n if (clazz != null) {\n references = TableUtil.getTableName(clazz);\n } else {\n references = TableUtil.getTableName(model);\n }\n }\n String intermediateModelclassName = String.format(\"%s.%s\", packageName, model);\n Class associatedModelClass = Class.forName(intermediateModelclassName);\n manager = new Manager(associatedModelClass);\n QuerySet querySetAssociatedModels = null;\n String intermediateModelName = manyToManyFieldAnnotation.through().getSimpleName();\n intermediateModelName = Model.class.getSimpleName().equals(intermediateModelName) ? \"\" : intermediateModelName;\n if (intermediateModelName != null && !intermediateModelName.trim().isEmpty()) {\n intermediateModelclassName = String.format(\"%s.%s\", packageName, intermediateModelName);\n Class intermediateModelClass = Class.forName(intermediateModelclassName);\n String intermediateTableName = ((Model) intermediateModelClass.newInstance()).getTableName();\n querySetAssociatedModels = manager.raw(\n String.format(\n \"SELECT * FROM %s WHERE id IN (SELECT %s_id FROM %s WHERE %s_id = %d)\",\n TableUtil.getTableName(references),\n TableUtil.getColumnName(model),\n intermediateTableName,\n TableUtil.getColumnName(obj.getClass()),\n ((Model) obj).getId()),\n associatedModelClass);\n } else {\n querySetAssociatedModels = manager.raw(\n String.format(\n \"SELECT * FROM %s WHERE id IN (SELECT %s_id FROM %s_%s WHERE %s_id = %d)\",\n TableUtil.getTableName(references),\n TableUtil.getColumnName(model),\n tableName,\n TableUtil.getTableName(references),\n TableUtil.getColumnName(obj.getClass()),\n ((Model) obj).getId()),\n associatedModelClass);\n }\n field.set(obj, querySetAssociatedModels);\n } else {\n field.set(obj, null);\n }\n } else if (oneToOneFieldAnnotation != null || foreignKeyFieldAnnotation != null) {\n if (oneToOneFieldAnnotation != null) {\n fetchType = fetchType.equals(FetchType.NONE) ? oneToOneFieldAnnotation.fetch_type() : fetchType;\n } else {\n fetchType = fetchType.equals(FetchType.NONE) ? foreignKeyFieldAnnotation.fetch_type() : fetchType;\n }\n if (fetchType.equals(FetchType.EAGER)) {\n // Recovers the attribute class.\n Class associatedModelClass = Class.forName(field.getType().getName());\n manager = new Manager(associatedModelClass);\n String s = String.format(\"%s_id\", TableUtil.getColumnName(field));\n Object o = resultSet.getObject(s);\n Model associatedModel = manager.get(\"id\", o);\n // References a model associated by a foreign key.\n field.set(obj, associatedModel);\n } else {\n field.set(obj, null);\n }\n } else {\n // Sets the fields that aren't Model instances.\n if ((field.getType().getSimpleName().equals(\"int\") || field.getType().getSimpleName().equals(\"Integer\")) &&\n connection.toString().startsWith(\"oracle\")) {\n if (resultSet.getObject(TableUtil.getColumnName(field)) == null) {\n field.set(obj, 0);\n } else {\n String columnName = TableUtil.getColumnName(field);\n BigDecimal bigDecimal = (BigDecimal) resultSet.getObject(columnName);\n field.set(obj, bigDecimal.intValue());\n }\n } else {\n Object columnValue = resultSet.getObject(TableUtil.getColumnName(field));\n columnValue = convertZeroDateToNull(columnValue);\n if (columnValue instanceof java.sql.Date) {\n java.sql.Date date = (java.sql.Date) columnValue;\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(date.getTime());\n calendar.set(Calendar.HOUR_OF_DAY, 0);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.SECOND, 0);\n columnValue = calendar.getTime();\n }\n if (columnValue instanceof java.sql.Time) {\n java.sql.Time time = (java.sql.Time) columnValue;\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(time.getTime());\n calendar.set(Calendar.YEAR, 0);\n calendar.set(Calendar.MONTH, 0);\n calendar.set(Calendar.DAY_OF_MONTH, 0);\n columnValue = calendar.getTime();\n }\n if (columnValue instanceof Timestamp) {\n Timestamp timestamp = (Timestamp) columnValue;\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(timestamp.getTime());\n columnValue = calendar.getTime();\n }\n field.set(obj, columnValue);\n }\n }\n manager = null;\n }\n T model = (T) obj;\n if (model != null) {\n model.setPersisted(true);\n }\n querySet.add(model);\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n close(resultSet, statement, connection);\n }\n return querySet;\n }",
"TypeAssociation getAssocieCommeSujetInstanceObjet();",
"public interface ISQLiteJoinTableCreator {\n\n}",
"private void extend() {\n for (Object o : table) {\n if (o == null)\n return;\n }\n\n TABLE_SIZE *= 2;\n Object[] entries = entrySet();\n this.table = new Object[TABLE_SIZE];\n\n rebuild(entries);\n }",
"Table getBaseTable();",
"public Joins()\n {\n joins = new ArrayList<Join>();\n }",
"public String getReferencedTableName();",
"@Override\n public int hashCode() {\n return _foreignPropertyName.hashCode() + _localDBMeta.hashCode() + _foreignDBMeta.hashCode();\n }",
"Relations getGroupOfRelations();",
"Cascade createCascade();",
"@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }",
"public TableObject()\r\n {\r\n\tsuper(ObjectType.Table);\r\n\tglobal = false;\r\n }",
"Collection<AssociationEnd> getAssociations();",
"private ArrayList<ArrayList<Object>> getJoinedIntermediate(List<Table> tables) {\n\t\tArrayList<ArrayList<Object>> rtn = new ArrayList<ArrayList<Object>>(); \n\n\t\ttry {\n\t\t\tfor(int iterator = 0; iterator < tables.size(); iterator++) {\n\t\t\t\tTable table = tables.get(iterator);\n\t\t\t\tif(rtn.isEmpty()) {\t\t\t\t\t\n\t\t\t\t\tArrayList<Tuple> tuples = (ArrayList<Tuple>) table.getTuples();\n\t\t\t\t\tfor(Tuple tuple : tuples) {\n\t\t\t\t\t\tArrayList<Object> objectTuple = new ArrayList<Object>();\n\t\t\t\t\t\t\n\t\t\t\t\t\tField fields[] = tuple.getClass().getDeclaredFields();\n\t\t\t\t\t\tfor(int i = 0; i < fields.length; i++) {\n\t\t\t\t\t\t\tField field = fields[i];\n\t\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t\tobjectTuple.add(field.get(tuple));\n\t\t\t\t\t\t\tfield.setAccessible(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\trtn.add(objectTuple);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint originalTableSize = rtn.size();\n\t\t\t\t\tArrayList<Tuple> tuples = (ArrayList<Tuple>) table.getTuples();\n\t\t\t\t\t\n\t\t\t\t\t// Copy existing tuples for join\n\t\t\t\t\tfor(int j = 0; j < tuples.size() - 1; j++)\n\t\t\t\t\t\tfor(int i = 0; i < originalTableSize; i++)\n\t\t\t\t\t\t\trtn.add(new ArrayList<Object>(rtn.get(i)));\n\t\t\t\t\t\n\t\t\t\t\t// Join\n\t\t\t\t\tfor(int j = 0; j < tuples.size(); j++) {\n\t\t\t\t\t\tTuple tuple = tuples.get(j);\n\t\t\t\t\t\tField fields[] = tuple.getClass().getDeclaredFields();\n\t\t\t\t\t\tfor(int i = 0; i < fields.length; i++) {\n\t\t\t\t\t\t\tField field = fields[i];\n\t\t\t\t\t\t\tfor(int iter = 0; iter < originalTableSize; iter++) {\n\t\t\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t\t\trtn.get(j * originalTableSize + iter).add(field.get(tuple));\n\t\t\t\t\t\t\t\tfield.setAccessible(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/*catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (MalformedURLException e)\t{\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t\n\t\treturn rtn;\n\t}",
"private void setUpRelations() {\n g[0].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[1]);\n g[2].getAuthorities().add(a[2]);\n\n u[0].getGroups().add(g[0]);\n u[0].getOwnAuthorities().add(a[2]);\n u[1].getGroups().add(g[1]);\n u[1].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[3]);\n u[3].getGroups().add(g[1]);\n u[3].getGroups().add(g[2]);\n merge();\n }",
"boolean isOneToMany();",
"public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }",
"public ResultMap<Association> associations(QName associationTypeQName);",
"public boolean containsRelations();",
"@Test\n\tpublic void testCreateRowRelation() throws SQLException\n\t{\n\t\tnew PowerTool(\"asdf\", 5, 5, \"PowerTooldescription\", true);\n\t\tnew StripNail(\"UPC\", 5, 5, 3.33, 9);\n\t\t\n\t\tnew PowerToolsToStripNailsMapper(1,2);\n\t\t\n\t\tResultSet rs = DatabaseGateway.getTable(\"PowerToolsTOStripNails\");\n\t\tif(rs.next())\n\t\t{\n\t\t\tassertEquals(rs.getInt(\"PowerToolid\"),1);\n\t\t\tassertEquals(rs.getInt(\"StripNailid\"),2);\n\t\t}\n\t}",
"TypeAssociation getAssocieCommeObjetAdresse();",
"private RelationalTable convertTable(org.hibernate.mapping.Table mappedTable) {\n RelationalTable table = new RelationalTable(m_catalogSchema, getTableName(mappedTable));\n\n List<Column> columns = new ArrayList<>();\n List<RelationalIndex> indices = new ArrayList<>();\n\n @SuppressWarnings(\"unchecked\")\n Iterator<org.hibernate.mapping.Column> mappedColumns = mappedTable.getColumnIterator();\n int idx = 1;\n while (mappedColumns.hasNext()) {\n org.hibernate.mapping.Column mappedColumn = mappedColumns.next();\n Column column = convertColumn(mappedColumn, mappedTable, idx++);\n columns.add(column);\n if (mappedColumn.isUnique()) {\n indices.add(getUniqueIndex(table, column));\n }\n }\n\n table.setColumns(columns);\n\n Set<ForeignKey> fkeys = new HashSet<>();\n @SuppressWarnings(\"unchecked\")\n Iterator<org.hibernate.mapping.ForeignKey> mappedKeys = mappedTable.getForeignKeyIterator();\n while (mappedKeys.hasNext()) {\n convertForeignKey(mappedKeys.next(), fkeys);\n }\n\n table.setFks(fkeys);\n\n @SuppressWarnings(\"unchecked\")\n Iterator<Index> mappedIndices = mappedTable.getIndexIterator();\n\n while (mappedIndices.hasNext()) {\n indices.add(convertIndex(mappedIndices.next(), table));\n }\n\n @SuppressWarnings(\"unchecked\")\n Iterator<UniqueKey> mappedUniqueKeys = mappedTable.getUniqueKeyIterator();\n while (mappedUniqueKeys.hasNext()) {\n indices.add(convertIndex(mappedUniqueKeys.next(), table));\n }\n\n if (mappedTable.getPrimaryKey() != null) {\n indices.add(convertIndex(mappedTable.getPrimaryKey(), table));\n List<String> pkColumnNames = new ArrayList<>();\n @SuppressWarnings(\"unchecked\")\n Iterator<org.hibernate.mapping.Column> pkColumns = mappedTable.getPrimaryKey().getColumnIterator();\n while (pkColumns.hasNext()) {\n pkColumnNames.add(getColumnName(pkColumns.next()));\n }\n table.setPkColumns(pkColumnNames);\n }\n\n table.setIndices(indices);\n\n return table;\n }",
"public OntModel convertInstancesToOWL(Connection conn, OntModel ontModel) throws SQLException {\n String sqlStmt = \"SELECT \" + columns.get(0).getName();\r\n for (int i = 1; i < columns.size(); i++) {\r\n sqlStmt += \", \" + columns.get(i).getName();\r\n }\r\n sqlStmt += \" FROM \" + name;\r\n ///XXX ER Disabled limit because some associations doesn't work\r\n ///sqlStmt += \" LIMIT 10\";\r\n \r\n PreparedStatement preparedStmt = conn.prepareStatement(sqlStmt);\r\n ResultSet rs = preparedStmt.executeQuery();\r\n if (rs != null) {\r\n ResultSetMetaData rsmd = rs.getMetaData();\r\n int colsCount = rsmd.getColumnCount();\r\n while (rs.next()) {\r\n // First iteration cycle: Compose instance URI of PK columns values only\r\n // If table does not have primary keys, concatenate values of ALL columns\r\n String instanceUri = RDBNamingUtility.getInstanceURI(database.getName(), name);\r\n for (int i = 1; i <= colsCount; i++) {\r\n if (primaryKeyColumns.size() != 0 \r\n && getPrimaryKeyColumn(rsmd.getColumnName(i)) == null)\r\n continue;\r\n ///XXX ER Replaced colVal to check null values\r\n //String colVal = rs.getString(i).replace(\" \", \"_\");\r\n String colVal = (rs.getString(i) == null) ? \"\" : rs.getString(i).replace(\" \", \"_\");\r\n instanceUri += \"_\" + colVal;\r\n }\r\n // Create instance\r\n Individual ontInst = ontModel.createIndividual(instanceUri, ontModel.getOntClass(RDBNamingUtility.getClassURI(database.getName(), name)));\r\n \r\n // 2. Second iteration cycle: Instantiate datatype properties of each column\r\n for (int i = 1; i <= colsCount; i++) {\r\n String colName = rsmd.getColumnName(i);\r\n ///XXX ER Replace next line\r\n //String colVal = rs.getString(i);\r\n String colVal = (rs.getString(i) == null) ? \"\" : rs.getString(i);\r\n ontInst.addProperty(ontModel.getProperty(RDBNamingUtility.getDTPropURI(database.getName(), colName)), \r\n colVal,\r\n RDBNamingUtility.getXsdDataType(getColumn(colName).getType()));\r\n }\r\n }\r\n rs.close();\r\n }\r\n preparedStmt.close();\r\n \r\n return ontModel;\r\n }",
"private List getMappingTablesInternal() {\n MappingTable primary = getPrimaryMappingTable();\n List tables = new ArrayList();\n\n if (primary != null) {\n MappingReferenceKey[] refKeys = primary.getMappingReferenceKeys();\n int i, count = ((refKeys != null) ? refKeys.length : 0);\n\n tables.add(primary);\n\n for (i = 0; i < count;i++) {\n MappingTable secondaryTable = refKeys[i].getMappingTable();\n\n if (secondaryTable != null)\n tables.add(secondaryTable);\n }\n }\n\n return tables;\n }",
"public ResultMap<Association> associations(Pagination pagination);",
"public interface MerchandiserEntities {\n\n static Entity outletEntity() {\n return new Entity(\n Entities.OUTLET_ENTITY,\n OutletModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletModel.name),\n field(OutletModel.address),\n field(OutletModel.qrCode),\n field(OutletModel.location, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationGps, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationNetwork, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.images, JavaType.ARRAY, hasManyOutletImages())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_TABLE,\n OutletTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletModel.name, OutletTable.name),\n column(OutletModel.address, OutletTable.address),\n column(OutletModel.qrCode, OutletTable.qr_code)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n Entities.locationMapping(OutletModel.location, OutletTable.location_id),\n Entities.locationMapping(OutletModel.locationGps, OutletTable.location_id_gps),\n Entities.locationMapping(OutletModel.locationNetwork, OutletTable.location_id_network),\n outletImagesMapping()\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneLocation() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n Entities.LOCATION_ENTITY\n );\n }\n\n static Relationship hasManyOutletImages() {\n return new Relationship(\n Relationship.Type.ONE_TO_MANY,\n Relationship.Name.HAS_MANY,\n Entities.OUTLET_IMAGE_ENTITY\n );\n }\n\n static VirtualRelationMappingImpl outletImagesMapping() {\n return new VirtualRelationMappingImpl(\n Entities.OUTLET_IMAGE_TABLE,\n Entities.OUTLET_IMAGE_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletModel.images,\n new RelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.YES,\n RelationMappingOptions.CascadeDelete.YES,\n true\n )\n );\n }\n\n static Entity outletImageEntity() {\n return new Entity(\n Entities.OUTLET_IMAGE_ENTITY,\n OutletImageModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletImageModel.title),\n field(OutletImageModel.description),\n field(OutletImageModel.uri),\n field(OutletImageModel.file),\n field(OutletImageModel.fileName),\n field(OutletImageModel.height),\n field(OutletImageModel.width),\n field(OutletImageModel.outlet, JavaType.OBJECT, hasOneOutlet())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_IMAGE_TABLE,\n OutletImageTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletImageModel.title, OutletImageTable.title),\n column(OutletImageModel.description, OutletImageTable.description),\n column(OutletImageModel.uri, OutletImageTable.uri),\n column(OutletImageModel.file, OutletImageTable.file),\n column(OutletImageModel.fileName, OutletImageTable.file_name),\n column(OutletImageModel.height, OutletImageTable.height),\n column(OutletImageModel.width, OutletImageTable.width)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n new DirectRelationMappingImpl(\n OUTLET_TABLE,\n OUTLET_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletImageModel.outlet,\n new DirectRelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.NO,\n RelationMappingOptions.CascadeDelete.NO,\n true,\n DirectRelationMappingOptions.LoadAndDelete.LOAD_AND_DELETE\n )\n )\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneOutlet() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n OUTLET_ENTITY\n );\n }\n\n static Entity locationEntity() {\n return new Entity(\n LOCATION_ENTITY,\n LocationModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n Entities.field(LocationModel.lat),\n Entities.field(LocationModel.lng),\n Entities.field(LocationModel.accuracy)\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n LOCATION_TABLE,\n LocationTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n Entities.column(LocationModel.lat, LocationTable.lat),\n Entities.column(LocationModel.lng, LocationTable.lng),\n Entities.column(LocationModel.accuracy, LocationTable.accuracy)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n Entities.baseRelationMappingsArray()\n )\n );\n }\n}",
"private void addFKsNoReuse() \n\t{\n\t\t\tfor(int i = 1; i < numOfTgtTables; i++) \n\t\t\t{\n\t\t\t\t// add a variable number of foreign keys per table (always the first keySize attributes)\n\t\t\t\t//MN fixed the errors of incorrectly generating foreign key - 24 June 2014\n\t\t\t\t//for (int j = 0; j < keySize; j++)\n\t\t\t\t\t//addFK(i, j, 0, j, false);\n\t\t\t\tString[] fAttr = new String[keySize];\n\t\t\t\tfor(int j=0; j<keySize; j++)\n\t\t\t\t\tfAttr[j] = m.getTargetRels().get(i).getAttrArray(j).getName();\n\t\t\t\t\n\t\t\t\tString[] tAttr = new String[keySize];\n\t\t\t\tfor (int j=0; j<keySize; j++)\n\t\t\t\t\ttAttr[j] = m.getTargetRels().get(0).getAttrArray(j).getName();\n\t\t\t\t\n\t\t\t\taddFK(i, fAttr, 0, tAttr, false);\n\t\t\t}\n\t}",
"public static void addDefaultJoinColumnForCompositePK(IdentifiableClass identifiableClass,\r\n Attribute attribute, Set<String> allFields, List<JoinColumn> joinColumns) {\r\n if (attribute instanceof SingleRelationAttribute) {\r\n SingleRelationAttribute relationAttribute = (SingleRelationAttribute) attribute;\r\n if (!relationAttribute.isOwner()) { //Only Owner will draw edge because in any case uni/bi owner is always exist\r\n return;\r\n }\r\n\r\n //check is it composite key\r\n Entity targetEntity = relationAttribute.getConnectedEntity();\r\n relationAttribute.getJoinColumn().clear();\r\n if (joinColumns == null || joinColumns.isEmpty()) {\r\n //unused snippet\r\n for (Attribute targetAttribute : targetEntity.getAttributes().getPrimaryKeyAttributes()) {\r\n JoinColumn joinColumn = new JoinColumn();\r\n String joinColumnName = (targetEntity.getClazz() + '_' + targetAttribute.getName()).toUpperCase();\r\n joinColumnName = getNext(joinColumnName, nextJoinColumnName -> allFields.contains(nextJoinColumnName));\r\n joinColumn.setName(joinColumnName);\r\n if (targetAttribute instanceof RelationAttribute) {\r\n Entity connectedEntity = ((RelationAttribute) targetAttribute).getConnectedEntity();\r\n if (connectedEntity.getCompositePrimaryKeyType() != null) {\r\n //TODO \r\n } else {\r\n Id id = connectedEntity.getAttributes().getId().get(0);\r\n joinColumn.setReferencedColumnName(targetAttribute.getName() + \"_\" + id.getDefaultColumnName());\r\n }\r\n } else {\r\n joinColumn.setReferencedColumnName(targetAttribute.getName());\r\n }\r\n relationAttribute.getJoinColumn().add(joinColumn);\r\n }\r\n } else {\r\n //called from db exception handeler\r\n relationAttribute.getJoinColumn().addAll(joinColumns);\r\n }\r\n }\r\n }",
"@Override\n\tpublic HashMap<String, String> findTableNameAliases() {\n\t\tHashMap<String,String> s = new HashMap<String,String>();\n\t\t\n\t\tHashMap<String,String> sLeft = leftTable.findTableNameAliases();\n\t\tHashMap<String,String> sRight = rightTable.findTableNameAliases();\n\t\t\n\t\ts.putAll(sLeft);\n\t\ts.putAll(sRight);\n\t\t\n\t\treturn s;\n\t}",
"public void customerJoins(Customer cust);",
"public ResultMap<Association> associations(QName associationTypeQName, Pagination pagination);",
"@Test\n public void testSqlExistsBasedJoin() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED,\n equal(Garage.LOCATION, \"Dublin\")\n )\n );\n\n Map<Car, Set<Garage>> results = new LinkedHashMap<Car, Set<Garage>>();\n for (Car car : cars.retrieve(carsQuery)) {\n Query<Garage> garagesWhichServiceThisCarInDublin\n = and(equal(Garage.BRANDS_SERVICED, car.name), equal(Garage.LOCATION, \"Dublin\"));\n for (Garage garage : garages.retrieve(garagesWhichServiceThisCarInDublin)) {\n Set<Garage> garagesWhichCanServiceThisCar = results.get(car);\n if (garagesWhichCanServiceThisCar == null) {\n garagesWhichCanServiceThisCar = new LinkedHashSet<Garage>();\n results.put(car, garagesWhichCanServiceThisCar);\n }\n garagesWhichCanServiceThisCar.add(garage);\n }\n }\n\n assertEquals(\"join results should contain 2 cars\", 2, results.size());\n Assert.assertTrue(\"join results should contain car1\", results.containsKey(car1));\n Assert.assertTrue(\"join results should contain car4\", results.containsKey(car4));\n\n assertEquals(\"join results for car1\", asSet(garage3, garage4), results.get(car1));\n assertEquals(\"join results for car4\", asSet(garage2), results.get(car4));\n }",
"private void addTables() {\r\n for (SQLTable table : getType().getTables()) {\r\n if (getExpr4Tables().get(table) == null) {\r\n getExpr4Tables().put(table, new HashMap<String,AttributeTypeInterface>());\r\n }\r\n }\r\n\r\n }",
"public abstract void setupReferences() throws SQLException;",
"public void casdastrar(RelatorioDAO obj) throws SQLException {\n\t\t\n\t}",
"public void testassociate_AssociationException2()\r\n throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"insert into address_relation (creation_user,modification_user,\"\r\n + \"creation_date,modification_date,address_id,address_type_id,entity_id) values ('u','u',current,current,\"\r\n + address.getId() + \",1,2) \");\r\n try {\r\n this.dao.associate(address, 3, false);\r\n fail(\"AssociationException expected\");\r\n } catch (AssociationException e) {\r\n //good\r\n this.executeUpdate(\"delete from address_relation\");\r\n this.executeUpdate(\"delete from address\");\r\n }\r\n }",
"@Test\r\n\tvoid join() {\r\n\t\tQuery query = entityManager.createQuery(\"Select c,s from Course c JOIN c.students s\");\r\n\t\tList<Object[]> resultList = query.getResultList();\r\n\t\tlog.info(\"Result Size -> {}\", resultList.size());\r\n\t\tfor (Object[] result : resultList) {\r\n\t\t\tlog.info(\"Course -> {}\", result[0]);\r\n\t\t\tlog.info(\"Student -> {}\", result[1]);\r\n\t\t}\r\n\t}",
"@Optional\n Association<GebaeudeArtStaBuComposite> gebaeudeArtStaBu();",
"public interface Useful_LinksDAO {\n public void addUseful_Links(Useful_Links useful_links) throws SQLException;\n public void updateUseful_Links(Useful_Links useful_links) throws SQLException;\n public void deleteUseful_Links(Useful_Links useful_links) throws SQLException;\n}",
"List<ObjectTableColumn<E>> getObjectColumnMap();",
"public interface PartOfRelation\r\n{\r\n\r\n\t/**\r\n\t * Sets author\r\n\t * \r\n\t * @param author\r\n\t */\r\n\tvoid setAuthor(String author);\r\n\r\n\r\n\t/**\r\n\t * @return Author\r\n\t */\r\n\tString getAuthor();\r\n\r\n\t/**\r\n\t * Sets class type, one typical value is '300'\r\n\t * \r\n\t * @param classType\r\n\t */\r\n\tvoid setClassType(String classType);\r\n\r\n\t/**\r\n\t * @return class type\r\n\t */\r\n\tString getClassType();\r\n\r\n\t/**\r\n\t * Sets object key, for material items this is the product ID.\r\n\t * \r\n\t * @param objectKey\r\n\t */\r\n\tvoid setObjectKey(String objectKey);\r\n\r\n\t/**\r\n\t * @return Object key.\r\n\t */\r\n\tString getObjectKey();\r\n\r\n\t/**\r\n\t * Sets object type, product or an abstract product representative\r\n\t * \r\n\t * @param objectType\r\n\t */\r\n\tvoid setObjectType(String objectType);\r\n\r\n\t/**\r\n\t * @return Object type\r\n\t */\r\n\tString getObjectType();\r\n\r\n\t/**\r\n\t * Sets position in the BOM\r\n\t * \r\n\t * @param posNr\r\n\t */\r\n\tvoid setPosNr(String posNr);\r\n\r\n\t/**\r\n\t * @return Position number\r\n\t */\r\n\tString getPosNr();\r\n\r\n\t/**\r\n\t * Sets parent instance ID\r\n\t * \r\n\t * @param parentInstId\r\n\t */\r\n\tvoid setParentInstId(String parentInstId);\r\n\r\n\t/**\r\n\t * @return Parent instance ID\r\n\t */\r\n\tString getParentInstId();\r\n\r\n\t/**\r\n\t * Sets child instance ID\r\n\t * \r\n\t * @param instId\r\n\t */\r\n\tvoid setInstId(String instId);\r\n\r\n\t/**\r\n\t * @return Child instance ID\r\n\t */\r\n\tString getInstId();\r\n}",
"ArrayList<E> getAllObjects() throws DatabaseNotAccessibleException;",
"@Query(\"select classe from Classe classe join fetch classe.ecole\")\n public Iterable<Classe> findAll();",
"void processInheritanceAssociations() {\n\t\tFamixAssociation foundInheritance;\n\t\tHashSet<String> foundInheritanceList;\n\t\tHashSet<String> alreadyIncludedInheritanceList;\n\t\tinheritanceAssociationsPerClass = new HashMap<String, HashSet<String>>();\n\t\ttry{\n\t\t\tIterator<FamixAssociation> iterator = theModel.waitingAssociations.iterator();\n\t for (Iterator<FamixAssociation> i=iterator ; i.hasNext();) {\n\t \tboolean inheritanceAssociation = false;\n\t \tboolean fromExists = false;\n \tboolean toExists = false;\n \tboolean toHasValue = false;\n\t \tFamixAssociation association = (FamixAssociation) i.next();\n\t\t String uniqueNameFrom = association.from;\n\n \t/* Test helper\n \tif (association.from.startsWith(\"Limaki.Actions.Command\")){\n \t\tboolean breakpoint = true;\n \t} */\n\n\t\t if (association instanceof FamixInheritanceDefinition){\n\t\t \tinheritanceAssociation = true;\n\t\t }\n \tif (inheritanceAssociation) {\n\t\t\t if (theModel.classes.containsKey(uniqueNameFrom)) {\n\t\t\t \tfromExists = true;\n\t\t\t }\n \t}\n \tif (inheritanceAssociation && fromExists) {\n\t\t\t if ((association.to != null) && (!association.to.equals(\"\"))) {\n\t\t\t \ttoHasValue = true;\n\t\t\t\t if (theModel.classes.containsKey(association.to) || theModel.classes.containsKey(\"xLibraries.\" + association.to)) {\n\t\t\t\t \ttoExists = true;\n\t\t\t\t }\n\t\t\t }\n \t}\n\t\t // If association.to is not a unique name of an existing type, try to replace it by the complete unique name.\n\t \t// Determine the type of association.to, first based on imports, and second based on package contents.\n\t \tif (inheritanceAssociation && fromExists && !toExists && toHasValue) {\n String to = findClassInImports(association.from, association.to);\n if (!to.equals(\"\")) {\n association.to = to;\n }\n else {\n\t \tString belongsToPackage = theModel.classes.get(association.from).belongsToPackage;\n\t to = findClassInPackage(association.to, belongsToPackage);\n\t if (!to.equals(\"\")) { // So, in case association.to shares the same package as association.from \n\t association.to = to;\n\t }\n }\n \t\t if (theModel.classes.containsKey(association.to) || theModel.classes.containsKey(\"xLibraries.\" + association.to)) {\n \t\t \ttoExists = true;\n \t\t }\n \t}\n\t \tif (inheritanceAssociation && fromExists && toExists && !theModel.associations.contains(association)) {\n\t\t \t// Add the inheritance association to the FamixModel, but only if to and from are equal. \n\t \tif (!association.from.equals(association.to)) { \n\t \t\taddToModel(association);\n\t \t}\n\n\t \t// Fill the HashMap inheritanceAccociationsPerClass with inheritance dependencies to super classes or interfaces \n\t \talreadyIncludedInheritanceList = null;\n\t \tfoundInheritance = null;\n\t \tfoundInheritanceList = null;\n\t \talreadyIncludedInheritanceList = null;\n\t \tfoundInheritance = association;\n\t \tif(inheritanceAssociationsPerClass.containsKey(uniqueNameFrom)){\n\t \t\talreadyIncludedInheritanceList = inheritanceAssociationsPerClass.get(uniqueNameFrom);\n\t \t\tif (!alreadyIncludedInheritanceList.contains(association.to)) {\n\t \t\t\talreadyIncludedInheritanceList.add(foundInheritance.to);\n\t \t\t}\n\t \t\tinheritanceAssociationsPerClass.put(uniqueNameFrom, alreadyIncludedInheritanceList);\n\t \t}\n\t \telse{\n\t\t \tfoundInheritanceList = new HashSet<String>();\n\t\t \tfoundInheritanceList.add(foundInheritance.to);\n\t\t \tinheritanceAssociationsPerClass.put(uniqueNameFrom, foundInheritanceList);\n\t \t}\n\t \t\n\t \t// Remove from waitingAssociations afterwards, to enhance the performance. \t\n\t\t\t i.remove();\n\t \t}\n\t }\n\t\t} catch(Exception e) {\n\t this.logger.debug(new Date().toString() + \"Exception may result in incomplete dependency list. Exception: \" + e);\n\t //e.printStackTrace();\n\t\t}\n\t\tindirectAssociations_DeriveIndirectInheritance();\n this.logger.info(new Date().toString() + \" Finished: processInheritanceAssociations()\");\n }",
"Object getTables();",
"public Table getEntitiesTable(){\n\t\treturn m_entities;\n\t}",
"@Test\n public void testSqlExistsWithForeignRestriction() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED,\n equal(Garage.LOCATION, \"Dublin\")\n )\n );\n\n Set<Car> results = asSet(cars.retrieve(carsQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain car1\", results.contains(car1));\n assertTrue(\"results should contain car4\", results.contains(car4));\n }",
"public interface DistrictSanteDao extends ImogBeanDao<DistrictSante> {\n\n\t/* relation dependencies */\n\n}",
"public interface CollectionField extends RelationField {\n\n}",
"public static interface RelationalDatabase {\n\t\t//get the version of this code, currently 2.0\n\t\tpublic float getVersion();\n\n\t\t/**\n\t\t* Get the version of the underlying SQLite library.\n\t\t*/\n\t\tpublic int getLibVersionNumber();\n\n\t\tpublic String getDatabaseFileName();\n\n\t\t/**\n\t\t/* get a list of all relations in the database\n\t\t/* these may be either Tables or Views\n\t\t*/\n\t\tpublic String[] listRelations();\n\n\t\t/**\n\t\t* Get a relation, which may be either a Table or View.\n\t\t* Does not require a username because no changes are made to the data.\n\t\t* It seems like this might be holding all the data in a given table,\n\t\t* but it is not. This is just a pointer to the information, so it will be lightweight.\n\t\t*/\n\t\tpublic Relation getRelation(String relationName);\n\n\t\t/**\n\t\t* The RelationManager is used to Create or Drop relations, and to create indexes.\n\t\t* This should also be able to store relations that were created dynamically\n\t\t*/\n\t\tpublic RelationManager getRelationManager();\n\n\t\t/**\n\t\t* A Transaction is needed to make any changes to the database.\n\t\t* The transaction type is optional. If it is omitted (null) then it will be\n\t\t* set to \"USER\"\n\t\t*/\n\t\tpublic Transaction createTransaction(Credentials user, TransactionType tt) throws RelationException;\n\t}",
"@Generated(\n value = {\n \"http://www.jooq.org\",\n \"jOOQ version:3.10.8\"\n },\n comments = \"This class is generated by jOOQ\"\n)\n@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IMRelation extends Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.KEY</code>. 「key」- 关系定义的主键\n */\n public IMRelation setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.KEY</code>. 「key」- 关系定义的主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.TYPE</code>. 「type」- 关系类型 - 来自(字典)\n */\n public IMRelation setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.TYPE</code>. 「type」- 关系类型 - 来自(字典)\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPSTREAM</code>. 「upstream」- 当前关系是 upstream,表示上级\n */\n public IMRelation setUpstream(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPSTREAM</code>. 「upstream」- 当前关系是 upstream,表示上级\n */\n public String getUpstream();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.DOWNSTREAM</code>. 「downstream」- 当前关系是 downstream,表示下级\n */\n public IMRelation setDownstream(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.DOWNSTREAM</code>. 「downstream」- 当前关系是 downstream,表示下级\n */\n public String getDownstream();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.COMMENTS</code>. 「comments」- 关系定义的描述信息\n */\n public IMRelation setComments(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.COMMENTS</code>. 「comments」- 关系定义的描述信息\n */\n public String getComments();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.SIGMA</code>. 「sigma」- 统一标识\n */\n public IMRelation setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.SIGMA</code>. 「sigma」- 统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IMRelation setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.ACTIVE</code>. 「active」- 是否启用\n */\n public IMRelation setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.METADATA</code>. 「metadata」- 附加配置数据\n */\n public IMRelation setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.METADATA</code>. 「metadata」- 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.CREATED_AT</code>. 「createdAt」- 创建时间\n */\n public IMRelation setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.CREATED_AT</code>. 「createdAt」- 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.CREATED_BY</code>. 「createdBy」- 创建人\n */\n public IMRelation setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.CREATED_BY</code>. 「createdBy」- 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPDATED_AT</code>. 「updatedAt」- 更新时间\n */\n public IMRelation setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPDATED_AT</code>. 「updatedAt」- 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPDATED_BY</code>. 「updatedBy」- 更新人\n */\n public IMRelation setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPDATED_BY</code>. 「updatedBy」- 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common interface IMRelation\n */\n public void from(cn.vertxup.atom.domain.tables.interfaces.IMRelation from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common interface IMRelation\n */\n public <E extends cn.vertxup.atom.domain.tables.interfaces.IMRelation> E into(E into);\n\n default IMRelation fromJson(io.vertx.core.json.JsonObject json) {\n setKey(json.getString(\"KEY\"));\n setType(json.getString(\"TYPE\"));\n setUpstream(json.getString(\"UPSTREAM\"));\n setDownstream(json.getString(\"DOWNSTREAM\"));\n setComments(json.getString(\"COMMENTS\"));\n setSigma(json.getString(\"SIGMA\"));\n setLanguage(json.getString(\"LANGUAGE\"));\n setActive(json.getBoolean(\"ACTIVE\"));\n setMetadata(json.getString(\"METADATA\"));\n // Omitting unrecognized type java.time.LocalDateTime for column CREATED_AT!\n setCreatedBy(json.getString(\"CREATED_BY\"));\n // Omitting unrecognized type java.time.LocalDateTime for column UPDATED_AT!\n setUpdatedBy(json.getString(\"UPDATED_BY\"));\n return this;\n }\n\n\n default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"UPSTREAM\",getUpstream());\n json.put(\"DOWNSTREAM\",getDownstream());\n json.put(\"COMMENTS\",getComments());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n // Omitting unrecognized type java.time.LocalDateTime for column CREATED_AT!\n json.put(\"CREATED_BY\",getCreatedBy());\n // Omitting unrecognized type java.time.LocalDateTime for column UPDATED_AT!\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"public void addAssociation(String mPackage, Class type, RefObject a, RefObject b) throws CreationException {\n\t\t\n\t\ttrace.addTrace(TraceType.CREATION, \"Create Association of type \" + type.getSimpleName() + \" in target model.\");\n\t\t\n\t\tRefPackage pkg = loadBasePackage(mPackage);\n\t\tCollection<RefAssociation> assos = pkg.refAllAssociations();\n\t\tfor(RefAssociation ass:assos) {\n\t\t\t/* \n\t\t\t * The return type of java.lang.Class.getInterfaces()\n\t\t\t * has changed in Java 1.6.\n\t\t\t * To compile this file using Java 1.6 or later, change the\n\t\t\t * generic of the List 'interfaces' from List<Class> to\n\t\t\t * List<Class<?>>. \n\t\t\t */\n\t\t\tList<Class> interfaces = Arrays.asList(ass.getClass().getInterfaces());\n\t\t\tif(interfaces.contains(type)) {\n\t\t\t\tMethod add = null;\n\t\t\t\tMethod[] methods = ass.getClass().getMethods();\n\t\t\t\tfor(Method m : methods) {\n\t\t\t\t\tif (m.getName().equals(\"add\")) {\n\t\t\t\t\t\tadd = m;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (add == null) {\n\t\t\t\t\tthrow new CreationException(ADD_METHOD_NOT_FOUND + type.getSimpleName());\n\t\t\t\t}\n\t\t\t\n\t\t\t\tObject[] parameters = {a,b};\n\t\t\t\ttry {\n\t\t\t\t\tadd.invoke(ass, parameters);\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\t\n\t\n\t\t\n\t\t}",
"public interface HasRelation {\r\n\r\n\tpublic boolean addRelation(Relation relation);\r\n\tpublic boolean removeRelation(Relation relation);\r\n\tpublic List<Relation> getRelations();\r\n}",
"public void associate (String accID, Integer logicalDBKey, int mgiTypeKey,\n int objectKey)\n throws MGIException\n {\n Integer probeKey = new Integer(objectKey);\n\n logger.logdDebug(\"Make Association: \"+accID+\",\"+logicalDBKey+\",\"+\n objectKey+\",\"+mgiTypeKey,false);\n\n Vector vParts = AccessionLib.splitAccID(accID);\n\n // Create an state object for the ACC_Accession table and set its\n // attributes.\n //\n ACC_AccessionState accState = new ACC_AccessionState();\n accState.setAccID(accID);\n accState.setPrefixPart((String)vParts.get(0));\n accState.setNumericPart((Integer)vParts.get(1));\n accState.setLogicalDBKey(logicalDBKey);\n accState.setMGITypeKey(new Integer(mgiTypeKey));\n accState.setObjectKey(probeKey);\n accState.setPrivateVal(isPrivateAccID);\n accState.setPreferred(new Boolean(true));\n\n // Create a DAO for the state object and pass it to the stream.\n //\n ACC_AccessionDAO accDAO = new ACC_AccessionDAO(accState);\n loadStream.insert(accDAO);\n\n // Create an state object for the ACC_AccessionReference table and set\n // its attributes.\n //\n ACC_AccessionReferenceState accRefState =\n new ACC_AccessionReferenceState();\n accRefState.setAccessionKey(accDAO.getKey().getKey());\n accRefState.setRefsKey(refsKey);\n\n // Create a DAO for the state object and pass it to the stream.\n //\n ACC_AccessionReferenceDAO accRefDAO =\n new ACC_AccessionReferenceDAO(accRefState);\n loadStream.insert(accRefDAO);\n\n // Special processing for probe associations ONLY.\n //\n if (mgiTypeKey == 3 && madeProbeRef == false)\n {\n // Determine if the probe is already associated with the reference.\n //\n if (probeRefLookup.lookup(probeKey) == null)\n {\n // Create an state object for the PRB_Reference table and set\n // its attributes.\n //\n PRB_ReferenceState probeRefState = new PRB_ReferenceState();\n probeRefState.setProbeKey(probeKey);\n probeRefState.setRefsKey(refsKey);\n probeRefState.setHasrmap(new Boolean(false));\n probeRefState.setHassequence(new Boolean(false));\n\n // Create a DAO for the state object and pass it to the stream.\n //\n PRB_ReferenceDAO probeRefDAO = new PRB_ReferenceDAO(probeRefState);\n loadStream.insert(probeRefDAO);\n\n // Add the probe key to the lookup cache, so another bcp record\n // will not be created for it in the future.\n //\n probeRefLookup.addToCache(probeKey);\n }\n\n // The probe reference has been made.\n //\n madeProbeRef = true;\n }\n }",
"public interface RelatedObjs<O extends Observation & CentroidFactory<O>>\n{\n\tpublic ObservationReader<O> observationReader();\n\tpublic ObservationWriter<O> observationWriter();\n\tpublic OpdfFactory<? extends Opdf<O>> opdfFactory();\n\tpublic OpdfReader<? extends Opdf<O>> opdfReader();\n\tpublic OpdfWriter<? extends Opdf<O>> opdfWriter();\n\tpublic List<List<O>> readSequences(Reader reader)\n\tthrows FileFormatException, IOException;\n\tpublic MarkovGenerator<O> generator(Hmm<O> hmm);\n}",
"@Override\npublic boolean equals(Object tbl) {\n Table table;\n\n try {\n table = (Table) tbl;\n } catch (Exception e) {\n return false;\n }\n\n if (getNumRows() != table.getNumRows()) {\n return false;\n }\n\n if (getNumColumns() != table.getNumColumns()) {\n return false;\n }\n\n for (int i = 0; i < getNumRows(); i++) {\n\n for (int j = 0; j < getNumColumns(); j++) {\n\n if (!getObject(i, j).equals(table.getObject(i, j))) {\n return false;\n }\n }\n }\n\n return true;\n\n }",
"protected abstract String getEntityExistanceSQL(E entity);",
"public interface ObjectTableModel<E> {\n\n /**\n * Returns the DefaultListModel which the ObjectTable is tied to. The ObjectTable is registered\n * as a listener of this object, so when it is updated, the table is synchronised.\n */\n DefaultListModel<E> getListModel();\n\n /**\n * Returns the default object to be created when an ObjectTable adds a new row to the listModel.\n * This can subsequently be edited within the table.\n */\n E createDefaultElement();\n\n /**\n * This tells the table how to map its columns to the underlying object's attributes. It is\n * expected to return a list of these mappings. The table will initially display the columns in\n * this order.\n *\n * @see se.uog.table.ObjectTableColumn\n */\n List<ObjectTableColumn<E>> getObjectColumnMap();\n}",
"public ResultMap<Association> associations(Direction direction, Pagination pagination);",
"public void testGetAllAddresses_AssociationException() throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"insert into address_relation (creation_user,modification_user,\"\r\n + \"creation_date,modification_date,address_id,address_type_id,entity_id) values ('u','u',current,current,\"\r\n + address.getId() + \",1,2) \");\r\n try {\r\n this.dao.getAllAddresses();\r\n fail(\"AssociationException expected\");\r\n } catch (AssociationException e) {\r\n //good\r\n this.executeUpdate(\"delete from address_relation\");\r\n this.executeUpdate(\"delete from address\");\r\n }\r\n }",
"public Object caseEClassesRelation(EClassesRelation object) {\n\t\treturn null;\n\t}",
"public List<? extends IFlexoOntologyFeatureAssociation<TA>> getBehaviouralFeatureAssociations();",
"private void readEntityRelationships() {\n List<DeployBeanPropertyAssocOne<?>> primaryKeyJoinCheck = new ArrayList<>();\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n checkMappedBy(info, primaryKeyJoinCheck);\n }\n for (DeployBeanPropertyAssocOne<?> prop : primaryKeyJoinCheck) {\n checkUniDirectionalPrimaryKeyJoin(prop);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n secondaryPropsJoins(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n setInheritanceInfo(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n if (!info.isEmbedded()) {\n registerDescriptor(info);\n }\n }\n }",
"public String toString() {\n\t\treturn \"JoinTableSpec(\"+leftTable.toString()+\" INNER JOIN \"+rightTable.toString()\n\t\t\t\t+\" ON \"+leftCell.toString()+\" = \"+rightCell.toString()+\")\";\n\t}",
"public void delRelations();",
"public void process (MGIAssociation assoc)\n throws MGIException\n {\n int i, j;\n\n // Flag that indicates that no associations should be made because a\n // discrepancy error was found.\n //\n boolean skipAssociation = false;\n\n // No probe reference association has been made yet.\n //\n madeProbeRef = false;\n\n // Attributes of a target accession ID/logical DB pair.\n //\n String targetAccID = null;\n int targetLogicalDBKey = 0;\n int targetMGITypeKey = 0;\n int targetObjectKey = 0;\n int targetSameType = 0;\n int targetDiffType = 0;\n String targetMsg = null;\n\n // Get the type of object that the target accession ID/logical DB should\n // be associated with.\n //\n String expTargetMGIType = assoc.getTargetType();\n int expTargetMGITypeKey = assoc.getTargetTypeKey();\n\n // Get arrays containing the attributes of the MGIAssociation object.\n //\n String[] accIDs = assoc.getAccIDs();\n Integer[] logicalDBKeys = assoc.getLogicalDBKeys();\n Boolean[] targets = assoc.getTargets();\n Integer[] mgiTypeKeys = assoc.getMGITypeKeys();\n Integer[] objectKeys = assoc.getObjectKeys();\n\n // Create arrays containing the accession IDs and corresponding\n // logical DBs for each distinct non-target accession ID/logicalDB from\n // the MGIAssociation object.\n //\n int idx1, idx2;\n String pair = null;\n Vector vAccIDs = new Vector();\n Vector vLogicalDBKeys = new Vector();\n Vector vPair = new Vector();\n\n for (i=0; i<accIDs.length; i++)\n {\n if (targets[i].booleanValue() == true)\n continue;\n\n // If the accession ID/logical DB pair is not already in the vectors,\n // add them.\n //\n pair = accIDs[i] + \",\" + logicalDBKeys[i].intValue();\n if (vPair.indexOf(pair) < 0)\n {\n vAccIDs.add(accIDs[i]);\n vLogicalDBKeys.add(logicalDBKeys[i]);\n vPair.add(pair);\n }\n }\n\n // Create arrays from the vectors.\n //\n String[] distinctAccIDs = (String[])vAccIDs.toArray(STRING_ARRAY);\n Integer[] distinctLogicalDBKeys =\n (Integer[])vLogicalDBKeys.toArray(INTEGER_ARRAY);\n\n // Initialize arrays that are used to determine how to handle each\n // distinct accession ID/logical DB pair.\n //\n int[] sameTypeCount = new int[distinctAccIDs.length];\n int[] diffTypeCount = new int[distinctAccIDs.length];\n int[] sameObjCount = new int[distinctAccIDs.length];\n int[] action = new int[distinctAccIDs.length];\n String[] msg = new String[distinctAccIDs.length];\n\n for (i=0; i<distinctAccIDs.length; i++)\n {\n sameTypeCount[i] = 0;\n diffTypeCount[i] = 0;\n sameObjCount[i] = 0;\n action[i] = 0;\n msg[i] = null;\n }\n\n // Check each target accession ID/logical DB to determine what type of\n // object they are associated with in MGI. Count how many associations\n // there are to objects that have the same/different type as the\n // expected target type.\n //\n for (i=0; i<accIDs.length; i++)\n {\n if (targets[i].booleanValue() == true)\n {\n // Save the target accession ID/logical DB for future use.\n //\n targetAccID = accIDs[i];\n targetLogicalDBKey = logicalDBKeys[i].intValue();\n\n // Skip this accession ID/logical DB if it does not exist in MGI.\n //\n if (mgiTypeKeys[i] == null)\n continue;\n\n // Save the target type and object for future use.\n //\n targetMGITypeKey = mgiTypeKeys[i].intValue();\n targetObjectKey = objectKeys[i].intValue();\n\n // Count whether it is the same or different than the expected\n // target type.\n //\n if (targetMGITypeKey == expTargetMGITypeKey)\n targetSameType++;\n else\n targetDiffType++;\n }\n }\n\n // If the target accession ID is not associated with one object of the\n // target type or it is associated with an object of some other type,\n // report an error and do not process any of the accession IDs for the\n // current MGIAssociation object.\n //\n if (targetSameType == 0 && targetDiffType == 0)\n targetMsg = AssociationLoadConstants.TARGET_DISCREP_A;\n else if (targetSameType == 0 && targetDiffType == 1)\n targetMsg = AssociationLoadConstants.TARGET_DISCREP_B;\n else if (targetSameType == 0 && targetDiffType > 1)\n targetMsg = AssociationLoadConstants.TARGET_DISCREP_C;\n else if (targetSameType == 1 && targetDiffType == 1)\n targetMsg = AssociationLoadConstants.TARGET_DISCREP_D;\n else if (targetSameType == 1 && targetDiffType > 1)\n targetMsg = AssociationLoadConstants.TARGET_DISCREP_E;\n else if (targetSameType > 1 && targetDiffType == 0)\n targetMsg = AssociationLoadConstants.TARGET_DISCREP_F;\n else if (targetSameType > 1 && targetDiffType == 1)\n targetMsg = AssociationLoadConstants.TARGET_DISCREP_G;\n else if (targetSameType > 1 && targetDiffType > 1)\n targetMsg = AssociationLoadConstants.TARGET_DISCREP_H;\n\n // If there is a discrepancy with the target accession ID/logical DB,\n // report each discrepancy and do not process this MGIAssociation object\n // any further.\n //\n if (targetMsg != null)\n {\n for (i=0; i<accIDs.length; i++)\n {\n // Skip this accession ID/logical DB if it is not the target.\n //\n if (targets[i].booleanValue() == false)\n continue;\n\n assocRpt.reportTargetDiscrepancy(accIDs[i], logicalDBKeys[i],\n objectKeys[i], mgiTypeKeys[i],\n expTargetMGIType, targetMsg);\n reportCount++;\n }\n\n // Increment the skip count by the number of accession IDs that\n // were supposed to be associated.\n //\n skipCount += distinctAccIDs.length;\n\n return;\n }\n\n // Check each distinct accession ID/logical DB to see how many\n // associations they have with MGI objects and what type of objects\n // they are. This is called the \"current pair\".\n //\n for (i=0; i<distinctAccIDs.length; i++)\n {\n // Check each accession ID/logical DB pair in the MGIAssociation\n // object for ones that are the same as the current pair.\n //\n for (j=0; j<accIDs.length; j++)\n {\n // Skip this accession ID/logical DB if it is not the same as\n // the current pair.\n //\n if ((! accIDs[j].equals(distinctAccIDs[i])) ||\n logicalDBKeys[j].intValue() != distinctLogicalDBKeys[i].intValue())\n continue;\n\n // Skip this accession ID/logical DB if it does not exist in MGI.\n //\n if (mgiTypeKeys[j] == null)\n continue;\n\n // Count whether the accession ID/logical DB is associated with\n // an object that has the same or different object type as the\n // target accession ID/logical DB.\n //\n if (mgiTypeKeys[j].intValue() == targetMGITypeKey)\n {\n sameTypeCount[i]++;\n if (objectKeys[j].intValue() == targetObjectKey)\n sameObjCount[i]++;\n }\n else\n diffTypeCount[i]++;\n }\n logger.logdDebug(\"Counts: \"+sameTypeCount[i]+\" \"+\n diffTypeCount[i]+\" \"+\n sameObjCount[i]+\" \"+\n distinctAccIDs[i]+\" \"+\n distinctLogicalDBKeys[i].intValue(),false);\n }\n\n // Determine the action for each non-target accession ID/logical DB pair\n // based on the counts.\n //\n for (i=0; i<distinctAccIDs.length; i++)\n {\n // Determine the action for a logical DB that is allowed to have\n // only one association.\n //\n if (singleDB.indexOf(distinctLogicalDBKeys[i]) >= 0)\n {\n if (sameTypeCount[i] == 0 && diffTypeCount[i] == 0)\n {\n action[i] = AssociationLoadConstants.ACTION_ASSOCIATE;\n }\n else if (sameTypeCount[i] == 0 && diffTypeCount[i] == 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_A;\n }\n else if (sameTypeCount[i] == 0 && diffTypeCount[i] > 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_B;\n }\n else if (sameTypeCount[i] == 1 && sameObjCount[i] == 1 &&\n diffTypeCount[i] == 0)\n {\n action[i] = AssociationLoadConstants.ACTION_SKIP;\n }\n else if (sameTypeCount[i] == 1 && sameObjCount[i] == 1 &&\n diffTypeCount[i] == 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_C;\n }\n else if (sameTypeCount[i] == 1 && sameObjCount[i] == 1 &&\n diffTypeCount[i] > 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_D;\n }\n else if (sameTypeCount[i] == 1 && sameObjCount[i] == 0 &&\n diffTypeCount[i] == 0)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_E;\n }\n else if (sameTypeCount[i] == 1 && sameObjCount[i] == 0 &&\n diffTypeCount[i] == 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_F;\n }\n else if (sameTypeCount[i] == 1 && sameObjCount[i] == 0 &&\n diffTypeCount[i] > 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_G;\n }\n else if (sameTypeCount[i] > 1 && sameObjCount[i] == 1 &&\n diffTypeCount[i] == 0)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_H;\n }\n else if (sameTypeCount[i] > 1 && sameObjCount[i] == 1 &&\n diffTypeCount[i] == 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_I;\n }\n else if (sameTypeCount[i] > 1 && sameObjCount[i] == 1 &&\n diffTypeCount[i] > 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_J;\n }\n else if (sameTypeCount[i] > 1 && sameObjCount[i] == 0 &&\n diffTypeCount[i] == 0)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_K;\n }\n else if (sameTypeCount[i] > 1 && sameObjCount[i] == 0 &&\n diffTypeCount[i] == 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_L;\n }\n else if (sameTypeCount[i] > 1 && sameObjCount[i] == 0 &&\n diffTypeCount[i] > 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_M;\n }\n }\n\n // Determine the action for a logical DB that is allowed to have\n // multiple associations.\n //\n else if (multipleDB.indexOf(distinctLogicalDBKeys[i]) >= 0)\n {\n if (sameTypeCount[i] == 0)\n {\n action[i] = AssociationLoadConstants.ACTION_ASSOCIATE;\n }\n else if (sameTypeCount[i] == 1 && sameObjCount[i] == 1)\n {\n action[i] = AssociationLoadConstants.ACTION_SKIP;\n }\n else if (sameTypeCount[i] == 1 && sameObjCount[i] == 0 &&\n diffTypeCount[i] == 0)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_ASSOCIATE;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_E;\n }\n else if (sameTypeCount[i] == 1 && sameObjCount[i] == 0 &&\n diffTypeCount[i] == 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_ASSOCIATE;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_F;\n }\n else if (sameTypeCount[i] == 1 && sameObjCount[i] == 0 &&\n diffTypeCount[i] > 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_ASSOCIATE;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_G;\n }\n else if (sameTypeCount[i] > 1 && sameObjCount[i] == 1 &&\n diffTypeCount[i] == 0)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_H;\n }\n else if (sameTypeCount[i] > 1 && sameObjCount[i] == 1 &&\n diffTypeCount[i] == 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_I;\n }\n else if (sameTypeCount[i] > 1 && sameObjCount[i] == 1 &&\n diffTypeCount[i] > 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_SKIP;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_J;\n }\n else if (sameTypeCount[i] > 1 && sameObjCount[i] == 0 &&\n diffTypeCount[i] == 0)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_ASSOCIATE;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_K;\n }\n else if (sameTypeCount[i] > 1 && sameObjCount[i] == 0 &&\n diffTypeCount[i] == 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_ASSOCIATE;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_L;\n }\n else if (sameTypeCount[i] > 1 && sameObjCount[i] == 0 &&\n diffTypeCount[i] > 1)\n {\n action[i] = AssociationLoadConstants.ACTION_REPORT_ASSOCIATE;\n msg[i] = AssociationLoadConstants.ASSOC_DISCREP_M;\n }\n }\n\n // Throw an exception if the logical DB if not defined in either\n // of the lists.\n //\n else\n {\n throw new MGIException(\"Logical DB (\" +\n distinctLogicalDBKeys[i] + \") must be \" +\n \"configured to allow either single or \" +\n \"multiple associations.\");\n }\n\n // If a \"Report and Skip\" discrepancy is found, do not allow any\n // associations to be made.\n //\n if (action[i] == AssociationLoadConstants.ACTION_REPORT_SKIP)\n skipAssociation = true;\n }\n\n // Use the action established for each distinct accession ID/logical DB\n // to see if it should be skipped, reported and/or associated.\n //\n for (i=0; i<distinctAccIDs.length; i++)\n {\n // Action: Do nothing (association already exists).\n //\n if (action[i] == AssociationLoadConstants.ACTION_SKIP)\n {\n logger.logdDebug(\"Exists: \"+distinctAccIDs[i]+\",\"+\n distinctLogicalDBKeys[i].intValue(),false);\n existCount++;\n continue;\n }\n\n // Action: Report a discrepancy.\n //\n if (action[i] == AssociationLoadConstants.ACTION_REPORT_SKIP ||\n action[i] == AssociationLoadConstants.ACTION_REPORT_ASSOCIATE)\n {\n for (j=0; j<accIDs.length; j++)\n {\n // Skip this accession ID/logical DB if it is not the same as\n // the current pair.\n //\n if ((!accIDs[j].equals(distinctAccIDs[i])) ||\n logicalDBKeys[j].intValue() !=\n distinctLogicalDBKeys[i].intValue())\n continue;\n\n assocRpt.reportAssocDiscrepancy(targetAccID, targetLogicalDBKey,\n targetObjectKey, expTargetMGITypeKey,\n accIDs[j], logicalDBKeys[j],\n objectKeys[j], mgiTypeKeys[j],\n msg[i]);\n reportCount++;\n }\n }\n\n // Action: Make the association.\n //\n if (action[i] == AssociationLoadConstants.ACTION_ASSOCIATE ||\n action[i] == AssociationLoadConstants.ACTION_REPORT_ASSOCIATE)\n {\n // If any of the accession ID/logical DB pairs could not be\n // associated because of an error condition, do not make\n // the association.\n //\n if (skipAssociation)\n continue;\n\n associate(distinctAccIDs[i],distinctLogicalDBKeys[i],\n targetMGITypeKey, targetObjectKey);\n assocCount++;\n }\n }\n\n // If any of the accession ID/logical DB pairs could not be associated\n // because of an error condition, increment the skip count by the number\n // of accession IDs that were supposed to be associated.\n //\n if (skipAssociation)\n skipCount += distinctAccIDs.length;\n }",
"public interface CarTable {\r\n\r\n\tCar getCar();\r\n\tvoid setCar(Car car);\r\n\t\r\n\tint getMaxX();\r\n\tint getMaxY();\r\n}",
"public Courses getCourseTable();",
"private void checkMappedByOneToMany(DeployBeanInfo<?> info, DeployBeanPropertyAssocMany<?> prop) {\n if (prop.isElementCollection()) {\n // skip mapping check\n return;\n }\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n if (targetDesc.isDraftableElement()) {\n // automatically turning on orphan removal and CascadeType.ALL\n prop.setModifyListenMode(BeanCollection.ModifyListenMode.REMOVALS);\n prop.getCascadeInfo().setSaveDelete(true, true);\n }\n\n if (prop.hasOrderColumn()) {\n makeOrderColumn(prop);\n }\n\n if (prop.getMappedBy() == null) {\n // if we are doc store only we are done\n // this allows the use of @OneToMany in @DocStore - Entities\n if (info.getDescriptor().isDocStoreOnly()) {\n prop.setUnidirectional();\n return;\n }\n\n if (!findMappedBy(prop)) {\n if (!prop.isO2mJoinTable()) {\n makeUnidirectional(prop);\n }\n return;\n }\n }\n\n // check that the mappedBy property is valid and read\n // its associated join information if it is available\n String mappedBy = prop.getMappedBy();\n\n // get the mappedBy property\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedManyToOne(prop, targetDesc, mappedBy);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyTo(tableJoin, true, tableJoin.getTable());\n }\n\n PropertyForeignKey foreignKey = mappedAssocOne.getForeignKey();\n if (foreignKey != null) {\n ConstraintMode onDelete = foreignKey.getOnDelete();\n switch (onDelete) {\n case SET_DEFAULT:\n case SET_NULL:\n case CASCADE: {\n // turn off cascade delete when we are using the foreign\n // key constraint to cascade the delete or set null\n prop.getCascadeInfo().setDelete(false);\n }\n }\n }\n }",
"public Relations() {\n relations = new ArrayList();\n }",
"private static void LessonClassObjects() {\n Person person1 = new Person();\n Person person2 = new Person();\n\n //Set title, firstname and lastname\n person1.setTitle(\"Mr.\");\n person1.setFirstName(\"Jordan\");\n person1.setLastName(\"Walker\");\n\n person2.setTitle(\"Mrs.\");\n person2.setFirstName(\"Kelsey\");\n person2.setLastName(\"Walker\");\n\n //Print out\n System.out.println(person1.getTitle()+ \" \" + person1.getFirstName() + \" \" + person1.getLastName());\n System.out.println(person2.getTitle()+ \" \" + person2.getFirstName() + \" \" + person2.getLastName());\n\n // Set super BaseBO class\n person1.setId(7);\n System.out.println(person1.getFirstName() + \" Id is: \" + person1.getId());\n }"
] | [
"0.61501527",
"0.6043774",
"0.58472425",
"0.5843586",
"0.57541424",
"0.5646676",
"0.56303626",
"0.5602845",
"0.54984003",
"0.5461274",
"0.5443302",
"0.5430515",
"0.5383879",
"0.53828275",
"0.5357908",
"0.5323432",
"0.5300445",
"0.53002024",
"0.52894175",
"0.52569175",
"0.52527773",
"0.5237434",
"0.5236315",
"0.5227956",
"0.52234656",
"0.52219355",
"0.52004373",
"0.5189937",
"0.51616573",
"0.5154032",
"0.51465964",
"0.51309323",
"0.51290584",
"0.51240146",
"0.5122469",
"0.5115602",
"0.50975",
"0.5097318",
"0.50943434",
"0.5094082",
"0.50839084",
"0.5083021",
"0.50830054",
"0.50775117",
"0.50722104",
"0.506267",
"0.50524926",
"0.5051506",
"0.5045578",
"0.5043358",
"0.5041716",
"0.50400484",
"0.50217676",
"0.50209486",
"0.5017338",
"0.50152105",
"0.50092715",
"0.5007578",
"0.5005478",
"0.4998908",
"0.4993164",
"0.49827746",
"0.49797407",
"0.49761787",
"0.4969614",
"0.4966347",
"0.49644035",
"0.49527615",
"0.4951169",
"0.4930976",
"0.49277356",
"0.49246067",
"0.49229598",
"0.49192962",
"0.49181527",
"0.49176967",
"0.49124497",
"0.49105284",
"0.4898432",
"0.48940745",
"0.4890088",
"0.48808947",
"0.48790547",
"0.4870792",
"0.48700023",
"0.48695478",
"0.48693758",
"0.48660687",
"0.48597148",
"0.48556557",
"0.48494846",
"0.4846807",
"0.48332265",
"0.48331606",
"0.48277998",
"0.48267695",
"0.48231903",
"0.48220217",
"0.48139423"
] | 0.5076327 | 45 |
Returns reference to listener to be notified of events such as when estimation starts, ends or its progress significantly changes. | public QuadricRobustEstimatorListener getListener() {
return mListener;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MetricTransformation2DRobustEstimatorListener getListener() {\n return mListener;\n }",
"public Listener getListener() {\n return listener;\n }",
"public NumberCellGeneratorListener getListener() {\n return mListener;\n }",
"private static StatusListener getListener() {\n StatusListener statusListener = new StatusListener () {\n @Override\n public void onException(Exception e) {\n }\n\n public void onStatus(Status status) {\n reply(status);\n }\n\n @Override\n public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) {\n }\n\n @Override\n public void onTrackLimitationNotice(int i) {\n }\n\n @Override\n public void onScrubGeo(long l, long l1) {\n }\n\n @Override\n public void onStallWarning(StallWarning stallWarning) {\n }\n\n };\n return statusListener;\n }",
"public interface Listener extends EventListener {\n public void animatorStarted(RMAnimator anAnimator);\n public void animatorUpdated(RMAnimator anAnimator);\n public void animatorStopped(RMAnimator anAnimator);\n }",
"public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }",
"public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }",
"@Nullable\n public P getListener() {\n return mListener;\n }",
"@Override\n\tpublic void getListener(){\n\t}",
"@Override\n public Listener<T> getListener() {\n List<ProcessorNode> nodes = getProcessorChain();\n if(nodes != null && !nodes.isEmpty()){\n return nodes.get(0).getListener();\n }else if(getConsumer() != null){\n return getConsumer().getListener();\n }\n return null;\n }",
"public CellListener getListener() {\n return listener;\n }",
"void onListenerChanged(ListenerUpdate update);",
"public ActivityListener getListener() {\n\t\treturn logger.getConfiguration().getActivityListener();\n\t}",
"public interface GetPointsListener extends Listener {\n\n public void onGetPointsSucc(PointsInfo info);\n}",
"public OpenCompositionFragmentCallbackListener getListener() {\n return listener;\n }",
"@SuppressWarnings(\"deprecation\")\n\torg.ogema.core.resourcemanager.ResourceListener getListener();",
"public JmsRequestorListener getListener() {\n return listener;\n }",
"static synchronized AbstractMMXListener getGlobalListener() {\n return sInstance.mGlobalListener;\n }",
"public interface ObservableListener<T> {\n /**\n * Is called upon an update to the observable\n */\n public void onUpdate(T oldValue, T newValue);\n}",
"void subscribeToEvents(Listener listener);",
"public interface ManagerListener extends EventListener {\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager has joined the application.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerAdded(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager's active model has been modified\r\n\t * to reflect a new design task.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerModelModified(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager's output has been modified to \r\n\t * reflect a new set of inputs from designers.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerOutputModified(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manger has left the application.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerRemoved(ManagerEvent e);\r\n}",
"public interface Listener {}",
"public ListenerRegistar getMiListener() {\n return miListenerReg;\n }",
"public TrackingEditDialogButtonListener getListener() {\n\t\treturn listener;\n\t}",
"ListenerMethod getListenerMethod();",
"public interface EventListener {\n\n /**\n * Called when an event (function call) finishes successfully in MockRestRequest. Does *not* trigger if the event\n * (function) fails.\n * @param mockRestRequest the {@link MockRestRequest} where the event occurred.\n * @param event the {@link Event} that occurred.\n */\n public void onEventComplete(MockRestRequest mockRestRequest, Event event);\n }",
"public interface Listener {\n /**\n * Called when the user has performed a double tap and then held down\n * the second tap.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n */\n void onDoubleTapAndHold(MotionEvent event, int policyFlags);\n\n /**\n * Called when the user lifts their finger on the second tap of a double\n * tap.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n *\n * @return true if the event is consumed, else false\n */\n boolean onDoubleTap(MotionEvent event, int policyFlags);\n\n /**\n * Called when the system has decided the event stream is a gesture.\n *\n * @return true if the event is consumed, else false\n */\n boolean onGestureStarted();\n\n /**\n * Called when an event stream is recognized as a gesture.\n *\n * @param gestureId ID of the gesture that was recognized.\n *\n * @return true if the event is consumed, else false\n */\n boolean onGestureCompleted(int gestureId);\n\n /**\n * Called when the system has decided an event stream doesn't match any\n * known gesture.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n *\n * @return true if the event is consumed, else false\n */\n public boolean onGestureCancelled(MotionEvent event, int policyFlags);\n }",
"public interface Listener {\n}",
"public interface Listener {\n}",
"public ChangeLogListener changeLogListener() {\n return changeLogListener;\n }",
"public interface CalcValueListener {\n\n\t/**\n\t * Method notifies the implementing class that a value has changed.\n\t * \n\t * @param model\n\t * implementation of the CalcModel\n\t */\n\tvoid valueChanged(CalcModel model);\n}",
"public interface MonitoringEventListener {\n\n /**\n * Callback for received STDOUT lines.\n * \n * @param line stdout line\n */\n void appendStdout(String line);\n\n /**\n * Callback for received STDERR lines.\n * \n * @param line stderr line\n */\n void appendStderr(String line);\n\n /**\n * Callback for additional user information lines (validation, progress, ...).\n * \n * @param line information line\n */\n void appendUserInformation(String line);\n}",
"public static void setListener(QuadConsumer listener) {\n\t\t\n\t\tnotificationListener = listener;\n\t\t\n\t}",
"private ChangeListener createMaxListener()\r\n\t\t{\r\n\t\treturn new ChangeListener()\r\n\t\t\t{\r\n\r\n\t\t\t//called when the max spinner value is changed\r\n\t\t\t@Override\r\n\t\t\tpublic void stateChanged(ChangeEvent e)\r\n\t\t\t\t{\r\n\t\t\t\tint spinMinValue = (int)spinMin.getValue();\r\n\t\t\t\tint spinMaxValue = (int)spinMax.getValue();\r\n\r\n\t\t\t\tif (spinMaxValue <= spinMinValue) { // verify if the max spin goes under the min limit and adjust the value if necessary\r\n\t\t\t\t\tif (--spinMinValue < min)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tspinMax.setValue(spinMaxValue = (spinMinValue=min)+1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tspinMin.setValue(spinMinValue);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (spinMaxValue > spinMinValue) // verify intervals are correct\r\n\t\t\t\t\t{\r\n\t\t\t\t\tdiceBuilder.setInterval(spinMinValue, spinMaxValue);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t};\r\n\r\n\t\t}",
"public interface Listener {\n\n void pre(JoinTree joinTree, Clique start, Clique stop);\n\n void visited(Clique clique);\n\n void post(JoinTree joinTree, Clique start, Clique stop);\n }",
"@Required\n @Updatable\n public Set<Listener> getListener() {\n if (listener == null) {\n listener = new HashSet<>();\n }\n\n return listener;\n }",
"private ModifyListener getModifyListener() {\n \t\tif (modifyListener == null) {\n \t\t\tmodifyListener = new ModifyListener() {\n \t\t\t\tpublic void modifyText(ModifyEvent e) {\n \t\t\t\t\teditOccured(e);\n \t\t\t\t}\n \t\t\t};\n \t\t}\n \t\treturn modifyListener;\n \t}",
"public void addListener(EventListener listener);",
"public OnApplicationStatusUpdateListener getOnRunnerStatusUpdateListener() {\n return listener;\n }",
"public static interface Listener {\r\n\r\n void onCommitted(Transaction transaction);\r\n\r\n void onAborted(Transaction transaction);\r\n }",
"public interface Listener {\n void onConnected(CallAppAbilityConnection callAppAbilityConnection);\n\n void onDisconnected(CallAppAbilityConnection callAppAbilityConnection);\n\n void onReleased(CallAppAbilityConnection callAppAbilityConnection);\n }",
"public interface GraphListener extends java.util.EventListener {\n /**\n * An edge's head has been changed in a registered\n * graph or one of its subgraphs. The added edge\n * is the \"source\" of the event. The previous head\n * is accessible via e.getOldValue().\n */\n public void edgeHeadChanged(GraphEvent e);\n\n /**\n * An edge's tail has been changed in a registered\n * graph or one of its subgraphs. The added edge\n * is the \"source\" of the event. The previous tail\n * is accessible via e.getOldValue().\n */\n public void edgeTailChanged(GraphEvent e);\n\n /**\n * A node has been been added to the registered\n * graph or one of its subgraphs. The added node\n * is the \"source\" of the event.\n */\n public void nodeAdded(GraphEvent e);\n\n /**\n * A node has been been deleted from the registered\n * graphs or one of its subgraphs. The deleted node\n * is the \"source\" of the event. The previous parent\n * graph is accessible via e.getOldValue().\n */\n public void nodeRemoved(GraphEvent e);\n\n /**\n * The structure of the event's \"source\" graph has\n * been drastically changed in some way, and this\n * event signals the listener to refresh its view\n * of that graph from model.\n */\n public void structureChanged(GraphEvent e);\n}",
"public AttributeMapBindingListener getListener() {\r\n\t\treturn listener;\r\n\t}",
"public void addListener(ValueChangedListener listener) {\n\t\t_listenerManager.addListener(listener);\n\t}",
"public Conservable[] getListener() throws SQLException{\n return listener;\n }",
"private EventListener listenChanges() {\n Set<String> storeEvents = ImmutableSet.of(Events.STORE_INITED);\n EventListener eventListener = event -> {\n // Ensure task schema create after system info initialized\n if (storeEvents.contains(event.name())) {\n this.call(() -> this.tx().initSchema());\n return true;\n }\n return false;\n };\n this.graph.loadSystemStore().provider().listen(eventListener);\n return eventListener;\n }",
"public interface Listener {\n void onCredentialUpdateRequired();\n\n void onOneDriveRefreshTokenUpdated(String str);\n }",
"public interface ChangeListener {\n\t\tpublic void onValueChange(FloatPicker fpw, float value);\n\t}",
"protected DocumentListener createDocumentListener() {\n return new DocumentListener() {\n public void removeUpdate(DocumentEvent e) {\n reshapeEditorLater();\n }\n\n public void insertUpdate(DocumentEvent e) {\n reshapeEditorLater();\n }\n\n public void changedUpdate(DocumentEvent e) {\n reshapeEditorLater();\n }\n };\n }",
"void setListener(Listener listener);",
"public static interface ProgressListener {\n\n\t\tpublic void onProgress(float progress);\n\n\t}",
"public interface InternalListener {\r\n\r\n void onCommitting(Transaction transaction);\r\n\r\n void onCommitted(Transaction transaction, long newVersion);\r\n\r\n void onAborted(Transaction transaction);\r\n }",
"private InterstitialViewListener getInterstitialViewListener() {\n return (InterstitialViewListener) WhiteBox.getInternalState(mInterstitialController, \"mInterstitialViewListener\");\n }",
"private void setListener() {\n\t}",
"Move listen(IListener ll);",
"protected EventListenerList getEventListenerList() {\r\n return listenerList;\r\n }",
"void subscribeReceiveListener(IDataReceiveListener listener);",
"public Iterator<Object> listeners() {\n return Arrays.asList(fListeners).iterator();\n }",
"public interface BrainFlowProjectListener {\n\n public void modelAdded(BrainFlowProjectEvent event);\n\n public void modelRemoved(BrainFlowProjectEvent event);\n\n public void intervalAdded(BrainFlowProjectEvent event);\n\n public void contentsChanged(BrainFlowProjectEvent event);\n\n public void intervalRemoved(BrainFlowProjectEvent event);\n}",
"void addCalcValueListener(CalcValueListener l);",
"void addListener(PromiseListener promiseListener);",
"public interface PlotNotificationListener {\n\n void setLegend(List<String> legendEntries, double min, double max);\n\n void acceptDataPoint(double[] dataPoint);\n }",
"public interface IEvenListener {\n}",
"private void registerListener() {\n mSensorManager.registerListener(this,\n mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),\n SensorManager.SENSOR_DELAY_NORMAL);\n\n stepManager.DisplayStepCountInfo();\n }",
"protected abstract void startListener();",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"@Override\n\tpublic void setListener() {\n\n\t}",
"static public interface ProgressListener {\n /**\n * Deve retornar um valor entre 0 e 100 informando o percentual do progresso\n * alcançado.\n * @return Deve retornar um valor entre 0 e 100 informando o percentual do \n * progresso alcançado.\n */\n public byte onProgress();\n }",
"public QueryOperationListener getQueryOperationListener()\n {\n return new DemoQueryOperationListener();\n }",
"public synchronized List<EventListener> getListeners() {\n \treturn listeners;\n }",
"public interface EldersInfoListener {\n void eldersInfoListener(int position);\n}",
"interface DataListener\n{\n\tpublic void DataChanged(MDSplus.Data data);\n}",
"public MessageListener getMessageListener() {\n return listener;\n }",
"private EntityStateListener stateListener() {\n return listeners == null ? EntityStateListener.EMPTY : listeners;\n }",
"public TransportResponseListener getResponseListener() {\n return myResponseListener;\n }",
"public TCPListener getMyTCPListener()\n {\n return fMyListener;\n }",
"@Nonnull\r\n public PreprocessorListener getListener() {\r\n return listener;\r\n }",
"public interface WorkerListener {\n /**\n * Notifies the listener about successful completion of the auction.\n * @param result result of the auction evaluation.\n * @param clientId id of the client, who won the auction.\n */\n public void onCompletion(Auction.AuctionResult result, int clientId);\n\n /**\n * Notifies the listener about an error, which occurred during the auction.\n * @param errorMessage error message.\n */\n public void onError(String errorMessage);\n}",
"public interface SingleDocumentListener {\n\t/**\n\t * Called when Modify flag of model is changed\n\t * @param model observed\n\t */\n\tvoid documentModifyStatusUpdated(SingleDocumentModel model);\n\n\t/**\n\t * Called when File path of model is changed\n\t * @param model observed\n\t */\n\tvoid documentFilePathUpdated(SingleDocumentModel model);\n}",
"public interface LastPlayedRetrievedListener {\n\n public void onLastPlayedRetrieved(final List<Radio> radios);\n }",
"private Animation.AnimationListener createAnimationListener() {\n return new Animation.AnimationListener() {\n @Override\n public void onAnimationStart(Animation animation) {\n }\n @Override\n public void onAnimationEnd(Animation animation) {\n // set up button symbol and playback indicator afterwards\n setVisualState();\n }\n @Override\n public void onAnimationRepeat(Animation animation) {\n }\n };\n }",
"void addChangeListener(ChangeListener listener);",
"public void setListener(IAlgorithmListener listener);",
"void addListener( AvailabilityListener listener );",
"public abstract O getObserver();",
"public interface IIncrementerListener {\n\n void onUpdate(IIncrementerUpdater updater);\n}",
"public DBRecordListener<gDBR> getRecordListener()\n {\n return this.recordListener;\n }",
"abstract public void addListener(Listener listener);",
"public interface InstrumentManagerListener{\n void instrumentAdded(Instrument instrument,int position);\n void instrumentRemoved(int position);\n }",
"@Override\r\n public void addStreamEventListener(IStreamEventListener eventListener) {\r\n listener = eventListener;\r\n }",
"public static interface ChangeListener extends Lambda<Object, Object> {\n public abstract Object apply(Object c);\n }",
"public interface Listener {\n void onFetchFinished(List<Trailer> trailers);\n }",
"public interface OnCallingListener {\n void onCallEnd();\n}",
"private TreeModelListener createTreeModelListener() {\n\t\treturn new TreeModelListener() {\n\t\t\tpublic void treeNodesChanged(TreeModelEvent evt) {\n\t\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode) (evt\n\t\t\t\t\t\t.getTreePath().getLastPathComponent());\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"In TreeModelListener: The User has finished editing the child node of \"\n\t\t\t\t\t\t\t\t+ node.getUserObject());\n\t\t\t}\n\n\t\t\tpublic void treeNodesInserted(TreeModelEvent evt) {\n\t\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode) (evt\n\t\t\t\t\t\t.getTreePath().getLastPathComponent());\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"In TreeModelListener: A new node is added to \"\n\t\t\t\t\t\t\t\t+ node.getUserObject());\n\t\t\t}\n\n\t\t\tpublic void treeNodesRemoved(TreeModelEvent evt) {\n\t\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode) (evt\n\t\t\t\t\t\t.getTreePath().getLastPathComponent());\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"In TreeModelListener: A node is removed from \"\n\t\t\t\t\t\t\t\t+ node.getUserObject());\n\t\t\t}\n\n\t\t\t// need to have a drastic change or fired explicitly: remove the\n\t\t\t// root node\n\t\t\tpublic void treeStructureChanged(TreeModelEvent evt) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"In TreeModelListener: Tree Structure Changed\");\n\t\t\t}\n\t\t};\n\t}",
"public interface LogListener {\n void onReadLogComplete();\n}",
"public boolean isListenerAvailable() {\n return mListener != null;\n }",
"public boolean isListenerAvailable() {\n return mListener != null;\n }",
"public void setListener(NumberCellGeneratorListener listener) {\n mListener = listener;\n }",
"private ChangeListener createMinListener()\r\n\t\t{\r\n\t\treturn new ChangeListener()\r\n\t\t\t{\r\n\r\n\t\t\t//called when the min spinner value is changed\r\n\t\t\t@Override\r\n\t\t\tpublic void stateChanged(ChangeEvent e)\r\n\t\t\t\t{\r\n\t\t\t\tint spinMinValue = (int)spinMin.getValue();\r\n\t\t\t\tint spinMaxValue = (int)spinMax.getValue();\r\n\r\n\t\t\t\tif (spinMinValue >= spinMaxValue) { // verify if the min spin goes upper the max limit and adjust the value if necessary\r\n\t\t\t\t\tif (++spinMaxValue > max)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tspinMin.setValue(spinMinValue = (spinMaxValue=max)-1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tspinMax.setValue(spinMaxValue);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (spinMaxValue > spinMinValue) // verify intervals are correct\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdiceBuilder.setInterval(spinMinValue, spinMaxValue);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t};\r\n\t\t}"
] | [
"0.6868623",
"0.66674155",
"0.6624695",
"0.6546386",
"0.6395816",
"0.63479",
"0.63479",
"0.6286388",
"0.6221112",
"0.6131263",
"0.6112051",
"0.6058083",
"0.6057619",
"0.60420835",
"0.5956826",
"0.59215677",
"0.5921043",
"0.5850519",
"0.58287615",
"0.57945377",
"0.5764203",
"0.5748968",
"0.57439154",
"0.57373756",
"0.57153624",
"0.5711379",
"0.5703671",
"0.5696334",
"0.5696334",
"0.56921786",
"0.56824464",
"0.56571203",
"0.5638997",
"0.5626122",
"0.56097704",
"0.5607829",
"0.5593385",
"0.55846477",
"0.55714875",
"0.55709136",
"0.55583394",
"0.55033004",
"0.5501693",
"0.5494869",
"0.549095",
"0.5479389",
"0.5467459",
"0.5467412",
"0.5460585",
"0.5445188",
"0.54243016",
"0.54202425",
"0.54117876",
"0.54084885",
"0.54002446",
"0.53959763",
"0.5388319",
"0.5378505",
"0.5377171",
"0.5372411",
"0.5351293",
"0.5344043",
"0.53439826",
"0.5341396",
"0.5338861",
"0.5336936",
"0.5336936",
"0.53317654",
"0.53209114",
"0.53192794",
"0.5314433",
"0.5311148",
"0.5306026",
"0.52952796",
"0.5294223",
"0.52941185",
"0.5293192",
"0.5290663",
"0.52876264",
"0.52876216",
"0.5281403",
"0.5278593",
"0.52721554",
"0.52721345",
"0.527068",
"0.5258831",
"0.52578944",
"0.5252806",
"0.5245642",
"0.52420866",
"0.5230541",
"0.5229229",
"0.52205145",
"0.52179396",
"0.5212385",
"0.5210681",
"0.52006936",
"0.52006936",
"0.51987666",
"0.51948005"
] | 0.7105951 | 0 |
Sets listener to be notified of events such as when estimation starts, ends or its progress significantly changes. | public void setListener(QuadricRobustEstimatorListener listener)
throws LockedException {
if (isLocked()) {
throw new LockedException();
}
mListener = listener;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setListener(Listener listener);",
"private void setListener() {\n\t}",
"public static void setListener(QuadConsumer listener) {\n\t\t\n\t\tnotificationListener = listener;\n\t\t\n\t}",
"public void setListener(Listener listener) {\n this.mListener = listener;\n }",
"public void setListener(Listener listener) {\n this.mListener = listener;\n }",
"@Override\n\tpublic void setListener() {\n\n\t}",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"public void setChangeListener(ChangeListener listener) {\n this.listener = listener;\n qs.addChangeListener(listener);\n }",
"@Override\n\tprotected void setListener() {\n\n\t}",
"@Override\n\tprotected void setListener() {\n\n\t}",
"public void addListener(ValueChangedListener listener) {\n\t\t_listenerManager.addListener(listener);\n\t}",
"public void setListener(NumberCellGeneratorListener listener) {\n mListener = listener;\n }",
"@Override\r\n public void setListener(NexVideoRenderer.IListener listener) {\r\n this.videoSizeListener = listener;\r\n }",
"public void setListener(LineListener listener) {\n\t\tplayer.setListener(listener);\n\t}",
"public void setListener(IAlgorithmListener listener);",
"public void setListener(\n MetricTransformation2DRobustEstimatorListener listener)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mListener = listener;\n }",
"public void setOnPropertyChangedListener(OnPropertyChangedListener l){\n _onPropertyChange = l;\n }",
"public void addListener(EventListener listener);",
"@Override\n public void setListener(@NonNull final ExpandableLayoutListener listener) {\n this.listener = listener;\n }",
"public void setServiceListener(Listener listener) {\n \t\tlocalListener = listener;\n \t}",
"public void addChangeListener(ChangeListener<BufferedImage> listener) {\n observer.add(listener);\n }",
"@Override\r\n public void addStreamEventListener(IStreamEventListener eventListener) {\r\n listener = eventListener;\r\n }",
"public void addListener(final IMemoryViewerSynchronizerListener listener) {\n m_listeners.addListener(listener);\n }",
"public void setListener(LocationListener listener) {\n this.listener = listener;\n }",
"public void setUpdateProgressListener(UpdateProgressListener listener) {\n UpdateService.this.setUpdateProgressListener(listener);\n }",
"public void bind(ChangeListener listener) {\n mChangeObserver.add(listener);\n }",
"public synchronized void setModelListener(ModelListener ml) \r\n\t{\r\n\t\tmodelListener = ml;\r\n\t}",
"public void setProcessingEventListener(ProcessingEventListener listener){\n this.listener = listener;\n }",
"public void addListener(MinMaxListener listener) {\n listeners.add(listener);\n }",
"public void setOnSeekChangeListener(OnSeekChangeListener listener) {\n this.mSeekChangeListener = listener;\n }",
"public void setListener(EndlessListener listener) {\n this.listener = listener;\n }",
"@SuppressWarnings(\"unused\")\n public void setOnRangeSeekBarChangeListener(OnRangeSeekBarChangeListener<T> listener) {\n this.listener = listener;\n }",
"private void registerListener() {\n mSensorManager.registerListener(this,\n mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),\n SensorManager.SENSOR_DELAY_NORMAL);\n\n stepManager.DisplayStepCountInfo();\n }",
"void addChangeListener(ChangeListener listener);",
"public void addListener(Listener listener) {\n m_listeners.add(listener);\n }",
"private void setListener() {\n\t\tmSlidingLayer.setOnInteractListener(this);\r\n\t\tmMsgNotifySwitch.setOnCheckedChangeListener(this);\r\n\t\tmMsgSoundSwitch.setOnCheckedChangeListener(this);\r\n\t\tmShowHeadSwitch.setOnCheckedChangeListener(this);\r\n\t\tmAccountSetting.setOnClickListener(this);\r\n\t\tmMyProfile.setOnClickListener(this);\r\n\t\tmFaceJazzEffect.setOnClickListener(this);\r\n\t\tmAcountInfo.setOnClickListener(this);\r\n\t\tmFeedBack.setOnClickListener(this);\r\n\t\tmExitAppBtn.setOnClickListener(this);\r\n\r\n\t}",
"public interface Listener extends EventListener {\n public void animatorStarted(RMAnimator anAnimator);\n public void animatorUpdated(RMAnimator anAnimator);\n public void animatorStopped(RMAnimator anAnimator);\n }",
"public void setOnTickListener(OnTickListener listener)\r\n\t{\r\n\t\ttickListener = listener;\r\n\t}",
"public void setChangeListener();",
"protected void listener(Listener listener) {\n Bukkit.getServer().getPluginManager().registerEvents(listener, RedPractice.getInstance());\n }",
"public void addChangeListener(ChangeListener listener) { _changeListeners.add(listener); }",
"private void setListeners() {\n\n }",
"public void setListener(CompassListener l) {\n listener = l;\n }",
"abstract public void addListener(Listener listener);",
"public void setEventHandler(PInputEventListener listener) {\n if (layerListening != null) {\n layerListening.removeInputEventListener(currentListener);\n layerListening = null;\n } else {\n removeInputEventListener(currentListener);\n }\n currentListener = listener;\n addInputEventListener(currentListener);\n }",
"public void setMetricsListener(MetricsListener metricsListener) {\n mMetricsListener = metricsListener;\n }",
"public void addListener(ModifiedEventListener listener) {\n\t\tlisteners.add(listener);\n\t}",
"protected final void addListener(DialogModuleChangeListener listener) {\n listeners.add(listener);\n }",
"public void onValueChange(final ChangeListener listener) {\n\t\tchangeListener = listener;\n\t\treturn;\n\t}",
"public void setProgressViewUpdateListener(CircleProgressUpdateListener listener){\n this.updateListener = listener;\n }",
"public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }",
"public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }",
"public AudioMonitor(AudioMonitorListener listener) {\n this.listener = listener;\n }",
"public void setListener(OpenCompositionFragmentCallbackListener listener) {\n this.listener = listener;\n }",
"public void addListener(Animator.AnimatorListener listener) {\n mCircularBar.addListener(listener);\n }",
"@Override\n public void addListener(StreamListener listener) {\n streamListeners.add(listener);\n }",
"public void addListener(StatisticsListener listener)\r\n\t{\r\n\t\tlisteners.add(listener);\r\n\t}",
"public void setOnInfoListener(IMediaPlayer.OnInfoListener l) {\n mOnInfoListener = l;\n }",
"public void addChangeListener(ChangeListener listener)\r\n {\r\n listeners.add(listener);\r\n }",
"void onListenerChanged(ListenerUpdate update);",
"public void setProgressListener(GeoGitPy4JProgressListener listener) {\n this.listener = listener;\n }",
"private void updateListener() {\n \n if(resizeListener != null) {\n s.heightProperty().removeListener(resizeListener);\n s.widthProperty().removeListener(resizeListener);\n }\n \n resizeListener = (observable, oldValue, newValue) -> {\n listeners.forEach((r) -> r.onResize());\n };\n \n s.heightProperty().addListener(resizeListener);\n s.widthProperty().addListener(resizeListener);\n }",
"public void mo25054a(C8109a listener) {\n this.f16619m = listener;\n }",
"public void setExamEventListener(ExamEventListener listener) {\n mExamEventListener = listener;\n }",
"public void addListener(\n IListener listener\n )\n {listeners.add(listener);}",
"public void addChangeListener(ChangeListener l) {\n }",
"public void addChangeListener(ChangeListener l) {\n }",
"void subscribeToEvents(Listener listener);",
"void addCalcValueListener(CalcValueListener l);",
"protected void setListener(final AdvancedWebviewListener listener, final int requestCodeFilePicker) {\n mWebListener = listener;\n mRequestCodeFilePicker = requestCodeFilePicker;\n }",
"void addListener(GraphListener listener);",
"public void addChangeListener (ChangeListener listener)\n {\n listenerList.add(ChangeListener.class, listener);\n }",
"void addListener(ChangeListener<? super T> listener);",
"protected abstract void startListener();",
"public void attachListener(TaskListener listener) {\n this.mListener = listener;\n }",
"public void setListener(AdListener listener) {\n synchronized (this) {\n this.listener = listener;\n }\n }",
"public void addInvalidationListener(Runnable listener)\n {\n myInvalidationChangeSupport.addListener(listener);\n }",
"@Override\n public void addListener(DisplayEventListener listener) {\n listenerList.add(DisplayEventListener.class, listener);\n }",
"void addListener(PromiseListener promiseListener);",
"@Override\n public void addChangeListener(ChangeListener l) {\n }",
"@Override\n public void addChangeListener(ChangeListener l) {\n }",
"@Override\n\tpublic void addListener() {\n\t\t\n\t}",
"@Override\n public void addChangeListener(ChangeListener l) {}",
"public void addAnimatorListener(Listener aListener) { addListener(Listener.class, aListener); }",
"public void setOnKnobValuesChangedListener (KnobValuesChangedListener l) {\r\n\t\tknobValuesChangedListener = l;\r\n\t}",
"public static void addGenomeChangedListener(Listener<GenomeChangedEvent> l) {\n genomeController.addListener(l);\n }",
"public void setOnInfoListener(OnInfoListener onInfoListener) {\n synchronized (this) {\n this.mOnInfoListener = onInfoListener;\n if (onInfoListener != null) {\n this.createListeners();\n }\n return;\n }\n }",
"public void addListener(GridListener listener) {\n listeners.add(listener);\n }",
"public void addListener(SerialConnectionReadyListener listener) {\n listeners.add(listener);\n }",
"public void setGameEventListener(GameEventListener eventListener) {\n\t\tthis.eventListener = eventListener;\n\t}",
"private void initListener() {\n }",
"public void setOnLocationServiceListener (LocationServiceListener listener)\n {\n this.mListeners.add(listener);\n }",
"public void setRequestListener(IRequestListener requestListener) {\n this.requestListener = requestListener;\n }",
"public void setLocationListener(SeagullLocationListener listener){\n this.moveListener = listener;\n }",
"public void addNPTListener(NPTListener l){}",
"public void addChangeListener(ChangeListener listener) {\n\t\tchangeListeners.add(listener);\n\t}",
"public synchronized void setOutListener(LineListener outListener) {\n if (outListener != null) {\n this.outListener = outListener;\n }\n }",
"public void setScreenListener(ScreenListener listener) {\n\t\tthis.listener = listener;\n\t}",
"@Override\r\n\tpublic void addListener(INotifyChangedListener notifyChangedListener) {\r\n\t\tchangeNotifier.addListener(notifyChangedListener);\r\n\t}"
] | [
"0.7265548",
"0.7144251",
"0.709955",
"0.7056303",
"0.7056303",
"0.69078785",
"0.6823753",
"0.6823753",
"0.6802239",
"0.6720833",
"0.6720833",
"0.6718777",
"0.66806203",
"0.6680361",
"0.6599116",
"0.65104693",
"0.64467883",
"0.6364148",
"0.6341656",
"0.63347006",
"0.6310808",
"0.63063407",
"0.6298207",
"0.6268588",
"0.6254193",
"0.6240735",
"0.6237032",
"0.6231965",
"0.62178373",
"0.6186391",
"0.61810064",
"0.61616695",
"0.6161322",
"0.61587334",
"0.6157757",
"0.6144762",
"0.6143073",
"0.61199987",
"0.61159563",
"0.6115312",
"0.61093664",
"0.6082743",
"0.6070195",
"0.60638326",
"0.60559404",
"0.60394233",
"0.60353845",
"0.60283464",
"0.60149693",
"0.60041386",
"0.6000149",
"0.59965485",
"0.59965485",
"0.59854263",
"0.5976144",
"0.5971284",
"0.5959841",
"0.5957593",
"0.5954452",
"0.59486556",
"0.59460795",
"0.5944501",
"0.594425",
"0.5939239",
"0.5923427",
"0.5918581",
"0.5917954",
"0.5917954",
"0.5897979",
"0.5888546",
"0.5885609",
"0.58837116",
"0.58791846",
"0.5875572",
"0.58658916",
"0.5845138",
"0.58424276",
"0.5827462",
"0.5825055",
"0.5821929",
"0.5815388",
"0.5815388",
"0.5810979",
"0.58071345",
"0.57971925",
"0.57889414",
"0.57826257",
"0.57807463",
"0.57761216",
"0.57685107",
"0.57671416",
"0.57665956",
"0.5762194",
"0.5761902",
"0.5757922",
"0.57537585",
"0.5751717",
"0.5748533",
"0.5747252",
"0.574428"
] | 0.65350837 | 15 |
Indicates whether listener has been provided and is available for retrieval. | public boolean isListenerAvailable() {
return mListener != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized boolean isEnabled() {\n \t\t\treturn listenerEnabled;\n \t\t}",
"public boolean hasListeners() {\n return !listeners.isEmpty();\n }",
"public boolean hasListeners() {\n return !listeners.isEmpty();\n }",
"protected boolean hasListeners()\n {\n // m_listenerSupport defaults to null, and it is reset to null when\n // the last listener unregisters\n return m_listenerSupport != null;\n }",
"protected boolean hasListeners()\n {\n // m_listenerSupport defaults to null, and it is reset to null when\n // the last listener unregisters\n return m_listenerSupport != null;\n }",
"@Override\n\tpublic boolean IsListening() {\n\t\treturn listening;\n\t}",
"public static boolean GetClientListenerStatus (){\n return ClientListenerAlive;\n }",
"public boolean isListenerRunning(){\n\t\tsynchronized (httpServerMutex) {\n\t\t\tif( webServer == null )\n\t\t\t\treturn false;\n\t\t\telse{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}",
"public boolean hasListener(int type) {\n assert type > 0 : \"Invalid event type: \" + type;\n\n Listeners listeners = lsnrs.get(type);\n\n return (listeners != null) && (!F.isEmpty(listeners.highPriorityLsnrs) || !F.isEmpty(listeners.lsnrs));\n }",
"public boolean hasListener(TransferListener listener) {\n return listeners.contains(listener);\n }",
"public synchronized boolean isListening() {\n\t\treturn isListening;\n\t}",
"protected boolean isBound(){\n\t\treturn !listeners.isEmpty();\n\t}",
"protected boolean isBound(){\n\t\treturn !listeners.isEmpty();\n\t}",
"public synchronized boolean hasSubscribers ()\n {\n return !this.listeners.isEmpty ();\n }",
"public final boolean isListening() {\n return mIsListening;\n }",
"public boolean getUpdatesListenersOnDownload() \n {\n return true; \n }",
"public boolean contains(L listener) {\r\n synchronized (this) {\r\n return listeners.containsKey(listener) || weak.containsKey(listener);\r\n }\r\n }",
"@Nullable\n public P getListener() {\n return mListener;\n }",
"default boolean isAvailable() {\n switch (getState()) {\n case STOPPED:\n return true;\n case STARTING:\n return false;\n case STARTED:\n return false;\n case STOPPING:\n return false;\n default:\n throw new IllegalStateException(\"The speaker state is in an unknown state\");\n }\n }",
"void addListener( AvailabilityListener listener );",
"boolean hasSubscription();",
"public boolean hasRequestListeners(TransportAddress localAddr) {\n if (!messageListeners.isEmpty()) {\n // there is a generic listener\n return true;\n }\n if (!children.isEmpty()) {\n EventDispatcher child = children.get(localAddr);\n if (child != null) {\n return !child.messageListeners.isEmpty();\n }\n }\n return false;\n }",
"@Override\n public boolean isEnabled() {\n synchronized (mLocationListeners) {\n return mEnabledProviders.contains(getName());\n }\n }",
"public Listener getListener() {\n return listener;\n }",
"boolean available()\n {\n synchronized (m_lock)\n {\n return (null == m_runnable) && (!m_released);\n }\n }",
"Boolean isAvailable();",
"public Boolean isAvailable()\n\t{\n\t\treturn presence != null && presence.equals(AVAILABLE);\n\t}",
"@Override\n\tpublic void getListener(){\n\t}",
"public abstract boolean isAvailable();",
"public abstract boolean isAvailable();",
"boolean isAvailable();",
"boolean isAvailable();",
"boolean isAvailable();",
"boolean isAvailable();",
"boolean isRegistrateChangeListener();",
"@Required\n @Updatable\n public Set<Listener> getListener() {\n if (listener == null) {\n listener = new HashSet<>();\n }\n\n return listener;\n }",
"@SuppressWarnings(\"deprecation\")\n\torg.ogema.core.resourcemanager.ResourceListener getListener();",
"@Override\n\t\t\t\t\t\tpublic boolean isEnabled()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(requiresListeners\n\t\t\t\t\t\t\t\t&& !prisms.util.PrismsUtils.hasEventListeners(theSession,\n\t\t\t\t\t\t\t\t\ttoFire.name))\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}",
"public boolean isAvailable() {\n return available;\n }",
"boolean hasSubscribe();",
"public boolean isAvailable()\n {\n return available;\n }",
"private boolean isServiceAvailable() {\n if (mComponentName == null) {\n mComponentName = resolveAttentionService(mContext);\n }\n return mComponentName != null;\n }",
"public boolean isListenerForSource(Object source) {\n return true;\n }",
"public boolean isAvailable() {\r\n\treturn available;\r\n }",
"public boolean hasReceived() {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasReceived()\" );\n Via via=(Via)sipHeader;\n return via.hasParameter(Via.RECEIVED);\n }",
"public boolean isAvailable() {\n return available;\n }",
"public boolean isAvailable() {\n return available;\n }",
"public boolean isAvailable() {\n return available;\n }",
"public boolean isAvailable() {\r\n return isavailable;\r\n }",
"private void setListener() {\n\t}",
"boolean isAvailable() {\r\n\t\treturn available;\r\n\t}",
"boolean hasAvailableConnection();",
"public boolean isAvailable() {\r\n\t\treturn available;\r\n\t}",
"public interface Listener {}",
"boolean hasEvent();",
"private boolean setListeners() {\n if (skylinkConnection != null) {\n skylinkConnection.setLifeCycleListener(this);\n skylinkConnection.setMediaListener(this);\n skylinkConnection.setRemotePeerListener(this);\n skylinkConnection.setRecordingListener(this);\n return true;\n } else {\n return false;\n }\n }",
"public boolean isCallbackSet() {\n\t\treturn getParameter(\"callback\") != null;\n\t}",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"public String addListener(ServiceListener listener) {\n return (orgConfigImpl.addListener(listener));\n }",
"protected boolean isAvailable() {\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void setListener() {\n\n\t}",
"@Override\n\tpublic boolean addInstanceListener(final NodeStore.Listener<I> listener) {\n\t\treturn true;\n\t}",
"@java.lang.Override\n public boolean hasDownloadRequest() {\n return downloadRequest_ != null;\n }",
"public boolean isServiceReady();",
"public interface Listener {\n}",
"public interface Listener {\n}",
"@FunctionalInterface\npublic interface ServerBecomesAvailableListener extends GloballyAttachableListener {\n\n /**\n * This method is called every time a server became unavailable.\n *\n * @param event The event.\n */\n void onServerBecomesAvailable(ServerBecomesAvailableEvent event);\n}",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"@Override\n public boolean isAvailable() {\n return room.isAvailable();\n }",
"boolean hasDownloadRequest();",
"protected MapListenerSupport getMapListenerSupport()\n {\n return m_listenerSupport;\n }",
"protected MapListenerSupport getMapListenerSupport()\n {\n return m_listenerSupport;\n }",
"public Runnable getLoaderDataAvailabilityCallback() {\n return loaderDataAvailabilityCallback;\n }",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"public interface GetPointsListener extends Listener {\n\n public void onGetPointsSucc(PointsInfo info);\n}",
"public boolean hasTraceListeners()\r\n {\r\n return (null != m_traceListeners);\r\n }",
"public boolean isCallback() {\n return callback;\n }",
"public boolean getIsServiceBound () ;",
"protected void registerListener() {\r\n\t\t// do nothing\r\n\t}",
"public AttributeMapBindingListener getListener() {\r\n\t\treturn listener;\r\n\t}",
"public interface OnEventAvailableListener {\n\tpublic void OnEventAvailable(Message msg);\n}",
"boolean hasReceived();",
"public interface Listener {\n \tpublic void notifyDone(LookupTypeQuery q, boolean complete, Type.Promise type);\n }",
"public default boolean hasScanDataConsumer() {\n\t\treturn false;\n\t}"
] | [
"0.70809144",
"0.6818271",
"0.6818271",
"0.6746362",
"0.6746362",
"0.6514572",
"0.64971626",
"0.6454716",
"0.6453146",
"0.6407265",
"0.63617945",
"0.63517386",
"0.63517386",
"0.628341",
"0.62631404",
"0.61190814",
"0.609551",
"0.6088507",
"0.6055311",
"0.6049273",
"0.6003335",
"0.599643",
"0.5990337",
"0.595457",
"0.59292436",
"0.59253824",
"0.59024096",
"0.58949107",
"0.5894512",
"0.5894512",
"0.5891037",
"0.5891037",
"0.5891037",
"0.5891037",
"0.5888231",
"0.58765185",
"0.5869028",
"0.5867261",
"0.5855484",
"0.58516246",
"0.58414257",
"0.5836474",
"0.5827163",
"0.5818653",
"0.5816401",
"0.5798824",
"0.57965356",
"0.57965356",
"0.5792883",
"0.5784097",
"0.5776343",
"0.5775924",
"0.57675654",
"0.5754019",
"0.5725138",
"0.5723565",
"0.57192266",
"0.57185835",
"0.57185835",
"0.57185835",
"0.57185835",
"0.57185835",
"0.57185835",
"0.57185835",
"0.57185835",
"0.57185835",
"0.57185835",
"0.57160956",
"0.5708811",
"0.56822",
"0.567678",
"0.56592214",
"0.5628689",
"0.5620166",
"0.5620166",
"0.5610105",
"0.56016004",
"0.56016004",
"0.558212",
"0.55754143",
"0.5571653",
"0.5571653",
"0.5568458",
"0.5567143",
"0.5567143",
"0.5567143",
"0.5567143",
"0.5567143",
"0.5567143",
"0.55639493",
"0.55563074",
"0.55502105",
"0.55418706",
"0.5529647",
"0.55165464",
"0.5516015",
"0.55129325",
"0.5505666",
"0.5503162"
] | 0.80822253 | 0 |
Indicates if this instance is locked because estimation is being computed. | public boolean isLocked() {
return mLocked;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isLocked() {\r\n return isLocked;\r\n }",
"public boolean isLocked() {\n return isLocked;\n }",
"public boolean isLocked();",
"public boolean isLocked() {\r\n \treturn false;\r\n }",
"public boolean isLocked()\n\t{\n\t\treturn locked;\n\t}",
"public boolean isLocked() {\n\t\treturn isLocked;\n\t}",
"public boolean isLock() {\n return isLock;\n }",
"public boolean isLocked() {\n return (lockId == null ? false : true);\n }",
"public @Bool boolean isLocked()\r\n\t\tthrows PropertyNotPresentException;",
"public boolean isLocked() {\n\t\tif (locked == true)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isLocked() { return true; }",
"boolean isLocked();",
"boolean isLocked();",
"public boolean isLocked() { return RMUtils.boolValue(get(\"Locked\")); }",
"@GUARD\r\n\tboolean notLocked() {\r\n\t\treturn !locked;\r\n\t}",
"public final boolean getLocked() {\n return locked;\n }",
"public boolean GetIsLock()\n {\n return this._lock;\n }",
"protected boolean isLock() {\r\n return Lock.isLock(this.getBlock());\r\n }",
"public boolean getLocked() {\n\t\treturn isLocked;\n\t}",
"boolean isValueLocked();",
"public Boolean getLocked() throws NotLoadedException {\n return locked.getValue();\n }",
"@Override\n public boolean isLocked(Object o) {\n return false;\n }",
"public boolean isLocked() {\n boolean locked = super.isLocked();\n if (trackerPanel != null) {\n locked = locked || trackerPanel.getCoords().isLocked();\n }\n return locked;\n }",
"public @Bool boolean getLocked()\n\t\tthrows PropertyNotPresentException;",
"@Override\n\tpublic boolean isLocked() { The lock file must be manually deleted.\n\t\t//\n\t\treturn lockFile.exists();\n\t}",
"public boolean isLockEnabled() {\r\n\t\treturn lockEnabled;\r\n\t}",
"@Override\n public boolean isLocked() {\n Preconditions.checkState(connection != null);\n try {\n if (super.isLocked() && locked) {\n DbLockRecord record = checkExpiry(fetch(session, false, false));\n return (record.isLocked() && instanceId().compareTo(record.getInstanceId()) == 0);\n }\n return false;\n } catch (Exception ex) {\n throw new LockException(ex);\n }\n }",
"public boolean isPoolLocked(){return poolLocked;}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn !locked;\n\t}",
"public boolean isUnlocked() {\n return !isSolid;\n }",
"@Override\n public boolean isAccountNonLocked() {\n return Boolean.TRUE;\n }",
"@Override\r\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\r\n\t}",
"synchronized boolean isLeaseHeld() {\n return leaseId > -1;\n }",
"@Override\r\n public boolean isAccountNonLocked() {\r\n return true;\r\n }",
"public boolean isAccountNonLocked() {\n\t\treturn false;\r\n\t}",
"public boolean isAccountNonLocked() {\n\t\treturn false;\r\n\t}",
"@Override\n public boolean isAccountNonLocked() {\n return true;\n }",
"public boolean isAccountNonLocked() {\n\t\treturn false;\n\t}",
"public boolean isAccountNonLocked() {\n\t\treturn false;\n\t}",
"public boolean getDoorIsLocked()\n {\n return isLocked;\n }",
"public boolean isTmpLock() {\n \t\treturn tmpLock;\n \t}",
"@Override\r\n\tpublic boolean isAccountNonLocked() {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"protected synchronized boolean lock() {\n\t\ttry {\n\t\t\twhile(locked) {\n\t\t\t\tLogger.getInstance().log(\"Data is already locked waiting for the lock\", LoggerSeverity.VERBOSE);\n\t\t\t\tthis.wait();\n\t\t\t}\n\t\t}\n\t\tcatch (InterruptedException e) {\n\t\t\treturn false;\n\t\t}\n\t\tthis.locked = true;\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked()\n\t{\n\t\treturn true;\n\t}",
"public boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"public boolean isAccountNonLocked() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn false;\n\t}",
"@Override\n\t\t\t\tpublic boolean isAccountNonLocked() {\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"public boolean tryToLock() {\n // System.out.println(\"[MOSI] trylock \"+ this.hashCode() + \"(\"+l.getHoldCount()+\")\");\n try {\n return this.l.tryLock(1, TimeUnit.MILLISECONDS);\n } catch (InterruptedException ie) {\n return false;\n }\n }",
"@Override\n public boolean isAccountNonExpired() {\n return !locked;\n }",
"@Override\n public boolean isAccountNonLocked() {\n return false;\n }",
"@Override\n public boolean isAccountNonLocked() {\n return false;\n }",
"@Override\n public boolean isAccountNonLocked() {\n return false;\n }",
"public boolean isShowWhenLocked() {\n return getIntent().getBooleanExtra(\"StartActivityWhenLocked\", false);\n }",
"public boolean getlock()\r\n\t{\r\n\t\tif(cnt > 10)\r\n\t\t{\r\n\t\t\tcnt = 0;\r\n\t\t\treturn unlocked;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\npublic boolean isAccountNonLocked() {\n\treturn true;\n}",
"public final boolean hasOpLock() {\n\t\treturn m_oplock != null ? true : false;\n\t}",
"public boolean isAcquired() {\r\n return false;\r\n }",
"public boolean isResolveLock() {\n\t\treturn resolveLock;\n\t}",
"public final boolean isValueLockedSetted() {\n\t\treturn engine.isPropertySetted(Properties.VALUE_LOCKED);\n\t}",
"public boolean isDefaultLocked()\n\t{\n\t\treturn defaultLocked;\n\t}",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn isAccountNonLocked;\n\t}",
"@XmlElement\n public boolean isIsFileLocked() {\n return this.isFileLocked;\n }",
"public String isLockedFor() {\n return (lockId == null ? \"\" : lockId);\n }",
"@Override\n\tpublic boolean isAccountNonLocked() {\n\t\treturn accountNonLocked;\n\t}",
"boolean hasRowsLocked();",
"boolean isLeaseHeldByCurrentThread() {\n return thread == Thread.currentThread();\n }",
"@Override\n public boolean hasLockedKey(Object key) {\n return false;\n }",
"public boolean hasBeenAcquired(){\r\n\t\treturn !(acquiredBy == null);\r\n\t}",
"public boolean isSynchronizing() {\n\t\treturn false;\n\t}",
"public boolean isShifterLocked() {\n return isShifterLocked;\n }",
"@Override\npublic boolean isAccountNonLocked() {\n\treturn false;\n}",
"public boolean isLocked(int index){\n\t\tif(index==visits.size())\n\t\t\treturn false;\n\t\treturn locked.get(index);\n\t}",
"private boolean isBusy() {\n return currentStudent != null;\n }",
"@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}",
"protected void lockVmWithCompensationIfNeeded() {\n log.infoFormat(\"Locking VM(id = {0}) {1} compensation.\", getVmId(), isInternalExecution() ? \"without\" : \"with\");\n\n if (isInternalExecution()) {\n VmHandler.checkStatusAndLockVm(getVmId());\n } else {\n VmHandler.checkStatusAndLockVm(getVmId(), getCompensationContext());\n }\n }",
"public boolean isResolutionLocked() {\n return mainViewPanel.isResolutionLocked();\n }",
"boolean isAccountNonLocked();",
"boolean isAccountNonLocked();",
"public boolean isComposerLockAnalyzerEnabled() {\n return composerLockAnalyzerEnabled;\n }",
"public abstract boolean isLocked(String oid);"
] | [
"0.73449665",
"0.73406225",
"0.7318423",
"0.73046416",
"0.7199156",
"0.7174745",
"0.7133425",
"0.7125279",
"0.7103307",
"0.70931864",
"0.70395",
"0.70296186",
"0.70296186",
"0.701967",
"0.6892794",
"0.6866237",
"0.6842724",
"0.67849535",
"0.6774601",
"0.6748443",
"0.67418075",
"0.6733069",
"0.6730856",
"0.66800886",
"0.6529512",
"0.6497479",
"0.6484836",
"0.6471261",
"0.6415068",
"0.6314982",
"0.6278645",
"0.62769127",
"0.62769127",
"0.626026",
"0.6250139",
"0.62444305",
"0.62444305",
"0.62298214",
"0.6229455",
"0.6229455",
"0.6228594",
"0.6225393",
"0.6224781",
"0.6210365",
"0.6210365",
"0.6210365",
"0.6210365",
"0.6210365",
"0.6210365",
"0.6210365",
"0.6210365",
"0.6210365",
"0.6210365",
"0.6210365",
"0.6210365",
"0.6210365",
"0.6210365",
"0.62020224",
"0.61893725",
"0.61891073",
"0.61891073",
"0.6162578",
"0.6162578",
"0.6162578",
"0.6128831",
"0.6124358",
"0.6114897",
"0.61147183",
"0.61147183",
"0.61147183",
"0.6107753",
"0.6091175",
"0.6060829",
"0.6043944",
"0.60320365",
"0.60315025",
"0.60311824",
"0.60167444",
"0.6003717",
"0.59981745",
"0.59828466",
"0.59762776",
"0.5971498",
"0.5963765",
"0.5955828",
"0.59543616",
"0.5953278",
"0.5947278",
"0.5940975",
"0.5936486",
"0.5921434",
"0.5877753",
"0.5877753",
"0.585452",
"0.5843075",
"0.58393866",
"0.58393866",
"0.5836328",
"0.58359754"
] | 0.7302277 | 5 |
Returns amount of progress variation before notifying a progress change during estimation. | public float getProgressDelta() {
return mProgressDelta;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getProgress()\n {\n return ((double)getCount() / (double)getGoal());\n }",
"public int getProgress() {\n return Math.round(mProgress);\n }",
"public int getProgress() {\n\t\treturn activeQuest.getThreshold() - getRemaining();\n\t}",
"public float getProgress() {\n // Depends on the total number of tuples\n return 0;\n }",
"public double getProgressFraction() {\n return (double) schedule.getSteps() / config.getSimulationIterations();\n }",
"public int getProgress() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return -1;\n \n int num = (int)((System.currentTimeMillis()-startTime)*100/d);\n if(num>=100) num=99;\n return num;\n }",
"@Override\n\tpublic int estimateCurrentProgress() {\n\t\treturn counter.getCurrent();\n\t}",
"public int getProgress();",
"public Double getProgressPercent();",
"public Long getProgressTotalToDo();",
"private int getCompleteProgress()\n {\n int complete = (int)(getProgress() * 100);\n \n if (complete >= 100)\n complete = 100;\n \n return complete;\n }",
"public float getProgressPct() {\n return (float) currentCompactedKVs / getTotalCompactingKVs();\n }",
"public float getProgress() {\r\n\t\treturn ((float) dDownloaded / dFileSize);\r\n\t}",
"@FloatRange(from = 0, to = 1) float getProgress();",
"public DoubleExpression getProgress()\n {\n return progress;\n }",
"public float getProgress() {\r\n if (start == end) {\r\n return 0.0f;\r\n } else {\r\n return Math.min(1.0f, (pos - start) / (float)(end - start));\r\n }\r\n }",
"public int getProgress() {\n\t\treturn mProgress;\n\t}",
"public int progress() {\n return _progress;\n }",
"public int getPercentage() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) / 100;\r\n\r\n\t}",
"public int getProgress() {\r\n\t\tint progress = Math.round((float)mMax * mProgressDegrees / mTotalCircleDegrees);\r\n\t\treturn progress;\r\n\t}",
"int getProgressCount();",
"int getProgressCount();",
"int getProgressCount();",
"public int uploadingProgressBarGetRate() {\n return uploadingProgressBar.getProgress();\n }",
"public float getProgress() throws IOException {\n if (end == start) {\n return 0.0f;\n } else {\n return Math.min(1.0f, (in.getPosition() - start) / (float)(end - start));\n }\n }",
"public float getProgress() throws IOException {\r\n\t\tif (start == totalend) {\r\n\t\t\treturn 0.0f;\r\n\t\t} else {\r\n\t\t\treturn Math.min(1.0f, ((getFilePosition() - start) + finishLen) / (float) totalend);\r\n\t\t}\r\n\t}",
"public double progress() {\n if (damage <= 0) {\n return damage;\n }\n double n = noise.nextValue();\n damage = damage + (k * damage * damage) + l + n;\n return damage;\n }",
"double getChangePercent() {\n\t return 100 - (currentPrice * 100 / previousClosingPrice);\n\t }",
"public Double getProgress() {\r\n\treturn progress;\r\n}",
"public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_METERS) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn (int) (Math.pow((meters - MIN_METERS)\n\t\t\t\t/ (MAX_METERS - MIN_METERS) * Math.pow(100, CURVE),\n\t\t\t\t1.000d / CURVE));\n\t}",
"public int getOverallProgressPercent() {\n return overallProgressPercent;\n }",
"public double getPercentComplete() {\n\t\tthis.percent_complete = ((double) lines_produced / (double) height) * 100.0;\n\t\treturn this.percent_complete;\n\t}",
"public String getProgress() {\n return this.progress;\n }",
"public double getPercentChange() {\n return percentChange;\n }",
"public float getProgress() throws IOException {\n return currentRow / (endRow - header);\n }",
"public static float getReadProgress() {\n\t\treturn mrpl.getPercentComplete();\n\t}",
"public int percentSaveDone() {\n if (isSaveDone()) {\n return 100;\n }\n return percent;\n }",
"public int getProgressCount() {\n return progress_.size();\n }",
"public int getProgressCount() {\n return progress_.size();\n }",
"public int getProgressCount() {\n return progress_.size();\n }",
"public int getAmountDone();",
"@Override\n public float getProgress() throws IOException {\n return in.getProgress();\n }",
"public double getProgress(java.lang.CharSequence uuid) throws android.os.RemoteException;",
"public int getProgressCount() {\n return progress_.size();\n }",
"public int getProgressCount() {\n return progress_.size();\n }",
"public int getProgressCount() {\n return progress_.size();\n }",
"public Double getVolumeProgress() {\n return this.volumeProgress;\n }",
"public int getProgress(){\n return -1;\n }",
"@Override\n\tpublic float getProgress() throws IOException, InterruptedException {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic float getProgress() throws IOException, InterruptedException {\n\t\treturn 0;\n\t}",
"int getPercentageHeated();",
"public int monitorProgress() {\n int result = 0;\n if(iBypassCache) {\n try {\n result = this.iMaximum - available();\n } catch(IOException ioe) {\n throw new RuntimeException(\"Failure when monitoring real-time read progress!\");\n }\n } else {\n result = this.iMaximum - this.iRemainder;\n }\n return result;\n }",
"public int getStateProgress() {\n return theStateProgress;\n }",
"public double getPercentCompleted() {\n\t\treturn -1;\n\t}",
"public double calculateChangeToGive() {\r\n\t\treturn amountPaid - amountToPay;\r\n\t}",
"public int getPercentageComplete() {\n\t\tlong rawPercentage = (100*(System.currentTimeMillis() - startingTime))/(duration);\n\t\treturn rawPercentage >= 100 ? 100 : (int) rawPercentage;\n\t}",
"public synchronized float getProgressFloat() {\n BigDecimal bigDecimal = BigDecimal.valueOf(mProgress);\n return bigDecimal.setScale(mScale, BigDecimal.ROUND_HALF_UP).floatValue();\n }",
"@Override\n\t\tpublic float getProgress() throws IOException {\n\t\t\treturn 0;\n\t\t}",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public long getTotalAmountUploaded();",
"public double getCurrentPercentageError() {\n\t\tdouble returnValue = 0.0;\n\t\tint currentValue = this.readSensorValue();\n\t\tint optimum = getOptimumSensorValue(currentValue);\n\t\tif (currentValue > optimum) {\n\t\t\treturnValue = (double) (currentValue - optimum)\n\t\t\t\t\t/ (double) (this.highReadInValue - optimum);\n\t\t} else if (currentValue < optimum) {\n\t\t\treturnValue = -((double) (optimum - currentValue) / (double) (optimum - this.lowReadInValue));\n\t\t}\n\t\treturn returnValue;\n\t}",
"public double getTransferEffeciency() {\n double w;\n w = (x < y ? x : y);\n return w / thickness;\n\n }",
"int getProgress(int index);",
"int getProgress(int index);",
"int getProgress(int index);",
"double getTipAmount();",
"@Override\n public double getCONSUMPTION() {\n if (status && brightValue != 0) {\n this.consumption = (super.DEFAULTCONSUMPTION + 2) + (brightValue / 100);\n } else if (status) {\n this.consumption = super.DEFAULTCONSUMPTION + 2;\n } else if (status != true) {\n this.consumption = super.DEFAULTCONSUMPTION;\n }\n\n return consumption;\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public Long getProgressDone();",
"public void onProgressUpdate(int numRouleau,String prochain);",
"protected void calculateProgressDegrees() {\r\n\t\tmProgressDegrees = mPointerPosition - mStartAngle; // Verified\r\n\t\tmProgressDegrees = (mProgressDegrees < 0 ? 360f + mProgressDegrees : mProgressDegrees); // Verified\r\n\t}",
"private double computeDifferentialPCT(double currentValue, double average) {\n return average <= Double.MIN_VALUE ? 0.0 : (currentValue / average - 1) * 100.0;\n }",
"void progress(int pUnitsCompleted);",
"public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }",
"public double getPercentMutants() {\n\t\tdouble count = (double) getNumMutants();\n\t\tdouble pSize = (double) this.getPopSize();\n\n\t\treturn count*100.0 / pSize;\n\t}",
"@Override\n public String getSavingsPercentage() {\n\n final String savingsPercent = getElement(getDriver(), By.className(SAVINGS_PERCENTAGE),\n TINY_TIMEOUT).getText();\n setLogString(\"Savings Percentage:\" + savingsPercent + \"%\", true, CustomLogLevel.HIGH);\n return savingsPercent + \"%\";\n }",
"Double getTotalSpent();",
"public BigDecimal getPercentageProfitPStd();",
"private void updateProgress() {\n progressBar.setProgress( (1.0d * currentQuestion) / numQuestions);\n }",
"public int getScaledProgress(int i)\n\t{\n\t\treturn operatingTicks*i / currentTicksRequired;\n\t}",
"public int getPrintProgress(){\n\t\treturn printProgress;\n\t}",
"int getPulsePercentage();",
"public int getPercentage() {\r\n return Percentage;\r\n }",
"public float getStatusChange() {\n\t\treturn statusChance;\n\t}",
"public long amountUploaded();",
"@Override\n public double calculatePercentageExtra() {\n double percentageExtra = 0;\n \n percentageExtra += getTwoColourCost();\n \n if(getChemicalResistance()) {\n percentageExtra += getChemicalResistanceCost();\n }\n \n return percentageExtra;\n }",
"public int getExpectedNumber() {\n return getWholeProcessCount();\n }",
"public int getProteksi(){\n\t\treturn (getTotal() - getPromo()) * protectionCost / 100;\n\t}",
"public float getProgress(float ticks)\n {\n if (ticks > 1.0F)\n {\n ticks = 1.0F;\n }\n\n return this.lastProgress + (this.progress - this.lastProgress) * ticks;\n }",
"@java.lang.Override\n public com.clarifai.grpc.api.Progress getProgress() {\n return progress_ == null ? com.clarifai.grpc.api.Progress.getDefaultInstance() : progress_;\n }",
"public BigDecimal getTOTAL_DEFERRED_PROFIT() {\r\n return TOTAL_DEFERRED_PROFIT;\r\n }",
"private float valOf(SeekBar bar) {\n return (float) bar.getProgress() / bar.getMax();\n }",
"public float getBugReportProgress() {\n return (float) mBugReportProgress.get();\n }",
"public Number getPercentageComplete()\r\n {\r\n return (m_percentageComplete);\r\n }",
"public float getRemainingPercentage() {\n float percentage = (float) getRemainingTime() / this.duration;\n if (Float.isNaN(percentage)) {\n percentage = 1;\n }\n return Math.min(Math.max(0, percentage), 1);\n }"
] | [
"0.75506335",
"0.73286074",
"0.72543895",
"0.7107118",
"0.70774496",
"0.7050573",
"0.70460683",
"0.6924295",
"0.6892969",
"0.6814838",
"0.6786149",
"0.67838407",
"0.6735586",
"0.6730284",
"0.657921",
"0.65610015",
"0.6549625",
"0.65104395",
"0.648145",
"0.6472314",
"0.64590883",
"0.64590883",
"0.64590883",
"0.6449622",
"0.6402645",
"0.63420683",
"0.6341507",
"0.63376546",
"0.633655",
"0.6299011",
"0.6284544",
"0.6274407",
"0.62739974",
"0.62738305",
"0.6246114",
"0.62291205",
"0.62278455",
"0.6198399",
"0.6198399",
"0.6198399",
"0.6175031",
"0.6146712",
"0.6142395",
"0.6138465",
"0.6138465",
"0.6138465",
"0.61122",
"0.6109311",
"0.61019725",
"0.61019725",
"0.6094911",
"0.6088647",
"0.6083704",
"0.606264",
"0.60577697",
"0.60556936",
"0.60433954",
"0.60362285",
"0.5998933",
"0.5998933",
"0.5998933",
"0.5998756",
"0.59737444",
"0.5970736",
"0.5969624",
"0.5969624",
"0.5969624",
"0.5953019",
"0.5950066",
"0.5949045",
"0.5949045",
"0.5949045",
"0.59185755",
"0.5910958",
"0.58822316",
"0.5879192",
"0.5876677",
"0.5867643",
"0.58497936",
"0.58337337",
"0.58323944",
"0.58316016",
"0.58157897",
"0.5812176",
"0.58104223",
"0.57993424",
"0.5773714",
"0.5757467",
"0.5755038",
"0.5751799",
"0.5747697",
"0.5745396",
"0.5742509",
"0.57398695",
"0.5728558",
"0.5728553",
"0.5716808",
"0.5714665",
"0.56963277"
] | 0.6504585 | 18 |
Sets amount of progress variation before notifying a progress change during estimation. | public void setProgressDelta(float progressDelta) throws LockedException {
if (isLocked()) {
throw new LockedException();
}
if (progressDelta < MIN_PROGRESS_DELTA ||
progressDelta > MAX_PROGRESS_DELTA) {
throw new IllegalArgumentException();
}
mProgressDelta = progressDelta;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setProgress(float progress);",
"public void setProgress(int value);",
"void setProgress(@FloatRange(from = 0, to = 1) float progress);",
"void setProgress(int progress);",
"void setProgress(int progress);",
"public void setProgress(int progress) {\n \t\t\tsynchronized (this) {\n \t\t\t\tm_progress = progress;\n \t\t\t\tthis.notify();\n \t\t\t}\n \t\t}",
"public void setProgress(BigValue progress) {\n this.progress = progress;\n this.checkProgress();\n }",
"public abstract void setProgress (int currentStep, int totalSteps);",
"public void sendExperienceChange ( float progress ) {\n\t\texecute ( handle -> handle.sendExperienceChange ( progress ) );\n\t}",
"private void updateAgentChangeFromSlider(int progress) {\n\t\tplayer.setAgentNumberChange(progress / 10);\n\n\t}",
"private void setProgressPercent(Integer integer) {\n\t\t\n\t}",
"public void setProgress(float p) {\n _progress = Math.max(0.0f, Math.min(1.0f, p));\n }",
"protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }",
"public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }",
"void setVariation(double variation);",
"public abstract void setProgress (String description, int currentStep, int totalSteps);",
"public void setProgressValue(float value) {\n\t\tprogress_.setValue(value);\n\t}",
"public void setProgress(int percent) {\n setProgress((float) percent / 100);\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n pDialog.setProgress(progress[0]);\n\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"public void setVolumeProgress(Double volumeProgress) {\n this.volumeProgress = volumeProgress;\n }",
"protected void onProgressUpdate(String... progress) {\n\t\t\t\t\t\t// Set progress percentage\n\t\t\t\t\t\tprgDialog.setProgress(Integer.parseInt(progress[0]));\n\t\t\t\t\t}",
"private void updateProgress() {\n progressBar.setProgress( (1.0d * currentQuestion) / numQuestions);\n }",
"public EdgeNeon setAmount(double value) throws ParameterOutOfRangeException\n {\n\t\tif(value > 100.00 || value < 0.00)\n\t {\n\t throw new ParameterOutOfRangeException(value, 0.00, 100.00);\n\t }\n\n m_Amount = value;\n setProperty(\"amount\", value);\n return this;\n }",
"public void setProgress(int progress) {\n\t\tif (progress > mMax || progress < 0) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"Progress (%d) must be between %d and %d\", progress, 0, mMax));\n\t\t}\n\t\tmProgress = progress;\n\t\tinvalidate();\n\t}",
"public void updateProgress(int tier){\n this.progress.add((this.level*tier));\n this.checkProgress();\n }",
"public void setProgress(String progress) {\n this.progress = progress;\n }",
"private void updateMediaChangeFromSlider(int progress) {\n\t\tplayer.setMediaReachChange(progress / 10);\n\t}",
"@Override\n\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\tboolean fromUser) {\n\t\t\tcustomPercent = progress / 100.0;\n\t\t\tupdateCustom();\n\t\t\t\n\t\t}",
"@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tsuper.onProgressUpdate(progress);\n\n\t\t\tdialog.setProgress(progress[0]);\n\t\t}",
"public void setProgress(float progress) {\n currentProgress = progress;\n callback.onPercentChanged(progress);\n for (StateOfViews it : mappedViews) {\n it.startV.setX(it.origDimens.x + (it.endV.getX() - it.origDimens.x) * progress);\n it.startV.setY(it.origDimens.y + (it.endV.getY() - it.origDimens.y) * progress);\n it.startV.getLayoutParams().width = (int) (it.origDimens.width + ((it.endV.getWidth() - it.origDimens.width) * progress));\n it.startV.getLayoutParams().height = (int) (it.origDimens.height + ((it.endV.getHeight() - it.origDimens.height) * progress));\n it.startV.requestLayout();\n }\n }",
"public ChannelProgressivePromise setProgress(long progress, long total)\r\n/* 63: */ {\r\n/* 64: 95 */ super.setProgress(progress, total);\r\n/* 65: 96 */ return this;\r\n/* 66: */ }",
"private void setProgress(String what)\n {\n if (progressBar != null)\n {\n double elapsed = (System.currentTimeMillis() - startMs) / 1000.;\n String etl = String.format(\"Elapsed: %4.0f\", elapsed);\n progressBar.setEstTime(etl);\n progressBar.setWorkingOn(what);\n progressBar.setProgress(-1);\n }\n }",
"public void setProgress(int progress) {\r\n\t\tif (mProgress != progress) {\r\n\t\t\tmProgress = progress;\r\n\t\t\tif (mOnCircularSeekBarChangeListener != null) {\r\n\t\t\t\tmOnCircularSeekBarChangeListener.onProgressChanged(this, progress, false);\r\n\t\t\t}\r\n\r\n\t\t\trecalculateAll();\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t}",
"void setFlow(double amount);",
"public void setProgress(int progressValue) {\n progress.set(defaultToHundred(progressValue));\n indeterminate.set(progressValue < 0);\n }",
"@Override\r\n\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\r\n\t\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\td(\"gain bar progress changed to \" + progress);\r\n\t\t\t\t\talterGain(progress);\r\n\t\t\t\t}",
"public void setTipPercentage(double newTip) {\n tip = newTip;\n }",
"private void updateProgress(int progress) {\n if (myHost != null && progress != previousProgress) {\n myHost.updateProgress(progress);\n }\n previousProgress = progress;\n }",
"@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onProgressChanged(SeekArc seekArc, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tprog = progress;\n\t\t\t}",
"@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}",
"public void increment() { this.progressBar.setValue(++this.progressValue); }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n }",
"public void sendExperienceChange ( float progress , int level ) {\n\t\texecute ( handle -> handle.sendExperienceChange ( progress , level ) );\n\t}",
"protected void onProgressUpdate(Integer... progress) {\n\t\t}",
"@Override\r\n\t\t\tpublic void onProgressChanged(SeekBar seekbar, int progress, boolean arg2) {\n\t\t\t\ttv3.setText(String.format(\"%.0f\", 200*progress-1000.));\r\n\t\t\t}",
"void setCurrentAmount(double newAmount) {\n this.currentAmount = newAmount;\n }",
"@BindingAdapter(value = {\"app:progressScaled\", \"android:max\"}, requireAll = true)\n public static void setProgress(ProgressBar progressBar,int like,int max){\n if((like * max / 5)>max){\n progressBar.setProgress(max);\n }else{\n progressBar.setProgress(like * max / 5);\n }\n }",
"private void setDiscountedPrice() {\n seekbarNewprice.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n tvDiscountPerc.setText(progress * 5 + \"%\");\n try {\n double originalPrice = Double.parseDouble(etOriginalPrice.getText().toString());\n double sp = (progress * 5 * originalPrice) / 100;\n\n tvNewPrice.setText(String.format(Locale.US, \"%.2f\", originalPrice - sp));\n } catch (NumberFormatException ne) {\n ne.printStackTrace();\n }\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n }",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tfloat set = (float) progress/100;\n\t\t\t\tLog.v(\"set\", set+\"\");\n\t\t\t\tmMediaPlayer[0].setVolume(set,set);\n\t\t\t}",
"@Override \r\n\t\t public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n\t\t \tint actualValue = Math.round(progress/100)*100;\r\n\t\t \tactualValue += delayMinimum;\t\t \t\r\n\t\t seekValue.setText(\"\"+actualValue);\t\t\r\n\t\t delayTime = actualValue;\r\n\t\t }",
"public void onProgressUpdate(int numRouleau,String prochain);",
"void setExtremeSpikeIncrease(VariableAmount increase);",
"public void setProbMut (float value) {\r\n mut_prob= value;\r\n }",
"@Override\n public void transferred(long num) {\n publishProgress((int) ((num / (float) totalSize) * 100));\n }",
"public void setValue(double value) {\n if(value<=0){\n mDrange = 0;\n pb.setProgress(0);\n ProgressDragLayout.this.requestLayout();\n ProgressDragLayout.this.invalidate();\n return;\n }\n progressAdd = 0;\n mDrange = 0;\n drange_1=0;\n int progress = (int) (value * 100);\n size = progress;\n double drange = (int) (value * viewWidth);\n drange_1 = drange / size;\n Log.e(\"size-------\", size +\"\");\n mhander.sendEmptyMessageDelayed(view_top.hashCode(),20);\n }",
"public void setOverallProgressPercent(int value) {\n this.overallProgressPercent = value;\n }",
"public void setProgressPublic(int progress) {\n\t\tsuper.setProgress(progress);\n\t}",
"protected void onProgressUpdate(Integer... progress) {\n }",
"@Override\n public void update(final Progress progress) {\n SwingUtilities.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n progressBar.setValue(progress.getIntPercentage());\n progressField.setText(roundToSingleDigit(progress.getPercentage()) + \"%\");\n }\n });\n }",
"@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progress[0]);\n\n\t\t\t// updating percentage value\n\t\t\ttxtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n\t\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n TextView txtV_quantidade = inf.findViewById(R.id.volume_12);\n txtV_quantidade.setText(\"\"+progress+\" copo(s)\");\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }",
"@Override\n public void onProgressUpdate(Integer... progress)\n {\n _dialog.setProgress(progress[0]);\n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n progressValue = progress;\r\n resultsTextView.setText(\"Range: 0-\" + seekBar.getProgress());\r\n //Toast.makeText(MainActivity.this, \"Changing max value!\", Toast.LENGTH_SHORT).show();\r\n }",
"@Override\n\tpublic void progress(int arg0) {\n\t\tm_progress = arg0 / 10;\n\t\t//Main.log(TAG, \"progress : \" + m_progress + \"%\");\n\t}",
"private void updateSplitValue() {\n\t\tsplitValue = peopleSeekBar.getProgress();\t\n\t\tif ( splitValue < 1 ) {\n\t\t\tsplitValue = 1;\n\t\t}\n\t}",
"@Test\n public void testSetPercentComplete_1()\n throws Exception {\n ScriptProgressContainer fixture = new ScriptProgressContainer(1, \"\");\n int percentComplete = 1;\n\n fixture.setPercentComplete(percentComplete);\n\n }",
"public void setPercentage(int i){\n\t\tif(loadBar != null) loadBar.setValue(i);\n\t\tif(i >= 100){\n\t\t\tdispose();\n\t\t}\n\t}",
"void onProgress(float progress);",
"@Override\n public void setAudioVolumeInsideVolumeSeekBar(int i) {\n float currentVolume = 1.0f;\n if (i < PlayerConstants.MaxProgress) {\n currentVolume = (float)(1.0f - (Math.log(PlayerConstants.MaxProgress - i) / Math.log(PlayerConstants.MaxProgress)));\n }\n setAudioVolume(currentVolume);\n //\n }",
"@Override\n public void propertyChange(PropertyChangeEvent pce) {\n if (\"progress\".equals(pce.getPropertyName()) ) {\n int progress = (Integer) pce.getNewValue();\n jProgressBar1.setValue( progress );\n if (progress == 100 ) {\n jBtnReadFile.setEnabled(true);\n jBtnWriteFile.setEnabled(true);\n }\n }\n }",
"@Override\r\n protected void onProgressUpdate(Integer... progress) {\n }",
"public void uploadingProgressBarSet(int processRate) {\n uploadingProgressBar.setProgress(processRate);\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n distanceValue.setText(getString(R.string.fullscreen_dialog__value_in_meter,progress));\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n }",
"public void setTaxPercentage(double newTax) {\n tax = newTax;\n }",
"private void setTipPercentage(){\n System.out.println(\"You indicated the service quality was \"+\n serviceQuality+\". What percentage tip would you like to leave?\");\n tipRate=keyboard.nextDouble();\n \n \n }",
"@Override\n\tpublic void execute()\n\t{\n\t\tintake.set(percentage);\n\t}",
"public void setBakeProgress(int bakeProgress) {\n\t\tactiveQuest.setRequirement_left(bakeProgress);\n\t}",
"@Override\n\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\t\tswitch (evt.getPropertyName()) {\n\n\t\t\t\t\t// propertyName progress tells us progress value\n\t\t\t\t\tcase \"progress\":\n\t\t\t\t\t\twindow.setScalingProgressBar((Integer) evt.getNewValue());\n\t\t\t\t\t}\n\n\t\t\t\t}",
"public void setChangeRateFactor(double percent) {\r\n\t\tchangeRateFactor = Math.abs(percent);\r\n\t}",
"public void setAmount(double value) {\n this.amount = value;\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n mEqualizer.setBandLevel(band,\n (short) (progress + minEqualizer));\n }",
"public void scanningBlurScoreBarSetProgress(int progress) {\n if (progress > scanningBlurValueBar.getProgress()) {\n scanningBlurValueBar.setProgress(progress);\n scanningBlurScoreBarDecrease();\n }\n }",
"public void onProgressUpdate(Integer ... value){\n pb.setVisibility(View.VISIBLE);\n pb.setProgress(value[0]);\n }",
"@Override \n\t public void onProgressChanged(SeekBar Bar, int progress, boolean fromUser) {\n\t \n\t \t// Adapt value TextView Rate to the new value of SeekBar Bar\n\t \tif(fromUser) { \n\t \t\tint value = progress; \n\t \t\tRate.setText(String.format(\"%d\", value));\n\t \t} \n\t }",
"public void setMyIncomeMultiplier(float factor) throws CallbackAIException;",
"void setPulsePercentage(int percentage);",
"public void increasePrice(int percentage);",
"@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n\n progressBar.setProgress(values[0].intValue());\n\n }",
"public void chg() {\n currentChangeStep = 3;\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n progressBar.setVisibility(View.VISIBLE);\n\n // updating progress bar value\n progressBar.setProgress(progress[0]);\n\n // updating percentage value\n txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"public void setExecutionPercentage(double percentage);",
"public void setProgression(int channel, int progression) {\n\t\tif (progression > 0) {\n\t\t\tchan[channel].progression = progression;\n\t\t}\n\t}",
"private void setVariation(int variation) {\n\t\tvariation = Math.abs(variation);\n\t}",
"@Override\n public void resume() {\n originProgress = 10;\n mSkbProgress.setProgress((int) originProgress);\n }"
] | [
"0.7084081",
"0.700154",
"0.6912164",
"0.6882074",
"0.6882074",
"0.6861678",
"0.6640632",
"0.6583202",
"0.655008",
"0.65121454",
"0.6437862",
"0.63822556",
"0.63396823",
"0.63003993",
"0.6288806",
"0.61641014",
"0.6158109",
"0.61559635",
"0.61252785",
"0.6102799",
"0.6033366",
"0.602972",
"0.60272247",
"0.6024113",
"0.6012473",
"0.60045856",
"0.59834075",
"0.59702414",
"0.59695774",
"0.5951441",
"0.5931153",
"0.5925888",
"0.5924374",
"0.5912242",
"0.5901834",
"0.5899312",
"0.58883214",
"0.5877981",
"0.587597",
"0.5861224",
"0.585492",
"0.5847669",
"0.5833193",
"0.5826187",
"0.5824728",
"0.5818717",
"0.5802988",
"0.57991827",
"0.5798794",
"0.5777509",
"0.57710475",
"0.57539743",
"0.57497984",
"0.5743972",
"0.57381153",
"0.5737476",
"0.57329744",
"0.5729065",
"0.57232857",
"0.571981",
"0.5716929",
"0.57144994",
"0.5714493",
"0.5714493",
"0.570813",
"0.56800735",
"0.567944",
"0.56740344",
"0.56615144",
"0.5645034",
"0.56411356",
"0.5631742",
"0.56276906",
"0.5626285",
"0.56166977",
"0.561102",
"0.5610963",
"0.5610963",
"0.5609421",
"0.5607307",
"0.5602622",
"0.55985314",
"0.5598126",
"0.55947185",
"0.55917597",
"0.5591415",
"0.558489",
"0.5583448",
"0.5580672",
"0.55722153",
"0.5558168",
"0.5557127",
"0.5552082",
"0.5551246",
"0.5547321",
"0.5540748",
"0.55401677",
"0.55379236",
"0.5537113"
] | 0.57575226 | 51 |
Returns amount of confidence expressed as a value between 0.0 and 1.0 (which is equivalent to 100%). The amount of confidence indicates the probability that the estimated result is correct. Usually this value will be close to 1.0, but not exactly 1.0. | public double getConfidence() {
return mConfidence;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getConfidence() {\n return !Double.isNaN(confidence) ? MathUtil.coerce(0, 1, confidence) : 0.0;\n }",
"float getConfidence();",
"public float getConfidence();",
"public double confidence() {\n return this.confidence;\n }",
"public float getConfidence() {\n return confidence;\n }",
"public Integer getConfidence() {\r\n\t\treturn confidence;\r\n\t}",
"public int getConfidence() {\n\t\treturn confidence;\r\n\t}",
"public double getConfidence() {\n\t\treturn confidence;\n\t}",
"public float confidence() {\r\n\t\treturn LeapJNI.Hand_confidence(this.swigCPtr, this);\r\n\t}",
"public String getConfidenceString() {\n final DecimalFormat format = new DecimalFormat(\"0.000\");\n return !Double.isNaN(confidence) ? format.format(MathUtil.coerce(0, 1, getConfidence()) * 100.0f) + \"%\" : \"N/A\";\n }",
"public double confidenceHi() \n {\n double mean = mean();\n double stddev = stddev();\n return mean + 1.96 * stddev / Math.sqrt(count);\n }",
"public double getConfidence()\n {\n return this.confidence;\n }",
"public double confidenceHi() {\n\t\treturn mean() + ((constant * stddev())/Math.sqrt(trails));\n\t}",
"public double confidenceHi(){\n return mean() + ((1.96 * stddev()) / Math.sqrt(numberOfTrials));\n }",
"public double confidenceHi(){\n return (this.average + (this.confidence_constant * this.std)/Math.sqrt((double) this.num_trials));\n }",
"public double confidenceHi() {\n return mean() + CONFIDENCE * stddev() / Math.sqrt(trials);\n }",
"public double confidenceHi() {\n return mean() + CONFIDENCE_95 * stddev() / Math.sqrt(trials);\n }",
"public double confidenceHi() {\n return mean() + ((1.96 * stddev()) / Math.sqrt(trials));\n }",
"String getConfidence();",
"@Override\n\tpublic double confidence(Example example) {\n\t\treturn 0;\n\t}",
"public double confidenceHi() {\n\t\t return mean() + ((CONFIDENCE_NUM * stddev()) / Math.sqrt(trials));\n\t }",
"public double confidenceHigh() {\n return mean() + ((1.96 * stddev()) / Math.sqrt(this.numTrials));\n }",
"public double confidenceHi() {\n\t\treturn mean() + 1.96 * stddev() / Math.sqrt(threshold.length);\n\t}",
"public double confidenceLow() {\n return mean() - ((1.96 * stddev()) / Math.sqrt(this.numTrials));\n }",
"public double confidenceLow() {\n return (mean() - 1.96 * stddev() / Math.sqrt(trials));\n }",
"public double confidenceHigh() {\n return (mean() + 1.96 * stddev() / Math.sqrt(trials));\n }",
"public double confidenceLo() \n {\n double mean = mean();\n double stddev = stddev();\n return mean - 1.96 * stddev / Math.sqrt(count);\n }",
"public Confidence getConfidence() {\n return confidence;\n }",
"public double confidenceLo(){\n return mean() - ((1.96 * stddev()) / Math.sqrt(numberOfTrials));\n }",
"public double getConfidenceLevel ()\n { \n return confidenceLevel;\n \n }",
"public double confidenceHi() {\n double conHi = mean() + CONFIDENCE_95 * StdStats.var(trialResult) / Math.sqrt(trials);\n return conHi;\n }",
"public double confidenceHi() {\n\t\treturn mean + 1.96 * stddev / Math.sqrt(experiments);\n\t}",
"public double confidenceHi() {\n double high = mean()+1.96*stddev()/Math.sqrt(mProbabilities.length);\n return high;\n }",
"public double confidenceHigh() {\n\t\treturn (double) mean()+(1.96*stddev()/Math.sqrt(myData.length));\n\t}",
"public double confidenceHi() {\n return this.mean() + this.stddev() * 1.96 / Math.sqrt(this.threshold.length);\n\n }",
"public void setConfidence(final Double confidence);",
"public double confidenceHigh() {\n return mean() + (1.96 * stddev() / Math.sqrt(times));\n }",
"public double confidenceLow() {\n return mean() - (1.96 * stddev() / Math.sqrt(times));\n }",
"public double confidenceLow() {\n\t\treturn (double) mean()-(1.96*stddev()/Math.sqrt(myData.length));\n\t}",
"public double confidenceHi() {\n double confidenceLevel = 1.96;\r\n double temp = confidenceLevel * stddev()/Math.sqrt(stats.length);\r\n return mean()+temp;\r\n }",
"public double confidenceHi() {\n double conHi = mean() + CONFIDENCE_95 * stddev() / (Math.sqrt(t));\n return conHi;\n }",
"public double confidenceLo() {\n return mean() - ((1.96 * stddev()) / Math.sqrt(trials));\n }",
"public double confidenceLo(){\n return (this.average - (this.confidence_constant * this.std)/Math.sqrt((double) this.num_trials));\n }",
"public double confidenceLo() {\n return mean() - CONFIDENCE_95 * stddev() / Math.sqrt(trials);\n }",
"public double confidenceLo() {\n\n\t\treturn mean() - ((constant * stddev())/Math.sqrt(trails));\n\t}",
"public double confidenceLo() {\n return mean() - CONFIDENCE * stddev() / Math.sqrt(trials);\n }",
"public double confidenceHi() {\r\n\t\treturn confidenceHi;\r\n\t}",
"public double confidenceLo() {\n double low = mean()-1.96*stddev()/Math.sqrt(mProbabilities.length);\n return low;\n }",
"@NotNull\n @JsonProperty(\"confidence\")\n public Double getConfidence();",
"public double confidenceLo() {\n\t\treturn mean() - 1.96 * stddev() / Math.sqrt(threshold.length);\n\t}",
"public double confidenceHi() {\n\t\treturn confidenceHi;\n\t}",
"public double confidenceHi() { \n double hiBound = sampleMean \n + 1.96 * sampleStanDevi / Math.sqrt(times);\n return hiBound;\n }",
"public abstract double expectedShortfall (\n\t\tfinal int confidenceCount)\n\t\tthrows java.lang.Exception;",
"public double confidenceLo() {\n return this.mean() - this.stddev() * 1.96 / Math.sqrt(this.threshold.length);\n }",
"public double confidenceLo() {\n\t\t return mean() - ((CONFIDENCE_NUM * stddev()) / Math.sqrt(trials));\n\t }",
"public double confidenceLo() {\n\t\treturn mean - 1.96 * stddev / Math.sqrt(experiments);\n\t}",
"public double confidenceHi() {\n return mu + 1.96*sig/Math.sqrt(t);\n }",
"public float getChance()\n {\n return 1.0f;\n }",
"public double confidenceHigh() {\n return confidenceHigh;\n }",
"public boolean setConfidence(double value) {\n\t\tboolean valid;\n\t\tif (valid = value >= 0 && value <= 100) {\n\t\t\tconfidence = value;\n\t\t}\n\t\treturn valid;\n\t}",
"public double confidenceLo() {\n double confidenceLevel = 1.96;\r\n double temp = confidenceLevel * stddev()/Math.sqrt(stats.length);\r\n return mean()-temp;\r\n }",
"public double getTotalAmountOfInterest(){\n\t\tdouble amount = getAmountOfFixedPayments()*no_years*no_payments_yearly - principal_amount;\n\t\tdouble result = Math.round(amount*100.0) / 100.0;\n\t\treturn result;\n\t}",
"public Prediction apply( double[] confidence );",
"public double confidenceLo() {\n double conLo = mean() - CONFIDENCE_95 * StdStats.var(trialResult) / Math.sqrt(trials);\n return conLo;\n }",
"public double confidenceLo() {\n return mu - 1.96*sig/Math.sqrt(t);\n }",
"public double confidenceLo() {\n double conLo = mean() - CONFIDENCE_95 * stddev() / (Math.sqrt(t));\n return conLo;\n }",
"public double confidenceLo() {\r\n\t\treturn confidenceLo;\r\n\t}",
"public double confidenceLo() {\n\t\treturn confidenceLow;\n\t}",
"private double computeDifferentialPCT(double currentValue, double average) {\n return average <= Double.MIN_VALUE ? 0.0 : (currentValue / average - 1) * 100.0;\n }",
"int getLikelihoodValue();",
"@FloatRange(from = 0.0, to = 1.0)\n public float getConfidenceScore(@EntityType String entity) {\n return mEntityConfidence.getConfidenceScore(entity);\n }",
"public double confidenceLo() {\n double lowBound = \n sampleMean - 1.96 * sampleStanDevi / Math.sqrt(times);\n return lowBound;\n }",
"public double getHighestConfidence() {\n\t\tdouble best = Double.MIN_VALUE;\n\n\t\tfor (ResultConfidencePairing rcp : m_results) {\n\t\t\tif (rcp.getConfidence() > best)\n\t\t\t\tbest = rcp.getConfidence();\n\t\t}\n\t\treturn best;\n\t}",
"public double calculateAccuracy() {\n final long divisor = truePositive + trueNegative + falsePositive + falseNegative;\n if(divisor == 0) {\n return 0.0;\n } else {\n return (truePositive + trueNegative) / (double)divisor;\n }\n }",
"public Double getTotalAnomalyPercentage();",
"public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_METERS) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn (int) (Math.pow((meters - MIN_METERS)\n\t\t\t\t/ (MAX_METERS - MIN_METERS) * Math.pow(100, CURVE),\n\t\t\t\t1.000d / CURVE));\n\t}",
"private Double calculateConfidence(final List<Order> orders, final Association association) {\n\t\tdouble leftSupport = 0;\n\n\t\tfor (Order order : orders) {\n\t\t\tif (order.getItems().containsAll(association.getLeft())) {\n\t\t\t\tleftSupport++;\n\t\t\t}\n\t\t}\n\n\t\tif (leftSupport > 0) {\n\t\t\treturn association.getSupport() / (leftSupport / orders.size());\n\t\t}\n\n\t\treturn 0d;\n\t}",
"public double getHonesty(){\n\t\treturn (this.pct_honest);\n\t}",
"public float getStatusChange() {\n\t\treturn statusChance;\n\t}",
"public double getPercentageSensitivity() {\n return percentageSensitivity;\n }",
"public double getSlopeConfidenceInterval() throws MathException {\n return getSlopeConfidenceInterval(0.05d);\n }",
"int getPercentageHeated();",
"public double getDodgeChance() {\n return Math.min((this.getAgility().getAbilityValue() / 4.0) * 0.01, 1);\n }",
"public double testAccuracy() {\r\n\t\tdouble accuracy = 0;\r\n\t\tint i = 0;\r\n\t\tdouble split = ((float)dataEntries.size()/(float)100)*70;\r\n\t\t\r\n\t\t//Filling arrays with the correct and predicted results to compare.\r\n\t\tfor (i=(int)split; i<dataEntries.size(); i++) {\r\n\t\t\t\tEntry en = dataEntries.get(i);\r\n\t\t\t\tcorrectArray.add(en.getHasCOVID19());\r\n\t\t\t\tdouble diagnosis = calcProbs(new Entry(en.getTemperature(), en.getAches(), en.getCough(), en.getSoreThroat(), en.getSoreThroat()));\r\n\t\t\t\tif (diagnosis>0.5) { predictArray.add(\"yes\"); }\r\n\t\t\t\telse { predictArray.add(\"no\"); }\r\n\t\t}\r\n\t\t\r\n\t\t//Comparing the results of \"hasCOVID19\" to each other.\r\n\t\tfor(i=0;i<correctArray.size();i++) {\r\n\t\t\tif (correctArray.get(i).equals(predictArray.get(i))) {\r\n\t\t\t\taccuracy++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Getting the result as a percentage and returning it.\r\n\t\taccuracy /= correctArray.size();\r\n\t\treturn accuracy * 100;\r\n\t}",
"private double gradeQuiz() {\n int numCorrect = getNumberCorrect();\n double percentage = (numCorrect / numQuestions) * 100;\n return percentage;\n }",
"public double getCurrentPercentageError() {\n\t\tdouble returnValue = 0.0;\n\t\tint currentValue = this.readSensorValue();\n\t\tint optimum = getOptimumSensorValue(currentValue);\n\t\tif (currentValue > optimum) {\n\t\t\treturnValue = (double) (currentValue - optimum)\n\t\t\t\t\t/ (double) (this.highReadInValue - optimum);\n\t\t} else if (currentValue < optimum) {\n\t\t\treturnValue = -((double) (optimum - currentValue) / (double) (optimum - this.lowReadInValue));\n\t\t}\n\t\treturn returnValue;\n\t}",
"public abstract double expectedShortfall (\n\t\tfinal double confidenceLevel)\n\t\tthrows java.lang.Exception;",
"public final double getPercentageComplete() {\n \t\tdouble percentageComplete = 0;\n \t\tfor (StoppingCondition condition : stoppingConditions) {\n \t\t\tif (condition.getPercentageCompleted() > percentageComplete) {\n \t\t\t\tpercentageComplete = condition.getPercentageCompleted();\n \t\t\t}\n \t\t}\n \t\treturn percentageComplete;\n \t}",
"public double getProbability() {\n\t\treturn getD_errorProbability();\n\t}",
"public double getPercentComplete() {\n\t\tthis.percent_complete = ((double) lines_produced / (double) height) * 100.0;\n\t\treturn this.percent_complete;\n\t}",
"public BigDecimal getPercentageProfitPStd();",
"public abstract double var (\n\t\tfinal int confidenceCount)\n\t\tthrows java.lang.Exception;",
"public double getPrecision() {\n final int totalCount = getTrueErrorCount() + getFalseErrorCount();\n if (totalCount == 0) {\n return 1;\n } else {\n return getTrueErrorCount() / (double) totalCount;\n }\n }",
"public double getNumberOfPredictedPositive() {\n\t\treturn numberOfTruePositives + numberOfFalsePositives;\n\t}",
"public double findConfidence(Rule rule) {\n\t\t\tint LHSCount = 0;\n\t\t\tint LHSAndRHSCount = 0;\n\t\t\t\n\t\t\tArrayList<String> LHSAndRHS = new ArrayList<String>();\n\t\t\t\n\t\t\tLHSAndRHS.addAll(rule.LHS);\n\t\t\tLHSAndRHS.addAll(rule.RHS);\n\t\t\t\n\t\t\tLHSCount = findCount(rule.LHS);\n\t\t\tLHSAndRHSCount = findCount(LHSAndRHS);\n\t\t\t\n\t\t\treturn (1.0*LHSAndRHSCount)/LHSCount;\n\t\t}",
"public double getStaySuccessRate() {\n if (total_stayed == 0)\n return 0;\n return (double) won_stayed / total_stayed * 100;\n }",
"public double getAccuracy(){\n return (numOfHits/numOfGuesses);\n }",
"public Float getPercentageNumVisitorsAboveTreshold() {\n\treturn FloatUtils.calculatePercentage(numVisitorsAboveTreshold, totalAccountNumber);\n }",
"public int computeStatus() {\n\t\tif(isOutcomeExceeded()) return 0;\r\n\t\t\r\n\t\t//the new loan is too expensive\r\n\t\tif(isOutcomeExceeded(mMonthlyLoan)) return 0;\r\n\t\t\r\n\t\tint domainCoeff = DBOperations.getDomainCoeffById(mDomainId); // (0, 10] \r\n\t\tint expCoeff = DBOperations.getExperienceCoeffById(mExperienceId); // (0, 5]\r\n\t\t\r\n\t\tint backgroundCoeff = domainCoeff * expCoeff; // (0, 50]\r\n\t\tif(isIncomeRaising) backgroundCoeff *= 2; // (0, 100]\r\n\t\t\r\n\t\tint incomeCoeff = getIncomeWeight(mMonthlyIncome); // (0, 100]\r\n\t\t\r\n\t\tint coeff = (int) ((backgroundCoeff * 0.20) + (incomeCoeff * 0.55)); // (0, 75]\r\n\t\tif(mHadOtherLoans) coeff += 5; // (0, 80]\r\n\t\tif(mHasDelayedPays) coeff -= 10; // (0, 80]\r\n\t\t\r\n\t\tif((mMonthlyIncome - mMonthlyOutcome) * MAXIMUM_SURE_OUTCOME_PERCENTAGE / 100 >= mMonthlyLoan) {\r\n\t\t\tcoeff += 20; // (0, 100]\r\n\t\t}\r\n\t\t\r\n\t\tif(coeff <= 25) return 0;\r\n\t\treturn coeff < 55 ? 1 : 2;\r\n\t}"
] | [
"0.78179747",
"0.7585187",
"0.7372572",
"0.73433137",
"0.72368664",
"0.7157623",
"0.7157347",
"0.7119267",
"0.7116276",
"0.7090907",
"0.7089661",
"0.7074982",
"0.70415807",
"0.6972049",
"0.6894532",
"0.6854308",
"0.6850974",
"0.6832434",
"0.68013465",
"0.6782663",
"0.67239547",
"0.6704262",
"0.6703787",
"0.6698162",
"0.6667258",
"0.6665313",
"0.6664429",
"0.6658435",
"0.6609258",
"0.65502065",
"0.6534115",
"0.6524252",
"0.6512791",
"0.6495665",
"0.64791536",
"0.6476214",
"0.6473991",
"0.6473421",
"0.64708745",
"0.64707017",
"0.64599377",
"0.64196193",
"0.64092714",
"0.6381847",
"0.6374342",
"0.63742256",
"0.63681287",
"0.6350128",
"0.6335149",
"0.62959474",
"0.6278765",
"0.62549156",
"0.6232962",
"0.6231403",
"0.6194158",
"0.61928743",
"0.6171959",
"0.6140238",
"0.6124357",
"0.61046493",
"0.60672283",
"0.60509384",
"0.59990746",
"0.59870446",
"0.5923564",
"0.5887712",
"0.58837956",
"0.585378",
"0.58466446",
"0.58415765",
"0.5801929",
"0.58018607",
"0.57975584",
"0.57961637",
"0.5781318",
"0.57784456",
"0.57557243",
"0.57413495",
"0.57223696",
"0.5715367",
"0.56766313",
"0.56727844",
"0.56624585",
"0.5658268",
"0.5617878",
"0.56106144",
"0.56019664",
"0.5566149",
"0.5560731",
"0.5557417",
"0.5550161",
"0.5541272",
"0.5532184",
"0.55095",
"0.54968154",
"0.549172",
"0.5481377",
"0.54510784",
"0.54384273"
] | 0.7077271 | 12 |
Sets amount of confidence expressed as a value between 0.0 and 1.0 (which is equivalent to 100%). The amount of confidence indicates the probability that the estimated result is correct. Usually this value will be close to 1.0, but not exactly 1.0. | public void setConfidence(double confidence) throws LockedException {
if (isLocked()) {
throw new LockedException();
}
if (confidence < MIN_CONFIDENCE || confidence > MAX_CONFIDENCE) {
throw new IllegalArgumentException();
}
mConfidence = confidence;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setConfidence(final Double confidence);",
"public boolean setConfidence(double value) {\n\t\tboolean valid;\n\t\tif (valid = value >= 0 && value <= 100) {\n\t\t\tconfidence = value;\n\t\t}\n\t\treturn valid;\n\t}",
"public void setConfidence(\n final double confidence)\n {\n ArgumentChecker.assertIsInRangeInclusive(\n \"confidence\", confidence, 0.5, 1.0);\n this.confidence = confidence;\n\n // Compute phi.\n this.phi = -UnivariateGaussian.CDF.Inverse.evaluate(\n 1.0 - confidence, 0.0, 1.0 );\n this.psi = 1.0 + this.phi * this.phi / 2.0;\n this.epsilon = 1.0 + this.phi * this.phi;\n }",
"@Override\n\tpublic double confidence(Example example) {\n\t\treturn 0;\n\t}",
"float getConfidence();",
"public void setConfidence(double confidence) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n } \n if (confidence < MIN_CONFIDENCE || confidence > MAX_CONFIDENCE) {\n throw new IllegalArgumentException();\n }\n mConfidence = confidence;\n }",
"public void setConfidenceLevel (double confidenceLevel)\n {\n this.confidenceLevel = confidenceLevel;\n \n }",
"public double getConfidence() {\n return !Double.isNaN(confidence) ? MathUtil.coerce(0, 1, confidence) : 0.0;\n }",
"public float getConfidence();",
"public float getConfidence() {\n return confidence;\n }",
"public double confidence() {\n return this.confidence;\n }",
"public Prediction apply( double[] confidence );",
"public double confidenceHi() {\n\t\treturn mean() + ((constant * stddev())/Math.sqrt(trails));\n\t}",
"public double confidenceHi(){\n return (this.average + (this.confidence_constant * this.std)/Math.sqrt((double) this.num_trials));\n }",
"public double confidenceHi() \n {\n double mean = mean();\n double stddev = stddev();\n return mean + 1.96 * stddev / Math.sqrt(count);\n }",
"public int getConfidence() {\n\t\treturn confidence;\r\n\t}",
"public double confidenceHi(){\n return mean() + ((1.96 * stddev()) / Math.sqrt(numberOfTrials));\n }",
"public Integer getConfidence() {\r\n\t\treturn confidence;\r\n\t}",
"public double getConfidence() {\n\t\treturn confidence;\n\t}",
"public String getConfidenceString() {\n final DecimalFormat format = new DecimalFormat(\"0.000\");\n return !Double.isNaN(confidence) ? format.format(MathUtil.coerce(0, 1, getConfidence()) * 100.0f) + \"%\" : \"N/A\";\n }",
"public double confidenceHi() {\n return mean() + CONFIDENCE_95 * stddev() / Math.sqrt(trials);\n }",
"public double confidenceHi() {\n\t\t return mean() + ((CONFIDENCE_NUM * stddev()) / Math.sqrt(trials));\n\t }",
"public float confidence() {\r\n\t\treturn LeapJNI.Hand_confidence(this.swigCPtr, this);\r\n\t}",
"public double getConfidence() {\n return mConfidence;\n }",
"public double getConfidence() {\n return mConfidence;\n }",
"public double confidenceHi() {\n return mean() + CONFIDENCE * stddev() / Math.sqrt(trials);\n }",
"public double getConfidence()\n {\n return this.confidence;\n }",
"public double confidenceHi() {\n return mean() + ((1.96 * stddev()) / Math.sqrt(trials));\n }",
"void m6860a(Confidence confidence) {\n this.f5235f = confidence;\n }",
"public double getConfidenceLevel ()\n { \n return confidenceLevel;\n \n }",
"@NotNull\n @JsonProperty(\"confidence\")\n public Double getConfidence();",
"public double confidenceHi() {\r\n\t\treturn confidenceHi;\r\n\t}",
"String getConfidence();",
"public double confidenceHi() {\n\t\treturn mean() + 1.96 * stddev() / Math.sqrt(threshold.length);\n\t}",
"public Confidence getConfidence() {\n return confidence;\n }",
"public double confidenceLow() {\n return (mean() - 1.96 * stddev() / Math.sqrt(trials));\n }",
"public double confidenceHi() {\n\t\treturn mean + 1.96 * stddev / Math.sqrt(experiments);\n\t}",
"public double confidenceHigh() {\n return (mean() + 1.96 * stddev() / Math.sqrt(trials));\n }",
"public double confidenceHi() {\n\t\treturn confidenceHi;\n\t}",
"public double confidenceLow() {\n return mean() - ((1.96 * stddev()) / Math.sqrt(this.numTrials));\n }",
"public double confidenceHigh() {\n return mean() + ((1.96 * stddev()) / Math.sqrt(this.numTrials));\n }",
"public double confidenceHi() {\n double high = mean()+1.96*stddev()/Math.sqrt(mProbabilities.length);\n return high;\n }",
"public double confidenceHi() {\n double confidenceLevel = 1.96;\r\n double temp = confidenceLevel * stddev()/Math.sqrt(stats.length);\r\n return mean()+temp;\r\n }",
"public double confidenceHi() {\n return this.mean() + this.stddev() * 1.96 / Math.sqrt(this.threshold.length);\n\n }",
"public double confidenceLow() {\n\t\treturn (double) mean()-(1.96*stddev()/Math.sqrt(myData.length));\n\t}",
"public double confidenceHigh() {\n return confidenceHigh;\n }",
"public double confidenceHi() {\n double conHi = mean() + CONFIDENCE_95 * stddev() / (Math.sqrt(t));\n return conHi;\n }",
"public double confidenceHi() {\n double conHi = mean() + CONFIDENCE_95 * StdStats.var(trialResult) / Math.sqrt(trials);\n return conHi;\n }",
"public double confidenceHigh() {\n\t\treturn (double) mean()+(1.96*stddev()/Math.sqrt(myData.length));\n\t}",
"public double confidenceHigh() {\n return mean() + (1.96 * stddev() / Math.sqrt(times));\n }",
"public double confidenceLow() {\n return mean() - (1.96 * stddev() / Math.sqrt(times));\n }",
"public double confidenceLo() \n {\n double mean = mean();\n double stddev = stddev();\n return mean - 1.96 * stddev / Math.sqrt(count);\n }",
"public double confidenceLo(){\n return mean() - ((1.96 * stddev()) / Math.sqrt(numberOfTrials));\n }",
"@Test\n public void testSetAndGetConfidence() {\n System.out.println(\"getConfidence\");\n TextRegion instance = new TextRegion();\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n float expResult = 0.5f;\n instance.setConfidence(expResult);\n float result = instance.getConfidence();\n assertEquals(expResult, result, 0.001f);\n assertNull(instance.getRegion());\n assertNull(instance.getPageUrl());\n assertNull(instance.getRegion());\n assertNull(instance.getResourceId());\n assertNull(instance.getText());\n }",
"public abstract double expectedShortfall (\n\t\tfinal int confidenceCount)\n\t\tthrows java.lang.Exception;",
"public double confidenceHi() { \n double hiBound = sampleMean \n + 1.96 * sampleStanDevi / Math.sqrt(times);\n return hiBound;\n }",
"public double confidenceHi() {\n return mu + 1.96*sig/Math.sqrt(t);\n }",
"public double confidenceLo(){\n return (this.average - (this.confidence_constant * this.std)/Math.sqrt((double) this.num_trials));\n }",
"public double getPercentageSensitivity() {\n return percentageSensitivity;\n }",
"public Accessory withConfidence(double confidence) {\n this.confidence = confidence;\n return this;\n }",
"public double confidenceLo() {\n\n\t\treturn mean() - ((constant * stddev())/Math.sqrt(trails));\n\t}",
"public void setPercentThreshold(double d)\n {\n percentThreshold = d;\n }",
"public void setUncertainty(Double uncertainty);",
"public float getChance()\n {\n return 1.0f;\n }",
"public double confidenceLo() {\n return mean() - ((1.96 * stddev()) / Math.sqrt(trials));\n }",
"public double confidenceLo() {\n return mean() - CONFIDENCE_95 * stddev() / Math.sqrt(trials);\n }",
"public double confidenceLo() {\n return mean() - CONFIDENCE * stddev() / Math.sqrt(trials);\n }",
"public void setAdjustmentRatio(double value) {\n this.adjustmentRatio = value;\n }",
"public double confidenceLo() {\n\t\t return mean() - ((CONFIDENCE_NUM * stddev()) / Math.sqrt(trials));\n\t }",
"public double confidenceLo() {\n double low = mean()-1.96*stddev()/Math.sqrt(mProbabilities.length);\n return low;\n }",
"public abstract double var (\n\t\tfinal int confidenceCount)\n\t\tthrows java.lang.Exception;",
"public double confidenceLo() {\n\t\treturn mean() - 1.96 * stddev() / Math.sqrt(threshold.length);\n\t}",
"public double confidenceLo() {\r\n\t\treturn confidenceLo;\r\n\t}",
"public double confidenceLo() {\n\t\treturn mean - 1.96 * stddev / Math.sqrt(experiments);\n\t}",
"public abstract double expectedShortfall (\n\t\tfinal double confidenceLevel)\n\t\tthrows java.lang.Exception;",
"public double confidenceLo() {\n\t\treturn confidenceLow;\n\t}",
"public void setPercentageSensitivity(double percentageSensitivity) {\n this.percentageSensitivity = percentageSensitivity;\n calculateSensitivityExponent();\n }",
"public void setBlueCarFaultPercentage(java.math.BigDecimal value);",
"public void setFlags(int nRun, int nFlags, float fConfidence);",
"public double confidenceLo() {\n return this.mean() - this.stddev() * 1.96 / Math.sqrt(this.threshold.length);\n }",
"int getLikelihoodValue();",
"void setExtremeSpikeProbability(double p);",
"public void setSensitivity(int s)\n\t{\n\t\tif (s < 0)\n\t\t{\n\t\t\tMinim.error(\"BeatDetect: sensitivity cannot be less than zero. Defaulting to 10.\");\n\t\t\tsensitivity = 10;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsensitivity = s;\n\t\t}\n\t}",
"void setThreshold(float value);",
"public double confidenceLo() {\n double confidenceLevel = 1.96;\r\n double temp = confidenceLevel * stddev()/Math.sqrt(stats.length);\r\n return mean()-temp;\r\n }",
"public void setSensitivity(float newSensitivity)\n\t{\n\t\tthis.sensitivity = newSensitivity;\n\t}",
"public void setEmphasis(double emphasisLevel);",
"public float getStatusChange() {\n\t\treturn statusChance;\n\t}",
"@AbstractCustomGlobal.GlobalMethod(menuText=\"Set Threshold Probability\")\n public void setThreshold() {\n if(Tools.getGlobalTime()!=0){\n JOptionPane.showMessageDialog(null, \"You can change this probability only when the simulation start\",\"Alert\", JOptionPane.INFORMATION_MESSAGE);\n return;\n }\n String answer = JOptionPane.showInputDialog(null, \"Set the probability that a node can be selected to run.\");\n // Show an information message\n try{\n double k = Double.parseDouble(answer);\n Iterator<Node> it = Tools.getNodeList().iterator();\n while(it.hasNext()){\n Node n = it.next();\n if(n.getClass() == MSNode.class){\n MSNode n1 = (MSNode)n;\n n1.setThresholdProbability(k);\n }\n if(n.getClass() == MS2Node.class){\n MS2Node n1 = (MS2Node)n;\n n1.setThresholdProbability(k);\n }\n }\n JOptionPane.showMessageDialog(null, \"Well done you have set this value:\"+k,\"Notice\", JOptionPane.INFORMATION_MESSAGE);\n }catch(NumberFormatException e){\n JOptionPane.showMessageDialog(null, \"You must insert a valid double \", \"Alert\", JOptionPane.INFORMATION_MESSAGE);\n }\n }",
"public void setProbability(double pProbability) throws Exception{\r\n\t\tif (pProbability >= 0) probability = pProbability;\r\n\t\telse throw new Exception(\"02; sPro,ProEle\");\r\n\t}",
"public void setTipPercentage(double newTip) {\n tip = newTip;\n }",
"public void setProbability(double v) {\n probability = v;\n }",
"@Test\n public void presentValueCurveSensitivity() {\n final MultipleCurrencyParameterSensitivity pvpsDepositExact = PSC.calculateSensitivity(CPN_ON_COMPOUNDED, MULTICURVES,\n MULTICURVES.getAllNames());\n final MultipleCurrencyParameterSensitivity pvpsDepositFD = PSC_DSC_FD.calculateSensitivity(CPN_ON_COMPOUNDED, MULTICURVES);\n AssertSensitivityObjects.assertEquals(\"CouponONCompoundedDiscountingMethod: presentValueCurveSensitivity \", pvpsDepositExact,\n pvpsDepositFD, TOLERANCE_PV_DELTA);\n }",
"public void setProbMut (float value) {\r\n mut_prob= value;\r\n }",
"public double confidenceLo() {\n return mu - 1.96*sig/Math.sqrt(t);\n }",
"public void setPropertyPenalty(float value) {\n this.propertyPenalty = value;\n }",
"public double getPercentThreshold()\n {\n return percentThreshold;\n }",
"public void setProbCross (float value) {\r\n cross_prob = value;\r\n }",
"public void setRedCarFaultPercentage(java.math.BigDecimal value);",
"public Precision() {\n\t\tthis.threshold = 1.0;\n\t}"
] | [
"0.81813914",
"0.72276163",
"0.6934763",
"0.6779493",
"0.6764295",
"0.6714482",
"0.66965914",
"0.65969163",
"0.65484124",
"0.6510335",
"0.64847386",
"0.6443067",
"0.6395379",
"0.6325644",
"0.63237566",
"0.6311892",
"0.6286368",
"0.6277307",
"0.6253628",
"0.6223065",
"0.62072533",
"0.6187638",
"0.6172489",
"0.61702293",
"0.61702293",
"0.6166873",
"0.61535716",
"0.6120056",
"0.60698634",
"0.60279614",
"0.5992295",
"0.59516007",
"0.5943714",
"0.5904982",
"0.58760303",
"0.58495957",
"0.5845532",
"0.5842711",
"0.5828068",
"0.58275324",
"0.5821389",
"0.5790478",
"0.5760789",
"0.57487607",
"0.5738243",
"0.56934917",
"0.5691915",
"0.5690029",
"0.56877387",
"0.568615",
"0.565141",
"0.56349",
"0.56152517",
"0.5594928",
"0.5582516",
"0.55671555",
"0.5544174",
"0.5528988",
"0.54839593",
"0.5477879",
"0.5470406",
"0.5434462",
"0.54067475",
"0.5395447",
"0.53823286",
"0.53694665",
"0.53433067",
"0.5341068",
"0.5321697",
"0.5282324",
"0.52590245",
"0.5234222",
"0.52128303",
"0.5211726",
"0.5196795",
"0.5195301",
"0.5146135",
"0.5142489",
"0.5137304",
"0.51299447",
"0.5121002",
"0.5105944",
"0.50989014",
"0.509048",
"0.5081259",
"0.50596035",
"0.5058461",
"0.50417435",
"0.50338775",
"0.5022501",
"0.5012664",
"0.50113094",
"0.49959248",
"0.49866894",
"0.49753115",
"0.49678",
"0.49640006",
"0.4957838",
"0.49566138",
"0.495063"
] | 0.6628324 | 7 |
Returns maximum allowed number of iterations. If maximum allowed number of iterations is achieved without converging to a result when calling estimate(), a RobustEstimatorException will be raised. | public int getMaxIterations() {
return mMaxIterations;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected int get_max_iter() {\n\t\treturn iterationsMaximum;\n\t}",
"public final int getMaxIterations()\r\n\t{\r\n\t\treturn maxIterations;\r\n\t}",
"@Override\n\tpublic int getMaxIterations() {\n\t\treturn maxIterations;\n\t}",
"int getMaximalIterationCount();",
"public int getMaxRetries() {\n\t return maxRetries.get();\n\t}",
"public int getMaxValue() throws Exception {\n\t\treturn RemoteServer.instance().executeAndGetId(\"getmaxvalue\",\n\t\t\t\tgetRefId());\n\t}",
"public int getMaxRetries() {\n return maxRetries;\n }",
"public int getMaxAttemptCount() {\n return maxAttemptCount;\n }",
"public int findMaxValue() {\n\t\treturn findMaxValue( this );\n\t}",
"Integer getMaximumResults();",
"public Integer getMaxRetryAttempt() {\n\t\treturn maxRetryAttempt;\n\t}",
"public double getNumericalLimit() {\n\treturn NUMERICAL_LIMIT;\n }",
"public int getVarimaxIterations(){\n return this.nVarimax;\n }",
"public int getMaxLagMaxRetries() {\n\t\treturn maxLagMaxRetries;\n\t}",
"public int getMaximum() {\n return this.iMaximum;\n }",
"public abstract int getMaximumValue();",
"public Optional<Integer> maxRetries() {\n return Codegen.integerProp(\"maxRetries\").config(config).env(\"VAULT_MAX_RETRIES\").def(2).get();\n }",
"public long getMaxRIT() {\n return localMaxRIT;\n }",
"public int getMaximum() {\r\n return max;\r\n }",
"private int getMaxSize() {\r\n return PropUtils.getValue(sizeLimitProp, DEFAULT_MAX_SIZE);\r\n }",
"public int getNbIterations() {\n\t\treturn this.nbIterations;\n\t}",
"public int getIterationLimit() {return iterationLimit;}",
"int getMaximum();",
"protected int getMaxResults() {\n\t\treturn maxResults;\n\t}",
"public int getMaxRows()\r\n\t{\r\n\t\treturn maxRows;\r\n\t}",
"public int getMaxRows()\r\n\t{\r\n\t\treturn maxRows;\r\n\t}",
"public int getMaxValue() {\n return maxValue;\n }",
"public int getMaxRows()\n\t{\n\t\treturn maxRows;\n\t}",
"public int getMaxRows()\n\t{\n\t\treturn maxRows;\n\t}",
"public int getAttemptCount() {\n return maxAttemptCount;\n }",
"public int getMaxRows() {\n\t\treturn maxRows;\n\t}",
"public int getMaxRows() {\n\t\treturn maxRows;\n\t}",
"public int getMaximumNumber() {\n\t\treturn 99999;\n\t}",
"public double getMiterLimit(\n )\n {return miterLimit;}",
"public int getMaximum() {\n \tcheckWidget();\n \treturn maximum;\n }",
"protected int retryLimit() {\n return DEFAULT_RETRIES;\n }",
"public double max() {\n/* 323 */ Preconditions.checkState((this.count != 0L));\n/* 324 */ return this.max;\n/* */ }",
"public int getMaximumPoints();",
"public int getMaxCount() {\n return maxCount_;\n }",
"public java.lang.Integer getMaximumResultSize()\r\n {\r\n return this.maximumResultSize;\r\n }",
"public void setMAX_ITERACOES(int MAX_ITERACOES) \r\n {\r\n if(MAX_ITERACOES > 0)\r\n this.MAX_ITERACOES = MAX_ITERACOES;\r\n }",
"public int getMaximumInteger() {\n/* 244 */ return (int)this.max;\n/* */ }",
"public static int iterationsUpperBound(double error, int k) {\r\n\t\treturn (int)(Math.log(1.0/error)*Math.pow(Math.E, k)+0.5);\r\n\t}",
"public synchronized int getMax() {\r\n\t\treturn mMax;\r\n\t}",
"public final int getMaxForKernels()\r\n\t{\r\n\t\treturn maxForKernels;\r\n\t}",
"public int getMaxCount() {\n return maxCount_;\n }",
"public int getMaxValue(){\n\t\treturn maxValue;\n\t}",
"public Integer getMaxResults() {\n return maxResults;\n }",
"protected int getMaxRetries()\n {\n return heartbeat.getMaxRetries();\n }",
"@Override\r\n\tpublic int getMaxEvaluations() {\n\t\treturn 0;\r\n\t}",
"public double getMaxRange() {\n return maxRange;\n }",
"public String getIterationSurMax() { return (actuelIteration + 1) + \"/\" + totalIteration; }",
"public int getMaxElements() {\n return maxElements;\n }",
"public int max() {\n\t\treturn 0;\n\t}",
"public int getMax() {\n\t\treturn max;\n\t}",
"public int getMax() {\n\t\treturn max;\n\t}",
"public double getMaxNumberOfEpochs() {\n return maxNumberOfEpochs;\n }",
"public void testGetMaximum() {\r\n System.out.println(\"getMaximum\");\r\n \r\n PartialCombinationIterator iterator = null;\r\n try {\r\n iterator = new PartialCombinationIterator(TestConstants.twoThreeFourValidReactionScheme, TestConstants.twoThreeFourNumRGroups, TestConstants.twoThreeFourNumLinkers, TestConstants.twoThreeFourNumBuildingBlocks);\r\n } catch (ReactionSchemeException ex) {\r\n ex.printStackTrace();\r\n fail(\"Unexpected exception was thrown.\");\r\n } catch (SmiLibIOException ex) {\r\n ex.printStackTrace();\r\n fail(\"Unexpected exception was thrown.\");\r\n } catch (SmiLibException ex) {\r\n ex.printStackTrace();\r\n fail(\"Unexpected exception was thrown.\");\r\n }\r\n \r\n int expected = expectedVirtualReactions.length;\r\n assertEquals(expected, iterator.getMaximum());\r\n }",
"public int getMax() {\n\t\treturn getMax(0.0f);\n\t}",
"@Override\r\n\tpublic void setMaxEvaluations(int maxEvaluations) {\n\t\t\r\n\t}",
"public int getMaxInteger() {\n\t\treturn this.maxInteger;\n\t}",
"public int getMaxGenerations() { return maxGenerations; }",
"public int getMax()\n\t{\n\t\treturn max;\n\t}",
"public int getMax() {\n return max;\n }",
"public int getMax() {\n return max;\n }",
"public int getMax() {\n return max;\n }",
"public double getMaximumValue() { return this.maximumValue; }",
"private double getMaxThreshold() {\n return maxThreshold;\n }",
"public double getMaxValue() {\r\n\t\treturn maxValue;\r\n\t}",
"public abstract int getMaxIntermediateSize();",
"public static double calculateLimit() {\n return 500;\n }",
"public int getMaxRange() {\n\t\treturn max_range;\n\t}",
"public int getUpperBound() {\n\t\treturn upperBound;\n\t}",
"public long getMaximumRetryWaitTime() {\r\n return configuration.getMaximumRetryWaitTime();\r\n }",
"public long getMaximum() {\n\t\treturn this._max;\n\t}",
"static public int getMaxAsyncPollingRetries() {\n return maxAsyncPollingRetries;\n }",
"public static int getMaxThreadCount(){\n return Integer.parseInt(properties.getProperty(\"maxThreadCount\"));\n }",
"public synchronized double getOutputLimit()\n {\n final String funcName = \"getOutputLimit\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", outputLimit);\n }\n\n return outputLimit;\n }",
"public int getUpperBound() {\r\n return upperBound;\r\n }",
"public int getUpperBound() {\n\t\treturn this.upperBound;\n\t}",
"public int getMaxWait() {\n\t\treturn this.maxWait;\n\t}",
"public int getMaxSize() {\n return maxSize;\n }",
"public int getMaxSize() {\n return maxSize;\n }",
"public int getMaxSize() {\n return maxSize;\n }",
"public int getMaxAmount() {\n return _max;\n }",
"public void setVarimaxMaximumIterations(int max){\n this.nVarimaxMax = max;\n }",
"public int getMaxErrorCorrection() {\n return error;\n }",
"public Integer getMaxResults() {\n return this.maxResults;\n }",
"public Integer getMaxResults() {\n return this.maxResults;\n }",
"int getLimit();",
"int getLimit();",
"public int getMaxIntValue();",
"public int getMaximumSize() {\n return maximumSize;\n }",
"public BigInteger getMaxUses() {\r\n return maxUses;\r\n }",
"public abstract int getMaximumArguments();",
"public float getNitrateMax() {\n return nitrateMax;\n }",
"public int getMaximumPlayers() {\n return getOption(ArenaOption.MAXIMUM_PLAYERS);\n }",
"public int getMaxSize() {\n return maxSize_;\n }",
"protected final int getMax() {\n\treturn(this.max);\n }"
] | [
"0.7821479",
"0.7704983",
"0.75827926",
"0.6935425",
"0.6908832",
"0.66979146",
"0.6658101",
"0.65389854",
"0.65361065",
"0.65294284",
"0.64452404",
"0.64130116",
"0.64021367",
"0.6364047",
"0.6362191",
"0.6345605",
"0.6340106",
"0.6315478",
"0.631412",
"0.6312108",
"0.6309259",
"0.62996066",
"0.629739",
"0.6295686",
"0.62827843",
"0.62827843",
"0.6277703",
"0.6247122",
"0.6247122",
"0.6226838",
"0.6220786",
"0.6220786",
"0.621998",
"0.62015355",
"0.6199259",
"0.61979973",
"0.6180139",
"0.6165611",
"0.61575675",
"0.6153246",
"0.61465",
"0.61458874",
"0.6142703",
"0.6131845",
"0.6126302",
"0.61221737",
"0.6121338",
"0.61203027",
"0.61111224",
"0.60934055",
"0.6088434",
"0.60770386",
"0.60765904",
"0.60727936",
"0.60700566",
"0.60700566",
"0.6059294",
"0.6056696",
"0.60561115",
"0.6051817",
"0.6051433",
"0.6047094",
"0.6039748",
"0.6028265",
"0.6028265",
"0.6028265",
"0.60271555",
"0.6023041",
"0.6009653",
"0.6009125",
"0.60002494",
"0.59897584",
"0.5989635",
"0.5988024",
"0.5987772",
"0.5987766",
"0.5979875",
"0.5974585",
"0.5971225",
"0.59619063",
"0.5946787",
"0.59276867",
"0.59276867",
"0.59276867",
"0.5924517",
"0.59218043",
"0.5914318",
"0.5911204",
"0.5911204",
"0.59084016",
"0.59084016",
"0.5907903",
"0.590606",
"0.59031785",
"0.5901734",
"0.589658",
"0.58958584",
"0.58948296",
"0.5891557"
] | 0.7603091 | 2 |
Sets maximum allowed number of iterations. When the maximum number of iterations is exceeded, result will not be available, however an approximate result will be available for retrieval. | public void setMaxIterations(int maxIterations) throws LockedException {
if (isLocked()) {
throw new LockedException();
}
if (maxIterations < MIN_ITERATIONS) {
throw new IllegalArgumentException();
}
mMaxIterations = maxIterations;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMaxIterations(int number) {\r\n if (number < CurrentIteration) {\r\n throw new Error(\"Cannot be lower than the current iteration.\");\r\n }\r\n MaxIteration = number;\r\n Candidates.ensureCapacity(MaxIteration);\r\n }",
"public void setIterationLimit(int limit) {\n\t\titerationLimit = limit;\n\t }",
"public void setMaxResult(int maxResult) {\n this.maxResult = maxResult;\n }",
"public void setMAX_ITERACOES(int MAX_ITERACOES) \r\n {\r\n if(MAX_ITERACOES > 0)\r\n this.MAX_ITERACOES = MAX_ITERACOES;\r\n }",
"public void setMaxResults(int max) {\n\r\n\t}",
"public void setMaxResults(Integer maxResults) {\n this.maxResults = maxResults;\n }",
"public void setMaxResults(Integer maxResults) {\n this.maxResults = maxResults;\n }",
"public void setMaxResults(Integer maxResults) {\n this.maxResults = maxResults;\n }",
"public void setMaxResults(Integer maxResults) {\n this.maxResults = maxResults;\n }",
"public void setVarimaxMaximumIterations(int max){\n this.nVarimaxMax = max;\n }",
"@Override\n\tpublic int getMaxIterations() {\n\t\treturn maxIterations;\n\t}",
"public int getIterationLimit() {return iterationLimit;}",
"public void setMaxResults(int val) throws HibException;",
"@Override\r\n\tpublic void setMaxEvaluations(int maxEvaluations) {\n\t\t\r\n\t}",
"protected int get_max_iter() {\n\t\treturn iterationsMaximum;\n\t}",
"public final native void setMaxResults(double maxResults) /*-{\n this.setMaxResults(maxResults);\n }-*/;",
"public void setMaxResults(final int maxResults) {\n this.maxResults = maxResults;\n this.getNetspeakCache().clear();\n }",
"public void setMax(int max) {\n this.max = max;\n }",
"public void setMax(int max) {\n this.max = max;\n }",
"void setMaxResults(int limit);",
"public void setMaxGenerations(int value) { maxGenerations = value; }",
"public final int getMaxIterations()\r\n\t{\r\n\t\treturn maxIterations;\r\n\t}",
"void setMaximum(int max);",
"public void setMiterLimit(float limit);",
"public int getMaxIterations() {\n return mMaxIterations;\n }",
"public int getMaxIterations() {\n return mMaxIterations;\n }",
"public void setMaximumResultSize(java.lang.Integer maximumResultSize)\r\n {\r\n this.maximumResultSize = maximumResultSize;\r\n }",
"public void setIterations(int iterations) {\r\n\t\tthis.iterations = iterations;\r\n\t}",
"public void setMaxEntries(int maxEntries) {\n this.maxEntries = maxEntries;\n }",
"public void setMaxAmount(int max) {\n _max = max;\n }",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaxRows(int maxRows);",
"public void setMaximumPagesToFetch(int max)\n\t{\n\t\tFrontier.setMaximumPagesToFetch(max);\n\t}",
"public void setMaxValue(int maxValue) {\n this.maxValue = maxValue;\n }",
"public void SetMaxVal(int max_val);",
"void setLimit(int limit);",
"@ZAttr(id=53)\n public void setGalMaxResults(int zimbraGalMaxResults) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalMaxResults, Integer.toString(zimbraGalMaxResults));\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public void setIterations(int iter) {\n\t\tnumIterations = iter;\n\t}",
"public void setMaxSearchResults(int maxSearchResults)\n {\n this.maxSearchResults = maxSearchResults;\n }",
"public void setIterations(int iterations) {\n\t\tthis.m_iterations = iterations;\n\t}",
"public void setMaxRows(int maxRows)\r\n\t{\r\n\t\tthis.maxRows = maxRows;\r\n\t}",
"public void setMaxRows(int maxRows)\r\n\t{\r\n\t\tthis.maxRows = maxRows;\r\n\t}",
"public void setMaximumCacheSize(int i) {\n this.maximumCacheSize = i;\n shrinkCacheToMaximumSize();\n }",
"public QueryBuilder<T, R> setMaxResults(int maxResults) {\n this.maxResults = maxResults;\n return this;\n }",
"public void setMaximum(Number max) {\n this.max = max;\n }",
"public void setNbIterations(int nbIterations) {\n\t\tthis.nbIterations = nbIterations;\n\t}",
"void setMaximumCacheSize(int maximumCacheSize);",
"public void setMaxOutput(double maxOutput){\n m_drive.setMaxOutput(maxOutput);\n }",
"public void setMaxThreads(int maxThreads)\r\n {\r\n this.maxThreads = maxThreads;\r\n }",
"@Override\n public void setMaxRows( int max ) throws SQLException {\n max_rows = max;\n }",
"public void setMaxCalls(int max);",
"public void setMaximum(Number max) {\n ((ADocument) getDocument()).setMaximum(max);\n }",
"public void setMaxRows(int maxRows)\n\t{\n\t\tthis.maxRows = maxRows;\n\t}",
"public void setMaxRows(int maxRows)\n\t{\n\t\tthis.maxRows = maxRows;\n\t}",
"public void setMaxRows(int maxRows) {\n\t\tthis.maxRows = maxRows;\n\t}",
"public void setMaxRows(int maxRows) {\n\t\tthis.maxRows = maxRows;\n\t}",
"public void setMaxRows(int maxRows) {\n\t\tthis.maxRows = maxRows;\n\t}",
"public void setMaxCacheEntries(int val) {\n this.mMaxCacheEntries = val;\n }",
"public void setMaximumPoints(int maximum);",
"public void setMax(int max)\n\t{\n\t\tif (max < 0)\n\t\t\tthrow new IllegalArgumentException(\"max < 0\");\n\t\tthis.max = max;\n\t}",
"@Override\n\tpublic void setMaxRows(final int max) throws SQLException {\n\t\tmaxRows = max;\n\t}",
"public void setMaxOutput(double maxOutput) {\n m_drive.setMaxOutput(maxOutput);\n }",
"public void setMaxVal(double maxVal) {\n this.maxVal = maxVal;\n }",
"public void setMaxOutput(double maxOutput) {\n drive.setMaxOutput(maxOutput);\n }",
"CamelJpaConsumerBindingModel setMaximumResults(Integer maximumResults);",
"void setMaxValue();",
"public void setMaxRows(int max) throws SQLException {\n\r\n }",
"public void setMaxConnections(int maxConnections)\n {\n _maxConnections = maxConnections;\n }",
"@Override\n\tpublic void setMaxnum(long maxnum) {\n\t\t_esfTournament.setMaxnum(maxnum);\n\t}",
"public void setMaxResults(int wordLimit) {\r\n\t\tthis.wordLimit = wordLimit;\r\n\t}",
"public static void setNumIterations(long aNumIterations) {\n\t\tnumIterations = aNumIterations;\n\t}",
"public void setMaxattempts(int maxattempts) {\n this.maxattempts = maxattempts;\n }",
"public void setMaxOutput(double maxOutput) {\r\n\t\tm_maxOutput = maxOutput;\r\n\t}",
"int getMaximalIterationCount();",
"protected int getMaxResults() {\n\t\treturn maxResults;\n\t}",
"public void setMaxRetryAttempt(final Integer maxRetryAttempt) {\n\t\tthis.maxRetryAttempt = maxRetryAttempt;\n\t}",
"public static void SetMaxPassengers(double inLimit) \r\n {\r\n if (inLimit > 0) \r\n {\r\n maxPassengers = inLimit;\r\n } \r\n else \r\n {\r\n maxPassengers = 0;\r\n }\r\n }",
"public void setMaxConnections(int maxConnections) {\n this.maxConnections = maxConnections;\n saveProperties();\n }",
"public static native void setMaxCache(int max);",
"public void setMaxRows(int max) throws SQLException {\n currentPreparedStatement.setMaxRows(max);\n }",
"private void setBatchSize( int aValue ) {\n GlobalParametersFake lConfigParms = new GlobalParametersFake( ParmTypeEnum.LOGIC.name() );\n lConfigParms.setInteger( PARAMETER_NAME, aValue );\n GlobalParameters.setInstance( lConfigParms );\n }",
"public int setNitrateMax(Integer nitrateMax) {\n try {\n setNitrateMax(nitrateMax.floatValue());\n } catch (Exception e) {\n setNitrateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMaxError;\n }",
"public void setMaxRunTime(int maxRunTime) {\n this.maxRunTime = maxRunTime;\n }"
] | [
"0.7840953",
"0.7755202",
"0.7491471",
"0.7417605",
"0.73820555",
"0.73660547",
"0.73660547",
"0.73660547",
"0.73660547",
"0.73463553",
"0.7313698",
"0.73084104",
"0.73052764",
"0.71522796",
"0.70732754",
"0.70370805",
"0.7001223",
"0.6992006",
"0.6992006",
"0.69389325",
"0.6869561",
"0.68582886",
"0.67632246",
"0.6745201",
"0.67185843",
"0.67185843",
"0.6711922",
"0.67072916",
"0.66835207",
"0.66216576",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.6597655",
"0.65975136",
"0.65974057",
"0.657922",
"0.6568104",
"0.65391666",
"0.65377694",
"0.65018594",
"0.6490665",
"0.64898664",
"0.64898664",
"0.64759785",
"0.64743537",
"0.6472654",
"0.6465986",
"0.64610475",
"0.64565325",
"0.64530987",
"0.6451538",
"0.6435952",
"0.6430116",
"0.6422025",
"0.6422025",
"0.64197725",
"0.64197725",
"0.64197725",
"0.64154184",
"0.6408125",
"0.6399579",
"0.6385307",
"0.63832104",
"0.6376163",
"0.6366523",
"0.63641536",
"0.63517904",
"0.6346799",
"0.6346636",
"0.6340724",
"0.63348126",
"0.63341725",
"0.6307428",
"0.63058925",
"0.6292977",
"0.6287073",
"0.62795705",
"0.62750524",
"0.626619",
"0.62640107",
"0.62610847",
"0.6247104",
"0.62239575",
"0.6223349"
] | 0.72709805 | 13 |
Returns list of points to be used to estimate a quadric. Provided list must have a size greater or equal than MINIMUM_SIZE. | public List<Point3D> getPoints() {
return mPoints;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.List<com.google.ads.googleads.v6.common.CpvBidSimulationPoint> \n getPointsList();",
"public abstract List<Point2D> getInterpolatedPoints();",
"private static float[] getPlanBounds(List<float[]> list) {\n float xStart = Float.MAX_VALUE;\n float yStart = Float.MAX_VALUE;\n float zStart = Float.MAX_VALUE;\n float xEnd = Float.MIN_VALUE;\n float yEnd = Float.MIN_VALUE;\n float zEnd = Float.MIN_VALUE;\n for (float[] point : list) {\n if (point[0] < xStart) {\n xStart = point[0];\n }\n if (point[0] > xEnd) {\n xEnd = point[0];\n }\n if (point[1] < yStart) {\n yStart = point[1];\n }\n if (point[1] > yEnd) {\n yEnd = point[1];\n }\n if (point[2] < zStart) {\n zStart = point[2];\n }\n if (point[2] > zEnd) {\n zEnd = point[2];\n }\n }\n return new float[]{xStart, xEnd, yStart, yEnd, zStart, zEnd};\n }",
"public List<Point> getAsphaltArray(List<Point> pointList){\n\t\tList<Point> ss = new ArrayList<>();\n\t\tfor(Point a : pointList) {\n\t\t\tss.add(getAsphalt(a.x,a.y,this.trk));\n\t\t}\n\t\treturn ss;\n\t}",
"public Queue<Point> getPoints() {\n\tQueue<Point> iter = new Queue<Point>();\n\tfor (Shape s : this.shapes) {\n\t for (Point p : s.getPoints())\n\t\titer.enqueue(p);\n\t}\n\n\treturn iter;\n }",
"public List<IPos> getCurvePoints() {\n\t\t// Create the array ready to hold all the points\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tList<IPos> points = new ArrayList<IPos>();\n\t\tif (segmentCount > 1) {\n\t\t\t// Get the influencing points, from simple tests 1/3rd the ditance to the next\n\t\t\t// point at the incoming angle seems to work fine.\n\t\t\tstartInfluencePoint = calculateInfluencingPoint(start, influenceDistance, startAngle);\n\t\t\tendInfluencePoint = calculateInfluencingPoint(end, influenceDistance, endAngle);\n\t\t\t// Once those points are removed, remember to change the rail as well or the\n\t\t\t// data will be wrong\n\n\t\t\t// Add the sub points that will create the bend\n\t\t\tfor (int i = 1; i <= segmentCount; i++) {\n\t\t\t\tfloat t = i / (segmentCount + 1f);\n\t\t\t\tfloat x = getCurveValue(start.x(), startInfluencePoint.x(), end.x(), endInfluencePoint.x(), t);\n\t\t\t\tfloat z = getCurveValue(start.z(), startInfluencePoint.z(), end.z(), endInfluencePoint.z(), t);\n\t\t\t\tfloat y = start.y() + ((end.y() - start.y()) * t);\n\t\t\t\tpoints.add(new Pos(x, y, z));\n\t\t\t\t// TODO we could use a lambda expression to create an add directly to the host\n\t\t\t\t// allowing more reusablity\n\t\t\t}\n\n\t\t}\n\t\treturn points;\n\t}",
"java.util.List<? extends com.google.ads.googleads.v6.common.CpvBidSimulationPointOrBuilder> \n getPointsOrBuilderList();",
"private List<Point> toList(){\n List<Point> pointsList = new ArrayList<Point>();\n int n = pointsStack.size();\n for (int i = 0; i < n; i++){\n pointsList.add(pointsStack.pop());\n }\n return pointsList;\n }",
"public List<Point> generatePointList(){\r\n\t\t//Can move up to 3 squares horizontally or vertically, but cannot move diagonally.\r\n List<Point> pointList = new ArrayList<>();\r\n int pointCount = 0;\r\n int px = (int)getCoordinate().getX();\r\n int py = (int)getCoordinate().getY();\r\n\r\n for (int i=px-3;i<=px+3;i++){\r\n for(int j=py-3;j<=py+3;j++){\r\n if((i>=0) && (i<9) && (j>=0) && (j<9) && ((i!=px)||(j!=py))){\r\n if ((i==px)||(j==py)){\r\n pointList.add(pointCount, new Point(i,j));\r\n pointCount+=1;\r\n } \r\n }\r\n }\r\n }\r\n return pointList;\r\n }",
"public java.util.List[] getPointArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(POINT$0, targetList);\n java.util.List[] result = new java.util.List[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getListValue();\n return result;\n }\n }",
"public Collection <Point> getAllPoints(){\n Collection <Point> points = new ArrayList<>();\n for(int i = 0; i < width; i++){\n for(int j = 0; j < height; j++){\n points.add(new Point(i, j));\n }\n }\n return points;\n }",
"@Override\r\n default Vector3[] getPoints(int amount) {\r\n if (amount < 0) throw new IllegalArgumentException(\"amount < 0\");\r\n if (amount == 0) return new Vector3[0];\r\n if (amount == 1) return new Vector3[] {getOrigin()};\r\n if (amount == 2) return new Vector3[] {getOrigin(), getEnd()};\r\n\r\n int t = amount - 1, i = 0;\r\n Vector3[] result = new Vector3[amount];\r\n\r\n Iterator<Vector3> iter = intervalIterator(getLengthSquared() / t*t);\r\n while (iter.hasNext())\r\n result[i++] = iter.next();\r\n\r\n return result;\r\n }",
"Collection<Point> getAllCoordinates();",
"Collection<P> getPointsOfInterest ();",
"public double[] getDoubleList();",
"public List<Point> getPoints() {\n return pointRepository.findAll()//\n .stream() //\n .sorted((p1, p2) -> Integer.compare(p1.getPosition(), p2.getPosition()))//\n .collect(Collectors.toList());\n }",
"public Polygon getPoints() {\n\t\tPolygon points = new Polygon();\n\t\t// Each side of the diamond needs to be DIM pixels long, so there\n\t\t// is more maths this time, involving triangles and that Pythagoras\n\t\t// dude... \n\t\tint radius = this.size * (DIM / 2);\n\t\tint hypotenuse = (int)Math.hypot(radius, radius);\n\t\t// Four points where order is important - screwing up here does\n\t\t// not produce a shape of any sort...\n\t\tpoints.addPoint(this.x, this.y - hypotenuse); // top\n\t\tpoints.addPoint(this.x - hypotenuse, this.y); // left\n\t\tpoints.addPoint(this.x, this.y + hypotenuse); // bottom\t\t\n\t\tpoints.addPoint(this.x + hypotenuse, this.y); // right\n\t\treturn points;\n\t}",
"protected static List<PVector> simplifyDouglasPeucker(List<PVector> points, float sqTolerance) {\n\n\t\tint len = points.size();\n\n\t\tList<Integer> markers = new ArrayList<Integer>(len);\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tmarkers.add(i, 0);\n\t\t}\n\n\t\tint first = 0;\n\t\tint last = len - 1;\n\n\t\tint i;\n\t\tfloat maxSqDist;\n\t\tfloat sqDist;\n\t\tint index = 0;\n\n\t\tStack<Integer> firstStack = new Stack<Integer>();\n\t\tStack<Integer> lastStack = new Stack<Integer>();\n\n\t\tList<PVector> newPoints = new ArrayList<PVector>();\n\n\t\tmarkers.set(first, 1);\n\t\tmarkers.set(last, 1);\n\n\t\twhile (last > 0) {\n\n\t\t\tmaxSqDist = 0;\n\n\t\t\tfor (i = first + 1; i < last; i++) {\n\t\t\t\tsqDist = getSquareSegmentDistance(points.get(i), points.get(first), points.get(last));\n\n\t\t\t\tif (sqDist > maxSqDist) {\n\t\t\t\t\tindex = i;\n\t\t\t\t\tmaxSqDist = sqDist;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (maxSqDist > sqTolerance) {\n\t\t\t\tmarkers.set(index, 1);\n\n\t\t\t\tfirstStack.push(first);\n\t\t\t\tlastStack.push(index);\n\n\t\t\t\tfirstStack.push(index);\n\t\t\t\tlastStack.push(last);\n\t\t\t}\n\n\t\t\tif (firstStack.isEmpty()) {\n\t\t\t\tfirst = 0;\n\t\t\t} else {\n\t\t\t\tfirst = firstStack.pop();\n\t\t\t}\n\t\t\tif (lastStack.isEmpty()) {\n\t\t\t\tlast = 0;\n\t\t\t} else {\n\t\t\t\tlast = lastStack.pop();\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (markers.get(i) != 0) {\n\t\t\t\tnewPoints.add(points.get(i));\n\t\t\t}\n\t\t}\n\n\t\treturn newPoints;\n\t}",
"java.util.List<object_detection.protos.Calibration.XYPairs.XYPair>\n getXYPairList();",
"public double [] plot(double from, double to, int size) \n{\n\tdouble increment = Math.abs((to-from)/size);\n\t\n\tdouble [] temp = new double [size];\n\n\tfor(int i=0; i<size; i++)\n\t\ttemp[i]=this.fuzzify(from+increment*i);\n\t\n\treturn temp;\n}",
"protected ArrayList<DataFromPoint> getFromPoints() {\n\t\treturn fromPoints.stream().map(e -> e.fromPoint)\n\t\t\t\t.collect(Collectors.toCollection(ArrayList::new));\n\t}",
"public org.astrogrid.stc.coords.v1_10.beans.Double3Type[] xgetPointArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(POINT$0, targetList);\n org.astrogrid.stc.coords.v1_10.beans.Double3Type[] result = new org.astrogrid.stc.coords.v1_10.beans.Double3Type[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public String getPoints();",
"public double[] GetPointArray() {\n return PointArray;\n }",
"private ArrayList<double[]> generatePoints(int divisions) {\n\t\tArrayList<double[]> result = new ArrayList<double[]>();\n\t\tdouble[] weight = new double[Run.NUMBER_OF_OBJECTIVES];\n\t\t\n\t\tif (divisions != 0) {\n\t\t\tgenerateRecursive(result, weight, Run.NUMBER_OF_OBJECTIVES, divisions, divisions, 0);\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public double getPoints()\r\n {\r\n return points;\r\n }",
"public List<Float[]> getCoordinates() {\n return coordinates;\n }",
"public List<Double> getCoordinates() {\n return coordinates;\n }",
"public final java.util.List<org.xms.g.maps.model.LatLng> getPoints() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getPoints()\");\n java.util.List hReturn = ((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getPoints();\n return ((java.util.List) org.xms.g.utils.Utils.mapCollection(hReturn, new org.xms.g.utils.Function<com.huawei.hms.maps.model.LatLng, org.xms.g.maps.model.LatLng>() {\n\n public org.xms.g.maps.model.LatLng apply(com.huawei.hms.maps.model.LatLng param0) {\n return new org.xms.g.maps.model.LatLng(new org.xms.g.utils.XBox(null, param0));\n }\n }));\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getPoints()\");\n java.util.List gReturn = ((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getPoints();\n return ((java.util.List) org.xms.g.utils.Utils.mapCollection(gReturn, new org.xms.g.utils.Function<com.google.android.gms.maps.model.LatLng, org.xms.g.maps.model.LatLng>() {\n\n public org.xms.g.maps.model.LatLng apply(com.google.android.gms.maps.model.LatLng param0) {\n return new org.xms.g.maps.model.LatLng(new org.xms.g.utils.XBox(param0, null));\n }\n }));\n }\n }",
"public List<Square> getSquareGrid();",
"public ListOfDouble(int size) {\n\t\telements = new double[size];\n\t\tpointer = 0;\n\t}",
"public List getPoints(final double offsetDistance) {\n final List offsetPts = new ArrayList();\n final List lines = this.g.getGeometryComponents(LineString.class);\n for (final Iterator i = lines.iterator(); i.hasNext();) {\n final LineString line = (LineString)i.next();\n extractPoints(line, offsetDistance, offsetPts);\n }\n // System.out.println(toMultiPoint(offsetPts));\n return offsetPts;\n }",
"public List<LatLng> getCoordinates() {\n return getGeometryObject();\n }",
"public Point[] getPoints()\n {\n return getPointsForAlignment(this);\n }",
"public int[] getXPoints ()\n\t{\n\t\tint xPoints [] = {xDimension1, xDimension2, xDimension3};\n\t\treturn xPoints;\n\t}",
"public List<Double> getXPosList()\n\t{\n\t\treturn this.xPosList;\n\t}",
"public List<SpawnPoint> getSpawnPoints(){\n return spawnPoints;\n }",
"public AnimSVGPointList() {\n\t\t\titemList = new ArrayList<>(1);\n\t\t}",
"private static Point[] generateRandomPointArray(final int quantity) {\n\t\tfinal int min = -200;\n\t\tfinal int max = 200;\n\t\tfinal Random random = new Random();\n\t\tPoint[] pointArray = new Point[quantity];\n\t\t\n\t\tSystem.out.println(\"Using \" + quantity + \" of random co-linear points.\");\n\t\t\n\t\tfor(int i = 0; i < quantity; i++) {\n\t\t\tint x = random.nextInt(max + 1 - min) + min;\n\t\t\tint y = random.nextInt(max + 1 - min) + min;\n\t\t\tpointArray[i] = new Point(x, y);\n\t\t}\n\t\t\n\t\treturn pointArray;\n\t}",
"public static void instantiate(){\n listOfpoints = new ArrayList<>(12);\n listOfPolygons = new ArrayList<>(listOfpoints.size());\n\n for ( int i= 0 ; i < 70; i++ ){\n listOfpoints.add(new ArrayList<LatLng>());\n }\n\n listOfpoints.get(0).add(new LatLng(44.4293595,26.1035863));\n listOfpoints.get(0).add(new LatLng(44.4295434,26.1035434));\n listOfpoints.get(0).add(new LatLng(44.4297579,26.103479));\n listOfpoints.get(0).add(new LatLng(44.431566,26.1033503));\n listOfpoints.get(0).add(new LatLng(44.4327305,26.1031572));\n listOfpoints.get(0).add(new LatLng(44.4337724,26.1029211));\n listOfpoints.get(0).add(new LatLng(44.4342474,26.1028138));\n listOfpoints.get(0).add(new LatLng( 44.4348756,26.1025563));\n listOfpoints.get(0).add(new LatLng(44.4353199,26.1023203));\n listOfpoints.get(0).add(new LatLng( 44.4353046,26.101977));\n listOfpoints.get(0).add(new LatLng( 44.4352893,26.1015478));\n listOfpoints.get(0).add(new LatLng(44.4351974,26.1010758));\n listOfpoints.get(0).add(new LatLng(44.4350595,26.100432));\n listOfpoints.get(0).add(new LatLng(44.4348756,26.0995523));\n listOfpoints.get(0).add(new LatLng(44.4346458,26.0983292));\n listOfpoints.get(0).add(new LatLng(44.4343547,26.098415));\n listOfpoints.get(0).add(new LatLng( 44.4340176,26.0983506));\n listOfpoints.get(0).add(new LatLng( 44.4327918,26.0975996));\n listOfpoints.get(0).add(new LatLng(44.4318878,26.0972134));\n listOfpoints.get(0).add(new LatLng( 44.4307692,26.0968701));\n listOfpoints.get(0).add(new LatLng( 44.4300644,26.0968271));\n listOfpoints.get(0).add(new LatLng( 44.4298498,26.0972992));\n listOfpoints.get(0).add(new LatLng(44.4297732,26.0977713));\n listOfpoints.get(0).add(new LatLng(44.4296966,26.0985867));\n listOfpoints.get(0).add(new LatLng (44.4296506,26.0994235));\n listOfpoints.get(0).add(new LatLng (44.4295587,26.1002389));\n listOfpoints.get(0).add(new LatLng (44.4294361,26.1007754));\n listOfpoints.get(0).add(new LatLng (44.4292369,26.1016766));\n listOfpoints.get(0).add(new LatLng (44.429099,26.1025778));\n listOfpoints.get(0).add(new LatLng (44.4289917,26.1033717));\n\n\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n listOfpoints.get(1).add(new LatLng (44.43630606,26.1017829));\n listOfpoints.get(1).add(new LatLng (44.4370654,26.101461));\n listOfpoints.get(1).add(new LatLng (44.4382451,26.1007958));\n listOfpoints.get(1).add(new LatLng (44.4393176,26.1002379));\n listOfpoints.get(1).add(new LatLng (44.4406045,26.0996371));\n listOfpoints.get(1).add(new LatLng (44.4418301,26.0990792));\n listOfpoints.get(1).add(new LatLng (44.4415084,26.0983067));\n listOfpoints.get(1).add(new LatLng (44.4412173,26.0977059));\n listOfpoints.get(1).add(new LatLng (44.4409875,26.097148));\n listOfpoints.get(1).add(new LatLng (44.4406811,26.0965472));\n listOfpoints.get(1).add(new LatLng (44.4404207,26.0959893));\n listOfpoints.get(1).add(new LatLng (44.4400989,26.0963326));\n listOfpoints.get(1).add(new LatLng (44.4393636,26.0968691));\n listOfpoints.get(1).add(new LatLng (44.4390725,26.0969549));\n listOfpoints.get(1).add(new LatLng (44.4381532,26.0971051));\n listOfpoints.get(1).add(new LatLng (44.4372952,26.0975557));\n listOfpoints.get(1).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(1).add(new LatLng (44.4358244,26.0977918));\n listOfpoints.get(1).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(1).add(new LatLng (44.4348132,26.0979205));\n listOfpoints.get(1).add(new LatLng (44.4348591,26.0983497));\n listOfpoints.get(1).add(new LatLng (44.4352115,26.1003452));\n listOfpoints.get(1).add(new LatLng (44.435472,26.1017185));\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n\n\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n listOfpoints.get(2).add(new LatLng (44.435899,26.1039688));\n listOfpoints.get(2).add(new LatLng (44.4360216,26.1044623));\n listOfpoints.get(2).add(new LatLng (44.4360982,26.1049988));\n listOfpoints.get(2).add(new LatLng (44.4362361,26.1055781));\n listOfpoints.get(2).add(new LatLng (44.4363127,26.1059));\n listOfpoints.get(2).add(new LatLng (44.4364506,26.1063721));\n listOfpoints.get(2).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(2).add(new LatLng (44.4367264,26.1068441));\n listOfpoints.get(2).add(new LatLng (44.4369715,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4374312,26.1073591));\n listOfpoints.get(2).add(new LatLng (44.4380593,26.1076381));\n listOfpoints.get(2).add(new LatLng (44.4386722,26.1078741));\n listOfpoints.get(2).add(new LatLng (44.439239,26.1080672));\n listOfpoints.get(2).add(new LatLng (44.4399744,26.1083033));\n listOfpoints.get(2).add(new LatLng (44.4406485,26.1084106));\n listOfpoints.get(2).add(new LatLng (44.4407557,26.1080458));\n listOfpoints.get(2).add(new LatLng (44.440817,26.1075737));\n listOfpoints.get(2).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(2).add(new LatLng (44.4410928,26.1070587));\n listOfpoints.get(2).add(new LatLng (44.4419814,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4422877,26.1071875));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.107445));\n listOfpoints.get(2).add(new LatLng (44.443498,26.107402));\n listOfpoints.get(2).add(new LatLng (44.4433754,26.10693));\n listOfpoints.get(2).add(new LatLng (44.4432988,26.1065008));\n listOfpoints.get(2).add(new LatLng (44.4431763,26.1059858));\n listOfpoints.get(2).add(new LatLng (44.4429465,26.1052992));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1044838));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1036469));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1029818));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.1027457));\n listOfpoints.get(2).add(new LatLng (44.4431303,26.1025311));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1022737));\n listOfpoints.get(2).add(new LatLng (44.4427627,26.101866));\n listOfpoints.get(2).add(new LatLng (44.4426707,26.1015656));\n listOfpoints.get(2).add(new LatLng (44.4426554,26.101072));\n listOfpoints.get(2).add(new LatLng (44.4427014,26.1002781));\n listOfpoints.get(2).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(2).add(new LatLng (44.4420426,26.0993125));\n listOfpoints.get(2).add(new LatLng (44.4412,26.0997202));\n listOfpoints.get(2).add(new LatLng (44.4400663,26.100321));\n listOfpoints.get(2).add(new LatLng (44.4390399,26.100836));\n listOfpoints.get(2).add(new LatLng (44.4382279,26.1012651));\n listOfpoints.get(2).add(new LatLng (44.4374924,26.1016514));\n listOfpoints.get(2).add(new LatLng (44.4366038,26.1021449));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1026384));\n listOfpoints.get(2).add(new LatLng (44.4357305,26.1027886));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n\n\n listOfpoints.get(3).add(new LatLng (44.4290806,26.1040332));\n listOfpoints.get(3).add(new LatLng (44.4295709,26.1054494));\n listOfpoints.get(3).add(new LatLng (44.4302604,26.1070373));\n listOfpoints.get(3).add(new LatLng (44.4307508,26.1080887));\n listOfpoints.get(3).add(new LatLng (44.432804,26.111994));\n listOfpoints.get(3).add(new LatLng (44.4329113,26.1123373));\n listOfpoints.get(3).add(new LatLng (44.4330798,26.1136248));\n listOfpoints.get(3).add(new LatLng (44.4332483,26.1150195));\n listOfpoints.get(3).add(new LatLng (44.433325,26.1158349));\n listOfpoints.get(3).add(new LatLng (44.4347959,26.1162855));\n listOfpoints.get(3).add(new LatLng (44.4359143,26.1166288));\n listOfpoints.get(3).add(new LatLng (44.4365272,26.1168005));\n listOfpoints.get(3).add(new LatLng (44.4367723,26.1168434));\n listOfpoints.get(3).add(new LatLng (44.4373852,26.1166503));\n listOfpoints.get(3).add(new LatLng (44.43809,26.1163713));\n listOfpoints.get(3).add(new LatLng (44.4378755,26.1154272));\n listOfpoints.get(3).add(new LatLng (44.435516,26.1027672));\n listOfpoints.get(3).add(new LatLng (44.433708,26.1034109));\n listOfpoints.get(3).add(new LatLng (44.4330032,26.1035826));\n listOfpoints.get(3).add(new LatLng (44.4321451,26.1038401));\n listOfpoints.get(3).add(new LatLng (44.4309959,26.1039259));\n listOfpoints.get(3).add(new LatLng (44.4302451,26.1039903));\n listOfpoints.get(3).add(new LatLng (44.4296628,26.1039903));\n listOfpoints.get(3).add(new LatLng(44.4290806,26.1040332));\n\n\n\n listOfpoints.get(4).add(new LatLng ( 44.4343669 ,26.0798289));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0801508));\n listOfpoints.get(4).add(new LatLng (44.4335088 ,26.0905363));\n listOfpoints.get(4).add(new LatLng (44.4333862 ,26.092124));\n listOfpoints.get(4).add(new LatLng ( 44.433233 ,26.0926177));\n listOfpoints.get(4).add(new LatLng ( 44.4329879 ,26.0932614));\n listOfpoints.get(4).add(new LatLng (44.4327427 , 26.0936906));\n listOfpoints.get(4).add(new LatLng (44.4301838 ,26.0965659));\n listOfpoints.get(4).add(new LatLng (44.4301685 ,26.0967161));\n listOfpoints.get(4).add(new LatLng (44.4305209 ,26.096759));\n listOfpoints.get(4).add(new LatLng (44.4311338 ,26.0968878));\n listOfpoints.get(4).add(new LatLng (44.4317468 ,26.097038));\n listOfpoints.get(4).add(new LatLng (44.4323137 ,26.0972955));\n listOfpoints.get(4).add(new LatLng (44.4327427 ,26.0974457));\n listOfpoints.get(4).add(new LatLng (44.4333709 ,26.0978534));\n listOfpoints.get(4).add(new LatLng (44.4338919 ,26.0981538));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0982611));\n listOfpoints.get(4).add(new LatLng ( 44.4345354 ,26.0982611));\n listOfpoints.get(4).add(new LatLng (44.4346886 ,26.0981752));\n listOfpoints.get(4).add(new LatLng (44.4345814, 26.0918667));\n listOfpoints.get(4).add(new LatLng (44.4343669 ,26.0798289));\n\n\n listOfpoints.get(5).add(new LatLng (44.4348405,26.097773));\n listOfpoints.get(5).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(5).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(5).add(new LatLng (44.4372952, 26.0975557));\n listOfpoints.get(5).add(new LatLng (44.4381532, 26.0971051));\n listOfpoints.get(5).add(new LatLng ( 44.4393636,26.0968691));\n listOfpoints.get(5).add(new LatLng(44.4397739, 26.0964855));\n listOfpoints.get(5).add(new LatLng (44.4402029,26.0960993));\n listOfpoints.get(5).add(new LatLng (44.4406778,26.0956487));\n listOfpoints.get(5).add(new LatLng(44.4405706,26.0952195));\n listOfpoints.get(5).add(new LatLng (44.4403408 ,26.0942539));\n listOfpoints.get(5).add(new LatLng (44.440065 ,26.0931811));\n listOfpoints.get(5).add(new LatLng (44.4400497, 26.0919151));\n listOfpoints.get(5).add(new LatLng (44.4398199 ,26.0897693));\n listOfpoints.get(5).add(new LatLng (44.4397893 ,26.0891041));\n listOfpoints.get(5).add(new LatLng (44.4399271 , 26.0879668));\n listOfpoints.get(5).add(new LatLng (44.4399731 ,26.0873017));\n listOfpoints.get(5).add(new LatLng (44.4399884 ,26.0867223));\n listOfpoints.get(5).add(new LatLng (44.4365719, 26.0887179));\n listOfpoints.get(5).add(new LatLng (44.434672 ,26.0898337));\n listOfpoints.get(5).add(new LatLng (44.4348405 ,26.097773));\n\n\n listOfpoints.get(6).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(6).add(new LatLng (44.4365354,26.1075151));\n listOfpoints.get(6).add(new LatLng (44.4375926,26.113137));\n listOfpoints.get(6).add(new LatLng (44.4378224,26.114167));\n listOfpoints.get(6).add(new LatLng (44.4435828,26.1191452));\n listOfpoints.get(6).add(new LatLng (44.4440117, 26.1184585));\n listOfpoints.get(6).add(new LatLng (44.4448849, 26.1172784));\n listOfpoints.get(6).add(new LatLng (44.4457888,26.1161411));\n listOfpoints.get(6).add(new LatLng (44.4462483, 26.1149395));\n listOfpoints.get(6).add(new LatLng (44.4466773, 26.113137));\n listOfpoints.get(6).add(new LatLng (44.4467998, 26.1121929));\n listOfpoints.get(6).add(new LatLng (44.4467539, 26.1112917));\n listOfpoints.get(6).add(new LatLng (44.4469683, 26.1101973));\n listOfpoints.get(6).add(new LatLng (44.4458041, 26.1093176));\n listOfpoints.get(6).add(new LatLng (44.4453905, 26.1091888));\n listOfpoints.get(6).add(new LatLng (44.4448083, 26.1089099));\n listOfpoints.get(6).add(new LatLng (44.4442109, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4435828, 26.1076224));\n listOfpoints.get(6).add(new LatLng (44.4433377, 26.107558));\n listOfpoints.get(6).add(new LatLng (44.4420662,26.1072791));\n listOfpoints.get(6).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(6).add(new LatLng (44.4407946,26.1082018));\n listOfpoints.get(6).add(new LatLng ( 44.4406107,26.1085451));\n listOfpoints.get(6).add(new LatLng (44.43986, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4384659, 26.1079014));\n listOfpoints.get(6).add(new LatLng (44.4372095, 26.1073864));\n listOfpoints.get(6).add(new LatLng (44.4365425, 26.1067583));\n\n\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n listOfpoints.get(7).add(new LatLng ( 44.4265883,26.1107511));\n listOfpoints.get(7).add(new LatLng (44.4261898,26.118905));\n listOfpoints.get(7).add(new LatLng (44.4274311,26.1189909));\n listOfpoints.get(7).add(new LatLng (44.4276303,26.1189265));\n listOfpoints.get(7).add(new LatLng (44.4285497,26.1191625));\n listOfpoints.get(7).add(new LatLng (44.4288408,26.1193342));\n listOfpoints.get(7).add(new LatLng (44.4294997,26.1199564));\n listOfpoints.get(7).add(new LatLng (44.4297909, 26.1200852));\n listOfpoints.get(7).add(new LatLng (44.4303272,26.1203427));\n listOfpoints.get(7).add(new LatLng (44.431124, 26.1205787));\n listOfpoints.get(7).add(new LatLng (44.4328861, 26.1207289));\n listOfpoints.get(7).add(new LatLng (44.4329933, 26.1206431));\n listOfpoints.get(7).add(new LatLng (44.4331159, 26.1194844));\n listOfpoints.get(7).add(new LatLng (44.4331925,26.118154));\n listOfpoints.get(7).add(new LatLng (44.4332844,26.1160512));\n listOfpoints.get(7).add(new LatLng (44.4328094,26.112339));\n listOfpoints.get(7).add(new LatLng (44.4327022, 26.1120171));\n listOfpoints.get(7).add(new LatLng (44.4299135, 26.1064596));\n listOfpoints.get(7).add(new LatLng (44.4289634,26.1040778));\n listOfpoints.get(7).add(new LatLng (44.4281819,26.1039705));\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n\n\n\n\n listOfpoints.get(8).add (new LatLng (44.4262461,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4260163,26.1014488));\n listOfpoints.get(8).add (new LatLng (44.4259397,26.1023715));\n listOfpoints.get(8).add (new LatLng (44.4258784,26.103616));\n listOfpoints.get(8).add (new LatLng (44.426001,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.42643,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.4272882,26.1038735));\n listOfpoints.get(8).add (new LatLng (44.4282995,26.1038306));\n listOfpoints.get(8).add (new LatLng (44.4289278,26.1035731));\n listOfpoints.get(8).add (new LatLng (44.4289431,26.1028006));\n listOfpoints.get(8).add (new LatLng (44.4291423,26.1015132));\n listOfpoints.get(8).add (new LatLng (44.4286366,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4284834,26.1010196));\n listOfpoints.get(8).add (new LatLng (44.4271043,26.1008694));\n listOfpoints.get(8).add (new LatLng (44.4262461, 26.1007836));\n\n\n\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n listOfpoints.get(9).add(new LatLng (44.4284834,26.1010196));\n listOfpoints.get(9).add(new LatLng (44.4290094,26.1000479));\n listOfpoints.get(9).add(new LatLng (44.4292545,26.0986961));\n listOfpoints.get(9).add(new LatLng (44.4293465,26.0971726));\n listOfpoints.get(9).add(new LatLng (44.4294844,26.0964216));\n listOfpoints.get(9).add(new LatLng (44.4301739,26.0956276));\n listOfpoints.get(9).add(new LatLng (44.432411,26.0931385));\n listOfpoints.get(9).add(new LatLng (44.4327022,26.0925163));\n listOfpoints.get(9).add(new LatLng (44.4328401,26.0919584));\n listOfpoints.get(9).add(new LatLng (44.4329014, 26.0913576));\n listOfpoints.get(9).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(9).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(9).add(new LatLng (44.4265882, 26.0922588));\n listOfpoints.get(9).add(new LatLng (44.4269867,26.0926879));\n listOfpoints.get(9).add(new LatLng (44.4267108,26.0998763));\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n\n\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(10).add(new LatLng (44.4215507, 26.0903665));\n listOfpoints.get(10).add(new LatLng (44.4255811,26.0980483));\n listOfpoints.get(10).add(new LatLng ( 44.4265772,26.0999795));\n listOfpoints.get(10).add(new LatLng (44.4266998,26.099722));\n listOfpoints.get(10).add(new LatLng (44.4269867, 26.0926879));\n listOfpoints.get(10).add(new LatLng (44.4265882,26.0922588));\n listOfpoints.get(10).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n\n\n listOfpoints.get(11).add(new LatLng (44.4214281, 26.0905382));\n listOfpoints.get(11).add(new LatLng (44.4207385, 26.0915467));\n listOfpoints.get(11).add(new LatLng (44.4199568, 26.0929629));\n listOfpoints.get(11).add(new LatLng (44.4192059,26.0943576));\n listOfpoints.get(11).add(new LatLng (44.4187155,26.095409));\n listOfpoints.get(11).add(new LatLng (44.4186235,26.0957524));\n listOfpoints.get(11).add(new LatLng (44.4189607, 26.0968253));\n listOfpoints.get(11).add(new LatLng (44.4212442,26.1039063));\n listOfpoints.get(11).add(new LatLng (44.4227001,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.4251367,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.425765,26.103799));\n listOfpoints.get(11).add(new LatLng (44.425811,26.1027476));\n listOfpoints.get(11).add(new LatLng (44.4259182,26.101503));\n listOfpoints.get(11).add(new LatLng (44.4260715,26.1009237));\n listOfpoints.get(11).add(new LatLng (44.4264086,26.1001297));\n listOfpoints.get(11).add(new LatLng (44.4260255, 26.0993143));\n listOfpoints.get(11).add(new LatLng (44.4252899, 26.0978981));\n listOfpoints.get(11).add(new LatLng (44.424064,26.0955593));\n listOfpoints.get(11).add(new LatLng (44.4230372,26.0935851));\n listOfpoints.get(11).add(new LatLng (44.4214281,26.0905382));\n\n\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n listOfpoints.get(12).add(new LatLng (44.4216123,26.1052654));\n listOfpoints.get(12).add(new LatLng (44.4226851,26.1084411));\n listOfpoints.get(12).add(new LatLng (44.4237731,26.1117241));\n listOfpoints.get(12).add(new LatLng (44.4244168,26.11181));\n listOfpoints.get(12).add(new LatLng (44.4263629,26.1118743));\n listOfpoints.get(12).add(new LatLng (44.4264242,26.1109946));\n listOfpoints.get(12).add(new LatLng (44.4265315,26.1078832));\n listOfpoints.get(12).add(new LatLng (44.4267154,26.1041496));\n listOfpoints.get(12).add(new LatLng (44.4254588, 26.1042354));\n listOfpoints.get(12).add(new LatLng (44.4242482,26.1041925));\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n\n\n\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n listOfpoints.get(13).add(new LatLng (44.4208987, 26.1041756));\n listOfpoints.get(13).add(new LatLng (44.4155345,26.1045404));\n listOfpoints.get(13).add(new LatLng (44.4156111, 26.1051198));\n listOfpoints.get(13).add(new LatLng (44.4156724, 26.106257));\n listOfpoints.get(13).add(new LatLng (44.4157184,26.1068793));\n listOfpoints.get(13).add(new LatLng (44.4157797, 26.1071153));\n listOfpoints.get(13).add(new LatLng (44.415841, 26.1077805));\n listOfpoints.get(13).add(new LatLng (44.4159024,26.1090465));\n listOfpoints.get(13).add(new LatLng (44.416025,26.1110635));\n listOfpoints.get(13).add(new LatLng (44.4161629,26.1116643));\n listOfpoints.get(13).add(new LatLng (44.4163468, 26.112072));\n listOfpoints.get(13).add(new LatLng (44.4166993,26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4170518, 26.1133595));\n listOfpoints.get(13).add(new LatLng (44.4177109, 26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4184006,26.1118575));\n listOfpoints.get(13).add(new LatLng (44.4190136,26.1112566));\n listOfpoints.get(13).add(new LatLng (44.4199331, 26.1107846));\n listOfpoints.get(13).add(new LatLng (44.4215883,26.1101838));\n listOfpoints.get(13).add(new LatLng (44.4229369,26.10954));\n listOfpoints.get(13).add(new LatLng (44.422753, 26.1089178));\n listOfpoints.get(13).add(new LatLng (44.4222626,26.1074372));\n listOfpoints.get(13).add(new LatLng (44.4217262,26.1059137));\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n\n\n\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n listOfpoints.get(14).add(new LatLng (44.4169314,26.1139266));\n listOfpoints.get(14).add(new LatLng (44.4177284,26.1143128));\n listOfpoints.get(14).add(new LatLng (44.4185253,26.1147205));\n listOfpoints.get(14).add(new LatLng (44.4237666,26.1189047));\n listOfpoints.get(14).add(new LatLng (44.4237819,26.1191408));\n listOfpoints.get(14).add(new LatLng (44.4240425,26.1191622));\n listOfpoints.get(14).add(new LatLng (44.4258814,26.1192481));\n listOfpoints.get(14).add(new LatLng (44.425912,26.1188404));\n listOfpoints.get(14).add(new LatLng (44.426004,26.1167804));\n listOfpoints.get(14).add(new LatLng (44.4261113,26.1148063));\n listOfpoints.get(14).add(new LatLng (44.4262798,26.1120812));\n listOfpoints.get(14).add(new LatLng (44.4238739,26.1119525));\n listOfpoints.get(14).add(new LatLng (44.4235674,26.1115662));\n listOfpoints.get(14).add(new LatLng (44.4230157,26.109914));\n listOfpoints.get(14).add(new LatLng (44.4218817,26.1103646));\n listOfpoints.get(14).add(new LatLng (44.4200733,26.1110512));\n listOfpoints.get(14).add(new LatLng (44.4187246,26.1118666));\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n\n\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n listOfpoints.get(15).add(new LatLng (44.4334184,26.0843973));\n listOfpoints.get(15).add(new LatLng (44.4305378,26.0839467));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0840969));\n listOfpoints.get(15).add(new LatLng (44.4305531,26.0845475));\n listOfpoints.get(15).add(new LatLng (44.4306604,26.0853844));\n listOfpoints.get(15).add(new LatLng (44.4302773,26.0908131));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0910277));\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n\n\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n listOfpoints.get(16).add(new LatLng (44.4252956,26.0790543));\n listOfpoints.get(16).add(new LatLng (44.4246213,26.0901265));\n listOfpoints.get(16).add(new LatLng (44.4247746,26.0905127));\n listOfpoints.get(16).add(new LatLng (44.4298621,26.0909634));\n listOfpoints.get(16).add(new LatLng (44.4300919,26.0907273));\n listOfpoints.get(16).add(new LatLng (44.430475,26.0853414));\n listOfpoints.get(16).add(new LatLng ( 44.4291112,26.0806422));\n listOfpoints.get(16).add(new LatLng (44.428391,26.0795693));\n listOfpoints.get(16).add(new LatLng (44.4277781,26.0794835));\n listOfpoints.get(16).add(new LatLng (44.42574,26.0784535));\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n\n\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n listOfpoints.get(17).add(new LatLng (44.433312,26.1178736));\n listOfpoints.get(17).add(new LatLng (44.4331128,26.1208562));\n listOfpoints.get(17).add(new LatLng (44.4327757,26.1238603));\n listOfpoints.get(17).add(new LatLng (44.4325765,26.1256413));\n listOfpoints.get(17).add(new LatLng (44.4354264,26.1251477));\n listOfpoints.get(17).add(new LatLng (44.4389196,26.122723));\n listOfpoints.get(17).add(new LatLng (44.4391954,26.1224012));\n listOfpoints.get(17).add(new LatLng (44.4381383,26.1165003));\n listOfpoints.get(17).add(new LatLng (44.4368666,26.1169724));\n listOfpoints.get(17).add(new LatLng (44.4364683,26.1169295));\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n\n\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n listOfpoints.get(18).add(new LatLng (44.4453896, 26.0909388));\n listOfpoints.get(18).add(new LatLng (44.4444245,26.0918185));\n listOfpoints.get(18).add(new LatLng (44.4428313, 26.093342));\n listOfpoints.get(18).add(new LatLng (44.4413912,26.0947797));\n listOfpoints.get(18).add(new LatLng (44.4405333,26.0959169));\n listOfpoints.get(18).add(new LatLng (44.4419274,26.0990069));\n listOfpoints.get(18).add(new LatLng (44.4433368,26.0983202));\n listOfpoints.get(18).add(new LatLng (44.4452824,26.0973761));\n listOfpoints.get(18).add(new LatLng (44.446707,26.0966894));\n listOfpoints.get(18).add(new LatLng (44.4468296,26.0961959));\n listOfpoints.get(18).add(new LatLng (44.4465385,26.0945651));\n listOfpoints.get(18).add(new LatLng (44.4462628,26.0935351));\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n\n\n listOfpoints.get(19).add(new LatLng (44.4401196,26.0817507));\n listOfpoints.get(19).add(new LatLng (44.4401043,26.0831669));\n listOfpoints.get(19).add(new LatLng (44.4402115,26.0846046));\n listOfpoints.get(19).add(new LatLng (44.440089,26.0863641));\n listOfpoints.get(19).add(new LatLng (44.4399358,26.0894755));\n listOfpoints.get(19).add(new LatLng ( 44.4402115, 26.0932949));\n listOfpoints.get(19).add(new LatLng (44.4407937,26.0953763));\n listOfpoints.get(19).add(new LatLng (44.440855,26.0952047));\n listOfpoints.get(19).add(new LatLng (44.4450832,26.0910419));\n listOfpoints.get(19).add(new LatLng (44.4454509,26.0905698));\n listOfpoints.get(19).add(new LatLng (44.4445011,26.0879949));\n listOfpoints.get(19).add(new LatLng (44.4437964,26.0862783));\n listOfpoints.get(19).add(new LatLng (44.4434287,26.0840681));\n listOfpoints.get(19).add(new LatLng (44.443061, 26.0812143));\n listOfpoints.get(19).add(new LatLng (44.4423257, 26.0809997));\n listOfpoints.get(19).add(new LatLng (44.4419887, 26.0810211));\n listOfpoints.get(19).add(new LatLng (44.4411767, 26.0813215));\n listOfpoints.get(19).add(new LatLng (44.4401196, 26.0817507));\n\n\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n listOfpoints.get(20).add(new LatLng (44.4145114,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.0990294));\n listOfpoints.get(20).add(new LatLng (44.4143735, 26.0993727));\n listOfpoints.get(20).add(new LatLng (44.4144195, 26.0998233));\n listOfpoints.get(20).add(new LatLng (44.4142969, 26.1008104));\n listOfpoints.get(20).add(new LatLng (44.4140976,26.1009177));\n listOfpoints.get(20).add(new LatLng (44.4138983,26.1008962));\n listOfpoints.get(20).add(new LatLng (44.4138064,26.1006602));\n listOfpoints.get(20).add(new LatLng (44.4137451,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4130247,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4127335,26.0984286));\n listOfpoints.get(20).add(new LatLng (44.4113386,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4102503, 26.0985788));\n listOfpoints.get(20).add(new LatLng (44.414021,26.1043509));\n listOfpoints.get(20).add(new LatLng (44.4143122,26.1043938));\n listOfpoints.get(20).add(new LatLng (44.4159522,26.1042865));\n listOfpoints.get(20).add(new LatLng (44.4191554,26.104029));\n listOfpoints.get(20).add(new LatLng (44.4210711,26.1038574));\n listOfpoints.get(20).add(new LatLng (44.4208259,26.1030205));\n listOfpoints.get(20).add(new LatLng (44.4203508,26.1016258));\n listOfpoints.get(20).add(new LatLng (44.4198297,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4192167, 26.0981067));\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n\n\n listOfpoints.get(21).add(new LatLng (44.410189,26.0984071));\n listOfpoints.get(21).add(new LatLng (44.4103883,26.0984715));\n listOfpoints.get(21).add(new LatLng (44.4128867,26.0983213));\n listOfpoints.get(21).add(new LatLng (44.4138524, 26.1000594));\n listOfpoints.get(21).add(new LatLng (44.4138524,26.1004671));\n listOfpoints.get(21).add(new LatLng (44.4139597,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4141742,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.1003812));\n listOfpoints.get(21).add(new LatLng (44.4143275,26.0996946));\n listOfpoints.get(21).add(new LatLng (44.4141589,26.0986646));\n listOfpoints.get(21).add(new LatLng (44.418435,26.0957464));\n listOfpoints.get(21).add(new LatLng (44.4190021,26.0946306));\n listOfpoints.get(21).add(new LatLng (44.4183737,26.0934504));\n listOfpoints.get(21).add(new LatLng (44.4176534, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4165652, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4155996,26.0927423));\n listOfpoints.get(21).add(new LatLng (44.4149406,26.0921415));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.0919055));\n listOfpoints.get(21).add(new LatLng (44.412994, 26.0920986));\n listOfpoints.get(21).add(new LatLng (44.4098211,26.0943945));\n listOfpoints.get(21).add(new LatLng (44.4096679,26.0947164));\n listOfpoints.get(21).add(new LatLng (44.4096985, 26.0953816));\n listOfpoints.get(21).add(new LatLng (44.4088401, 26.0962399));\n listOfpoints.get(21).add(new LatLng (44.4088248,26.0966047));\n listOfpoints.get(21).add(new LatLng (44.410189, 26.0984071));\n\n\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n listOfpoints.get(22).add(new LatLng (44.4252745,26.0779102));\n listOfpoints.get(22).add(new LatLng (44.426102,26.0783394));\n listOfpoints.get(22).add(new LatLng (44.4286458, 26.079541));\n listOfpoints.get(22).add(new LatLng (44.4293813,26.0807855));\n listOfpoints.get(22).add(new LatLng (44.4303313,26.0837038));\n listOfpoints.get(22).add(new LatLng (44.4329668,26.08409));\n listOfpoints.get(22).add(new LatLng (44.4335797,26.0839613));\n listOfpoints.get(22).add(new LatLng (44.4337023,26.0821159));\n listOfpoints.get(22).add(new LatLng (44.4339474,26.0797556));\n listOfpoints.get(22).add(new LatLng (44.434499,26.078039));\n listOfpoints.get(22).add(new LatLng (44.4358473,26.0748632));\n listOfpoints.get(22).add(new LatLng (44.4351732,26.073962));\n listOfpoints.get(22).add(new LatLng (44.433212,26.0710867));\n listOfpoints.get(22).add(new LatLng (44.4312201,26.0683401));\n listOfpoints.get(22).add(new LatLng (44.4299329,26.067396));\n listOfpoints.get(22).add(new LatLng (44.4283087,26.0655506));\n listOfpoints.get(22).add(new LatLng (44.4274812,26.0668381));\n listOfpoints.get(22).add(new LatLng (44.4261633,26.0691984));\n listOfpoints.get(22).add(new LatLng (44.4249374,26.0715587));\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n\n\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n listOfpoints.get(23).add(new LatLng (44.4169069,26.0695417));\n listOfpoints.get(23).add(new LatLng (44.4131364,26.073447));\n listOfpoints.get(23).add(new LatLng (44.4139948,26.0749491));\n listOfpoints.get(23).add(new LatLng (44.4156807,26.0782106));\n listOfpoints.get(23).add(new LatLng (44.4178265,26.0819443));\n listOfpoints.get(23).add(new LatLng (44.4184089,26.0840471));\n listOfpoints.get(23).add(new LatLng (44.4213514,26.0900982));\n listOfpoints.get(23).add(new LatLng (44.4240486, 26.0903986));\n listOfpoints.get(23).add(new LatLng (44.424447,26.0897978));\n listOfpoints.get(23).add(new LatLng (44.4252132,26.0783394));\n listOfpoints.get(23).add(new LatLng (44.4236808, 26.0737474));\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n\n\n\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(24).add(new LatLng (44.442854,26.1011417));\n listOfpoints.get(24).add(new LatLng (44.4434668,26.1027725));\n listOfpoints.get(24).add(new LatLng (44.4430685, 26.1033304));\n listOfpoints.get(24).add(new LatLng (44.4430685,26.1047895));\n listOfpoints.get(24).add(new LatLng (44.4437732,26.1076648));\n listOfpoints.get(24).add(new LatLng (44.4446617,26.1085661));\n listOfpoints.get(24).add(new LatLng (44.4461629,26.1092956));\n listOfpoints.get(24).add(new LatLng (44.447174,26.1100252));\n listOfpoints.get(24).add(new LatLng (44.4473272,26.108609));\n listOfpoints.get(24).add(new LatLng (44.4480624,26.107064));\n listOfpoints.get(24).add(new LatLng (44.4480931,26.1060341));\n listOfpoints.get(24).add(new LatLng (44.4476948,26.1029871));\n listOfpoints.get(24).add(new LatLng (44.448522, 26.1028583));\n listOfpoints.get(24).add(new LatLng (44.4499006,26.102515));\n listOfpoints.get(24).add(new LatLng (44.4509729, 26.101485));\n listOfpoints.get(24).add(new LatLng (44.4529335,26.1007555));\n listOfpoints.get(24).add(new LatLng (44.452719,26.0935457));\n listOfpoints.get(24).add(new LatLng (44.4521063,26.0865934));\n listOfpoints.get(24).add(new LatLng (44.4506359,26.0897262));\n listOfpoints.get(24).add(new LatLng (44.4472046,26.0966785));\n listOfpoints.get(24).add(new LatLng (44.4465306,26.0971077));\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n\n\n listOfpoints.get(25).add(new LatLng (44.3944544,26.1201103));\n listOfpoints.get(25).add(new LatLng (44.3948837,26.1205394));\n listOfpoints.get(25).add(new LatLng (44.400587,26.1207969));\n listOfpoints.get(25).add(new LatLng (44.4069336,26.1209686));\n listOfpoints.get(25).add(new LatLng (44.4075468,26.1204536));\n listOfpoints.get(25).add(new LatLng (44.4081599,26.119252));\n listOfpoints.get(25).add(new LatLng (44.4083439, 26.1177499));\n listOfpoints.get(25).add(new LatLng (44.4084665, 26.1148317));\n listOfpoints.get(25).add(new LatLng (44.4090183,26.1131151));\n listOfpoints.get(25).add(new LatLng (44.4102139, 26.1109693));\n listOfpoints.get(25).add(new LatLng (44.411992,26.106549));\n listOfpoints.get(25).add(new LatLng (44.4128197, 26.105562));\n listOfpoints.get(25).add(new LatLng (44.4140152, 26.1047037));\n listOfpoints.get(25).add(new LatLng (44.4105512, 26.099468));\n listOfpoints.get(25).add(new LatLng (44.4088344, 26.0971077));\n listOfpoints.get(25).add(new LatLng (44.4074854,26.0960777));\n listOfpoints.get(25).add(new LatLng (44.4067803, 26.0957773));\n listOfpoints.get(25).add(new LatLng (44.4047262, 26.096936));\n listOfpoints.get(25).add(new LatLng (44.4024267, 26.098481));\n listOfpoints.get(25).add(new LatLng (44.4015068, 26.0996826));\n listOfpoints.get(25).add(new LatLng (44.3998818, 26.1055191));\n listOfpoints.get(25).add(new LatLng (44.3944544, 26.1201103));\n\n\n\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4526408,26.0898486));\n listOfpoints.get(26).add(new LatLng (44.4530697,26.0983887));\n listOfpoints.get(26).add(new LatLng (44.4558573,26.0971013));\n listOfpoints.get(26).add(new LatLng ( 44.4622592,26.0925522));\n listOfpoints.get(26).add(new LatLng ( 44.4635762, 26.0910073));\n listOfpoints.get(26).add(new LatLng (44.4658121,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4631474,26.0864153));\n listOfpoints.get(26).add(new LatLng (44.4534067,26.0861578));\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n\n\n\n listOfpoints.get(27).add(new LatLng (44.4346864, 26.0895482));\n listOfpoints.get(27).add(new LatLng (44.4398343, 26.0864583));\n listOfpoints.get(27).add(new LatLng (44.439865,26.0816947));\n listOfpoints.get(27).add(new LatLng (44.4420098,26.0807076));\n listOfpoints.get(27).add(new LatLng (44.4429903, 26.0808793));\n listOfpoints.get(27).add(new LatLng (44.4426532,26.0791626));\n listOfpoints.get(27).add(new LatLng (44.4405084, 26.0729399));\n listOfpoints.get(27).add(new LatLng (44.440202, 26.0727253));\n listOfpoints.get(27).add(new LatLng (44.4384555, 26.0702363));\n listOfpoints.get(27).add(new LatLng (44.4362186, 26.0744849));\n listOfpoints.get(27).add(new LatLng (44.4344413,26.0792914));\n listOfpoints.get(27).add(new LatLng (44.4346864,26.0895482));\n\n\n\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n listOfpoints.get(28).add(new LatLng (44.443061,26.0812143));\n listOfpoints.get(28).add(new LatLng (44.4437562,26.0855141));\n listOfpoints.get(28).add(new LatLng (44.4440626,26.0866299));\n listOfpoints.get(28).add(new LatLng (44.444798, 26.0884753));\n listOfpoints.get(28).add(new LatLng (44.4465443,26.0937539));\n listOfpoints.get(28).add(new LatLng (44.4468813,26.0958138));\n listOfpoints.get(28).add(new LatLng (44.4471264,26.0961142));\n listOfpoints.get(28).add(new LatLng (44.4492097, 26.0919943));\n listOfpoints.get(28).add(new LatLng (44.4507109,26.0889473));\n listOfpoints.get(28).add(new LatLng (44.4519056, 26.0864153));\n listOfpoints.get(28).add(new LatLng (44.4518137,26.0848275));\n listOfpoints.get(28).add(new LatLng (44.4481987, 26.0827246));\n listOfpoints.get(28).add(new LatLng (44.4455026,26.081523));\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n\n\n\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n listOfpoints.get(29).add(new LatLng (44.437967, 26.115168));\n listOfpoints.get(29).add(new LatLng (44.4410924, 26.131905));\n listOfpoints.get(29).add(new LatLng (44.4413375,26.1327204));\n listOfpoints.get(29).add(new LatLng (44.443758, 26.1284717));\n listOfpoints.get(29).add(new LatLng (44.4467299, 26.1259827));\n listOfpoints.get(29).add(new LatLng (44.4480167,26.1254248));\n listOfpoints.get(29).add(new LatLng (44.4491809, 26.124266));\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n\n\n listOfpoints.get(30).add(new LatLng (44.4129016,26.0735409));\n listOfpoints.get(30).add(new LatLng (44.4072915,26.0791628));\n listOfpoints.get(30).add(new LatLng (44.4031525,26.0816948));\n listOfpoints.get(30).add(new LatLng (44.4003317,26.0844414));\n listOfpoints.get(30).add(new LatLng (44.3973268,26.0850422));\n listOfpoints.get(30).add(new LatLng (44.4005463,26.0880463));\n listOfpoints.get(30).add(new LatLng (44.4017115, 26.0912221));\n listOfpoints.get(30).add(new LatLng (44.4043176,26.0963719));\n listOfpoints.get(30).add(new LatLng (44.4048695, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4060652,26.0956423));\n listOfpoints.get(30).add(new LatLng (44.4070462,26.0953848));\n listOfpoints.get(30).add(new LatLng (44.4084871, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4094682, 26.0951703));\n listOfpoints.get(30).add(new LatLng (44.4094375, 26.0944836));\n listOfpoints.get(30).add(new LatLng (44.4132388, 26.09178));\n listOfpoints.get(30).add(new LatLng (44.4145263, 26.091737));\n listOfpoints.get(30).add(new LatLng (44.4163656,26.0929387));\n listOfpoints.get(30).add(new LatLng (44.4183273,26.0930674));\n listOfpoints.get(30).add(new LatLng (44.4189404,26.0941832));\n listOfpoints.get(30).add(new LatLng (44.4212086, 26.0904067));\n listOfpoints.get(30).add(new LatLng (44.4210553,26.0898488));\n listOfpoints.get(30).add(new LatLng (44.4186339, 26.0850852));\n listOfpoints.get(30).add(new LatLng (44.4181741,26.0840123));\n listOfpoints.get(30).add(new LatLng (44.4176836, 26.0822527));\n listOfpoints.get(30).add(new LatLng (44.4171932,26.0813944));\n listOfpoints.get(30).add(new LatLng (44.4150781, 26.077575));\n listOfpoints.get(30).add(new LatLng (44.4129016, 26.0735409));\n\n\n\n listOfpoints.get(31).add(new LatLng (44.4152528, 26.1045537));\n listOfpoints.get(31).add(new LatLng (44.4142412, 26.1048541));\n listOfpoints.get(31).add(new LatLng (44.4125552,26.1062274));\n listOfpoints.get(31).add(new LatLng (44.4118501,26.1074291));\n listOfpoints.get(31).add(new LatLng (44.4107158,26.1103473));\n listOfpoints.get(31).add(new LatLng (44.4093976,26.1127935));\n listOfpoints.get(31).add(new LatLng (44.4087844, 26.1144243));\n listOfpoints.get(31).add(new LatLng (44.4085392, 26.1156259));\n listOfpoints.get(31).add(new LatLng (44.4085392,26.1170421));\n listOfpoints.get(31).add(new LatLng (44.4083246, 26.1195741));\n listOfpoints.get(31).add(new LatLng (44.4074355, 26.1209903));\n listOfpoints.get(31).add(new LatLng (44.409183, 26.1223636));\n listOfpoints.get(31).add(new LatLng (44.4168774, 26.1136518));\n listOfpoints.get(31).add(new LatLng (44.4158658, 26.1113344));\n listOfpoints.get(31).add(new LatLng (44.4156513, 26.1077295));\n listOfpoints.get(31).add(new LatLng (44.4152528,26.1045537));\n\n\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n listOfpoints.get(32).add(new LatLng (44.4164766, 26.114537));\n listOfpoints.get(32).add(new LatLng (44.4110201,26.120631));\n listOfpoints.get(32).add(new LatLng (44.4094872,26.122648));\n listOfpoints.get(32).add(new LatLng (44.4131046, 26.1296003));\n listOfpoints.get(32).add(new LatLng (44.4151891, 26.1329906));\n listOfpoints.get(32).add(new LatLng (44.4171203, 26.1348789));\n listOfpoints.get(32).add(new LatLng (44.4201242, 26.1365526));\n listOfpoints.get(32).add(new LatLng (44.4204001,26.1351364));\n listOfpoints.get(32).add(new LatLng (44.4206759, 26.1333339));\n listOfpoints.get(32).add(new LatLng (44.42181,26.1313169));\n listOfpoints.get(32).add(new LatLng (44.4228827, 26.1314028));\n listOfpoints.get(32).add(new LatLng (44.4255799, 26.1284845));\n listOfpoints.get(32).add(new LatLng (44.4256412, 26.1274975));\n listOfpoints.get(32).add(new LatLng (44.4257638, 26.1234634));\n listOfpoints.get(32).add(new LatLng (44.425917, 26.1195152));\n listOfpoints.get(32).add(new LatLng (44.4238635, 26.1194294));\n listOfpoints.get(32).add(new LatLng (44.4193273,26.115567));\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n\n\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n listOfpoints.get(33).add(new LatLng (44.4255799,26.1284845));\n listOfpoints.get(33).add(new LatLng (44.4318104,26.1386596));\n listOfpoints.get(33).add(new LatLng (44.4320863,26.1385309));\n listOfpoints.get(33).add(new LatLng (44.4313814,26.1329948));\n listOfpoints.get(33).add(new LatLng (44.4316879,26.129819));\n listOfpoints.get(33).add(new LatLng (44.4326992,26.1229526));\n listOfpoints.get(33).add(new LatLng (44.4328861,26.1207289));\n listOfpoints.get(33).add(new LatLng (44.4300024, 26.1205493));\n listOfpoints.get(33).add(new LatLng (44.4288684,26.1196481));\n listOfpoints.get(33).add(new LatLng (44.4275797,26.1191541));\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n\n\n listOfpoints.get(34).add(new LatLng (44.4202782, 26.1364709));\n listOfpoints.get(34).add(new LatLng (44.4204314,26.1366855));\n listOfpoints.get(34).add(new LatLng (44.4255806,26.1375009));\n listOfpoints.get(34).add(new LatLng (44.4293579,26.1390888));\n listOfpoints.get(34).add(new LatLng (44.4303615,26.139196));\n listOfpoints.get(34).add(new LatLng (44.4317406,26.1386596));\n listOfpoints.get(34).add(new LatLng (44.4266686,26.1303877));\n listOfpoints.get(34).add(new LatLng (44.4255882,26.128596));\n listOfpoints.get(34).add(new LatLng (44.4250212,26.1291968));\n listOfpoints.get(34).add(new LatLng (44.4230214, 26.1315571));\n listOfpoints.get(34).add(new LatLng (44.4227685,26.1316644));\n listOfpoints.get(34).add(new LatLng (44.4217877,26.1315678));\n listOfpoints.get(34).add(new LatLng (44.4207762,26.1334668));\n listOfpoints.get(34).add(new LatLng (44.4202782,26.1364709));\n\n\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n listOfpoints.get(35).add(new LatLng (44.4437985,26.1194425));\n listOfpoints.get(35).add(new LatLng (44.4469926,26.1222749));\n listOfpoints.get(35).add(new LatLng (44.4492443, 26.1240881));\n listOfpoints.get(35).add(new LatLng (44.4504315,26.123144));\n listOfpoints.get(35).add(new LatLng (44.4512893,26.1217492));\n listOfpoints.get(35).add(new LatLng (44.451421, 26.1212347));\n listOfpoints.get(35).add(new LatLng (44.4523401, 26.1180161));\n listOfpoints.get(35).add(new LatLng (44.4527077, 26.1145399));\n listOfpoints.get(35).add(new LatLng (44.452944, 26.1009052));\n listOfpoints.get(35).add(new LatLng (44.4516573,26.1013558));\n listOfpoints.get(35).add(new LatLng (44.4510217,26.1016777));\n listOfpoints.get(35).add(new LatLng (44.4500413,26.1025574));\n listOfpoints.get(35).add(new LatLng (44.449712,26.1027291));\n listOfpoints.get(35).add(new LatLng (44.4477666,26.1031153));\n listOfpoints.get(35).add(new LatLng (44.4479198,26.1042526));\n listOfpoints.get(35).add(new LatLng (44.448027,26.1051967));\n listOfpoints.get(35).add(new LatLng (44.4481419,26.1058619));\n listOfpoints.get(35).add(new LatLng (44.4481189, 26.1070206));\n listOfpoints.get(35).add(new LatLng (44.448004,26.1073425));\n listOfpoints.get(35).add(new LatLng (44.4473836,26.1088338));\n listOfpoints.get(35).add(new LatLng (44.4472917,26.1100569));\n listOfpoints.get(35).add(new LatLng (44.4471385, 26.1102929));\n listOfpoints.get(35).add(new LatLng (44.4469241,26.1116877));\n listOfpoints.get(35).add(new LatLng (44.4469394,26.1122456));\n listOfpoints.get(35).add(new LatLng (44.4467403,26.1136403));\n listOfpoints.get(35).add(new LatLng (44.445959,26.1161938));\n listOfpoints.get(35).add(new LatLng (44.4448254,26.1176744));\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n\n\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n listOfpoints.get(36).add(new LatLng (44.4372662,26.123983));\n listOfpoints.get(36).add(new LatLng (44.4356115, 26.1252275));\n listOfpoints.get(36).add(new LatLng (44.4344471, 26.1254207));\n listOfpoints.get(36).add(new LatLng (44.4324705,26.1258069));\n listOfpoints.get(36).add(new LatLng (44.4315052, 26.1327377));\n listOfpoints.get(36).add(new LatLng (44.432256,26.1385742));\n listOfpoints.get(36).add(new LatLng (44.4351059,26.1373511));\n listOfpoints.get(36).add(new LatLng (44.4376339, 26.1363641));\n listOfpoints.get(36).add(new LatLng (44.4389822, 26.1353985));\n listOfpoints.get(36).add(new LatLng (44.4401772,26.1345402));\n listOfpoints.get(36).add(new LatLng (44.4411883, 26.1334458));\n listOfpoints.get(36).add(new LatLng (44.4402231, 26.1281458));\n listOfpoints.get(36).add(new LatLng (44.4398861,26.126279));\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n\n\n\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n listOfpoints.get(37).add(new LatLng (44.3977135, 26.1097995));\n listOfpoints.get(37).add(new LatLng (44.3909519,26.1099282));\n listOfpoints.get(37).add(new LatLng (44.3874558, 26.1100784));\n listOfpoints.get(37).add(new LatLng (44.3877779, 26.1129538));\n listOfpoints.get(37).add(new LatLng (44.3881766, 26.1154428));\n listOfpoints.get(37).add(new LatLng (44.3886059, 26.1165586));\n listOfpoints.get(37).add(new LatLng (44.3894799, 26.1180178));\n listOfpoints.get(37).add(new LatLng (44.3906606, 26.1193052));\n listOfpoints.get(37).add(new LatLng (44.3927152, 26.1205927));\n listOfpoints.get(37).add(new LatLng (44.3936352, 26.1206785));\n listOfpoints.get(37).add(new LatLng (44.3940339, 26.1202279));\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n\n\n\n listOfpoints.get(38).add(new LatLng (44.389256,26.0917973));\n listOfpoints.get(38).add(new LatLng (44.3892556,26.0920523));\n listOfpoints.get(38).add(new LatLng (44.4003643, 26.0970731));\n listOfpoints.get(38).add(new LatLng (44.4008548, 26.0971482));\n listOfpoints.get(38).add(new LatLng (44.4030625, 26.0971601));\n listOfpoints.get(38).add(new LatLng (44.4043195,26.0965593));\n listOfpoints.get(38).add(new LatLng (44.4019587, 26.0920531));\n listOfpoints.get(38).add(new LatLng (44.4005636,26.0883195));\n listOfpoints.get(38).add(new LatLng (44.3987104,26.0864919));\n listOfpoints.get(38).add(new LatLng (44.3972443, 26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3961557,26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3946992,26.0841584));\n listOfpoints.get(38).add(new LatLng (44.3918473,26.0856819));\n listOfpoints.get(38).add(new LatLng (44.3912493,26.08639));\n listOfpoints.get(38).add(new LatLng (44.389256, 26.0917973));\n\n\n\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n listOfpoints.get(39).add(new LatLng (44.4011008,26.0974224));\n listOfpoints.get(39).add(new LatLng (44.399997,26.0972078));\n listOfpoints.get(39).add(new LatLng (44.389065,26.0922189));\n listOfpoints.get(39).add(new LatLng (44.3863339,26.0922418));\n listOfpoints.get(39).add(new LatLng (44.387806,26.0981212));\n listOfpoints.get(39).add(new LatLng (44.3887261,26.1004386));\n listOfpoints.get(39).add(new LatLng (44.3889714,26.1023269));\n listOfpoints.get(39).add(new LatLng (44.3887567,26.1040435));\n listOfpoints.get(39).add(new LatLng (44.3875607,26.1097513));\n listOfpoints.get(39).add(new LatLng (44.3977341,26.1097306));\n listOfpoints.get(39).add(new LatLng (44.3979142,26.1101973));\n listOfpoints.get(39).add(new LatLng (44.397964,26.1101222));\n listOfpoints.get(39).add(new LatLng (44.3996198,26.1059165));\n listOfpoints.get(39).add(new LatLng (44.4016128,26.0990715));\n listOfpoints.get(39).add(new LatLng (44.4030402,26.0978593));\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n\n\n\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n listOfpoints.get(40).add(new LatLng (44.4494277,26.1245701));\n listOfpoints.get(40).add(new LatLng (44.4610682, 26.1325953));\n listOfpoints.get(40).add(new LatLng (44.4618646,26.1326811));\n listOfpoints.get(40).add(new LatLng (44.4644374, 26.1345265));\n listOfpoints.get(40).add(new LatLng (44.4660607, 26.1368439));\n listOfpoints.get(40).add(new LatLng (44.4665813,26.1365435));\n listOfpoints.get(40).add(new LatLng (44.4663976,26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4667345, 26.1349985));\n listOfpoints.get(40).add(new LatLng (44.4681739, 26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4701952, 26.1371014));\n listOfpoints.get(40).add(new LatLng (44.4719714, 26.1368868));\n listOfpoints.get(40).add(new LatLng (44.4730739, 26.1358998));\n listOfpoints.get(40).add(new LatLng (44.4731964,26.1346981));\n listOfpoints.get(40).add(new LatLng (44.4687252,26.1305783));\n listOfpoints.get(40).add(new LatLng (44.466857,26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4662751, 26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4658769, 26.1300633));\n listOfpoints.get(40).add(new LatLng (44.4666426, 26.129162));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1285183));\n listOfpoints.get(40).add(new LatLng (44.4697971, 26.1290333));\n listOfpoints.get(40).add(new LatLng (44.4723389, 26.1319945));\n listOfpoints.get(40).add(new LatLng (44.4743294,26.1327669));\n listOfpoints.get(40).add(new LatLng (44.4750338,26.1320374));\n listOfpoints.get(40).add(new LatLng (44.4756462,26.1297199));\n listOfpoints.get(40).add(new LatLng (44.4742376,26.1249563));\n listOfpoints.get(40).add(new LatLng (44.4742988, 26.1238835));\n listOfpoints.get(40).add(new LatLng (44.4741457,26.1231968));\n listOfpoints.get(40).add(new LatLng (44.4676533,26.1269734));\n listOfpoints.get(40).add(new LatLng (44.4668876,26.1267588));\n listOfpoints.get(40).add(new LatLng (44.4649275,26.1207506));\n listOfpoints.get(40).add(new LatLng (44.4648662,26.120064));\n listOfpoints.get(40).add(new LatLng (44.4674389,26.118562));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1177895));\n listOfpoints.get(40).add(new LatLng (44.4710833,26.1160729));\n listOfpoints.get(40).add(new LatLng (44.4714202,26.1163304));\n listOfpoints.get(40).add(new LatLng (44.4722777,26.116502));\n listOfpoints.get(40).add(new LatLng (44.4729208,26.1131117));\n listOfpoints.get(40).add(new LatLng (44.4723083,26.1107084));\n listOfpoints.get(40).add(new LatLng (44.4725227,26.1095926));\n listOfpoints.get(40).add(new LatLng (44.4733801,26.1087343));\n listOfpoints.get(40).add(new LatLng (44.4735945, 26.1082194));\n listOfpoints.get(40).add(new LatLng (44.4700727,26.1101076));\n listOfpoints.get(40).add(new LatLng (44.4533184,26.1047861));\n listOfpoints.get(40).add(new LatLng (44.4531039,26.105344));\n listOfpoints.get(40).add(new LatLng (44.4528589,26.1152146));\n listOfpoints.get(40).add(new LatLng (44.4526138,26.1174891));\n listOfpoints.get(40).add(new LatLng (44.452093,26.1197207));\n listOfpoints.get(40).add(new LatLng (44.4508982,26.1229822));\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n\n\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n listOfpoints.get(41).add(new LatLng (44.4550165,26.1051764));\n listOfpoints.get(41).add(new LatLng (44.4698103,26.1097469));\n listOfpoints.get(41).add(new LatLng (44.4709588,26.1093392));\n listOfpoints.get(41).add(new LatLng (44.4739216,26.1077299));\n listOfpoints.get(41).add(new LatLng (44.4734929,26.1050262));\n listOfpoints.get(41).add(new LatLng (44.4721455,26.105155));\n listOfpoints.get(41).add(new LatLng (44.4701242,26.1040392));\n listOfpoints.get(41).add(new LatLng (44.467521, 26.101593));\n listOfpoints.get(41).add(new LatLng (44.4673067, 26.1001768));\n listOfpoints.get(41).add(new LatLng (44.4664185,26.099061));\n listOfpoints.get(41).add(new LatLng (44.4660816,26.0979023));\n listOfpoints.get(41).add(new LatLng (44.4662041,26.0968294));\n listOfpoints.get(41).add(new LatLng (44.4671535,26.0960569));\n listOfpoints.get(41).add(new LatLng (44.4677661,26.0958853));\n listOfpoints.get(41).add(new LatLng (44.4680723,26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4691748,26.0952415));\n listOfpoints.get(41).add(new LatLng (44.4720536,26.0967865));\n listOfpoints.get(41).add(new LatLng (44.4742278,26.0964861));\n listOfpoints.get(41).add(new LatLng (44.4749015, 26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4747178,26.0948124));\n listOfpoints.get(41).add(new LatLng (44.4719617,26.0923662));\n listOfpoints.get(41).add(new LatLng (44.4714717,26.0908642));\n listOfpoints.get(41).add(new LatLng (44.4717167,26.0897913));\n listOfpoints.get(41).add(new LatLng (44.4723598,26.0888901));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0894909));\n listOfpoints.get(41).add(new LatLng (44.4732785,26.0900917));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0907783));\n listOfpoints.get(41).add(new LatLng (44.4735235,26.0912075));\n listOfpoints.get(41).add(new LatLng (44.4740135,26.0907354));\n listOfpoints.get(41).add(new LatLng (44.4734316,26.0891046));\n listOfpoints.get(41).add(new LatLng (44.4724211,26.0881176));\n listOfpoints.get(41).add(new LatLng (44.4661428,26.0866585));\n listOfpoints.get(41).add(new LatLng (44.4639989,26.09095));\n listOfpoints.get(41).add(new LatLng (44.4621305,26.0931387));\n listOfpoints.get(41).add(new LatLng (44.4558053,26.0973375));\n listOfpoints.get(41).add(new LatLng (44.4531632,26.0985928));\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n\n\n\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n listOfpoints.get(42).add(new LatLng (44.4404676, 26.072638));\n listOfpoints.get(42).add(new LatLng (44.4426125, 26.0786676));\n listOfpoints.get(42).add(new LatLng (44.4427656, 26.0791182));\n listOfpoints.get(42).add(new LatLng (44.4429801, 26.0806202));\n listOfpoints.get(42).add(new LatLng (44.4461972, 26.0758781));\n listOfpoints.get(42).add(new LatLng ( 44.4465955, 26.0753846));\n listOfpoints.get(42).add(new LatLng ( 44.4468405, 26.0753202));\n listOfpoints.get(42).add(new LatLng (44.4474227, 26.0759639));\n listOfpoints.get(42).add(new LatLng (44.4501186, 26.0695052));\n listOfpoints.get(42).add(new LatLng ( 44.4472848, 26.063776));\n listOfpoints.get(42).add(new LatLng ( 44.4461972,26.0623597));\n listOfpoints.get(42).add(new LatLng (44.4454925, 26.0618233));\n listOfpoints.get(42).add(new LatLng ( 44.4442057,26.0612654));\n listOfpoints.get(42).add(new LatLng (44.4432099,26.0609435));\n listOfpoints.get(42).add(new LatLng ( 44.4429035,26.062467));\n listOfpoints.get(42).add(new LatLng (44.4385679, 26.0699558));\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n\n\n\n listOfpoints.get(43).add(new LatLng ( 44.4430787,26.0806953));\n listOfpoints.get(43).add(new LatLng ( 44.443126, 26.0810753));\n listOfpoints.get(43).add(new LatLng ( 44.4455924,26.0813757));\n listOfpoints.get(43).add(new LatLng (44.4467107,26.0816761));\n listOfpoints.get(43).add(new LatLng (44.4514593,26.0842939));\n listOfpoints.get(43).add(new LatLng (44.4518575,26.0844441));\n listOfpoints.get(43).add(new LatLng (44.4519188,26.0818906));\n listOfpoints.get(43).add(new LatLng (44.4520107,26.0813971));\n listOfpoints.get(43).add(new LatLng (44.452026,26.0767193));\n listOfpoints.get(43).add(new LatLng (44.4527, 26.0732861));\n listOfpoints.get(43).add(new LatLng ( 44.4511682,26.0706039));\n listOfpoints.get(43).add(new LatLng (44.4503219, 26.069692));\n listOfpoints.get(43).add(new LatLng (44.4502719,26.0698017));\n listOfpoints.get(43).add(new LatLng (44.4475595, 26.0760068));\n listOfpoints.get(43).add(new LatLng (44.447414, 26.0761356));\n listOfpoints.get(43).add(new LatLng (44.4468242, 26.0754811));\n listOfpoints.get(43).add(new LatLng (44.4465485, 26.0755562));\n listOfpoints.get(43).add(new LatLng (44.4462728, 26.0759746));\n listOfpoints.get(43).add(new LatLng (44.4430787,26.0806953));\n\n\n\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n listOfpoints.get(44).add(new LatLng (44.4299706,26.0672689));\n listOfpoints.get(44).add(new LatLng (44.431342,26.068213));\n listOfpoints.get(44).add(new LatLng (44.4358314, 26.0745752));\n listOfpoints.get(44).add(new LatLng (44.4382828,26.0698974));\n listOfpoints.get(44).add(new LatLng (44.4353105,26.0630095));\n listOfpoints.get(44).add(new LatLng (44.435096,26.0616792));\n listOfpoints.get(44).add(new LatLng (44.4344678, 26.0595763));\n listOfpoints.get(44).add(new LatLng (44.4320315, 26.0595334));\n listOfpoints.get(44).add(new LatLng (44.4316178, 26.0600913));\n listOfpoints.get(44).add(new LatLng (44.4291968, 26.0639));\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n\n\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n listOfpoints.get(45).add(new LatLng (44.441285, 26.1333359));\n listOfpoints.get(45).add(new LatLng (44.4414535,26.1345376));\n listOfpoints.get(45).add(new LatLng (44.4428936,26.1475195));\n listOfpoints.get(45).add(new LatLng (44.443154,26.1493863));\n listOfpoints.get(45).add(new LatLng (44.4434451, 26.149794));\n listOfpoints.get(45).add(new LatLng (44.4437515,26.1497082));\n listOfpoints.get(45).add(new LatLng (44.4445175,26.1494721));\n listOfpoints.get(45).add(new LatLng (44.4454979,26.1488713));\n listOfpoints.get(45).add(new LatLng (44.4459574,26.1481847));\n listOfpoints.get(45).add(new LatLng (44.447091,26.147262));\n listOfpoints.get(45).add(new LatLng (44.448148,26.1456527));\n listOfpoints.get(45).add(new LatLng (44.4520847, 26.1353101));\n listOfpoints.get(45).add(new LatLng (44.4529577,26.1321129));\n listOfpoints.get(45).add(new LatLng (44.4531262,26.1316623));\n listOfpoints.get(45).add(new LatLng (44.4536776, 26.1311473));\n listOfpoints.get(45).add(new LatLng (44.4547192, 26.1298813));\n listOfpoints.get(45).add(new LatLng (44.455148,26.1288513));\n listOfpoints.get(45).add(new LatLng (44.449833, 26.1251177));\n listOfpoints.get(45).add(new LatLng (44.4491437, 26.12471));\n listOfpoints.get(45).add(new LatLng (44.4477038,26.1259545));\n listOfpoints.get(45).add(new LatLng (44.4462332, 26.1266841));\n listOfpoints.get(45).add(new LatLng (44.4447013, 26.1279501));\n listOfpoints.get(45).add(new LatLng (44.4436596, 26.129259));\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n\n\n\n listOfpoints.get(46).add(new LatLng (44.4322314,26.1388506));\n listOfpoints.get(46).add(new LatLng (44.4335155,26.1535014));\n listOfpoints.get(46).add(new LatLng (44.4338066,26.1552395));\n listOfpoints.get(46).add(new LatLng (44.434971,26.1596598));\n listOfpoints.get(46).add(new LatLng (44.4350966, 26.1598576));\n listOfpoints.get(46).add(new LatLng (44.4421748,26.1571969));\n listOfpoints.get(46).add(new LatLng (44.4425731, 26.1570252));\n listOfpoints.get(46).add(new LatLng (44.4429102, 26.1561669));\n listOfpoints.get(46).add(new LatLng (44.443477, 26.1502231));\n listOfpoints.get(46).add(new LatLng (44.4429255, 26.1494077));\n listOfpoints.get(46).add(new LatLng (44.442328, 26.144215));\n listOfpoints.get(46).add(new LatLng (44.4418837, 26.1404384));\n listOfpoints.get(46).add(new LatLng (44.4412556, 26.1349882));\n listOfpoints.get(46).add(new LatLng (44.4411331, 26.1338295));\n listOfpoints.get(46).add(new LatLng (44.4406428,26.1344732));\n listOfpoints.get(46).add(new LatLng (44.4388656, 26.1357821));\n listOfpoints.get(46).add(new LatLng (44.4374868, 26.1367048));\n listOfpoints.get(46).add(new LatLng (44.4350813, 26.137606));\n listOfpoints.get(46).add(new LatLng (44.4322314, 26.1388506));\n\n\n\n listOfpoints.get(47).add(new LatLng (44.4202257, 26.1368063));\n listOfpoints.get(47).add(new LatLng (44.4179627,26.1463187));\n listOfpoints.get(47).add(new LatLng (44.4227749, 26.149709));\n listOfpoints.get(47).add(new LatLng (44.4231734, 26.1503527));\n listOfpoints.get(47).add(new LatLng (44.4237251, 26.1504386));\n listOfpoints.get(47).add(new LatLng (44.4261157, 26.1495373));\n listOfpoints.get(47).add(new LatLng (44.4262996, 26.1508463));\n listOfpoints.get(47).add(new LatLng (44.4268206, 26.1524341));\n listOfpoints.get(47).add(new LatLng (44.4283937, 26.1547449));\n listOfpoints.get(47).add(new LatLng (44.433251, 26.1534574));\n listOfpoints.get(47).add(new LatLng (44.4320712, 26.1388662));\n listOfpoints.get(47).add(new LatLng (44.430401,26.139467));\n listOfpoints.get(47).add(new LatLng (44.4295736, 26.1393812));\n listOfpoints.get(47).add(new LatLng (44.4254668, 26.137686));\n listOfpoints.get(47).add(new LatLng (44.4241642,26.1374929));\n listOfpoints.get(47).add(new LatLng (44.4202257,26.1368063));\n\n\n\n listOfpoints.get(48).add(new LatLng (44.4234516,26.1510693));\n listOfpoints.get(48).add(new LatLng (44.425076, 26.1630856));\n listOfpoints.get(48).add(new LatLng (44.4292135,26.1619484));\n listOfpoints.get(48).add(new LatLng(44.4286618, 26.1578285));\n listOfpoints.get(48).add(new LatLng (44.4287078,26.156026));\n listOfpoints.get(48).add(new LatLng (44.4286925,26.1557042));\n listOfpoints.get(48).add(new LatLng (44.4269762, 26.1532151));\n listOfpoints.get(48).add(new LatLng (44.4262407, 26.151713));\n listOfpoints.get(48).add(new LatLng (44.4259189, 26.1499535));\n listOfpoints.get(48).add(new LatLng (44.4237122, 26.1506402));\n listOfpoints.get(48).add(new LatLng (44.4234516, 26.1510693));\n\n\n\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n listOfpoints.get(49).add(new LatLng (44.4286925, 26.1557042));\n listOfpoints.get(49).add(new LatLng (44.4287964, 26.1580645));\n listOfpoints.get(49).add(new LatLng (44.4290876, 26.1602317));\n listOfpoints.get(49).add(new LatLng (44.4302981,26.1670124));\n listOfpoints.get(49).add(new LatLng (44.4357222, 26.1692654));\n listOfpoints.get(49).add(new LatLng (44.4362584,26.1689865));\n listOfpoints.get(49).add(new LatLng (44.4366108, 26.1683857));\n listOfpoints.get(49).add(new LatLng (44.4367794,26.1675274));\n listOfpoints.get(49).add(new LatLng (44.433332, 26.1536442));\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n\n\n\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.14650));\n listOfpoints.get(50).add(new LatLng (44.4142265, 26.15554));\n listOfpoints.get(50).add(new LatLng (44.41369, 26.1578359));\n listOfpoints.get(50).add(new LatLng (44.4131842,26.1635008));\n listOfpoints.get(50).add(new LatLng (44.4133221, 26.1636295));\n listOfpoints.get(50).add(new LatLng (44.4154679, 26.1645951));\n listOfpoints.get(50).add(new LatLng (44.4169393, 26.1648526));\n listOfpoints.get(50).add(new LatLng (44.4181654, 26.1648097));\n listOfpoints.get(50).add(new LatLng (44.420403, 26.1642732));\n listOfpoints.get(50).add(new LatLng (44.4248319, 26.1631574));\n listOfpoints.get(50).add(new LatLng (44.4232688, 26.151227));\n listOfpoints.get(50).add(new LatLng (44.4226558, 26.1500253));\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.1465063));\n\n\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n listOfpoints.get(51).add(new LatLng (44.4079354,26.1261736));\n listOfpoints.get(51).add(new LatLng (44.3993506, 26.1595188));\n listOfpoints.get(51).add(new LatLng (44.4000559,26.1602484));\n listOfpoints.get(51).add(new LatLng (44.407077,26.1638962));\n listOfpoints.get(51).add(new LatLng (44.4081807, 26.1641108));\n listOfpoints.get(51).add(new LatLng (44.4091004, 26.1638104));\n listOfpoints.get(51).add(new LatLng (44.4114916, 26.162995));\n listOfpoints.get(51).add(new LatLng (44.4129018, 26.16351));\n listOfpoints.get(51).add(new LatLng (44.413147, 26.1608063));\n listOfpoints.get(51).add(new LatLng (44.4135762, 26.1567723));\n listOfpoints.get(51).add(new LatLng (44.4148943, 26.1529957));\n listOfpoints.get(51).add(new LatLng (44.4176838,26.1461722));\n listOfpoints.get(51).add(new LatLng (44.4183121,26.1435329));\n listOfpoints.get(51).add(new LatLng (44.4200133, 26.1367523));\n listOfpoints.get(51).add(new LatLng (44.4175152,26.1354433));\n listOfpoints.get(51).add(new LatLng (44.4159825, 26.1342417));\n listOfpoints.get(51).add(new LatLng (44.4146031,26.1324822));\n listOfpoints.get(51).add(new LatLng (44.4113383,26.1266242));\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n\n\n listOfpoints.get(52).add(new LatLng (44.3988714,26.159323));\n listOfpoints.get(52).add(new LatLng (44.4079468,26.1248191));\n listOfpoints.get(52).add(new LatLng (44.4088665, 26.1225875));\n listOfpoints.get(52).add(new LatLng (44.4080694,26.1217721));\n listOfpoints.get(52).add(new LatLng (44.4065059,26.1213858));\n listOfpoints.get(52).add(new LatLng (44.3941185, 26.120785));\n listOfpoints.get(52).add(new LatLng (44.3862678, 26.1391528));\n listOfpoints.get(52).add(new LatLng (44.3887826,26.1415131));\n listOfpoints.get(52).add(new LatLng (44.3886293, 26.1448605));\n listOfpoints.get(52).add(new LatLng (44.3891813, 26.1464484));\n listOfpoints.get(52).add(new LatLng (44.389304, 26.1472209));\n listOfpoints.get(52).add(new LatLng (44.3927079, 26.155761));\n listOfpoints.get(52).add(new LatLng (44.3941492, 26.1572631));\n listOfpoints.get(52).add(new LatLng (44.3985648, 26.16031));\n listOfpoints.get(52).add(new LatLng (44.3988714, 26.159323));\n\n\n\n listOfpoints.get(53).add(new LatLng (44.3886499, 26.1177499));\n listOfpoints.get(53).add(new LatLng (44.3892939, 26.1179645));\n listOfpoints.get(53).add(new LatLng (44.3881592, 26.1159046));\n listOfpoints.get(53).add(new LatLng (44.3876838,26.1132224));\n listOfpoints.get(53).add(new LatLng (44.3873311, 26.1100895));\n listOfpoints.get(53).add(new LatLng (44.3887879, 26.1032445));\n listOfpoints.get(53).add(new LatLng (44.3888645, 26.1022789));\n listOfpoints.get(53).add(new LatLng (44.3886192, 26.1005838));\n listOfpoints.get(53).add(new LatLng (44.3883738,26.0998542));\n listOfpoints.get(53).add(new LatLng (44.3876225,26.097923));\n listOfpoints.get(53).add(new LatLng (44.3869478, 26.0954554));\n listOfpoints.get(53).add(new LatLng (44.3862577, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3860584, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3789427, 26.0917003));\n listOfpoints.get(53).add(new LatLng (44.3757526,26.1157758));\n listOfpoints.get(53).add(new LatLng (44.375998,26.1173208));\n listOfpoints.get(53).add(new LatLng (44.3765195,26.1189945));\n listOfpoints.get(53).add(new LatLng (44.3769183,26.1194665));\n listOfpoints.get(53).add(new LatLng (44.3775624, 26.1194236));\n listOfpoints.get(53).add(new LatLng (44.3786973,26.1184366));\n listOfpoints.get(53).add(new LatLng (44.3824393,26.1150248));\n listOfpoints.get(53).add(new LatLng (44.3831447, 26.114939));\n listOfpoints.get(53).add(new LatLng (44.3840802, 26.1151106));\n listOfpoints.get(53).add(new LatLng (44.3879598, 26.1175568));\n listOfpoints.get(53).add(new LatLng (44.3886499,26.1177499));\n\n\n listOfpoints.get(54).add(new LatLng ( 44.3939843, 26.1207857));\n listOfpoints.get(54).add(new LatLng (44.3928679,26.120861));\n listOfpoints.get(54).add(new LatLng (44.3916643, 26.1202602));\n listOfpoints.get(54).add(new LatLng (44.3901386, 26.1189727));\n listOfpoints.get(54).add(new LatLng (44.3894869, 26.1181573));\n listOfpoints.get(54).add(new LatLng (44.3881836, 26.1178784));\n listOfpoints.get(54).add(new LatLng (44.3839589, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3830541, 26.1151318));\n listOfpoints.get(54).add(new LatLng (44.382479, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3814899, 26.1160544));\n listOfpoints.get(54).add(new LatLng (44.3792585,26.1181466));\n listOfpoints.get(54).add(new LatLng (44.3765793, 26.1204638));\n listOfpoints.get(54).add(new LatLng (44.3792479, 26.1275449));\n listOfpoints.get(54).add(new LatLng (44.379524,26.135098));\n listOfpoints.get(54).add(new LatLng (44.3856888, 26.1398616));\n listOfpoints.get(54).add(new LatLng (44.3939843,26.1207857));\n\n\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n listOfpoints.get(55).add(new LatLng (44.3767422, 26.0507223));\n listOfpoints.get(55).add(new LatLng (44.3901146,26.0632536));\n listOfpoints.get(55).add(new LatLng (44.4006018,26.0712359));\n listOfpoints.get(55).add(new LatLng (44.4064272, 26.0638544));\n listOfpoints.get(55).add(new LatLng (44.4054461,26.0626528));\n listOfpoints.get(55).add(new LatLng (44.3997432, 26.0485766));\n listOfpoints.get(55).add(new LatLng (44.3817726,26.0459158));\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n\n\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n listOfpoints.get(56).add(new LatLng (44.4007746, 26.0715552));\n listOfpoints.get(56).add(new LatLng (44.3971564,26.0688944));\n listOfpoints.get(56).add(new LatLng (44.3905634, 26.0639591));\n listOfpoints.get(56).add(new LatLng (44.3862699, 26.078207));\n listOfpoints.get(56).add(new LatLng (44.38124,26.0855027));\n listOfpoints.get(56).add(new LatLng (44.3802585, 26.0858031));\n listOfpoints.get(56).add(new LatLng (44.3797064, 26.0867901));\n listOfpoints.get(56).add(new LatLng (44.3790009,26.091425));\n listOfpoints.get(56).add(new LatLng (44.3848591,26.091897));\n listOfpoints.get(56).add(new LatLng (44.3890301,26.0918541));\n listOfpoints.get(56).add(new LatLng (44.3909928, 26.0865755));\n listOfpoints.get(56).add(new LatLng (44.3915141,26.0856314));\n listOfpoints.get(56).add(new LatLng (44.3946727, 26.0839608));\n listOfpoints.get(56).add(new LatLng (44.3961445,26.0850122));\n listOfpoints.get(56).add(new LatLng (44.3967425,26.0849907));\n listOfpoints.get(56).add(new LatLng (44.4002074, 26.0843041));\n listOfpoints.get(56).add(new LatLng (44.4029362, 26.0816648));\n listOfpoints.get(56).add(new LatLng (44.4055576,26.0799267));\n listOfpoints.get(56).add(new LatLng (44.4070752,26.0791113));\n listOfpoints.get(56).add(new LatLng (44.4130379,26.0732319));\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n\n\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n listOfpoints.get(57).add(new LatLng (44.4056207, 26.0623124));\n listOfpoints.get(57).add(new LatLng (44.4131623,26.0729554));\n listOfpoints.get(57).add(new LatLng (44.4204884,26.0654452));\n listOfpoints.get(57).add(new LatLng (44.4181895,26.0583212));\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n\n\n listOfpoints.get(58).add(new LatLng (44.414413, 26.0354062));\n listOfpoints.get(58).add(new LatLng (44.415394, 26.0475512));\n listOfpoints.get(58).add(new LatLng (44.4158231,26.0502978));\n listOfpoints.get(58).add(new LatLng (44.4181221,26.0576363));\n listOfpoints.get(58).add(new LatLng (44.4207888, 26.0658331));\n listOfpoints.get(58).add(new LatLng (44.4237005, 26.0731287));\n listOfpoints.get(58).add(new LatLng (44.4298608,26.0624857));\n listOfpoints.get(58).add(new LatLng (44.4293091,26.0617562));\n listOfpoints.get(58).add(new LatLng (44.4290027,26.0610266));\n listOfpoints.get(58).add(new LatLng (44.4275316, 26.0600825));\n listOfpoints.get(58).add(new LatLng (44.426275, 26.0585375));\n listOfpoints.get(58).add(new LatLng (44.4259379,26.0566922));\n listOfpoints.get(58).add(new LatLng (44.4253862, 26.0520573));\n listOfpoints.get(58).add(new LatLng (44.4242829,26.0473366));\n listOfpoints.get(58).add(new LatLng (44.4229037,26.0406847));\n listOfpoints.get(58).add(new LatLng (44.4221374,26.0347624));\n listOfpoints.get(58).add(new LatLng (44.4165281,26.0346766));\n listOfpoints.get(58).add(new LatLng (44.414413,26.0354062));\n\n\n listOfpoints.get(59).add(new LatLng (44.4224216, 26.0344395));\n listOfpoints.get(59).add(new LatLng (44.422437, 26.0360274));\n listOfpoints.get(59).add(new LatLng (44.423004,26.040276));\n listOfpoints.get(59).add(new LatLng (44.4255632,26.0522065));\n listOfpoints.get(59).add(new LatLng (44.4259156,26.055468));\n listOfpoints.get(59).add(new LatLng (44.42636,26.0583219));\n listOfpoints.get(59).add(new LatLng (44.4274787,26.059781));\n listOfpoints.get(59).add(new LatLng (44.4290264, 26.0608325));\n listOfpoints.get(59).add(new LatLng (44.4293328,26.0616264));\n listOfpoints.get(59).add(new LatLng (44.4299764,26.0623989));\n listOfpoints.get(59).add(new LatLng (44.4319071,26.0594162));\n listOfpoints.get(59).add(new LatLng (44.4345885, 26.0593948));\n listOfpoints.get(59).add(new LatLng (44.4342361, 26.0348472));\n listOfpoints.get(59).add(new LatLng (44.4273254, 26.0330877));\n listOfpoints.get(59).add(new LatLng (44.4237396,26.0342893));\n listOfpoints.get(59).add(new LatLng (44.4224216,26.0344395));\n\n\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n listOfpoints.get(60).add(new LatLng (44.4343687, 26.0351665));\n listOfpoints.get(60).add(new LatLng (44.4347671,26.059757));\n listOfpoints.get(60).add(new LatLng (44.435334, 26.0617097));\n listOfpoints.get(60).add(new LatLng (44.4355025, 26.0629327));\n listOfpoints.get(60).add(new LatLng (44.4356864,26.0635979));\n listOfpoints.get(60).add(new LatLng (44.4371728, 26.0669608));\n listOfpoints.get(60).add(new LatLng (44.4383602, 26.0697182));\n listOfpoints.get(60).add(new LatLng (44.4427184,26.0621798));\n listOfpoints.get(60).add(new LatLng (44.4429329,26.0609782));\n listOfpoints.get(60).add(new LatLng (44.447161,26.0392201));\n listOfpoints.get(60).add(new LatLng (44.4427491,26.0356152));\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n\n\n listOfpoints.get(61).add(new LatLng (44.4053059, 26.0112059));\n listOfpoints.get(61).add(new LatLng (44.384914, 26.0334789));\n listOfpoints.get(61).add(new LatLng (44.3778596, 26.0462677));\n listOfpoints.get(61).add(new LatLng (44.3811722,26.0454952));\n listOfpoints.get(61).add(new LatLng (44.399879, 26.0482418));\n listOfpoints.get(61).add(new LatLng (44.4002162, 26.0489714));\n listOfpoints.get(61).add(new LatLng (44.4169858,26.0575115));\n listOfpoints.get(61).add(new LatLng (44.4180893, 26.0579407));\n listOfpoints.get(61).add(new LatLng (44.4156984,26.0508167));\n listOfpoints.get(61).add(new LatLng (44.4151773,26.0472977));\n listOfpoints.get(61).add(new LatLng (44.414135,26.0356247));\n listOfpoints.get(61).add(new LatLng (44.4110082, 26.0104334));\n listOfpoints.get(61).add(new LatLng (44.4061643,26.0117208));\n listOfpoints.get(61).add(new LatLng (44.4053059,26.0112059));\n\n\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n listOfpoints.get(62).add(new LatLng (44.4103304, 26.0034906));\n listOfpoints.get(62).add(new LatLng (44.4127522,26.0228884));\n listOfpoints.get(62).add(new LatLng (44.4144076,26.0351192));\n listOfpoints.get(62).add(new LatLng (44.4167986,26.0343897));\n listOfpoints.get(62).add(new LatLng (44.4221013, 26.0343038));\n listOfpoints.get(62).add(new LatLng (44.4271277, 26.0328018));\n listOfpoints.get(62).add(new LatLng (44.4343295, 26.0347544));\n listOfpoints.get(62).add(new LatLng (44.4344597, 26.0345399));\n listOfpoints.get(62).add(new LatLng (44.436423, 26.0347646));\n listOfpoints.get(62).add(new LatLng (44.4424747, 26.0213321));\n listOfpoints.get(62).add(new LatLng (44.4459215, 26.0171264));\n listOfpoints.get(62).add(new LatLng (44.4457043,26.0167004));\n listOfpoints.get(62).add(new LatLng (44.4252662, 25.9987613));\n listOfpoints.get(62).add(new LatLng (44.4235193, 25.9990188));\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n\n\n listOfpoints.get(63).add(new LatLng (44.450683, 26.0692569));\n listOfpoints.get(63).add(new LatLng (44.4530725,26.0733768));\n listOfpoints.get(63).add(new LatLng (44.4523986, 26.0762092));\n listOfpoints.get(63).add(new LatLng (44.4522454,26.0783979));\n listOfpoints.get(63).add(new LatLng (44.4521842,26.0858652));\n listOfpoints.get(63).add(new LatLng (44.4658762, 26.0861656));\n listOfpoints.get(63).add(new LatLng (44.4661262, 26.0856151));\n listOfpoints.get(63).add(new LatLng (44.4670374, 26.0787379));\n listOfpoints.get(63).add(new LatLng (44.467496, 26.0777089));\n listOfpoints.get(63).add(new LatLng (44.4773875,26.0721728));\n listOfpoints.get(63).add(new LatLng (44.4779387,26.0720012));\n listOfpoints.get(63).add(new LatLng (44.482103,26.0611007));\n listOfpoints.get(63).add(new LatLng (44.4811232,26.0571525));\n listOfpoints.get(63).add(new LatLng (44.4748153, 26.0461661));\n listOfpoints.get(63).add(new LatLng (44.4716917, 26.0438487));\n listOfpoints.get(63).add(new LatLng (44.4690579,26.0436771));\n listOfpoints.get(63).add(new LatLng (44.4667916, 26.0449645));\n listOfpoints.get(63).add(new LatLng (44.4519663, 26.0668513));\n listOfpoints.get(63).add(new LatLng (44.450683,26.0692569));\n\n\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n listOfpoints.get(64).add(new LatLng (44.466193, 26.0862472));\n listOfpoints.get(64).add(new LatLng (44.4723947,26.0878994));\n listOfpoints.get(64).add(new LatLng (44.4731756,26.0883715));\n listOfpoints.get(64).add(new LatLng (44.4739718,26.090131));\n listOfpoints.get(64).add(new LatLng (44.4744158, 26.090882));\n listOfpoints.get(64).add(new LatLng (44.4748292,26.0909678));\n listOfpoints.get(64).add(new LatLng (44.4753498,26.0906889));\n listOfpoints.get(64).add(new LatLng (44.4774321, 26.0888006));\n listOfpoints.get(64).add(new LatLng (44.4801879,26.0864832));\n listOfpoints.get(64).add(new LatLng (44.4868014,26.0859682));\n listOfpoints.get(64).add(new LatLng (44.4880873,26.0854532));\n listOfpoints.get(64).add(new LatLng (44.489618,26.0824491));\n listOfpoints.get(64).add(new LatLng (44.4904753, 26.0788443));\n listOfpoints.get(64).add(new LatLng (44.4890057,26.0784151));\n listOfpoints.get(64).add(new LatLng (44.478167, 26.0727074));\n listOfpoints.get(64).add(new LatLng (44.4678468, 26.0779216));\n listOfpoints.get(64).add(new LatLng (44.467219, 26.0788228));\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n\n\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n listOfpoints.get(65).add(new LatLng (44.443222,26.0605852));\n listOfpoints.get(65).add(new LatLng (44.4450067,26.0611538));\n listOfpoints.get(65).add(new LatLng (44.4465463,26.062173));\n listOfpoints.get(65).add(new LatLng (44.4472816,26.0631386));\n listOfpoints.get(65).add(new LatLng (44.448913,26.0666577));\n listOfpoints.get(65).add(new LatLng (44.4502551,26.0690373));\n listOfpoints.get(65).add(new LatLng (44.4664896,26.0448331));\n listOfpoints.get(65).add(new LatLng (44.4688479,26.0434168));\n listOfpoints.get(65).add(new LatLng (44.469491,26.0403269));\n listOfpoints.get(65).add(new LatLng (44.4702566,26.037237));\n listOfpoints.get(65).add(new LatLng (44.4701035,26.0353058));\n listOfpoints.get(65).add(new LatLng (44.4613441,26.0305422));\n listOfpoints.get(65).add(new LatLng (44.4611297,26.0346621));\n listOfpoints.get(65).add(new LatLng (44.4606089,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.4595369,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.458618,26.0354775));\n listOfpoints.get(65).add(new LatLng (44.4545745,26.0376233));\n listOfpoints.get(65).add(new LatLng (44.4501632,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4494892,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4485701,26.039297));\n listOfpoints.get(65).add(new LatLng (44.4477429,26.0380953));\n listOfpoints.get(65).add(new LatLng (44.4466093,26.0430306));\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n\n\n\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0912642));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0917148));\n listOfpoints.get(66).add(new LatLng (44.4743313,26.0922513));\n listOfpoints.get(66).add(new LatLng (44.4750816,26.0927019));\n listOfpoints.get(66).add(new LatLng (44.4758471,26.0937962));\n listOfpoints.get(66).add(new LatLng (44.4762758,26.0947189));\n listOfpoints.get(66).add(new LatLng (44.4766127,26.0962853));\n listOfpoints.get(66).add(new LatLng (44.4765514,26.0971436));\n listOfpoints.get(66).add(new LatLng (44.4761227,26.0977444));\n listOfpoints.get(66).add(new LatLng (44.4753878,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4745457,26.0985384));\n listOfpoints.get(66).add(new LatLng (44.4734585,26.0989675));\n listOfpoints.get(66).add(new LatLng (44.4729073,26.0990104));\n listOfpoints.get(66).add(new LatLng (44.4718508,26.0986671));\n listOfpoints.get(66).add(new LatLng (44.471223,26.0980663));\n listOfpoints.get(66).add(new LatLng (44.469263,26.0970792));\n listOfpoints.get(66).add(new LatLng (44.4689567,26.0971651));\n listOfpoints.get(66).add(new LatLng (44.468773,26.0975728));\n listOfpoints.get(66).add(new LatLng (44.4687424,26.0981092));\n listOfpoints.get(66).add(new LatLng (44.4688955,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4692017,26.0986886));\n listOfpoints.get(66).add(new LatLng (44.4694774,26.0985598));\n listOfpoints.get(66).add(new LatLng (44.4704268,26.0990319));\n listOfpoints.get(66).add(new LatLng (44.4707483,26.0994396));\n listOfpoints.get(66).add(new LatLng (44.4719733,26.1024651));\n listOfpoints.get(66).add(new LatLng (44.4735963,26.1028943));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1035809));\n listOfpoints.get(66).add(new LatLng (44.4741322,26.1042676));\n listOfpoints.get(66).add(new LatLng (44.4735351,26.1047396));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1077866));\n listOfpoints.get(66).add(new LatLng (44.4738413,26.1079583));\n listOfpoints.get(66).add(new LatLng (44.473826,26.1085591));\n listOfpoints.get(66).add(new LatLng (44.4733667,26.1097822));\n listOfpoints.get(66).add(new LatLng (44.4732595,26.1107478));\n listOfpoints.get(66).add(new LatLng (44.4734432,26.1111555));\n listOfpoints.get(66).add(new LatLng (44.4763087,26.1089172));\n listOfpoints.get(66).add(new LatLng (44.4946789,26.1040249));\n listOfpoints.get(66).add(new LatLng (44.4968217,26.0792198));\n listOfpoints.get(66).add(new LatLng (44.490592,26.0788336));\n listOfpoints.get(66).add(new LatLng (44.4898573,26.0820737));\n listOfpoints.get(66).add(new LatLng (44.4894593,26.0830178));\n listOfpoints.get(66).add(new LatLng (44.4882229,26.0855306));\n listOfpoints.get(66).add(new LatLng (44.4870595,26.0860456));\n listOfpoints.get(66).add(new LatLng (44.4801439,26.0866335));\n listOfpoints.get(66).add(new LatLng (44.4761173,26.090174));\n listOfpoints.get(66).add(new LatLng (44.4751527,26.0912469));\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n\n listOfpoints.get(67).add(new LatLng (44.4671287, 26.121282));\n listOfpoints.get(67).add(new LatLng (44.46768,26.1231274));\n listOfpoints.get(67).add(new LatLng (44.4696095,26.1234278));\n listOfpoints.get(67).add(new LatLng (44.4712938,26.1224408));\n listOfpoints.get(67).add(new LatLng (44.4723657,26.1229557));\n listOfpoints.get(67).add(new LatLng (44.4727944, 26.1226553));\n listOfpoints.get(67).add(new LatLng (44.4740193, 26.1226982));\n listOfpoints.get(67).add(new LatLng (44.4745399,26.1236424));\n listOfpoints.get(67).add(new LatLng (44.4743668,26.1243164));\n listOfpoints.get(67).add(new LatLng (44.4747037, 26.1250031));\n listOfpoints.get(67).add(new LatLng (44.4751324,26.1257541));\n listOfpoints.get(67).add(new LatLng (44.4758673,26.1267626));\n listOfpoints.get(67).add(new LatLng (44.4761736, 26.127578));\n listOfpoints.get(67).add(new LatLng (44.491758,26.1285221));\n listOfpoints.get(67).add(new LatLng (44.4931662, 26.1377919));\n listOfpoints.get(67).add(new LatLng (44.494452,26.1444008));\n listOfpoints.get(67).add(new LatLng (44.4947581,26.1462033));\n listOfpoints.get(67).add(new LatLng (44.4958601, 26.1472332));\n listOfpoints.get(67).add(new LatLng (44.4969009, 26.1458599));\n listOfpoints.get(67).add(new LatLng (44.4984926, 26.1450875));\n listOfpoints.get(67).add(new LatLng (44.5000231,26.1446583));\n listOfpoints.get(67).add(new LatLng (44.5006353,26.1435425));\n listOfpoints.get(67).add(new LatLng (44.5012475,26.1424267));\n listOfpoints.get(67).add(new LatLng (44.5057774, 26.144315));\n listOfpoints.get(67).add(new LatLng (44.5070629, 26.137191));\n listOfpoints.get(67).add(new LatLng (44.5066956, 26.1233723));\n listOfpoints.get(67).add(new LatLng (44.502227,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4952479,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4782558,26.1086953));\n listOfpoints.get(67).add(new LatLng (44.4765716,26.1090386));\n listOfpoints.get(67).add(new LatLng (44.4734175,26.1114848));\n listOfpoints.get(67).add(new LatLng (44.4739994,26.1124289));\n listOfpoints.get(67).add(new LatLng (44.4744587,26.1137163));\n listOfpoints.get(67).add(new LatLng (44.474275,26.1152613));\n listOfpoints.get(67).add(new LatLng (44.4738156,26.1171067));\n listOfpoints.get(67).add(new LatLng (44.4729582,26.1180937));\n listOfpoints.get(67).add(new LatLng (44.4705695, 26.1195099));\n listOfpoints.get(67).add(new LatLng (44.4677826,26.1202395));\n listOfpoints.get(67).add(new LatLng (44.4671287,26.121282));\n\n\n //Stockholm\n listOfpoints.get(68).add(new LatLng(59.339281, 18.005316));\n listOfpoints.get(68).add(new LatLng(59.263986, 18.253591));\n listOfpoints.get(68).add(new LatLng(59.260869, 17.878596));\n\n //Stockholm\n listOfpoints.get(69).add(new LatLng(59.342841, 18.040179));\n listOfpoints.get(69).add(new LatLng(59.355275, 17.884694));\n listOfpoints.get(69).add(new LatLng(59.423065, 18.075748));\n\n\n for(int i = 0 ; i < listOfpoints.size(); i++){\n listOfPolygons.add( MapsActivity.instance.mMap.addPolygon(new PolygonOptions()\n .addAll(listOfpoints.get(i))\n .strokeWidth(0)\n .fillColor(Color.argb(50, 0, 250, 0))) );\n }\n\n\n\n\n }",
"public void pointsCollected(List<Point> points);",
"public ArrayList<T> getElements(Point2D point);",
"public List<Point> getPointList() {\n\t\t\treturn clusterPointsList;\n\t\t}",
"@Override\n\tpublic List<List<Double>> getCurrentPoints() {\n\t\treturn null;\n\t}",
"public abstract int[] getCoords();",
"public List<Vector3D> getConvexCellsInsidePoints() {\n return convexCellsInsidePoints;\n }",
"public ArrayList<Point> getAllPoints() {\n return allPoints;\n }",
"public int size() {\n\t\treturn pointList.size();\n\t}",
"public List<Vector3f> getInterpolatedPositions()\n {\n return interpolatedPositions;\n }",
"int getPoints();",
"@GetMapping(\"ElementWebService/getAllCoords\")\n\tpublic String getAllHQCoords() {\n\t\tList<Element> elementList = elementService.getAll();\n\t\tList<Coord> coordList = new ArrayList<Coord>();\n\t\tfor(Element element: elementList) {\n\t\t\tcoordList.add(element.getLocation());\n\t\t}\n\t\treturn Tools.toJsonString(coordList);\n\t}",
"java.util.List<java.lang.Float> getInList();",
"public PlayerStart[] getPlayerStartingPoints() {\n if(mPlayerStartList == null) {\n generate();\n }\n return mPlayerStartList;\n }",
"public LinkedList<Point> segmentsToDraw() {\n LinkedList<Point> segmentCoordinates = new LinkedList<Point>();\n for (int segment = 1; segment <= snakeSize; segment++) {\n //search array for each segment number\n for (int x = 0; x < maxX; x++) {\n for (int y = 0; y < maxY; y++) {\n if (snakeSquares[x][y] == segment) {\n //make a Point for this segment's coordinates and add to list\n Point p = new Point(x * SnakeGame.getSquareSize(), y * SnakeGame.getSquareSize());\n segmentCoordinates.add(p);\n }\n }\n }\n }\n return segmentCoordinates;\n\n }",
"public static List<Point> findConvexHull(List<Point> points) {\n Point basePoint = points.stream() // lowest point\n .min(Comparator.comparingDouble(Point::getY)).orElseThrow();\n\n List<Point> pointStorage = new ArrayList<>(points);\n pointStorage.remove(basePoint);\n\n pointStorage.sort((p1, p2) -> {\n double p1Atan = getPolarAngleBetween2Points(basePoint, p1);\n double p2Atan = getPolarAngleBetween2Points(basePoint, p2);\n return Double.compare(p1Atan, p2Atan);\n });\n\n List<Point> convexHullPoints = new ArrayList<>();\n convexHullPoints.add(basePoint);\n Map<Point, Double> pointToPolarAngle = new HashMap<>();\n pointToPolarAngle.put(basePoint, .0);\n\n for (Point point : pointStorage) {\n ListIterator<Point> listIterator = convexHullPoints.listIterator(convexHullPoints.size());\n while (listIterator.hasPrevious()) {\n Point previous = listIterator.previous();\n Double previousPolarAngle = pointToPolarAngle.get(previous);\n double curPointPolarAngle = getPolarAngleBetween2Points(previous, point);\n\n if (curPointPolarAngle < 0)\n curPointPolarAngle += Math.PI * 2;\n\n if (previousPolarAngle >= curPointPolarAngle) {\n listIterator.remove();\n pointToPolarAngle.remove(previous);\n } else {\n convexHullPoints.add(point);\n pointToPolarAngle.put(point, curPointPolarAngle);\n break;\n }\n }\n }\n\n return convexHullPoints;\n }",
"private static List<Point<Thread>> getPointList(Bundle a)\r\n/* 62: */ {\r\n/* 63:74 */ List<Point<Thread>> aa = new ArrayList(a.size());\r\n/* 64:75 */ for (Thread t : a) {\r\n/* 65:76 */ aa.add(new ThreadWithSimilarityDistance(t));\r\n/* 66: */ }\r\n/* 67:78 */ return aa;\r\n/* 68: */ }",
"public java.util.List getPointArray(int i)\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(POINT$0, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n return target.getListValue();\n }\n }",
"public DoubleArrayList wilcoxonTestExistingPathway(Map<String, Double> genePValueMap, List<Pathway> pathwayList, int minSize) throws Exception {\n int subPopulationSize = 0;\n DoubleArrayList pValueListInPathway = new DoubleArrayList();\n DoubleArrayList pValueListOutPathway = new DoubleArrayList();\n DoubleArrayList allPValues = new DoubleArrayList();\n\n Map<String, Float> availableGWASGeneSet = new HashMap<String, Float>();\n float geneWeight = 1;\n for (Pathway curPath : pathwayList) {\n Set<String> pGenes = curPath.getGeneSymbols();\n\n pValueListInPathway.clear();\n pValueListOutPathway.clear();\n Map<String, Float> geneSymbolWeightMap = curPath.getGeneSymbolWeightMap();\n\n for (Map.Entry<String, Float> pGeneIter : geneSymbolWeightMap.entrySet()) {\n String pGeneSymb = pGeneIter.getKey();\n //may introduce biase\n if (!genePValueMap.containsKey(pGeneSymb)) {\n continue;\n }\n if (toWeightHyst) {\n geneWeight = pGeneIter.getValue();\n }\n availableGWASGeneSet.put(pGeneSymb, geneWeight);\n Double p = genePValueMap.get(pGeneSymb);\n if (p != null) {\n pValueListInPathway.add(p);\n }\n }\n\n for (Map.Entry<String, Double> mGene : genePValueMap.entrySet()) {\n if (!pGenes.contains(mGene.getKey())) {\n pValueListOutPathway.add(mGene.getValue());\n }\n }\n\n subPopulationSize = pValueListInPathway.size();\n double[] pValuesInPathway = new double[subPopulationSize];\n for (int t = 0; t < subPopulationSize; t++) {\n pValuesInPathway[t] = pValueListInPathway.getQuick(t);\n }\n double[] pValuesOutPathway = new double[pValueListOutPathway.size()];\n for (int t = 0; t < pValuesOutPathway.length; t++) {\n pValuesOutPathway[t] = pValueListOutPathway.getQuick(t);\n }\n if (subPopulationSize > minSize) {\n MannWhitneyTest mt = new MannWhitneyTest(pValuesInPathway, pValuesOutPathway, H1.LESS_THAN);\n // WilcoxonTest wt = new WilcoxonTest(pValuesInPathway, median, H1.LESS_THAN); \n curPath.setWilcoxonPValue(mt.getSP());\n allPValues.add(curPath.getWilcoxonPValue());\n } else {\n curPath.setWilcoxonPValue(Double.NaN);\n }\n\n }\n return allPValues;\n }",
"public Set<Point> getHitboxPoints() {\n Set<Point> hitboxPoints = new HashSet<>();\n\n for(Point p : relevantPoints)\n {\n int currX = (int)(p.x + xPos - (getWidth() / 2));\n int currY = (int)(p.y + yPos - (getHeight() / 2));\n\n hitboxPoints.add(new Point(currX, currY));\n }\n\n return hitboxPoints;\n }",
"public static List<Point> ParetoOptimal(List<Point> listofPts)\n {\n \n if(listofPts.size() == 1 || listofPts.size() == 0)\n return listofPts;\n \n \n \n \n int pos = listofPts.size() /2 ;\n \n /*\n * quickSelect time complexity (n)\n */\n \n Point median = quickSelect(listofPts, pos, 0, listofPts.size() - 1); \n \n \n \n List<Point> points1 = new ArrayList<Point>();\n List<Point> points2 = new ArrayList<Point>();\n List<Point> points3 = new ArrayList<Point>();\n List<Point> points4 = new ArrayList<Point>();\n \n //O(n)\n if(oldMedian == median)\n {\n \t\n for(int x= 0; x < listofPts.size(); x++)\n {\n if(listofPts.get(x).getX() <= median.getX())\n {\n points1.add(listofPts.get(x));\n \n }\n else\n {\n points2.add(listofPts.get(x));\n \n }\n }\n \n \n }\n else\n {\n for(int x= 0; x < listofPts.size(); x++)\n {\n if(listofPts.get(x).getX() < median.getX())\n {\n points1.add(listofPts.get(x));\n \n }\n else\n {\n points2.add(listofPts.get(x));\n \n }\n }\n \n \n }\n //O(n)\n int yRightMax = -100000;\n for(int x= 0; x < points2.size(); x++)\n {\n if(points2.get(x).getY() > yRightMax)\n yRightMax = (int) points2.get(x).getY();\n \n }\n \n \n for(int x= 0; x < points1.size() ; x++)\n {\n if(points1.get(x).getY()> yRightMax)\n { \n points3.add(points1.get(x));\n \n } \n }\n \n for(int x= 0; x < points2.size() ; x++)\n {\n if(points2.get(x).getY() < yRightMax)\n {\n points4.add(points2.get(x));\n \n }\n \n }\n //System.out.println(\"points2: \" + points2);\n /*\n * Below bounded by T(n/c) + T(n/2) where c is ratio by which left side is shortened \n */\n oldMedian = median;\n return addTo \n ( ParetoOptimal(points3), \n ParetoOptimal(points2)) ;\n }",
"private static ImmutableList<WorldCoord> generateVertexList()\r\n {\n\t return ShapeReader.getWorldCoordsFromResource(RESOURCE);\r\n }",
"public static List<float[]> buildObstacle(List<WallMeasurement> cutMeasurementList) {\n List<float[]> obstaclePoints = new ArrayList<float[]>();\n WallMeasurement lastCutMeasurement = null;\n // Intersect every measurement with the previous one and add the result to the plan.\n if (!cutMeasurementList.isEmpty()) {\n boolean first = true;\n float[] lastAddedPoint = null;\n for (WallMeasurement cutMeasurement : cutMeasurementList) {\n if (lastCutMeasurement != null) {\n if (!first) {\n obstaclePoints.remove(lastAddedPoint);\n }\n obstaclePoints.add(cutMeasurement.intersect(lastCutMeasurement));\n first = false;\n }\n float[] openGlWall = cutMeasurement.getPlaneTransform();\n float[] measurementPoint = new float[]{openGlWall[12], openGlWall[13], openGlWall[14]};\n obstaclePoints.add(measurementPoint);\n lastCutMeasurement = cutMeasurement;\n lastAddedPoint = measurementPoint;\n }\n //intersect the first and last measurements.\n obstaclePoints.remove(lastAddedPoint);\n obstaclePoints.add(lastCutMeasurement.intersect(cutMeasurementList.get(0)));\n obstaclePoints.remove(obstaclePoints.get(0));\n }\n return obstaclePoints;\n }",
"private int[][] countQuadrant(List<MeasurementService.DataPoint> list, int H){\n int[][] quadrantsCounts = new int[BITMAP_SIZE /H][BITMAP_SIZE /H];\n float[] transXY;\n transXY = getTranslationVector(center.getX(),center.getY(),BITMAP_SIZE, BITMAP_SIZE, CONSTANT);\n\n //Testing max,min\n min = 999999999;\n max = -999999999;\n // TESTING000\n\n for (MeasurementService.DataPoint p : list) {\n int transX = (int)((p.getX()*CONSTANT)+ transXY[0]);\n int transY = (int)((p.getY()*CONSTANT)+ transXY[1]);\n\n int[] detQuad = determineRegion(transX,transY,H);\n if(detQuad != null){\n quadrantsCounts[detQuad[0]][detQuad[1]]++;\n\n //TESTING\n if(quadrantsCounts[detQuad[0]][detQuad[1]] > max){\n max = quadrantsCounts[detQuad[0]][detQuad[1]];\n }\n if(quadrantsCounts[detQuad[0]][detQuad[1]] < min){\n min = quadrantsCounts[detQuad[0]][detQuad[1]];\n }\n\n //TESTING\n }\n }\n Log.e(\"Minimum count\",\"\"+min);\n Log.e(\"Maximum count\",\"\"+max);\n Log.e(\"List size\",\"\"+list.size());\n\n return quadrantsCounts;\n }",
"public int getPoints();",
"public Point2D[] getGivenPoints(){ \n return this.points; \n }",
"public abstract Proximity2DResult[] getNearestVertices(Geometry geom,\n\t\t\tPoint inputPoint, double searchRadius, int maxVertexCountToReturn);",
"private List<ProductQuantity> getQuantities() {\n List<ProductQuantity> quantities = new ArrayList<>();\n for (int i = 1; i <= QUANTITY_MAX; i++) {\n ProductQuantity q = new ProductQuantity(i, i + \"x\");\n quantities.add(q);\n }\n return quantities;\n }",
"public void addPoints(List<Point2D> points);",
"private ArrayList<Integer> cnvPoints2IndexList(ArrayList<Point> pts) {\n int width = layoutPanel.getLayoutSize().width;\n ArrayList<Integer> newNList = new ArrayList<Integer>();\n\n Iterator<Point> iter = pts.iterator();\n while (iter.hasNext()) {\n Point pt = iter.next();\n newNList.add(pt.y * width + pt.x);\n }\n Collections.sort(newNList);\n\n return newNList;\n }",
"protected ArrayList<DataToPoint> getToPoints() {\n\t\treturn toPoints.stream().map(e -> e.toPoint)\n\t\t\t\t.collect(Collectors.toCollection(ArrayList::new));\n\t}",
"public BigDecimal getPriceList();",
"public abstract int getPoints();",
"public abstract double[] getLowerBound();",
"double[] getOrigin();",
"public static List<Double> getList(long seed, int size) {\r\n\t\treturn new Random(seed).doubles(size).boxed().collect(Collectors.toList());\r\n\t}",
"@Override\n public ArrayList<Point> points(Rectangle inRectangle) {\n // if the node's rect and the given rect don't intersect, return an empty array,\n // because there can't be any points that lie the node's (or its children's) rect and\n // in the given rect\n if (!this.rectangle.intersects(inRectangle)) {\n return new ArrayList<Point>();\n }\n\n ArrayList<Point> result = new ArrayList<Point>();\n\n // collect the node's points that lie in the rect\n for (Point point : points) {\n if (inRectangle.contains(point)) {\n result.add(point);\n }\n }\n\n if (hasChildren) {\n // recursively add children's points that lie in the rect\n for (QuadtreeNode node : children) {\n result.addAll(node.points(inRectangle));\n }\n }\n\n return result;\n }",
"public ArrayList<Float> getRandomZlotyPrices(int size){\n ArrayList<Float> prices = new ArrayList<>();\n for(int i = 0; i < size; i++){\n prices.add(generator.nextFloat() * 10);\n }\n return prices;\n }",
"public List<Point2D> getControlPoints();",
"private static List<Point> genererPointsAlea(int nbPoints) {\n /*List<Point> points = new ArrayList<>();\n Random rand = new Random(0);\n for(int i=0; i<nbPoints; i++) {\n Point p = new Point(rand.nextDouble(), rand.nextDouble());\n points.add(p);\n }\n return points;*/\n return null;\n }",
"Dimension[] getSizes();",
"public int size()\n {\n return points.size();\n }",
"public java.util.List<V> getVertices();",
"public ArrayList<Point> getAvailableSlots ()\n {\n return availableSlots;\n }",
"public List<SigPair<C>>[] minDegSubset(List<SigPair<C>> F) {\n long mdeg = minimalSigDegree(F);\n List<SigPair<C>> ff = new ArrayList<SigPair<C>>();\n List<SigPair<C>> pp = new ArrayList<SigPair<C>>();\n for (SigPair<C> p : F) {\n //if (p.sigma.totalDegree() == mdeg) {\n if (p.sigma.degree() == mdeg) {\n ff.add(p);\n } else {\n pp.add(p);\n }\n }\n @SuppressWarnings(\"unchecked\")\n List<SigPair<C>>[] P = new List[2];\n P[0] = ff;\n P[1] = pp;\n return P;\n }",
"Float getTotalPoints();",
"public ArrayList<Integer> pointsInRange( int min, int max )\n {\n ArrayList<Integer> points = new ArrayList<Integer>();\n _root.findPoints( min, max, points );\n return points;\n }",
"void drawPointArr(Graphics2D g2d, ArrayList<Point2D.Double> l){\r\n\t\tfor(int i=0; i<l.size()-1; i++){\r\n\t\t\tLine2D.Double line=new Line2D.Double(l.get(i), l.get(i+1));\r\n\t\t\tg2d.draw(line);\r\n\t\t}\r\n\r\n\t}",
"public double[] getRange();",
"private ArrayList<Point> cnvIndexList2Points(ArrayList<Integer> nList) {\n ArrayList<Point> pts = new ArrayList<Point>();\n\n // convert index list to points array\n int width = layoutPanel.getLayoutSize().width;\n Iterator<Integer> iter = nList.iterator();\n while (iter.hasNext()) {\n int idx = iter.next();\n pts.add(new Point(idx % width, idx / width)); // Point(x, y)\n }\n\n return pts;\n }",
"public double[] getSolutionsInRadius(){\n\t\t\n\t\t\n\t}",
"java.util.List<com.google.ads.googleads.v14.common.ListingDimensionInfo> \n getDimensionsList();",
"public static float[] getPlanCenter(List<float[]> list) {\n float[] bounds = getPlanBounds(list);\n return new float[]{(bounds[0] + bounds[1]) / 2, (bounds[2] + bounds[3]) / 2,\n (bounds[4] + bounds[5]) / 2};\n }",
"List<double[]> cmwa(List<double[]> points){\n List<double[]> outputList = new ArrayList<>();\n //output list tags the y values with the frame\n outputList.add(new double[]{(points.get(0)[0]+points.get(1)[0])/2, points.get(0)[1]});\n for (int i = 1; i < points.size() - 1; i++) {\n outputList.add(new double[]{(points.get(i-1)[0] + points.get(i)[0] + points.get(i+1)[0])/3, points.get(i)[1] });\n }\n outputList.add(new double[]{(points.get(points.size() - 1)[0] + points.get(points.size()-2)[0])/2, points.get(points.size()-1)[1]});\n return outputList;\n }",
"public int size() {\n return points.size();\n }",
"Collection<Point> getCoordinates(int... ids);",
"java.util.List<it.unipr.aotlab.dmat.core.generated.MatrixPieceTripletsBytesWire.Triplet> \n getValuesList();",
"public ArrayList<ArrayList<Float>> getRandomCurrencyPrices(int size){\n ArrayList<ArrayList<Float>> prices = new ArrayList<>();\n for(int i = 0; i < size; i++){\n ArrayList<Float> row = new ArrayList<>();\n prices.add(row);\n for(int j = 0; j < size; j++){\n float x = generator.nextFloat() * 10;\n if(j > i){\n prices.get(i).add(x);\n }\n else if (j == i){\n prices.get(i).add(1.f);\n }\n else if(j < i){\n prices.get(i).add(1.f/x);\n }\n }\n }\n return prices;\n }",
"public abstract ArrayList<STTPoint> getWrappedData();",
"public Point[] nearestPair() {\n\t\t\tPoint[] Answer = new Point[2];\n\t\t\tif (this.size<2)\treturn null; //step 1\n\t\t\tif (this.size==2){\n\t\t\t\tAnswer[0]=this.minx.getData();\n\t\t\t\tAnswer[1]=this.maxx.getData();\n\t\t\t\treturn Answer;\t\t\t\n\t\t\t}\n\t\t\tdouble MinDistance=-1; // for sure it will be change in the next section, just for avoid warrning.\n\t\t\tdouble MinDistanceInStrip=-1;\n\t\t\tPoint[] MinPointsLeft = new Point[2];\n\t\t\tPoint[] MinPointsRight = new Point[2];\n\t\t\tPoint[] MinPointsInStrip = new Point[2]; // around the median\n\t\t\tboolean LargestAxis = getLargestAxis(); //step 2\n\t\t\tContainer median = getMedian(LargestAxis); //step 3\n\t\t\tif (LargestAxis){// step 4 - calling the recursive function nearestPairRec\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(this.minx.getData().getX(), median.getData().getX(),LargestAxis), LargestAxis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(median.getNextX().getData().getX(), this.maxx.getData().getX(),LargestAxis), LargestAxis);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(this.miny.getData().getY(), median.getData().getY(),LargestAxis), LargestAxis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(median.getNextY().getData().getY(), this.maxy.getData().getY(),LargestAxis), LargestAxis);\n\t\t\t}\n\t\t\t//step 5\n\t\t\tif (MinPointsLeft!=null && MinPointsRight!=null){\n\t\t\t\tif (Distance(MinPointsLeft[0], MinPointsLeft[1]) > Distance(MinPointsRight[0], MinPointsRight[1])){\n\t\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\t\tAnswer = MinPointsRight;\n\t\t\t\t}else{\n\t\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (MinPointsLeft!=null) {\n\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t}\n\t\t\telse if (MinPointsRight!=null){\n\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\tAnswer = MinPointsRight;\n\t\t\t}\n\t\t\t//step 6 - nearest point around the median\n\t\t\tif (MinDistance==-1) MinDistance=0;\n\t\t\tMinPointsInStrip = nearestPairInStrip(median, MinDistance*2, LargestAxis);\n\t\t\tif (MinPointsInStrip != null){\n\t\t\t\tMinDistanceInStrip = Distance(MinPointsInStrip[0], MinPointsInStrip[1]);\n\t\t\t\tif (MinDistanceInStrip < MinDistance) return MinPointsInStrip;\n\t\t\t}\n\t\t\treturn Answer;\n\t\t}",
"java.util.List<org.landxml.schema.landXML11.DecisionSightDistanceDocument.DecisionSightDistance> getDecisionSightDistanceList();"
] | [
"0.6479608",
"0.6028442",
"0.5890266",
"0.58750015",
"0.58402956",
"0.58394766",
"0.579594",
"0.57190895",
"0.5689079",
"0.56618506",
"0.5641386",
"0.5439058",
"0.542632",
"0.5413576",
"0.5406974",
"0.5398699",
"0.5386848",
"0.5316865",
"0.53060156",
"0.5275488",
"0.52437437",
"0.5208087",
"0.51989573",
"0.5189959",
"0.5159779",
"0.5153944",
"0.51535875",
"0.5151519",
"0.51514673",
"0.51341194",
"0.51248574",
"0.51243883",
"0.51158106",
"0.51052266",
"0.51036745",
"0.50838804",
"0.508339",
"0.50818217",
"0.50526035",
"0.50442016",
"0.50426656",
"0.50368536",
"0.5031271",
"0.5029816",
"0.50169116",
"0.5011843",
"0.5009697",
"0.50086373",
"0.5006366",
"0.500311",
"0.49999195",
"0.49877474",
"0.4983081",
"0.4971843",
"0.496933",
"0.49676964",
"0.49671778",
"0.495996",
"0.4949936",
"0.4945818",
"0.49454042",
"0.49330875",
"0.49255458",
"0.49241576",
"0.49172473",
"0.4909675",
"0.4908824",
"0.4902563",
"0.48993373",
"0.48982558",
"0.4896057",
"0.48949793",
"0.4881095",
"0.4874502",
"0.48701483",
"0.48685136",
"0.48666885",
"0.48666835",
"0.4865413",
"0.48629105",
"0.48628387",
"0.4861529",
"0.485818",
"0.48576576",
"0.48570365",
"0.4853119",
"0.4851017",
"0.4844163",
"0.4839157",
"0.48309472",
"0.48285383",
"0.48257464",
"0.48156676",
"0.48151347",
"0.48099798",
"0.48076016",
"0.48057175",
"0.48019752",
"0.47986177",
"0.47910187"
] | 0.5446457 | 11 |
Sets list of points to be used to estimate a quadric. Provided list must have a size greater or equal than MINIMUM_SIZE. | public void setPoints(List<Point3D> points) throws LockedException {
if (isLocked()) {
throw new LockedException();
}
internalSetPoints(points);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void internalSetPoints(List<Point3D> points) {\n if (points.size() < MINIMUM_SIZE) {\n throw new IllegalArgumentException();\n }\n mPoints = points;\n }",
"public void setPoints(List<GeoPoint> points){\n\t\tclearPath();\n\t\tint size = points.size();\n\t\tmOriginalPoints = new int[size][2];\n\t\tfor (int i=0; i<size; i++){\n\t\t\tGeoPoint p = points.get(i);\n\t\t\tmOriginalPoints[i][0] = p.getLatitudeE6();\n\t\t\tmOriginalPoints[i][1] = p.getLongitudeE6();\n\t\t\tif (!mGeodesic){\n\t\t\t\taddPoint(p);\n\t\t\t} else {\n\t\t\t\tif (i>0){\n\t\t\t\t\t//add potential intermediate points:\n\t\t\t\t\tGeoPoint prev = points.get(i-1);\n\t\t\t\t\tfinal int greatCircleLength = prev.distanceTo(p);\n\t\t\t\t\t//add one point for every 100kms of the great circle path\n\t\t\t\t\tfinal int numberOfPoints = greatCircleLength/100000;\n\t\t\t\t\taddGreatCircle(prev, p, numberOfPoints);\n\t\t\t\t}\n\t\t\t\taddPoint(p);\n\t\t\t}\n\t\t}\n\t}",
"public void setPoints(int numOfIter) {\n\t\tint x = getX();\n\t\tint y = getY();\n\t\tint w = getW();\n\t\tint h = getH();\n\t\th = ((int) (getH() - w*0.29));\n\t\tint numOfSides = 3 * power(4, numOfIter);\n\t\n\t\t\n\t\tif(numOfIter == 0) {\n\t\t\txPointsD = new double[numOfSides];\n\t\t\tyPointsD = new double[numOfSides];\n\t\t\t\n\t\t\txPointsD[2] = x;\n\t\t\tyPointsD[2] = y + h;\n\t\t\t\n\t\t\txPointsD[1] = (double) x + ((double) w)/2;\n\t\t\tyPointsD[1] = y;\n\t\t\t\n\t\t\txPointsD[0] = x + w;\n\t\t\tyPointsD[0] = y + h;\n\t\t} else {\n\t\t\tsetPoints(numOfIter - 1);\n\t\t\tint numOfSidesBefore = xPoints.length;\n\t\t\tdouble[] xPointsDB = xPointsD;\n\t\t\tdouble[] yPointsDB = yPointsD;\n\t\t\txPointsD = new double[numOfSides];\n\t\t\tyPointsD = new double[numOfSides];\n\t\t\t\n\t\t\tfor(int i = 0; i < numOfSidesBefore; i++) {\n\t\t\t\txPointsD[4*i] = xPointsDB[i];\n\t\t\t\tyPointsD[4*i] = yPointsDB[i];\n\t\t\t\t\n\t\t\t\tdouble nextXPointsDB;\n\t\t\t\tdouble nextYPointsDB;\n\t\t\t\tif(i < numOfSidesBefore - 1) {\n\t\t\t\t\tnextXPointsDB = xPointsDB[i+1];\n\t\t\t\t\tnextYPointsDB = yPointsDB[i+1];\n\t\t\t\t} else {\n\t\t\t\t\tnextXPointsDB = xPointsDB[0];\n\t\t\t\t\tnextYPointsDB = yPointsDB[0];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//4i + 1 --> U = (2A+B)/3\n\t\t\t\txPointsD[4*i + 1] = (2 * xPointsDB[i] + nextXPointsDB)/3;\n\t\t\t\tyPointsD[4*i + 1] = (2 * yPointsDB[i] + nextYPointsDB)/3;\n\t\t\t\t\n\t\t\t\t//4i + 2 --> this one is complicated --> V = U + (AB/3)*(cos(ang(AB) + pi.3), sin(ang(AB) + pi/3))\n\t\t\t\tdouble angAB = Math.atan2(nextYPointsDB-yPointsDB[i], nextXPointsDB-xPointsDB[i]);\n\t\t\t\txPointsD[4*i + 2] = xPointsD[4*i + 1] + \n\t\t\t\t\t\t(Math.sqrt((nextXPointsDB - xPointsDB[i])*(nextXPointsDB - xPointsDB[i]) +\n\t\t\t\t\t\t\t\t(nextYPointsDB - yPointsDB[i])*(nextYPointsDB - yPointsDB[i]))/3.0) *\n\t\t\t\t\t\tMath.cos(angAB + Math.PI/3.0); \n\t\t\t\t\n\t\t\t\tyPointsD[4*i + 2] = yPointsD[4*i + 1] + \n\t\t\t\t\t\t(Math.sqrt((nextXPointsDB - xPointsDB[i])*(nextXPointsDB - xPointsDB[i]) +\n\t\t\t\t\t\t\t\t(nextYPointsDB - yPointsDB[i])*(nextYPointsDB - yPointsDB[i]))/3.0) *\n\t\t\t\t\t\tMath.sin(angAB + Math.PI/3.0);\n\t\t\t\t\n\t\t\t\t//4i + 3 --> W = (A + 2B)/3\n\t\t\t\txPointsD[4*i + 3] = (xPointsDB[i] + 2 * nextXPointsDB)/3;\n\t\t\t\tyPointsD[4*i + 3] = (yPointsDB[i] + 2 * nextYPointsDB)/3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\txPoints = new int[numOfSides];\n\t\tyPoints = new int[numOfSides];\n\t\tfor(int i = 0; i < numOfSides; i++) {\n\t\t\txPoints[i] = (int) xPointsD[i];\n\t\t\tyPoints[i] = (int) yPointsD[i];\n\t\t}\n\t\t\n\t}",
"private void internalSetPoints(List<Point2D> inputPoints, \n List<Point2D> outputPoints) {\n if (inputPoints.size() < getMinimumPoints()) {\n throw new IllegalArgumentException();\n }\n if (inputPoints.size() != outputPoints.size()) {\n throw new IllegalArgumentException();\n }\n mInputPoints = inputPoints;\n mOutputPoints = outputPoints; \n }",
"public void addPoints(List<Point2D> points);",
"public CoordinateObjects(List<T> points) {\n this.points = new ArrayList<>(points);\n }",
"public void pointsCollected(List<Point> points);",
"public void setPoints(String points);",
"public void set(GPointsArray pts) {\n\t\tif (pts.getNPoints() == points.size()) {\n\t\t\tfor (int i = 0; i < points.size(); i++) {\n\t\t\t\tpoints.get(i).set(pts.get(i));\n\t\t\t}\n\t\t} else if (pts.getNPoints() > points.size()) {\n\t\t\tfor (int i = 0; i < points.size(); i++) {\n\t\t\t\tpoints.get(i).set(pts.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = points.size(); i < pts.getNPoints(); i++) {\n\t\t\t\tpoints.add(new GPoint(pts.get(i)));\n\t\t\t}\n\t\t} else {\n\t\t\tfor (int i = 0; i < pts.getNPoints(); i++) {\n\t\t\t\tpoints.get(i).set(pts.get(i));\n\t\t\t}\n\n\t\t\tpoints.subList(pts.getNPoints(), points.size()).clear();\n\t\t}\n\t}",
"private void scaleMap(List<LatLng> listPoints){\n LatLngBounds.Builder bounds = new LatLngBounds.Builder();\n\n for(LatLng point : listPoints)\n bounds.include(point);\n\n googleMap.setOnMapLoadedCallback(() -> googleMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds.build(), 50)));\n }",
"public static void instantiate(){\n listOfpoints = new ArrayList<>(12);\n listOfPolygons = new ArrayList<>(listOfpoints.size());\n\n for ( int i= 0 ; i < 70; i++ ){\n listOfpoints.add(new ArrayList<LatLng>());\n }\n\n listOfpoints.get(0).add(new LatLng(44.4293595,26.1035863));\n listOfpoints.get(0).add(new LatLng(44.4295434,26.1035434));\n listOfpoints.get(0).add(new LatLng(44.4297579,26.103479));\n listOfpoints.get(0).add(new LatLng(44.431566,26.1033503));\n listOfpoints.get(0).add(new LatLng(44.4327305,26.1031572));\n listOfpoints.get(0).add(new LatLng(44.4337724,26.1029211));\n listOfpoints.get(0).add(new LatLng(44.4342474,26.1028138));\n listOfpoints.get(0).add(new LatLng( 44.4348756,26.1025563));\n listOfpoints.get(0).add(new LatLng(44.4353199,26.1023203));\n listOfpoints.get(0).add(new LatLng( 44.4353046,26.101977));\n listOfpoints.get(0).add(new LatLng( 44.4352893,26.1015478));\n listOfpoints.get(0).add(new LatLng(44.4351974,26.1010758));\n listOfpoints.get(0).add(new LatLng(44.4350595,26.100432));\n listOfpoints.get(0).add(new LatLng(44.4348756,26.0995523));\n listOfpoints.get(0).add(new LatLng(44.4346458,26.0983292));\n listOfpoints.get(0).add(new LatLng(44.4343547,26.098415));\n listOfpoints.get(0).add(new LatLng( 44.4340176,26.0983506));\n listOfpoints.get(0).add(new LatLng( 44.4327918,26.0975996));\n listOfpoints.get(0).add(new LatLng(44.4318878,26.0972134));\n listOfpoints.get(0).add(new LatLng( 44.4307692,26.0968701));\n listOfpoints.get(0).add(new LatLng( 44.4300644,26.0968271));\n listOfpoints.get(0).add(new LatLng( 44.4298498,26.0972992));\n listOfpoints.get(0).add(new LatLng(44.4297732,26.0977713));\n listOfpoints.get(0).add(new LatLng(44.4296966,26.0985867));\n listOfpoints.get(0).add(new LatLng (44.4296506,26.0994235));\n listOfpoints.get(0).add(new LatLng (44.4295587,26.1002389));\n listOfpoints.get(0).add(new LatLng (44.4294361,26.1007754));\n listOfpoints.get(0).add(new LatLng (44.4292369,26.1016766));\n listOfpoints.get(0).add(new LatLng (44.429099,26.1025778));\n listOfpoints.get(0).add(new LatLng (44.4289917,26.1033717));\n\n\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n listOfpoints.get(1).add(new LatLng (44.43630606,26.1017829));\n listOfpoints.get(1).add(new LatLng (44.4370654,26.101461));\n listOfpoints.get(1).add(new LatLng (44.4382451,26.1007958));\n listOfpoints.get(1).add(new LatLng (44.4393176,26.1002379));\n listOfpoints.get(1).add(new LatLng (44.4406045,26.0996371));\n listOfpoints.get(1).add(new LatLng (44.4418301,26.0990792));\n listOfpoints.get(1).add(new LatLng (44.4415084,26.0983067));\n listOfpoints.get(1).add(new LatLng (44.4412173,26.0977059));\n listOfpoints.get(1).add(new LatLng (44.4409875,26.097148));\n listOfpoints.get(1).add(new LatLng (44.4406811,26.0965472));\n listOfpoints.get(1).add(new LatLng (44.4404207,26.0959893));\n listOfpoints.get(1).add(new LatLng (44.4400989,26.0963326));\n listOfpoints.get(1).add(new LatLng (44.4393636,26.0968691));\n listOfpoints.get(1).add(new LatLng (44.4390725,26.0969549));\n listOfpoints.get(1).add(new LatLng (44.4381532,26.0971051));\n listOfpoints.get(1).add(new LatLng (44.4372952,26.0975557));\n listOfpoints.get(1).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(1).add(new LatLng (44.4358244,26.0977918));\n listOfpoints.get(1).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(1).add(new LatLng (44.4348132,26.0979205));\n listOfpoints.get(1).add(new LatLng (44.4348591,26.0983497));\n listOfpoints.get(1).add(new LatLng (44.4352115,26.1003452));\n listOfpoints.get(1).add(new LatLng (44.435472,26.1017185));\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n\n\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n listOfpoints.get(2).add(new LatLng (44.435899,26.1039688));\n listOfpoints.get(2).add(new LatLng (44.4360216,26.1044623));\n listOfpoints.get(2).add(new LatLng (44.4360982,26.1049988));\n listOfpoints.get(2).add(new LatLng (44.4362361,26.1055781));\n listOfpoints.get(2).add(new LatLng (44.4363127,26.1059));\n listOfpoints.get(2).add(new LatLng (44.4364506,26.1063721));\n listOfpoints.get(2).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(2).add(new LatLng (44.4367264,26.1068441));\n listOfpoints.get(2).add(new LatLng (44.4369715,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4374312,26.1073591));\n listOfpoints.get(2).add(new LatLng (44.4380593,26.1076381));\n listOfpoints.get(2).add(new LatLng (44.4386722,26.1078741));\n listOfpoints.get(2).add(new LatLng (44.439239,26.1080672));\n listOfpoints.get(2).add(new LatLng (44.4399744,26.1083033));\n listOfpoints.get(2).add(new LatLng (44.4406485,26.1084106));\n listOfpoints.get(2).add(new LatLng (44.4407557,26.1080458));\n listOfpoints.get(2).add(new LatLng (44.440817,26.1075737));\n listOfpoints.get(2).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(2).add(new LatLng (44.4410928,26.1070587));\n listOfpoints.get(2).add(new LatLng (44.4419814,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4422877,26.1071875));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.107445));\n listOfpoints.get(2).add(new LatLng (44.443498,26.107402));\n listOfpoints.get(2).add(new LatLng (44.4433754,26.10693));\n listOfpoints.get(2).add(new LatLng (44.4432988,26.1065008));\n listOfpoints.get(2).add(new LatLng (44.4431763,26.1059858));\n listOfpoints.get(2).add(new LatLng (44.4429465,26.1052992));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1044838));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1036469));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1029818));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.1027457));\n listOfpoints.get(2).add(new LatLng (44.4431303,26.1025311));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1022737));\n listOfpoints.get(2).add(new LatLng (44.4427627,26.101866));\n listOfpoints.get(2).add(new LatLng (44.4426707,26.1015656));\n listOfpoints.get(2).add(new LatLng (44.4426554,26.101072));\n listOfpoints.get(2).add(new LatLng (44.4427014,26.1002781));\n listOfpoints.get(2).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(2).add(new LatLng (44.4420426,26.0993125));\n listOfpoints.get(2).add(new LatLng (44.4412,26.0997202));\n listOfpoints.get(2).add(new LatLng (44.4400663,26.100321));\n listOfpoints.get(2).add(new LatLng (44.4390399,26.100836));\n listOfpoints.get(2).add(new LatLng (44.4382279,26.1012651));\n listOfpoints.get(2).add(new LatLng (44.4374924,26.1016514));\n listOfpoints.get(2).add(new LatLng (44.4366038,26.1021449));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1026384));\n listOfpoints.get(2).add(new LatLng (44.4357305,26.1027886));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n\n\n listOfpoints.get(3).add(new LatLng (44.4290806,26.1040332));\n listOfpoints.get(3).add(new LatLng (44.4295709,26.1054494));\n listOfpoints.get(3).add(new LatLng (44.4302604,26.1070373));\n listOfpoints.get(3).add(new LatLng (44.4307508,26.1080887));\n listOfpoints.get(3).add(new LatLng (44.432804,26.111994));\n listOfpoints.get(3).add(new LatLng (44.4329113,26.1123373));\n listOfpoints.get(3).add(new LatLng (44.4330798,26.1136248));\n listOfpoints.get(3).add(new LatLng (44.4332483,26.1150195));\n listOfpoints.get(3).add(new LatLng (44.433325,26.1158349));\n listOfpoints.get(3).add(new LatLng (44.4347959,26.1162855));\n listOfpoints.get(3).add(new LatLng (44.4359143,26.1166288));\n listOfpoints.get(3).add(new LatLng (44.4365272,26.1168005));\n listOfpoints.get(3).add(new LatLng (44.4367723,26.1168434));\n listOfpoints.get(3).add(new LatLng (44.4373852,26.1166503));\n listOfpoints.get(3).add(new LatLng (44.43809,26.1163713));\n listOfpoints.get(3).add(new LatLng (44.4378755,26.1154272));\n listOfpoints.get(3).add(new LatLng (44.435516,26.1027672));\n listOfpoints.get(3).add(new LatLng (44.433708,26.1034109));\n listOfpoints.get(3).add(new LatLng (44.4330032,26.1035826));\n listOfpoints.get(3).add(new LatLng (44.4321451,26.1038401));\n listOfpoints.get(3).add(new LatLng (44.4309959,26.1039259));\n listOfpoints.get(3).add(new LatLng (44.4302451,26.1039903));\n listOfpoints.get(3).add(new LatLng (44.4296628,26.1039903));\n listOfpoints.get(3).add(new LatLng(44.4290806,26.1040332));\n\n\n\n listOfpoints.get(4).add(new LatLng ( 44.4343669 ,26.0798289));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0801508));\n listOfpoints.get(4).add(new LatLng (44.4335088 ,26.0905363));\n listOfpoints.get(4).add(new LatLng (44.4333862 ,26.092124));\n listOfpoints.get(4).add(new LatLng ( 44.433233 ,26.0926177));\n listOfpoints.get(4).add(new LatLng ( 44.4329879 ,26.0932614));\n listOfpoints.get(4).add(new LatLng (44.4327427 , 26.0936906));\n listOfpoints.get(4).add(new LatLng (44.4301838 ,26.0965659));\n listOfpoints.get(4).add(new LatLng (44.4301685 ,26.0967161));\n listOfpoints.get(4).add(new LatLng (44.4305209 ,26.096759));\n listOfpoints.get(4).add(new LatLng (44.4311338 ,26.0968878));\n listOfpoints.get(4).add(new LatLng (44.4317468 ,26.097038));\n listOfpoints.get(4).add(new LatLng (44.4323137 ,26.0972955));\n listOfpoints.get(4).add(new LatLng (44.4327427 ,26.0974457));\n listOfpoints.get(4).add(new LatLng (44.4333709 ,26.0978534));\n listOfpoints.get(4).add(new LatLng (44.4338919 ,26.0981538));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0982611));\n listOfpoints.get(4).add(new LatLng ( 44.4345354 ,26.0982611));\n listOfpoints.get(4).add(new LatLng (44.4346886 ,26.0981752));\n listOfpoints.get(4).add(new LatLng (44.4345814, 26.0918667));\n listOfpoints.get(4).add(new LatLng (44.4343669 ,26.0798289));\n\n\n listOfpoints.get(5).add(new LatLng (44.4348405,26.097773));\n listOfpoints.get(5).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(5).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(5).add(new LatLng (44.4372952, 26.0975557));\n listOfpoints.get(5).add(new LatLng (44.4381532, 26.0971051));\n listOfpoints.get(5).add(new LatLng ( 44.4393636,26.0968691));\n listOfpoints.get(5).add(new LatLng(44.4397739, 26.0964855));\n listOfpoints.get(5).add(new LatLng (44.4402029,26.0960993));\n listOfpoints.get(5).add(new LatLng (44.4406778,26.0956487));\n listOfpoints.get(5).add(new LatLng(44.4405706,26.0952195));\n listOfpoints.get(5).add(new LatLng (44.4403408 ,26.0942539));\n listOfpoints.get(5).add(new LatLng (44.440065 ,26.0931811));\n listOfpoints.get(5).add(new LatLng (44.4400497, 26.0919151));\n listOfpoints.get(5).add(new LatLng (44.4398199 ,26.0897693));\n listOfpoints.get(5).add(new LatLng (44.4397893 ,26.0891041));\n listOfpoints.get(5).add(new LatLng (44.4399271 , 26.0879668));\n listOfpoints.get(5).add(new LatLng (44.4399731 ,26.0873017));\n listOfpoints.get(5).add(new LatLng (44.4399884 ,26.0867223));\n listOfpoints.get(5).add(new LatLng (44.4365719, 26.0887179));\n listOfpoints.get(5).add(new LatLng (44.434672 ,26.0898337));\n listOfpoints.get(5).add(new LatLng (44.4348405 ,26.097773));\n\n\n listOfpoints.get(6).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(6).add(new LatLng (44.4365354,26.1075151));\n listOfpoints.get(6).add(new LatLng (44.4375926,26.113137));\n listOfpoints.get(6).add(new LatLng (44.4378224,26.114167));\n listOfpoints.get(6).add(new LatLng (44.4435828,26.1191452));\n listOfpoints.get(6).add(new LatLng (44.4440117, 26.1184585));\n listOfpoints.get(6).add(new LatLng (44.4448849, 26.1172784));\n listOfpoints.get(6).add(new LatLng (44.4457888,26.1161411));\n listOfpoints.get(6).add(new LatLng (44.4462483, 26.1149395));\n listOfpoints.get(6).add(new LatLng (44.4466773, 26.113137));\n listOfpoints.get(6).add(new LatLng (44.4467998, 26.1121929));\n listOfpoints.get(6).add(new LatLng (44.4467539, 26.1112917));\n listOfpoints.get(6).add(new LatLng (44.4469683, 26.1101973));\n listOfpoints.get(6).add(new LatLng (44.4458041, 26.1093176));\n listOfpoints.get(6).add(new LatLng (44.4453905, 26.1091888));\n listOfpoints.get(6).add(new LatLng (44.4448083, 26.1089099));\n listOfpoints.get(6).add(new LatLng (44.4442109, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4435828, 26.1076224));\n listOfpoints.get(6).add(new LatLng (44.4433377, 26.107558));\n listOfpoints.get(6).add(new LatLng (44.4420662,26.1072791));\n listOfpoints.get(6).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(6).add(new LatLng (44.4407946,26.1082018));\n listOfpoints.get(6).add(new LatLng ( 44.4406107,26.1085451));\n listOfpoints.get(6).add(new LatLng (44.43986, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4384659, 26.1079014));\n listOfpoints.get(6).add(new LatLng (44.4372095, 26.1073864));\n listOfpoints.get(6).add(new LatLng (44.4365425, 26.1067583));\n\n\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n listOfpoints.get(7).add(new LatLng ( 44.4265883,26.1107511));\n listOfpoints.get(7).add(new LatLng (44.4261898,26.118905));\n listOfpoints.get(7).add(new LatLng (44.4274311,26.1189909));\n listOfpoints.get(7).add(new LatLng (44.4276303,26.1189265));\n listOfpoints.get(7).add(new LatLng (44.4285497,26.1191625));\n listOfpoints.get(7).add(new LatLng (44.4288408,26.1193342));\n listOfpoints.get(7).add(new LatLng (44.4294997,26.1199564));\n listOfpoints.get(7).add(new LatLng (44.4297909, 26.1200852));\n listOfpoints.get(7).add(new LatLng (44.4303272,26.1203427));\n listOfpoints.get(7).add(new LatLng (44.431124, 26.1205787));\n listOfpoints.get(7).add(new LatLng (44.4328861, 26.1207289));\n listOfpoints.get(7).add(new LatLng (44.4329933, 26.1206431));\n listOfpoints.get(7).add(new LatLng (44.4331159, 26.1194844));\n listOfpoints.get(7).add(new LatLng (44.4331925,26.118154));\n listOfpoints.get(7).add(new LatLng (44.4332844,26.1160512));\n listOfpoints.get(7).add(new LatLng (44.4328094,26.112339));\n listOfpoints.get(7).add(new LatLng (44.4327022, 26.1120171));\n listOfpoints.get(7).add(new LatLng (44.4299135, 26.1064596));\n listOfpoints.get(7).add(new LatLng (44.4289634,26.1040778));\n listOfpoints.get(7).add(new LatLng (44.4281819,26.1039705));\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n\n\n\n\n listOfpoints.get(8).add (new LatLng (44.4262461,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4260163,26.1014488));\n listOfpoints.get(8).add (new LatLng (44.4259397,26.1023715));\n listOfpoints.get(8).add (new LatLng (44.4258784,26.103616));\n listOfpoints.get(8).add (new LatLng (44.426001,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.42643,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.4272882,26.1038735));\n listOfpoints.get(8).add (new LatLng (44.4282995,26.1038306));\n listOfpoints.get(8).add (new LatLng (44.4289278,26.1035731));\n listOfpoints.get(8).add (new LatLng (44.4289431,26.1028006));\n listOfpoints.get(8).add (new LatLng (44.4291423,26.1015132));\n listOfpoints.get(8).add (new LatLng (44.4286366,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4284834,26.1010196));\n listOfpoints.get(8).add (new LatLng (44.4271043,26.1008694));\n listOfpoints.get(8).add (new LatLng (44.4262461, 26.1007836));\n\n\n\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n listOfpoints.get(9).add(new LatLng (44.4284834,26.1010196));\n listOfpoints.get(9).add(new LatLng (44.4290094,26.1000479));\n listOfpoints.get(9).add(new LatLng (44.4292545,26.0986961));\n listOfpoints.get(9).add(new LatLng (44.4293465,26.0971726));\n listOfpoints.get(9).add(new LatLng (44.4294844,26.0964216));\n listOfpoints.get(9).add(new LatLng (44.4301739,26.0956276));\n listOfpoints.get(9).add(new LatLng (44.432411,26.0931385));\n listOfpoints.get(9).add(new LatLng (44.4327022,26.0925163));\n listOfpoints.get(9).add(new LatLng (44.4328401,26.0919584));\n listOfpoints.get(9).add(new LatLng (44.4329014, 26.0913576));\n listOfpoints.get(9).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(9).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(9).add(new LatLng (44.4265882, 26.0922588));\n listOfpoints.get(9).add(new LatLng (44.4269867,26.0926879));\n listOfpoints.get(9).add(new LatLng (44.4267108,26.0998763));\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n\n\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(10).add(new LatLng (44.4215507, 26.0903665));\n listOfpoints.get(10).add(new LatLng (44.4255811,26.0980483));\n listOfpoints.get(10).add(new LatLng ( 44.4265772,26.0999795));\n listOfpoints.get(10).add(new LatLng (44.4266998,26.099722));\n listOfpoints.get(10).add(new LatLng (44.4269867, 26.0926879));\n listOfpoints.get(10).add(new LatLng (44.4265882,26.0922588));\n listOfpoints.get(10).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n\n\n listOfpoints.get(11).add(new LatLng (44.4214281, 26.0905382));\n listOfpoints.get(11).add(new LatLng (44.4207385, 26.0915467));\n listOfpoints.get(11).add(new LatLng (44.4199568, 26.0929629));\n listOfpoints.get(11).add(new LatLng (44.4192059,26.0943576));\n listOfpoints.get(11).add(new LatLng (44.4187155,26.095409));\n listOfpoints.get(11).add(new LatLng (44.4186235,26.0957524));\n listOfpoints.get(11).add(new LatLng (44.4189607, 26.0968253));\n listOfpoints.get(11).add(new LatLng (44.4212442,26.1039063));\n listOfpoints.get(11).add(new LatLng (44.4227001,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.4251367,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.425765,26.103799));\n listOfpoints.get(11).add(new LatLng (44.425811,26.1027476));\n listOfpoints.get(11).add(new LatLng (44.4259182,26.101503));\n listOfpoints.get(11).add(new LatLng (44.4260715,26.1009237));\n listOfpoints.get(11).add(new LatLng (44.4264086,26.1001297));\n listOfpoints.get(11).add(new LatLng (44.4260255, 26.0993143));\n listOfpoints.get(11).add(new LatLng (44.4252899, 26.0978981));\n listOfpoints.get(11).add(new LatLng (44.424064,26.0955593));\n listOfpoints.get(11).add(new LatLng (44.4230372,26.0935851));\n listOfpoints.get(11).add(new LatLng (44.4214281,26.0905382));\n\n\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n listOfpoints.get(12).add(new LatLng (44.4216123,26.1052654));\n listOfpoints.get(12).add(new LatLng (44.4226851,26.1084411));\n listOfpoints.get(12).add(new LatLng (44.4237731,26.1117241));\n listOfpoints.get(12).add(new LatLng (44.4244168,26.11181));\n listOfpoints.get(12).add(new LatLng (44.4263629,26.1118743));\n listOfpoints.get(12).add(new LatLng (44.4264242,26.1109946));\n listOfpoints.get(12).add(new LatLng (44.4265315,26.1078832));\n listOfpoints.get(12).add(new LatLng (44.4267154,26.1041496));\n listOfpoints.get(12).add(new LatLng (44.4254588, 26.1042354));\n listOfpoints.get(12).add(new LatLng (44.4242482,26.1041925));\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n\n\n\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n listOfpoints.get(13).add(new LatLng (44.4208987, 26.1041756));\n listOfpoints.get(13).add(new LatLng (44.4155345,26.1045404));\n listOfpoints.get(13).add(new LatLng (44.4156111, 26.1051198));\n listOfpoints.get(13).add(new LatLng (44.4156724, 26.106257));\n listOfpoints.get(13).add(new LatLng (44.4157184,26.1068793));\n listOfpoints.get(13).add(new LatLng (44.4157797, 26.1071153));\n listOfpoints.get(13).add(new LatLng (44.415841, 26.1077805));\n listOfpoints.get(13).add(new LatLng (44.4159024,26.1090465));\n listOfpoints.get(13).add(new LatLng (44.416025,26.1110635));\n listOfpoints.get(13).add(new LatLng (44.4161629,26.1116643));\n listOfpoints.get(13).add(new LatLng (44.4163468, 26.112072));\n listOfpoints.get(13).add(new LatLng (44.4166993,26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4170518, 26.1133595));\n listOfpoints.get(13).add(new LatLng (44.4177109, 26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4184006,26.1118575));\n listOfpoints.get(13).add(new LatLng (44.4190136,26.1112566));\n listOfpoints.get(13).add(new LatLng (44.4199331, 26.1107846));\n listOfpoints.get(13).add(new LatLng (44.4215883,26.1101838));\n listOfpoints.get(13).add(new LatLng (44.4229369,26.10954));\n listOfpoints.get(13).add(new LatLng (44.422753, 26.1089178));\n listOfpoints.get(13).add(new LatLng (44.4222626,26.1074372));\n listOfpoints.get(13).add(new LatLng (44.4217262,26.1059137));\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n\n\n\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n listOfpoints.get(14).add(new LatLng (44.4169314,26.1139266));\n listOfpoints.get(14).add(new LatLng (44.4177284,26.1143128));\n listOfpoints.get(14).add(new LatLng (44.4185253,26.1147205));\n listOfpoints.get(14).add(new LatLng (44.4237666,26.1189047));\n listOfpoints.get(14).add(new LatLng (44.4237819,26.1191408));\n listOfpoints.get(14).add(new LatLng (44.4240425,26.1191622));\n listOfpoints.get(14).add(new LatLng (44.4258814,26.1192481));\n listOfpoints.get(14).add(new LatLng (44.425912,26.1188404));\n listOfpoints.get(14).add(new LatLng (44.426004,26.1167804));\n listOfpoints.get(14).add(new LatLng (44.4261113,26.1148063));\n listOfpoints.get(14).add(new LatLng (44.4262798,26.1120812));\n listOfpoints.get(14).add(new LatLng (44.4238739,26.1119525));\n listOfpoints.get(14).add(new LatLng (44.4235674,26.1115662));\n listOfpoints.get(14).add(new LatLng (44.4230157,26.109914));\n listOfpoints.get(14).add(new LatLng (44.4218817,26.1103646));\n listOfpoints.get(14).add(new LatLng (44.4200733,26.1110512));\n listOfpoints.get(14).add(new LatLng (44.4187246,26.1118666));\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n\n\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n listOfpoints.get(15).add(new LatLng (44.4334184,26.0843973));\n listOfpoints.get(15).add(new LatLng (44.4305378,26.0839467));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0840969));\n listOfpoints.get(15).add(new LatLng (44.4305531,26.0845475));\n listOfpoints.get(15).add(new LatLng (44.4306604,26.0853844));\n listOfpoints.get(15).add(new LatLng (44.4302773,26.0908131));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0910277));\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n\n\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n listOfpoints.get(16).add(new LatLng (44.4252956,26.0790543));\n listOfpoints.get(16).add(new LatLng (44.4246213,26.0901265));\n listOfpoints.get(16).add(new LatLng (44.4247746,26.0905127));\n listOfpoints.get(16).add(new LatLng (44.4298621,26.0909634));\n listOfpoints.get(16).add(new LatLng (44.4300919,26.0907273));\n listOfpoints.get(16).add(new LatLng (44.430475,26.0853414));\n listOfpoints.get(16).add(new LatLng ( 44.4291112,26.0806422));\n listOfpoints.get(16).add(new LatLng (44.428391,26.0795693));\n listOfpoints.get(16).add(new LatLng (44.4277781,26.0794835));\n listOfpoints.get(16).add(new LatLng (44.42574,26.0784535));\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n\n\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n listOfpoints.get(17).add(new LatLng (44.433312,26.1178736));\n listOfpoints.get(17).add(new LatLng (44.4331128,26.1208562));\n listOfpoints.get(17).add(new LatLng (44.4327757,26.1238603));\n listOfpoints.get(17).add(new LatLng (44.4325765,26.1256413));\n listOfpoints.get(17).add(new LatLng (44.4354264,26.1251477));\n listOfpoints.get(17).add(new LatLng (44.4389196,26.122723));\n listOfpoints.get(17).add(new LatLng (44.4391954,26.1224012));\n listOfpoints.get(17).add(new LatLng (44.4381383,26.1165003));\n listOfpoints.get(17).add(new LatLng (44.4368666,26.1169724));\n listOfpoints.get(17).add(new LatLng (44.4364683,26.1169295));\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n\n\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n listOfpoints.get(18).add(new LatLng (44.4453896, 26.0909388));\n listOfpoints.get(18).add(new LatLng (44.4444245,26.0918185));\n listOfpoints.get(18).add(new LatLng (44.4428313, 26.093342));\n listOfpoints.get(18).add(new LatLng (44.4413912,26.0947797));\n listOfpoints.get(18).add(new LatLng (44.4405333,26.0959169));\n listOfpoints.get(18).add(new LatLng (44.4419274,26.0990069));\n listOfpoints.get(18).add(new LatLng (44.4433368,26.0983202));\n listOfpoints.get(18).add(new LatLng (44.4452824,26.0973761));\n listOfpoints.get(18).add(new LatLng (44.446707,26.0966894));\n listOfpoints.get(18).add(new LatLng (44.4468296,26.0961959));\n listOfpoints.get(18).add(new LatLng (44.4465385,26.0945651));\n listOfpoints.get(18).add(new LatLng (44.4462628,26.0935351));\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n\n\n listOfpoints.get(19).add(new LatLng (44.4401196,26.0817507));\n listOfpoints.get(19).add(new LatLng (44.4401043,26.0831669));\n listOfpoints.get(19).add(new LatLng (44.4402115,26.0846046));\n listOfpoints.get(19).add(new LatLng (44.440089,26.0863641));\n listOfpoints.get(19).add(new LatLng (44.4399358,26.0894755));\n listOfpoints.get(19).add(new LatLng ( 44.4402115, 26.0932949));\n listOfpoints.get(19).add(new LatLng (44.4407937,26.0953763));\n listOfpoints.get(19).add(new LatLng (44.440855,26.0952047));\n listOfpoints.get(19).add(new LatLng (44.4450832,26.0910419));\n listOfpoints.get(19).add(new LatLng (44.4454509,26.0905698));\n listOfpoints.get(19).add(new LatLng (44.4445011,26.0879949));\n listOfpoints.get(19).add(new LatLng (44.4437964,26.0862783));\n listOfpoints.get(19).add(new LatLng (44.4434287,26.0840681));\n listOfpoints.get(19).add(new LatLng (44.443061, 26.0812143));\n listOfpoints.get(19).add(new LatLng (44.4423257, 26.0809997));\n listOfpoints.get(19).add(new LatLng (44.4419887, 26.0810211));\n listOfpoints.get(19).add(new LatLng (44.4411767, 26.0813215));\n listOfpoints.get(19).add(new LatLng (44.4401196, 26.0817507));\n\n\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n listOfpoints.get(20).add(new LatLng (44.4145114,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.0990294));\n listOfpoints.get(20).add(new LatLng (44.4143735, 26.0993727));\n listOfpoints.get(20).add(new LatLng (44.4144195, 26.0998233));\n listOfpoints.get(20).add(new LatLng (44.4142969, 26.1008104));\n listOfpoints.get(20).add(new LatLng (44.4140976,26.1009177));\n listOfpoints.get(20).add(new LatLng (44.4138983,26.1008962));\n listOfpoints.get(20).add(new LatLng (44.4138064,26.1006602));\n listOfpoints.get(20).add(new LatLng (44.4137451,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4130247,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4127335,26.0984286));\n listOfpoints.get(20).add(new LatLng (44.4113386,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4102503, 26.0985788));\n listOfpoints.get(20).add(new LatLng (44.414021,26.1043509));\n listOfpoints.get(20).add(new LatLng (44.4143122,26.1043938));\n listOfpoints.get(20).add(new LatLng (44.4159522,26.1042865));\n listOfpoints.get(20).add(new LatLng (44.4191554,26.104029));\n listOfpoints.get(20).add(new LatLng (44.4210711,26.1038574));\n listOfpoints.get(20).add(new LatLng (44.4208259,26.1030205));\n listOfpoints.get(20).add(new LatLng (44.4203508,26.1016258));\n listOfpoints.get(20).add(new LatLng (44.4198297,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4192167, 26.0981067));\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n\n\n listOfpoints.get(21).add(new LatLng (44.410189,26.0984071));\n listOfpoints.get(21).add(new LatLng (44.4103883,26.0984715));\n listOfpoints.get(21).add(new LatLng (44.4128867,26.0983213));\n listOfpoints.get(21).add(new LatLng (44.4138524, 26.1000594));\n listOfpoints.get(21).add(new LatLng (44.4138524,26.1004671));\n listOfpoints.get(21).add(new LatLng (44.4139597,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4141742,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.1003812));\n listOfpoints.get(21).add(new LatLng (44.4143275,26.0996946));\n listOfpoints.get(21).add(new LatLng (44.4141589,26.0986646));\n listOfpoints.get(21).add(new LatLng (44.418435,26.0957464));\n listOfpoints.get(21).add(new LatLng (44.4190021,26.0946306));\n listOfpoints.get(21).add(new LatLng (44.4183737,26.0934504));\n listOfpoints.get(21).add(new LatLng (44.4176534, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4165652, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4155996,26.0927423));\n listOfpoints.get(21).add(new LatLng (44.4149406,26.0921415));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.0919055));\n listOfpoints.get(21).add(new LatLng (44.412994, 26.0920986));\n listOfpoints.get(21).add(new LatLng (44.4098211,26.0943945));\n listOfpoints.get(21).add(new LatLng (44.4096679,26.0947164));\n listOfpoints.get(21).add(new LatLng (44.4096985, 26.0953816));\n listOfpoints.get(21).add(new LatLng (44.4088401, 26.0962399));\n listOfpoints.get(21).add(new LatLng (44.4088248,26.0966047));\n listOfpoints.get(21).add(new LatLng (44.410189, 26.0984071));\n\n\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n listOfpoints.get(22).add(new LatLng (44.4252745,26.0779102));\n listOfpoints.get(22).add(new LatLng (44.426102,26.0783394));\n listOfpoints.get(22).add(new LatLng (44.4286458, 26.079541));\n listOfpoints.get(22).add(new LatLng (44.4293813,26.0807855));\n listOfpoints.get(22).add(new LatLng (44.4303313,26.0837038));\n listOfpoints.get(22).add(new LatLng (44.4329668,26.08409));\n listOfpoints.get(22).add(new LatLng (44.4335797,26.0839613));\n listOfpoints.get(22).add(new LatLng (44.4337023,26.0821159));\n listOfpoints.get(22).add(new LatLng (44.4339474,26.0797556));\n listOfpoints.get(22).add(new LatLng (44.434499,26.078039));\n listOfpoints.get(22).add(new LatLng (44.4358473,26.0748632));\n listOfpoints.get(22).add(new LatLng (44.4351732,26.073962));\n listOfpoints.get(22).add(new LatLng (44.433212,26.0710867));\n listOfpoints.get(22).add(new LatLng (44.4312201,26.0683401));\n listOfpoints.get(22).add(new LatLng (44.4299329,26.067396));\n listOfpoints.get(22).add(new LatLng (44.4283087,26.0655506));\n listOfpoints.get(22).add(new LatLng (44.4274812,26.0668381));\n listOfpoints.get(22).add(new LatLng (44.4261633,26.0691984));\n listOfpoints.get(22).add(new LatLng (44.4249374,26.0715587));\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n\n\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n listOfpoints.get(23).add(new LatLng (44.4169069,26.0695417));\n listOfpoints.get(23).add(new LatLng (44.4131364,26.073447));\n listOfpoints.get(23).add(new LatLng (44.4139948,26.0749491));\n listOfpoints.get(23).add(new LatLng (44.4156807,26.0782106));\n listOfpoints.get(23).add(new LatLng (44.4178265,26.0819443));\n listOfpoints.get(23).add(new LatLng (44.4184089,26.0840471));\n listOfpoints.get(23).add(new LatLng (44.4213514,26.0900982));\n listOfpoints.get(23).add(new LatLng (44.4240486, 26.0903986));\n listOfpoints.get(23).add(new LatLng (44.424447,26.0897978));\n listOfpoints.get(23).add(new LatLng (44.4252132,26.0783394));\n listOfpoints.get(23).add(new LatLng (44.4236808, 26.0737474));\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n\n\n\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(24).add(new LatLng (44.442854,26.1011417));\n listOfpoints.get(24).add(new LatLng (44.4434668,26.1027725));\n listOfpoints.get(24).add(new LatLng (44.4430685, 26.1033304));\n listOfpoints.get(24).add(new LatLng (44.4430685,26.1047895));\n listOfpoints.get(24).add(new LatLng (44.4437732,26.1076648));\n listOfpoints.get(24).add(new LatLng (44.4446617,26.1085661));\n listOfpoints.get(24).add(new LatLng (44.4461629,26.1092956));\n listOfpoints.get(24).add(new LatLng (44.447174,26.1100252));\n listOfpoints.get(24).add(new LatLng (44.4473272,26.108609));\n listOfpoints.get(24).add(new LatLng (44.4480624,26.107064));\n listOfpoints.get(24).add(new LatLng (44.4480931,26.1060341));\n listOfpoints.get(24).add(new LatLng (44.4476948,26.1029871));\n listOfpoints.get(24).add(new LatLng (44.448522, 26.1028583));\n listOfpoints.get(24).add(new LatLng (44.4499006,26.102515));\n listOfpoints.get(24).add(new LatLng (44.4509729, 26.101485));\n listOfpoints.get(24).add(new LatLng (44.4529335,26.1007555));\n listOfpoints.get(24).add(new LatLng (44.452719,26.0935457));\n listOfpoints.get(24).add(new LatLng (44.4521063,26.0865934));\n listOfpoints.get(24).add(new LatLng (44.4506359,26.0897262));\n listOfpoints.get(24).add(new LatLng (44.4472046,26.0966785));\n listOfpoints.get(24).add(new LatLng (44.4465306,26.0971077));\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n\n\n listOfpoints.get(25).add(new LatLng (44.3944544,26.1201103));\n listOfpoints.get(25).add(new LatLng (44.3948837,26.1205394));\n listOfpoints.get(25).add(new LatLng (44.400587,26.1207969));\n listOfpoints.get(25).add(new LatLng (44.4069336,26.1209686));\n listOfpoints.get(25).add(new LatLng (44.4075468,26.1204536));\n listOfpoints.get(25).add(new LatLng (44.4081599,26.119252));\n listOfpoints.get(25).add(new LatLng (44.4083439, 26.1177499));\n listOfpoints.get(25).add(new LatLng (44.4084665, 26.1148317));\n listOfpoints.get(25).add(new LatLng (44.4090183,26.1131151));\n listOfpoints.get(25).add(new LatLng (44.4102139, 26.1109693));\n listOfpoints.get(25).add(new LatLng (44.411992,26.106549));\n listOfpoints.get(25).add(new LatLng (44.4128197, 26.105562));\n listOfpoints.get(25).add(new LatLng (44.4140152, 26.1047037));\n listOfpoints.get(25).add(new LatLng (44.4105512, 26.099468));\n listOfpoints.get(25).add(new LatLng (44.4088344, 26.0971077));\n listOfpoints.get(25).add(new LatLng (44.4074854,26.0960777));\n listOfpoints.get(25).add(new LatLng (44.4067803, 26.0957773));\n listOfpoints.get(25).add(new LatLng (44.4047262, 26.096936));\n listOfpoints.get(25).add(new LatLng (44.4024267, 26.098481));\n listOfpoints.get(25).add(new LatLng (44.4015068, 26.0996826));\n listOfpoints.get(25).add(new LatLng (44.3998818, 26.1055191));\n listOfpoints.get(25).add(new LatLng (44.3944544, 26.1201103));\n\n\n\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4526408,26.0898486));\n listOfpoints.get(26).add(new LatLng (44.4530697,26.0983887));\n listOfpoints.get(26).add(new LatLng (44.4558573,26.0971013));\n listOfpoints.get(26).add(new LatLng ( 44.4622592,26.0925522));\n listOfpoints.get(26).add(new LatLng ( 44.4635762, 26.0910073));\n listOfpoints.get(26).add(new LatLng (44.4658121,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4631474,26.0864153));\n listOfpoints.get(26).add(new LatLng (44.4534067,26.0861578));\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n\n\n\n listOfpoints.get(27).add(new LatLng (44.4346864, 26.0895482));\n listOfpoints.get(27).add(new LatLng (44.4398343, 26.0864583));\n listOfpoints.get(27).add(new LatLng (44.439865,26.0816947));\n listOfpoints.get(27).add(new LatLng (44.4420098,26.0807076));\n listOfpoints.get(27).add(new LatLng (44.4429903, 26.0808793));\n listOfpoints.get(27).add(new LatLng (44.4426532,26.0791626));\n listOfpoints.get(27).add(new LatLng (44.4405084, 26.0729399));\n listOfpoints.get(27).add(new LatLng (44.440202, 26.0727253));\n listOfpoints.get(27).add(new LatLng (44.4384555, 26.0702363));\n listOfpoints.get(27).add(new LatLng (44.4362186, 26.0744849));\n listOfpoints.get(27).add(new LatLng (44.4344413,26.0792914));\n listOfpoints.get(27).add(new LatLng (44.4346864,26.0895482));\n\n\n\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n listOfpoints.get(28).add(new LatLng (44.443061,26.0812143));\n listOfpoints.get(28).add(new LatLng (44.4437562,26.0855141));\n listOfpoints.get(28).add(new LatLng (44.4440626,26.0866299));\n listOfpoints.get(28).add(new LatLng (44.444798, 26.0884753));\n listOfpoints.get(28).add(new LatLng (44.4465443,26.0937539));\n listOfpoints.get(28).add(new LatLng (44.4468813,26.0958138));\n listOfpoints.get(28).add(new LatLng (44.4471264,26.0961142));\n listOfpoints.get(28).add(new LatLng (44.4492097, 26.0919943));\n listOfpoints.get(28).add(new LatLng (44.4507109,26.0889473));\n listOfpoints.get(28).add(new LatLng (44.4519056, 26.0864153));\n listOfpoints.get(28).add(new LatLng (44.4518137,26.0848275));\n listOfpoints.get(28).add(new LatLng (44.4481987, 26.0827246));\n listOfpoints.get(28).add(new LatLng (44.4455026,26.081523));\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n\n\n\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n listOfpoints.get(29).add(new LatLng (44.437967, 26.115168));\n listOfpoints.get(29).add(new LatLng (44.4410924, 26.131905));\n listOfpoints.get(29).add(new LatLng (44.4413375,26.1327204));\n listOfpoints.get(29).add(new LatLng (44.443758, 26.1284717));\n listOfpoints.get(29).add(new LatLng (44.4467299, 26.1259827));\n listOfpoints.get(29).add(new LatLng (44.4480167,26.1254248));\n listOfpoints.get(29).add(new LatLng (44.4491809, 26.124266));\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n\n\n listOfpoints.get(30).add(new LatLng (44.4129016,26.0735409));\n listOfpoints.get(30).add(new LatLng (44.4072915,26.0791628));\n listOfpoints.get(30).add(new LatLng (44.4031525,26.0816948));\n listOfpoints.get(30).add(new LatLng (44.4003317,26.0844414));\n listOfpoints.get(30).add(new LatLng (44.3973268,26.0850422));\n listOfpoints.get(30).add(new LatLng (44.4005463,26.0880463));\n listOfpoints.get(30).add(new LatLng (44.4017115, 26.0912221));\n listOfpoints.get(30).add(new LatLng (44.4043176,26.0963719));\n listOfpoints.get(30).add(new LatLng (44.4048695, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4060652,26.0956423));\n listOfpoints.get(30).add(new LatLng (44.4070462,26.0953848));\n listOfpoints.get(30).add(new LatLng (44.4084871, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4094682, 26.0951703));\n listOfpoints.get(30).add(new LatLng (44.4094375, 26.0944836));\n listOfpoints.get(30).add(new LatLng (44.4132388, 26.09178));\n listOfpoints.get(30).add(new LatLng (44.4145263, 26.091737));\n listOfpoints.get(30).add(new LatLng (44.4163656,26.0929387));\n listOfpoints.get(30).add(new LatLng (44.4183273,26.0930674));\n listOfpoints.get(30).add(new LatLng (44.4189404,26.0941832));\n listOfpoints.get(30).add(new LatLng (44.4212086, 26.0904067));\n listOfpoints.get(30).add(new LatLng (44.4210553,26.0898488));\n listOfpoints.get(30).add(new LatLng (44.4186339, 26.0850852));\n listOfpoints.get(30).add(new LatLng (44.4181741,26.0840123));\n listOfpoints.get(30).add(new LatLng (44.4176836, 26.0822527));\n listOfpoints.get(30).add(new LatLng (44.4171932,26.0813944));\n listOfpoints.get(30).add(new LatLng (44.4150781, 26.077575));\n listOfpoints.get(30).add(new LatLng (44.4129016, 26.0735409));\n\n\n\n listOfpoints.get(31).add(new LatLng (44.4152528, 26.1045537));\n listOfpoints.get(31).add(new LatLng (44.4142412, 26.1048541));\n listOfpoints.get(31).add(new LatLng (44.4125552,26.1062274));\n listOfpoints.get(31).add(new LatLng (44.4118501,26.1074291));\n listOfpoints.get(31).add(new LatLng (44.4107158,26.1103473));\n listOfpoints.get(31).add(new LatLng (44.4093976,26.1127935));\n listOfpoints.get(31).add(new LatLng (44.4087844, 26.1144243));\n listOfpoints.get(31).add(new LatLng (44.4085392, 26.1156259));\n listOfpoints.get(31).add(new LatLng (44.4085392,26.1170421));\n listOfpoints.get(31).add(new LatLng (44.4083246, 26.1195741));\n listOfpoints.get(31).add(new LatLng (44.4074355, 26.1209903));\n listOfpoints.get(31).add(new LatLng (44.409183, 26.1223636));\n listOfpoints.get(31).add(new LatLng (44.4168774, 26.1136518));\n listOfpoints.get(31).add(new LatLng (44.4158658, 26.1113344));\n listOfpoints.get(31).add(new LatLng (44.4156513, 26.1077295));\n listOfpoints.get(31).add(new LatLng (44.4152528,26.1045537));\n\n\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n listOfpoints.get(32).add(new LatLng (44.4164766, 26.114537));\n listOfpoints.get(32).add(new LatLng (44.4110201,26.120631));\n listOfpoints.get(32).add(new LatLng (44.4094872,26.122648));\n listOfpoints.get(32).add(new LatLng (44.4131046, 26.1296003));\n listOfpoints.get(32).add(new LatLng (44.4151891, 26.1329906));\n listOfpoints.get(32).add(new LatLng (44.4171203, 26.1348789));\n listOfpoints.get(32).add(new LatLng (44.4201242, 26.1365526));\n listOfpoints.get(32).add(new LatLng (44.4204001,26.1351364));\n listOfpoints.get(32).add(new LatLng (44.4206759, 26.1333339));\n listOfpoints.get(32).add(new LatLng (44.42181,26.1313169));\n listOfpoints.get(32).add(new LatLng (44.4228827, 26.1314028));\n listOfpoints.get(32).add(new LatLng (44.4255799, 26.1284845));\n listOfpoints.get(32).add(new LatLng (44.4256412, 26.1274975));\n listOfpoints.get(32).add(new LatLng (44.4257638, 26.1234634));\n listOfpoints.get(32).add(new LatLng (44.425917, 26.1195152));\n listOfpoints.get(32).add(new LatLng (44.4238635, 26.1194294));\n listOfpoints.get(32).add(new LatLng (44.4193273,26.115567));\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n\n\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n listOfpoints.get(33).add(new LatLng (44.4255799,26.1284845));\n listOfpoints.get(33).add(new LatLng (44.4318104,26.1386596));\n listOfpoints.get(33).add(new LatLng (44.4320863,26.1385309));\n listOfpoints.get(33).add(new LatLng (44.4313814,26.1329948));\n listOfpoints.get(33).add(new LatLng (44.4316879,26.129819));\n listOfpoints.get(33).add(new LatLng (44.4326992,26.1229526));\n listOfpoints.get(33).add(new LatLng (44.4328861,26.1207289));\n listOfpoints.get(33).add(new LatLng (44.4300024, 26.1205493));\n listOfpoints.get(33).add(new LatLng (44.4288684,26.1196481));\n listOfpoints.get(33).add(new LatLng (44.4275797,26.1191541));\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n\n\n listOfpoints.get(34).add(new LatLng (44.4202782, 26.1364709));\n listOfpoints.get(34).add(new LatLng (44.4204314,26.1366855));\n listOfpoints.get(34).add(new LatLng (44.4255806,26.1375009));\n listOfpoints.get(34).add(new LatLng (44.4293579,26.1390888));\n listOfpoints.get(34).add(new LatLng (44.4303615,26.139196));\n listOfpoints.get(34).add(new LatLng (44.4317406,26.1386596));\n listOfpoints.get(34).add(new LatLng (44.4266686,26.1303877));\n listOfpoints.get(34).add(new LatLng (44.4255882,26.128596));\n listOfpoints.get(34).add(new LatLng (44.4250212,26.1291968));\n listOfpoints.get(34).add(new LatLng (44.4230214, 26.1315571));\n listOfpoints.get(34).add(new LatLng (44.4227685,26.1316644));\n listOfpoints.get(34).add(new LatLng (44.4217877,26.1315678));\n listOfpoints.get(34).add(new LatLng (44.4207762,26.1334668));\n listOfpoints.get(34).add(new LatLng (44.4202782,26.1364709));\n\n\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n listOfpoints.get(35).add(new LatLng (44.4437985,26.1194425));\n listOfpoints.get(35).add(new LatLng (44.4469926,26.1222749));\n listOfpoints.get(35).add(new LatLng (44.4492443, 26.1240881));\n listOfpoints.get(35).add(new LatLng (44.4504315,26.123144));\n listOfpoints.get(35).add(new LatLng (44.4512893,26.1217492));\n listOfpoints.get(35).add(new LatLng (44.451421, 26.1212347));\n listOfpoints.get(35).add(new LatLng (44.4523401, 26.1180161));\n listOfpoints.get(35).add(new LatLng (44.4527077, 26.1145399));\n listOfpoints.get(35).add(new LatLng (44.452944, 26.1009052));\n listOfpoints.get(35).add(new LatLng (44.4516573,26.1013558));\n listOfpoints.get(35).add(new LatLng (44.4510217,26.1016777));\n listOfpoints.get(35).add(new LatLng (44.4500413,26.1025574));\n listOfpoints.get(35).add(new LatLng (44.449712,26.1027291));\n listOfpoints.get(35).add(new LatLng (44.4477666,26.1031153));\n listOfpoints.get(35).add(new LatLng (44.4479198,26.1042526));\n listOfpoints.get(35).add(new LatLng (44.448027,26.1051967));\n listOfpoints.get(35).add(new LatLng (44.4481419,26.1058619));\n listOfpoints.get(35).add(new LatLng (44.4481189, 26.1070206));\n listOfpoints.get(35).add(new LatLng (44.448004,26.1073425));\n listOfpoints.get(35).add(new LatLng (44.4473836,26.1088338));\n listOfpoints.get(35).add(new LatLng (44.4472917,26.1100569));\n listOfpoints.get(35).add(new LatLng (44.4471385, 26.1102929));\n listOfpoints.get(35).add(new LatLng (44.4469241,26.1116877));\n listOfpoints.get(35).add(new LatLng (44.4469394,26.1122456));\n listOfpoints.get(35).add(new LatLng (44.4467403,26.1136403));\n listOfpoints.get(35).add(new LatLng (44.445959,26.1161938));\n listOfpoints.get(35).add(new LatLng (44.4448254,26.1176744));\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n\n\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n listOfpoints.get(36).add(new LatLng (44.4372662,26.123983));\n listOfpoints.get(36).add(new LatLng (44.4356115, 26.1252275));\n listOfpoints.get(36).add(new LatLng (44.4344471, 26.1254207));\n listOfpoints.get(36).add(new LatLng (44.4324705,26.1258069));\n listOfpoints.get(36).add(new LatLng (44.4315052, 26.1327377));\n listOfpoints.get(36).add(new LatLng (44.432256,26.1385742));\n listOfpoints.get(36).add(new LatLng (44.4351059,26.1373511));\n listOfpoints.get(36).add(new LatLng (44.4376339, 26.1363641));\n listOfpoints.get(36).add(new LatLng (44.4389822, 26.1353985));\n listOfpoints.get(36).add(new LatLng (44.4401772,26.1345402));\n listOfpoints.get(36).add(new LatLng (44.4411883, 26.1334458));\n listOfpoints.get(36).add(new LatLng (44.4402231, 26.1281458));\n listOfpoints.get(36).add(new LatLng (44.4398861,26.126279));\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n\n\n\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n listOfpoints.get(37).add(new LatLng (44.3977135, 26.1097995));\n listOfpoints.get(37).add(new LatLng (44.3909519,26.1099282));\n listOfpoints.get(37).add(new LatLng (44.3874558, 26.1100784));\n listOfpoints.get(37).add(new LatLng (44.3877779, 26.1129538));\n listOfpoints.get(37).add(new LatLng (44.3881766, 26.1154428));\n listOfpoints.get(37).add(new LatLng (44.3886059, 26.1165586));\n listOfpoints.get(37).add(new LatLng (44.3894799, 26.1180178));\n listOfpoints.get(37).add(new LatLng (44.3906606, 26.1193052));\n listOfpoints.get(37).add(new LatLng (44.3927152, 26.1205927));\n listOfpoints.get(37).add(new LatLng (44.3936352, 26.1206785));\n listOfpoints.get(37).add(new LatLng (44.3940339, 26.1202279));\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n\n\n\n listOfpoints.get(38).add(new LatLng (44.389256,26.0917973));\n listOfpoints.get(38).add(new LatLng (44.3892556,26.0920523));\n listOfpoints.get(38).add(new LatLng (44.4003643, 26.0970731));\n listOfpoints.get(38).add(new LatLng (44.4008548, 26.0971482));\n listOfpoints.get(38).add(new LatLng (44.4030625, 26.0971601));\n listOfpoints.get(38).add(new LatLng (44.4043195,26.0965593));\n listOfpoints.get(38).add(new LatLng (44.4019587, 26.0920531));\n listOfpoints.get(38).add(new LatLng (44.4005636,26.0883195));\n listOfpoints.get(38).add(new LatLng (44.3987104,26.0864919));\n listOfpoints.get(38).add(new LatLng (44.3972443, 26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3961557,26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3946992,26.0841584));\n listOfpoints.get(38).add(new LatLng (44.3918473,26.0856819));\n listOfpoints.get(38).add(new LatLng (44.3912493,26.08639));\n listOfpoints.get(38).add(new LatLng (44.389256, 26.0917973));\n\n\n\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n listOfpoints.get(39).add(new LatLng (44.4011008,26.0974224));\n listOfpoints.get(39).add(new LatLng (44.399997,26.0972078));\n listOfpoints.get(39).add(new LatLng (44.389065,26.0922189));\n listOfpoints.get(39).add(new LatLng (44.3863339,26.0922418));\n listOfpoints.get(39).add(new LatLng (44.387806,26.0981212));\n listOfpoints.get(39).add(new LatLng (44.3887261,26.1004386));\n listOfpoints.get(39).add(new LatLng (44.3889714,26.1023269));\n listOfpoints.get(39).add(new LatLng (44.3887567,26.1040435));\n listOfpoints.get(39).add(new LatLng (44.3875607,26.1097513));\n listOfpoints.get(39).add(new LatLng (44.3977341,26.1097306));\n listOfpoints.get(39).add(new LatLng (44.3979142,26.1101973));\n listOfpoints.get(39).add(new LatLng (44.397964,26.1101222));\n listOfpoints.get(39).add(new LatLng (44.3996198,26.1059165));\n listOfpoints.get(39).add(new LatLng (44.4016128,26.0990715));\n listOfpoints.get(39).add(new LatLng (44.4030402,26.0978593));\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n\n\n\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n listOfpoints.get(40).add(new LatLng (44.4494277,26.1245701));\n listOfpoints.get(40).add(new LatLng (44.4610682, 26.1325953));\n listOfpoints.get(40).add(new LatLng (44.4618646,26.1326811));\n listOfpoints.get(40).add(new LatLng (44.4644374, 26.1345265));\n listOfpoints.get(40).add(new LatLng (44.4660607, 26.1368439));\n listOfpoints.get(40).add(new LatLng (44.4665813,26.1365435));\n listOfpoints.get(40).add(new LatLng (44.4663976,26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4667345, 26.1349985));\n listOfpoints.get(40).add(new LatLng (44.4681739, 26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4701952, 26.1371014));\n listOfpoints.get(40).add(new LatLng (44.4719714, 26.1368868));\n listOfpoints.get(40).add(new LatLng (44.4730739, 26.1358998));\n listOfpoints.get(40).add(new LatLng (44.4731964,26.1346981));\n listOfpoints.get(40).add(new LatLng (44.4687252,26.1305783));\n listOfpoints.get(40).add(new LatLng (44.466857,26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4662751, 26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4658769, 26.1300633));\n listOfpoints.get(40).add(new LatLng (44.4666426, 26.129162));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1285183));\n listOfpoints.get(40).add(new LatLng (44.4697971, 26.1290333));\n listOfpoints.get(40).add(new LatLng (44.4723389, 26.1319945));\n listOfpoints.get(40).add(new LatLng (44.4743294,26.1327669));\n listOfpoints.get(40).add(new LatLng (44.4750338,26.1320374));\n listOfpoints.get(40).add(new LatLng (44.4756462,26.1297199));\n listOfpoints.get(40).add(new LatLng (44.4742376,26.1249563));\n listOfpoints.get(40).add(new LatLng (44.4742988, 26.1238835));\n listOfpoints.get(40).add(new LatLng (44.4741457,26.1231968));\n listOfpoints.get(40).add(new LatLng (44.4676533,26.1269734));\n listOfpoints.get(40).add(new LatLng (44.4668876,26.1267588));\n listOfpoints.get(40).add(new LatLng (44.4649275,26.1207506));\n listOfpoints.get(40).add(new LatLng (44.4648662,26.120064));\n listOfpoints.get(40).add(new LatLng (44.4674389,26.118562));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1177895));\n listOfpoints.get(40).add(new LatLng (44.4710833,26.1160729));\n listOfpoints.get(40).add(new LatLng (44.4714202,26.1163304));\n listOfpoints.get(40).add(new LatLng (44.4722777,26.116502));\n listOfpoints.get(40).add(new LatLng (44.4729208,26.1131117));\n listOfpoints.get(40).add(new LatLng (44.4723083,26.1107084));\n listOfpoints.get(40).add(new LatLng (44.4725227,26.1095926));\n listOfpoints.get(40).add(new LatLng (44.4733801,26.1087343));\n listOfpoints.get(40).add(new LatLng (44.4735945, 26.1082194));\n listOfpoints.get(40).add(new LatLng (44.4700727,26.1101076));\n listOfpoints.get(40).add(new LatLng (44.4533184,26.1047861));\n listOfpoints.get(40).add(new LatLng (44.4531039,26.105344));\n listOfpoints.get(40).add(new LatLng (44.4528589,26.1152146));\n listOfpoints.get(40).add(new LatLng (44.4526138,26.1174891));\n listOfpoints.get(40).add(new LatLng (44.452093,26.1197207));\n listOfpoints.get(40).add(new LatLng (44.4508982,26.1229822));\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n\n\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n listOfpoints.get(41).add(new LatLng (44.4550165,26.1051764));\n listOfpoints.get(41).add(new LatLng (44.4698103,26.1097469));\n listOfpoints.get(41).add(new LatLng (44.4709588,26.1093392));\n listOfpoints.get(41).add(new LatLng (44.4739216,26.1077299));\n listOfpoints.get(41).add(new LatLng (44.4734929,26.1050262));\n listOfpoints.get(41).add(new LatLng (44.4721455,26.105155));\n listOfpoints.get(41).add(new LatLng (44.4701242,26.1040392));\n listOfpoints.get(41).add(new LatLng (44.467521, 26.101593));\n listOfpoints.get(41).add(new LatLng (44.4673067, 26.1001768));\n listOfpoints.get(41).add(new LatLng (44.4664185,26.099061));\n listOfpoints.get(41).add(new LatLng (44.4660816,26.0979023));\n listOfpoints.get(41).add(new LatLng (44.4662041,26.0968294));\n listOfpoints.get(41).add(new LatLng (44.4671535,26.0960569));\n listOfpoints.get(41).add(new LatLng (44.4677661,26.0958853));\n listOfpoints.get(41).add(new LatLng (44.4680723,26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4691748,26.0952415));\n listOfpoints.get(41).add(new LatLng (44.4720536,26.0967865));\n listOfpoints.get(41).add(new LatLng (44.4742278,26.0964861));\n listOfpoints.get(41).add(new LatLng (44.4749015, 26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4747178,26.0948124));\n listOfpoints.get(41).add(new LatLng (44.4719617,26.0923662));\n listOfpoints.get(41).add(new LatLng (44.4714717,26.0908642));\n listOfpoints.get(41).add(new LatLng (44.4717167,26.0897913));\n listOfpoints.get(41).add(new LatLng (44.4723598,26.0888901));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0894909));\n listOfpoints.get(41).add(new LatLng (44.4732785,26.0900917));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0907783));\n listOfpoints.get(41).add(new LatLng (44.4735235,26.0912075));\n listOfpoints.get(41).add(new LatLng (44.4740135,26.0907354));\n listOfpoints.get(41).add(new LatLng (44.4734316,26.0891046));\n listOfpoints.get(41).add(new LatLng (44.4724211,26.0881176));\n listOfpoints.get(41).add(new LatLng (44.4661428,26.0866585));\n listOfpoints.get(41).add(new LatLng (44.4639989,26.09095));\n listOfpoints.get(41).add(new LatLng (44.4621305,26.0931387));\n listOfpoints.get(41).add(new LatLng (44.4558053,26.0973375));\n listOfpoints.get(41).add(new LatLng (44.4531632,26.0985928));\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n\n\n\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n listOfpoints.get(42).add(new LatLng (44.4404676, 26.072638));\n listOfpoints.get(42).add(new LatLng (44.4426125, 26.0786676));\n listOfpoints.get(42).add(new LatLng (44.4427656, 26.0791182));\n listOfpoints.get(42).add(new LatLng (44.4429801, 26.0806202));\n listOfpoints.get(42).add(new LatLng (44.4461972, 26.0758781));\n listOfpoints.get(42).add(new LatLng ( 44.4465955, 26.0753846));\n listOfpoints.get(42).add(new LatLng ( 44.4468405, 26.0753202));\n listOfpoints.get(42).add(new LatLng (44.4474227, 26.0759639));\n listOfpoints.get(42).add(new LatLng (44.4501186, 26.0695052));\n listOfpoints.get(42).add(new LatLng ( 44.4472848, 26.063776));\n listOfpoints.get(42).add(new LatLng ( 44.4461972,26.0623597));\n listOfpoints.get(42).add(new LatLng (44.4454925, 26.0618233));\n listOfpoints.get(42).add(new LatLng ( 44.4442057,26.0612654));\n listOfpoints.get(42).add(new LatLng (44.4432099,26.0609435));\n listOfpoints.get(42).add(new LatLng ( 44.4429035,26.062467));\n listOfpoints.get(42).add(new LatLng (44.4385679, 26.0699558));\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n\n\n\n listOfpoints.get(43).add(new LatLng ( 44.4430787,26.0806953));\n listOfpoints.get(43).add(new LatLng ( 44.443126, 26.0810753));\n listOfpoints.get(43).add(new LatLng ( 44.4455924,26.0813757));\n listOfpoints.get(43).add(new LatLng (44.4467107,26.0816761));\n listOfpoints.get(43).add(new LatLng (44.4514593,26.0842939));\n listOfpoints.get(43).add(new LatLng (44.4518575,26.0844441));\n listOfpoints.get(43).add(new LatLng (44.4519188,26.0818906));\n listOfpoints.get(43).add(new LatLng (44.4520107,26.0813971));\n listOfpoints.get(43).add(new LatLng (44.452026,26.0767193));\n listOfpoints.get(43).add(new LatLng (44.4527, 26.0732861));\n listOfpoints.get(43).add(new LatLng ( 44.4511682,26.0706039));\n listOfpoints.get(43).add(new LatLng (44.4503219, 26.069692));\n listOfpoints.get(43).add(new LatLng (44.4502719,26.0698017));\n listOfpoints.get(43).add(new LatLng (44.4475595, 26.0760068));\n listOfpoints.get(43).add(new LatLng (44.447414, 26.0761356));\n listOfpoints.get(43).add(new LatLng (44.4468242, 26.0754811));\n listOfpoints.get(43).add(new LatLng (44.4465485, 26.0755562));\n listOfpoints.get(43).add(new LatLng (44.4462728, 26.0759746));\n listOfpoints.get(43).add(new LatLng (44.4430787,26.0806953));\n\n\n\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n listOfpoints.get(44).add(new LatLng (44.4299706,26.0672689));\n listOfpoints.get(44).add(new LatLng (44.431342,26.068213));\n listOfpoints.get(44).add(new LatLng (44.4358314, 26.0745752));\n listOfpoints.get(44).add(new LatLng (44.4382828,26.0698974));\n listOfpoints.get(44).add(new LatLng (44.4353105,26.0630095));\n listOfpoints.get(44).add(new LatLng (44.435096,26.0616792));\n listOfpoints.get(44).add(new LatLng (44.4344678, 26.0595763));\n listOfpoints.get(44).add(new LatLng (44.4320315, 26.0595334));\n listOfpoints.get(44).add(new LatLng (44.4316178, 26.0600913));\n listOfpoints.get(44).add(new LatLng (44.4291968, 26.0639));\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n\n\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n listOfpoints.get(45).add(new LatLng (44.441285, 26.1333359));\n listOfpoints.get(45).add(new LatLng (44.4414535,26.1345376));\n listOfpoints.get(45).add(new LatLng (44.4428936,26.1475195));\n listOfpoints.get(45).add(new LatLng (44.443154,26.1493863));\n listOfpoints.get(45).add(new LatLng (44.4434451, 26.149794));\n listOfpoints.get(45).add(new LatLng (44.4437515,26.1497082));\n listOfpoints.get(45).add(new LatLng (44.4445175,26.1494721));\n listOfpoints.get(45).add(new LatLng (44.4454979,26.1488713));\n listOfpoints.get(45).add(new LatLng (44.4459574,26.1481847));\n listOfpoints.get(45).add(new LatLng (44.447091,26.147262));\n listOfpoints.get(45).add(new LatLng (44.448148,26.1456527));\n listOfpoints.get(45).add(new LatLng (44.4520847, 26.1353101));\n listOfpoints.get(45).add(new LatLng (44.4529577,26.1321129));\n listOfpoints.get(45).add(new LatLng (44.4531262,26.1316623));\n listOfpoints.get(45).add(new LatLng (44.4536776, 26.1311473));\n listOfpoints.get(45).add(new LatLng (44.4547192, 26.1298813));\n listOfpoints.get(45).add(new LatLng (44.455148,26.1288513));\n listOfpoints.get(45).add(new LatLng (44.449833, 26.1251177));\n listOfpoints.get(45).add(new LatLng (44.4491437, 26.12471));\n listOfpoints.get(45).add(new LatLng (44.4477038,26.1259545));\n listOfpoints.get(45).add(new LatLng (44.4462332, 26.1266841));\n listOfpoints.get(45).add(new LatLng (44.4447013, 26.1279501));\n listOfpoints.get(45).add(new LatLng (44.4436596, 26.129259));\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n\n\n\n listOfpoints.get(46).add(new LatLng (44.4322314,26.1388506));\n listOfpoints.get(46).add(new LatLng (44.4335155,26.1535014));\n listOfpoints.get(46).add(new LatLng (44.4338066,26.1552395));\n listOfpoints.get(46).add(new LatLng (44.434971,26.1596598));\n listOfpoints.get(46).add(new LatLng (44.4350966, 26.1598576));\n listOfpoints.get(46).add(new LatLng (44.4421748,26.1571969));\n listOfpoints.get(46).add(new LatLng (44.4425731, 26.1570252));\n listOfpoints.get(46).add(new LatLng (44.4429102, 26.1561669));\n listOfpoints.get(46).add(new LatLng (44.443477, 26.1502231));\n listOfpoints.get(46).add(new LatLng (44.4429255, 26.1494077));\n listOfpoints.get(46).add(new LatLng (44.442328, 26.144215));\n listOfpoints.get(46).add(new LatLng (44.4418837, 26.1404384));\n listOfpoints.get(46).add(new LatLng (44.4412556, 26.1349882));\n listOfpoints.get(46).add(new LatLng (44.4411331, 26.1338295));\n listOfpoints.get(46).add(new LatLng (44.4406428,26.1344732));\n listOfpoints.get(46).add(new LatLng (44.4388656, 26.1357821));\n listOfpoints.get(46).add(new LatLng (44.4374868, 26.1367048));\n listOfpoints.get(46).add(new LatLng (44.4350813, 26.137606));\n listOfpoints.get(46).add(new LatLng (44.4322314, 26.1388506));\n\n\n\n listOfpoints.get(47).add(new LatLng (44.4202257, 26.1368063));\n listOfpoints.get(47).add(new LatLng (44.4179627,26.1463187));\n listOfpoints.get(47).add(new LatLng (44.4227749, 26.149709));\n listOfpoints.get(47).add(new LatLng (44.4231734, 26.1503527));\n listOfpoints.get(47).add(new LatLng (44.4237251, 26.1504386));\n listOfpoints.get(47).add(new LatLng (44.4261157, 26.1495373));\n listOfpoints.get(47).add(new LatLng (44.4262996, 26.1508463));\n listOfpoints.get(47).add(new LatLng (44.4268206, 26.1524341));\n listOfpoints.get(47).add(new LatLng (44.4283937, 26.1547449));\n listOfpoints.get(47).add(new LatLng (44.433251, 26.1534574));\n listOfpoints.get(47).add(new LatLng (44.4320712, 26.1388662));\n listOfpoints.get(47).add(new LatLng (44.430401,26.139467));\n listOfpoints.get(47).add(new LatLng (44.4295736, 26.1393812));\n listOfpoints.get(47).add(new LatLng (44.4254668, 26.137686));\n listOfpoints.get(47).add(new LatLng (44.4241642,26.1374929));\n listOfpoints.get(47).add(new LatLng (44.4202257,26.1368063));\n\n\n\n listOfpoints.get(48).add(new LatLng (44.4234516,26.1510693));\n listOfpoints.get(48).add(new LatLng (44.425076, 26.1630856));\n listOfpoints.get(48).add(new LatLng (44.4292135,26.1619484));\n listOfpoints.get(48).add(new LatLng(44.4286618, 26.1578285));\n listOfpoints.get(48).add(new LatLng (44.4287078,26.156026));\n listOfpoints.get(48).add(new LatLng (44.4286925,26.1557042));\n listOfpoints.get(48).add(new LatLng (44.4269762, 26.1532151));\n listOfpoints.get(48).add(new LatLng (44.4262407, 26.151713));\n listOfpoints.get(48).add(new LatLng (44.4259189, 26.1499535));\n listOfpoints.get(48).add(new LatLng (44.4237122, 26.1506402));\n listOfpoints.get(48).add(new LatLng (44.4234516, 26.1510693));\n\n\n\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n listOfpoints.get(49).add(new LatLng (44.4286925, 26.1557042));\n listOfpoints.get(49).add(new LatLng (44.4287964, 26.1580645));\n listOfpoints.get(49).add(new LatLng (44.4290876, 26.1602317));\n listOfpoints.get(49).add(new LatLng (44.4302981,26.1670124));\n listOfpoints.get(49).add(new LatLng (44.4357222, 26.1692654));\n listOfpoints.get(49).add(new LatLng (44.4362584,26.1689865));\n listOfpoints.get(49).add(new LatLng (44.4366108, 26.1683857));\n listOfpoints.get(49).add(new LatLng (44.4367794,26.1675274));\n listOfpoints.get(49).add(new LatLng (44.433332, 26.1536442));\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n\n\n\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.14650));\n listOfpoints.get(50).add(new LatLng (44.4142265, 26.15554));\n listOfpoints.get(50).add(new LatLng (44.41369, 26.1578359));\n listOfpoints.get(50).add(new LatLng (44.4131842,26.1635008));\n listOfpoints.get(50).add(new LatLng (44.4133221, 26.1636295));\n listOfpoints.get(50).add(new LatLng (44.4154679, 26.1645951));\n listOfpoints.get(50).add(new LatLng (44.4169393, 26.1648526));\n listOfpoints.get(50).add(new LatLng (44.4181654, 26.1648097));\n listOfpoints.get(50).add(new LatLng (44.420403, 26.1642732));\n listOfpoints.get(50).add(new LatLng (44.4248319, 26.1631574));\n listOfpoints.get(50).add(new LatLng (44.4232688, 26.151227));\n listOfpoints.get(50).add(new LatLng (44.4226558, 26.1500253));\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.1465063));\n\n\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n listOfpoints.get(51).add(new LatLng (44.4079354,26.1261736));\n listOfpoints.get(51).add(new LatLng (44.3993506, 26.1595188));\n listOfpoints.get(51).add(new LatLng (44.4000559,26.1602484));\n listOfpoints.get(51).add(new LatLng (44.407077,26.1638962));\n listOfpoints.get(51).add(new LatLng (44.4081807, 26.1641108));\n listOfpoints.get(51).add(new LatLng (44.4091004, 26.1638104));\n listOfpoints.get(51).add(new LatLng (44.4114916, 26.162995));\n listOfpoints.get(51).add(new LatLng (44.4129018, 26.16351));\n listOfpoints.get(51).add(new LatLng (44.413147, 26.1608063));\n listOfpoints.get(51).add(new LatLng (44.4135762, 26.1567723));\n listOfpoints.get(51).add(new LatLng (44.4148943, 26.1529957));\n listOfpoints.get(51).add(new LatLng (44.4176838,26.1461722));\n listOfpoints.get(51).add(new LatLng (44.4183121,26.1435329));\n listOfpoints.get(51).add(new LatLng (44.4200133, 26.1367523));\n listOfpoints.get(51).add(new LatLng (44.4175152,26.1354433));\n listOfpoints.get(51).add(new LatLng (44.4159825, 26.1342417));\n listOfpoints.get(51).add(new LatLng (44.4146031,26.1324822));\n listOfpoints.get(51).add(new LatLng (44.4113383,26.1266242));\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n\n\n listOfpoints.get(52).add(new LatLng (44.3988714,26.159323));\n listOfpoints.get(52).add(new LatLng (44.4079468,26.1248191));\n listOfpoints.get(52).add(new LatLng (44.4088665, 26.1225875));\n listOfpoints.get(52).add(new LatLng (44.4080694,26.1217721));\n listOfpoints.get(52).add(new LatLng (44.4065059,26.1213858));\n listOfpoints.get(52).add(new LatLng (44.3941185, 26.120785));\n listOfpoints.get(52).add(new LatLng (44.3862678, 26.1391528));\n listOfpoints.get(52).add(new LatLng (44.3887826,26.1415131));\n listOfpoints.get(52).add(new LatLng (44.3886293, 26.1448605));\n listOfpoints.get(52).add(new LatLng (44.3891813, 26.1464484));\n listOfpoints.get(52).add(new LatLng (44.389304, 26.1472209));\n listOfpoints.get(52).add(new LatLng (44.3927079, 26.155761));\n listOfpoints.get(52).add(new LatLng (44.3941492, 26.1572631));\n listOfpoints.get(52).add(new LatLng (44.3985648, 26.16031));\n listOfpoints.get(52).add(new LatLng (44.3988714, 26.159323));\n\n\n\n listOfpoints.get(53).add(new LatLng (44.3886499, 26.1177499));\n listOfpoints.get(53).add(new LatLng (44.3892939, 26.1179645));\n listOfpoints.get(53).add(new LatLng (44.3881592, 26.1159046));\n listOfpoints.get(53).add(new LatLng (44.3876838,26.1132224));\n listOfpoints.get(53).add(new LatLng (44.3873311, 26.1100895));\n listOfpoints.get(53).add(new LatLng (44.3887879, 26.1032445));\n listOfpoints.get(53).add(new LatLng (44.3888645, 26.1022789));\n listOfpoints.get(53).add(new LatLng (44.3886192, 26.1005838));\n listOfpoints.get(53).add(new LatLng (44.3883738,26.0998542));\n listOfpoints.get(53).add(new LatLng (44.3876225,26.097923));\n listOfpoints.get(53).add(new LatLng (44.3869478, 26.0954554));\n listOfpoints.get(53).add(new LatLng (44.3862577, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3860584, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3789427, 26.0917003));\n listOfpoints.get(53).add(new LatLng (44.3757526,26.1157758));\n listOfpoints.get(53).add(new LatLng (44.375998,26.1173208));\n listOfpoints.get(53).add(new LatLng (44.3765195,26.1189945));\n listOfpoints.get(53).add(new LatLng (44.3769183,26.1194665));\n listOfpoints.get(53).add(new LatLng (44.3775624, 26.1194236));\n listOfpoints.get(53).add(new LatLng (44.3786973,26.1184366));\n listOfpoints.get(53).add(new LatLng (44.3824393,26.1150248));\n listOfpoints.get(53).add(new LatLng (44.3831447, 26.114939));\n listOfpoints.get(53).add(new LatLng (44.3840802, 26.1151106));\n listOfpoints.get(53).add(new LatLng (44.3879598, 26.1175568));\n listOfpoints.get(53).add(new LatLng (44.3886499,26.1177499));\n\n\n listOfpoints.get(54).add(new LatLng ( 44.3939843, 26.1207857));\n listOfpoints.get(54).add(new LatLng (44.3928679,26.120861));\n listOfpoints.get(54).add(new LatLng (44.3916643, 26.1202602));\n listOfpoints.get(54).add(new LatLng (44.3901386, 26.1189727));\n listOfpoints.get(54).add(new LatLng (44.3894869, 26.1181573));\n listOfpoints.get(54).add(new LatLng (44.3881836, 26.1178784));\n listOfpoints.get(54).add(new LatLng (44.3839589, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3830541, 26.1151318));\n listOfpoints.get(54).add(new LatLng (44.382479, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3814899, 26.1160544));\n listOfpoints.get(54).add(new LatLng (44.3792585,26.1181466));\n listOfpoints.get(54).add(new LatLng (44.3765793, 26.1204638));\n listOfpoints.get(54).add(new LatLng (44.3792479, 26.1275449));\n listOfpoints.get(54).add(new LatLng (44.379524,26.135098));\n listOfpoints.get(54).add(new LatLng (44.3856888, 26.1398616));\n listOfpoints.get(54).add(new LatLng (44.3939843,26.1207857));\n\n\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n listOfpoints.get(55).add(new LatLng (44.3767422, 26.0507223));\n listOfpoints.get(55).add(new LatLng (44.3901146,26.0632536));\n listOfpoints.get(55).add(new LatLng (44.4006018,26.0712359));\n listOfpoints.get(55).add(new LatLng (44.4064272, 26.0638544));\n listOfpoints.get(55).add(new LatLng (44.4054461,26.0626528));\n listOfpoints.get(55).add(new LatLng (44.3997432, 26.0485766));\n listOfpoints.get(55).add(new LatLng (44.3817726,26.0459158));\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n\n\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n listOfpoints.get(56).add(new LatLng (44.4007746, 26.0715552));\n listOfpoints.get(56).add(new LatLng (44.3971564,26.0688944));\n listOfpoints.get(56).add(new LatLng (44.3905634, 26.0639591));\n listOfpoints.get(56).add(new LatLng (44.3862699, 26.078207));\n listOfpoints.get(56).add(new LatLng (44.38124,26.0855027));\n listOfpoints.get(56).add(new LatLng (44.3802585, 26.0858031));\n listOfpoints.get(56).add(new LatLng (44.3797064, 26.0867901));\n listOfpoints.get(56).add(new LatLng (44.3790009,26.091425));\n listOfpoints.get(56).add(new LatLng (44.3848591,26.091897));\n listOfpoints.get(56).add(new LatLng (44.3890301,26.0918541));\n listOfpoints.get(56).add(new LatLng (44.3909928, 26.0865755));\n listOfpoints.get(56).add(new LatLng (44.3915141,26.0856314));\n listOfpoints.get(56).add(new LatLng (44.3946727, 26.0839608));\n listOfpoints.get(56).add(new LatLng (44.3961445,26.0850122));\n listOfpoints.get(56).add(new LatLng (44.3967425,26.0849907));\n listOfpoints.get(56).add(new LatLng (44.4002074, 26.0843041));\n listOfpoints.get(56).add(new LatLng (44.4029362, 26.0816648));\n listOfpoints.get(56).add(new LatLng (44.4055576,26.0799267));\n listOfpoints.get(56).add(new LatLng (44.4070752,26.0791113));\n listOfpoints.get(56).add(new LatLng (44.4130379,26.0732319));\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n\n\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n listOfpoints.get(57).add(new LatLng (44.4056207, 26.0623124));\n listOfpoints.get(57).add(new LatLng (44.4131623,26.0729554));\n listOfpoints.get(57).add(new LatLng (44.4204884,26.0654452));\n listOfpoints.get(57).add(new LatLng (44.4181895,26.0583212));\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n\n\n listOfpoints.get(58).add(new LatLng (44.414413, 26.0354062));\n listOfpoints.get(58).add(new LatLng (44.415394, 26.0475512));\n listOfpoints.get(58).add(new LatLng (44.4158231,26.0502978));\n listOfpoints.get(58).add(new LatLng (44.4181221,26.0576363));\n listOfpoints.get(58).add(new LatLng (44.4207888, 26.0658331));\n listOfpoints.get(58).add(new LatLng (44.4237005, 26.0731287));\n listOfpoints.get(58).add(new LatLng (44.4298608,26.0624857));\n listOfpoints.get(58).add(new LatLng (44.4293091,26.0617562));\n listOfpoints.get(58).add(new LatLng (44.4290027,26.0610266));\n listOfpoints.get(58).add(new LatLng (44.4275316, 26.0600825));\n listOfpoints.get(58).add(new LatLng (44.426275, 26.0585375));\n listOfpoints.get(58).add(new LatLng (44.4259379,26.0566922));\n listOfpoints.get(58).add(new LatLng (44.4253862, 26.0520573));\n listOfpoints.get(58).add(new LatLng (44.4242829,26.0473366));\n listOfpoints.get(58).add(new LatLng (44.4229037,26.0406847));\n listOfpoints.get(58).add(new LatLng (44.4221374,26.0347624));\n listOfpoints.get(58).add(new LatLng (44.4165281,26.0346766));\n listOfpoints.get(58).add(new LatLng (44.414413,26.0354062));\n\n\n listOfpoints.get(59).add(new LatLng (44.4224216, 26.0344395));\n listOfpoints.get(59).add(new LatLng (44.422437, 26.0360274));\n listOfpoints.get(59).add(new LatLng (44.423004,26.040276));\n listOfpoints.get(59).add(new LatLng (44.4255632,26.0522065));\n listOfpoints.get(59).add(new LatLng (44.4259156,26.055468));\n listOfpoints.get(59).add(new LatLng (44.42636,26.0583219));\n listOfpoints.get(59).add(new LatLng (44.4274787,26.059781));\n listOfpoints.get(59).add(new LatLng (44.4290264, 26.0608325));\n listOfpoints.get(59).add(new LatLng (44.4293328,26.0616264));\n listOfpoints.get(59).add(new LatLng (44.4299764,26.0623989));\n listOfpoints.get(59).add(new LatLng (44.4319071,26.0594162));\n listOfpoints.get(59).add(new LatLng (44.4345885, 26.0593948));\n listOfpoints.get(59).add(new LatLng (44.4342361, 26.0348472));\n listOfpoints.get(59).add(new LatLng (44.4273254, 26.0330877));\n listOfpoints.get(59).add(new LatLng (44.4237396,26.0342893));\n listOfpoints.get(59).add(new LatLng (44.4224216,26.0344395));\n\n\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n listOfpoints.get(60).add(new LatLng (44.4343687, 26.0351665));\n listOfpoints.get(60).add(new LatLng (44.4347671,26.059757));\n listOfpoints.get(60).add(new LatLng (44.435334, 26.0617097));\n listOfpoints.get(60).add(new LatLng (44.4355025, 26.0629327));\n listOfpoints.get(60).add(new LatLng (44.4356864,26.0635979));\n listOfpoints.get(60).add(new LatLng (44.4371728, 26.0669608));\n listOfpoints.get(60).add(new LatLng (44.4383602, 26.0697182));\n listOfpoints.get(60).add(new LatLng (44.4427184,26.0621798));\n listOfpoints.get(60).add(new LatLng (44.4429329,26.0609782));\n listOfpoints.get(60).add(new LatLng (44.447161,26.0392201));\n listOfpoints.get(60).add(new LatLng (44.4427491,26.0356152));\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n\n\n listOfpoints.get(61).add(new LatLng (44.4053059, 26.0112059));\n listOfpoints.get(61).add(new LatLng (44.384914, 26.0334789));\n listOfpoints.get(61).add(new LatLng (44.3778596, 26.0462677));\n listOfpoints.get(61).add(new LatLng (44.3811722,26.0454952));\n listOfpoints.get(61).add(new LatLng (44.399879, 26.0482418));\n listOfpoints.get(61).add(new LatLng (44.4002162, 26.0489714));\n listOfpoints.get(61).add(new LatLng (44.4169858,26.0575115));\n listOfpoints.get(61).add(new LatLng (44.4180893, 26.0579407));\n listOfpoints.get(61).add(new LatLng (44.4156984,26.0508167));\n listOfpoints.get(61).add(new LatLng (44.4151773,26.0472977));\n listOfpoints.get(61).add(new LatLng (44.414135,26.0356247));\n listOfpoints.get(61).add(new LatLng (44.4110082, 26.0104334));\n listOfpoints.get(61).add(new LatLng (44.4061643,26.0117208));\n listOfpoints.get(61).add(new LatLng (44.4053059,26.0112059));\n\n\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n listOfpoints.get(62).add(new LatLng (44.4103304, 26.0034906));\n listOfpoints.get(62).add(new LatLng (44.4127522,26.0228884));\n listOfpoints.get(62).add(new LatLng (44.4144076,26.0351192));\n listOfpoints.get(62).add(new LatLng (44.4167986,26.0343897));\n listOfpoints.get(62).add(new LatLng (44.4221013, 26.0343038));\n listOfpoints.get(62).add(new LatLng (44.4271277, 26.0328018));\n listOfpoints.get(62).add(new LatLng (44.4343295, 26.0347544));\n listOfpoints.get(62).add(new LatLng (44.4344597, 26.0345399));\n listOfpoints.get(62).add(new LatLng (44.436423, 26.0347646));\n listOfpoints.get(62).add(new LatLng (44.4424747, 26.0213321));\n listOfpoints.get(62).add(new LatLng (44.4459215, 26.0171264));\n listOfpoints.get(62).add(new LatLng (44.4457043,26.0167004));\n listOfpoints.get(62).add(new LatLng (44.4252662, 25.9987613));\n listOfpoints.get(62).add(new LatLng (44.4235193, 25.9990188));\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n\n\n listOfpoints.get(63).add(new LatLng (44.450683, 26.0692569));\n listOfpoints.get(63).add(new LatLng (44.4530725,26.0733768));\n listOfpoints.get(63).add(new LatLng (44.4523986, 26.0762092));\n listOfpoints.get(63).add(new LatLng (44.4522454,26.0783979));\n listOfpoints.get(63).add(new LatLng (44.4521842,26.0858652));\n listOfpoints.get(63).add(new LatLng (44.4658762, 26.0861656));\n listOfpoints.get(63).add(new LatLng (44.4661262, 26.0856151));\n listOfpoints.get(63).add(new LatLng (44.4670374, 26.0787379));\n listOfpoints.get(63).add(new LatLng (44.467496, 26.0777089));\n listOfpoints.get(63).add(new LatLng (44.4773875,26.0721728));\n listOfpoints.get(63).add(new LatLng (44.4779387,26.0720012));\n listOfpoints.get(63).add(new LatLng (44.482103,26.0611007));\n listOfpoints.get(63).add(new LatLng (44.4811232,26.0571525));\n listOfpoints.get(63).add(new LatLng (44.4748153, 26.0461661));\n listOfpoints.get(63).add(new LatLng (44.4716917, 26.0438487));\n listOfpoints.get(63).add(new LatLng (44.4690579,26.0436771));\n listOfpoints.get(63).add(new LatLng (44.4667916, 26.0449645));\n listOfpoints.get(63).add(new LatLng (44.4519663, 26.0668513));\n listOfpoints.get(63).add(new LatLng (44.450683,26.0692569));\n\n\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n listOfpoints.get(64).add(new LatLng (44.466193, 26.0862472));\n listOfpoints.get(64).add(new LatLng (44.4723947,26.0878994));\n listOfpoints.get(64).add(new LatLng (44.4731756,26.0883715));\n listOfpoints.get(64).add(new LatLng (44.4739718,26.090131));\n listOfpoints.get(64).add(new LatLng (44.4744158, 26.090882));\n listOfpoints.get(64).add(new LatLng (44.4748292,26.0909678));\n listOfpoints.get(64).add(new LatLng (44.4753498,26.0906889));\n listOfpoints.get(64).add(new LatLng (44.4774321, 26.0888006));\n listOfpoints.get(64).add(new LatLng (44.4801879,26.0864832));\n listOfpoints.get(64).add(new LatLng (44.4868014,26.0859682));\n listOfpoints.get(64).add(new LatLng (44.4880873,26.0854532));\n listOfpoints.get(64).add(new LatLng (44.489618,26.0824491));\n listOfpoints.get(64).add(new LatLng (44.4904753, 26.0788443));\n listOfpoints.get(64).add(new LatLng (44.4890057,26.0784151));\n listOfpoints.get(64).add(new LatLng (44.478167, 26.0727074));\n listOfpoints.get(64).add(new LatLng (44.4678468, 26.0779216));\n listOfpoints.get(64).add(new LatLng (44.467219, 26.0788228));\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n\n\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n listOfpoints.get(65).add(new LatLng (44.443222,26.0605852));\n listOfpoints.get(65).add(new LatLng (44.4450067,26.0611538));\n listOfpoints.get(65).add(new LatLng (44.4465463,26.062173));\n listOfpoints.get(65).add(new LatLng (44.4472816,26.0631386));\n listOfpoints.get(65).add(new LatLng (44.448913,26.0666577));\n listOfpoints.get(65).add(new LatLng (44.4502551,26.0690373));\n listOfpoints.get(65).add(new LatLng (44.4664896,26.0448331));\n listOfpoints.get(65).add(new LatLng (44.4688479,26.0434168));\n listOfpoints.get(65).add(new LatLng (44.469491,26.0403269));\n listOfpoints.get(65).add(new LatLng (44.4702566,26.037237));\n listOfpoints.get(65).add(new LatLng (44.4701035,26.0353058));\n listOfpoints.get(65).add(new LatLng (44.4613441,26.0305422));\n listOfpoints.get(65).add(new LatLng (44.4611297,26.0346621));\n listOfpoints.get(65).add(new LatLng (44.4606089,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.4595369,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.458618,26.0354775));\n listOfpoints.get(65).add(new LatLng (44.4545745,26.0376233));\n listOfpoints.get(65).add(new LatLng (44.4501632,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4494892,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4485701,26.039297));\n listOfpoints.get(65).add(new LatLng (44.4477429,26.0380953));\n listOfpoints.get(65).add(new LatLng (44.4466093,26.0430306));\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n\n\n\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0912642));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0917148));\n listOfpoints.get(66).add(new LatLng (44.4743313,26.0922513));\n listOfpoints.get(66).add(new LatLng (44.4750816,26.0927019));\n listOfpoints.get(66).add(new LatLng (44.4758471,26.0937962));\n listOfpoints.get(66).add(new LatLng (44.4762758,26.0947189));\n listOfpoints.get(66).add(new LatLng (44.4766127,26.0962853));\n listOfpoints.get(66).add(new LatLng (44.4765514,26.0971436));\n listOfpoints.get(66).add(new LatLng (44.4761227,26.0977444));\n listOfpoints.get(66).add(new LatLng (44.4753878,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4745457,26.0985384));\n listOfpoints.get(66).add(new LatLng (44.4734585,26.0989675));\n listOfpoints.get(66).add(new LatLng (44.4729073,26.0990104));\n listOfpoints.get(66).add(new LatLng (44.4718508,26.0986671));\n listOfpoints.get(66).add(new LatLng (44.471223,26.0980663));\n listOfpoints.get(66).add(new LatLng (44.469263,26.0970792));\n listOfpoints.get(66).add(new LatLng (44.4689567,26.0971651));\n listOfpoints.get(66).add(new LatLng (44.468773,26.0975728));\n listOfpoints.get(66).add(new LatLng (44.4687424,26.0981092));\n listOfpoints.get(66).add(new LatLng (44.4688955,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4692017,26.0986886));\n listOfpoints.get(66).add(new LatLng (44.4694774,26.0985598));\n listOfpoints.get(66).add(new LatLng (44.4704268,26.0990319));\n listOfpoints.get(66).add(new LatLng (44.4707483,26.0994396));\n listOfpoints.get(66).add(new LatLng (44.4719733,26.1024651));\n listOfpoints.get(66).add(new LatLng (44.4735963,26.1028943));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1035809));\n listOfpoints.get(66).add(new LatLng (44.4741322,26.1042676));\n listOfpoints.get(66).add(new LatLng (44.4735351,26.1047396));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1077866));\n listOfpoints.get(66).add(new LatLng (44.4738413,26.1079583));\n listOfpoints.get(66).add(new LatLng (44.473826,26.1085591));\n listOfpoints.get(66).add(new LatLng (44.4733667,26.1097822));\n listOfpoints.get(66).add(new LatLng (44.4732595,26.1107478));\n listOfpoints.get(66).add(new LatLng (44.4734432,26.1111555));\n listOfpoints.get(66).add(new LatLng (44.4763087,26.1089172));\n listOfpoints.get(66).add(new LatLng (44.4946789,26.1040249));\n listOfpoints.get(66).add(new LatLng (44.4968217,26.0792198));\n listOfpoints.get(66).add(new LatLng (44.490592,26.0788336));\n listOfpoints.get(66).add(new LatLng (44.4898573,26.0820737));\n listOfpoints.get(66).add(new LatLng (44.4894593,26.0830178));\n listOfpoints.get(66).add(new LatLng (44.4882229,26.0855306));\n listOfpoints.get(66).add(new LatLng (44.4870595,26.0860456));\n listOfpoints.get(66).add(new LatLng (44.4801439,26.0866335));\n listOfpoints.get(66).add(new LatLng (44.4761173,26.090174));\n listOfpoints.get(66).add(new LatLng (44.4751527,26.0912469));\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n\n listOfpoints.get(67).add(new LatLng (44.4671287, 26.121282));\n listOfpoints.get(67).add(new LatLng (44.46768,26.1231274));\n listOfpoints.get(67).add(new LatLng (44.4696095,26.1234278));\n listOfpoints.get(67).add(new LatLng (44.4712938,26.1224408));\n listOfpoints.get(67).add(new LatLng (44.4723657,26.1229557));\n listOfpoints.get(67).add(new LatLng (44.4727944, 26.1226553));\n listOfpoints.get(67).add(new LatLng (44.4740193, 26.1226982));\n listOfpoints.get(67).add(new LatLng (44.4745399,26.1236424));\n listOfpoints.get(67).add(new LatLng (44.4743668,26.1243164));\n listOfpoints.get(67).add(new LatLng (44.4747037, 26.1250031));\n listOfpoints.get(67).add(new LatLng (44.4751324,26.1257541));\n listOfpoints.get(67).add(new LatLng (44.4758673,26.1267626));\n listOfpoints.get(67).add(new LatLng (44.4761736, 26.127578));\n listOfpoints.get(67).add(new LatLng (44.491758,26.1285221));\n listOfpoints.get(67).add(new LatLng (44.4931662, 26.1377919));\n listOfpoints.get(67).add(new LatLng (44.494452,26.1444008));\n listOfpoints.get(67).add(new LatLng (44.4947581,26.1462033));\n listOfpoints.get(67).add(new LatLng (44.4958601, 26.1472332));\n listOfpoints.get(67).add(new LatLng (44.4969009, 26.1458599));\n listOfpoints.get(67).add(new LatLng (44.4984926, 26.1450875));\n listOfpoints.get(67).add(new LatLng (44.5000231,26.1446583));\n listOfpoints.get(67).add(new LatLng (44.5006353,26.1435425));\n listOfpoints.get(67).add(new LatLng (44.5012475,26.1424267));\n listOfpoints.get(67).add(new LatLng (44.5057774, 26.144315));\n listOfpoints.get(67).add(new LatLng (44.5070629, 26.137191));\n listOfpoints.get(67).add(new LatLng (44.5066956, 26.1233723));\n listOfpoints.get(67).add(new LatLng (44.502227,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4952479,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4782558,26.1086953));\n listOfpoints.get(67).add(new LatLng (44.4765716,26.1090386));\n listOfpoints.get(67).add(new LatLng (44.4734175,26.1114848));\n listOfpoints.get(67).add(new LatLng (44.4739994,26.1124289));\n listOfpoints.get(67).add(new LatLng (44.4744587,26.1137163));\n listOfpoints.get(67).add(new LatLng (44.474275,26.1152613));\n listOfpoints.get(67).add(new LatLng (44.4738156,26.1171067));\n listOfpoints.get(67).add(new LatLng (44.4729582,26.1180937));\n listOfpoints.get(67).add(new LatLng (44.4705695, 26.1195099));\n listOfpoints.get(67).add(new LatLng (44.4677826,26.1202395));\n listOfpoints.get(67).add(new LatLng (44.4671287,26.121282));\n\n\n //Stockholm\n listOfpoints.get(68).add(new LatLng(59.339281, 18.005316));\n listOfpoints.get(68).add(new LatLng(59.263986, 18.253591));\n listOfpoints.get(68).add(new LatLng(59.260869, 17.878596));\n\n //Stockholm\n listOfpoints.get(69).add(new LatLng(59.342841, 18.040179));\n listOfpoints.get(69).add(new LatLng(59.355275, 17.884694));\n listOfpoints.get(69).add(new LatLng(59.423065, 18.075748));\n\n\n for(int i = 0 ; i < listOfpoints.size(); i++){\n listOfPolygons.add( MapsActivity.instance.mMap.addPolygon(new PolygonOptions()\n .addAll(listOfpoints.get(i))\n .strokeWidth(0)\n .fillColor(Color.argb(50, 0, 250, 0))) );\n }\n\n\n\n\n }",
"public void setVertices(float[] points) {\n/* 810 */ COSArray ar = new COSArray();\n/* 811 */ ar.setFloatArray(points);\n/* 812 */ getCOSObject().setItem(COSName.VERTICES, (COSBase)ar);\n/* */ }",
"public void SetNPoints(int n_points);",
"public List<Point> getAsphaltArray(List<Point> pointList){\n\t\tList<Point> ss = new ArrayList<>();\n\t\tfor(Point a : pointList) {\n\t\t\tss.add(getAsphalt(a.x,a.y,this.trk));\n\t\t}\n\t\treturn ss;\n\t}",
"public PointSET() { // construct an empty set of points\n\n }",
"public void update(){\r\n\t\tList<Point> list = new ArrayList<Point>();\r\n\t\t\r\n\t\tlist.addAll(Arrays.asList(points));\r\n\t\t\r\n\t\tsetPoints(list);\r\n\t}",
"private void setPoints () {\n\t\tArrayList<Point> emptySpot = new ArrayList<Point>();\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\tif (maze[i][j] == 0) {\n\t\t\t\temptySpot.add(new Point (i, j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(emptySpot);\n\t\tthis.goal = emptySpot.get(0);\n\t\tdouble goalRange = this.goal.getX() + this.goal.getY();\n\t\tfor (int i = 1; i < emptySpot.size(); i++) {\n\t\t\tPoint playerStart = emptySpot.get(i);\n\t\t\tdouble playerRange = playerStart.getX() + playerStart.getY();\n\t\t\tif (Math.abs(playerRange - goalRange) > width/2)\n\t\t\tthis.playerStart = playerStart;\n\t\t}\n\t}",
"public AnimSVGPointList() {\n\t\t\titemList = new ArrayList<>(1);\n\t\t}",
"public PointSET() {\n pointSet = new TreeSet<>();\n }",
"public void setPoints(int points) {\n this.points = points;\n }",
"public void setPoints(List<Point2D> inputPoints, \n List<Point2D> outputPoints) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n internalSetPoints(inputPoints, outputPoints);\n }",
"public void setSetpoint(double setpoint);",
"public void setPriceList (BigDecimal PriceList);",
"public void setNumPoints(int np);",
"private void fillVector()\r\n {\r\n // The x and y coordinates of a point\r\n int xPoint;\r\n int yPoint;\r\n \r\n // The x and y coordinates of a point with the displacement of the plot \r\n // origin from the component origin taken into consideration\r\n int xPointOffset, yPointOffset;\r\n \r\n // The point to be stored in the vector\r\n SPlotPoint plotPoint;\r\n\r\n\r\n // Get the max of the data types to figure out how to scale plot\r\n maxX_ = (new Double(xData_.getMax())).intValue();\r\n maxY_ = (new Double(yData_.getMax())).intValue();\r\n \r\n // Want max axes to be max of 200. Need to calculate the scaling factor\r\n xFactor_ = maxX_/MAX_AXIS_LENGTH;\r\n yFactor_ = maxY_/MAX_AXIS_LENGTH;\r\n \r\n // Extract x and y values, generate SPlotPoints and store in vector\r\n for (int i = 0; i < xSize_; i++)\r\n {\r\n xPoint = (int)(xData_.getValue(i) / xFactor_);\r\n yPoint = (int)(yData_.getValue(i) / yFactor_); \r\n\r\n\r\n // The xy coordinates where to plot the point (after taking the \r\n // offset btn the plot origin and the component origin into account\r\n xPointOffset = xPoint+OFFSET;\r\n yPointOffset = yPoint+OFFSET;\r\n \r\n // Generate SPlotPoints and store in vector\r\n plotPoint = new SPlotPoint(xPointOffset,\r\n yPointOffset);\r\n \r\n // Set the id of the scatter plot point (corresponds to the row\r\n // number in the .dbf\r\n // Must add one to compensate for geodata starting at 1 and vector\r\n // index starting at 0\r\n plotPoint.setId(i+1);\r\n \r\n pointVector_.addElement(plotPoint);\r\n }\r\n }",
"public void setPoints(java.math.BigDecimal points) {\n this.points = points;\n }",
"public PointSET() {\n mPoints = new TreeSet<Point2D>();\n }",
"private static void add(List<Point> points, int param, double value, boolean measured) {\r\n points.add(new Point(param, value, measured));\r\n }",
"public void setPoints(Integer points) {\r\n this.points = points;\r\n }",
"private void drawSegments(List<LatLng> listPoints) {\n\n PolylineOptions rectOptions = new PolylineOptions()\n .width(8)\n .color(context.getResources().getColor(R.color.colorPolylineComplete))\n .addAll(listPoints);\n\n googleMap.addPolyline(rectOptions);\n }",
"java.util.List<com.google.ads.googleads.v6.common.CpvBidSimulationPoint> \n getPointsList();",
"public void setNPoints(int nPoints) {\n\t\tpoints.subList(nPoints, points.size()).clear();\n\t}",
"public void setPointSize(float pointSize)\n {\n myPointSize = pointSize;\n }",
"public void addPoints(int i, List<Point2D> points);",
"public void setData(double[] points)\r\n/* 39: */ {\r\n/* 40: 29 */ if ((this.data.length != 0) && (this.data.length != points.length)) {\r\n/* 41: 30 */ System.err.println(\"setData in Spider got wrong number of data points\");\r\n/* 42: */ }\r\n/* 43: 32 */ this.data = points;\r\n/* 44: 33 */ repaint();\r\n/* 45: */ }",
"public abstract void setRange(double value, int start, int count);",
"public void setPoints(int points)\n\t{\n\t\tthis.points = points;\n\t}",
"private void setVertices(){\n \tdouble[] xs = new double[numOfSides];\n \tdouble[] ys = new double[numOfSides];\n \tif (numOfSides%2==1){\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(2*i*Math.PI/numOfSides);\n \t\t\tys[i]=radius*Math.sin(2*i*Math.PI/numOfSides);\n \t\t\t}\n \t}\n \telse{\n \t\tdouble start=Math.PI/numOfSides;\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(start+2*i*(Math.PI)/numOfSides);\n \t\t\tys[i]=radius*Math.sin(start+2*i*(Math.PI)/numOfSides);\n \t\t\t}\n \t}\n \tsetXLocal(xs);\n \tsetYLocal(ys);\n }",
"public void setPointArray(java.util.List[] pointArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(pointArray, POINT$0);\n }\n }",
"public ListOfDouble(int size) {\n\t\telements = new double[size];\n\t\tpointer = 0;\n\t}",
"void setShapeList(List<String> shapes);",
"public void getSourcePoints(Set<Point> source) {\n \tfor (int i = 1; i < width; i++) {\n\t\t\tsource.add(new Point(i, 0));\n\t\t\tsource.add(new Point(i, height));\n \t}\n\t\tfor (int j = 1; j < height; j++) {\n\t\t\tsource.add(new Point(0, j));\n\t\t\tsource.add(new Point(width, j));\n\t\t}\n }",
"@Override\n public void possibleResultPoints(List<ResultPoint> resultPoints) {\n }",
"public void setPoints(int points) {\n\t\tthis.points = points;\n\t}",
"private static void setQui(){\n int mX, mY;\n for (Integer integer : qList) {\n mY = (int) (Math.floor(1.f * integer / Data.meshRNx));\n mX = integer - Data.meshRNx * mY;\n if (Data.densCells[mX][mY] > Data.gwCap[mX][mY] * .75) {\n for (int j = 0; j < Data.densCells[mX][mY]; j++) {\n Cell cell = (Cell) cells.get(Data.idCellsMesh[mX][mY][j]);\n cell.vState = true;\n cell.quiescent = Data.densCells[mX][mY] >= Data.gwCap[mX][mY];\n }\n }\n }\n }",
"public PointSET() {\n points = new SET<Point2D>();\n }",
"public void position(Double ...coords) throws ArgumentOutOfBoundsException;",
"@Test\n\tpublic void addPointsByListTest(){\n\t}",
"private void setMinMaxPoints(BlockVector pt1, BlockVector pt2) {\r\n List<Vector> points = new ArrayList<Vector>();\r\n points.add(pt1);\r\n points.add(pt2);\r\n setMinMaxPoints(points);\r\n }",
"public QuickHull() {\n allPoints =new ArrayList<>();\n convexHull = new ArrayList<>();\n }",
"public void setPilotPoints(int points) {\n if (pointsPullCheck(points)) {\n pilotPoints += points;\n }\n }",
"public void addAllDimensionsInList (List<Integer> list) {\n\t\tthis.dimensionsAllocated.addAll(list);\n\t}",
"public void insert(final ArrayList<SelectablePoint2> points) {\n additions.sort((o1, o2) -> o2.cachedIndex - o1.cachedIndex);\n for (final SelectablePoint2 p : additions) {\n points.add(p.cachedIndex, p);\n }\n }",
"public abstract List<Point2D> getInterpolatedPoints();",
"protected void setAnimatedValue(float[] pts) {\n\t\t\tint size = itemList.size();\n\t\t\tint i = 0;\n\t\t\twhile (i < size && i < pts.length / 2) {\n\t\t\t\tSVGPointItem p = (SVGPointItem) itemList.get(i);\n\t\t\t\tp.setX(pts[i * 2]);\n\t\t\t\tp.setY(pts[i * 2 + 1]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\twhile (i < pts.length / 2) {\n\t\t\t\tappendItemImpl(new SVGPointItem(pts[i * 2], pts[i * 2 + 1]));\n\t\t\t\ti++;\n\t\t\t}\n\t\t\twhile (size > pts.length / 2) {\n\t\t\t\tremoveItemImpl(--size);\n\t\t\t}\n\t\t}",
"public static void main(String[] args) {\n \n PointSET pset = new PointSET();\n System.out.println(\"Empty: \" + pset.isEmpty());\n pset.insert(new Point2D(0.5, 0.5));\n pset.insert(new Point2D(0.5, 0.5));\n pset.insert(new Point2D(0.5, 0.6));\n pset.insert(new Point2D(0.5, 0.7));\n pset.insert(new Point2D(0.5, 0.8));\n pset.insert(new Point2D(0.1, 0.5));\n pset.insert(new Point2D(0.8, 0.5));\n pset.insert(new Point2D(0.1, 0.1));\n System.out.println(\"Empty: \" + pset.isEmpty());\n System.out.println(\"Size: \" + pset.size());\n System.out.println(\"Nearest to start: \" + pset.nearest(new Point2D(0.0, 0.0)));\n System.out.println(\"Contains #1: \" + pset.contains(new Point2D(0.0, 0.0)));\n System.out.println(\"Contains #2: \" + pset.contains(new Point2D(0.5, 0.5)));\n System.out.print(\"Range #1: \");\n for (Point2D p : pset.range(new RectHV(0.001, 0.001, 0.002, 0.002)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n System.out.print(\"Range #2: \");\n for (Point2D p : pset.range(new RectHV(0.05, 0.05, 0.15, 0.15)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n System.out.print(\"Range #3: \");\n for (Point2D p : pset.range(new RectHV(0.25, 0.35, 0.65, 0.75)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n \n }",
"public PointSET() {\n pointSet = new SET<Point2D>();\n }",
"public void setValues(ArrayList<Double> allValues)\n {\n this.minimumValue = getMinNumber(allValues);\n this.maximumValue = getMaxNumber(allValues);\n this.allValues = allValues;\n }",
"public BaselineList(ArrayList<float[]> list) {\n\t\tthis.listNum = list.size();\n\t\tthis.capacity = listNum * 2;\n\t\tthis.list = new ArrayList<float[]>(list);\n\t}",
"public void xsetPointArray(int i, org.astrogrid.stc.coords.v1_10.beans.Double3Type point)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.astrogrid.stc.coords.v1_10.beans.Double3Type target = null;\n target = (org.astrogrid.stc.coords.v1_10.beans.Double3Type)get_store().find_element_user(POINT$0, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(point);\n }\n }",
"public void initSpawnPoints() {\n this.spawnPointList = new ArrayList<Node>();\n \n //Player spawn point location (5,0,47) In Ready Room\n this.addSpawnPoint(5.5f,0,47.5f,90, true);\n //Mob spawn point location (16,0,47) In Zone 2\n this.addSpawnPoint(16.5f, 0, 47.5f, 270, false); \n //Mob spawn point location (21,0,43)\n this.addSpawnPoint(21.5f, 0, 43.5f, 0,false);\n \n //Mob spawners in Zone 3\n this.addSpawnPoint(17.5f, 0, 37.5f, 90, false);\n this.addSpawnPoint(29.5f, 0, 37.5f, 90, false);\n this.addSpawnPoint(17.5f, 0, 29.5f, 270, false);\n \n //Mob spawners in Zone 4\n this.addSpawnPoint(12.5f, 0, 29.5f, 90, false);\n this.addSpawnPoint(6.5f, 0, 20.5f, 0, false);\n \n //Mob spawners in Zone 5\n this.addSpawnPoint(9.5f, 0, 6.5f, 0, false);\n this.addSpawnPoint(17.5f, 0, 6.5f, 0, false);\n this.addSpawnPoint(24.5f, 0, 8.5f, 270, false);\n this.addSpawnPoint(24.5f, 0, 11.5f, 270, false);\n this.addSpawnPoint(24.5f, 0, 14.5f, 270, false);\n }",
"public void addPoint(double[] point);",
"protected static List<PVector> simplifyDouglasPeucker(List<PVector> points, float sqTolerance) {\n\n\t\tint len = points.size();\n\n\t\tList<Integer> markers = new ArrayList<Integer>(len);\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tmarkers.add(i, 0);\n\t\t}\n\n\t\tint first = 0;\n\t\tint last = len - 1;\n\n\t\tint i;\n\t\tfloat maxSqDist;\n\t\tfloat sqDist;\n\t\tint index = 0;\n\n\t\tStack<Integer> firstStack = new Stack<Integer>();\n\t\tStack<Integer> lastStack = new Stack<Integer>();\n\n\t\tList<PVector> newPoints = new ArrayList<PVector>();\n\n\t\tmarkers.set(first, 1);\n\t\tmarkers.set(last, 1);\n\n\t\twhile (last > 0) {\n\n\t\t\tmaxSqDist = 0;\n\n\t\t\tfor (i = first + 1; i < last; i++) {\n\t\t\t\tsqDist = getSquareSegmentDistance(points.get(i), points.get(first), points.get(last));\n\n\t\t\t\tif (sqDist > maxSqDist) {\n\t\t\t\t\tindex = i;\n\t\t\t\t\tmaxSqDist = sqDist;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (maxSqDist > sqTolerance) {\n\t\t\t\tmarkers.set(index, 1);\n\n\t\t\t\tfirstStack.push(first);\n\t\t\t\tlastStack.push(index);\n\n\t\t\t\tfirstStack.push(index);\n\t\t\t\tlastStack.push(last);\n\t\t\t}\n\n\t\t\tif (firstStack.isEmpty()) {\n\t\t\t\tfirst = 0;\n\t\t\t} else {\n\t\t\t\tfirst = firstStack.pop();\n\t\t\t}\n\t\t\tif (lastStack.isEmpty()) {\n\t\t\t\tlast = 0;\n\t\t\t} else {\n\t\t\t\tlast = lastStack.pop();\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (markers.get(i) != 0) {\n\t\t\t\tnewPoints.add(points.get(i));\n\t\t\t}\n\t\t}\n\n\t\treturn newPoints;\n\t}",
"public static QuadricRobustEstimator create(List<Point3D> points) {\n return create(points, DEFAULT_ROBUST_METHOD);\n }",
"public LineData() {\n\t\t\tallPoints = new ArrayList<>(SIZE_OF_ORIGINAL_LIST);\n\t\t}",
"public PointSET() {\n //s = new TreeSet<Point2D>(Point2D.X_ORDER);\n }",
"private static List<Point> genererPointsAlea(int nbPoints) {\n /*List<Point> points = new ArrayList<>();\n Random rand = new Random(0);\n for(int i=0; i<nbPoints; i++) {\n Point p = new Point(rand.nextDouble(), rand.nextDouble());\n points.add(p);\n }\n return points;*/\n return null;\n }",
"void setVertices(int vertices);",
"public void set(float x, float y, float z);",
"private void definePoints(){\n defineLinePoints(x1, y1, x2, y2);\n defineLinePoints(x1,y1, x3, y3);\n defineLinePoints(x2,y2, x3, y3);\n }",
"public DoubleArrayList wilcoxonTestExistingPathway(Map<String, Double> genePValueMap, List<Pathway> pathwayList, int minSize) throws Exception {\n int subPopulationSize = 0;\n DoubleArrayList pValueListInPathway = new DoubleArrayList();\n DoubleArrayList pValueListOutPathway = new DoubleArrayList();\n DoubleArrayList allPValues = new DoubleArrayList();\n\n Map<String, Float> availableGWASGeneSet = new HashMap<String, Float>();\n float geneWeight = 1;\n for (Pathway curPath : pathwayList) {\n Set<String> pGenes = curPath.getGeneSymbols();\n\n pValueListInPathway.clear();\n pValueListOutPathway.clear();\n Map<String, Float> geneSymbolWeightMap = curPath.getGeneSymbolWeightMap();\n\n for (Map.Entry<String, Float> pGeneIter : geneSymbolWeightMap.entrySet()) {\n String pGeneSymb = pGeneIter.getKey();\n //may introduce biase\n if (!genePValueMap.containsKey(pGeneSymb)) {\n continue;\n }\n if (toWeightHyst) {\n geneWeight = pGeneIter.getValue();\n }\n availableGWASGeneSet.put(pGeneSymb, geneWeight);\n Double p = genePValueMap.get(pGeneSymb);\n if (p != null) {\n pValueListInPathway.add(p);\n }\n }\n\n for (Map.Entry<String, Double> mGene : genePValueMap.entrySet()) {\n if (!pGenes.contains(mGene.getKey())) {\n pValueListOutPathway.add(mGene.getValue());\n }\n }\n\n subPopulationSize = pValueListInPathway.size();\n double[] pValuesInPathway = new double[subPopulationSize];\n for (int t = 0; t < subPopulationSize; t++) {\n pValuesInPathway[t] = pValueListInPathway.getQuick(t);\n }\n double[] pValuesOutPathway = new double[pValueListOutPathway.size()];\n for (int t = 0; t < pValuesOutPathway.length; t++) {\n pValuesOutPathway[t] = pValueListOutPathway.getQuick(t);\n }\n if (subPopulationSize > minSize) {\n MannWhitneyTest mt = new MannWhitneyTest(pValuesInPathway, pValuesOutPathway, H1.LESS_THAN);\n // WilcoxonTest wt = new WilcoxonTest(pValuesInPathway, median, H1.LESS_THAN); \n curPath.setWilcoxonPValue(mt.getSP());\n allPValues.add(curPath.getWilcoxonPValue());\n } else {\n curPath.setWilcoxonPValue(Double.NaN);\n }\n\n }\n return allPValues;\n }",
"private static void add(List<Point> points, int param, double value) {\r\n add(points, param, value, false);\r\n }",
"public void setPricingElement(\r\n @NonNull\r\n final List<SalesOrderHeaderPrElement> value) {\r\n if (toPricingElement == null) {\r\n toPricingElement = Lists.newArrayList();\r\n }\r\n toPricingElement.clear();\r\n toPricingElement.addAll(value);\r\n }",
"public void setUnits(ArrayList value);",
"private static float[] getPlanBounds(List<float[]> list) {\n float xStart = Float.MAX_VALUE;\n float yStart = Float.MAX_VALUE;\n float zStart = Float.MAX_VALUE;\n float xEnd = Float.MIN_VALUE;\n float yEnd = Float.MIN_VALUE;\n float zEnd = Float.MIN_VALUE;\n for (float[] point : list) {\n if (point[0] < xStart) {\n xStart = point[0];\n }\n if (point[0] > xEnd) {\n xEnd = point[0];\n }\n if (point[1] < yStart) {\n yStart = point[1];\n }\n if (point[1] > yEnd) {\n yEnd = point[1];\n }\n if (point[2] < zStart) {\n zStart = point[2];\n }\n if (point[2] > zEnd) {\n zEnd = point[2];\n }\n }\n return new float[]{xStart, xEnd, yStart, yEnd, zStart, zEnd};\n }",
"public void setInputs(ArrayList<Double> inputs)\n {\n this.inputs = inputs;\n }",
"void splitData( List<P> points , @Nullable GrowQueue_I32 indexes ,\n\t\t\t\t\tList<P> left , @Nullable GrowQueue_I32 leftIndexes ,\n\t\t\t\t\tList<P> right , @Nullable GrowQueue_I32 righrIndexes );",
"protected abstract void setValues(double[] values);",
"public PointSET() {\n\n point2DSET = new SET<>();\n }",
"public void setStreets(int numx, int numy);",
"java.util.List<? extends com.google.ads.googleads.v6.common.CpvBidSimulationPointOrBuilder> \n getPointsOrBuilderList();",
"public void setInkList(float[][] inkList) {\n/* 478 */ if (inkList == null) {\n/* */ \n/* 480 */ getCOSObject().removeItem(COSName.INKLIST);\n/* */ return;\n/* */ } \n/* 483 */ COSArray array = new COSArray();\n/* 484 */ for (float[] path : inkList) {\n/* */ \n/* 486 */ COSArray innerArray = new COSArray();\n/* 487 */ innerArray.setFloatArray(path);\n/* 488 */ array.add((COSBase)innerArray);\n/* */ } \n/* 490 */ getCOSObject().setItem(COSName.INKLIST, (COSBase)array);\n/* */ }",
"Collection<Point> getAllCoordinates();",
"public void setPointArray(int i, java.util.List point)\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(POINT$0, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.setListValue(point);\n }\n }",
"public void limpaPontos() {\n\t\tthis.pontos = new ArrayList<Point>();\n\t}",
"public void putListInPointOrder() {\n for (int i = 0; i < players.size(); i++) {\n Player s = players.get(i);\n if (i < players.size() - 1) {\n for (int j = i; j < players.size(); j++) {\n while (s.getPoint() < players.get(j).getPoint()) {\n Collections.swap(players, i, j);\n }\n\n }\n }\n }\n }",
"private void setPointArray(Point heartPoint, Point calPoint, Point activePoint, Point sedPoint)\n\t{\n\t\tthis.pointArray[1] = heartPoint;\n\t\tthis.pointArray[2] = calPoint;\n\t\tthis.pointArray[3] = activePoint;\n\t\tthis.pointArray[4] = sedPoint;\n\t\t\n\t}",
"protected final void parset() {\n current = read();\n skipSpaces();\n\n for (;;) {\n switch (current) {\n default:\n return;\n case '+': case '-': case '.':\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n }\n\n float x = parseNumber();\n skipCommaSpaces();\n float y = parseNumber();\n \n smoothQCenterX = currentX * 2 - smoothQCenterX;\n smoothQCenterY = currentY * 2 - smoothQCenterY;\n currentX += x;\n currentY += y;\n p.quadTo(smoothQCenterX, smoothQCenterY, currentX, currentY);\n smoothCCenterX = currentX;\n smoothCCenterY = currentY;\n skipCommaSpaces();\n } \n }",
"public void setPeakList(Vector<Peak> peakList)\n {\n \tthis.peakList = peakList;\n }",
"public Collection <Point> getAllPoints(){\n Collection <Point> points = new ArrayList<>();\n for(int i = 0; i < width; i++){\n for(int j = 0; j < height; j++){\n points.add(new Point(i, j));\n }\n }\n return points;\n }",
"public List<Point> generatePointList(){\r\n\t\t//Can move up to 3 squares horizontally or vertically, but cannot move diagonally.\r\n List<Point> pointList = new ArrayList<>();\r\n int pointCount = 0;\r\n int px = (int)getCoordinate().getX();\r\n int py = (int)getCoordinate().getY();\r\n\r\n for (int i=px-3;i<=px+3;i++){\r\n for(int j=py-3;j<=py+3;j++){\r\n if((i>=0) && (i<9) && (j>=0) && (j<9) && ((i!=px)||(j!=py))){\r\n if ((i==px)||(j==py)){\r\n pointList.add(pointCount, new Point(i,j));\r\n pointCount+=1;\r\n } \r\n }\r\n }\r\n }\r\n return pointList;\r\n }",
"protected static List<Marker> getSortedPointSet(List<Marker> points) {\n\n final Marker lowest = getLowestPoint(points);\n List<Marker> setMarker = new ArrayList<>();\n TreeSet<Marker> set = new TreeSet<Marker>(new Comparator<Marker>() {\n @Override\n public int compare(Marker a, Marker b) {\n\n if(a == b || a.equals(b)) {\n return 0;\n }\n\n // use longs to guard against int-underflow\n double thetaA = Math.atan2(a.getPosition().latitude - lowest.getPosition().latitude, a.getPosition().longitude - lowest.getPosition().longitude);\n double thetaB = Math.atan2(b.getPosition().latitude - lowest.getPosition().latitude, b.getPosition().longitude - lowest.getPosition().longitude);\n\n if(thetaA < thetaB) {\n return -1;\n }\n else if(thetaA > thetaB) {\n return 1;\n }\n else {\n // collinear with the 'lowest' point, let the point closest to it come first\n\n // use longs to guard against int-over/underflow\n double distanceA = Math.sqrt(((lowest.getPosition().longitude - a.getPosition().longitude) * (lowest.getPosition().longitude - a.getPosition().longitude)) +\n ((lowest.getPosition().latitude - a.getPosition().latitude) * ((long)lowest.getPosition().latitude - a.getPosition().latitude)));\n double distanceB = Math.sqrt(((lowest.getPosition().longitude - b.getPosition().longitude) * (lowest.getPosition().longitude - b.getPosition().longitude)) +\n (((long)lowest.getPosition().latitude - b.getPosition().latitude) * ((long)lowest.getPosition().latitude - b.getPosition().latitude)));\n\n if(distanceA < distanceB) {\n return -1;\n }\n else {\n return 1;\n }\n }\n }\n });\n\n set.addAll(points);\n for (Marker mk :\n set) {\n\n setMarker.add(mk);\n }\n return setMarker;\n }",
"void drawPointArr(Graphics2D g2d, ArrayList<Point2D.Double> l){\r\n\t\tfor(int i=0; i<l.size()-1; i++){\r\n\t\t\tLine2D.Double line=new Line2D.Double(l.get(i), l.get(i+1));\r\n\t\t\tg2d.draw(line);\r\n\t\t}\r\n\r\n\t}",
"public List<IPos> getCurvePoints() {\n\t\t// Create the array ready to hold all the points\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tList<IPos> points = new ArrayList<IPos>();\n\t\tif (segmentCount > 1) {\n\t\t\t// Get the influencing points, from simple tests 1/3rd the ditance to the next\n\t\t\t// point at the incoming angle seems to work fine.\n\t\t\tstartInfluencePoint = calculateInfluencingPoint(start, influenceDistance, startAngle);\n\t\t\tendInfluencePoint = calculateInfluencingPoint(end, influenceDistance, endAngle);\n\t\t\t// Once those points are removed, remember to change the rail as well or the\n\t\t\t// data will be wrong\n\n\t\t\t// Add the sub points that will create the bend\n\t\t\tfor (int i = 1; i <= segmentCount; i++) {\n\t\t\t\tfloat t = i / (segmentCount + 1f);\n\t\t\t\tfloat x = getCurveValue(start.x(), startInfluencePoint.x(), end.x(), endInfluencePoint.x(), t);\n\t\t\t\tfloat z = getCurveValue(start.z(), startInfluencePoint.z(), end.z(), endInfluencePoint.z(), t);\n\t\t\t\tfloat y = start.y() + ((end.y() - start.y()) * t);\n\t\t\t\tpoints.add(new Pos(x, y, z));\n\t\t\t\t// TODO we could use a lambda expression to create an add directly to the host\n\t\t\t\t// allowing more reusablity\n\t\t\t}\n\n\t\t}\n\t\treturn points;\n\t}",
"public static ArrayList<Point> createPoints(ArrayList<Point> P, int numPoints, double max_x, double max_y) {\n\t\t\t\t\t\t\n\t\tRandom r = new Random();\n\t\t//Create new point objects and add them to 'point'\n\t for (int i = 0; i < numPoints; i++) {\n\t P.add(new Point(r.nextDouble() * max_x, r.nextDouble() * max_y));\n\t }\n\t \n\t return P;\n\t}",
"@Test\n public void testSet() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n Integer expResult = 7;\n Integer result = instance.set(2, 9);\n assertEquals(expResult, result);\n\n }",
"public void setVertices(float x0, float y0, float z0,\n float x1, float y1, float z1,\n float x2, float y2, float z2) {\n x_array[0] = x0;\n x_array[1] = x1;\n x_array[2] = x2;\n \n y_array[0] = y0;\n y_array[1] = y1;\n y_array[2] = y2;\n \n z_array[0] = z0;\n z_array[1] = z1;\n z_array[2] = z2;\n }",
"public void setVertices (float[] vertices, int offset, int count) {\r\n \t\tthis.vertices.setVertices(vertices, offset, count);\r\n \t}",
"private void updateArrayListCoordinates() {\n this.coordinates = makeCoordinatesFromCenterCoordinate(centerPointCoordinate);\n }",
"public static void main(String[] args) {\n PointSET set = new PointSET();\n assert set.isEmpty();\n assert set.size() == 0;\n\n set.insert(new Point2D(0.5, 0.5));\n set.insert(new Point2D(0.25, 0.5));\n set.insert(new Point2D(0.75, 0.5));\n set.insert(new Point2D(0.25, 0.25));\n set.insert(new Point2D(0.25, 0.75));\n assert !set.isEmpty();\n assert set.size() == 5;\n\n assert set.contains(new Point2D(0.5, 0.5));\n assert set.contains(new Point2D(0.25, 0.5));\n assert set.contains(new Point2D(0.75, 0.5));\n assert set.contains(new Point2D(0.25, 0.25));\n assert set.contains(new Point2D(0.25, 0.75));\n assert !set.contains(new Point2D(0.25, 0.74));\n assert !set.contains(new Point2D(0.24, 0.75));\n\n set.draw();\n }"
] | [
"0.6861506",
"0.6612493",
"0.5851038",
"0.5837212",
"0.57881373",
"0.5777309",
"0.57527065",
"0.57389134",
"0.5713126",
"0.558894",
"0.5587252",
"0.5568811",
"0.54773486",
"0.5434007",
"0.54200155",
"0.54179275",
"0.54112124",
"0.5403501",
"0.53707516",
"0.53513926",
"0.5348124",
"0.5344996",
"0.5323598",
"0.52936524",
"0.52861357",
"0.5276294",
"0.5258244",
"0.5252925",
"0.52455664",
"0.52421784",
"0.5221392",
"0.52118564",
"0.5193494",
"0.51873004",
"0.5179904",
"0.5175585",
"0.51658565",
"0.51568407",
"0.51428014",
"0.51424456",
"0.5136923",
"0.51283675",
"0.5126508",
"0.51263505",
"0.51179963",
"0.511312",
"0.5109651",
"0.5098428",
"0.50968367",
"0.5081304",
"0.5065453",
"0.5056104",
"0.5047958",
"0.5033349",
"0.5029562",
"0.50276965",
"0.5017568",
"0.501637",
"0.50137335",
"0.49829173",
"0.49802393",
"0.4975194",
"0.49586722",
"0.49548373",
"0.4947478",
"0.4941687",
"0.49398914",
"0.49392852",
"0.49368337",
"0.49165508",
"0.49159166",
"0.4907974",
"0.4906539",
"0.49052387",
"0.4903533",
"0.490233",
"0.48865685",
"0.48832208",
"0.48784178",
"0.4873679",
"0.48637336",
"0.48583943",
"0.48551846",
"0.48549333",
"0.48531723",
"0.4853028",
"0.48504537",
"0.48369566",
"0.48304537",
"0.48281702",
"0.4820436",
"0.48189697",
"0.48146197",
"0.48111996",
"0.48061162",
"0.47992817",
"0.47985286",
"0.4796551",
"0.47943002",
"0.47853786"
] | 0.6004738 | 2 |
Indicates if estimator is ready to start the quadric estimation. This is true when a minimum if MINIMUM_SIZE points are available. | public boolean isReady() {
return mPoints != null && mPoints.size() >= MINIMUM_SIZE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isReady() {\n return mInputPoints != null && mOutputPoints != null &&\n mInputPoints.size() == mOutputPoints.size() &&\n mInputPoints.size() >= getMinimumPoints();\n }",
"@Override\n public boolean isReady() {\n //at least one parameter estimtion must be enabled\n return (mPositionEstimationEnabled || mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled) &&\n //if position estimation is disabled, an initial position must be provided\n !(!mPositionEstimationEnabled && mInitialPosition == null) &&\n //if transmitted power estimation is disabled, an initial transmitted power must be provided\n !(!mTransmittedPowerEstimationEnabled && mInitialTransmittedPowerdBm == null) &&\n //readings must also be valid\n areValidReadings(mReadings);\n }",
"private final boolean size_ready ()\n {\n next_step (in_progress.data (), in_progress.size (),\n message_ready, !in_progress.has_more());\n return true;\n }",
"boolean hasEstimator();",
"protected boolean isFinished() {\n\t\treturn Robot.roborio.getYAccelerationComparedToThreshold(threshold, true) || \n\t\t\t\tinitDistance - Robot.drivetrain.getRightEncoderPos(0) < 18 * Drivetrain.kEncoderTicksPerInch; \n\t}",
"protected boolean isFinished() {\r\n if (Math.abs(motorWithEncoder.getSetpoint() - motorWithEncoder.getPosition()) < 0.5) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"@Override\n protected boolean isFinished() {\n return (extend || timeSinceInitialized() >= 1.5);\n }",
"public boolean isMinimalClassSizeFulfilled() {\n return minimalClassSize != Integer.MAX_VALUE && minimalClassSizeFulfilled;\n }",
"@Override\r\n\tpublic boolean isReady() {\n\t\treturn !finish;\r\n\t}",
"boolean isSetWagerMinimum();",
"private boolean hasCapacity() {\n int used = 0 + evaluations.size() * 2;\n int available = Runtime.getRuntime().availableProcessors() * ServerRunner.getProcessorMultiplier();\n return used < available;\n }",
"protected boolean isFinished() {\n \tif(timeSinceInitialized() >= 1.75){\n \t\treturn true;\n \t}\n return false;\n }",
"public boolean hasStarted() {\n return hasStarted(10, 500, TimeUnit.MILLISECONDS);\n }",
"public Boolean isReady()\n {\n return (sensorModules != null && !sensorModules.isEmpty());\n }",
"@Override\n public boolean isReady() {\n return isFinished();\n }",
"public boolean getCoordsReady() {\n\t\treturn coordsReady;\n\t}",
"private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}",
"public boolean hasMinRequirements() {\n\t\t// FIXME MIN input\n\t\treturn true;\n\t}",
"boolean isSetSingleBetMinimum();",
"private boolean isNextReady()\n {\n return __m_NextReady;\n }",
"@Override\n public boolean isReady() {\n return (running && !opening) || packetQueue.size() > 0;\n }",
"public boolean isAvailable(){\n\t\ttry{\n\t\t\tgetPrimingsInternal(\"Test\", \"ATGATGATGATGATGATGATG\");\n\t\t}\n\t\tcatch(IOException e){\n\t\t\treturn false;\n\t\t}\n\t\tcatch(InterruptedException e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isFull() {\n return this.chromosomes.size() >= Defines.popSize;\n }",
"public boolean isAvailable(){\r\n return blockingQueue.size() < maxWorkQueueSize;\r\n }",
"@Override\n public boolean isReady() {\n return areValidReadings(mReadings);\n }",
"public boolean shouldHaveStarted() {\n return mCameraStarted.get();\n }",
"@Override\n public boolean isFinished() {\n double[] positions = drivetrain.getPositions();\n\n return Math.abs(positions[0] - targetDistance) <= allowedError && Math.abs(positions[1] - targetDistance) <= allowedError;\n }",
"public boolean hasSize() {\n return sizeBuilder_ != null || size_ != null;\n }",
"public boolean hasSize() {\n return sizeBuilder_ != null || size_ != null;\n }",
"private boolean isEligibleForRealMin() {\n return eligibleForRealMin;\n }",
"private void checkIfReadyToParse() {\r\n\t\tif (this.hostGraph != null)\r\n\t\t\tif (this.stopGraph != null)\r\n\t\t\t\tif (this.criticalPairs != null || this.criticalPairGraGra != null) {\r\n\t\t\t\t\tthis.readyToParse = true;\r\n\t\t\t\t}\r\n\t}",
"public boolean isSetSmallCircle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SMALLCIRCLE$2) != 0;\n }\n }",
"boolean hasStarted() {\n return includedLength > 0;\n }",
"protected static synchronized boolean isPresent() {\n if (m_Present == null) {\n try {\n SizeOfAgent.fullSizeOf(new Integer(1));\n m_Present = true;\n } catch (Throwable t) {\n m_Present = false;\n }\n }\n\n return m_Present;\n }",
"public boolean hasBeenStarted() {\n return getLastAnswer() != null;\n }",
"public boolean isReady();",
"public boolean isReady();",
"public boolean isFull(){\n return size == arrayQueue.length;\n }",
"public boolean isFinished() {\n\t\t\n\t\treturn drivetrain.angleReachedTarget();\n\n\t}",
"protected boolean isFinished() {\n if (waitForMovement) return (timeSinceInitialized() > Robot.intake.HOPPER_DELAY);\n return true;\n }",
"public boolean isReady() {\n return isReady;\n }",
"public boolean isReady()\r\n {\r\n return _isReady;\r\n }",
"public boolean isReady() {\n return ready;\n }",
"public boolean isSetAllocFraction() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ALLOCFRACTION_ISSET_ID);\n }",
"public boolean isSetRFFreqMin() {\n return (this.rfFreqMin != null ? this.rfFreqMin.isSetValue() : false);\n }",
"protected boolean isFinished() {\n //boolean onTarget = Math.abs(\n //encoderValue - Math.abs(Robot.arm.getArmEncoderValue())) <= RobotMap.ArmConstants.ARM_ENCODER_BUFFER;\n boolean hasBeenZeroed = Robot.arm.hasButtonBeenPressed();\n boolean onTarget = false;\n if(initialPos < setpoint) {\n onTarget = Math.abs(Robot.arm.getArmEncoderValue()) >= setpoint;\n }else if(initialPos >= setpoint) {\n onTarget = Math.abs(Robot.arm.getArmEncoderValue()) <= setpoint;\n }\n return this.isTimedOut() || !hasBeenZeroed || onTarget;\n }",
"@Override\n public boolean isReady() {\n return true;\n }",
"protected boolean isFinished ()\n\t{\n\n\t\tif (Subsystems.goalVision.getProportionalGoalX() >= X_OFFSET\n\t\t - DEADBAND\n\t\t && Subsystems.goalVision\n\t\t .getProportionalGoalX() <= X_OFFSET + DEADBAND)\n\t\t//The goal is centered.\n\t\t{\n\t\t\t//We are aligned.\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean isInputModelReady()\n {\n return inputModelReady;\n }",
"protected boolean isFinished() {\n \t//System.out.println(\"FINISHED\");\n \tif(sizeArray.length>0)\n \t\treturn sizeArray[0]>targetSize;\n else\n \treturn noBubbles;\n \t\n \t\n }",
"@Override\n public boolean isReady() {\n return true;\n }",
"@Override\n\tpublic boolean isComplete() {\n\t\tboolean empties = nbEmptyMetrics == 0;\n\t\t// 2. all submetrics are complete\n\t\tboolean subs = true;\n\t\tfor (AbstractMetric m : metrics)\n\t\t\tsubs = subs && m.isComplete();\n\t\t// 3. the sum of weights is 1\n\t\tdouble weight = 0;\n\t\tfor (int i = 0; i < metrics.size(); i++)\n\t\t\tweight += this.weight.get(i);\n\t\tboolean sum = weight == 1.0;\n\t\treturn empties && subs && sum;\n\t}",
"@Override\n protected boolean isFinished() {\n return Math.abs(m_currentError) <= constants.tolerance;\n }",
"protected boolean isFinished() {\n \tif (Math.abs(_finalTickTargetLeft - Robot.driveTrain.getEncoderLeft()) <= 0 &&\n \t\t\tMath.abs(_finalTickTargetRight - Robot.driveTrain.getEncoderRight()) <= 0)\n \t{\n \t\treturn true;\n \t}\n return false;\n }",
"public boolean isSetPageSize() {\n return __isset_bit_vector.get(__PAGESIZE_ISSET_ID);\n }",
"@Override\n public boolean isFinished() {\n return controller.atSetpoint();\n }",
"boolean isSetMultipleBetMinimum();",
"public boolean isInitialSetuped(){\r\n\t\treturn initialSetuped;\r\n\t}",
"private boolean isReady() {\n for (Rotor rotor : rotors)\n if (rotor == null)\n return false;\n return (stator != null && reflector != null && plugboard != null);\n }",
"@Override\r\n\tpublic boolean isFull() {\r\n\r\n\t\treturn data.size() >= maxQueue;\r\n\t}",
"@Override\n public boolean isSetupToBeDrawn() {\n return !(designParameters == null || slabStrip == null || graphicsContext == null || colour == null || slabImageScale == 0);\n }",
"public boolean hasChunkSize() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"boolean complete() {\n\t\tint sizes = 1;\n\n\t\tfor (int i = 0; i <= matrix.length - 1; i++) {\n\t\t\tfor (int j = 4; j >= sizes; j--) {\n\t\t\t\tint cost = getCost(i,j);\n\t\t\t\tif (cost == 0) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsizes = sizes + 1;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean getIsReady() {\n return localIsReady;\n }",
"boolean isSetFractionalMinimum();",
"public boolean isFullySupplied()\n {\n boolean isFull = !model.needsFuel() || (model.maxFuel == fuel);\n isFull &= (model.maxAmmo == ammo);\n return isFull;\n }",
"public boolean isEmpty()\r\n {\r\n if(measurementQueue==null) return true;\r\n \r\n return measurementQueue.isEmpty();\r\n }",
"public boolean isSetMinHitCount() {\r\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __MINHITCOUNT_ISSET_ID);\r\n }",
"public boolean isSetQuantity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(QUANTITY$10) != 0;\n }\n }",
"public boolean willVehicleFit(double size)\n\t{\n\t\tif(unitSpaceAvailable - size >= 0)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isSetPageSize() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PAGESIZE_ISSET_ID);\n }",
"public boolean isSetPageSize() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PAGESIZE_ISSET_ID);\n }",
"boolean isReady();",
"boolean isReady();",
"boolean isReady();",
"public boolean isReady() {\n\t\treturn state == State.READY;\n\t}",
"public boolean isAllocated()\n\t{\n\t\tif(getQtyAllocated().signum()!=0)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isReady() {\n\t\treturn (this.baseTime == this.timeRemaining);\n\t}",
"boolean isFullfilled() throws IllegalStateException;",
"@Override\n protected boolean isFinished() {\n return (Math.abs(hpIntake.getWristPosition()) - HatchPanelIntake.positions[position.ordinal()] < Math.PI/12);\n }",
"public boolean hasChunkSize() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"private boolean alreadyStarted() {\n\t\treturn this.buffer.length() > 0;\n\t}",
"public boolean isProximitySensorAvailable() {\n return mProximitySensor != null;\n }",
"boolean hasStartingConfig() {\n return startCfg_ != null;\n }",
"@Override\n\t\tpublic boolean isReady() {\n\t\t\treturn false;\n\t\t}",
"@Override\n\t\tpublic boolean isReady() {\n\t\t\treturn false;\n\t\t}",
"public boolean allCalculationsDone() {\r\n return progressBarMap.isEmpty();\r\n }",
"public boolean isReadyToParse() {\r\n\t\treturn this.readyToParse;\r\n\t}",
"public boolean hasChunkRequest() {\n return chunkRequestBuilder_ != null || chunkRequest_ != null;\n }",
"boolean hasChunkSize();",
"public boolean needSetup() {\n\t\treturn needsSetup;\n\t}",
"protected boolean isFinished() {\n \tif(timer.get()>.7)\n \t\treturn true;\n \tif(Robot.gearX==0)\n \t\treturn true;\n return (Math.abs(173 - Robot.gearX) <= 5);\n }",
"public boolean queueFull() {\r\n\t\tif (vehiclesInQueue.size() > maxQueueSize) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private static boolean hasCapacityForMultiEvaluation() {\n // return true;\n int threshold = 3;\n int available = Runtime.getRuntime().availableProcessors() * ServerRunner.getProcessorMultiplier();\n return available >= threshold;\n }",
"protected boolean isFinished() {\n\t\tif(switchSide) {\n\t\t\treturn !launchCubeSwitch.isRunning() && state == 4;\n\t\t}\n\t\telse if(scaleSide) {\n\t\t\treturn !launchCubeScale.isRunning() && state == 4;\n\t\t}\n\t\telse {\n\t\t\treturn !crossLine.isRunning() && timer.get() > 1;\n\t\t}\n\t}",
"public boolean isAbleToBeAllocated( )\r\n {\r\n // Do not allow allocation if it's too slow!\r\n if (lastTransferRateBPS < ServiceManager.sCfg.minimumAllowedTransferRate\r\n && lastTransferRateBPS > 0)\r\n {\r\n addToCandidateLog( \"Refusing candidate allocation as last transfer rate was only \" \r\n + lastTransferRateBPS + \" bps\");\r\n NLogger.debug( NLoggerNames.Download_Candidate_Allocate,\r\n \"Refusing candidate allocation as last transfer rate was only \" \r\n + lastTransferRateBPS + \" bps\");\r\n return false;\r\n }\r\n long currentTime = System.currentTimeMillis();\r\n return statusTimeout <= currentTime;\r\n }",
"public boolean isEmpty() {\n return qSize == 0;\n }",
"@java.lang.Override\n public boolean hasSize() {\n return size_ != null;\n }",
"@java.lang.Override\n public boolean hasSize() {\n return size_ != null;\n }",
"protected boolean isFinished() {\n \t//finish if distance >= requried distance\n return (Robot.drive.leftEncoder.getDistance() >= distance || Robot.drive.rightEncoder.getDistance() >= distance);\n }"
] | [
"0.732552",
"0.6877622",
"0.6819254",
"0.6229994",
"0.62081456",
"0.6197551",
"0.6186369",
"0.6183606",
"0.6178502",
"0.61560196",
"0.6154821",
"0.6146487",
"0.6128107",
"0.612677",
"0.61142117",
"0.60945666",
"0.60108846",
"0.5977166",
"0.5973491",
"0.59435505",
"0.5923285",
"0.5909923",
"0.5903894",
"0.5893657",
"0.5890814",
"0.5887143",
"0.58773685",
"0.58627594",
"0.58627594",
"0.58558095",
"0.5851163",
"0.5829007",
"0.58080417",
"0.5803344",
"0.580231",
"0.58006597",
"0.58006597",
"0.57987344",
"0.5772837",
"0.57591724",
"0.5753301",
"0.5753167",
"0.57515126",
"0.57464457",
"0.5741826",
"0.57288134",
"0.5728364",
"0.5715202",
"0.57061225",
"0.56926006",
"0.5692182",
"0.5675615",
"0.5671845",
"0.56704223",
"0.5666838",
"0.5664157",
"0.56612873",
"0.56585",
"0.5654873",
"0.56458503",
"0.5645816",
"0.56450623",
"0.5644812",
"0.56408554",
"0.56329966",
"0.56324565",
"0.56289566",
"0.5628916",
"0.562643",
"0.5621416",
"0.56202006",
"0.56202006",
"0.5617734",
"0.5617734",
"0.5617734",
"0.56141",
"0.56062686",
"0.56055975",
"0.56048566",
"0.5600265",
"0.56002",
"0.559993",
"0.5597447",
"0.55909646",
"0.5581466",
"0.5581466",
"0.5574609",
"0.55555964",
"0.5553931",
"0.5552418",
"0.555106",
"0.55487144",
"0.55478436",
"0.55461705",
"0.55452627",
"0.5544576",
"0.5534824",
"0.55317545",
"0.55317545",
"0.5526987"
] | 0.7629786 | 0 |
Returns quality scores corresponding to each point. The larger the score value the better the quality of the point measure. This implementation always returns null. Subclasses using quality scores must implement proper behaviour. | public double[] getQualityScores() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection getQualityResults()\r\n {\r\n return mQualityResults;\r\n }",
"public int getScore()\n {\n return points + extras;\n }",
"Float getScore();",
"public double getBestScore();",
"public int getQuality()\n {\n int sleeplatencyScore = getSleepLatencyScore();\n int sleepDurationScore = getSleepDurationScore();\n int sleepEfficiencyScore= getSleepEfficiencyScore();\n int sleepDeepsleepRatioScore = getDeepSleepRatioScore();\n int nightTimeWakeScore = getNightTimeAwakeningScore();\n int sum = sleeplatencyScore + sleepDurationScore+ sleepEfficiencyScore+ sleepDeepsleepRatioScore+ nightTimeWakeScore;\n sum = sum *4;\n return sum;\n }",
"public abstract float getScore();",
"public double getQuality() {\n return quality;\n }",
"public float getQuality();",
"float getScore();",
"float getScore();",
"public BigDecimal getScores() {\n return scores;\n }",
"public int score() {\n int sum = 0;\n for (Candidate c : chosen) {\n sum += c.score(compatibilityScoreSet);\n }\n return sum;\n }",
"public List<Pair<String, Integer>> getScores() {\n if (!this.list.isPresent()) {\n this.readScores();\n }\n return new ArrayList<>(this.list.get());\n }",
"public abstract Score[] getScore();",
"public double getScore() {\n double compositeScore = this.normaliseViewingTime();\n if (this.normalisedRating > 0) {\n compositeScore *= this.normalisedRating;\n }\n else {\n compositeScore *= ((double)RANGE / (double)2) / (double)RANGE;\n }\n return compositeScore;\n }",
"Quality getQ();",
"public double getPiazzaScore() {\r\n return piazzaScore;\r\n }",
"java.lang.String getQuality();",
"public int getQuality() {\n return quality;\n }",
"public int getQuality() {\n return quality;\n }",
"public int getQuality() {\n return quality;\n }",
"private ArrayList<Integer> possibleScores() {\n return new ArrayList<Integer>();\n }",
"public int getScorePoints() {\n/* 75 */ return this.scorePoints;\n/* */ }",
"private void calculateStPointScore() {\n\t\tint total = 0;\n\t\tint maxAnswerSize = 0;\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\ttotal += oneQ.getFrequency() * oneQ.getGapCount();\n\t\t\tint tempSize = oneQ.getSupport() * oneQ.getGapCount();\n\t\t\tif (tempSize > maxAnswerSize)\n\t\t\t\tmaxAnswerSize = tempSize;\n\t\t}\n\t\ttotal += maxAnswerSize;\n\t\tthis.stPointScore = total;\n\t}",
"protected abstract List<Double> calcScores();",
"@Override\r\n\tpublic double getScore() {\n\t\treturn score;\r\n\t}",
"public Float getScore() {\n return score;\n }",
"public float getScore() {\n return score;\n }",
"public int returnPoints()\n {\n return score ;\n }",
"public java.lang.Float getScore () {\n\t\treturn score;\n\t}",
"public int[] getScores() {\n return this.scores;\n }",
"int getScoreValue();",
"public double getScore() {\r\n return score;\r\n }",
"public float getScore() {\r\n\t\treturn score;\r\n\t}",
"@Override\r\n\tpublic Double getPropensity_familyproins_score() {\n\t\treturn super.getPropensity_familyproins_score();\r\n\t}",
"java.util.List<Score>\n getScoresList();",
"public double getScore() {\r\n return mScore;\r\n }",
"@Override\r\n\tpublic String toString() {\r\n return rank + \" of \" + suit + \" - Point value: \" + pointValue;\r\n }",
"public float getScore() {\n\t\treturn score;\n\t}",
"public double getScore() {\n int as = this.attributes.size(); // # of attributes that were matched\n\n // we use thresholding ranking approach for numInstances to influence the matching score\n int instances = this.train.numInstances();\n int inst_rank = 0;\n if (instances > 100) {\n inst_rank = 1;\n }\n if (instances > 500) {\n inst_rank = 2;\n }\n\n return this.p_sum + as + inst_rank;\n }",
"public Double getScore() {\n return this.score;\n }",
"public Double getScore() {\n return this.score;\n }",
"public gov.gsa.hspd12.federated.enrollment.ArrayOfFingerprintScore getNfiqScores(){\n return localNfiqScores;\n }",
"public java.lang.Integer getScore () {\r\n\t\treturn score;\r\n\t}",
"public Integer getScore() {\n return score;\n }",
"public Score getScore() {\n\t\treturn score;\n\t}",
"public int getScorePerPixel() {\n\treturn scorePerPixel;\n }",
"public Integer getScore() {\r\n return score;\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn Globals.currentScore + \" \" + String.valueOf(points);\n\t}",
"public java.util.List<Score> getScoresList() {\n return scores_;\n }",
"public double getScore() {\n\t\t\treturn this.score;\n\t\t}",
"Collection<P> getPointsOfInterest ();",
"int getScore();",
"private double getScore() {\n double score = 0;\n score += getRBAnswers(R.id.radiogroup1, R.id.radiobutton_answer12);\n score += getRBAnswers(R.id.radiogroup2, R.id.radiobutton_answer21);\n score += getRBAnswers(R.id.radiogroup3, R.id.radiobutton_answer33);\n score += getRBAnswers(R.id.radiogroup4, R.id.radiobutton_answer41);\n score += getCBAnswers();\n score += getTextAns();\n score = Math.round(score / .0006);\n score = score / 100;\n return score;\n }",
"final public int getPoints() {\r\n\t\tif (wildcard) {\r\n\t\t\treturn 20;\r\n\t\t}\r\n\t\t\r\n\t\tif (isJoker()) {\t\t\t\r\n\t\t\treturn 50;\r\n\t\t}\r\n\t\t\r\n\t\treturn face;\r\n\t}",
"public int getScore() {\n return getStat(score);\n }",
"public HourGlass getScoring() {\r\n return this.scores;\r\n }",
"@Override\n public int getScore() {\n return score;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getScore();",
"public String getQuality()\n\t{\n\t\treturn quality.getText();\n\t}",
"@Override\r\n\tpublic double getScore() \r\n\t{\r\n\t\treturn this._totalScore;\r\n\t}",
"public static ArrayList<ArrayList<ArrayList<Double>>> assignScoreToQueries() {\r\n\t\t\r\n\t\tArrayList<ArrayList<ArrayList<Double>>> allQueries = Queries.createQueries();\r\n\t\tArrayList<ArrayList<String>> dataset = ReadInDataset.finalDataset;\r\n\t\tint Counter = 0;\r\n\t\tDouble Score = 0.0;\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.####\");\r\n\t\tdf.setRoundingMode(RoundingMode.CEILING); // round up to 4 decimal places\r\n\t\t\r\n\t\t\r\n\t\t// initially assign to each query a score of 0\r\n\t\t\r\n\t\tfor (int i = 0; i < allQueries.size(); i++) {\r\n\t\t\tArrayList<Double> zero = new ArrayList<Double>();\r\n\t\t\tzero.add(0.0);\r\n\t\t\tallQueries.get(i).add(zero);}\r\n\t\t\r\n\t\t// go through each query and check how many entries of the dataset it matches\r\n\t\t// with each match increase the score\r\n\t\t\r\n\t\tfor (int i = 0; i < allQueries.size(); i++) { // for each query\r\n\t\t\tfor(int b=0; b < dataset.size(); b++) { // for each dataset\r\n\t\t\t\tCounter = 0; \r\n\t\t\t\tfor (int a=0; a < allQueries.get(i).size()-1; a++) { // for each query clause\r\n\t\t\t\t//check if the query criteria match the dataset and increase the Score accordingly\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //this counter ensures that all query requirements are met in order to increase the score\r\n\t\t\t\t\tif (a != allQueries.get(i).size() - 1) {\t\t\t\t\t\t // ensure that Score entry is not involved in Query Matching\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// take min and max from query along with an entry from the dataset, convert to a double of 4 decimal places\r\n\t\t\t\t\t\tdouble minPoint1 = allQueries.get(i).get(a).get(0);\r\n\t\t\t\t\t\tString minPoint2 = df.format(minPoint1);\r\n\t\t\t\t\t\tdouble minPoint = Double.parseDouble(minPoint2);\r\n\t\t\t\t\t\tdouble maxPoint1 = allQueries.get(i).get(a).get(1);\r\n\t\t\t\t\t\tString maxPoint2 = df.format(maxPoint1);\r\n\t\t\t\t\t\tdouble maxPoint = Double.parseDouble(maxPoint2);\r\n\t\t\t\t\t\tdouble dataPoint1 = Double.parseDouble(dataset.get(b).get(a+1));\r\n\t\t\t\t\t\tString dataPoint2 = df.format(dataPoint1);\r\n\t\t\t\t\t\tdouble dataPoint = Double.parseDouble(dataPoint2);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tif ( dataPoint<= maxPoint && dataPoint >= minPoint) { Counter++; \r\n\t\t\t\t\t//\tSystem.out.println(\"min:\" + minPoint+\" max: \"+maxPoint+\" data: \"+dataPoint+ \" of Query: \" + b+ \"| Query Match!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {//System.out.println(minPoint+\" \"+maxPoint+\" \"+dataPoint+ \" of \" + b);\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\tif (Counter==(Queries.getDimensions())/2) { // if counter equals the dimensions of the query then increase score\r\n\t\t\t\t\tScore = allQueries.get(i).get(allQueries.get(i).size()-1).get(0);\r\n\t\t\t\t\tallQueries.get(i).get(allQueries.get(i).size()-1).set(0, Score+1.00); \r\n\t\t\t\t\t}}\r\n\t\t\t\t \r\n\t\t\t\t}\r\n\t\t//\tSystem.out.println(\"Score = \" + allQueries.get(i).get(allQueries.get(i).size()-1).get(0));\r\n\t\t}\t\r\n\t\treturn allQueries;\r\n\t}",
"public ArrayList<Highscore> getAllScore() {\n SQLiteDatabase db = this.getReadableDatabase();\n ArrayList<Highscore> arScore = new ArrayList<>();\n Cursor res = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n\n res.moveToFirst();\n while (!res.isAfterLast()) {\n\n arScore.add(new Highscore(res.getInt(res.getColumnIndex(\"score\")), res.getInt(res.getColumnIndex(\"_id\")), res.getString(res.getColumnIndex(\"challenge\"))));\n res.moveToNext();\n }\n res.close();\n db.close();\n\n return arScore;\n }",
"public Score lowestScore()\n {\n Score lowest = new Score();\n int smallSoFar = 201;\n if(scores[0] == null)\n {\n return null;\n }\n else\n {\n for(int i = 0; i < scores.length; i++)\n {\n lowest = scores[0];\n if(scores[i] == null)\n {\n break;\n }\n if(scores[i].getScore() < lowest.getScore())\n {\n lowest = scores[i];\n }\n \n }\n return lowest;\n } \n }",
"protected abstract void calcScores();",
"public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}",
"public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}",
"@Override\r\n\tpublic Double getPropensity_smallpur_score() {\n\t\treturn super.getPropensity_smallpur_score();\r\n\t}",
"public int get_quality() {\n return (int)getUIntBEElement(offsetBits_quality(), 16);\n }",
"public int getScore() {\n return score;\n }",
"public int getScore() {\n return score;\n }",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore() {\n\t\treturn this.ScoreValue;\n\t}",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"public int getScore ()\r\n {\r\n\treturn score;\r\n }",
"public int getScore() {\n return this.score;\n }",
"@Test\r\n\tpublic void calculLostPointsByQualityAxisTest()\r\n\t\t\tthrows ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException {\r\n\t\tlistLostPoints.put(\"TestOfTeacher\", 0.0f);\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByQualityAxis(mapQuality, listScoreMetricStudent,\r\n\t\t\t\tlistScoreMetricTeacher, projectName, idModule), listLostPoints);\r\n\t}",
"public String getPoints();",
"public int getScore() {\n return score;\n }",
"Float getAutoScore();",
"public Fitness bestScore() {\r\n Map.Entry<Fitness, List<Element>> bestEntry\r\n = elementsByFitness.lastEntry();\r\n if (bestEntry == null) {\r\n return null;\r\n }\r\n Fitness result = bestEntry.getKey();\r\n\r\n return result;\r\n }",
"public double getPoints()\r\n {\r\n return points;\r\n }",
"public int getScore()\n {\n return score;\n }",
"public int getScore() {\r\n \treturn score;\r\n }",
"public void setQualityResults( Collection pQualityResults )\r\n {\r\n mQualityResults = pQualityResults;\r\n }",
"public OptionalDouble getBestScore()\n {\n if (scores.size() > 0)\n {\n return OptionalDouble.of(scores.lastKey());\n }\n else\n {\n return OptionalDouble.empty();\n }\n }",
"public int getBestScore() {\n\t\tInteger score = this.hand.countValue().lower(22);\n\t\tif(score!=null) {\n\t\t\treturn score;\n\t\t}\n\t\telse {\n\t\t\treturn this.hand.countValue().higher(21);\n\t\t}\n\t}",
"public int getScore() {\n int totalScore = 0;\n for (Frame current : frames) {\n totalScore += current.getScore();\n }\n return totalScore;\n }",
"private int[] sauvegarde_scores() {\r\n\t\tint n = moteur_joueur.getJoueurs().length;\r\n\t\tint[] scores_precedents = new int[n];\r\n\t\t\t\t\r\n\t\tfor(int i = 0 ; i < n ; i++) {\r\n\t\t\tscores_precedents[i] = (int)moteur_joueur.getJoueurs()[i].getScore();\r\n\t\t}\r\n\t\t\r\n\t\treturn scores_precedents;\r\n\t}",
"public int score() {\n return score;\n }",
"public Score getScore()\r\n { \r\n return theScore;\r\n }",
"public Short getScore() {\n return score;\n }",
"public Integer getPoints() {\r\n return points;\r\n }",
"public int getScore() {\r\n\t\treturn score;\r\n\t}"
] | [
"0.60177225",
"0.5961553",
"0.5915674",
"0.58049655",
"0.5762028",
"0.57319355",
"0.5719094",
"0.56886214",
"0.5675533",
"0.5675533",
"0.5672815",
"0.5634205",
"0.5616717",
"0.56094563",
"0.5561813",
"0.5560258",
"0.5537521",
"0.55336267",
"0.552479",
"0.552479",
"0.552479",
"0.54977435",
"0.54843533",
"0.548299",
"0.54717934",
"0.5429793",
"0.5428883",
"0.5411976",
"0.5397294",
"0.5368571",
"0.5357402",
"0.5357138",
"0.53488004",
"0.5342714",
"0.5337698",
"0.5331961",
"0.53168213",
"0.5316276",
"0.5306372",
"0.52660686",
"0.5262507",
"0.5262507",
"0.5260314",
"0.5239741",
"0.52354205",
"0.5230039",
"0.52247083",
"0.5222613",
"0.52188736",
"0.52164894",
"0.5199995",
"0.51844525",
"0.51815945",
"0.5180393",
"0.5178991",
"0.5173328",
"0.51559705",
"0.5151897",
"0.51485705",
"0.5148568",
"0.51479167",
"0.5142184",
"0.5121886",
"0.5106054",
"0.5104966",
"0.50864506",
"0.50864506",
"0.5072172",
"0.5056862",
"0.5052311",
"0.5052311",
"0.5049068",
"0.5049068",
"0.5049068",
"0.50487363",
"0.50461423",
"0.50461423",
"0.50461423",
"0.50461423",
"0.50358075",
"0.50313616",
"0.50302696",
"0.50214195",
"0.5019331",
"0.50181097",
"0.501363",
"0.5012257",
"0.5010736",
"0.50091505",
"0.50048184",
"0.5003706",
"0.5003524",
"0.5002144",
"0.4995555",
"0.4988697",
"0.49853882",
"0.49833554",
"0.49809203",
"0.49802625"
] | 0.7153146 | 0 |
Sets quality scores corresponding to each point. The larger the score value the better the quality of the matching. This implementation makes no action. Subclasses using quality scores must implement proper behaviour. | public void setQualityScores(double[] qualityScores) throws LockedException { } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setQuality(float quality);",
"public void setQualityResults( Collection pQualityResults )\r\n {\r\n mQualityResults = pQualityResults;\r\n }",
"protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }",
"public void setQuality(int quality) {\n this.quality = quality;\n }",
"public void setQuality(int quality) {\n this.quality = quality;\n }",
"public double[] getQualityScores() {\n return null;\n }",
"public double[] getQualityScores() {\n return null;\n }",
"public void setQuality(Integer quality) {\n this.quality = quality;\n }",
"public void setQuality(int value) {\n this.quality = value;\n }",
"public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }",
"void setBestScore(double bestScore);",
"void setScoreValue(int scoreValue);",
"public void setScore(int paScore) {\n this.score = paScore;\n }",
"public void setAllScore(String cCode, int attScore, int quiScore, int proScore,int miScore, int fiScore) {\n\t\t//CODE HERE\n\t\tfor (RegCourse course:registeredCourses){\n\t\t\t//System.out.println(course.getCourseCode().equals(cCode));\n\t\t\tif(course.getCourseCode().equals(cCode)){\n\t\t\t\t\n\t\t\t\t/*coure.setAllScore((attScore/coure.getFull_score_attendance())*coure.getAttendancePercent()/100,\n\t\t\t\t\t\t\t\t (quiScore/coure.getFull_score_quiz())*coure.getQuizPercent()/100,\n\t\t\t\t\t\t\t\t (proScore/coure.getFull_score_projects())*coure.getProjPercent()/100,\n\t\t\t\t\t\t\t\t (miScore/coure.getFull_score_midScore())*coure.getFull_score_midScore()/100,\n\t\t\t\t\t\t\t\t (fiScore/coure.getFull_score_finalScore())*coure.getFull_score_finalScore()/100);*/\n\t\t\t\t\n\t\t\t\tcourse.setAllScore(attScore, quiScore, proScore, miScore, fiScore);\n\t\t\t\tcourse.setAccumScore(this.findAccum(course));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"public void setScore(ArrayList<Race> raceResult) {\r\n\t\traceResult.get(0).setAthleteScore(5); // 1st winner get 5 points\r\n\t\traceResult.get(1).setAthleteScore(2); // 2nd winner get 2 points\r\n\t\traceResult.get(2).setAthleteScore(1); // 3rd winner get 1 points\r\n\t}",
"public void setScore(int score) { this.score = score; }",
"public void setScore(java.lang.Integer value);",
"public void setScore(int pointsToAdd) {\n\n\t\t//Add the additional points to the existing score\n\t\tthis.score = this.score + pointsToAdd;\n\t}",
"public void setScore(int v1, int v2, int v3, int v4) {\n mScore[0] = v1;\n mScore[1] = v2;\n mScore[2] = v3;\n mScore[3] = v4;\n }",
"public void setScores(BigDecimal scores) {\n this.scores = scores;\n }",
"public static ArrayList<ArrayList<ArrayList<Double>>> assignScoreToQueries() {\r\n\t\t\r\n\t\tArrayList<ArrayList<ArrayList<Double>>> allQueries = Queries.createQueries();\r\n\t\tArrayList<ArrayList<String>> dataset = ReadInDataset.finalDataset;\r\n\t\tint Counter = 0;\r\n\t\tDouble Score = 0.0;\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.####\");\r\n\t\tdf.setRoundingMode(RoundingMode.CEILING); // round up to 4 decimal places\r\n\t\t\r\n\t\t\r\n\t\t// initially assign to each query a score of 0\r\n\t\t\r\n\t\tfor (int i = 0; i < allQueries.size(); i++) {\r\n\t\t\tArrayList<Double> zero = new ArrayList<Double>();\r\n\t\t\tzero.add(0.0);\r\n\t\t\tallQueries.get(i).add(zero);}\r\n\t\t\r\n\t\t// go through each query and check how many entries of the dataset it matches\r\n\t\t// with each match increase the score\r\n\t\t\r\n\t\tfor (int i = 0; i < allQueries.size(); i++) { // for each query\r\n\t\t\tfor(int b=0; b < dataset.size(); b++) { // for each dataset\r\n\t\t\t\tCounter = 0; \r\n\t\t\t\tfor (int a=0; a < allQueries.get(i).size()-1; a++) { // for each query clause\r\n\t\t\t\t//check if the query criteria match the dataset and increase the Score accordingly\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //this counter ensures that all query requirements are met in order to increase the score\r\n\t\t\t\t\tif (a != allQueries.get(i).size() - 1) {\t\t\t\t\t\t // ensure that Score entry is not involved in Query Matching\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// take min and max from query along with an entry from the dataset, convert to a double of 4 decimal places\r\n\t\t\t\t\t\tdouble minPoint1 = allQueries.get(i).get(a).get(0);\r\n\t\t\t\t\t\tString minPoint2 = df.format(minPoint1);\r\n\t\t\t\t\t\tdouble minPoint = Double.parseDouble(minPoint2);\r\n\t\t\t\t\t\tdouble maxPoint1 = allQueries.get(i).get(a).get(1);\r\n\t\t\t\t\t\tString maxPoint2 = df.format(maxPoint1);\r\n\t\t\t\t\t\tdouble maxPoint = Double.parseDouble(maxPoint2);\r\n\t\t\t\t\t\tdouble dataPoint1 = Double.parseDouble(dataset.get(b).get(a+1));\r\n\t\t\t\t\t\tString dataPoint2 = df.format(dataPoint1);\r\n\t\t\t\t\t\tdouble dataPoint = Double.parseDouble(dataPoint2);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tif ( dataPoint<= maxPoint && dataPoint >= minPoint) { Counter++; \r\n\t\t\t\t\t//\tSystem.out.println(\"min:\" + minPoint+\" max: \"+maxPoint+\" data: \"+dataPoint+ \" of Query: \" + b+ \"| Query Match!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {//System.out.println(minPoint+\" \"+maxPoint+\" \"+dataPoint+ \" of \" + b);\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\tif (Counter==(Queries.getDimensions())/2) { // if counter equals the dimensions of the query then increase score\r\n\t\t\t\t\tScore = allQueries.get(i).get(allQueries.get(i).size()-1).get(0);\r\n\t\t\t\t\tallQueries.get(i).get(allQueries.get(i).size()-1).set(0, Score+1.00); \r\n\t\t\t\t\t}}\r\n\t\t\t\t \r\n\t\t\t\t}\r\n\t\t//\tSystem.out.println(\"Score = \" + allQueries.get(i).get(allQueries.get(i).size()-1).get(0));\r\n\t\t}\t\r\n\t\treturn allQueries;\r\n\t}",
"void setFitnessScore(double score){\n fitnessScore = score;\n }",
"public void setScore(Float score) {\n this.score = score;\n }",
"public void setScore(int score) {this.score = score;}",
"public void setScore(float value) {\n this.score = value;\n }",
"public void setScore(float score) {\n this.score = score;\n }",
"public void setScore(int score)\n {\n this.score = score;\n }",
"public void setNfiqScores(gov.gsa.hspd12.federated.enrollment.ArrayOfFingerprintScore param){\n localNfiqScoresTracker = true;\n \n this.localNfiqScores=param;\n \n\n }",
"public void score() {\n\t\tif (Integer.parseInt(px.getPosition()) != Integer.parseInt(getCurrentPositionX()))\n\t\t{\n\t\t\tpx.addObserver(Obsx);\n\t\t\tpx.setPosition(getCurrentPositionX());\n\t\t}\n\t\tif (Integer.parseInt(py.getPosition()) != Integer.parseInt(getCurrentPositionY()))\n\t\t{\n\t\t\tpy.addObserver(Obsy);\n\t\t\tpy.setPosition(getCurrentPositionY());\n\t\t}\n\t}",
"public void setScore(Integer score) {\r\n this.score = score;\r\n }",
"public void setScores(ArrayList<Integer> scores) { this.scores = scores; }",
"public void setScores(int[] s) {\n this.scores = s;\n }",
"public void setScore(Integer score) {\n this.score = score;\n }",
"public void setScore(String score) {\n this.score = score;\n setChanged();\n notifyObservers();\n }",
"public static void postScores() {\r\n\t\t//Copies the scores for four handed team based play.\r\n\t\tif (Main.isFourHandedTeams) {\r\n\t\t\tMain.team1Score = Main.teamOne.score;\r\n\t\t\tMain.team2Score = Main.teamTwo.score;\r\n\t\t//Copies the scores for non four handed team based play.\r\n\t\t} else {\r\n\t\t\tMain.player1Score = Main.playerOne.score;\r\n\t\t\tMain.player2Score = Main.playerTwo.score;\r\n\t\t\tMain.player3Score = Main.playerThree.score;\r\n\r\n\t\t\t//Copies the scores for four handed single player game.\r\n\t\t\tif (!Main.isThreeHanded) {\r\n\t\t\t\tMain.player4Score = Main.playerFour.score;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setScore(double score) {\r\n this.score = score;\r\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public void setScore(int score) {\r\n this.score = score;\r\n }",
"public Score(){\n\t\tscore = 0;\n\t\tincrement = 0; //how many points for eating a kibble. Changed to zero here because adjustScoreIncrement's extra points begin at 1 anyway\n\t}",
"public void updateScore()\n {\n nextPipe = pipes.get(score);\n if(CHARACTER_X > nextPipe.getPipeCapX() + 35)\n {\n score++;\n }\n if(score > highScore)\n {\n highScore = score;\n }\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void setScore(int score) {\n this.score = score;\n }",
"public void set_quality(int value) {\n setUIntBEElement(offsetBits_quality(), 16, value);\n }",
"public int score() {\n int sum = 0;\n for (Candidate c : chosen) {\n sum += c.score(compatibilityScoreSet);\n }\n return sum;\n }",
"public void resetScore(){\n Set<String> keys = CalcScore.keySet();\n for(String key: keys){\n CalcScore.replace(key,0.0);\n }\n\n\n\n }",
"public void setScore (int newScore)\n {\n this.score = newScore;\n }",
"public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}",
"public void setScore(int score){\n\t\tthis.score = score;\n\t}",
"public void setScore(int newScore){\n\t\tthis.score = newScore;\n\t}",
"public void updateScore(){\r\n if (this.isArtist || winners.contains(this)) {\r\n this.score += pointsGainedLastRound;\r\n }\r\n pointsGainedLastRound = 0;\r\n placeLastRound = 0;\r\n }",
"public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }",
"private void calculateStPointScore() {\n\t\tint total = 0;\n\t\tint maxAnswerSize = 0;\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\ttotal += oneQ.getFrequency() * oneQ.getGapCount();\n\t\t\tint tempSize = oneQ.getSupport() * oneQ.getGapCount();\n\t\t\tif (tempSize > maxAnswerSize)\n\t\t\t\tmaxAnswerSize = tempSize;\n\t\t}\n\t\ttotal += maxAnswerSize;\n\t\tthis.stPointScore = total;\n\t}",
"public void setPiazzaScore(double piazzaScore) {\r\n if (piazzaScore <= 1 && piazzaScore >= 0) {\r\n this.piazzaScore = piazzaScore;\r\n }\r\n }",
"public void evaluate() {\n for (Chromosome chromo : chromosomes) {\n double chromoGH = chromo.getTotalGH();\n if (chromo.isValid()) {\n this.validChromosomes++;\n if (chromoGH > this.getBestScore()) {\n this.bestScore = chromoGH;\n this.setBestChromo(chromo);\n }\n }\n //Log.debugMsg(chromo.getTotalGH().toString());\n// this.map.put(chromoGH, chromo);\n }\n }",
"void setScore(long score);",
"@Test\r\n\tpublic void calculLostPointsByQualityAxisTest()\r\n\t\t\tthrows ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException {\r\n\t\tlistLostPoints.put(\"TestOfTeacher\", 0.0f);\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByQualityAxis(mapQuality, listScoreMetricStudent,\r\n\t\t\t\tlistScoreMetricTeacher, projectName, idModule), listLostPoints);\r\n\t}",
"public void setScore(Score score) {\n scoreProperty.set(score.packed());\n }",
"public void setScore(Short score) {\n this.score = score;\n }",
"public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }",
"void addPointsToScore(int points) {\n score += points;\n }",
"protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}",
"private void setPlayerScore(Player player, int newScore) {\n\t\tplayer.score = Math.max(newScore, 0);\n\t\tfor (ScoreMarker scoreMarker : playerScoreMarkers) {\n\t\t\tif (scoreMarker.getOwner() == player) {\n\t\t\t\tscoreMarker.value = String.valueOf(player.score);\n\t\t\t}\n\t\t}\n\t}",
"public double getQuality() {\n return quality;\n }",
"public void setScore (java.lang.Integer score) {\r\n\t\tthis.score = score;\r\n\t}",
"public float getQuality();",
"public MatcherScores(SortedMap<Double, SortedSet<String>> scores)\n {\n this.scores = Objects.requireNonNull(scores);\n }",
"public void setScore(int score) {\n\t\tthis.score = score;\n\t}",
"public void setScorer(String name, int score)\r\n\t{\r\n\t\tif(scorers == null)\r\n\t\t{\r\n\t\t\tcreateArray();\r\n\t\t\twriteFile();\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 1; i < scorers.length; i += 2)\r\n\t\t\tif(Integer.parseInt(scorers[i]) < score)\r\n\t\t\t{\r\n\t\t\t\tfor(int j = scorers.length - 4; j >= i - 1; j -= 2)\r\n\t\t\t\t{\r\n\t\t\t\t\tscorers[j + 2] = scorers[j];\r\n\t\t\t\t\tscorers[j + 3] = scorers[j + 1];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tscorers[i - 1] = name;\r\n\t\t\t\tscorers[i] = String.valueOf(score);\r\n\t\t\t\twriteFile();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t}",
"public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}",
"public Collection getQualityResults()\r\n {\r\n return mQualityResults;\r\n }",
"public void setScore(Double score) {\n this.score = score;\n }",
"public void setQuality(int value)\n\t{\n\t\tconfigManager.setQuality(value);\n\t\tupdatePreviewSize();\n\t}",
"private void setScore(String score) {\r\n this.score = score;\r\n }",
"public void setResults(int touchedAmount, int bugsSpawned, int bugsSmashed, int highestFactor, int score){\n\t\tdouble smashPercentage = ((double)bugsSmashed / (double)bugsSpawned) * 100;\n\t\tdouble accuracyPercentage = ((double)bugsSmashed / (double)touchedAmount) * 100;\n\t\t\n\t\tbugsSmashedView.setText(\"Bugs smashed: \" + String.valueOf(bugsSmashed) + \"/\" + String.valueOf(bugsSpawned));\n\t\tbugsSmashedBar.setProgress(0);\n\t\tbugsSmashedBar.setProgress((int)smashPercentage);\n\t\t\n\t\tdouble accuracy = Math.round(accuracyPercentage*100.0)/100.0;\n\t\taccuracyView.setText(\"Accuracy: \" + String.valueOf(accuracy) + \"%\");\n\t\taccuracyBar.setProgress(0);\n\t\taccuracyBar.setProgress((int)accuracyPercentage);\n\t\t\n\t\tstreakView.setText(\"Highest streak: \" + String.valueOf(highestFactor));\n\t\tscoreView.setText(\"Stage score: \" + String.valueOf(score));\n\t}",
"public void setScore(int s) {\n if (s > getHighScore()) {\n setHighScore(s);\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy/MM/dd HH:mm:ss\");\n LocalDateTime now = LocalDateTime.now();\n String timeNow = dtf.format(now);\n setHighScoreTime(timeNow);\n }\n setStat(s, score);\n }",
"private void increaseQualityByOne(Item item) {\n item.quality = item.quality + 1;\n }",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tscoreToSeverity.put(0, Severity.Low);\n\t\tscoreToSeverity.put(medium, Severity.Medium);\n\t\tscoreToSeverity.put(high, Severity.High);\n\t\tscoreToSeverity.put(critical, Severity.Critical);\n\t}",
"public void set(int min, int max, double score){\r\n\t\tchart[min][max] = score;\r\n\t}",
"@Override\n\tfinal public void shake(\n\t\t\tCollection< PointMatch > matches,\n\t\t\tfloat scale,\n\t\t\tfloat[] center )\n\t{\n\t\t// TODO If you ever need it, please implement it...\n\t}",
"public Scores(int score) {\r\n this.score = score;\r\n }",
"public void setScore(int score) {\r\n\t\tif(score >=0) {\r\n\t\t\tthis.score = score;\r\n\t\t}\r\n\t\t\r\n\t}",
"public final void setPointsByPlayerId(final int playerId, final int points) {\n for (final Score score : this.scoreArray) {\n if (score.getPlayerId() == playerId) {\n score.setPoints(points);\n }\n }\n }",
"private void setDefaultScores() {\n\t\tif (readPreference(GlobalModel.BESTSCORE_EASY) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_EASY);\n\t\t}\n\t\t\n\t\tif (readPreference(GlobalModel.BESTSCORE_MEDIUM) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_MEDIUM);\n\t\t}\n\t\t\n\t\tif (readPreference(GlobalModel.BESTSCORE_HARD) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_HARD);\n\t\t}\n\t\t\n\t\tif (readPreference(GlobalModel.BESTSCORE_CUSTOM) == 0.0) {\n\t\t\tsavePreference(Double.MAX_VALUE, GlobalModel.BESTSCORE_CUSTOM);\n\t\t}\n\t}",
"public synchronized void setScore(Integer score) {\n this.score += score;\n }",
"public void setScore (java.lang.Float score) {\n\t\tthis.score = score;\n\t}",
"public void populate() {\n for (int y = 0; y < height(); y++) {\n for (int x = 0; x < width(); x++) {\n Point p = Point.adjustForOrigin(x, y, origin, GraphType.CODE);\n\n if (func.fx(p.x()) == p.y()) {\n matches.add(p);\n }\n }\n }\n }",
"private void getClosestSupportedQuality(Camera.Parameters parameters) {\n\n\t\t// Resolutions\n\t\tString supportedSizesStr = \"Supported resolutions: \";\n\t\tList<Size> supportedSizes = parameters.getSupportedPreviewSizes();\n\t\tfor (Iterator<Size> it = supportedSizes.iterator(); it.hasNext();) {\n\t\t\tSize size = it.next();\n\t\t\tsupportedSizesStr += size.width+\"x\"+size.height+(it.hasNext()?\", \":\"\");\n\t\t}\n\t\tLog.v(TAG,supportedSizesStr);\n\n\t\t// Frame rates\n\t\tString supportedFrameRatesStr = \"Supported frame rates: \";\n\t\tList<Integer> supportedFrameRates = parameters.getSupportedPreviewFrameRates();\n\t\tfor (Iterator<Integer> it = supportedFrameRates.iterator(); it.hasNext();) {\n\t\t\tsupportedFrameRatesStr += it.next()+\"fps\"+(it.hasNext()?\", \":\"\");\n\t\t}\n\t\t//Log.v(TAG,supportedFrameRatesStr);\n\n\t\tint minDist = Integer.MAX_VALUE, newFps = mQuality.framerate;\n\t\tif (!supportedFrameRates.contains(mQuality.framerate)) {\n\t\t\tfor (Iterator<Integer> it = supportedFrameRates.iterator(); it.hasNext();) {\n\t\t\t\tint fps = it.next();\n\t\t\t\tint dist = Math.abs(fps - mQuality.framerate);\n\t\t\t\tif (dist<minDist) {\n\t\t\t\t\tminDist = dist;\n\t\t\t\t\tnewFps = fps;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLog.v(TAG,\"Frame rate modified: \"+mQuality.framerate+\"->\"+newFps);\n\t\t\t//mQuality.framerate = newFps;\n\t\t}\n\n\t}",
"public void setTestScore(int testNumber, int score) {\n\t if(testNumber == 1)\n\t\t test1 = score;\n\t else if(testNumber == 2)\n\t\t test2 = score;\n\t else\n\t\t test3 = score;\n }",
"public void setScoreZero() {\n this.points = 10000;\n }",
"public int getQuality() {\n return quality;\n }",
"public int getQuality() {\n return quality;\n }",
"public int getQuality() {\n return quality;\n }",
"static int SetScore(int p){\n\t\tif (p==1) {\n\t\t\tp1Score=p1Score+4;\n\t\t\tlblp1Score.setText(Integer.toString(p1Score));\n\t\t\t\n\t\t\t//check whether the score reaches to destination score or not..........\n\t\t\t\n\t\t\tif(p1Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p1Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse if(p==2){\n\t\t\tp2Score=p2Score+4;\n\t\t\tlblp2Score.setText(Integer.toString(p2Score));\n\t\t\t\n\t\t\tif(p2Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p2Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse if(p==3){\n\t\t\tp3Score=p3Score+4;\n\t\t\tlblp3Score.setText(Integer.toString(p3Score));\n\t\t\t\n\t\t\tif(p3Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p3Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tp4Score=p4Score+4;\n\t\t\tlblp4Score.setText(Integer.toString(p4Score));\n\t\t\t\n\t\t\tif(p4Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p4Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"private void applyRules(Product p, int i) {\n /* Produktinfos */\n Properties.ProductTypes type = p.getType();\n int quality = p.getQuality();\n int bestBefore = p.getBestBefore();\n double price = p.getPrice();\n\n /* Qualitätsinfos */\n int minQuality = qualities.get(type).getMinQuality();\n int qualityChange = qualities.get(type).getQualityChange();\n int changeAfterDays = qualities.get(type).getChangeQualAfterDays();\n\n /* Ändere die Qualität nach einer bestimmten Anzahl an Tagen */\n if (i % changeAfterDays == 0\n && quality >= 1) {\n p.setQuality(quality + qualityChange);\n }\n\n /* Wenn die Qualität ein bestimmtes Niveau unterschreitet \n oder wenn das MHD erreicht ist, wird das Produkt entsorgt.\n Gilt nicht für Wein. */\n if (!type.equals(ProductTypes.WEIN)) {\n if ((quality < minQuality || bestBefore < 1)) {\n p.setDisposable(true);\n }\n\n // Tagespreis anpassen\n p.setPrice(price + (0.1 * quality));\n\n // täglich das Verfallsdatum um 1 Tag verringern\n p.setBestBefore(bestBefore - 1);\n }\n\n LOGGER.log(Level.INFO, p.toString());\n }",
"public void setQualities(ArrayList<RoomQuality> qualities) {\n\t\tthis.qualities = qualities;\n\t}",
"public void setScorePerPixel(final int scorePerPixel) {\n\tthis.scorePerPixel = scorePerPixel;\n }"
] | [
"0.60793316",
"0.59672844",
"0.5779435",
"0.5726066",
"0.5726066",
"0.56645787",
"0.56645787",
"0.5662654",
"0.5642483",
"0.56399965",
"0.5592576",
"0.55815274",
"0.55219394",
"0.54928255",
"0.5478443",
"0.54636073",
"0.54139435",
"0.54111934",
"0.5394999",
"0.5394638",
"0.5377878",
"0.5377047",
"0.53512144",
"0.5341796",
"0.53187877",
"0.5282313",
"0.52689624",
"0.5251328",
"0.5246974",
"0.5244109",
"0.5241221",
"0.5235986",
"0.5229948",
"0.52291924",
"0.52269715",
"0.5225878",
"0.5222361",
"0.5222361",
"0.52042156",
"0.52009565",
"0.5200771",
"0.5200771",
"0.5200771",
"0.5200771",
"0.5199966",
"0.5199213",
"0.51842785",
"0.51739746",
"0.5168175",
"0.51510197",
"0.5121602",
"0.511126",
"0.5107849",
"0.51053643",
"0.5104425",
"0.51011324",
"0.5099118",
"0.5097135",
"0.5081705",
"0.5075435",
"0.50749326",
"0.5054186",
"0.5052307",
"0.50486845",
"0.5034301",
"0.50236905",
"0.50198954",
"0.50140655",
"0.5010327",
"0.500914",
"0.5006938",
"0.5006626",
"0.5004432",
"0.500249",
"0.5001859",
"0.49927175",
"0.4986523",
"0.49856564",
"0.49828666",
"0.49778637",
"0.49680883",
"0.49670407",
"0.49664065",
"0.49612978",
"0.4959635",
"0.4957151",
"0.49554205",
"0.49539635",
"0.49457306",
"0.49377012",
"0.49346563",
"0.49288908",
"0.49272949",
"0.49272949",
"0.49272949",
"0.49250087",
"0.49177346",
"0.49133113",
"0.49072886"
] | 0.6279426 | 0 |
Creates a quadric robust estimator based on 3D point samples and using provided robust estimator method. | public static QuadricRobustEstimator create(RobustEstimatorMethod method) {
switch (method) {
case LMedS:
return new LMedSQuadricRobustEstimator();
case MSAC:
return new MSACQuadricRobustEstimator();
case PROSAC:
return new PROSACQuadricRobustEstimator();
case PROMedS:
return new PROMedSQuadricRobustEstimator();
case RANSAC:
default:
return new RANSACQuadricRobustEstimator();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static QuadricRobustEstimator create(List<Point3D> points, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points, \n qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points, \n qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores) {\n return create(points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(List<Point3D> points) {\n return create(points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator(qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores) {\n return create(listener, points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points) {\n return create(listener, points, DEFAULT_ROBUST_METHOD);\n }",
"@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public Point3D triangulate() throws LockedException, NotReadyException,\n RobustEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n final LMedSRobustEstimator<Point3D> innerEstimator =\n new LMedSRobustEstimator<>(\n new LMedSRobustEstimatorListener<Point3D>() {\n\n // point to be reused when computing residuals\n private final Point2D mTestPoint = Point2D.create(\n CoordinatesType.HOMOGENEOUS_COORDINATES);\n\n // non-robust 3D point triangulator\n private final SinglePoint3DTriangulator mTriangulator =\n SinglePoint3DTriangulator.create(mUseHomogeneousSolution ?\n Point3DTriangulatorType.LMSE_HOMOGENEOUS_TRIANGULATOR :\n Point3DTriangulatorType.LMSE_INHOMOGENEOUS_TRIANGULATOR);\n\n // subset of 2D points\n private final List<Point2D> mSubsetPoints = new ArrayList<>();\n\n // subst of cameras\n private final List<PinholeCamera> mSubsetCameras =\n new ArrayList<>();\n\n @Override\n public int getTotalSamples() {\n return mPoints2D.size();\n }\n\n @Override\n public int getSubsetSize() {\n return MIN_REQUIRED_VIEWS;\n }\n\n @Override\n public void estimatePreliminarSolutions(final int[] samplesIndices,\n final List<Point3D> solutions) {\n mSubsetPoints.clear();\n mSubsetPoints.add(mPoints2D.get(samplesIndices[0]));\n mSubsetPoints.add(mPoints2D.get(samplesIndices[1]));\n\n mSubsetCameras.clear();\n mSubsetCameras.add(mCameras.get(samplesIndices[0]));\n mSubsetCameras.add(mCameras.get(samplesIndices[1]));\n\n try {\n mTriangulator.setPointsAndCameras(mSubsetPoints,\n mSubsetCameras);\n final Point3D triangulated = mTriangulator.triangulate();\n solutions.add(triangulated);\n } catch (final Exception e) {\n // if anything fails, no solution is added\n }\n }\n\n @Override\n public double computeResidual(final Point3D currentEstimation, final int i) {\n final Point2D point2D = mPoints2D.get(i);\n final PinholeCamera camera = mCameras.get(i);\n\n // project estimated point with camera\n camera.project(currentEstimation, mTestPoint);\n\n // return distance of projected point respect to the original one\n // as a residual\n return mTestPoint.distanceTo(point2D);\n }\n\n @Override\n public boolean isReady() {\n return LMedSRobustSinglePoint3DTriangulator.this.isReady();\n }\n\n @Override\n public void onEstimateStart(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateStart(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateEnd(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateEnd(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateNextIteration(\n final RobustEstimator<Point3D> estimator, final int iteration) {\n if (mListener != null) {\n mListener.onTriangulateNextIteration(\n LMedSRobustSinglePoint3DTriangulator.this,\n iteration);\n }\n }\n\n @Override\n public void onEstimateProgressChange(\n final RobustEstimator<Point3D> estimator, final float progress) {\n if (mListener != null) {\n mListener.onTriangulateProgressChange(\n LMedSRobustSinglePoint3DTriangulator.this,\n progress);\n }\n }\n });\n\n try {\n mLocked = true;\n innerEstimator.setConfidence(mConfidence);\n innerEstimator.setMaxIterations(mMaxIterations);\n innerEstimator.setProgressDelta(mProgressDelta);\n innerEstimator.setStopThreshold(mStopThreshold);\n return innerEstimator.estimate();\n } catch (final com.irurueta.numerical.LockedException e) {\n throw new LockedException(e);\n } catch (final com.irurueta.numerical.NotReadyException e) {\n throw new NotReadyException(e);\n } finally {\n mLocked = false;\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static QuadricRobustEstimator create() {\n return create(DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public abstract Quadric estimate() throws LockedException, \n NotReadyException, RobustEstimatorException;",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints); \n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener) {\n return create(listener, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed); \n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores) {\n return create(listener, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator();\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator();\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n qualityScores, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n qualityScores, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n }\n }",
"public abstract RobustEstimatorMethod getMethod();",
"public abstract RobustEstimatorMethod getMethod();",
"public abstract RobustEstimatorMethod getMethod();",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, qualityScores, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, qualityScores, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator();\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator();\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator();\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator();\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(); \n }\n }",
"public abstract Point_3 evaluate(double u, double v);",
"public QuadriCubicSpline(double[] x1, double[] x2, double[] x3, double[] x4, double[][][][] y) {\n\t\tthis.nPoints = x1.length;\n\t\tthis.mPoints = x2.length;\n\t\tthis.lPoints = x3.length;\n\t\tthis.kPoints = x4.length;\n\t\tif (this.nPoints != y.length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x1 and y-row are of different length \" + this.nPoints + \" \" + y.length);\n\t\tif (this.mPoints != y[0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x2 and y-column are of different length \" + this.mPoints + \" \" + y[0].length);\n\t\tif (this.lPoints != y[0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x3 and y-column are of different length \" + this.mPoints + \" \" + y[0][0].length);\n\t\tif (this.kPoints != y[0][0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x4 and y-column are of different length \" + this.kPoints + \" \" + y[0][0][0].length);\n\t\tif ((this.nPoints < 3) || (this.mPoints < 3) || (this.lPoints < 3) || (this.kPoints < 3))\n\t\t\tthrow new IllegalArgumentException(\"The tabulated 4D array must have a minimum size of 3 X 3 X 3 X 3\");\n\n\t\tthis.csm = new CubicSpline(this.nPoints);\n\t\tthis.tcsn = TriCubicSpline.oneDarray(this.nPoints, this.mPoints, this.lPoints, this.kPoints);\n\t\tthis.x1 = new double[this.nPoints];\n\t\tthis.x2 = new double[this.mPoints];\n\t\tthis.x3 = new double[this.lPoints];\n\t\tthis.x4 = new double[this.kPoints];\n\n\t\tthis.y = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tthis.d2ydx2 = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tthis.x1[i] = x1[i];\n\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\tthis.x2[j] = x2[j];\n\t\tfor (int j = 0; j < this.lPoints; j++)\n\t\t\tthis.x3[j] = x3[j];\n\t\tfor (int j = 0; j < this.kPoints; j++)\n\t\t\tthis.x4[j] = x4[j];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\t\tfor (int k = 0; k < this.lPoints; k++)\n\t\t\t\t\tfor (int l = 0; l < this.kPoints; l++)\n\t\t\t\t\t\tthis.y[i][j][k][l] = y[i][j][k][l];\n\t}",
"@Test\n\tpublic void testSetActiveRegion3DRadius() throws GeoTessException, IOException\n\t{\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\n\n\t\t//\t\t// define a 3D polygon with small circle and 3 layers.\n\t\t//\t\tdouble[] polygonCenter = VectorGeo.getVectorDegrees(30., 90.);\n\t\t//\n\t\t//\t\tdouble polygonRadius = toRadians(30.);\n\t\t//\n\t\t//\t\tdouble radiusTop = 6371 - 55;\n\t\t//\t\tdouble radiusBottom = 4000.;\n\t\t//\n\t\t//\t\tHorizon top = new HorizonRadius(radiusTop, 4);\n\t\t//\t\tHorizon bottom = new HorizonRadius(radiusBottom, 2);\n\t\t//\n\t\t//\t\tPolygon polygon = new Polygon3D(polygonCenter, polygonRadius,\n\t\t//\t\t\t\t100, bottom, top);\n\n\t\tPolygon3D polygon = new Polygon3D(new File(\"src/test/resources/permanent_files/polygon_small_circle_radii.ascii\"));\n\t\tdouble[] polygonCenter = polygon.getReferencePoint();\n\t\tdouble polygonRadius = VectorUnit.angle(polygonCenter, polygon.getPoint(0));\n\n\t\tdouble radiusTop = polygon.getTop().getValue();\n\t\tdouble radiusBottom = polygon.getBottom().getValue();\n\n\t\tint topLayer = polygon.getTop().getLayerIndex();\n\t\tint bottomLayer = polygon.getBottom().getLayerIndex();\n\n\t\t// set the active region to 3D polygon\n\t\tsmall_model.setActiveRegion(polygon);\n\t\tassertEquals(144, small_model.getPointMap().size());\n\n\t\t// check every point in the point map to ensure that it is within the polygon\n\t\tfor (int i=0; i<small_model.getPointMap().size(); ++i)\n\t\t{\n\t\t\tdouble[] point = small_model.getPointMap().getPointUnitVector(i);\n\t\t\tassertTrue(VectorUnit.angle(polygonCenter, point) < polygonRadius \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) >= bottomLayer \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) <= topLayer\n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) >= radiusBottom \n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) <= radiusTop\n\t\t\t\t\t);\n\t\t}\n\n\t\t// check every node in the small_model. if the node has point index < 0 then\n\t\t// ensure that it is outside the polygon. if the node has point index \n\t\t// >= 0, then it must be within the polygon.\n\t\tboolean passed = true;\n\t\tfor (int vertex=0; vertex<small_model.getGrid().getVertices().length; ++vertex)\n\t\t{\n\t\t\tdouble distance = VectorUnit.angle(polygonCenter, small_model.getGrid().getVertex(vertex));\n\t\t\tProfile[] pp = small_model.getProfiles(vertex);\n\t\t\tfor (int layer=0; layer<small_model.getNLayers(); ++layer)\n\t\t\t{\n\t\t\t\tProfile p = pp[layer];\n\t\t\t\tfor (int n=0; n<p.getNData(); ++n)\n\t\t\t\t{\n\t\t\t\t\tboolean inpolygon = distance < polygonRadius\n\t\t\t\t\t\t\t&& layer >= bottomLayer\n\t\t\t\t\t\t\t&& layer <= topLayer\n\t\t\t\t\t\t\t&& p.getRadius(n) > radiusBottom\n\t\t\t\t\t\t\t&& p.getRadius(n) < radiusTop\n\t\t\t\t\t\t\t;\n\n\t\t\t\t\t\t\tboolean positive = p.getPointIndex(n) >= 0;\n\n\t\t\t\t\t\t\tif (inpolygon != positive) passed = false;\n\n\t\t\t\t\t\t\tif (inpolygon != positive)\n\t\t\t\t\t\t\t\tSystem.out.printf(\"testSetActiveRegion3DRadii ptIndex=%d dist=%1.3f layer=%d radius=%1.3f%n\",\n\t\t\t\t\t\t\t\t\t\tp.getPointIndex(n),\n\t\t\t\t\t\t\t\t\t\tMath.toDegrees(distance), \n\t\t\t\t\t\t\t\t\t\tlayer,\n\t\t\t\t\t\t\t\t\t\tp.getRadius(n));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tassertTrue(passed);\n\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\t\t\n\n\t}",
"public static void R_approxtest(double x[], double y[], int nxy,\n int method, double f)\n {\n int i;\n\n switch(method) {\n case 1: /* linear */\n break;\n case 2: /* constant */\n if(!DoubleVector.isFinite(f) || f < 0 || f > 1)\n throw new EvalException(\"approx(): invalid f value\");\n break;\n default:\n throw new EvalException(\"approx(): invalid interpolation method\");\n }\n /* check interpolation method */\n for(i = 0; i < nxy; i++)\n if(DoubleVector.isNA(x[i]) || DoubleVector.isNA(y[i]))\n throw new EvalException(\"approx(): attempted to interpolate NA values\");\n }",
"public double getValue( Coordinate[] controlPoints, Coordinate interpolated );",
"@Test\r\n public void testPolynomialApproximator() {\r\n List<Point> data = createLinearDataset();\r\n test(PolynomialApacheMathApproximator.INSTANCE_3, data, null);\r\n }",
"public NurbsSurface(int segments, int nr_of_points) {\n always_evaluate = false;\n nr_of_segments = segments;\n points_per_segment = nr_of_points;\n surface_type = 2;\n u = new double[100];\n v = new double[100];\n k = 3;\n int i, j;\n\n step = 0.2;\n evaluated_points = new NurbsPoint[(int) ((double) nr_of_segments / step)][(int) ((double) points_per_segment / step)];\n\n for (i = 0; i < (int) ((double) nr_of_segments / step); i++) {\n for (j = 0; j < (int) ((double) points_per_segment / step); j++) {\n evaluated_points[i][j] = new NurbsPoint(0, 0, 0);\n }\n }\n\n u[0] = 0;\n u[1] = 0;\n u[2] = 0;\n u[3] = 0;\n v[0] = 0;\n v[1] = 0;\n v[2] = 0;\n v[3] = 0;\n\n for (i = 4; i < segments - 4; i++) {\n u[i] = i - 3;\n }\n\n for (i = 4; i < nr_of_points - 4; i++) {\n v[i] = i - 3;\n }\n\n u[segments - 4] = segments - 7;\n u[segments - 3] = segments - 7;\n u[segments - 2] = segments - 7;\n u[segments - 1] = segments - 7;\n\n v[nr_of_points - 4] = nr_of_points - 7;\n v[nr_of_points - 3] = nr_of_points - 7;\n v[nr_of_points - 2] = nr_of_points - 7;\n v[nr_of_points - 1] = nr_of_points - 7;\n\n points = new NurbsPoint[nr_of_segments][points_per_segment];\n }",
"public static void R_approx(double x[], double y[], int nxy, double xout[], int nout,\n int method, double yleft, double yright, double f)\n {\n int i;\n appr_meth M = new appr_meth(); // {0.0, 0.0, 0.0, 0.0, 0}; /* -Wall */\n\n /* check interpolation method */\n\n switch(method) {\n case 1: /* linear */\n break;\n case 2: /* constant */\n if(!DoubleVector.isFinite(f) || f < 0 || f > 1)\n throw new EvalException(\"approx(): invalid f value\");\n M.f2 = f;\n M.f1 = 1 - f;\n break;\n default:\n throw new EvalException(\"approx(): invalid interpolation method\");\n }\n\n for(i = 0 ; i < nxy ; i++)\n if(DoubleVector.isNA(x[i]) || DoubleVector.isNA(y[i]))\n throw new EvalException(\"approx(): attempted to interpolate NA values\");\n\n M.kind = method;\n M.ylow = yleft;\n M.yhigh = yright;\n\n for(i = 0 ; i < nout; i++)\n if(!DoubleVector.isNA(xout[i])) \n xout[i] = approx1(xout[i], x, y, nxy, M);\n }",
"private double threeDimensionalSolveQ1(RealMatrix u, RealMatrix v, double q3) {\r\n double u11 = u.getEntry(0, 0);\r\n double u12 = u.getEntry(0, 1);\r\n double u13 = u.getEntry(0, 2);\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v1 = v.getEntry(0, 0);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (((u12*v2)/(u11*u22)) - (v1/u11)) + ((((u12*u23)/(u11*u22)) - (u13/u11))*q3);\r\n }",
"@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"@Test\n public void shouldEvaluateWorkProperlyCase3() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.5, 1.5})) ;\n\n assertEquals((1.5 - 0.75) * (1.5 - 0.25) + (0.75 - 0.5) * (1.5 - 0.5) + (0.5 - 0.25) * (1.5 - 0.75), result, 0.0001) ;\n }",
"@Test\r\n public void testSplineApproximator() {\r\n List<Point> data = createConvergingDataset();\r\n List<ExpectedApproximation> exp = new ArrayList<ExpectedApproximation>();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(1000, 17, 1050));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(1062, 40, 1066));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n\r\n data = createLinearDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(100, 3, 200));\r\n exp.add(new ExpectedApproximation(300, 11, 400));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 100));\r\n exp.add(new ExpectedApproximation(400, 17, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n \r\n data = createIncreasingDecreasingDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(700, 23, 900));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(0, 35, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n }",
"public void ignoreCreateArrayForVec3With6Position() {\r\n\r\n SXRMesh sxrMesh = TestDefaultSXRViewManager.mSXRContext.getAssetLoader().loadMesh(UtilResource.androidResource(TestDefaultSXRViewManager.mSXRContext,R.raw.cylinder3));\r\n float[] vec3 = {-0.5f, 0.5f, 0.0f, -0.5f, 0.5f, 0.0f};\r\n\r\n try {\r\n sxrMesh.setVec3Vector(\"ratio_r\", vec3);\r\n assertNotNull(sxrMesh.getVec4Vector(\"ratio_r\"));\r\n fail();\r\n } catch (InvalidParameterException e) {\r\n assertEquals(e.getMessage(), \"setVec3Vector method support only three position array\");\r\n }\r\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores) {\n return create(inputPoints, outputPoints, qualityScores, \n DEFAULT_ROBUST_METHOD);\n }",
"public abstract Vector4fc normalize3();",
"protected double residual(Quadric q, Point3D point) {\n q.normalize();\n try {\n if (mTestQ == null) {\n mTestQ = q.asMatrix();\n } else {\n q.asMatrix(mTestQ);\n }\n\n if (mTestPoint == null) {\n mTestPoint = new Matrix(\n Point3D.POINT3D_HOMOGENEOUS_COORDINATES_LENGTH, \n 1);\n }\n point.normalize();\n mTestPoint.setElementAt(0, 0, point.getHomX());\n mTestPoint.setElementAt(1, 0, point.getHomY());\n mTestPoint.setElementAt(2, 0, point.getHomZ());\n mTestPoint.setElementAt(3, 0, point.getHomW());\n Matrix locusMatrix = mTestPoint.transposeAndReturnNew();\n locusMatrix.multiply(mTestQ);\n locusMatrix.multiply(mTestPoint); \n return Math.abs(locusMatrix.getElementAt(0, 0));\n } catch (AlgebraException e) {\n return Double.MAX_VALUE;\n } \n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);",
"private double[] quadstepY(DoubleToDouble f, double x0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] y = {(a + c) / 2, (c + b) / 2};\n double[] v = f.evalDouble(x0, y, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = v[0];\n double fe = v[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepY(f, x0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepY(f, x0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }",
"public void c(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)\r\n/* 77: */ {\r\n/* 78: 89 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2 + paramDouble3 * paramDouble3);\r\n/* 79: */ \r\n/* 80: 91 */ paramDouble1 /= f1;\r\n/* 81: 92 */ paramDouble2 /= f1;\r\n/* 82: 93 */ paramDouble3 /= f1;\r\n/* 83: */ \r\n/* 84: 95 */ paramDouble1 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 85: 96 */ paramDouble2 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 86: 97 */ paramDouble3 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 87: */ \r\n/* 88: 99 */ paramDouble1 *= paramFloat1;\r\n/* 89:100 */ paramDouble2 *= paramFloat1;\r\n/* 90:101 */ paramDouble3 *= paramFloat1;\r\n/* 91: */ \r\n/* 92:103 */ this.v = paramDouble1;\r\n/* 93:104 */ this.w = paramDouble2;\r\n/* 94:105 */ this.x = paramDouble3;\r\n/* 95: */ \r\n/* 96:107 */ float f2 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 97: */ \r\n/* 98:109 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 99:110 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f2) * 180.0D / 3.141592741012573D));\r\n/* 100:111 */ this.i = 0;\r\n/* 101: */ }",
"public void determineCoefficients(int splineIndex, double[] positionIn, double v0, double vf, double a0, double af)\n {\n if (!initialized.getBooleanValue())\n throw new RuntimeException(\"QuinticSplineInterpolator is not initialized\");\n\n if (splineIndex > numberOfSplines - 1 || splineIndex < 0)\n throw new RuntimeException(\"SplineIndex is out of bounds\");\n\n if (positionIn.length < numberOfPoints.getValue())\n throw new RuntimeException(\"Length of positionIn is less than the number of points\");\n\n MatrixTools.setMatrixColumnFromArray(a, 0, positionIn, 0, a.getNumRows());\n\n MatrixTools.diff(positionIn, yd);\n\n if (numberOfPoints.getValue() > 2)\n {\n s.unsafe_set(0, 0, positionIn[1] / h.unsafe_get(0, 0) - positionIn[0] / h.unsafe_get(0, 0) - v0);\n for (int i = 0; i < numberOfPoints.getValue() - 2; i++)\n {\n s.unsafe_set(i + 4, 0, yd.unsafe_get(i + 1, 0) / h.unsafe_get(i + 1, 0) - yd.unsafe_get(i, 0) / h.unsafe_get(i, 0));\n }\n }\n else\n {\n s.unsafe_set(0, 0, positionIn[1] / h.unsafe_get(0, 0) - positionIn[0] / h.unsafe_get(0, 0) - v0);\n }\n\n s.unsafe_set(1, 0, a0);\n s.unsafe_set(2,\n 0,\n vf - positionIn[numberOfPoints.getValue() - 1] / h.unsafe_get(numberOfPoints.getValue() - 2, 0)\n + positionIn[numberOfPoints.getValue() - 2] / h.unsafe_get(numberOfPoints.getValue() - 2, 0));\n s.unsafe_set(3, 0, af);\n\n /*\n * TODO: Rewrite so no new objects are created\n */\n\n solver.solve(s, sol);\n\n CommonOps_DDRM.mult(Cblock, sol, c);\n CommonOps_DDRM.mult(D, sol, d);\n\n MatrixTools.setMatrixBlock(e, 0, 0, sol, 2, 0, numberOfPoints.getValue() - 1, 1, 1.0);\n\n MatrixTools.diff(sol, 2, numberOfPoints.getValue(), f);\n CommonOps_DDRM.scale(1.0 / 5.0, f);\n CommonOps_DDRM.elementDiv(f, h);\n\n for (int i = 0; i < numberOfPoints.getValue() - 1; i++)\n {\n double hi = h.unsafe_get(i, 0);\n double hi2 = MathTools.square(hi);\n double hi3 = hi2 * hi;\n double hi4 = hi3 * hi;\n\n b.unsafe_set(i,\n 0,\n yd.unsafe_get(i, 0) / hi - c.unsafe_get(i, 0) * hi - d.unsafe_get(i, 0) * hi2 - e.unsafe_get(i, 0) * hi3 - f.unsafe_get(i, 0) * hi4);\n }\n\n splines[splineIndex].seta(a);\n splines[splineIndex].setb(b);\n splines[splineIndex].setc(c);\n splines[splineIndex].setd(d);\n splines[splineIndex].sete(e);\n splines[splineIndex].setf(f);\n\n splines[splineIndex].setCoefficientsSet(true);\n\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener);\n }\n }",
"@org.junit.Test\n public void getUniformParamsTestCurve3() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(15, 20), new Vector(15, 30));\n List<Double> params = curve.getUniformParams(6);\n assertEquals(6, curve.getUniformParams(6).size());\n\n // check that each point is further down the line of the curve\n // each x and y should be larger than the previous\n Vector prev = curve.getPoint(params.get(0));\n for (int i = 1; i < params.size(); i++) {\n Vector point = curve.getPoint(params.get(i));\n assertTrue(point.x > prev.x);\n assertTrue(point.y > prev.y);\n }\n\n // check that the first and the last sampling points are equal to starting and ending controlling points\n assertEquals(new Vector(10, 20), curve.getPoint(params.get(0)));\n assertEquals(new Vector(15, 30), curve.getPoint(params.get(params.size() - 1)));\n }",
"protected abstract void solvePreliminarSolutions(\n final int[] samplesIndices,\n final List<Solution<P>> solutions);",
"private boolean isValidQuiz3(double quiz3)\n\t{\n\t\treturn quiz3 >= 0 && quiz3 <= 10;\n\t}",
"private double[] quadstepX(DoubleToDouble f, double y0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] x = {(a + c) / 2, (c + b) / 2};\n double[] y = f.evalDouble(x, y0, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = y[0];\n double fe = y[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepX(f, y0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepX(f, y0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }",
"private Point2D[] CalculateBezierCurve(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, int samples_interval){ \n \n \n \n double control_point_1_x; \n double control_point_1_y; \n double control_point_2_x; \n double control_point_2_y; \n \n \n //Calculate the control points for the cubic bezier line \n control_point_1_x =controlPoint(x0,x1,x2); \n control_point_1_y =controlPoint(y0,y1,y2); \n \n control_point_2_x = controlPoint(x3,x2,x1); \n control_point_2_y = controlPoint(y3,y2,y1); \n \n //System.out.println(\"control1: \" + control_point_1_x + \" -- \" + control_point_1_y); \n //System.out.println(\"control2: \" + control_point_2_x + \" -- \" + control_point_2_y); \n \n \n double cx = 3.0 * (control_point_1_x - x1); \n double bx = 3.0 * (control_point_2_x - control_point_1_x) - cx; \n double ax = x2 - x1 - cx - bx; \n \n double cy = 3.0 * (control_point_1_y - y1); \n double by = 3.0 * (control_point_2_y - control_point_1_y) - cy; \n double ay = y2 - y1 - cy - by; \n \n //Let's calculate all the ponits that follow the Bezier curve. \n Point2D[] points = new Point2D[samples_interval]; \n for(int j = 0; j < samples_interval; j++){ \n double t = j*(1.0/samples_interval); \n //System.out.println(\"j: \" + j + \" t: \" + t + \" samples_int: \" + (samples_interval)); \n double x = (ax * t * t * t) + (bx * t * t) + (cx * t) + x1; \n double y = (ay * t * t * t) + (by * t *t) + (cy * t) + y1; \n //System.out.println(\"x: \" + x + \" y: \" + y + \" t: \" + t); \n points[j] = new Point2D.Double(x,y); \n } \n return points; \n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(qualityScores, weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public void dormqr_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);",
"public static MetricTransformation2DRobustEstimator create(\n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n }\n }",
"protected EquationStandardEnquiry getEquationStandardEnquiry(String identifier, String fixedFormat) throws Exception\n\t{\n\t\treturn new EquationStandardEnquiry(identifier, fixedFormat, session);\n\t}",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n DEFAULT_ROBUST_METHOD);\n }",
"RegressionCurveType createRegressionCurveType();",
"public float[] normalizeQuat(float[] quat) {\n float x = quat[0];\n float y = quat[1];\n float z = quat[2];\n float w = quat[3];\n float len = x * x + y * y + z * z + w * w; // length of the quarternion without sqrt\n if (len != 0.f && !(len == 1f)) {\n len = (float) Math.sqrt(len);\n w /= len;\n x /= len;\n y /= len;\n z /= len;\n }\n float[] newquat = {x, y, z, w};\n return newquat;\n }",
"@Test\n public void shouldEvaluateWorkProperlyCase2() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.25*0.75 + 0.25*0.5 + 0.25*0.25, result, 0.0001) ;\n }",
"@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public RadialDistortion estimate() throws LockedException,\n NotReadyException, RadialDistortionEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n try {\n mLocked = true;\n if (mListener != null) {\n mListener.onEstimateStart(this);\n }\n\n final int nPoints = mDistortedPoints.size();\n\n int numRows;\n if (isLMSESolutionAllowed()) {\n // initialize new matrix having two rows per point\n numRows = 2 * nPoints;\n } else {\n // when LMSE is not allowed, restrict matrix to two rows (minimum\n // value required for a solution)\n numRows = 2 * getMinNumberOfMatchedPoints();\n }\n\n final Matrix aMatrix = new Matrix(numRows, mNumKParams);\n final double[] b = new double[numRows];\n\n final Iterator<Point2D> iteratorDistorted = mDistortedPoints.iterator();\n final Iterator<Point2D> iteratorUndistorted =\n mUndistortedPoints.iterator();\n\n Point2D distorted;\n Point2D undistorted;\n int counter = 0;\n\n // undistorted normalized homogeneous coordinates\n double uNormHomX;\n double uNormHomY;\n double uNormHomW;\n // undistorted normalized inhomogeneous coordinates\n double uNormInhomX;\n double uNormInhomY;\n // undistorted denormalized homogeneous coordinates\n double uDenormHomX;\n double uDenormHomY;\n double uDenormHomW;\n // undistorted denormalized inhomogeneous coordinates\n double uDenormInhomX;\n double uDenormInhomY;\n // distorted inhomogeneous coordinates\n double dInhomX;\n double dInhomY;\n double rowNormX;\n double rowNormY;\n\n // radial distortion center\n double centerX = 0.0;\n double centerY = 0.0;\n if (mDistortionCenter != null) {\n centerX = mDistortionCenter.getInhomX();\n centerY = mDistortionCenter.getInhomY();\n }\n\n // radial distance of undistorted normalized (calibration independent)\n // coordinates\n double r2;\n double a;\n double value;\n\n while (iteratorDistorted.hasNext() && iteratorUndistorted.hasNext()) {\n distorted = iteratorDistorted.next();\n undistorted = iteratorUndistorted.next();\n\n undistorted.normalize();\n\n uDenormHomX = undistorted.getHomX();\n uDenormHomY = undistorted.getHomY();\n uDenormHomW = undistorted.getHomW();\n\n uDenormInhomX = uDenormHomX / uDenormHomW;\n uDenormInhomY = uDenormHomY / uDenormHomW;\n\n // multiply intrinsic parameters by undistorted point\n uNormHomX = mKinv.getElementAt(0, 0) * uDenormHomX +\n mKinv.getElementAt(0, 1) * uDenormHomY +\n mKinv.getElementAt(0, 2) * uDenormHomW;\n uNormHomY = mKinv.getElementAt(1, 0) * uDenormHomX +\n mKinv.getElementAt(1, 1) * uDenormHomY +\n mKinv.getElementAt(1, 2) * uDenormHomW;\n uNormHomW = mKinv.getElementAt(2, 0) * uDenormHomX +\n mKinv.getElementAt(2, 1) * uDenormHomY +\n mKinv.getElementAt(2, 2) * uDenormHomW;\n\n uNormInhomX = uNormHomX / uNormHomW;\n uNormInhomY = uNormHomY / uNormHomW;\n\n r2 = uNormInhomX * uNormInhomX + uNormInhomY * uNormInhomY;\n\n dInhomX = distorted.getInhomX();\n dInhomY = distorted.getInhomY();\n\n a = 1.0;\n rowNormX = rowNormY = 0.0;\n for (int i = 0; i < mNumKParams; i++) {\n a *= r2;\n\n // x and y coordinates generate linear dependent equations, for\n // that reason we need more than one point\n\n // x coordinates\n value = (uDenormInhomX - centerX) * a;\n aMatrix.setElementAt(2 * counter, i, value);\n\n rowNormX += Math.pow(value, 2.0);\n\n // y coordinates\n value = (uDenormInhomY - centerY) * a;\n aMatrix.setElementAt(2 * counter + 1, i, value);\n\n rowNormY += Math.pow(value, 2.0);\n }\n\n // x coordinates\n value = dInhomX - uDenormInhomX;\n b[2 * counter] = value;\n\n rowNormX += Math.pow(value, 2.0);\n\n // y coordinates\n value = dInhomY - uDenormInhomY;\n b[2 * counter + 1] = value;\n\n rowNormY += Math.pow(value, 2.0);\n\n // normalize rows to increase accuracy\n for (int i = 0; i < mNumKParams; i++) {\n aMatrix.setElementAt(2 * counter, i,\n aMatrix.getElementAt(2 * counter, i) / rowNormX);\n aMatrix.setElementAt(2 * counter + 1, i,\n aMatrix.getElementAt(2 * counter + 1, i) / rowNormY);\n }\n\n b[2 * counter] /= rowNormX;\n b[2 * counter + 1] /= rowNormY;\n\n counter++;\n\n if (!isLMSESolutionAllowed() && (counter >= getMinNumberOfMatchedPoints())) {\n break;\n }\n }\n\n final double[] params = Utils.solve(aMatrix, b);\n\n final RadialDistortion distortion =\n new RadialDistortion(params, mDistortionCenter,\n mHorizontalFocalLength, mVerticalFocalLength, mSkew);\n\n if (mListener != null) {\n mListener.onEstimateEnd(this);\n }\n\n return distortion;\n } catch (final AlgebraException | RadialDistortionException e) {\n throw new RadialDistortionEstimatorException(e);\n } finally {\n mLocked = false;\n }\n }",
"@Test\n public void shouldEvaluateWorkProperlyCase1() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.25*0.75 + 0.25*0.5, result, 0.0001) ;\n }",
"public static double[] getQuartileData(double data[]) {\r\n\t\t\t\r\n\t\t\tint datLength = data.length;\r\n\t \tdouble[] quartileData = {1, 2, 3};\r\n\t \t\r\n\t \tdouble Q1 = 0, Q3 = 0, IQR = 0;\r\n\t \t\t\r\n\t \t\r\n\t if((datLength % 2) == 0 && !( ((datLength / 2) % 2) == 0)){//good\r\n\t \t\t \r\n\t \tQ1 = data[Math.round(datLength / 4)];\r\n\r\n\t \tQ3 = data[Math.round(datLength * (3/4))];\r\n\t \t \r\n\t \tIQR = Q3 - Q1;\r\n\t \t\r\n\t }\r\n\t else if((datLength % 2) == 0 && ((datLength / 2) % 2) == 0){//good\r\n\t \t\r\n\t \tQ1 = ((data[datLength / 4] + data[(datLength / 4) - 1]) / 2);\r\n\r\n\t \tQ3 = ((data[datLength * (3/4)] + data[(datLength * (3/4)) - 1]) / 2);\r\n\t \t \r\n\t \tIQR = Q3 - Q1;\r\n\t \r\n\t }\r\n\t else if(!((datLength % 2) == 0) && (((datLength - 1) / 2) % 2) == 0){//good\r\n\t \t \r\n\t \tQ1 = (data[(datLength - 1) / 4] + data[(datLength - 1) / 4] - 1) / 2;\r\n\t \r\n\t \tQ3 = (data[datLength * (3/4)] + data[datLength * (3/4) + 1]) / 2;\r\n\t \t \t \r\n\t \tIQR = Q3 - Q1;\r\n\t \t\r\n\t }\r\n\t else if(!((datLength % 2) == 0) && !((((datLength - 1) / 2) % 2) == 0)){//good\r\n\t \t \r\n\t \tQ1 = data[Math.round((datLength - 1) / 4)];\r\n\t \t \r\n\t \tQ3 = data[Math.round((datLength) * (3/4))];\r\n\t \t \t \r\n\t \tIQR = Q3 - Q1;\r\n\t \r\n\t }\r\n\t \r\n\t quartileData[0] = Q1;\r\n\t quartileData[1] = Q3;\r\n\t quartileData[2] = IQR;\r\n\t \t\r\n\t return quartileData;\r\n\t }",
"@Test\n public void shouldEvaluateWorkProperlyCase4() throws FileNotFoundException {\n Front storeFront = new ArrayFront(\"/pareto_fronts/ZDT1.pf\") ;\n\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n for (int i = 0 ; i < storeFront.getNumberOfPoints(); i++) {\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, storeFront.getPoint(i).getValue(0));\n solution.setObjective(1, storeFront.getPoint(i).getValue(1));\n frontToEvaluate.add(solution) ;\n }\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.6661, result, 0.0001) ;\n }",
"public abstract Vector3D getPointForSurfaceCoordinates(double u, double v);",
"public org.drip.state.estimator.PredictorResponseWeightConstraint fundingPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = forwardLabel();\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.fundingPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"public static Spliterator.OfDouble spliterator(double[] paramArrayOfdouble, int paramInt1, int paramInt2, int paramInt3) {\n/* 371 */ checkFromToBounds(((double[])Objects.requireNonNull((T)paramArrayOfdouble)).length, paramInt1, paramInt2);\n/* 372 */ return new DoubleArraySpliterator(paramArrayOfdouble, paramInt1, paramInt2, paramInt3);\n/* */ }",
"@Override\n protected Double[] getCorners(){\n return new Double[]{\n //leftmost point\n getXPos(), getYPos(),\n //rightmost point\n getXPos() + getWidth(), getYPos(),\n //middle point\n getXPos() + getWidth() / 2, getYPos() + getHeight() * getThirdTriangleYPoint(pointUp)\n };\n }",
"public static BoundingPolytope computePolytope(double[] points)\n\t{\n\t\tBoundingPolytope frustum = new BoundingPolytope();\n\t\t\n\t\tVector3d a1 = new Vector3d(points[0],points[1],points[2]);\n\t\tVector3d a2 = new Vector3d(points[4],points[5],points[6]);\n\t\tVector3d b1 = new Vector3d(points[8],points[9],points[10]);\n\t\tVector3d b2 = new Vector3d(points[12],points[13],points[14]);\n\t\tVector3d c1 = new Vector3d(points[16],points[17],points[18]);\n\t\tVector3d c2 = new Vector3d(points[20],points[21],points[22]);\n\t\tVector3d d1 = new Vector3d(points[24],points[25],points[26]);\n\t\tVector3d d2 = new Vector3d(points[28],points[29],points[30]);\n\t\t\n\t\t\n\t\tVector4d[] planes = new Vector4d[] {\n\t\tcomputePlane(a1,b1,a2),\n\t\tcomputePlane(d1,c1,d2),\n\t\tcomputePlane(b1,d1,b2),\n\t\tcomputePlane(c1,a1,c2),\n\t\tcomputePlane(c1,d1,a1),\n\t\tcomputePlane(d2,c2,b2),\n\t\t};\n\t\t\n\t\tfrustum.setPlanes(planes);\n\t\t\n\t\treturn frustum;\n\t}",
"public double[] extrapolateBasic(ShingleBuilder builder, int horizon) {\n return extrapolateBasic(builder.getShingle(), horizon, builder.getInputPointSize(), builder.isCyclic(),\n builder.getShingleIndex());\n }",
"private double threeDimensionalSolveQ2(RealMatrix u, RealMatrix v, double q3) {\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (-v2/u22) - ((u23/u22)*q3);\r\n }",
"@Test\n public void testUUpperTriangular() {\n FieldMatrix<Dfp> matrix = new Array2DRowFieldMatrix<>(Dfp25.getField(), testData);\n FieldMatrix<Dfp> u = new FieldLUDecomposition<>(matrix).getU();\n for (int i = 0; i < u.getRowDimension(); i++) {\n for (int j = 0; j < i; j++) {\n Assert.assertEquals(Dfp25.ZERO, u.getEntry(i, j));\n }\n }\n }",
"public Point3d sampleHemisphere();",
"public static void R_approxfun(double x[], double y[], int nxy, double xout[], int nout,\n int method, double yleft, double yright, double f)\n {\n int i;\n appr_meth M = new appr_meth();\n \n M.f2 = f;\n M.f1 = 1 - f;\n M.kind = method;\n M.ylow = yleft;\n M.yhigh = yright;\n for(i = 0; i < nout; i++)\n if(!DoubleVector.isNA(xout[i])) \n xout[i] = approx1(xout[i], x, y, nxy, M);\n }",
"public ExtrapolatedSaturationPointEvaluator(int[] anchorpoints,\n\t\t\tISamplingAlgorithmFactory<IInstance, ? extends ASamplingAlgorithm<IInstance>> samplingAlgorithmFactory,\n\t\t\tIDataset<IInstance> train, double trainSplitForAnchorpointsMeasurement,\n\t\t\tLearningCurveExtrapolationMethod extrapolationMethod, long seed, IDataset<IInstance> test) {\n\t\tsuper();\n\t\tthis.anchorpoints = anchorpoints;\n\t\tthis.samplingAlgorithmFactory = samplingAlgorithmFactory;\n\t\tthis.train = train;\n\t\tthis.trainSplitForAnchorpointsMeasurement = trainSplitForAnchorpointsMeasurement;\n\t\tthis.extrapolationMethod = extrapolationMethod;\n\t\tthis.seed = seed;\n\t\tthis.epsilon = DEFAULT_EPSILON;\n\t\tthis.test = test;\n\t}",
"double CubicInterpolate (double y0,double y1,\n double y2,double y3,\n double mu)\n {\n double a0,a1,a2,a3,mu2;\n\n mu2 = mu*mu;\n\n //a0 = y3 - y2 - y0 + y1;\n //a1 = y0 - y1 - a0;\n //a2 = y2 - y0;\n //a3 = y1;\n\n // Paul Breeuwsma proposes the following coefficients for a\n // smoother interpolated curve, which uses the slope between the\n // previous point and the next as the derivative at the current\n // point. This results in what are generally referred to as\n // Catmull-Rom splines.\n a0 = -0.5*y0 + 1.5*y1 - 1.5*y2 + 0.5*y3;\n a1 = y0 - 2.5*y1 + 2*y2 - 0.5*y3;\n a2 = -0.5*y0 + 0.5*y2;\n a3 = y1;\n\n return(a0*mu*mu2+a1*mu2+a2*mu+a3);\n }",
"public interface IVRPAlgorithm {\n VRPSolution solve(VRPInstance vrpInstance) throws Exception;\n}",
"public abstract double[] evaluateAt(double u, double v);",
"@Test\n public void testConstructor() {\n RANSACRadialDistortionRobustEstimator estimator =\n new RANSACRadialDistortionRobustEstimator();\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertNull(estimator.getDistortedPoints());\n assertNull(estimator.getUndistortedPoints());\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertFalse(estimator.arePointsAvailable());\n assertFalse(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // test constructor with listener\n estimator = new RANSACRadialDistortionRobustEstimator(this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertNull(estimator.getDistortedPoints());\n assertNull(estimator.getUndistortedPoints());\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertFalse(estimator.arePointsAvailable());\n assertFalse(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // test constructor with points\n final List<Point2D> distortedPoints = new ArrayList<>();\n final List<Point2D> undistortedPoints = new ArrayList<>();\n for (int i = 0; i < RadialDistortionRobustEstimator.MIN_NUMBER_OF_POINTS; i++) {\n distortedPoints.add(Point2D.create());\n undistortedPoints.add(Point2D.create());\n }\n\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n final List<Point2D> emptyPoints = new ArrayList<>();\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points and listener\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points and center\n final Point2D center = Point2D.create();\n\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, center);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertSame(estimator.getDistortionCenter(), center);\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n center.getInhomX(), 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n center.getInhomY(), 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points, center and listener\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, center, this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertSame(estimator.getDistortionCenter(), center);\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n center.getInhomX(), 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n center.getInhomY(), 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n }",
"public abstract void constructHull();",
"public org.drip.state.estimator.PredictorResponseWeightConstraint forwardPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.FloaterLabel floaterLabel = floaterLabel();\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = null != floaterLabel && floaterLabel instanceof\n\t\t\torg.drip.state.identifier.ForwardLabel ? (org.drip.state.identifier.ForwardLabel) floaterLabel :\n\t\t\t\tnull;\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.forwardPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n }\n }",
"public static float[] trilaterate(float[] p1, float r1, float[] p2, float r2, float[] p3, float r3) {\r\n float[] pos = new float[2];\r\n pos[0] = calcX(r1, r2, p2[0]);\r\n pos[1] = calcY(r1, r3, p3[0], p3[1], pos[0]);\r\n return pos;\r\n }",
"public org.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double> value (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp)\n\t{\n\t\tif (null == valParams || null == csqs) return null;\n\n\t\torg.drip.state.discount.MergedDiscountForwardCurve dcFunding = csqs.fundingState (fundingLabel());\n\n\t\tif (null == dcFunding) return null;\n\n\t\tlong lStart = System.nanoTime();\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tdouble dblAccrued01 = 0.;\n\t\tdouble dblTotalCoupon = 0.;\n\t\tdouble dblCumulativeCouponDCF = 0.;\n\t\tdouble dblCumulativeCouponAmount = 0.;\n\t\tdouble dblAccrualCoupon = java.lang.Double.NaN;\n\t\tdouble dblUnadjustedDirtyPV = 0.;\n\t\tdouble dblUnadjustedDirtyDV01 = 0.;\n\t\tdouble dblCompoundingAdjustedDirtyPV = 0.;\n\t\tdouble dblCompoundingAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCashPayDF = java.lang.Double.NaN;\n\t\tint iResetDate = java.lang.Integer.MIN_VALUE;\n\t\tdouble dblFXAdjustedValueNotional = java.lang.Double.NaN;\n\t\tdouble dblCreditForwardConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCreditForwardConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCreditFundingConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCreditFundingConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCreditFXConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCreditFXConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCumulativeConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCumulativeConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblForwardFundingConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblForwardFundingConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblForwardFXConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblForwardFXConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblFundingFXConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblFundingFXConvexityAdjustedDirtyDV01 = 0.;\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tdouble dblPeriodFX = java.lang.Double.NaN;\n\t\t\tdouble dblPeriodNotional = java.lang.Double.NaN;\n\t\t\tdouble dblUnadjustedDirtyPeriodDV01 = java.lang.Double.NaN;\n\n\t\t\tint iPeriodPayDate = period.payDate();\n\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\ttry {\n\t\t\t\tdblPeriodNotional = period.notional (iPeriodEndDate) * period.couponFactor (iPeriodEndDate);\n\n\t\t\t\tdblPeriodFX = period.fx (csqs);\n\t\t\t} catch (java.lang.Exception e) {\n\t\t\t\te.printStackTrace();\n\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif (iPeriodPayDate < iValueDate) {\n\t\t\t\torg.drip.analytics.output.CompositePeriodCouponMetrics cpcm = period.couponMetrics\n\t\t\t\t\t(iPeriodEndDate, csqs);\n\n\t\t\t\tif (null == cpcm) return null;\n\n\t\t\t\tdouble dblPeriodDCF = cpcm.dcf();\n\n\t\t\t\tdblCumulativeCouponDCF += dblPeriodDCF;\n\n\t\t\t\tdblCumulativeCouponAmount += dblPeriodNotional * dblPeriodFX * cpcm.rate() * dblPeriodDCF;\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\torg.drip.analytics.output.CompositePeriodCouponMetrics cpcm = period.couponMetrics (iValueDate,\n\t\t\t\tcsqs);\n\n\t\t\tif (null == cpcm) return null;\n\n\t\t\tdouble dblPeriodDCF = cpcm.dcf();\n\n\t\t\tdouble dblPeriodFullRate = cpcm.rate();\n\n\t\t\torg.drip.analytics.output.CompositePeriodAccrualMetrics cpam = period.accrualMetrics (iValueDate,\n\t\t\t\tcsqs);\n\n\t\t\ttry {\n\t\t\t\tif (null != cpam) {\n\t\t\t\t\tdblAccrualCoupon = cpam.rate();\n\n\t\t\t\t\tiResetDate = cpam.resetDate();\n\n\t\t\t\t\tdouble dblPeriodAccrualDCF = cpam.dcf();\n\n\t\t\t\t\tdblCumulativeCouponDCF += dblPeriodAccrualDCF;\n\t\t\t\t\tdblAccrued01 = 0.0001 * dblPeriodAccrualDCF * dblPeriodNotional * dblPeriodFX;\n\n\t\t\t\t\tdblCumulativeCouponAmount += dblPeriodNotional * dblPeriodFX * dblAccrualCoupon *\n\t\t\t\t\t\tdblPeriodAccrualDCF;\n\t\t\t\t}\n\n\t\t\t\tdblUnadjustedDirtyPeriodDV01 = 0.0001 * dblPeriodDCF * dblPeriodNotional * dblPeriodFX *\n\t\t\t\t\tperiod.survival (csqs) * period.df (csqs);\n\t\t\t} catch (java.lang.Exception e) {\n\t\t\t\te.printStackTrace();\n\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tdouble dblCompoundingAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 * cpcm.compounding();\n\n\t\t\tdouble dblCreditForwardConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.creditForward();\n\n\t\t\tdouble dblCreditFundingConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.creditFunding();\n\n\t\t\tdouble dblCreditFXConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.creditFX();\n\n\t\t\tdouble dblCumulativeConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.cumulative();\n\n\t\t\tdouble dblForwardFundingConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.forwardFunding();\n\n\t\t\tdouble dblForwardFXConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.forwardFX();\n\n\t\t\tdouble dblFundingFXConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.fundingFX();\n\n\t\t\tdblTotalCoupon += dblPeriodFullRate;\n\t\t\tdblUnadjustedDirtyDV01 += dblUnadjustedDirtyPeriodDV01;\n\t\t\tdblUnadjustedDirtyPV += dblUnadjustedDirtyPeriodDV01 * 10000. * dblPeriodFullRate;\n\t\t\tdblCompoundingAdjustedDirtyDV01 += dblCompoundingAdjustedDirtyPeriodDV01;\n\t\t\tdblCompoundingAdjustedDirtyPV += dblCompoundingAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblCreditForwardConvexityAdjustedDirtyDV01 += dblCreditForwardConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCreditForwardConvexityAdjustedDirtyPV += dblCreditForwardConvexityAdjustedDirtyPeriodDV01 *\n\t\t\t\t10000. * dblPeriodFullRate;\n\t\t\tdblCreditFundingConvexityAdjustedDirtyDV01 += dblCreditFundingConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCreditFundingConvexityAdjustedDirtyPV += dblCreditFundingConvexityAdjustedDirtyPeriodDV01 *\n\t\t\t\t10000. * dblPeriodFullRate;\n\t\t\tdblCreditFXConvexityAdjustedDirtyDV01 += dblCreditFXConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCreditFXConvexityAdjustedDirtyPV += dblCreditFXConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblCumulativeConvexityAdjustedDirtyDV01 += dblCumulativeConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCumulativeConvexityAdjustedDirtyPV += dblCumulativeConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblForwardFundingConvexityAdjustedDirtyDV01 += dblForwardFundingConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblForwardFundingConvexityAdjustedDirtyPV += dblForwardFundingConvexityAdjustedDirtyPeriodDV01 *\n\t\t\t\t10000. * dblPeriodFullRate;\n\t\t\tdblForwardFXConvexityAdjustedDirtyDV01 += dblForwardFXConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblForwardFXConvexityAdjustedDirtyPV += dblForwardFXConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblFundingFXConvexityAdjustedDirtyDV01 += dblFundingFXConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblFundingFXConvexityAdjustedDirtyPV += dblFundingFXConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t}\n\n\t\ttry {\n\t\t\tdblCashPayDF = dcFunding.df (iValueDate);\n\n\t\t\tdblFXAdjustedValueNotional = fxAdjustedNotional (iValueDate, csqs);\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\tdblUnadjustedDirtyPV /= dblCashPayDF;\n\t\tdblUnadjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCompoundingAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCompoundingAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCreditForwardConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCreditForwardConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCreditFundingConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCreditFundingConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCreditFXConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCreditFXConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCumulativeConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCumulativeConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblForwardFundingConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblForwardFundingConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblForwardFXConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblForwardFXConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblFundingFXConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblFundingFXConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdouble dblAccrued = 0. == dblAccrued01 ? 0. : dblAccrued01 * 10000. * dblAccrualCoupon;\n\t\tdouble dblUnadjustedCleanPV = dblUnadjustedDirtyPV - dblAccrued;\n\t\tdouble dblUnadjustedCleanDV01 = dblUnadjustedDirtyDV01 - dblAccrued01;\n\t\tdouble dblUnadjustedFairPremium = 0.0001 * dblUnadjustedCleanPV / dblUnadjustedCleanDV01;\n\t\tdouble dblCompoundingAdjustedCleanPV = dblCompoundingAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblCompoundingAdjustedCleanDV01 = dblCompoundingAdjustedDirtyDV01 - dblAccrued01;\n\t\tdouble dblCompoundingAdjustedFairPremium = 0.0001 * dblCompoundingAdjustedCleanPV /\n\t\t\tdblCompoundingAdjustedCleanDV01;\n\t\tdouble dblCreditForwardConvexityAdjustedCleanPV = dblCreditForwardConvexityAdjustedDirtyPV -\n\t\t\tdblAccrued;\n\t\tdouble dblCreditForwardConvexityAdjustedCleanDV01 = dblCreditForwardConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblCreditForwardConvexityAdjustedFairPremium = 0.0001 *\n\t\t\tdblCreditForwardConvexityAdjustedCleanPV / dblCreditForwardConvexityAdjustedCleanDV01;\n\t\tdouble dblCreditFundingConvexityAdjustedCleanPV = dblCreditFundingConvexityAdjustedDirtyPV -\n\t\t\tdblAccrued;\n\t\tdouble dblCreditFundingConvexityAdjustedCleanDV01 = dblCreditFundingConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblCreditFundingConvexityAdjustedFairPremium = 0.0001 *\n\t\t\tdblCreditFundingConvexityAdjustedCleanPV / dblCreditFundingConvexityAdjustedCleanDV01;\n\t\tdouble dblCreditFXConvexityAdjustedCleanPV = dblCreditFXConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblCreditFXConvexityAdjustedCleanDV01 = dblCreditFXConvexityAdjustedDirtyDV01 - dblAccrued01;\n\t\tdouble dblCreditFXConvexityAdjustedFairPremium = 0.0001 * dblCreditFXConvexityAdjustedCleanPV /\n\t\t\tdblCreditFXConvexityAdjustedCleanDV01;\n\t\tdouble dblCumulativeConvexityAdjustedCleanPV = dblCumulativeConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblCumulativeConvexityAdjustedCleanDV01 = dblCumulativeConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblCumulativeConvexityAdjustedFairPremium = 0.0001 * dblCumulativeConvexityAdjustedCleanPV /\n\t\t\tdblCumulativeConvexityAdjustedCleanDV01;\n\t\tdouble dblForwardFundingConvexityAdjustedCleanPV = dblForwardFundingConvexityAdjustedDirtyPV -\n\t\t\tdblAccrued;\n\t\tdouble dblForwardFundingConvexityAdjustedCleanDV01 = dblForwardFundingConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblForwardFundingConvexityAdjustedFairPremium = 0.0001 *\n\t\t\tdblForwardFundingConvexityAdjustedCleanPV / dblForwardFundingConvexityAdjustedCleanDV01;\n\t\tdouble dblForwardFXConvexityAdjustedCleanPV = dblForwardFXConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblForwardFXConvexityAdjustedCleanDV01 = dblForwardFXConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblForwardFXConvexityAdjustedFairPremium = 0.0001 * dblForwardFXConvexityAdjustedCleanPV /\n\t\t\tdblForwardFXConvexityAdjustedCleanDV01;\n\t\tdouble dblFundingFXConvexityAdjustedCleanPV = dblFundingFXConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblFundingFXConvexityAdjustedCleanDV01 = dblFundingFXConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblFundingFXConvexityAdjustedFairPremium = 0.0001 * dblFundingFXConvexityAdjustedCleanPV /\n\t\t\tdblFundingFXConvexityAdjustedCleanDV01;\n\n\t\torg.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double> mapResult = new\n\t\t\torg.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double>();\n\n\t\tmapResult.put (\"AccrualCoupon\", dblAccrualCoupon);\n\n\t\tmapResult.put (\"Accrued\", dblAccrued);\n\n\t\tmapResult.put (\"Accrued01\", dblAccrued01);\n\n\t\tmapResult.put (\"CleanDV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CleanPV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedCleanDV01\", dblCompoundingAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CompoundingAdjustedCleanPV\", dblCompoundingAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyPV\", dblCompoundingAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyDV01\", dblCompoundingAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyPV\", dblCompoundingAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedFairPremium\", dblCompoundingAdjustedFairPremium);\n\n\t\tmapResult.put (\"CompoundingAdjustedParRate\", dblCompoundingAdjustedFairPremium);\n\n\t\tmapResult.put (\"CompoundingAdjustedPV\", dblCompoundingAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedRate\", dblCompoundingAdjustedFairPremium);\n\n\t\tmapResult.put (\"CompoundingAdjustedUpfront\", dblCompoundingAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustmentFactor\", dblCompoundingAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CompoundingAdjustmentPremium\", dblCompoundingAdjustedCleanPV - dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustmentPremiumUpfront\", (dblCompoundingAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedCleanDV01\",\n\t\t\tdblCreditForwardConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedCleanPV\", dblCreditForwardConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDirtyDV01\",\n\t\t\tdblCreditForwardConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDirtyPV\", dblCreditForwardConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDV01\", dblCreditForwardConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedFairPremium\",\n\t\t\tdblCreditForwardConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedParRate\",\n\t\t\tdblCreditForwardConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedPV\", dblCreditForwardConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedRate\", dblCreditForwardConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedUpfront\", dblCreditForwardConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustmentFactor\", dblCreditForwardConvexityAdjustedDirtyDV01\n\t\t\t/ dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustmentPremium\", dblCreditForwardConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustmentPremiumUpfront\",\n\t\t\t(dblCreditForwardConvexityAdjustedCleanPV - dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedCleanDV01\",\n\t\t\tdblCreditFundingConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedCleanPV\", dblCreditFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDirtyDV01\",\n\t\t\tdblCreditFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDirtyPV\", dblCreditFundingConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDV01\", dblCreditFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedFairPremium\",\n\t\t\tdblCreditFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedParRate\",\n\t\t\tdblCreditFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedPV\", dblCreditFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedRate\", dblCreditFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedUpfront\", dblCreditFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustmentFactor\", dblCreditFundingConvexityAdjustedDirtyDV01\n\t\t\t/ dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustmentPremium\", dblCreditFundingConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustmentPremiumUpfront\",\n\t\t\t(dblCreditFundingConvexityAdjustedCleanPV - dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedCleanDV01\", dblCreditFXConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedCleanPV\", dblCreditFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDirtyDV01\", dblCreditFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDirtyPV\", dblCreditFXConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDV01\", dblCreditFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedFairPremium\", dblCreditFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedParRate\", dblCreditFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedPV\", dblCreditFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedRate\", dblCreditFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedUpfront\", dblCreditFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustmentFactor\", dblCreditFXConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustmentPremium\", dblCreditFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustmentPremiumUpfront\", (dblCreditFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedCleanDV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedCleanPV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDirtyDV01\", dblCumulativeConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDirtyPV\", dblCumulativeConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDV01\", dblCumulativeConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedFairPremium\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedParRate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedPV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedRate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedUpfront\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustmentFactor\", dblCumulativeConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustmentPremium\", dblCumulativeConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustmentPremiumUpfront\", (dblCumulativeConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CumulativeCouponAmount\", dblCumulativeCouponAmount);\n\n\t\tmapResult.put (\"CumulativeCouponDCF\", dblCumulativeCouponDCF);\n\n\t\tmapResult.put (\"CV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"DirtyDV01\", dblCumulativeConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"DirtyPV\", dblCumulativeConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"DV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"FairPremium\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"Fixing01\", dblAccrued01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedCleanDV01\",\n\t\t\tdblForwardFundingConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedCleanPV\", dblForwardFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDirtyDV01\",\n\t\t\tdblForwardFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDirtyPV\", dblForwardFundingConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDV01\", dblForwardFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedFairPremium\",\n\t\t\tdblForwardFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedParRate\",\n\t\t\tdblForwardFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedPV\", dblForwardFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedRate\", dblForwardFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedUpfront\", dblForwardFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustmentFactor\", dblForwardFundingConvexityAdjustedDirtyDV01\n\t\t\t/ dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustmentPremium\", dblForwardFundingConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustmentPremiumUpfront\",\n\t\t\t(dblForwardFundingConvexityAdjustedCleanPV - dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedCleanDV01\", dblForwardFXConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedCleanPV\", dblForwardFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDirtyDV01\", dblForwardFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDirtyPV\", dblForwardFXConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDV01\", dblForwardFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedFairPremium\", dblForwardFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedParRate\", dblForwardFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedPV\", dblForwardFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedRate\", dblForwardFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedUpfront\", dblForwardFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustmentFactor\", dblForwardFXConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustmentPremium\", dblForwardFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustmentPremiumUpfront\", (dblForwardFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedCleanDV01\", dblFundingFXConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedCleanPV\", dblFundingFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDirtyDV01\", dblFundingFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDirtyPV\", dblFundingFXConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDV01\", dblFundingFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedFairPremium\", dblFundingFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedParRate\", dblFundingFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedPV\", dblFundingFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedRate\", dblFundingFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedUpfront\", dblFundingFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustmentFactor\", dblFundingFXConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustmentPremium\", dblFundingFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustmentPremiumUpfront\", (dblFundingFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"ParRate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"PV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"Rate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ResetDate\", (double) iResetDate);\n\n\t\tmapResult.put (\"ResetRate\", dblAccrualCoupon - basis());\n\n\t\tmapResult.put (\"TotalCoupon\", dblTotalCoupon);\n\n\t\tmapResult.put (\"UnadjustedCleanDV01\", dblUnadjustedCleanDV01);\n\n\t\tmapResult.put (\"UnadjustedCleanPV\", dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"UnadjustedDirtyDV01\", dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"UnadjustedDirtyPV\", dblUnadjustedDirtyPV);\n\n\t\tmapResult.put (\"UnadjustedFairPremium\", dblUnadjustedFairPremium);\n\n\t\tmapResult.put (\"UnadjustedParRate\", dblUnadjustedFairPremium);\n\n\t\tmapResult.put (\"UnadjustedPV\", dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"UnadjustedRate\", dblUnadjustedFairPremium);\n\n\t\tmapResult.put (\"UnadjustedUpfront\", dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"Upfront\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tdouble dblCompoundingAdjustedCleanPrice = 100. * (1. + (dblCompoundingAdjustedCleanPV /\n\t\t\tdblFXAdjustedValueNotional));\n\t\tdouble dblCreditForwardConvexityAdjustedCleanPrice = 100. * (1. +\n\t\t\t(dblCreditForwardConvexityAdjustedCleanPV / dblFXAdjustedValueNotional));\n\t\tdouble dblCreditFundingConvexityAdjustedCleanPrice = 100. * (1. +\n\t\t\t(dblCreditFundingConvexityAdjustedCleanPV / dblFXAdjustedValueNotional));\n\t\tdouble dblCreditFXConvexityAdjustedCleanPrice = 100. * (1. + (dblCreditFXConvexityAdjustedCleanPV\n\t\t\t/ dblFXAdjustedValueNotional));\n\t\tdouble dblCumulativeConvexityAdjustedCleanPrice = 100. * (1. + (dblCumulativeConvexityAdjustedCleanPV\n\t\t\t/ dblFXAdjustedValueNotional));\n\t\tdouble dblForwardFundingConvexityAdjustedCleanPrice = 100. * (1. +\n\t\t\t(dblForwardFundingConvexityAdjustedCleanPV / dblFXAdjustedValueNotional));\n\t\tdouble dblForwardFXConvexityAdjustedCleanPrice = 100. * (1. + (dblForwardFXConvexityAdjustedCleanPV /\n\t\t\tdblFXAdjustedValueNotional));\n\t\tdouble dblFundingFXConvexityAdjustedCleanPrice = 100. * (1. + (dblFundingFXConvexityAdjustedCleanPV /\n\t\t\tdblFXAdjustedValueNotional));\n\t\tdouble dblUnadjustedCleanPrice = 100. * (1. + (dblUnadjustedCleanPV / dblFXAdjustedValueNotional));\n\n\t\tmapResult.put (\"CleanPrice\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CompoundingAdjustedCleanPrice\", dblCompoundingAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyPrice\", 100. * (1. + (dblCompoundingAdjustedDirtyPV /\n\t\t\tdblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CompoundingAdjustedPrice\", dblCompoundingAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedCleanPrice\",\n\t\t\tdblCreditForwardConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCreditForwardConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedPrice\", dblCreditForwardConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedCleanPrice\",\n\t\t\tdblCreditFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCreditFundingConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedPrice\", dblCreditFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedCleanPrice\", dblCreditFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCreditFXConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedPrice\", dblCreditFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedCleanPrice\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCumulativeConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedPrice\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"DirtyPrice\", 100. * (1. + (dblCumulativeConvexityAdjustedDirtyPV /\n\t\t\tdblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedCleanPrice\",\n\t\t\tdblForwardFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblForwardFundingConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedPrice\", dblForwardFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedCleanPrice\", dblForwardFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblForwardFXConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedPrice\", dblForwardFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedCleanPrice\", dblFundingFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblFundingFXConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedPrice\", dblFundingFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"Price\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"UnadjustedCleanPrice\", dblUnadjustedCleanPrice);\n\n\t\tmapResult.put (\"UnadjustedDirtyPrice\", 100. * (1. + (dblUnadjustedDirtyPV /\n\t\t\tdblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"UnadjustedPrice\", dblUnadjustedCleanPrice);\n\n\t\tmapResult.put (\"CalcTime\", (System.nanoTime() - lStart) * 1.e-09);\n\n\t\treturn mapResult;\n\t}",
"@Test\n public void test01() throws Throwable {\n PegasusSolver pegasusSolver0 = new PegasusSolver(0.0, (-1060.0));\n Gaussian gaussian0 = new Gaussian();\n double double0 = pegasusSolver0.solve(4, (UnivariateRealFunction) gaussian0, 125.121193945018, (-2672.0), (-1060.0));\n }",
"@Test\n public void test_lowerBound() {\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(0.0d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(0.5d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(0.9999d, new double[] {1, 2, 3})).isEqualTo(0);\n // good input\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.0d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.0001d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.9999d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(2.0d, new double[] {1, 2, 3})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(2.0001d, new double[] {1, 2, 3})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(2.9999d, new double[] {1, 2, 3})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(3.0d, new double[] {1, 2, 3})).isEqualTo(2);\n // bad input, but still produces good output\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(3.0001d, new double[] {1, 2, 3})).isEqualTo(2);\n // check zero\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(-1.0d, new double[] {-1, 0, 1})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(-0.9999d, new double[] {-1, 0, 1})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(-0.0001d, new double[] {-1, 0, 1})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(-0.0d, new double[] {-1, 0, 1})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(0.0d, new double[] {-1, 0, 1})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.0d, new double[] {-1, 0, 1})).isEqualTo(2);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.5d, new double[] {-1, 0, 1})).isEqualTo(2);\n }",
"private static native long createGuidedFilter_0(long guide_nativeObj, int radius, double eps);",
"protected SoDetail \ncreateTriangleDetail(SoRayPickAction action,\n final SoPrimitiveVertex v1,\n final SoPrimitiveVertex v2,\n final SoPrimitiveVertex v3,\n final SoPickedPoint pp)\n //\n ////////////////////////////////////////////////////////////////////////\n{\n SoCubeDetail detail;\n\n // Don't create a detail if the pick operation was performed on a\n // bounding box cube, not a real cube\n if (pickingBoundingBox)\n return null;\n\n detail = new SoCubeDetail();\n\n // The part code should be the same in all three details, so just use one\n detail.setPart((( SoCubeDetail ) v1.getDetail()).getPart());\n\n return detail;\n}",
"public org.drip.state.estimator.PredictorResponseWeightConstraint fundingForwardPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = forwardLabel();\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.forwardFundingPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"public interface ISurfaceInterpolator {\n /**\n * Gets an interpolated value in a agiven position, from a set of control values.\n * \n * @param controlPoints all the controlpoints to consider to evaluate the interpolated point.\n * @param interpolated the coordinate in which to interpolate.\n * @return the interpolated z value.\n */\n public double getValue( Coordinate[] controlPoints, Coordinate interpolated );\n \n \n public double getBuffer();\n}"
] | [
"0.67998636",
"0.67813826",
"0.64026177",
"0.6393912",
"0.63395154",
"0.6333955",
"0.59628075",
"0.59558123",
"0.595219",
"0.5591722",
"0.55268717",
"0.55123776",
"0.55015075",
"0.5465201",
"0.51629907",
"0.50408906",
"0.5010393",
"0.49495968",
"0.4922408",
"0.48803073",
"0.48496753",
"0.48426294",
"0.4815059",
"0.47668982",
"0.46029207",
"0.45381084",
"0.4512081",
"0.44161013",
"0.44161013",
"0.44161013",
"0.4413171",
"0.4403683",
"0.43874708",
"0.4367972",
"0.4249749",
"0.42358413",
"0.42036176",
"0.4185038",
"0.41323268",
"0.41155544",
"0.41049173",
"0.40825984",
"0.40766817",
"0.40701544",
"0.4068832",
"0.40451503",
"0.40251902",
"0.401786",
"0.4012293",
"0.39898252",
"0.3989611",
"0.39664608",
"0.39637542",
"0.39477903",
"0.39199004",
"0.39181545",
"0.3912346",
"0.39118284",
"0.39066032",
"0.3899673",
"0.38830763",
"0.3874449",
"0.3872207",
"0.38527045",
"0.38254672",
"0.38190645",
"0.3816623",
"0.38104704",
"0.37993568",
"0.37982702",
"0.3789305",
"0.378464",
"0.3782061",
"0.3776249",
"0.37706",
"0.37650716",
"0.37586656",
"0.37552994",
"0.37505412",
"0.3747406",
"0.37444162",
"0.3734437",
"0.37286395",
"0.37282118",
"0.37265244",
"0.37228864",
"0.37136772",
"0.3704068",
"0.3702261",
"0.36985263",
"0.3689747",
"0.3682338",
"0.36786127",
"0.36757082",
"0.36746877",
"0.3664962",
"0.36633813",
"0.3649293",
"0.36430037",
"0.36341423"
] | 0.58857393 | 9 |
Creates a quadric robust estimator based on 3D point samples and using provided points and robust estimator method. | public static QuadricRobustEstimator create(List<Point3D> points,
RobustEstimatorMethod method) {
switch (method) {
case LMedS:
return new LMedSQuadricRobustEstimator(points);
case MSAC:
return new MSACQuadricRobustEstimator(points);
case PROSAC:
return new PROSACQuadricRobustEstimator(points);
case PROMedS:
return new PROMedSQuadricRobustEstimator(points);
case RANSAC:
default:
return new RANSACQuadricRobustEstimator(points);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static QuadricRobustEstimator create(List<Point3D> points) {\n return create(points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores) {\n return create(points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points) {\n return create(listener, points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores) {\n return create(listener, points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points, \n qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points, \n qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public Point3D triangulate() throws LockedException, NotReadyException,\n RobustEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n final LMedSRobustEstimator<Point3D> innerEstimator =\n new LMedSRobustEstimator<>(\n new LMedSRobustEstimatorListener<Point3D>() {\n\n // point to be reused when computing residuals\n private final Point2D mTestPoint = Point2D.create(\n CoordinatesType.HOMOGENEOUS_COORDINATES);\n\n // non-robust 3D point triangulator\n private final SinglePoint3DTriangulator mTriangulator =\n SinglePoint3DTriangulator.create(mUseHomogeneousSolution ?\n Point3DTriangulatorType.LMSE_HOMOGENEOUS_TRIANGULATOR :\n Point3DTriangulatorType.LMSE_INHOMOGENEOUS_TRIANGULATOR);\n\n // subset of 2D points\n private final List<Point2D> mSubsetPoints = new ArrayList<>();\n\n // subst of cameras\n private final List<PinholeCamera> mSubsetCameras =\n new ArrayList<>();\n\n @Override\n public int getTotalSamples() {\n return mPoints2D.size();\n }\n\n @Override\n public int getSubsetSize() {\n return MIN_REQUIRED_VIEWS;\n }\n\n @Override\n public void estimatePreliminarSolutions(final int[] samplesIndices,\n final List<Point3D> solutions) {\n mSubsetPoints.clear();\n mSubsetPoints.add(mPoints2D.get(samplesIndices[0]));\n mSubsetPoints.add(mPoints2D.get(samplesIndices[1]));\n\n mSubsetCameras.clear();\n mSubsetCameras.add(mCameras.get(samplesIndices[0]));\n mSubsetCameras.add(mCameras.get(samplesIndices[1]));\n\n try {\n mTriangulator.setPointsAndCameras(mSubsetPoints,\n mSubsetCameras);\n final Point3D triangulated = mTriangulator.triangulate();\n solutions.add(triangulated);\n } catch (final Exception e) {\n // if anything fails, no solution is added\n }\n }\n\n @Override\n public double computeResidual(final Point3D currentEstimation, final int i) {\n final Point2D point2D = mPoints2D.get(i);\n final PinholeCamera camera = mCameras.get(i);\n\n // project estimated point with camera\n camera.project(currentEstimation, mTestPoint);\n\n // return distance of projected point respect to the original one\n // as a residual\n return mTestPoint.distanceTo(point2D);\n }\n\n @Override\n public boolean isReady() {\n return LMedSRobustSinglePoint3DTriangulator.this.isReady();\n }\n\n @Override\n public void onEstimateStart(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateStart(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateEnd(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateEnd(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateNextIteration(\n final RobustEstimator<Point3D> estimator, final int iteration) {\n if (mListener != null) {\n mListener.onTriangulateNextIteration(\n LMedSRobustSinglePoint3DTriangulator.this,\n iteration);\n }\n }\n\n @Override\n public void onEstimateProgressChange(\n final RobustEstimator<Point3D> estimator, final float progress) {\n if (mListener != null) {\n mListener.onTriangulateProgressChange(\n LMedSRobustSinglePoint3DTriangulator.this,\n progress);\n }\n }\n });\n\n try {\n mLocked = true;\n innerEstimator.setConfidence(mConfidence);\n innerEstimator.setMaxIterations(mMaxIterations);\n innerEstimator.setProgressDelta(mProgressDelta);\n innerEstimator.setStopThreshold(mStopThreshold);\n return innerEstimator.estimate();\n } catch (final com.irurueta.numerical.LockedException e) {\n throw new LockedException(e);\n } catch (final com.irurueta.numerical.NotReadyException e) {\n throw new NotReadyException(e);\n } finally {\n mLocked = false;\n }\n }",
"public static QuadricRobustEstimator create(double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator(qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"public static QuadricRobustEstimator create(double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator();\n case PROMedS:\n return new PROMedSQuadricRobustEstimator();\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n }\n }",
"public static QuadricRobustEstimator create() {\n return create(DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints); \n }\n }",
"public QuadriCubicSpline(double[] x1, double[] x2, double[] x3, double[] x4, double[][][][] y) {\n\t\tthis.nPoints = x1.length;\n\t\tthis.mPoints = x2.length;\n\t\tthis.lPoints = x3.length;\n\t\tthis.kPoints = x4.length;\n\t\tif (this.nPoints != y.length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x1 and y-row are of different length \" + this.nPoints + \" \" + y.length);\n\t\tif (this.mPoints != y[0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x2 and y-column are of different length \" + this.mPoints + \" \" + y[0].length);\n\t\tif (this.lPoints != y[0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x3 and y-column are of different length \" + this.mPoints + \" \" + y[0][0].length);\n\t\tif (this.kPoints != y[0][0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x4 and y-column are of different length \" + this.kPoints + \" \" + y[0][0][0].length);\n\t\tif ((this.nPoints < 3) || (this.mPoints < 3) || (this.lPoints < 3) || (this.kPoints < 3))\n\t\t\tthrow new IllegalArgumentException(\"The tabulated 4D array must have a minimum size of 3 X 3 X 3 X 3\");\n\n\t\tthis.csm = new CubicSpline(this.nPoints);\n\t\tthis.tcsn = TriCubicSpline.oneDarray(this.nPoints, this.mPoints, this.lPoints, this.kPoints);\n\t\tthis.x1 = new double[this.nPoints];\n\t\tthis.x2 = new double[this.mPoints];\n\t\tthis.x3 = new double[this.lPoints];\n\t\tthis.x4 = new double[this.kPoints];\n\n\t\tthis.y = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tthis.d2ydx2 = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tthis.x1[i] = x1[i];\n\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\tthis.x2[j] = x2[j];\n\t\tfor (int j = 0; j < this.lPoints; j++)\n\t\t\tthis.x3[j] = x3[j];\n\t\tfor (int j = 0; j < this.kPoints; j++)\n\t\t\tthis.x4[j] = x4[j];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\t\tfor (int k = 0; k < this.lPoints; k++)\n\t\t\t\t\tfor (int l = 0; l < this.kPoints; l++)\n\t\t\t\t\t\tthis.y[i][j][k][l] = y[i][j][k][l];\n\t}",
"public abstract Quadric estimate() throws LockedException, \n NotReadyException, RobustEstimatorException;",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed); \n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static AlgebraicVector[] buildHull(Set<AlgebraicVector> points) throws Failure {\n if (points.size() < 3) {\n fail(\"At least three input points are required for a 2d convex hull.\\n\\n\" + points.size() + \" specified.\");\n }\n AlgebraicVector normal = AlgebraicVectors.getNormal(points); \n if(normal.isOrigin()) {\n fail(\"Cannot generate a 2d convex hull from collinear points\");\n }\n if(!AlgebraicVectors.areOrthogonalTo(normal, points)) {\n fail(\"Cannot generate a 2d convex hull from non-coplanar points\");\n }\n\n // JSweet hates maps keyed by objects, so we'll construct this collection\n // separately, and let the xyTo3dMap use strings as keys.\n Collection<AlgebraicVector> keySet = new ArrayList<>();\n \n // Map each 3d point to a 2d projection and rotate it to the XY plane if necessary.\n // Since the 3d points are coplanar, it will be a 1:1 mapping\n // Later, we'll need to map 2d back to 3d so the 2d vector will be the key\n Map<String, AlgebraicVector> xyTo3dMap = map3dToXY( points, normal, keySet );\n \n // calculate the 2d convex hull\n Deque<AlgebraicVector> stack2d = getHull2d( keySet );\n\n // map the 2d convex hull back to the original 3d points\n AlgebraicVector[] vertices3d = new AlgebraicVector[stack2d.size()];\n \n int i = 0;\n for(AlgebraicVector point2d : stack2d) {\n AlgebraicVector point3d = xyTo3dMap.get( point2d.toString( AlgebraicField.VEF_FORMAT ) );\n // order vertices3d so the normal will point away from the origin \n // to make it consistent with the 3d convex hull algorithm\n vertices3d[i++] = point3d;\n }\n return vertices3d;\n }",
"public static vtkPoints createPoints(double[] points)\n\t{\n\t\tvtkPoints vtkPoints = new vtkPoints();\n\t\tvtkDoubleArray d = new vtkDoubleArray();\n\t\td.SetJavaArray(points);\n\t\td.SetNumberOfComponents(3);\n\t\tvtkPoints.SetData(d);\n\t\tdelete(d);\n\t\treturn vtkPoints;\n\t}",
"public static BoundingPolytope computePolytope(double[] points)\n\t{\n\t\tBoundingPolytope frustum = new BoundingPolytope();\n\t\t\n\t\tVector3d a1 = new Vector3d(points[0],points[1],points[2]);\n\t\tVector3d a2 = new Vector3d(points[4],points[5],points[6]);\n\t\tVector3d b1 = new Vector3d(points[8],points[9],points[10]);\n\t\tVector3d b2 = new Vector3d(points[12],points[13],points[14]);\n\t\tVector3d c1 = new Vector3d(points[16],points[17],points[18]);\n\t\tVector3d c2 = new Vector3d(points[20],points[21],points[22]);\n\t\tVector3d d1 = new Vector3d(points[24],points[25],points[26]);\n\t\tVector3d d2 = new Vector3d(points[28],points[29],points[30]);\n\t\t\n\t\t\n\t\tVector4d[] planes = new Vector4d[] {\n\t\tcomputePlane(a1,b1,a2),\n\t\tcomputePlane(d1,c1,d2),\n\t\tcomputePlane(b1,d1,b2),\n\t\tcomputePlane(c1,a1,c2),\n\t\tcomputePlane(c1,d1,a1),\n\t\tcomputePlane(d2,c2,b2),\n\t\t};\n\t\t\n\t\tfrustum.setPlanes(planes);\n\t\t\n\t\treturn frustum;\n\t}",
"public NurbsSurface(int segments, int nr_of_points) {\n always_evaluate = false;\n nr_of_segments = segments;\n points_per_segment = nr_of_points;\n surface_type = 2;\n u = new double[100];\n v = new double[100];\n k = 3;\n int i, j;\n\n step = 0.2;\n evaluated_points = new NurbsPoint[(int) ((double) nr_of_segments / step)][(int) ((double) points_per_segment / step)];\n\n for (i = 0; i < (int) ((double) nr_of_segments / step); i++) {\n for (j = 0; j < (int) ((double) points_per_segment / step); j++) {\n evaluated_points[i][j] = new NurbsPoint(0, 0, 0);\n }\n }\n\n u[0] = 0;\n u[1] = 0;\n u[2] = 0;\n u[3] = 0;\n v[0] = 0;\n v[1] = 0;\n v[2] = 0;\n v[3] = 0;\n\n for (i = 4; i < segments - 4; i++) {\n u[i] = i - 3;\n }\n\n for (i = 4; i < nr_of_points - 4; i++) {\n v[i] = i - 3;\n }\n\n u[segments - 4] = segments - 7;\n u[segments - 3] = segments - 7;\n u[segments - 2] = segments - 7;\n u[segments - 1] = segments - 7;\n\n v[nr_of_points - 4] = nr_of_points - 7;\n v[nr_of_points - 3] = nr_of_points - 7;\n v[nr_of_points - 2] = nr_of_points - 7;\n v[nr_of_points - 1] = nr_of_points - 7;\n\n points = new NurbsPoint[nr_of_segments][points_per_segment];\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints); \n }\n }",
"public abstract Point_3 evaluate(double u, double v);",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n }\n }",
"public static vtkPoints createPoints(float[] points)\n\t{\n\t\tvtkPoints vtkPoints = new vtkPoints();\n\t\tvtkFloatArray d = new vtkFloatArray();\n\t\td.SetJavaArray(points);\n\t\td.SetNumberOfComponents(3);\n\t\tvtkPoints.SetData(d);\n\t\tdelete(d);\n\t\treturn vtkPoints;\n\t}",
"public BruteCollinearPoints(Point[] points) {\n this.points = points;\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public BruteCollinearPoints(Point[] points) {\n if (points == null) {\n throw new NullPointerException(\"points array was null\");\n }\n\n verifyPointsArray(points);\n this.points = points;\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores) {\n return create(inputPoints, outputPoints, qualityScores, \n DEFAULT_ROBUST_METHOD);\n }",
"public BruteCollinearPoints(Point[] points) {\n // Throw an IllegalArgumentException if the argument to the constructor is null.\n if (points == null)\n throw new IllegalArgumentException(\"the argument to the constructor is null\");\n // Throw an IllegalArgumentException if any point in the array is null.\n for (Point point : points)\n if (point == null)\n throw new IllegalArgumentException(\"any point in the array is null\");\n\n Point[] pointsCopy = points.clone();\n Arrays.sort(pointsCopy);\n int n = pointsCopy.length;\n\n // Throw an IllegalArgumentException if array contains a repeated points.\n for (int i = 0; i < n - 1; i++)\n if (pointsCopy[i].compareTo(pointsCopy[i + 1]) == 0)\n throw new IllegalArgumentException(\"array contains a repeated points\");\n\n Point[] fourPoints = new Point[4];\n for (int ip = 0; ip < n - 3; ip++) {\n fourPoints[0] = pointsCopy[ip];\n for (int iq = ip + 1; iq < n - 2; iq++) {\n fourPoints[1] = pointsCopy[iq];\n for (int ir = iq + 1; ir < n - 1; ir++) {\n fourPoints[2] = pointsCopy[ir];\n for (int is = ir + 1; is < n; is++) {\n fourPoints[3] = pointsCopy[is];\n if (areCollinear(fourPoints)) {\n addSegment(fourPoints[0], fourPoints[3]);\n }\n }\n }\n }\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n }\n }",
"public BruteCollinearPoints(Point[] points) {\n if (null == points)\n throw new NullPointerException();\n improperArgumentCheck(points);\n this.points = points;\n this.segments = findSegments();\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores) {\n return create(listener, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"@org.junit.Test\n public void getUniformParamsTestCurve3() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(15, 20), new Vector(15, 30));\n List<Double> params = curve.getUniformParams(6);\n assertEquals(6, curve.getUniformParams(6).size());\n\n // check that each point is further down the line of the curve\n // each x and y should be larger than the previous\n Vector prev = curve.getPoint(params.get(0));\n for (int i = 1; i < params.size(); i++) {\n Vector point = curve.getPoint(params.get(i));\n assertTrue(point.x > prev.x);\n assertTrue(point.y > prev.y);\n }\n\n // check that the first and the last sampling points are equal to starting and ending controlling points\n assertEquals(new Vector(10, 20), curve.getPoint(params.get(0)));\n assertEquals(new Vector(15, 30), curve.getPoint(params.get(params.size() - 1)));\n }",
"public Point2D[] getPoint2DArray() { \n \n double x1=0; \n double y1=0; \n double x2=0; \n double y2=0; \n \n double x0; \n double y0; \n double x3; \n double y3; \n \n int samples_interval = Math.round(samples / (points.length-1)); \n Point2D[] points_return = new Point2D[samples]; \n int pos_return = 0; //we'll store the pointer in the points_return array here. \n //We iterate between the different given points, \n //calculating the Bezier curves between them \n for(int i=0; i < points.length-1; i++){ \n //the last period may have a different number of samples in order to fit the sample value \n if(i == points.length-2){ \n samples_interval = samples - (samples_interval*(points.length-2)); \n } \n x1=points[i].getX(); \n x2=points[i+1].getX(); \n y1=points[i].getY(); \n y2=points[i+1].getY(); \n if(i>0){ \n x0=points[i-1].getX(); \n y0=points[i-1].getY(); \n }else { \n x0 = x1 - Math.abs(x2 - x1); \n y0 = y1; \n } \n if(i < points.length -2){ \n x3=points[i+2].getX(); \n y3=points[i+2].getY(); \n } else { \n x3 = x1 + 2*Math.abs(x1 - x0); \n y3 = y1; \n } \n Point2D[] points_bezier = CalculateBezierCurve(x0,y0,x1,y1,x2,y2,x3,y3, samples_interval); \n //Fill the return array \n for(int j = 0 ; j < points_bezier.length; j++){ \n points_return[pos_return] = new Point2D.Double(points_bezier[j].getX(),points_bezier[j].getY()); \n pos_return++; \n } \n \n } \n \n\n return points_return; \n}",
"private Point2D[] CalculateBezierCurve(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, int samples_interval){ \n \n \n \n double control_point_1_x; \n double control_point_1_y; \n double control_point_2_x; \n double control_point_2_y; \n \n \n //Calculate the control points for the cubic bezier line \n control_point_1_x =controlPoint(x0,x1,x2); \n control_point_1_y =controlPoint(y0,y1,y2); \n \n control_point_2_x = controlPoint(x3,x2,x1); \n control_point_2_y = controlPoint(y3,y2,y1); \n \n //System.out.println(\"control1: \" + control_point_1_x + \" -- \" + control_point_1_y); \n //System.out.println(\"control2: \" + control_point_2_x + \" -- \" + control_point_2_y); \n \n \n double cx = 3.0 * (control_point_1_x - x1); \n double bx = 3.0 * (control_point_2_x - control_point_1_x) - cx; \n double ax = x2 - x1 - cx - bx; \n \n double cy = 3.0 * (control_point_1_y - y1); \n double by = 3.0 * (control_point_2_y - control_point_1_y) - cy; \n double ay = y2 - y1 - cy - by; \n \n //Let's calculate all the ponits that follow the Bezier curve. \n Point2D[] points = new Point2D[samples_interval]; \n for(int j = 0; j < samples_interval; j++){ \n double t = j*(1.0/samples_interval); \n //System.out.println(\"j: \" + j + \" t: \" + t + \" samples_int: \" + (samples_interval)); \n double x = (ax * t * t * t) + (bx * t * t) + (cx * t) + x1; \n double y = (ay * t * t * t) + (by * t *t) + (cy * t) + y1; \n //System.out.println(\"x: \" + x + \" y: \" + y + \" t: \" + t); \n points[j] = new Point2D.Double(x,y); \n } \n return points; \n }",
"public double getValue( Coordinate[] controlPoints, Coordinate interpolated );",
"public void determineCoefficients(int splineIndex, double[] positionIn, double v0, double vf, double a0, double af)\n {\n if (!initialized.getBooleanValue())\n throw new RuntimeException(\"QuinticSplineInterpolator is not initialized\");\n\n if (splineIndex > numberOfSplines - 1 || splineIndex < 0)\n throw new RuntimeException(\"SplineIndex is out of bounds\");\n\n if (positionIn.length < numberOfPoints.getValue())\n throw new RuntimeException(\"Length of positionIn is less than the number of points\");\n\n MatrixTools.setMatrixColumnFromArray(a, 0, positionIn, 0, a.getNumRows());\n\n MatrixTools.diff(positionIn, yd);\n\n if (numberOfPoints.getValue() > 2)\n {\n s.unsafe_set(0, 0, positionIn[1] / h.unsafe_get(0, 0) - positionIn[0] / h.unsafe_get(0, 0) - v0);\n for (int i = 0; i < numberOfPoints.getValue() - 2; i++)\n {\n s.unsafe_set(i + 4, 0, yd.unsafe_get(i + 1, 0) / h.unsafe_get(i + 1, 0) - yd.unsafe_get(i, 0) / h.unsafe_get(i, 0));\n }\n }\n else\n {\n s.unsafe_set(0, 0, positionIn[1] / h.unsafe_get(0, 0) - positionIn[0] / h.unsafe_get(0, 0) - v0);\n }\n\n s.unsafe_set(1, 0, a0);\n s.unsafe_set(2,\n 0,\n vf - positionIn[numberOfPoints.getValue() - 1] / h.unsafe_get(numberOfPoints.getValue() - 2, 0)\n + positionIn[numberOfPoints.getValue() - 2] / h.unsafe_get(numberOfPoints.getValue() - 2, 0));\n s.unsafe_set(3, 0, af);\n\n /*\n * TODO: Rewrite so no new objects are created\n */\n\n solver.solve(s, sol);\n\n CommonOps_DDRM.mult(Cblock, sol, c);\n CommonOps_DDRM.mult(D, sol, d);\n\n MatrixTools.setMatrixBlock(e, 0, 0, sol, 2, 0, numberOfPoints.getValue() - 1, 1, 1.0);\n\n MatrixTools.diff(sol, 2, numberOfPoints.getValue(), f);\n CommonOps_DDRM.scale(1.0 / 5.0, f);\n CommonOps_DDRM.elementDiv(f, h);\n\n for (int i = 0; i < numberOfPoints.getValue() - 1; i++)\n {\n double hi = h.unsafe_get(i, 0);\n double hi2 = MathTools.square(hi);\n double hi3 = hi2 * hi;\n double hi4 = hi3 * hi;\n\n b.unsafe_set(i,\n 0,\n yd.unsafe_get(i, 0) / hi - c.unsafe_get(i, 0) * hi - d.unsafe_get(i, 0) * hi2 - e.unsafe_get(i, 0) * hi3 - f.unsafe_get(i, 0) * hi4);\n }\n\n splines[splineIndex].seta(a);\n splines[splineIndex].setb(b);\n splines[splineIndex].setc(c);\n splines[splineIndex].setd(d);\n splines[splineIndex].sete(e);\n splines[splineIndex].setf(f);\n\n splines[splineIndex].setCoefficientsSet(true);\n\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener) {\n return create(listener, DEFAULT_ROBUST_METHOD);\n }",
"public BruteCollinearPoints(Point[] points) {\n\t\tcheckArguments(points);\n\t\tcheckDuplicateArguments(points);\n\t\tN = points.length;\n\t\tmPoints = new Point[N];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tmPoints[i] = points[i];\n\t\t}\n\t}",
"@Test\r\n public void testSplineApproximator() {\r\n List<Point> data = createConvergingDataset();\r\n List<ExpectedApproximation> exp = new ArrayList<ExpectedApproximation>();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(1000, 17, 1050));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(1062, 40, 1066));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n\r\n data = createLinearDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(100, 3, 200));\r\n exp.add(new ExpectedApproximation(300, 11, 400));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 100));\r\n exp.add(new ExpectedApproximation(400, 17, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n \r\n data = createIncreasingDecreasingDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(700, 23, 900));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(0, 35, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n }",
"public FastCollinearPoints(final Point[] inPoints) {\n\n if (inPoints == null) {\n // an argument to the constructor is null\n throw new IllegalArgumentException();\n }\n\n // check for null points\n for (final Point inPoint : inPoints) {\n if (inPoint == null) {\n throw new IllegalArgumentException(\"null point\");\n }\n }\n\n final Point[] points = inPoints.clone();\n Arrays.sort(points); // sort the points in ascending order\n\n // check for repeated points\n if (points.length != Stream.of(points).distinct().count()) {\n throw new IllegalArgumentException(\"repeated point(s)\");\n }\n\n // find all sets of >= 4 collinear points by sorting relative slopes\n\n this.segments = (\n Stream.of(points)\n // for each collinear segment\n .map(\n // map each \"refPoint\" to a list of points (as an array)\n refPoint -> (\n // stream a copy of points\n Stream.of(points.clone())\n // sorted by (segment) slope, relative to \"refPoint\"\n .sorted(refPoint.slopeOrder())\n // group points by slope relative to \"refPoint\"\n .collect(\n Collectors.groupingBy(\n refPoint::slopeTo,\n Collectors.mapping(identity(), toList())\n )\n )\n .entrySet()\n // stream each grouped slope/points entry\n .stream()\n // filter out groups smaller than size 3\n .filter(e -> e.getValue().size() >= 3)\n // construct sorted point list for each group\n .map(\n e -> {\n final List<Point> v = e.getValue();\n final List<Point> l = new ArrayList<>(v.size() + 1);\n l.add(refPoint);\n l.addAll(v);\n l.sort(naturalOrder());\n return l;\n }\n )\n )\n )\n // concatenate all streams of grouped slope/points entries\n .flatMap(s -> s)\n // collect into a \"super-list\" of grouped slope/points entries\n .collect(Collectors.toList())\n // convert to a stream of grouped slope/points entries\n .stream()\n // remove duplicates\n .distinct()\n // map each into an instance of the target \"LineSegment\" type\n .map(lp -> new LineSegment(lp.get(0), lp.get(lp.size() - 1)))\n // return an array containing all streamed entries\n .toArray(LineSegment[]::new)\n );\n\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints) {\n return create(inputPoints, outputPoints, DEFAULT_ROBUST_METHOD);\n }",
"public void calculateBezierCurve(double surveyPoints){\n\t\tif (controlPoints.size() < 2) return;\n\t\t\n\t\tfor (Line l : bezierCurve){\n\t\t\tpane.getChildren().remove(l);\n\t\t}\n\t\tbezierCurve.clear();\n\t\t\n\t\tPoint2D last = calculateSubLinePositions(0);\n\t\t\n\t\tfor (int i = 0; i <= surveyPoints; i++){\n\t\t\tdouble percent = i/surveyPoints;\n\t\t\tPoint2D current = calculateSubLinePositions(percent);\n\t\t\tLine line = new Line();\n\t\t\tline.setStroke(Color.RED);\n\t\t\tline.setStrokeWidth(4);\n\t\t\tline.setStrokeLineCap(StrokeLineCap.ROUND);\n\t\t\tline.setStrokeLineJoin(StrokeLineJoin.ROUND);\n\t\t\t\n\t\t\tline.setStartX(last.getX());\n\t\t\tline.setStartY(last.getY());\n\t\t\tline.setEndX(current.getX());\n\t\t\tline.setEndY(current.getY());\n\t\t\t\n\t\t\tlast = current;\n\t\t\t\n\t\t\tline.setVisible(false);\n\t\t\tbezierCurve.add(line);\n\t\t\tpane.getChildren().add(line);\n\t\t}\n\t}",
"protected abstract void solvePreliminarSolutions(\n final int[] samplesIndices,\n final List<Solution<P>> solutions);",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed) {\n return create(inputPoints, outputPoints, weakMinimumSizeAllowed, \n DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n qualityScores, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n qualityScores, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n }\n }",
"@org.junit.Test\n public void getUniformParamsTestCurve4() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(15, 20),\n new Vector(10, 30), new Vector(15, 30));\n List<Double> params = curve.getUniformParams(6);\n assertEquals(6, curve.getUniformParams(6).size());\n\n // check that each point is further down the line of the curve\n // each x and y should be larger than the previous\n Vector prev = curve.getPoint(params.get(0));\n for (int i = 1; i < params.size(); i++) {\n Vector point = curve.getPoint(params.get(i));\n assertTrue(point.x > prev.x);\n assertTrue(point.y > prev.y);\n }\n\n // check that the first and the last sampling points are equal to starting and ending controlling points\n assertEquals(new Vector(10, 20), curve.getPoint(params.get(0)));\n assertEquals(new Vector(15, 30), curve.getPoint(params.get(params.size() - 1))); }",
"@Test\r\n public void testPolynomialApproximator() {\r\n List<Point> data = createLinearDataset();\r\n test(PolynomialApacheMathApproximator.INSTANCE_3, data, null);\r\n }",
"@Test\n\tpublic void testSetActiveRegion3DRadius() throws GeoTessException, IOException\n\t{\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\n\n\t\t//\t\t// define a 3D polygon with small circle and 3 layers.\n\t\t//\t\tdouble[] polygonCenter = VectorGeo.getVectorDegrees(30., 90.);\n\t\t//\n\t\t//\t\tdouble polygonRadius = toRadians(30.);\n\t\t//\n\t\t//\t\tdouble radiusTop = 6371 - 55;\n\t\t//\t\tdouble radiusBottom = 4000.;\n\t\t//\n\t\t//\t\tHorizon top = new HorizonRadius(radiusTop, 4);\n\t\t//\t\tHorizon bottom = new HorizonRadius(radiusBottom, 2);\n\t\t//\n\t\t//\t\tPolygon polygon = new Polygon3D(polygonCenter, polygonRadius,\n\t\t//\t\t\t\t100, bottom, top);\n\n\t\tPolygon3D polygon = new Polygon3D(new File(\"src/test/resources/permanent_files/polygon_small_circle_radii.ascii\"));\n\t\tdouble[] polygonCenter = polygon.getReferencePoint();\n\t\tdouble polygonRadius = VectorUnit.angle(polygonCenter, polygon.getPoint(0));\n\n\t\tdouble radiusTop = polygon.getTop().getValue();\n\t\tdouble radiusBottom = polygon.getBottom().getValue();\n\n\t\tint topLayer = polygon.getTop().getLayerIndex();\n\t\tint bottomLayer = polygon.getBottom().getLayerIndex();\n\n\t\t// set the active region to 3D polygon\n\t\tsmall_model.setActiveRegion(polygon);\n\t\tassertEquals(144, small_model.getPointMap().size());\n\n\t\t// check every point in the point map to ensure that it is within the polygon\n\t\tfor (int i=0; i<small_model.getPointMap().size(); ++i)\n\t\t{\n\t\t\tdouble[] point = small_model.getPointMap().getPointUnitVector(i);\n\t\t\tassertTrue(VectorUnit.angle(polygonCenter, point) < polygonRadius \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) >= bottomLayer \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) <= topLayer\n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) >= radiusBottom \n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) <= radiusTop\n\t\t\t\t\t);\n\t\t}\n\n\t\t// check every node in the small_model. if the node has point index < 0 then\n\t\t// ensure that it is outside the polygon. if the node has point index \n\t\t// >= 0, then it must be within the polygon.\n\t\tboolean passed = true;\n\t\tfor (int vertex=0; vertex<small_model.getGrid().getVertices().length; ++vertex)\n\t\t{\n\t\t\tdouble distance = VectorUnit.angle(polygonCenter, small_model.getGrid().getVertex(vertex));\n\t\t\tProfile[] pp = small_model.getProfiles(vertex);\n\t\t\tfor (int layer=0; layer<small_model.getNLayers(); ++layer)\n\t\t\t{\n\t\t\t\tProfile p = pp[layer];\n\t\t\t\tfor (int n=0; n<p.getNData(); ++n)\n\t\t\t\t{\n\t\t\t\t\tboolean inpolygon = distance < polygonRadius\n\t\t\t\t\t\t\t&& layer >= bottomLayer\n\t\t\t\t\t\t\t&& layer <= topLayer\n\t\t\t\t\t\t\t&& p.getRadius(n) > radiusBottom\n\t\t\t\t\t\t\t&& p.getRadius(n) < radiusTop\n\t\t\t\t\t\t\t;\n\n\t\t\t\t\t\t\tboolean positive = p.getPointIndex(n) >= 0;\n\n\t\t\t\t\t\t\tif (inpolygon != positive) passed = false;\n\n\t\t\t\t\t\t\tif (inpolygon != positive)\n\t\t\t\t\t\t\t\tSystem.out.printf(\"testSetActiveRegion3DRadii ptIndex=%d dist=%1.3f layer=%d radius=%1.3f%n\",\n\t\t\t\t\t\t\t\t\t\tp.getPointIndex(n),\n\t\t\t\t\t\t\t\t\t\tMath.toDegrees(distance), \n\t\t\t\t\t\t\t\t\t\tlayer,\n\t\t\t\t\t\t\t\t\t\tp.getRadius(n));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tassertTrue(passed);\n\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\t\t\n\n\t}",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n DEFAULT_ROBUST_METHOD);\n }",
"public BruteCollinearPoints(Point[] points){\n int count_temp = 0;\n int length = points.length;\n LineSegment[] Segment_temp = new LineSegment[50 * length];\n // sort the points array;\n Arrays.sort(points);\n // find collinear points using brute force method;\n for(int n = 0; n < length - 1; n++){\n if(points[n].slopeTo(points[n + 1]) == Double.NEGATIVE_INFINITY)\n throw new java.lang.IllegalArgumentException();\n }\n for(int i = 0; i < length - 3; i++){\n for(int j = i + 1; j < length - 2; j++) {\n for (int k = j + 1; k < length - 1; k++) {\n for (int l = k + 1; l < length; l++) {\n double slope_1 = points[i].slopeTo(points[j]);\n double slope_2 = points[i].slopeTo(points[k]);\n double slope_3 = points[i].slopeTo(points[l]);\n if (slope_1 == slope_2 && slope_2 == slope_3\n && points[i].compareTo(points[j]) < 1\n && points[j].compareTo(points[k]) < 1\n && points[k].compareTo(points[l]) < 1) {\n Segment_temp[count_temp] = new LineSegment(points[i], points[l]);\n count_temp++;\n }\n }\n }\n }\n }\n // resize the Segment array;\n Segment = new LineSegment[count_temp];\n for(int k = 0; k < count_temp; k++){\n Segment[k] = Segment_temp[k];\n }\n count = count_temp;\n }",
"public abstract Vector3D getPointForSurfaceCoordinates(double u, double v);",
"private double threeDimensionalSolveQ1(RealMatrix u, RealMatrix v, double q3) {\r\n double u11 = u.getEntry(0, 0);\r\n double u12 = u.getEntry(0, 1);\r\n double u13 = u.getEntry(0, 2);\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v1 = v.getEntry(0, 0);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (((u12*v2)/(u11*u22)) - (v1/u11)) + ((((u12*u23)/(u11*u22)) - (u13/u11))*q3);\r\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator();\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator();\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(); \n }\n }",
"public TriangleElt3D(Point3D[] points, ScalarOperator sop)\n\t\t\tthrows IllegalArgumentException {\n\t\tsuper(points, sop);\n\t\tthis.eltZero = null;\n\t\tthis.eltOne = null;\n\t\tthis.eltTwo = null;\n\t}",
"public void ignoreCreateArrayForVec3With6Position() {\r\n\r\n SXRMesh sxrMesh = TestDefaultSXRViewManager.mSXRContext.getAssetLoader().loadMesh(UtilResource.androidResource(TestDefaultSXRViewManager.mSXRContext,R.raw.cylinder3));\r\n float[] vec3 = {-0.5f, 0.5f, 0.0f, -0.5f, 0.5f, 0.0f};\r\n\r\n try {\r\n sxrMesh.setVec3Vector(\"ratio_r\", vec3);\r\n assertNotNull(sxrMesh.getVec4Vector(\"ratio_r\"));\r\n fail();\r\n } catch (InvalidParameterException e) {\r\n assertEquals(e.getMessage(), \"setVec3Vector method support only three position array\");\r\n }\r\n }",
"public FastCollinearPoints(Point[] points) {\r\n if(points == null) throw new java.lang.IllegalArgumentException();\r\n\r\n Point[] slopeOrderPoints = points.clone();\r\n int countOfSegments = 0;\r\n LineSegment[] temp_segments = new LineSegment[points.length*points.length];\r\n\r\n for (int i = 0; i < points.length; i++) {\r\n\r\n if(points[i] == null) throw new java.lang.IllegalArgumentException();\r\n\r\n Arrays.sort(slopeOrderPoints, points[i].slopeOrder());\r\n\r\n for (int j = 0; j < slopeOrderPoints.length-1; ++j) {\r\n\r\n Point[] temp_segment = new Point[points.length]; // initiate a temp segment contains all the points at most\r\n temp_segment[0] = points[i]; // one point of the temp segment must be points[i]\r\n int count = 1; // count records how many points the temp segment contains now\r\n\r\n if (points[i].slopeTo(slopeOrderPoints[j]) == points[i].slopeTo(slopeOrderPoints[j+1])) {\r\n while (j < slopeOrderPoints.length - 1) {\r\n temp_segment[count++] = slopeOrderPoints[j];\r\n if (points[i].slopeTo(slopeOrderPoints[j]) == points[i].slopeTo(slopeOrderPoints[j+1])) {\r\n ++j;\r\n }\r\n else {\r\n break;\r\n }\r\n }\r\n if (j == slopeOrderPoints.length - 1) {\r\n temp_segment[count++] = slopeOrderPoints[j];\r\n }\r\n\r\n if (count >= 4) {\r\n Point[] segment = new Point[count];\r\n for (int k = 0; k < count; k++) {\r\n segment[k] = temp_segment[k];\r\n }\r\n Arrays.sort(segment);\r\n LineSegment line = new LineSegment(segment[0], segment[count - 1]);\r\n boolean isIn = false;\r\n for (int k = 0; k < countOfSegments; k++) {\r\n if (temp_segments[k].toString().compareTo(line.toString()) == 0) {\r\n isIn = true;\r\n break;\r\n }\r\n }\r\n if (!isIn) {\r\n temp_segments[countOfSegments++] = line;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n numberOfSegments = countOfSegments;\r\n segments = new LineSegment[countOfSegments];\r\n for (int i = 0; i < countOfSegments; i++) {\r\n segments[i] = temp_segments[i];\r\n }\r\n }",
"@Test\n public void getPointsTest() {\n final double[] expectedResult = new double[3];\n final double[] envelope = new double[]{-3, 2, 0, 1, 4, 0};\n\n //lower corner\n System.arraycopy(envelope, 0, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getLowerCorner(envelope)));\n\n //upper corner\n System.arraycopy(envelope, 3, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getUpperCorner(envelope)));\n\n //median\n expectedResult[0] = -1;\n expectedResult[1] = 3;\n expectedResult[2] = 0;\n assertTrue(Arrays.equals(expectedResult, getMedian(envelope)));\n }",
"public BruteCollinearPoints(Point[] points) {\n if (points == null) throw new IllegalArgumentException();\n points = points.clone();\n validate(points);\n Arrays.sort(points);\n validateDuplicate(points);\n List<List<Double>> slopes = new ArrayList<>(points.length);\n for (int i = 0; i < points.length; i++) slopes.add(new LinkedList<>());\n lines = new LinkedList<>();\n for (int i = 0; i < points.length; i++) {\n for (int j = i+1; j < points.length; j++) {\n for (int m = j + 1; m < points.length; m++) {\n for (int n = points.length - 1; n > m; n--) {\n if (isCollinear(points[i], points[j], points[m], points[n])) {\n boolean exist = false;\n for (double slope : slopes.get(i)) {\n if (Double.compare(slope, points[i].slopeTo(points[n])) == 0) exist = true;\n }\n if (!exist) {\n lines.add(new LineSegment(points[i], points[n]));\n double s = points[i].slopeTo(points[n]);\n slopes.get(i).add(s);\n slopes.get(j).add(s);\n slopes.get(m).add(s);\n slopes.get(n).add(s);\n }\n }\n }\n }\n }\n }\n }",
"public void c(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)\r\n/* 77: */ {\r\n/* 78: 89 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2 + paramDouble3 * paramDouble3);\r\n/* 79: */ \r\n/* 80: 91 */ paramDouble1 /= f1;\r\n/* 81: 92 */ paramDouble2 /= f1;\r\n/* 82: 93 */ paramDouble3 /= f1;\r\n/* 83: */ \r\n/* 84: 95 */ paramDouble1 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 85: 96 */ paramDouble2 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 86: 97 */ paramDouble3 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 87: */ \r\n/* 88: 99 */ paramDouble1 *= paramFloat1;\r\n/* 89:100 */ paramDouble2 *= paramFloat1;\r\n/* 90:101 */ paramDouble3 *= paramFloat1;\r\n/* 91: */ \r\n/* 92:103 */ this.v = paramDouble1;\r\n/* 93:104 */ this.w = paramDouble2;\r\n/* 94:105 */ this.x = paramDouble3;\r\n/* 95: */ \r\n/* 96:107 */ float f2 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 97: */ \r\n/* 98:109 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 99:110 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f2) * 180.0D / 3.141592741012573D));\r\n/* 100:111 */ this.i = 0;\r\n/* 101: */ }",
"public org.drip.state.estimator.PredictorResponseWeightConstraint fundingPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = forwardLabel();\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.fundingPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"public ExtrapolatedSaturationPointEvaluator(int[] anchorpoints,\n\t\t\tISamplingAlgorithmFactory<IInstance, ? extends ASamplingAlgorithm<IInstance>> samplingAlgorithmFactory,\n\t\t\tIDataset<IInstance> train, double trainSplitForAnchorpointsMeasurement,\n\t\t\tLearningCurveExtrapolationMethod extrapolationMethod, long seed, IDataset<IInstance> test) {\n\t\tsuper();\n\t\tthis.anchorpoints = anchorpoints;\n\t\tthis.samplingAlgorithmFactory = samplingAlgorithmFactory;\n\t\tthis.train = train;\n\t\tthis.trainSplitForAnchorpointsMeasurement = trainSplitForAnchorpointsMeasurement;\n\t\tthis.extrapolationMethod = extrapolationMethod;\n\t\tthis.seed = seed;\n\t\tthis.epsilon = DEFAULT_EPSILON;\n\t\tthis.test = test;\n\t}",
"protected double residual(Quadric q, Point3D point) {\n q.normalize();\n try {\n if (mTestQ == null) {\n mTestQ = q.asMatrix();\n } else {\n q.asMatrix(mTestQ);\n }\n\n if (mTestPoint == null) {\n mTestPoint = new Matrix(\n Point3D.POINT3D_HOMOGENEOUS_COORDINATES_LENGTH, \n 1);\n }\n point.normalize();\n mTestPoint.setElementAt(0, 0, point.getHomX());\n mTestPoint.setElementAt(1, 0, point.getHomY());\n mTestPoint.setElementAt(2, 0, point.getHomZ());\n mTestPoint.setElementAt(3, 0, point.getHomW());\n Matrix locusMatrix = mTestPoint.transposeAndReturnNew();\n locusMatrix.multiply(mTestQ);\n locusMatrix.multiply(mTestPoint); \n return Math.abs(locusMatrix.getElementAt(0, 0));\n } catch (AlgebraException e) {\n return Double.MAX_VALUE;\n } \n }",
"protected SoDetail \ncreateTriangleDetail(SoRayPickAction action,\n final SoPrimitiveVertex v1,\n final SoPrimitiveVertex v2,\n final SoPrimitiveVertex v3,\n final SoPickedPoint pp)\n //\n ////////////////////////////////////////////////////////////////////////\n{\n SoCubeDetail detail;\n\n // Don't create a detail if the pick operation was performed on a\n // bounding box cube, not a real cube\n if (pickingBoundingBox)\n return null;\n\n detail = new SoCubeDetail();\n\n // The part code should be the same in all three details, so just use one\n detail.setPart((( SoCubeDetail ) v1.getDetail()).getPart());\n\n return detail;\n}",
"public org.drip.state.estimator.PredictorResponseWeightConstraint forwardPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.FloaterLabel floaterLabel = floaterLabel();\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = null != floaterLabel && floaterLabel instanceof\n\t\t\torg.drip.state.identifier.ForwardLabel ? (org.drip.state.identifier.ForwardLabel) floaterLabel :\n\t\t\t\tnull;\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.forwardPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"public FastCollinearPoints_ov(Point[] points) {\n isLegal(points);\n Point[] pointsCopy = Arrays.copyOf(points, points.length);\n Arrays.sort(pointsCopy);\n lineSegments = new ArrayList<>();\n\n for (int i = 0; i < pointsCopy.length - 3; i++) {\n Point startPoint = pointsCopy[i];\n double[] preSlopes = new double[i];\n Point[] nextPoints = new Point[pointsCopy.length - i - 1];\n\n for (int j = 0; j < i; j++) {\n preSlopes[j] = startPoint.slopeTo(pointsCopy[j]);\n }\n\n for (int j = 0; j < pointsCopy.length - i - 1; j++) {\n nextPoints[j] = pointsCopy[i + j + 1];\n }\n //for binary search\n Arrays.sort(preSlopes);\n // sort after point by slope\n Arrays.sort(nextPoints, startPoint.slopeOrder());\n findLineSegments(preSlopes, startPoint, nextPoints);\n }\n }",
"private void obtainRefiningPoints(ArrayList<double[]> points2d_in, Matrix P, double gridSize_in, int gridCount_in[], ArrayList<double[]> points2d_out, ArrayList<double[]> points3d_out) {\n\t\tdouble fuzziness = 25;\n\t\tfor (int x = (gridCount_in[0] > 1 ? 1 : 0); x < gridCount_in[0]; x += 2) {\n\t\t\tfor (int y = (gridCount_in[1] > 1 ? 1 : 0); y < gridCount_in[1]; y += 2) {\n\t\t\t\tfor (int z = 1; z < gridCount_in[2]; z += 2) {\n\t\t\t\t\tMatrix x3D = new Matrix(4, 1);\n\t\t\t\t\tx3D.set(0, 0, x * gridSize_in);\n\t\t\t\t\tx3D.set(1, 0, y * gridSize_in);\n\t\t\t\t\tx3D.set(2, 0, z * gridSize_in);\n\t\t\t\t\tx3D.set(3, 0, 1.0);\n\t\t\t\t\tMatrix x2D = P.mul(x3D);\n\t\t\t\t\tx2D = x2D.div(x2D.get(2));\n\t\t\t\t\tdouble minDistance = 100000;\n\t\t\t\t\tint minDistanceIndex = 0;\n\t\t\t\t\tfor (int j=0;j<points2d_in.size();j++) {\n\t\t\t\t\t\tdouble distance = Math.pow(x2D.get(0) - points2d_in.get(j)[0], 2) + Math.pow(x2D.get(1) - points2d_in.get(j)[1], 2);\n\t\t\t\t\t\tif (distance < minDistance) {\n\t\t\t\t\t\t\tminDistance = distance;\n\t\t\t\t\t\t\tminDistanceIndex = j;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (minDistance < fuzziness) {\n\t\t\t\t\t\tpoints2d_out.add(points2d_in.get(minDistanceIndex));\n\t\t\t\t\t\tpoints3d_out.add(new Matrix(x3D).data);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void R_approxtest(double x[], double y[], int nxy,\n int method, double f)\n {\n int i;\n\n switch(method) {\n case 1: /* linear */\n break;\n case 2: /* constant */\n if(!DoubleVector.isFinite(f) || f < 0 || f > 1)\n throw new EvalException(\"approx(): invalid f value\");\n break;\n default:\n throw new EvalException(\"approx(): invalid interpolation method\");\n }\n /* check interpolation method */\n for(i = 0; i < nxy; i++)\n if(DoubleVector.isNA(x[i]) || DoubleVector.isNA(y[i]))\n throw new EvalException(\"approx(): attempted to interpolate NA values\");\n }",
"public abstract void constructHull();",
"public BruteCollinearPoints(Point[] points) {\n if (points == null) {\n throw new java.lang.IllegalArgumentException();\n }\n for (Point p: points) {\n if (p == null) {\n throw new java.lang.IllegalArgumentException();\n }\n }\n\n Point[] copyPoints = points.clone();\n Arrays.sort(copyPoints); //now copyPoints sorted by y-coordinate\n for (int i = 1; i < copyPoints.length; i++) {\n if (copyPoints[i-1].compareTo(copyPoints[i]) == 0) {\n throw new java.lang.IllegalArgumentException();\n }\n }\n\n for (int p = 0; p < copyPoints.length - 3; p++) {\n for (int q = p + 1; q < copyPoints.length - 2; q++) {\n for (int r = q + 1; r < copyPoints.length - 1; r++) {\n for (int s = r + 1; s < copyPoints.length; s++) {\n if (isCollinear(copyPoints[p], copyPoints[q], copyPoints[r], copyPoints[s])) {\n segments.add(new LineSegment(copyPoints[p], copyPoints[s]));\n }\n }\n }\n }\n }\n }",
"public org.drip.state.estimator.PredictorResponseWeightConstraint fundingForwardPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = forwardLabel();\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.forwardFundingPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"private Line linearRegression(ArrayList<Point> points) {\n double sumx = 0.0, sumz = 0.0, sumx2 = 0.0;\n\n for (int i = 0; i < points.size(); i++) {\n Point curPoint = points.get(i);\n sumx += curPoint.x;\n sumz += curPoint.z;\n sumx2 += curPoint.x*curPoint.x;\n }\n\n double xbar = sumx/((double) points.size());\n double zbar = sumz/((double) points.size());\n\n double xxbar = 0.0, xzbar = 0.0;\n\n for (int i = 0; i < points.size(); i++) {\n Point curPoint = points.get(i);\n xxbar += (curPoint.x - xbar) * (curPoint.x - xbar);\n xzbar += (curPoint.x - xbar) * (curPoint.z - zbar);\n }\n\n double slope = xzbar / xxbar;\n double intercept = zbar - slope * xbar;\n\n return new Line(slope, intercept);\n }",
"public void Setup(int nPoints, float swp, float shp, float ssu)\n {\n Random rnd = new Random();\n\n // Our collection of vertices\n vertices = new float[nPoints*VERTICES_PER_GLYPH*TOTAL_COMPONENT_COUNT];\n\n // Create the vertex data\n for(int i=0;i<nPoints;i++) {\n int offset_x = rnd.nextInt((int)swp);\n int offset_y = rnd.nextInt((int)shp);\n\n float llu = rnd.nextInt(2) * 0.5f;\n float llv = rnd.nextInt(2) * 0.5f;\n \n \n AddGlyph(offset_x, offset_y, ssu, llu, llv, 0.5f, 0.5f);\n }\n\n // The indices for all textured quads\n indices = new short[nPoints*3*TRIANGLES_PER_GLYPH]; \n int last = 0;\n for(int i=0;i<nPoints;i++) {\n // We need to set the new indices for the new quad\n indices[(i*6) + 0] = (short) (last + 0);\n indices[(i*6) + 1] = (short) (last + 1);\n indices[(i*6) + 2] = (short) (last + 2);\n indices[(i*6) + 3] = (short) (last + 0);\n indices[(i*6) + 4] = (short) (last + 2);\n indices[(i*6) + 5] = (short) (last + 3);\n\n // Our indices are connected to the vertices so we need to keep them\n // in the correct order.\n // normal quad = 0,1,2,0,2,3 so the next one will be 4,5,6,4,6,7\n last = last + 4;\n }\n\n // The vertex buffer.\n ByteBuffer bb = ByteBuffer.allocateDirect(vertices.length * BYTES_PER_FLOAT);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(vertices);\n vertexBuffer.position(0);\n\n // initialize byte buffer for the draw list\n ByteBuffer dlb = ByteBuffer.allocateDirect(indices.length * BYTES_PER_SHORT);\n dlb.order(ByteOrder.nativeOrder());\n indexBuffer = dlb.asShortBuffer();\n indexBuffer.put(indices);\n indexBuffer.position(0);\n\n }",
"public FastCollinearPoints(Point[] points) {\n if (points == null) throw new NullPointerException();\n this.points = new Point[points.length];\n for (int i = 0; i < points.length; i++) {\n if (points[i] == null) throw new NullPointerException();\n this.points[i] = points[i];\n }\n\n Arrays.sort(this.points);\n for (int i = 0; i < points.length - 1; i++) {\n if (this.points[i].compareTo(this.points[i+1]) == 0)\n throw new IllegalArgumentException();\n }\n lineSegments = new Point[points.length * points.length / 4][2];\n findAllLineSegments();\n }",
"public Matrix determineProjectionMatrix(ArrayList<double[]> corners, ArrayList<double[]> pointList2D, ArrayList<double[]> pointList3D) {\n\t\tMatrix projectionMatrix = new Matrix();\n\t\tArrayList<double[]> yzPlane2DPoints = new ArrayList<double[]>();\n\t\tArrayList<double[]> yzPlane3DPoints = new ArrayList<double[]>();\n\t\tArrayList<double[]> xzPlane2DPoints = new ArrayList<double[]>();\n\t\tArrayList<double[]> xzPlane3DPoints = new ArrayList<double[]>();\n\t\tfor (int i=0;i<pointList3D.size();i++) {\n\t\t\tif (pointList3D.get(i)[1] == 0) {\n\t\t\t\txzPlane2DPoints.add(pointList2D.get(i));\n\t\t\t\txzPlane3DPoints.add(pointList3D.get(i));\n\t\t\t} else if (pointList3D.get(i)[0] == 0) {\n\t\t\t\tyzPlane2DPoints.add(pointList2D.get(i));\n\t\t\t\tyzPlane3DPoints.add(pointList3D.get(i));\n\t\t\t}\n\t\t}\n\t\tArrayList<double[]> final2D = new ArrayList<double[]>();\n\t\tArrayList<double[]> final3D = new ArrayList<double[]>();\n\t\tif ((xzPlane2DPoints.size() >= 4 && yzPlane2DPoints.size() >= 4)) {\n\t\t\tdouble gridSize = 0.5;\n\t\t\tdouble max_u, max_v;\n\t\t\tint[] gridCount = new int[3];\n\t\t\tif (yzPlane2DPoints.size() >= 4) {\n\t\t\t\tMatrix P_YZ = performPlanarCalibration(yzPlane2DPoints, yzPlane3DPoints, 0);\n\t\t\t\tmax_u = 0;\n\t\t\t\tmax_v = 0;\n\t\t\t\tfor (int i = 0; i < yzPlane3DPoints.size(); i++) {\n\t\t\t\t\tmax_u = Math.max(yzPlane3DPoints.get(i)[1], max_u);\n\t\t\t\t\tmax_v = Math.max(yzPlane3DPoints.get(i)[2], max_v);\n\t\t\t\t}\n\t\t\t\tgridCount[0] = 1;\n\t\t\t\tgridCount[1] = (int) Math.floor(max_u / gridSize + 1.5);\n\t\t\t\tgridCount[2] = (int) Math.floor(max_v / gridSize + 1.5);\n\t\t\t\tobtainRefiningPoints(corners, P_YZ, gridSize, gridCount, final2D, final3D);\n\t\t\t}\n\t\t\tif (xzPlane2DPoints.size() >= 4) {\n\t\t\t\tMatrix P_XZ = performPlanarCalibration(xzPlane2DPoints, xzPlane3DPoints, 1);\n\t\t\t\tmax_u = 0;\n\t\t\t\tmax_v = 0;\n\t\t\t\tfor (int i = 0; i < (int) xzPlane3DPoints.size(); i++) {\n\t\t\t\t\tmax_u = Math.max(xzPlane3DPoints.get(i)[0], max_u);\n\t\t\t\t\tmax_v = Math.max(xzPlane3DPoints.get(i)[2], max_v);\n\t\t\t\t}\n\t\t\t\tgridCount[0] = (int) Math.floor(max_u / gridSize + 1.5);\n\t\t\t\tgridCount[1] = 1;\n\t\t\t\tgridCount[2] = (int) Math.floor(max_v / gridSize + 1.5);\n\t\t\t\tobtainRefiningPoints(corners, P_XZ, gridSize, gridCount, final2D, final3D);\n\t\t\t}\n\t\t}\n\t\tcorners.clear();\n\t\tcorners.addAll(final2D);\n\t\tpointList2D.clear();\n\t\tpointList2D.addAll(final2D);\n\t\tpointList3D.clear();\n\t\tpointList3D.addAll(final3D);\n\t\treturn performCalibration(final2D, final3D);\n\t}",
"private double[] quadstepX(DoubleToDouble f, double y0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] x = {(a + c) / 2, (c + b) / 2};\n double[] y = f.evalDouble(x, y0, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = y[0];\n double fe = y[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepX(f, y0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepX(f, y0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }",
"public static Spliterator.OfDouble spliterator(double[] paramArrayOfdouble, int paramInt1, int paramInt2, int paramInt3) {\n/* 371 */ checkFromToBounds(((double[])Objects.requireNonNull((T)paramArrayOfdouble)).length, paramInt1, paramInt2);\n/* 372 */ return new DoubleArraySpliterator(paramArrayOfdouble, paramInt1, paramInt2, paramInt3);\n/* */ }",
"private void internalSetPoints(List<Point3D> points) {\n if (points.size() < MINIMUM_SIZE) {\n throw new IllegalArgumentException();\n }\n mPoints = points;\n }",
"private Matrix performCalibration(ArrayList<double[]> points2d, ArrayList<double[]> points3d) {\n\n\t\tSystem.out.println(\"out\");\n\t\t//create A, Chapter 7, pg 5\n\t\tdouble [] m = new double[2*points3d.size()*12];\n\n\t\tint width = 12;\n\t\tfor(int y = 0; y<points3d.size()*2; y++){\n\t\t\tfor(int x=0; x<width; x++){\n\t\t\t\tif((y%2)==0){\n\t\t\t\t\tif(x>=0 && x<4) {\n\t\t\t\t\t\t/*System.out.println(\"X \" + x);\n\t\t\t\t\t\tSystem.out.println(\"Y \" + y);\n\t\t\t\t\t\tSystem.out.println(\"SZ \" + points3d.size());\n\t\t\t\t\t\tif(x == 0 && y ==24){\n\t\t\t\t\t\t\tSystem.out.println(\"BREAK\");\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\tm[y * width + x] = points3d.get(y/2)[x];\n\t\t\t\t\t}\n\t\t\t\t\telse if(x>3 && x<8)\n\t\t\t\t\t\tm[y*width+x] = 0;\n\t\t\t\t\telse if(x>7 && x<12)\n\t\t\t\t\t\tm[y*width+x] = -(points3d.get(y/2)[x-8] * points2d.get(y/2)[0]);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(x>=0 && x<4)\n\t\t\t\t\t\tm[y*width+x] = 0;\n\t\t\t\t\telse if(x>3 && x<8)\n\t\t\t\t\t\tm[y*width+x] = points3d.get(y/2)[x-4];\n\t\t\t\t\telse if(x>7 && x<12)\n\t\t\t\t\t\tm[y*width+x] = -(points3d.get(y/2)[x-8] * points2d.get(y/2)[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"Finish\");\n\t\t//create matrix A\n\t\tMatrix A = new Matrix(points2d.size() * 2, 12, m);//rows,columns\n\n\t\tMatrix U = new Matrix ();\n\t\tMatrix D = new Matrix ();\n\t\tMatrix V = new Matrix ();\n\n\t\t//perform SVD2 on A\n\t\tA.SVD2(U,D,V);\n\n\t\tdouble[] rv = new double[12];\n\t\tMatrix p = new Matrix();\n\t\tV.getCol(V.cols-1,p);\n\n\t\tfor(int i=0; i<12; i++){\n\t\t\trv[i] = p.get(i,0)/p.get(11,0);\n\t\t}\n\n\t\treturn new Matrix(3, 4, rv);\n\t}",
"public static void R_approx(double x[], double y[], int nxy, double xout[], int nout,\n int method, double yleft, double yright, double f)\n {\n int i;\n appr_meth M = new appr_meth(); // {0.0, 0.0, 0.0, 0.0, 0}; /* -Wall */\n\n /* check interpolation method */\n\n switch(method) {\n case 1: /* linear */\n break;\n case 2: /* constant */\n if(!DoubleVector.isFinite(f) || f < 0 || f > 1)\n throw new EvalException(\"approx(): invalid f value\");\n M.f2 = f;\n M.f1 = 1 - f;\n break;\n default:\n throw new EvalException(\"approx(): invalid interpolation method\");\n }\n\n for(i = 0 ; i < nxy ; i++)\n if(DoubleVector.isNA(x[i]) || DoubleVector.isNA(y[i]))\n throw new EvalException(\"approx(): attempted to interpolate NA values\");\n\n M.kind = method;\n M.ylow = yleft;\n M.yhigh = yright;\n\n for(i = 0 ; i < nout; i++)\n if(!DoubleVector.isNA(xout[i])) \n xout[i] = approx1(xout[i], x, y, nxy, M);\n }",
"public Question createQuestion(String description, String className, String answer, String points) throws IOException\n {\n try {\n int nbPoints = Integer.parseInt(points);\n return new Question(description, AnswerFactory.getInstance().buildAnswer(className, answer), nbPoints);\n }\n catch (NumberFormatException e) {\n throw new IOException(\"Bad format\");\n }\n }",
"private double[] quadstepY(DoubleToDouble f, double x0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] y = {(a + c) / 2, (c + b) / 2};\n double[] v = f.evalDouble(x0, y, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = v[0];\n double fe = v[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepY(f, x0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepY(f, x0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }",
"private static SbVec4f \ngenerateCoord(Object userData,\n final SbVec3f point,\n final SbVec3f normal )\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureCoordinateBundle tcb = (SoTextureCoordinateBundle ) userData;\n\n final SbVec4f result = new SbVec4f();\n\n // The S and T coordinates of the result are the dot products of\n // the point with sVector and tVector. Since this computation is\n // done very frequently (during primitive generation for picking\n // on vertex-based shapes), we can avoid some operations that\n // result in 0 by doing the dot products explicitly.\n int sDim = tcb.coordS, tDim = tcb.coordT;\n\n\n result.setValue(point.getValueRead()[sDim] * tcb.sVector.getValueRead()[sDim] + tcb.sVector.getValueRead()[3],\n point.getValueRead()[tDim] * tcb.tVector.getValueRead()[tDim] + tcb.tVector.getValueRead()[3],\n 0.0f,\n 1.0f);\n\n return result;\n}",
"public NurbsSurface(String stepstring, NurbsPoint[] cp) {\n always_evaluate = false;\n\n String s1, s2;\n int pos, pos2;\n int segments = 0;\n int points2 = 0;\n surface_type = 3;\n\n // find number of segments\n\n pos = stepstring.indexOf(\"KNOTS\");\n s1 = stepstring.substring(pos);\n pos = s1.indexOf(\"(\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\"(\");\n pos2 = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1, pos2);\n\n pos = s1.indexOf(\",\");\n do {\n segments++;\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\",\");\n } while (pos >= 0);\n\n segments = segments + 7;\n\n System.out.println(\"nr of segment = \" + segments);\n\n // find number of points\n\n pos = stepstring.indexOf(\"KNOTS\");\n s1 = stepstring.substring(pos);\n pos = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\"(\");\n pos2 = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1, pos2);\n pos = s1.indexOf(\",\");\n do {\n points2++;\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\",\");\n } while (pos >= 0);\n\n points2 = points2 + 7;\n\n System.out.println(\"nr of points = \" + points2);\n\n // read knot vectors\n\n pos = stepstring.indexOf(\"KNOTS\");\n s1 = stepstring.substring(pos);\n pos = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\"(\");\n s1 = s1.substring(pos + 1);\n\n u = new double[100];\n u[0] = 0;\n u[1] = 0;\n u[2] = 0;\n\n for (int i = 3; i < segments - 3; i++) {\n pos = Math.min(s1.indexOf(\",\"), s1.indexOf(\")\"));\n u[i] = Double.parseDouble((s1.substring(0, pos)).trim());\n s1 = s1.substring(pos + 1);\n }\n\n u[segments - 3] = u[segments - 4];\n u[segments - 2] = u[segments - 4];\n u[segments - 1] = u[segments - 4];\n\n for (int i = 0; i < segments; i++) {\n System.out.println(\"u[\" + i + \"] = \" + u[i]);\n }\n\n pos = stepstring.indexOf(\"KNOTS\");\n s1 = stepstring.substring(pos);\n pos = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\"(\");\n s1 = s1.substring(pos + 1);\n\n v = new double[100];\n v[0] = 0;\n v[1] = 0;\n v[2] = 0;\n\n for (int i = 3; i < points2 - 3; i++) {\n pos = Math.min(s1.indexOf(\",\"), s1.indexOf(\")\"));\n v[i] = Double.parseDouble((s1.substring(0, pos)).trim());\n s1 = s1.substring(pos + 1);\n }\n\n v[points2 - 3] = u[points2 - 4];\n v[points2 - 2] = u[points2 - 4];\n v[points2 - 1] = u[points2 - 4];\n\n for (int i = 0; i < points2; i++) {\n System.out.println(\"v[\" + i + \"] = \" + v[i]);\n }\n\n // read surface points\n\n nr_of_segments = segments;\n points_per_segment = points2;\n\n points = new NurbsPoint[nr_of_segments][points_per_segment];\n\n for (int i = 0; i < nr_of_segments; i++)\n for (int j = 0; j < points_per_segment; j++)\n points[i][j] = new NurbsPoint(0, 0, 0);\n\n pos = stepstring.indexOf(\"B_SPLINE_SURFACE\");\n s1 = stepstring.substring(pos);\n pos = s1.indexOf(\"(\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\"(\");\n s1 = s1.substring(pos + 1);\n\n int isdeck = stepstring.indexOf(\"deck\");\n\n for (int i = 2; i < nr_of_segments - 2; i++) {\n pos = s1.indexOf(\"(\");\n s1 = s1.substring(pos + 1);\n\n for (int j = 2; j < points_per_segment - 2; j++) {\n pos = s1.indexOf(\"#\");\n pos2 = Math.min(s1.indexOf(\",\"), s1.indexOf(\")\"));\n\n points[i][j] = cp[Integer.parseInt((s1.substring(pos + 1, pos2)).trim())];\n\n System.out.println(\"points[\" + i + \"][\" + j + \"] = \" + points[i][j].x);\n\n s1 = s1.substring(pos2 + 1);\n }\n }\n\n // set global variables\n if (u[4] == u[5]) surface_type = 1;\n\n k = 3;\n step = 0.2;\n evaluated_points = new NurbsPoint[(int) ((double) nr_of_segments / step)][(int) ((double) points_per_segment / step)];\n }",
"@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }",
"public double interpolate(double xx1, double xx2, double xx3, double xx4) {\n\n\t\tfinal double[][][] yTempml = new double[this.mPoints][this.lPoints][this.kPoints];\n\t\tfor (int i = 0; i < this.nPoints; i++) {\n\t\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\t\tfor (int k = 0; k < this.lPoints; k++)\n\t\t\t\t\tfor (int l = 0; l < this.kPoints; l++)\n\t\t\t\t\t\tyTempml[j][k][l] = y[i][j][k][l];\n\t\t\tthis.tcsn[i].resetData(x2, x3, x4, yTempml);\n\t\t}\n\t\tfinal double[] yTempm = new double[nPoints];\n\n\t\tfor (int i = 0; i < nPoints; i++) {\n\t\t\tif (this.derivCalculated)\n\t\t\t\tthis.tcsn[i].setDeriv(d2ydx2[i]);\n\t\t\tyTempm[i] = this.tcsn[i].interpolate(xx2, xx3, xx4);\n\t\t\tif (!this.derivCalculated)\n\t\t\t\td2ydx2[i] = this.tcsn[i].getDeriv();\n\t\t}\n\t\tderivCalculated = true;\n\n\t\tthis.csm.resetData(x1, yTempm);\n\t\treturn this.csm.interpolate(xx1);\n\t}",
"@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public RadialDistortion estimate() throws LockedException,\n NotReadyException, RadialDistortionEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n try {\n mLocked = true;\n if (mListener != null) {\n mListener.onEstimateStart(this);\n }\n\n final int nPoints = mDistortedPoints.size();\n\n int numRows;\n if (isLMSESolutionAllowed()) {\n // initialize new matrix having two rows per point\n numRows = 2 * nPoints;\n } else {\n // when LMSE is not allowed, restrict matrix to two rows (minimum\n // value required for a solution)\n numRows = 2 * getMinNumberOfMatchedPoints();\n }\n\n final Matrix aMatrix = new Matrix(numRows, mNumKParams);\n final double[] b = new double[numRows];\n\n final Iterator<Point2D> iteratorDistorted = mDistortedPoints.iterator();\n final Iterator<Point2D> iteratorUndistorted =\n mUndistortedPoints.iterator();\n\n Point2D distorted;\n Point2D undistorted;\n int counter = 0;\n\n // undistorted normalized homogeneous coordinates\n double uNormHomX;\n double uNormHomY;\n double uNormHomW;\n // undistorted normalized inhomogeneous coordinates\n double uNormInhomX;\n double uNormInhomY;\n // undistorted denormalized homogeneous coordinates\n double uDenormHomX;\n double uDenormHomY;\n double uDenormHomW;\n // undistorted denormalized inhomogeneous coordinates\n double uDenormInhomX;\n double uDenormInhomY;\n // distorted inhomogeneous coordinates\n double dInhomX;\n double dInhomY;\n double rowNormX;\n double rowNormY;\n\n // radial distortion center\n double centerX = 0.0;\n double centerY = 0.0;\n if (mDistortionCenter != null) {\n centerX = mDistortionCenter.getInhomX();\n centerY = mDistortionCenter.getInhomY();\n }\n\n // radial distance of undistorted normalized (calibration independent)\n // coordinates\n double r2;\n double a;\n double value;\n\n while (iteratorDistorted.hasNext() && iteratorUndistorted.hasNext()) {\n distorted = iteratorDistorted.next();\n undistorted = iteratorUndistorted.next();\n\n undistorted.normalize();\n\n uDenormHomX = undistorted.getHomX();\n uDenormHomY = undistorted.getHomY();\n uDenormHomW = undistorted.getHomW();\n\n uDenormInhomX = uDenormHomX / uDenormHomW;\n uDenormInhomY = uDenormHomY / uDenormHomW;\n\n // multiply intrinsic parameters by undistorted point\n uNormHomX = mKinv.getElementAt(0, 0) * uDenormHomX +\n mKinv.getElementAt(0, 1) * uDenormHomY +\n mKinv.getElementAt(0, 2) * uDenormHomW;\n uNormHomY = mKinv.getElementAt(1, 0) * uDenormHomX +\n mKinv.getElementAt(1, 1) * uDenormHomY +\n mKinv.getElementAt(1, 2) * uDenormHomW;\n uNormHomW = mKinv.getElementAt(2, 0) * uDenormHomX +\n mKinv.getElementAt(2, 1) * uDenormHomY +\n mKinv.getElementAt(2, 2) * uDenormHomW;\n\n uNormInhomX = uNormHomX / uNormHomW;\n uNormInhomY = uNormHomY / uNormHomW;\n\n r2 = uNormInhomX * uNormInhomX + uNormInhomY * uNormInhomY;\n\n dInhomX = distorted.getInhomX();\n dInhomY = distorted.getInhomY();\n\n a = 1.0;\n rowNormX = rowNormY = 0.0;\n for (int i = 0; i < mNumKParams; i++) {\n a *= r2;\n\n // x and y coordinates generate linear dependent equations, for\n // that reason we need more than one point\n\n // x coordinates\n value = (uDenormInhomX - centerX) * a;\n aMatrix.setElementAt(2 * counter, i, value);\n\n rowNormX += Math.pow(value, 2.0);\n\n // y coordinates\n value = (uDenormInhomY - centerY) * a;\n aMatrix.setElementAt(2 * counter + 1, i, value);\n\n rowNormY += Math.pow(value, 2.0);\n }\n\n // x coordinates\n value = dInhomX - uDenormInhomX;\n b[2 * counter] = value;\n\n rowNormX += Math.pow(value, 2.0);\n\n // y coordinates\n value = dInhomY - uDenormInhomY;\n b[2 * counter + 1] = value;\n\n rowNormY += Math.pow(value, 2.0);\n\n // normalize rows to increase accuracy\n for (int i = 0; i < mNumKParams; i++) {\n aMatrix.setElementAt(2 * counter, i,\n aMatrix.getElementAt(2 * counter, i) / rowNormX);\n aMatrix.setElementAt(2 * counter + 1, i,\n aMatrix.getElementAt(2 * counter + 1, i) / rowNormY);\n }\n\n b[2 * counter] /= rowNormX;\n b[2 * counter + 1] /= rowNormY;\n\n counter++;\n\n if (!isLMSESolutionAllowed() && (counter >= getMinNumberOfMatchedPoints())) {\n break;\n }\n }\n\n final double[] params = Utils.solve(aMatrix, b);\n\n final RadialDistortion distortion =\n new RadialDistortion(params, mDistortionCenter,\n mHorizontalFocalLength, mVerticalFocalLength, mSkew);\n\n if (mListener != null) {\n mListener.onEstimateEnd(this);\n }\n\n return distortion;\n } catch (final AlgebraException | RadialDistortionException e) {\n throw new RadialDistortionEstimatorException(e);\n } finally {\n mLocked = false;\n }\n }",
"@Test\n public void testConstructor() {\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(0, 1, 0),\n new Point3D(1, 0, 0), new Point3D(-1, 1, 1));\n fail(\"Constructed a polygon with wrong order of vertices\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC03: Not in the same plane\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 2, 2));\n fail(\"Constructed a polygon with vertices that are not in the same plane\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC04: Concave quadrangular\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0.5, 0.25, 0.5));\n fail(\"Constructed a concave polygon\");\n } catch (IllegalArgumentException e) {\n }\n\n // =============== Boundary Values Tests ==================\n\n // TC10: Vertex on a side of a quadrangular\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 0.5, 0.5));\n fail(\"Constructed a polygon with vertix on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC11: Last point = first point\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 0, 1));\n fail(\"Constructed a polygon with vertice on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC12: Colocated points\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 1, 0));\n fail(\"Constructed a polygon with vertice on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n }",
"public MetricTransformation2DRobustEstimator(List<Point2D> inputPoints,\n List<Point2D> outputPoints) {\n this();\n internalSetPoints(inputPoints, outputPoints);\n }",
"private void process(ArrayList<Float> points) {\n downsample(3, points);\n vertices = new Vector3f[nrows * ncols];\n texcoord = BufferUtils.createFloatBuffer(2 * nrows * ncols);\n indexes = BufferUtils.createIntBuffer(6 * (nrows - 1) * (ncols - 1));\n Vector3f[][][] fnormals = new Vector3f[nrows - 1][ncols - 1][2];\n normals = new Vector3f[nrows * ncols];\n float x, z;\n\n System.out.println(\"Processing \" + nrows + \"x\" + ncols + \" terrain...\");\n\n // First make vertices + texcoords\n x = 0.0f;\n for (int row = 0; row < nrows; row++) {\n z = 0.0f;\n for (int col = 0; col < ncols; col++) {\n vertices[(row * ncols) + col] = new Vector3f(x, data[row][col], z);\n texcoord.put(col / (float) ncols);\n texcoord.put(row / (float) nrows);\n z += cellsize;\n }\n x += cellsize;\n }\n // Indexes + face normals\n System.out.println(\"Populating faces...\");\n for (int row = 0; row < (nrows - 1); row++) {\n for (int col = 0; col < (ncols - 1); col++) {\n int base = 6 * ((row * (ncols - 1)) + col);\n // Triangle 1\n indexes.put((row * ncols) + col); // a\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col); // c\n // Triangle 2\n indexes.put(((row + 1) * ncols) + col); // c\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col + 1); // d\n // Faces\n base = (row * ncols) + col;\n Vector3f a = vertices[base];\n Vector3f b = vertices[base + 1];\n Vector3f c = vertices[base + ncols];\n Vector3f d = vertices[base + ncols + 1];\n Vector3f ba = b.subtract(a);\n Vector3f ca = c.subtract(a);\n Vector3f bc = b.subtract(c);\n Vector3f dc = d.subtract(c);\n // ormal.subtractLocal(pointa).crossLocal(pointc.x - pointa.x,\n // pointc.y - pointa.y, pointc.z - pointa.z);\n fnormals[row][col][0] = ba.crossLocal(ca).normalizeLocal();\n fnormals[row][col][1] = bc.crossLocal(dc).normalizeLocal();\n // Triangle ta = new Triangle(a,b,c);\n // Triangle tb = new Triangle(c,b,d);\n }\n }\n System.out.println(\"Calculating face normals...\");\n // Vector normals\n Vector3f t;\n // Corners\n // TL\n t = fnormals[0][0][0].add(fnormals[0][0][1]);\n t.normalizeLocal();\n normals[0] = t;\n // TR\n t = fnormals[0][ncols - 2][0].add(fnormals[0][ncols - 2][1]);\n t.normalizeLocal();\n normals[ncols - 1] = t;\n // BL\n t = fnormals[nrows - 2][0][0].add(fnormals[nrows - 2][0][1]);\n t.normalizeLocal();\n normals[(nrows - 1) * ncols] = t;\n // BR\n t = fnormals[nrows - 2][ncols - 2][0].add(fnormals[nrows - 2][ncols - 2][1]);\n t.normalizeLocal();\n normals[(nrows * ncols) - 1] = t;\n // Do first row and last row\n for (int col = 1; col < (ncols - 1); col++) {\n // First row\n t = fnormals[0][col - 1][0].add(fnormals[0][col - 1][1]);\n t.addLocal(fnormals[0][col][0]);\n t.addLocal(fnormals[0][col][1]);\n t.normalizeLocal();\n normals[col] = t;\n // Last row\n t = fnormals[nrows - 2][col - 1][0].add(fnormals[nrows - 2][col - 1][1]);\n t.addLocal(fnormals[nrows - 2][col][0]);\n t.addLocal(fnormals[nrows - 2][col][1]);\n t.normalizeLocal();\n normals[((nrows - 1) * ncols) + col] = t;\n }\n // Do first and last column\n for (int row = 1; row < (nrows - 1); row++) {\n // First col\n t = fnormals[row - 1][0][0].add(fnormals[row - 1][0][1]);\n t.addLocal(fnormals[row][0][0]);\n t.addLocal(fnormals[row][0][1]);\n t.normalizeLocal();\n normals[row * ncols] = t;\n // Last col\n t = fnormals[row - 1][ncols - 2][0].add(fnormals[row - 1][ncols - 2][1]);\n t.addLocal(fnormals[row][ncols - 2][0]);\n t.addLocal(fnormals[row][ncols - 2][1]);\n t.normalizeLocal();\n normals[(row * ncols) + (ncols - 1)] = t;\n // Centre cols\n for (int col = 1; col < (ncols - 1); col++) {\n t = fnormals[row - 1][col - 1][0].add(fnormals[row - 1][col - 1][1]);\n t.addLocal(fnormals[row - 1][col][0]);\n t.addLocal(fnormals[row - 1][col][1]);\n t.addLocal(fnormals[row][col - 1][0]);\n t.addLocal(fnormals[row][col - 1][1]);\n t.addLocal(fnormals[row][col][0]);\n t.addLocal(fnormals[row][col][1]);\n t.normalizeLocal();\n normals[(row * ncols) + col] = t;\n }\n }\n System.out.println(\"Processing finished...\");\n setBuffer(VertexBuffer.Type.Position, 3, BufferUtils.createFloatBuffer(vertices));\n setBuffer(VertexBuffer.Type.TexCoord, 2, texcoord);\n setBuffer(VertexBuffer.Type.Index, 3, indexes);\n setBuffer(VertexBuffer.Type.Normal, 3, BufferUtils.createFloatBuffer(normals));\n updateBound();\n System.out.println(\"NE corner: \" + vertices[vertices.length - 1].mult(0.006f));\n // Hint to renderer that we don't plan on modifying the terrain.\n this.setStatic();\n }",
"public void transform(double[][] m, double[] t) {\n int i = 0;\n int j = 0;\n double u = 0.0;\n double v = 0.0;\n NurbsPoint p1, p2, p3, p4;\n double tx, ty, tz;\n\n // transform control points\n System.out.println(\"Transforming surface\");\n\n for (i = 0; i < nr_of_segments; i++) {\n for (j = 0; j < points_per_segment; j++) {\n p1 = points[i][j];\n\n tx = m[0][0] * p1.x + m[0][1] * p1.y + m[0][2] * p1.z + t[0];\n ty = m[1][0] * p1.x + m[1][1] * p1.y + m[1][2] * p1.z + t[1];\n tz = m[2][0] * p1.x + m[2][1] * p1.y + m[2][2] * p1.z + t[2];\n\n points[i][j] = new NurbsPoint(tx, ty, tz);\n }\n }\n\n // transform evaluated points\n\n double epsilon = 0.001;\n\n for (i = 0; i < nr_of_segments; i++) {\n for (u = 0.0; u < 1.0 - epsilon; u = u + step) {\n for (j = 0; j < points_per_segment; j++) {\n for (v = 0.0; v < 1.0 - epsilon; v = v + step) {\n p1 = evaluated_points[(int) (((i + u) / step) + epsilon)][(int) (((j + v) / step) + epsilon)];\n\n tx = m[0][0] * p1.x + m[0][1] * p1.y + m[0][2] * p1.z + t[0];\n ty = m[1][0] * p1.x + m[1][1] * p1.y + m[1][2] * p1.z + t[1];\n tz = m[2][0] * p1.x + m[2][1] * p1.y + m[2][2] * p1.z + t[2];\n\n evaluated_points[(int) (((i + u) / step) + epsilon)][(int) (((j + v) / step)\n + epsilon)] = new NurbsPoint(tx, ty, tz);\n }\n }\n }\n }\n\n }",
"@Override\n protected Double[] getCorners(){\n return new Double[]{\n //leftmost point\n getXPos(), getYPos(),\n //rightmost point\n getXPos() + getWidth(), getYPos(),\n //middle point\n getXPos() + getWidth() / 2, getYPos() + getHeight() * getThirdTriangleYPoint(pointUp)\n };\n }",
"public static double[][] generateRandomPoints(Envelope env1, int iPoints, int iRandomSeed){\n\t\t\n\t\t//rgdBounds = polygon bounds\n\t\t//dLat = latitude of sampling point\n\t\t//dLng = longitude of sampling point\n\t\t//env2 = sampling bounds in radians\n\t\t//d2 = number of degrees between upper and lower bounds\n\t\t//d3 = cos(minimum latitude)\n\t\t//d4 = cos(maximum latitude) - cos(minimum latitude)\n\t\t//rgdOutput = output\n\t\t//rnd1 = random number generator\n\t\t\n\t\tdouble dLat; double dLng; double d2 = 0; double d3 = 0; double d4 = 0;\n\t\tdouble rgdOutput[][];\n\t\tEnvelope env2;\n\t\tRandom rnd1;\n\t\t\n\t\t//initializing matrix of bounds\n\t\tenv2 = new Envelope(env1.getMinX()*DEG_TO_RAD,env1.getMaxX()*DEG_TO_RAD,env1.getMinY()*DEG_TO_RAD,env1.getMaxY()*DEG_TO_RAD);\n\t\t\n\t\t//loading intermediate values\n\t\td2 = env2.getMaxX()-env2.getMinX();\n\t\td3 = cos(env2.getMinY() + PI/2.); \n\t\td4 = cos(env2.getMaxY() + PI/2.) - d3;\n\t\t\t\n\t\t//initializing output\n\t\trgdOutput = new double[iPoints][2];\n\t\trnd1 = new Random(iRandomSeed);\n\t\tfor(int i=0;i<iPoints;i++){\n\t\t\n\t\t\t//loading Lat and Lng\n\t\t\tdLng = rnd1.nextDouble()*d2 + env2.getMinX();\n\t\t\tdLng = RAD_TO_DEG*dLng;\n\t\t\tdLat = acos(d3+d4*rnd1.nextDouble());\n\t\t\tdLat = RAD_TO_DEG*dLat-90.;\n\t\t\n\t\t\t//outputting results\n\t\t\trgdOutput[i][0]=dLat;\n\t\t\trgdOutput[i][1]=dLng;\n\t\t}\n\t\t\t\n\t\t//returning result\n\t\treturn rgdOutput;\t\n\t}"
] | [
"0.7282746",
"0.69708234",
"0.68200606",
"0.6535223",
"0.6518758",
"0.6377748",
"0.6325459",
"0.5666203",
"0.5283425",
"0.51388514",
"0.5114672",
"0.5076479",
"0.5004864",
"0.500467",
"0.5004067",
"0.49957326",
"0.4901855",
"0.4859033",
"0.48303407",
"0.4796994",
"0.47922328",
"0.47892037",
"0.47842374",
"0.47775236",
"0.47699094",
"0.4719727",
"0.47040182",
"0.46447673",
"0.46260852",
"0.45981887",
"0.45614925",
"0.45555314",
"0.45522162",
"0.45467415",
"0.45455927",
"0.451555",
"0.45024392",
"0.4490354",
"0.44734073",
"0.44529724",
"0.44450703",
"0.44233245",
"0.44224158",
"0.43133846",
"0.43077162",
"0.4278845",
"0.42646667",
"0.425281",
"0.42368168",
"0.42040998",
"0.4198248",
"0.41954824",
"0.41877252",
"0.41802898",
"0.4177202",
"0.41699558",
"0.4166031",
"0.4162858",
"0.41414654",
"0.41414455",
"0.41399556",
"0.41311023",
"0.4083385",
"0.40817326",
"0.40640593",
"0.40615913",
"0.40598428",
"0.40571034",
"0.4054531",
"0.40508676",
"0.4014963",
"0.40110964",
"0.39958942",
"0.39943215",
"0.39868647",
"0.3981081",
"0.3976258",
"0.3974583",
"0.39706165",
"0.3962631",
"0.3951997",
"0.39466625",
"0.39464554",
"0.3944947",
"0.3944384",
"0.39430025",
"0.39419585",
"0.39362404",
"0.39321214",
"0.3931341",
"0.3926837",
"0.39239547",
"0.39177322",
"0.3917479",
"0.39164287",
"0.39052427",
"0.3904465",
"0.39032376",
"0.39020726",
"0.38984343"
] | 0.7122663 | 1 |
Creates a quadric robust estimator based on 3D point samples and using provided listener. | public static QuadricRobustEstimator create(
QuadricRobustEstimatorListener listener,
RobustEstimatorMethod method) {
switch (method) {
case LMedS:
return new LMedSQuadricRobustEstimator(listener);
case MSAC:
return new MSACQuadricRobustEstimator(listener);
case PROSAC:
return new PROSACQuadricRobustEstimator(listener);
case PROMedS:
return new PROMedSQuadricRobustEstimator(listener);
case RANSAC:
default:
return new RANSACQuadricRobustEstimator(listener);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points) {\n return create(listener, points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores) {\n return create(listener, points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores) {\n return create(listener, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener) {\n return create(listener, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points, \n qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points, \n qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores) {\n return create(points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public Point3D triangulate() throws LockedException, NotReadyException,\n RobustEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n final LMedSRobustEstimator<Point3D> innerEstimator =\n new LMedSRobustEstimator<>(\n new LMedSRobustEstimatorListener<Point3D>() {\n\n // point to be reused when computing residuals\n private final Point2D mTestPoint = Point2D.create(\n CoordinatesType.HOMOGENEOUS_COORDINATES);\n\n // non-robust 3D point triangulator\n private final SinglePoint3DTriangulator mTriangulator =\n SinglePoint3DTriangulator.create(mUseHomogeneousSolution ?\n Point3DTriangulatorType.LMSE_HOMOGENEOUS_TRIANGULATOR :\n Point3DTriangulatorType.LMSE_INHOMOGENEOUS_TRIANGULATOR);\n\n // subset of 2D points\n private final List<Point2D> mSubsetPoints = new ArrayList<>();\n\n // subst of cameras\n private final List<PinholeCamera> mSubsetCameras =\n new ArrayList<>();\n\n @Override\n public int getTotalSamples() {\n return mPoints2D.size();\n }\n\n @Override\n public int getSubsetSize() {\n return MIN_REQUIRED_VIEWS;\n }\n\n @Override\n public void estimatePreliminarSolutions(final int[] samplesIndices,\n final List<Point3D> solutions) {\n mSubsetPoints.clear();\n mSubsetPoints.add(mPoints2D.get(samplesIndices[0]));\n mSubsetPoints.add(mPoints2D.get(samplesIndices[1]));\n\n mSubsetCameras.clear();\n mSubsetCameras.add(mCameras.get(samplesIndices[0]));\n mSubsetCameras.add(mCameras.get(samplesIndices[1]));\n\n try {\n mTriangulator.setPointsAndCameras(mSubsetPoints,\n mSubsetCameras);\n final Point3D triangulated = mTriangulator.triangulate();\n solutions.add(triangulated);\n } catch (final Exception e) {\n // if anything fails, no solution is added\n }\n }\n\n @Override\n public double computeResidual(final Point3D currentEstimation, final int i) {\n final Point2D point2D = mPoints2D.get(i);\n final PinholeCamera camera = mCameras.get(i);\n\n // project estimated point with camera\n camera.project(currentEstimation, mTestPoint);\n\n // return distance of projected point respect to the original one\n // as a residual\n return mTestPoint.distanceTo(point2D);\n }\n\n @Override\n public boolean isReady() {\n return LMedSRobustSinglePoint3DTriangulator.this.isReady();\n }\n\n @Override\n public void onEstimateStart(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateStart(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateEnd(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateEnd(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateNextIteration(\n final RobustEstimator<Point3D> estimator, final int iteration) {\n if (mListener != null) {\n mListener.onTriangulateNextIteration(\n LMedSRobustSinglePoint3DTriangulator.this,\n iteration);\n }\n }\n\n @Override\n public void onEstimateProgressChange(\n final RobustEstimator<Point3D> estimator, final float progress) {\n if (mListener != null) {\n mListener.onTriangulateProgressChange(\n LMedSRobustSinglePoint3DTriangulator.this,\n progress);\n }\n }\n });\n\n try {\n mLocked = true;\n innerEstimator.setConfidence(mConfidence);\n innerEstimator.setMaxIterations(mMaxIterations);\n innerEstimator.setProgressDelta(mProgressDelta);\n innerEstimator.setStopThreshold(mStopThreshold);\n return innerEstimator.estimate();\n } catch (final com.irurueta.numerical.LockedException e) {\n throw new LockedException(e);\n } catch (final com.irurueta.numerical.NotReadyException e) {\n throw new NotReadyException(e);\n } finally {\n mLocked = false;\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points) {\n return create(points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create() {\n return create(DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores) {\n return create(listener, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(listener, qualityScores, weakMinimumSizeAllowed, \n DEFAULT_ROBUST_METHOD);\n }",
"public interface GestureRecorderListener {\n\n void onGestureRecorded(List<float[]> values);\n\n IBinder getBinder();\n\n void startClassification(String defaultGesture);\n}",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints) {\n return create(listener, inputPoints, outputPoints, \n DEFAULT_ROBUST_METHOD);\n }",
"@Test\n public void testConstructor() {\n RANSACRadialDistortionRobustEstimator estimator =\n new RANSACRadialDistortionRobustEstimator();\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertNull(estimator.getDistortedPoints());\n assertNull(estimator.getUndistortedPoints());\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertFalse(estimator.arePointsAvailable());\n assertFalse(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // test constructor with listener\n estimator = new RANSACRadialDistortionRobustEstimator(this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertNull(estimator.getDistortedPoints());\n assertNull(estimator.getUndistortedPoints());\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertFalse(estimator.arePointsAvailable());\n assertFalse(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // test constructor with points\n final List<Point2D> distortedPoints = new ArrayList<>();\n final List<Point2D> undistortedPoints = new ArrayList<>();\n for (int i = 0; i < RadialDistortionRobustEstimator.MIN_NUMBER_OF_POINTS; i++) {\n distortedPoints.add(Point2D.create());\n undistortedPoints.add(Point2D.create());\n }\n\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n final List<Point2D> emptyPoints = new ArrayList<>();\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points and listener\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points and center\n final Point2D center = Point2D.create();\n\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, center);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertSame(estimator.getDistortionCenter(), center);\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n center.getInhomX(), 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n center.getInhomY(), 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points, center and listener\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, center, this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertSame(estimator.getDistortionCenter(), center);\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n center.getInhomX(), 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n center.getInhomY(), 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n }",
"public abstract Quadric estimate() throws LockedException, \n NotReadyException, RobustEstimatorException;",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n boolean weakMinimumSizeAllowed) {\n return create(listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints); \n }\n }",
"public static QuadricRobustEstimator create(double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator(qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"public void setListener(QuadricRobustEstimatorListener listener) \n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mListener = listener;\n }",
"public abstract Point_3 evaluate(double u, double v);",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener); \n }\n }",
"public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, qualityScores, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, qualityScores, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n }\n }",
"SliderListener(Sampler[] samplers,Container pane,int numSampler,char parameter){\n this.samplers = samplers;\n this.pane = pane;\n this.numSampler = numSampler;\n this.parameter = parameter; \n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n }\n }",
"public static QuadricRobustEstimator create(RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator();\n case PROMedS:\n return new PROMedSQuadricRobustEstimator();\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }",
"public QuadricRobustEstimatorListener getListener() {\n return mListener;\n }",
"public static void test2() {\n String dataDir = \"/Data/cteam/tp/csm/seismicz/subz_401_4_600/\";\n String dataFile = \"tpets.dat\";\n int n1 = 401, n2 = 357, n3 = 161;\n float v = 1.0f, d = 30.0f;\n EigenTensors3 et = loadTensors(dataDir+dataFile);\n System.out.println(et);\n float[][][] paint = new float[n3][n2][n1];\n Painting3Group p3g = new Painting3Group(paint);\n PaintBrush pb = new PaintBrush(n1,n2,n3,et);\n pb.setSize(30);\n Painting3 p3 = p3g.getPainting3();\n for (int i3=0; i3<10; ++i3)\n for (int i2=0; i2<10; ++i2)\n for (int i1=0; i1<1; ++i1) {\n p3.paintAt(n1/2+i1,n2/2+i2,n3/2+i3,v,d,pb);\n }\n\n Contour c = p3.getContour(v);\n\n SimpleFrame sf = new SimpleFrame();\n sf.setTitle(\"Formation\");\n World world = sf.getWorld();\n TriangleGroup tg = new TriangleGroup(c.i,c.x);\n world.addChild(tg);\n }",
"@Test\r\n public void testPolynomialApproximator() {\r\n List<Point> data = createLinearDataset();\r\n test(PolynomialApacheMathApproximator.INSTANCE_3, data, null);\r\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n }\n }",
"@Override\n public void init() throws Exception {\n Mapper mapper = new Mapper() {\n public double f(double x, double y) {\n try {\n return i3d.evaluate(x, y);\n } catch (InterpolationException e) {\n e.printStackTrace();\n return 0;\n }\n }\n };\n \n // Define range and precision for the function to plot\n Range rangeX = new Range((float)i3d.lowerA(), (float)i3d.upperA());\n int stepsX = 100;\n Range rangeY = new Range((float)i3d.lowerB(), (float)i3d.upperB());\n int stepsY = 100;\n \n AbstractDrawable drawable;\n // Create the object to represent the surface\n final Shape surface = Builder.buildOrthonormal(new OrthonormalGrid(rangeX, stepsX, rangeY, stepsY), mapper);\n surface.setColorMapper(new ColorMapper(new ColorMapRainbow(),\n surface.getBounds().getZmin(), surface.getBounds().getZmax(), COLOR_BASE));\n surface.setWireframeDisplayed(true);\n surface.setWireframeWidth(1);\n surface.setWireframeColor(COLOR_WIRE);\n surface.setFaceDisplayed(true);\n drawable = surface;\n \n // Create a chart\n chart = AWTChartComponentFactory.chart(Quality.Advanced);\n chart.getAxeLayout().setXTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setYTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setZTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setFaceDisplayed(false);\n chart.getAxeLayout().setMainColor(COLOR_MAIN);\n chart.getView().setBackgroundColor(COLOR_BG);\n chart.getScene().getGraph().add(drawable);\n \n chart.getAxeLayout().setXAxeLabel(\"Length\");\n chart.getAxeLayout().setYAxeLabel(\"Time\");\n chart.getAxeLayout().setZAxeLabel(\"Temperature\");\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener) {\n return create(listener, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n boolean weakMinimumSizeAllowed) {\n return create(listener, weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }",
"public MetricTransformation2DRobustEstimator(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints) {\n this(listener);\n internalSetPoints(inputPoints, outputPoints);\n }",
"public PredictorListener buildPredictor();",
"public void process(){\n\n for(int i = 0; i < STEP_SIZE; i++){\n String tmp = \"\" + accData[i][0] + \",\" + accData[i][1] + \",\"+accData[i][2] +\n \",\" + gyData[i][0] + \",\" + gyData[i][1] + \",\" + gyData[i][2] + \"\\n\";\n try{\n stream.write(tmp.getBytes());\n }catch(Exception e){\n //Log.d(TAG,\"!!!\");\n }\n\n }\n\n /**\n * currently we don't apply zero-mean, unit-variance operation\n * to the data\n */\n // only accelerator's data is using, currently 200 * 3 floats\n // parse the 1D-array to 2D\n\n if(recognizer.isInRecognitionState() &&\n recognizer.getGlobalRecognitionTimes() >= Constants.MAX_GLOBAL_RECOGNITIOME_TIMES){\n recognizer.resetRecognitionState();\n }\n if(recognizer.isInRecognitionState()){\n recognizer.removeOutliers(accData);\n recognizer.removeOutliers(gyData);\n\n double [] feature = new double [FEATURE_SIZE];\n recognizer.extractFeatures(feature, accData, gyData);\n\n int result = recognizer.runModel(feature);\n String ret = \"@@@\";\n if(result != Constants.UNDEF_RET){\n if(result == Constants.FINISH_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(Constants.FINISH_INFO);\n waitForPlayout(1);\n recognizer.resetLastGesutre();\n recognizer.resetRecognitionState();\n ret += \"1\";\n }else if(result == Constants.RIGHT_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(\"Now please do Step \" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n ret += \"1\";\n }else if(result == Constants.ERROR_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getExpectedGesture());\n waitForPlayout(1);\n ret += \"0\";\n }else if(result == Constants.ERROR_AND_FORWARD_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getLastGesture());\n waitForPlayout(1);\n if(recognizer.getExpectedGesture() <= Constants.STATE_SPACE){\n mUserWarningService.playSpeech(\n \"Step \" + recognizer.getLastGesture() + \"missing \" +\n \". Now please do Step\" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n }else{\n recognizer.resetRecognitionState();\n mUserWarningService.playSpeech(\"Recognition finished.\");\n waitForPlayout(1);\n }\n\n\n ret += \"0\";\n }\n ret += \",\" + Integer.toString(result) + \"@@@\";\n\n Log.d(TAG, ret);\n Message msg = new Message();\n msg.obj = ret;\n mWriteThread.writeHandler.sendMessage(msg);\n }\n }\n\n }",
"public void ignoreCreateArrayForVec3With6Position() {\r\n\r\n SXRMesh sxrMesh = TestDefaultSXRViewManager.mSXRContext.getAssetLoader().loadMesh(UtilResource.androidResource(TestDefaultSXRViewManager.mSXRContext,R.raw.cylinder3));\r\n float[] vec3 = {-0.5f, 0.5f, 0.0f, -0.5f, 0.5f, 0.0f};\r\n\r\n try {\r\n sxrMesh.setVec3Vector(\"ratio_r\", vec3);\r\n assertNotNull(sxrMesh.getVec4Vector(\"ratio_r\"));\r\n fail();\r\n } catch (InvalidParameterException e) {\r\n assertEquals(e.getMessage(), \"setVec3Vector method support only three position array\");\r\n }\r\n }",
"@Test\r\n public void testSplineApproximator() {\r\n List<Point> data = createConvergingDataset();\r\n List<ExpectedApproximation> exp = new ArrayList<ExpectedApproximation>();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(1000, 17, 1050));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(1062, 40, 1066));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n\r\n data = createLinearDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(100, 3, 200));\r\n exp.add(new ExpectedApproximation(300, 11, 400));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 100));\r\n exp.add(new ExpectedApproximation(400, 17, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n \r\n data = createIncreasingDecreasingDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(700, 23, 900));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(0, 35, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n }",
"public static ReferenceSensor create(UUID channelId, String instrumentManufacturer,\n String instrumentModel, String serialNumber, int numberOfComponents,\n double cornerPeriod, double lowPassband, double highPassband,\n Instant actualTime, Instant systemChangeTime,\n InformationSource informationSource, String comment) {\n\n return new ReferenceSensor(channelId, instrumentManufacturer, instrumentModel,\n serialNumber, numberOfComponents, cornerPeriod, lowPassband, highPassband,\n actualTime, systemChangeTime, informationSource, comment);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener);\n }\n }",
"public interface ITrainingService {\n\n void train(double[][] gestures, double[][] responses, Integer numberOfResponses);\n}",
"public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }",
"private static native long createGuidedFilter_0(long guide_nativeObj, int radius, double eps);",
"public void Setup(int nPoints, float swp, float shp, float ssu)\n {\n Random rnd = new Random();\n\n // Our collection of vertices\n vertices = new float[nPoints*VERTICES_PER_GLYPH*TOTAL_COMPONENT_COUNT];\n\n // Create the vertex data\n for(int i=0;i<nPoints;i++) {\n int offset_x = rnd.nextInt((int)swp);\n int offset_y = rnd.nextInt((int)shp);\n\n float llu = rnd.nextInt(2) * 0.5f;\n float llv = rnd.nextInt(2) * 0.5f;\n \n \n AddGlyph(offset_x, offset_y, ssu, llu, llv, 0.5f, 0.5f);\n }\n\n // The indices for all textured quads\n indices = new short[nPoints*3*TRIANGLES_PER_GLYPH]; \n int last = 0;\n for(int i=0;i<nPoints;i++) {\n // We need to set the new indices for the new quad\n indices[(i*6) + 0] = (short) (last + 0);\n indices[(i*6) + 1] = (short) (last + 1);\n indices[(i*6) + 2] = (short) (last + 2);\n indices[(i*6) + 3] = (short) (last + 0);\n indices[(i*6) + 4] = (short) (last + 2);\n indices[(i*6) + 5] = (short) (last + 3);\n\n // Our indices are connected to the vertices so we need to keep them\n // in the correct order.\n // normal quad = 0,1,2,0,2,3 so the next one will be 4,5,6,4,6,7\n last = last + 4;\n }\n\n // The vertex buffer.\n ByteBuffer bb = ByteBuffer.allocateDirect(vertices.length * BYTES_PER_FLOAT);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(vertices);\n vertexBuffer.position(0);\n\n // initialize byte buffer for the draw list\n ByteBuffer dlb = ByteBuffer.allocateDirect(indices.length * BYTES_PER_SHORT);\n dlb.order(ByteOrder.nativeOrder());\n indexBuffer = dlb.asShortBuffer();\n indexBuffer.put(indices);\n indexBuffer.position(0);\n\n }",
"public LinearRegression(int numberOfSamples) {\n fixedList = new FixedQueue<Point2D>(numberOfSamples);\n }",
"@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }",
"public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm, listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }",
"public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }",
"private FunctionApproximation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.1f, 0.1f, 0.25f, 1.0f);\n RSGFXShaderManager.loadShaders();\n next_game_tick = SystemClock.elapsedRealtime();\n // No culling of back faces\n GLES20.glDisable(GLES20.GL_CULL_FACE);\n \n // No depth testing\n //GLES20.glDisable(GLES20.GL_DEPTH_TEST);\n setupRender();\n // Enable blending\n // GLES20.glEnable(GLES20.GL_BLEND);\n // GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE);\n \n // Setup quad \n \t\t// Generate your vertex, normal and index buffers\n \t\t// vertex buffer\n \t\t_qvb = ByteBuffer.allocateDirect(_quadv.length\n \t\t\t\t* FLOAT_SIZE_BYTES).order(ByteOrder.nativeOrder()).asFloatBuffer();\n \t\t_qvb.put(_quadv);\n \t\t_qvb.position(0);\n\n \t\t// index buffer\n \t\t_qib = ByteBuffer.allocateDirect(_quadi.length\n \t\t\t\t* 4).order(ByteOrder.nativeOrder()).asIntBuffer();\n \t\t_qib.put(_quadi);\n \t\t_qib.position(0);\n }",
"public QuadriCubicSpline(double[] x1, double[] x2, double[] x3, double[] x4, double[][][][] y) {\n\t\tthis.nPoints = x1.length;\n\t\tthis.mPoints = x2.length;\n\t\tthis.lPoints = x3.length;\n\t\tthis.kPoints = x4.length;\n\t\tif (this.nPoints != y.length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x1 and y-row are of different length \" + this.nPoints + \" \" + y.length);\n\t\tif (this.mPoints != y[0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x2 and y-column are of different length \" + this.mPoints + \" \" + y[0].length);\n\t\tif (this.lPoints != y[0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x3 and y-column are of different length \" + this.mPoints + \" \" + y[0][0].length);\n\t\tif (this.kPoints != y[0][0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x4 and y-column are of different length \" + this.kPoints + \" \" + y[0][0][0].length);\n\t\tif ((this.nPoints < 3) || (this.mPoints < 3) || (this.lPoints < 3) || (this.kPoints < 3))\n\t\t\tthrow new IllegalArgumentException(\"The tabulated 4D array must have a minimum size of 3 X 3 X 3 X 3\");\n\n\t\tthis.csm = new CubicSpline(this.nPoints);\n\t\tthis.tcsn = TriCubicSpline.oneDarray(this.nPoints, this.mPoints, this.lPoints, this.kPoints);\n\t\tthis.x1 = new double[this.nPoints];\n\t\tthis.x2 = new double[this.mPoints];\n\t\tthis.x3 = new double[this.lPoints];\n\t\tthis.x4 = new double[this.kPoints];\n\n\t\tthis.y = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tthis.d2ydx2 = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tthis.x1[i] = x1[i];\n\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\tthis.x2[j] = x2[j];\n\t\tfor (int j = 0; j < this.lPoints; j++)\n\t\t\tthis.x3[j] = x3[j];\n\t\tfor (int j = 0; j < this.kPoints; j++)\n\t\t\tthis.x4[j] = x4[j];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\t\tfor (int k = 0; k < this.lPoints; k++)\n\t\t\t\t\tfor (int l = 0; l < this.kPoints; l++)\n\t\t\t\t\t\tthis.y[i][j][k][l] = y[i][j][k][l];\n\t}",
"public ViewerPosition3D()\n {\n }",
"public MetricTransformation2DRobustEstimator(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n boolean weakMinimumSizeAllowed) {\n this(listener);\n mWeakMinimumSizeAllowed = weakMinimumSizeAllowed;\n internalSetPoints(inputPoints, outputPoints);\n }",
"protected SoDetail \ncreateTriangleDetail(SoRayPickAction action,\n final SoPrimitiveVertex v1,\n final SoPrimitiveVertex v2,\n final SoPrimitiveVertex v3,\n final SoPickedPoint pp)\n //\n ////////////////////////////////////////////////////////////////////////\n{\n SoCubeDetail detail;\n\n // Don't create a detail if the pick operation was performed on a\n // bounding box cube, not a real cube\n if (pickingBoundingBox)\n return null;\n\n detail = new SoCubeDetail();\n\n // The part code should be the same in all three details, so just use one\n detail.setPart((( SoCubeDetail ) v1.getDetail()).getPart());\n\n return detail;\n}",
"@Test\r\n\tpublic void testPositiveGenerateSignedGaussians_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString ticketId = roc.createTickets(1, true)[0].get(\"ticketId\").getAsString();\r\n\t\t\t\tHashMap<String, Object> o = roc.generateSignedGaussians(10, 3.41d, 2.1d, 4, \r\n\t\t\t\t\t\tuserData, ticketId);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, double[].class, true, ticketId);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void mo55569a(MDInterceptV3Listener mDInterceptV3Listener) {\n if (mDInterceptV3Listener != null) {\n try {\n this.f1444c.mo55477a(C3565i0.C3566a.Intercept, new C3658o2(mDInterceptV3Listener).mo55686a());\n } catch (Exception e) {\n C3490e3.m663c(e.getMessage());\n return;\n }\n }\n AnalyticsBridge.getInstance().reportSetInterceptListenerEvent();\n }",
"private double threeDimensionalSolveQ1(RealMatrix u, RealMatrix v, double q3) {\r\n double u11 = u.getEntry(0, 0);\r\n double u12 = u.getEntry(0, 1);\r\n double u13 = u.getEntry(0, 2);\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v1 = v.getEntry(0, 0);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (((u12*v2)/(u11*u22)) - (v1/u11)) + ((((u12*u23)/(u11*u22)) - (u13/u11))*q3);\r\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"void setupGrid() {\n\n // create a Switch for the spheres, allow switch changes\n gridSwitch = new Switch(Switch.CHILD_NONE);\n gridSwitch.setCapability(Switch.ALLOW_SWITCH_WRITE);\n\n // Set up an appearance to make the square3s with red ambient,\n // black emmissive, red diffuse and black specular coloring\n Material material = new Material(red, black, red, black, 64);\n Appearance appearance = new Appearance();\n appearance.setMaterial(material);\n\n // create a grid of quads\n int gridSize = 20; // grid is gridSize quads along each side\n int numQuads = gridSize * gridSize;\n int numVerts = numQuads * 4; // 4 verts per quad\n // there will be 3 floats per coord and 4 coords per quad\n float[] coords = new float[3 * numVerts];\n // All the quads will use the same normal at each vertex, so\n // allocate an array to hold references to the same normal\n Vector3f[] normals = new Vector3f[numVerts];\n Vector3f vertNormal = new Vector3f(0.0f, 0.0f, 1.0f);\n float edgeLength = 5.0f; // length of each edge of the grid\n float gridGap = 0.03f; // the gap between each quad\n // length of each quad is (total length - sum of the gaps) / gridSize\n float quadLength = (edgeLength - gridGap * (gridSize - 1)) / gridSize;\n\n // create a grid of quads in the z=0 plane\n // each has a TransformGroup to position the sphere which contains\n // a link to the shared group for the sphere\n float curX, curY;\n for (int y = 0; y < gridSize; y++) {\n curY = y * (quadLength + gridGap); // offset to lower left corner\n curY -= edgeLength / 2; // center on 0,0\n for (int x = 0; x < gridSize; x++) {\n // this is the offset into the vertex array for the first\n // vertex of the quad\n int vertexOffset = (y * gridSize + x) * 4;\n // this is the offset into the coord array for the first\n // vertex of the quad, where there are 3 floats per vertex\n int coordOffset = vertexOffset * 3;\n curX = x * (quadLength + gridGap); // offset to ll corner\n curX -= edgeLength / 2; // center on 0,0\n // lower left corner\n coords[coordOffset + 0] = curX;\n coords[coordOffset + 1] = curY;\n coords[coordOffset + 2] = 0.0f; // z\n // lower right corner\n coords[coordOffset + 3] = curX + quadLength;\n coords[coordOffset + 4] = curY;\n coords[coordOffset + 5] = 0.0f; // z\n // upper right corner\n coords[coordOffset + 6] = curX + quadLength;\n coords[coordOffset + 7] = curY + quadLength;\n coords[coordOffset + 8] = 0.0f; // z\n // upper left corner\n coords[coordOffset + 9] = curX;\n coords[coordOffset + 10] = curY + quadLength;\n coords[coordOffset + 11] = 0.0f; // z\n for (int i = 0; i < 4; i++) {\n normals[vertexOffset + i] = vertNormal;\n }\n }\n }\n // now that we have the data, create the QuadArray\n QuadArray quads = new QuadArray(numVerts, QuadArray.COORDINATES\n | QuadArray.NORMALS);\n quads.setCoordinates(0, coords);\n quads.setNormals(0, normals);\n\n // create the shape\n Shape3D shape = new Shape3D(quads, appearance);\n\n // add it to the switch\n gridSwitch.addChild(shape);\n }",
"@Override\n public void on(double[] values) {\n learnWith(values);\n callback.on(true);\n }",
"public ExtrapolatedSaturationPointEvaluator(int[] anchorpoints,\n\t\t\tISamplingAlgorithmFactory<IInstance, ? extends ASamplingAlgorithm<IInstance>> samplingAlgorithmFactory,\n\t\t\tIDataset<IInstance> train, double trainSplitForAnchorpointsMeasurement,\n\t\t\tLearningCurveExtrapolationMethod extrapolationMethod, long seed, IDataset<IInstance> test) {\n\t\tsuper();\n\t\tthis.anchorpoints = anchorpoints;\n\t\tthis.samplingAlgorithmFactory = samplingAlgorithmFactory;\n\t\tthis.train = train;\n\t\tthis.trainSplitForAnchorpointsMeasurement = trainSplitForAnchorpointsMeasurement;\n\t\tthis.extrapolationMethod = extrapolationMethod;\n\t\tthis.seed = seed;\n\t\tthis.epsilon = DEFAULT_EPSILON;\n\t\tthis.test = test;\n\t}",
"public abstract void createSensors() throws Exception;",
"public static void main(String[] args) {\n\t\t\tColorSensor colorSensor = new ColorSensor(SensorPort.S3);\n\t\t\tcolorSensor.setRGBMode();\n\t\t\tColor rgb; \n\t\t\t\n\t\t\tEV3LargeRegulatedMotor motora = new EV3LargeRegulatedMotor (MotorPort.A);\n\t\t\tEV3LargeRegulatedMotor motorb = new EV3LargeRegulatedMotor (MotorPort.C);\n\t\t\tEV3TouchSensor touchsensor = new EV3TouchSensor (SensorPort.S2);\n\t\t\tEV3IRSensor irSensor = new EV3IRSensor (SensorPort.S1);\n\t\t\t\n\t\t\tWheel wheel1 = WheeledChassis.modelWheel(motora , 2.5).offset(-5.0);\n\t\t Wheel wheel2 = WheeledChassis.modelWheel(motorb , 2.5).offset(5.0);\n\t\t \n\t\t Chassis chassis = new WheeledChassis(new Wheel[] { wheel1, wheel2 }, WheeledChassis.TYPE_DIFFERENTIAL);\n\t\t\t\n\t\t\t\n\t\t\t//is pressed method? do we need to make float values and fetching samples?\n\t\t MovePilot pilot = new MovePilot(chassis);\n\t\t \n\t\t Button.waitForAnyPress(); \n\t\t \n\t\t\tdouble [] hsvmiddle = new double[3];\n\t\t\tdouble [] hsvfloor = new double [3];\n\t\t\tdouble [] hsvline = new double [3];\n\t\t\t\n\t\t\tdouble [] pickupColor = new double [3];\n\t\t\t\n\t\t\t\n\t\t\t\trgb = colorSensor.getColor();\n\t\t\t\thsvmiddle= RGBtoHSV(rgb);\n\t\t\t\t\n\t\t\t\t//rotate to the left to pickup wood color\n\t\t\t\tpilot.rotate(-20);\n\t\t\t\t\n\t\t\t\trgb = colorSensor.getColor();\n\t\t\t\thsvfloor= RGBtoHSV(rgb);\n\t\t\t\t\n\t\t\t\t//rotate to the right to pick up black line\n\t\t\t\tpilot.rotate(30);\n\t\t\t\t\n\t\t\t\trgb = colorSensor.getColor();\n\t\t\t\thsvline= RGBtoHSV(rgb);\n\t\t\t\t\n\t\t\t\t//rotate back to center\n\t\t\t\tpilot.rotate(-10);\n\t\t\t\n\t\t\twhile(Button.ESCAPE.isUp())\n\t\t\t{\n\t\t\t\trgb = colorSensor.getColor();\n\t\t\t\tpickupColor = RGBtoHSV(rgb);\n\t\t\t\t\n\t /*System.out.println(\"RGB = \"+\n\t \" [\" + rgb.getRed() + \",\" + rgb.getGreen() + \",\" + rgb.getBlue() \n\t +\"]\\n \" + \"HSV = \" + \"[ \" + hsv[0] + \",\" + hsv[1] + \",\" + hsv[2] + \",\" +\" ]\");\n\t\t\t\t//delay a second so we don't see so many outputs on the screen\n\t //need to apply to actual line following strategy*/\n\t\t\t\tDelay.msDelay(1000);\n\t\t\t\t\n\t\t\t\t//touch sensor info\n\t\t\t\tSampleProvider distance = touchsensor.getTouchMode();\n\t\t\t\tfloat[] sample = new float[1];\n\t\t\t\t\n\t\t\t\t//ir info\n\t\t\t\tfloat[] sample2 = new float[1];\n\t\t\t\t\n\t\t\t\tpilot.forward();\n\t\t\t\t\n\t\t\t\twhile (!Button.ESCAPE.isDown()) {\n\t\t\t\t\t//when the robot is on the wood it will rotate and fix itself back on the middle\n\t\t\t\t\t if ((((hsvfloor[0]-5)<pickupColor[0])&&((hsvfloor[0]+5>pickupColor[0])))) { \n\t\t\t\t\t\t System.out.println(\"floor\");\n\t\t\t\t\t\t\tpilot.rotate(-4); \n\t\t\t\t\t }\n\t\t\t\t\t //when the robot is on black it will rotate and fix its self back on the middle\n\t\t\t\t\t else if ((((hsvline[0]-5)<pickupColor[0])&&((hsvline[0]+5>pickupColor[0])))) {\n\t\t\t\t\t\t System.out.println(\"black line\");\n\t\t\t\t\t\t\tpilot.rotate(4);\n\t\t\t\t\t}\n\t\t\t\t\t //when the robot is in the middle, it will go forward\n\t\t\t\t\t else if ((((hsvmiddle[0]-5)<pickupColor[0])&&((hsvmiddle[0]+5>pickupColor[0])))) {\n\t\t\t\t\t\t System.out.println (\"middle\");\n\t\t\t\t\t\t pilot.forward();\n\t\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t\t //need to implement when the robot sees a new color (red) then it with turn or do as it is called to to\n\t\t\t\t\t /*else if ((((hsvred[0]-5)<pickupColor[0])&&((hsvred[0]+5>pickupColor[0])))) {\n\t\t\t\t\t\t \n //touch sensor code\n\t\t\t\t\t distance.fetchSample(sample, 0);\n\t\t\t\t\t\tif (sample[0]== 1) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//pilot.travel(-10);\n\t\t\t\t\t\t\t//pilot.rotate(-90);\n\t\t\t\t\t\t\t//pilot.travel(20);\n\t\t\t\t\t\t\t//pilot.rotate(90);\n\t\t\t\t\t\t\t//pilot.forward();\n\t\t\t\t\t\t}\n\n \n\t\t\t\t\t }*/\n\t\t\t\t\t \n\t\t\t\t\t //when the robot sees silver, then it should recognize that it is at the end of the maze and call to the stacking method to retrace its steps\n\t\t\t\t\t /*else if ((hsvsilver[0]-5<pickupcolor[0])&&(hsvsilver[0]+5<pickupcolor[0])){\n\t\t\t\t\t * end the maze and call the stacking method\n\t\t\t\t\t }*/\n\t\t\t\t\t \n\t\t\t\t\t \t\t\t\t\t\t\n\t\t\t\t\t//ir code\n\t\t\t\t\tdistance.fetchSample(sample, 0);\n\t\t\t\t\t\tif (sample2[0]<=18) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tpilot.travel(-10);\n\t\t\t\t\t\t\tpilot.rotate(-90);\n\t\t\t\t\t\t\tpilot.travel(20);\n\t\t\t\t\t\t\tpilot.rotate(90);\n\t\t\t\t\t\t\tpilot.forward();\n\t\t\t\t\t\t}\n\t\t\t\t\t \n\t\t\t}\n\t\t\t\t\n\t\t\t\t//add hsv for silver end of the maze, and add red for intersections\n\t\t\t\t/*if the robot sees red and cannot turn to the right (ir sensor) then go straight\n\t\t\t\t * \tthen if it cant go forward, turn around and when you get back to the red line then turn left\n\t\t\t\t * if the robot sees red and can turn right, then turn right\n\t\t\t\t * if the robot hits something in front of itself, then have the robot turn around to the right\t\t\t\t\n\t\t\t\t * \n\t\t\t\t */\n\t\t\t\t\n //intersection strategy\n /*if ((red color is sensed using the color sensor) && (ir sensor is activated (there is an obstacle))) {\n pilot.rotate(90); //turn left\n pilot.forward();\n }\n if (touch is pressed) {\n pilot.rotate(180); //turn all the way around\n pilot.forward();\n if (red color is sensed) {\n pilot.rotate(-90); //turn right\n }\n }\n if (touch is pressed) {\n pilot.rotate(180); //turn all the way around\n pilot.forward(); \n }\n \n if ((ir is pressed) && !(touch is pressed)) {\n pilot.rotate(90); //turn left\n if (touch is pressed) {\n pilot.rotate(-90);\n pop that sequence off the stack\n pilot.forward();\n }\n else { //touch is not pressed, no obstacles ahead\n pilot.forward();\n }\n }\n \n //25 is an arbitrary # that we are using to represent the max # of intersections\n for (i=1; i < 25; ++i) {\n //everything that's happening in the entire program has to be in this for loop\n Stack<String> stack = new Stack<String>();\n stack.push(\"i\"); //naming each sequence/intersection by its #\n printStack(stack);\n\n }\n //if we program the robot to turn left at intersections, the IR must be on the right\n //question box: how do we structure our code so that every part works together in unison?\n */\n\t\t\t\n\t\t\t\n\t\t\t\t \n\t\t\t\n\t\t\t//free up resources\n\t\t\tcolorSensor.close();\n\t\t\t\n\t\t}\n\n\t}",
"private static native long createContourFitting_0(int ctr, int fd);",
"public UltrasonicSensor(EV3UltrasonicSensor ultraSSensor) {\r\n\t\tus = ultraSSensor.getMode(\"Distance\"); // usDistance provides samples from\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// this instance\r\n\t\tusData = new float[us.sampleSize()]; // usData is the buffer in which data are\r\n\t}",
"public abstract void constructHull();",
"private void run3D() {\r\n\r\n this.buildProgressBar();\r\n\r\n // OK, here is where the meat of the algorithm goes\r\n\r\n int length;\r\n int extents[] = srcImage.getExtents();\r\n xDim = extents[0];\r\n yDim = extents[1];\r\n zDim = extents[2];\r\n length = xDim * yDim * zDim;\r\n\r\n // buffers for the image data\r\n float sourceBuffer[];\r\n float resultBuffer[];\r\n float gaussianBuffer[];\r\n float gradientBuffer[];\r\n\r\n // copy the image data into the sourceBuffer so we can access it\r\n try {\r\n sourceBuffer = new float[length];\r\n resultBuffer = new float[length];\r\n gaussianBuffer = new float[length];\r\n gradientBuffer = new float[length];\r\n } catch (OutOfMemoryError e){\r\n sourceBuffer = resultBuffer = gaussianBuffer = gradientBuffer = null;\r\n errorCleanUp(\"AlgorithmRegularizedIsotropicDiffusion: Out of memory when creating image buffer\", true);\r\n return;\r\n } // catch{}\r\n\r\n // Gaussian blur the input image as a 3D image\r\n sigmas = new float[3];\r\n sigmas[0] = sigmas[1] = sigmas[2] = stdDev;\r\n\r\n makeKernels1D(true);\r\n\r\n // source image is in sourceBuffer, gaussian smoothed image is in gaussianBuffer\r\n\r\n\r\n try {\r\n srcImage.exportData(0, length, sourceBuffer);\r\n } catch (IOException error) {\r\n sourceBuffer = resultBuffer = gaussianBuffer = gradientBuffer = null;\r\n errorCleanUp(\"AlgorithmRegularizedIsotropicDiffusion: could NOT export source image\", true);\r\n return;\r\n } // catch()\r\n // make the magnitude of the gradient image of the gaussian smoothed source image\r\n algoSepConvolver = new AlgorithmSeparableConvolver(gaussianBuffer, sourceBuffer,\r\n extents, xDataRound, yDataRound, zDataRound, srcImage.isColorImage());\r\n\r\n for(int iterNum = 0; iterNum < numIterations; iterNum++) {\r\n if (isProgressBarVisible()) {\r\n progressBar.updateValue(Math.round( ( (float) (iterNum) / (numIterations - 1) * 100)), activeImage);\r\n }\r\n\r\n algoSepConvolver.run();\r\n gradientMagnitude3D(gaussianBuffer, gradientBuffer);\r\n upDateImage3D(resultBuffer, sourceBuffer, gradientBuffer);\r\n\r\n // copy resultBuffer to sourceBuffer for the next iteration\r\n if (iterNum < (numIterations - 1)) {\r\n for (int i = 0; i < length; i++) { sourceBuffer[i] = resultBuffer[i]; }\r\n }\r\n\r\n } // end for (int iterNum = 0; ...)\r\n\r\n algoSepConvolver.finalize();\r\n algoSepConvolver = null;\r\n\r\n // OK, the resultBuffer is filled with the results of the algorithm,\r\n // put this data into the destination image so it will be displayed in\r\n // in the ViewJFrameWizard\r\n try {\r\n destImage.importData(0, resultBuffer, true);\r\n } catch (IOException error) {\r\n sourceBuffer = resultBuffer = gaussianBuffer = gradientBuffer = null;\r\n errorCleanUp(\"AlgorithmRegularizedIsotropicDiffusion: Could NOT import resultBuffer to the image\", true);\r\n return;\r\n } // end try{}-catch{}\r\n\r\n disposeProgressBar();\r\n if (threadStopped) { finalize(); return; }\r\n\r\n setCompleted(true);\r\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores) {\n return create(inputPoints, outputPoints, qualityScores, \n DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }",
"private void createD3Example() {\n\n\t\tSystem.out.println(\"createD3Example\");\n\n\t\tboolean showPoints = true;\n\n\t\tint widthSVG = 1200;\n\t\tint heightSVG = 800;\n\n\t\td3 = browser.getD3();\n//\t\tSystem.out.println(\"D3 version \" + d3.version());\n\t\twebEngine = d3.getWebEngine();\n\n\t\t// apply CSS\n\t\tloadCssForThisClass();\n\n\t\tsvg = d3.select(\"svg\")\n\t\t\t\t.attr(\"width\", widthSVG)\n\t\t\t\t.attr(\"height\", heightSVG);\n\n\t\ttry {\n\n\t\t\tinjectStyleInSVG();\n\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\n\t\t// create initial d3 content\n\n\t\t// data that you want to plot, I\"ve used separate arrays for x and y values\n\t\tdouble[] xData = {5, 10, 25, 32, 40, 40, 15, 7};\n\t\tdouble[] yData = {3, 17, 4, 10, 6, -20, -20.0, 0};\n\n\t\t// size and margins for the chart\n\n\t\tdouble totalWidth = 550;\n\t\tdouble totalHeight = 550;\n\n\t\tdouble marginLeft = 60;\n\t\tdouble marginRight = 15;\n\n\t\tdouble marginTop = 20;\n\t\tdouble marginBottom = 60;\n\n\t\tdouble width = totalWidth - marginLeft - marginRight;\n\t\tdouble height = totalHeight - marginTop - marginBottom;\n\n\t\t// x and y scales, I've used linear here but there are other options\n\t\t// the scales translate data values to pixel values for you\n\t\tdouble xMin = 0;\n\t\tdouble xMax = 50;\n\t\tLinearScale x = d3.scale().linear() //\n\t\t .domain(new double[]{xMin, xMax}) // the range of the values to plot\n\t\t .range(new double[]{0, width}); // the pixel range of the x-axis\n\n\t\tdouble yMin = -25;\n\t\tdouble yMax = 25;\n\t\tLinearScale y = d3.scale().linear() //\n\t\t .domain(new double[]{yMin, yMax}) //\n\t\t .range(new double[]{height, 0});\n\n\t\t// the chart object, includes all margins\n\t\tSelection chart = d3.select(\"svg\") //\n\t\t\t.attr(\"width\", width + marginRight + marginLeft) //\n\t\t\t.attr(\"height\", height + marginTop + marginBottom) //\n\t\t\t.attr(\"class\", \"chart\");\n\n\t\t// the main object where the chart and axis will be drawn\n\t\tSelection main = chart.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(\" + marginLeft + \",\" + marginTop + \")\") //\n\t\t\t.attr(\"width\", width) //\n\t\t\t.attr(\"height\", height) //\n\t\t\t.attr(\"class\", \"main\");\n\n\t\t// draw the x axis\n\t\tAxis xAxis = d3.svg().axis().scale(x).orient(Orientation.BOTTOM);\n\n\t\t//xAxis.innerTickSize(10);\n\n\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,\" + height + \")\") //\n\t\t\t.attr(\"class\", \"main axis date\").call(xAxis);\n\n\t\t// draw the y axis\n\t\tAxis yAxis = d3.svg().axis() //\n\t\t\t.scale(y) //\n\t\t\t.orient(Orientation.LEFT);\n\t\t\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,0)\") //\n\t\t\t.attr(\"class\", \"main axis date\") //\n\t\t\t.call(yAxis);\n\n\t\t// draw the graph object\n\t\tSelection g = main.append(\"svg:g\");\n\n\t\tg.selectAll(\"scatter-dots\")\n\t\t .data(yData) // using the values in the ydata array\n\t\t .enter().append(\"svg:circle\") // create a new circle for each value\n\t\t .attr(\"cy\", new YAxisDatumFunction(webEngine, y, yData) ) // translate y value to a pixel\n\t\t .attr(\"cx\", new XAxisDatumFunction(webEngine, x, xData)) // translate x value\n\t\t .attr(\"r\", 5) // radius of circle\n\t\t .style(\"opacity\", 1.0); // opacity of circle\n\n\n\t\t// Line, the path generator\n\t\tLine line;\n\n\t\tInterpolationMode mode = InterpolationMode.LINEAR;\n\n\t\tline = d3.svg().line()\n\t\t\t\t.x(new XAxisDatumFunction(webEngine, x, xData))\n\t\t\t\t.y(new YAxisDatumFunction(webEngine, y, yData));\n\n\t\tSelection g2 = g.append(\"svg:g\")\n\t\t\t\t.classed(\"Pippo-line-group\", true);\n\n\t\tString cssClassName = \"Agodemar-Test-Line\";\n\t\tSelection pathLine = g2.append(\"path\").classed(cssClassName, true);\n\t\tpathLine\n\t\t\t.attr(\"fill\",\"none\")\n\t\t\t.attr(\"stroke\",\"red\")\n\t\t\t.attr(\"stroke-width\",\"5\")\n\t\t\t.attr(\"stroke-linecap\",\"square\") // \"butt\", \"round\", \"square\"\n\t\t\t.attr(\"stroke-dasharray\",\"15,10\");\n\n\t\tfinal Stack<Coords> points = new Stack<>();\n\n//\t\tdouble [] x = {50.0, 120.0, 400.0, 700};\n//\t\tdouble [] y = {100.0, 30.0, 20.0, 200};\n\n\t\tIntStream.range(0, xData.length)\n\t\t\t.forEach(i ->\n\t\t\t\t\tpoints.push(new Coords(webEngine, xData[i], yData[i]))\n\t\t\t\t\t);\n\n//\t\tSystem.out.println(\"points:\");\n//\t\tpoints.stream()\n//\t\t\t.forEach(p -> System.out.println(p.x()+\", \"+p.y()));\n\n\t\tmode = InterpolationMode.MONOTONE;\n\t\tline = line.interpolate(mode);\n\t\tSystem.out.println(\"Interpolation mode: \" + line.interpolate());\n\n\t\tdouble tension = 0.1;\n\t\tline = line.tension(tension);\n//\t\tSystem.out.println(\"tension: \" + line.tension());\n\n\t\tList<Coords> coordsList = new ArrayList<>(points);\n\n//\t\tSystem.out.println(\"coordsList:\");\n//\t\tcoordsList.stream()\n//\t\t\t.forEach(c -> System.out.println(c.x()+\", \"+c.y()));\n\n\t\tString coordinates = line.generate(coordsList);\n\n//\t\tSystem.out.println(\"coordinates: \" + coordinates);\n\n\t\tpathLine.attr(\"d\", coordinates);\n\n\t\tLabelFactory labelFactory = new LabelFactory();\n\t\t\n//\t\tSelection myText = labelFactory.createInParentSelection(svg);\n//\t\tmyText.text(\"Agodemar!!!\");\n\t\t\n\t\tSelection text = svg.append(\"text\") //\n\t\t\t\t.attr(\"x\", 20) // String.format(\"%d\", widthSVG/2))\n\t\t\t\t.attr(\"y\", 100) // String.format(\"%d\", heightSVG/2))\n\t\t\t\t.text(\"Hello World\");\t\t\n\t\t\n\t\tsvg.append(\"g\")\n\t\t\t.attr(\"class\", \"main\")\n\t\t\t.append(\"text\")\n\t\t\t.attr(\"x\", 20).attr(\"dx\", \"12em\")\n\t\t\t.attr(\"y\", 56).attr(\"dy\", \"2em\")\n\t\t\t.attr(\"font\",\"20px sans-serif\")\n\t\t\t.text(\"Agodemar!!!\");\n\n//\t\tsvg.append(\"g\")\n//\t\t\t.attr(\"class\", \"y\" + \" \" + \"axis\")\n//\t\t\t.call(yAxis).append(\"text\")\n//\t\t\t.attr(\"transform\", \"rotate(-90)\")\n//\t\t\t.attr(\"y\", 6).attr(\"dy\", \".71em\")\n//\t\t\t.style(\"text-anchor\", \"end\")\n//\t\t\t.text(\"Frequency\");\n\t\t\n\t\t\n//\t\t// make a paragraph <p> in the html\n//\t\td3.select(\"body\").append(\"p\").text(\"Agodemar :: Hi there!\");\n\n\t}",
"public LMSERadialDistortionEstimator(final Point2D distortionCenter,\n final RadialDistortionEstimatorListener listener) {\n super(distortionCenter, listener);\n }",
"@Override\n public void quaternion(int w, int x, int y, int z, int timestamp) {\n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(qualityScores, weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"private void analyseSamples(){\n EditText editTx;\n\n resetBackgrounds();\n\n MeasureSet measureSet;\n ArrayList<View> views = new ArrayList<View>();\n\n for(int y = 1; y <= rowCount; y++) {\n measureSet = new MeasureSet();\n views.clear();\n measureSet.copyUncertainty(measuredMag);\n for (int x = 1; x <= columnCount; x++) {\n editTx = (EditText) rootView.findViewById(Integer.parseInt(\"10\" + x + \"00\" + y)).findViewById(R.id.third_list_value);\n views.add(editTx);\n\n try {\n measureSet.add(Double.parseDouble(editTx.getText().toString()));\n } catch (Exception e) {\n editTx.setBackgroundResource(R.drawable.red_shape);\n Toast.makeText(getActivity(), getString(R.string.third_invalid_value), Toast.LENGTH_SHORT).show();\n return;\n }\n }\n\n if (!StatisticUtils.applyChauvenet(measureSet, views)) {\n Toast.makeText(getActivity(), getString(R.string.third_chauvenet_invalid_samples), Toast.LENGTH_SHORT).show();\n return;\n }\n\n measuredMag.addMeasureSet(measureSet);\n }\n\n ((MainActivity) getActivity()).callFragment(Constants.FINAL_STEP_FRAGMENT, mag1, mag2);\n }",
"public NurbsSurface(int segments, int nr_of_points) {\n always_evaluate = false;\n nr_of_segments = segments;\n points_per_segment = nr_of_points;\n surface_type = 2;\n u = new double[100];\n v = new double[100];\n k = 3;\n int i, j;\n\n step = 0.2;\n evaluated_points = new NurbsPoint[(int) ((double) nr_of_segments / step)][(int) ((double) points_per_segment / step)];\n\n for (i = 0; i < (int) ((double) nr_of_segments / step); i++) {\n for (j = 0; j < (int) ((double) points_per_segment / step); j++) {\n evaluated_points[i][j] = new NurbsPoint(0, 0, 0);\n }\n }\n\n u[0] = 0;\n u[1] = 0;\n u[2] = 0;\n u[3] = 0;\n v[0] = 0;\n v[1] = 0;\n v[2] = 0;\n v[3] = 0;\n\n for (i = 4; i < segments - 4; i++) {\n u[i] = i - 3;\n }\n\n for (i = 4; i < nr_of_points - 4; i++) {\n v[i] = i - 3;\n }\n\n u[segments - 4] = segments - 7;\n u[segments - 3] = segments - 7;\n u[segments - 2] = segments - 7;\n u[segments - 1] = segments - 7;\n\n v[nr_of_points - 4] = nr_of_points - 7;\n v[nr_of_points - 3] = nr_of_points - 7;\n v[nr_of_points - 2] = nr_of_points - 7;\n v[nr_of_points - 1] = nr_of_points - 7;\n\n points = new NurbsPoint[nr_of_segments][points_per_segment];\n }",
"private static void createAndShowGUI()\r\n {\r\n JFrame f = new JFrame(\"Viewer\");\r\n f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n f.getContentPane().setLayout(new BorderLayout());\r\n \r\n JLabel usageLabel = new JLabel(\"<html>\"\r\n + \"Right mouse drags: Translate<br> \"\r\n + \"Left mouse drags: Create selection shape<br>\"\r\n + \" +shift: remove from selection<br>\"\r\n + \" +ctrl: add to selection<br>\"\r\n + \"Left mouse clicks: Select single<br>\"\r\n + \" +ctrl: toggle single selection<br>\"\r\n + \"Mouse wheel: Zoom uniformly<br>\"\r\n + \" +shift: zoom along x<br>\"\r\n + \" +ctrl: zoom along y<br>\"\r\n + \"</html>\");\r\n f.getContentPane().add(usageLabel, BorderLayout.NORTH);\r\n \r\n // Create a viewer, with mouse controls where the rotation is\r\n // disabled (left clicks are intended for the selection here)\r\n Viewer viewer = new Viewer();\r\n viewer.setMouseControl(\r\n MouseControls.createDefault(viewer, false, true));\r\n \r\n // Create the selection model\r\n SelectionModel<Point2D> selectionModel = SelectionModels.create();\r\n selectionModel.addSelectionListener(\r\n new LoggingSelectionListener<Point2D>());\r\n\r\n // Create the painter for the test\r\n ViewerSelectionTestPainter viewerSelectionTestPainter = \r\n new ViewerSelectionTestPainter(selectionModel::isSelected);\r\n \r\n // The painter also serves as the point- and shape based selector.\r\n // Make this clear by assigning it to respective variables\r\n PointBasedSelector<Point2D> pointBasedSelector = \r\n viewerSelectionTestPainter;\r\n ShapeBasedSelector<Point2D> shapeBasedSelector = \r\n viewerSelectionTestPainter;\r\n\r\n // Create a selection handler for clicks, and use it to connect\r\n // the viewer and the selection model\r\n SelectionHandler<Point2D> clickSelectionHandler = \r\n SelectionHandlers.createClick(pointBasedSelector);\r\n clickSelectionHandler.connect(viewer, selectionModel);\r\n \r\n // Create a selection handler for a lasso selection, and use it to \r\n // connect the viewer and the selection model\r\n SelectionHandler<Point2D> lassoSelectionHandler = \r\n SelectionHandlers.createLasso(shapeBasedSelector);\r\n lassoSelectionHandler.connect(viewer, selectionModel);\r\n\r\n // Create a selection handler for rectangles, which can be enabled\r\n // via the config panel\r\n SelectionHandler<Point2D> rectangleSelectionHandler = \r\n SelectionHandlers.createRectangle(shapeBasedSelector);\r\n \r\n viewer.addPainter(\r\n viewerSelectionTestPainter);\r\n f.getContentPane().add(viewer, BorderLayout.CENTER);\r\n\r\n JPanel configPanel = createConfigPanel(viewer, selectionModel, \r\n lassoSelectionHandler, rectangleSelectionHandler);\r\n f.getContentPane().add(configPanel, BorderLayout.EAST);\r\n\r\n JLabel infoLabel = new JLabel(\" \");\r\n f.getContentPane().add(infoLabel, BorderLayout.SOUTH);\r\n \r\n viewer.setPreferredSize(new Dimension(500,500));\r\n f.pack();\r\n viewer.setPreferredSize(null);\r\n f.setLocationRelativeTo(null);\r\n f.setVisible(true);\r\n \r\n viewer.setDisplayedWorldArea(-0.1, -0.1, 1.2, 1.2);\r\n }",
"public float[] calibrate(Base mBase, Sensor mSensor) {\n final double metersPerLatitude;\n final double metersPerLongitude;\n\n\n\n //Fetching the cisco position for the robot, which returns\n float ciscoLong = (float) 8.57617285865058;\n float ciscoLat = (float) 58.33447638466072;\n\n\n metersPerLongitude = distanceCalculator.calculateDistance(ciscoLong, ciscoLat, ciscoLong + 1.0, ciscoLat);\n\n metersPerLatitude= distanceCalculator.calculateDistance(ciscoLong, ciscoLat, ciscoLong, ciscoLat + 1.0);\n\n\n float originCiscoPositionx = ciscoLong * (float) metersPerLongitude;\n float originCiscoPositiony = ciscoLat * (float) metersPerLatitude;\n\n\n //Driving 1 meter forward test\n //mBase.addCheckPoint(1, 0);\n\n\n //GetCiscoPosition()\n //These are the actual coordinates of x2 and y2 in latitude and longitude.\n\n\n\n //If Loomo was already headed east, we would expect these coordinates in meters:\n float expectedCiscoPositionx2 = (originCiscoPositionx + 1);\n\n float newCiscoPointlon = (float) 8.57617413279317;\n float newCiscoPointlat = (float) 58.334468102336245;\n\n\n float actualCiscoPositionx2 = newCiscoPointlon * (float) metersPerLongitude;\n float actualCiscoPositiony2 = newCiscoPointlat * (float) metersPerLatitude;\n\n\n\n //Defining 3 vectors that make up a triangle abc\n double[] aVector = {expectedCiscoPositionx2 - originCiscoPositionx, originCiscoPositiony - originCiscoPositiony};\n double[] bVector = {actualCiscoPositionx2 - originCiscoPositionx, actualCiscoPositiony2 - originCiscoPositiony};\n double[] cVector = {expectedCiscoPositionx2 - actualCiscoPositionx2, originCiscoPositiony - actualCiscoPositiony2};\n\n\n\n //Calculating the length of each vector / side of the triangle with the pythagorean therm.\n double aVectorLengthSquared = Math.pow(aVector[0], 2.0) + Math.pow(aVector[1], 2.0);\n double bVectorLengthSquared = Math.pow(bVector[0], 2.0) + Math.pow(bVector[1], 2.0);\n double cVectorLengthSquared = Math.pow(cVector[0], 2.0) + Math.pow(cVector[1], 2.0);\n\n System.out.println(\"Length a = \" + sqrt(aVectorLengthSquared));\n System.out.println(\"Length b = \" + sqrt(bVectorLengthSquared));\n System.out.println(\"Length c = \" + sqrt(cVectorLengthSquared));\n System.out.println(\" \");\n\n //Calculating the angle between the vector from the expected points and the vector from the\n // real points using the cosine law. This gives us an angle ∈ [0,PI].\n float angle = (float) acos((aVectorLengthSquared + bVectorLengthSquared - cVectorLengthSquared)\n / (2 * sqrt(aVectorLengthSquared) * sqrt(bVectorLengthSquared)));\n\n\n\n //If the y-element of the b-vector is negative, that means loomo has been driving\n // southwards. This means, if we are to rotate the coordinates to fit loomo,\n // they will need to be rotated in the positive direction, or against the clock. -> angle = angle\n // If the y-element is positive, then loomo has been driving north, and the coordinates will\n // need to be rotated with the clock. Then \"angle\" will be the negative value\n // found with the cosine law.\n\n if (bVector[1] < 0) {\n angle = angle;\n } else if (bVector[1] > 0) {\n angle = -angle;\n }\n\n System.out.println(\"The angle between the reference systems are: \" + angle + \", which equals \" + angle / PI + \"*PI\\n\" );\n\n mBase.cleanOriginalPoint();\n\n //Setting Fetching the original point where Loomo stands.\n mBase.cleanOriginalPoint();\n Pose2D pose2D = mBase.getOdometryPose(-1);\n mBase.setOriginalPoint(pose2D);\n\n //Driving North: \t58.334512491588754, 8.576253530218082 to 58.33452608839093, 8.576253888068521\n //Driving East: 58.33452608839093, 8.576253888068521 to 58.33452618178464, 8.576285073219395\n //Driving West: 58.33452618178464, 8.576285073219395 to 58.33452693486112, 8.576258173706947\n //Driving South: 58.33452693486112, 8.576258173706947 to 58.33451544969185, 8.576258890746544\n\n float[] calibInfo = {angle, (float) metersPerLongitude, (float) metersPerLatitude};\n return calibInfo;\n }",
"public void run() {\r\n /*try {\r\n AudioSystem.write(m_audioInputStream, m_targetType, outFile);\r\n } catch(IOException e) {\r\n e.printStackTrace();\r\n }*/\r\n //diagram.display();\r\n \r\n final java.util.List<Double> samples=new ArrayList<Double>();\r\n int nBytesRead=0;\r\n final int EXTERNAL_BUFFER_SIZE=(int)Math.pow(2, 13); //128000;\r\n byte[] abData=new byte[EXTERNAL_BUFFER_SIZE];\r\n //boolean isOn=false;\r\n while(nBytesRead != -1 && !stopped) {\r\n try {\r\n nBytesRead=m_audioInputStream.read(abData, 0, abData.length);\r\n } catch(IOException e) {\r\n e.printStackTrace();\r\n }\r\n if(nBytesRead > 0) {\r\n //System.err.println(\"data captured: \"+nBytesRead);\r\n final double[] in=new double[nBytesRead / 2+1]; // >>> 16 bit\r\n int j=0;\r\n for(int i=0; i < nBytesRead - 1; i+=2) {\r\n byte left=abData[i];\r\n int right=abData[i + 1];\r\n right<<=8;\r\n right|=(left & 0xFF);\r\n in[j+1]=right / 65536.0; // >>>65535=2^16\r\n j++;\r\n }\r\n\r\n double averageIntensity=0;\r\n try {\r\n final Sound intensitySound=Sound.Sound_createSimple(1, (in.length-1) / (double)SAMPLE_RATE, SAMPLE_RATE);\r\n intensitySound.z[1]=in;\r\n final SoundEditor edit=SoundEditor.SoundEditor_create(\"\", intensitySound);\r\n edit.computeIntensity();\r\n averageIntensity=edit.computeAverageIntensity();\r\n } catch(Exception e) {\r\n e.printStackTrace();\r\n continue; //>>>?\r\n }\r\n final double ai=averageIntensity;\r\n SwingUtilities.invokeLater(new Runnable() { //>>> not good\r\n public void run() {\r\n for(IntensityListener lis: itenListener) {\r\n lis.gotIntensity(ai); //notify listeners\r\n }\r\n }\r\n });\r\n\r\n /*if(INTENSITY_THRESHOLD<0) {\r\n INTENSITY_THRESHOLD=(int)ai+20;\r\n System.err.println(\"t:\"+ai);\r\n } else {*/\r\n//System.err.println(ai);\r\n if(ai>=settings.noiseLevel) { //filter weak noises\r\n //>>> too long? \r\n for(int i=1; i<in.length; i++) {\r\n samples.add(in[i]);\r\n }\r\n } else {\r\n analyzePitch(samples);\r\n samples.clear();\r\n }\r\n //}\r\n }\r\n }\r\n //System.err.println(\"got sample\");\r\n \r\n \r\n//System.err.println(\"done\");\r\n }",
"public static void main(String[] args)\n {\n OneVarParameterizedFunction polynomial; \n\n double coef[] = { 1, 2, 3, 4 };\n polynomial = new Polynomial( coef );\n\n String par_name[] = polynomial.getParameterNames();\n\n System.out.println( \"Polynomial: \" );\n for ( int i = 0; i < par_name.length; i++ )\n System.out.println(par_name[i] + \" = \" + coef[i] );\n\n double x;\n for ( int i = 0; i <= 10; i++ )\n {\n x = i;\n System.out.println( \"x = \" + x + \n \", p(x) = \" + polynomial.getValue(x) +\n \", p'(x) = \" + polynomial.get_dFdx(x) +\n \", fp'(x) = \" + polynomial.get_dFdx((float)x) );\n }\n\n x = 3;\n double derivs[] = polynomial.get_dFda( x );\n System.out.println( \"At \" + x + \n \", the derivatives relative to the coeffs are:\");\n for ( int i = 0; i < par_name.length; i++ )\n System.out.println(\"deriv WRT \" + par_name[i] + \" = \" + derivs[i]);\n\n/*\n \n DataSet ds = new DataSet( \"Sample Polynomials\", \"Initial Version\" );\n\n XScale x_scale = new UniformXScale( -5, 5, 500 );\n Data polynomial_data; \n for ( int i = 0; i < 100; i++ )\n {\n double a = -5+i/10.0f;\n double coefficients[] = { a*a, -2*a, 1 };\n polynomial = new Polynomial( coefficients );\n polynomial_data = new FunctionModel( x_scale, polynomial, i );\n ds.addData_entry( polynomial_data );\n }\n ViewManager vm = new ViewManager( ds, IViewManager.IMAGE );\n*/\n }",
"public RealBuffer(float[] samples)\n {\n super(samples);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n }\n }",
"private void run3DC() {\r\n\r\n this.buildProgressBar();\r\n\r\n // OK, here is where the meat of the algorithm goes\r\n\r\n int length;\r\n int i;\r\n int extents[] = srcImage.getExtents();\r\n xDim = extents[0];\r\n yDim = extents[1];\r\n zDim = extents[2];\r\n length = xDim * yDim * zDim;\r\n\r\n // buffers for the image data\r\n float sourceBufferR[] = null;\r\n float sourceBufferG[] = null;\r\n float sourceBufferB[] = null;\r\n float resultBufferR[] = null;\r\n float resultBufferG[] = null;\r\n float resultBufferB[] = null;\r\n float gaussianBufferR[] = null;\r\n float gaussianBufferG[] = null;\r\n float gaussianBufferB[] = null;\r\n float gradientBuffer[];\r\n float gradientBufferR[] = null;\r\n float gradientBufferG[] = null;\r\n float gradientBufferB[] = null;\r\n\r\n boolean useRed = true;\r\n boolean useGreen = true;\r\n boolean useBlue = true;\r\n int colorsPresent = 3;\r\n srcImage.calcMinMax();\r\n if (srcImage.getMinR() == srcImage.getMaxR()) {\r\n useRed = false;\r\n colorsPresent--;\r\n }\r\n if (srcImage.getMinG() == srcImage.getMaxG()) {\r\n useGreen = false;\r\n colorsPresent--;\r\n }\r\n if (srcImage.getMinB() == srcImage.getMaxB()) {\r\n useBlue = false;\r\n colorsPresent--;\r\n }\r\n\r\n // copy the image data into the sourceBuffer so we can access it\r\n try {\r\n if (useRed) {\r\n sourceBufferR = new float[length];\r\n resultBufferR = new float[length];\r\n gaussianBufferR = new float[length];\r\n gradientBufferR = new float[length];\r\n }\r\n if (useGreen) {\r\n sourceBufferG = new float[length];\r\n resultBufferG = new float[length];\r\n gaussianBufferG = new float[length];\r\n gradientBufferG = new float[length];\r\n }\r\n if (useBlue) {\r\n sourceBufferB = new float[length];\r\n resultBufferB = new float[length];\r\n gaussianBufferB = new float[length];\r\n gradientBufferB = new float[length];\r\n }\r\n gradientBuffer = new float[length];\r\n for (i = 0; i < length; i++) {\r\n gradientBuffer[i] = 0.0f;\r\n }\r\n } catch (OutOfMemoryError e){\r\n sourceBufferR = sourceBufferG = sourceBufferB = null;\r\n resultBufferR = resultBufferG = resultBufferB = null;\r\n gaussianBufferR = gaussianBufferG = gaussianBufferB = null;\r\n gradientBuffer = gradientBufferR = gradientBufferG = gradientBufferB = null;\r\n errorCleanUp(\"AlgorithmRegularizedIsotropicDiffusion: Out of memory when creating image buffer\", true);\r\n return;\r\n } // catch{}\r\n\r\n // Gaussian blur the input image as a 3D image\r\n sigmas = new float[3];\r\n sigmas[0] = sigmas[1] = sigmas[2] = stdDev;\r\n\r\n makeKernels1D(true);\r\n\r\n // source image is in sourceBuffer, gaussian smoothed image is in gaussianBuffer\r\n\r\n\r\n try {\r\n if (useRed) {\r\n srcImage.exportRGBData(1, 0, length, sourceBufferR);\r\n }\r\n if (useGreen) {\r\n srcImage.exportRGBData(2, 0, length, sourceBufferG);\r\n }\r\n if (useBlue) {\r\n srcImage.exportRGBData(3, 0, length, sourceBufferB);\r\n }\r\n } catch (IOException error) {\r\n sourceBufferR = sourceBufferG = sourceBufferB = null;\r\n resultBufferR = resultBufferG = resultBufferB = null;\r\n gaussianBufferR = gaussianBufferG = gaussianBufferB = null;\r\n gradientBuffer = gradientBufferR = gradientBufferG = gradientBufferB = null;\r\n errorCleanUp(\"AlgorithmRegularizedIsotropicDiffusion: could NOT export source image\", true);\r\n return;\r\n } // catch()\r\n // make the magnitude of the gradient image of the gaussian smoothed source image\r\n if (useRed) {\r\n algoSepConvolverR = new AlgorithmSeparableConvolver(gaussianBufferR, sourceBufferR,\r\n extents, xDataRound, yDataRound, zDataRound, false);\r\n }\r\n if (useGreen) {\r\n algoSepConvolverG = new AlgorithmSeparableConvolver(gaussianBufferG, sourceBufferG,\r\n extents, xDataRound, yDataRound, zDataRound, false);\r\n }\r\n if (useBlue) {\r\n algoSepConvolverB = new AlgorithmSeparableConvolver(gaussianBufferB, sourceBufferB,\r\n extents, xDataRound, yDataRound, zDataRound, false);\r\n }\r\n\r\n for(int iterNum = 0; iterNum < numIterations; iterNum++) {\r\n if (isProgressBarVisible()) {\r\n progressBar.updateValue(Math.round( ( (float) (iterNum) /\r\n (numIterations - 1) * 100)),\r\n activeImage);\r\n }\r\n\r\n if (useRed) {\r\n algoSepConvolverR.run();\r\n gradientMagnitude3D(gaussianBufferR, gradientBufferR);\r\n for (i = 0; i < length; i++) {\r\n gradientBuffer[i] = gradientBufferR[i];\r\n }\r\n }\r\n if (useGreen) {\r\n algoSepConvolverG.run();\r\n gradientMagnitude3D(gaussianBufferG, gradientBufferG);\r\n for (i = 0; i < length; i++) {\r\n gradientBuffer[i] += gradientBufferG[i];\r\n }\r\n }\r\n if (useBlue) {\r\n algoSepConvolverB.run();\r\n gradientMagnitude3D(gaussianBufferB, gradientBufferB);\r\n for (i = 0; i < length; i++) {\r\n gradientBuffer[i] += gradientBufferB[i];\r\n }\r\n }\r\n for (i = 0; i < length; i++) {\r\n gradientBuffer[i] /= colorsPresent;\r\n }\r\n if (useRed) {\r\n upDateImage3D(resultBufferR, sourceBufferR, gradientBuffer);\r\n }\r\n if (useGreen) {\r\n upDateImage3D(resultBufferG, sourceBufferG, gradientBuffer);\r\n }\r\n if (useBlue) {\r\n upDateImage3D(resultBufferB, sourceBufferB, gradientBuffer);\r\n }\r\n\r\n // copy resultBuffer to sourceBuffer for the next iteration\r\n if (iterNum < (numIterations - 1)) {\r\n if (useRed) {\r\n for (i = 0; i < length; i++) {\r\n sourceBufferR[i] = resultBufferR[i];\r\n }\r\n } // if (useRed)\r\n if (useGreen) {\r\n for (i = 0; i < length; i++) {\r\n sourceBufferG[i] = resultBufferG[i];\r\n }\r\n } // if (useGreen)\r\n if (useBlue) {\r\n for (i = 0; i < length; i++) {\r\n sourceBufferB[i] = resultBufferB[i];\r\n }\r\n } // if (useBlue)\r\n } // if (iterNum < (numIterations - 1))\r\n\r\n } // end for (int iterNum = 0; ...)\r\n\r\n if (useRed) {\r\n algoSepConvolverR.finalize();\r\n algoSepConvolverR = null;\r\n }\r\n if (useGreen) {\r\n algoSepConvolverG.finalize();\r\n algoSepConvolverG = null;\r\n }\r\n if (useBlue) {\r\n algoSepConvolverB.finalize();\r\n algoSepConvolverB = null;\r\n }\r\n\r\n // OK, the resultBuffer is filled with the results of the algorithm,\r\n // put this data into the destination image so it will be displayed in\r\n // in the ViewJFrameWizard\r\n try {\r\n if (useRed) {\r\n for (i = 0; i < length; i++) {\r\n if ((resultBufferR[i] > 255.0f) &&\r\n (destImage.getType() == ModelStorageBase.ARGB)) {\r\n resultBufferR[i] = 255.0f;\r\n }\r\n else if (resultBufferR[i] < 0.0f) {\r\n resultBufferR[i] = 0.0f;\r\n }\r\n }\r\n destImage.importRGBData(1, 0, resultBufferR, false);\r\n }\r\n if (useGreen) {\r\n for (i = 0; i < length; i++) {\r\n if ((resultBufferG[i] > 255.0f) &&\r\n (destImage.getType() == ModelStorageBase.ARGB)) {\r\n resultBufferG[i] = 255.0f;\r\n }\r\n else if (resultBufferG[i] < 0.0f) {\r\n resultBufferG[i] = 0.0f;\r\n }\r\n }\r\n destImage.importRGBData(2, 0, resultBufferG, false);\r\n }\r\n if (useBlue) {\r\n for (i = 0; i < length; i++) {\r\n if ((resultBufferB[i] > 255.0f) &&\r\n (destImage.getType() == ModelStorageBase.ARGB)) {\r\n resultBufferB[i] = 255.0f;\r\n }\r\n else if (resultBufferB[i] < 0.0f) {\r\n resultBufferB[i] = 0.0f;\r\n }\r\n }\r\n destImage.importRGBData(3, 0, resultBufferB, false);\r\n }\r\n } catch (IOException error) {\r\n sourceBufferR = sourceBufferG = sourceBufferB = null;\r\n resultBufferR = resultBufferG = resultBufferB = null;\r\n gaussianBufferR = gaussianBufferG = gaussianBufferB = null;\r\n gradientBuffer = gradientBufferR = gradientBufferG = gradientBufferB = null;\r\n errorCleanUp(\"AlgorithmRegularizedIsotropicDiffusion: Could NOT import resultBuffer to the image\", true);\r\n return;\r\n } // end try{}-catch{}\r\n\r\n destImage.calcMinMax();\r\n disposeProgressBar();\r\n if (threadStopped) { finalize(); return; }\r\n\r\n setCompleted(true);\r\n }",
"public interface GetPointsListener extends Listener {\n\n public void onGetPointsSucc(PointsInfo info);\n}",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints); \n }\n }",
"public BoundingBox3d() {\n reset();\n }",
"protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);",
"@Test\n\tpublic void testSetActiveRegion3DRadius() throws GeoTessException, IOException\n\t{\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\n\n\t\t//\t\t// define a 3D polygon with small circle and 3 layers.\n\t\t//\t\tdouble[] polygonCenter = VectorGeo.getVectorDegrees(30., 90.);\n\t\t//\n\t\t//\t\tdouble polygonRadius = toRadians(30.);\n\t\t//\n\t\t//\t\tdouble radiusTop = 6371 - 55;\n\t\t//\t\tdouble radiusBottom = 4000.;\n\t\t//\n\t\t//\t\tHorizon top = new HorizonRadius(radiusTop, 4);\n\t\t//\t\tHorizon bottom = new HorizonRadius(radiusBottom, 2);\n\t\t//\n\t\t//\t\tPolygon polygon = new Polygon3D(polygonCenter, polygonRadius,\n\t\t//\t\t\t\t100, bottom, top);\n\n\t\tPolygon3D polygon = new Polygon3D(new File(\"src/test/resources/permanent_files/polygon_small_circle_radii.ascii\"));\n\t\tdouble[] polygonCenter = polygon.getReferencePoint();\n\t\tdouble polygonRadius = VectorUnit.angle(polygonCenter, polygon.getPoint(0));\n\n\t\tdouble radiusTop = polygon.getTop().getValue();\n\t\tdouble radiusBottom = polygon.getBottom().getValue();\n\n\t\tint topLayer = polygon.getTop().getLayerIndex();\n\t\tint bottomLayer = polygon.getBottom().getLayerIndex();\n\n\t\t// set the active region to 3D polygon\n\t\tsmall_model.setActiveRegion(polygon);\n\t\tassertEquals(144, small_model.getPointMap().size());\n\n\t\t// check every point in the point map to ensure that it is within the polygon\n\t\tfor (int i=0; i<small_model.getPointMap().size(); ++i)\n\t\t{\n\t\t\tdouble[] point = small_model.getPointMap().getPointUnitVector(i);\n\t\t\tassertTrue(VectorUnit.angle(polygonCenter, point) < polygonRadius \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) >= bottomLayer \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) <= topLayer\n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) >= radiusBottom \n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) <= radiusTop\n\t\t\t\t\t);\n\t\t}\n\n\t\t// check every node in the small_model. if the node has point index < 0 then\n\t\t// ensure that it is outside the polygon. if the node has point index \n\t\t// >= 0, then it must be within the polygon.\n\t\tboolean passed = true;\n\t\tfor (int vertex=0; vertex<small_model.getGrid().getVertices().length; ++vertex)\n\t\t{\n\t\t\tdouble distance = VectorUnit.angle(polygonCenter, small_model.getGrid().getVertex(vertex));\n\t\t\tProfile[] pp = small_model.getProfiles(vertex);\n\t\t\tfor (int layer=0; layer<small_model.getNLayers(); ++layer)\n\t\t\t{\n\t\t\t\tProfile p = pp[layer];\n\t\t\t\tfor (int n=0; n<p.getNData(); ++n)\n\t\t\t\t{\n\t\t\t\t\tboolean inpolygon = distance < polygonRadius\n\t\t\t\t\t\t\t&& layer >= bottomLayer\n\t\t\t\t\t\t\t&& layer <= topLayer\n\t\t\t\t\t\t\t&& p.getRadius(n) > radiusBottom\n\t\t\t\t\t\t\t&& p.getRadius(n) < radiusTop\n\t\t\t\t\t\t\t;\n\n\t\t\t\t\t\t\tboolean positive = p.getPointIndex(n) >= 0;\n\n\t\t\t\t\t\t\tif (inpolygon != positive) passed = false;\n\n\t\t\t\t\t\t\tif (inpolygon != positive)\n\t\t\t\t\t\t\t\tSystem.out.printf(\"testSetActiveRegion3DRadii ptIndex=%d dist=%1.3f layer=%d radius=%1.3f%n\",\n\t\t\t\t\t\t\t\t\t\tp.getPointIndex(n),\n\t\t\t\t\t\t\t\t\t\tMath.toDegrees(distance), \n\t\t\t\t\t\t\t\t\t\tlayer,\n\t\t\t\t\t\t\t\t\t\tp.getRadius(n));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tassertTrue(passed);\n\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\t\t\n\n\t}",
"@Override\n public void processStimulus(Enumeration criteria) {\n quadParts.updateData(updater); // request an update of the geometry\n wakeupOn(timedelay);\n }",
"ExpProtocol ensureSampleAliquotProtocol(User user) throws ExperimentException;"
] | [
"0.70746464",
"0.7021823",
"0.6331607",
"0.6284595",
"0.6176815",
"0.61763376",
"0.5860509",
"0.584871",
"0.5736692",
"0.5530753",
"0.54392445",
"0.53035533",
"0.5229927",
"0.5166618",
"0.5124115",
"0.509723",
"0.5062904",
"0.50601053",
"0.50129247",
"0.48342562",
"0.47835588",
"0.47525567",
"0.47373787",
"0.4736445",
"0.47327077",
"0.46802756",
"0.46063247",
"0.4588402",
"0.45428368",
"0.44891313",
"0.4486928",
"0.44633734",
"0.44529974",
"0.4422544",
"0.44169003",
"0.44082016",
"0.43874058",
"0.43646172",
"0.43428403",
"0.43124697",
"0.42887908",
"0.42535555",
"0.42477793",
"0.42472738",
"0.42468718",
"0.4240065",
"0.42184475",
"0.41947788",
"0.4185604",
"0.41828227",
"0.41750905",
"0.41631654",
"0.4157835",
"0.4113489",
"0.41092178",
"0.40918162",
"0.40876725",
"0.4078018",
"0.40738595",
"0.40559942",
"0.40557227",
"0.40326488",
"0.40213895",
"0.40208033",
"0.40111166",
"0.40090138",
"0.4006956",
"0.39993298",
"0.39788494",
"0.39739105",
"0.39663377",
"0.39652628",
"0.39560795",
"0.3955075",
"0.39509854",
"0.39501145",
"0.39438978",
"0.3943142",
"0.39377543",
"0.393622",
"0.3934497",
"0.39298546",
"0.3927072",
"0.3918452",
"0.391565",
"0.3913422",
"0.39124486",
"0.39057928",
"0.39051917",
"0.3903988",
"0.39032143",
"0.39026025",
"0.3896737",
"0.3885472",
"0.38845608",
"0.3872536",
"0.38694707",
"0.38677874",
"0.3866565",
"0.3865344"
] | 0.56078756 | 9 |
Creates a quadric robust estimator based on 3D point samples and using provided listener and points. | public static QuadricRobustEstimator create(
QuadricRobustEstimatorListener listener, List<Point3D> points,
RobustEstimatorMethod method) {
switch (method) {
case LMedS:
return new LMedSQuadricRobustEstimator(listener, points);
case MSAC:
return new MSACQuadricRobustEstimator(listener, points);
case PROSAC:
return new PROSACQuadricRobustEstimator(listener, points);
case PROMedS:
return new PROMedSQuadricRobustEstimator(listener, points);
case RANSAC:
default:
return new RANSACQuadricRobustEstimator(listener, points);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points) {\n return create(listener, points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores) {\n return create(listener, points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(List<Point3D> points) {\n return create(points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores) {\n return create(points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points, \n qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points, \n qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public Point3D triangulate() throws LockedException, NotReadyException,\n RobustEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n final LMedSRobustEstimator<Point3D> innerEstimator =\n new LMedSRobustEstimator<>(\n new LMedSRobustEstimatorListener<Point3D>() {\n\n // point to be reused when computing residuals\n private final Point2D mTestPoint = Point2D.create(\n CoordinatesType.HOMOGENEOUS_COORDINATES);\n\n // non-robust 3D point triangulator\n private final SinglePoint3DTriangulator mTriangulator =\n SinglePoint3DTriangulator.create(mUseHomogeneousSolution ?\n Point3DTriangulatorType.LMSE_HOMOGENEOUS_TRIANGULATOR :\n Point3DTriangulatorType.LMSE_INHOMOGENEOUS_TRIANGULATOR);\n\n // subset of 2D points\n private final List<Point2D> mSubsetPoints = new ArrayList<>();\n\n // subst of cameras\n private final List<PinholeCamera> mSubsetCameras =\n new ArrayList<>();\n\n @Override\n public int getTotalSamples() {\n return mPoints2D.size();\n }\n\n @Override\n public int getSubsetSize() {\n return MIN_REQUIRED_VIEWS;\n }\n\n @Override\n public void estimatePreliminarSolutions(final int[] samplesIndices,\n final List<Point3D> solutions) {\n mSubsetPoints.clear();\n mSubsetPoints.add(mPoints2D.get(samplesIndices[0]));\n mSubsetPoints.add(mPoints2D.get(samplesIndices[1]));\n\n mSubsetCameras.clear();\n mSubsetCameras.add(mCameras.get(samplesIndices[0]));\n mSubsetCameras.add(mCameras.get(samplesIndices[1]));\n\n try {\n mTriangulator.setPointsAndCameras(mSubsetPoints,\n mSubsetCameras);\n final Point3D triangulated = mTriangulator.triangulate();\n solutions.add(triangulated);\n } catch (final Exception e) {\n // if anything fails, no solution is added\n }\n }\n\n @Override\n public double computeResidual(final Point3D currentEstimation, final int i) {\n final Point2D point2D = mPoints2D.get(i);\n final PinholeCamera camera = mCameras.get(i);\n\n // project estimated point with camera\n camera.project(currentEstimation, mTestPoint);\n\n // return distance of projected point respect to the original one\n // as a residual\n return mTestPoint.distanceTo(point2D);\n }\n\n @Override\n public boolean isReady() {\n return LMedSRobustSinglePoint3DTriangulator.this.isReady();\n }\n\n @Override\n public void onEstimateStart(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateStart(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateEnd(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateEnd(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateNextIteration(\n final RobustEstimator<Point3D> estimator, final int iteration) {\n if (mListener != null) {\n mListener.onTriangulateNextIteration(\n LMedSRobustSinglePoint3DTriangulator.this,\n iteration);\n }\n }\n\n @Override\n public void onEstimateProgressChange(\n final RobustEstimator<Point3D> estimator, final float progress) {\n if (mListener != null) {\n mListener.onTriangulateProgressChange(\n LMedSRobustSinglePoint3DTriangulator.this,\n progress);\n }\n }\n });\n\n try {\n mLocked = true;\n innerEstimator.setConfidence(mConfidence);\n innerEstimator.setMaxIterations(mMaxIterations);\n innerEstimator.setProgressDelta(mProgressDelta);\n innerEstimator.setStopThreshold(mStopThreshold);\n return innerEstimator.estimate();\n } catch (final com.irurueta.numerical.LockedException e) {\n throw new LockedException(e);\n } catch (final com.irurueta.numerical.NotReadyException e) {\n throw new NotReadyException(e);\n } finally {\n mLocked = false;\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores) {\n return create(listener, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener) {\n return create(listener, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints) {\n return create(listener, inputPoints, outputPoints, \n DEFAULT_ROBUST_METHOD);\n }",
"public abstract Point_3 evaluate(double u, double v);",
"public static QuadricRobustEstimator create(double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create() {\n return create(DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n boolean weakMinimumSizeAllowed) {\n return create(listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints); \n }\n }",
"public QuadriCubicSpline(double[] x1, double[] x2, double[] x3, double[] x4, double[][][][] y) {\n\t\tthis.nPoints = x1.length;\n\t\tthis.mPoints = x2.length;\n\t\tthis.lPoints = x3.length;\n\t\tthis.kPoints = x4.length;\n\t\tif (this.nPoints != y.length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x1 and y-row are of different length \" + this.nPoints + \" \" + y.length);\n\t\tif (this.mPoints != y[0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x2 and y-column are of different length \" + this.mPoints + \" \" + y[0].length);\n\t\tif (this.lPoints != y[0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x3 and y-column are of different length \" + this.mPoints + \" \" + y[0][0].length);\n\t\tif (this.kPoints != y[0][0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x4 and y-column are of different length \" + this.kPoints + \" \" + y[0][0][0].length);\n\t\tif ((this.nPoints < 3) || (this.mPoints < 3) || (this.lPoints < 3) || (this.kPoints < 3))\n\t\t\tthrow new IllegalArgumentException(\"The tabulated 4D array must have a minimum size of 3 X 3 X 3 X 3\");\n\n\t\tthis.csm = new CubicSpline(this.nPoints);\n\t\tthis.tcsn = TriCubicSpline.oneDarray(this.nPoints, this.mPoints, this.lPoints, this.kPoints);\n\t\tthis.x1 = new double[this.nPoints];\n\t\tthis.x2 = new double[this.mPoints];\n\t\tthis.x3 = new double[this.lPoints];\n\t\tthis.x4 = new double[this.kPoints];\n\n\t\tthis.y = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tthis.d2ydx2 = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tthis.x1[i] = x1[i];\n\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\tthis.x2[j] = x2[j];\n\t\tfor (int j = 0; j < this.lPoints; j++)\n\t\t\tthis.x3[j] = x3[j];\n\t\tfor (int j = 0; j < this.kPoints; j++)\n\t\t\tthis.x4[j] = x4[j];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\t\tfor (int k = 0; k < this.lPoints; k++)\n\t\t\t\t\tfor (int l = 0; l < this.kPoints; l++)\n\t\t\t\t\t\tthis.y[i][j][k][l] = y[i][j][k][l];\n\t}",
"public abstract Quadric estimate() throws LockedException, \n NotReadyException, RobustEstimatorException;",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n }\n }",
"public NurbsSurface(int segments, int nr_of_points) {\n always_evaluate = false;\n nr_of_segments = segments;\n points_per_segment = nr_of_points;\n surface_type = 2;\n u = new double[100];\n v = new double[100];\n k = 3;\n int i, j;\n\n step = 0.2;\n evaluated_points = new NurbsPoint[(int) ((double) nr_of_segments / step)][(int) ((double) points_per_segment / step)];\n\n for (i = 0; i < (int) ((double) nr_of_segments / step); i++) {\n for (j = 0; j < (int) ((double) points_per_segment / step); j++) {\n evaluated_points[i][j] = new NurbsPoint(0, 0, 0);\n }\n }\n\n u[0] = 0;\n u[1] = 0;\n u[2] = 0;\n u[3] = 0;\n v[0] = 0;\n v[1] = 0;\n v[2] = 0;\n v[3] = 0;\n\n for (i = 4; i < segments - 4; i++) {\n u[i] = i - 3;\n }\n\n for (i = 4; i < nr_of_points - 4; i++) {\n v[i] = i - 3;\n }\n\n u[segments - 4] = segments - 7;\n u[segments - 3] = segments - 7;\n u[segments - 2] = segments - 7;\n u[segments - 1] = segments - 7;\n\n v[nr_of_points - 4] = nr_of_points - 7;\n v[nr_of_points - 3] = nr_of_points - 7;\n v[nr_of_points - 2] = nr_of_points - 7;\n v[nr_of_points - 1] = nr_of_points - 7;\n\n points = new NurbsPoint[nr_of_segments][points_per_segment];\n }",
"public static QuadricRobustEstimator create(double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator(qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"@Test\r\n public void testSplineApproximator() {\r\n List<Point> data = createConvergingDataset();\r\n List<ExpectedApproximation> exp = new ArrayList<ExpectedApproximation>();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(1000, 17, 1050));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(1062, 40, 1066));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n\r\n data = createLinearDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(100, 3, 200));\r\n exp.add(new ExpectedApproximation(300, 11, 400));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 100));\r\n exp.add(new ExpectedApproximation(400, 17, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n \r\n data = createIncreasingDecreasingDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(700, 23, 900));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(0, 35, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n }",
"public MetricTransformation2DRobustEstimator(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints) {\n this(listener);\n internalSetPoints(inputPoints, outputPoints);\n }",
"public static vtkPoints createPoints(float[] points)\n\t{\n\t\tvtkPoints vtkPoints = new vtkPoints();\n\t\tvtkFloatArray d = new vtkFloatArray();\n\t\td.SetJavaArray(points);\n\t\td.SetNumberOfComponents(3);\n\t\tvtkPoints.SetData(d);\n\t\tdelete(d);\n\t\treturn vtkPoints;\n\t}",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores) {\n return create(inputPoints, outputPoints, qualityScores, \n DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public static vtkPoints createPoints(double[] points)\n\t{\n\t\tvtkPoints vtkPoints = new vtkPoints();\n\t\tvtkDoubleArray d = new vtkDoubleArray();\n\t\td.SetJavaArray(points);\n\t\td.SetNumberOfComponents(3);\n\t\tvtkPoints.SetData(d);\n\t\tdelete(d);\n\t\treturn vtkPoints;\n\t}",
"public static void test2() {\n String dataDir = \"/Data/cteam/tp/csm/seismicz/subz_401_4_600/\";\n String dataFile = \"tpets.dat\";\n int n1 = 401, n2 = 357, n3 = 161;\n float v = 1.0f, d = 30.0f;\n EigenTensors3 et = loadTensors(dataDir+dataFile);\n System.out.println(et);\n float[][][] paint = new float[n3][n2][n1];\n Painting3Group p3g = new Painting3Group(paint);\n PaintBrush pb = new PaintBrush(n1,n2,n3,et);\n pb.setSize(30);\n Painting3 p3 = p3g.getPainting3();\n for (int i3=0; i3<10; ++i3)\n for (int i2=0; i2<10; ++i2)\n for (int i1=0; i1<1; ++i1) {\n p3.paintAt(n1/2+i1,n2/2+i2,n3/2+i3,v,d,pb);\n }\n\n Contour c = p3.getContour(v);\n\n SimpleFrame sf = new SimpleFrame();\n sf.setTitle(\"Formation\");\n World world = sf.getWorld();\n TriangleGroup tg = new TriangleGroup(c.i,c.x);\n world.addChild(tg);\n }",
"public void Setup(int nPoints, float swp, float shp, float ssu)\n {\n Random rnd = new Random();\n\n // Our collection of vertices\n vertices = new float[nPoints*VERTICES_PER_GLYPH*TOTAL_COMPONENT_COUNT];\n\n // Create the vertex data\n for(int i=0;i<nPoints;i++) {\n int offset_x = rnd.nextInt((int)swp);\n int offset_y = rnd.nextInt((int)shp);\n\n float llu = rnd.nextInt(2) * 0.5f;\n float llv = rnd.nextInt(2) * 0.5f;\n \n \n AddGlyph(offset_x, offset_y, ssu, llu, llv, 0.5f, 0.5f);\n }\n\n // The indices for all textured quads\n indices = new short[nPoints*3*TRIANGLES_PER_GLYPH]; \n int last = 0;\n for(int i=0;i<nPoints;i++) {\n // We need to set the new indices for the new quad\n indices[(i*6) + 0] = (short) (last + 0);\n indices[(i*6) + 1] = (short) (last + 1);\n indices[(i*6) + 2] = (short) (last + 2);\n indices[(i*6) + 3] = (short) (last + 0);\n indices[(i*6) + 4] = (short) (last + 2);\n indices[(i*6) + 5] = (short) (last + 3);\n\n // Our indices are connected to the vertices so we need to keep them\n // in the correct order.\n // normal quad = 0,1,2,0,2,3 so the next one will be 4,5,6,4,6,7\n last = last + 4;\n }\n\n // The vertex buffer.\n ByteBuffer bb = ByteBuffer.allocateDirect(vertices.length * BYTES_PER_FLOAT);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(vertices);\n vertexBuffer.position(0);\n\n // initialize byte buffer for the draw list\n ByteBuffer dlb = ByteBuffer.allocateDirect(indices.length * BYTES_PER_SHORT);\n dlb.order(ByteOrder.nativeOrder());\n indexBuffer = dlb.asShortBuffer();\n indexBuffer.put(indices);\n indexBuffer.position(0);\n\n }",
"@org.junit.Test\n public void getUniformParamsTestCurve3() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(15, 20), new Vector(15, 30));\n List<Double> params = curve.getUniformParams(6);\n assertEquals(6, curve.getUniformParams(6).size());\n\n // check that each point is further down the line of the curve\n // each x and y should be larger than the previous\n Vector prev = curve.getPoint(params.get(0));\n for (int i = 1; i < params.size(); i++) {\n Vector point = curve.getPoint(params.get(i));\n assertTrue(point.x > prev.x);\n assertTrue(point.y > prev.y);\n }\n\n // check that the first and the last sampling points are equal to starting and ending controlling points\n assertEquals(new Vector(10, 20), curve.getPoint(params.get(0)));\n assertEquals(new Vector(15, 30), curve.getPoint(params.get(params.size() - 1)));\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores) {\n return create(listener, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"protected SoDetail \ncreateTriangleDetail(SoRayPickAction action,\n final SoPrimitiveVertex v1,\n final SoPrimitiveVertex v2,\n final SoPrimitiveVertex v3,\n final SoPickedPoint pp)\n //\n ////////////////////////////////////////////////////////////////////////\n{\n SoCubeDetail detail;\n\n // Don't create a detail if the pick operation was performed on a\n // bounding box cube, not a real cube\n if (pickingBoundingBox)\n return null;\n\n detail = new SoCubeDetail();\n\n // The part code should be the same in all three details, so just use one\n detail.setPart((( SoCubeDetail ) v1.getDetail()).getPart());\n\n return detail;\n}",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(listener, qualityScores, weakMinimumSizeAllowed, \n DEFAULT_ROBUST_METHOD);\n }",
"@Test\r\n public void testPolynomialApproximator() {\r\n List<Point> data = createLinearDataset();\r\n test(PolynomialApacheMathApproximator.INSTANCE_3, data, null);\r\n }",
"@Test\n public void testConstructor() {\n RANSACRadialDistortionRobustEstimator estimator =\n new RANSACRadialDistortionRobustEstimator();\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertNull(estimator.getDistortedPoints());\n assertNull(estimator.getUndistortedPoints());\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertFalse(estimator.arePointsAvailable());\n assertFalse(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // test constructor with listener\n estimator = new RANSACRadialDistortionRobustEstimator(this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertNull(estimator.getDistortedPoints());\n assertNull(estimator.getUndistortedPoints());\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertFalse(estimator.arePointsAvailable());\n assertFalse(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // test constructor with points\n final List<Point2D> distortedPoints = new ArrayList<>();\n final List<Point2D> undistortedPoints = new ArrayList<>();\n for (int i = 0; i < RadialDistortionRobustEstimator.MIN_NUMBER_OF_POINTS; i++) {\n distortedPoints.add(Point2D.create());\n undistortedPoints.add(Point2D.create());\n }\n\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n final List<Point2D> emptyPoints = new ArrayList<>();\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points and listener\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points and center\n final Point2D center = Point2D.create();\n\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, center);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertSame(estimator.getDistortionCenter(), center);\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n center.getInhomX(), 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n center.getInhomY(), 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points, center and listener\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, center, this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertSame(estimator.getDistortionCenter(), center);\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n center.getInhomX(), 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n center.getInhomY(), 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n }",
"public ExtrapolatedSaturationPointEvaluator(int[] anchorpoints,\n\t\t\tISamplingAlgorithmFactory<IInstance, ? extends ASamplingAlgorithm<IInstance>> samplingAlgorithmFactory,\n\t\t\tIDataset<IInstance> train, double trainSplitForAnchorpointsMeasurement,\n\t\t\tLearningCurveExtrapolationMethod extrapolationMethod, long seed, IDataset<IInstance> test) {\n\t\tsuper();\n\t\tthis.anchorpoints = anchorpoints;\n\t\tthis.samplingAlgorithmFactory = samplingAlgorithmFactory;\n\t\tthis.train = train;\n\t\tthis.trainSplitForAnchorpointsMeasurement = trainSplitForAnchorpointsMeasurement;\n\t\tthis.extrapolationMethod = extrapolationMethod;\n\t\tthis.seed = seed;\n\t\tthis.epsilon = DEFAULT_EPSILON;\n\t\tthis.test = test;\n\t}",
"public interface GestureRecorderListener {\n\n void onGestureRecorded(List<float[]> values);\n\n IBinder getBinder();\n\n void startClassification(String defaultGesture);\n}",
"public void ignoreCreateArrayForVec3With6Position() {\r\n\r\n SXRMesh sxrMesh = TestDefaultSXRViewManager.mSXRContext.getAssetLoader().loadMesh(UtilResource.androidResource(TestDefaultSXRViewManager.mSXRContext,R.raw.cylinder3));\r\n float[] vec3 = {-0.5f, 0.5f, 0.0f, -0.5f, 0.5f, 0.0f};\r\n\r\n try {\r\n sxrMesh.setVec3Vector(\"ratio_r\", vec3);\r\n assertNotNull(sxrMesh.getVec4Vector(\"ratio_r\"));\r\n fail();\r\n } catch (InvalidParameterException e) {\r\n assertEquals(e.getMessage(), \"setVec3Vector method support only three position array\");\r\n }\r\n }",
"public abstract Vector3D getPointForSurfaceCoordinates(double u, double v);",
"public Point2D[] getPoint2DArray() { \n \n double x1=0; \n double y1=0; \n double x2=0; \n double y2=0; \n \n double x0; \n double y0; \n double x3; \n double y3; \n \n int samples_interval = Math.round(samples / (points.length-1)); \n Point2D[] points_return = new Point2D[samples]; \n int pos_return = 0; //we'll store the pointer in the points_return array here. \n //We iterate between the different given points, \n //calculating the Bezier curves between them \n for(int i=0; i < points.length-1; i++){ \n //the last period may have a different number of samples in order to fit the sample value \n if(i == points.length-2){ \n samples_interval = samples - (samples_interval*(points.length-2)); \n } \n x1=points[i].getX(); \n x2=points[i+1].getX(); \n y1=points[i].getY(); \n y2=points[i+1].getY(); \n if(i>0){ \n x0=points[i-1].getX(); \n y0=points[i-1].getY(); \n }else { \n x0 = x1 - Math.abs(x2 - x1); \n y0 = y1; \n } \n if(i < points.length -2){ \n x3=points[i+2].getX(); \n y3=points[i+2].getY(); \n } else { \n x3 = x1 + 2*Math.abs(x1 - x0); \n y3 = y1; \n } \n Point2D[] points_bezier = CalculateBezierCurve(x0,y0,x1,y1,x2,y2,x3,y3, samples_interval); \n //Fill the return array \n for(int j = 0 ; j < points_bezier.length; j++){ \n points_return[pos_return] = new Point2D.Double(points_bezier[j].getX(),points_bezier[j].getY()); \n pos_return++; \n } \n \n } \n \n\n return points_return; \n}",
"public static QuadricRobustEstimator create(RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator();\n case PROMedS:\n return new PROMedSQuadricRobustEstimator();\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n }\n }",
"@Test\r\n\tpublic void testPositiveGenerateSignedGaussians_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString ticketId = roc.createTickets(1, true)[0].get(\"ticketId\").getAsString();\r\n\t\t\t\tHashMap<String, Object> o = roc.generateSignedGaussians(10, 3.41d, 2.1d, 4, \r\n\t\t\t\t\t\tuserData, ticketId);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, double[].class, true, ticketId);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private void pushTrajectory(WPI_TalonSRX _talon, ArrayList<ArrayList<Double>> points) {\n\t\tTrajectoryPoint point = new TrajectoryPoint();\n\t\t_talon.clearMotionProfileTrajectories();\n\n\t\t/* This is fast since it's just into our TOP buffer */\n\t\tint i = 0;\n\t\tfor (ArrayList<Double> arr : points) {\n\t\t\t/* for each point, fill our structure and pass it to API */\n\t\t\t// Double[] a = (Double[]) arr.toArray();\n\t\t\tpoint.position = arr.get(0) * RobotMap.CODES_PER_WHEEL_REV * 3.6;\n\t\t\t\n\t\t\tpoint.velocity = arr.get(1) * RobotMap.CODES_PER_WHEEL_REV * 4/ 600;\n\t\t\tpoint.timeDur = TrajectoryPoint.TrajectoryDuration.Trajectory_Duration_20ms;\n\t\t\t//point.timeDur = (int)(arr.get(2) / multiplier);\n\t\t\t\n\t\t\t//System.out.println(\"DriveByMotionProfile: \" + point.position + \" \" + point.velocity + \" \" + point.timeDur);// + \" \" + point.timeDurMs);\n\t\t\tpoint.profileSlotSelect0 = 0; /*\n\t\t\t\t\t\t\t\t\t\t\t * which set of gains would you like to\n\t\t\t\t\t\t\t\t\t\t\t * use?\n\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t//point.velocityOnly = false; \n\t\t\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t\t\t * set true to not do any position\n\t\t\t\t\t\t\t\t\t\t * servo, just velocity feedforward\n\t\t\t\t\t\t\t\t\t\t */\n\t\t\tpoint.zeroPos = false;\n\t\t\tif (i == 0)\n\t\t\t\tpoint.zeroPos = true; /* set this to true on the first point */\n\n\t\t\tpoint.isLastPoint = false;\n\t\t\tif ((i + 1) == points.size())\n\t\t\t\tpoint.isLastPoint = true; /*\n\t\t\t\t\t\t\t\t\t\t\t * set this to true on the last point\n\t\t\t\t\t\t\t\t\t\t\t */\n\n\t\t\t_talon.pushMotionProfileTrajectory(point);\n\t\t\ti++;\n\t\t}\n\t}",
"public abstract void constructHull();",
"public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }",
"@Test\n public void getPointsTest() {\n final double[] expectedResult = new double[3];\n final double[] envelope = new double[]{-3, 2, 0, 1, 4, 0};\n\n //lower corner\n System.arraycopy(envelope, 0, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getLowerCorner(envelope)));\n\n //upper corner\n System.arraycopy(envelope, 3, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getUpperCorner(envelope)));\n\n //median\n expectedResult[0] = -1;\n expectedResult[1] = 3;\n expectedResult[2] = 0;\n assertTrue(Arrays.equals(expectedResult, getMedian(envelope)));\n }",
"@org.junit.Test\n public void getUniformParamsTestCurve4() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(15, 20),\n new Vector(10, 30), new Vector(15, 30));\n List<Double> params = curve.getUniformParams(6);\n assertEquals(6, curve.getUniformParams(6).size());\n\n // check that each point is further down the line of the curve\n // each x and y should be larger than the previous\n Vector prev = curve.getPoint(params.get(0));\n for (int i = 1; i < params.size(); i++) {\n Vector point = curve.getPoint(params.get(i));\n assertTrue(point.x > prev.x);\n assertTrue(point.y > prev.y);\n }\n\n // check that the first and the last sampling points are equal to starting and ending controlling points\n assertEquals(new Vector(10, 20), curve.getPoint(params.get(0)));\n assertEquals(new Vector(15, 30), curve.getPoint(params.get(params.size() - 1))); }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints) {\n return create(inputPoints, outputPoints, DEFAULT_ROBUST_METHOD);\n }",
"private double threeDimensionalSolveQ1(RealMatrix u, RealMatrix v, double q3) {\r\n double u11 = u.getEntry(0, 0);\r\n double u12 = u.getEntry(0, 1);\r\n double u13 = u.getEntry(0, 2);\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v1 = v.getEntry(0, 0);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (((u12*v2)/(u11*u22)) - (v1/u11)) + ((((u12*u23)/(u11*u22)) - (u13/u11))*q3);\r\n }",
"public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }",
"public MetricTransformation2DRobustEstimator(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n boolean weakMinimumSizeAllowed) {\n this(listener);\n mWeakMinimumSizeAllowed = weakMinimumSizeAllowed;\n internalSetPoints(inputPoints, outputPoints);\n }",
"private Point2D[] CalculateBezierCurve(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, int samples_interval){ \n \n \n \n double control_point_1_x; \n double control_point_1_y; \n double control_point_2_x; \n double control_point_2_y; \n \n \n //Calculate the control points for the cubic bezier line \n control_point_1_x =controlPoint(x0,x1,x2); \n control_point_1_y =controlPoint(y0,y1,y2); \n \n control_point_2_x = controlPoint(x3,x2,x1); \n control_point_2_y = controlPoint(y3,y2,y1); \n \n //System.out.println(\"control1: \" + control_point_1_x + \" -- \" + control_point_1_y); \n //System.out.println(\"control2: \" + control_point_2_x + \" -- \" + control_point_2_y); \n \n \n double cx = 3.0 * (control_point_1_x - x1); \n double bx = 3.0 * (control_point_2_x - control_point_1_x) - cx; \n double ax = x2 - x1 - cx - bx; \n \n double cy = 3.0 * (control_point_1_y - y1); \n double by = 3.0 * (control_point_2_y - control_point_1_y) - cy; \n double ay = y2 - y1 - cy - by; \n \n //Let's calculate all the ponits that follow the Bezier curve. \n Point2D[] points = new Point2D[samples_interval]; \n for(int j = 0; j < samples_interval; j++){ \n double t = j*(1.0/samples_interval); \n //System.out.println(\"j: \" + j + \" t: \" + t + \" samples_int: \" + (samples_interval)); \n double x = (ax * t * t * t) + (bx * t * t) + (cx * t) + x1; \n double y = (ay * t * t * t) + (by * t *t) + (cy * t) + y1; \n //System.out.println(\"x: \" + x + \" y: \" + y + \" t: \" + t); \n points[j] = new Point2D.Double(x,y); \n } \n return points; \n }",
"public void c(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)\r\n/* 77: */ {\r\n/* 78: 89 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2 + paramDouble3 * paramDouble3);\r\n/* 79: */ \r\n/* 80: 91 */ paramDouble1 /= f1;\r\n/* 81: 92 */ paramDouble2 /= f1;\r\n/* 82: 93 */ paramDouble3 /= f1;\r\n/* 83: */ \r\n/* 84: 95 */ paramDouble1 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 85: 96 */ paramDouble2 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 86: 97 */ paramDouble3 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 87: */ \r\n/* 88: 99 */ paramDouble1 *= paramFloat1;\r\n/* 89:100 */ paramDouble2 *= paramFloat1;\r\n/* 90:101 */ paramDouble3 *= paramFloat1;\r\n/* 91: */ \r\n/* 92:103 */ this.v = paramDouble1;\r\n/* 93:104 */ this.w = paramDouble2;\r\n/* 94:105 */ this.x = paramDouble3;\r\n/* 95: */ \r\n/* 96:107 */ float f2 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 97: */ \r\n/* 98:109 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 99:110 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f2) * 180.0D / 3.141592741012573D));\r\n/* 100:111 */ this.i = 0;\r\n/* 101: */ }",
"public QuickHull() {\n allPoints =new ArrayList<>();\n convexHull = new ArrayList<>();\n }",
"public CalibrateReturn changeCalibrationCoordinates(JFrame con, MyPoint3D typed1, MyPoint3D typed2) {\n final String title = \"Calibrate\";\n final String prompt1 = \"Enter the coordinates of the \";\n String[] prompts = new String[2];\n prompts[0] = \"first\";\n prompts[1] = \"second\";\n final String prompt2 = \" calibration point:\";\n final String message = \"Enter three numeric values.\";\n MyPoint3D[] newTyped = new MyPoint3D[2];\n \n // Loop over each calibration point:\n for (int i=0 ; i<2 ; i++) {\n \n String input, prompt;\n String[] inputs;\n double x,y,z;\n MyPoint3D p;\n if (i==0) {\n p = typed1;\n } else {\n p = typed2;\n }\n \n // Ask for the spatial coordinates of the current clicked point:\n prompt = prompt1 + prompts[i] + prompt2;\n if (p==null) {\n input = Dialogs.input(con,prompt,title);\n } else {\n input = Dialogs.input(con,prompt,title,p.toString());\n }\n if (input==null) { return null; } // user cancelled\n input = input.trim();\n inputs = input.split(\"[ ]+\");\n if (inputs.length!=3) {\n Dialogs.error(con,\"You must enter 3 values.\",title);\n return null;\n }\n \n // Parse the inputs to doubles and set the current typed point:\n try {\n x = Double.parseDouble(inputs[0].trim());\n y = Double.parseDouble(inputs[1].trim());\n z = Double.parseDouble(inputs[2].trim());\n } catch (NumberFormatException | ArrayIndexOutOfBoundsException e) {\n Dialogs.error(con,message,title);\n return null;\n }\n newTyped[i] = new MyPoint3D(x,y,z);\n \n } // for i\n \n // Return successfully with both altered typed points:\n return new CalibrateReturn(true,newTyped[0],newTyped[1]);\n \n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n }\n }",
"protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener); \n }\n }",
"public double getValue( Coordinate[] controlPoints, Coordinate interpolated );",
"public static AlgebraicVector[] buildHull(Set<AlgebraicVector> points) throws Failure {\n if (points.size() < 3) {\n fail(\"At least three input points are required for a 2d convex hull.\\n\\n\" + points.size() + \" specified.\");\n }\n AlgebraicVector normal = AlgebraicVectors.getNormal(points); \n if(normal.isOrigin()) {\n fail(\"Cannot generate a 2d convex hull from collinear points\");\n }\n if(!AlgebraicVectors.areOrthogonalTo(normal, points)) {\n fail(\"Cannot generate a 2d convex hull from non-coplanar points\");\n }\n\n // JSweet hates maps keyed by objects, so we'll construct this collection\n // separately, and let the xyTo3dMap use strings as keys.\n Collection<AlgebraicVector> keySet = new ArrayList<>();\n \n // Map each 3d point to a 2d projection and rotate it to the XY plane if necessary.\n // Since the 3d points are coplanar, it will be a 1:1 mapping\n // Later, we'll need to map 2d back to 3d so the 2d vector will be the key\n Map<String, AlgebraicVector> xyTo3dMap = map3dToXY( points, normal, keySet );\n \n // calculate the 2d convex hull\n Deque<AlgebraicVector> stack2d = getHull2d( keySet );\n\n // map the 2d convex hull back to the original 3d points\n AlgebraicVector[] vertices3d = new AlgebraicVector[stack2d.size()];\n \n int i = 0;\n for(AlgebraicVector point2d : stack2d) {\n AlgebraicVector point3d = xyTo3dMap.get( point2d.toString( AlgebraicField.VEF_FORMAT ) );\n // order vertices3d so the normal will point away from the origin \n // to make it consistent with the 3d convex hull algorithm\n vertices3d[i++] = point3d;\n }\n return vertices3d;\n }",
"public interface ISurfaceInterpolator {\n /**\n * Gets an interpolated value in a agiven position, from a set of control values.\n * \n * @param controlPoints all the controlpoints to consider to evaluate the interpolated point.\n * @param interpolated the coordinate in which to interpolate.\n * @return the interpolated z value.\n */\n public double getValue( Coordinate[] controlPoints, Coordinate interpolated );\n \n \n public double getBuffer();\n}",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed) {\n return create(inputPoints, outputPoints, weakMinimumSizeAllowed, \n DEFAULT_ROBUST_METHOD);\n }",
"public void determineCoefficients(int splineIndex, double[] positionIn, double v0, double vf, double a0, double af)\n {\n if (!initialized.getBooleanValue())\n throw new RuntimeException(\"QuinticSplineInterpolator is not initialized\");\n\n if (splineIndex > numberOfSplines - 1 || splineIndex < 0)\n throw new RuntimeException(\"SplineIndex is out of bounds\");\n\n if (positionIn.length < numberOfPoints.getValue())\n throw new RuntimeException(\"Length of positionIn is less than the number of points\");\n\n MatrixTools.setMatrixColumnFromArray(a, 0, positionIn, 0, a.getNumRows());\n\n MatrixTools.diff(positionIn, yd);\n\n if (numberOfPoints.getValue() > 2)\n {\n s.unsafe_set(0, 0, positionIn[1] / h.unsafe_get(0, 0) - positionIn[0] / h.unsafe_get(0, 0) - v0);\n for (int i = 0; i < numberOfPoints.getValue() - 2; i++)\n {\n s.unsafe_set(i + 4, 0, yd.unsafe_get(i + 1, 0) / h.unsafe_get(i + 1, 0) - yd.unsafe_get(i, 0) / h.unsafe_get(i, 0));\n }\n }\n else\n {\n s.unsafe_set(0, 0, positionIn[1] / h.unsafe_get(0, 0) - positionIn[0] / h.unsafe_get(0, 0) - v0);\n }\n\n s.unsafe_set(1, 0, a0);\n s.unsafe_set(2,\n 0,\n vf - positionIn[numberOfPoints.getValue() - 1] / h.unsafe_get(numberOfPoints.getValue() - 2, 0)\n + positionIn[numberOfPoints.getValue() - 2] / h.unsafe_get(numberOfPoints.getValue() - 2, 0));\n s.unsafe_set(3, 0, af);\n\n /*\n * TODO: Rewrite so no new objects are created\n */\n\n solver.solve(s, sol);\n\n CommonOps_DDRM.mult(Cblock, sol, c);\n CommonOps_DDRM.mult(D, sol, d);\n\n MatrixTools.setMatrixBlock(e, 0, 0, sol, 2, 0, numberOfPoints.getValue() - 1, 1, 1.0);\n\n MatrixTools.diff(sol, 2, numberOfPoints.getValue(), f);\n CommonOps_DDRM.scale(1.0 / 5.0, f);\n CommonOps_DDRM.elementDiv(f, h);\n\n for (int i = 0; i < numberOfPoints.getValue() - 1; i++)\n {\n double hi = h.unsafe_get(i, 0);\n double hi2 = MathTools.square(hi);\n double hi3 = hi2 * hi;\n double hi4 = hi3 * hi;\n\n b.unsafe_set(i,\n 0,\n yd.unsafe_get(i, 0) / hi - c.unsafe_get(i, 0) * hi - d.unsafe_get(i, 0) * hi2 - e.unsafe_get(i, 0) * hi3 - f.unsafe_get(i, 0) * hi4);\n }\n\n splines[splineIndex].seta(a);\n splines[splineIndex].setb(b);\n splines[splineIndex].setc(c);\n splines[splineIndex].setd(d);\n splines[splineIndex].sete(e);\n splines[splineIndex].setf(f);\n\n splines[splineIndex].setCoefficientsSet(true);\n\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, qualityScores, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, qualityScores, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n }\n }",
"public TriangleElt3D(Point3D[] points, ScalarOperator sop)\n\t\t\tthrows IllegalArgumentException {\n\t\tsuper(points, sop);\n\t\tthis.eltZero = null;\n\t\tthis.eltOne = null;\n\t\tthis.eltTwo = null;\n\t}",
"private void process(ArrayList<Float> points) {\n downsample(3, points);\n vertices = new Vector3f[nrows * ncols];\n texcoord = BufferUtils.createFloatBuffer(2 * nrows * ncols);\n indexes = BufferUtils.createIntBuffer(6 * (nrows - 1) * (ncols - 1));\n Vector3f[][][] fnormals = new Vector3f[nrows - 1][ncols - 1][2];\n normals = new Vector3f[nrows * ncols];\n float x, z;\n\n System.out.println(\"Processing \" + nrows + \"x\" + ncols + \" terrain...\");\n\n // First make vertices + texcoords\n x = 0.0f;\n for (int row = 0; row < nrows; row++) {\n z = 0.0f;\n for (int col = 0; col < ncols; col++) {\n vertices[(row * ncols) + col] = new Vector3f(x, data[row][col], z);\n texcoord.put(col / (float) ncols);\n texcoord.put(row / (float) nrows);\n z += cellsize;\n }\n x += cellsize;\n }\n // Indexes + face normals\n System.out.println(\"Populating faces...\");\n for (int row = 0; row < (nrows - 1); row++) {\n for (int col = 0; col < (ncols - 1); col++) {\n int base = 6 * ((row * (ncols - 1)) + col);\n // Triangle 1\n indexes.put((row * ncols) + col); // a\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col); // c\n // Triangle 2\n indexes.put(((row + 1) * ncols) + col); // c\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col + 1); // d\n // Faces\n base = (row * ncols) + col;\n Vector3f a = vertices[base];\n Vector3f b = vertices[base + 1];\n Vector3f c = vertices[base + ncols];\n Vector3f d = vertices[base + ncols + 1];\n Vector3f ba = b.subtract(a);\n Vector3f ca = c.subtract(a);\n Vector3f bc = b.subtract(c);\n Vector3f dc = d.subtract(c);\n // ormal.subtractLocal(pointa).crossLocal(pointc.x - pointa.x,\n // pointc.y - pointa.y, pointc.z - pointa.z);\n fnormals[row][col][0] = ba.crossLocal(ca).normalizeLocal();\n fnormals[row][col][1] = bc.crossLocal(dc).normalizeLocal();\n // Triangle ta = new Triangle(a,b,c);\n // Triangle tb = new Triangle(c,b,d);\n }\n }\n System.out.println(\"Calculating face normals...\");\n // Vector normals\n Vector3f t;\n // Corners\n // TL\n t = fnormals[0][0][0].add(fnormals[0][0][1]);\n t.normalizeLocal();\n normals[0] = t;\n // TR\n t = fnormals[0][ncols - 2][0].add(fnormals[0][ncols - 2][1]);\n t.normalizeLocal();\n normals[ncols - 1] = t;\n // BL\n t = fnormals[nrows - 2][0][0].add(fnormals[nrows - 2][0][1]);\n t.normalizeLocal();\n normals[(nrows - 1) * ncols] = t;\n // BR\n t = fnormals[nrows - 2][ncols - 2][0].add(fnormals[nrows - 2][ncols - 2][1]);\n t.normalizeLocal();\n normals[(nrows * ncols) - 1] = t;\n // Do first row and last row\n for (int col = 1; col < (ncols - 1); col++) {\n // First row\n t = fnormals[0][col - 1][0].add(fnormals[0][col - 1][1]);\n t.addLocal(fnormals[0][col][0]);\n t.addLocal(fnormals[0][col][1]);\n t.normalizeLocal();\n normals[col] = t;\n // Last row\n t = fnormals[nrows - 2][col - 1][0].add(fnormals[nrows - 2][col - 1][1]);\n t.addLocal(fnormals[nrows - 2][col][0]);\n t.addLocal(fnormals[nrows - 2][col][1]);\n t.normalizeLocal();\n normals[((nrows - 1) * ncols) + col] = t;\n }\n // Do first and last column\n for (int row = 1; row < (nrows - 1); row++) {\n // First col\n t = fnormals[row - 1][0][0].add(fnormals[row - 1][0][1]);\n t.addLocal(fnormals[row][0][0]);\n t.addLocal(fnormals[row][0][1]);\n t.normalizeLocal();\n normals[row * ncols] = t;\n // Last col\n t = fnormals[row - 1][ncols - 2][0].add(fnormals[row - 1][ncols - 2][1]);\n t.addLocal(fnormals[row][ncols - 2][0]);\n t.addLocal(fnormals[row][ncols - 2][1]);\n t.normalizeLocal();\n normals[(row * ncols) + (ncols - 1)] = t;\n // Centre cols\n for (int col = 1; col < (ncols - 1); col++) {\n t = fnormals[row - 1][col - 1][0].add(fnormals[row - 1][col - 1][1]);\n t.addLocal(fnormals[row - 1][col][0]);\n t.addLocal(fnormals[row - 1][col][1]);\n t.addLocal(fnormals[row][col - 1][0]);\n t.addLocal(fnormals[row][col - 1][1]);\n t.addLocal(fnormals[row][col][0]);\n t.addLocal(fnormals[row][col][1]);\n t.normalizeLocal();\n normals[(row * ncols) + col] = t;\n }\n }\n System.out.println(\"Processing finished...\");\n setBuffer(VertexBuffer.Type.Position, 3, BufferUtils.createFloatBuffer(vertices));\n setBuffer(VertexBuffer.Type.TexCoord, 2, texcoord);\n setBuffer(VertexBuffer.Type.Index, 3, indexes);\n setBuffer(VertexBuffer.Type.Normal, 3, BufferUtils.createFloatBuffer(normals));\n updateBound();\n System.out.println(\"NE corner: \" + vertices[vertices.length - 1].mult(0.006f));\n // Hint to renderer that we don't plan on modifying the terrain.\n this.setStatic();\n }",
"public static ReferenceSensor create(UUID channelId, String instrumentManufacturer,\n String instrumentModel, String serialNumber, int numberOfComponents,\n double cornerPeriod, double lowPassband, double highPassband,\n Instant actualTime, Instant systemChangeTime,\n InformationSource informationSource, String comment) {\n\n return new ReferenceSensor(channelId, instrumentManufacturer, instrumentModel,\n serialNumber, numberOfComponents, cornerPeriod, lowPassband, highPassband,\n actualTime, systemChangeTime, informationSource, comment);\n }",
"public void process(){\n\n for(int i = 0; i < STEP_SIZE; i++){\n String tmp = \"\" + accData[i][0] + \",\" + accData[i][1] + \",\"+accData[i][2] +\n \",\" + gyData[i][0] + \",\" + gyData[i][1] + \",\" + gyData[i][2] + \"\\n\";\n try{\n stream.write(tmp.getBytes());\n }catch(Exception e){\n //Log.d(TAG,\"!!!\");\n }\n\n }\n\n /**\n * currently we don't apply zero-mean, unit-variance operation\n * to the data\n */\n // only accelerator's data is using, currently 200 * 3 floats\n // parse the 1D-array to 2D\n\n if(recognizer.isInRecognitionState() &&\n recognizer.getGlobalRecognitionTimes() >= Constants.MAX_GLOBAL_RECOGNITIOME_TIMES){\n recognizer.resetRecognitionState();\n }\n if(recognizer.isInRecognitionState()){\n recognizer.removeOutliers(accData);\n recognizer.removeOutliers(gyData);\n\n double [] feature = new double [FEATURE_SIZE];\n recognizer.extractFeatures(feature, accData, gyData);\n\n int result = recognizer.runModel(feature);\n String ret = \"@@@\";\n if(result != Constants.UNDEF_RET){\n if(result == Constants.FINISH_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(Constants.FINISH_INFO);\n waitForPlayout(1);\n recognizer.resetLastGesutre();\n recognizer.resetRecognitionState();\n ret += \"1\";\n }else if(result == Constants.RIGHT_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(\"Now please do Step \" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n ret += \"1\";\n }else if(result == Constants.ERROR_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getExpectedGesture());\n waitForPlayout(1);\n ret += \"0\";\n }else if(result == Constants.ERROR_AND_FORWARD_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getLastGesture());\n waitForPlayout(1);\n if(recognizer.getExpectedGesture() <= Constants.STATE_SPACE){\n mUserWarningService.playSpeech(\n \"Step \" + recognizer.getLastGesture() + \"missing \" +\n \". Now please do Step\" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n }else{\n recognizer.resetRecognitionState();\n mUserWarningService.playSpeech(\"Recognition finished.\");\n waitForPlayout(1);\n }\n\n\n ret += \"0\";\n }\n ret += \",\" + Integer.toString(result) + \"@@@\";\n\n Log.d(TAG, ret);\n Message msg = new Message();\n msg.obj = ret;\n mWriteThread.writeHandler.sendMessage(msg);\n }\n }\n\n }",
"public CalibrateReturn calibrate(JFrame con, MyPoint2D clickPoint, MyPoint3D typed1, MyPoint3D typed2) {\n final String title = \"Calibrate\";\n final String prompt1 = \"Enter the coordinates of the \";\n final String prompt2 = \" calibration point:\";\n final String message = \"Enter three numeric values.\";\n \n // Determine which calibration point to work with and get the coordinates for that point:\n MyPoint3D p;\n String prompt;\n if (getClicked1()==null) { // neither have been set\n // We will set the first calibration point:\n p = typed1;\n prompt = \"first\";\n } else if (getClicked2()==null) { // only the first has been set\n // We will set the second calibration point:\n p = typed2;\n prompt = \"second\";\n } else { // both have been set\n // We will set the first calibration point:\n p = typed1;\n prompt = \"first\";\n }\n\n // Ask for the spatial coordinates of the clicked point:\n prompt = prompt1 + prompt + prompt2;\n String input;\n if (p==null) {\n input = Dialogs.input(con,prompt,title);\n } else {\n input = Dialogs.input(con,prompt,title,p.toString());\n }\n if (input==null) { return null; } // user cancelled\n input = input.trim();\n String[] inputs = input.split(\"[ ]+\");\n if (inputs.length!=3) {\n Dialogs.error(con,\"You must enter 3 values.\",title);\n return null;\n }\n \n // Parse the inputs to doubles:\n double x,y,z;\n try {\n x = Double.parseDouble(inputs[0].trim());\n y = Double.parseDouble(inputs[1].trim());\n z = Double.parseDouble(inputs[2].trim());\n } catch (NumberFormatException | ArrayIndexOutOfBoundsException e) {\n Dialogs.error(con,message,title);\n return null;\n }\n\n // Determine which calibration point to work with and return the appropriate value:\n MyPoint3D newTyped = new MyPoint3D(x,y,z);\n if (getClicked1()==null) { // neither have been set\n // Set the first calibration point:\n setClicked1(clickPoint);\n //setTyped1(newTyped);\n return new CalibrateReturn(true,newTyped,null);\n } else if (getClicked2()==null) { // only the first has been set\n // Check the second calibration point is okay:\n if (clickPoint.getX()==getClicked1().getX()) {\n Dialogs.error(con,\"The points lie on the same vertical line!\",title);\n //clearCalibration();\n return null;\n }\n if (clickPoint.getY()==getClicked1().getY()) {\n Dialogs.error(con,\"The points lie on the same horizontal line!\",title);\n //clearCalibration();\n return null;\n }\n // Set the second calibration point:\n setClicked2(clickPoint);\n //setTyped2(newTyped);\n return new CalibrateReturn(false,null,newTyped); // don't need to continue because both typed points have now been entered\n } else { // both have been set\n // Set the first and clear the second:\n setClicked1(clickPoint);\n //setTyped1(newTyped);\n setClicked2(null);\n // (keep the typed2 point for later use)\n return new CalibrateReturn(true,newTyped,null);\n }\n \n }",
"public static BoundingPolytope computePolytope(double[] points)\n\t{\n\t\tBoundingPolytope frustum = new BoundingPolytope();\n\t\t\n\t\tVector3d a1 = new Vector3d(points[0],points[1],points[2]);\n\t\tVector3d a2 = new Vector3d(points[4],points[5],points[6]);\n\t\tVector3d b1 = new Vector3d(points[8],points[9],points[10]);\n\t\tVector3d b2 = new Vector3d(points[12],points[13],points[14]);\n\t\tVector3d c1 = new Vector3d(points[16],points[17],points[18]);\n\t\tVector3d c2 = new Vector3d(points[20],points[21],points[22]);\n\t\tVector3d d1 = new Vector3d(points[24],points[25],points[26]);\n\t\tVector3d d2 = new Vector3d(points[28],points[29],points[30]);\n\t\t\n\t\t\n\t\tVector4d[] planes = new Vector4d[] {\n\t\tcomputePlane(a1,b1,a2),\n\t\tcomputePlane(d1,c1,d2),\n\t\tcomputePlane(b1,d1,b2),\n\t\tcomputePlane(c1,a1,c2),\n\t\tcomputePlane(c1,d1,a1),\n\t\tcomputePlane(d2,c2,b2),\n\t\t};\n\t\t\n\t\tfrustum.setPlanes(planes);\n\t\t\n\t\treturn frustum;\n\t}",
"@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }",
"private void internalSetPoints(List<Point3D> points) {\n if (points.size() < MINIMUM_SIZE) {\n throw new IllegalArgumentException();\n }\n mPoints = points;\n }",
"@Override\n public void init() throws Exception {\n Mapper mapper = new Mapper() {\n public double f(double x, double y) {\n try {\n return i3d.evaluate(x, y);\n } catch (InterpolationException e) {\n e.printStackTrace();\n return 0;\n }\n }\n };\n \n // Define range and precision for the function to plot\n Range rangeX = new Range((float)i3d.lowerA(), (float)i3d.upperA());\n int stepsX = 100;\n Range rangeY = new Range((float)i3d.lowerB(), (float)i3d.upperB());\n int stepsY = 100;\n \n AbstractDrawable drawable;\n // Create the object to represent the surface\n final Shape surface = Builder.buildOrthonormal(new OrthonormalGrid(rangeX, stepsX, rangeY, stepsY), mapper);\n surface.setColorMapper(new ColorMapper(new ColorMapRainbow(),\n surface.getBounds().getZmin(), surface.getBounds().getZmax(), COLOR_BASE));\n surface.setWireframeDisplayed(true);\n surface.setWireframeWidth(1);\n surface.setWireframeColor(COLOR_WIRE);\n surface.setFaceDisplayed(true);\n drawable = surface;\n \n // Create a chart\n chart = AWTChartComponentFactory.chart(Quality.Advanced);\n chart.getAxeLayout().setXTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setYTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setZTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setFaceDisplayed(false);\n chart.getAxeLayout().setMainColor(COLOR_MAIN);\n chart.getView().setBackgroundColor(COLOR_BG);\n chart.getScene().getGraph().add(drawable);\n \n chart.getAxeLayout().setXAxeLabel(\"Length\");\n chart.getAxeLayout().setYAxeLabel(\"Time\");\n chart.getAxeLayout().setZAxeLabel(\"Temperature\");\n }",
"public interface ITrainingService {\n\n void train(double[][] gestures, double[][] responses, Integer numberOfResponses);\n}",
"public LinearRegression(int numberOfSamples) {\n fixedList = new FixedQueue<Point2D>(numberOfSamples);\n }",
"@Test\n\tpublic void testSetActiveRegion3DRadius() throws GeoTessException, IOException\n\t{\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\n\n\t\t//\t\t// define a 3D polygon with small circle and 3 layers.\n\t\t//\t\tdouble[] polygonCenter = VectorGeo.getVectorDegrees(30., 90.);\n\t\t//\n\t\t//\t\tdouble polygonRadius = toRadians(30.);\n\t\t//\n\t\t//\t\tdouble radiusTop = 6371 - 55;\n\t\t//\t\tdouble radiusBottom = 4000.;\n\t\t//\n\t\t//\t\tHorizon top = new HorizonRadius(radiusTop, 4);\n\t\t//\t\tHorizon bottom = new HorizonRadius(radiusBottom, 2);\n\t\t//\n\t\t//\t\tPolygon polygon = new Polygon3D(polygonCenter, polygonRadius,\n\t\t//\t\t\t\t100, bottom, top);\n\n\t\tPolygon3D polygon = new Polygon3D(new File(\"src/test/resources/permanent_files/polygon_small_circle_radii.ascii\"));\n\t\tdouble[] polygonCenter = polygon.getReferencePoint();\n\t\tdouble polygonRadius = VectorUnit.angle(polygonCenter, polygon.getPoint(0));\n\n\t\tdouble radiusTop = polygon.getTop().getValue();\n\t\tdouble radiusBottom = polygon.getBottom().getValue();\n\n\t\tint topLayer = polygon.getTop().getLayerIndex();\n\t\tint bottomLayer = polygon.getBottom().getLayerIndex();\n\n\t\t// set the active region to 3D polygon\n\t\tsmall_model.setActiveRegion(polygon);\n\t\tassertEquals(144, small_model.getPointMap().size());\n\n\t\t// check every point in the point map to ensure that it is within the polygon\n\t\tfor (int i=0; i<small_model.getPointMap().size(); ++i)\n\t\t{\n\t\t\tdouble[] point = small_model.getPointMap().getPointUnitVector(i);\n\t\t\tassertTrue(VectorUnit.angle(polygonCenter, point) < polygonRadius \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) >= bottomLayer \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) <= topLayer\n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) >= radiusBottom \n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) <= radiusTop\n\t\t\t\t\t);\n\t\t}\n\n\t\t// check every node in the small_model. if the node has point index < 0 then\n\t\t// ensure that it is outside the polygon. if the node has point index \n\t\t// >= 0, then it must be within the polygon.\n\t\tboolean passed = true;\n\t\tfor (int vertex=0; vertex<small_model.getGrid().getVertices().length; ++vertex)\n\t\t{\n\t\t\tdouble distance = VectorUnit.angle(polygonCenter, small_model.getGrid().getVertex(vertex));\n\t\t\tProfile[] pp = small_model.getProfiles(vertex);\n\t\t\tfor (int layer=0; layer<small_model.getNLayers(); ++layer)\n\t\t\t{\n\t\t\t\tProfile p = pp[layer];\n\t\t\t\tfor (int n=0; n<p.getNData(); ++n)\n\t\t\t\t{\n\t\t\t\t\tboolean inpolygon = distance < polygonRadius\n\t\t\t\t\t\t\t&& layer >= bottomLayer\n\t\t\t\t\t\t\t&& layer <= topLayer\n\t\t\t\t\t\t\t&& p.getRadius(n) > radiusBottom\n\t\t\t\t\t\t\t&& p.getRadius(n) < radiusTop\n\t\t\t\t\t\t\t;\n\n\t\t\t\t\t\t\tboolean positive = p.getPointIndex(n) >= 0;\n\n\t\t\t\t\t\t\tif (inpolygon != positive) passed = false;\n\n\t\t\t\t\t\t\tif (inpolygon != positive)\n\t\t\t\t\t\t\t\tSystem.out.printf(\"testSetActiveRegion3DRadii ptIndex=%d dist=%1.3f layer=%d radius=%1.3f%n\",\n\t\t\t\t\t\t\t\t\t\tp.getPointIndex(n),\n\t\t\t\t\t\t\t\t\t\tMath.toDegrees(distance), \n\t\t\t\t\t\t\t\t\t\tlayer,\n\t\t\t\t\t\t\t\t\t\tp.getRadius(n));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tassertTrue(passed);\n\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\t\t\n\n\t}",
"@Test\n public void testConstructor() {\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(0, 1, 0),\n new Point3D(1, 0, 0), new Point3D(-1, 1, 1));\n fail(\"Constructed a polygon with wrong order of vertices\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC03: Not in the same plane\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 2, 2));\n fail(\"Constructed a polygon with vertices that are not in the same plane\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC04: Concave quadrangular\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0.5, 0.25, 0.5));\n fail(\"Constructed a concave polygon\");\n } catch (IllegalArgumentException e) {\n }\n\n // =============== Boundary Values Tests ==================\n\n // TC10: Vertex on a side of a quadrangular\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 0.5, 0.5));\n fail(\"Constructed a polygon with vertix on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC11: Last point = first point\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 0, 1));\n fail(\"Constructed a polygon with vertice on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC12: Colocated points\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 1, 0));\n fail(\"Constructed a polygon with vertice on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n }",
"private int calculatePoints(boolean firstCheckBoxIsChecked, boolean secondCheckBoxIsChecked, String questionFourAnswered, int selectedIdQ2, int selectedIdQ3, boolean thirdCheckBoxIsChecked, boolean fourthCheckBoxIsChecked) {\n int basePoints = 0;\n int correctIdQ2 = R.id.question_two_answer_c;\n int correctIdQ3 = R.id.question_three_answer_b;\n\n //On question 1, checkboxes 1 & 2 are correct. If the user gets 1 correct answer, they get 1 point. If they get\n //2 correct answers, they get 2 points. If they get 1 correct answer & 1 incorrect answer, they still get 1 point.\n //For 2 correct & 1 incorrect answer, two points are given. If all boxes are ticked, no points are given.\n if (firstCheckBoxIsChecked && secondCheckBoxIsChecked) {\n if (!thirdCheckBoxIsChecked && !fourthCheckBoxIsChecked) {\n basePoints = basePoints + 2;\n } else {\n return basePoints;\n }\n } else if (secondCheckBoxIsChecked) {\n if (!thirdCheckBoxIsChecked && !fourthCheckBoxIsChecked) {\n basePoints = basePoints + 1;\n } else if (thirdCheckBoxIsChecked) {\n basePoints = basePoints + 1;\n } else if (fourthCheckBoxIsChecked) {\n basePoints = basePoints + 1;\n } else {\n return basePoints;\n }\n } else if (firstCheckBoxIsChecked) {\n if (!thirdCheckBoxIsChecked && !fourthCheckBoxIsChecked) {\n basePoints = basePoints + 1;\n } else if (thirdCheckBoxIsChecked) {\n basePoints = basePoints + 1;\n } else if (fourthCheckBoxIsChecked) {\n return basePoints = basePoints + 1;\n } else {\n return basePoints;\n }\n }\n\n //If the content input in the EditText field is the same as the correct answer provided, the user gets 1 point\n if (questionFourAnswered.contentEquals(getString(R.string.question_4_answer))) {\n basePoints = basePoints + 1;\n }\n //if the user selects the answer which has got the same id as the correct answer, the user gets one point\n if (selectedIdQ2 == correctIdQ2) {\n basePoints = basePoints + 1;\n }\n if (selectedIdQ3 == correctIdQ3) {\n basePoints = basePoints + 1;\n }\n return basePoints;\n }",
"public float[] calibrate(Base mBase, Sensor mSensor) {\n final double metersPerLatitude;\n final double metersPerLongitude;\n\n\n\n //Fetching the cisco position for the robot, which returns\n float ciscoLong = (float) 8.57617285865058;\n float ciscoLat = (float) 58.33447638466072;\n\n\n metersPerLongitude = distanceCalculator.calculateDistance(ciscoLong, ciscoLat, ciscoLong + 1.0, ciscoLat);\n\n metersPerLatitude= distanceCalculator.calculateDistance(ciscoLong, ciscoLat, ciscoLong, ciscoLat + 1.0);\n\n\n float originCiscoPositionx = ciscoLong * (float) metersPerLongitude;\n float originCiscoPositiony = ciscoLat * (float) metersPerLatitude;\n\n\n //Driving 1 meter forward test\n //mBase.addCheckPoint(1, 0);\n\n\n //GetCiscoPosition()\n //These are the actual coordinates of x2 and y2 in latitude and longitude.\n\n\n\n //If Loomo was already headed east, we would expect these coordinates in meters:\n float expectedCiscoPositionx2 = (originCiscoPositionx + 1);\n\n float newCiscoPointlon = (float) 8.57617413279317;\n float newCiscoPointlat = (float) 58.334468102336245;\n\n\n float actualCiscoPositionx2 = newCiscoPointlon * (float) metersPerLongitude;\n float actualCiscoPositiony2 = newCiscoPointlat * (float) metersPerLatitude;\n\n\n\n //Defining 3 vectors that make up a triangle abc\n double[] aVector = {expectedCiscoPositionx2 - originCiscoPositionx, originCiscoPositiony - originCiscoPositiony};\n double[] bVector = {actualCiscoPositionx2 - originCiscoPositionx, actualCiscoPositiony2 - originCiscoPositiony};\n double[] cVector = {expectedCiscoPositionx2 - actualCiscoPositionx2, originCiscoPositiony - actualCiscoPositiony2};\n\n\n\n //Calculating the length of each vector / side of the triangle with the pythagorean therm.\n double aVectorLengthSquared = Math.pow(aVector[0], 2.0) + Math.pow(aVector[1], 2.0);\n double bVectorLengthSquared = Math.pow(bVector[0], 2.0) + Math.pow(bVector[1], 2.0);\n double cVectorLengthSquared = Math.pow(cVector[0], 2.0) + Math.pow(cVector[1], 2.0);\n\n System.out.println(\"Length a = \" + sqrt(aVectorLengthSquared));\n System.out.println(\"Length b = \" + sqrt(bVectorLengthSquared));\n System.out.println(\"Length c = \" + sqrt(cVectorLengthSquared));\n System.out.println(\" \");\n\n //Calculating the angle between the vector from the expected points and the vector from the\n // real points using the cosine law. This gives us an angle ∈ [0,PI].\n float angle = (float) acos((aVectorLengthSquared + bVectorLengthSquared - cVectorLengthSquared)\n / (2 * sqrt(aVectorLengthSquared) * sqrt(bVectorLengthSquared)));\n\n\n\n //If the y-element of the b-vector is negative, that means loomo has been driving\n // southwards. This means, if we are to rotate the coordinates to fit loomo,\n // they will need to be rotated in the positive direction, or against the clock. -> angle = angle\n // If the y-element is positive, then loomo has been driving north, and the coordinates will\n // need to be rotated with the clock. Then \"angle\" will be the negative value\n // found with the cosine law.\n\n if (bVector[1] < 0) {\n angle = angle;\n } else if (bVector[1] > 0) {\n angle = -angle;\n }\n\n System.out.println(\"The angle between the reference systems are: \" + angle + \", which equals \" + angle / PI + \"*PI\\n\" );\n\n mBase.cleanOriginalPoint();\n\n //Setting Fetching the original point where Loomo stands.\n mBase.cleanOriginalPoint();\n Pose2D pose2D = mBase.getOdometryPose(-1);\n mBase.setOriginalPoint(pose2D);\n\n //Driving North: \t58.334512491588754, 8.576253530218082 to 58.33452608839093, 8.576253888068521\n //Driving East: 58.33452608839093, 8.576253888068521 to 58.33452618178464, 8.576285073219395\n //Driving West: 58.33452618178464, 8.576285073219395 to 58.33452693486112, 8.576258173706947\n //Driving South: 58.33452693486112, 8.576258173706947 to 58.33451544969185, 8.576258890746544\n\n float[] calibInfo = {angle, (float) metersPerLongitude, (float) metersPerLatitude};\n return calibInfo;\n }",
"private void createD3Example() {\n\n\t\tSystem.out.println(\"createD3Example\");\n\n\t\tboolean showPoints = true;\n\n\t\tint widthSVG = 1200;\n\t\tint heightSVG = 800;\n\n\t\td3 = browser.getD3();\n//\t\tSystem.out.println(\"D3 version \" + d3.version());\n\t\twebEngine = d3.getWebEngine();\n\n\t\t// apply CSS\n\t\tloadCssForThisClass();\n\n\t\tsvg = d3.select(\"svg\")\n\t\t\t\t.attr(\"width\", widthSVG)\n\t\t\t\t.attr(\"height\", heightSVG);\n\n\t\ttry {\n\n\t\t\tinjectStyleInSVG();\n\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\n\t\t// create initial d3 content\n\n\t\t// data that you want to plot, I\"ve used separate arrays for x and y values\n\t\tdouble[] xData = {5, 10, 25, 32, 40, 40, 15, 7};\n\t\tdouble[] yData = {3, 17, 4, 10, 6, -20, -20.0, 0};\n\n\t\t// size and margins for the chart\n\n\t\tdouble totalWidth = 550;\n\t\tdouble totalHeight = 550;\n\n\t\tdouble marginLeft = 60;\n\t\tdouble marginRight = 15;\n\n\t\tdouble marginTop = 20;\n\t\tdouble marginBottom = 60;\n\n\t\tdouble width = totalWidth - marginLeft - marginRight;\n\t\tdouble height = totalHeight - marginTop - marginBottom;\n\n\t\t// x and y scales, I've used linear here but there are other options\n\t\t// the scales translate data values to pixel values for you\n\t\tdouble xMin = 0;\n\t\tdouble xMax = 50;\n\t\tLinearScale x = d3.scale().linear() //\n\t\t .domain(new double[]{xMin, xMax}) // the range of the values to plot\n\t\t .range(new double[]{0, width}); // the pixel range of the x-axis\n\n\t\tdouble yMin = -25;\n\t\tdouble yMax = 25;\n\t\tLinearScale y = d3.scale().linear() //\n\t\t .domain(new double[]{yMin, yMax}) //\n\t\t .range(new double[]{height, 0});\n\n\t\t// the chart object, includes all margins\n\t\tSelection chart = d3.select(\"svg\") //\n\t\t\t.attr(\"width\", width + marginRight + marginLeft) //\n\t\t\t.attr(\"height\", height + marginTop + marginBottom) //\n\t\t\t.attr(\"class\", \"chart\");\n\n\t\t// the main object where the chart and axis will be drawn\n\t\tSelection main = chart.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(\" + marginLeft + \",\" + marginTop + \")\") //\n\t\t\t.attr(\"width\", width) //\n\t\t\t.attr(\"height\", height) //\n\t\t\t.attr(\"class\", \"main\");\n\n\t\t// draw the x axis\n\t\tAxis xAxis = d3.svg().axis().scale(x).orient(Orientation.BOTTOM);\n\n\t\t//xAxis.innerTickSize(10);\n\n\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,\" + height + \")\") //\n\t\t\t.attr(\"class\", \"main axis date\").call(xAxis);\n\n\t\t// draw the y axis\n\t\tAxis yAxis = d3.svg().axis() //\n\t\t\t.scale(y) //\n\t\t\t.orient(Orientation.LEFT);\n\t\t\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,0)\") //\n\t\t\t.attr(\"class\", \"main axis date\") //\n\t\t\t.call(yAxis);\n\n\t\t// draw the graph object\n\t\tSelection g = main.append(\"svg:g\");\n\n\t\tg.selectAll(\"scatter-dots\")\n\t\t .data(yData) // using the values in the ydata array\n\t\t .enter().append(\"svg:circle\") // create a new circle for each value\n\t\t .attr(\"cy\", new YAxisDatumFunction(webEngine, y, yData) ) // translate y value to a pixel\n\t\t .attr(\"cx\", new XAxisDatumFunction(webEngine, x, xData)) // translate x value\n\t\t .attr(\"r\", 5) // radius of circle\n\t\t .style(\"opacity\", 1.0); // opacity of circle\n\n\n\t\t// Line, the path generator\n\t\tLine line;\n\n\t\tInterpolationMode mode = InterpolationMode.LINEAR;\n\n\t\tline = d3.svg().line()\n\t\t\t\t.x(new XAxisDatumFunction(webEngine, x, xData))\n\t\t\t\t.y(new YAxisDatumFunction(webEngine, y, yData));\n\n\t\tSelection g2 = g.append(\"svg:g\")\n\t\t\t\t.classed(\"Pippo-line-group\", true);\n\n\t\tString cssClassName = \"Agodemar-Test-Line\";\n\t\tSelection pathLine = g2.append(\"path\").classed(cssClassName, true);\n\t\tpathLine\n\t\t\t.attr(\"fill\",\"none\")\n\t\t\t.attr(\"stroke\",\"red\")\n\t\t\t.attr(\"stroke-width\",\"5\")\n\t\t\t.attr(\"stroke-linecap\",\"square\") // \"butt\", \"round\", \"square\"\n\t\t\t.attr(\"stroke-dasharray\",\"15,10\");\n\n\t\tfinal Stack<Coords> points = new Stack<>();\n\n//\t\tdouble [] x = {50.0, 120.0, 400.0, 700};\n//\t\tdouble [] y = {100.0, 30.0, 20.0, 200};\n\n\t\tIntStream.range(0, xData.length)\n\t\t\t.forEach(i ->\n\t\t\t\t\tpoints.push(new Coords(webEngine, xData[i], yData[i]))\n\t\t\t\t\t);\n\n//\t\tSystem.out.println(\"points:\");\n//\t\tpoints.stream()\n//\t\t\t.forEach(p -> System.out.println(p.x()+\", \"+p.y()));\n\n\t\tmode = InterpolationMode.MONOTONE;\n\t\tline = line.interpolate(mode);\n\t\tSystem.out.println(\"Interpolation mode: \" + line.interpolate());\n\n\t\tdouble tension = 0.1;\n\t\tline = line.tension(tension);\n//\t\tSystem.out.println(\"tension: \" + line.tension());\n\n\t\tList<Coords> coordsList = new ArrayList<>(points);\n\n//\t\tSystem.out.println(\"coordsList:\");\n//\t\tcoordsList.stream()\n//\t\t\t.forEach(c -> System.out.println(c.x()+\", \"+c.y()));\n\n\t\tString coordinates = line.generate(coordsList);\n\n//\t\tSystem.out.println(\"coordinates: \" + coordinates);\n\n\t\tpathLine.attr(\"d\", coordinates);\n\n\t\tLabelFactory labelFactory = new LabelFactory();\n\t\t\n//\t\tSelection myText = labelFactory.createInParentSelection(svg);\n//\t\tmyText.text(\"Agodemar!!!\");\n\t\t\n\t\tSelection text = svg.append(\"text\") //\n\t\t\t\t.attr(\"x\", 20) // String.format(\"%d\", widthSVG/2))\n\t\t\t\t.attr(\"y\", 100) // String.format(\"%d\", heightSVG/2))\n\t\t\t\t.text(\"Hello World\");\t\t\n\t\t\n\t\tsvg.append(\"g\")\n\t\t\t.attr(\"class\", \"main\")\n\t\t\t.append(\"text\")\n\t\t\t.attr(\"x\", 20).attr(\"dx\", \"12em\")\n\t\t\t.attr(\"y\", 56).attr(\"dy\", \"2em\")\n\t\t\t.attr(\"font\",\"20px sans-serif\")\n\t\t\t.text(\"Agodemar!!!\");\n\n//\t\tsvg.append(\"g\")\n//\t\t\t.attr(\"class\", \"y\" + \" \" + \"axis\")\n//\t\t\t.call(yAxis).append(\"text\")\n//\t\t\t.attr(\"transform\", \"rotate(-90)\")\n//\t\t\t.attr(\"y\", 6).attr(\"dy\", \".71em\")\n//\t\t\t.style(\"text-anchor\", \"end\")\n//\t\t\t.text(\"Frequency\");\n\t\t\n\t\t\n//\t\t// make a paragraph <p> in the html\n//\t\td3.select(\"body\").append(\"p\").text(\"Agodemar :: Hi there!\");\n\n\t}",
"private void obtainRefiningPoints(ArrayList<double[]> points2d_in, Matrix P, double gridSize_in, int gridCount_in[], ArrayList<double[]> points2d_out, ArrayList<double[]> points3d_out) {\n\t\tdouble fuzziness = 25;\n\t\tfor (int x = (gridCount_in[0] > 1 ? 1 : 0); x < gridCount_in[0]; x += 2) {\n\t\t\tfor (int y = (gridCount_in[1] > 1 ? 1 : 0); y < gridCount_in[1]; y += 2) {\n\t\t\t\tfor (int z = 1; z < gridCount_in[2]; z += 2) {\n\t\t\t\t\tMatrix x3D = new Matrix(4, 1);\n\t\t\t\t\tx3D.set(0, 0, x * gridSize_in);\n\t\t\t\t\tx3D.set(1, 0, y * gridSize_in);\n\t\t\t\t\tx3D.set(2, 0, z * gridSize_in);\n\t\t\t\t\tx3D.set(3, 0, 1.0);\n\t\t\t\t\tMatrix x2D = P.mul(x3D);\n\t\t\t\t\tx2D = x2D.div(x2D.get(2));\n\t\t\t\t\tdouble minDistance = 100000;\n\t\t\t\t\tint minDistanceIndex = 0;\n\t\t\t\t\tfor (int j=0;j<points2d_in.size();j++) {\n\t\t\t\t\t\tdouble distance = Math.pow(x2D.get(0) - points2d_in.get(j)[0], 2) + Math.pow(x2D.get(1) - points2d_in.get(j)[1], 2);\n\t\t\t\t\t\tif (distance < minDistance) {\n\t\t\t\t\t\t\tminDistance = distance;\n\t\t\t\t\t\t\tminDistanceIndex = j;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (minDistance < fuzziness) {\n\t\t\t\t\t\tpoints2d_out.add(points2d_in.get(minDistanceIndex));\n\t\t\t\t\t\tpoints3d_out.add(new Matrix(x3D).data);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private double[] quadstepX(DoubleToDouble f, double y0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] x = {(a + c) / 2, (c + b) / 2};\n double[] y = f.evalDouble(x, y0, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = y[0];\n double fe = y[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepX(f, y0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepX(f, y0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }",
"public MetricTransformation2DRobustEstimator(List<Point2D> inputPoints,\n List<Point2D> outputPoints) {\n this();\n internalSetPoints(inputPoints, outputPoints);\n }",
"public static void main(String args[]) {\n\n\tint nx = 200;\n int ny = 300;\n\n\tColorSurfaceData data = new SmoothData3D(nx,ny);\n\n double minX = -2;\n double minY = -3;\n double maxX = 2;\n double maxY = 3; \n\tdouble stepX = (maxX - minX)/(nx-1);\n double stepY = (maxY - minY)/(ny-1); \n\n\tdata.setMinMaxX(minX,maxX);\n\tdata.setMinMaxY(minY,maxY);\n\n\tdouble x,y,v;\n\n\tfor(int i = 0; i < nx; i++){\n\tfor(int j = 0; j < ny; j++){\n\t x = minX + i*stepX;\n\t y = minY + j*stepY;\n v = Math.exp(-(x*x+y*y));\n data.setValue(i,j,v);\n //data.addValue(x,y,v);\n\t}}\n\n\tdouble max_dev = 0;\n\tint i_max = 0, j_max = 0;\n\n\tfor(int i = 6; i < nx-6; i++){\n\tfor(int j = 6; j < ny-6; j++){\n\t x = i*stepX + minX + 0.5*stepX;\n\t y = j*stepY + minY + 0.5*stepY;\n v = Math.abs(Math.exp(-(x*x+y*y)) - data.getValue(x,y))/Math.exp(-(x*x+y*y));\n if(max_dev < v) {\n max_dev = v;\n\t i_max = i;\n\t j_max = j;\n\t }\n\t}} \n\n\tSystem.out.println(\"max dev [%] = \"+max_dev*100);\n\n\tdouble v_calc = 0;\n\tx = i_max*stepX + minX + 0.5*stepX;\n\ty = j_max*stepY + minY + 0.5*stepY; \n\tv = Math.exp(-(x*x+y*y));\n\tv_calc = data.getValue(x,y);\n \tSystem.out.println(\"stepX = \"+stepX);\n \tSystem.out.println(\"stepY = \"+stepY);\n \tSystem.out.println(\"i_max = \"+i_max);\n \tSystem.out.println(\"j_max = \"+j_max);\n \tSystem.out.println(\"x = \"+x);\n \tSystem.out.println(\"y = \"+y);\n \tSystem.out.println(\"v = \"+v);\n \tSystem.out.println(\"v_calc = \"+v_calc); \n\n }",
"SliderListener(Sampler[] samplers,Container pane,int numSampler,char parameter){\n this.samplers = samplers;\n this.pane = pane;\n this.numSampler = numSampler;\n this.parameter = parameter; \n }",
"private primitives.Color AdaptiveDiffusedAndGlossyRec(Point3D centerP, double WidthAndHeight, double minCubeSize, Point3D pIntersection,Vector Vright,Vector Vup , Vector normal, int direction, int level , double k, double ktr, List<Point3D> prePoints) throws Exception {\r\n List<Point3D> nextCenterPList = new LinkedList<Point3D>();\r\n List<Point3D> cornersList = new LinkedList<Point3D>();\r\n List<primitives.Color> colorList = new LinkedList<primitives.Color>();\r\n Point3D tempCorner;\r\n GeoPoint gp;\r\n Ray tempRay;\r\n for (int i = -1; i <= 1; i += 2)\r\n for (int j = -1; j <= 1; j += 2) {\r\n tempCorner = centerP.add(Vright.scale(i * WidthAndHeight / 2)).add(Vup.scale(j * WidthAndHeight / 2));\r\n cornersList.add(tempCorner);\r\n if (prePoints == null || !isInList(prePoints, tempCorner)) {\r\n tempRay = new Ray(pIntersection, tempCorner.subtract(pIntersection), normal);\r\n if ((normal.dotProduct(tempRay.getDir()) < 0 && direction == 1) || (normal.dotProduct(tempRay.getDir()) > 0 && direction == -1)) {\r\n nextCenterPList.add(centerP.add(Vright.scale(i * WidthAndHeight / 4)).add(Vup.scale(j * WidthAndHeight / 4)));\r\n gp = findClosestIntersection(tempRay);\r\n if (gp == null)\r\n colorList.add(scene.background);\r\n else {\r\n colorList.add(calcColor(gp, tempRay, level - 1, k));\r\n } \r\n }\r\n \r\n }\r\n }\r\n\r\n if (nextCenterPList == null || nextCenterPList.size() == 0) {\r\n return primitives.Color.BLACK;\r\n }\r\n\r\n\r\n if (WidthAndHeight < minCubeSize * 2) {\r\n primitives.Color sumColor = primitives.Color.BLACK;\r\n for (primitives.Color color : colorList) {\r\n sumColor = sumColor.add(color);\r\n }\r\n return sumColor.reduce(colorList.size());\r\n }\r\n\r\n\r\n boolean isAllEquals = true;\r\n primitives.Color tempColor = colorList.get(0);\r\n for (primitives.Color color : colorList) {\r\n if (!tempColor.isAlmostEquals(color))\r\n isAllEquals = false;\r\n }\r\n if (isAllEquals && colorList.size() > 1)\r\n return tempColor;\r\n\r\n\r\n tempColor = primitives.Color.BLACK;\r\n for (Point3D center : nextCenterPList) {\r\n tempColor = tempColor.add(AdaptiveDiffusedAndGlossyRec(center, WidthAndHeight / 2, minCubeSize, pIntersection, Vright, Vup, normal, direction, level, k, ktr, cornersList));\r\n }\r\n return tempColor.reduce(nextCenterPList.size());\r\n }",
"@Test\r\n\tpublic void calculQualityAxisWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 3f), new Float(2));\r\n\t}",
"private static native long createContourFitting_0(int ctr, int fd);",
"public ViewerPosition3D()\n {\n }",
"public static Vect3 makeXYZ(double x, String ux, double y, String uy, double z, String uz) {\n\t\treturn new Vect3(Units.from(ux,x),Units.from(uy,y),Units.from(uz,z));\n\t}",
"public static void test1() {\n int n1 = 100, n2 = 100, n3 = 100;\n float v = 1.0f, d = 20.0f;\n float[][][] paint = new float[n3][n2][n1];\n /*\n for (int i3=0; i3<n3; ++i3) {\n for (int i2=0; i2<n2; ++i2) {\n for (int i1=0; i1<n1; ++i1) {\n if (i3<n3/2) cae.paint[i3][i2][i1] = 1.0f;\n }\n }\n }\n */\n Painting3Group p3g = new Painting3Group(paint);\n SphereBrush pb = new SphereBrush();\n Painting3 p3 = p3g.getPainting3();\n// p3.paintAt(50,60,50,v,d,pb);\n// p3.paintAt(50,50,50,v,d,pb);\n// p3.paintAt(50,50,50,v,d,pb);\n p3.paintAt(50,50,50,v,d,pb);\n Contour c = p3.getContour(v);\n\n SimpleFrame sf = new SimpleFrame();\n sf.setTitle(\"Formation\");\n World world = sf.getWorld();\n TriangleGroup tg = new TriangleGroup(c.i,c.x);\n world.addChild(tg);\n sf.setSize(1250,900);\n }",
"private static native long createGuidedFilter_0(long guide_nativeObj, int radius, double eps);"
] | [
"0.7426172",
"0.7282735",
"0.67786705",
"0.6638928",
"0.6380538",
"0.61467886",
"0.6106096",
"0.5992496",
"0.58196706",
"0.5663684",
"0.53706545",
"0.5261676",
"0.5185706",
"0.5166172",
"0.5075014",
"0.5059568",
"0.5054577",
"0.49285087",
"0.49069807",
"0.48829708",
"0.4874609",
"0.477453",
"0.47596163",
"0.4736991",
"0.46750307",
"0.46184507",
"0.4617333",
"0.4589721",
"0.45613745",
"0.4553622",
"0.45522478",
"0.4542703",
"0.45409796",
"0.45172608",
"0.45102975",
"0.44982845",
"0.44977233",
"0.44762352",
"0.44702458",
"0.44272876",
"0.4426251",
"0.4420535",
"0.44117594",
"0.44117367",
"0.4377324",
"0.43546593",
"0.43364492",
"0.43331897",
"0.43147585",
"0.43139386",
"0.42873177",
"0.4274261",
"0.42563763",
"0.42163366",
"0.42136946",
"0.42090642",
"0.42079112",
"0.4200467",
"0.4196625",
"0.4191252",
"0.418473",
"0.41715354",
"0.41613963",
"0.41599238",
"0.4158418",
"0.41525114",
"0.41484666",
"0.4129745",
"0.41285992",
"0.41264823",
"0.41133228",
"0.41106993",
"0.40897217",
"0.40833223",
"0.40807167",
"0.40738449",
"0.40707427",
"0.40698934",
"0.4066299",
"0.40651143",
"0.40648183",
"0.406142",
"0.40576574",
"0.40572223",
"0.40500575",
"0.4037914",
"0.4036528",
"0.40153825",
"0.40141308",
"0.40091074",
"0.4008126",
"0.4001125",
"0.3996954",
"0.39960673",
"0.3995139",
"0.39832464",
"0.3976501",
"0.39714924",
"0.396159",
"0.39597273"
] | 0.6546238 | 4 |
Creates a quadric robust estimator based on 3D point samples and using provided robust estimator method. | public static QuadricRobustEstimator create(double[] qualityScores,
RobustEstimatorMethod method) {
switch (method) {
case LMedS:
return new LMedSQuadricRobustEstimator();
case MSAC:
return new MSACQuadricRobustEstimator();
case PROSAC:
return new PROSACQuadricRobustEstimator(qualityScores);
case PROMedS:
return new PROMedSQuadricRobustEstimator(qualityScores);
case RANSAC:
default:
return new RANSACQuadricRobustEstimator();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static QuadricRobustEstimator create(List<Point3D> points, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points, \n qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points, \n qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores) {\n return create(points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(List<Point3D> points) {\n return create(points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores) {\n return create(listener, points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points) {\n return create(listener, points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator();\n case PROMedS:\n return new PROMedSQuadricRobustEstimator();\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public Point3D triangulate() throws LockedException, NotReadyException,\n RobustEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n final LMedSRobustEstimator<Point3D> innerEstimator =\n new LMedSRobustEstimator<>(\n new LMedSRobustEstimatorListener<Point3D>() {\n\n // point to be reused when computing residuals\n private final Point2D mTestPoint = Point2D.create(\n CoordinatesType.HOMOGENEOUS_COORDINATES);\n\n // non-robust 3D point triangulator\n private final SinglePoint3DTriangulator mTriangulator =\n SinglePoint3DTriangulator.create(mUseHomogeneousSolution ?\n Point3DTriangulatorType.LMSE_HOMOGENEOUS_TRIANGULATOR :\n Point3DTriangulatorType.LMSE_INHOMOGENEOUS_TRIANGULATOR);\n\n // subset of 2D points\n private final List<Point2D> mSubsetPoints = new ArrayList<>();\n\n // subst of cameras\n private final List<PinholeCamera> mSubsetCameras =\n new ArrayList<>();\n\n @Override\n public int getTotalSamples() {\n return mPoints2D.size();\n }\n\n @Override\n public int getSubsetSize() {\n return MIN_REQUIRED_VIEWS;\n }\n\n @Override\n public void estimatePreliminarSolutions(final int[] samplesIndices,\n final List<Point3D> solutions) {\n mSubsetPoints.clear();\n mSubsetPoints.add(mPoints2D.get(samplesIndices[0]));\n mSubsetPoints.add(mPoints2D.get(samplesIndices[1]));\n\n mSubsetCameras.clear();\n mSubsetCameras.add(mCameras.get(samplesIndices[0]));\n mSubsetCameras.add(mCameras.get(samplesIndices[1]));\n\n try {\n mTriangulator.setPointsAndCameras(mSubsetPoints,\n mSubsetCameras);\n final Point3D triangulated = mTriangulator.triangulate();\n solutions.add(triangulated);\n } catch (final Exception e) {\n // if anything fails, no solution is added\n }\n }\n\n @Override\n public double computeResidual(final Point3D currentEstimation, final int i) {\n final Point2D point2D = mPoints2D.get(i);\n final PinholeCamera camera = mCameras.get(i);\n\n // project estimated point with camera\n camera.project(currentEstimation, mTestPoint);\n\n // return distance of projected point respect to the original one\n // as a residual\n return mTestPoint.distanceTo(point2D);\n }\n\n @Override\n public boolean isReady() {\n return LMedSRobustSinglePoint3DTriangulator.this.isReady();\n }\n\n @Override\n public void onEstimateStart(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateStart(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateEnd(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateEnd(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateNextIteration(\n final RobustEstimator<Point3D> estimator, final int iteration) {\n if (mListener != null) {\n mListener.onTriangulateNextIteration(\n LMedSRobustSinglePoint3DTriangulator.this,\n iteration);\n }\n }\n\n @Override\n public void onEstimateProgressChange(\n final RobustEstimator<Point3D> estimator, final float progress) {\n if (mListener != null) {\n mListener.onTriangulateProgressChange(\n LMedSRobustSinglePoint3DTriangulator.this,\n progress);\n }\n }\n });\n\n try {\n mLocked = true;\n innerEstimator.setConfidence(mConfidence);\n innerEstimator.setMaxIterations(mMaxIterations);\n innerEstimator.setProgressDelta(mProgressDelta);\n innerEstimator.setStopThreshold(mStopThreshold);\n return innerEstimator.estimate();\n } catch (final com.irurueta.numerical.LockedException e) {\n throw new LockedException(e);\n } catch (final com.irurueta.numerical.NotReadyException e) {\n throw new NotReadyException(e);\n } finally {\n mLocked = false;\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static QuadricRobustEstimator create() {\n return create(DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public abstract Quadric estimate() throws LockedException, \n NotReadyException, RobustEstimatorException;",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints); \n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener) {\n return create(listener, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed); \n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores) {\n return create(listener, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator();\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator();\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n qualityScores, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n qualityScores, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n }\n }",
"public abstract RobustEstimatorMethod getMethod();",
"public abstract RobustEstimatorMethod getMethod();",
"public abstract RobustEstimatorMethod getMethod();",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, qualityScores, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, qualityScores, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator();\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator();\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator();\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator();\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(); \n }\n }",
"public abstract Point_3 evaluate(double u, double v);",
"public QuadriCubicSpline(double[] x1, double[] x2, double[] x3, double[] x4, double[][][][] y) {\n\t\tthis.nPoints = x1.length;\n\t\tthis.mPoints = x2.length;\n\t\tthis.lPoints = x3.length;\n\t\tthis.kPoints = x4.length;\n\t\tif (this.nPoints != y.length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x1 and y-row are of different length \" + this.nPoints + \" \" + y.length);\n\t\tif (this.mPoints != y[0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x2 and y-column are of different length \" + this.mPoints + \" \" + y[0].length);\n\t\tif (this.lPoints != y[0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x3 and y-column are of different length \" + this.mPoints + \" \" + y[0][0].length);\n\t\tif (this.kPoints != y[0][0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x4 and y-column are of different length \" + this.kPoints + \" \" + y[0][0][0].length);\n\t\tif ((this.nPoints < 3) || (this.mPoints < 3) || (this.lPoints < 3) || (this.kPoints < 3))\n\t\t\tthrow new IllegalArgumentException(\"The tabulated 4D array must have a minimum size of 3 X 3 X 3 X 3\");\n\n\t\tthis.csm = new CubicSpline(this.nPoints);\n\t\tthis.tcsn = TriCubicSpline.oneDarray(this.nPoints, this.mPoints, this.lPoints, this.kPoints);\n\t\tthis.x1 = new double[this.nPoints];\n\t\tthis.x2 = new double[this.mPoints];\n\t\tthis.x3 = new double[this.lPoints];\n\t\tthis.x4 = new double[this.kPoints];\n\n\t\tthis.y = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tthis.d2ydx2 = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tthis.x1[i] = x1[i];\n\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\tthis.x2[j] = x2[j];\n\t\tfor (int j = 0; j < this.lPoints; j++)\n\t\t\tthis.x3[j] = x3[j];\n\t\tfor (int j = 0; j < this.kPoints; j++)\n\t\t\tthis.x4[j] = x4[j];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\t\tfor (int k = 0; k < this.lPoints; k++)\n\t\t\t\t\tfor (int l = 0; l < this.kPoints; l++)\n\t\t\t\t\t\tthis.y[i][j][k][l] = y[i][j][k][l];\n\t}",
"@Test\n\tpublic void testSetActiveRegion3DRadius() throws GeoTessException, IOException\n\t{\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\n\n\t\t//\t\t// define a 3D polygon with small circle and 3 layers.\n\t\t//\t\tdouble[] polygonCenter = VectorGeo.getVectorDegrees(30., 90.);\n\t\t//\n\t\t//\t\tdouble polygonRadius = toRadians(30.);\n\t\t//\n\t\t//\t\tdouble radiusTop = 6371 - 55;\n\t\t//\t\tdouble radiusBottom = 4000.;\n\t\t//\n\t\t//\t\tHorizon top = new HorizonRadius(radiusTop, 4);\n\t\t//\t\tHorizon bottom = new HorizonRadius(radiusBottom, 2);\n\t\t//\n\t\t//\t\tPolygon polygon = new Polygon3D(polygonCenter, polygonRadius,\n\t\t//\t\t\t\t100, bottom, top);\n\n\t\tPolygon3D polygon = new Polygon3D(new File(\"src/test/resources/permanent_files/polygon_small_circle_radii.ascii\"));\n\t\tdouble[] polygonCenter = polygon.getReferencePoint();\n\t\tdouble polygonRadius = VectorUnit.angle(polygonCenter, polygon.getPoint(0));\n\n\t\tdouble radiusTop = polygon.getTop().getValue();\n\t\tdouble radiusBottom = polygon.getBottom().getValue();\n\n\t\tint topLayer = polygon.getTop().getLayerIndex();\n\t\tint bottomLayer = polygon.getBottom().getLayerIndex();\n\n\t\t// set the active region to 3D polygon\n\t\tsmall_model.setActiveRegion(polygon);\n\t\tassertEquals(144, small_model.getPointMap().size());\n\n\t\t// check every point in the point map to ensure that it is within the polygon\n\t\tfor (int i=0; i<small_model.getPointMap().size(); ++i)\n\t\t{\n\t\t\tdouble[] point = small_model.getPointMap().getPointUnitVector(i);\n\t\t\tassertTrue(VectorUnit.angle(polygonCenter, point) < polygonRadius \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) >= bottomLayer \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) <= topLayer\n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) >= radiusBottom \n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) <= radiusTop\n\t\t\t\t\t);\n\t\t}\n\n\t\t// check every node in the small_model. if the node has point index < 0 then\n\t\t// ensure that it is outside the polygon. if the node has point index \n\t\t// >= 0, then it must be within the polygon.\n\t\tboolean passed = true;\n\t\tfor (int vertex=0; vertex<small_model.getGrid().getVertices().length; ++vertex)\n\t\t{\n\t\t\tdouble distance = VectorUnit.angle(polygonCenter, small_model.getGrid().getVertex(vertex));\n\t\t\tProfile[] pp = small_model.getProfiles(vertex);\n\t\t\tfor (int layer=0; layer<small_model.getNLayers(); ++layer)\n\t\t\t{\n\t\t\t\tProfile p = pp[layer];\n\t\t\t\tfor (int n=0; n<p.getNData(); ++n)\n\t\t\t\t{\n\t\t\t\t\tboolean inpolygon = distance < polygonRadius\n\t\t\t\t\t\t\t&& layer >= bottomLayer\n\t\t\t\t\t\t\t&& layer <= topLayer\n\t\t\t\t\t\t\t&& p.getRadius(n) > radiusBottom\n\t\t\t\t\t\t\t&& p.getRadius(n) < radiusTop\n\t\t\t\t\t\t\t;\n\n\t\t\t\t\t\t\tboolean positive = p.getPointIndex(n) >= 0;\n\n\t\t\t\t\t\t\tif (inpolygon != positive) passed = false;\n\n\t\t\t\t\t\t\tif (inpolygon != positive)\n\t\t\t\t\t\t\t\tSystem.out.printf(\"testSetActiveRegion3DRadii ptIndex=%d dist=%1.3f layer=%d radius=%1.3f%n\",\n\t\t\t\t\t\t\t\t\t\tp.getPointIndex(n),\n\t\t\t\t\t\t\t\t\t\tMath.toDegrees(distance), \n\t\t\t\t\t\t\t\t\t\tlayer,\n\t\t\t\t\t\t\t\t\t\tp.getRadius(n));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tassertTrue(passed);\n\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\t\t\n\n\t}",
"public static void R_approxtest(double x[], double y[], int nxy,\n int method, double f)\n {\n int i;\n\n switch(method) {\n case 1: /* linear */\n break;\n case 2: /* constant */\n if(!DoubleVector.isFinite(f) || f < 0 || f > 1)\n throw new EvalException(\"approx(): invalid f value\");\n break;\n default:\n throw new EvalException(\"approx(): invalid interpolation method\");\n }\n /* check interpolation method */\n for(i = 0; i < nxy; i++)\n if(DoubleVector.isNA(x[i]) || DoubleVector.isNA(y[i]))\n throw new EvalException(\"approx(): attempted to interpolate NA values\");\n }",
"public double getValue( Coordinate[] controlPoints, Coordinate interpolated );",
"@Test\r\n public void testPolynomialApproximator() {\r\n List<Point> data = createLinearDataset();\r\n test(PolynomialApacheMathApproximator.INSTANCE_3, data, null);\r\n }",
"public NurbsSurface(int segments, int nr_of_points) {\n always_evaluate = false;\n nr_of_segments = segments;\n points_per_segment = nr_of_points;\n surface_type = 2;\n u = new double[100];\n v = new double[100];\n k = 3;\n int i, j;\n\n step = 0.2;\n evaluated_points = new NurbsPoint[(int) ((double) nr_of_segments / step)][(int) ((double) points_per_segment / step)];\n\n for (i = 0; i < (int) ((double) nr_of_segments / step); i++) {\n for (j = 0; j < (int) ((double) points_per_segment / step); j++) {\n evaluated_points[i][j] = new NurbsPoint(0, 0, 0);\n }\n }\n\n u[0] = 0;\n u[1] = 0;\n u[2] = 0;\n u[3] = 0;\n v[0] = 0;\n v[1] = 0;\n v[2] = 0;\n v[3] = 0;\n\n for (i = 4; i < segments - 4; i++) {\n u[i] = i - 3;\n }\n\n for (i = 4; i < nr_of_points - 4; i++) {\n v[i] = i - 3;\n }\n\n u[segments - 4] = segments - 7;\n u[segments - 3] = segments - 7;\n u[segments - 2] = segments - 7;\n u[segments - 1] = segments - 7;\n\n v[nr_of_points - 4] = nr_of_points - 7;\n v[nr_of_points - 3] = nr_of_points - 7;\n v[nr_of_points - 2] = nr_of_points - 7;\n v[nr_of_points - 1] = nr_of_points - 7;\n\n points = new NurbsPoint[nr_of_segments][points_per_segment];\n }",
"public static void R_approx(double x[], double y[], int nxy, double xout[], int nout,\n int method, double yleft, double yright, double f)\n {\n int i;\n appr_meth M = new appr_meth(); // {0.0, 0.0, 0.0, 0.0, 0}; /* -Wall */\n\n /* check interpolation method */\n\n switch(method) {\n case 1: /* linear */\n break;\n case 2: /* constant */\n if(!DoubleVector.isFinite(f) || f < 0 || f > 1)\n throw new EvalException(\"approx(): invalid f value\");\n M.f2 = f;\n M.f1 = 1 - f;\n break;\n default:\n throw new EvalException(\"approx(): invalid interpolation method\");\n }\n\n for(i = 0 ; i < nxy ; i++)\n if(DoubleVector.isNA(x[i]) || DoubleVector.isNA(y[i]))\n throw new EvalException(\"approx(): attempted to interpolate NA values\");\n\n M.kind = method;\n M.ylow = yleft;\n M.yhigh = yright;\n\n for(i = 0 ; i < nout; i++)\n if(!DoubleVector.isNA(xout[i])) \n xout[i] = approx1(xout[i], x, y, nxy, M);\n }",
"private double threeDimensionalSolveQ1(RealMatrix u, RealMatrix v, double q3) {\r\n double u11 = u.getEntry(0, 0);\r\n double u12 = u.getEntry(0, 1);\r\n double u13 = u.getEntry(0, 2);\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v1 = v.getEntry(0, 0);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (((u12*v2)/(u11*u22)) - (v1/u11)) + ((((u12*u23)/(u11*u22)) - (u13/u11))*q3);\r\n }",
"@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"@Test\n public void shouldEvaluateWorkProperlyCase3() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.5, 1.5})) ;\n\n assertEquals((1.5 - 0.75) * (1.5 - 0.25) + (0.75 - 0.5) * (1.5 - 0.5) + (0.5 - 0.25) * (1.5 - 0.75), result, 0.0001) ;\n }",
"@Test\r\n public void testSplineApproximator() {\r\n List<Point> data = createConvergingDataset();\r\n List<ExpectedApproximation> exp = new ArrayList<ExpectedApproximation>();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(1000, 17, 1050));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(1062, 40, 1066));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n\r\n data = createLinearDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(100, 3, 200));\r\n exp.add(new ExpectedApproximation(300, 11, 400));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 100));\r\n exp.add(new ExpectedApproximation(400, 17, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n \r\n data = createIncreasingDecreasingDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(700, 23, 900));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(0, 35, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n }",
"public void ignoreCreateArrayForVec3With6Position() {\r\n\r\n SXRMesh sxrMesh = TestDefaultSXRViewManager.mSXRContext.getAssetLoader().loadMesh(UtilResource.androidResource(TestDefaultSXRViewManager.mSXRContext,R.raw.cylinder3));\r\n float[] vec3 = {-0.5f, 0.5f, 0.0f, -0.5f, 0.5f, 0.0f};\r\n\r\n try {\r\n sxrMesh.setVec3Vector(\"ratio_r\", vec3);\r\n assertNotNull(sxrMesh.getVec4Vector(\"ratio_r\"));\r\n fail();\r\n } catch (InvalidParameterException e) {\r\n assertEquals(e.getMessage(), \"setVec3Vector method support only three position array\");\r\n }\r\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores) {\n return create(inputPoints, outputPoints, qualityScores, \n DEFAULT_ROBUST_METHOD);\n }",
"public abstract Vector4fc normalize3();",
"protected double residual(Quadric q, Point3D point) {\n q.normalize();\n try {\n if (mTestQ == null) {\n mTestQ = q.asMatrix();\n } else {\n q.asMatrix(mTestQ);\n }\n\n if (mTestPoint == null) {\n mTestPoint = new Matrix(\n Point3D.POINT3D_HOMOGENEOUS_COORDINATES_LENGTH, \n 1);\n }\n point.normalize();\n mTestPoint.setElementAt(0, 0, point.getHomX());\n mTestPoint.setElementAt(1, 0, point.getHomY());\n mTestPoint.setElementAt(2, 0, point.getHomZ());\n mTestPoint.setElementAt(3, 0, point.getHomW());\n Matrix locusMatrix = mTestPoint.transposeAndReturnNew();\n locusMatrix.multiply(mTestQ);\n locusMatrix.multiply(mTestPoint); \n return Math.abs(locusMatrix.getElementAt(0, 0));\n } catch (AlgebraException e) {\n return Double.MAX_VALUE;\n } \n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);",
"private double[] quadstepY(DoubleToDouble f, double x0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] y = {(a + c) / 2, (c + b) / 2};\n double[] v = f.evalDouble(x0, y, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = v[0];\n double fe = v[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepY(f, x0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepY(f, x0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }",
"public void c(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)\r\n/* 77: */ {\r\n/* 78: 89 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2 + paramDouble3 * paramDouble3);\r\n/* 79: */ \r\n/* 80: 91 */ paramDouble1 /= f1;\r\n/* 81: 92 */ paramDouble2 /= f1;\r\n/* 82: 93 */ paramDouble3 /= f1;\r\n/* 83: */ \r\n/* 84: 95 */ paramDouble1 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 85: 96 */ paramDouble2 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 86: 97 */ paramDouble3 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 87: */ \r\n/* 88: 99 */ paramDouble1 *= paramFloat1;\r\n/* 89:100 */ paramDouble2 *= paramFloat1;\r\n/* 90:101 */ paramDouble3 *= paramFloat1;\r\n/* 91: */ \r\n/* 92:103 */ this.v = paramDouble1;\r\n/* 93:104 */ this.w = paramDouble2;\r\n/* 94:105 */ this.x = paramDouble3;\r\n/* 95: */ \r\n/* 96:107 */ float f2 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 97: */ \r\n/* 98:109 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 99:110 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f2) * 180.0D / 3.141592741012573D));\r\n/* 100:111 */ this.i = 0;\r\n/* 101: */ }",
"public void determineCoefficients(int splineIndex, double[] positionIn, double v0, double vf, double a0, double af)\n {\n if (!initialized.getBooleanValue())\n throw new RuntimeException(\"QuinticSplineInterpolator is not initialized\");\n\n if (splineIndex > numberOfSplines - 1 || splineIndex < 0)\n throw new RuntimeException(\"SplineIndex is out of bounds\");\n\n if (positionIn.length < numberOfPoints.getValue())\n throw new RuntimeException(\"Length of positionIn is less than the number of points\");\n\n MatrixTools.setMatrixColumnFromArray(a, 0, positionIn, 0, a.getNumRows());\n\n MatrixTools.diff(positionIn, yd);\n\n if (numberOfPoints.getValue() > 2)\n {\n s.unsafe_set(0, 0, positionIn[1] / h.unsafe_get(0, 0) - positionIn[0] / h.unsafe_get(0, 0) - v0);\n for (int i = 0; i < numberOfPoints.getValue() - 2; i++)\n {\n s.unsafe_set(i + 4, 0, yd.unsafe_get(i + 1, 0) / h.unsafe_get(i + 1, 0) - yd.unsafe_get(i, 0) / h.unsafe_get(i, 0));\n }\n }\n else\n {\n s.unsafe_set(0, 0, positionIn[1] / h.unsafe_get(0, 0) - positionIn[0] / h.unsafe_get(0, 0) - v0);\n }\n\n s.unsafe_set(1, 0, a0);\n s.unsafe_set(2,\n 0,\n vf - positionIn[numberOfPoints.getValue() - 1] / h.unsafe_get(numberOfPoints.getValue() - 2, 0)\n + positionIn[numberOfPoints.getValue() - 2] / h.unsafe_get(numberOfPoints.getValue() - 2, 0));\n s.unsafe_set(3, 0, af);\n\n /*\n * TODO: Rewrite so no new objects are created\n */\n\n solver.solve(s, sol);\n\n CommonOps_DDRM.mult(Cblock, sol, c);\n CommonOps_DDRM.mult(D, sol, d);\n\n MatrixTools.setMatrixBlock(e, 0, 0, sol, 2, 0, numberOfPoints.getValue() - 1, 1, 1.0);\n\n MatrixTools.diff(sol, 2, numberOfPoints.getValue(), f);\n CommonOps_DDRM.scale(1.0 / 5.0, f);\n CommonOps_DDRM.elementDiv(f, h);\n\n for (int i = 0; i < numberOfPoints.getValue() - 1; i++)\n {\n double hi = h.unsafe_get(i, 0);\n double hi2 = MathTools.square(hi);\n double hi3 = hi2 * hi;\n double hi4 = hi3 * hi;\n\n b.unsafe_set(i,\n 0,\n yd.unsafe_get(i, 0) / hi - c.unsafe_get(i, 0) * hi - d.unsafe_get(i, 0) * hi2 - e.unsafe_get(i, 0) * hi3 - f.unsafe_get(i, 0) * hi4);\n }\n\n splines[splineIndex].seta(a);\n splines[splineIndex].setb(b);\n splines[splineIndex].setc(c);\n splines[splineIndex].setd(d);\n splines[splineIndex].sete(e);\n splines[splineIndex].setf(f);\n\n splines[splineIndex].setCoefficientsSet(true);\n\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener);\n }\n }",
"@org.junit.Test\n public void getUniformParamsTestCurve3() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(15, 20), new Vector(15, 30));\n List<Double> params = curve.getUniformParams(6);\n assertEquals(6, curve.getUniformParams(6).size());\n\n // check that each point is further down the line of the curve\n // each x and y should be larger than the previous\n Vector prev = curve.getPoint(params.get(0));\n for (int i = 1; i < params.size(); i++) {\n Vector point = curve.getPoint(params.get(i));\n assertTrue(point.x > prev.x);\n assertTrue(point.y > prev.y);\n }\n\n // check that the first and the last sampling points are equal to starting and ending controlling points\n assertEquals(new Vector(10, 20), curve.getPoint(params.get(0)));\n assertEquals(new Vector(15, 30), curve.getPoint(params.get(params.size() - 1)));\n }",
"protected abstract void solvePreliminarSolutions(\n final int[] samplesIndices,\n final List<Solution<P>> solutions);",
"private boolean isValidQuiz3(double quiz3)\n\t{\n\t\treturn quiz3 >= 0 && quiz3 <= 10;\n\t}",
"private double[] quadstepX(DoubleToDouble f, double y0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] x = {(a + c) / 2, (c + b) / 2};\n double[] y = f.evalDouble(x, y0, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = y[0];\n double fe = y[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepX(f, y0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepX(f, y0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }",
"private Point2D[] CalculateBezierCurve(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, int samples_interval){ \n \n \n \n double control_point_1_x; \n double control_point_1_y; \n double control_point_2_x; \n double control_point_2_y; \n \n \n //Calculate the control points for the cubic bezier line \n control_point_1_x =controlPoint(x0,x1,x2); \n control_point_1_y =controlPoint(y0,y1,y2); \n \n control_point_2_x = controlPoint(x3,x2,x1); \n control_point_2_y = controlPoint(y3,y2,y1); \n \n //System.out.println(\"control1: \" + control_point_1_x + \" -- \" + control_point_1_y); \n //System.out.println(\"control2: \" + control_point_2_x + \" -- \" + control_point_2_y); \n \n \n double cx = 3.0 * (control_point_1_x - x1); \n double bx = 3.0 * (control_point_2_x - control_point_1_x) - cx; \n double ax = x2 - x1 - cx - bx; \n \n double cy = 3.0 * (control_point_1_y - y1); \n double by = 3.0 * (control_point_2_y - control_point_1_y) - cy; \n double ay = y2 - y1 - cy - by; \n \n //Let's calculate all the ponits that follow the Bezier curve. \n Point2D[] points = new Point2D[samples_interval]; \n for(int j = 0; j < samples_interval; j++){ \n double t = j*(1.0/samples_interval); \n //System.out.println(\"j: \" + j + \" t: \" + t + \" samples_int: \" + (samples_interval)); \n double x = (ax * t * t * t) + (bx * t * t) + (cx * t) + x1; \n double y = (ay * t * t * t) + (by * t *t) + (cy * t) + y1; \n //System.out.println(\"x: \" + x + \" y: \" + y + \" t: \" + t); \n points[j] = new Point2D.Double(x,y); \n } \n return points; \n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(qualityScores, weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public void dormqr_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);",
"public static MetricTransformation2DRobustEstimator create(\n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n }\n }",
"protected EquationStandardEnquiry getEquationStandardEnquiry(String identifier, String fixedFormat) throws Exception\n\t{\n\t\treturn new EquationStandardEnquiry(identifier, fixedFormat, session);\n\t}",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n DEFAULT_ROBUST_METHOD);\n }",
"RegressionCurveType createRegressionCurveType();",
"public float[] normalizeQuat(float[] quat) {\n float x = quat[0];\n float y = quat[1];\n float z = quat[2];\n float w = quat[3];\n float len = x * x + y * y + z * z + w * w; // length of the quarternion without sqrt\n if (len != 0.f && !(len == 1f)) {\n len = (float) Math.sqrt(len);\n w /= len;\n x /= len;\n y /= len;\n z /= len;\n }\n float[] newquat = {x, y, z, w};\n return newquat;\n }",
"@Test\n public void shouldEvaluateWorkProperlyCase2() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.25*0.75 + 0.25*0.5 + 0.25*0.25, result, 0.0001) ;\n }",
"@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public RadialDistortion estimate() throws LockedException,\n NotReadyException, RadialDistortionEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n try {\n mLocked = true;\n if (mListener != null) {\n mListener.onEstimateStart(this);\n }\n\n final int nPoints = mDistortedPoints.size();\n\n int numRows;\n if (isLMSESolutionAllowed()) {\n // initialize new matrix having two rows per point\n numRows = 2 * nPoints;\n } else {\n // when LMSE is not allowed, restrict matrix to two rows (minimum\n // value required for a solution)\n numRows = 2 * getMinNumberOfMatchedPoints();\n }\n\n final Matrix aMatrix = new Matrix(numRows, mNumKParams);\n final double[] b = new double[numRows];\n\n final Iterator<Point2D> iteratorDistorted = mDistortedPoints.iterator();\n final Iterator<Point2D> iteratorUndistorted =\n mUndistortedPoints.iterator();\n\n Point2D distorted;\n Point2D undistorted;\n int counter = 0;\n\n // undistorted normalized homogeneous coordinates\n double uNormHomX;\n double uNormHomY;\n double uNormHomW;\n // undistorted normalized inhomogeneous coordinates\n double uNormInhomX;\n double uNormInhomY;\n // undistorted denormalized homogeneous coordinates\n double uDenormHomX;\n double uDenormHomY;\n double uDenormHomW;\n // undistorted denormalized inhomogeneous coordinates\n double uDenormInhomX;\n double uDenormInhomY;\n // distorted inhomogeneous coordinates\n double dInhomX;\n double dInhomY;\n double rowNormX;\n double rowNormY;\n\n // radial distortion center\n double centerX = 0.0;\n double centerY = 0.0;\n if (mDistortionCenter != null) {\n centerX = mDistortionCenter.getInhomX();\n centerY = mDistortionCenter.getInhomY();\n }\n\n // radial distance of undistorted normalized (calibration independent)\n // coordinates\n double r2;\n double a;\n double value;\n\n while (iteratorDistorted.hasNext() && iteratorUndistorted.hasNext()) {\n distorted = iteratorDistorted.next();\n undistorted = iteratorUndistorted.next();\n\n undistorted.normalize();\n\n uDenormHomX = undistorted.getHomX();\n uDenormHomY = undistorted.getHomY();\n uDenormHomW = undistorted.getHomW();\n\n uDenormInhomX = uDenormHomX / uDenormHomW;\n uDenormInhomY = uDenormHomY / uDenormHomW;\n\n // multiply intrinsic parameters by undistorted point\n uNormHomX = mKinv.getElementAt(0, 0) * uDenormHomX +\n mKinv.getElementAt(0, 1) * uDenormHomY +\n mKinv.getElementAt(0, 2) * uDenormHomW;\n uNormHomY = mKinv.getElementAt(1, 0) * uDenormHomX +\n mKinv.getElementAt(1, 1) * uDenormHomY +\n mKinv.getElementAt(1, 2) * uDenormHomW;\n uNormHomW = mKinv.getElementAt(2, 0) * uDenormHomX +\n mKinv.getElementAt(2, 1) * uDenormHomY +\n mKinv.getElementAt(2, 2) * uDenormHomW;\n\n uNormInhomX = uNormHomX / uNormHomW;\n uNormInhomY = uNormHomY / uNormHomW;\n\n r2 = uNormInhomX * uNormInhomX + uNormInhomY * uNormInhomY;\n\n dInhomX = distorted.getInhomX();\n dInhomY = distorted.getInhomY();\n\n a = 1.0;\n rowNormX = rowNormY = 0.0;\n for (int i = 0; i < mNumKParams; i++) {\n a *= r2;\n\n // x and y coordinates generate linear dependent equations, for\n // that reason we need more than one point\n\n // x coordinates\n value = (uDenormInhomX - centerX) * a;\n aMatrix.setElementAt(2 * counter, i, value);\n\n rowNormX += Math.pow(value, 2.0);\n\n // y coordinates\n value = (uDenormInhomY - centerY) * a;\n aMatrix.setElementAt(2 * counter + 1, i, value);\n\n rowNormY += Math.pow(value, 2.0);\n }\n\n // x coordinates\n value = dInhomX - uDenormInhomX;\n b[2 * counter] = value;\n\n rowNormX += Math.pow(value, 2.0);\n\n // y coordinates\n value = dInhomY - uDenormInhomY;\n b[2 * counter + 1] = value;\n\n rowNormY += Math.pow(value, 2.0);\n\n // normalize rows to increase accuracy\n for (int i = 0; i < mNumKParams; i++) {\n aMatrix.setElementAt(2 * counter, i,\n aMatrix.getElementAt(2 * counter, i) / rowNormX);\n aMatrix.setElementAt(2 * counter + 1, i,\n aMatrix.getElementAt(2 * counter + 1, i) / rowNormY);\n }\n\n b[2 * counter] /= rowNormX;\n b[2 * counter + 1] /= rowNormY;\n\n counter++;\n\n if (!isLMSESolutionAllowed() && (counter >= getMinNumberOfMatchedPoints())) {\n break;\n }\n }\n\n final double[] params = Utils.solve(aMatrix, b);\n\n final RadialDistortion distortion =\n new RadialDistortion(params, mDistortionCenter,\n mHorizontalFocalLength, mVerticalFocalLength, mSkew);\n\n if (mListener != null) {\n mListener.onEstimateEnd(this);\n }\n\n return distortion;\n } catch (final AlgebraException | RadialDistortionException e) {\n throw new RadialDistortionEstimatorException(e);\n } finally {\n mLocked = false;\n }\n }",
"@Test\n public void shouldEvaluateWorkProperlyCase1() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.25*0.75 + 0.25*0.5, result, 0.0001) ;\n }",
"public static double[] getQuartileData(double data[]) {\r\n\t\t\t\r\n\t\t\tint datLength = data.length;\r\n\t \tdouble[] quartileData = {1, 2, 3};\r\n\t \t\r\n\t \tdouble Q1 = 0, Q3 = 0, IQR = 0;\r\n\t \t\t\r\n\t \t\r\n\t if((datLength % 2) == 0 && !( ((datLength / 2) % 2) == 0)){//good\r\n\t \t\t \r\n\t \tQ1 = data[Math.round(datLength / 4)];\r\n\r\n\t \tQ3 = data[Math.round(datLength * (3/4))];\r\n\t \t \r\n\t \tIQR = Q3 - Q1;\r\n\t \t\r\n\t }\r\n\t else if((datLength % 2) == 0 && ((datLength / 2) % 2) == 0){//good\r\n\t \t\r\n\t \tQ1 = ((data[datLength / 4] + data[(datLength / 4) - 1]) / 2);\r\n\r\n\t \tQ3 = ((data[datLength * (3/4)] + data[(datLength * (3/4)) - 1]) / 2);\r\n\t \t \r\n\t \tIQR = Q3 - Q1;\r\n\t \r\n\t }\r\n\t else if(!((datLength % 2) == 0) && (((datLength - 1) / 2) % 2) == 0){//good\r\n\t \t \r\n\t \tQ1 = (data[(datLength - 1) / 4] + data[(datLength - 1) / 4] - 1) / 2;\r\n\t \r\n\t \tQ3 = (data[datLength * (3/4)] + data[datLength * (3/4) + 1]) / 2;\r\n\t \t \t \r\n\t \tIQR = Q3 - Q1;\r\n\t \t\r\n\t }\r\n\t else if(!((datLength % 2) == 0) && !((((datLength - 1) / 2) % 2) == 0)){//good\r\n\t \t \r\n\t \tQ1 = data[Math.round((datLength - 1) / 4)];\r\n\t \t \r\n\t \tQ3 = data[Math.round((datLength) * (3/4))];\r\n\t \t \t \r\n\t \tIQR = Q3 - Q1;\r\n\t \r\n\t }\r\n\t \r\n\t quartileData[0] = Q1;\r\n\t quartileData[1] = Q3;\r\n\t quartileData[2] = IQR;\r\n\t \t\r\n\t return quartileData;\r\n\t }",
"@Test\n public void shouldEvaluateWorkProperlyCase4() throws FileNotFoundException {\n Front storeFront = new ArrayFront(\"/pareto_fronts/ZDT1.pf\") ;\n\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n for (int i = 0 ; i < storeFront.getNumberOfPoints(); i++) {\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, storeFront.getPoint(i).getValue(0));\n solution.setObjective(1, storeFront.getPoint(i).getValue(1));\n frontToEvaluate.add(solution) ;\n }\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.6661, result, 0.0001) ;\n }",
"public abstract Vector3D getPointForSurfaceCoordinates(double u, double v);",
"public org.drip.state.estimator.PredictorResponseWeightConstraint fundingPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = forwardLabel();\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.fundingPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"public static Spliterator.OfDouble spliterator(double[] paramArrayOfdouble, int paramInt1, int paramInt2, int paramInt3) {\n/* 371 */ checkFromToBounds(((double[])Objects.requireNonNull((T)paramArrayOfdouble)).length, paramInt1, paramInt2);\n/* 372 */ return new DoubleArraySpliterator(paramArrayOfdouble, paramInt1, paramInt2, paramInt3);\n/* */ }",
"@Override\n protected Double[] getCorners(){\n return new Double[]{\n //leftmost point\n getXPos(), getYPos(),\n //rightmost point\n getXPos() + getWidth(), getYPos(),\n //middle point\n getXPos() + getWidth() / 2, getYPos() + getHeight() * getThirdTriangleYPoint(pointUp)\n };\n }",
"public static BoundingPolytope computePolytope(double[] points)\n\t{\n\t\tBoundingPolytope frustum = new BoundingPolytope();\n\t\t\n\t\tVector3d a1 = new Vector3d(points[0],points[1],points[2]);\n\t\tVector3d a2 = new Vector3d(points[4],points[5],points[6]);\n\t\tVector3d b1 = new Vector3d(points[8],points[9],points[10]);\n\t\tVector3d b2 = new Vector3d(points[12],points[13],points[14]);\n\t\tVector3d c1 = new Vector3d(points[16],points[17],points[18]);\n\t\tVector3d c2 = new Vector3d(points[20],points[21],points[22]);\n\t\tVector3d d1 = new Vector3d(points[24],points[25],points[26]);\n\t\tVector3d d2 = new Vector3d(points[28],points[29],points[30]);\n\t\t\n\t\t\n\t\tVector4d[] planes = new Vector4d[] {\n\t\tcomputePlane(a1,b1,a2),\n\t\tcomputePlane(d1,c1,d2),\n\t\tcomputePlane(b1,d1,b2),\n\t\tcomputePlane(c1,a1,c2),\n\t\tcomputePlane(c1,d1,a1),\n\t\tcomputePlane(d2,c2,b2),\n\t\t};\n\t\t\n\t\tfrustum.setPlanes(planes);\n\t\t\n\t\treturn frustum;\n\t}",
"public double[] extrapolateBasic(ShingleBuilder builder, int horizon) {\n return extrapolateBasic(builder.getShingle(), horizon, builder.getInputPointSize(), builder.isCyclic(),\n builder.getShingleIndex());\n }",
"private double threeDimensionalSolveQ2(RealMatrix u, RealMatrix v, double q3) {\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (-v2/u22) - ((u23/u22)*q3);\r\n }",
"@Test\n public void testUUpperTriangular() {\n FieldMatrix<Dfp> matrix = new Array2DRowFieldMatrix<>(Dfp25.getField(), testData);\n FieldMatrix<Dfp> u = new FieldLUDecomposition<>(matrix).getU();\n for (int i = 0; i < u.getRowDimension(); i++) {\n for (int j = 0; j < i; j++) {\n Assert.assertEquals(Dfp25.ZERO, u.getEntry(i, j));\n }\n }\n }",
"public Point3d sampleHemisphere();",
"public static void R_approxfun(double x[], double y[], int nxy, double xout[], int nout,\n int method, double yleft, double yright, double f)\n {\n int i;\n appr_meth M = new appr_meth();\n \n M.f2 = f;\n M.f1 = 1 - f;\n M.kind = method;\n M.ylow = yleft;\n M.yhigh = yright;\n for(i = 0; i < nout; i++)\n if(!DoubleVector.isNA(xout[i])) \n xout[i] = approx1(xout[i], x, y, nxy, M);\n }",
"public ExtrapolatedSaturationPointEvaluator(int[] anchorpoints,\n\t\t\tISamplingAlgorithmFactory<IInstance, ? extends ASamplingAlgorithm<IInstance>> samplingAlgorithmFactory,\n\t\t\tIDataset<IInstance> train, double trainSplitForAnchorpointsMeasurement,\n\t\t\tLearningCurveExtrapolationMethod extrapolationMethod, long seed, IDataset<IInstance> test) {\n\t\tsuper();\n\t\tthis.anchorpoints = anchorpoints;\n\t\tthis.samplingAlgorithmFactory = samplingAlgorithmFactory;\n\t\tthis.train = train;\n\t\tthis.trainSplitForAnchorpointsMeasurement = trainSplitForAnchorpointsMeasurement;\n\t\tthis.extrapolationMethod = extrapolationMethod;\n\t\tthis.seed = seed;\n\t\tthis.epsilon = DEFAULT_EPSILON;\n\t\tthis.test = test;\n\t}",
"double CubicInterpolate (double y0,double y1,\n double y2,double y3,\n double mu)\n {\n double a0,a1,a2,a3,mu2;\n\n mu2 = mu*mu;\n\n //a0 = y3 - y2 - y0 + y1;\n //a1 = y0 - y1 - a0;\n //a2 = y2 - y0;\n //a3 = y1;\n\n // Paul Breeuwsma proposes the following coefficients for a\n // smoother interpolated curve, which uses the slope between the\n // previous point and the next as the derivative at the current\n // point. This results in what are generally referred to as\n // Catmull-Rom splines.\n a0 = -0.5*y0 + 1.5*y1 - 1.5*y2 + 0.5*y3;\n a1 = y0 - 2.5*y1 + 2*y2 - 0.5*y3;\n a2 = -0.5*y0 + 0.5*y2;\n a3 = y1;\n\n return(a0*mu*mu2+a1*mu2+a2*mu+a3);\n }",
"public interface IVRPAlgorithm {\n VRPSolution solve(VRPInstance vrpInstance) throws Exception;\n}",
"public abstract double[] evaluateAt(double u, double v);",
"@Test\n public void testConstructor() {\n RANSACRadialDistortionRobustEstimator estimator =\n new RANSACRadialDistortionRobustEstimator();\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertNull(estimator.getDistortedPoints());\n assertNull(estimator.getUndistortedPoints());\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertFalse(estimator.arePointsAvailable());\n assertFalse(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // test constructor with listener\n estimator = new RANSACRadialDistortionRobustEstimator(this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertNull(estimator.getDistortedPoints());\n assertNull(estimator.getUndistortedPoints());\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertFalse(estimator.arePointsAvailable());\n assertFalse(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // test constructor with points\n final List<Point2D> distortedPoints = new ArrayList<>();\n final List<Point2D> undistortedPoints = new ArrayList<>();\n for (int i = 0; i < RadialDistortionRobustEstimator.MIN_NUMBER_OF_POINTS; i++) {\n distortedPoints.add(Point2D.create());\n undistortedPoints.add(Point2D.create());\n }\n\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n final List<Point2D> emptyPoints = new ArrayList<>();\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points and listener\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points and center\n final Point2D center = Point2D.create();\n\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, center);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertSame(estimator.getDistortionCenter(), center);\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n center.getInhomX(), 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n center.getInhomY(), 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points, center and listener\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, center, this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertSame(estimator.getDistortionCenter(), center);\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n center.getInhomX(), 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n center.getInhomY(), 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n }",
"public abstract void constructHull();",
"public org.drip.state.estimator.PredictorResponseWeightConstraint forwardPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.FloaterLabel floaterLabel = floaterLabel();\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = null != floaterLabel && floaterLabel instanceof\n\t\t\torg.drip.state.identifier.ForwardLabel ? (org.drip.state.identifier.ForwardLabel) floaterLabel :\n\t\t\t\tnull;\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.forwardPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n }\n }",
"public static float[] trilaterate(float[] p1, float r1, float[] p2, float r2, float[] p3, float r3) {\r\n float[] pos = new float[2];\r\n pos[0] = calcX(r1, r2, p2[0]);\r\n pos[1] = calcY(r1, r3, p3[0], p3[1], pos[0]);\r\n return pos;\r\n }",
"public org.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double> value (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp)\n\t{\n\t\tif (null == valParams || null == csqs) return null;\n\n\t\torg.drip.state.discount.MergedDiscountForwardCurve dcFunding = csqs.fundingState (fundingLabel());\n\n\t\tif (null == dcFunding) return null;\n\n\t\tlong lStart = System.nanoTime();\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tdouble dblAccrued01 = 0.;\n\t\tdouble dblTotalCoupon = 0.;\n\t\tdouble dblCumulativeCouponDCF = 0.;\n\t\tdouble dblCumulativeCouponAmount = 0.;\n\t\tdouble dblAccrualCoupon = java.lang.Double.NaN;\n\t\tdouble dblUnadjustedDirtyPV = 0.;\n\t\tdouble dblUnadjustedDirtyDV01 = 0.;\n\t\tdouble dblCompoundingAdjustedDirtyPV = 0.;\n\t\tdouble dblCompoundingAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCashPayDF = java.lang.Double.NaN;\n\t\tint iResetDate = java.lang.Integer.MIN_VALUE;\n\t\tdouble dblFXAdjustedValueNotional = java.lang.Double.NaN;\n\t\tdouble dblCreditForwardConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCreditForwardConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCreditFundingConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCreditFundingConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCreditFXConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCreditFXConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCumulativeConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCumulativeConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblForwardFundingConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblForwardFundingConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblForwardFXConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblForwardFXConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblFundingFXConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblFundingFXConvexityAdjustedDirtyDV01 = 0.;\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tdouble dblPeriodFX = java.lang.Double.NaN;\n\t\t\tdouble dblPeriodNotional = java.lang.Double.NaN;\n\t\t\tdouble dblUnadjustedDirtyPeriodDV01 = java.lang.Double.NaN;\n\n\t\t\tint iPeriodPayDate = period.payDate();\n\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\ttry {\n\t\t\t\tdblPeriodNotional = period.notional (iPeriodEndDate) * period.couponFactor (iPeriodEndDate);\n\n\t\t\t\tdblPeriodFX = period.fx (csqs);\n\t\t\t} catch (java.lang.Exception e) {\n\t\t\t\te.printStackTrace();\n\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif (iPeriodPayDate < iValueDate) {\n\t\t\t\torg.drip.analytics.output.CompositePeriodCouponMetrics cpcm = period.couponMetrics\n\t\t\t\t\t(iPeriodEndDate, csqs);\n\n\t\t\t\tif (null == cpcm) return null;\n\n\t\t\t\tdouble dblPeriodDCF = cpcm.dcf();\n\n\t\t\t\tdblCumulativeCouponDCF += dblPeriodDCF;\n\n\t\t\t\tdblCumulativeCouponAmount += dblPeriodNotional * dblPeriodFX * cpcm.rate() * dblPeriodDCF;\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\torg.drip.analytics.output.CompositePeriodCouponMetrics cpcm = period.couponMetrics (iValueDate,\n\t\t\t\tcsqs);\n\n\t\t\tif (null == cpcm) return null;\n\n\t\t\tdouble dblPeriodDCF = cpcm.dcf();\n\n\t\t\tdouble dblPeriodFullRate = cpcm.rate();\n\n\t\t\torg.drip.analytics.output.CompositePeriodAccrualMetrics cpam = period.accrualMetrics (iValueDate,\n\t\t\t\tcsqs);\n\n\t\t\ttry {\n\t\t\t\tif (null != cpam) {\n\t\t\t\t\tdblAccrualCoupon = cpam.rate();\n\n\t\t\t\t\tiResetDate = cpam.resetDate();\n\n\t\t\t\t\tdouble dblPeriodAccrualDCF = cpam.dcf();\n\n\t\t\t\t\tdblCumulativeCouponDCF += dblPeriodAccrualDCF;\n\t\t\t\t\tdblAccrued01 = 0.0001 * dblPeriodAccrualDCF * dblPeriodNotional * dblPeriodFX;\n\n\t\t\t\t\tdblCumulativeCouponAmount += dblPeriodNotional * dblPeriodFX * dblAccrualCoupon *\n\t\t\t\t\t\tdblPeriodAccrualDCF;\n\t\t\t\t}\n\n\t\t\t\tdblUnadjustedDirtyPeriodDV01 = 0.0001 * dblPeriodDCF * dblPeriodNotional * dblPeriodFX *\n\t\t\t\t\tperiod.survival (csqs) * period.df (csqs);\n\t\t\t} catch (java.lang.Exception e) {\n\t\t\t\te.printStackTrace();\n\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tdouble dblCompoundingAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 * cpcm.compounding();\n\n\t\t\tdouble dblCreditForwardConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.creditForward();\n\n\t\t\tdouble dblCreditFundingConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.creditFunding();\n\n\t\t\tdouble dblCreditFXConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.creditFX();\n\n\t\t\tdouble dblCumulativeConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.cumulative();\n\n\t\t\tdouble dblForwardFundingConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.forwardFunding();\n\n\t\t\tdouble dblForwardFXConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.forwardFX();\n\n\t\t\tdouble dblFundingFXConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.fundingFX();\n\n\t\t\tdblTotalCoupon += dblPeriodFullRate;\n\t\t\tdblUnadjustedDirtyDV01 += dblUnadjustedDirtyPeriodDV01;\n\t\t\tdblUnadjustedDirtyPV += dblUnadjustedDirtyPeriodDV01 * 10000. * dblPeriodFullRate;\n\t\t\tdblCompoundingAdjustedDirtyDV01 += dblCompoundingAdjustedDirtyPeriodDV01;\n\t\t\tdblCompoundingAdjustedDirtyPV += dblCompoundingAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblCreditForwardConvexityAdjustedDirtyDV01 += dblCreditForwardConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCreditForwardConvexityAdjustedDirtyPV += dblCreditForwardConvexityAdjustedDirtyPeriodDV01 *\n\t\t\t\t10000. * dblPeriodFullRate;\n\t\t\tdblCreditFundingConvexityAdjustedDirtyDV01 += dblCreditFundingConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCreditFundingConvexityAdjustedDirtyPV += dblCreditFundingConvexityAdjustedDirtyPeriodDV01 *\n\t\t\t\t10000. * dblPeriodFullRate;\n\t\t\tdblCreditFXConvexityAdjustedDirtyDV01 += dblCreditFXConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCreditFXConvexityAdjustedDirtyPV += dblCreditFXConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblCumulativeConvexityAdjustedDirtyDV01 += dblCumulativeConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCumulativeConvexityAdjustedDirtyPV += dblCumulativeConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblForwardFundingConvexityAdjustedDirtyDV01 += dblForwardFundingConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblForwardFundingConvexityAdjustedDirtyPV += dblForwardFundingConvexityAdjustedDirtyPeriodDV01 *\n\t\t\t\t10000. * dblPeriodFullRate;\n\t\t\tdblForwardFXConvexityAdjustedDirtyDV01 += dblForwardFXConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblForwardFXConvexityAdjustedDirtyPV += dblForwardFXConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblFundingFXConvexityAdjustedDirtyDV01 += dblFundingFXConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblFundingFXConvexityAdjustedDirtyPV += dblFundingFXConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t}\n\n\t\ttry {\n\t\t\tdblCashPayDF = dcFunding.df (iValueDate);\n\n\t\t\tdblFXAdjustedValueNotional = fxAdjustedNotional (iValueDate, csqs);\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\tdblUnadjustedDirtyPV /= dblCashPayDF;\n\t\tdblUnadjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCompoundingAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCompoundingAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCreditForwardConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCreditForwardConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCreditFundingConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCreditFundingConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCreditFXConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCreditFXConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCumulativeConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCumulativeConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblForwardFundingConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblForwardFundingConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblForwardFXConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblForwardFXConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblFundingFXConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblFundingFXConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdouble dblAccrued = 0. == dblAccrued01 ? 0. : dblAccrued01 * 10000. * dblAccrualCoupon;\n\t\tdouble dblUnadjustedCleanPV = dblUnadjustedDirtyPV - dblAccrued;\n\t\tdouble dblUnadjustedCleanDV01 = dblUnadjustedDirtyDV01 - dblAccrued01;\n\t\tdouble dblUnadjustedFairPremium = 0.0001 * dblUnadjustedCleanPV / dblUnadjustedCleanDV01;\n\t\tdouble dblCompoundingAdjustedCleanPV = dblCompoundingAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblCompoundingAdjustedCleanDV01 = dblCompoundingAdjustedDirtyDV01 - dblAccrued01;\n\t\tdouble dblCompoundingAdjustedFairPremium = 0.0001 * dblCompoundingAdjustedCleanPV /\n\t\t\tdblCompoundingAdjustedCleanDV01;\n\t\tdouble dblCreditForwardConvexityAdjustedCleanPV = dblCreditForwardConvexityAdjustedDirtyPV -\n\t\t\tdblAccrued;\n\t\tdouble dblCreditForwardConvexityAdjustedCleanDV01 = dblCreditForwardConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblCreditForwardConvexityAdjustedFairPremium = 0.0001 *\n\t\t\tdblCreditForwardConvexityAdjustedCleanPV / dblCreditForwardConvexityAdjustedCleanDV01;\n\t\tdouble dblCreditFundingConvexityAdjustedCleanPV = dblCreditFundingConvexityAdjustedDirtyPV -\n\t\t\tdblAccrued;\n\t\tdouble dblCreditFundingConvexityAdjustedCleanDV01 = dblCreditFundingConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblCreditFundingConvexityAdjustedFairPremium = 0.0001 *\n\t\t\tdblCreditFundingConvexityAdjustedCleanPV / dblCreditFundingConvexityAdjustedCleanDV01;\n\t\tdouble dblCreditFXConvexityAdjustedCleanPV = dblCreditFXConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblCreditFXConvexityAdjustedCleanDV01 = dblCreditFXConvexityAdjustedDirtyDV01 - dblAccrued01;\n\t\tdouble dblCreditFXConvexityAdjustedFairPremium = 0.0001 * dblCreditFXConvexityAdjustedCleanPV /\n\t\t\tdblCreditFXConvexityAdjustedCleanDV01;\n\t\tdouble dblCumulativeConvexityAdjustedCleanPV = dblCumulativeConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblCumulativeConvexityAdjustedCleanDV01 = dblCumulativeConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblCumulativeConvexityAdjustedFairPremium = 0.0001 * dblCumulativeConvexityAdjustedCleanPV /\n\t\t\tdblCumulativeConvexityAdjustedCleanDV01;\n\t\tdouble dblForwardFundingConvexityAdjustedCleanPV = dblForwardFundingConvexityAdjustedDirtyPV -\n\t\t\tdblAccrued;\n\t\tdouble dblForwardFundingConvexityAdjustedCleanDV01 = dblForwardFundingConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblForwardFundingConvexityAdjustedFairPremium = 0.0001 *\n\t\t\tdblForwardFundingConvexityAdjustedCleanPV / dblForwardFundingConvexityAdjustedCleanDV01;\n\t\tdouble dblForwardFXConvexityAdjustedCleanPV = dblForwardFXConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblForwardFXConvexityAdjustedCleanDV01 = dblForwardFXConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblForwardFXConvexityAdjustedFairPremium = 0.0001 * dblForwardFXConvexityAdjustedCleanPV /\n\t\t\tdblForwardFXConvexityAdjustedCleanDV01;\n\t\tdouble dblFundingFXConvexityAdjustedCleanPV = dblFundingFXConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblFundingFXConvexityAdjustedCleanDV01 = dblFundingFXConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblFundingFXConvexityAdjustedFairPremium = 0.0001 * dblFundingFXConvexityAdjustedCleanPV /\n\t\t\tdblFundingFXConvexityAdjustedCleanDV01;\n\n\t\torg.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double> mapResult = new\n\t\t\torg.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double>();\n\n\t\tmapResult.put (\"AccrualCoupon\", dblAccrualCoupon);\n\n\t\tmapResult.put (\"Accrued\", dblAccrued);\n\n\t\tmapResult.put (\"Accrued01\", dblAccrued01);\n\n\t\tmapResult.put (\"CleanDV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CleanPV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedCleanDV01\", dblCompoundingAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CompoundingAdjustedCleanPV\", dblCompoundingAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyPV\", dblCompoundingAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyDV01\", dblCompoundingAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyPV\", dblCompoundingAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedFairPremium\", dblCompoundingAdjustedFairPremium);\n\n\t\tmapResult.put (\"CompoundingAdjustedParRate\", dblCompoundingAdjustedFairPremium);\n\n\t\tmapResult.put (\"CompoundingAdjustedPV\", dblCompoundingAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedRate\", dblCompoundingAdjustedFairPremium);\n\n\t\tmapResult.put (\"CompoundingAdjustedUpfront\", dblCompoundingAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustmentFactor\", dblCompoundingAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CompoundingAdjustmentPremium\", dblCompoundingAdjustedCleanPV - dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustmentPremiumUpfront\", (dblCompoundingAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedCleanDV01\",\n\t\t\tdblCreditForwardConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedCleanPV\", dblCreditForwardConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDirtyDV01\",\n\t\t\tdblCreditForwardConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDirtyPV\", dblCreditForwardConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDV01\", dblCreditForwardConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedFairPremium\",\n\t\t\tdblCreditForwardConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedParRate\",\n\t\t\tdblCreditForwardConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedPV\", dblCreditForwardConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedRate\", dblCreditForwardConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedUpfront\", dblCreditForwardConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustmentFactor\", dblCreditForwardConvexityAdjustedDirtyDV01\n\t\t\t/ dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustmentPremium\", dblCreditForwardConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustmentPremiumUpfront\",\n\t\t\t(dblCreditForwardConvexityAdjustedCleanPV - dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedCleanDV01\",\n\t\t\tdblCreditFundingConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedCleanPV\", dblCreditFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDirtyDV01\",\n\t\t\tdblCreditFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDirtyPV\", dblCreditFundingConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDV01\", dblCreditFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedFairPremium\",\n\t\t\tdblCreditFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedParRate\",\n\t\t\tdblCreditFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedPV\", dblCreditFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedRate\", dblCreditFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedUpfront\", dblCreditFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustmentFactor\", dblCreditFundingConvexityAdjustedDirtyDV01\n\t\t\t/ dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustmentPremium\", dblCreditFundingConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustmentPremiumUpfront\",\n\t\t\t(dblCreditFundingConvexityAdjustedCleanPV - dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedCleanDV01\", dblCreditFXConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedCleanPV\", dblCreditFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDirtyDV01\", dblCreditFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDirtyPV\", dblCreditFXConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDV01\", dblCreditFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedFairPremium\", dblCreditFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedParRate\", dblCreditFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedPV\", dblCreditFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedRate\", dblCreditFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedUpfront\", dblCreditFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustmentFactor\", dblCreditFXConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustmentPremium\", dblCreditFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustmentPremiumUpfront\", (dblCreditFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedCleanDV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedCleanPV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDirtyDV01\", dblCumulativeConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDirtyPV\", dblCumulativeConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDV01\", dblCumulativeConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedFairPremium\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedParRate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedPV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedRate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedUpfront\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustmentFactor\", dblCumulativeConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustmentPremium\", dblCumulativeConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustmentPremiumUpfront\", (dblCumulativeConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CumulativeCouponAmount\", dblCumulativeCouponAmount);\n\n\t\tmapResult.put (\"CumulativeCouponDCF\", dblCumulativeCouponDCF);\n\n\t\tmapResult.put (\"CV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"DirtyDV01\", dblCumulativeConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"DirtyPV\", dblCumulativeConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"DV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"FairPremium\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"Fixing01\", dblAccrued01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedCleanDV01\",\n\t\t\tdblForwardFundingConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedCleanPV\", dblForwardFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDirtyDV01\",\n\t\t\tdblForwardFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDirtyPV\", dblForwardFundingConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDV01\", dblForwardFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedFairPremium\",\n\t\t\tdblForwardFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedParRate\",\n\t\t\tdblForwardFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedPV\", dblForwardFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedRate\", dblForwardFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedUpfront\", dblForwardFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustmentFactor\", dblForwardFundingConvexityAdjustedDirtyDV01\n\t\t\t/ dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustmentPremium\", dblForwardFundingConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustmentPremiumUpfront\",\n\t\t\t(dblForwardFundingConvexityAdjustedCleanPV - dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedCleanDV01\", dblForwardFXConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedCleanPV\", dblForwardFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDirtyDV01\", dblForwardFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDirtyPV\", dblForwardFXConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDV01\", dblForwardFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedFairPremium\", dblForwardFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedParRate\", dblForwardFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedPV\", dblForwardFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedRate\", dblForwardFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedUpfront\", dblForwardFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustmentFactor\", dblForwardFXConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustmentPremium\", dblForwardFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustmentPremiumUpfront\", (dblForwardFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedCleanDV01\", dblFundingFXConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedCleanPV\", dblFundingFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDirtyDV01\", dblFundingFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDirtyPV\", dblFundingFXConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDV01\", dblFundingFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedFairPremium\", dblFundingFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedParRate\", dblFundingFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedPV\", dblFundingFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedRate\", dblFundingFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedUpfront\", dblFundingFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustmentFactor\", dblFundingFXConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustmentPremium\", dblFundingFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustmentPremiumUpfront\", (dblFundingFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"ParRate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"PV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"Rate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ResetDate\", (double) iResetDate);\n\n\t\tmapResult.put (\"ResetRate\", dblAccrualCoupon - basis());\n\n\t\tmapResult.put (\"TotalCoupon\", dblTotalCoupon);\n\n\t\tmapResult.put (\"UnadjustedCleanDV01\", dblUnadjustedCleanDV01);\n\n\t\tmapResult.put (\"UnadjustedCleanPV\", dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"UnadjustedDirtyDV01\", dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"UnadjustedDirtyPV\", dblUnadjustedDirtyPV);\n\n\t\tmapResult.put (\"UnadjustedFairPremium\", dblUnadjustedFairPremium);\n\n\t\tmapResult.put (\"UnadjustedParRate\", dblUnadjustedFairPremium);\n\n\t\tmapResult.put (\"UnadjustedPV\", dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"UnadjustedRate\", dblUnadjustedFairPremium);\n\n\t\tmapResult.put (\"UnadjustedUpfront\", dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"Upfront\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tdouble dblCompoundingAdjustedCleanPrice = 100. * (1. + (dblCompoundingAdjustedCleanPV /\n\t\t\tdblFXAdjustedValueNotional));\n\t\tdouble dblCreditForwardConvexityAdjustedCleanPrice = 100. * (1. +\n\t\t\t(dblCreditForwardConvexityAdjustedCleanPV / dblFXAdjustedValueNotional));\n\t\tdouble dblCreditFundingConvexityAdjustedCleanPrice = 100. * (1. +\n\t\t\t(dblCreditFundingConvexityAdjustedCleanPV / dblFXAdjustedValueNotional));\n\t\tdouble dblCreditFXConvexityAdjustedCleanPrice = 100. * (1. + (dblCreditFXConvexityAdjustedCleanPV\n\t\t\t/ dblFXAdjustedValueNotional));\n\t\tdouble dblCumulativeConvexityAdjustedCleanPrice = 100. * (1. + (dblCumulativeConvexityAdjustedCleanPV\n\t\t\t/ dblFXAdjustedValueNotional));\n\t\tdouble dblForwardFundingConvexityAdjustedCleanPrice = 100. * (1. +\n\t\t\t(dblForwardFundingConvexityAdjustedCleanPV / dblFXAdjustedValueNotional));\n\t\tdouble dblForwardFXConvexityAdjustedCleanPrice = 100. * (1. + (dblForwardFXConvexityAdjustedCleanPV /\n\t\t\tdblFXAdjustedValueNotional));\n\t\tdouble dblFundingFXConvexityAdjustedCleanPrice = 100. * (1. + (dblFundingFXConvexityAdjustedCleanPV /\n\t\t\tdblFXAdjustedValueNotional));\n\t\tdouble dblUnadjustedCleanPrice = 100. * (1. + (dblUnadjustedCleanPV / dblFXAdjustedValueNotional));\n\n\t\tmapResult.put (\"CleanPrice\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CompoundingAdjustedCleanPrice\", dblCompoundingAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyPrice\", 100. * (1. + (dblCompoundingAdjustedDirtyPV /\n\t\t\tdblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CompoundingAdjustedPrice\", dblCompoundingAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedCleanPrice\",\n\t\t\tdblCreditForwardConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCreditForwardConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedPrice\", dblCreditForwardConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedCleanPrice\",\n\t\t\tdblCreditFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCreditFundingConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedPrice\", dblCreditFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedCleanPrice\", dblCreditFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCreditFXConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedPrice\", dblCreditFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedCleanPrice\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCumulativeConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedPrice\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"DirtyPrice\", 100. * (1. + (dblCumulativeConvexityAdjustedDirtyPV /\n\t\t\tdblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedCleanPrice\",\n\t\t\tdblForwardFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblForwardFundingConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedPrice\", dblForwardFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedCleanPrice\", dblForwardFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblForwardFXConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedPrice\", dblForwardFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedCleanPrice\", dblFundingFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblFundingFXConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedPrice\", dblFundingFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"Price\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"UnadjustedCleanPrice\", dblUnadjustedCleanPrice);\n\n\t\tmapResult.put (\"UnadjustedDirtyPrice\", 100. * (1. + (dblUnadjustedDirtyPV /\n\t\t\tdblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"UnadjustedPrice\", dblUnadjustedCleanPrice);\n\n\t\tmapResult.put (\"CalcTime\", (System.nanoTime() - lStart) * 1.e-09);\n\n\t\treturn mapResult;\n\t}",
"@Test\n public void test01() throws Throwable {\n PegasusSolver pegasusSolver0 = new PegasusSolver(0.0, (-1060.0));\n Gaussian gaussian0 = new Gaussian();\n double double0 = pegasusSolver0.solve(4, (UnivariateRealFunction) gaussian0, 125.121193945018, (-2672.0), (-1060.0));\n }",
"@Test\n public void test_lowerBound() {\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(0.0d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(0.5d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(0.9999d, new double[] {1, 2, 3})).isEqualTo(0);\n // good input\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.0d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.0001d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.9999d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(2.0d, new double[] {1, 2, 3})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(2.0001d, new double[] {1, 2, 3})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(2.9999d, new double[] {1, 2, 3})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(3.0d, new double[] {1, 2, 3})).isEqualTo(2);\n // bad input, but still produces good output\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(3.0001d, new double[] {1, 2, 3})).isEqualTo(2);\n // check zero\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(-1.0d, new double[] {-1, 0, 1})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(-0.9999d, new double[] {-1, 0, 1})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(-0.0001d, new double[] {-1, 0, 1})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(-0.0d, new double[] {-1, 0, 1})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(0.0d, new double[] {-1, 0, 1})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.0d, new double[] {-1, 0, 1})).isEqualTo(2);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.5d, new double[] {-1, 0, 1})).isEqualTo(2);\n }",
"private static native long createGuidedFilter_0(long guide_nativeObj, int radius, double eps);",
"protected SoDetail \ncreateTriangleDetail(SoRayPickAction action,\n final SoPrimitiveVertex v1,\n final SoPrimitiveVertex v2,\n final SoPrimitiveVertex v3,\n final SoPickedPoint pp)\n //\n ////////////////////////////////////////////////////////////////////////\n{\n SoCubeDetail detail;\n\n // Don't create a detail if the pick operation was performed on a\n // bounding box cube, not a real cube\n if (pickingBoundingBox)\n return null;\n\n detail = new SoCubeDetail();\n\n // The part code should be the same in all three details, so just use one\n detail.setPart((( SoCubeDetail ) v1.getDetail()).getPart());\n\n return detail;\n}",
"public org.drip.state.estimator.PredictorResponseWeightConstraint fundingForwardPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = forwardLabel();\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.forwardFundingPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"public interface ISurfaceInterpolator {\n /**\n * Gets an interpolated value in a agiven position, from a set of control values.\n * \n * @param controlPoints all the controlpoints to consider to evaluate the interpolated point.\n * @param interpolated the coordinate in which to interpolate.\n * @return the interpolated z value.\n */\n public double getValue( Coordinate[] controlPoints, Coordinate interpolated );\n \n \n public double getBuffer();\n}"
] | [
"0.67998636",
"0.67813826",
"0.64026177",
"0.6393912",
"0.63395154",
"0.6333955",
"0.59558123",
"0.595219",
"0.58857393",
"0.5591722",
"0.55268717",
"0.55123776",
"0.55015075",
"0.5465201",
"0.51629907",
"0.50408906",
"0.5010393",
"0.49495968",
"0.4922408",
"0.48803073",
"0.48496753",
"0.48426294",
"0.4815059",
"0.47668982",
"0.46029207",
"0.45381084",
"0.4512081",
"0.44161013",
"0.44161013",
"0.44161013",
"0.4413171",
"0.4403683",
"0.43874708",
"0.4367972",
"0.4249749",
"0.42358413",
"0.42036176",
"0.4185038",
"0.41323268",
"0.41155544",
"0.41049173",
"0.40825984",
"0.40766817",
"0.40701544",
"0.4068832",
"0.40451503",
"0.40251902",
"0.401786",
"0.4012293",
"0.39898252",
"0.3989611",
"0.39664608",
"0.39637542",
"0.39477903",
"0.39199004",
"0.39181545",
"0.3912346",
"0.39118284",
"0.39066032",
"0.3899673",
"0.38830763",
"0.3874449",
"0.3872207",
"0.38527045",
"0.38254672",
"0.38190645",
"0.3816623",
"0.38104704",
"0.37993568",
"0.37982702",
"0.3789305",
"0.378464",
"0.3782061",
"0.3776249",
"0.37706",
"0.37650716",
"0.37586656",
"0.37552994",
"0.37505412",
"0.3747406",
"0.37444162",
"0.3734437",
"0.37286395",
"0.37282118",
"0.37265244",
"0.37228864",
"0.37136772",
"0.3704068",
"0.3702261",
"0.36985263",
"0.3689747",
"0.3682338",
"0.36786127",
"0.36757082",
"0.36746877",
"0.3664962",
"0.36633813",
"0.3649293",
"0.36430037",
"0.36341423"
] | 0.59628075 | 6 |
Creates a quadric robust estimator based on 3D point samples and using provided points and robust estimator method. | public static QuadricRobustEstimator create(List<Point3D> points,
double[] qualityScores, RobustEstimatorMethod method) {
switch (method) {
case LMedS:
return new LMedSQuadricRobustEstimator(points);
case MSAC:
return new MSACQuadricRobustEstimator(points);
case PROSAC:
return new PROSACQuadricRobustEstimator(points, qualityScores);
case PROMedS:
return new PROMedSQuadricRobustEstimator(points, qualityScores);
case RANSAC:
default:
return new RANSACQuadricRobustEstimator(points);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static QuadricRobustEstimator create(List<Point3D> points) {\n return create(points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores) {\n return create(points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points) {\n return create(listener, points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores) {\n return create(listener, points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points, \n qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points, \n qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public Point3D triangulate() throws LockedException, NotReadyException,\n RobustEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n final LMedSRobustEstimator<Point3D> innerEstimator =\n new LMedSRobustEstimator<>(\n new LMedSRobustEstimatorListener<Point3D>() {\n\n // point to be reused when computing residuals\n private final Point2D mTestPoint = Point2D.create(\n CoordinatesType.HOMOGENEOUS_COORDINATES);\n\n // non-robust 3D point triangulator\n private final SinglePoint3DTriangulator mTriangulator =\n SinglePoint3DTriangulator.create(mUseHomogeneousSolution ?\n Point3DTriangulatorType.LMSE_HOMOGENEOUS_TRIANGULATOR :\n Point3DTriangulatorType.LMSE_INHOMOGENEOUS_TRIANGULATOR);\n\n // subset of 2D points\n private final List<Point2D> mSubsetPoints = new ArrayList<>();\n\n // subst of cameras\n private final List<PinholeCamera> mSubsetCameras =\n new ArrayList<>();\n\n @Override\n public int getTotalSamples() {\n return mPoints2D.size();\n }\n\n @Override\n public int getSubsetSize() {\n return MIN_REQUIRED_VIEWS;\n }\n\n @Override\n public void estimatePreliminarSolutions(final int[] samplesIndices,\n final List<Point3D> solutions) {\n mSubsetPoints.clear();\n mSubsetPoints.add(mPoints2D.get(samplesIndices[0]));\n mSubsetPoints.add(mPoints2D.get(samplesIndices[1]));\n\n mSubsetCameras.clear();\n mSubsetCameras.add(mCameras.get(samplesIndices[0]));\n mSubsetCameras.add(mCameras.get(samplesIndices[1]));\n\n try {\n mTriangulator.setPointsAndCameras(mSubsetPoints,\n mSubsetCameras);\n final Point3D triangulated = mTriangulator.triangulate();\n solutions.add(triangulated);\n } catch (final Exception e) {\n // if anything fails, no solution is added\n }\n }\n\n @Override\n public double computeResidual(final Point3D currentEstimation, final int i) {\n final Point2D point2D = mPoints2D.get(i);\n final PinholeCamera camera = mCameras.get(i);\n\n // project estimated point with camera\n camera.project(currentEstimation, mTestPoint);\n\n // return distance of projected point respect to the original one\n // as a residual\n return mTestPoint.distanceTo(point2D);\n }\n\n @Override\n public boolean isReady() {\n return LMedSRobustSinglePoint3DTriangulator.this.isReady();\n }\n\n @Override\n public void onEstimateStart(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateStart(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateEnd(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateEnd(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateNextIteration(\n final RobustEstimator<Point3D> estimator, final int iteration) {\n if (mListener != null) {\n mListener.onTriangulateNextIteration(\n LMedSRobustSinglePoint3DTriangulator.this,\n iteration);\n }\n }\n\n @Override\n public void onEstimateProgressChange(\n final RobustEstimator<Point3D> estimator, final float progress) {\n if (mListener != null) {\n mListener.onTriangulateProgressChange(\n LMedSRobustSinglePoint3DTriangulator.this,\n progress);\n }\n }\n });\n\n try {\n mLocked = true;\n innerEstimator.setConfidence(mConfidence);\n innerEstimator.setMaxIterations(mMaxIterations);\n innerEstimator.setProgressDelta(mProgressDelta);\n innerEstimator.setStopThreshold(mStopThreshold);\n return innerEstimator.estimate();\n } catch (final com.irurueta.numerical.LockedException e) {\n throw new LockedException(e);\n } catch (final com.irurueta.numerical.NotReadyException e) {\n throw new NotReadyException(e);\n } finally {\n mLocked = false;\n }\n }",
"public static QuadricRobustEstimator create(double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator(qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"public static QuadricRobustEstimator create(double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator();\n case PROMedS:\n return new PROMedSQuadricRobustEstimator();\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n }\n }",
"public static QuadricRobustEstimator create() {\n return create(DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints); \n }\n }",
"public QuadriCubicSpline(double[] x1, double[] x2, double[] x3, double[] x4, double[][][][] y) {\n\t\tthis.nPoints = x1.length;\n\t\tthis.mPoints = x2.length;\n\t\tthis.lPoints = x3.length;\n\t\tthis.kPoints = x4.length;\n\t\tif (this.nPoints != y.length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x1 and y-row are of different length \" + this.nPoints + \" \" + y.length);\n\t\tif (this.mPoints != y[0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x2 and y-column are of different length \" + this.mPoints + \" \" + y[0].length);\n\t\tif (this.lPoints != y[0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x3 and y-column are of different length \" + this.mPoints + \" \" + y[0][0].length);\n\t\tif (this.kPoints != y[0][0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x4 and y-column are of different length \" + this.kPoints + \" \" + y[0][0][0].length);\n\t\tif ((this.nPoints < 3) || (this.mPoints < 3) || (this.lPoints < 3) || (this.kPoints < 3))\n\t\t\tthrow new IllegalArgumentException(\"The tabulated 4D array must have a minimum size of 3 X 3 X 3 X 3\");\n\n\t\tthis.csm = new CubicSpline(this.nPoints);\n\t\tthis.tcsn = TriCubicSpline.oneDarray(this.nPoints, this.mPoints, this.lPoints, this.kPoints);\n\t\tthis.x1 = new double[this.nPoints];\n\t\tthis.x2 = new double[this.mPoints];\n\t\tthis.x3 = new double[this.lPoints];\n\t\tthis.x4 = new double[this.kPoints];\n\n\t\tthis.y = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tthis.d2ydx2 = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tthis.x1[i] = x1[i];\n\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\tthis.x2[j] = x2[j];\n\t\tfor (int j = 0; j < this.lPoints; j++)\n\t\t\tthis.x3[j] = x3[j];\n\t\tfor (int j = 0; j < this.kPoints; j++)\n\t\t\tthis.x4[j] = x4[j];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\t\tfor (int k = 0; k < this.lPoints; k++)\n\t\t\t\t\tfor (int l = 0; l < this.kPoints; l++)\n\t\t\t\t\t\tthis.y[i][j][k][l] = y[i][j][k][l];\n\t}",
"public abstract Quadric estimate() throws LockedException, \n NotReadyException, RobustEstimatorException;",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed); \n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static AlgebraicVector[] buildHull(Set<AlgebraicVector> points) throws Failure {\n if (points.size() < 3) {\n fail(\"At least three input points are required for a 2d convex hull.\\n\\n\" + points.size() + \" specified.\");\n }\n AlgebraicVector normal = AlgebraicVectors.getNormal(points); \n if(normal.isOrigin()) {\n fail(\"Cannot generate a 2d convex hull from collinear points\");\n }\n if(!AlgebraicVectors.areOrthogonalTo(normal, points)) {\n fail(\"Cannot generate a 2d convex hull from non-coplanar points\");\n }\n\n // JSweet hates maps keyed by objects, so we'll construct this collection\n // separately, and let the xyTo3dMap use strings as keys.\n Collection<AlgebraicVector> keySet = new ArrayList<>();\n \n // Map each 3d point to a 2d projection and rotate it to the XY plane if necessary.\n // Since the 3d points are coplanar, it will be a 1:1 mapping\n // Later, we'll need to map 2d back to 3d so the 2d vector will be the key\n Map<String, AlgebraicVector> xyTo3dMap = map3dToXY( points, normal, keySet );\n \n // calculate the 2d convex hull\n Deque<AlgebraicVector> stack2d = getHull2d( keySet );\n\n // map the 2d convex hull back to the original 3d points\n AlgebraicVector[] vertices3d = new AlgebraicVector[stack2d.size()];\n \n int i = 0;\n for(AlgebraicVector point2d : stack2d) {\n AlgebraicVector point3d = xyTo3dMap.get( point2d.toString( AlgebraicField.VEF_FORMAT ) );\n // order vertices3d so the normal will point away from the origin \n // to make it consistent with the 3d convex hull algorithm\n vertices3d[i++] = point3d;\n }\n return vertices3d;\n }",
"public static vtkPoints createPoints(double[] points)\n\t{\n\t\tvtkPoints vtkPoints = new vtkPoints();\n\t\tvtkDoubleArray d = new vtkDoubleArray();\n\t\td.SetJavaArray(points);\n\t\td.SetNumberOfComponents(3);\n\t\tvtkPoints.SetData(d);\n\t\tdelete(d);\n\t\treturn vtkPoints;\n\t}",
"public static BoundingPolytope computePolytope(double[] points)\n\t{\n\t\tBoundingPolytope frustum = new BoundingPolytope();\n\t\t\n\t\tVector3d a1 = new Vector3d(points[0],points[1],points[2]);\n\t\tVector3d a2 = new Vector3d(points[4],points[5],points[6]);\n\t\tVector3d b1 = new Vector3d(points[8],points[9],points[10]);\n\t\tVector3d b2 = new Vector3d(points[12],points[13],points[14]);\n\t\tVector3d c1 = new Vector3d(points[16],points[17],points[18]);\n\t\tVector3d c2 = new Vector3d(points[20],points[21],points[22]);\n\t\tVector3d d1 = new Vector3d(points[24],points[25],points[26]);\n\t\tVector3d d2 = new Vector3d(points[28],points[29],points[30]);\n\t\t\n\t\t\n\t\tVector4d[] planes = new Vector4d[] {\n\t\tcomputePlane(a1,b1,a2),\n\t\tcomputePlane(d1,c1,d2),\n\t\tcomputePlane(b1,d1,b2),\n\t\tcomputePlane(c1,a1,c2),\n\t\tcomputePlane(c1,d1,a1),\n\t\tcomputePlane(d2,c2,b2),\n\t\t};\n\t\t\n\t\tfrustum.setPlanes(planes);\n\t\t\n\t\treturn frustum;\n\t}",
"public NurbsSurface(int segments, int nr_of_points) {\n always_evaluate = false;\n nr_of_segments = segments;\n points_per_segment = nr_of_points;\n surface_type = 2;\n u = new double[100];\n v = new double[100];\n k = 3;\n int i, j;\n\n step = 0.2;\n evaluated_points = new NurbsPoint[(int) ((double) nr_of_segments / step)][(int) ((double) points_per_segment / step)];\n\n for (i = 0; i < (int) ((double) nr_of_segments / step); i++) {\n for (j = 0; j < (int) ((double) points_per_segment / step); j++) {\n evaluated_points[i][j] = new NurbsPoint(0, 0, 0);\n }\n }\n\n u[0] = 0;\n u[1] = 0;\n u[2] = 0;\n u[3] = 0;\n v[0] = 0;\n v[1] = 0;\n v[2] = 0;\n v[3] = 0;\n\n for (i = 4; i < segments - 4; i++) {\n u[i] = i - 3;\n }\n\n for (i = 4; i < nr_of_points - 4; i++) {\n v[i] = i - 3;\n }\n\n u[segments - 4] = segments - 7;\n u[segments - 3] = segments - 7;\n u[segments - 2] = segments - 7;\n u[segments - 1] = segments - 7;\n\n v[nr_of_points - 4] = nr_of_points - 7;\n v[nr_of_points - 3] = nr_of_points - 7;\n v[nr_of_points - 2] = nr_of_points - 7;\n v[nr_of_points - 1] = nr_of_points - 7;\n\n points = new NurbsPoint[nr_of_segments][points_per_segment];\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints); \n }\n }",
"public abstract Point_3 evaluate(double u, double v);",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n }\n }",
"public static vtkPoints createPoints(float[] points)\n\t{\n\t\tvtkPoints vtkPoints = new vtkPoints();\n\t\tvtkFloatArray d = new vtkFloatArray();\n\t\td.SetJavaArray(points);\n\t\td.SetNumberOfComponents(3);\n\t\tvtkPoints.SetData(d);\n\t\tdelete(d);\n\t\treturn vtkPoints;\n\t}",
"public BruteCollinearPoints(Point[] points) {\n this.points = points;\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public BruteCollinearPoints(Point[] points) {\n if (points == null) {\n throw new NullPointerException(\"points array was null\");\n }\n\n verifyPointsArray(points);\n this.points = points;\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores) {\n return create(inputPoints, outputPoints, qualityScores, \n DEFAULT_ROBUST_METHOD);\n }",
"public BruteCollinearPoints(Point[] points) {\n // Throw an IllegalArgumentException if the argument to the constructor is null.\n if (points == null)\n throw new IllegalArgumentException(\"the argument to the constructor is null\");\n // Throw an IllegalArgumentException if any point in the array is null.\n for (Point point : points)\n if (point == null)\n throw new IllegalArgumentException(\"any point in the array is null\");\n\n Point[] pointsCopy = points.clone();\n Arrays.sort(pointsCopy);\n int n = pointsCopy.length;\n\n // Throw an IllegalArgumentException if array contains a repeated points.\n for (int i = 0; i < n - 1; i++)\n if (pointsCopy[i].compareTo(pointsCopy[i + 1]) == 0)\n throw new IllegalArgumentException(\"array contains a repeated points\");\n\n Point[] fourPoints = new Point[4];\n for (int ip = 0; ip < n - 3; ip++) {\n fourPoints[0] = pointsCopy[ip];\n for (int iq = ip + 1; iq < n - 2; iq++) {\n fourPoints[1] = pointsCopy[iq];\n for (int ir = iq + 1; ir < n - 1; ir++) {\n fourPoints[2] = pointsCopy[ir];\n for (int is = ir + 1; is < n; is++) {\n fourPoints[3] = pointsCopy[is];\n if (areCollinear(fourPoints)) {\n addSegment(fourPoints[0], fourPoints[3]);\n }\n }\n }\n }\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n }\n }",
"public BruteCollinearPoints(Point[] points) {\n if (null == points)\n throw new NullPointerException();\n improperArgumentCheck(points);\n this.points = points;\n this.segments = findSegments();\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores) {\n return create(listener, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"@org.junit.Test\n public void getUniformParamsTestCurve3() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(15, 20), new Vector(15, 30));\n List<Double> params = curve.getUniformParams(6);\n assertEquals(6, curve.getUniformParams(6).size());\n\n // check that each point is further down the line of the curve\n // each x and y should be larger than the previous\n Vector prev = curve.getPoint(params.get(0));\n for (int i = 1; i < params.size(); i++) {\n Vector point = curve.getPoint(params.get(i));\n assertTrue(point.x > prev.x);\n assertTrue(point.y > prev.y);\n }\n\n // check that the first and the last sampling points are equal to starting and ending controlling points\n assertEquals(new Vector(10, 20), curve.getPoint(params.get(0)));\n assertEquals(new Vector(15, 30), curve.getPoint(params.get(params.size() - 1)));\n }",
"public Point2D[] getPoint2DArray() { \n \n double x1=0; \n double y1=0; \n double x2=0; \n double y2=0; \n \n double x0; \n double y0; \n double x3; \n double y3; \n \n int samples_interval = Math.round(samples / (points.length-1)); \n Point2D[] points_return = new Point2D[samples]; \n int pos_return = 0; //we'll store the pointer in the points_return array here. \n //We iterate between the different given points, \n //calculating the Bezier curves between them \n for(int i=0; i < points.length-1; i++){ \n //the last period may have a different number of samples in order to fit the sample value \n if(i == points.length-2){ \n samples_interval = samples - (samples_interval*(points.length-2)); \n } \n x1=points[i].getX(); \n x2=points[i+1].getX(); \n y1=points[i].getY(); \n y2=points[i+1].getY(); \n if(i>0){ \n x0=points[i-1].getX(); \n y0=points[i-1].getY(); \n }else { \n x0 = x1 - Math.abs(x2 - x1); \n y0 = y1; \n } \n if(i < points.length -2){ \n x3=points[i+2].getX(); \n y3=points[i+2].getY(); \n } else { \n x3 = x1 + 2*Math.abs(x1 - x0); \n y3 = y1; \n } \n Point2D[] points_bezier = CalculateBezierCurve(x0,y0,x1,y1,x2,y2,x3,y3, samples_interval); \n //Fill the return array \n for(int j = 0 ; j < points_bezier.length; j++){ \n points_return[pos_return] = new Point2D.Double(points_bezier[j].getX(),points_bezier[j].getY()); \n pos_return++; \n } \n \n } \n \n\n return points_return; \n}",
"private Point2D[] CalculateBezierCurve(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, int samples_interval){ \n \n \n \n double control_point_1_x; \n double control_point_1_y; \n double control_point_2_x; \n double control_point_2_y; \n \n \n //Calculate the control points for the cubic bezier line \n control_point_1_x =controlPoint(x0,x1,x2); \n control_point_1_y =controlPoint(y0,y1,y2); \n \n control_point_2_x = controlPoint(x3,x2,x1); \n control_point_2_y = controlPoint(y3,y2,y1); \n \n //System.out.println(\"control1: \" + control_point_1_x + \" -- \" + control_point_1_y); \n //System.out.println(\"control2: \" + control_point_2_x + \" -- \" + control_point_2_y); \n \n \n double cx = 3.0 * (control_point_1_x - x1); \n double bx = 3.0 * (control_point_2_x - control_point_1_x) - cx; \n double ax = x2 - x1 - cx - bx; \n \n double cy = 3.0 * (control_point_1_y - y1); \n double by = 3.0 * (control_point_2_y - control_point_1_y) - cy; \n double ay = y2 - y1 - cy - by; \n \n //Let's calculate all the ponits that follow the Bezier curve. \n Point2D[] points = new Point2D[samples_interval]; \n for(int j = 0; j < samples_interval; j++){ \n double t = j*(1.0/samples_interval); \n //System.out.println(\"j: \" + j + \" t: \" + t + \" samples_int: \" + (samples_interval)); \n double x = (ax * t * t * t) + (bx * t * t) + (cx * t) + x1; \n double y = (ay * t * t * t) + (by * t *t) + (cy * t) + y1; \n //System.out.println(\"x: \" + x + \" y: \" + y + \" t: \" + t); \n points[j] = new Point2D.Double(x,y); \n } \n return points; \n }",
"public double getValue( Coordinate[] controlPoints, Coordinate interpolated );",
"public void determineCoefficients(int splineIndex, double[] positionIn, double v0, double vf, double a0, double af)\n {\n if (!initialized.getBooleanValue())\n throw new RuntimeException(\"QuinticSplineInterpolator is not initialized\");\n\n if (splineIndex > numberOfSplines - 1 || splineIndex < 0)\n throw new RuntimeException(\"SplineIndex is out of bounds\");\n\n if (positionIn.length < numberOfPoints.getValue())\n throw new RuntimeException(\"Length of positionIn is less than the number of points\");\n\n MatrixTools.setMatrixColumnFromArray(a, 0, positionIn, 0, a.getNumRows());\n\n MatrixTools.diff(positionIn, yd);\n\n if (numberOfPoints.getValue() > 2)\n {\n s.unsafe_set(0, 0, positionIn[1] / h.unsafe_get(0, 0) - positionIn[0] / h.unsafe_get(0, 0) - v0);\n for (int i = 0; i < numberOfPoints.getValue() - 2; i++)\n {\n s.unsafe_set(i + 4, 0, yd.unsafe_get(i + 1, 0) / h.unsafe_get(i + 1, 0) - yd.unsafe_get(i, 0) / h.unsafe_get(i, 0));\n }\n }\n else\n {\n s.unsafe_set(0, 0, positionIn[1] / h.unsafe_get(0, 0) - positionIn[0] / h.unsafe_get(0, 0) - v0);\n }\n\n s.unsafe_set(1, 0, a0);\n s.unsafe_set(2,\n 0,\n vf - positionIn[numberOfPoints.getValue() - 1] / h.unsafe_get(numberOfPoints.getValue() - 2, 0)\n + positionIn[numberOfPoints.getValue() - 2] / h.unsafe_get(numberOfPoints.getValue() - 2, 0));\n s.unsafe_set(3, 0, af);\n\n /*\n * TODO: Rewrite so no new objects are created\n */\n\n solver.solve(s, sol);\n\n CommonOps_DDRM.mult(Cblock, sol, c);\n CommonOps_DDRM.mult(D, sol, d);\n\n MatrixTools.setMatrixBlock(e, 0, 0, sol, 2, 0, numberOfPoints.getValue() - 1, 1, 1.0);\n\n MatrixTools.diff(sol, 2, numberOfPoints.getValue(), f);\n CommonOps_DDRM.scale(1.0 / 5.0, f);\n CommonOps_DDRM.elementDiv(f, h);\n\n for (int i = 0; i < numberOfPoints.getValue() - 1; i++)\n {\n double hi = h.unsafe_get(i, 0);\n double hi2 = MathTools.square(hi);\n double hi3 = hi2 * hi;\n double hi4 = hi3 * hi;\n\n b.unsafe_set(i,\n 0,\n yd.unsafe_get(i, 0) / hi - c.unsafe_get(i, 0) * hi - d.unsafe_get(i, 0) * hi2 - e.unsafe_get(i, 0) * hi3 - f.unsafe_get(i, 0) * hi4);\n }\n\n splines[splineIndex].seta(a);\n splines[splineIndex].setb(b);\n splines[splineIndex].setc(c);\n splines[splineIndex].setd(d);\n splines[splineIndex].sete(e);\n splines[splineIndex].setf(f);\n\n splines[splineIndex].setCoefficientsSet(true);\n\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener) {\n return create(listener, DEFAULT_ROBUST_METHOD);\n }",
"public BruteCollinearPoints(Point[] points) {\n\t\tcheckArguments(points);\n\t\tcheckDuplicateArguments(points);\n\t\tN = points.length;\n\t\tmPoints = new Point[N];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tmPoints[i] = points[i];\n\t\t}\n\t}",
"@Test\r\n public void testSplineApproximator() {\r\n List<Point> data = createConvergingDataset();\r\n List<ExpectedApproximation> exp = new ArrayList<ExpectedApproximation>();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(1000, 17, 1050));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(1062, 40, 1066));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n\r\n data = createLinearDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(100, 3, 200));\r\n exp.add(new ExpectedApproximation(300, 11, 400));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 100));\r\n exp.add(new ExpectedApproximation(400, 17, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n \r\n data = createIncreasingDecreasingDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(700, 23, 900));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(0, 35, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n }",
"public FastCollinearPoints(final Point[] inPoints) {\n\n if (inPoints == null) {\n // an argument to the constructor is null\n throw new IllegalArgumentException();\n }\n\n // check for null points\n for (final Point inPoint : inPoints) {\n if (inPoint == null) {\n throw new IllegalArgumentException(\"null point\");\n }\n }\n\n final Point[] points = inPoints.clone();\n Arrays.sort(points); // sort the points in ascending order\n\n // check for repeated points\n if (points.length != Stream.of(points).distinct().count()) {\n throw new IllegalArgumentException(\"repeated point(s)\");\n }\n\n // find all sets of >= 4 collinear points by sorting relative slopes\n\n this.segments = (\n Stream.of(points)\n // for each collinear segment\n .map(\n // map each \"refPoint\" to a list of points (as an array)\n refPoint -> (\n // stream a copy of points\n Stream.of(points.clone())\n // sorted by (segment) slope, relative to \"refPoint\"\n .sorted(refPoint.slopeOrder())\n // group points by slope relative to \"refPoint\"\n .collect(\n Collectors.groupingBy(\n refPoint::slopeTo,\n Collectors.mapping(identity(), toList())\n )\n )\n .entrySet()\n // stream each grouped slope/points entry\n .stream()\n // filter out groups smaller than size 3\n .filter(e -> e.getValue().size() >= 3)\n // construct sorted point list for each group\n .map(\n e -> {\n final List<Point> v = e.getValue();\n final List<Point> l = new ArrayList<>(v.size() + 1);\n l.add(refPoint);\n l.addAll(v);\n l.sort(naturalOrder());\n return l;\n }\n )\n )\n )\n // concatenate all streams of grouped slope/points entries\n .flatMap(s -> s)\n // collect into a \"super-list\" of grouped slope/points entries\n .collect(Collectors.toList())\n // convert to a stream of grouped slope/points entries\n .stream()\n // remove duplicates\n .distinct()\n // map each into an instance of the target \"LineSegment\" type\n .map(lp -> new LineSegment(lp.get(0), lp.get(lp.size() - 1)))\n // return an array containing all streamed entries\n .toArray(LineSegment[]::new)\n );\n\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints) {\n return create(inputPoints, outputPoints, DEFAULT_ROBUST_METHOD);\n }",
"public void calculateBezierCurve(double surveyPoints){\n\t\tif (controlPoints.size() < 2) return;\n\t\t\n\t\tfor (Line l : bezierCurve){\n\t\t\tpane.getChildren().remove(l);\n\t\t}\n\t\tbezierCurve.clear();\n\t\t\n\t\tPoint2D last = calculateSubLinePositions(0);\n\t\t\n\t\tfor (int i = 0; i <= surveyPoints; i++){\n\t\t\tdouble percent = i/surveyPoints;\n\t\t\tPoint2D current = calculateSubLinePositions(percent);\n\t\t\tLine line = new Line();\n\t\t\tline.setStroke(Color.RED);\n\t\t\tline.setStrokeWidth(4);\n\t\t\tline.setStrokeLineCap(StrokeLineCap.ROUND);\n\t\t\tline.setStrokeLineJoin(StrokeLineJoin.ROUND);\n\t\t\t\n\t\t\tline.setStartX(last.getX());\n\t\t\tline.setStartY(last.getY());\n\t\t\tline.setEndX(current.getX());\n\t\t\tline.setEndY(current.getY());\n\t\t\t\n\t\t\tlast = current;\n\t\t\t\n\t\t\tline.setVisible(false);\n\t\t\tbezierCurve.add(line);\n\t\t\tpane.getChildren().add(line);\n\t\t}\n\t}",
"protected abstract void solvePreliminarSolutions(\n final int[] samplesIndices,\n final List<Solution<P>> solutions);",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed) {\n return create(inputPoints, outputPoints, weakMinimumSizeAllowed, \n DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n qualityScores, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n qualityScores, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n }\n }",
"@org.junit.Test\n public void getUniformParamsTestCurve4() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(15, 20),\n new Vector(10, 30), new Vector(15, 30));\n List<Double> params = curve.getUniformParams(6);\n assertEquals(6, curve.getUniformParams(6).size());\n\n // check that each point is further down the line of the curve\n // each x and y should be larger than the previous\n Vector prev = curve.getPoint(params.get(0));\n for (int i = 1; i < params.size(); i++) {\n Vector point = curve.getPoint(params.get(i));\n assertTrue(point.x > prev.x);\n assertTrue(point.y > prev.y);\n }\n\n // check that the first and the last sampling points are equal to starting and ending controlling points\n assertEquals(new Vector(10, 20), curve.getPoint(params.get(0)));\n assertEquals(new Vector(15, 30), curve.getPoint(params.get(params.size() - 1))); }",
"@Test\r\n public void testPolynomialApproximator() {\r\n List<Point> data = createLinearDataset();\r\n test(PolynomialApacheMathApproximator.INSTANCE_3, data, null);\r\n }",
"@Test\n\tpublic void testSetActiveRegion3DRadius() throws GeoTessException, IOException\n\t{\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\n\n\t\t//\t\t// define a 3D polygon with small circle and 3 layers.\n\t\t//\t\tdouble[] polygonCenter = VectorGeo.getVectorDegrees(30., 90.);\n\t\t//\n\t\t//\t\tdouble polygonRadius = toRadians(30.);\n\t\t//\n\t\t//\t\tdouble radiusTop = 6371 - 55;\n\t\t//\t\tdouble radiusBottom = 4000.;\n\t\t//\n\t\t//\t\tHorizon top = new HorizonRadius(radiusTop, 4);\n\t\t//\t\tHorizon bottom = new HorizonRadius(radiusBottom, 2);\n\t\t//\n\t\t//\t\tPolygon polygon = new Polygon3D(polygonCenter, polygonRadius,\n\t\t//\t\t\t\t100, bottom, top);\n\n\t\tPolygon3D polygon = new Polygon3D(new File(\"src/test/resources/permanent_files/polygon_small_circle_radii.ascii\"));\n\t\tdouble[] polygonCenter = polygon.getReferencePoint();\n\t\tdouble polygonRadius = VectorUnit.angle(polygonCenter, polygon.getPoint(0));\n\n\t\tdouble radiusTop = polygon.getTop().getValue();\n\t\tdouble radiusBottom = polygon.getBottom().getValue();\n\n\t\tint topLayer = polygon.getTop().getLayerIndex();\n\t\tint bottomLayer = polygon.getBottom().getLayerIndex();\n\n\t\t// set the active region to 3D polygon\n\t\tsmall_model.setActiveRegion(polygon);\n\t\tassertEquals(144, small_model.getPointMap().size());\n\n\t\t// check every point in the point map to ensure that it is within the polygon\n\t\tfor (int i=0; i<small_model.getPointMap().size(); ++i)\n\t\t{\n\t\t\tdouble[] point = small_model.getPointMap().getPointUnitVector(i);\n\t\t\tassertTrue(VectorUnit.angle(polygonCenter, point) < polygonRadius \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) >= bottomLayer \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) <= topLayer\n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) >= radiusBottom \n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) <= radiusTop\n\t\t\t\t\t);\n\t\t}\n\n\t\t// check every node in the small_model. if the node has point index < 0 then\n\t\t// ensure that it is outside the polygon. if the node has point index \n\t\t// >= 0, then it must be within the polygon.\n\t\tboolean passed = true;\n\t\tfor (int vertex=0; vertex<small_model.getGrid().getVertices().length; ++vertex)\n\t\t{\n\t\t\tdouble distance = VectorUnit.angle(polygonCenter, small_model.getGrid().getVertex(vertex));\n\t\t\tProfile[] pp = small_model.getProfiles(vertex);\n\t\t\tfor (int layer=0; layer<small_model.getNLayers(); ++layer)\n\t\t\t{\n\t\t\t\tProfile p = pp[layer];\n\t\t\t\tfor (int n=0; n<p.getNData(); ++n)\n\t\t\t\t{\n\t\t\t\t\tboolean inpolygon = distance < polygonRadius\n\t\t\t\t\t\t\t&& layer >= bottomLayer\n\t\t\t\t\t\t\t&& layer <= topLayer\n\t\t\t\t\t\t\t&& p.getRadius(n) > radiusBottom\n\t\t\t\t\t\t\t&& p.getRadius(n) < radiusTop\n\t\t\t\t\t\t\t;\n\n\t\t\t\t\t\t\tboolean positive = p.getPointIndex(n) >= 0;\n\n\t\t\t\t\t\t\tif (inpolygon != positive) passed = false;\n\n\t\t\t\t\t\t\tif (inpolygon != positive)\n\t\t\t\t\t\t\t\tSystem.out.printf(\"testSetActiveRegion3DRadii ptIndex=%d dist=%1.3f layer=%d radius=%1.3f%n\",\n\t\t\t\t\t\t\t\t\t\tp.getPointIndex(n),\n\t\t\t\t\t\t\t\t\t\tMath.toDegrees(distance), \n\t\t\t\t\t\t\t\t\t\tlayer,\n\t\t\t\t\t\t\t\t\t\tp.getRadius(n));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tassertTrue(passed);\n\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\t\t\n\n\t}",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n DEFAULT_ROBUST_METHOD);\n }",
"public BruteCollinearPoints(Point[] points){\n int count_temp = 0;\n int length = points.length;\n LineSegment[] Segment_temp = new LineSegment[50 * length];\n // sort the points array;\n Arrays.sort(points);\n // find collinear points using brute force method;\n for(int n = 0; n < length - 1; n++){\n if(points[n].slopeTo(points[n + 1]) == Double.NEGATIVE_INFINITY)\n throw new java.lang.IllegalArgumentException();\n }\n for(int i = 0; i < length - 3; i++){\n for(int j = i + 1; j < length - 2; j++) {\n for (int k = j + 1; k < length - 1; k++) {\n for (int l = k + 1; l < length; l++) {\n double slope_1 = points[i].slopeTo(points[j]);\n double slope_2 = points[i].slopeTo(points[k]);\n double slope_3 = points[i].slopeTo(points[l]);\n if (slope_1 == slope_2 && slope_2 == slope_3\n && points[i].compareTo(points[j]) < 1\n && points[j].compareTo(points[k]) < 1\n && points[k].compareTo(points[l]) < 1) {\n Segment_temp[count_temp] = new LineSegment(points[i], points[l]);\n count_temp++;\n }\n }\n }\n }\n }\n // resize the Segment array;\n Segment = new LineSegment[count_temp];\n for(int k = 0; k < count_temp; k++){\n Segment[k] = Segment_temp[k];\n }\n count = count_temp;\n }",
"public abstract Vector3D getPointForSurfaceCoordinates(double u, double v);",
"private double threeDimensionalSolveQ1(RealMatrix u, RealMatrix v, double q3) {\r\n double u11 = u.getEntry(0, 0);\r\n double u12 = u.getEntry(0, 1);\r\n double u13 = u.getEntry(0, 2);\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v1 = v.getEntry(0, 0);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (((u12*v2)/(u11*u22)) - (v1/u11)) + ((((u12*u23)/(u11*u22)) - (u13/u11))*q3);\r\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator();\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator();\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(); \n }\n }",
"public TriangleElt3D(Point3D[] points, ScalarOperator sop)\n\t\t\tthrows IllegalArgumentException {\n\t\tsuper(points, sop);\n\t\tthis.eltZero = null;\n\t\tthis.eltOne = null;\n\t\tthis.eltTwo = null;\n\t}",
"public void ignoreCreateArrayForVec3With6Position() {\r\n\r\n SXRMesh sxrMesh = TestDefaultSXRViewManager.mSXRContext.getAssetLoader().loadMesh(UtilResource.androidResource(TestDefaultSXRViewManager.mSXRContext,R.raw.cylinder3));\r\n float[] vec3 = {-0.5f, 0.5f, 0.0f, -0.5f, 0.5f, 0.0f};\r\n\r\n try {\r\n sxrMesh.setVec3Vector(\"ratio_r\", vec3);\r\n assertNotNull(sxrMesh.getVec4Vector(\"ratio_r\"));\r\n fail();\r\n } catch (InvalidParameterException e) {\r\n assertEquals(e.getMessage(), \"setVec3Vector method support only three position array\");\r\n }\r\n }",
"public FastCollinearPoints(Point[] points) {\r\n if(points == null) throw new java.lang.IllegalArgumentException();\r\n\r\n Point[] slopeOrderPoints = points.clone();\r\n int countOfSegments = 0;\r\n LineSegment[] temp_segments = new LineSegment[points.length*points.length];\r\n\r\n for (int i = 0; i < points.length; i++) {\r\n\r\n if(points[i] == null) throw new java.lang.IllegalArgumentException();\r\n\r\n Arrays.sort(slopeOrderPoints, points[i].slopeOrder());\r\n\r\n for (int j = 0; j < slopeOrderPoints.length-1; ++j) {\r\n\r\n Point[] temp_segment = new Point[points.length]; // initiate a temp segment contains all the points at most\r\n temp_segment[0] = points[i]; // one point of the temp segment must be points[i]\r\n int count = 1; // count records how many points the temp segment contains now\r\n\r\n if (points[i].slopeTo(slopeOrderPoints[j]) == points[i].slopeTo(slopeOrderPoints[j+1])) {\r\n while (j < slopeOrderPoints.length - 1) {\r\n temp_segment[count++] = slopeOrderPoints[j];\r\n if (points[i].slopeTo(slopeOrderPoints[j]) == points[i].slopeTo(slopeOrderPoints[j+1])) {\r\n ++j;\r\n }\r\n else {\r\n break;\r\n }\r\n }\r\n if (j == slopeOrderPoints.length - 1) {\r\n temp_segment[count++] = slopeOrderPoints[j];\r\n }\r\n\r\n if (count >= 4) {\r\n Point[] segment = new Point[count];\r\n for (int k = 0; k < count; k++) {\r\n segment[k] = temp_segment[k];\r\n }\r\n Arrays.sort(segment);\r\n LineSegment line = new LineSegment(segment[0], segment[count - 1]);\r\n boolean isIn = false;\r\n for (int k = 0; k < countOfSegments; k++) {\r\n if (temp_segments[k].toString().compareTo(line.toString()) == 0) {\r\n isIn = true;\r\n break;\r\n }\r\n }\r\n if (!isIn) {\r\n temp_segments[countOfSegments++] = line;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n numberOfSegments = countOfSegments;\r\n segments = new LineSegment[countOfSegments];\r\n for (int i = 0; i < countOfSegments; i++) {\r\n segments[i] = temp_segments[i];\r\n }\r\n }",
"@Test\n public void getPointsTest() {\n final double[] expectedResult = new double[3];\n final double[] envelope = new double[]{-3, 2, 0, 1, 4, 0};\n\n //lower corner\n System.arraycopy(envelope, 0, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getLowerCorner(envelope)));\n\n //upper corner\n System.arraycopy(envelope, 3, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getUpperCorner(envelope)));\n\n //median\n expectedResult[0] = -1;\n expectedResult[1] = 3;\n expectedResult[2] = 0;\n assertTrue(Arrays.equals(expectedResult, getMedian(envelope)));\n }",
"public BruteCollinearPoints(Point[] points) {\n if (points == null) throw new IllegalArgumentException();\n points = points.clone();\n validate(points);\n Arrays.sort(points);\n validateDuplicate(points);\n List<List<Double>> slopes = new ArrayList<>(points.length);\n for (int i = 0; i < points.length; i++) slopes.add(new LinkedList<>());\n lines = new LinkedList<>();\n for (int i = 0; i < points.length; i++) {\n for (int j = i+1; j < points.length; j++) {\n for (int m = j + 1; m < points.length; m++) {\n for (int n = points.length - 1; n > m; n--) {\n if (isCollinear(points[i], points[j], points[m], points[n])) {\n boolean exist = false;\n for (double slope : slopes.get(i)) {\n if (Double.compare(slope, points[i].slopeTo(points[n])) == 0) exist = true;\n }\n if (!exist) {\n lines.add(new LineSegment(points[i], points[n]));\n double s = points[i].slopeTo(points[n]);\n slopes.get(i).add(s);\n slopes.get(j).add(s);\n slopes.get(m).add(s);\n slopes.get(n).add(s);\n }\n }\n }\n }\n }\n }\n }",
"public void c(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)\r\n/* 77: */ {\r\n/* 78: 89 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2 + paramDouble3 * paramDouble3);\r\n/* 79: */ \r\n/* 80: 91 */ paramDouble1 /= f1;\r\n/* 81: 92 */ paramDouble2 /= f1;\r\n/* 82: 93 */ paramDouble3 /= f1;\r\n/* 83: */ \r\n/* 84: 95 */ paramDouble1 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 85: 96 */ paramDouble2 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 86: 97 */ paramDouble3 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 87: */ \r\n/* 88: 99 */ paramDouble1 *= paramFloat1;\r\n/* 89:100 */ paramDouble2 *= paramFloat1;\r\n/* 90:101 */ paramDouble3 *= paramFloat1;\r\n/* 91: */ \r\n/* 92:103 */ this.v = paramDouble1;\r\n/* 93:104 */ this.w = paramDouble2;\r\n/* 94:105 */ this.x = paramDouble3;\r\n/* 95: */ \r\n/* 96:107 */ float f2 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 97: */ \r\n/* 98:109 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 99:110 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f2) * 180.0D / 3.141592741012573D));\r\n/* 100:111 */ this.i = 0;\r\n/* 101: */ }",
"public org.drip.state.estimator.PredictorResponseWeightConstraint fundingPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = forwardLabel();\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.fundingPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"public ExtrapolatedSaturationPointEvaluator(int[] anchorpoints,\n\t\t\tISamplingAlgorithmFactory<IInstance, ? extends ASamplingAlgorithm<IInstance>> samplingAlgorithmFactory,\n\t\t\tIDataset<IInstance> train, double trainSplitForAnchorpointsMeasurement,\n\t\t\tLearningCurveExtrapolationMethod extrapolationMethod, long seed, IDataset<IInstance> test) {\n\t\tsuper();\n\t\tthis.anchorpoints = anchorpoints;\n\t\tthis.samplingAlgorithmFactory = samplingAlgorithmFactory;\n\t\tthis.train = train;\n\t\tthis.trainSplitForAnchorpointsMeasurement = trainSplitForAnchorpointsMeasurement;\n\t\tthis.extrapolationMethod = extrapolationMethod;\n\t\tthis.seed = seed;\n\t\tthis.epsilon = DEFAULT_EPSILON;\n\t\tthis.test = test;\n\t}",
"protected double residual(Quadric q, Point3D point) {\n q.normalize();\n try {\n if (mTestQ == null) {\n mTestQ = q.asMatrix();\n } else {\n q.asMatrix(mTestQ);\n }\n\n if (mTestPoint == null) {\n mTestPoint = new Matrix(\n Point3D.POINT3D_HOMOGENEOUS_COORDINATES_LENGTH, \n 1);\n }\n point.normalize();\n mTestPoint.setElementAt(0, 0, point.getHomX());\n mTestPoint.setElementAt(1, 0, point.getHomY());\n mTestPoint.setElementAt(2, 0, point.getHomZ());\n mTestPoint.setElementAt(3, 0, point.getHomW());\n Matrix locusMatrix = mTestPoint.transposeAndReturnNew();\n locusMatrix.multiply(mTestQ);\n locusMatrix.multiply(mTestPoint); \n return Math.abs(locusMatrix.getElementAt(0, 0));\n } catch (AlgebraException e) {\n return Double.MAX_VALUE;\n } \n }",
"protected SoDetail \ncreateTriangleDetail(SoRayPickAction action,\n final SoPrimitiveVertex v1,\n final SoPrimitiveVertex v2,\n final SoPrimitiveVertex v3,\n final SoPickedPoint pp)\n //\n ////////////////////////////////////////////////////////////////////////\n{\n SoCubeDetail detail;\n\n // Don't create a detail if the pick operation was performed on a\n // bounding box cube, not a real cube\n if (pickingBoundingBox)\n return null;\n\n detail = new SoCubeDetail();\n\n // The part code should be the same in all three details, so just use one\n detail.setPart((( SoCubeDetail ) v1.getDetail()).getPart());\n\n return detail;\n}",
"public org.drip.state.estimator.PredictorResponseWeightConstraint forwardPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.FloaterLabel floaterLabel = floaterLabel();\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = null != floaterLabel && floaterLabel instanceof\n\t\t\torg.drip.state.identifier.ForwardLabel ? (org.drip.state.identifier.ForwardLabel) floaterLabel :\n\t\t\t\tnull;\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.forwardPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"public FastCollinearPoints_ov(Point[] points) {\n isLegal(points);\n Point[] pointsCopy = Arrays.copyOf(points, points.length);\n Arrays.sort(pointsCopy);\n lineSegments = new ArrayList<>();\n\n for (int i = 0; i < pointsCopy.length - 3; i++) {\n Point startPoint = pointsCopy[i];\n double[] preSlopes = new double[i];\n Point[] nextPoints = new Point[pointsCopy.length - i - 1];\n\n for (int j = 0; j < i; j++) {\n preSlopes[j] = startPoint.slopeTo(pointsCopy[j]);\n }\n\n for (int j = 0; j < pointsCopy.length - i - 1; j++) {\n nextPoints[j] = pointsCopy[i + j + 1];\n }\n //for binary search\n Arrays.sort(preSlopes);\n // sort after point by slope\n Arrays.sort(nextPoints, startPoint.slopeOrder());\n findLineSegments(preSlopes, startPoint, nextPoints);\n }\n }",
"private void obtainRefiningPoints(ArrayList<double[]> points2d_in, Matrix P, double gridSize_in, int gridCount_in[], ArrayList<double[]> points2d_out, ArrayList<double[]> points3d_out) {\n\t\tdouble fuzziness = 25;\n\t\tfor (int x = (gridCount_in[0] > 1 ? 1 : 0); x < gridCount_in[0]; x += 2) {\n\t\t\tfor (int y = (gridCount_in[1] > 1 ? 1 : 0); y < gridCount_in[1]; y += 2) {\n\t\t\t\tfor (int z = 1; z < gridCount_in[2]; z += 2) {\n\t\t\t\t\tMatrix x3D = new Matrix(4, 1);\n\t\t\t\t\tx3D.set(0, 0, x * gridSize_in);\n\t\t\t\t\tx3D.set(1, 0, y * gridSize_in);\n\t\t\t\t\tx3D.set(2, 0, z * gridSize_in);\n\t\t\t\t\tx3D.set(3, 0, 1.0);\n\t\t\t\t\tMatrix x2D = P.mul(x3D);\n\t\t\t\t\tx2D = x2D.div(x2D.get(2));\n\t\t\t\t\tdouble minDistance = 100000;\n\t\t\t\t\tint minDistanceIndex = 0;\n\t\t\t\t\tfor (int j=0;j<points2d_in.size();j++) {\n\t\t\t\t\t\tdouble distance = Math.pow(x2D.get(0) - points2d_in.get(j)[0], 2) + Math.pow(x2D.get(1) - points2d_in.get(j)[1], 2);\n\t\t\t\t\t\tif (distance < minDistance) {\n\t\t\t\t\t\t\tminDistance = distance;\n\t\t\t\t\t\t\tminDistanceIndex = j;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (minDistance < fuzziness) {\n\t\t\t\t\t\tpoints2d_out.add(points2d_in.get(minDistanceIndex));\n\t\t\t\t\t\tpoints3d_out.add(new Matrix(x3D).data);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void R_approxtest(double x[], double y[], int nxy,\n int method, double f)\n {\n int i;\n\n switch(method) {\n case 1: /* linear */\n break;\n case 2: /* constant */\n if(!DoubleVector.isFinite(f) || f < 0 || f > 1)\n throw new EvalException(\"approx(): invalid f value\");\n break;\n default:\n throw new EvalException(\"approx(): invalid interpolation method\");\n }\n /* check interpolation method */\n for(i = 0; i < nxy; i++)\n if(DoubleVector.isNA(x[i]) || DoubleVector.isNA(y[i]))\n throw new EvalException(\"approx(): attempted to interpolate NA values\");\n }",
"public abstract void constructHull();",
"public BruteCollinearPoints(Point[] points) {\n if (points == null) {\n throw new java.lang.IllegalArgumentException();\n }\n for (Point p: points) {\n if (p == null) {\n throw new java.lang.IllegalArgumentException();\n }\n }\n\n Point[] copyPoints = points.clone();\n Arrays.sort(copyPoints); //now copyPoints sorted by y-coordinate\n for (int i = 1; i < copyPoints.length; i++) {\n if (copyPoints[i-1].compareTo(copyPoints[i]) == 0) {\n throw new java.lang.IllegalArgumentException();\n }\n }\n\n for (int p = 0; p < copyPoints.length - 3; p++) {\n for (int q = p + 1; q < copyPoints.length - 2; q++) {\n for (int r = q + 1; r < copyPoints.length - 1; r++) {\n for (int s = r + 1; s < copyPoints.length; s++) {\n if (isCollinear(copyPoints[p], copyPoints[q], copyPoints[r], copyPoints[s])) {\n segments.add(new LineSegment(copyPoints[p], copyPoints[s]));\n }\n }\n }\n }\n }\n }",
"public org.drip.state.estimator.PredictorResponseWeightConstraint fundingForwardPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = forwardLabel();\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.forwardFundingPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"private Line linearRegression(ArrayList<Point> points) {\n double sumx = 0.0, sumz = 0.0, sumx2 = 0.0;\n\n for (int i = 0; i < points.size(); i++) {\n Point curPoint = points.get(i);\n sumx += curPoint.x;\n sumz += curPoint.z;\n sumx2 += curPoint.x*curPoint.x;\n }\n\n double xbar = sumx/((double) points.size());\n double zbar = sumz/((double) points.size());\n\n double xxbar = 0.0, xzbar = 0.0;\n\n for (int i = 0; i < points.size(); i++) {\n Point curPoint = points.get(i);\n xxbar += (curPoint.x - xbar) * (curPoint.x - xbar);\n xzbar += (curPoint.x - xbar) * (curPoint.z - zbar);\n }\n\n double slope = xzbar / xxbar;\n double intercept = zbar - slope * xbar;\n\n return new Line(slope, intercept);\n }",
"public void Setup(int nPoints, float swp, float shp, float ssu)\n {\n Random rnd = new Random();\n\n // Our collection of vertices\n vertices = new float[nPoints*VERTICES_PER_GLYPH*TOTAL_COMPONENT_COUNT];\n\n // Create the vertex data\n for(int i=0;i<nPoints;i++) {\n int offset_x = rnd.nextInt((int)swp);\n int offset_y = rnd.nextInt((int)shp);\n\n float llu = rnd.nextInt(2) * 0.5f;\n float llv = rnd.nextInt(2) * 0.5f;\n \n \n AddGlyph(offset_x, offset_y, ssu, llu, llv, 0.5f, 0.5f);\n }\n\n // The indices for all textured quads\n indices = new short[nPoints*3*TRIANGLES_PER_GLYPH]; \n int last = 0;\n for(int i=0;i<nPoints;i++) {\n // We need to set the new indices for the new quad\n indices[(i*6) + 0] = (short) (last + 0);\n indices[(i*6) + 1] = (short) (last + 1);\n indices[(i*6) + 2] = (short) (last + 2);\n indices[(i*6) + 3] = (short) (last + 0);\n indices[(i*6) + 4] = (short) (last + 2);\n indices[(i*6) + 5] = (short) (last + 3);\n\n // Our indices are connected to the vertices so we need to keep them\n // in the correct order.\n // normal quad = 0,1,2,0,2,3 so the next one will be 4,5,6,4,6,7\n last = last + 4;\n }\n\n // The vertex buffer.\n ByteBuffer bb = ByteBuffer.allocateDirect(vertices.length * BYTES_PER_FLOAT);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(vertices);\n vertexBuffer.position(0);\n\n // initialize byte buffer for the draw list\n ByteBuffer dlb = ByteBuffer.allocateDirect(indices.length * BYTES_PER_SHORT);\n dlb.order(ByteOrder.nativeOrder());\n indexBuffer = dlb.asShortBuffer();\n indexBuffer.put(indices);\n indexBuffer.position(0);\n\n }",
"public FastCollinearPoints(Point[] points) {\n if (points == null) throw new NullPointerException();\n this.points = new Point[points.length];\n for (int i = 0; i < points.length; i++) {\n if (points[i] == null) throw new NullPointerException();\n this.points[i] = points[i];\n }\n\n Arrays.sort(this.points);\n for (int i = 0; i < points.length - 1; i++) {\n if (this.points[i].compareTo(this.points[i+1]) == 0)\n throw new IllegalArgumentException();\n }\n lineSegments = new Point[points.length * points.length / 4][2];\n findAllLineSegments();\n }",
"public Matrix determineProjectionMatrix(ArrayList<double[]> corners, ArrayList<double[]> pointList2D, ArrayList<double[]> pointList3D) {\n\t\tMatrix projectionMatrix = new Matrix();\n\t\tArrayList<double[]> yzPlane2DPoints = new ArrayList<double[]>();\n\t\tArrayList<double[]> yzPlane3DPoints = new ArrayList<double[]>();\n\t\tArrayList<double[]> xzPlane2DPoints = new ArrayList<double[]>();\n\t\tArrayList<double[]> xzPlane3DPoints = new ArrayList<double[]>();\n\t\tfor (int i=0;i<pointList3D.size();i++) {\n\t\t\tif (pointList3D.get(i)[1] == 0) {\n\t\t\t\txzPlane2DPoints.add(pointList2D.get(i));\n\t\t\t\txzPlane3DPoints.add(pointList3D.get(i));\n\t\t\t} else if (pointList3D.get(i)[0] == 0) {\n\t\t\t\tyzPlane2DPoints.add(pointList2D.get(i));\n\t\t\t\tyzPlane3DPoints.add(pointList3D.get(i));\n\t\t\t}\n\t\t}\n\t\tArrayList<double[]> final2D = new ArrayList<double[]>();\n\t\tArrayList<double[]> final3D = new ArrayList<double[]>();\n\t\tif ((xzPlane2DPoints.size() >= 4 && yzPlane2DPoints.size() >= 4)) {\n\t\t\tdouble gridSize = 0.5;\n\t\t\tdouble max_u, max_v;\n\t\t\tint[] gridCount = new int[3];\n\t\t\tif (yzPlane2DPoints.size() >= 4) {\n\t\t\t\tMatrix P_YZ = performPlanarCalibration(yzPlane2DPoints, yzPlane3DPoints, 0);\n\t\t\t\tmax_u = 0;\n\t\t\t\tmax_v = 0;\n\t\t\t\tfor (int i = 0; i < yzPlane3DPoints.size(); i++) {\n\t\t\t\t\tmax_u = Math.max(yzPlane3DPoints.get(i)[1], max_u);\n\t\t\t\t\tmax_v = Math.max(yzPlane3DPoints.get(i)[2], max_v);\n\t\t\t\t}\n\t\t\t\tgridCount[0] = 1;\n\t\t\t\tgridCount[1] = (int) Math.floor(max_u / gridSize + 1.5);\n\t\t\t\tgridCount[2] = (int) Math.floor(max_v / gridSize + 1.5);\n\t\t\t\tobtainRefiningPoints(corners, P_YZ, gridSize, gridCount, final2D, final3D);\n\t\t\t}\n\t\t\tif (xzPlane2DPoints.size() >= 4) {\n\t\t\t\tMatrix P_XZ = performPlanarCalibration(xzPlane2DPoints, xzPlane3DPoints, 1);\n\t\t\t\tmax_u = 0;\n\t\t\t\tmax_v = 0;\n\t\t\t\tfor (int i = 0; i < (int) xzPlane3DPoints.size(); i++) {\n\t\t\t\t\tmax_u = Math.max(xzPlane3DPoints.get(i)[0], max_u);\n\t\t\t\t\tmax_v = Math.max(xzPlane3DPoints.get(i)[2], max_v);\n\t\t\t\t}\n\t\t\t\tgridCount[0] = (int) Math.floor(max_u / gridSize + 1.5);\n\t\t\t\tgridCount[1] = 1;\n\t\t\t\tgridCount[2] = (int) Math.floor(max_v / gridSize + 1.5);\n\t\t\t\tobtainRefiningPoints(corners, P_XZ, gridSize, gridCount, final2D, final3D);\n\t\t\t}\n\t\t}\n\t\tcorners.clear();\n\t\tcorners.addAll(final2D);\n\t\tpointList2D.clear();\n\t\tpointList2D.addAll(final2D);\n\t\tpointList3D.clear();\n\t\tpointList3D.addAll(final3D);\n\t\treturn performCalibration(final2D, final3D);\n\t}",
"private double[] quadstepX(DoubleToDouble f, double y0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] x = {(a + c) / 2, (c + b) / 2};\n double[] y = f.evalDouble(x, y0, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = y[0];\n double fe = y[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepX(f, y0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepX(f, y0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }",
"public static Spliterator.OfDouble spliterator(double[] paramArrayOfdouble, int paramInt1, int paramInt2, int paramInt3) {\n/* 371 */ checkFromToBounds(((double[])Objects.requireNonNull((T)paramArrayOfdouble)).length, paramInt1, paramInt2);\n/* 372 */ return new DoubleArraySpliterator(paramArrayOfdouble, paramInt1, paramInt2, paramInt3);\n/* */ }",
"private void internalSetPoints(List<Point3D> points) {\n if (points.size() < MINIMUM_SIZE) {\n throw new IllegalArgumentException();\n }\n mPoints = points;\n }",
"private Matrix performCalibration(ArrayList<double[]> points2d, ArrayList<double[]> points3d) {\n\n\t\tSystem.out.println(\"out\");\n\t\t//create A, Chapter 7, pg 5\n\t\tdouble [] m = new double[2*points3d.size()*12];\n\n\t\tint width = 12;\n\t\tfor(int y = 0; y<points3d.size()*2; y++){\n\t\t\tfor(int x=0; x<width; x++){\n\t\t\t\tif((y%2)==0){\n\t\t\t\t\tif(x>=0 && x<4) {\n\t\t\t\t\t\t/*System.out.println(\"X \" + x);\n\t\t\t\t\t\tSystem.out.println(\"Y \" + y);\n\t\t\t\t\t\tSystem.out.println(\"SZ \" + points3d.size());\n\t\t\t\t\t\tif(x == 0 && y ==24){\n\t\t\t\t\t\t\tSystem.out.println(\"BREAK\");\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\tm[y * width + x] = points3d.get(y/2)[x];\n\t\t\t\t\t}\n\t\t\t\t\telse if(x>3 && x<8)\n\t\t\t\t\t\tm[y*width+x] = 0;\n\t\t\t\t\telse if(x>7 && x<12)\n\t\t\t\t\t\tm[y*width+x] = -(points3d.get(y/2)[x-8] * points2d.get(y/2)[0]);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(x>=0 && x<4)\n\t\t\t\t\t\tm[y*width+x] = 0;\n\t\t\t\t\telse if(x>3 && x<8)\n\t\t\t\t\t\tm[y*width+x] = points3d.get(y/2)[x-4];\n\t\t\t\t\telse if(x>7 && x<12)\n\t\t\t\t\t\tm[y*width+x] = -(points3d.get(y/2)[x-8] * points2d.get(y/2)[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"Finish\");\n\t\t//create matrix A\n\t\tMatrix A = new Matrix(points2d.size() * 2, 12, m);//rows,columns\n\n\t\tMatrix U = new Matrix ();\n\t\tMatrix D = new Matrix ();\n\t\tMatrix V = new Matrix ();\n\n\t\t//perform SVD2 on A\n\t\tA.SVD2(U,D,V);\n\n\t\tdouble[] rv = new double[12];\n\t\tMatrix p = new Matrix();\n\t\tV.getCol(V.cols-1,p);\n\n\t\tfor(int i=0; i<12; i++){\n\t\t\trv[i] = p.get(i,0)/p.get(11,0);\n\t\t}\n\n\t\treturn new Matrix(3, 4, rv);\n\t}",
"public static void R_approx(double x[], double y[], int nxy, double xout[], int nout,\n int method, double yleft, double yright, double f)\n {\n int i;\n appr_meth M = new appr_meth(); // {0.0, 0.0, 0.0, 0.0, 0}; /* -Wall */\n\n /* check interpolation method */\n\n switch(method) {\n case 1: /* linear */\n break;\n case 2: /* constant */\n if(!DoubleVector.isFinite(f) || f < 0 || f > 1)\n throw new EvalException(\"approx(): invalid f value\");\n M.f2 = f;\n M.f1 = 1 - f;\n break;\n default:\n throw new EvalException(\"approx(): invalid interpolation method\");\n }\n\n for(i = 0 ; i < nxy ; i++)\n if(DoubleVector.isNA(x[i]) || DoubleVector.isNA(y[i]))\n throw new EvalException(\"approx(): attempted to interpolate NA values\");\n\n M.kind = method;\n M.ylow = yleft;\n M.yhigh = yright;\n\n for(i = 0 ; i < nout; i++)\n if(!DoubleVector.isNA(xout[i])) \n xout[i] = approx1(xout[i], x, y, nxy, M);\n }",
"public Question createQuestion(String description, String className, String answer, String points) throws IOException\n {\n try {\n int nbPoints = Integer.parseInt(points);\n return new Question(description, AnswerFactory.getInstance().buildAnswer(className, answer), nbPoints);\n }\n catch (NumberFormatException e) {\n throw new IOException(\"Bad format\");\n }\n }",
"private double[] quadstepY(DoubleToDouble f, double x0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] y = {(a + c) / 2, (c + b) / 2};\n double[] v = f.evalDouble(x0, y, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = v[0];\n double fe = v[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepY(f, x0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepY(f, x0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }",
"private static SbVec4f \ngenerateCoord(Object userData,\n final SbVec3f point,\n final SbVec3f normal )\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureCoordinateBundle tcb = (SoTextureCoordinateBundle ) userData;\n\n final SbVec4f result = new SbVec4f();\n\n // The S and T coordinates of the result are the dot products of\n // the point with sVector and tVector. Since this computation is\n // done very frequently (during primitive generation for picking\n // on vertex-based shapes), we can avoid some operations that\n // result in 0 by doing the dot products explicitly.\n int sDim = tcb.coordS, tDim = tcb.coordT;\n\n\n result.setValue(point.getValueRead()[sDim] * tcb.sVector.getValueRead()[sDim] + tcb.sVector.getValueRead()[3],\n point.getValueRead()[tDim] * tcb.tVector.getValueRead()[tDim] + tcb.tVector.getValueRead()[3],\n 0.0f,\n 1.0f);\n\n return result;\n}",
"public NurbsSurface(String stepstring, NurbsPoint[] cp) {\n always_evaluate = false;\n\n String s1, s2;\n int pos, pos2;\n int segments = 0;\n int points2 = 0;\n surface_type = 3;\n\n // find number of segments\n\n pos = stepstring.indexOf(\"KNOTS\");\n s1 = stepstring.substring(pos);\n pos = s1.indexOf(\"(\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\"(\");\n pos2 = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1, pos2);\n\n pos = s1.indexOf(\",\");\n do {\n segments++;\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\",\");\n } while (pos >= 0);\n\n segments = segments + 7;\n\n System.out.println(\"nr of segment = \" + segments);\n\n // find number of points\n\n pos = stepstring.indexOf(\"KNOTS\");\n s1 = stepstring.substring(pos);\n pos = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\"(\");\n pos2 = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1, pos2);\n pos = s1.indexOf(\",\");\n do {\n points2++;\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\",\");\n } while (pos >= 0);\n\n points2 = points2 + 7;\n\n System.out.println(\"nr of points = \" + points2);\n\n // read knot vectors\n\n pos = stepstring.indexOf(\"KNOTS\");\n s1 = stepstring.substring(pos);\n pos = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\"(\");\n s1 = s1.substring(pos + 1);\n\n u = new double[100];\n u[0] = 0;\n u[1] = 0;\n u[2] = 0;\n\n for (int i = 3; i < segments - 3; i++) {\n pos = Math.min(s1.indexOf(\",\"), s1.indexOf(\")\"));\n u[i] = Double.parseDouble((s1.substring(0, pos)).trim());\n s1 = s1.substring(pos + 1);\n }\n\n u[segments - 3] = u[segments - 4];\n u[segments - 2] = u[segments - 4];\n u[segments - 1] = u[segments - 4];\n\n for (int i = 0; i < segments; i++) {\n System.out.println(\"u[\" + i + \"] = \" + u[i]);\n }\n\n pos = stepstring.indexOf(\"KNOTS\");\n s1 = stepstring.substring(pos);\n pos = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\")\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\"(\");\n s1 = s1.substring(pos + 1);\n\n v = new double[100];\n v[0] = 0;\n v[1] = 0;\n v[2] = 0;\n\n for (int i = 3; i < points2 - 3; i++) {\n pos = Math.min(s1.indexOf(\",\"), s1.indexOf(\")\"));\n v[i] = Double.parseDouble((s1.substring(0, pos)).trim());\n s1 = s1.substring(pos + 1);\n }\n\n v[points2 - 3] = u[points2 - 4];\n v[points2 - 2] = u[points2 - 4];\n v[points2 - 1] = u[points2 - 4];\n\n for (int i = 0; i < points2; i++) {\n System.out.println(\"v[\" + i + \"] = \" + v[i]);\n }\n\n // read surface points\n\n nr_of_segments = segments;\n points_per_segment = points2;\n\n points = new NurbsPoint[nr_of_segments][points_per_segment];\n\n for (int i = 0; i < nr_of_segments; i++)\n for (int j = 0; j < points_per_segment; j++)\n points[i][j] = new NurbsPoint(0, 0, 0);\n\n pos = stepstring.indexOf(\"B_SPLINE_SURFACE\");\n s1 = stepstring.substring(pos);\n pos = s1.indexOf(\"(\");\n s1 = s1.substring(pos + 1);\n pos = s1.indexOf(\"(\");\n s1 = s1.substring(pos + 1);\n\n int isdeck = stepstring.indexOf(\"deck\");\n\n for (int i = 2; i < nr_of_segments - 2; i++) {\n pos = s1.indexOf(\"(\");\n s1 = s1.substring(pos + 1);\n\n for (int j = 2; j < points_per_segment - 2; j++) {\n pos = s1.indexOf(\"#\");\n pos2 = Math.min(s1.indexOf(\",\"), s1.indexOf(\")\"));\n\n points[i][j] = cp[Integer.parseInt((s1.substring(pos + 1, pos2)).trim())];\n\n System.out.println(\"points[\" + i + \"][\" + j + \"] = \" + points[i][j].x);\n\n s1 = s1.substring(pos2 + 1);\n }\n }\n\n // set global variables\n if (u[4] == u[5]) surface_type = 1;\n\n k = 3;\n step = 0.2;\n evaluated_points = new NurbsPoint[(int) ((double) nr_of_segments / step)][(int) ((double) points_per_segment / step)];\n }",
"@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }",
"public double interpolate(double xx1, double xx2, double xx3, double xx4) {\n\n\t\tfinal double[][][] yTempml = new double[this.mPoints][this.lPoints][this.kPoints];\n\t\tfor (int i = 0; i < this.nPoints; i++) {\n\t\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\t\tfor (int k = 0; k < this.lPoints; k++)\n\t\t\t\t\tfor (int l = 0; l < this.kPoints; l++)\n\t\t\t\t\t\tyTempml[j][k][l] = y[i][j][k][l];\n\t\t\tthis.tcsn[i].resetData(x2, x3, x4, yTempml);\n\t\t}\n\t\tfinal double[] yTempm = new double[nPoints];\n\n\t\tfor (int i = 0; i < nPoints; i++) {\n\t\t\tif (this.derivCalculated)\n\t\t\t\tthis.tcsn[i].setDeriv(d2ydx2[i]);\n\t\t\tyTempm[i] = this.tcsn[i].interpolate(xx2, xx3, xx4);\n\t\t\tif (!this.derivCalculated)\n\t\t\t\td2ydx2[i] = this.tcsn[i].getDeriv();\n\t\t}\n\t\tderivCalculated = true;\n\n\t\tthis.csm.resetData(x1, yTempm);\n\t\treturn this.csm.interpolate(xx1);\n\t}",
"@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public RadialDistortion estimate() throws LockedException,\n NotReadyException, RadialDistortionEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n try {\n mLocked = true;\n if (mListener != null) {\n mListener.onEstimateStart(this);\n }\n\n final int nPoints = mDistortedPoints.size();\n\n int numRows;\n if (isLMSESolutionAllowed()) {\n // initialize new matrix having two rows per point\n numRows = 2 * nPoints;\n } else {\n // when LMSE is not allowed, restrict matrix to two rows (minimum\n // value required for a solution)\n numRows = 2 * getMinNumberOfMatchedPoints();\n }\n\n final Matrix aMatrix = new Matrix(numRows, mNumKParams);\n final double[] b = new double[numRows];\n\n final Iterator<Point2D> iteratorDistorted = mDistortedPoints.iterator();\n final Iterator<Point2D> iteratorUndistorted =\n mUndistortedPoints.iterator();\n\n Point2D distorted;\n Point2D undistorted;\n int counter = 0;\n\n // undistorted normalized homogeneous coordinates\n double uNormHomX;\n double uNormHomY;\n double uNormHomW;\n // undistorted normalized inhomogeneous coordinates\n double uNormInhomX;\n double uNormInhomY;\n // undistorted denormalized homogeneous coordinates\n double uDenormHomX;\n double uDenormHomY;\n double uDenormHomW;\n // undistorted denormalized inhomogeneous coordinates\n double uDenormInhomX;\n double uDenormInhomY;\n // distorted inhomogeneous coordinates\n double dInhomX;\n double dInhomY;\n double rowNormX;\n double rowNormY;\n\n // radial distortion center\n double centerX = 0.0;\n double centerY = 0.0;\n if (mDistortionCenter != null) {\n centerX = mDistortionCenter.getInhomX();\n centerY = mDistortionCenter.getInhomY();\n }\n\n // radial distance of undistorted normalized (calibration independent)\n // coordinates\n double r2;\n double a;\n double value;\n\n while (iteratorDistorted.hasNext() && iteratorUndistorted.hasNext()) {\n distorted = iteratorDistorted.next();\n undistorted = iteratorUndistorted.next();\n\n undistorted.normalize();\n\n uDenormHomX = undistorted.getHomX();\n uDenormHomY = undistorted.getHomY();\n uDenormHomW = undistorted.getHomW();\n\n uDenormInhomX = uDenormHomX / uDenormHomW;\n uDenormInhomY = uDenormHomY / uDenormHomW;\n\n // multiply intrinsic parameters by undistorted point\n uNormHomX = mKinv.getElementAt(0, 0) * uDenormHomX +\n mKinv.getElementAt(0, 1) * uDenormHomY +\n mKinv.getElementAt(0, 2) * uDenormHomW;\n uNormHomY = mKinv.getElementAt(1, 0) * uDenormHomX +\n mKinv.getElementAt(1, 1) * uDenormHomY +\n mKinv.getElementAt(1, 2) * uDenormHomW;\n uNormHomW = mKinv.getElementAt(2, 0) * uDenormHomX +\n mKinv.getElementAt(2, 1) * uDenormHomY +\n mKinv.getElementAt(2, 2) * uDenormHomW;\n\n uNormInhomX = uNormHomX / uNormHomW;\n uNormInhomY = uNormHomY / uNormHomW;\n\n r2 = uNormInhomX * uNormInhomX + uNormInhomY * uNormInhomY;\n\n dInhomX = distorted.getInhomX();\n dInhomY = distorted.getInhomY();\n\n a = 1.0;\n rowNormX = rowNormY = 0.0;\n for (int i = 0; i < mNumKParams; i++) {\n a *= r2;\n\n // x and y coordinates generate linear dependent equations, for\n // that reason we need more than one point\n\n // x coordinates\n value = (uDenormInhomX - centerX) * a;\n aMatrix.setElementAt(2 * counter, i, value);\n\n rowNormX += Math.pow(value, 2.0);\n\n // y coordinates\n value = (uDenormInhomY - centerY) * a;\n aMatrix.setElementAt(2 * counter + 1, i, value);\n\n rowNormY += Math.pow(value, 2.0);\n }\n\n // x coordinates\n value = dInhomX - uDenormInhomX;\n b[2 * counter] = value;\n\n rowNormX += Math.pow(value, 2.0);\n\n // y coordinates\n value = dInhomY - uDenormInhomY;\n b[2 * counter + 1] = value;\n\n rowNormY += Math.pow(value, 2.0);\n\n // normalize rows to increase accuracy\n for (int i = 0; i < mNumKParams; i++) {\n aMatrix.setElementAt(2 * counter, i,\n aMatrix.getElementAt(2 * counter, i) / rowNormX);\n aMatrix.setElementAt(2 * counter + 1, i,\n aMatrix.getElementAt(2 * counter + 1, i) / rowNormY);\n }\n\n b[2 * counter] /= rowNormX;\n b[2 * counter + 1] /= rowNormY;\n\n counter++;\n\n if (!isLMSESolutionAllowed() && (counter >= getMinNumberOfMatchedPoints())) {\n break;\n }\n }\n\n final double[] params = Utils.solve(aMatrix, b);\n\n final RadialDistortion distortion =\n new RadialDistortion(params, mDistortionCenter,\n mHorizontalFocalLength, mVerticalFocalLength, mSkew);\n\n if (mListener != null) {\n mListener.onEstimateEnd(this);\n }\n\n return distortion;\n } catch (final AlgebraException | RadialDistortionException e) {\n throw new RadialDistortionEstimatorException(e);\n } finally {\n mLocked = false;\n }\n }",
"@Test\n public void testConstructor() {\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(0, 1, 0),\n new Point3D(1, 0, 0), new Point3D(-1, 1, 1));\n fail(\"Constructed a polygon with wrong order of vertices\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC03: Not in the same plane\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 2, 2));\n fail(\"Constructed a polygon with vertices that are not in the same plane\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC04: Concave quadrangular\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0.5, 0.25, 0.5));\n fail(\"Constructed a concave polygon\");\n } catch (IllegalArgumentException e) {\n }\n\n // =============== Boundary Values Tests ==================\n\n // TC10: Vertex on a side of a quadrangular\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 0.5, 0.5));\n fail(\"Constructed a polygon with vertix on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC11: Last point = first point\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 0, 1));\n fail(\"Constructed a polygon with vertice on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC12: Colocated points\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 1, 0));\n fail(\"Constructed a polygon with vertice on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n }",
"public MetricTransformation2DRobustEstimator(List<Point2D> inputPoints,\n List<Point2D> outputPoints) {\n this();\n internalSetPoints(inputPoints, outputPoints);\n }",
"private void process(ArrayList<Float> points) {\n downsample(3, points);\n vertices = new Vector3f[nrows * ncols];\n texcoord = BufferUtils.createFloatBuffer(2 * nrows * ncols);\n indexes = BufferUtils.createIntBuffer(6 * (nrows - 1) * (ncols - 1));\n Vector3f[][][] fnormals = new Vector3f[nrows - 1][ncols - 1][2];\n normals = new Vector3f[nrows * ncols];\n float x, z;\n\n System.out.println(\"Processing \" + nrows + \"x\" + ncols + \" terrain...\");\n\n // First make vertices + texcoords\n x = 0.0f;\n for (int row = 0; row < nrows; row++) {\n z = 0.0f;\n for (int col = 0; col < ncols; col++) {\n vertices[(row * ncols) + col] = new Vector3f(x, data[row][col], z);\n texcoord.put(col / (float) ncols);\n texcoord.put(row / (float) nrows);\n z += cellsize;\n }\n x += cellsize;\n }\n // Indexes + face normals\n System.out.println(\"Populating faces...\");\n for (int row = 0; row < (nrows - 1); row++) {\n for (int col = 0; col < (ncols - 1); col++) {\n int base = 6 * ((row * (ncols - 1)) + col);\n // Triangle 1\n indexes.put((row * ncols) + col); // a\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col); // c\n // Triangle 2\n indexes.put(((row + 1) * ncols) + col); // c\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col + 1); // d\n // Faces\n base = (row * ncols) + col;\n Vector3f a = vertices[base];\n Vector3f b = vertices[base + 1];\n Vector3f c = vertices[base + ncols];\n Vector3f d = vertices[base + ncols + 1];\n Vector3f ba = b.subtract(a);\n Vector3f ca = c.subtract(a);\n Vector3f bc = b.subtract(c);\n Vector3f dc = d.subtract(c);\n // ormal.subtractLocal(pointa).crossLocal(pointc.x - pointa.x,\n // pointc.y - pointa.y, pointc.z - pointa.z);\n fnormals[row][col][0] = ba.crossLocal(ca).normalizeLocal();\n fnormals[row][col][1] = bc.crossLocal(dc).normalizeLocal();\n // Triangle ta = new Triangle(a,b,c);\n // Triangle tb = new Triangle(c,b,d);\n }\n }\n System.out.println(\"Calculating face normals...\");\n // Vector normals\n Vector3f t;\n // Corners\n // TL\n t = fnormals[0][0][0].add(fnormals[0][0][1]);\n t.normalizeLocal();\n normals[0] = t;\n // TR\n t = fnormals[0][ncols - 2][0].add(fnormals[0][ncols - 2][1]);\n t.normalizeLocal();\n normals[ncols - 1] = t;\n // BL\n t = fnormals[nrows - 2][0][0].add(fnormals[nrows - 2][0][1]);\n t.normalizeLocal();\n normals[(nrows - 1) * ncols] = t;\n // BR\n t = fnormals[nrows - 2][ncols - 2][0].add(fnormals[nrows - 2][ncols - 2][1]);\n t.normalizeLocal();\n normals[(nrows * ncols) - 1] = t;\n // Do first row and last row\n for (int col = 1; col < (ncols - 1); col++) {\n // First row\n t = fnormals[0][col - 1][0].add(fnormals[0][col - 1][1]);\n t.addLocal(fnormals[0][col][0]);\n t.addLocal(fnormals[0][col][1]);\n t.normalizeLocal();\n normals[col] = t;\n // Last row\n t = fnormals[nrows - 2][col - 1][0].add(fnormals[nrows - 2][col - 1][1]);\n t.addLocal(fnormals[nrows - 2][col][0]);\n t.addLocal(fnormals[nrows - 2][col][1]);\n t.normalizeLocal();\n normals[((nrows - 1) * ncols) + col] = t;\n }\n // Do first and last column\n for (int row = 1; row < (nrows - 1); row++) {\n // First col\n t = fnormals[row - 1][0][0].add(fnormals[row - 1][0][1]);\n t.addLocal(fnormals[row][0][0]);\n t.addLocal(fnormals[row][0][1]);\n t.normalizeLocal();\n normals[row * ncols] = t;\n // Last col\n t = fnormals[row - 1][ncols - 2][0].add(fnormals[row - 1][ncols - 2][1]);\n t.addLocal(fnormals[row][ncols - 2][0]);\n t.addLocal(fnormals[row][ncols - 2][1]);\n t.normalizeLocal();\n normals[(row * ncols) + (ncols - 1)] = t;\n // Centre cols\n for (int col = 1; col < (ncols - 1); col++) {\n t = fnormals[row - 1][col - 1][0].add(fnormals[row - 1][col - 1][1]);\n t.addLocal(fnormals[row - 1][col][0]);\n t.addLocal(fnormals[row - 1][col][1]);\n t.addLocal(fnormals[row][col - 1][0]);\n t.addLocal(fnormals[row][col - 1][1]);\n t.addLocal(fnormals[row][col][0]);\n t.addLocal(fnormals[row][col][1]);\n t.normalizeLocal();\n normals[(row * ncols) + col] = t;\n }\n }\n System.out.println(\"Processing finished...\");\n setBuffer(VertexBuffer.Type.Position, 3, BufferUtils.createFloatBuffer(vertices));\n setBuffer(VertexBuffer.Type.TexCoord, 2, texcoord);\n setBuffer(VertexBuffer.Type.Index, 3, indexes);\n setBuffer(VertexBuffer.Type.Normal, 3, BufferUtils.createFloatBuffer(normals));\n updateBound();\n System.out.println(\"NE corner: \" + vertices[vertices.length - 1].mult(0.006f));\n // Hint to renderer that we don't plan on modifying the terrain.\n this.setStatic();\n }",
"public void transform(double[][] m, double[] t) {\n int i = 0;\n int j = 0;\n double u = 0.0;\n double v = 0.0;\n NurbsPoint p1, p2, p3, p4;\n double tx, ty, tz;\n\n // transform control points\n System.out.println(\"Transforming surface\");\n\n for (i = 0; i < nr_of_segments; i++) {\n for (j = 0; j < points_per_segment; j++) {\n p1 = points[i][j];\n\n tx = m[0][0] * p1.x + m[0][1] * p1.y + m[0][2] * p1.z + t[0];\n ty = m[1][0] * p1.x + m[1][1] * p1.y + m[1][2] * p1.z + t[1];\n tz = m[2][0] * p1.x + m[2][1] * p1.y + m[2][2] * p1.z + t[2];\n\n points[i][j] = new NurbsPoint(tx, ty, tz);\n }\n }\n\n // transform evaluated points\n\n double epsilon = 0.001;\n\n for (i = 0; i < nr_of_segments; i++) {\n for (u = 0.0; u < 1.0 - epsilon; u = u + step) {\n for (j = 0; j < points_per_segment; j++) {\n for (v = 0.0; v < 1.0 - epsilon; v = v + step) {\n p1 = evaluated_points[(int) (((i + u) / step) + epsilon)][(int) (((j + v) / step) + epsilon)];\n\n tx = m[0][0] * p1.x + m[0][1] * p1.y + m[0][2] * p1.z + t[0];\n ty = m[1][0] * p1.x + m[1][1] * p1.y + m[1][2] * p1.z + t[1];\n tz = m[2][0] * p1.x + m[2][1] * p1.y + m[2][2] * p1.z + t[2];\n\n evaluated_points[(int) (((i + u) / step) + epsilon)][(int) (((j + v) / step)\n + epsilon)] = new NurbsPoint(tx, ty, tz);\n }\n }\n }\n }\n\n }",
"@Override\n protected Double[] getCorners(){\n return new Double[]{\n //leftmost point\n getXPos(), getYPos(),\n //rightmost point\n getXPos() + getWidth(), getYPos(),\n //middle point\n getXPos() + getWidth() / 2, getYPos() + getHeight() * getThirdTriangleYPoint(pointUp)\n };\n }",
"public static double[][] generateRandomPoints(Envelope env1, int iPoints, int iRandomSeed){\n\t\t\n\t\t//rgdBounds = polygon bounds\n\t\t//dLat = latitude of sampling point\n\t\t//dLng = longitude of sampling point\n\t\t//env2 = sampling bounds in radians\n\t\t//d2 = number of degrees between upper and lower bounds\n\t\t//d3 = cos(minimum latitude)\n\t\t//d4 = cos(maximum latitude) - cos(minimum latitude)\n\t\t//rgdOutput = output\n\t\t//rnd1 = random number generator\n\t\t\n\t\tdouble dLat; double dLng; double d2 = 0; double d3 = 0; double d4 = 0;\n\t\tdouble rgdOutput[][];\n\t\tEnvelope env2;\n\t\tRandom rnd1;\n\t\t\n\t\t//initializing matrix of bounds\n\t\tenv2 = new Envelope(env1.getMinX()*DEG_TO_RAD,env1.getMaxX()*DEG_TO_RAD,env1.getMinY()*DEG_TO_RAD,env1.getMaxY()*DEG_TO_RAD);\n\t\t\n\t\t//loading intermediate values\n\t\td2 = env2.getMaxX()-env2.getMinX();\n\t\td3 = cos(env2.getMinY() + PI/2.); \n\t\td4 = cos(env2.getMaxY() + PI/2.) - d3;\n\t\t\t\n\t\t//initializing output\n\t\trgdOutput = new double[iPoints][2];\n\t\trnd1 = new Random(iRandomSeed);\n\t\tfor(int i=0;i<iPoints;i++){\n\t\t\n\t\t\t//loading Lat and Lng\n\t\t\tdLng = rnd1.nextDouble()*d2 + env2.getMinX();\n\t\t\tdLng = RAD_TO_DEG*dLng;\n\t\t\tdLat = acos(d3+d4*rnd1.nextDouble());\n\t\t\tdLat = RAD_TO_DEG*dLat-90.;\n\t\t\n\t\t\t//outputting results\n\t\t\trgdOutput[i][0]=dLat;\n\t\t\trgdOutput[i][1]=dLng;\n\t\t}\n\t\t\t\n\t\t//returning result\n\t\treturn rgdOutput;\t\n\t}"
] | [
"0.7282746",
"0.7122663",
"0.69708234",
"0.6535223",
"0.6518758",
"0.6377748",
"0.6325459",
"0.5666203",
"0.5283425",
"0.51388514",
"0.5114672",
"0.5076479",
"0.5004864",
"0.500467",
"0.5004067",
"0.49957326",
"0.4901855",
"0.4859033",
"0.48303407",
"0.4796994",
"0.47922328",
"0.47892037",
"0.47842374",
"0.47775236",
"0.47699094",
"0.4719727",
"0.47040182",
"0.46447673",
"0.46260852",
"0.45981887",
"0.45614925",
"0.45555314",
"0.45522162",
"0.45467415",
"0.45455927",
"0.451555",
"0.45024392",
"0.4490354",
"0.44734073",
"0.44529724",
"0.44450703",
"0.44233245",
"0.44224158",
"0.43133846",
"0.43077162",
"0.4278845",
"0.42646667",
"0.425281",
"0.42368168",
"0.42040998",
"0.4198248",
"0.41954824",
"0.41877252",
"0.41802898",
"0.4177202",
"0.41699558",
"0.4166031",
"0.4162858",
"0.41414654",
"0.41414455",
"0.41399556",
"0.41311023",
"0.4083385",
"0.40817326",
"0.40640593",
"0.40615913",
"0.40598428",
"0.40571034",
"0.4054531",
"0.40508676",
"0.4014963",
"0.40110964",
"0.39958942",
"0.39943215",
"0.39868647",
"0.3981081",
"0.3976258",
"0.3974583",
"0.39706165",
"0.3962631",
"0.3951997",
"0.39466625",
"0.39464554",
"0.3944947",
"0.3944384",
"0.39430025",
"0.39419585",
"0.39362404",
"0.39321214",
"0.3931341",
"0.3926837",
"0.39239547",
"0.39177322",
"0.3917479",
"0.39164287",
"0.39052427",
"0.3904465",
"0.39032376",
"0.39020726",
"0.38984343"
] | 0.68200606 | 3 |
Creates a quadric robust estimator based on 3D point samples and using provided listener. | public static QuadricRobustEstimator create(
QuadricRobustEstimatorListener listener, double[] qualityScores,
RobustEstimatorMethod method) {
switch (method) {
case LMedS:
return new LMedSQuadricRobustEstimator(listener);
case MSAC:
return new MSACQuadricRobustEstimator(listener);
case PROSAC:
return new PROSACQuadricRobustEstimator(listener, qualityScores);
case PROMedS:
return new PROMedSQuadricRobustEstimator(listener, qualityScores);
case RANSAC:
default:
return new RANSACQuadricRobustEstimator(listener);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points) {\n return create(listener, points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores) {\n return create(listener, points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores) {\n return create(listener, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener) {\n return create(listener, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points, \n qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points, \n qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores) {\n return create(points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public Point3D triangulate() throws LockedException, NotReadyException,\n RobustEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n final LMedSRobustEstimator<Point3D> innerEstimator =\n new LMedSRobustEstimator<>(\n new LMedSRobustEstimatorListener<Point3D>() {\n\n // point to be reused when computing residuals\n private final Point2D mTestPoint = Point2D.create(\n CoordinatesType.HOMOGENEOUS_COORDINATES);\n\n // non-robust 3D point triangulator\n private final SinglePoint3DTriangulator mTriangulator =\n SinglePoint3DTriangulator.create(mUseHomogeneousSolution ?\n Point3DTriangulatorType.LMSE_HOMOGENEOUS_TRIANGULATOR :\n Point3DTriangulatorType.LMSE_INHOMOGENEOUS_TRIANGULATOR);\n\n // subset of 2D points\n private final List<Point2D> mSubsetPoints = new ArrayList<>();\n\n // subst of cameras\n private final List<PinholeCamera> mSubsetCameras =\n new ArrayList<>();\n\n @Override\n public int getTotalSamples() {\n return mPoints2D.size();\n }\n\n @Override\n public int getSubsetSize() {\n return MIN_REQUIRED_VIEWS;\n }\n\n @Override\n public void estimatePreliminarSolutions(final int[] samplesIndices,\n final List<Point3D> solutions) {\n mSubsetPoints.clear();\n mSubsetPoints.add(mPoints2D.get(samplesIndices[0]));\n mSubsetPoints.add(mPoints2D.get(samplesIndices[1]));\n\n mSubsetCameras.clear();\n mSubsetCameras.add(mCameras.get(samplesIndices[0]));\n mSubsetCameras.add(mCameras.get(samplesIndices[1]));\n\n try {\n mTriangulator.setPointsAndCameras(mSubsetPoints,\n mSubsetCameras);\n final Point3D triangulated = mTriangulator.triangulate();\n solutions.add(triangulated);\n } catch (final Exception e) {\n // if anything fails, no solution is added\n }\n }\n\n @Override\n public double computeResidual(final Point3D currentEstimation, final int i) {\n final Point2D point2D = mPoints2D.get(i);\n final PinholeCamera camera = mCameras.get(i);\n\n // project estimated point with camera\n camera.project(currentEstimation, mTestPoint);\n\n // return distance of projected point respect to the original one\n // as a residual\n return mTestPoint.distanceTo(point2D);\n }\n\n @Override\n public boolean isReady() {\n return LMedSRobustSinglePoint3DTriangulator.this.isReady();\n }\n\n @Override\n public void onEstimateStart(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateStart(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateEnd(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateEnd(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateNextIteration(\n final RobustEstimator<Point3D> estimator, final int iteration) {\n if (mListener != null) {\n mListener.onTriangulateNextIteration(\n LMedSRobustSinglePoint3DTriangulator.this,\n iteration);\n }\n }\n\n @Override\n public void onEstimateProgressChange(\n final RobustEstimator<Point3D> estimator, final float progress) {\n if (mListener != null) {\n mListener.onTriangulateProgressChange(\n LMedSRobustSinglePoint3DTriangulator.this,\n progress);\n }\n }\n });\n\n try {\n mLocked = true;\n innerEstimator.setConfidence(mConfidence);\n innerEstimator.setMaxIterations(mMaxIterations);\n innerEstimator.setProgressDelta(mProgressDelta);\n innerEstimator.setStopThreshold(mStopThreshold);\n return innerEstimator.estimate();\n } catch (final com.irurueta.numerical.LockedException e) {\n throw new LockedException(e);\n } catch (final com.irurueta.numerical.NotReadyException e) {\n throw new NotReadyException(e);\n } finally {\n mLocked = false;\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points) {\n return create(points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create() {\n return create(DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores) {\n return create(listener, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(listener, qualityScores, weakMinimumSizeAllowed, \n DEFAULT_ROBUST_METHOD);\n }",
"public interface GestureRecorderListener {\n\n void onGestureRecorded(List<float[]> values);\n\n IBinder getBinder();\n\n void startClassification(String defaultGesture);\n}",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints) {\n return create(listener, inputPoints, outputPoints, \n DEFAULT_ROBUST_METHOD);\n }",
"@Test\n public void testConstructor() {\n RANSACRadialDistortionRobustEstimator estimator =\n new RANSACRadialDistortionRobustEstimator();\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertNull(estimator.getDistortedPoints());\n assertNull(estimator.getUndistortedPoints());\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertFalse(estimator.arePointsAvailable());\n assertFalse(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // test constructor with listener\n estimator = new RANSACRadialDistortionRobustEstimator(this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertNull(estimator.getDistortedPoints());\n assertNull(estimator.getUndistortedPoints());\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertFalse(estimator.arePointsAvailable());\n assertFalse(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // test constructor with points\n final List<Point2D> distortedPoints = new ArrayList<>();\n final List<Point2D> undistortedPoints = new ArrayList<>();\n for (int i = 0; i < RadialDistortionRobustEstimator.MIN_NUMBER_OF_POINTS; i++) {\n distortedPoints.add(Point2D.create());\n undistortedPoints.add(Point2D.create());\n }\n\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n final List<Point2D> emptyPoints = new ArrayList<>();\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points and listener\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points and center\n final Point2D center = Point2D.create();\n\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, center);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertSame(estimator.getDistortionCenter(), center);\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n center.getInhomX(), 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n center.getInhomY(), 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points, center and listener\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, center, this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertSame(estimator.getDistortionCenter(), center);\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n center.getInhomX(), 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n center.getInhomY(), 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n }",
"public abstract Quadric estimate() throws LockedException, \n NotReadyException, RobustEstimatorException;",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n boolean weakMinimumSizeAllowed) {\n return create(listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints); \n }\n }",
"public static QuadricRobustEstimator create(double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator(qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"public void setListener(QuadricRobustEstimatorListener listener) \n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mListener = listener;\n }",
"public abstract Point_3 evaluate(double u, double v);",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener); \n }\n }",
"public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, qualityScores, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, qualityScores, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n }\n }",
"SliderListener(Sampler[] samplers,Container pane,int numSampler,char parameter){\n this.samplers = samplers;\n this.pane = pane;\n this.numSampler = numSampler;\n this.parameter = parameter; \n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n }\n }",
"public static QuadricRobustEstimator create(RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator();\n case PROMedS:\n return new PROMedSQuadricRobustEstimator();\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }",
"public QuadricRobustEstimatorListener getListener() {\n return mListener;\n }",
"public static void test2() {\n String dataDir = \"/Data/cteam/tp/csm/seismicz/subz_401_4_600/\";\n String dataFile = \"tpets.dat\";\n int n1 = 401, n2 = 357, n3 = 161;\n float v = 1.0f, d = 30.0f;\n EigenTensors3 et = loadTensors(dataDir+dataFile);\n System.out.println(et);\n float[][][] paint = new float[n3][n2][n1];\n Painting3Group p3g = new Painting3Group(paint);\n PaintBrush pb = new PaintBrush(n1,n2,n3,et);\n pb.setSize(30);\n Painting3 p3 = p3g.getPainting3();\n for (int i3=0; i3<10; ++i3)\n for (int i2=0; i2<10; ++i2)\n for (int i1=0; i1<1; ++i1) {\n p3.paintAt(n1/2+i1,n2/2+i2,n3/2+i3,v,d,pb);\n }\n\n Contour c = p3.getContour(v);\n\n SimpleFrame sf = new SimpleFrame();\n sf.setTitle(\"Formation\");\n World world = sf.getWorld();\n TriangleGroup tg = new TriangleGroup(c.i,c.x);\n world.addChild(tg);\n }",
"@Test\r\n public void testPolynomialApproximator() {\r\n List<Point> data = createLinearDataset();\r\n test(PolynomialApacheMathApproximator.INSTANCE_3, data, null);\r\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n }\n }",
"@Override\n public void init() throws Exception {\n Mapper mapper = new Mapper() {\n public double f(double x, double y) {\n try {\n return i3d.evaluate(x, y);\n } catch (InterpolationException e) {\n e.printStackTrace();\n return 0;\n }\n }\n };\n \n // Define range and precision for the function to plot\n Range rangeX = new Range((float)i3d.lowerA(), (float)i3d.upperA());\n int stepsX = 100;\n Range rangeY = new Range((float)i3d.lowerB(), (float)i3d.upperB());\n int stepsY = 100;\n \n AbstractDrawable drawable;\n // Create the object to represent the surface\n final Shape surface = Builder.buildOrthonormal(new OrthonormalGrid(rangeX, stepsX, rangeY, stepsY), mapper);\n surface.setColorMapper(new ColorMapper(new ColorMapRainbow(),\n surface.getBounds().getZmin(), surface.getBounds().getZmax(), COLOR_BASE));\n surface.setWireframeDisplayed(true);\n surface.setWireframeWidth(1);\n surface.setWireframeColor(COLOR_WIRE);\n surface.setFaceDisplayed(true);\n drawable = surface;\n \n // Create a chart\n chart = AWTChartComponentFactory.chart(Quality.Advanced);\n chart.getAxeLayout().setXTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setYTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setZTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setFaceDisplayed(false);\n chart.getAxeLayout().setMainColor(COLOR_MAIN);\n chart.getView().setBackgroundColor(COLOR_BG);\n chart.getScene().getGraph().add(drawable);\n \n chart.getAxeLayout().setXAxeLabel(\"Length\");\n chart.getAxeLayout().setYAxeLabel(\"Time\");\n chart.getAxeLayout().setZAxeLabel(\"Temperature\");\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener) {\n return create(listener, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n boolean weakMinimumSizeAllowed) {\n return create(listener, weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }",
"public MetricTransformation2DRobustEstimator(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints) {\n this(listener);\n internalSetPoints(inputPoints, outputPoints);\n }",
"public PredictorListener buildPredictor();",
"public void process(){\n\n for(int i = 0; i < STEP_SIZE; i++){\n String tmp = \"\" + accData[i][0] + \",\" + accData[i][1] + \",\"+accData[i][2] +\n \",\" + gyData[i][0] + \",\" + gyData[i][1] + \",\" + gyData[i][2] + \"\\n\";\n try{\n stream.write(tmp.getBytes());\n }catch(Exception e){\n //Log.d(TAG,\"!!!\");\n }\n\n }\n\n /**\n * currently we don't apply zero-mean, unit-variance operation\n * to the data\n */\n // only accelerator's data is using, currently 200 * 3 floats\n // parse the 1D-array to 2D\n\n if(recognizer.isInRecognitionState() &&\n recognizer.getGlobalRecognitionTimes() >= Constants.MAX_GLOBAL_RECOGNITIOME_TIMES){\n recognizer.resetRecognitionState();\n }\n if(recognizer.isInRecognitionState()){\n recognizer.removeOutliers(accData);\n recognizer.removeOutliers(gyData);\n\n double [] feature = new double [FEATURE_SIZE];\n recognizer.extractFeatures(feature, accData, gyData);\n\n int result = recognizer.runModel(feature);\n String ret = \"@@@\";\n if(result != Constants.UNDEF_RET){\n if(result == Constants.FINISH_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(Constants.FINISH_INFO);\n waitForPlayout(1);\n recognizer.resetLastGesutre();\n recognizer.resetRecognitionState();\n ret += \"1\";\n }else if(result == Constants.RIGHT_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(\"Now please do Step \" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n ret += \"1\";\n }else if(result == Constants.ERROR_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getExpectedGesture());\n waitForPlayout(1);\n ret += \"0\";\n }else if(result == Constants.ERROR_AND_FORWARD_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getLastGesture());\n waitForPlayout(1);\n if(recognizer.getExpectedGesture() <= Constants.STATE_SPACE){\n mUserWarningService.playSpeech(\n \"Step \" + recognizer.getLastGesture() + \"missing \" +\n \". Now please do Step\" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n }else{\n recognizer.resetRecognitionState();\n mUserWarningService.playSpeech(\"Recognition finished.\");\n waitForPlayout(1);\n }\n\n\n ret += \"0\";\n }\n ret += \",\" + Integer.toString(result) + \"@@@\";\n\n Log.d(TAG, ret);\n Message msg = new Message();\n msg.obj = ret;\n mWriteThread.writeHandler.sendMessage(msg);\n }\n }\n\n }",
"public void ignoreCreateArrayForVec3With6Position() {\r\n\r\n SXRMesh sxrMesh = TestDefaultSXRViewManager.mSXRContext.getAssetLoader().loadMesh(UtilResource.androidResource(TestDefaultSXRViewManager.mSXRContext,R.raw.cylinder3));\r\n float[] vec3 = {-0.5f, 0.5f, 0.0f, -0.5f, 0.5f, 0.0f};\r\n\r\n try {\r\n sxrMesh.setVec3Vector(\"ratio_r\", vec3);\r\n assertNotNull(sxrMesh.getVec4Vector(\"ratio_r\"));\r\n fail();\r\n } catch (InvalidParameterException e) {\r\n assertEquals(e.getMessage(), \"setVec3Vector method support only three position array\");\r\n }\r\n }",
"@Test\r\n public void testSplineApproximator() {\r\n List<Point> data = createConvergingDataset();\r\n List<ExpectedApproximation> exp = new ArrayList<ExpectedApproximation>();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(1000, 17, 1050));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(1062, 40, 1066));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n\r\n data = createLinearDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(100, 3, 200));\r\n exp.add(new ExpectedApproximation(300, 11, 400));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 100));\r\n exp.add(new ExpectedApproximation(400, 17, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n \r\n data = createIncreasingDecreasingDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(700, 23, 900));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(0, 35, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n }",
"public static ReferenceSensor create(UUID channelId, String instrumentManufacturer,\n String instrumentModel, String serialNumber, int numberOfComponents,\n double cornerPeriod, double lowPassband, double highPassband,\n Instant actualTime, Instant systemChangeTime,\n InformationSource informationSource, String comment) {\n\n return new ReferenceSensor(channelId, instrumentManufacturer, instrumentModel,\n serialNumber, numberOfComponents, cornerPeriod, lowPassband, highPassband,\n actualTime, systemChangeTime, informationSource, comment);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener);\n }\n }",
"public interface ITrainingService {\n\n void train(double[][] gestures, double[][] responses, Integer numberOfResponses);\n}",
"public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }",
"private static native long createGuidedFilter_0(long guide_nativeObj, int radius, double eps);",
"public void Setup(int nPoints, float swp, float shp, float ssu)\n {\n Random rnd = new Random();\n\n // Our collection of vertices\n vertices = new float[nPoints*VERTICES_PER_GLYPH*TOTAL_COMPONENT_COUNT];\n\n // Create the vertex data\n for(int i=0;i<nPoints;i++) {\n int offset_x = rnd.nextInt((int)swp);\n int offset_y = rnd.nextInt((int)shp);\n\n float llu = rnd.nextInt(2) * 0.5f;\n float llv = rnd.nextInt(2) * 0.5f;\n \n \n AddGlyph(offset_x, offset_y, ssu, llu, llv, 0.5f, 0.5f);\n }\n\n // The indices for all textured quads\n indices = new short[nPoints*3*TRIANGLES_PER_GLYPH]; \n int last = 0;\n for(int i=0;i<nPoints;i++) {\n // We need to set the new indices for the new quad\n indices[(i*6) + 0] = (short) (last + 0);\n indices[(i*6) + 1] = (short) (last + 1);\n indices[(i*6) + 2] = (short) (last + 2);\n indices[(i*6) + 3] = (short) (last + 0);\n indices[(i*6) + 4] = (short) (last + 2);\n indices[(i*6) + 5] = (short) (last + 3);\n\n // Our indices are connected to the vertices so we need to keep them\n // in the correct order.\n // normal quad = 0,1,2,0,2,3 so the next one will be 4,5,6,4,6,7\n last = last + 4;\n }\n\n // The vertex buffer.\n ByteBuffer bb = ByteBuffer.allocateDirect(vertices.length * BYTES_PER_FLOAT);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(vertices);\n vertexBuffer.position(0);\n\n // initialize byte buffer for the draw list\n ByteBuffer dlb = ByteBuffer.allocateDirect(indices.length * BYTES_PER_SHORT);\n dlb.order(ByteOrder.nativeOrder());\n indexBuffer = dlb.asShortBuffer();\n indexBuffer.put(indices);\n indexBuffer.position(0);\n\n }",
"public LinearRegression(int numberOfSamples) {\n fixedList = new FixedQueue<Point2D>(numberOfSamples);\n }",
"@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }",
"public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm, listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }",
"public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }",
"private FunctionApproximation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.1f, 0.1f, 0.25f, 1.0f);\n RSGFXShaderManager.loadShaders();\n next_game_tick = SystemClock.elapsedRealtime();\n // No culling of back faces\n GLES20.glDisable(GLES20.GL_CULL_FACE);\n \n // No depth testing\n //GLES20.glDisable(GLES20.GL_DEPTH_TEST);\n setupRender();\n // Enable blending\n // GLES20.glEnable(GLES20.GL_BLEND);\n // GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE);\n \n // Setup quad \n \t\t// Generate your vertex, normal and index buffers\n \t\t// vertex buffer\n \t\t_qvb = ByteBuffer.allocateDirect(_quadv.length\n \t\t\t\t* FLOAT_SIZE_BYTES).order(ByteOrder.nativeOrder()).asFloatBuffer();\n \t\t_qvb.put(_quadv);\n \t\t_qvb.position(0);\n\n \t\t// index buffer\n \t\t_qib = ByteBuffer.allocateDirect(_quadi.length\n \t\t\t\t* 4).order(ByteOrder.nativeOrder()).asIntBuffer();\n \t\t_qib.put(_quadi);\n \t\t_qib.position(0);\n }",
"public QuadriCubicSpline(double[] x1, double[] x2, double[] x3, double[] x4, double[][][][] y) {\n\t\tthis.nPoints = x1.length;\n\t\tthis.mPoints = x2.length;\n\t\tthis.lPoints = x3.length;\n\t\tthis.kPoints = x4.length;\n\t\tif (this.nPoints != y.length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x1 and y-row are of different length \" + this.nPoints + \" \" + y.length);\n\t\tif (this.mPoints != y[0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x2 and y-column are of different length \" + this.mPoints + \" \" + y[0].length);\n\t\tif (this.lPoints != y[0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x3 and y-column are of different length \" + this.mPoints + \" \" + y[0][0].length);\n\t\tif (this.kPoints != y[0][0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x4 and y-column are of different length \" + this.kPoints + \" \" + y[0][0][0].length);\n\t\tif ((this.nPoints < 3) || (this.mPoints < 3) || (this.lPoints < 3) || (this.kPoints < 3))\n\t\t\tthrow new IllegalArgumentException(\"The tabulated 4D array must have a minimum size of 3 X 3 X 3 X 3\");\n\n\t\tthis.csm = new CubicSpline(this.nPoints);\n\t\tthis.tcsn = TriCubicSpline.oneDarray(this.nPoints, this.mPoints, this.lPoints, this.kPoints);\n\t\tthis.x1 = new double[this.nPoints];\n\t\tthis.x2 = new double[this.mPoints];\n\t\tthis.x3 = new double[this.lPoints];\n\t\tthis.x4 = new double[this.kPoints];\n\n\t\tthis.y = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tthis.d2ydx2 = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tthis.x1[i] = x1[i];\n\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\tthis.x2[j] = x2[j];\n\t\tfor (int j = 0; j < this.lPoints; j++)\n\t\t\tthis.x3[j] = x3[j];\n\t\tfor (int j = 0; j < this.kPoints; j++)\n\t\t\tthis.x4[j] = x4[j];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\t\tfor (int k = 0; k < this.lPoints; k++)\n\t\t\t\t\tfor (int l = 0; l < this.kPoints; l++)\n\t\t\t\t\t\tthis.y[i][j][k][l] = y[i][j][k][l];\n\t}",
"public ViewerPosition3D()\n {\n }",
"public MetricTransformation2DRobustEstimator(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n boolean weakMinimumSizeAllowed) {\n this(listener);\n mWeakMinimumSizeAllowed = weakMinimumSizeAllowed;\n internalSetPoints(inputPoints, outputPoints);\n }",
"protected SoDetail \ncreateTriangleDetail(SoRayPickAction action,\n final SoPrimitiveVertex v1,\n final SoPrimitiveVertex v2,\n final SoPrimitiveVertex v3,\n final SoPickedPoint pp)\n //\n ////////////////////////////////////////////////////////////////////////\n{\n SoCubeDetail detail;\n\n // Don't create a detail if the pick operation was performed on a\n // bounding box cube, not a real cube\n if (pickingBoundingBox)\n return null;\n\n detail = new SoCubeDetail();\n\n // The part code should be the same in all three details, so just use one\n detail.setPart((( SoCubeDetail ) v1.getDetail()).getPart());\n\n return detail;\n}",
"@Test\r\n\tpublic void testPositiveGenerateSignedGaussians_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString ticketId = roc.createTickets(1, true)[0].get(\"ticketId\").getAsString();\r\n\t\t\t\tHashMap<String, Object> o = roc.generateSignedGaussians(10, 3.41d, 2.1d, 4, \r\n\t\t\t\t\t\tuserData, ticketId);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, double[].class, true, ticketId);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void mo55569a(MDInterceptV3Listener mDInterceptV3Listener) {\n if (mDInterceptV3Listener != null) {\n try {\n this.f1444c.mo55477a(C3565i0.C3566a.Intercept, new C3658o2(mDInterceptV3Listener).mo55686a());\n } catch (Exception e) {\n C3490e3.m663c(e.getMessage());\n return;\n }\n }\n AnalyticsBridge.getInstance().reportSetInterceptListenerEvent();\n }",
"private double threeDimensionalSolveQ1(RealMatrix u, RealMatrix v, double q3) {\r\n double u11 = u.getEntry(0, 0);\r\n double u12 = u.getEntry(0, 1);\r\n double u13 = u.getEntry(0, 2);\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v1 = v.getEntry(0, 0);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (((u12*v2)/(u11*u22)) - (v1/u11)) + ((((u12*u23)/(u11*u22)) - (u13/u11))*q3);\r\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"void setupGrid() {\n\n // create a Switch for the spheres, allow switch changes\n gridSwitch = new Switch(Switch.CHILD_NONE);\n gridSwitch.setCapability(Switch.ALLOW_SWITCH_WRITE);\n\n // Set up an appearance to make the square3s with red ambient,\n // black emmissive, red diffuse and black specular coloring\n Material material = new Material(red, black, red, black, 64);\n Appearance appearance = new Appearance();\n appearance.setMaterial(material);\n\n // create a grid of quads\n int gridSize = 20; // grid is gridSize quads along each side\n int numQuads = gridSize * gridSize;\n int numVerts = numQuads * 4; // 4 verts per quad\n // there will be 3 floats per coord and 4 coords per quad\n float[] coords = new float[3 * numVerts];\n // All the quads will use the same normal at each vertex, so\n // allocate an array to hold references to the same normal\n Vector3f[] normals = new Vector3f[numVerts];\n Vector3f vertNormal = new Vector3f(0.0f, 0.0f, 1.0f);\n float edgeLength = 5.0f; // length of each edge of the grid\n float gridGap = 0.03f; // the gap between each quad\n // length of each quad is (total length - sum of the gaps) / gridSize\n float quadLength = (edgeLength - gridGap * (gridSize - 1)) / gridSize;\n\n // create a grid of quads in the z=0 plane\n // each has a TransformGroup to position the sphere which contains\n // a link to the shared group for the sphere\n float curX, curY;\n for (int y = 0; y < gridSize; y++) {\n curY = y * (quadLength + gridGap); // offset to lower left corner\n curY -= edgeLength / 2; // center on 0,0\n for (int x = 0; x < gridSize; x++) {\n // this is the offset into the vertex array for the first\n // vertex of the quad\n int vertexOffset = (y * gridSize + x) * 4;\n // this is the offset into the coord array for the first\n // vertex of the quad, where there are 3 floats per vertex\n int coordOffset = vertexOffset * 3;\n curX = x * (quadLength + gridGap); // offset to ll corner\n curX -= edgeLength / 2; // center on 0,0\n // lower left corner\n coords[coordOffset + 0] = curX;\n coords[coordOffset + 1] = curY;\n coords[coordOffset + 2] = 0.0f; // z\n // lower right corner\n coords[coordOffset + 3] = curX + quadLength;\n coords[coordOffset + 4] = curY;\n coords[coordOffset + 5] = 0.0f; // z\n // upper right corner\n coords[coordOffset + 6] = curX + quadLength;\n coords[coordOffset + 7] = curY + quadLength;\n coords[coordOffset + 8] = 0.0f; // z\n // upper left corner\n coords[coordOffset + 9] = curX;\n coords[coordOffset + 10] = curY + quadLength;\n coords[coordOffset + 11] = 0.0f; // z\n for (int i = 0; i < 4; i++) {\n normals[vertexOffset + i] = vertNormal;\n }\n }\n }\n // now that we have the data, create the QuadArray\n QuadArray quads = new QuadArray(numVerts, QuadArray.COORDINATES\n | QuadArray.NORMALS);\n quads.setCoordinates(0, coords);\n quads.setNormals(0, normals);\n\n // create the shape\n Shape3D shape = new Shape3D(quads, appearance);\n\n // add it to the switch\n gridSwitch.addChild(shape);\n }",
"@Override\n public void on(double[] values) {\n learnWith(values);\n callback.on(true);\n }",
"public ExtrapolatedSaturationPointEvaluator(int[] anchorpoints,\n\t\t\tISamplingAlgorithmFactory<IInstance, ? extends ASamplingAlgorithm<IInstance>> samplingAlgorithmFactory,\n\t\t\tIDataset<IInstance> train, double trainSplitForAnchorpointsMeasurement,\n\t\t\tLearningCurveExtrapolationMethod extrapolationMethod, long seed, IDataset<IInstance> test) {\n\t\tsuper();\n\t\tthis.anchorpoints = anchorpoints;\n\t\tthis.samplingAlgorithmFactory = samplingAlgorithmFactory;\n\t\tthis.train = train;\n\t\tthis.trainSplitForAnchorpointsMeasurement = trainSplitForAnchorpointsMeasurement;\n\t\tthis.extrapolationMethod = extrapolationMethod;\n\t\tthis.seed = seed;\n\t\tthis.epsilon = DEFAULT_EPSILON;\n\t\tthis.test = test;\n\t}",
"public abstract void createSensors() throws Exception;",
"public static void main(String[] args) {\n\t\t\tColorSensor colorSensor = new ColorSensor(SensorPort.S3);\n\t\t\tcolorSensor.setRGBMode();\n\t\t\tColor rgb; \n\t\t\t\n\t\t\tEV3LargeRegulatedMotor motora = new EV3LargeRegulatedMotor (MotorPort.A);\n\t\t\tEV3LargeRegulatedMotor motorb = new EV3LargeRegulatedMotor (MotorPort.C);\n\t\t\tEV3TouchSensor touchsensor = new EV3TouchSensor (SensorPort.S2);\n\t\t\tEV3IRSensor irSensor = new EV3IRSensor (SensorPort.S1);\n\t\t\t\n\t\t\tWheel wheel1 = WheeledChassis.modelWheel(motora , 2.5).offset(-5.0);\n\t\t Wheel wheel2 = WheeledChassis.modelWheel(motorb , 2.5).offset(5.0);\n\t\t \n\t\t Chassis chassis = new WheeledChassis(new Wheel[] { wheel1, wheel2 }, WheeledChassis.TYPE_DIFFERENTIAL);\n\t\t\t\n\t\t\t\n\t\t\t//is pressed method? do we need to make float values and fetching samples?\n\t\t MovePilot pilot = new MovePilot(chassis);\n\t\t \n\t\t Button.waitForAnyPress(); \n\t\t \n\t\t\tdouble [] hsvmiddle = new double[3];\n\t\t\tdouble [] hsvfloor = new double [3];\n\t\t\tdouble [] hsvline = new double [3];\n\t\t\t\n\t\t\tdouble [] pickupColor = new double [3];\n\t\t\t\n\t\t\t\n\t\t\t\trgb = colorSensor.getColor();\n\t\t\t\thsvmiddle= RGBtoHSV(rgb);\n\t\t\t\t\n\t\t\t\t//rotate to the left to pickup wood color\n\t\t\t\tpilot.rotate(-20);\n\t\t\t\t\n\t\t\t\trgb = colorSensor.getColor();\n\t\t\t\thsvfloor= RGBtoHSV(rgb);\n\t\t\t\t\n\t\t\t\t//rotate to the right to pick up black line\n\t\t\t\tpilot.rotate(30);\n\t\t\t\t\n\t\t\t\trgb = colorSensor.getColor();\n\t\t\t\thsvline= RGBtoHSV(rgb);\n\t\t\t\t\n\t\t\t\t//rotate back to center\n\t\t\t\tpilot.rotate(-10);\n\t\t\t\n\t\t\twhile(Button.ESCAPE.isUp())\n\t\t\t{\n\t\t\t\trgb = colorSensor.getColor();\n\t\t\t\tpickupColor = RGBtoHSV(rgb);\n\t\t\t\t\n\t /*System.out.println(\"RGB = \"+\n\t \" [\" + rgb.getRed() + \",\" + rgb.getGreen() + \",\" + rgb.getBlue() \n\t +\"]\\n \" + \"HSV = \" + \"[ \" + hsv[0] + \",\" + hsv[1] + \",\" + hsv[2] + \",\" +\" ]\");\n\t\t\t\t//delay a second so we don't see so many outputs on the screen\n\t //need to apply to actual line following strategy*/\n\t\t\t\tDelay.msDelay(1000);\n\t\t\t\t\n\t\t\t\t//touch sensor info\n\t\t\t\tSampleProvider distance = touchsensor.getTouchMode();\n\t\t\t\tfloat[] sample = new float[1];\n\t\t\t\t\n\t\t\t\t//ir info\n\t\t\t\tfloat[] sample2 = new float[1];\n\t\t\t\t\n\t\t\t\tpilot.forward();\n\t\t\t\t\n\t\t\t\twhile (!Button.ESCAPE.isDown()) {\n\t\t\t\t\t//when the robot is on the wood it will rotate and fix itself back on the middle\n\t\t\t\t\t if ((((hsvfloor[0]-5)<pickupColor[0])&&((hsvfloor[0]+5>pickupColor[0])))) { \n\t\t\t\t\t\t System.out.println(\"floor\");\n\t\t\t\t\t\t\tpilot.rotate(-4); \n\t\t\t\t\t }\n\t\t\t\t\t //when the robot is on black it will rotate and fix its self back on the middle\n\t\t\t\t\t else if ((((hsvline[0]-5)<pickupColor[0])&&((hsvline[0]+5>pickupColor[0])))) {\n\t\t\t\t\t\t System.out.println(\"black line\");\n\t\t\t\t\t\t\tpilot.rotate(4);\n\t\t\t\t\t}\n\t\t\t\t\t //when the robot is in the middle, it will go forward\n\t\t\t\t\t else if ((((hsvmiddle[0]-5)<pickupColor[0])&&((hsvmiddle[0]+5>pickupColor[0])))) {\n\t\t\t\t\t\t System.out.println (\"middle\");\n\t\t\t\t\t\t pilot.forward();\n\t\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t\t //need to implement when the robot sees a new color (red) then it with turn or do as it is called to to\n\t\t\t\t\t /*else if ((((hsvred[0]-5)<pickupColor[0])&&((hsvred[0]+5>pickupColor[0])))) {\n\t\t\t\t\t\t \n //touch sensor code\n\t\t\t\t\t distance.fetchSample(sample, 0);\n\t\t\t\t\t\tif (sample[0]== 1) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//pilot.travel(-10);\n\t\t\t\t\t\t\t//pilot.rotate(-90);\n\t\t\t\t\t\t\t//pilot.travel(20);\n\t\t\t\t\t\t\t//pilot.rotate(90);\n\t\t\t\t\t\t\t//pilot.forward();\n\t\t\t\t\t\t}\n\n \n\t\t\t\t\t }*/\n\t\t\t\t\t \n\t\t\t\t\t //when the robot sees silver, then it should recognize that it is at the end of the maze and call to the stacking method to retrace its steps\n\t\t\t\t\t /*else if ((hsvsilver[0]-5<pickupcolor[0])&&(hsvsilver[0]+5<pickupcolor[0])){\n\t\t\t\t\t * end the maze and call the stacking method\n\t\t\t\t\t }*/\n\t\t\t\t\t \n\t\t\t\t\t \t\t\t\t\t\t\n\t\t\t\t\t//ir code\n\t\t\t\t\tdistance.fetchSample(sample, 0);\n\t\t\t\t\t\tif (sample2[0]<=18) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tpilot.travel(-10);\n\t\t\t\t\t\t\tpilot.rotate(-90);\n\t\t\t\t\t\t\tpilot.travel(20);\n\t\t\t\t\t\t\tpilot.rotate(90);\n\t\t\t\t\t\t\tpilot.forward();\n\t\t\t\t\t\t}\n\t\t\t\t\t \n\t\t\t}\n\t\t\t\t\n\t\t\t\t//add hsv for silver end of the maze, and add red for intersections\n\t\t\t\t/*if the robot sees red and cannot turn to the right (ir sensor) then go straight\n\t\t\t\t * \tthen if it cant go forward, turn around and when you get back to the red line then turn left\n\t\t\t\t * if the robot sees red and can turn right, then turn right\n\t\t\t\t * if the robot hits something in front of itself, then have the robot turn around to the right\t\t\t\t\n\t\t\t\t * \n\t\t\t\t */\n\t\t\t\t\n //intersection strategy\n /*if ((red color is sensed using the color sensor) && (ir sensor is activated (there is an obstacle))) {\n pilot.rotate(90); //turn left\n pilot.forward();\n }\n if (touch is pressed) {\n pilot.rotate(180); //turn all the way around\n pilot.forward();\n if (red color is sensed) {\n pilot.rotate(-90); //turn right\n }\n }\n if (touch is pressed) {\n pilot.rotate(180); //turn all the way around\n pilot.forward(); \n }\n \n if ((ir is pressed) && !(touch is pressed)) {\n pilot.rotate(90); //turn left\n if (touch is pressed) {\n pilot.rotate(-90);\n pop that sequence off the stack\n pilot.forward();\n }\n else { //touch is not pressed, no obstacles ahead\n pilot.forward();\n }\n }\n \n //25 is an arbitrary # that we are using to represent the max # of intersections\n for (i=1; i < 25; ++i) {\n //everything that's happening in the entire program has to be in this for loop\n Stack<String> stack = new Stack<String>();\n stack.push(\"i\"); //naming each sequence/intersection by its #\n printStack(stack);\n\n }\n //if we program the robot to turn left at intersections, the IR must be on the right\n //question box: how do we structure our code so that every part works together in unison?\n */\n\t\t\t\n\t\t\t\n\t\t\t\t \n\t\t\t\n\t\t\t//free up resources\n\t\t\tcolorSensor.close();\n\t\t\t\n\t\t}\n\n\t}",
"private static native long createContourFitting_0(int ctr, int fd);",
"public UltrasonicSensor(EV3UltrasonicSensor ultraSSensor) {\r\n\t\tus = ultraSSensor.getMode(\"Distance\"); // usDistance provides samples from\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// this instance\r\n\t\tusData = new float[us.sampleSize()]; // usData is the buffer in which data are\r\n\t}",
"public abstract void constructHull();",
"private void run3D() {\r\n\r\n this.buildProgressBar();\r\n\r\n // OK, here is where the meat of the algorithm goes\r\n\r\n int length;\r\n int extents[] = srcImage.getExtents();\r\n xDim = extents[0];\r\n yDim = extents[1];\r\n zDim = extents[2];\r\n length = xDim * yDim * zDim;\r\n\r\n // buffers for the image data\r\n float sourceBuffer[];\r\n float resultBuffer[];\r\n float gaussianBuffer[];\r\n float gradientBuffer[];\r\n\r\n // copy the image data into the sourceBuffer so we can access it\r\n try {\r\n sourceBuffer = new float[length];\r\n resultBuffer = new float[length];\r\n gaussianBuffer = new float[length];\r\n gradientBuffer = new float[length];\r\n } catch (OutOfMemoryError e){\r\n sourceBuffer = resultBuffer = gaussianBuffer = gradientBuffer = null;\r\n errorCleanUp(\"AlgorithmRegularizedIsotropicDiffusion: Out of memory when creating image buffer\", true);\r\n return;\r\n } // catch{}\r\n\r\n // Gaussian blur the input image as a 3D image\r\n sigmas = new float[3];\r\n sigmas[0] = sigmas[1] = sigmas[2] = stdDev;\r\n\r\n makeKernels1D(true);\r\n\r\n // source image is in sourceBuffer, gaussian smoothed image is in gaussianBuffer\r\n\r\n\r\n try {\r\n srcImage.exportData(0, length, sourceBuffer);\r\n } catch (IOException error) {\r\n sourceBuffer = resultBuffer = gaussianBuffer = gradientBuffer = null;\r\n errorCleanUp(\"AlgorithmRegularizedIsotropicDiffusion: could NOT export source image\", true);\r\n return;\r\n } // catch()\r\n // make the magnitude of the gradient image of the gaussian smoothed source image\r\n algoSepConvolver = new AlgorithmSeparableConvolver(gaussianBuffer, sourceBuffer,\r\n extents, xDataRound, yDataRound, zDataRound, srcImage.isColorImage());\r\n\r\n for(int iterNum = 0; iterNum < numIterations; iterNum++) {\r\n if (isProgressBarVisible()) {\r\n progressBar.updateValue(Math.round( ( (float) (iterNum) / (numIterations - 1) * 100)), activeImage);\r\n }\r\n\r\n algoSepConvolver.run();\r\n gradientMagnitude3D(gaussianBuffer, gradientBuffer);\r\n upDateImage3D(resultBuffer, sourceBuffer, gradientBuffer);\r\n\r\n // copy resultBuffer to sourceBuffer for the next iteration\r\n if (iterNum < (numIterations - 1)) {\r\n for (int i = 0; i < length; i++) { sourceBuffer[i] = resultBuffer[i]; }\r\n }\r\n\r\n } // end for (int iterNum = 0; ...)\r\n\r\n algoSepConvolver.finalize();\r\n algoSepConvolver = null;\r\n\r\n // OK, the resultBuffer is filled with the results of the algorithm,\r\n // put this data into the destination image so it will be displayed in\r\n // in the ViewJFrameWizard\r\n try {\r\n destImage.importData(0, resultBuffer, true);\r\n } catch (IOException error) {\r\n sourceBuffer = resultBuffer = gaussianBuffer = gradientBuffer = null;\r\n errorCleanUp(\"AlgorithmRegularizedIsotropicDiffusion: Could NOT import resultBuffer to the image\", true);\r\n return;\r\n } // end try{}-catch{}\r\n\r\n disposeProgressBar();\r\n if (threadStopped) { finalize(); return; }\r\n\r\n setCompleted(true);\r\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores) {\n return create(inputPoints, outputPoints, qualityScores, \n DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }",
"private void createD3Example() {\n\n\t\tSystem.out.println(\"createD3Example\");\n\n\t\tboolean showPoints = true;\n\n\t\tint widthSVG = 1200;\n\t\tint heightSVG = 800;\n\n\t\td3 = browser.getD3();\n//\t\tSystem.out.println(\"D3 version \" + d3.version());\n\t\twebEngine = d3.getWebEngine();\n\n\t\t// apply CSS\n\t\tloadCssForThisClass();\n\n\t\tsvg = d3.select(\"svg\")\n\t\t\t\t.attr(\"width\", widthSVG)\n\t\t\t\t.attr(\"height\", heightSVG);\n\n\t\ttry {\n\n\t\t\tinjectStyleInSVG();\n\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\n\t\t// create initial d3 content\n\n\t\t// data that you want to plot, I\"ve used separate arrays for x and y values\n\t\tdouble[] xData = {5, 10, 25, 32, 40, 40, 15, 7};\n\t\tdouble[] yData = {3, 17, 4, 10, 6, -20, -20.0, 0};\n\n\t\t// size and margins for the chart\n\n\t\tdouble totalWidth = 550;\n\t\tdouble totalHeight = 550;\n\n\t\tdouble marginLeft = 60;\n\t\tdouble marginRight = 15;\n\n\t\tdouble marginTop = 20;\n\t\tdouble marginBottom = 60;\n\n\t\tdouble width = totalWidth - marginLeft - marginRight;\n\t\tdouble height = totalHeight - marginTop - marginBottom;\n\n\t\t// x and y scales, I've used linear here but there are other options\n\t\t// the scales translate data values to pixel values for you\n\t\tdouble xMin = 0;\n\t\tdouble xMax = 50;\n\t\tLinearScale x = d3.scale().linear() //\n\t\t .domain(new double[]{xMin, xMax}) // the range of the values to plot\n\t\t .range(new double[]{0, width}); // the pixel range of the x-axis\n\n\t\tdouble yMin = -25;\n\t\tdouble yMax = 25;\n\t\tLinearScale y = d3.scale().linear() //\n\t\t .domain(new double[]{yMin, yMax}) //\n\t\t .range(new double[]{height, 0});\n\n\t\t// the chart object, includes all margins\n\t\tSelection chart = d3.select(\"svg\") //\n\t\t\t.attr(\"width\", width + marginRight + marginLeft) //\n\t\t\t.attr(\"height\", height + marginTop + marginBottom) //\n\t\t\t.attr(\"class\", \"chart\");\n\n\t\t// the main object where the chart and axis will be drawn\n\t\tSelection main = chart.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(\" + marginLeft + \",\" + marginTop + \")\") //\n\t\t\t.attr(\"width\", width) //\n\t\t\t.attr(\"height\", height) //\n\t\t\t.attr(\"class\", \"main\");\n\n\t\t// draw the x axis\n\t\tAxis xAxis = d3.svg().axis().scale(x).orient(Orientation.BOTTOM);\n\n\t\t//xAxis.innerTickSize(10);\n\n\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,\" + height + \")\") //\n\t\t\t.attr(\"class\", \"main axis date\").call(xAxis);\n\n\t\t// draw the y axis\n\t\tAxis yAxis = d3.svg().axis() //\n\t\t\t.scale(y) //\n\t\t\t.orient(Orientation.LEFT);\n\t\t\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,0)\") //\n\t\t\t.attr(\"class\", \"main axis date\") //\n\t\t\t.call(yAxis);\n\n\t\t// draw the graph object\n\t\tSelection g = main.append(\"svg:g\");\n\n\t\tg.selectAll(\"scatter-dots\")\n\t\t .data(yData) // using the values in the ydata array\n\t\t .enter().append(\"svg:circle\") // create a new circle for each value\n\t\t .attr(\"cy\", new YAxisDatumFunction(webEngine, y, yData) ) // translate y value to a pixel\n\t\t .attr(\"cx\", new XAxisDatumFunction(webEngine, x, xData)) // translate x value\n\t\t .attr(\"r\", 5) // radius of circle\n\t\t .style(\"opacity\", 1.0); // opacity of circle\n\n\n\t\t// Line, the path generator\n\t\tLine line;\n\n\t\tInterpolationMode mode = InterpolationMode.LINEAR;\n\n\t\tline = d3.svg().line()\n\t\t\t\t.x(new XAxisDatumFunction(webEngine, x, xData))\n\t\t\t\t.y(new YAxisDatumFunction(webEngine, y, yData));\n\n\t\tSelection g2 = g.append(\"svg:g\")\n\t\t\t\t.classed(\"Pippo-line-group\", true);\n\n\t\tString cssClassName = \"Agodemar-Test-Line\";\n\t\tSelection pathLine = g2.append(\"path\").classed(cssClassName, true);\n\t\tpathLine\n\t\t\t.attr(\"fill\",\"none\")\n\t\t\t.attr(\"stroke\",\"red\")\n\t\t\t.attr(\"stroke-width\",\"5\")\n\t\t\t.attr(\"stroke-linecap\",\"square\") // \"butt\", \"round\", \"square\"\n\t\t\t.attr(\"stroke-dasharray\",\"15,10\");\n\n\t\tfinal Stack<Coords> points = new Stack<>();\n\n//\t\tdouble [] x = {50.0, 120.0, 400.0, 700};\n//\t\tdouble [] y = {100.0, 30.0, 20.0, 200};\n\n\t\tIntStream.range(0, xData.length)\n\t\t\t.forEach(i ->\n\t\t\t\t\tpoints.push(new Coords(webEngine, xData[i], yData[i]))\n\t\t\t\t\t);\n\n//\t\tSystem.out.println(\"points:\");\n//\t\tpoints.stream()\n//\t\t\t.forEach(p -> System.out.println(p.x()+\", \"+p.y()));\n\n\t\tmode = InterpolationMode.MONOTONE;\n\t\tline = line.interpolate(mode);\n\t\tSystem.out.println(\"Interpolation mode: \" + line.interpolate());\n\n\t\tdouble tension = 0.1;\n\t\tline = line.tension(tension);\n//\t\tSystem.out.println(\"tension: \" + line.tension());\n\n\t\tList<Coords> coordsList = new ArrayList<>(points);\n\n//\t\tSystem.out.println(\"coordsList:\");\n//\t\tcoordsList.stream()\n//\t\t\t.forEach(c -> System.out.println(c.x()+\", \"+c.y()));\n\n\t\tString coordinates = line.generate(coordsList);\n\n//\t\tSystem.out.println(\"coordinates: \" + coordinates);\n\n\t\tpathLine.attr(\"d\", coordinates);\n\n\t\tLabelFactory labelFactory = new LabelFactory();\n\t\t\n//\t\tSelection myText = labelFactory.createInParentSelection(svg);\n//\t\tmyText.text(\"Agodemar!!!\");\n\t\t\n\t\tSelection text = svg.append(\"text\") //\n\t\t\t\t.attr(\"x\", 20) // String.format(\"%d\", widthSVG/2))\n\t\t\t\t.attr(\"y\", 100) // String.format(\"%d\", heightSVG/2))\n\t\t\t\t.text(\"Hello World\");\t\t\n\t\t\n\t\tsvg.append(\"g\")\n\t\t\t.attr(\"class\", \"main\")\n\t\t\t.append(\"text\")\n\t\t\t.attr(\"x\", 20).attr(\"dx\", \"12em\")\n\t\t\t.attr(\"y\", 56).attr(\"dy\", \"2em\")\n\t\t\t.attr(\"font\",\"20px sans-serif\")\n\t\t\t.text(\"Agodemar!!!\");\n\n//\t\tsvg.append(\"g\")\n//\t\t\t.attr(\"class\", \"y\" + \" \" + \"axis\")\n//\t\t\t.call(yAxis).append(\"text\")\n//\t\t\t.attr(\"transform\", \"rotate(-90)\")\n//\t\t\t.attr(\"y\", 6).attr(\"dy\", \".71em\")\n//\t\t\t.style(\"text-anchor\", \"end\")\n//\t\t\t.text(\"Frequency\");\n\t\t\n\t\t\n//\t\t// make a paragraph <p> in the html\n//\t\td3.select(\"body\").append(\"p\").text(\"Agodemar :: Hi there!\");\n\n\t}",
"public LMSERadialDistortionEstimator(final Point2D distortionCenter,\n final RadialDistortionEstimatorListener listener) {\n super(distortionCenter, listener);\n }",
"@Override\n public void quaternion(int w, int x, int y, int z, int timestamp) {\n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(qualityScores, weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"private void analyseSamples(){\n EditText editTx;\n\n resetBackgrounds();\n\n MeasureSet measureSet;\n ArrayList<View> views = new ArrayList<View>();\n\n for(int y = 1; y <= rowCount; y++) {\n measureSet = new MeasureSet();\n views.clear();\n measureSet.copyUncertainty(measuredMag);\n for (int x = 1; x <= columnCount; x++) {\n editTx = (EditText) rootView.findViewById(Integer.parseInt(\"10\" + x + \"00\" + y)).findViewById(R.id.third_list_value);\n views.add(editTx);\n\n try {\n measureSet.add(Double.parseDouble(editTx.getText().toString()));\n } catch (Exception e) {\n editTx.setBackgroundResource(R.drawable.red_shape);\n Toast.makeText(getActivity(), getString(R.string.third_invalid_value), Toast.LENGTH_SHORT).show();\n return;\n }\n }\n\n if (!StatisticUtils.applyChauvenet(measureSet, views)) {\n Toast.makeText(getActivity(), getString(R.string.third_chauvenet_invalid_samples), Toast.LENGTH_SHORT).show();\n return;\n }\n\n measuredMag.addMeasureSet(measureSet);\n }\n\n ((MainActivity) getActivity()).callFragment(Constants.FINAL_STEP_FRAGMENT, mag1, mag2);\n }",
"public NurbsSurface(int segments, int nr_of_points) {\n always_evaluate = false;\n nr_of_segments = segments;\n points_per_segment = nr_of_points;\n surface_type = 2;\n u = new double[100];\n v = new double[100];\n k = 3;\n int i, j;\n\n step = 0.2;\n evaluated_points = new NurbsPoint[(int) ((double) nr_of_segments / step)][(int) ((double) points_per_segment / step)];\n\n for (i = 0; i < (int) ((double) nr_of_segments / step); i++) {\n for (j = 0; j < (int) ((double) points_per_segment / step); j++) {\n evaluated_points[i][j] = new NurbsPoint(0, 0, 0);\n }\n }\n\n u[0] = 0;\n u[1] = 0;\n u[2] = 0;\n u[3] = 0;\n v[0] = 0;\n v[1] = 0;\n v[2] = 0;\n v[3] = 0;\n\n for (i = 4; i < segments - 4; i++) {\n u[i] = i - 3;\n }\n\n for (i = 4; i < nr_of_points - 4; i++) {\n v[i] = i - 3;\n }\n\n u[segments - 4] = segments - 7;\n u[segments - 3] = segments - 7;\n u[segments - 2] = segments - 7;\n u[segments - 1] = segments - 7;\n\n v[nr_of_points - 4] = nr_of_points - 7;\n v[nr_of_points - 3] = nr_of_points - 7;\n v[nr_of_points - 2] = nr_of_points - 7;\n v[nr_of_points - 1] = nr_of_points - 7;\n\n points = new NurbsPoint[nr_of_segments][points_per_segment];\n }",
"private static void createAndShowGUI()\r\n {\r\n JFrame f = new JFrame(\"Viewer\");\r\n f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n f.getContentPane().setLayout(new BorderLayout());\r\n \r\n JLabel usageLabel = new JLabel(\"<html>\"\r\n + \"Right mouse drags: Translate<br> \"\r\n + \"Left mouse drags: Create selection shape<br>\"\r\n + \" +shift: remove from selection<br>\"\r\n + \" +ctrl: add to selection<br>\"\r\n + \"Left mouse clicks: Select single<br>\"\r\n + \" +ctrl: toggle single selection<br>\"\r\n + \"Mouse wheel: Zoom uniformly<br>\"\r\n + \" +shift: zoom along x<br>\"\r\n + \" +ctrl: zoom along y<br>\"\r\n + \"</html>\");\r\n f.getContentPane().add(usageLabel, BorderLayout.NORTH);\r\n \r\n // Create a viewer, with mouse controls where the rotation is\r\n // disabled (left clicks are intended for the selection here)\r\n Viewer viewer = new Viewer();\r\n viewer.setMouseControl(\r\n MouseControls.createDefault(viewer, false, true));\r\n \r\n // Create the selection model\r\n SelectionModel<Point2D> selectionModel = SelectionModels.create();\r\n selectionModel.addSelectionListener(\r\n new LoggingSelectionListener<Point2D>());\r\n\r\n // Create the painter for the test\r\n ViewerSelectionTestPainter viewerSelectionTestPainter = \r\n new ViewerSelectionTestPainter(selectionModel::isSelected);\r\n \r\n // The painter also serves as the point- and shape based selector.\r\n // Make this clear by assigning it to respective variables\r\n PointBasedSelector<Point2D> pointBasedSelector = \r\n viewerSelectionTestPainter;\r\n ShapeBasedSelector<Point2D> shapeBasedSelector = \r\n viewerSelectionTestPainter;\r\n\r\n // Create a selection handler for clicks, and use it to connect\r\n // the viewer and the selection model\r\n SelectionHandler<Point2D> clickSelectionHandler = \r\n SelectionHandlers.createClick(pointBasedSelector);\r\n clickSelectionHandler.connect(viewer, selectionModel);\r\n \r\n // Create a selection handler for a lasso selection, and use it to \r\n // connect the viewer and the selection model\r\n SelectionHandler<Point2D> lassoSelectionHandler = \r\n SelectionHandlers.createLasso(shapeBasedSelector);\r\n lassoSelectionHandler.connect(viewer, selectionModel);\r\n\r\n // Create a selection handler for rectangles, which can be enabled\r\n // via the config panel\r\n SelectionHandler<Point2D> rectangleSelectionHandler = \r\n SelectionHandlers.createRectangle(shapeBasedSelector);\r\n \r\n viewer.addPainter(\r\n viewerSelectionTestPainter);\r\n f.getContentPane().add(viewer, BorderLayout.CENTER);\r\n\r\n JPanel configPanel = createConfigPanel(viewer, selectionModel, \r\n lassoSelectionHandler, rectangleSelectionHandler);\r\n f.getContentPane().add(configPanel, BorderLayout.EAST);\r\n\r\n JLabel infoLabel = new JLabel(\" \");\r\n f.getContentPane().add(infoLabel, BorderLayout.SOUTH);\r\n \r\n viewer.setPreferredSize(new Dimension(500,500));\r\n f.pack();\r\n viewer.setPreferredSize(null);\r\n f.setLocationRelativeTo(null);\r\n f.setVisible(true);\r\n \r\n viewer.setDisplayedWorldArea(-0.1, -0.1, 1.2, 1.2);\r\n }",
"public float[] calibrate(Base mBase, Sensor mSensor) {\n final double metersPerLatitude;\n final double metersPerLongitude;\n\n\n\n //Fetching the cisco position for the robot, which returns\n float ciscoLong = (float) 8.57617285865058;\n float ciscoLat = (float) 58.33447638466072;\n\n\n metersPerLongitude = distanceCalculator.calculateDistance(ciscoLong, ciscoLat, ciscoLong + 1.0, ciscoLat);\n\n metersPerLatitude= distanceCalculator.calculateDistance(ciscoLong, ciscoLat, ciscoLong, ciscoLat + 1.0);\n\n\n float originCiscoPositionx = ciscoLong * (float) metersPerLongitude;\n float originCiscoPositiony = ciscoLat * (float) metersPerLatitude;\n\n\n //Driving 1 meter forward test\n //mBase.addCheckPoint(1, 0);\n\n\n //GetCiscoPosition()\n //These are the actual coordinates of x2 and y2 in latitude and longitude.\n\n\n\n //If Loomo was already headed east, we would expect these coordinates in meters:\n float expectedCiscoPositionx2 = (originCiscoPositionx + 1);\n\n float newCiscoPointlon = (float) 8.57617413279317;\n float newCiscoPointlat = (float) 58.334468102336245;\n\n\n float actualCiscoPositionx2 = newCiscoPointlon * (float) metersPerLongitude;\n float actualCiscoPositiony2 = newCiscoPointlat * (float) metersPerLatitude;\n\n\n\n //Defining 3 vectors that make up a triangle abc\n double[] aVector = {expectedCiscoPositionx2 - originCiscoPositionx, originCiscoPositiony - originCiscoPositiony};\n double[] bVector = {actualCiscoPositionx2 - originCiscoPositionx, actualCiscoPositiony2 - originCiscoPositiony};\n double[] cVector = {expectedCiscoPositionx2 - actualCiscoPositionx2, originCiscoPositiony - actualCiscoPositiony2};\n\n\n\n //Calculating the length of each vector / side of the triangle with the pythagorean therm.\n double aVectorLengthSquared = Math.pow(aVector[0], 2.0) + Math.pow(aVector[1], 2.0);\n double bVectorLengthSquared = Math.pow(bVector[0], 2.0) + Math.pow(bVector[1], 2.0);\n double cVectorLengthSquared = Math.pow(cVector[0], 2.0) + Math.pow(cVector[1], 2.0);\n\n System.out.println(\"Length a = \" + sqrt(aVectorLengthSquared));\n System.out.println(\"Length b = \" + sqrt(bVectorLengthSquared));\n System.out.println(\"Length c = \" + sqrt(cVectorLengthSquared));\n System.out.println(\" \");\n\n //Calculating the angle between the vector from the expected points and the vector from the\n // real points using the cosine law. This gives us an angle ∈ [0,PI].\n float angle = (float) acos((aVectorLengthSquared + bVectorLengthSquared - cVectorLengthSquared)\n / (2 * sqrt(aVectorLengthSquared) * sqrt(bVectorLengthSquared)));\n\n\n\n //If the y-element of the b-vector is negative, that means loomo has been driving\n // southwards. This means, if we are to rotate the coordinates to fit loomo,\n // they will need to be rotated in the positive direction, or against the clock. -> angle = angle\n // If the y-element is positive, then loomo has been driving north, and the coordinates will\n // need to be rotated with the clock. Then \"angle\" will be the negative value\n // found with the cosine law.\n\n if (bVector[1] < 0) {\n angle = angle;\n } else if (bVector[1] > 0) {\n angle = -angle;\n }\n\n System.out.println(\"The angle between the reference systems are: \" + angle + \", which equals \" + angle / PI + \"*PI\\n\" );\n\n mBase.cleanOriginalPoint();\n\n //Setting Fetching the original point where Loomo stands.\n mBase.cleanOriginalPoint();\n Pose2D pose2D = mBase.getOdometryPose(-1);\n mBase.setOriginalPoint(pose2D);\n\n //Driving North: \t58.334512491588754, 8.576253530218082 to 58.33452608839093, 8.576253888068521\n //Driving East: 58.33452608839093, 8.576253888068521 to 58.33452618178464, 8.576285073219395\n //Driving West: 58.33452618178464, 8.576285073219395 to 58.33452693486112, 8.576258173706947\n //Driving South: 58.33452693486112, 8.576258173706947 to 58.33451544969185, 8.576258890746544\n\n float[] calibInfo = {angle, (float) metersPerLongitude, (float) metersPerLatitude};\n return calibInfo;\n }",
"public void run() {\r\n /*try {\r\n AudioSystem.write(m_audioInputStream, m_targetType, outFile);\r\n } catch(IOException e) {\r\n e.printStackTrace();\r\n }*/\r\n //diagram.display();\r\n \r\n final java.util.List<Double> samples=new ArrayList<Double>();\r\n int nBytesRead=0;\r\n final int EXTERNAL_BUFFER_SIZE=(int)Math.pow(2, 13); //128000;\r\n byte[] abData=new byte[EXTERNAL_BUFFER_SIZE];\r\n //boolean isOn=false;\r\n while(nBytesRead != -1 && !stopped) {\r\n try {\r\n nBytesRead=m_audioInputStream.read(abData, 0, abData.length);\r\n } catch(IOException e) {\r\n e.printStackTrace();\r\n }\r\n if(nBytesRead > 0) {\r\n //System.err.println(\"data captured: \"+nBytesRead);\r\n final double[] in=new double[nBytesRead / 2+1]; // >>> 16 bit\r\n int j=0;\r\n for(int i=0; i < nBytesRead - 1; i+=2) {\r\n byte left=abData[i];\r\n int right=abData[i + 1];\r\n right<<=8;\r\n right|=(left & 0xFF);\r\n in[j+1]=right / 65536.0; // >>>65535=2^16\r\n j++;\r\n }\r\n\r\n double averageIntensity=0;\r\n try {\r\n final Sound intensitySound=Sound.Sound_createSimple(1, (in.length-1) / (double)SAMPLE_RATE, SAMPLE_RATE);\r\n intensitySound.z[1]=in;\r\n final SoundEditor edit=SoundEditor.SoundEditor_create(\"\", intensitySound);\r\n edit.computeIntensity();\r\n averageIntensity=edit.computeAverageIntensity();\r\n } catch(Exception e) {\r\n e.printStackTrace();\r\n continue; //>>>?\r\n }\r\n final double ai=averageIntensity;\r\n SwingUtilities.invokeLater(new Runnable() { //>>> not good\r\n public void run() {\r\n for(IntensityListener lis: itenListener) {\r\n lis.gotIntensity(ai); //notify listeners\r\n }\r\n }\r\n });\r\n\r\n /*if(INTENSITY_THRESHOLD<0) {\r\n INTENSITY_THRESHOLD=(int)ai+20;\r\n System.err.println(\"t:\"+ai);\r\n } else {*/\r\n//System.err.println(ai);\r\n if(ai>=settings.noiseLevel) { //filter weak noises\r\n //>>> too long? \r\n for(int i=1; i<in.length; i++) {\r\n samples.add(in[i]);\r\n }\r\n } else {\r\n analyzePitch(samples);\r\n samples.clear();\r\n }\r\n //}\r\n }\r\n }\r\n //System.err.println(\"got sample\");\r\n \r\n \r\n//System.err.println(\"done\");\r\n }",
"public static void main(String[] args)\n {\n OneVarParameterizedFunction polynomial; \n\n double coef[] = { 1, 2, 3, 4 };\n polynomial = new Polynomial( coef );\n\n String par_name[] = polynomial.getParameterNames();\n\n System.out.println( \"Polynomial: \" );\n for ( int i = 0; i < par_name.length; i++ )\n System.out.println(par_name[i] + \" = \" + coef[i] );\n\n double x;\n for ( int i = 0; i <= 10; i++ )\n {\n x = i;\n System.out.println( \"x = \" + x + \n \", p(x) = \" + polynomial.getValue(x) +\n \", p'(x) = \" + polynomial.get_dFdx(x) +\n \", fp'(x) = \" + polynomial.get_dFdx((float)x) );\n }\n\n x = 3;\n double derivs[] = polynomial.get_dFda( x );\n System.out.println( \"At \" + x + \n \", the derivatives relative to the coeffs are:\");\n for ( int i = 0; i < par_name.length; i++ )\n System.out.println(\"deriv WRT \" + par_name[i] + \" = \" + derivs[i]);\n\n/*\n \n DataSet ds = new DataSet( \"Sample Polynomials\", \"Initial Version\" );\n\n XScale x_scale = new UniformXScale( -5, 5, 500 );\n Data polynomial_data; \n for ( int i = 0; i < 100; i++ )\n {\n double a = -5+i/10.0f;\n double coefficients[] = { a*a, -2*a, 1 };\n polynomial = new Polynomial( coefficients );\n polynomial_data = new FunctionModel( x_scale, polynomial, i );\n ds.addData_entry( polynomial_data );\n }\n ViewManager vm = new ViewManager( ds, IViewManager.IMAGE );\n*/\n }",
"public RealBuffer(float[] samples)\n {\n super(samples);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n }\n }",
"private void run3DC() {\r\n\r\n this.buildProgressBar();\r\n\r\n // OK, here is where the meat of the algorithm goes\r\n\r\n int length;\r\n int i;\r\n int extents[] = srcImage.getExtents();\r\n xDim = extents[0];\r\n yDim = extents[1];\r\n zDim = extents[2];\r\n length = xDim * yDim * zDim;\r\n\r\n // buffers for the image data\r\n float sourceBufferR[] = null;\r\n float sourceBufferG[] = null;\r\n float sourceBufferB[] = null;\r\n float resultBufferR[] = null;\r\n float resultBufferG[] = null;\r\n float resultBufferB[] = null;\r\n float gaussianBufferR[] = null;\r\n float gaussianBufferG[] = null;\r\n float gaussianBufferB[] = null;\r\n float gradientBuffer[];\r\n float gradientBufferR[] = null;\r\n float gradientBufferG[] = null;\r\n float gradientBufferB[] = null;\r\n\r\n boolean useRed = true;\r\n boolean useGreen = true;\r\n boolean useBlue = true;\r\n int colorsPresent = 3;\r\n srcImage.calcMinMax();\r\n if (srcImage.getMinR() == srcImage.getMaxR()) {\r\n useRed = false;\r\n colorsPresent--;\r\n }\r\n if (srcImage.getMinG() == srcImage.getMaxG()) {\r\n useGreen = false;\r\n colorsPresent--;\r\n }\r\n if (srcImage.getMinB() == srcImage.getMaxB()) {\r\n useBlue = false;\r\n colorsPresent--;\r\n }\r\n\r\n // copy the image data into the sourceBuffer so we can access it\r\n try {\r\n if (useRed) {\r\n sourceBufferR = new float[length];\r\n resultBufferR = new float[length];\r\n gaussianBufferR = new float[length];\r\n gradientBufferR = new float[length];\r\n }\r\n if (useGreen) {\r\n sourceBufferG = new float[length];\r\n resultBufferG = new float[length];\r\n gaussianBufferG = new float[length];\r\n gradientBufferG = new float[length];\r\n }\r\n if (useBlue) {\r\n sourceBufferB = new float[length];\r\n resultBufferB = new float[length];\r\n gaussianBufferB = new float[length];\r\n gradientBufferB = new float[length];\r\n }\r\n gradientBuffer = new float[length];\r\n for (i = 0; i < length; i++) {\r\n gradientBuffer[i] = 0.0f;\r\n }\r\n } catch (OutOfMemoryError e){\r\n sourceBufferR = sourceBufferG = sourceBufferB = null;\r\n resultBufferR = resultBufferG = resultBufferB = null;\r\n gaussianBufferR = gaussianBufferG = gaussianBufferB = null;\r\n gradientBuffer = gradientBufferR = gradientBufferG = gradientBufferB = null;\r\n errorCleanUp(\"AlgorithmRegularizedIsotropicDiffusion: Out of memory when creating image buffer\", true);\r\n return;\r\n } // catch{}\r\n\r\n // Gaussian blur the input image as a 3D image\r\n sigmas = new float[3];\r\n sigmas[0] = sigmas[1] = sigmas[2] = stdDev;\r\n\r\n makeKernels1D(true);\r\n\r\n // source image is in sourceBuffer, gaussian smoothed image is in gaussianBuffer\r\n\r\n\r\n try {\r\n if (useRed) {\r\n srcImage.exportRGBData(1, 0, length, sourceBufferR);\r\n }\r\n if (useGreen) {\r\n srcImage.exportRGBData(2, 0, length, sourceBufferG);\r\n }\r\n if (useBlue) {\r\n srcImage.exportRGBData(3, 0, length, sourceBufferB);\r\n }\r\n } catch (IOException error) {\r\n sourceBufferR = sourceBufferG = sourceBufferB = null;\r\n resultBufferR = resultBufferG = resultBufferB = null;\r\n gaussianBufferR = gaussianBufferG = gaussianBufferB = null;\r\n gradientBuffer = gradientBufferR = gradientBufferG = gradientBufferB = null;\r\n errorCleanUp(\"AlgorithmRegularizedIsotropicDiffusion: could NOT export source image\", true);\r\n return;\r\n } // catch()\r\n // make the magnitude of the gradient image of the gaussian smoothed source image\r\n if (useRed) {\r\n algoSepConvolverR = new AlgorithmSeparableConvolver(gaussianBufferR, sourceBufferR,\r\n extents, xDataRound, yDataRound, zDataRound, false);\r\n }\r\n if (useGreen) {\r\n algoSepConvolverG = new AlgorithmSeparableConvolver(gaussianBufferG, sourceBufferG,\r\n extents, xDataRound, yDataRound, zDataRound, false);\r\n }\r\n if (useBlue) {\r\n algoSepConvolverB = new AlgorithmSeparableConvolver(gaussianBufferB, sourceBufferB,\r\n extents, xDataRound, yDataRound, zDataRound, false);\r\n }\r\n\r\n for(int iterNum = 0; iterNum < numIterations; iterNum++) {\r\n if (isProgressBarVisible()) {\r\n progressBar.updateValue(Math.round( ( (float) (iterNum) /\r\n (numIterations - 1) * 100)),\r\n activeImage);\r\n }\r\n\r\n if (useRed) {\r\n algoSepConvolverR.run();\r\n gradientMagnitude3D(gaussianBufferR, gradientBufferR);\r\n for (i = 0; i < length; i++) {\r\n gradientBuffer[i] = gradientBufferR[i];\r\n }\r\n }\r\n if (useGreen) {\r\n algoSepConvolverG.run();\r\n gradientMagnitude3D(gaussianBufferG, gradientBufferG);\r\n for (i = 0; i < length; i++) {\r\n gradientBuffer[i] += gradientBufferG[i];\r\n }\r\n }\r\n if (useBlue) {\r\n algoSepConvolverB.run();\r\n gradientMagnitude3D(gaussianBufferB, gradientBufferB);\r\n for (i = 0; i < length; i++) {\r\n gradientBuffer[i] += gradientBufferB[i];\r\n }\r\n }\r\n for (i = 0; i < length; i++) {\r\n gradientBuffer[i] /= colorsPresent;\r\n }\r\n if (useRed) {\r\n upDateImage3D(resultBufferR, sourceBufferR, gradientBuffer);\r\n }\r\n if (useGreen) {\r\n upDateImage3D(resultBufferG, sourceBufferG, gradientBuffer);\r\n }\r\n if (useBlue) {\r\n upDateImage3D(resultBufferB, sourceBufferB, gradientBuffer);\r\n }\r\n\r\n // copy resultBuffer to sourceBuffer for the next iteration\r\n if (iterNum < (numIterations - 1)) {\r\n if (useRed) {\r\n for (i = 0; i < length; i++) {\r\n sourceBufferR[i] = resultBufferR[i];\r\n }\r\n } // if (useRed)\r\n if (useGreen) {\r\n for (i = 0; i < length; i++) {\r\n sourceBufferG[i] = resultBufferG[i];\r\n }\r\n } // if (useGreen)\r\n if (useBlue) {\r\n for (i = 0; i < length; i++) {\r\n sourceBufferB[i] = resultBufferB[i];\r\n }\r\n } // if (useBlue)\r\n } // if (iterNum < (numIterations - 1))\r\n\r\n } // end for (int iterNum = 0; ...)\r\n\r\n if (useRed) {\r\n algoSepConvolverR.finalize();\r\n algoSepConvolverR = null;\r\n }\r\n if (useGreen) {\r\n algoSepConvolverG.finalize();\r\n algoSepConvolverG = null;\r\n }\r\n if (useBlue) {\r\n algoSepConvolverB.finalize();\r\n algoSepConvolverB = null;\r\n }\r\n\r\n // OK, the resultBuffer is filled with the results of the algorithm,\r\n // put this data into the destination image so it will be displayed in\r\n // in the ViewJFrameWizard\r\n try {\r\n if (useRed) {\r\n for (i = 0; i < length; i++) {\r\n if ((resultBufferR[i] > 255.0f) &&\r\n (destImage.getType() == ModelStorageBase.ARGB)) {\r\n resultBufferR[i] = 255.0f;\r\n }\r\n else if (resultBufferR[i] < 0.0f) {\r\n resultBufferR[i] = 0.0f;\r\n }\r\n }\r\n destImage.importRGBData(1, 0, resultBufferR, false);\r\n }\r\n if (useGreen) {\r\n for (i = 0; i < length; i++) {\r\n if ((resultBufferG[i] > 255.0f) &&\r\n (destImage.getType() == ModelStorageBase.ARGB)) {\r\n resultBufferG[i] = 255.0f;\r\n }\r\n else if (resultBufferG[i] < 0.0f) {\r\n resultBufferG[i] = 0.0f;\r\n }\r\n }\r\n destImage.importRGBData(2, 0, resultBufferG, false);\r\n }\r\n if (useBlue) {\r\n for (i = 0; i < length; i++) {\r\n if ((resultBufferB[i] > 255.0f) &&\r\n (destImage.getType() == ModelStorageBase.ARGB)) {\r\n resultBufferB[i] = 255.0f;\r\n }\r\n else if (resultBufferB[i] < 0.0f) {\r\n resultBufferB[i] = 0.0f;\r\n }\r\n }\r\n destImage.importRGBData(3, 0, resultBufferB, false);\r\n }\r\n } catch (IOException error) {\r\n sourceBufferR = sourceBufferG = sourceBufferB = null;\r\n resultBufferR = resultBufferG = resultBufferB = null;\r\n gaussianBufferR = gaussianBufferG = gaussianBufferB = null;\r\n gradientBuffer = gradientBufferR = gradientBufferG = gradientBufferB = null;\r\n errorCleanUp(\"AlgorithmRegularizedIsotropicDiffusion: Could NOT import resultBuffer to the image\", true);\r\n return;\r\n } // end try{}-catch{}\r\n\r\n destImage.calcMinMax();\r\n disposeProgressBar();\r\n if (threadStopped) { finalize(); return; }\r\n\r\n setCompleted(true);\r\n }",
"public interface GetPointsListener extends Listener {\n\n public void onGetPointsSucc(PointsInfo info);\n}",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints); \n }\n }",
"public BoundingBox3d() {\n reset();\n }",
"protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);",
"@Test\n\tpublic void testSetActiveRegion3DRadius() throws GeoTessException, IOException\n\t{\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\n\n\t\t//\t\t// define a 3D polygon with small circle and 3 layers.\n\t\t//\t\tdouble[] polygonCenter = VectorGeo.getVectorDegrees(30., 90.);\n\t\t//\n\t\t//\t\tdouble polygonRadius = toRadians(30.);\n\t\t//\n\t\t//\t\tdouble radiusTop = 6371 - 55;\n\t\t//\t\tdouble radiusBottom = 4000.;\n\t\t//\n\t\t//\t\tHorizon top = new HorizonRadius(radiusTop, 4);\n\t\t//\t\tHorizon bottom = new HorizonRadius(radiusBottom, 2);\n\t\t//\n\t\t//\t\tPolygon polygon = new Polygon3D(polygonCenter, polygonRadius,\n\t\t//\t\t\t\t100, bottom, top);\n\n\t\tPolygon3D polygon = new Polygon3D(new File(\"src/test/resources/permanent_files/polygon_small_circle_radii.ascii\"));\n\t\tdouble[] polygonCenter = polygon.getReferencePoint();\n\t\tdouble polygonRadius = VectorUnit.angle(polygonCenter, polygon.getPoint(0));\n\n\t\tdouble radiusTop = polygon.getTop().getValue();\n\t\tdouble radiusBottom = polygon.getBottom().getValue();\n\n\t\tint topLayer = polygon.getTop().getLayerIndex();\n\t\tint bottomLayer = polygon.getBottom().getLayerIndex();\n\n\t\t// set the active region to 3D polygon\n\t\tsmall_model.setActiveRegion(polygon);\n\t\tassertEquals(144, small_model.getPointMap().size());\n\n\t\t// check every point in the point map to ensure that it is within the polygon\n\t\tfor (int i=0; i<small_model.getPointMap().size(); ++i)\n\t\t{\n\t\t\tdouble[] point = small_model.getPointMap().getPointUnitVector(i);\n\t\t\tassertTrue(VectorUnit.angle(polygonCenter, point) < polygonRadius \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) >= bottomLayer \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) <= topLayer\n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) >= radiusBottom \n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) <= radiusTop\n\t\t\t\t\t);\n\t\t}\n\n\t\t// check every node in the small_model. if the node has point index < 0 then\n\t\t// ensure that it is outside the polygon. if the node has point index \n\t\t// >= 0, then it must be within the polygon.\n\t\tboolean passed = true;\n\t\tfor (int vertex=0; vertex<small_model.getGrid().getVertices().length; ++vertex)\n\t\t{\n\t\t\tdouble distance = VectorUnit.angle(polygonCenter, small_model.getGrid().getVertex(vertex));\n\t\t\tProfile[] pp = small_model.getProfiles(vertex);\n\t\t\tfor (int layer=0; layer<small_model.getNLayers(); ++layer)\n\t\t\t{\n\t\t\t\tProfile p = pp[layer];\n\t\t\t\tfor (int n=0; n<p.getNData(); ++n)\n\t\t\t\t{\n\t\t\t\t\tboolean inpolygon = distance < polygonRadius\n\t\t\t\t\t\t\t&& layer >= bottomLayer\n\t\t\t\t\t\t\t&& layer <= topLayer\n\t\t\t\t\t\t\t&& p.getRadius(n) > radiusBottom\n\t\t\t\t\t\t\t&& p.getRadius(n) < radiusTop\n\t\t\t\t\t\t\t;\n\n\t\t\t\t\t\t\tboolean positive = p.getPointIndex(n) >= 0;\n\n\t\t\t\t\t\t\tif (inpolygon != positive) passed = false;\n\n\t\t\t\t\t\t\tif (inpolygon != positive)\n\t\t\t\t\t\t\t\tSystem.out.printf(\"testSetActiveRegion3DRadii ptIndex=%d dist=%1.3f layer=%d radius=%1.3f%n\",\n\t\t\t\t\t\t\t\t\t\tp.getPointIndex(n),\n\t\t\t\t\t\t\t\t\t\tMath.toDegrees(distance), \n\t\t\t\t\t\t\t\t\t\tlayer,\n\t\t\t\t\t\t\t\t\t\tp.getRadius(n));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tassertTrue(passed);\n\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\t\t\n\n\t}",
"@Override\n public void processStimulus(Enumeration criteria) {\n quadParts.updateData(updater); // request an update of the geometry\n wakeupOn(timedelay);\n }",
"ExpProtocol ensureSampleAliquotProtocol(User user) throws ExperimentException;"
] | [
"0.70746464",
"0.7021823",
"0.6331607",
"0.6284595",
"0.6176815",
"0.61763376",
"0.5860509",
"0.584871",
"0.5736692",
"0.56078756",
"0.54392445",
"0.53035533",
"0.5229927",
"0.5166618",
"0.5124115",
"0.509723",
"0.5062904",
"0.50601053",
"0.50129247",
"0.48342562",
"0.47835588",
"0.47525567",
"0.47373787",
"0.4736445",
"0.47327077",
"0.46802756",
"0.46063247",
"0.4588402",
"0.45428368",
"0.44891313",
"0.4486928",
"0.44633734",
"0.44529974",
"0.4422544",
"0.44169003",
"0.44082016",
"0.43874058",
"0.43646172",
"0.43428403",
"0.43124697",
"0.42887908",
"0.42535555",
"0.42477793",
"0.42472738",
"0.42468718",
"0.4240065",
"0.42184475",
"0.41947788",
"0.4185604",
"0.41828227",
"0.41750905",
"0.41631654",
"0.4157835",
"0.4113489",
"0.41092178",
"0.40918162",
"0.40876725",
"0.4078018",
"0.40738595",
"0.40559942",
"0.40557227",
"0.40326488",
"0.40213895",
"0.40208033",
"0.40111166",
"0.40090138",
"0.4006956",
"0.39993298",
"0.39788494",
"0.39739105",
"0.39663377",
"0.39652628",
"0.39560795",
"0.3955075",
"0.39509854",
"0.39501145",
"0.39438978",
"0.3943142",
"0.39377543",
"0.393622",
"0.3934497",
"0.39298546",
"0.3927072",
"0.3918452",
"0.391565",
"0.3913422",
"0.39124486",
"0.39057928",
"0.39051917",
"0.3903988",
"0.39032143",
"0.39026025",
"0.3896737",
"0.3885472",
"0.38845608",
"0.3872536",
"0.38694707",
"0.38677874",
"0.3866565",
"0.3865344"
] | 0.5530753 | 10 |
Creates a quadric robust estimator based on 3D point samples and using provided listener and points. | public static QuadricRobustEstimator create(
QuadricRobustEstimatorListener listener, List<Point3D> points,
double[] qualityScores, RobustEstimatorMethod method) {
switch (method) {
case LMedS:
return new LMedSQuadricRobustEstimator(listener, points);
case MSAC:
return new MSACQuadricRobustEstimator(listener, points);
case PROSAC:
return new PROSACQuadricRobustEstimator(listener, points,
qualityScores);
case PROMedS:
return new PROMedSQuadricRobustEstimator(listener, points,
qualityScores);
case RANSAC:
default:
return new RANSACQuadricRobustEstimator(listener, points);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points) {\n return create(listener, points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores) {\n return create(listener, points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(List<Point3D> points) {\n return create(points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores) {\n return create(points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public Point3D triangulate() throws LockedException, NotReadyException,\n RobustEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n final LMedSRobustEstimator<Point3D> innerEstimator =\n new LMedSRobustEstimator<>(\n new LMedSRobustEstimatorListener<Point3D>() {\n\n // point to be reused when computing residuals\n private final Point2D mTestPoint = Point2D.create(\n CoordinatesType.HOMOGENEOUS_COORDINATES);\n\n // non-robust 3D point triangulator\n private final SinglePoint3DTriangulator mTriangulator =\n SinglePoint3DTriangulator.create(mUseHomogeneousSolution ?\n Point3DTriangulatorType.LMSE_HOMOGENEOUS_TRIANGULATOR :\n Point3DTriangulatorType.LMSE_INHOMOGENEOUS_TRIANGULATOR);\n\n // subset of 2D points\n private final List<Point2D> mSubsetPoints = new ArrayList<>();\n\n // subst of cameras\n private final List<PinholeCamera> mSubsetCameras =\n new ArrayList<>();\n\n @Override\n public int getTotalSamples() {\n return mPoints2D.size();\n }\n\n @Override\n public int getSubsetSize() {\n return MIN_REQUIRED_VIEWS;\n }\n\n @Override\n public void estimatePreliminarSolutions(final int[] samplesIndices,\n final List<Point3D> solutions) {\n mSubsetPoints.clear();\n mSubsetPoints.add(mPoints2D.get(samplesIndices[0]));\n mSubsetPoints.add(mPoints2D.get(samplesIndices[1]));\n\n mSubsetCameras.clear();\n mSubsetCameras.add(mCameras.get(samplesIndices[0]));\n mSubsetCameras.add(mCameras.get(samplesIndices[1]));\n\n try {\n mTriangulator.setPointsAndCameras(mSubsetPoints,\n mSubsetCameras);\n final Point3D triangulated = mTriangulator.triangulate();\n solutions.add(triangulated);\n } catch (final Exception e) {\n // if anything fails, no solution is added\n }\n }\n\n @Override\n public double computeResidual(final Point3D currentEstimation, final int i) {\n final Point2D point2D = mPoints2D.get(i);\n final PinholeCamera camera = mCameras.get(i);\n\n // project estimated point with camera\n camera.project(currentEstimation, mTestPoint);\n\n // return distance of projected point respect to the original one\n // as a residual\n return mTestPoint.distanceTo(point2D);\n }\n\n @Override\n public boolean isReady() {\n return LMedSRobustSinglePoint3DTriangulator.this.isReady();\n }\n\n @Override\n public void onEstimateStart(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateStart(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateEnd(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateEnd(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateNextIteration(\n final RobustEstimator<Point3D> estimator, final int iteration) {\n if (mListener != null) {\n mListener.onTriangulateNextIteration(\n LMedSRobustSinglePoint3DTriangulator.this,\n iteration);\n }\n }\n\n @Override\n public void onEstimateProgressChange(\n final RobustEstimator<Point3D> estimator, final float progress) {\n if (mListener != null) {\n mListener.onTriangulateProgressChange(\n LMedSRobustSinglePoint3DTriangulator.this,\n progress);\n }\n }\n });\n\n try {\n mLocked = true;\n innerEstimator.setConfidence(mConfidence);\n innerEstimator.setMaxIterations(mMaxIterations);\n innerEstimator.setProgressDelta(mProgressDelta);\n innerEstimator.setStopThreshold(mStopThreshold);\n return innerEstimator.estimate();\n } catch (final com.irurueta.numerical.LockedException e) {\n throw new LockedException(e);\n } catch (final com.irurueta.numerical.NotReadyException e) {\n throw new NotReadyException(e);\n } finally {\n mLocked = false;\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores) {\n return create(listener, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener) {\n return create(listener, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints) {\n return create(listener, inputPoints, outputPoints, \n DEFAULT_ROBUST_METHOD);\n }",
"public abstract Point_3 evaluate(double u, double v);",
"public static QuadricRobustEstimator create(double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create() {\n return create(DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n boolean weakMinimumSizeAllowed) {\n return create(listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints); \n }\n }",
"public QuadriCubicSpline(double[] x1, double[] x2, double[] x3, double[] x4, double[][][][] y) {\n\t\tthis.nPoints = x1.length;\n\t\tthis.mPoints = x2.length;\n\t\tthis.lPoints = x3.length;\n\t\tthis.kPoints = x4.length;\n\t\tif (this.nPoints != y.length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x1 and y-row are of different length \" + this.nPoints + \" \" + y.length);\n\t\tif (this.mPoints != y[0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x2 and y-column are of different length \" + this.mPoints + \" \" + y[0].length);\n\t\tif (this.lPoints != y[0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x3 and y-column are of different length \" + this.mPoints + \" \" + y[0][0].length);\n\t\tif (this.kPoints != y[0][0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x4 and y-column are of different length \" + this.kPoints + \" \" + y[0][0][0].length);\n\t\tif ((this.nPoints < 3) || (this.mPoints < 3) || (this.lPoints < 3) || (this.kPoints < 3))\n\t\t\tthrow new IllegalArgumentException(\"The tabulated 4D array must have a minimum size of 3 X 3 X 3 X 3\");\n\n\t\tthis.csm = new CubicSpline(this.nPoints);\n\t\tthis.tcsn = TriCubicSpline.oneDarray(this.nPoints, this.mPoints, this.lPoints, this.kPoints);\n\t\tthis.x1 = new double[this.nPoints];\n\t\tthis.x2 = new double[this.mPoints];\n\t\tthis.x3 = new double[this.lPoints];\n\t\tthis.x4 = new double[this.kPoints];\n\n\t\tthis.y = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tthis.d2ydx2 = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tthis.x1[i] = x1[i];\n\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\tthis.x2[j] = x2[j];\n\t\tfor (int j = 0; j < this.lPoints; j++)\n\t\t\tthis.x3[j] = x3[j];\n\t\tfor (int j = 0; j < this.kPoints; j++)\n\t\t\tthis.x4[j] = x4[j];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\t\tfor (int k = 0; k < this.lPoints; k++)\n\t\t\t\t\tfor (int l = 0; l < this.kPoints; l++)\n\t\t\t\t\t\tthis.y[i][j][k][l] = y[i][j][k][l];\n\t}",
"public abstract Quadric estimate() throws LockedException, \n NotReadyException, RobustEstimatorException;",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n }\n }",
"public NurbsSurface(int segments, int nr_of_points) {\n always_evaluate = false;\n nr_of_segments = segments;\n points_per_segment = nr_of_points;\n surface_type = 2;\n u = new double[100];\n v = new double[100];\n k = 3;\n int i, j;\n\n step = 0.2;\n evaluated_points = new NurbsPoint[(int) ((double) nr_of_segments / step)][(int) ((double) points_per_segment / step)];\n\n for (i = 0; i < (int) ((double) nr_of_segments / step); i++) {\n for (j = 0; j < (int) ((double) points_per_segment / step); j++) {\n evaluated_points[i][j] = new NurbsPoint(0, 0, 0);\n }\n }\n\n u[0] = 0;\n u[1] = 0;\n u[2] = 0;\n u[3] = 0;\n v[0] = 0;\n v[1] = 0;\n v[2] = 0;\n v[3] = 0;\n\n for (i = 4; i < segments - 4; i++) {\n u[i] = i - 3;\n }\n\n for (i = 4; i < nr_of_points - 4; i++) {\n v[i] = i - 3;\n }\n\n u[segments - 4] = segments - 7;\n u[segments - 3] = segments - 7;\n u[segments - 2] = segments - 7;\n u[segments - 1] = segments - 7;\n\n v[nr_of_points - 4] = nr_of_points - 7;\n v[nr_of_points - 3] = nr_of_points - 7;\n v[nr_of_points - 2] = nr_of_points - 7;\n v[nr_of_points - 1] = nr_of_points - 7;\n\n points = new NurbsPoint[nr_of_segments][points_per_segment];\n }",
"public static QuadricRobustEstimator create(double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator(qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"@Test\r\n public void testSplineApproximator() {\r\n List<Point> data = createConvergingDataset();\r\n List<ExpectedApproximation> exp = new ArrayList<ExpectedApproximation>();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(1000, 17, 1050));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(1062, 40, 1066));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n\r\n data = createLinearDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(100, 3, 200));\r\n exp.add(new ExpectedApproximation(300, 11, 400));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 100));\r\n exp.add(new ExpectedApproximation(400, 17, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n \r\n data = createIncreasingDecreasingDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(700, 23, 900));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(0, 35, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n }",
"public MetricTransformation2DRobustEstimator(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints) {\n this(listener);\n internalSetPoints(inputPoints, outputPoints);\n }",
"public static vtkPoints createPoints(float[] points)\n\t{\n\t\tvtkPoints vtkPoints = new vtkPoints();\n\t\tvtkFloatArray d = new vtkFloatArray();\n\t\td.SetJavaArray(points);\n\t\td.SetNumberOfComponents(3);\n\t\tvtkPoints.SetData(d);\n\t\tdelete(d);\n\t\treturn vtkPoints;\n\t}",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores) {\n return create(inputPoints, outputPoints, qualityScores, \n DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public static vtkPoints createPoints(double[] points)\n\t{\n\t\tvtkPoints vtkPoints = new vtkPoints();\n\t\tvtkDoubleArray d = new vtkDoubleArray();\n\t\td.SetJavaArray(points);\n\t\td.SetNumberOfComponents(3);\n\t\tvtkPoints.SetData(d);\n\t\tdelete(d);\n\t\treturn vtkPoints;\n\t}",
"public static void test2() {\n String dataDir = \"/Data/cteam/tp/csm/seismicz/subz_401_4_600/\";\n String dataFile = \"tpets.dat\";\n int n1 = 401, n2 = 357, n3 = 161;\n float v = 1.0f, d = 30.0f;\n EigenTensors3 et = loadTensors(dataDir+dataFile);\n System.out.println(et);\n float[][][] paint = new float[n3][n2][n1];\n Painting3Group p3g = new Painting3Group(paint);\n PaintBrush pb = new PaintBrush(n1,n2,n3,et);\n pb.setSize(30);\n Painting3 p3 = p3g.getPainting3();\n for (int i3=0; i3<10; ++i3)\n for (int i2=0; i2<10; ++i2)\n for (int i1=0; i1<1; ++i1) {\n p3.paintAt(n1/2+i1,n2/2+i2,n3/2+i3,v,d,pb);\n }\n\n Contour c = p3.getContour(v);\n\n SimpleFrame sf = new SimpleFrame();\n sf.setTitle(\"Formation\");\n World world = sf.getWorld();\n TriangleGroup tg = new TriangleGroup(c.i,c.x);\n world.addChild(tg);\n }",
"public void Setup(int nPoints, float swp, float shp, float ssu)\n {\n Random rnd = new Random();\n\n // Our collection of vertices\n vertices = new float[nPoints*VERTICES_PER_GLYPH*TOTAL_COMPONENT_COUNT];\n\n // Create the vertex data\n for(int i=0;i<nPoints;i++) {\n int offset_x = rnd.nextInt((int)swp);\n int offset_y = rnd.nextInt((int)shp);\n\n float llu = rnd.nextInt(2) * 0.5f;\n float llv = rnd.nextInt(2) * 0.5f;\n \n \n AddGlyph(offset_x, offset_y, ssu, llu, llv, 0.5f, 0.5f);\n }\n\n // The indices for all textured quads\n indices = new short[nPoints*3*TRIANGLES_PER_GLYPH]; \n int last = 0;\n for(int i=0;i<nPoints;i++) {\n // We need to set the new indices for the new quad\n indices[(i*6) + 0] = (short) (last + 0);\n indices[(i*6) + 1] = (short) (last + 1);\n indices[(i*6) + 2] = (short) (last + 2);\n indices[(i*6) + 3] = (short) (last + 0);\n indices[(i*6) + 4] = (short) (last + 2);\n indices[(i*6) + 5] = (short) (last + 3);\n\n // Our indices are connected to the vertices so we need to keep them\n // in the correct order.\n // normal quad = 0,1,2,0,2,3 so the next one will be 4,5,6,4,6,7\n last = last + 4;\n }\n\n // The vertex buffer.\n ByteBuffer bb = ByteBuffer.allocateDirect(vertices.length * BYTES_PER_FLOAT);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(vertices);\n vertexBuffer.position(0);\n\n // initialize byte buffer for the draw list\n ByteBuffer dlb = ByteBuffer.allocateDirect(indices.length * BYTES_PER_SHORT);\n dlb.order(ByteOrder.nativeOrder());\n indexBuffer = dlb.asShortBuffer();\n indexBuffer.put(indices);\n indexBuffer.position(0);\n\n }",
"@org.junit.Test\n public void getUniformParamsTestCurve3() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(15, 20), new Vector(15, 30));\n List<Double> params = curve.getUniformParams(6);\n assertEquals(6, curve.getUniformParams(6).size());\n\n // check that each point is further down the line of the curve\n // each x and y should be larger than the previous\n Vector prev = curve.getPoint(params.get(0));\n for (int i = 1; i < params.size(); i++) {\n Vector point = curve.getPoint(params.get(i));\n assertTrue(point.x > prev.x);\n assertTrue(point.y > prev.y);\n }\n\n // check that the first and the last sampling points are equal to starting and ending controlling points\n assertEquals(new Vector(10, 20), curve.getPoint(params.get(0)));\n assertEquals(new Vector(15, 30), curve.getPoint(params.get(params.size() - 1)));\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores) {\n return create(listener, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"protected SoDetail \ncreateTriangleDetail(SoRayPickAction action,\n final SoPrimitiveVertex v1,\n final SoPrimitiveVertex v2,\n final SoPrimitiveVertex v3,\n final SoPickedPoint pp)\n //\n ////////////////////////////////////////////////////////////////////////\n{\n SoCubeDetail detail;\n\n // Don't create a detail if the pick operation was performed on a\n // bounding box cube, not a real cube\n if (pickingBoundingBox)\n return null;\n\n detail = new SoCubeDetail();\n\n // The part code should be the same in all three details, so just use one\n detail.setPart((( SoCubeDetail ) v1.getDetail()).getPart());\n\n return detail;\n}",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(listener, qualityScores, weakMinimumSizeAllowed, \n DEFAULT_ROBUST_METHOD);\n }",
"@Test\r\n public void testPolynomialApproximator() {\r\n List<Point> data = createLinearDataset();\r\n test(PolynomialApacheMathApproximator.INSTANCE_3, data, null);\r\n }",
"@Test\n public void testConstructor() {\n RANSACRadialDistortionRobustEstimator estimator =\n new RANSACRadialDistortionRobustEstimator();\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertNull(estimator.getDistortedPoints());\n assertNull(estimator.getUndistortedPoints());\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertFalse(estimator.arePointsAvailable());\n assertFalse(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // test constructor with listener\n estimator = new RANSACRadialDistortionRobustEstimator(this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertNull(estimator.getDistortedPoints());\n assertNull(estimator.getUndistortedPoints());\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertFalse(estimator.arePointsAvailable());\n assertFalse(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // test constructor with points\n final List<Point2D> distortedPoints = new ArrayList<>();\n final List<Point2D> undistortedPoints = new ArrayList<>();\n for (int i = 0; i < RadialDistortionRobustEstimator.MIN_NUMBER_OF_POINTS; i++) {\n distortedPoints.add(Point2D.create());\n undistortedPoints.add(Point2D.create());\n }\n\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n final List<Point2D> emptyPoints = new ArrayList<>();\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points and listener\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points and center\n final Point2D center = Point2D.create();\n\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, center);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertSame(estimator.getDistortionCenter(), center);\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n center.getInhomX(), 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n center.getInhomY(), 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points, center and listener\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, center, this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertSame(estimator.getDistortionCenter(), center);\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n center.getInhomX(), 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n center.getInhomY(), 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n }",
"public ExtrapolatedSaturationPointEvaluator(int[] anchorpoints,\n\t\t\tISamplingAlgorithmFactory<IInstance, ? extends ASamplingAlgorithm<IInstance>> samplingAlgorithmFactory,\n\t\t\tIDataset<IInstance> train, double trainSplitForAnchorpointsMeasurement,\n\t\t\tLearningCurveExtrapolationMethod extrapolationMethod, long seed, IDataset<IInstance> test) {\n\t\tsuper();\n\t\tthis.anchorpoints = anchorpoints;\n\t\tthis.samplingAlgorithmFactory = samplingAlgorithmFactory;\n\t\tthis.train = train;\n\t\tthis.trainSplitForAnchorpointsMeasurement = trainSplitForAnchorpointsMeasurement;\n\t\tthis.extrapolationMethod = extrapolationMethod;\n\t\tthis.seed = seed;\n\t\tthis.epsilon = DEFAULT_EPSILON;\n\t\tthis.test = test;\n\t}",
"public interface GestureRecorderListener {\n\n void onGestureRecorded(List<float[]> values);\n\n IBinder getBinder();\n\n void startClassification(String defaultGesture);\n}",
"public void ignoreCreateArrayForVec3With6Position() {\r\n\r\n SXRMesh sxrMesh = TestDefaultSXRViewManager.mSXRContext.getAssetLoader().loadMesh(UtilResource.androidResource(TestDefaultSXRViewManager.mSXRContext,R.raw.cylinder3));\r\n float[] vec3 = {-0.5f, 0.5f, 0.0f, -0.5f, 0.5f, 0.0f};\r\n\r\n try {\r\n sxrMesh.setVec3Vector(\"ratio_r\", vec3);\r\n assertNotNull(sxrMesh.getVec4Vector(\"ratio_r\"));\r\n fail();\r\n } catch (InvalidParameterException e) {\r\n assertEquals(e.getMessage(), \"setVec3Vector method support only three position array\");\r\n }\r\n }",
"public abstract Vector3D getPointForSurfaceCoordinates(double u, double v);",
"public Point2D[] getPoint2DArray() { \n \n double x1=0; \n double y1=0; \n double x2=0; \n double y2=0; \n \n double x0; \n double y0; \n double x3; \n double y3; \n \n int samples_interval = Math.round(samples / (points.length-1)); \n Point2D[] points_return = new Point2D[samples]; \n int pos_return = 0; //we'll store the pointer in the points_return array here. \n //We iterate between the different given points, \n //calculating the Bezier curves between them \n for(int i=0; i < points.length-1; i++){ \n //the last period may have a different number of samples in order to fit the sample value \n if(i == points.length-2){ \n samples_interval = samples - (samples_interval*(points.length-2)); \n } \n x1=points[i].getX(); \n x2=points[i+1].getX(); \n y1=points[i].getY(); \n y2=points[i+1].getY(); \n if(i>0){ \n x0=points[i-1].getX(); \n y0=points[i-1].getY(); \n }else { \n x0 = x1 - Math.abs(x2 - x1); \n y0 = y1; \n } \n if(i < points.length -2){ \n x3=points[i+2].getX(); \n y3=points[i+2].getY(); \n } else { \n x3 = x1 + 2*Math.abs(x1 - x0); \n y3 = y1; \n } \n Point2D[] points_bezier = CalculateBezierCurve(x0,y0,x1,y1,x2,y2,x3,y3, samples_interval); \n //Fill the return array \n for(int j = 0 ; j < points_bezier.length; j++){ \n points_return[pos_return] = new Point2D.Double(points_bezier[j].getX(),points_bezier[j].getY()); \n pos_return++; \n } \n \n } \n \n\n return points_return; \n}",
"public static QuadricRobustEstimator create(RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator();\n case PROMedS:\n return new PROMedSQuadricRobustEstimator();\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n }\n }",
"@Test\r\n\tpublic void testPositiveGenerateSignedGaussians_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString ticketId = roc.createTickets(1, true)[0].get(\"ticketId\").getAsString();\r\n\t\t\t\tHashMap<String, Object> o = roc.generateSignedGaussians(10, 3.41d, 2.1d, 4, \r\n\t\t\t\t\t\tuserData, ticketId);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, double[].class, true, ticketId);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private void pushTrajectory(WPI_TalonSRX _talon, ArrayList<ArrayList<Double>> points) {\n\t\tTrajectoryPoint point = new TrajectoryPoint();\n\t\t_talon.clearMotionProfileTrajectories();\n\n\t\t/* This is fast since it's just into our TOP buffer */\n\t\tint i = 0;\n\t\tfor (ArrayList<Double> arr : points) {\n\t\t\t/* for each point, fill our structure and pass it to API */\n\t\t\t// Double[] a = (Double[]) arr.toArray();\n\t\t\tpoint.position = arr.get(0) * RobotMap.CODES_PER_WHEEL_REV * 3.6;\n\t\t\t\n\t\t\tpoint.velocity = arr.get(1) * RobotMap.CODES_PER_WHEEL_REV * 4/ 600;\n\t\t\tpoint.timeDur = TrajectoryPoint.TrajectoryDuration.Trajectory_Duration_20ms;\n\t\t\t//point.timeDur = (int)(arr.get(2) / multiplier);\n\t\t\t\n\t\t\t//System.out.println(\"DriveByMotionProfile: \" + point.position + \" \" + point.velocity + \" \" + point.timeDur);// + \" \" + point.timeDurMs);\n\t\t\tpoint.profileSlotSelect0 = 0; /*\n\t\t\t\t\t\t\t\t\t\t\t * which set of gains would you like to\n\t\t\t\t\t\t\t\t\t\t\t * use?\n\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t//point.velocityOnly = false; \n\t\t\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t\t\t * set true to not do any position\n\t\t\t\t\t\t\t\t\t\t * servo, just velocity feedforward\n\t\t\t\t\t\t\t\t\t\t */\n\t\t\tpoint.zeroPos = false;\n\t\t\tif (i == 0)\n\t\t\t\tpoint.zeroPos = true; /* set this to true on the first point */\n\n\t\t\tpoint.isLastPoint = false;\n\t\t\tif ((i + 1) == points.size())\n\t\t\t\tpoint.isLastPoint = true; /*\n\t\t\t\t\t\t\t\t\t\t\t * set this to true on the last point\n\t\t\t\t\t\t\t\t\t\t\t */\n\n\t\t\t_talon.pushMotionProfileTrajectory(point);\n\t\t\ti++;\n\t\t}\n\t}",
"public abstract void constructHull();",
"public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }",
"@Test\n public void getPointsTest() {\n final double[] expectedResult = new double[3];\n final double[] envelope = new double[]{-3, 2, 0, 1, 4, 0};\n\n //lower corner\n System.arraycopy(envelope, 0, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getLowerCorner(envelope)));\n\n //upper corner\n System.arraycopy(envelope, 3, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getUpperCorner(envelope)));\n\n //median\n expectedResult[0] = -1;\n expectedResult[1] = 3;\n expectedResult[2] = 0;\n assertTrue(Arrays.equals(expectedResult, getMedian(envelope)));\n }",
"@org.junit.Test\n public void getUniformParamsTestCurve4() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(15, 20),\n new Vector(10, 30), new Vector(15, 30));\n List<Double> params = curve.getUniformParams(6);\n assertEquals(6, curve.getUniformParams(6).size());\n\n // check that each point is further down the line of the curve\n // each x and y should be larger than the previous\n Vector prev = curve.getPoint(params.get(0));\n for (int i = 1; i < params.size(); i++) {\n Vector point = curve.getPoint(params.get(i));\n assertTrue(point.x > prev.x);\n assertTrue(point.y > prev.y);\n }\n\n // check that the first and the last sampling points are equal to starting and ending controlling points\n assertEquals(new Vector(10, 20), curve.getPoint(params.get(0)));\n assertEquals(new Vector(15, 30), curve.getPoint(params.get(params.size() - 1))); }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints) {\n return create(inputPoints, outputPoints, DEFAULT_ROBUST_METHOD);\n }",
"private double threeDimensionalSolveQ1(RealMatrix u, RealMatrix v, double q3) {\r\n double u11 = u.getEntry(0, 0);\r\n double u12 = u.getEntry(0, 1);\r\n double u13 = u.getEntry(0, 2);\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v1 = v.getEntry(0, 0);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (((u12*v2)/(u11*u22)) - (v1/u11)) + ((((u12*u23)/(u11*u22)) - (u13/u11))*q3);\r\n }",
"public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }",
"public MetricTransformation2DRobustEstimator(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n boolean weakMinimumSizeAllowed) {\n this(listener);\n mWeakMinimumSizeAllowed = weakMinimumSizeAllowed;\n internalSetPoints(inputPoints, outputPoints);\n }",
"private Point2D[] CalculateBezierCurve(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, int samples_interval){ \n \n \n \n double control_point_1_x; \n double control_point_1_y; \n double control_point_2_x; \n double control_point_2_y; \n \n \n //Calculate the control points for the cubic bezier line \n control_point_1_x =controlPoint(x0,x1,x2); \n control_point_1_y =controlPoint(y0,y1,y2); \n \n control_point_2_x = controlPoint(x3,x2,x1); \n control_point_2_y = controlPoint(y3,y2,y1); \n \n //System.out.println(\"control1: \" + control_point_1_x + \" -- \" + control_point_1_y); \n //System.out.println(\"control2: \" + control_point_2_x + \" -- \" + control_point_2_y); \n \n \n double cx = 3.0 * (control_point_1_x - x1); \n double bx = 3.0 * (control_point_2_x - control_point_1_x) - cx; \n double ax = x2 - x1 - cx - bx; \n \n double cy = 3.0 * (control_point_1_y - y1); \n double by = 3.0 * (control_point_2_y - control_point_1_y) - cy; \n double ay = y2 - y1 - cy - by; \n \n //Let's calculate all the ponits that follow the Bezier curve. \n Point2D[] points = new Point2D[samples_interval]; \n for(int j = 0; j < samples_interval; j++){ \n double t = j*(1.0/samples_interval); \n //System.out.println(\"j: \" + j + \" t: \" + t + \" samples_int: \" + (samples_interval)); \n double x = (ax * t * t * t) + (bx * t * t) + (cx * t) + x1; \n double y = (ay * t * t * t) + (by * t *t) + (cy * t) + y1; \n //System.out.println(\"x: \" + x + \" y: \" + y + \" t: \" + t); \n points[j] = new Point2D.Double(x,y); \n } \n return points; \n }",
"public void c(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)\r\n/* 77: */ {\r\n/* 78: 89 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2 + paramDouble3 * paramDouble3);\r\n/* 79: */ \r\n/* 80: 91 */ paramDouble1 /= f1;\r\n/* 81: 92 */ paramDouble2 /= f1;\r\n/* 82: 93 */ paramDouble3 /= f1;\r\n/* 83: */ \r\n/* 84: 95 */ paramDouble1 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 85: 96 */ paramDouble2 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 86: 97 */ paramDouble3 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 87: */ \r\n/* 88: 99 */ paramDouble1 *= paramFloat1;\r\n/* 89:100 */ paramDouble2 *= paramFloat1;\r\n/* 90:101 */ paramDouble3 *= paramFloat1;\r\n/* 91: */ \r\n/* 92:103 */ this.v = paramDouble1;\r\n/* 93:104 */ this.w = paramDouble2;\r\n/* 94:105 */ this.x = paramDouble3;\r\n/* 95: */ \r\n/* 96:107 */ float f2 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 97: */ \r\n/* 98:109 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 99:110 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f2) * 180.0D / 3.141592741012573D));\r\n/* 100:111 */ this.i = 0;\r\n/* 101: */ }",
"public QuickHull() {\n allPoints =new ArrayList<>();\n convexHull = new ArrayList<>();\n }",
"public CalibrateReturn changeCalibrationCoordinates(JFrame con, MyPoint3D typed1, MyPoint3D typed2) {\n final String title = \"Calibrate\";\n final String prompt1 = \"Enter the coordinates of the \";\n String[] prompts = new String[2];\n prompts[0] = \"first\";\n prompts[1] = \"second\";\n final String prompt2 = \" calibration point:\";\n final String message = \"Enter three numeric values.\";\n MyPoint3D[] newTyped = new MyPoint3D[2];\n \n // Loop over each calibration point:\n for (int i=0 ; i<2 ; i++) {\n \n String input, prompt;\n String[] inputs;\n double x,y,z;\n MyPoint3D p;\n if (i==0) {\n p = typed1;\n } else {\n p = typed2;\n }\n \n // Ask for the spatial coordinates of the current clicked point:\n prompt = prompt1 + prompts[i] + prompt2;\n if (p==null) {\n input = Dialogs.input(con,prompt,title);\n } else {\n input = Dialogs.input(con,prompt,title,p.toString());\n }\n if (input==null) { return null; } // user cancelled\n input = input.trim();\n inputs = input.split(\"[ ]+\");\n if (inputs.length!=3) {\n Dialogs.error(con,\"You must enter 3 values.\",title);\n return null;\n }\n \n // Parse the inputs to doubles and set the current typed point:\n try {\n x = Double.parseDouble(inputs[0].trim());\n y = Double.parseDouble(inputs[1].trim());\n z = Double.parseDouble(inputs[2].trim());\n } catch (NumberFormatException | ArrayIndexOutOfBoundsException e) {\n Dialogs.error(con,message,title);\n return null;\n }\n newTyped[i] = new MyPoint3D(x,y,z);\n \n } // for i\n \n // Return successfully with both altered typed points:\n return new CalibrateReturn(true,newTyped[0],newTyped[1]);\n \n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n }\n }",
"protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener); \n }\n }",
"public double getValue( Coordinate[] controlPoints, Coordinate interpolated );",
"public static AlgebraicVector[] buildHull(Set<AlgebraicVector> points) throws Failure {\n if (points.size() < 3) {\n fail(\"At least three input points are required for a 2d convex hull.\\n\\n\" + points.size() + \" specified.\");\n }\n AlgebraicVector normal = AlgebraicVectors.getNormal(points); \n if(normal.isOrigin()) {\n fail(\"Cannot generate a 2d convex hull from collinear points\");\n }\n if(!AlgebraicVectors.areOrthogonalTo(normal, points)) {\n fail(\"Cannot generate a 2d convex hull from non-coplanar points\");\n }\n\n // JSweet hates maps keyed by objects, so we'll construct this collection\n // separately, and let the xyTo3dMap use strings as keys.\n Collection<AlgebraicVector> keySet = new ArrayList<>();\n \n // Map each 3d point to a 2d projection and rotate it to the XY plane if necessary.\n // Since the 3d points are coplanar, it will be a 1:1 mapping\n // Later, we'll need to map 2d back to 3d so the 2d vector will be the key\n Map<String, AlgebraicVector> xyTo3dMap = map3dToXY( points, normal, keySet );\n \n // calculate the 2d convex hull\n Deque<AlgebraicVector> stack2d = getHull2d( keySet );\n\n // map the 2d convex hull back to the original 3d points\n AlgebraicVector[] vertices3d = new AlgebraicVector[stack2d.size()];\n \n int i = 0;\n for(AlgebraicVector point2d : stack2d) {\n AlgebraicVector point3d = xyTo3dMap.get( point2d.toString( AlgebraicField.VEF_FORMAT ) );\n // order vertices3d so the normal will point away from the origin \n // to make it consistent with the 3d convex hull algorithm\n vertices3d[i++] = point3d;\n }\n return vertices3d;\n }",
"public interface ISurfaceInterpolator {\n /**\n * Gets an interpolated value in a agiven position, from a set of control values.\n * \n * @param controlPoints all the controlpoints to consider to evaluate the interpolated point.\n * @param interpolated the coordinate in which to interpolate.\n * @return the interpolated z value.\n */\n public double getValue( Coordinate[] controlPoints, Coordinate interpolated );\n \n \n public double getBuffer();\n}",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed) {\n return create(inputPoints, outputPoints, weakMinimumSizeAllowed, \n DEFAULT_ROBUST_METHOD);\n }",
"public void determineCoefficients(int splineIndex, double[] positionIn, double v0, double vf, double a0, double af)\n {\n if (!initialized.getBooleanValue())\n throw new RuntimeException(\"QuinticSplineInterpolator is not initialized\");\n\n if (splineIndex > numberOfSplines - 1 || splineIndex < 0)\n throw new RuntimeException(\"SplineIndex is out of bounds\");\n\n if (positionIn.length < numberOfPoints.getValue())\n throw new RuntimeException(\"Length of positionIn is less than the number of points\");\n\n MatrixTools.setMatrixColumnFromArray(a, 0, positionIn, 0, a.getNumRows());\n\n MatrixTools.diff(positionIn, yd);\n\n if (numberOfPoints.getValue() > 2)\n {\n s.unsafe_set(0, 0, positionIn[1] / h.unsafe_get(0, 0) - positionIn[0] / h.unsafe_get(0, 0) - v0);\n for (int i = 0; i < numberOfPoints.getValue() - 2; i++)\n {\n s.unsafe_set(i + 4, 0, yd.unsafe_get(i + 1, 0) / h.unsafe_get(i + 1, 0) - yd.unsafe_get(i, 0) / h.unsafe_get(i, 0));\n }\n }\n else\n {\n s.unsafe_set(0, 0, positionIn[1] / h.unsafe_get(0, 0) - positionIn[0] / h.unsafe_get(0, 0) - v0);\n }\n\n s.unsafe_set(1, 0, a0);\n s.unsafe_set(2,\n 0,\n vf - positionIn[numberOfPoints.getValue() - 1] / h.unsafe_get(numberOfPoints.getValue() - 2, 0)\n + positionIn[numberOfPoints.getValue() - 2] / h.unsafe_get(numberOfPoints.getValue() - 2, 0));\n s.unsafe_set(3, 0, af);\n\n /*\n * TODO: Rewrite so no new objects are created\n */\n\n solver.solve(s, sol);\n\n CommonOps_DDRM.mult(Cblock, sol, c);\n CommonOps_DDRM.mult(D, sol, d);\n\n MatrixTools.setMatrixBlock(e, 0, 0, sol, 2, 0, numberOfPoints.getValue() - 1, 1, 1.0);\n\n MatrixTools.diff(sol, 2, numberOfPoints.getValue(), f);\n CommonOps_DDRM.scale(1.0 / 5.0, f);\n CommonOps_DDRM.elementDiv(f, h);\n\n for (int i = 0; i < numberOfPoints.getValue() - 1; i++)\n {\n double hi = h.unsafe_get(i, 0);\n double hi2 = MathTools.square(hi);\n double hi3 = hi2 * hi;\n double hi4 = hi3 * hi;\n\n b.unsafe_set(i,\n 0,\n yd.unsafe_get(i, 0) / hi - c.unsafe_get(i, 0) * hi - d.unsafe_get(i, 0) * hi2 - e.unsafe_get(i, 0) * hi3 - f.unsafe_get(i, 0) * hi4);\n }\n\n splines[splineIndex].seta(a);\n splines[splineIndex].setb(b);\n splines[splineIndex].setc(c);\n splines[splineIndex].setd(d);\n splines[splineIndex].sete(e);\n splines[splineIndex].setf(f);\n\n splines[splineIndex].setCoefficientsSet(true);\n\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, qualityScores, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, qualityScores, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n }\n }",
"public TriangleElt3D(Point3D[] points, ScalarOperator sop)\n\t\t\tthrows IllegalArgumentException {\n\t\tsuper(points, sop);\n\t\tthis.eltZero = null;\n\t\tthis.eltOne = null;\n\t\tthis.eltTwo = null;\n\t}",
"private void process(ArrayList<Float> points) {\n downsample(3, points);\n vertices = new Vector3f[nrows * ncols];\n texcoord = BufferUtils.createFloatBuffer(2 * nrows * ncols);\n indexes = BufferUtils.createIntBuffer(6 * (nrows - 1) * (ncols - 1));\n Vector3f[][][] fnormals = new Vector3f[nrows - 1][ncols - 1][2];\n normals = new Vector3f[nrows * ncols];\n float x, z;\n\n System.out.println(\"Processing \" + nrows + \"x\" + ncols + \" terrain...\");\n\n // First make vertices + texcoords\n x = 0.0f;\n for (int row = 0; row < nrows; row++) {\n z = 0.0f;\n for (int col = 0; col < ncols; col++) {\n vertices[(row * ncols) + col] = new Vector3f(x, data[row][col], z);\n texcoord.put(col / (float) ncols);\n texcoord.put(row / (float) nrows);\n z += cellsize;\n }\n x += cellsize;\n }\n // Indexes + face normals\n System.out.println(\"Populating faces...\");\n for (int row = 0; row < (nrows - 1); row++) {\n for (int col = 0; col < (ncols - 1); col++) {\n int base = 6 * ((row * (ncols - 1)) + col);\n // Triangle 1\n indexes.put((row * ncols) + col); // a\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col); // c\n // Triangle 2\n indexes.put(((row + 1) * ncols) + col); // c\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col + 1); // d\n // Faces\n base = (row * ncols) + col;\n Vector3f a = vertices[base];\n Vector3f b = vertices[base + 1];\n Vector3f c = vertices[base + ncols];\n Vector3f d = vertices[base + ncols + 1];\n Vector3f ba = b.subtract(a);\n Vector3f ca = c.subtract(a);\n Vector3f bc = b.subtract(c);\n Vector3f dc = d.subtract(c);\n // ormal.subtractLocal(pointa).crossLocal(pointc.x - pointa.x,\n // pointc.y - pointa.y, pointc.z - pointa.z);\n fnormals[row][col][0] = ba.crossLocal(ca).normalizeLocal();\n fnormals[row][col][1] = bc.crossLocal(dc).normalizeLocal();\n // Triangle ta = new Triangle(a,b,c);\n // Triangle tb = new Triangle(c,b,d);\n }\n }\n System.out.println(\"Calculating face normals...\");\n // Vector normals\n Vector3f t;\n // Corners\n // TL\n t = fnormals[0][0][0].add(fnormals[0][0][1]);\n t.normalizeLocal();\n normals[0] = t;\n // TR\n t = fnormals[0][ncols - 2][0].add(fnormals[0][ncols - 2][1]);\n t.normalizeLocal();\n normals[ncols - 1] = t;\n // BL\n t = fnormals[nrows - 2][0][0].add(fnormals[nrows - 2][0][1]);\n t.normalizeLocal();\n normals[(nrows - 1) * ncols] = t;\n // BR\n t = fnormals[nrows - 2][ncols - 2][0].add(fnormals[nrows - 2][ncols - 2][1]);\n t.normalizeLocal();\n normals[(nrows * ncols) - 1] = t;\n // Do first row and last row\n for (int col = 1; col < (ncols - 1); col++) {\n // First row\n t = fnormals[0][col - 1][0].add(fnormals[0][col - 1][1]);\n t.addLocal(fnormals[0][col][0]);\n t.addLocal(fnormals[0][col][1]);\n t.normalizeLocal();\n normals[col] = t;\n // Last row\n t = fnormals[nrows - 2][col - 1][0].add(fnormals[nrows - 2][col - 1][1]);\n t.addLocal(fnormals[nrows - 2][col][0]);\n t.addLocal(fnormals[nrows - 2][col][1]);\n t.normalizeLocal();\n normals[((nrows - 1) * ncols) + col] = t;\n }\n // Do first and last column\n for (int row = 1; row < (nrows - 1); row++) {\n // First col\n t = fnormals[row - 1][0][0].add(fnormals[row - 1][0][1]);\n t.addLocal(fnormals[row][0][0]);\n t.addLocal(fnormals[row][0][1]);\n t.normalizeLocal();\n normals[row * ncols] = t;\n // Last col\n t = fnormals[row - 1][ncols - 2][0].add(fnormals[row - 1][ncols - 2][1]);\n t.addLocal(fnormals[row][ncols - 2][0]);\n t.addLocal(fnormals[row][ncols - 2][1]);\n t.normalizeLocal();\n normals[(row * ncols) + (ncols - 1)] = t;\n // Centre cols\n for (int col = 1; col < (ncols - 1); col++) {\n t = fnormals[row - 1][col - 1][0].add(fnormals[row - 1][col - 1][1]);\n t.addLocal(fnormals[row - 1][col][0]);\n t.addLocal(fnormals[row - 1][col][1]);\n t.addLocal(fnormals[row][col - 1][0]);\n t.addLocal(fnormals[row][col - 1][1]);\n t.addLocal(fnormals[row][col][0]);\n t.addLocal(fnormals[row][col][1]);\n t.normalizeLocal();\n normals[(row * ncols) + col] = t;\n }\n }\n System.out.println(\"Processing finished...\");\n setBuffer(VertexBuffer.Type.Position, 3, BufferUtils.createFloatBuffer(vertices));\n setBuffer(VertexBuffer.Type.TexCoord, 2, texcoord);\n setBuffer(VertexBuffer.Type.Index, 3, indexes);\n setBuffer(VertexBuffer.Type.Normal, 3, BufferUtils.createFloatBuffer(normals));\n updateBound();\n System.out.println(\"NE corner: \" + vertices[vertices.length - 1].mult(0.006f));\n // Hint to renderer that we don't plan on modifying the terrain.\n this.setStatic();\n }",
"public static ReferenceSensor create(UUID channelId, String instrumentManufacturer,\n String instrumentModel, String serialNumber, int numberOfComponents,\n double cornerPeriod, double lowPassband, double highPassband,\n Instant actualTime, Instant systemChangeTime,\n InformationSource informationSource, String comment) {\n\n return new ReferenceSensor(channelId, instrumentManufacturer, instrumentModel,\n serialNumber, numberOfComponents, cornerPeriod, lowPassband, highPassband,\n actualTime, systemChangeTime, informationSource, comment);\n }",
"public void process(){\n\n for(int i = 0; i < STEP_SIZE; i++){\n String tmp = \"\" + accData[i][0] + \",\" + accData[i][1] + \",\"+accData[i][2] +\n \",\" + gyData[i][0] + \",\" + gyData[i][1] + \",\" + gyData[i][2] + \"\\n\";\n try{\n stream.write(tmp.getBytes());\n }catch(Exception e){\n //Log.d(TAG,\"!!!\");\n }\n\n }\n\n /**\n * currently we don't apply zero-mean, unit-variance operation\n * to the data\n */\n // only accelerator's data is using, currently 200 * 3 floats\n // parse the 1D-array to 2D\n\n if(recognizer.isInRecognitionState() &&\n recognizer.getGlobalRecognitionTimes() >= Constants.MAX_GLOBAL_RECOGNITIOME_TIMES){\n recognizer.resetRecognitionState();\n }\n if(recognizer.isInRecognitionState()){\n recognizer.removeOutliers(accData);\n recognizer.removeOutliers(gyData);\n\n double [] feature = new double [FEATURE_SIZE];\n recognizer.extractFeatures(feature, accData, gyData);\n\n int result = recognizer.runModel(feature);\n String ret = \"@@@\";\n if(result != Constants.UNDEF_RET){\n if(result == Constants.FINISH_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(Constants.FINISH_INFO);\n waitForPlayout(1);\n recognizer.resetLastGesutre();\n recognizer.resetRecognitionState();\n ret += \"1\";\n }else if(result == Constants.RIGHT_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(\"Now please do Step \" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n ret += \"1\";\n }else if(result == Constants.ERROR_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getExpectedGesture());\n waitForPlayout(1);\n ret += \"0\";\n }else if(result == Constants.ERROR_AND_FORWARD_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getLastGesture());\n waitForPlayout(1);\n if(recognizer.getExpectedGesture() <= Constants.STATE_SPACE){\n mUserWarningService.playSpeech(\n \"Step \" + recognizer.getLastGesture() + \"missing \" +\n \". Now please do Step\" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n }else{\n recognizer.resetRecognitionState();\n mUserWarningService.playSpeech(\"Recognition finished.\");\n waitForPlayout(1);\n }\n\n\n ret += \"0\";\n }\n ret += \",\" + Integer.toString(result) + \"@@@\";\n\n Log.d(TAG, ret);\n Message msg = new Message();\n msg.obj = ret;\n mWriteThread.writeHandler.sendMessage(msg);\n }\n }\n\n }",
"public CalibrateReturn calibrate(JFrame con, MyPoint2D clickPoint, MyPoint3D typed1, MyPoint3D typed2) {\n final String title = \"Calibrate\";\n final String prompt1 = \"Enter the coordinates of the \";\n final String prompt2 = \" calibration point:\";\n final String message = \"Enter three numeric values.\";\n \n // Determine which calibration point to work with and get the coordinates for that point:\n MyPoint3D p;\n String prompt;\n if (getClicked1()==null) { // neither have been set\n // We will set the first calibration point:\n p = typed1;\n prompt = \"first\";\n } else if (getClicked2()==null) { // only the first has been set\n // We will set the second calibration point:\n p = typed2;\n prompt = \"second\";\n } else { // both have been set\n // We will set the first calibration point:\n p = typed1;\n prompt = \"first\";\n }\n\n // Ask for the spatial coordinates of the clicked point:\n prompt = prompt1 + prompt + prompt2;\n String input;\n if (p==null) {\n input = Dialogs.input(con,prompt,title);\n } else {\n input = Dialogs.input(con,prompt,title,p.toString());\n }\n if (input==null) { return null; } // user cancelled\n input = input.trim();\n String[] inputs = input.split(\"[ ]+\");\n if (inputs.length!=3) {\n Dialogs.error(con,\"You must enter 3 values.\",title);\n return null;\n }\n \n // Parse the inputs to doubles:\n double x,y,z;\n try {\n x = Double.parseDouble(inputs[0].trim());\n y = Double.parseDouble(inputs[1].trim());\n z = Double.parseDouble(inputs[2].trim());\n } catch (NumberFormatException | ArrayIndexOutOfBoundsException e) {\n Dialogs.error(con,message,title);\n return null;\n }\n\n // Determine which calibration point to work with and return the appropriate value:\n MyPoint3D newTyped = new MyPoint3D(x,y,z);\n if (getClicked1()==null) { // neither have been set\n // Set the first calibration point:\n setClicked1(clickPoint);\n //setTyped1(newTyped);\n return new CalibrateReturn(true,newTyped,null);\n } else if (getClicked2()==null) { // only the first has been set\n // Check the second calibration point is okay:\n if (clickPoint.getX()==getClicked1().getX()) {\n Dialogs.error(con,\"The points lie on the same vertical line!\",title);\n //clearCalibration();\n return null;\n }\n if (clickPoint.getY()==getClicked1().getY()) {\n Dialogs.error(con,\"The points lie on the same horizontal line!\",title);\n //clearCalibration();\n return null;\n }\n // Set the second calibration point:\n setClicked2(clickPoint);\n //setTyped2(newTyped);\n return new CalibrateReturn(false,null,newTyped); // don't need to continue because both typed points have now been entered\n } else { // both have been set\n // Set the first and clear the second:\n setClicked1(clickPoint);\n //setTyped1(newTyped);\n setClicked2(null);\n // (keep the typed2 point for later use)\n return new CalibrateReturn(true,newTyped,null);\n }\n \n }",
"public static BoundingPolytope computePolytope(double[] points)\n\t{\n\t\tBoundingPolytope frustum = new BoundingPolytope();\n\t\t\n\t\tVector3d a1 = new Vector3d(points[0],points[1],points[2]);\n\t\tVector3d a2 = new Vector3d(points[4],points[5],points[6]);\n\t\tVector3d b1 = new Vector3d(points[8],points[9],points[10]);\n\t\tVector3d b2 = new Vector3d(points[12],points[13],points[14]);\n\t\tVector3d c1 = new Vector3d(points[16],points[17],points[18]);\n\t\tVector3d c2 = new Vector3d(points[20],points[21],points[22]);\n\t\tVector3d d1 = new Vector3d(points[24],points[25],points[26]);\n\t\tVector3d d2 = new Vector3d(points[28],points[29],points[30]);\n\t\t\n\t\t\n\t\tVector4d[] planes = new Vector4d[] {\n\t\tcomputePlane(a1,b1,a2),\n\t\tcomputePlane(d1,c1,d2),\n\t\tcomputePlane(b1,d1,b2),\n\t\tcomputePlane(c1,a1,c2),\n\t\tcomputePlane(c1,d1,a1),\n\t\tcomputePlane(d2,c2,b2),\n\t\t};\n\t\t\n\t\tfrustum.setPlanes(planes);\n\t\t\n\t\treturn frustum;\n\t}",
"@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }",
"private void internalSetPoints(List<Point3D> points) {\n if (points.size() < MINIMUM_SIZE) {\n throw new IllegalArgumentException();\n }\n mPoints = points;\n }",
"@Override\n public void init() throws Exception {\n Mapper mapper = new Mapper() {\n public double f(double x, double y) {\n try {\n return i3d.evaluate(x, y);\n } catch (InterpolationException e) {\n e.printStackTrace();\n return 0;\n }\n }\n };\n \n // Define range and precision for the function to plot\n Range rangeX = new Range((float)i3d.lowerA(), (float)i3d.upperA());\n int stepsX = 100;\n Range rangeY = new Range((float)i3d.lowerB(), (float)i3d.upperB());\n int stepsY = 100;\n \n AbstractDrawable drawable;\n // Create the object to represent the surface\n final Shape surface = Builder.buildOrthonormal(new OrthonormalGrid(rangeX, stepsX, rangeY, stepsY), mapper);\n surface.setColorMapper(new ColorMapper(new ColorMapRainbow(),\n surface.getBounds().getZmin(), surface.getBounds().getZmax(), COLOR_BASE));\n surface.setWireframeDisplayed(true);\n surface.setWireframeWidth(1);\n surface.setWireframeColor(COLOR_WIRE);\n surface.setFaceDisplayed(true);\n drawable = surface;\n \n // Create a chart\n chart = AWTChartComponentFactory.chart(Quality.Advanced);\n chart.getAxeLayout().setXTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setYTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setZTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setFaceDisplayed(false);\n chart.getAxeLayout().setMainColor(COLOR_MAIN);\n chart.getView().setBackgroundColor(COLOR_BG);\n chart.getScene().getGraph().add(drawable);\n \n chart.getAxeLayout().setXAxeLabel(\"Length\");\n chart.getAxeLayout().setYAxeLabel(\"Time\");\n chart.getAxeLayout().setZAxeLabel(\"Temperature\");\n }",
"public interface ITrainingService {\n\n void train(double[][] gestures, double[][] responses, Integer numberOfResponses);\n}",
"public LinearRegression(int numberOfSamples) {\n fixedList = new FixedQueue<Point2D>(numberOfSamples);\n }",
"@Test\n\tpublic void testSetActiveRegion3DRadius() throws GeoTessException, IOException\n\t{\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\n\n\t\t//\t\t// define a 3D polygon with small circle and 3 layers.\n\t\t//\t\tdouble[] polygonCenter = VectorGeo.getVectorDegrees(30., 90.);\n\t\t//\n\t\t//\t\tdouble polygonRadius = toRadians(30.);\n\t\t//\n\t\t//\t\tdouble radiusTop = 6371 - 55;\n\t\t//\t\tdouble radiusBottom = 4000.;\n\t\t//\n\t\t//\t\tHorizon top = new HorizonRadius(radiusTop, 4);\n\t\t//\t\tHorizon bottom = new HorizonRadius(radiusBottom, 2);\n\t\t//\n\t\t//\t\tPolygon polygon = new Polygon3D(polygonCenter, polygonRadius,\n\t\t//\t\t\t\t100, bottom, top);\n\n\t\tPolygon3D polygon = new Polygon3D(new File(\"src/test/resources/permanent_files/polygon_small_circle_radii.ascii\"));\n\t\tdouble[] polygonCenter = polygon.getReferencePoint();\n\t\tdouble polygonRadius = VectorUnit.angle(polygonCenter, polygon.getPoint(0));\n\n\t\tdouble radiusTop = polygon.getTop().getValue();\n\t\tdouble radiusBottom = polygon.getBottom().getValue();\n\n\t\tint topLayer = polygon.getTop().getLayerIndex();\n\t\tint bottomLayer = polygon.getBottom().getLayerIndex();\n\n\t\t// set the active region to 3D polygon\n\t\tsmall_model.setActiveRegion(polygon);\n\t\tassertEquals(144, small_model.getPointMap().size());\n\n\t\t// check every point in the point map to ensure that it is within the polygon\n\t\tfor (int i=0; i<small_model.getPointMap().size(); ++i)\n\t\t{\n\t\t\tdouble[] point = small_model.getPointMap().getPointUnitVector(i);\n\t\t\tassertTrue(VectorUnit.angle(polygonCenter, point) < polygonRadius \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) >= bottomLayer \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) <= topLayer\n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) >= radiusBottom \n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) <= radiusTop\n\t\t\t\t\t);\n\t\t}\n\n\t\t// check every node in the small_model. if the node has point index < 0 then\n\t\t// ensure that it is outside the polygon. if the node has point index \n\t\t// >= 0, then it must be within the polygon.\n\t\tboolean passed = true;\n\t\tfor (int vertex=0; vertex<small_model.getGrid().getVertices().length; ++vertex)\n\t\t{\n\t\t\tdouble distance = VectorUnit.angle(polygonCenter, small_model.getGrid().getVertex(vertex));\n\t\t\tProfile[] pp = small_model.getProfiles(vertex);\n\t\t\tfor (int layer=0; layer<small_model.getNLayers(); ++layer)\n\t\t\t{\n\t\t\t\tProfile p = pp[layer];\n\t\t\t\tfor (int n=0; n<p.getNData(); ++n)\n\t\t\t\t{\n\t\t\t\t\tboolean inpolygon = distance < polygonRadius\n\t\t\t\t\t\t\t&& layer >= bottomLayer\n\t\t\t\t\t\t\t&& layer <= topLayer\n\t\t\t\t\t\t\t&& p.getRadius(n) > radiusBottom\n\t\t\t\t\t\t\t&& p.getRadius(n) < radiusTop\n\t\t\t\t\t\t\t;\n\n\t\t\t\t\t\t\tboolean positive = p.getPointIndex(n) >= 0;\n\n\t\t\t\t\t\t\tif (inpolygon != positive) passed = false;\n\n\t\t\t\t\t\t\tif (inpolygon != positive)\n\t\t\t\t\t\t\t\tSystem.out.printf(\"testSetActiveRegion3DRadii ptIndex=%d dist=%1.3f layer=%d radius=%1.3f%n\",\n\t\t\t\t\t\t\t\t\t\tp.getPointIndex(n),\n\t\t\t\t\t\t\t\t\t\tMath.toDegrees(distance), \n\t\t\t\t\t\t\t\t\t\tlayer,\n\t\t\t\t\t\t\t\t\t\tp.getRadius(n));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tassertTrue(passed);\n\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\t\t\n\n\t}",
"@Test\n public void testConstructor() {\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(0, 1, 0),\n new Point3D(1, 0, 0), new Point3D(-1, 1, 1));\n fail(\"Constructed a polygon with wrong order of vertices\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC03: Not in the same plane\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 2, 2));\n fail(\"Constructed a polygon with vertices that are not in the same plane\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC04: Concave quadrangular\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0.5, 0.25, 0.5));\n fail(\"Constructed a concave polygon\");\n } catch (IllegalArgumentException e) {\n }\n\n // =============== Boundary Values Tests ==================\n\n // TC10: Vertex on a side of a quadrangular\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 0.5, 0.5));\n fail(\"Constructed a polygon with vertix on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC11: Last point = first point\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 0, 1));\n fail(\"Constructed a polygon with vertice on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC12: Colocated points\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 1, 0));\n fail(\"Constructed a polygon with vertice on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n }",
"private int calculatePoints(boolean firstCheckBoxIsChecked, boolean secondCheckBoxIsChecked, String questionFourAnswered, int selectedIdQ2, int selectedIdQ3, boolean thirdCheckBoxIsChecked, boolean fourthCheckBoxIsChecked) {\n int basePoints = 0;\n int correctIdQ2 = R.id.question_two_answer_c;\n int correctIdQ3 = R.id.question_three_answer_b;\n\n //On question 1, checkboxes 1 & 2 are correct. If the user gets 1 correct answer, they get 1 point. If they get\n //2 correct answers, they get 2 points. If they get 1 correct answer & 1 incorrect answer, they still get 1 point.\n //For 2 correct & 1 incorrect answer, two points are given. If all boxes are ticked, no points are given.\n if (firstCheckBoxIsChecked && secondCheckBoxIsChecked) {\n if (!thirdCheckBoxIsChecked && !fourthCheckBoxIsChecked) {\n basePoints = basePoints + 2;\n } else {\n return basePoints;\n }\n } else if (secondCheckBoxIsChecked) {\n if (!thirdCheckBoxIsChecked && !fourthCheckBoxIsChecked) {\n basePoints = basePoints + 1;\n } else if (thirdCheckBoxIsChecked) {\n basePoints = basePoints + 1;\n } else if (fourthCheckBoxIsChecked) {\n basePoints = basePoints + 1;\n } else {\n return basePoints;\n }\n } else if (firstCheckBoxIsChecked) {\n if (!thirdCheckBoxIsChecked && !fourthCheckBoxIsChecked) {\n basePoints = basePoints + 1;\n } else if (thirdCheckBoxIsChecked) {\n basePoints = basePoints + 1;\n } else if (fourthCheckBoxIsChecked) {\n return basePoints = basePoints + 1;\n } else {\n return basePoints;\n }\n }\n\n //If the content input in the EditText field is the same as the correct answer provided, the user gets 1 point\n if (questionFourAnswered.contentEquals(getString(R.string.question_4_answer))) {\n basePoints = basePoints + 1;\n }\n //if the user selects the answer which has got the same id as the correct answer, the user gets one point\n if (selectedIdQ2 == correctIdQ2) {\n basePoints = basePoints + 1;\n }\n if (selectedIdQ3 == correctIdQ3) {\n basePoints = basePoints + 1;\n }\n return basePoints;\n }",
"public float[] calibrate(Base mBase, Sensor mSensor) {\n final double metersPerLatitude;\n final double metersPerLongitude;\n\n\n\n //Fetching the cisco position for the robot, which returns\n float ciscoLong = (float) 8.57617285865058;\n float ciscoLat = (float) 58.33447638466072;\n\n\n metersPerLongitude = distanceCalculator.calculateDistance(ciscoLong, ciscoLat, ciscoLong + 1.0, ciscoLat);\n\n metersPerLatitude= distanceCalculator.calculateDistance(ciscoLong, ciscoLat, ciscoLong, ciscoLat + 1.0);\n\n\n float originCiscoPositionx = ciscoLong * (float) metersPerLongitude;\n float originCiscoPositiony = ciscoLat * (float) metersPerLatitude;\n\n\n //Driving 1 meter forward test\n //mBase.addCheckPoint(1, 0);\n\n\n //GetCiscoPosition()\n //These are the actual coordinates of x2 and y2 in latitude and longitude.\n\n\n\n //If Loomo was already headed east, we would expect these coordinates in meters:\n float expectedCiscoPositionx2 = (originCiscoPositionx + 1);\n\n float newCiscoPointlon = (float) 8.57617413279317;\n float newCiscoPointlat = (float) 58.334468102336245;\n\n\n float actualCiscoPositionx2 = newCiscoPointlon * (float) metersPerLongitude;\n float actualCiscoPositiony2 = newCiscoPointlat * (float) metersPerLatitude;\n\n\n\n //Defining 3 vectors that make up a triangle abc\n double[] aVector = {expectedCiscoPositionx2 - originCiscoPositionx, originCiscoPositiony - originCiscoPositiony};\n double[] bVector = {actualCiscoPositionx2 - originCiscoPositionx, actualCiscoPositiony2 - originCiscoPositiony};\n double[] cVector = {expectedCiscoPositionx2 - actualCiscoPositionx2, originCiscoPositiony - actualCiscoPositiony2};\n\n\n\n //Calculating the length of each vector / side of the triangle with the pythagorean therm.\n double aVectorLengthSquared = Math.pow(aVector[0], 2.0) + Math.pow(aVector[1], 2.0);\n double bVectorLengthSquared = Math.pow(bVector[0], 2.0) + Math.pow(bVector[1], 2.0);\n double cVectorLengthSquared = Math.pow(cVector[0], 2.0) + Math.pow(cVector[1], 2.0);\n\n System.out.println(\"Length a = \" + sqrt(aVectorLengthSquared));\n System.out.println(\"Length b = \" + sqrt(bVectorLengthSquared));\n System.out.println(\"Length c = \" + sqrt(cVectorLengthSquared));\n System.out.println(\" \");\n\n //Calculating the angle between the vector from the expected points and the vector from the\n // real points using the cosine law. This gives us an angle ∈ [0,PI].\n float angle = (float) acos((aVectorLengthSquared + bVectorLengthSquared - cVectorLengthSquared)\n / (2 * sqrt(aVectorLengthSquared) * sqrt(bVectorLengthSquared)));\n\n\n\n //If the y-element of the b-vector is negative, that means loomo has been driving\n // southwards. This means, if we are to rotate the coordinates to fit loomo,\n // they will need to be rotated in the positive direction, or against the clock. -> angle = angle\n // If the y-element is positive, then loomo has been driving north, and the coordinates will\n // need to be rotated with the clock. Then \"angle\" will be the negative value\n // found with the cosine law.\n\n if (bVector[1] < 0) {\n angle = angle;\n } else if (bVector[1] > 0) {\n angle = -angle;\n }\n\n System.out.println(\"The angle between the reference systems are: \" + angle + \", which equals \" + angle / PI + \"*PI\\n\" );\n\n mBase.cleanOriginalPoint();\n\n //Setting Fetching the original point where Loomo stands.\n mBase.cleanOriginalPoint();\n Pose2D pose2D = mBase.getOdometryPose(-1);\n mBase.setOriginalPoint(pose2D);\n\n //Driving North: \t58.334512491588754, 8.576253530218082 to 58.33452608839093, 8.576253888068521\n //Driving East: 58.33452608839093, 8.576253888068521 to 58.33452618178464, 8.576285073219395\n //Driving West: 58.33452618178464, 8.576285073219395 to 58.33452693486112, 8.576258173706947\n //Driving South: 58.33452693486112, 8.576258173706947 to 58.33451544969185, 8.576258890746544\n\n float[] calibInfo = {angle, (float) metersPerLongitude, (float) metersPerLatitude};\n return calibInfo;\n }",
"private void createD3Example() {\n\n\t\tSystem.out.println(\"createD3Example\");\n\n\t\tboolean showPoints = true;\n\n\t\tint widthSVG = 1200;\n\t\tint heightSVG = 800;\n\n\t\td3 = browser.getD3();\n//\t\tSystem.out.println(\"D3 version \" + d3.version());\n\t\twebEngine = d3.getWebEngine();\n\n\t\t// apply CSS\n\t\tloadCssForThisClass();\n\n\t\tsvg = d3.select(\"svg\")\n\t\t\t\t.attr(\"width\", widthSVG)\n\t\t\t\t.attr(\"height\", heightSVG);\n\n\t\ttry {\n\n\t\t\tinjectStyleInSVG();\n\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\n\t\t// create initial d3 content\n\n\t\t// data that you want to plot, I\"ve used separate arrays for x and y values\n\t\tdouble[] xData = {5, 10, 25, 32, 40, 40, 15, 7};\n\t\tdouble[] yData = {3, 17, 4, 10, 6, -20, -20.0, 0};\n\n\t\t// size and margins for the chart\n\n\t\tdouble totalWidth = 550;\n\t\tdouble totalHeight = 550;\n\n\t\tdouble marginLeft = 60;\n\t\tdouble marginRight = 15;\n\n\t\tdouble marginTop = 20;\n\t\tdouble marginBottom = 60;\n\n\t\tdouble width = totalWidth - marginLeft - marginRight;\n\t\tdouble height = totalHeight - marginTop - marginBottom;\n\n\t\t// x and y scales, I've used linear here but there are other options\n\t\t// the scales translate data values to pixel values for you\n\t\tdouble xMin = 0;\n\t\tdouble xMax = 50;\n\t\tLinearScale x = d3.scale().linear() //\n\t\t .domain(new double[]{xMin, xMax}) // the range of the values to plot\n\t\t .range(new double[]{0, width}); // the pixel range of the x-axis\n\n\t\tdouble yMin = -25;\n\t\tdouble yMax = 25;\n\t\tLinearScale y = d3.scale().linear() //\n\t\t .domain(new double[]{yMin, yMax}) //\n\t\t .range(new double[]{height, 0});\n\n\t\t// the chart object, includes all margins\n\t\tSelection chart = d3.select(\"svg\") //\n\t\t\t.attr(\"width\", width + marginRight + marginLeft) //\n\t\t\t.attr(\"height\", height + marginTop + marginBottom) //\n\t\t\t.attr(\"class\", \"chart\");\n\n\t\t// the main object where the chart and axis will be drawn\n\t\tSelection main = chart.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(\" + marginLeft + \",\" + marginTop + \")\") //\n\t\t\t.attr(\"width\", width) //\n\t\t\t.attr(\"height\", height) //\n\t\t\t.attr(\"class\", \"main\");\n\n\t\t// draw the x axis\n\t\tAxis xAxis = d3.svg().axis().scale(x).orient(Orientation.BOTTOM);\n\n\t\t//xAxis.innerTickSize(10);\n\n\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,\" + height + \")\") //\n\t\t\t.attr(\"class\", \"main axis date\").call(xAxis);\n\n\t\t// draw the y axis\n\t\tAxis yAxis = d3.svg().axis() //\n\t\t\t.scale(y) //\n\t\t\t.orient(Orientation.LEFT);\n\t\t\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,0)\") //\n\t\t\t.attr(\"class\", \"main axis date\") //\n\t\t\t.call(yAxis);\n\n\t\t// draw the graph object\n\t\tSelection g = main.append(\"svg:g\");\n\n\t\tg.selectAll(\"scatter-dots\")\n\t\t .data(yData) // using the values in the ydata array\n\t\t .enter().append(\"svg:circle\") // create a new circle for each value\n\t\t .attr(\"cy\", new YAxisDatumFunction(webEngine, y, yData) ) // translate y value to a pixel\n\t\t .attr(\"cx\", new XAxisDatumFunction(webEngine, x, xData)) // translate x value\n\t\t .attr(\"r\", 5) // radius of circle\n\t\t .style(\"opacity\", 1.0); // opacity of circle\n\n\n\t\t// Line, the path generator\n\t\tLine line;\n\n\t\tInterpolationMode mode = InterpolationMode.LINEAR;\n\n\t\tline = d3.svg().line()\n\t\t\t\t.x(new XAxisDatumFunction(webEngine, x, xData))\n\t\t\t\t.y(new YAxisDatumFunction(webEngine, y, yData));\n\n\t\tSelection g2 = g.append(\"svg:g\")\n\t\t\t\t.classed(\"Pippo-line-group\", true);\n\n\t\tString cssClassName = \"Agodemar-Test-Line\";\n\t\tSelection pathLine = g2.append(\"path\").classed(cssClassName, true);\n\t\tpathLine\n\t\t\t.attr(\"fill\",\"none\")\n\t\t\t.attr(\"stroke\",\"red\")\n\t\t\t.attr(\"stroke-width\",\"5\")\n\t\t\t.attr(\"stroke-linecap\",\"square\") // \"butt\", \"round\", \"square\"\n\t\t\t.attr(\"stroke-dasharray\",\"15,10\");\n\n\t\tfinal Stack<Coords> points = new Stack<>();\n\n//\t\tdouble [] x = {50.0, 120.0, 400.0, 700};\n//\t\tdouble [] y = {100.0, 30.0, 20.0, 200};\n\n\t\tIntStream.range(0, xData.length)\n\t\t\t.forEach(i ->\n\t\t\t\t\tpoints.push(new Coords(webEngine, xData[i], yData[i]))\n\t\t\t\t\t);\n\n//\t\tSystem.out.println(\"points:\");\n//\t\tpoints.stream()\n//\t\t\t.forEach(p -> System.out.println(p.x()+\", \"+p.y()));\n\n\t\tmode = InterpolationMode.MONOTONE;\n\t\tline = line.interpolate(mode);\n\t\tSystem.out.println(\"Interpolation mode: \" + line.interpolate());\n\n\t\tdouble tension = 0.1;\n\t\tline = line.tension(tension);\n//\t\tSystem.out.println(\"tension: \" + line.tension());\n\n\t\tList<Coords> coordsList = new ArrayList<>(points);\n\n//\t\tSystem.out.println(\"coordsList:\");\n//\t\tcoordsList.stream()\n//\t\t\t.forEach(c -> System.out.println(c.x()+\", \"+c.y()));\n\n\t\tString coordinates = line.generate(coordsList);\n\n//\t\tSystem.out.println(\"coordinates: \" + coordinates);\n\n\t\tpathLine.attr(\"d\", coordinates);\n\n\t\tLabelFactory labelFactory = new LabelFactory();\n\t\t\n//\t\tSelection myText = labelFactory.createInParentSelection(svg);\n//\t\tmyText.text(\"Agodemar!!!\");\n\t\t\n\t\tSelection text = svg.append(\"text\") //\n\t\t\t\t.attr(\"x\", 20) // String.format(\"%d\", widthSVG/2))\n\t\t\t\t.attr(\"y\", 100) // String.format(\"%d\", heightSVG/2))\n\t\t\t\t.text(\"Hello World\");\t\t\n\t\t\n\t\tsvg.append(\"g\")\n\t\t\t.attr(\"class\", \"main\")\n\t\t\t.append(\"text\")\n\t\t\t.attr(\"x\", 20).attr(\"dx\", \"12em\")\n\t\t\t.attr(\"y\", 56).attr(\"dy\", \"2em\")\n\t\t\t.attr(\"font\",\"20px sans-serif\")\n\t\t\t.text(\"Agodemar!!!\");\n\n//\t\tsvg.append(\"g\")\n//\t\t\t.attr(\"class\", \"y\" + \" \" + \"axis\")\n//\t\t\t.call(yAxis).append(\"text\")\n//\t\t\t.attr(\"transform\", \"rotate(-90)\")\n//\t\t\t.attr(\"y\", 6).attr(\"dy\", \".71em\")\n//\t\t\t.style(\"text-anchor\", \"end\")\n//\t\t\t.text(\"Frequency\");\n\t\t\n\t\t\n//\t\t// make a paragraph <p> in the html\n//\t\td3.select(\"body\").append(\"p\").text(\"Agodemar :: Hi there!\");\n\n\t}",
"private void obtainRefiningPoints(ArrayList<double[]> points2d_in, Matrix P, double gridSize_in, int gridCount_in[], ArrayList<double[]> points2d_out, ArrayList<double[]> points3d_out) {\n\t\tdouble fuzziness = 25;\n\t\tfor (int x = (gridCount_in[0] > 1 ? 1 : 0); x < gridCount_in[0]; x += 2) {\n\t\t\tfor (int y = (gridCount_in[1] > 1 ? 1 : 0); y < gridCount_in[1]; y += 2) {\n\t\t\t\tfor (int z = 1; z < gridCount_in[2]; z += 2) {\n\t\t\t\t\tMatrix x3D = new Matrix(4, 1);\n\t\t\t\t\tx3D.set(0, 0, x * gridSize_in);\n\t\t\t\t\tx3D.set(1, 0, y * gridSize_in);\n\t\t\t\t\tx3D.set(2, 0, z * gridSize_in);\n\t\t\t\t\tx3D.set(3, 0, 1.0);\n\t\t\t\t\tMatrix x2D = P.mul(x3D);\n\t\t\t\t\tx2D = x2D.div(x2D.get(2));\n\t\t\t\t\tdouble minDistance = 100000;\n\t\t\t\t\tint minDistanceIndex = 0;\n\t\t\t\t\tfor (int j=0;j<points2d_in.size();j++) {\n\t\t\t\t\t\tdouble distance = Math.pow(x2D.get(0) - points2d_in.get(j)[0], 2) + Math.pow(x2D.get(1) - points2d_in.get(j)[1], 2);\n\t\t\t\t\t\tif (distance < minDistance) {\n\t\t\t\t\t\t\tminDistance = distance;\n\t\t\t\t\t\t\tminDistanceIndex = j;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (minDistance < fuzziness) {\n\t\t\t\t\t\tpoints2d_out.add(points2d_in.get(minDistanceIndex));\n\t\t\t\t\t\tpoints3d_out.add(new Matrix(x3D).data);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private double[] quadstepX(DoubleToDouble f, double y0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] x = {(a + c) / 2, (c + b) / 2};\n double[] y = f.evalDouble(x, y0, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = y[0];\n double fe = y[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepX(f, y0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepX(f, y0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }",
"public MetricTransformation2DRobustEstimator(List<Point2D> inputPoints,\n List<Point2D> outputPoints) {\n this();\n internalSetPoints(inputPoints, outputPoints);\n }",
"public static void main(String args[]) {\n\n\tint nx = 200;\n int ny = 300;\n\n\tColorSurfaceData data = new SmoothData3D(nx,ny);\n\n double minX = -2;\n double minY = -3;\n double maxX = 2;\n double maxY = 3; \n\tdouble stepX = (maxX - minX)/(nx-1);\n double stepY = (maxY - minY)/(ny-1); \n\n\tdata.setMinMaxX(minX,maxX);\n\tdata.setMinMaxY(minY,maxY);\n\n\tdouble x,y,v;\n\n\tfor(int i = 0; i < nx; i++){\n\tfor(int j = 0; j < ny; j++){\n\t x = minX + i*stepX;\n\t y = minY + j*stepY;\n v = Math.exp(-(x*x+y*y));\n data.setValue(i,j,v);\n //data.addValue(x,y,v);\n\t}}\n\n\tdouble max_dev = 0;\n\tint i_max = 0, j_max = 0;\n\n\tfor(int i = 6; i < nx-6; i++){\n\tfor(int j = 6; j < ny-6; j++){\n\t x = i*stepX + minX + 0.5*stepX;\n\t y = j*stepY + minY + 0.5*stepY;\n v = Math.abs(Math.exp(-(x*x+y*y)) - data.getValue(x,y))/Math.exp(-(x*x+y*y));\n if(max_dev < v) {\n max_dev = v;\n\t i_max = i;\n\t j_max = j;\n\t }\n\t}} \n\n\tSystem.out.println(\"max dev [%] = \"+max_dev*100);\n\n\tdouble v_calc = 0;\n\tx = i_max*stepX + minX + 0.5*stepX;\n\ty = j_max*stepY + minY + 0.5*stepY; \n\tv = Math.exp(-(x*x+y*y));\n\tv_calc = data.getValue(x,y);\n \tSystem.out.println(\"stepX = \"+stepX);\n \tSystem.out.println(\"stepY = \"+stepY);\n \tSystem.out.println(\"i_max = \"+i_max);\n \tSystem.out.println(\"j_max = \"+j_max);\n \tSystem.out.println(\"x = \"+x);\n \tSystem.out.println(\"y = \"+y);\n \tSystem.out.println(\"v = \"+v);\n \tSystem.out.println(\"v_calc = \"+v_calc); \n\n }",
"SliderListener(Sampler[] samplers,Container pane,int numSampler,char parameter){\n this.samplers = samplers;\n this.pane = pane;\n this.numSampler = numSampler;\n this.parameter = parameter; \n }",
"private primitives.Color AdaptiveDiffusedAndGlossyRec(Point3D centerP, double WidthAndHeight, double minCubeSize, Point3D pIntersection,Vector Vright,Vector Vup , Vector normal, int direction, int level , double k, double ktr, List<Point3D> prePoints) throws Exception {\r\n List<Point3D> nextCenterPList = new LinkedList<Point3D>();\r\n List<Point3D> cornersList = new LinkedList<Point3D>();\r\n List<primitives.Color> colorList = new LinkedList<primitives.Color>();\r\n Point3D tempCorner;\r\n GeoPoint gp;\r\n Ray tempRay;\r\n for (int i = -1; i <= 1; i += 2)\r\n for (int j = -1; j <= 1; j += 2) {\r\n tempCorner = centerP.add(Vright.scale(i * WidthAndHeight / 2)).add(Vup.scale(j * WidthAndHeight / 2));\r\n cornersList.add(tempCorner);\r\n if (prePoints == null || !isInList(prePoints, tempCorner)) {\r\n tempRay = new Ray(pIntersection, tempCorner.subtract(pIntersection), normal);\r\n if ((normal.dotProduct(tempRay.getDir()) < 0 && direction == 1) || (normal.dotProduct(tempRay.getDir()) > 0 && direction == -1)) {\r\n nextCenterPList.add(centerP.add(Vright.scale(i * WidthAndHeight / 4)).add(Vup.scale(j * WidthAndHeight / 4)));\r\n gp = findClosestIntersection(tempRay);\r\n if (gp == null)\r\n colorList.add(scene.background);\r\n else {\r\n colorList.add(calcColor(gp, tempRay, level - 1, k));\r\n } \r\n }\r\n \r\n }\r\n }\r\n\r\n if (nextCenterPList == null || nextCenterPList.size() == 0) {\r\n return primitives.Color.BLACK;\r\n }\r\n\r\n\r\n if (WidthAndHeight < minCubeSize * 2) {\r\n primitives.Color sumColor = primitives.Color.BLACK;\r\n for (primitives.Color color : colorList) {\r\n sumColor = sumColor.add(color);\r\n }\r\n return sumColor.reduce(colorList.size());\r\n }\r\n\r\n\r\n boolean isAllEquals = true;\r\n primitives.Color tempColor = colorList.get(0);\r\n for (primitives.Color color : colorList) {\r\n if (!tempColor.isAlmostEquals(color))\r\n isAllEquals = false;\r\n }\r\n if (isAllEquals && colorList.size() > 1)\r\n return tempColor;\r\n\r\n\r\n tempColor = primitives.Color.BLACK;\r\n for (Point3D center : nextCenterPList) {\r\n tempColor = tempColor.add(AdaptiveDiffusedAndGlossyRec(center, WidthAndHeight / 2, minCubeSize, pIntersection, Vright, Vup, normal, direction, level, k, ktr, cornersList));\r\n }\r\n return tempColor.reduce(nextCenterPList.size());\r\n }",
"@Test\r\n\tpublic void calculQualityAxisWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 3f), new Float(2));\r\n\t}",
"private static native long createContourFitting_0(int ctr, int fd);",
"public ViewerPosition3D()\n {\n }",
"public static Vect3 makeXYZ(double x, String ux, double y, String uy, double z, String uz) {\n\t\treturn new Vect3(Units.from(ux,x),Units.from(uy,y),Units.from(uz,z));\n\t}",
"public static void test1() {\n int n1 = 100, n2 = 100, n3 = 100;\n float v = 1.0f, d = 20.0f;\n float[][][] paint = new float[n3][n2][n1];\n /*\n for (int i3=0; i3<n3; ++i3) {\n for (int i2=0; i2<n2; ++i2) {\n for (int i1=0; i1<n1; ++i1) {\n if (i3<n3/2) cae.paint[i3][i2][i1] = 1.0f;\n }\n }\n }\n */\n Painting3Group p3g = new Painting3Group(paint);\n SphereBrush pb = new SphereBrush();\n Painting3 p3 = p3g.getPainting3();\n// p3.paintAt(50,60,50,v,d,pb);\n// p3.paintAt(50,50,50,v,d,pb);\n// p3.paintAt(50,50,50,v,d,pb);\n p3.paintAt(50,50,50,v,d,pb);\n Contour c = p3.getContour(v);\n\n SimpleFrame sf = new SimpleFrame();\n sf.setTitle(\"Formation\");\n World world = sf.getWorld();\n TriangleGroup tg = new TriangleGroup(c.i,c.x);\n world.addChild(tg);\n sf.setSize(1250,900);\n }",
"private static native long createGuidedFilter_0(long guide_nativeObj, int radius, double eps);"
] | [
"0.7426172",
"0.7282735",
"0.67786705",
"0.6638928",
"0.6546238",
"0.61467886",
"0.6106096",
"0.5992496",
"0.58196706",
"0.5663684",
"0.53706545",
"0.5261676",
"0.5185706",
"0.5166172",
"0.5075014",
"0.5059568",
"0.5054577",
"0.49285087",
"0.49069807",
"0.48829708",
"0.4874609",
"0.477453",
"0.47596163",
"0.4736991",
"0.46750307",
"0.46184507",
"0.4617333",
"0.4589721",
"0.45613745",
"0.4553622",
"0.45522478",
"0.4542703",
"0.45409796",
"0.45172608",
"0.45102975",
"0.44982845",
"0.44977233",
"0.44762352",
"0.44702458",
"0.44272876",
"0.4426251",
"0.4420535",
"0.44117594",
"0.44117367",
"0.4377324",
"0.43546593",
"0.43364492",
"0.43331897",
"0.43147585",
"0.43139386",
"0.42873177",
"0.4274261",
"0.42563763",
"0.42163366",
"0.42136946",
"0.42090642",
"0.42079112",
"0.4200467",
"0.4196625",
"0.4191252",
"0.418473",
"0.41715354",
"0.41613963",
"0.41599238",
"0.4158418",
"0.41525114",
"0.41484666",
"0.4129745",
"0.41285992",
"0.41264823",
"0.41133228",
"0.41106993",
"0.40897217",
"0.40833223",
"0.40807167",
"0.40738449",
"0.40707427",
"0.40698934",
"0.4066299",
"0.40651143",
"0.40648183",
"0.406142",
"0.40576574",
"0.40572223",
"0.40500575",
"0.4037914",
"0.4036528",
"0.40153825",
"0.40141308",
"0.40091074",
"0.4008126",
"0.4001125",
"0.3996954",
"0.39960673",
"0.3995139",
"0.39832464",
"0.3976501",
"0.39714924",
"0.396159",
"0.39597273"
] | 0.6380538 | 5 |
Creates a quadric robust estimator based on 3D point samples and using default robust estimator method. | public static QuadricRobustEstimator create() {
return create(DEFAULT_ROBUST_METHOD);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static QuadricRobustEstimator create(List<Point3D> points) {\n return create(points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores) {\n return create(points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static QuadricRobustEstimator create(List<Point3D> points, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(points);\n case MSAC:\n return new MSACQuadricRobustEstimator(points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(points, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(points, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(points);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points) {\n return create(listener, points, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores) {\n return create(listener, points, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, List<Point3D> points,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener, points);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener, points);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, points, \n qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, points, \n qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener, points);\n }\n }",
"@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public Point3D triangulate() throws LockedException, NotReadyException,\n RobustEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n final LMedSRobustEstimator<Point3D> innerEstimator =\n new LMedSRobustEstimator<>(\n new LMedSRobustEstimatorListener<Point3D>() {\n\n // point to be reused when computing residuals\n private final Point2D mTestPoint = Point2D.create(\n CoordinatesType.HOMOGENEOUS_COORDINATES);\n\n // non-robust 3D point triangulator\n private final SinglePoint3DTriangulator mTriangulator =\n SinglePoint3DTriangulator.create(mUseHomogeneousSolution ?\n Point3DTriangulatorType.LMSE_HOMOGENEOUS_TRIANGULATOR :\n Point3DTriangulatorType.LMSE_INHOMOGENEOUS_TRIANGULATOR);\n\n // subset of 2D points\n private final List<Point2D> mSubsetPoints = new ArrayList<>();\n\n // subst of cameras\n private final List<PinholeCamera> mSubsetCameras =\n new ArrayList<>();\n\n @Override\n public int getTotalSamples() {\n return mPoints2D.size();\n }\n\n @Override\n public int getSubsetSize() {\n return MIN_REQUIRED_VIEWS;\n }\n\n @Override\n public void estimatePreliminarSolutions(final int[] samplesIndices,\n final List<Point3D> solutions) {\n mSubsetPoints.clear();\n mSubsetPoints.add(mPoints2D.get(samplesIndices[0]));\n mSubsetPoints.add(mPoints2D.get(samplesIndices[1]));\n\n mSubsetCameras.clear();\n mSubsetCameras.add(mCameras.get(samplesIndices[0]));\n mSubsetCameras.add(mCameras.get(samplesIndices[1]));\n\n try {\n mTriangulator.setPointsAndCameras(mSubsetPoints,\n mSubsetCameras);\n final Point3D triangulated = mTriangulator.triangulate();\n solutions.add(triangulated);\n } catch (final Exception e) {\n // if anything fails, no solution is added\n }\n }\n\n @Override\n public double computeResidual(final Point3D currentEstimation, final int i) {\n final Point2D point2D = mPoints2D.get(i);\n final PinholeCamera camera = mCameras.get(i);\n\n // project estimated point with camera\n camera.project(currentEstimation, mTestPoint);\n\n // return distance of projected point respect to the original one\n // as a residual\n return mTestPoint.distanceTo(point2D);\n }\n\n @Override\n public boolean isReady() {\n return LMedSRobustSinglePoint3DTriangulator.this.isReady();\n }\n\n @Override\n public void onEstimateStart(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateStart(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateEnd(final RobustEstimator<Point3D> estimator) {\n if (mListener != null) {\n mListener.onTriangulateEnd(\n LMedSRobustSinglePoint3DTriangulator.this);\n }\n }\n\n @Override\n public void onEstimateNextIteration(\n final RobustEstimator<Point3D> estimator, final int iteration) {\n if (mListener != null) {\n mListener.onTriangulateNextIteration(\n LMedSRobustSinglePoint3DTriangulator.this,\n iteration);\n }\n }\n\n @Override\n public void onEstimateProgressChange(\n final RobustEstimator<Point3D> estimator, final float progress) {\n if (mListener != null) {\n mListener.onTriangulateProgressChange(\n LMedSRobustSinglePoint3DTriangulator.this,\n progress);\n }\n }\n });\n\n try {\n mLocked = true;\n innerEstimator.setConfidence(mConfidence);\n innerEstimator.setMaxIterations(mMaxIterations);\n innerEstimator.setProgressDelta(mProgressDelta);\n innerEstimator.setStopThreshold(mStopThreshold);\n return innerEstimator.estimate();\n } catch (final com.irurueta.numerical.LockedException e) {\n throw new LockedException(e);\n } catch (final com.irurueta.numerical.NotReadyException e) {\n throw new NotReadyException(e);\n } finally {\n mLocked = false;\n }\n }",
"public static QuadricRobustEstimator create(double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator(qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"public static QuadricRobustEstimator create(RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator();\n case MSAC:\n return new MSACQuadricRobustEstimator();\n case PROSAC:\n return new PROSACQuadricRobustEstimator();\n case PROMedS:\n return new PROMedSQuadricRobustEstimator();\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator();\n }\n }",
"public abstract Quadric estimate() throws LockedException, \n NotReadyException, RobustEstimatorException;",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener) {\n return create(listener, DEFAULT_ROBUST_METHOD);\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener, qualityScores);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSQuadricRobustEstimator(listener);\n case MSAC:\n return new MSACQuadricRobustEstimator(listener);\n case PROSAC:\n return new PROSACQuadricRobustEstimator(listener);\n case PROMedS:\n return new PROMedSQuadricRobustEstimator(listener);\n case RANSAC:\n default:\n return new RANSACQuadricRobustEstimator(listener);\n }\n }",
"public static QuadricRobustEstimator create(\n QuadricRobustEstimatorListener listener, double[] qualityScores) {\n return create(listener, qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n qualityScores, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n qualityScores, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints);\n }\n }",
"public QuadriCubicSpline(double[] x1, double[] x2, double[] x3, double[] x4, double[][][][] y) {\n\t\tthis.nPoints = x1.length;\n\t\tthis.mPoints = x2.length;\n\t\tthis.lPoints = x3.length;\n\t\tthis.kPoints = x4.length;\n\t\tif (this.nPoints != y.length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x1 and y-row are of different length \" + this.nPoints + \" \" + y.length);\n\t\tif (this.mPoints != y[0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x2 and y-column are of different length \" + this.mPoints + \" \" + y[0].length);\n\t\tif (this.lPoints != y[0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x3 and y-column are of different length \" + this.mPoints + \" \" + y[0][0].length);\n\t\tif (this.kPoints != y[0][0][0].length)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Arrays x4 and y-column are of different length \" + this.kPoints + \" \" + y[0][0][0].length);\n\t\tif ((this.nPoints < 3) || (this.mPoints < 3) || (this.lPoints < 3) || (this.kPoints < 3))\n\t\t\tthrow new IllegalArgumentException(\"The tabulated 4D array must have a minimum size of 3 X 3 X 3 X 3\");\n\n\t\tthis.csm = new CubicSpline(this.nPoints);\n\t\tthis.tcsn = TriCubicSpline.oneDarray(this.nPoints, this.mPoints, this.lPoints, this.kPoints);\n\t\tthis.x1 = new double[this.nPoints];\n\t\tthis.x2 = new double[this.mPoints];\n\t\tthis.x3 = new double[this.lPoints];\n\t\tthis.x4 = new double[this.kPoints];\n\n\t\tthis.y = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tthis.d2ydx2 = new double[this.nPoints][this.mPoints][this.lPoints][this.kPoints];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tthis.x1[i] = x1[i];\n\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\tthis.x2[j] = x2[j];\n\t\tfor (int j = 0; j < this.lPoints; j++)\n\t\t\tthis.x3[j] = x3[j];\n\t\tfor (int j = 0; j < this.kPoints; j++)\n\t\t\tthis.x4[j] = x4[j];\n\t\tfor (int i = 0; i < this.nPoints; i++)\n\t\t\tfor (int j = 0; j < this.mPoints; j++)\n\t\t\t\tfor (int k = 0; k < this.lPoints; k++)\n\t\t\t\t\tfor (int l = 0; l < this.kPoints; l++)\n\t\t\t\t\t\tthis.y[i][j][k][l] = y[i][j][k][l];\n\t}",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator();\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator();\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n inputPoints, outputPoints, weakMinimumSizeAllowed);\n }\n }",
"@Test\n\tpublic void testSetActiveRegion3DRadius() throws GeoTessException, IOException\n\t{\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\n\n\t\t//\t\t// define a 3D polygon with small circle and 3 layers.\n\t\t//\t\tdouble[] polygonCenter = VectorGeo.getVectorDegrees(30., 90.);\n\t\t//\n\t\t//\t\tdouble polygonRadius = toRadians(30.);\n\t\t//\n\t\t//\t\tdouble radiusTop = 6371 - 55;\n\t\t//\t\tdouble radiusBottom = 4000.;\n\t\t//\n\t\t//\t\tHorizon top = new HorizonRadius(radiusTop, 4);\n\t\t//\t\tHorizon bottom = new HorizonRadius(radiusBottom, 2);\n\t\t//\n\t\t//\t\tPolygon polygon = new Polygon3D(polygonCenter, polygonRadius,\n\t\t//\t\t\t\t100, bottom, top);\n\n\t\tPolygon3D polygon = new Polygon3D(new File(\"src/test/resources/permanent_files/polygon_small_circle_radii.ascii\"));\n\t\tdouble[] polygonCenter = polygon.getReferencePoint();\n\t\tdouble polygonRadius = VectorUnit.angle(polygonCenter, polygon.getPoint(0));\n\n\t\tdouble radiusTop = polygon.getTop().getValue();\n\t\tdouble radiusBottom = polygon.getBottom().getValue();\n\n\t\tint topLayer = polygon.getTop().getLayerIndex();\n\t\tint bottomLayer = polygon.getBottom().getLayerIndex();\n\n\t\t// set the active region to 3D polygon\n\t\tsmall_model.setActiveRegion(polygon);\n\t\tassertEquals(144, small_model.getPointMap().size());\n\n\t\t// check every point in the point map to ensure that it is within the polygon\n\t\tfor (int i=0; i<small_model.getPointMap().size(); ++i)\n\t\t{\n\t\t\tdouble[] point = small_model.getPointMap().getPointUnitVector(i);\n\t\t\tassertTrue(VectorUnit.angle(polygonCenter, point) < polygonRadius \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) >= bottomLayer \n\t\t\t\t\t&& small_model.getPointMap().getLayerIndex(i) <= topLayer\n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) >= radiusBottom \n\t\t\t\t\t&& small_model.getPointMap().getPointRadius(i) <= radiusTop\n\t\t\t\t\t);\n\t\t}\n\n\t\t// check every node in the small_model. if the node has point index < 0 then\n\t\t// ensure that it is outside the polygon. if the node has point index \n\t\t// >= 0, then it must be within the polygon.\n\t\tboolean passed = true;\n\t\tfor (int vertex=0; vertex<small_model.getGrid().getVertices().length; ++vertex)\n\t\t{\n\t\t\tdouble distance = VectorUnit.angle(polygonCenter, small_model.getGrid().getVertex(vertex));\n\t\t\tProfile[] pp = small_model.getProfiles(vertex);\n\t\t\tfor (int layer=0; layer<small_model.getNLayers(); ++layer)\n\t\t\t{\n\t\t\t\tProfile p = pp[layer];\n\t\t\t\tfor (int n=0; n<p.getNData(); ++n)\n\t\t\t\t{\n\t\t\t\t\tboolean inpolygon = distance < polygonRadius\n\t\t\t\t\t\t\t&& layer >= bottomLayer\n\t\t\t\t\t\t\t&& layer <= topLayer\n\t\t\t\t\t\t\t&& p.getRadius(n) > radiusBottom\n\t\t\t\t\t\t\t&& p.getRadius(n) < radiusTop\n\t\t\t\t\t\t\t;\n\n\t\t\t\t\t\t\tboolean positive = p.getPointIndex(n) >= 0;\n\n\t\t\t\t\t\t\tif (inpolygon != positive) passed = false;\n\n\t\t\t\t\t\t\tif (inpolygon != positive)\n\t\t\t\t\t\t\t\tSystem.out.printf(\"testSetActiveRegion3DRadii ptIndex=%d dist=%1.3f layer=%d radius=%1.3f%n\",\n\t\t\t\t\t\t\t\t\t\tp.getPointIndex(n),\n\t\t\t\t\t\t\t\t\t\tMath.toDegrees(distance), \n\t\t\t\t\t\t\t\t\t\tlayer,\n\t\t\t\t\t\t\t\t\t\tp.getRadius(n));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tassertTrue(passed);\n\n\t\tsmall_model.setActiveRegion();\n\t\tassertEquals(3714, small_model.getPointMap().size());\t\t\n\n\t}",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(inputPoints, outputPoints, qualityScores, \n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public abstract Point_3 evaluate(double u, double v);",
"public NurbsSurface(int segments, int nr_of_points) {\n always_evaluate = false;\n nr_of_segments = segments;\n points_per_segment = nr_of_points;\n surface_type = 2;\n u = new double[100];\n v = new double[100];\n k = 3;\n int i, j;\n\n step = 0.2;\n evaluated_points = new NurbsPoint[(int) ((double) nr_of_segments / step)][(int) ((double) points_per_segment / step)];\n\n for (i = 0; i < (int) ((double) nr_of_segments / step); i++) {\n for (j = 0; j < (int) ((double) points_per_segment / step); j++) {\n evaluated_points[i][j] = new NurbsPoint(0, 0, 0);\n }\n }\n\n u[0] = 0;\n u[1] = 0;\n u[2] = 0;\n u[3] = 0;\n v[0] = 0;\n v[1] = 0;\n v[2] = 0;\n v[3] = 0;\n\n for (i = 4; i < segments - 4; i++) {\n u[i] = i - 3;\n }\n\n for (i = 4; i < nr_of_points - 4; i++) {\n v[i] = i - 3;\n }\n\n u[segments - 4] = segments - 7;\n u[segments - 3] = segments - 7;\n u[segments - 2] = segments - 7;\n u[segments - 1] = segments - 7;\n\n v[nr_of_points - 4] = nr_of_points - 7;\n v[nr_of_points - 3] = nr_of_points - 7;\n v[nr_of_points - 2] = nr_of_points - 7;\n v[nr_of_points - 1] = nr_of_points - 7;\n\n points = new NurbsPoint[nr_of_segments][points_per_segment];\n }",
"public void ignoreCreateArrayForVec3With6Position() {\r\n\r\n SXRMesh sxrMesh = TestDefaultSXRViewManager.mSXRContext.getAssetLoader().loadMesh(UtilResource.androidResource(TestDefaultSXRViewManager.mSXRContext,R.raw.cylinder3));\r\n float[] vec3 = {-0.5f, 0.5f, 0.0f, -0.5f, 0.5f, 0.0f};\r\n\r\n try {\r\n sxrMesh.setVec3Vector(\"ratio_r\", vec3);\r\n assertNotNull(sxrMesh.getVec4Vector(\"ratio_r\"));\r\n fail();\r\n } catch (InvalidParameterException e) {\r\n assertEquals(e.getMessage(), \"setVec3Vector method support only three position array\");\r\n }\r\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints, \n weakMinimumSizeAllowed);\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n double[] qualityScores) {\n return create(inputPoints, outputPoints, qualityScores, \n DEFAULT_ROBUST_METHOD);\n }",
"@Test\n public void shouldEvaluateWorkProperlyCase3() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.5, 1.5})) ;\n\n assertEquals((1.5 - 0.75) * (1.5 - 0.25) + (0.75 - 0.5) * (1.5 - 0.5) + (0.5 - 0.25) * (1.5 - 0.75), result, 0.0001) ;\n }",
"@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n List<Point2D> inputPoints, List<Point2D> outputPoints, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, inputPoints, outputPoints);\n }\n }",
"@Test\r\n public void testPolynomialApproximator() {\r\n List<Point> data = createLinearDataset();\r\n test(PolynomialApacheMathApproximator.INSTANCE_3, data, null);\r\n }",
"private double threeDimensionalSolveQ1(RealMatrix u, RealMatrix v, double q3) {\r\n double u11 = u.getEntry(0, 0);\r\n double u12 = u.getEntry(0, 1);\r\n double u13 = u.getEntry(0, 2);\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v1 = v.getEntry(0, 0);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (((u12*v2)/(u11*u22)) - (v1/u11)) + ((((u12*u23)/(u11*u22)) - (u13/u11))*q3);\r\n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores) {\n return create(qualityScores, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(qualityScores, weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"protected double residual(Quadric q, Point3D point) {\n q.normalize();\n try {\n if (mTestQ == null) {\n mTestQ = q.asMatrix();\n } else {\n q.asMatrix(mTestQ);\n }\n\n if (mTestPoint == null) {\n mTestPoint = new Matrix(\n Point3D.POINT3D_HOMOGENEOUS_COORDINATES_LENGTH, \n 1);\n }\n point.normalize();\n mTestPoint.setElementAt(0, 0, point.getHomX());\n mTestPoint.setElementAt(1, 0, point.getHomY());\n mTestPoint.setElementAt(2, 0, point.getHomZ());\n mTestPoint.setElementAt(3, 0, point.getHomW());\n Matrix locusMatrix = mTestPoint.transposeAndReturnNew();\n locusMatrix.multiply(mTestQ);\n locusMatrix.multiply(mTestPoint); \n return Math.abs(locusMatrix.getElementAt(0, 0));\n } catch (AlgebraException e) {\n return Double.MAX_VALUE;\n } \n }",
"public abstract Vector4fc normalize3();",
"public double getValue( Coordinate[] controlPoints, Coordinate interpolated );",
"protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);",
"public WB_Normal3d() {\r\n\t\tsuper();\r\n\t}",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, boolean weakMinimumSizeAllowed, \n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, qualityScores, weakMinimumSizeAllowed);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, qualityScores, weakMinimumSizeAllowed);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener, weakMinimumSizeAllowed);\n }\n }",
"public abstract RobustEstimatorMethod getMethod();",
"public abstract RobustEstimatorMethod getMethod();",
"public abstract RobustEstimatorMethod getMethod();",
"@Test\r\n public void testSplineApproximator() {\r\n List<Point> data = createConvergingDataset();\r\n List<ExpectedApproximation> exp = new ArrayList<ExpectedApproximation>();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(1000, 17, 1050));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(1062, 40, 1066));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n\r\n data = createLinearDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(100, 3, 200));\r\n exp.add(new ExpectedApproximation(300, 11, 400));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 100));\r\n exp.add(new ExpectedApproximation(400, 17, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n \r\n data = createIncreasingDecreasingDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(700, 23, 900));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(0, 35, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n }",
"@org.junit.Test\n public void getUniformParamsTestCurve3() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(15, 20), new Vector(15, 30));\n List<Double> params = curve.getUniformParams(6);\n assertEquals(6, curve.getUniformParams(6).size());\n\n // check that each point is further down the line of the curve\n // each x and y should be larger than the previous\n Vector prev = curve.getPoint(params.get(0));\n for (int i = 1; i < params.size(); i++) {\n Vector point = curve.getPoint(params.get(i));\n assertTrue(point.x > prev.x);\n assertTrue(point.y > prev.y);\n }\n\n // check that the first and the last sampling points are equal to starting and ending controlling points\n assertEquals(new Vector(10, 20), curve.getPoint(params.get(0)));\n assertEquals(new Vector(15, 30), curve.getPoint(params.get(params.size() - 1)));\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"private boolean isValidQuiz3(double quiz3)\n\t{\n\t\treturn quiz3 >= 0 && quiz3 <= 10;\n\t}",
"protected abstract void solvePreliminarSolutions(\n final int[] samplesIndices,\n final List<Solution<P>> solutions);",
"@Test\n public void shouldEvaluateWorkProperlyCase4() throws FileNotFoundException {\n Front storeFront = new ArrayFront(\"/pareto_fronts/ZDT1.pf\") ;\n\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n for (int i = 0 ; i < storeFront.getNumberOfPoints(); i++) {\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, storeFront.getPoint(i).getValue(0));\n solution.setObjective(1, storeFront.getPoint(i).getValue(1));\n frontToEvaluate.add(solution) ;\n }\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.6661, result, 0.0001) ;\n }",
"public static MetricTransformation2DRobustEstimator create(\n RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator();\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator();\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator();\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator();\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(); \n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener,\n List<Point2D> inputPoints, List<Point2D> outputPoints,\n double[] qualityScores) {\n return create(listener, inputPoints, outputPoints, qualityScores,\n DEFAULT_ROBUST_METHOD);\n }",
"private double[] quadstepX(DoubleToDouble f, double y0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] x = {(a + c) / 2, (c + b) / 2};\n double[] y = f.evalDouble(x, y0, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = y[0];\n double fe = y[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepX(f, y0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepX(f, y0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }",
"public org.drip.state.estimator.PredictorResponseWeightConstraint fundingPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = forwardLabel();\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.fundingPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"RegressionCurveType createRegressionCurveType();",
"protected EquationStandardEnquiry getEquationStandardEnquiry(String identifier, String fixedFormat) throws Exception\n\t{\n\t\treturn new EquationStandardEnquiry(identifier, fixedFormat, session);\n\t}",
"public void determineCoefficients(int splineIndex, double[] positionIn, double v0, double vf, double a0, double af)\n {\n if (!initialized.getBooleanValue())\n throw new RuntimeException(\"QuinticSplineInterpolator is not initialized\");\n\n if (splineIndex > numberOfSplines - 1 || splineIndex < 0)\n throw new RuntimeException(\"SplineIndex is out of bounds\");\n\n if (positionIn.length < numberOfPoints.getValue())\n throw new RuntimeException(\"Length of positionIn is less than the number of points\");\n\n MatrixTools.setMatrixColumnFromArray(a, 0, positionIn, 0, a.getNumRows());\n\n MatrixTools.diff(positionIn, yd);\n\n if (numberOfPoints.getValue() > 2)\n {\n s.unsafe_set(0, 0, positionIn[1] / h.unsafe_get(0, 0) - positionIn[0] / h.unsafe_get(0, 0) - v0);\n for (int i = 0; i < numberOfPoints.getValue() - 2; i++)\n {\n s.unsafe_set(i + 4, 0, yd.unsafe_get(i + 1, 0) / h.unsafe_get(i + 1, 0) - yd.unsafe_get(i, 0) / h.unsafe_get(i, 0));\n }\n }\n else\n {\n s.unsafe_set(0, 0, positionIn[1] / h.unsafe_get(0, 0) - positionIn[0] / h.unsafe_get(0, 0) - v0);\n }\n\n s.unsafe_set(1, 0, a0);\n s.unsafe_set(2,\n 0,\n vf - positionIn[numberOfPoints.getValue() - 1] / h.unsafe_get(numberOfPoints.getValue() - 2, 0)\n + positionIn[numberOfPoints.getValue() - 2] / h.unsafe_get(numberOfPoints.getValue() - 2, 0));\n s.unsafe_set(3, 0, af);\n\n /*\n * TODO: Rewrite so no new objects are created\n */\n\n solver.solve(s, sol);\n\n CommonOps_DDRM.mult(Cblock, sol, c);\n CommonOps_DDRM.mult(D, sol, d);\n\n MatrixTools.setMatrixBlock(e, 0, 0, sol, 2, 0, numberOfPoints.getValue() - 1, 1, 1.0);\n\n MatrixTools.diff(sol, 2, numberOfPoints.getValue(), f);\n CommonOps_DDRM.scale(1.0 / 5.0, f);\n CommonOps_DDRM.elementDiv(f, h);\n\n for (int i = 0; i < numberOfPoints.getValue() - 1; i++)\n {\n double hi = h.unsafe_get(i, 0);\n double hi2 = MathTools.square(hi);\n double hi3 = hi2 * hi;\n double hi4 = hi3 * hi;\n\n b.unsafe_set(i,\n 0,\n yd.unsafe_get(i, 0) / hi - c.unsafe_get(i, 0) * hi - d.unsafe_get(i, 0) * hi2 - e.unsafe_get(i, 0) * hi3 - f.unsafe_get(i, 0) * hi4);\n }\n\n splines[splineIndex].seta(a);\n splines[splineIndex].setb(b);\n splines[splineIndex].setc(c);\n splines[splineIndex].setd(d);\n splines[splineIndex].sete(e);\n splines[splineIndex].setf(f);\n\n splines[splineIndex].setCoefficientsSet(true);\n\n }",
"private double[] quadstepY(DoubleToDouble f, double x0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] y = {(a + c) / 2, (c + b) / 2};\n double[] v = f.evalDouble(x0, y, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = v[0];\n double fe = v[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepY(f, x0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepY(f, x0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }",
"@Test\n public void shouldEvaluateWorkProperlyCase2() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.25*0.75 + 0.25*0.5 + 0.25*0.25, result, 0.0001) ;\n }",
"public void c(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)\r\n/* 77: */ {\r\n/* 78: 89 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2 + paramDouble3 * paramDouble3);\r\n/* 79: */ \r\n/* 80: 91 */ paramDouble1 /= f1;\r\n/* 81: 92 */ paramDouble2 /= f1;\r\n/* 82: 93 */ paramDouble3 /= f1;\r\n/* 83: */ \r\n/* 84: 95 */ paramDouble1 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 85: 96 */ paramDouble2 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 86: 97 */ paramDouble3 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 87: */ \r\n/* 88: 99 */ paramDouble1 *= paramFloat1;\r\n/* 89:100 */ paramDouble2 *= paramFloat1;\r\n/* 90:101 */ paramDouble3 *= paramFloat1;\r\n/* 91: */ \r\n/* 92:103 */ this.v = paramDouble1;\r\n/* 93:104 */ this.w = paramDouble2;\r\n/* 94:105 */ this.x = paramDouble3;\r\n/* 95: */ \r\n/* 96:107 */ float f2 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 97: */ \r\n/* 98:109 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 99:110 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f2) * 180.0D / 3.141592741012573D));\r\n/* 100:111 */ this.i = 0;\r\n/* 101: */ }",
"@Test\n public void testConstructor() {\n RANSACRadialDistortionRobustEstimator estimator =\n new RANSACRadialDistortionRobustEstimator();\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertNull(estimator.getDistortedPoints());\n assertNull(estimator.getUndistortedPoints());\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertFalse(estimator.arePointsAvailable());\n assertFalse(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // test constructor with listener\n estimator = new RANSACRadialDistortionRobustEstimator(this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertNull(estimator.getDistortedPoints());\n assertNull(estimator.getUndistortedPoints());\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertFalse(estimator.arePointsAvailable());\n assertFalse(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // test constructor with points\n final List<Point2D> distortedPoints = new ArrayList<>();\n final List<Point2D> undistortedPoints = new ArrayList<>();\n for (int i = 0; i < RadialDistortionRobustEstimator.MIN_NUMBER_OF_POINTS; i++) {\n distortedPoints.add(Point2D.create());\n undistortedPoints.add(Point2D.create());\n }\n\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n final List<Point2D> emptyPoints = new ArrayList<>();\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points and listener\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertNull(estimator.getDistortionCenter());\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n 0.0, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points and center\n final Point2D center = Point2D.create();\n\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, center);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertNull(estimator.getListener());\n assertFalse(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertSame(estimator.getDistortionCenter(), center);\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n center.getInhomX(), 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n center.getInhomY(), 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, center);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n\n // test constructor with points, center and listener\n estimator = new RANSACRadialDistortionRobustEstimator(distortedPoints,\n undistortedPoints, center, this);\n\n // check correctness\n assertEquals(estimator.getThreshold(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_THRESHOLD, 0.0);\n assertEquals(estimator.getMethod(), RobustEstimatorMethod.RANSAC);\n assertSame(estimator.getListener(), this);\n assertTrue(estimator.isListenerAvailable());\n assertFalse(estimator.isLocked());\n assertEquals(estimator.getProgressDelta(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_PROGRESS_DELTA,\n 0.0);\n assertEquals(estimator.getConfidence(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_CONFIDENCE, 0.0);\n assertEquals(estimator.getMaxIterations(),\n RANSACRadialDistortionRobustEstimator.DEFAULT_MAX_ITERATIONS);\n assertSame(estimator.getDistortedPoints(), distortedPoints);\n assertSame(estimator.getUndistortedPoints(), undistortedPoints);\n assertSame(estimator.getDistortionCenter(), center);\n assertEquals(estimator.getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getSkew(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalPrincipalPoint(),\n center.getInhomX(), 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalPrincipalPoint(),\n center.getInhomY(), 0.0);\n assertEquals(estimator.getIntrinsic().getHorizontalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getVerticalFocalLength(),\n RadialDistortionRobustEstimator.DEFAULT_FOCAL_LENGTH, 0.0);\n assertEquals(estimator.getIntrinsic().getSkewness(),\n RadialDistortionRobustEstimator.DEFAULT_SKEW, 0.0);\n assertEquals(estimator.getNumKParams(),\n RadialDistortionRobustEstimator.DEFAULT_NUM_K_PARAMS);\n assertTrue(estimator.arePointsAvailable());\n assertTrue(estimator.isReady());\n assertNull(estimator.getQualityScores());\n\n // Force IllegalArgumentException\n estimator = null;\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n undistortedPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(emptyPoints,\n emptyPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n null, undistortedPoints, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n try {\n estimator = new RANSACRadialDistortionRobustEstimator(\n distortedPoints, null, center, this);\n fail(\"IllegalArgumentException expected but not thrown\");\n } catch (final IllegalArgumentException ignore) {\n }\n assertNull(estimator);\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, RobustEstimatorMethod method) {\n switch (method) {\n case LMedS:\n return new LMedSMetricTransformation2DRobustEstimator(\n listener);\n case MSAC:\n return new MSACMetricTransformation2DRobustEstimator(\n listener);\n case PROSAC:\n return new PROSACMetricTransformation2DRobustEstimator(\n listener, qualityScores);\n case PROMedS:\n return new PROMedSMetricTransformation2DRobustEstimator(\n listener, qualityScores);\n case RANSAC:\n default:\n return new RANSACMetricTransformation2DRobustEstimator(\n listener); \n }\n }",
"@Test\n public void shouldEvaluateWorkProperlyCase1() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.25*0.75 + 0.25*0.5, result, 0.0001) ;\n }",
"@Test\n public void test_lowerBound() {\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(0.0d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(0.5d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(0.9999d, new double[] {1, 2, 3})).isEqualTo(0);\n // good input\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.0d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.0001d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.9999d, new double[] {1, 2, 3})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(2.0d, new double[] {1, 2, 3})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(2.0001d, new double[] {1, 2, 3})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(2.9999d, new double[] {1, 2, 3})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(3.0d, new double[] {1, 2, 3})).isEqualTo(2);\n // bad input, but still produces good output\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(3.0001d, new double[] {1, 2, 3})).isEqualTo(2);\n // check zero\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(-1.0d, new double[] {-1, 0, 1})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(-0.9999d, new double[] {-1, 0, 1})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(-0.0001d, new double[] {-1, 0, 1})).isEqualTo(0);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(-0.0d, new double[] {-1, 0, 1})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(0.0d, new double[] {-1, 0, 1})).isEqualTo(1);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.0d, new double[] {-1, 0, 1})).isEqualTo(2);\n assertThat(AbstractBoundCurveInterpolator.lowerBoundIndex(1.5d, new double[] {-1, 0, 1})).isEqualTo(2);\n }",
"public static void R_approxtest(double x[], double y[], int nxy,\n int method, double f)\n {\n int i;\n\n switch(method) {\n case 1: /* linear */\n break;\n case 2: /* constant */\n if(!DoubleVector.isFinite(f) || f < 0 || f > 1)\n throw new EvalException(\"approx(): invalid f value\");\n break;\n default:\n throw new EvalException(\"approx(): invalid interpolation method\");\n }\n /* check interpolation method */\n for(i = 0; i < nxy; i++)\n if(DoubleVector.isNA(x[i]) || DoubleVector.isNA(y[i]))\n throw new EvalException(\"approx(): attempted to interpolate NA values\");\n }",
"@Test\n public void test01() throws Throwable {\n PegasusSolver pegasusSolver0 = new PegasusSolver(0.0, (-1060.0));\n Gaussian gaussian0 = new Gaussian();\n double double0 = pegasusSolver0.solve(4, (UnivariateRealFunction) gaussian0, 125.121193945018, (-2672.0), (-1060.0));\n }",
"@SuppressWarnings(\"DuplicatedCode\")\n @Override\n public RadialDistortion estimate() throws LockedException,\n NotReadyException, RadialDistortionEstimatorException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n try {\n mLocked = true;\n if (mListener != null) {\n mListener.onEstimateStart(this);\n }\n\n final int nPoints = mDistortedPoints.size();\n\n int numRows;\n if (isLMSESolutionAllowed()) {\n // initialize new matrix having two rows per point\n numRows = 2 * nPoints;\n } else {\n // when LMSE is not allowed, restrict matrix to two rows (minimum\n // value required for a solution)\n numRows = 2 * getMinNumberOfMatchedPoints();\n }\n\n final Matrix aMatrix = new Matrix(numRows, mNumKParams);\n final double[] b = new double[numRows];\n\n final Iterator<Point2D> iteratorDistorted = mDistortedPoints.iterator();\n final Iterator<Point2D> iteratorUndistorted =\n mUndistortedPoints.iterator();\n\n Point2D distorted;\n Point2D undistorted;\n int counter = 0;\n\n // undistorted normalized homogeneous coordinates\n double uNormHomX;\n double uNormHomY;\n double uNormHomW;\n // undistorted normalized inhomogeneous coordinates\n double uNormInhomX;\n double uNormInhomY;\n // undistorted denormalized homogeneous coordinates\n double uDenormHomX;\n double uDenormHomY;\n double uDenormHomW;\n // undistorted denormalized inhomogeneous coordinates\n double uDenormInhomX;\n double uDenormInhomY;\n // distorted inhomogeneous coordinates\n double dInhomX;\n double dInhomY;\n double rowNormX;\n double rowNormY;\n\n // radial distortion center\n double centerX = 0.0;\n double centerY = 0.0;\n if (mDistortionCenter != null) {\n centerX = mDistortionCenter.getInhomX();\n centerY = mDistortionCenter.getInhomY();\n }\n\n // radial distance of undistorted normalized (calibration independent)\n // coordinates\n double r2;\n double a;\n double value;\n\n while (iteratorDistorted.hasNext() && iteratorUndistorted.hasNext()) {\n distorted = iteratorDistorted.next();\n undistorted = iteratorUndistorted.next();\n\n undistorted.normalize();\n\n uDenormHomX = undistorted.getHomX();\n uDenormHomY = undistorted.getHomY();\n uDenormHomW = undistorted.getHomW();\n\n uDenormInhomX = uDenormHomX / uDenormHomW;\n uDenormInhomY = uDenormHomY / uDenormHomW;\n\n // multiply intrinsic parameters by undistorted point\n uNormHomX = mKinv.getElementAt(0, 0) * uDenormHomX +\n mKinv.getElementAt(0, 1) * uDenormHomY +\n mKinv.getElementAt(0, 2) * uDenormHomW;\n uNormHomY = mKinv.getElementAt(1, 0) * uDenormHomX +\n mKinv.getElementAt(1, 1) * uDenormHomY +\n mKinv.getElementAt(1, 2) * uDenormHomW;\n uNormHomW = mKinv.getElementAt(2, 0) * uDenormHomX +\n mKinv.getElementAt(2, 1) * uDenormHomY +\n mKinv.getElementAt(2, 2) * uDenormHomW;\n\n uNormInhomX = uNormHomX / uNormHomW;\n uNormInhomY = uNormHomY / uNormHomW;\n\n r2 = uNormInhomX * uNormInhomX + uNormInhomY * uNormInhomY;\n\n dInhomX = distorted.getInhomX();\n dInhomY = distorted.getInhomY();\n\n a = 1.0;\n rowNormX = rowNormY = 0.0;\n for (int i = 0; i < mNumKParams; i++) {\n a *= r2;\n\n // x and y coordinates generate linear dependent equations, for\n // that reason we need more than one point\n\n // x coordinates\n value = (uDenormInhomX - centerX) * a;\n aMatrix.setElementAt(2 * counter, i, value);\n\n rowNormX += Math.pow(value, 2.0);\n\n // y coordinates\n value = (uDenormInhomY - centerY) * a;\n aMatrix.setElementAt(2 * counter + 1, i, value);\n\n rowNormY += Math.pow(value, 2.0);\n }\n\n // x coordinates\n value = dInhomX - uDenormInhomX;\n b[2 * counter] = value;\n\n rowNormX += Math.pow(value, 2.0);\n\n // y coordinates\n value = dInhomY - uDenormInhomY;\n b[2 * counter + 1] = value;\n\n rowNormY += Math.pow(value, 2.0);\n\n // normalize rows to increase accuracy\n for (int i = 0; i < mNumKParams; i++) {\n aMatrix.setElementAt(2 * counter, i,\n aMatrix.getElementAt(2 * counter, i) / rowNormX);\n aMatrix.setElementAt(2 * counter + 1, i,\n aMatrix.getElementAt(2 * counter + 1, i) / rowNormY);\n }\n\n b[2 * counter] /= rowNormX;\n b[2 * counter + 1] /= rowNormY;\n\n counter++;\n\n if (!isLMSESolutionAllowed() && (counter >= getMinNumberOfMatchedPoints())) {\n break;\n }\n }\n\n final double[] params = Utils.solve(aMatrix, b);\n\n final RadialDistortion distortion =\n new RadialDistortion(params, mDistortionCenter,\n mHorizontalFocalLength, mVerticalFocalLength, mSkew);\n\n if (mListener != null) {\n mListener.onEstimateEnd(this);\n }\n\n return distortion;\n } catch (final AlgebraException | RadialDistortionException e) {\n throw new RadialDistortionEstimatorException(e);\n } finally {\n mLocked = false;\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints, \n boolean weakMinimumSizeAllowed) {\n return create(inputPoints, outputPoints, weakMinimumSizeAllowed, \n DEFAULT_ROBUST_METHOD);\n }",
"public MultiShape3D()\n {\n this( (Geometry)null, (Appearance)null );\n }",
"@Test\n public void testConstructor() {\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(0, 1, 0),\n new Point3D(1, 0, 0), new Point3D(-1, 1, 1));\n fail(\"Constructed a polygon with wrong order of vertices\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC03: Not in the same plane\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 2, 2));\n fail(\"Constructed a polygon with vertices that are not in the same plane\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC04: Concave quadrangular\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0.5, 0.25, 0.5));\n fail(\"Constructed a concave polygon\");\n } catch (IllegalArgumentException e) {\n }\n\n // =============== Boundary Values Tests ==================\n\n // TC10: Vertex on a side of a quadrangular\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 0.5, 0.5));\n fail(\"Constructed a polygon with vertix on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC11: Last point = first point\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 0, 1));\n fail(\"Constructed a polygon with vertice on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n // TC12: Colocated points\n try {\n new Polygon(new Point3D(0, 0, 1), new Point3D(1, 0, 0),\n new Point3D(0, 1, 0), new Point3D(0, 1, 0));\n fail(\"Constructed a polygon with vertice on a side\");\n } catch (IllegalArgumentException e) {\n }\n\n }",
"public Point3d sampleHemisphere();",
"public void dormqr_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);",
"@org.junit.Test\n public void getCurvatureTestCurve3() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(15, 20), new Vector(15, 30));\n assertEquals(0, curve.getCurvature(0).dot(new Vector(1, 0)), 0);\n assertTrue(curve.getCurvature(0.5).dot(new Vector(-1, 0)) > 0);\n assertTrue(curve.getCurvature(0.5).dot(new Vector(0, 1)) > 0);\n assertEquals(0, curve.getCurvature(1).dot(new Vector(0, 1)), 0);\n }",
"public org.drip.state.estimator.PredictorResponseWeightConstraint forwardPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.FloaterLabel floaterLabel = floaterLabel();\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = null != floaterLabel && floaterLabel instanceof\n\t\t\torg.drip.state.identifier.ForwardLabel ? (org.drip.state.identifier.ForwardLabel) floaterLabel :\n\t\t\t\tnull;\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.forwardPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"private Point2D[] CalculateBezierCurve(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, int samples_interval){ \n \n \n \n double control_point_1_x; \n double control_point_1_y; \n double control_point_2_x; \n double control_point_2_y; \n \n \n //Calculate the control points for the cubic bezier line \n control_point_1_x =controlPoint(x0,x1,x2); \n control_point_1_y =controlPoint(y0,y1,y2); \n \n control_point_2_x = controlPoint(x3,x2,x1); \n control_point_2_y = controlPoint(y3,y2,y1); \n \n //System.out.println(\"control1: \" + control_point_1_x + \" -- \" + control_point_1_y); \n //System.out.println(\"control2: \" + control_point_2_x + \" -- \" + control_point_2_y); \n \n \n double cx = 3.0 * (control_point_1_x - x1); \n double bx = 3.0 * (control_point_2_x - control_point_1_x) - cx; \n double ax = x2 - x1 - cx - bx; \n \n double cy = 3.0 * (control_point_1_y - y1); \n double by = 3.0 * (control_point_2_y - control_point_1_y) - cy; \n double ay = y2 - y1 - cy - by; \n \n //Let's calculate all the ponits that follow the Bezier curve. \n Point2D[] points = new Point2D[samples_interval]; \n for(int j = 0; j < samples_interval; j++){ \n double t = j*(1.0/samples_interval); \n //System.out.println(\"j: \" + j + \" t: \" + t + \" samples_int: \" + (samples_interval)); \n double x = (ax * t * t * t) + (bx * t * t) + (cx * t) + x1; \n double y = (ay * t * t * t) + (by * t *t) + (cy * t) + y1; \n //System.out.println(\"x: \" + x + \" y: \" + y + \" t: \" + t); \n points[j] = new Point2D.Double(x,y); \n } \n return points; \n }",
"protected AbstractMatrix3D() {}",
"@Test\r\n\tpublic void calculQualityAxisWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 3f), new Float(2));\r\n\t}",
"public org.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double> value (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp)\n\t{\n\t\tif (null == valParams || null == csqs) return null;\n\n\t\torg.drip.state.discount.MergedDiscountForwardCurve dcFunding = csqs.fundingState (fundingLabel());\n\n\t\tif (null == dcFunding) return null;\n\n\t\tlong lStart = System.nanoTime();\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tdouble dblAccrued01 = 0.;\n\t\tdouble dblTotalCoupon = 0.;\n\t\tdouble dblCumulativeCouponDCF = 0.;\n\t\tdouble dblCumulativeCouponAmount = 0.;\n\t\tdouble dblAccrualCoupon = java.lang.Double.NaN;\n\t\tdouble dblUnadjustedDirtyPV = 0.;\n\t\tdouble dblUnadjustedDirtyDV01 = 0.;\n\t\tdouble dblCompoundingAdjustedDirtyPV = 0.;\n\t\tdouble dblCompoundingAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCashPayDF = java.lang.Double.NaN;\n\t\tint iResetDate = java.lang.Integer.MIN_VALUE;\n\t\tdouble dblFXAdjustedValueNotional = java.lang.Double.NaN;\n\t\tdouble dblCreditForwardConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCreditForwardConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCreditFundingConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCreditFundingConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCreditFXConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCreditFXConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblCumulativeConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblCumulativeConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblForwardFundingConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblForwardFundingConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblForwardFXConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblForwardFXConvexityAdjustedDirtyDV01 = 0.;\n\t\tdouble dblFundingFXConvexityAdjustedDirtyPV = 0.;\n\t\tdouble dblFundingFXConvexityAdjustedDirtyDV01 = 0.;\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tdouble dblPeriodFX = java.lang.Double.NaN;\n\t\t\tdouble dblPeriodNotional = java.lang.Double.NaN;\n\t\t\tdouble dblUnadjustedDirtyPeriodDV01 = java.lang.Double.NaN;\n\n\t\t\tint iPeriodPayDate = period.payDate();\n\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\ttry {\n\t\t\t\tdblPeriodNotional = period.notional (iPeriodEndDate) * period.couponFactor (iPeriodEndDate);\n\n\t\t\t\tdblPeriodFX = period.fx (csqs);\n\t\t\t} catch (java.lang.Exception e) {\n\t\t\t\te.printStackTrace();\n\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif (iPeriodPayDate < iValueDate) {\n\t\t\t\torg.drip.analytics.output.CompositePeriodCouponMetrics cpcm = period.couponMetrics\n\t\t\t\t\t(iPeriodEndDate, csqs);\n\n\t\t\t\tif (null == cpcm) return null;\n\n\t\t\t\tdouble dblPeriodDCF = cpcm.dcf();\n\n\t\t\t\tdblCumulativeCouponDCF += dblPeriodDCF;\n\n\t\t\t\tdblCumulativeCouponAmount += dblPeriodNotional * dblPeriodFX * cpcm.rate() * dblPeriodDCF;\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\torg.drip.analytics.output.CompositePeriodCouponMetrics cpcm = period.couponMetrics (iValueDate,\n\t\t\t\tcsqs);\n\n\t\t\tif (null == cpcm) return null;\n\n\t\t\tdouble dblPeriodDCF = cpcm.dcf();\n\n\t\t\tdouble dblPeriodFullRate = cpcm.rate();\n\n\t\t\torg.drip.analytics.output.CompositePeriodAccrualMetrics cpam = period.accrualMetrics (iValueDate,\n\t\t\t\tcsqs);\n\n\t\t\ttry {\n\t\t\t\tif (null != cpam) {\n\t\t\t\t\tdblAccrualCoupon = cpam.rate();\n\n\t\t\t\t\tiResetDate = cpam.resetDate();\n\n\t\t\t\t\tdouble dblPeriodAccrualDCF = cpam.dcf();\n\n\t\t\t\t\tdblCumulativeCouponDCF += dblPeriodAccrualDCF;\n\t\t\t\t\tdblAccrued01 = 0.0001 * dblPeriodAccrualDCF * dblPeriodNotional * dblPeriodFX;\n\n\t\t\t\t\tdblCumulativeCouponAmount += dblPeriodNotional * dblPeriodFX * dblAccrualCoupon *\n\t\t\t\t\t\tdblPeriodAccrualDCF;\n\t\t\t\t}\n\n\t\t\t\tdblUnadjustedDirtyPeriodDV01 = 0.0001 * dblPeriodDCF * dblPeriodNotional * dblPeriodFX *\n\t\t\t\t\tperiod.survival (csqs) * period.df (csqs);\n\t\t\t} catch (java.lang.Exception e) {\n\t\t\t\te.printStackTrace();\n\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tdouble dblCompoundingAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 * cpcm.compounding();\n\n\t\t\tdouble dblCreditForwardConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.creditForward();\n\n\t\t\tdouble dblCreditFundingConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.creditFunding();\n\n\t\t\tdouble dblCreditFXConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.creditFX();\n\n\t\t\tdouble dblCumulativeConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.cumulative();\n\n\t\t\tdouble dblForwardFundingConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.forwardFunding();\n\n\t\t\tdouble dblForwardFXConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.forwardFX();\n\n\t\t\tdouble dblFundingFXConvexityAdjustedDirtyPeriodDV01 = dblUnadjustedDirtyPeriodDV01 *\n\t\t\t\tcpcm.fundingFX();\n\n\t\t\tdblTotalCoupon += dblPeriodFullRate;\n\t\t\tdblUnadjustedDirtyDV01 += dblUnadjustedDirtyPeriodDV01;\n\t\t\tdblUnadjustedDirtyPV += dblUnadjustedDirtyPeriodDV01 * 10000. * dblPeriodFullRate;\n\t\t\tdblCompoundingAdjustedDirtyDV01 += dblCompoundingAdjustedDirtyPeriodDV01;\n\t\t\tdblCompoundingAdjustedDirtyPV += dblCompoundingAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblCreditForwardConvexityAdjustedDirtyDV01 += dblCreditForwardConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCreditForwardConvexityAdjustedDirtyPV += dblCreditForwardConvexityAdjustedDirtyPeriodDV01 *\n\t\t\t\t10000. * dblPeriodFullRate;\n\t\t\tdblCreditFundingConvexityAdjustedDirtyDV01 += dblCreditFundingConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCreditFundingConvexityAdjustedDirtyPV += dblCreditFundingConvexityAdjustedDirtyPeriodDV01 *\n\t\t\t\t10000. * dblPeriodFullRate;\n\t\t\tdblCreditFXConvexityAdjustedDirtyDV01 += dblCreditFXConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCreditFXConvexityAdjustedDirtyPV += dblCreditFXConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblCumulativeConvexityAdjustedDirtyDV01 += dblCumulativeConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblCumulativeConvexityAdjustedDirtyPV += dblCumulativeConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblForwardFundingConvexityAdjustedDirtyDV01 += dblForwardFundingConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblForwardFundingConvexityAdjustedDirtyPV += dblForwardFundingConvexityAdjustedDirtyPeriodDV01 *\n\t\t\t\t10000. * dblPeriodFullRate;\n\t\t\tdblForwardFXConvexityAdjustedDirtyDV01 += dblForwardFXConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblForwardFXConvexityAdjustedDirtyPV += dblForwardFXConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t\tdblFundingFXConvexityAdjustedDirtyDV01 += dblFundingFXConvexityAdjustedDirtyPeriodDV01;\n\t\t\tdblFundingFXConvexityAdjustedDirtyPV += dblFundingFXConvexityAdjustedDirtyPeriodDV01 * 10000. *\n\t\t\t\tdblPeriodFullRate;\n\t\t}\n\n\t\ttry {\n\t\t\tdblCashPayDF = dcFunding.df (iValueDate);\n\n\t\t\tdblFXAdjustedValueNotional = fxAdjustedNotional (iValueDate, csqs);\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\tdblUnadjustedDirtyPV /= dblCashPayDF;\n\t\tdblUnadjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCompoundingAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCompoundingAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCreditForwardConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCreditForwardConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCreditFundingConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCreditFundingConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCreditFXConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCreditFXConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblCumulativeConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblCumulativeConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblForwardFundingConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblForwardFundingConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblForwardFXConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblForwardFXConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdblFundingFXConvexityAdjustedDirtyPV /= dblCashPayDF;\n\t\tdblFundingFXConvexityAdjustedDirtyDV01 /= dblCashPayDF;\n\t\tdouble dblAccrued = 0. == dblAccrued01 ? 0. : dblAccrued01 * 10000. * dblAccrualCoupon;\n\t\tdouble dblUnadjustedCleanPV = dblUnadjustedDirtyPV - dblAccrued;\n\t\tdouble dblUnadjustedCleanDV01 = dblUnadjustedDirtyDV01 - dblAccrued01;\n\t\tdouble dblUnadjustedFairPremium = 0.0001 * dblUnadjustedCleanPV / dblUnadjustedCleanDV01;\n\t\tdouble dblCompoundingAdjustedCleanPV = dblCompoundingAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblCompoundingAdjustedCleanDV01 = dblCompoundingAdjustedDirtyDV01 - dblAccrued01;\n\t\tdouble dblCompoundingAdjustedFairPremium = 0.0001 * dblCompoundingAdjustedCleanPV /\n\t\t\tdblCompoundingAdjustedCleanDV01;\n\t\tdouble dblCreditForwardConvexityAdjustedCleanPV = dblCreditForwardConvexityAdjustedDirtyPV -\n\t\t\tdblAccrued;\n\t\tdouble dblCreditForwardConvexityAdjustedCleanDV01 = dblCreditForwardConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblCreditForwardConvexityAdjustedFairPremium = 0.0001 *\n\t\t\tdblCreditForwardConvexityAdjustedCleanPV / dblCreditForwardConvexityAdjustedCleanDV01;\n\t\tdouble dblCreditFundingConvexityAdjustedCleanPV = dblCreditFundingConvexityAdjustedDirtyPV -\n\t\t\tdblAccrued;\n\t\tdouble dblCreditFundingConvexityAdjustedCleanDV01 = dblCreditFundingConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblCreditFundingConvexityAdjustedFairPremium = 0.0001 *\n\t\t\tdblCreditFundingConvexityAdjustedCleanPV / dblCreditFundingConvexityAdjustedCleanDV01;\n\t\tdouble dblCreditFXConvexityAdjustedCleanPV = dblCreditFXConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblCreditFXConvexityAdjustedCleanDV01 = dblCreditFXConvexityAdjustedDirtyDV01 - dblAccrued01;\n\t\tdouble dblCreditFXConvexityAdjustedFairPremium = 0.0001 * dblCreditFXConvexityAdjustedCleanPV /\n\t\t\tdblCreditFXConvexityAdjustedCleanDV01;\n\t\tdouble dblCumulativeConvexityAdjustedCleanPV = dblCumulativeConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblCumulativeConvexityAdjustedCleanDV01 = dblCumulativeConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblCumulativeConvexityAdjustedFairPremium = 0.0001 * dblCumulativeConvexityAdjustedCleanPV /\n\t\t\tdblCumulativeConvexityAdjustedCleanDV01;\n\t\tdouble dblForwardFundingConvexityAdjustedCleanPV = dblForwardFundingConvexityAdjustedDirtyPV -\n\t\t\tdblAccrued;\n\t\tdouble dblForwardFundingConvexityAdjustedCleanDV01 = dblForwardFundingConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblForwardFundingConvexityAdjustedFairPremium = 0.0001 *\n\t\t\tdblForwardFundingConvexityAdjustedCleanPV / dblForwardFundingConvexityAdjustedCleanDV01;\n\t\tdouble dblForwardFXConvexityAdjustedCleanPV = dblForwardFXConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblForwardFXConvexityAdjustedCleanDV01 = dblForwardFXConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblForwardFXConvexityAdjustedFairPremium = 0.0001 * dblForwardFXConvexityAdjustedCleanPV /\n\t\t\tdblForwardFXConvexityAdjustedCleanDV01;\n\t\tdouble dblFundingFXConvexityAdjustedCleanPV = dblFundingFXConvexityAdjustedDirtyPV - dblAccrued;\n\t\tdouble dblFundingFXConvexityAdjustedCleanDV01 = dblFundingFXConvexityAdjustedDirtyDV01 -\n\t\t\tdblAccrued01;\n\t\tdouble dblFundingFXConvexityAdjustedFairPremium = 0.0001 * dblFundingFXConvexityAdjustedCleanPV /\n\t\t\tdblFundingFXConvexityAdjustedCleanDV01;\n\n\t\torg.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double> mapResult = new\n\t\t\torg.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double>();\n\n\t\tmapResult.put (\"AccrualCoupon\", dblAccrualCoupon);\n\n\t\tmapResult.put (\"Accrued\", dblAccrued);\n\n\t\tmapResult.put (\"Accrued01\", dblAccrued01);\n\n\t\tmapResult.put (\"CleanDV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CleanPV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedCleanDV01\", dblCompoundingAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CompoundingAdjustedCleanPV\", dblCompoundingAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyPV\", dblCompoundingAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyDV01\", dblCompoundingAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyPV\", dblCompoundingAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedFairPremium\", dblCompoundingAdjustedFairPremium);\n\n\t\tmapResult.put (\"CompoundingAdjustedParRate\", dblCompoundingAdjustedFairPremium);\n\n\t\tmapResult.put (\"CompoundingAdjustedPV\", dblCompoundingAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustedRate\", dblCompoundingAdjustedFairPremium);\n\n\t\tmapResult.put (\"CompoundingAdjustedUpfront\", dblCompoundingAdjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustmentFactor\", dblCompoundingAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CompoundingAdjustmentPremium\", dblCompoundingAdjustedCleanPV - dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CompoundingAdjustmentPremiumUpfront\", (dblCompoundingAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedCleanDV01\",\n\t\t\tdblCreditForwardConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedCleanPV\", dblCreditForwardConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDirtyDV01\",\n\t\t\tdblCreditForwardConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDirtyPV\", dblCreditForwardConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDV01\", dblCreditForwardConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedFairPremium\",\n\t\t\tdblCreditForwardConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedParRate\",\n\t\t\tdblCreditForwardConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedPV\", dblCreditForwardConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedRate\", dblCreditForwardConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedUpfront\", dblCreditForwardConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustmentFactor\", dblCreditForwardConvexityAdjustedDirtyDV01\n\t\t\t/ dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustmentPremium\", dblCreditForwardConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustmentPremiumUpfront\",\n\t\t\t(dblCreditForwardConvexityAdjustedCleanPV - dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedCleanDV01\",\n\t\t\tdblCreditFundingConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedCleanPV\", dblCreditFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDirtyDV01\",\n\t\t\tdblCreditFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDirtyPV\", dblCreditFundingConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDV01\", dblCreditFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedFairPremium\",\n\t\t\tdblCreditFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedParRate\",\n\t\t\tdblCreditFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedPV\", dblCreditFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedRate\", dblCreditFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedUpfront\", dblCreditFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustmentFactor\", dblCreditFundingConvexityAdjustedDirtyDV01\n\t\t\t/ dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustmentPremium\", dblCreditFundingConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustmentPremiumUpfront\",\n\t\t\t(dblCreditFundingConvexityAdjustedCleanPV - dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedCleanDV01\", dblCreditFXConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedCleanPV\", dblCreditFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDirtyDV01\", dblCreditFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDirtyPV\", dblCreditFXConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDV01\", dblCreditFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedFairPremium\", dblCreditFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedParRate\", dblCreditFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedPV\", dblCreditFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedRate\", dblCreditFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedUpfront\", dblCreditFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustmentFactor\", dblCreditFXConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustmentPremium\", dblCreditFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustmentPremiumUpfront\", (dblCreditFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedCleanDV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedCleanPV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDirtyDV01\", dblCumulativeConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDirtyPV\", dblCumulativeConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDV01\", dblCumulativeConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedFairPremium\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedParRate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedPV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedRate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedUpfront\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustmentFactor\", dblCumulativeConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustmentPremium\", dblCumulativeConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustmentPremiumUpfront\", (dblCumulativeConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"CumulativeCouponAmount\", dblCumulativeCouponAmount);\n\n\t\tmapResult.put (\"CumulativeCouponDCF\", dblCumulativeCouponDCF);\n\n\t\tmapResult.put (\"CV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"DirtyDV01\", dblCumulativeConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"DirtyPV\", dblCumulativeConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"DV01\", dblCumulativeConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"FairPremium\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"Fixing01\", dblAccrued01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedCleanDV01\",\n\t\t\tdblForwardFundingConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedCleanPV\", dblForwardFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDirtyDV01\",\n\t\t\tdblForwardFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDirtyPV\", dblForwardFundingConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDV01\", dblForwardFundingConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedFairPremium\",\n\t\t\tdblForwardFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedParRate\",\n\t\t\tdblForwardFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedPV\", dblForwardFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedRate\", dblForwardFundingConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedUpfront\", dblForwardFundingConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustmentFactor\", dblForwardFundingConvexityAdjustedDirtyDV01\n\t\t\t/ dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustmentPremium\", dblForwardFundingConvexityAdjustedCleanPV\n\t\t\t- dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustmentPremiumUpfront\",\n\t\t\t(dblForwardFundingConvexityAdjustedCleanPV - dblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedCleanDV01\", dblForwardFXConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedCleanPV\", dblForwardFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDirtyDV01\", dblForwardFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDirtyPV\", dblForwardFXConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDV01\", dblForwardFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedFairPremium\", dblForwardFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedParRate\", dblForwardFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedPV\", dblForwardFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedRate\", dblForwardFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedUpfront\", dblForwardFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustmentFactor\", dblForwardFXConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustmentPremium\", dblForwardFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustmentPremiumUpfront\", (dblForwardFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedCleanDV01\", dblFundingFXConvexityAdjustedCleanDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedCleanPV\", dblFundingFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDirtyDV01\", dblFundingFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDirtyPV\", dblFundingFXConvexityAdjustedDirtyPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDV01\", dblFundingFXConvexityAdjustedDirtyDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedFairPremium\", dblFundingFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedParRate\", dblFundingFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedPV\", dblFundingFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedRate\", dblFundingFXConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedUpfront\", dblFundingFXConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustmentFactor\", dblFundingFXConvexityAdjustedDirtyDV01 /\n\t\t\tdblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustmentPremium\", dblFundingFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustmentPremiumUpfront\", (dblFundingFXConvexityAdjustedCleanPV -\n\t\t\tdblUnadjustedCleanPV) / dblFXAdjustedValueNotional);\n\n\t\tmapResult.put (\"ParRate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"PV\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tmapResult.put (\"Rate\", dblCumulativeConvexityAdjustedFairPremium);\n\n\t\tmapResult.put (\"ResetDate\", (double) iResetDate);\n\n\t\tmapResult.put (\"ResetRate\", dblAccrualCoupon - basis());\n\n\t\tmapResult.put (\"TotalCoupon\", dblTotalCoupon);\n\n\t\tmapResult.put (\"UnadjustedCleanDV01\", dblUnadjustedCleanDV01);\n\n\t\tmapResult.put (\"UnadjustedCleanPV\", dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"UnadjustedDirtyDV01\", dblUnadjustedDirtyDV01);\n\n\t\tmapResult.put (\"UnadjustedDirtyPV\", dblUnadjustedDirtyPV);\n\n\t\tmapResult.put (\"UnadjustedFairPremium\", dblUnadjustedFairPremium);\n\n\t\tmapResult.put (\"UnadjustedParRate\", dblUnadjustedFairPremium);\n\n\t\tmapResult.put (\"UnadjustedPV\", dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"UnadjustedRate\", dblUnadjustedFairPremium);\n\n\t\tmapResult.put (\"UnadjustedUpfront\", dblUnadjustedCleanPV);\n\n\t\tmapResult.put (\"Upfront\", dblCumulativeConvexityAdjustedCleanPV);\n\n\t\tdouble dblCompoundingAdjustedCleanPrice = 100. * (1. + (dblCompoundingAdjustedCleanPV /\n\t\t\tdblFXAdjustedValueNotional));\n\t\tdouble dblCreditForwardConvexityAdjustedCleanPrice = 100. * (1. +\n\t\t\t(dblCreditForwardConvexityAdjustedCleanPV / dblFXAdjustedValueNotional));\n\t\tdouble dblCreditFundingConvexityAdjustedCleanPrice = 100. * (1. +\n\t\t\t(dblCreditFundingConvexityAdjustedCleanPV / dblFXAdjustedValueNotional));\n\t\tdouble dblCreditFXConvexityAdjustedCleanPrice = 100. * (1. + (dblCreditFXConvexityAdjustedCleanPV\n\t\t\t/ dblFXAdjustedValueNotional));\n\t\tdouble dblCumulativeConvexityAdjustedCleanPrice = 100. * (1. + (dblCumulativeConvexityAdjustedCleanPV\n\t\t\t/ dblFXAdjustedValueNotional));\n\t\tdouble dblForwardFundingConvexityAdjustedCleanPrice = 100. * (1. +\n\t\t\t(dblForwardFundingConvexityAdjustedCleanPV / dblFXAdjustedValueNotional));\n\t\tdouble dblForwardFXConvexityAdjustedCleanPrice = 100. * (1. + (dblForwardFXConvexityAdjustedCleanPV /\n\t\t\tdblFXAdjustedValueNotional));\n\t\tdouble dblFundingFXConvexityAdjustedCleanPrice = 100. * (1. + (dblFundingFXConvexityAdjustedCleanPV /\n\t\t\tdblFXAdjustedValueNotional));\n\t\tdouble dblUnadjustedCleanPrice = 100. * (1. + (dblUnadjustedCleanPV / dblFXAdjustedValueNotional));\n\n\t\tmapResult.put (\"CleanPrice\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CompoundingAdjustedCleanPrice\", dblCompoundingAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CompoundingAdjustedDirtyPrice\", 100. * (1. + (dblCompoundingAdjustedDirtyPV /\n\t\t\tdblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CompoundingAdjustedPrice\", dblCompoundingAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedCleanPrice\",\n\t\t\tdblCreditForwardConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCreditForwardConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CreditForwardConvexityAdjustedPrice\", dblCreditForwardConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedCleanPrice\",\n\t\t\tdblCreditFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCreditFundingConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CreditFundingConvexityAdjustedPrice\", dblCreditFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedCleanPrice\", dblCreditFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCreditFXConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CreditFXConvexityAdjustedPrice\", dblCreditFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedCleanPrice\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblCumulativeConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"CumulativeConvexityAdjustedPrice\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"DirtyPrice\", 100. * (1. + (dblCumulativeConvexityAdjustedDirtyPV /\n\t\t\tdblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedCleanPrice\",\n\t\t\tdblForwardFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblForwardFundingConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"ForwardFundingConvexityAdjustedPrice\", dblForwardFundingConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedCleanPrice\", dblForwardFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblForwardFXConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"ForwardFXConvexityAdjustedPrice\", dblForwardFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedCleanPrice\", dblFundingFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedDirtyPrice\", 100. * (1. +\n\t\t\t(dblFundingFXConvexityAdjustedDirtyPV / dblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"FundingFXConvexityAdjustedPrice\", dblFundingFXConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"Price\", dblCumulativeConvexityAdjustedCleanPrice);\n\n\t\tmapResult.put (\"UnadjustedCleanPrice\", dblUnadjustedCleanPrice);\n\n\t\tmapResult.put (\"UnadjustedDirtyPrice\", 100. * (1. + (dblUnadjustedDirtyPV /\n\t\t\tdblFXAdjustedValueNotional)));\n\n\t\tmapResult.put (\"UnadjustedPrice\", dblUnadjustedCleanPrice);\n\n\t\tmapResult.put (\"CalcTime\", (System.nanoTime() - lStart) * 1.e-09);\n\n\t\treturn mapResult;\n\t}",
"public static Sampler getSampler() throws Exception {\r\n // User-defined rules have high priority\r\n if (StringUtils.isNotBlank(samplerProperties.getRuleClassName())) {\r\n return (Sampler) Class.forName(samplerProperties.getRuleClassName()).newInstance();\r\n }\r\n // default instance\r\n return new SzTracerPercentageBasedSampler(samplerProperties);\r\n }",
"public static void R_approx(double x[], double y[], int nxy, double xout[], int nout,\n int method, double yleft, double yright, double f)\n {\n int i;\n appr_meth M = new appr_meth(); // {0.0, 0.0, 0.0, 0.0, 0}; /* -Wall */\n\n /* check interpolation method */\n\n switch(method) {\n case 1: /* linear */\n break;\n case 2: /* constant */\n if(!DoubleVector.isFinite(f) || f < 0 || f > 1)\n throw new EvalException(\"approx(): invalid f value\");\n M.f2 = f;\n M.f1 = 1 - f;\n break;\n default:\n throw new EvalException(\"approx(): invalid interpolation method\");\n }\n\n for(i = 0 ; i < nxy ; i++)\n if(DoubleVector.isNA(x[i]) || DoubleVector.isNA(y[i]))\n throw new EvalException(\"approx(): attempted to interpolate NA values\");\n\n M.kind = method;\n M.ylow = yleft;\n M.yhigh = yright;\n\n for(i = 0 ; i < nout; i++)\n if(!DoubleVector.isNA(xout[i])) \n xout[i] = approx1(xout[i], x, y, nxy, M);\n }",
"protected abstract double getRefinementStandardDeviation();",
"public float[] normalizeQuat(float[] quat) {\n float x = quat[0];\n float y = quat[1];\n float z = quat[2];\n float w = quat[3];\n float len = x * x + y * y + z * z + w * w; // length of the quarternion without sqrt\n if (len != 0.f && !(len == 1f)) {\n len = (float) Math.sqrt(len);\n w /= len;\n x /= len;\n y /= len;\n z /= len;\n }\n float[] newquat = {x, y, z, w};\n return newquat;\n }",
"@Override\n protected Double[] getCorners(){\n return new Double[]{\n //leftmost point\n getXPos(), getYPos(),\n //rightmost point\n getXPos() + getWidth(), getYPos(),\n //middle point\n getXPos() + getWidth() / 2, getYPos() + getHeight() * getThirdTriangleYPoint(pointUp)\n };\n }",
"public org.drip.state.estimator.PredictorResponseWeightConstraint fundingForwardPRWC (\n\t\tfinal org.drip.param.valuation.ValuationParams valParams,\n\t\tfinal org.drip.param.pricer.CreditPricerParams pricerParams,\n\t\tfinal org.drip.param.market.CurveSurfaceQuoteContainer csqs,\n\t\tfinal org.drip.param.valuation.ValuationCustomizationParams vcp,\n\t\tfinal org.drip.product.calib.ProductQuoteSet pqs)\n\t{\n\t\tif (null == valParams || null == pqs) return null;\n\n\t\torg.drip.state.identifier.ForwardLabel forwardLabel = forwardLabel();\n\n\t\tif ((null != forwardLabel && !(pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet)) ||\n\t\t\t(null == forwardLabel && !(pqs instanceof org.drip.product.calib.FixedStreamQuoteSet)))\n\t\t\treturn null;\n\n\t\tint iValueDate = valParams.valueDate();\n\n\t\tif (iValueDate >= maturity().julian()) return null;\n\n\t\tdouble dblCleanPV = 0.;\n\n\t\ttry {\n\t\t\tif (pqs instanceof org.drip.product.calib.FloatingStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FloatingStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FloatingStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t} else if (pqs instanceof org.drip.product.calib.FixedStreamQuoteSet) {\n\t\t\t\torg.drip.product.calib.FixedStreamQuoteSet fsqs =\n\t\t\t\t\t(org.drip.product.calib.FixedStreamQuoteSet) pqs;\n\n\t\t\t\tif (fsqs.containsPV()) dblCleanPV = fsqs.pv();\n\t\t\t}\n\t\t} catch (java.lang.Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\n\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwc = new\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint();\n\n\t\tfor (org.drip.analytics.cashflow.CompositePeriod period : _lsPeriod) {\n\t\t\tint iPeriodEndDate = period.endDate();\n\n\t\t\tif (iPeriodEndDate < iValueDate) continue;\n\n\t\t\torg.drip.state.estimator.PredictorResponseWeightConstraint prwcPeriod = period.forwardFundingPRWC\n\t\t\t\t(iValueDate, csqs, pqs);\n\n\t\t\tif (null == prwcPeriod || !prwc.absorb (prwcPeriod)) return null;\n\t\t}\n\n\t\tif (!prwc.updateValue (dblCleanPV)) return null;\n\n\t\tif (!prwc.updateDValueDManifestMeasure (\"PV\", 1.)) return null;\n\n\t\treturn prwc;\n\t}",
"public static MetricTransformation2DRobustEstimator create() {\n return create(DEFAULT_ROBUST_METHOD);\n }",
"@Test\n public void checkGetNullVersusNot() {\n int width = 5;\n int height = 10;\n\n QRDecomposition<DMatrixRMaj> alg = createQRDecomposition();\n\n SimpleMatrix A = new SimpleMatrix(height,width, DMatrixRMaj.class);\n RandomMatrices_DDRM.fillUniform((DMatrixRMaj)A.getMatrix(),rand);\n\n alg.decompose((DMatrixRMaj)A.getMatrix());\n\n // get the results from a provided matrix\n DMatrixRMaj Q_provided = RandomMatrices_DDRM.rectangle(height,height,rand);\n DMatrixRMaj R_provided = RandomMatrices_DDRM.rectangle(height,width,rand);\n\n assertSame(R_provided, alg.getR(R_provided, false));\n assertSame(Q_provided, alg.getQ(Q_provided, false));\n\n // get the results when no matrix is provided\n DMatrixRMaj Q_null = alg.getQ(null, false);\n DMatrixRMaj R_null = alg.getR(null,false);\n\n // see if they are the same\n assertTrue(MatrixFeatures_DDRM.isEquals(Q_provided,Q_null));\n assertTrue(MatrixFeatures_DDRM.isEquals(R_provided,R_null));\n }",
"public void validateRpd11s3()\n {\n // This guideline cannot be automatically tested.\n }",
"public void validateRpd15s3()\n {\n // This guideline cannot be automatically tested.\n }",
"public static MetricTransformation2DRobustEstimator create(\n List<Point2D> inputPoints, List<Point2D> outputPoints) {\n return create(inputPoints, outputPoints, DEFAULT_ROBUST_METHOD);\n }",
"double CubicInterpolate (double y0,double y1,\n double y2,double y3,\n double mu)\n {\n double a0,a1,a2,a3,mu2;\n\n mu2 = mu*mu;\n\n //a0 = y3 - y2 - y0 + y1;\n //a1 = y0 - y1 - a0;\n //a2 = y2 - y0;\n //a3 = y1;\n\n // Paul Breeuwsma proposes the following coefficients for a\n // smoother interpolated curve, which uses the slope between the\n // previous point and the next as the derivative at the current\n // point. This results in what are generally referred to as\n // Catmull-Rom splines.\n a0 = -0.5*y0 + 1.5*y1 - 1.5*y2 + 0.5*y3;\n a1 = y0 - 2.5*y1 + 2*y2 - 0.5*y3;\n a2 = -0.5*y0 + 0.5*y2;\n a3 = y1;\n\n return(a0*mu*mu2+a1*mu2+a2*mu+a3);\n }",
"private double threeDimensionalSolveQ2(RealMatrix u, RealMatrix v, double q3) {\r\n double u22 = u.getEntry(1, 1);\r\n double u23 = u.getEntry(1, 2);\r\n double v2 = v.getEntry(1, 0);\r\n\r\n return (-v2/u22) - ((u23/u22)*q3);\r\n }",
"public abstract Vector3D getPointForSurfaceCoordinates(double u, double v);",
"public QuadCurve () {\n }",
"@Test\n public void testSerializeDeserialize() throws GeometryException, AlgebraException, IOException, ClassNotFoundException {\n final UniformRandomizer randomizer = new UniformRandomizer(new Random());\n final double alphaEuler1 = 0.0;\n final double betaEuler1 = 0.0;\n final double gammaEuler1 = 0.0;\n final double alphaEuler2 = randomizer.nextDouble(MIN_ANGLE_DEGREES,\n MAX_ANGLE_DEGREES) * Math.PI / 180.0;\n final double betaEuler2 = randomizer.nextDouble(MIN_ANGLE_DEGREES,\n MAX_ANGLE_DEGREES) * Math.PI / 180.0;\n final double gammaEuler2 = randomizer.nextDouble(MIN_ANGLE_DEGREES,\n MAX_ANGLE_DEGREES) * Math.PI / 180.0;\n\n final double horizontalFocalLength1 = randomizer.nextDouble(MIN_FOCAL_LENGTH,\n MAX_FOCAL_LENGTH);\n final double verticalFocalLength1 = randomizer.nextDouble(MIN_FOCAL_LENGTH,\n MAX_FOCAL_LENGTH);\n final double horizontalFocalLength2 = randomizer.nextDouble(MIN_FOCAL_LENGTH,\n MAX_FOCAL_LENGTH);\n final double verticalFocalLength2 = randomizer.nextDouble(MIN_FOCAL_LENGTH,\n MAX_FOCAL_LENGTH);\n\n final double skewness1 = randomizer.nextDouble(MIN_SKEWNESS, MAX_SKEWNESS);\n final double skewness2 = randomizer.nextDouble(MIN_SKEWNESS, MAX_SKEWNESS);\n\n final double horizontalPrincipalPoint1 = randomizer.nextDouble(\n MIN_PRINCIPAL_POINT, MAX_PRINCIPAL_POINT);\n final double verticalPrincipalPoint1 = randomizer.nextDouble(\n MIN_PRINCIPAL_POINT, MAX_PRINCIPAL_POINT);\n final double horizontalPrincipalPoint2 = randomizer.nextDouble(\n MIN_PRINCIPAL_POINT, MAX_PRINCIPAL_POINT);\n final double verticalPrincipalPoint2 = randomizer.nextDouble(\n MIN_PRINCIPAL_POINT, MAX_PRINCIPAL_POINT);\n\n final double cameraSeparation = randomizer.nextDouble(MIN_CAMERA_SEPARATION,\n MAX_CAMERA_SEPARATION);\n\n final Point3D center1 = new InhomogeneousPoint3D(\n randomizer.nextDouble(MIN_RANDOM_VALUE, MAX_RANDOM_VALUE),\n randomizer.nextDouble(MIN_RANDOM_VALUE, MAX_RANDOM_VALUE),\n randomizer.nextDouble(MIN_RANDOM_VALUE, MAX_RANDOM_VALUE));\n final Point3D center2 = new InhomogeneousPoint3D(\n center1.getInhomX() + cameraSeparation,\n center1.getInhomY() + cameraSeparation,\n center1.getInhomZ() + cameraSeparation);\n\n final Rotation3D rotation1 = new MatrixRotation3D(alphaEuler1, betaEuler1,\n gammaEuler1);\n final Rotation3D rotation2 = new MatrixRotation3D(alphaEuler2, betaEuler2,\n gammaEuler2);\n\n final PinholeCameraIntrinsicParameters intrinsic1 =\n new PinholeCameraIntrinsicParameters(horizontalFocalLength1,\n verticalFocalLength1, horizontalPrincipalPoint1,\n verticalPrincipalPoint1, skewness1);\n final PinholeCameraIntrinsicParameters intrinsic2 =\n new PinholeCameraIntrinsicParameters(horizontalFocalLength2,\n verticalFocalLength2, horizontalPrincipalPoint2,\n verticalPrincipalPoint2, skewness2);\n\n final PinholeCamera camera1 = new PinholeCamera(intrinsic1, rotation1,\n center1);\n final PinholeCamera camera2 = new PinholeCamera(intrinsic2, rotation2,\n center2);\n\n final FundamentalMatrix fundMatrix1 = new FundamentalMatrix(camera1, camera2);\n\n // serialize and deserialize\n final byte[] bytes = SerializationHelper.serialize(fundMatrix1);\n final FundamentalMatrix fundMatrix2 = SerializationHelper.deserialize(bytes);\n\n // check\n assertEquals(fundMatrix1.getInternalMatrix(), fundMatrix2.getInternalMatrix());\n }",
"public static Spliterator.OfDouble spliterator(double[] paramArrayOfdouble, int paramInt1, int paramInt2, int paramInt3) {\n/* 371 */ checkFromToBounds(((double[])Objects.requireNonNull((T)paramArrayOfdouble)).length, paramInt1, paramInt2);\n/* 372 */ return new DoubleArraySpliterator(paramArrayOfdouble, paramInt1, paramInt2, paramInt3);\n/* */ }"
] | [
"0.6567202",
"0.64364773",
"0.6429722",
"0.63715166",
"0.6078404",
"0.6020438",
"0.5961994",
"0.59596395",
"0.5779811",
"0.55974317",
"0.55352813",
"0.5475058",
"0.53647023",
"0.50479853",
"0.50322753",
"0.5023113",
"0.4919555",
"0.4864228",
"0.47349322",
"0.4688753",
"0.45749944",
"0.4522316",
"0.45104337",
"0.44783852",
"0.44679737",
"0.44604826",
"0.44399825",
"0.43727174",
"0.43391284",
"0.43250594",
"0.42914417",
"0.4286674",
"0.42582878",
"0.42566165",
"0.42452332",
"0.4214092",
"0.42127588",
"0.42078397",
"0.41954485",
"0.41813898",
"0.41726282",
"0.4169748",
"0.4169541",
"0.41144392",
"0.4111833",
"0.40990224",
"0.4093143",
"0.4093143",
"0.4093143",
"0.4072182",
"0.40582672",
"0.40542817",
"0.40409893",
"0.40340537",
"0.40183645",
"0.40068242",
"0.3987376",
"0.3985301",
"0.39834607",
"0.39820978",
"0.398164",
"0.3979741",
"0.39789304",
"0.3973777",
"0.39719474",
"0.39701164",
"0.39682537",
"0.3964667",
"0.39557847",
"0.39501455",
"0.3949018",
"0.39458418",
"0.3933289",
"0.39278018",
"0.39259443",
"0.39229912",
"0.39069623",
"0.38879836",
"0.38771933",
"0.38662758",
"0.3862763",
"0.3862358",
"0.38579708",
"0.38569474",
"0.38539875",
"0.38402477",
"0.38326642",
"0.38313106",
"0.38217798",
"0.38191697",
"0.38127297",
"0.3810605",
"0.37991104",
"0.379827",
"0.37978676",
"0.37933072",
"0.379128",
"0.37827024",
"0.37806773",
"0.37800056"
] | 0.5916434 | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.