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
TODO Autogenerated method stub
public ActionForward deleteNSR(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { String nsrwjbm=request.getParameter("nsrwjbm"); String sql="delete from skq_nsrxx where nsrwjbm='"+nsrwjbm+"'"; Query.updateField(sql); sql="delete from skq_jqxx where nsrwjbm='"+nsrwjbm+"'"; Query.updateField(sql); sql="delete from skq_nsrszsm where nsrwjbm='"+nsrwjbm+"'"; Query.updateField(sql); return mapping.findForward("toImport"); }
{ "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
public ActionForward updateJqcsh(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { String jqbh=request.getParameter("jqbh"); String sql="update skq_jqxx set cshsj=null where jqbh='"+jqbh+"'"; Query.updateField(sql); String nsrwjbm = request.getParameter("nsrwjbm"); Nsrxx nsrxx = new Nsrxx(nsrwjbm); request.setAttribute("nsrxx", nsrxx); return mapping.findForward("isExist"); }
{ "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
/ Access modifiers changed, original: final
public final IConfCallBack fT(boolean z) { IConfCallBack iConfCallBack; AppMethodBeat.i(135484); ab.i("MicroMsg.OpenVoice.OpenVoiceNativeCallbackMgr", "hy: trigger validate callback %b", Boolean.valueOf(z)); synchronized (this) { if (z) { try { this.kzF = new IConfCallBack() { public final byte[] callBackFromConf(int i, int i2, byte[] bArr) { AppMethodBeat.i(135481); ab.i("MicroMsg.OpenVoice.OpenVoiceNativeCallbackMgr", "hy: triggered native callback: %d, %d", Integer.valueOf(i), Integer.valueOf(i2)); HashSet hashSet = (HashSet) f.this.kzG.get(i); byte[] bArr2; if (hashSet == null || hashSet.size() <= 0) { ab.w("MicroMsg.OpenVoice.OpenVoiceNativeCallbackMgr", "hy: nobody's listening to event %d, what a pity!", Integer.valueOf(i)); bArr2 = new byte[1]; AppMethodBeat.o(135481); return bArr2; } ArrayList arrayList = new ArrayList(1); byte[] bArr3 = new byte[1]; Iterator it = hashSet.iterator(); bArr2 = bArr3; while (it.hasNext()) { a aVar = (a) it.next(); if (aVar != null) { bArr2 = aVar.bP(aVar.i(i2, aVar.az(bArr))); if (!aVar.bgp()) { arrayList.add(aVar); } } else { ab.e("MicroMsg.OpenVoice.OpenVoiceNativeCallbackMgr", "hy: item is null! weired"); } } Iterator it2 = arrayList.iterator(); while (it2.hasNext()) { hashSet.remove((a) it2.next()); } AppMethodBeat.o(135481); return bArr2; } public final void callbackWriteLog(int i, String str, String str2, int i2, String str3, String str4, int i3) { AppMethodBeat.i(135482); if (i >= b.bgo()) { Xlog.logWrite2(i, "CloudVoIPNative:".concat(String.valueOf(str)), str2, str3, Process.myTid(), Process.myPid(), Thread.currentThread().getId(), Looper.getMainLooper().getThread().getId(), str4); } AppMethodBeat.o(135482); } }; } catch (Throwable th) { AppMethodBeat.o(135484); } } else { this.kzF = null; } this.kzG.clear(); iConfCallBack = this.kzF; } AppMethodBeat.o(135484); return iConfCallBack; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "@Override\n boolean isFinal() {\n return false;\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void method_4270() {}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void prot() {\n }", "public abstract void mo70713b();", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract Object mo26777y();", "public final void mo91715d() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void m23075a() {\n }", "public abstract void mo27386d();", "@Override\n public boolean isFinal() {\n return true;\n }", "public abstract void mo27385c();", "public void mo21779D() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private final void i() {\n }", "public void gored() {\n\t\t\n\t}", "public abstract void mo42329d();", "public abstract void mo30696a();", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo56925d();", "public void mo21793R() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public abstract Object mo1771a();", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public abstract void mo27464a();", "public abstract void mo42331g();", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void jugar() {}", "protected boolean func_70814_o() { return true; }", "public void mo21785J() {\n }", "void m1864a() {\r\n }", "public void mo21825b() {\n }", "public void mo21787L() {\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo23813b() {\n }", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "public void mo1531a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo4359a() {\n }", "@Override\n public void memoria() {\n \n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public abstract void mo35054b();", "public void mo115190b() {\n }", "protected abstract Set method_1559();", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo21782G() {\n }", "public abstract String mo13682d();", "public void mo12930a() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public void mo97908d() {\n }", "public abstract void m15813a();", "public abstract String mo118046b();", "public void mo21792Q() {\n }", "final void getData() {\n\t\t//The final method can't be overriden\n\t}", "public abstract String mo41079d();", "@Override\n\tpublic void modify() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "public void mo12628c() {\n }", "public void mo21877s() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo21878t() {\n }", "private void m50367F() {\n }", "public abstract Object mo1185b();", "public void mo3749d() {\n }", "public abstract void mo42330e();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void leti() \n\t{\n\t}", "public abstract void mo102899a();", "private Singletion3() {}", "@Override\n public void init() {\n }", "@Override\n public void init() {\n\n }", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "public void mo6944a() {\n }", "protected boolean func_70041_e_() { return false; }" ]
[ "0.6830196", "0.6692951", "0.6536437", "0.65216404", "0.6512161", "0.6459532", "0.64544636", "0.6443396", "0.64093846", "0.6392295", "0.6350895", "0.63426644", "0.6327568", "0.63140607", "0.6310025", "0.62988853", "0.6227509", "0.6218424", "0.6198849", "0.6182894", "0.6181486", "0.6165781", "0.61615795", "0.6151393", "0.6148909", "0.61449564", "0.61377054", "0.6133148", "0.6104187", "0.60988134", "0.6097494", "0.6097494", "0.6081465", "0.6080989", "0.6073971", "0.6060147", "0.60282254", "0.60235554", "0.60199386", "0.6018539", "0.6018157", "0.6007893", "0.60049546", "0.60006744", "0.5986426", "0.59796345", "0.5974414", "0.5965113", "0.5957224", "0.59505886", "0.5948604", "0.59475946", "0.59466195", "0.5945617", "0.59448856", "0.5943305", "0.59421283", "0.5940765", "0.59308386", "0.592821", "0.592821", "0.5926367", "0.59217834", "0.59211826", "0.592049", "0.591825", "0.59149605", "0.59021723", "0.5897967", "0.5888561", "0.58863086", "0.58853704", "0.5880638", "0.5880123", "0.5880123", "0.5879468", "0.58779913", "0.5875639", "0.58738154", "0.5873315", "0.5870952", "0.5862479", "0.5858173", "0.58547205", "0.5851083", "0.5848849", "0.58450913", "0.5844985", "0.5837495", "0.5829708", "0.5824861", "0.58242625", "0.5823767", "0.58214295", "0.58212405", "0.5815208", "0.58135295", "0.5812177", "0.58092254", "0.580029", "0.5796294" ]
0.0
-1
/ Access modifiers changed, original: final
public final <ConvertedDataType, OutParamType> void a(int i, a<ConvertedDataType, OutParamType> aVar) { int i2 = 1; AppMethodBeat.i(135485); ab.i("MicroMsg.OpenVoice.OpenVoiceNativeCallbackMgr", "hy: registering event id: %d", Integer.valueOf(i)); synchronized (this) { try { HashSet hashSet = (HashSet) this.kzG.get(i); if (hashSet == null) { hashSet = new HashSet(1); } else { i2 = 0; } hashSet.add(aVar); if (i2 != 0) { this.kzG.append(i, hashSet); } } finally { while (true) { } AppMethodBeat.o(135485); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "@Override\n boolean isFinal() {\n return false;\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void method_4270() {}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void prot() {\n }", "public abstract void mo70713b();", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract Object mo26777y();", "public final void mo91715d() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void m23075a() {\n }", "public abstract void mo27386d();", "@Override\n public boolean isFinal() {\n return true;\n }", "public abstract void mo27385c();", "public void mo21779D() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private final void i() {\n }", "public void gored() {\n\t\t\n\t}", "public abstract void mo42329d();", "public abstract void mo30696a();", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo56925d();", "public void mo21793R() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public abstract Object mo1771a();", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public abstract void mo27464a();", "public abstract void mo42331g();", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void jugar() {}", "protected boolean func_70814_o() { return true; }", "public void mo21785J() {\n }", "void m1864a() {\r\n }", "public void mo21825b() {\n }", "public void mo21787L() {\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo23813b() {\n }", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "public void mo1531a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo4359a() {\n }", "@Override\n public void memoria() {\n \n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public abstract void mo35054b();", "public void mo115190b() {\n }", "protected abstract Set method_1559();", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo21782G() {\n }", "public abstract String mo13682d();", "public void mo12930a() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public void mo97908d() {\n }", "public abstract void m15813a();", "public abstract String mo118046b();", "public void mo21792Q() {\n }", "final void getData() {\n\t\t//The final method can't be overriden\n\t}", "public abstract String mo41079d();", "@Override\n\tpublic void modify() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "public void mo12628c() {\n }", "public void mo21877s() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo21878t() {\n }", "private void m50367F() {\n }", "public abstract Object mo1185b();", "public void mo3749d() {\n }", "public abstract void mo42330e();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void leti() \n\t{\n\t}", "public abstract void mo102899a();", "private Singletion3() {}", "@Override\n public void init() {\n }", "@Override\n public void init() {\n\n }", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "public void mo6944a() {\n }", "protected boolean func_70041_e_() { return false; }" ]
[ "0.6830196", "0.6692951", "0.6536437", "0.65216404", "0.6512161", "0.6459532", "0.64544636", "0.6443396", "0.64093846", "0.6392295", "0.6350895", "0.63426644", "0.6327568", "0.63140607", "0.6310025", "0.62988853", "0.6227509", "0.6218424", "0.6198849", "0.6182894", "0.6181486", "0.6165781", "0.61615795", "0.6151393", "0.6148909", "0.61449564", "0.61377054", "0.6133148", "0.6104187", "0.60988134", "0.6097494", "0.6097494", "0.6081465", "0.6080989", "0.6073971", "0.6060147", "0.60282254", "0.60235554", "0.60199386", "0.6018539", "0.6018157", "0.6007893", "0.60049546", "0.60006744", "0.5986426", "0.59796345", "0.5974414", "0.5965113", "0.5957224", "0.59505886", "0.5948604", "0.59475946", "0.59466195", "0.5945617", "0.59448856", "0.5943305", "0.59421283", "0.5940765", "0.59308386", "0.592821", "0.592821", "0.5926367", "0.59217834", "0.59211826", "0.592049", "0.591825", "0.59149605", "0.59021723", "0.5897967", "0.5888561", "0.58863086", "0.58853704", "0.5880638", "0.5880123", "0.5880123", "0.5879468", "0.58779913", "0.5875639", "0.58738154", "0.5873315", "0.5870952", "0.5862479", "0.5858173", "0.58547205", "0.5851083", "0.5848849", "0.58450913", "0.5844985", "0.5837495", "0.5829708", "0.5824861", "0.58242625", "0.5823767", "0.58214295", "0.58212405", "0.5815208", "0.58135295", "0.5812177", "0.58092254", "0.580029", "0.5796294" ]
0.0
-1
/ Access modifiers changed, original: final
public final <ConvertedDataType, OutParamType> void b(int i, a<ConvertedDataType, OutParamType> aVar) { AppMethodBeat.i(135486); synchronized (this) { try { HashSet hashSet = (HashSet) this.kzG.get(i); if (hashSet != null) { hashSet.remove(aVar); } } finally { while (true) { } AppMethodBeat.o(135486); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "@Override\n boolean isFinal() {\n return false;\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void method_4270() {}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void prot() {\n }", "public abstract void mo70713b();", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract Object mo26777y();", "public final void mo91715d() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void m23075a() {\n }", "public abstract void mo27386d();", "@Override\n public boolean isFinal() {\n return true;\n }", "public abstract void mo27385c();", "public void mo21779D() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private final void i() {\n }", "public void gored() {\n\t\t\n\t}", "public abstract void mo42329d();", "public abstract void mo30696a();", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo56925d();", "public void mo21793R() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public abstract Object mo1771a();", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public abstract void mo27464a();", "public abstract void mo42331g();", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void jugar() {}", "protected boolean func_70814_o() { return true; }", "public void mo21785J() {\n }", "void m1864a() {\r\n }", "public void mo21825b() {\n }", "public void mo21787L() {\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo23813b() {\n }", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "public void mo1531a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo4359a() {\n }", "@Override\n public void memoria() {\n \n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public abstract void mo35054b();", "public void mo115190b() {\n }", "protected abstract Set method_1559();", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo21782G() {\n }", "public abstract String mo13682d();", "public void mo12930a() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public void mo97908d() {\n }", "public abstract void m15813a();", "public abstract String mo118046b();", "public void mo21792Q() {\n }", "final void getData() {\n\t\t//The final method can't be overriden\n\t}", "public abstract String mo41079d();", "@Override\n\tpublic void modify() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "public void mo12628c() {\n }", "public void mo21877s() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo21878t() {\n }", "private void m50367F() {\n }", "public abstract Object mo1185b();", "public void mo3749d() {\n }", "public abstract void mo42330e();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void leti() \n\t{\n\t}", "public abstract void mo102899a();", "private Singletion3() {}", "@Override\n public void init() {\n }", "@Override\n public void init() {\n\n }", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "public void mo6944a() {\n }", "protected boolean func_70041_e_() { return false; }" ]
[ "0.6830196", "0.6692951", "0.6536437", "0.65216404", "0.6512161", "0.6459532", "0.64544636", "0.6443396", "0.64093846", "0.6392295", "0.6350895", "0.63426644", "0.6327568", "0.63140607", "0.6310025", "0.62988853", "0.6227509", "0.6218424", "0.6198849", "0.6182894", "0.6181486", "0.6165781", "0.61615795", "0.6151393", "0.6148909", "0.61449564", "0.61377054", "0.6133148", "0.6104187", "0.60988134", "0.6097494", "0.6097494", "0.6081465", "0.6080989", "0.6073971", "0.6060147", "0.60282254", "0.60235554", "0.60199386", "0.6018539", "0.6018157", "0.6007893", "0.60049546", "0.60006744", "0.5986426", "0.59796345", "0.5974414", "0.5965113", "0.5957224", "0.59505886", "0.5948604", "0.59475946", "0.59466195", "0.5945617", "0.59448856", "0.5943305", "0.59421283", "0.5940765", "0.59308386", "0.592821", "0.592821", "0.5926367", "0.59217834", "0.59211826", "0.592049", "0.591825", "0.59149605", "0.59021723", "0.5897967", "0.5888561", "0.58863086", "0.58853704", "0.5880638", "0.5880123", "0.5880123", "0.5879468", "0.58779913", "0.5875639", "0.58738154", "0.5873315", "0.5870952", "0.5862479", "0.5858173", "0.58547205", "0.5851083", "0.5848849", "0.58450913", "0.5844985", "0.5837495", "0.5829708", "0.5824861", "0.58242625", "0.5823767", "0.58214295", "0.58212405", "0.5815208", "0.58135295", "0.5812177", "0.58092254", "0.580029", "0.5796294" ]
0.0
-1
Returns an entry representing a file.
private static Entry<String, Item> entry(String fileName) { Entry<String, Item> entry = new Entry<String, Item>(); entry.setKey(fileName); entry.setData(item(fileName)); return entry; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.devtools.kythe.proto.Analysis.FileInfo getEntry(int index);", "public FileSystemEntry getEntry(String path);", "public com.google.devtools.kythe.proto.Analysis.FileInfo getEntry(int index) {\n return entry_.get(index);\n }", "public static File getResourceAsFile(String fileEntry) {\n\t\tFile file = null;\n \ttry {\n \t\tURL url \t= Activator.getDefault().getBundle().getEntry(fileEntry);\n \t\tURL fileURL = FileLocator.toFileURL(url);\n \t\tURL resolve = FileLocator.resolve(fileURL);\n \t\tfile \t\t= new File(resolve.getFile());\n \t} catch(Exception e){\n Activator.getDefault().log(e.getMessage(), e);\n \t}\n \treturn file;\n\t\t\n\t}", "public Object getEntryFilePath() {\n return this.entryFilePath;\n }", "public com.google.devtools.kythe.proto.Analysis.FileInfo getEntry(int index) {\n if (entryBuilder_ == null) {\n return entry_.get(index);\n } else {\n return entryBuilder_.getMessage(index);\n }\n }", "TarEntry CreateEntryFromFile(String fileName);", "private FileEntry() {\n // intentionally empty\n }", "public GitFileSystemEntry getFile(String filename) {\n for (GitFileSystemEntry entry : files) {\n if (entry.getFilename().equals(filename)) {\n return entry;\n }\n }\n\n return null;\n }", "public File getFileValue();", "FileObject getFile();", "FileObject getFile();", "File getFile();", "File getFile();", "public File getFile();", "public File getFile();", "public Entry getEntry(String aPath)\n {\n if(getRepo()==null) return null;\n \n // Handle root special\n if(aPath.equals(\"/\")) return new Entry(null, aPath);\n \n // Get repository index and entry for path\n DirCache index = getIndex(); String path = aPath.substring(1);\n DirCacheEntry entry = index.getEntry(aPath.substring(1));\n boolean isDir = entry==null && index.getEntriesWithin(path).length>0;\n if(entry==null && !isDir) return null;\n \n // Create file for path and index entry\n return new Entry(entry, aPath);\n }", "com.google.devtools.kythe.proto.Analysis.FileInfoOrBuilder getEntryOrBuilder(\n int index);", "alluxio.proto.journal.File.InodeFileEntry getInodeFile();", "public File getFile() { return file; }", "public File getFile ();", "public File getFileForKey(String key) {\n\t\treturn new File(mRootDirectory, getFilenameForKey(key));\n\t}", "String getFile() {\n\t\treturn file;\n\t}", "public String getFile()\n\t{\n\t\treturn file;\n\t}", "public String getFile()\n\t{\n\t\treturn file;\n\t}", "public static File getFile(String key) {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\treturn new File(get(key));\n\t}", "public File getFile() {\n\t\treturn new File(filepath);\n\t}", "@Override\n\tpublic File getFile() {\n\t\treturn file;\n\t}", "public com.google.devtools.kythe.proto.Analysis.FileInfoOrBuilder getEntryOrBuilder(\n int index) {\n return entry_.get(index);\n }", "public final TarEntry CreateEntryFromFile(String fileName)\n\t\t{\n\t\t\treturn TarEntry.CreateEntryFromFile(fileName);\n\t\t}", "String getFile();", "String getFile();", "String getFile();", "public File getFile() {\r\n \t\treturn file;\r\n \t}", "entities.Torrent.FileInfo getFileInfo();", "entities.Torrent.FileInfo getFileInfo();", "public String getFile() {\n \n // return it\n return theFile;\n }", "@Override\n public GEMFile getFile(String filename, String directory) {\n Object o = gemFileDb.get(Paths.get(directory, filename).toString());\n if (o instanceof GEMFile) {\n return (GEMFile) o;\n }\n return null;\n }", "public File getFile() {\n return file;\n }", "public File getFile() {\n // some code goes here\n return m_f;\n }", "public java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> getEntryList() {\n return entry_;\n }", "FileReference getFile(String fileName);", "public String getFile() {\n return \"null\"; // getFileTopic().getCompositeValue().getTopic(FILE_PATH);\n }", "public File getFile() {\n return file;\n }", "public File getFile() {\n return file;\n }", "public File getFile() {\n return file;\n }", "public File getFile() {\n return file;\n }", "public VFSEntry getEntry() {\r\n\t\treturn entry;\r\n\t}", "public File getFile()\n {\n return file;\n }", "public File getFile(String key) {\n \tif( fileMap.containsKey(key) )\n \t\treturn fileMap.get(key);\n \t\n \treturn null;\n }", "TarEntry CreateEntry(String name);", "public alluxio.proto.journal.File.InodeFileEntry getInodeFile() {\n if (inodeFileBuilder_ == null) {\n return inodeFile_;\n } else {\n return inodeFileBuilder_.getMessage();\n }\n }", "public File getFile() {\n // some code goes here\n return f;\n }", "public com.google.devtools.kythe.proto.Analysis.FileInfoOrBuilder getEntryOrBuilder(\n int index) {\n if (entryBuilder_ == null) {\n return entry_.get(index); } else {\n return entryBuilder_.getMessageOrBuilder(index);\n }\n }", "public File getFile() {\n\t\treturn file;\n\t}", "public Builder addEntry(com.google.devtools.kythe.proto.Analysis.FileInfo value) {\n if (entryBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureEntryIsMutable();\n entry_.add(value);\n onChanged();\n } else {\n entryBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addEntry(\n int index, com.google.devtools.kythe.proto.Analysis.FileInfo value) {\n if (entryBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureEntryIsMutable();\n entry_.add(index, value);\n onChanged();\n } else {\n entryBuilder_.addMessage(index, value);\n }\n return this;\n }", "File getFile() { return user_file; }", "public File getFile() {\n return file;\n }", "public com.google.devtools.kythe.proto.Analysis.FileInfo.Builder getEntryBuilder(\n int index) {\n return getEntryFieldBuilder().getBuilder(index);\n }", "public String file() {\n return this.file;\n }", "public ArchiveEntry addEntry (File baseDir, File file, URI format)\n\t\tthrows IOException\n\t{\n\t\tif (!file.exists ())\n\t\t\tthrow new IOException (\"file does not exist.\");\n\t\t\n\t\tif (!file.getAbsolutePath ().contains (baseDir.getAbsolutePath ()))\n\t\t\tthrow new IOException (\"file must be in basedir.\");\n\t\t\n\t\tString localName = file.getAbsolutePath ()\n\t\t\t.replace (baseDir.getAbsolutePath (), \"\");\n\t\t\n\t\treturn addEntry (file, localName, format, false);\n\t}", "@Override\n\tpublic synchronized Entry get(String key) {\n\t\tCacheHeader entry = mEntries.get(key);\n\t\t// if the entry does not exist, return.\n\t\tif (entry == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tFile file = getFileForKey(key);\n\t\tCountingInputStream cis = null;\n\t\ttry {\n\t\t\tcis = new CountingInputStream(new FileInputStream(file));\n\t\t\tCacheHeader.readHeader(cis); // eat header\n\t\t\tbyte[] data = streamToBytes(cis,\n\t\t\t\t\t(int) (file.length() - cis.bytesRead));\n\t\t\treturn entry.toCacheEntry(data);\n\t\t} catch (IOException e) {\n\t\t\tVolleyLog.d(\"%s: %s\", file.getAbsolutePath(), e.toString());\n\t\t\tremove(key);\n\t\t\treturn null;\n\t\t} finally {\n\t\t\tif (cis != null) {\n\t\t\t\ttry {\n\t\t\t\t\tcis.close();\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public final File getFile() {\n return file;\n }", "public File getAttributeFile();", "interface Entry {\n\n /** The entry name separator as a string. */\n String SEPARATOR = ArchiveEntry.SEPARATOR;\n\n /** The entry name separator as a character. */\n char SEPARATOR_CHAR = ArchiveEntry.SEPARATOR_CHAR;\n\n /**\n * Denotes the entry name of the virtual root directory.\n * This name is used as the value of the <code>innerEntryName</code>\n * property if a <code>File</code> instance denotes an archive file.\n * <p>\n * This constant may be safely used for identity comparison.\n */\n String ROOT_NAME = \"\";\n}", "public File getFile() {\n // some code goes here\n return this.f;\n }", "private File getFile(String filename) throws Exception {\n\t\tFile file = new File(filename);\n\t\tif (file.exists()) {\n\t\t\treturn file;\n\t\t} else if (!file.isAbsolute()) {\n\t\t\tfinal Resource r = context.getThisInstance().eResource();\n\t\t\tfinal Path p = new Path(r.getURI().segment(1) + File.separator + filename);\n\t\t\tfinal IFile f = ResourcesPlugin.getWorkspace().getRoot().getFile(p);\n\t\t\tif (f.exists()) {\n\t\t\t\treturn f.getRawLocation().makeAbsolute().toFile();\n\t\t\t}\n\t\t}\n\n\t\tthrow new Exception(\"Filename \" + filename + \" not found\");\n\n\t}", "public void add(FileSystemEntry entry);", "File openFile();", "FileStore getFile(String fileRefId);", "public interface FileDescriptor {\n\t/**\n\t * The mapping file name. This is its name within the archive, the\n\t * expectation being that most times this will equate to a \"classpath\n\t * lookup resource name\".\n\t *\n\t * @return The mapping file resource name.\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Retrieves access to the InputStream for the mapping file.\n\t *\n\t * @return Access to the InputStream for the mapping file.\n\t */\n\tpublic InputStream getStream();\n}", "private static String getEntryName(File source, File file) throws IOException {\n\t\tint index = source.getAbsolutePath().length() + 1;\n\t\tString path = file.getCanonicalPath();\n\n\t\treturn path.substring(index);\n\t}", "public ZipArchiveEntry(final File inputFile, final String entryName) {\n this(inputFile.isDirectory() && !entryName.endsWith(\"/\") ? entryName + \"/\" : entryName);\n if (inputFile.isFile()) {\n setSize(inputFile.length());\n }\n setTime(inputFile.lastModified());\n }", "entities.Torrent.FileInfo getFileInfo(int index);", "File a(File file) {\n if (file != null) {\n if (file.exists() || file.mkdirs()) {\n return file;\n }\n akx.h().d(\"Fabric\", \"Couldn't create file\");\n do {\n return null;\n break;\n } while (true);\n }\n akx.h().a(\"Fabric\", \"Null File\");\n return null;\n }", "public File getFile() {\n return _file;\n }", "public FileObject getFile() {\n return file;\n }", "public FileObject getFile() {\n return file;\n }", "@Override\n public int getFile() {\n return file;\n }", "public byte[] readFile(RAFFileEntry fileEntry) throws IOException {\n\t\tarchiveFile.setPosition(fileEntry.getDataOffset());\n\t\tif (fileEntry.getDataSize() > 0xFFFFFFFFL) throw new IOException(\"File too big.\");\n\t\tbyte[] data = archiveFile.readBytes((int) fileEntry.getDataSize());\n\t\treturn data;\n\t}", "public TarArchiveEntry() {\n this.version = VERSION_POSIX;\n this.name = \"\";\n this.linkName = \"\";\n this.linkFlag = LF_GNUTYPE_LONGNAME;\n String user = System.getProperty(\"user.name\", \"\");\n if (user.length() > MAX_NAMELEN) {\n user = user.substring(0, MAX_NAMELEN);\n }\n this.userName = user;\n this.groupName = \"\";\n this.userId = 0;\n this.groupId = 0;\n this.mode = DEFAULT_FILE_MODE;\n }", "File retrieveFile(String absolutePath);", "public File getFile() {\n\t\treturn this.file;\n\t}", "alluxio.proto.journal.File.CompleteFileEntry getCompleteFile();", "public ArchiveEntry getEntry (String location)\n\t{\n\t\tlocation = prepareLocation (location);\n\t\treturn entries.get (location);\n\t}", "public PDFileSpecification getFile() throws IOException {\n/* 398 */ COSBase f = this.stream.getDictionaryObject(COSName.F);\n/* 399 */ return PDFileSpecification.createFS(f);\n/* */ }", "public File getFile() {\n return new File(this.filePath);\n }", "public String getStringFile(){\n return fileView(file);\n }", "alluxio.proto.journal.File.InodeFileEntryOrBuilder getInodeFileOrBuilder();", "public String getRecordFile();", "public interface IEntryFactory\n\t{\n\t\t/** \n\t\t Create an entry based on name alone\n\t\t \n\t\t @param name\n\t\t Name of the new EntryPointNotFoundException to create\n\t\t \n\t\t @return created TarEntry or descendant class\n\t\t*/\n\t\tTarEntry CreateEntry(String name);\n\n\t\t/** \n\t\t Create an instance based on an actual file\n\t\t \n\t\t @param fileName\n\t\t Name of file to represent in the entry\n\t\t \n\t\t @return \n\t\t Created TarEntry or descendant class\n\t\t \n\t\t*/\n\t\tTarEntry CreateEntryFromFile(String fileName);\n\n\t\t/** \n\t\t Create a tar entry based on the header information passed\n\t\t \n\t\t @param headerBuffer\n\t\t Buffer containing header information to create an an entry from.\n\t\t \n\t\t @return \n\t\t Created TarEntry or descendant class\n\t\t \n\t\t*/\n\t\tTarEntry CreateEntry(byte[] headerBuffer);\n\t}", "public Builder setEntry(\n int index, com.google.devtools.kythe.proto.Analysis.FileInfo value) {\n if (entryBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureEntryIsMutable();\n entry_.set(index, value);\n onChanged();\n } else {\n entryBuilder_.setMessage(index, value);\n }\n return this;\n }", "public File getDataFile();", "java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> \n getEntryList();", "public final Entry getEntry(long synsetOffset) {\n\n Entry result = null;\n String line = null;\n\n try {\n dataFile.seek(synsetOffset);\n line = dataFile.readLine();\n }\n catch (IOException e) {\n }\n\n if (line != null) {\n result = new Entry(line, partOfSpeech);\n }\n\n return result;\n }", "public File getTemplateFile();", "private String generateZipEntry(String file) {\n return file.substring(srcFolder.length() + 1, file.length());\n }", "public RandomAccessFile getFile()\n {\n \treturn f;\n }", "public String getFilename();" ]
[ "0.70490414", "0.6888856", "0.6740384", "0.67177665", "0.669207", "0.6641869", "0.65760094", "0.6514864", "0.6488469", "0.6398952", "0.63219446", "0.63219446", "0.62322897", "0.62322897", "0.62273157", "0.62273157", "0.6177575", "0.613464", "0.60855025", "0.6083338", "0.6018745", "0.6006326", "0.5969844", "0.59692913", "0.59692913", "0.59568673", "0.5951745", "0.59445125", "0.5924118", "0.5898626", "0.5891187", "0.5891187", "0.5891187", "0.5877833", "0.58730775", "0.58730775", "0.58460426", "0.5842727", "0.5835042", "0.58208215", "0.5798989", "0.57591677", "0.5744368", "0.5737572", "0.5737572", "0.5737572", "0.5737572", "0.5734497", "0.57234675", "0.57194316", "0.5714697", "0.5713635", "0.5712994", "0.571024", "0.570511", "0.5705083", "0.5693124", "0.5682863", "0.5681938", "0.5681455", "0.56802315", "0.5677476", "0.5666615", "0.56577945", "0.56576985", "0.5652872", "0.56425035", "0.5628386", "0.56242543", "0.5616898", "0.5611232", "0.5609508", "0.55998194", "0.559428", "0.55925584", "0.55762255", "0.55745685", "0.5572264", "0.5572264", "0.5565659", "0.5563166", "0.5561739", "0.5555414", "0.5545062", "0.55434686", "0.55373836", "0.5523228", "0.55053836", "0.55031794", "0.5502602", "0.5500031", "0.54982257", "0.5497019", "0.54938394", "0.5484548", "0.5483984", "0.5483133", "0.5473409", "0.5470636", "0.5456995" ]
0.6756535
2
Returns an item representing a file.
private static Item item(String fileName) { Item item = new Item(); item.setTitle(fileName); item.setLink("/files/" + fileName); return item; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getFileValue();", "FileObject getFile();", "FileObject getFile();", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static Item loadItem(String filename)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(new File(filename)));\r\n\t\t\tItem item = (Item)ois.readObject();\r\n\t\t\tois.close();\r\n\t\t\tSystem.out.println(\"Loaded item from disk: \" + item);\r\n\t\t\treturn item;\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e2) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"No locally saved \" + filename + \" - creating a new one: \" + e2.getMessage());\r\n\t\t}\r\n\t\tcatch (IOException e2) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"IO Error: \" + e2.getMessage());\r\n\t\t} \r\n\t\tcatch (ClassNotFoundException e1) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"This copy of the program is missing some files: \" + e1.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public File getFile() { return file; }", "public File getFile();", "public File getFile();", "@Override\n\tpublic File getFile() {\n\t\treturn file;\n\t}", "public File getFile() {\n // some code goes here\n return m_f;\n }", "public String getFile() {\n \n // return it\n return theFile;\n }", "File getFile();", "File getFile();", "public FileObject getFile() {\n return file;\n }", "public FileObject getFile() {\n return file;\n }", "String getFile() {\n\t\treturn file;\n\t}", "@Generated(hash = 1451855236)\n public FileItemInfo getFileItemInfo() {\n long __key = this.fileId;\n if (fileItemInfo__resolvedKey == null || !fileItemInfo__resolvedKey.equals(__key)) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n FileItemInfoDao targetDao = daoSession.getFileItemInfoDao();\n FileItemInfo fileItemInfoNew = targetDao.load(__key);\n synchronized (this) {\n fileItemInfo = fileItemInfoNew;\n fileItemInfo__resolvedKey = __key;\n }\n }\n return fileItemInfo;\n }", "public File getFile ();", "public File getFile() {\n // some code goes here\n return f;\n }", "public IFile getIFile ();", "public File getFile() {\r\n \t\treturn file;\r\n \t}", "public File getFile()\n {\n return file;\n }", "public String getFile()\n\t{\n\t\treturn file;\n\t}", "public String getFile()\n\t{\n\t\treturn file;\n\t}", "public File getFile() {\n\t\treturn new File(filepath);\n\t}", "public File getFile() {\n return file;\n }", "File getFile() { return user_file; }", "public File getFile() {\n // some code goes here\n return this.f;\n }", "public File getFile() {\n return file;\n }", "public File getFile() {\n return file;\n }", "public File getFile() {\n return file;\n }", "public File getFile() {\n return file;\n }", "public File getFile() {\n return file;\n }", "public File getFile() {\n\t\treturn file;\n\t}", "public UploadedFileDTO getFile() {\r\n\t\ttype(ConfigurationItemType.FILE);\r\n\t\treturn fileValue;\r\n\t}", "public File getFile() {\n return _file;\n }", "@Override\n public Item getItem(String groupId, String itemId) {\n Item item = new Item(groupId, itemId);\n return item.getFile().exists() ? item : null;\n }", "@Transient\n\tpublic File getFileObj() {\n\t\treturn fileObj;\n\t}", "FileReference getFile(String fileName);", "FileStore getFile(String fileRefId);", "public void getitem(Writer bwout, File item) throws Exception {\n \tFileAuthInfo i = (FileAuthInfo) item.getAuthInfo();\n HttpResponse response = client.get(new URI(config.itemurl()+\"/\"+i.itemID+\"/\"+i.fileName+\"?token=\"+i.authToken));\n this.read_http_entity(response.getEntity(), bwout);\n }", "public RandomAccessFile getFile()\n {\n \treturn f;\n }", "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.File getFile();", "public PDFileSpecification getFile() throws IOException {\n/* 398 */ COSBase f = this.stream.getDictionaryObject(COSName.F);\n/* 399 */ return PDFileSpecification.createFS(f);\n/* */ }", "public PDFileSpecification getFile() throws IOException\n {\n COSBase f = stream.getDictionaryObject(COSName.F);\n return PDFileSpecification.createFS(f);\n }", "String getFile();", "String getFile();", "String getFile();", "public static File getFile(String key) {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\treturn new File(get(key));\n\t}", "@Override\n public int getFile() {\n return file;\n }", "public static FileItem fromFilename(String filename) {\n String[] splitted = filename.split(SEPARATOR_FIELDS);\n\n String name = splitted[0];\n String date = cleanDate(splitted[1]);\n String time = cleanTime(splitted[2]);\n String sensor = splitted[3];\n\n return new FileItem(filename, name, date, time, sensor);\n }", "public File getFile() {\n\t\treturn this.file;\n\t}", "public interface TaskItem {\n \n public List<File> getAllFiles();\n \n public void addFiles(List<File> files) throws Exception;\n \n public File getFile(int index);\n \n public ItemType getType();\n \n public Integer getNumber();\n \n public String getDescription();\n}", "public File getFile() {\n return new File(this.filePath);\n }", "public final File getFile() {\n return file;\n }", "public File getAttributeFile();", "public String file() {\n return this.file;\n }", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn files.get(position);\r\n\t}", "public File toFile() {\n\t\treturn this.file;\n\t}", "public T item() throws IOException, NoSuchElementException;", "public String getStringFile(){\n return fileView(file);\n }", "public String getFile() {\n return \"null\"; // getFileTopic().getCompositeValue().getTopic(FILE_PATH);\n }", "public InputStream getItemAsInputStream() {\r\n\t\treturn item;\r\n\t}", "public File getFileForKey(String key) {\n\t\treturn new File(mRootDirectory, getFilenameForKey(key));\n\t}", "@Get\r\n\tpublic Representation getFile() throws Exception {\n\r\n\t\tString remainPart = StringUtil.split(getRequest().getResourceRef().getRemainingPart(), \"?\")[0];\r\n\t\tFile file = getAradon().getGlobalConfig().plugin().findPlugInFile(MyConstants.PLUGIN_ID, \"jminix/js/\" + remainPart ) ;\r\n\t\t\r\n\t\tif (! file.exists()) throw new ResourceException(Status.CLIENT_ERROR_NOT_FOUND, getRequest().getResourceRef().getPath()) ; \r\n\r\n\t\tMediaType mtype = getMetadataService().getMediaType(StringUtil.substringAfterLast(file.getName(), \".\")) ;\r\n\t\tif (mtype == null) mtype = MediaType.ALL ; \r\n\t\t\r\n\t\tfinal FileRepresentation result = new FileRepresentation(file, mtype);\r\n\t\treturn result;\r\n\t}", "public static ScheduleItem readFromFile(RandomAccessFile fio, long pos){\n try {\n fio.seek(pos);\n int number = fio.readInt();\n String name = fio.readUTF();\n return new ScheduleItem(name, number);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public File getFile() {\n return this.path != null ? this.path.toFile() : null;\n }", "public byte[] getFile() {\n return file;\n }", "public String getFsItemPath() {\n return fsItemPath;\n }", "private File getFile() {\n\t\t// retornamos el fichero a enviar\n\t\treturn this.file;\n\t}", "static ResourceItem getResource(@NonNull Node node, @Nullable File from) {\n ResourceType type = getType(node, from);\n String name = getName(node);\n\n if (name != null) {\n if (type != null) {\n return new ResourceItem(name, type, node);\n }\n }\n\n return null;\n }", "@Override\r\n\tpublic Item getItem(String absPath) throws PathNotFoundException,\r\n\t\t\tRepositoryException {\n\t\treturn null;\r\n\t}", "public TreeItem(String file) throws DataFormatException, FileNotFoundException, IOException {\n\t\tsuper(file);\n\t}", "com.google.apps.drive.activity.v2.DriveItem.DriveFile getDriveFile();", "public java.lang.String getObjectFile() {\n java.lang.Object ref = objectFile_;\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 objectFile_ = s;\n return s;\n }\n }", "private Object getFile(String path) throws Exception {\t\t\t\n\t\t \n\t\t FileInputStream fileIn = new FileInputStream(path);\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\n\n Object obj = objectIn.readObject();\n objectIn.close();\n \n return obj;\t\t\n\t}", "public String getFilename();", "public File getObject() {\n return _objects;\n }", "public File toFile() throws WoodException\n {\n if(!exists()) {\n throw new WoodException(\"Attempt to use not existing file path |%s|.\", value);\n }\n return file;\n }", "public File getDataFile();", "public FileUploaderItem getFileUploaderItem(int index) {\n return (FileUploaderItem)m_items.getChildAt(index);\n }", "File openFile();", "public IFile getModelFile() {\r\n \t\treturn newFileCreationPage.getModelFile();\r\n \t}", "File retrieveFile(String absolutePath);", "public String openFile() {\n\t\t\n\t\tString chosenFile = \"\";\n\t\treturn chosenFile;\n\t\t\n\t}", "public java.lang.String getObjectFile() {\n java.lang.Object ref = objectFile_;\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 objectFile_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getText(AppFile anItem) { return anItem.getText(); }", "private File getIOFile() {\n \t\tIPath location = resource.getLocation();\n \t\tif(location!=null) {\n \t\t\treturn location.toFile();\n \t\t}\n \t\treturn null;\n \t}", "private File getFile(String filename) throws Exception {\n\t\tFile file = new File(filename);\n\t\tif (file.exists()) {\n\t\t\treturn file;\n\t\t} else if (!file.isAbsolute()) {\n\t\t\tfinal Resource r = context.getThisInstance().eResource();\n\t\t\tfinal Path p = new Path(r.getURI().segment(1) + File.separator + filename);\n\t\t\tfinal IFile f = ResourcesPlugin.getWorkspace().getRoot().getFile(p);\n\t\t\tif (f.exists()) {\n\t\t\t\treturn f.getRawLocation().makeAbsolute().toFile();\n\t\t\t}\n\t\t}\n\n\t\tthrow new Exception(\"Filename \" + filename + \" not found\");\n\n\t}", "edu.usfca.cs.dfs.StorageMessages.RetrieveFile getRetrieveFile();", "String getURL(FsItem f);", "abstract public MediaFile getMainFile();", "@Override\n\tpublic Item createItem(Player player) throws FileNotFoundException {\n\n\t\tItem item = null;\n\t\tcountItems(player.getEntities());\n\t\tRandom r = new Random();\n\n\t\tif (player.getHealth() <= Player.MAX_HEALTH / 2 && health < 1) {\n\n\t\t\tdouble x = r.nextInt(1180) + 50;\n\t\t\tdouble y = r.nextInt(620) + 50;\n\n\t\t\titem = new Health(healthSprite(), x, y, 40, 40, 25, 20, new NoMovement(), new HealthPerkAttack());\n\n\t\t} else if (player.getHealth() == 100 && player.getArmor() < 100 && armor < 1 && r.nextDouble() > 0.999) {\n\n\t\t\tdouble x = r.nextInt(1180) + 50;\n\t\t\tdouble y = r.nextInt(620) + 50;\n\n\t\t\titem = new Armor(armorSprite(), x, y, 40, 50, 15, 10, new NoMovement(), new ArmorPerkAttack());\n\t\t} else if (player.getHealth() < 100 && health < 1 && r.nextDouble() > 0.999) {\n\n\t\t\tdouble x = r.nextInt(1180) + 50;\n\t\t\tdouble y = r.nextInt(620) + 50;\n\n\t\t\titem = new Health(healthSprite(), x, y, 40, 40, 25, 20, new NoMovement(), new HealthPerkAttack());\n\t\t}\n\n\t\treturn item;\n\t}", "public File getFile(String key) {\n\t\tFile defaultValue = (File) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tFile file = new File(sp);\n\t\tif (file.exists())\n\t\t\treturn file;\n\t\telse {\n\t\t\tinternal.remove(key);\n\t\t\treturn defaultValue;\n\t\t}\n\t}", "public MultipartFile getFile() {\n\t\treturn file;\n\t}", "public WebFile getFile() { return _file; }", "public FileItem findFileItemById(String id) {\n\n\t\tif (!filesMap.containsKey(id)) {\n\t\t\treturn null;\n\t\t}\n\t\tMap<String, String> uploadedFileInfo = filesMap.get(id);\n\t\tlogger.trace(\"uploadfileInfo id\"\n\t\t\t\t+ uploadedFileInfo.get(UPLOADED_FILE_ORIG_FILE_SIZE));\n\t\tFile file = new File(uploadedFileInfo.get(UPLOADED_FILE_PATH));\n\n\t\tif (!file.exists()) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\tInputStream inputStream = new FileInputStream(file);\n\t\t\treturn new FileItem(id,\n\t\t\t\t\tuploadedFileInfo.get(UPLOADED_FILE_ORIG_FILE_NAME),\n\t\t\t\t\tuploadedFileInfo.get(UPLOADED_FILE_CONTENT_TYPE),\n\t\t\t\t\tinputStream, uploadedFileInfo.get(UPLOADED_FILE_FILE_NAME),\n\t\t\t\t\tLong.parseLong(uploadedFileInfo\n\t\t\t\t\t\t\t.get(UPLOADED_FILE_ORIG_FILE_SIZE)),\n\t\t\t\t\tuploadedFileInfo.get(UPLOADED_FILE_PATH));\n\t\t} catch (FileNotFoundException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public GEMFile getFile(String filename, String directory) {\n Object o = gemFileDb.get(Paths.get(directory, filename).toString());\n if (o instanceof GEMFile) {\n return (GEMFile) o;\n }\n return null;\n }", "FormattedSmartPlaylist readFromFile(File file) throws JAXBException, FileNotFoundException;", "public WebElement getFileInputElement(String identifier) {\n return findInputElement(\"file\", identifier);\n }", "IDocument getDocument(File file);" ]
[ "0.6760518", "0.6654276", "0.6654276", "0.66073513", "0.655517", "0.65524024", "0.65524024", "0.64748347", "0.6469455", "0.6455137", "0.64011204", "0.64011204", "0.6390183", "0.6390183", "0.63823396", "0.6382238", "0.6381305", "0.6380967", "0.6378059", "0.635114", "0.6349823", "0.63488054", "0.63488054", "0.63469744", "0.6305792", "0.62792695", "0.62564987", "0.6248436", "0.6223655", "0.6223655", "0.6223655", "0.6223655", "0.6182842", "0.6179021", "0.6167913", "0.61513233", "0.61334217", "0.61103874", "0.6108757", "0.60836375", "0.6075293", "0.60718274", "0.60685074", "0.60492086", "0.6047719", "0.6047719", "0.6047719", "0.60413605", "0.60312533", "0.6002381", "0.60022557", "0.5997849", "0.599637", "0.59914404", "0.5947576", "0.5939394", "0.5936768", "0.59123445", "0.5900578", "0.5893331", "0.5864714", "0.5860322", "0.5836716", "0.58146155", "0.5797393", "0.5782927", "0.5779885", "0.57204413", "0.5704257", "0.56833243", "0.56734735", "0.56626946", "0.56610966", "0.56415987", "0.5629601", "0.5611819", "0.5605239", "0.56039435", "0.5599073", "0.55986255", "0.5584613", "0.5580645", "0.55751985", "0.5573175", "0.5566238", "0.55612504", "0.55549747", "0.5545729", "0.552984", "0.5526571", "0.5526163", "0.5519604", "0.55143595", "0.55096203", "0.55053604", "0.55036515", "0.5501749", "0.5500878", "0.5500507", "0.5493015" ]
0.6965909
0
end BackgroundCalculator constructor longrunning code to be run in a worker thread
public Long doInBackground() { return nthFib = fibonacci(n); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void backgroundExecution() {\n // This moves the time consuming operation to a child thread.\n Thread thread=new Thread(null, doBackgroundThreadProcessing, \"Background\");\n thread.start();\n }", "private void backgroundThreadProcessing() {\n // [ ... Time consuming operations ... ]\n }", "@WorkerThread\n public abstract void zzaso();", "@Override\n public void run() {\n calculate();\n }", "BackgroundWorker (String page, int id, Context context) {this.page=page; this.id=id; this.context=context; flag=3;}", "@Override\n public void run()\n {\n calculate();\n }", "@Override\n public void run() {\n Message uiMSG;\n //Create message with only SHOW_ORIGINAL_COLOR argument\n uiMSG = BackgroundThread.this.uiHandler.obtainMessage(BidirectionalMessageActivity.SHOW_ORIGINAL_COLOR, 0, 0, null);\n BackgroundThread.this.uiHandler.sendMessage(uiMSG); //Send start message to UI thread\n\n fillProgressbar(progressBar); //Fill progress bar as a long time operation\n //Message with information SHOW_NEW_COLOR as a end of long time operation\n uiMSG = BackgroundThread.this.uiHandler.obtainMessage(BidirectionalMessageActivity.SHOW_NEW_COLOR, 0, 0, null);\n BackgroundThread.this.uiHandler.sendMessage(uiMSG); //Message with end result is sent\n }", "BackgroundWorker (String page, String name, String type, Context context) {this.page=page; this.name=name; this.type=type; this.context=context; flag=2;}", "BackgroundWorker (String page, int id, int ivmin, int ivmax, String attack, String ulti, String name, String username, Context context) {this.context=context; this.page=page; this.id=id; this.ivmin=ivmin; this.ivmax=ivmax; this.attack=attack; this.ulti=ulti; this.name=name; this.username=username; flag=4;}", "public void run()\r\n/* 49: */ {\r\n/* 50:170 */ if (!TrafficCounter.this.monitorActive) {\r\n/* 51:171 */ return;\r\n/* 52: */ }\r\n/* 53:173 */ TrafficCounter.this.resetAccounting(TrafficCounter.milliSecondFromNano());\r\n/* 54:174 */ if (TrafficCounter.this.trafficShapingHandler != null) {\r\n/* 55:175 */ TrafficCounter.this.trafficShapingHandler.doAccounting(TrafficCounter.this);\r\n/* 56: */ }\r\n/* 57:177 */ TrafficCounter.this.scheduledFuture = TrafficCounter.this.executor.schedule(this, TrafficCounter.this.checkInterval.get(), TimeUnit.MILLISECONDS);\r\n/* 58: */ }", "public Worker(){\n\n }", "private void startBackgroundWorker() {\n\t\tworker.execute(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\tif (!buildList.isEmpty()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTestsResultQueueEntry testsResultQueueEntry = buildList.get(0);\n\t\t\t\t\t\t\tTestsResult testsResult = pluginServices.getTestsResult(testsResultQueueEntry.jobId, testsResultQueueEntry.buildId);\n\t\t\t\t\t\t\tOctaneResponse response = pushTestsResult(testsResult);\n\t\t\t\t\t\t\tif (response.getStatus() == HttpStatus.SC_ACCEPTED) {\n\t\t\t\t\t\t\t\tlogger.info(\"tests result push SUCCEED\");\n\t\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t\t} else if (response.getStatus() == HttpStatus.SC_SERVICE_UNAVAILABLE) {\n\t\t\t\t\t\t\t\tlogger.info(\"tests result push FAILED, service unavailable; retrying after a breathe...\");\n\t\t\t\t\t\t\t\tbreathe(SERVICE_UNAVAILABLE_BREATHE_INTERVAL);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// case of any other fatal error\n\t\t\t\t\t\t\t\tlogger.error(\"tests result push FAILED, status \" + response.getStatus() + \"; dropping this item from the queue\");\n\t\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tlogger.error(\"tests result push failed; will retry after \" + SERVICE_UNAVAILABLE_BREATHE_INTERVAL + \"ms\", e);\n\t\t\t\t\t\t\tbreathe(SERVICE_UNAVAILABLE_BREATHE_INTERVAL);\n\t\t\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\t\t\tlogger.error(\"tests result push failed; dropping this item from the queue \", t);\n\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreathe(LIST_EMPTY_INTERVAL);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "DeltaWorker() {\n this.shouldStop = new AtomicBoolean(false);\n }", "public void run() {\n Looper.prepare();\n backgroundHandler = new Handler(); //Handler processes only runnables. It is not required to implement handleMessage(msg)\n Looper.loop();\n }", "public void run() {\n \t\t\r\n\t\t\tarraylist_destination.clear();\r\n\t\t\tarraylist_driverid.clear();\r\n\t\t\tarraylist_riderid.clear();\r\n\t\t\tarraylist_drivername.clear();\r\n\t\t\tarraylist_pickuptime.clear();\r\n\t\t\tarraylist_tripid.clear();\r\n\t\t\tarraylist_driver_image.clear();\r\n\t\t\tarraylist_rider_image.clear();\r\n\t\t\tarraylist_distance.clear();\r\n\t\t\tarraylist_requesttype.clear();\r\n\t\t\tarraylist_start.clear();\r\n\t\t\tarraylist_actualfare.clear();\r\n\t\t\tarraylist_suggestion.clear();\r\n\t\t\tarraylist_eta.clear();\r\n\t\t\tarraylist_driverrating.clear();\r\n\t\t\tarraylist_status.clear();\r\n\t\t\tarraylist_vehicle_color.clear();\r\n\t\t\tarraylist_vehicle_type.clear();\r\n\t\t\tarraylist_vehicle_name.clear();\r\n\t\t\tarraylist_vehicle_img.clear();\r\n\t\t\tarraylist_vehicle_year.clear();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(Utility.isConnectingToInternet(RiderQueue_Activity.this))\r\n \t \t{\r\n \t\t\t\t/**call pending request for rider queue class**/\r\n\t\t\t\tnew httpPendingRequest_riderqueue().execute(); \r\n \t \t\t}\r\n \t \telse{\r\n \t \t\tUtility.alertMessage(RiderQueue_Activity.this,\"error in internet connection\");\r\n \t \t}\r\n\t\t \r\n }", "private void runWork()\r\n\t{\r\n\t\tRunnable transferPending = new Runnable()\r\n\t\t{\r\n\r\n\t\t\tpublic void run()\r\n\t\t\t{\r\n\t\t\t\ttransferPendingCellData();\r\n\t\t\t\tfireTableDataChanged(); // causes the table to be updated\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\twhile(noStopRequested)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t// refresh the plans vector\r\n\t\t\t\tplans = new java.util.LinkedList(Control.getInstance().getPlanObjects());\r\n\t\t\t\tcreatePendingCellData();\r\n\t\t\t\tSwingUtilities.invokeAndWait(transferPending);\r\n\t\t\t\tThread.sleep(2000L); // the REFRESH rate is set at two seconds\r\n\t\t\t}catch(InvocationTargetException tx)\r\n\t\t\t{\r\n\t\t\t\tlogger.error(\"runWork - InvocationTargetException building cell data: \", tx);\r\n\t\t\t\tstopRequest();\r\n\t\t\t}catch(InterruptedException x)\r\n\t\t\t{\r\n\t\t\t\tThread.currentThread().interrupt();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "worker(long workOn) {\n this.workOn = workOn;\n }", "public void backgroundProcess();", "@Override\n\tpublic void run()\n\t{\n\t\tstartButton.setEnabled(false);\n\t\ttry {\n\t\t\tlong start = System.nanoTime();\n\t\t\tdouble premium = monteCarlo.runMonteCarlo(callPutFlagField.getText(),\n\t\t\t\t\tDouble.parseDouble(sField.getText()),\n\t\t\t\t\tDouble.parseDouble(xField.getText()),\n\t\t\t\t\tDouble.parseDouble(tField.getText()),\n\t\t\t\t\tDouble.parseDouble(rField.getText()),\n\t\t\t\t\tDouble.parseDouble(bField.getText()),\n\t\t\t\t\tDouble.parseDouble(vField.getText()),\n\t\t\t\t\tInteger.parseInt(nStepsField.getText()),\n\t\t\t\t\tInteger.parseInt(nSimulationsField.getText()));\n\t\t\tlong end = System.nanoTime();\n\t\t\tresultArea.append(\"Price = \" + premium + \"\\n\"); \n\t\t\tresultArea.append(\"calculated in \" + (end - start)/1.0e9 + \" seconds\\n\\n\");\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ExecutionException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tstartButton.setEnabled(true);\n\t}", "public grayTWorkerSweepRec() {\n }", "@Override\n public void co() {\n Object object;\n int n;\n object = this.mw;\n // MONITORENTER : object\n this.tV = gi.submit(this.tU);\n // MONITOREXIT : object\n try {\n object = this.tV.get(60000, TimeUnit.MILLISECONDS);\n n = -2;\n }\n catch (TimeoutException var2_2) {\n gs.W(\"Timed out waiting for native ad.\");\n n = 2;\n object = null;\n }\n catch (ExecutionException var2_3) {\n n = 0;\n object = null;\n }\n catch (InterruptedException var2_4) {\n object = null;\n n = -1;\n }\n catch (CancellationException var2_5) {\n object = null;\n n = -1;\n }\n if (object == null) {\n object = this.r(n);\n }\n gr.wC.post(new Runnable((fz)object){\n final /* synthetic */ fz ts;\n\n @Override\n public void run() {\n fn.this.tm.a(this.ts);\n }\n });\n }", "void backgroundProcess();", "private void workerExecute() {\r\n\r\n\t\t_workerStart = System.currentTimeMillis();\r\n\r\n\t\tPhoto[] newPhotos = null;\r\n\r\n\t\tif (_workerStateDir != null) {\r\n\r\n\t\t\t_display.syncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\r\n\t\t\t\t\t// guard against the ui being closed before this runs\r\n\t\t\t\t\tif (_uiContainer.isDisposed()) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tsetStatusMessage(UI.EMPTY_STRING);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t// get all image files, sorting is not yet done\r\n\t\t\tfinal File[] files = _workerStateDir.listFiles(_fileFilter);\r\n\r\n\t\t\t// check if interruption occred\r\n\t\t\tif (_workerCancelled) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tint numberOfImages = 0;\r\n\r\n\t\t\tif (files == null) {\r\n\r\n\t\t\t\t// prevent NPE\r\n\r\n\t\t\t\tnewPhotos = new Photo[0];\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// image files are available\r\n\r\n\t\t\t\tnumberOfImages = files.length;\r\n\r\n\t\t\t\tnewPhotos = new Photo[numberOfImages];\r\n\r\n\t\t\t\t// create a photo for each image file\r\n\t\t\t\tfor (int fileIndex = 0; fileIndex < numberOfImages; fileIndex++) {\r\n\r\n\t\t\t\t\tfinal File photoFile = files[fileIndex];\r\n\r\n\t\t\t\t\tPhoto galleryPhoto = PhotoCache.getPhoto(photoFile.getAbsolutePath());\r\n\r\n\t\t\t\t\tif (galleryPhoto == null) {\r\n\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * photo is not found in the photo cache, create a new photo\r\n\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\tgalleryPhoto = new Photo(photoFile);\r\n\r\n\t\t\t\t\t\tPhotoCache.setPhoto(galleryPhoto);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tnewPhotos[fileIndex] = galleryPhoto;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * sort photos with currently selected comparator\r\n\t\t\t\t */\r\n\t\t\t\t_currentComparator = getCurrentComparator();\r\n\t\t\t\tArrays.sort(newPhotos, _currentComparator);\r\n\t\t\t}\r\n\r\n\t\t\t// check if the previous files retrival has been interrupted\r\n\t\t\tif (_workerCancelled) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t_photoFolder = _workerStateDir;\r\n\r\n\t\t\tif (_photoFolder != null) {\r\n\t\t\t\t_newGalleryPositionKey = _photoFolder.getAbsolutePath();\r\n\t\t\t}\r\n\r\n\t\t\tworkerExecute_DisplayImages(newPhotos);\r\n\t\t}\r\n\t}", "BackgroundWorker (String page, String email, String username, String password, int appversion, Context context) {this.page=page; this.context=context; this.username=username; this.password=password; this.email=email; this.appversion=appversion; flag=6;}", "@Override\npublic void run() {\n perform();\t\n}", "public static void main(String[] args) {\n ShowLoadingBar showBar = new ShowLoadingBar();\n showBar.start();\n\n // Or instantiate a new Thread object, passing the Runnable as a parameter and call the start method\n Thread downloader = new Thread(new Downloader());\n downloader.start();\n\n // -------- Using futures ---------\n FutureCalculator calculator = new FutureCalculator();\n Future<Double> future = calculator.calculate(20d);\n\n try {\n do {\n Thread.sleep(10);\n System.out.println(\"Calculating...\");\n } while (!future.isDone());\n\n Double result = future.get();\n // If the ExecutorService.shutdown not be called, the Future won't finish and the program will run forever\n calculator.shutdown();\n System.out.println(result);\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tvoid startWork() {\n\t\t\n\t}", "@Override\n\tvoid startWork() {\n\t\t\n\t}", "@Override\n\t\tprotected Void doInBackground(Void... args) {\n\n\t\t\tMonitors mMonitors=new Monitors(mContext,pref);\n\t\t\tmMonitors.start();//this step takes time\n\t\t\tCommonMethods.Log(\"MonitorAsyncTask.doInBackground() completed\");\n\t\t\treturn null;\t\t\n\t\t}", "private static void runCalculations()\n {\n // TODO Create two different empty concurrent histograms\n\n // Create a sleep time simulator, it will sleep for 10 milliseconds in each call\n BaseSyncOpSimulator syncOpSimulator = new SyncOpSimulSleep(10);\n\n // List of threads\n List<Runner> runners = new LinkedList<>();\n\n // Create the threads and start them\n for (int i = 0; i < NUM_THREADS; i ++)\n {\n // TODO Pass the proper histograms\n final Runner runner = new Runner(syncOpSimulator, null, null);\n runners.add(runner);\n new Thread(runner).start();\n }\n\n // Wait for runners to finish\n runners.forEach(Runner::waitToFinish);\n\n // TODO Show the percentile distribution of the latency calculation of each executeOp call for all threads\n }", "public void runCalculation() throws InterruptedException {\n\tnew CalculationStarted(this).provide();\n\tcalculate();\n\tnew CalculationFinished(this).provide();\n }", "public void run() {\n Looper.prepare();\n operationRunnableOver = false;\n oper.operate();\n operationRunnableOver = true;\n if (StatusCheckUtil.mediaUpdating > 0) {\n return;\n }\n Message mess = new Message();\n mess.what = Constants.OperationContants.FINISH_OPERATION;\n mess.obj = operatingDialog;\n ((CommonActivity) context).handler.sendMessage(mess);\n\n Looper.loop();\n }", "protected void internalRun() {\n work();\n }", "void loadResourceLocator() {\r\n\t\tfinal BackgroundProgress bgp = new BackgroundProgress();\r\n\t\tbgp.setLocationRelativeTo(this);\r\n\t\tSwingWorker<Void, Void> worker = new SwingWorker<Void, Void>() {\r\n\t\t\t/** The resource locator. */\r\n\t\t\tprivate ResourceLocator rl;\r\n\t\t\t/** The galaxy model. */\r\n\t\t\tprivate GalaxyModel galaxyMap;\r\n\t\t\t/** The building model. */\r\n\t\t\tprivate BuildingModel buildingMap;\r\n\t\t\t/** The colony graphics. */\r\n\t\t\tprivate ColonyGFX colonyGraphics;\r\n\t\t\t/** Surface list. */\r\n\t\t\tprivate List<TileEntry> surfaces = JavaUtils.newArrayList();\r\n\t\t\t/** Buildings list. */\r\n\t\t\tprivate List<TileEntry> buildings = JavaUtils.newArrayList();\r\n\t\t\t/** Races. */\r\n\t\t\tprivate Set<String> races = JavaUtils.newHashSet();\r\n\t\t\t/** The loaded text renderer. */\r\n\t\t\tTextRenderer txt;\r\n\t\t\t@Override\r\n\t\t\tprotected Void doInBackground() throws Exception {\r\n\t\t\t\ttry {\r\n\t\t\t\t\trl = config.newResourceLocator();\r\n\t\t\t\t\tfinal ResourceLocator rl0 = rl;\r\n\t\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\tMapEditor.this.rl = rl0;\r\n\t\t\t\t\t\t\tsetLabels(deferredLanguage);\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\tfinal ExecutorService exec = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());\r\n\t\t\t\t\tfinal WipPort wip = new WipPort(3);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\texec.execute(new Runnable() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tgalaxyMap = new GalaxyModel();\r\n\t\t\t\t\t\t\t\t\tgalaxyMap.processGalaxy(rl, \"en\", \"campaign/main/galaxy\", exec, wip);\r\n\t\t\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\t\t\twip.dec();\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\texec.execute(new Runnable() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tbuildingMap = new BuildingModel();\r\n\t\t\t\t\t\t\t\t\tbuildingMap.processBuildings(rl, \"en\", \"campaign/main/buildings\", exec, wip);\r\n\t\t\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\t\t\twip.dec();\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} finally {\r\n\t\t\t\t\t\twip.dec();\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\twip.await();\r\n\t\t\t\t\t\t\texec.shutdown();\r\n\t\t\t\t\t\t\texec.awaitTermination(Long.MAX_VALUE, TimeUnit.MILLISECONDS);\r\n\t\t\t\t\t\t} catch (InterruptedException ex) {\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\tcolonyGraphics = new ColonyGFX(rl);\r\n\t\t\t\t\tcolonyGraphics.load(\"en\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttxt = new TextRenderer(rl);\r\n\t\t\t\t\tlabels.load(rl, \"en\", \"campaign/main\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tprepareLists(galaxyMap, buildingMap, surfaces, buildings, races);\r\n\t\t\t\t} catch (Throwable t) {\r\n\t\t\t\t\tt.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tprotected void done() {\r\n\t\t\t\tbgp.dispose();\r\n\t\t\t\tMapEditor.this.galaxyModel = galaxyMap;\r\n\t\t\t\tMapEditor.this.buildingModel = buildingMap;\r\n\t\t\t\trenderer.colonyGFX = colonyGraphics;\r\n\t\t\t\t\r\n\t\t\t\trenderer.selection = new Tile(1, 1, ImageUtils.recolor(colonyGraphics.tileEdge, 0xFFFFFF00), null);\r\n\t\t\t\trenderer.areaAccept = new Tile(1, 1, ImageUtils.recolor(colonyGraphics.tileEdge, 0xFF00FFFF), null);\r\n\t\t\t\trenderer.areaEmpty = new Tile(1, 1, ImageUtils.recolor(colonyGraphics.tileEdge, 0xFF808080), null);\r\n\t\t\t\trenderer.areaDeny = new Tile(1, 1, ImageUtils.recolor(colonyGraphics.tileCrossed, 0xFFFF0000), null);\r\n\t\t\t\trenderer.areaCurrent = new Tile(1, 1, ImageUtils.recolor(colonyGraphics.tileCrossed, 0xFFFFCC00), null);\r\n\t\t\t\t\r\n\t\t\t\trenderer.selection.alpha = 1.0f;\r\n\t\t\t\trenderer.areaAccept.alpha = 1.0f;\r\n\t\t\t\trenderer.areaDeny.alpha = 1.0f;\r\n\t\t\t\trenderer.areaCurrent.alpha = 1.0f;\r\n\t\t\t\r\n\t\t\t\trenderer.txt = this.txt;\r\n\t\t\t\trenderer.txt.setUseStandardFonts(ui.viewStandardFonts.isSelected());\r\n\t\t\t\tbuildTables(surfaces, buildings, races);\r\n\t\t\t}\r\n\t\t};\r\n\t\tworker.execute();\r\n\t\tbgp.setVisible(true);\r\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}", "@Override\n public void run() {\n add10000();\n }", "private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "public void run() {\r\n\t\tDate fechaActual = new Date();\r\n\t\ttry {\r\n\t\t\t// Actual\r\n\t\t\tint horaActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getHora(fechaActual));\r\n\t\t\tint minutosActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getMinutos(fechaActual));\r\n\r\n\t\t\tint horaInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\tint horaFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\t// Tiempo Actual en Minutos\r\n\t\t\tint tiempoActual = (horaActual * 60) + minutosActual;\r\n\r\n\t\t\t// Tiempos de Rango de Ejecucion en Minutos\r\n\t\t\tint rangoInicial = (horaInicialRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosInicialRangoEjecucion;\r\n\t\t\tint rangoFinal = (horaFinalRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosFinalRangoEjecucion;\r\n\r\n\t\t\t// Pregunta si la hora actual esta dentro del rango de ejecucion de\r\n\t\t\t// la tarea\r\n\t\t\tif ((tiempoActual >= rangoInicial) && (tiempoActual <= rangoFinal)) {\r\n\t\t\t\tDate start = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Corriendo proceso automatico Cobro de Ciat Casa Ciat : \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tnew BillingAccountServiceImpl().CobroCiatCasaCiat();\r\n\r\n\t\t\t\tDate end = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Termina proceso Envio de notificaciones automaticas Cobro de Ciat Casa Ciat \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(end.getTime()\r\n\t\t\t\t\t\t\t\t- start.getTime()\r\n\t\t\t\t\t\t\t\t+ \" total milliseconds en realizar tarea automatica Cobro de Ciat Casa Ciat : \");\r\n\r\n\t\t\t}// Fin if\r\n\t\t\telse {\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Tarea Automatica de notificacion Cobro de Ciat Casa Ciat en espera... \"\r\n\t\t\t\t\t\t\t\t+ new Date() + \" ----\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog\r\n\t\t\t\t\t.error(\"Error RUN Tarea Automatica de notificacion Cobro de Ciat Casa Ciat: \"\r\n\t\t\t\t\t\t\t+ e.getMessage());\r\n\t\t}\r\n\r\n\t\tfechaActual = null;\r\n\r\n\t}", "public void startCompute();", "public void start() {\n \t\tzCalc.start();\n \t}", "@Override\r\n public void run() {}", "private CoinTracker() {\n api = new CryptoCompare();\n new SymbolThread().start();\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n e = new Elements(api);\n e.frames.mainFrame.setTitle(TITLE + \" : \" + api.HOME);\n e.frames.mainFrame.setVisible(true);\n new HttpThread().start();\n new HistThread().start();\n }\n });\n }", "@Override\n public void run()\n {\n }", "@Override\n public void run()\n {\n }", "void allocateDeamonWorker(Work work);", "ThreadCounterRunner() {}", "@Override\n\t\tpublic void run() {\n\n\t\t\tif (cancel == true)\n\t\t\t\tupdateBarHandler.removeCallbacks(updateThread2);\n\t\t\telse {\n\t\t\t\t// 执行预处理:简单线性灰度变换\n\t\t\t\tbm = preProcess.linearGray(bm);\n\t\t\t\t// 装载\n\t\t\t\tmyImageView2.setImageBitmap(bm);\n\t\t\t\t// 设置进度条\n\t\t\t\tbar.setProgress(100 / N * 3);\n\t\t\t\tupdateBarHandler.post(updateThread3);\n\t\t\t}\n\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "private ImageDownloadManager() {\n\n /*\n * Creates a work queue for the pool of Thread objects used for downloading, using a linked\n * list queue that blocks when the queue is empty.\n */\n downloadWorkQueue = new LinkedBlockingQueue<Runnable>();\n\n /*\n * Creates a work queue for the set of of task objects that control downloading\n * using a linked list queue that blocks when the queue is empty.\n */\n imageDownloadTaskWorkQueue = new LinkedBlockingQueue<ImageDownloadTask>();\n\n /*\n * Creates a new pool of Thread objects for the download work queue\n */\n mDownloadThreadPool = new ThreadPoolExecutor(CORE_POOL_SIZE, MAXIMUM_POOL_SIZE,\n KEEP_ALIVE_TIME, KEEP_ALIVE_TIME_UNIT, downloadWorkQueue);\n\n\n // Anonymous object used to retrieve messags froma worker thread and pass\n // them to the UI thread\n mHandler = new Handler(Looper.getMainLooper()) {\n\n @Override\n public void handleMessage(Message inputMessage) {\n\n ImageDownloadTask imageDownloadTask = (ImageDownloadTask) inputMessage.obj;\n\n switch (inputMessage.what) {\n case DOWNLOAD_STARTED:\n break;\n\n case DOWNLOAD_COMPLETE:\n notifyListeners(imageDownloadTask);\n returnTaskToFreePool(imageDownloadTask);\n break;\n case DOWNLOAD_FAILED:\n returnTaskToFreePool(imageDownloadTask);\n break;\n default:\n super.handleMessage(inputMessage);\n }\n }\n };\n }", "public void run() {\n\t\t\t\tif (_uiContainer.isDisposed()) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// initialize tooltip for a new folder\r\n\t\t\t\t_photoGalleryTooltip.reset(true);\r\n\r\n\t\t\t\tfinal double galleryPosition = getCachedGalleryPosition();\r\n\r\n\t\t\t\t_galleryMT20.setupItems(0, galleryPosition, _restoredSelection);\r\n\r\n\t\t\t\t_restoredSelection = null;\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * update status info\r\n\t\t\t\t */\r\n\t\t\t\tfinal long timeDiff = System.currentTimeMillis() - _workerStart;\r\n\t\t\t\tfinal String timeDiffText = NLS.bind(\r\n\t\t\t\t\t\tMessages.Pic_Dir_Status_Loaded,\r\n\t\t\t\t\t\tnew Object[] { Long.toString(timeDiff), Integer.toString(_allPhotos.length) });\r\n\r\n\t\t\t\tsetStatusMessage(timeDiffText);\r\n\t\t\t}", "@Override\n public void run()\n {\n\n }", "private UniqueElementSingleThreadWorker()\n {\n _state = ActivityState.INITIALIZING;\n _taskQueue = new UniqueTagQueue<String, Runnable>();\n \n _taskThread = new Thread(\"UniqueElementSingleThreadWorker-\" + COUNTER.incrementAndGet())\n {\n @Override\n public void run()\n {\n while(true)\n {\n try\n {\n Runnable task = _taskQueue.blockingPop();\n if(task == SHUTDOWN_TASK)\n {\n break;\n }\n task.run();\n }\n catch(InterruptedException ex) { }\n //Catch run time exceptions that the runnable might throw so that the thread does not die\n catch(RuntimeException ex)\n {\n ErrorReporter.reportUncaughtException(ex);\n }\n }\n \n _state = ActivityState.SHUT_DOWN;\n }\n };\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n\tpublic void cleanup() {\n\t\tstopThread=true;\n\t\texecutorService.shutdown();\n\t\t//LOG.info(\"ratioCalculateInteger:\"+ratioCalculateInteger.get());\n\t}", "protected void run() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "public static void run(){}", "ThreadStart createThreadStart();", "public final void run() {\n /*\n r7 = this;\n r1 = r7.zzasj;\n monitor-enter(r1);\n r0 = r7.zzasi;\t Catch:{ RemoteException -> 0x006e }\n r0 = r0.zzasc;\t Catch:{ RemoteException -> 0x006e }\n if (r0 != 0) goto L_0x0034;\n L_0x000b:\n r0 = r7.zzasi;\t Catch:{ RemoteException -> 0x006e }\n r0 = r0.zzgt();\t Catch:{ RemoteException -> 0x006e }\n r0 = r0.zzjg();\t Catch:{ RemoteException -> 0x006e }\n r2 = \"Failed to get user properties\";\n r3 = r7.zzagj;\t Catch:{ RemoteException -> 0x006e }\n r3 = com.google.android.gms.measurement.internal.zzas.zzbw(r3);\t Catch:{ RemoteException -> 0x006e }\n r4 = r7.zzads;\t Catch:{ RemoteException -> 0x006e }\n r5 = r7.zzadz;\t Catch:{ RemoteException -> 0x006e }\n r0.zzd(r2, r3, r4, r5);\t Catch:{ RemoteException -> 0x006e }\n r0 = r7.zzasj;\t Catch:{ RemoteException -> 0x006e }\n r2 = java.util.Collections.emptyList();\t Catch:{ RemoteException -> 0x006e }\n r0.set(r2);\t Catch:{ RemoteException -> 0x006e }\n r0 = r7.zzasj;\t Catch:{ all -> 0x0059 }\n r0.notify();\t Catch:{ all -> 0x0059 }\n monitor-exit(r1);\t Catch:{ all -> 0x0059 }\n L_0x0033:\n return;\n L_0x0034:\n r2 = r7.zzagj;\t Catch:{ RemoteException -> 0x006e }\n r2 = android.text.TextUtils.isEmpty(r2);\t Catch:{ RemoteException -> 0x006e }\n if (r2 == 0) goto L_0x005c;\n L_0x003c:\n r2 = r7.zzasj;\t Catch:{ RemoteException -> 0x006e }\n r3 = r7.zzads;\t Catch:{ RemoteException -> 0x006e }\n r4 = r7.zzadz;\t Catch:{ RemoteException -> 0x006e }\n r5 = r7.zzaeg;\t Catch:{ RemoteException -> 0x006e }\n r6 = r7.zzaqk;\t Catch:{ RemoteException -> 0x006e }\n r0 = r0.zza(r3, r4, r5, r6);\t Catch:{ RemoteException -> 0x006e }\n r2.set(r0);\t Catch:{ RemoteException -> 0x006e }\n L_0x004d:\n r0 = r7.zzasi;\t Catch:{ RemoteException -> 0x006e }\n r0.zzcy();\t Catch:{ RemoteException -> 0x006e }\n r0 = r7.zzasj;\t Catch:{ all -> 0x0059 }\n r0.notify();\t Catch:{ all -> 0x0059 }\n L_0x0057:\n monitor-exit(r1);\t Catch:{ all -> 0x0059 }\n goto L_0x0033;\n L_0x0059:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0059 }\n throw r0;\n L_0x005c:\n r2 = r7.zzasj;\t Catch:{ RemoteException -> 0x006e }\n r3 = r7.zzagj;\t Catch:{ RemoteException -> 0x006e }\n r4 = r7.zzads;\t Catch:{ RemoteException -> 0x006e }\n r5 = r7.zzadz;\t Catch:{ RemoteException -> 0x006e }\n r6 = r7.zzaeg;\t Catch:{ RemoteException -> 0x006e }\n r0 = r0.zza(r3, r4, r5, r6);\t Catch:{ RemoteException -> 0x006e }\n r2.set(r0);\t Catch:{ RemoteException -> 0x006e }\n goto L_0x004d;\n L_0x006e:\n r0 = move-exception;\n r2 = r7.zzasi;\t Catch:{ all -> 0x0095 }\n r2 = r2.zzgt();\t Catch:{ all -> 0x0095 }\n r2 = r2.zzjg();\t Catch:{ all -> 0x0095 }\n r3 = \"Failed to get user properties\";\n r4 = r7.zzagj;\t Catch:{ all -> 0x0095 }\n r4 = com.google.android.gms.measurement.internal.zzas.zzbw(r4);\t Catch:{ all -> 0x0095 }\n r5 = r7.zzads;\t Catch:{ all -> 0x0095 }\n r2.zzd(r3, r4, r5, r0);\t Catch:{ all -> 0x0095 }\n r0 = r7.zzasj;\t Catch:{ all -> 0x0095 }\n r2 = java.util.Collections.emptyList();\t Catch:{ all -> 0x0095 }\n r0.set(r2);\t Catch:{ all -> 0x0095 }\n r0 = r7.zzasj;\t Catch:{ all -> 0x0059 }\n r0.notify();\t Catch:{ all -> 0x0059 }\n goto L_0x0057;\n L_0x0095:\n r0 = move-exception;\n r2 = r7.zzasj;\t Catch:{ all -> 0x0059 }\n r2.notify();\t Catch:{ all -> 0x0059 }\n throw r0;\t Catch:{ all -> 0x0059 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzep.run():void\");\n }", "@Override\n\tpublic void run()\n\t{\n\n\t}", "public HourlyWorker() {\n\t\tthis.num_hours = 1;\n\t\tthis.hourly_rate = 0.01;\n\t}", "private void background() {\n InputStream inputStream = null;\n try {\n inputStream = SSLUtils.invokeHttpsApi(urlString);\n //Log.d(TAG, \"result is \" + inputStream.toString());\n\n } catch (Exception e) {\n //Log.e(TAG, \"Unable to talk to rest countries api\", e);\n }\n\n try {\n SSLUtils.parseJsonCountriesOutput(inputStream, countryCapitalMap, currencyMap);\n } catch (Exception e) {\n //Log.e(TAG, \"unable to parse json output from countries api\");\n } finally {\n try {\n inputStream.close();\n } catch (Exception e) {\n\n }\n }\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "@Override\n\tpublic void run()\n\t{\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "public void run()\r\n\t{\r\n\t\t\r\n\t}", "private Timer() {\n myThread = new TimerThread();\n myThread.start();\n }", "@Override\n public void run(){\n }", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "@Override\n public void run() {\n }" ]
[ "0.7019079", "0.6346188", "0.63210243", "0.6020826", "0.60123837", "0.59896594", "0.59825265", "0.59437", "0.5901068", "0.5870266", "0.58495164", "0.5836906", "0.58228874", "0.57722455", "0.5763904", "0.5753168", "0.5746212", "0.5745955", "0.57076114", "0.56930727", "0.5689774", "0.5688815", "0.5685297", "0.5684312", "0.5673583", "0.5669068", "0.5658249", "0.5658249", "0.563948", "0.56234473", "0.5617055", "0.56095356", "0.55722654", "0.5571352", "0.5556147", "0.55497396", "0.55494845", "0.5548483", "0.5548483", "0.5548483", "0.5548483", "0.5548483", "0.5548483", "0.5548483", "0.55445594", "0.5538734", "0.5533956", "0.5529028", "0.5523532", "0.55217725", "0.55217725", "0.5515676", "0.5509889", "0.55063283", "0.55004066", "0.55004066", "0.5496034", "0.5493934", "0.54871505", "0.5486272", "0.54827744", "0.54827744", "0.5481805", "0.5481805", "0.5481805", "0.5481042", "0.548062", "0.54792917", "0.54792917", "0.5477118", "0.5475105", "0.54731363", "0.54580677", "0.5457483", "0.5456447", "0.5451094", "0.54470944", "0.54470944", "0.5445701", "0.5443043", "0.54422307", "0.54422307", "0.54422307", "0.54422307", "0.54422307", "0.54422307", "0.54422307", "0.54422307", "0.54422307", "0.544133", "0.544133", "0.544133", "0.544133", "0.544133", "0.544133", "0.544133", "0.5440154", "0.5425435", "0.54200846", "0.54190683", "0.5417909" ]
0.0
-1
end method doInBackground code to run on the event dispatch thread when doInBackground returns
protected void done() { try { // get the result of doInBackground and display it resultJLabel.setText(get().toString()); } // end try catch (InterruptedException ex) { resultJLabel.setText("Interrupted while waiting for results."); } // end catch catch (ExecutionException ex) { resultJLabel.setText("Error encountered while performing calculation."); } // end catch }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void inTheEndOfDoInBackground(NetworkResponse networkResponse);", "public void done() {\n AppMethodBeat.i(98166);\n try {\n AsyncTask.this.a(get());\n AppMethodBeat.o(98166);\n } catch (InterruptedException e) {\n AppMethodBeat.o(98166);\n } catch (ExecutionException e2) {\n RuntimeException runtimeException = new RuntimeException(\"An error occured while executing doInBackground()\", e2.getCause());\n AppMethodBeat.o(98166);\n throw runtimeException;\n } catch (CancellationException e3) {\n AsyncTask.this.a(null);\n AppMethodBeat.o(98166);\n }\n }", "public void done() {\n try {\n C1000c.this.mo5101e(get());\n } catch (InterruptedException e) {\n Log.w(\"AsyncTask\", e);\n } catch (ExecutionException e2) {\n throw new RuntimeException(\"An error occurred while executing doInBackground()\", e2.getCause());\n } catch (CancellationException unused) {\n C1000c.this.mo5101e(null);\n } catch (Throwable th) {\n throw new RuntimeException(\"An error occurred while executing doInBackground()\", th);\n }\n }", "@Override\n\t protected Void doInBackground() throws Exception {\n Thread.sleep(SLEEP_TIME);\n return null;\n }", "public void done() {\n try {\n AsyncTask.this.a(get());\n } catch (InterruptedException e) {\n Log.w(\"AsyncTask\", e);\n } catch (ExecutionException e2) {\n throw new RuntimeException(\"An error occured while executing doInBackground()\", e2.getCause());\n } catch (CancellationException unused) {\n AsyncTask.this.a(null);\n }\n }", "protected Boolean doInBackground(Void... param) {\n SystemClock.sleep(1000);\n return false;\n }", "@Override\n\t\tprotected Void doInBackground(String... arg0) {\n\t\t\tdoSomething();\n\t\t\treturn null;\n\t\t}", "@Override\n\tprotected Result doInBackground(Params... params)\n\t{\n\t\treturn null;\n\t}", "@Override\n\t\tprotected Object doInBackground(Object... params) {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tprotected Object doInBackground(Object... params) {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tprotected Object doInBackground(Object... params) {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\t\tprotected Object doInBackground(Object... params) {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\tprotected Application doInBackground() throws Exception {\n\t\treturn null;\n\t}", "@Override\n\t\t\t\tprotected Void doInBackground(Void... params)\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}", "@Override\n protected Void doInBackground(Void... params)\n {\n\t\t\t/* This is the part where the JSON parsing called, and this part\n\t\t\t * fills the List<EventInfo> events with event objects\n\t\t\t */\n //Get the current thread's token\n synchronized (this)\n {\n\n events=createList();\n // This ends the spinner\n publishProgress(100);\n }\n\n return null;\n }", "@Override\n protected Void doInBackground(Void... voids) {\n return null;\n }", "@Override\n protected Void doInBackground(Void... voids) {\n return null;\n }", "@Override\n protected Void doInBackground(Void... voids) {\n return null;\n }", "@Override\n protected Void doInBackground() {\n System.out.println(\"SwingWorker has started working.\");\n updateFields(gameService.receiveUpdates());\n return null;\n }", "@Override\n public Void doInBackground() {\n \tsetProgress(0);\n \tparseMapData(filename);\n \tsetProgress(100);\n return null;\n }", "@Override\n\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n \t\tprotected Void doInBackground(Void... params) \n \t\t{\n \t\t\ttry \n \t\t\t{\n \t\t\t\twhile(m_progress < 100) {\n \t\t\t\t\t//Get the current thread's token\n \t\t\t\t\tsynchronized (this) \n \t\t\t\t\t{\n \t\t\t\t\t\tthis.wait();\n \t\t\t\t\t\t//Set the current progress. \n \t\t\t\t\t\t//This value is going to be passed to the onProgressUpdate() method.\n \t\t\t\t\t\tpublishProgress(m_progress);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t} \n \t\t\tcatch (InterruptedException e) \n \t\t\t{\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t\treturn null;\n \t\t}", "@Override\r\n\tprotected Void doInBackground(Integer... params) {\n\t\treturn null;\r\n\t}", "@Override\n protected Void doInBackground(Void... params) {\n return null;\n }", "@Override\n protected Void doInBackground(Void... voids) {\n runTcpScan();\n return null;\n }", "@Override\n protected Boolean doInBackground(Void... params) {\n\n\n return true;\n\n\n\n }", "public final /* synthetic */ void onPostExecute(Object obj) {\n t_$J_ t__j_ = (t_$J_) obj;\n Callback callback = this.G__G_;\n if (callback != null) {\n callback.run(t__j_);\n }\n }", "@Override\r\n protected Object doInBackground() throws Exception {\n try {\r\n Thread.sleep(5500);\r\n\r\n } catch (Exception e) {}\r\n return null;\r\n }", "@Override\n public Void doInBackground() {\n Random random = new Random();\n\n return null;\n }", "@Override\n public Void doInBackground() {\n Random random = new Random();\n\n return null;\n }", "@Override\n protected BackgroundTaskResult doInBackground(Object... params)\n {\n BackgroundTaskResult retval = null;\n int paramCount = params.length;\n Object param = null;\n\n if (paramCount != 0) {\n param = params[0];\n }\n\n // controller that implements the function to be executed in background\n BaseController controller = getController();\n if (controller != null && controller instanceof BackgroundTaskListener) {\n retval = ((BackgroundTaskListener)controller).executeInBackground(param);\n }\n\n return retval;\n }", "@Override\n protected String[] doInBackground(Void... params) {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n }\n return null;\n }", "public Void doInBackground(Void... voidArr) {\n MoPubIdentifier.this.refreshAdvertisingInfoBackgroundThread();\n boolean unused = MoPubIdentifier.this.mRefreshingAdvertisingInfo = false;\n return null;\n }", "@Override\n\t\tprotected Void doInBackground(Void... args) {\n\n\t\t\tMonitors mMonitors=new Monitors(mContext,pref);\n\t\t\tmMonitors.start();//this step takes time\n\t\t\tCommonMethods.Log(\"MonitorAsyncTask.doInBackground() completed\");\n\t\t\treturn null;\t\t\n\t\t}", "@Override\r\n\t\tprotected String doInBackground(String... arg0)\r\n\t\t{\n\t\t\treturn \"something\";\r\n\t\t}", "private void handleNow() {\n Log.d(TAG, \"Short lived task is done.\");\n }", "private void handleNow() {\n Log.d(TAG, \"Short lived task is done.\");\n }", "@Override\n\t\tprotected String doInBackground(Void... params) {\n\t\t\treturn null;\n\t\t}", "@Override\r\n\t\tprotected Void doInBackground(Void... params) {\n\t\t\tgetDataFromDatabase();\r\n\t\t\t\r\n\t\t\treturn null;\r\n\t\t}", "public void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tif(e.getMessage()!=null) Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}", "public void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tif(e.getMessage()!=null) Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}", "public void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tif(e.getMessage()!=null) Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}", "@Override\n protected Object doInBackground(Object[] objects) {\n\n return null;\n }", "protected Double doInBackground(String... params) \n\t\t{\n\t\t\tpostData(params[0],params[1],params[2],params[3],params[4],params[5]);\n\t\t\treturn null;\n\t\t}", "@Override\n protected void onCancelled(String result) {\n\n try{\n\n mDoInBackground.onCancelled(result);\n\n }catch(Exception ex){\n\n ErrorHandler.logError(ex);\n }\n }", "@Override\n\t\t\tpublic void onAsyncTaskPreExecute(CustomAsyncTask customAsyncTask) \n\t\t\t{\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAsyncTaskPreExecute(CustomAsyncTask customAsyncTask) \n\t\t\t{\n\t\t\t\t\n\t\t\t}", "@Override\n protected Boolean doInBackground(Void... params)\n {\n\n mainLayoutTransaction.replace(com.example.thenotoriousrog.tornadomusicplayer.R.id.startup_layout, loadingScreenFragment);\n //mainLayoutTransaction.addToBackStack(null);\n mainLayoutTransaction.show(loadingScreenFragment);\n mainLayoutTransaction.commit(); // show this fragment while waiting for the songsInfo list to be set.\n\n convertToSongInfoThread.start(); // start the thread\n\n while(convertToSongInfoThread.isAlive()){\n // do nothing until the thread has finished.\n }\n\n mainLayoutTransaction.remove(loadingScreenFragment); // remove the loading fragment after we have finished with our loading screen.\n return true;\n }", "@Override\n protected void onPreExecute(){\n //do before task doing in background\n }", "@Override\n protected Void doInBackground() {\n progressBar.setIndeterminate(true);\n if (outputMerge) {\n mergeOut();\n } else {\n separateOut();\n }\n return null;\n }", "public void run() {\n Looper.prepare();\n operationRunnableOver = false;\n oper.operate();\n operationRunnableOver = true;\n if (StatusCheckUtil.mediaUpdating > 0) {\n return;\n }\n Message mess = new Message();\n mess.what = Constants.OperationContants.FINISH_OPERATION;\n mess.obj = operatingDialog;\n ((CommonActivity) context).handler.sendMessage(mess);\n\n Looper.loop();\n }", "protected android.graphics.Bitmap doInBackground(java.lang.Object... r5) {\n /*\n r4 = this;\n r3 = 0;\n r1 = com.lidroid.xutils.BitmapUtils.this;\n r2 = r1.pauseTaskLock;\n monitor-enter(r2);\n L_0x0008:\n r1 = com.lidroid.xutils.BitmapUtils.this;\t Catch:{ all -> 0x007b }\n r1 = r1.pauseTask;\t Catch:{ all -> 0x007b }\n if (r1 == 0) goto L_0x0016;\n L_0x0010:\n r1 = r4.isCancelled();\t Catch:{ all -> 0x007b }\n if (r1 == 0) goto L_0x0067;\n L_0x0016:\n monitor-exit(r2);\t Catch:{ all -> 0x007b }\n r0 = 0;\n r1 = r4.isCancelled();\n if (r1 != 0) goto L_0x0042;\n L_0x001e:\n r1 = r4.getTargetContainer();\n if (r1 == 0) goto L_0x0042;\n L_0x0024:\n r1 = 1;\n r1 = new java.lang.Object[r1];\n r2 = java.lang.Integer.valueOf(r3);\n r1[r3] = r2;\n r4.publishProgress(r1);\n r1 = com.lidroid.xutils.BitmapUtils.this;\n r1 = r1.globalConfig;\n r1 = r1.getBitmapCache();\n r2 = r4.uri;\n r3 = r4.displayConfig;\n r0 = r1.getBitmapFromDiskCache(r2, r3);\n L_0x0042:\n if (r0 != 0) goto L_0x0066;\n L_0x0044:\n r1 = r4.isCancelled();\n if (r1 != 0) goto L_0x0066;\n L_0x004a:\n r1 = r4.getTargetContainer();\n if (r1 == 0) goto L_0x0066;\n L_0x0050:\n r1 = com.lidroid.xutils.BitmapUtils.this;\n r1 = r1.globalConfig;\n r1 = r1.getBitmapCache();\n r2 = r4.uri;\n r3 = r4.displayConfig;\n r0 = r1.downloadBitmap(r2, r3, r4);\n r1 = com.lidroid.xutils.bitmap.callback.BitmapLoadFrom.URI;\n r4.from = r1;\n L_0x0066:\n return r0;\n L_0x0067:\n r1 = com.lidroid.xutils.BitmapUtils.this;\t Catch:{ Throwable -> 0x007e }\n r1 = r1.pauseTaskLock;\t Catch:{ Throwable -> 0x007e }\n r1.wait();\t Catch:{ Throwable -> 0x007e }\n r1 = com.lidroid.xutils.BitmapUtils.this;\t Catch:{ Throwable -> 0x007e }\n r1 = r1.cancelAllTask;\t Catch:{ Throwable -> 0x007e }\n if (r1 == 0) goto L_0x0008;\n L_0x0078:\n monitor-exit(r2);\t Catch:{ all -> 0x007b }\n r0 = 0;\n goto L_0x0066;\n L_0x007b:\n r1 = move-exception;\n monitor-exit(r2);\t Catch:{ all -> 0x007b }\n throw r1;\n L_0x007e:\n r1 = move-exception;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.lidroid.xutils.BitmapUtils.BitmapLoadTask.doInBackground(java.lang.Object[]):android.graphics.Bitmap\");\n }", "@Override\n\t\tprotected Void doInBackground(String... params) {\n\t\t\tpostData();\n\t\t\treturn null;\n\t\t}", "@Override\n protected TCPClient doInBackground(String... message) {\n mTcpClient = new TCPClient(new TCPClient.OnMessageReceived() {\n @Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n //this method calls the onProgressUpdate\n publishProgress(message);\n }\n });\n mTcpClient.run();\n\n return null;\n }", "@Override\n protected TCPClient doInBackground(String... message) {\n mTcpClient = new TCPClient(new TCPClient.OnMessageReceived() {\n @Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n //this method calls the onProgressUpdate\n publishProgress(message);\n }\n });\n mTcpClient.run();\n\n return null;\n }", "@Override\n protected TCPClient doInBackground(String... message) {\n mTcpClient = new TCPClient(new TCPClient.OnMessageReceived() {\n @Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n //this method calls the onProgressUpdate\n publishProgress(message);\n }\n });\n mTcpClient.run();\n\n return null;\n }", "@Override\n\t\tprotected String doInBackground(Void... arg0) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t//\tif (handler != null){\n\t\t //\t\thandler.removeCallbacks(runnable);\n\t\t //\t}\n\t\t\t\t\n\t\t\t\t//handler.postDelayed(runnable, 5000);\n\t\t\t\t\n\t\t\t\t//Log.v(\"upl\", \"ok\");\n\t\t\t\t\n\t\t\t\tupload_data();\n\t\t\t\t//download_data();\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tLog.v(\"error upl noo\", e.toString());\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\treturn null;\n\t\t}", "public void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t}", "public void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t}", "@Override\n protected void onPostExecute(final Void unused) {\n super.onPostExecute(unused);\n Log.i(\"Dict\", \"Done processing\");\n delegate.processFinish(result);\n }", "public void notifyAsyncTaskDone();", "public final /* synthetic */ Object doInBackground(Object[] objArr) {\n AppMethodBeat.i(37719);\n String cqh = cqh();\n AppMethodBeat.o(37719);\n return cqh;\n }", "public void run() {\n \t\t\r\n\t\t\tarraylist_destination.clear();\r\n\t\t\tarraylist_driverid.clear();\r\n\t\t\tarraylist_riderid.clear();\r\n\t\t\tarraylist_drivername.clear();\r\n\t\t\tarraylist_pickuptime.clear();\r\n\t\t\tarraylist_tripid.clear();\r\n\t\t\tarraylist_driver_image.clear();\r\n\t\t\tarraylist_rider_image.clear();\r\n\t\t\tarraylist_distance.clear();\r\n\t\t\tarraylist_requesttype.clear();\r\n\t\t\tarraylist_start.clear();\r\n\t\t\tarraylist_actualfare.clear();\r\n\t\t\tarraylist_suggestion.clear();\r\n\t\t\tarraylist_eta.clear();\r\n\t\t\tarraylist_driverrating.clear();\r\n\t\t\tarraylist_status.clear();\r\n\t\t\tarraylist_vehicle_color.clear();\r\n\t\t\tarraylist_vehicle_type.clear();\r\n\t\t\tarraylist_vehicle_name.clear();\r\n\t\t\tarraylist_vehicle_img.clear();\r\n\t\t\tarraylist_vehicle_year.clear();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(Utility.isConnectingToInternet(RiderQueue_Activity.this))\r\n \t \t{\r\n \t\t\t\t/**call pending request for rider queue class**/\r\n\t\t\t\tnew httpPendingRequest_riderqueue().execute(); \r\n \t \t\t}\r\n \t \telse{\r\n \t \t\tUtility.alertMessage(RiderQueue_Activity.this,\"error in internet connection\");\r\n \t \t}\r\n\t\t \r\n }", "public void handleFinish()\n {\n }", "protected abstract Result doInBackgroundConnected(Params... params);", "@Override\n protected void onPostExecute(Void result) {\n super.onPostExecute(result);//Run the generic code that should be ran when the task is complete\n onCompleteListener.onAsyncTaskComplete(result);//Run the code that should occur when the task is complete\n }", "@Override\n protected Void doInBackground(Void... params) {\n while (myProgress < 100) {\n myProgress++;\n publishProgress(myProgress);\n SystemClock.sleep(50);\n }\n return null;\n }", "@Override\n protected void onPostExecute(RoadInfo input) {\n delegate.processFinish(input);\n activity = null;\n }", "@Override\n protected Void doInBackground() throws Exception {\n progressLabel.setText(\"Exporting to VCF...\");\n // Switch \"Start\" button to \"Cancel\".\n workButton.removeActionListener(workButton.getActionListeners()[0]);\n workButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n workButton.setEnabled(false);\n workButton.setText(\"Cancelling...\");\n cancel(true);\n }\n });\n workButton.setText(\"Cancel\");\n\n ExportVCF.exportVCF(variantFile, this);\n return null;\n }", "@Override\n\t\t\t\t\tprotected Void doInBackground() throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\t\tnew Thread(new Runnable() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\texit = new ExitDialog();\n\t\t\t\t\t\t\t}});\n\t\t\t\t\t\tcenter.exit();\n\t\t\t\t\t\texit.closeSucess();\n\t\t\t\t\t\tcloseButton.setEnabled(false);\n\t\t\t\t\t\tstartButton.setEnabled(true);\n\t\t\t\t\t\t//infomation = new closeJPanel();\n\t\t\t\t\t\t//frmIpfs.getContentPane().add(infomation,BorderLayout.CENTER);\n\t\t\t\t\t\t//new Thread(infomation).start();\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "protected HttpUtils.HttpResult doInBackground() {\n\t\tHttpUtils.HttpResult result = null;\n if (context != null && !HttpUtils.isOnline(context)) {\n result = new HttpUtils.HttpResult();\n result.setEnvelope(context.getString(R.string.error_internet_not_connected));\n result.setCode(HttpUtils.HttpResult.BAD_REQUEST);\n result.setMessage(context.getString(R.string.error_connecting_message));\n return result;\n }\n\t\tif (RequestType.POST == requestType) {\n\t\t\tresult = HttpUtils.post(url, envelope, headers);\n\t\t} else if (RequestType.GET == requestType) {\n\t\t\tresult = HttpUtils.get(url, headers);\n\t\t}\n\t\treturn result;\n\t}", "@Override\n protected TCPReceiver doInBackground(String... message) {\n mTcpReceiver = new TCPReceiver(new TCPReceiver.OnMessageReceived() {\n @Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n Log.d(\"AlterEgo::NetworkingReceiveTask\", \"Publishing Progress!\");\n //this method calls the onProgressUpdate\n publishProgress(message);\n }\n }, mSocket, myIpAddr, mDbHelper);\n Log.d(\"AlterEgo::MapFragment\", \"Starting the receiving task\");\n mTcpReceiver.run();\n\n return null;\n }", "@Override\n protected Void doInBackground(Void... params) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n // Get workout image from database\n getWorkoutGalleryImagesFromDatabase();\n return null;\n }", "@Override\n protected Void doInBackground(String... params) {\n setUserEvent(params[0], params[1]);\n return null;\n }", "@Override\n protected String doInBackground() throws Exception {\n out.println(message);\n return null;\n }", "@Override\r\n\tpublic void doTask() {\n\t}", "public abstract Result doInBackground(Params... paramsArr);", "public abstract Result doInBackground(Params... paramsArr);", "protected void onExit() {\r\n\t\tnew DelayAsyncTask(this, 500).execute();\r\n\t}", "@Override\r\n protected String doInBackground(String... params) {\n Thread th = new Thread(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // TODO Auto-generated method stub\r\n upload();\r\n }\r\n });\r\n th.start();\r\n try {\r\n th.join();\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "@Override\n\t\tprotected Boolean doInBackground() throws Exception {\n\t\t\tMove lastMove = board.getLastMove();\n\t\t\tif (lastMove != null) //If client plays first, must not send him move\n\t\t\t{\n\t\t\t\tsocketHelper.sendMove(lastMove);\n\t\t\t}\n\t\t\t//check if game is over now\n\t\t\tif (board.getStatus() != BoardStatus.INPROGRESS)\n\t\t\t\treturn null;\n\t\t\t//Receive Client Move\n\t\t\tfinal Move nextMove = socketHelper.getMove();\n\t\t\tif (nextMove == null) {\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override public void run() {\n\t \tengine.onMoveReadyCalculated(null, true);\n\t }\n\t });\n\t\t\t\t//engine.onMoveReadyCalculated(null, true);\n\t\t\t} else {\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override public void run() {\n\t \tengine.onMoveReadyCalculated(nextMove, nextMove.isPassMove());\n\t }\n\t });\n\t\t\t\t//engine.onMoveReadyCalculated(nextMove, nextMove.isPassMove());\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "@Override\n protected Void doInBackground(String... args) {\n \twhile(true) {\n\t \tInputStream is = null;\n\t \tint response = 0;\n\t try {\n\t URL url = new URL(meshDisplayEngine.getServerBaseURL() + \"/device_list_for_event/event_id/\" \n\t \t\t\t\t+ meshDisplayEngine.eventID);\n\t HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t conn.setReadTimeout(10000 /* milliseconds */);\n\t conn.setConnectTimeout(15000 /* milliseconds */);\n\t conn.setRequestMethod(\"GET\");\n\t conn.setRequestProperty(\"accept\",\"application/json\");\n\t conn.setDoInput(true);\n\t \n\t // Starts the query\n\t conn.connect();\n\t \n\t //Check the response code and decode the message sent by the server\n\t response = conn.getResponseCode();\n\t is = conn.getInputStream();\n\t BufferedReader reader = new BufferedReader(new InputStreamReader(is), 8192);\n\t String line = \"\";\n\t StringBuffer receivedMessage = new StringBuffer();\n\t while ((line = reader.readLine()) != null) {\n\t \treceivedMessage = receivedMessage.append(line);\n\t }\n\t reader.close();\n\t Log.d(\"LiveMeshEventControllerActivity PollServerForClients\", \"receivedMessage: \" + receivedMessage);\n\t JSONArray clientList = new JSONArray(receivedMessage.toString());\n\t publishProgress(new ResponseInfo(response, clientList));\n\t } catch (IOException e) {\n\t\t\t\t\t//Some IO problem occurred - dump stack and inform caller\n\t \tLog.d(\"LiveMeshEventControllerActivity PollServerForClients\", \"exception posting join event request - response code: \" + response);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t//An Error occurred decoding the JSON\n\t\t\t\t\tLog.d(\"LiveMeshEventControllerActivity PollServerForClients\", \"exception parsing JSON response\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t // Makes sure that the InputStream is closed after the app is\n\t\t // finished using it.\n\t if (is != null) {\n\t \ttry {\n\t \t\tis.close();\n\t \t} catch (IOException e) {\n\t \t\t\t\t//Some IO problem occurred while closing is - just to a stack dump in this case\n\t \t\tLog.d(\"LiveMeshEventControllerActivity PollServerForClients\", \"exception closing is file\");\n\t \t\t\t\te.printStackTrace();\n\t \t}\n\t } \n\t }\n\t \n\t //Sleep until the next poll\n\t try {\n\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t//Interrupted while sleeping - simply log this\n\t\t\t\t\tLog.d(\"LiveMeshEventControllerActivity PollServerForClients\", \"interupted while sleeping\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n \t}\n }", "protected void onPostExecute() {\r\n\t}", "@Override\n public void onFinished() {\n }", "@Override\n public void onFinished() {\n }", "@Override\n protected String[] doInBackground(Void... params) {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n }\n return new String[0];\n }", "protected Void doInBackground(String... params) {\n notifyLocalPlayerReady();\n\n while (connectionActive) {\n\n if (!remotePlayerReady){\n\n // Ask the server if the remote player is ready yet.\n checkRemotePlayerReady();\n\n }else {\n\n if (unlimitedCollection || shouldUpdate) {\n\n updates++;\n updateComplete = false;\n\n sendLocalParamData();\n retrieveRemoteParamData();\n sendLocalEventData();\n retrieveRemoteEventData();\n\n shouldUpdate = false;\n updateComplete = true;\n hasNewData = true;\n\n }\n\n }\n\n }\n\n return null;\n\n }", "protected void onEnd() {}", "public void finishTask() {\n\t\t\n\t}", "@Override\r\n\tprotected Void doInBackground() throws Exception {\r\n\t\twhile(true){\t\t\t\r\n\t\t\tpublish(getData());\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(REQUEST_REFRESH_RATE);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "public void onFinished();", "@Override\n\t\t\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\t\tgetdata(number);\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "private void backgroundThreadProcessing() {\n // [ ... Time consuming operations ... ]\n }", "@Override\n\t\t protected Void doInBackground(Void... params) {\n\t\t \tUnidataSuperActivity.setDone(false);\n\t\t \t\n\t\t \t/* Gets the URL address of the data wanted\n\t\t \t * URL comes from the Super, which is set by the MainActivity\n\t\t \t */\n\t\t URL textUrl;\n\t\t String address = UnidataSuperActivity.getURL();\n\t\t \n\t\t /* Converts the URL into a temporary XML file, which then is converted into a String\n\t\t * Uses the Commons IO library for FileUtils\n\t\t */\n\t\t try {\n\t\t textUrl = new URL(address);\n\t\t System.out.println(textUrl);\n\t\t File testFile2 = File.createTempFile(\"temp2\", \".dat\");\n\t\t testFile2.deleteOnExit();\n\t\t FileUtils.copyURLToFile(textUrl, testFile2);\n\t\t textResult = FileUtils.readFileToString(testFile2);\n\t\t \n\t\t } catch (MalformedURLException e) {\n\t\t e.printStackTrace();\n\t\t textResult = e.toString(); \n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t textResult = e.toString(); \n\t\t }\n\t\t \n\t\t /* sets the XML String in the super class so it can be parsed in the main thread\n\t\t * and then lets the main thread know it has finished\n\t\t */\n\t\t UnidataSuperActivity.setXML(textResult);\n\t\t UnidataSuperActivity.setDone(true);\n\n\t\t return null;\n\t\t \n\t\t }", "@Override\n\t\t\tprotected Boolean doInBackground(Void... params) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(200);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "@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 processCompleted() {\n Log.d(\"EarthquakeActivity\", \"Inside Main Activity; process completed\");\n ListView listView = (ListView) findViewById(R.id.earthquake_list);\n earthquakeAsyncTask.setAdapter(listView);\n listView.setOnItemClickListener(onItemClickListener);\n }", "@Override\n public void onFinished() {\n\n }", "@Override\n public void onFinished() {\n\n }", "@Override\n\t\tprotected Void doInBackground(Void... params)\n\t\t{\n\t\t\t//Get the current thread's token\n\t\t\tsynchronized (this)\n\t\t\t{\n\t\t\t\tMyApplication app = (MyApplication) getApplication();\n\t\t\t\twhile(app.getSyncStatus());\n\n\t\t\t}\n\t\t\treturn null;\n\t\t}" ]
[ "0.73957205", "0.71651", "0.7130023", "0.69280803", "0.68507403", "0.68076926", "0.6782351", "0.67763925", "0.6748097", "0.6748097", "0.6748097", "0.66901445", "0.6678825", "0.66716295", "0.6648056", "0.6604644", "0.6604644", "0.6604644", "0.6598062", "0.65039444", "0.6462269", "0.639044", "0.6387697", "0.63566375", "0.6355658", "0.6347817", "0.63414925", "0.63300043", "0.6313836", "0.6313836", "0.630972", "0.62998426", "0.6281191", "0.62685204", "0.62612116", "0.6255266", "0.6255266", "0.6248382", "0.62359184", "0.62320846", "0.62320846", "0.62320846", "0.6223941", "0.6215314", "0.62080604", "0.62072784", "0.62072784", "0.6195844", "0.61936593", "0.6189167", "0.6189154", "0.6179337", "0.6177079", "0.61717963", "0.61717963", "0.61717963", "0.617148", "0.6167861", "0.6167861", "0.6162864", "0.6162527", "0.6153404", "0.61533904", "0.6152104", "0.61451936", "0.6139948", "0.6137946", "0.61364406", "0.61359173", "0.6129454", "0.61262196", "0.6124053", "0.6119296", "0.61082745", "0.6099986", "0.60921353", "0.6085805", "0.6085805", "0.6081023", "0.6080194", "0.6066197", "0.60596627", "0.6059519", "0.60513896", "0.60513896", "0.604739", "0.60433406", "0.6038837", "0.60361755", "0.60348654", "0.6030569", "0.6029181", "0.602052", "0.60123956", "0.6011875", "0.60042816", "0.60034674", "0.60004187", "0.600041", "0.5995482" ]
0.6482699
20
end method done recursive method fibonacci; calculates nth Fibonacci number
public long fibonacci(long number) { if (number == 0 || number == 1) return number; else return fibonacci(number - 1) + fibonacci(number - 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int fib(int n) {\n int retVal = 0;\n if (n == 1) {\n retVal = 1;\n } else if (n == 2) {\n retVal = 1;\n } else {\n \n int nextfib = fib(n-2) + fib(n-1);\n retVal = nextfib;\n }\n \n return retVal;\n }", "public long fibonacci(int n){\n global_count++;\n if(n<=1){\n return n;\n }else {\n return fibonacci(n-1) + fibonacci(n-2);\n }\n }", "private long fibonacci(long n) {\n if (n <= 1) {\n return n;\n } else {\n return fibonacci(n - 1) + fibonacci(n - 2);\n }\n }", "private static int fibonacci(int n) {\n if (n == 1 || n == 2)\n return 1;\n else\n return fibonacci(n - 1) + fibonacci(n - 2);\n }", "int fibonacciNumberFinder(int n){\n if (n <= 1){\n return n;\n }\n return fibonacciNumberFinder(n - 1) + fibonacciNumberFinder(n - 2);\n }", "public static int recursiveFibonacci(int n) {\n\t\t// calculate nth fibonacci number recursively\n\t\treturn n == 0 ? 0 : n == 1 ? 1 : recursiveFibonacci(n-1) + recursiveFibonacci(n-2);\n\t}", "public static int fibonacci(int n){\n if (n==0 || n==1)\n return n;\n else {\n return fibonacci(n-1)+fibonacci(n-2);\n }\n }", "private int recursiveFib(int n) {\r\n if (n <= 2) {\r\n return 1;\r\n }\r\n \r\n return recursiveFib(n - 2) + recursiveFib(n - 1);\r\n }", "public static int fibonacci(int n) {\n\n\t\tif (n == 0 || n == 1) {\n\t\t\treturn n;\n\t\t}\n\n\t\tint fnm1 = fibonacci(n - 1);\n\t\tint fnm2 = fibonacci(n - 2);\n\n\t\tint fn = fnm1 + fnm2;\n\n\t\treturn fn;\n\n\t}", "public static long fibonacci(int n) {\r\n if (n <= 1){\r\n return n;\r\n }\r\n else return fibonacci(n-1) + fibonacci(n-2);\r\n }", "public static int fibonacci(int n) {\n\t\tif(n == 0) \n\t\t\treturn 0;\n\t\tif(n == 1) \n\t\t\treturn 1;\n\t\t\n\t\treturn fibonacci(n - 1) + fibonacci(n - 2);\n\t}", "public int calculaFibonacci(int n) {\n\t\t//condição de parada, vai sair quando n for 1\n\t\tif (n < 2) {\n\t\t\treturn n;\n\t\t}\n\t\t// retorno chamando a própria função\n\t\treturn calculaFibonacci(n - 1) + calculaFibonacci(n - 2); \n\t}", "public static int getFibonacciNumber(int n) {\r\n\t\tif (n < 2)\r\n\t\t\treturn n;\r\n\t\treturn getFibonacciNumber(n - 1) + getFibonacciNumber(n - 2);\r\n\t}", "public static int fib(int n) {\n\t\tif (n <= 1) {\n\t\t\treturn n;\n\t\t} else {\n\t\t\treturn fib(n - 1) + fib(n - 2);\n\t\t}\n\t}", "public int fibNum(int n) {\n\n //base case\n if ((n == 0) || (n == 1)) {\n logger.info(\"Fibonacci number successfully computed\");\n return n;\n } else if (n > 1) { //recursive case\n logger.info(\"Fibonacci number successfully computed\");\n return fibNum(n - 1) + fibNum(n - 2);\n } else {\n throw new IllegalArgumentException(\"Invalid argument, input is less than 0\");\n }\n }", "public static int fib(int n) {\n\t\tif (n <= 1)\n\t\t\treturn n;\n\t\treturn fib(n - 1) + fib(n - 2);\n\t}", "public static int fib(int n) {\n if (n == 0) {\n return 0;\n } else if (n == 1) {\n return 1;\n } else {\n return fib(n-1) + fib(n-2);\n }\n }", "public static int calculateFibonacciNumber(int i)\n {\n if(i==1||i==2)return 1;\n else\n {\n return calculateFibonacciNumber(i-1)+calculateFibonacciNumber(i-2);\n }\n }", "public static long fib(long index) {\n if (index == 0) // Base case\n return 0;\n else if (index == 1) //base case)\n return 1;\n else //reducting and recursive calls\n return fib(index - 1) + fib(index - 2); \n }", "private int fibonacciHelper (int fibCurrent, int fibPrevious, int n) {\n\t\tcounter ++;\n\t\tif (n==1) \n\t\t\treturn fibCurrent;\n\t\t\telse \n\t\t\t\treturn fibonacciHelper ( fibCurrent+ fibPrevious, fibCurrent, n-1);\n\t}", "static int fib(int n, int a, int b)\n {\n if (n == 0) {\n return 0;}\n// elseif(n==1){\n// \treturn 1;}\n else{\n for (int i = 2; i <= n; i++) \n { \n int \ttemp = a + b; \n a = b; \n temp = b;\n } \n return b; \n }\n }", "public int fib(int n) {\n if (n < 2) {\n return n;\n }\n\n int n1 = 1;\n int n2 = 0;\n\n for (int i = 2; i < n; i++) {\n int current = n1 + n2;\n n2 = n1;\n n1 = current;\n }\n return n1 + n2;\n }", "public static BigInteger fibonacci(int n) {\n\t\t// Use best algorithm to compute\t\t\n\t\treturn ABFind.fibonacciLoop(n);\n\t}", "public static int fibonacci(int n) throws Exception\n {\n if (n < 0)\n {\n throw new Exception(\n \"Fibonacci Series for \" + n + \" not possible for negative numbers\" );\n }\n\n if (n == 0 || n == 1)\n {\n return n;\n }\n else\n {\n return fibonacci(n - 1) + fibonacci(n - 2);\n }\n }", "public int fibonacci(int n){\n int f[] = new int[n+2]; // 1 extra to handle case, n = 0\n int i;\n\n /* 0th and 1st number of the series are 0 and 1*/\n f[0] = 0;\n System.out.print(f[0]+\" \");\n f[1] = 1;\n System.out.print(f[1]+\" \");\n\n for (i = 2; i <= n; i++)\n {\n /* Add the previous 2 numbers in the series\n and store it */\n f[i] = f[i-1] + f[i-2];\n System.out.print(f[i]+\" \");\n }\n\n return f[n];\n }", "public static int fibonacciRecursion(int n) {\r\n if (n == 0) {\r\n return 0;\r\n }\r\n if (n == 1 || n == 2) {\r\n return 1;\r\n }\r\n return fibonacciRecursion(n - 2) + fibonacciRecursion(n - 1);\r\n }", "private static int fibonacci(int num) {\n if (num <= 1) {\n return num;\n }\n int number1 = fibonacci(num - 1);\n int number2 = fibonacci(num - 2);\n return number1 + number2;\n }", "public static int fibonacci(int number){\n\t\tif(number <= NumberUtils.INTEGER_ONE){ \n\t\t\treturn number; \n\t\t} \n\t\t//recursive call\n\t\treturn fibonacci(number - NumberUtils.INTEGER_ONE) + fibonacci(number - INTEGER_TWO); \n\t}", "public static int fib(int index){\n int num1 = 0;\n int num2 = 1;\n int temp;\n\n for(int i = 0; i < index-1; i++){\n temp = num2;\n num2 += num1;\n num1 = temp;\n }\n\n return num2;\n }", "public static long getFibonacciNumberAt(int n) {\n\n try {\n\n if (n < 1) {\n\n throw new IllegalArgumentException(\"no fibonacci numbers at n < 1\");\n\n } else if (n == 1 || n == 2) {\n\n return 1;\n\n }\n\n } catch (IllegalArgumentException iae) {\n\n System.out.println(iae.getMessage());\n\n }\n\n return getFibonacciNumberAt(n - 1) + getFibonacciNumberAt(n - 2);\n\n }", "private static int getFibonacci(int n) {\n\t\tdouble f1 = Math.pow(((1 + Math.sqrt(5)) / 2.0), n);\n\t\tdouble f2 = Math.pow(((1 - Math.sqrt(5)) / 2.0), n);\n\t\treturn (int)(Math.floor((f1 - f2) / Math.sqrt(5)));\n\t}", "public static int dynamicFibonacci(int n) {\n\t\t// calculate each fibonacci number as the sum of the previous two\n\t\treturn n == 0 ? 0 : Stream.iterate(new int[]{0, 1}, i -> new int[]{i[1], i[0]+i[1]}).limit(n).reduce((a, b) -> b).orElse(null)[1];\n\t}", "public int fibonacci(int n, int i, int a, int b) {\n if (i == n) return a;\n return fibonacci(n, i + 1, a + b, a);\n }", "public int fibonacciNum (int index){\n int firsnum = 0;\n int secnum = 1;\n int allSum = 0;\n\n for (int i = 0; i < index ; i ++){\n allSum = firsnum + secnum;\n firsnum = secnum;\n secnum = allSum;\n\n\n }\n\n\n return allSum;\n }", "public int fibonacci(int num) {\r\n\r\n if (num == 0) {\r\n return 0;\r\n }\r\n else if(num == 1)\r\n {\r\n return 1;\r\n }\r\n \r\n return fibonacci(num-1) + fibonacci(num-2);\r\n }", "public long findNthFibonacci(int number)\n {\n // Your Code Here\n \n long dp[] = new long[number+1];\n \n dp[0]=0L;\n dp[1]=1L;\n \n for(int i=2;i<=number;i++){\n dp[i]=dp[i-1]+dp[i-2];\n }\n return dp[number];\n }", "public BigDecimal getFibonacci(Integer number) throws Exception;", "public static int fib(int index) {\r\n\t\t// default values for fibonacci and f0, f1\r\n\t\tint fibonacci = 0;\r\n\t\tint f0 = 0;\r\n\t\tint f1 = 1;\r\n\r\n\t\t// if index is not 0 or 1 calculate fibonacci\r\n\t\tif (index != 0 && index != 1) {\r\n\r\n\t\t\t// loop starts from 2 (fib on index 2 is 1)\r\n\t\t\tfor (int i = 2; i <= index; i++) {\r\n\t\t\t\tfibonacci = f0 + f1;\r\n\t\t\t\tf0 = f1;\r\n\t\t\t\tf1 = fibonacci;\r\n\t\t\t}\r\n\t\t\t// else fibonacci is index\r\n\t\t} else {\r\n\t\t\tfibonacci = index;\r\n\t\t}\r\n\t\treturn fibonacci;\r\n\t}", "public int badFibonacci(int n){\n if (n <= 1){\n return (n);\n }\n return (badFibonacci(n-2) + badFibonacci(n-1));\n }", "private static int fib(int a, int b, int n) {\n\t\tint arr[] = new int[n + 1];\n\t\tarr[0] = a;\n\t\tarr[1] = b;\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tarr[i] = arr[i - 1] + arr[i - 2];\n\t\t}\n\t\treturn arr[n - 1];\n\t}", "public int fibo1(int n){\r\n if(n == 1 || n == 2){\r\n return 1;\r\n }\r\n return fibo1(n-1)+fibo1(n-2);\r\n }", "public static int fibo_iterative(final int n) {\n if (n < 0) {\n return -1; // Error condition.\n }\n if (n == 0) {\n return 0;\n }\n int a = 1, b = 1;\n for (int i = 3; i <= n; i++) {\n final int c = a + b;\n a = b;\n b = c;\n }\n return b;\n }", "public int fibo2(int n){\r\n int[] f = new int[n];\r\n f[0] = 1;\r\n f[1] = 1;\r\n for(int i=2; i<n; i++){\r\n f[i] = f[i-1] + f[i-2];\r\n }\r\n return f[n-1];\r\n }", "public int printFibonacciSeries(int n) {\n if (n <= 1) {\n return n;\n }\n return printFibonacciSeries(n - 1) + printFibonacciSeries(n - 2);\n }", "@Test\n public void findFibonacci() {\n\n assertEquals(0, Computation.fibFinder(1));\n assertEquals(1, Computation.fibFinder(2));\n assertEquals(1, Computation.fibFinder(3));\n assertEquals(2, Computation.fibFinder(4));\n assertEquals(3, Computation.fibFinder(5));\n assertEquals(5, Computation.fibFinder(6));\n }", "public static int fib(int N) {\n if (N == 1)\n return 1;\n if (N == 0)\n return 0;\n return fib(N-1) + fib(N-2);\n }", "public BigInteger nextFibonacci() {\n if (this.data.size() == 0) {\n // Base case: zero.\n this.data.add(new BigInteger(\"0\"));\n } else if (this.data.size() == 1) {\n // Base case: one.\n this.data.add(new BigInteger(\"1\"));\n } else {\n this.data.add( this.data.get(this.data.size()-1).add(this.data.get(this.data.size()-2)) );\n }\n return this.data.get(this.data.size()-1);\n }", "private int calculateFibonacciUsingTopDownMemorization(int n) {\n int[] memory = new int[n+1];\n if (n < 2) {\n return n;\n }\n if(memory[n] != 0){\n return memory[n];\n }\n memory[n] = calculateFibonacciUsingTopDownMemorization(memory, n - 1) + calculateFibonacciUsingTopDownMemorization(memory, n - 2);\n return memory[n];\n\n }", "public static void fibonacci(int fibo) {\n }", "private int iterativeFib(int n) {\r\n int backVal = 0, frontVal = 1;\r\n \r\n for (int i = 1; i < n - 1; i++) {\r\n int temp = frontVal + backVal;\r\n backVal = frontVal;\r\n frontVal = temp;\r\n }\r\n \r\n return frontVal + backVal;\r\n }", "private int fibonacci(int n, int acc1, int acc2) {\n\t\tif (n < 2) {\n\t\t\treturn n == 0 ? 0 : acc1;\n\t\t}\n\t\treturn fibonacci(n - 1, acc2, acc1 + acc2);// time complexity: O(n)\n\t}", "private int fibCache(int n) {\n if (n == 1) {\n //System.out.print (1 + \" \");\n return 1;\n } else if (n == 2) {\n //System.out.print (1 + \" \");\n return 1;\n } else {\n \n Integer fibn2 = fibCache.get(n-2);\n if (fibn2 == null) {\n fibCache.put(n-2, fib(n-2));\n fibn2 = fibCache.get(n-2);\n }\n\n Integer fibn1 = fibCache.get(n-1);\n if (fibn1 == null) {\n fibCache.put(n-1, fib(n-1));\n fibn1 = fibCache.get(n-1);\n } \n \n //System.out.print(nextfib + \" \");\n \n int nextfib = fibn2 + fibn1;\n return nextfib;\n }\n }", "static public Integer fib (Integer num){\n\t\tif (num == 0) {\n\t\t\treturn 0;\n\t\t} else if (num == 1) {\n\n\t\t\treturn 1;\n\n\t\t} else {\n\n\t\t return fib(num -1) + fib(num -2);\n\n }\n\t}", "public void Fibonacciseries()\r\n\t{\r\n\t\tint firstNo=0,secondNo=1,sum;\r\n\t\tint count;\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the Number\");\r\n\t\tcount = sc.nextInt();//Read the number to calculate fibonacci\r\n\t\t\r\n\t\tSystem.out.println(firstNo);\r\n\t\tSystem.out.println(secondNo);\r\n\t\t\r\n\t\tfor(int i=2;i<count;i++) //loop start from 2nd value \r\n\t\t{\r\n\t\t\tsum=firstNo+secondNo;\r\n\t\t\tSystem.out.println(+sum);\r\n\t\t\tfirstNo=secondNo;\r\n\t\t\tsecondNo=sum;\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static int fibboDP(int n){\n int[] mem = new int[n+1];\n if(n==0 || n==1){\n return mem[n]=n;\n }\n if(mem[n]!=0){\n return mem[n];\n }\n int fib1 = fibboDP(n-1);\n int fib2 = fibboDP(n-2);\n return mem[n] = fib1+fib2;\n }", "public static long fibonacci(int n) {\n return fibonacciMemoization(n, new HashMap<>());\n }", "private int fibonacci(int x) {\n int a = 0;\n int b = 1;\n\n for (int i = 0; i < x; i++) {\n int c = a + b;\n a = b;\n b = c;\n }\n\n return a;\n }", "public static double fibonacci(int number) throws IOException {\n\t\tif (number == 0 || number == 1) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn fibonacci(number - 2) + fibonacci(number - 1);\n\t\t}\n\t}", "public static void fibonacci(int count) {\r\n\t\tBigInteger number1 = BigInteger.valueOf(0);\r\n\t\tBigInteger number2 = BigInteger.valueOf(1);\r\n\t\tfor (int i = 0; i < count; i++) {\r\n\t\t\tif (i < 1)\r\n\t\t\t\tSystem.out.println(number2);\r\n\t\t\telse {\r\n\t\t\t\tBigInteger sum = BigInteger.valueOf(0);\r\n\t\t\t\tsum = number1.add(number2);\r\n\t\t\t\tSystem.out.println(sum);\r\n\t\t\t\tnumber1 = number2;\r\n\t\t\t\tnumber2 = sum;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static int efficient_fibonacci(int num) {\n\t\tDouble temp=(Math.sqrt(5)+1)/2.0;\n\t\tDouble result=Math.pow(temp,num)/Math.sqrt(5);\n\t\treturn (int)Math.round(result);\n\t}", "private void fibonacciIterative(int noOfTerms) {\n int currentFibonacci = 1;\n int previousFibonacci = 1;\n for (int i = 1; i <= noOfTerms; i++) {\n if (i ==1) {\n //System.out.print(previousFibonacci + \" \");\n } else if (i == 2) {\n //System.out.print(currentFibonacci + \" \");\n } else {\n int newFib = currentFibonacci + previousFibonacci;\n if (i == noOfTerms) \n System.out.print(noOfTerms + \"th fibonacci is \" + newFib + \" \");\n previousFibonacci = currentFibonacci;\n currentFibonacci = newFib;\n }\n }\n System.out.println();\n }", "@Test\r\n\tpublic void test02_fib() {\r\n\t\tRecursiveMethods rm = new RecursiveMethods();\r\n\t\tassertEquals(1, +rm.fib(1));\r\n\t\tassertEquals(1, +rm.fib(2));\r\n\t\tassertEquals(2, +rm.fib(3));\r\n\t\tassertEquals(3, +rm.fib(4));\r\n\t\tassertEquals(5, +rm.fib(5));\r\n\t\tassertEquals(8, +rm.fib(6));\r\n\t}", "public static int fibonacci(int n) {\n if (n == 1){\n map.put(1,0);\n }\n if (n == 2)\n map.put(2,1);\n if (map.containsKey(n))\n return map.get(n);\n map.put(n,fibonacci(n-1)+fibonacci(n-2));\n return map.get(n);\n\n }", "public int fibNaive(int n) {\n int f;\n if (n == 0 || n == 1) f = 1;\n else f = fibNaive(n - 1) + fibNaive(n - 2);\n return f;\n }", "private static int recursiveFibDP(int n) {\n\n Integer[] table = new Integer[n + 1];\n if(table[n]==null){\n if (n <= 1) {\n table[n] = n;\n }\n else {\n table[n] =recursiveFibDP(n-1)+recursiveFibDP(n-2);\n }\n }\n return table[n];\n }", "private static int naiveFib(int n) {\n if (n == 0) return 0;\n if (n == 1) return 1;\n\n return naiveFib(n-1) + naiveFib(n-2);\n }", "@Override\r\n\tpublic int fib(int x) {\n\t\treturn 0;\r\n\t}", "public static int fibonaci(int number) {\n if(number <= 0) return 0;\n if (number == 1 || number == 2) {\n return 1;\n }\n\n return fibonaci(number - 1) + fibonaci(number - 2);\n }", "public static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in); \n\t\t \t\t \n\t\t System.out.println(\"Enter nth element: \");\n\t\t nth1 = sc.nextInt();\n\t\t sc.close();\n\t\t \n\t\t //non recursive\n\t\t for(i = 2;i < nth1; ++i)//loop starts from 2 because 0 and 1 are already printed \n\t\t {\tn3 = n1 + n2;\n\t\t n1=n2;\n\t\t n2=n3; \n\t\t } \n\t\t \n\t\t System.out.println(n3);\n\t\t \n\t\t System.out.println(\"--*--*--*--*\");\n\t\t \n\t\t System.out.println(fib(nth1));\n\t}", "public static long optimisedFib(long n){\n\n if(memo.containsKey(n)){\n return memo.get(n);\n }\n\n if(n < 2){\n memo.put(n, n);\n return n;\n }\n\n long f = optimisedFib(n-1) + optimisedFib(n-2);\n memo.put(n, f);\n\n return f ;\n\n }", "public void fibonacci()\n {\n int x = 1;\n int y = 2;\n\n final int LASTNUM = 4000000;\n int totalEven = 0;\n\n while(x < LASTNUM)\n {\n if(x % 2==0)\n {\n totalEven += x;\n }\n\n int z = x + y;\n x = y;\n y = z;\n }\n System.out.println(totalEven);\n }", "public int fibonacciIterative(int n) {\n\t\tint prev = 0;\n\t\tint next = 1;\n\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tint tmp = next;\n\t\t\tnext = next + prev;\n\t\t\tprev = tmp;\n\t\t}\n\t\treturn prev;\n\t}", "public int fib(int n) {\n// // 法一:记忆化递归\n// if (n <= 1) {\n// return n;\n// }\n// if (cache[n] != 0) {\n// return cache[n];\n// }\n// cache[n] = (fib(n - 1) + fib(n - 2)) % 1000000007;\n// return cache[n];\n// // 法二:动态规划\n// if (n == 0 || n == 1) {\n// return n;\n// }\n// int[] dp = new int[n + 1];\n// dp[0] = 0; dp[1] = 1;\n// for (int i = 2; i <= n; i++) {\n// dp[i] = dp[i - 1] + dp[i - 2];\n// dp[i] = dp[i] % 1000000007;\n// }\n// return dp[n];\n // 动态规划,优化空间\n if (n == 0 || n == 1) {\n return n;\n }\n int a = 0, b = 1, sum = 0;\n for (int i = 2; i <= n; i++) {\n sum = (a + b) % 1000000007;\n a = b;\n b = sum;\n }\n return sum;\n }", "public static int BinaryFib (int n) {\n\t\tif (n <= 1) {\n\t\t\treturn n;\n\t\t}\n\t\telse {\n\t\t\treturn BinaryFib(n-1) + BinaryFib(n-2);\n\t\t}\n\t}", "private static int fibonacciWithLoop(int num) {\n\n if (num <= 0) {\n return 0;\n }\n\n /**\n * first and second case are pre-computed\n */\n /*\n * first case\n */\n int number1 = 0;\n /*\n * second case\n */\n int number2 = 1;\n\n int sum = 0;\n\n for (int i = 2; i <= num; i++) {\n\n sum = number1 + number2;\n\n System.out.println(number1 + \"+\" + number2 + \" = \" + sum);\n\n number1 = number2;\n number2 = sum;\n\n }\n\n return sum;\n }", "private static int fibByMemoization(int n, int[] questionBank){\n //Base Case\n if(n == 0 || n == 1){\n return n;\n }\n\n if(questionBank[n] != 0){\n return questionBank[n];\n }\n\n //faith\n int ans1 = fibByMemoization(n - 1, questionBank);\n int ans2 = fibByMemoization(n - 2, questionBank);\n int answer = ans1 + ans2;\n //faith * expectation\n questionBank[n] = answer;\n return answer;\n }", "static void fibonacciSeries(int n) {\n\n\t\tint i = 1, t1 = 0, t2 = 1;\n\n\t\twhile (i < n) {\n\n\t\t\tSystem.out.print(t1 + \" \");\n\t\t\tint sum = t1 + t2; // 1\n\n\t\t\tt1 = t2;\n\t\t\tt2 = sum;\n\t\t\ti++;\n\n\t\t}\n\n\t}", "public static int fibSum(int n) {\n int sum = 0;\n int fib1 = 1;\n int fib2 = 1;\n for (int i = 3; fib2 < n; i++) {\n int x = fib1 + fib2;\n fib1 = fib2;\n fib2 = x;\n if (fib2 % 2 == 0) sum += fib2;\n }\n return sum;\n }", "int main()\n{\n int n;\n cin>>n;\n fibo(n);\n return 0;\n}", "int main()\n{\n int n;\n cin>>n;\n printf(\"The term %d in the fibonacci series is %d\",n,fib(n-1));\n}", "private static int fibRaw(int n) {\n if (n < 2) {\n return n;\n } else {\n return fibRaw(n - 1) + fibRaw(n - 2);\n }\n }", "public static int nextF(int fib[])\n { \n int tmp = fib[0];\n fib[0] = fib[1];\n fib[1] += tmp;\n return fib[0];\n }", "public static int fibonacciBUSE(int n) {\n\n\t\tint[] strg = new int[2];\n\t\tstrg[0] = 0;\n\t\tstrg[1] = 1;\n\n\t\tfor (int slide = 1; slide <= n - 1; slide++) {\n\n\t\t\tint sum = strg[0] + strg[1];\n\t\t\tstrg[0] = strg[1];\n\t\t\tstrg[1] = sum;\n\n\t\t}\n\n\t\treturn strg[1];\n\n\t}", "public static BigInteger calculateModifiedFib(int a, int b, int n) {\n \n BigInteger[] fib_of_all = new BigInteger[n+2];\n fib_of_all[0] = BigInteger.valueOf(a);\n fib_of_all[1] = BigInteger.valueOf(b);\n\n\n\n BigInteger fib_of_n = BigInteger.valueOf(0);\n\n //fib_of_n = (fib_of_n+2) - (fib_of_n+1)2;\n\n for(int c = 2; c < n+2; c++) {\n \tfib_of_all[c] = fib_of_all[c-2].add(fib_of_all[c-1].pow(2));\n }\n\n return fib_of_all[n-1];\n }", "public static int fibonacciMemoization(int n ,int[] memo){\n if (n==0 || n==1) return n;\n //strong logic\n if(memo[n]==0)\n memo[n]=fibonacciMemoization(n-1,memo)+fibonacciMemoization(n-2,memo);\n return memo[n];\n }", "public BigInteger fib(long i) {\n Map<Long, BigInteger> cache = new HashMap<>();\n if (i == 0) return BigInteger.ZERO;\n if (i == 1) return BigInteger.ONE;\n\n //The complete signature for the computIfAbsent method is:\n //V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction)\n //This method is particularly useful when creating a cache of the results of method calls.\n return cache.computeIfAbsent(i, n -> fib(n - 2).add(fib(n - 1)));\n }", "public long fibonacci_with_dp(int n){\n global_dp_count++;\n if(lookup[n] ==0) {\n if (n <= 1) {\n lookup[n] = n;\n } else {\n lookup[n] = fibonacci_with_dp(n - 1) + fibonacci_with_dp(n - 2);\n }\n }\n return lookup[n];\n }", "private static int fab_recursive_2(int kth) {\n\n\t\tif (kth == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (kth == 1) {\n\t\t\treturn fab_recursive_2(kth - 1) + 1;\n\t\t}\n\t\treturn fab_recursive_2(kth-1) + fab_recursive_2(kth-2);\n\t}", "public int fib_solution1(int N) {\n if (N <= 0) {\n return 0;\n }\n if (N == 1) {\n return 1;\n }\n return fib_solution1(N - 1) + fib_solution1(N - 2);\n }", "public void printFibonacciSeriesWithLoop(int n) {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n if (i <= 1) {\n arr[i] = i;\n } else {\n arr[i] = arr[i-1] + arr[i-2];\n }\n }\n Arrays.stream(arr).forEach(System.out::println);\n }", "public static int fibTD(int n) {\n\t\tint[] dp = new int[n + 1];\n\t\tArrays.fill(dp, -1);\n\t\treturn fibTD(n, dp);\n\t}", "public Long doInBackground() {\n\t\treturn nthFib = fibonacci(n);\n\t}", "public long evenFiboSum()\n\t{\n\t\tlong a=1;\n\t\tlong b=1;\n\t\tlong c=a+b;\n\t\tlong sum=0;\n\t\twhile(c<N)\n\t\t{\n\t\t\t/**\n\t\t\t * Norml Fibonacci series\n\t\t\t * \n\t\t\tSystem.out.println(c);\n\t\t\ta=b;\n\t\t\tb=c;\n\t\t\tc=a+b;\n\t\t\t*/\n\t\t\tsum+=c;//adding the even values\n\t\t\ta=b+c;//finding next fibonacci\n\t\t\tb=a+c;//finding next fibonacci\n\t\t\tc=a+b;//finding next fibonacci ie., even\n\t\t}\n\t\treturn sum;\n\t}", "private static long fib(long n, long m) {\n if (n == 0 || n == 1) {\n return n;\n }\n \n long temp;\n long first = 0;\n long second = 1;\n \n for (int i = 2; i < n + 1; i++) {\n temp = first;\n first = second;\n second = (second + temp) % m;\n }\n return second;\n }", "@Test\n\tvoid FibonacciTest() \n\t{\tassertEquals(0, utilities.Fibonacci(0));\n\t\tassertEquals(1, utilities.Fibonacci(1));\n\t\tassertEquals(1, utilities.Fibonacci(2));\n\t\tassertEquals(2, utilities.Fibonacci(3));\n\t\tassertEquals(3, utilities.Fibonacci(4));\n\t\tassertEquals(89, utilities.Fibonacci(11));\n\n\t}", "public static void printFibonacci(int number) {\n\t\tint number1 = 1, number2=2;\n\t\t//and print the numbers since they are part of fib series\n\t\tSystem.out.print(number1+\" \"+number2+\" \");\n\t\t//to find the fib numbers up to a number, use for loop\n\t\tfor(int i=0; i<=number; i++) {\n\t\t\tint fibNumber = number1+number2;\n\t\t\tnumber1 = number2;//after each loop number1 should increase to number2\n\t\t\tnumber2 = fibNumber;//and number2 should be the total which is fibNumber\n\t\t\t//if fibNumber is equal to or bigger then given number break the loop\n\t\t\tif(fibNumber==number || fibNumber>number) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//print the fibnumbers\n\t\t\tSystem.out.print(fibNumber+\" \");\n\t\t}\n\t}", "public static int fibonacciDP(int n,int[] array){\n if (array[n] == -1 ){\n int res = 0;\n if (n==0 || n == 1)\n res = n;\n else\n res = fibonacciDP(n - 1, array) + fibonacciDP(n - 2, array);\n\n array[n] = res;\n }\n return array[n];\n }", "public void fibTest(){\r\n \r\n for(int j=0;j<eDB.staff.size();j++){\r\n String y = eDB.staff.get(j).getId().replaceAll(\"[^\\\\d.]\", \"\"); //removes letters from id\r\n int n = Integer.parseInt(y);\r\n\r\n {\r\n int a=0, b=1 ,c=0; \r\n \r\n while(c<n) \r\n {\r\n c = a + b; \r\n a = b;\r\n b = c;\r\n }\r\n \r\n \r\n \r\n if(c==n) \r\n fibSpies.add(eDB.staff.get(j));\r\n \r\n \r\n }\r\n \r\n}\r\n }", "@Test\n\tpublic void isFibonacciTest() {\n\t\tAssert.assertTrue(ifn.isFibonacci(21));\n\t\tAssert.assertTrue(ifn.isFibonacci(144));\n\t\tAssert.assertTrue(!ifn.isFibonacci(150));\n\t\tAssert.assertTrue(!ifn.isFibonacci(56));\n\t}", "public static void fibonacciSquenceList(int len){\n \n int n1 = 0, n2 =1, n3, i, count = 20;\n System.out.print(n1+ \" \" + n2);\n \n for (i = 2; i < count; ++i){\n \n n3 = n1 + n2;\n System.out.print(\" \" + n3);\n n1 = n2;\n n2 = n3;\n }//end for i = 2\n \n }" ]
[ "0.8337849", "0.8209489", "0.820584", "0.8199181", "0.8108092", "0.8090069", "0.8016463", "0.7987688", "0.79551893", "0.79234016", "0.7894567", "0.78799474", "0.78696287", "0.785294", "0.7850303", "0.78157115", "0.7808083", "0.780405", "0.78039527", "0.77880305", "0.776307", "0.7747168", "0.77321994", "0.7694594", "0.7691057", "0.76758784", "0.7658746", "0.76460207", "0.76330507", "0.7625062", "0.7621973", "0.7619088", "0.7602691", "0.76005435", "0.7590742", "0.757692", "0.7573015", "0.75490266", "0.7511874", "0.7442389", "0.74228215", "0.74137616", "0.7404978", "0.7396883", "0.73786706", "0.7337173", "0.7325618", "0.7323649", "0.73094183", "0.7291066", "0.72380036", "0.72334796", "0.7231106", "0.72288597", "0.7213812", "0.72091895", "0.7197938", "0.71978813", "0.71962345", "0.718333", "0.7181167", "0.7169502", "0.7157921", "0.71341145", "0.71266043", "0.71204305", "0.7102252", "0.7094075", "0.7060729", "0.7052522", "0.70444125", "0.7003935", "0.7003638", "0.69896615", "0.6973195", "0.6958035", "0.6950611", "0.6928651", "0.6919078", "0.68717176", "0.68496394", "0.68345165", "0.6833421", "0.6827748", "0.6824255", "0.6792546", "0.67783666", "0.6771128", "0.6754774", "0.6751144", "0.6734961", "0.67338896", "0.67154455", "0.67145115", "0.6667054", "0.6665329", "0.6640954", "0.6634441", "0.6615004", "0.6553812" ]
0.7282791
50
Method returning collection of all pets in the shelter
public Collection<VirtualPet> pets() { return shelterPets.values(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Pets> getPets(){\n DataBase db = new DataBase(context);\n initPets(db);\n return db.getPets();\n }", "@Override\n public Set<Shelf> getShelves() {\n return new HashSet<>(shelves);\n }", "private void getPets(){\r\n\t\tfor(Player p : players){\r\n\t\t\tArrayList<Pet> currentpets = new ArrayList<>();\r\n\r\n\t\t\tSystem.out.println(\"How many pets for \" + p.getName() + \": \");\r\n\t\t\tint petnum = getNumber(1,3);\r\n\t\t\tfor(int i = 0; i < petnum; i++){\r\n\t\t\t\tSystem.out.println(\"Pet options are:\");\r\n\t\t\t\tint c = 1; //Counter for which pet, relating to which option\r\n\t\t\t\tfor(Pet option : pets){\r\n\t\t\t\t\tSystem.out.println(c + \". \" + option.getClass().getSimpleName() + \".\");\r\n\t\t\t\t\tc++;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Please Choose Your Pet With A Number:\");\r\n\t\t\t\tint selected = getNumber(1, 6);\r\n\t\t\t\tPet selectedpet = pets.get(selected - 1);\r\n\t\t\t\tSystem.out.println(\"Please Enter A Name For Your Pet: \");\r\n\t\t\t\tString petname = sc.next();\r\n\t\t\t\tselectedpet.setPetname(petname);\r\n\t\t\t\tSystem.out.println(\"You now have a pet named \" + selectedpet.getPetname());\r\n\t\t\t\tcurrentpets.add(selectedpet);\r\n\t\t\t}\r\n\t\t\tp.setPets(currentpets);\r\n\t\t}\r\n\t}", "@Override\n public List<Vessel> getVessels() {\n return new ArrayList<>(boats);\n }", "public ArrayOfPetModel getPets() {\n return localPets;\n }", "@Override\r\n\tpublic List<shopPet> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "public List<Vet> getAllVets() {\n\t\tentityManager = JPAUtils.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\tvets = entityManager.createQuery(\"from Vet\", Vet.class).getResultList();\n\t\tentityManager.getTransaction().commit();\n\t\tentityManager.close();\n\t\treturn vets;\n\t}", "public void feedAll() {\n\t\tfor (VirtualPet p : shelterPets.values()) {\n\t\t\tp.feedPet();\n\t\t}\n\t}", "public void waterAll() {\n\t\tfor (VirtualPet p : shelterPets.values()) {\n\t\t\tp.waterPet();\n\t\t}\n\t}", "public boolean getPets() {\n\t\treturn this.pets;\n\t}", "Collection<S> getStories ();", "public List<Treasure> giveInventory() {\r\n return treasures;\r\n }", "List<PilotContainer> getPilots();", "public ArrayList<Pets> getPetList() {\n\n ArrayList<Pets> petList = new ArrayList<>();\n\n try {\n Statement statement = conn.createStatement();\n String sqlStatement = \"SELECT name FROM pets\";\n\n ResultSet rs = statement.executeQuery(sqlStatement);\n\n while (rs.next()) {\n //Create a new Pets object\n Pets pet = new Pets();\n pet.setName(rs.getString(\"name\"));\n\n System.out.println(pet.getName());\n\n }\n } catch (SQLException exception) {\n System.out.println(\"Error getting Pet name list: \" + exception);\n }\n return petList;\n }", "public java.util.ArrayList<Species> getAllSpecies() {\n ArrayList<Species> answer = new ArrayList<Species>();\n getAllDescendantSpecies(overallRoot, answer);\n return answer;\n \n }", "public List<Pokemon> showAllPokemon() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Pokemon> allPokemon = em.createQuery(\"SELECT p FROM Pokemon p\").getResultList();\r\n\t\treturn allPokemon;\r\n\t}", "public VirtualPet getPet(String name) {\n\t\treturn shelterPets.get(name);\n\n\t}", "public List<Cheese> getCheeseList() {\n\t\tif (cheesesInStock.isEmpty())\n\t\t\treturn Collections.emptyList();\t// Always return same list\n\t\telse\n\t\t\treturn new ArrayList<Cheese>(cheesesInStock);\n\t}", "public Weet[] getWeets() {\n return array.getWeetsFromStore();\n //return tree.toArray();\n }", "public ArrayList<Thing> getThings()\r\n {\r\n \tArrayList<Thing> inventory = new ArrayList<Thing>();\r\n \tfor (int i=0; i<items.size(); i++)\r\n \t\tinventory.add(items.get(i));\r\n \treturn inventory;\r\n }", "public Set<Sportive> getAll(){\n Iterable<Sportive> sportives = repo.findAll();\n return StreamSupport.stream(sportives.spliterator(), false).collect(Collectors.toSet());\n }", "public List<Supplier> getSuppliers(){ \n\t List<Supplier> list=new ArrayList<Supplier>(); \n\t list=template.loadAll(Supplier.class); \n\t return list; \n\t}", "public Collection<Item> shopItems() {\n\t\treturn this.itemRepository.shopItems();\n\t}", "Collection<Item> getInventory();", "ArrayList<RecipeObject> getRecipes();", "public abstract Collection<PlayerFish> getPlayers();", "@Override\n\tpublic List<Equipment> getAllEquipmet() {\n\t\treturn dao.getAllEquipmet();\n\t}", "private void populatepets(){\r\n\t\tpets.add(new Cat(\"UnNamed\"));\r\n\t\tpets.add(new Cow(\"UnNamed\"));\r\n\t\tpets.add(new Dog(\"UnNamed\"));\r\n\t\tpets.add(new Rabbit(\"UnNamed\"));\r\n\t\tpets.add(new Rat(\"UnNamed\"));\r\n\t\tpets.add(new Velociraptor(\"UnNamed\"));\r\n\t}", "public ArrayList<Vehicle> getShips() {\n return vehicles.stream().filter(loc -> loc.getClass().getSuperclass().getSimpleName().equals(\"Ship\")).collect(Collectors.toCollection(ArrayList::new));\n }", "@Override\r\n\tpublic List prodAllseach() {\n\t\treturn adminDAO.seachProdAll();\r\n\t}", "protected static List<Critter> getPopulation() {\r\n ArrayList<Critter> critterList = new ArrayList<Critter>();\r\n //iterator through the keys in the population hash map\r\n Iterator<String> populationIterator = population.keySet().iterator();\r\n while(populationIterator.hasNext()) {\r\n \tString coord = populationIterator.next();\r\n \t//iterator through the critters in a key in a hash map\r\n \tIterator<Critter> positionIterator = population.get(coord).iterator();\r\n \twhile(positionIterator.hasNext()) {\r\n \t\tCritter critt = positionIterator.next();\r\n \t\t//add the critters to the critter population\r\n \t\tcritterList.add(critt);\r\n \t}\r\n }\r\n \r\n return critterList;\r\n }", "public ArrayList<Pokemon> getAllPokemon(){\n\t\treturn caughtPokemon; \n\t}", "public List<OwnedWarp> getAll() {\n List<OwnedWarp> ret = new ArrayList<OwnedWarp>();\n Set<String> keyset = warps.keySet();\n for(String key : keyset)\n ret.addAll(warps.get(key));\n return ret;\n }", "public List<Planet> getPlanets() {\n return planetList;\n }", "@Override\r\n\tpublic List prodStockseach() {\n\t\treturn adminDAO.seachProdStock();\r\n\t}", "List<SimpleInventory> getInventories();", "public ShelterList() {\n shelters = new HashMap<>();\n }", "@Shadow public abstract Iterable<ItemStack> getArmorSlots();", "@Override\r\n\tpublic List<Pilot> getAllPilots() {\r\n\t\tList<Pilot> cloned = new ArrayList<>(pilots);\r\n\t\treturn cloned;\r\n\t}", "public List<Piece> allPieces();", "public Planet[] getPlanets() {\n return this.planets;\n }", "public Map<String, Planet> getPlanets(){\n\t\treturn galaxy;\n\t}", "public Iterable<Shop> getAllShops() {\n return this.shopRepository.findAll();\n }", "Set<String> getInventory();", "public List<Planet> getPlanets() {\n return planet;\n }", "public ArrayList<CoffeeShop> returnShops(){\r\n return allShops;\r\n }", "@GetMapping({ \"/vets\" })\n\tpublic @ResponseBody Vets showResourcesVetList() {\n\t\tVets vets = new Vets();\n\t\tvets.getVetList().addAll(this.vetRepository.findAll());\n\t\treturn vets;\n\t}", "public void cleanAll() {\n\t\tfor (VirtualPet p : shelterPets.values()) {\n\t\t\tp.cleanPet();\n\t\t}\n\t}", "@Override\r\n\tpublic List<Supplies> findall() {\n\t\treturn suppliesDao.findall();\r\n\t}", "public List<Object> getShips() {\n return ships;\n }", "public ObjectList<DynamicPart[]> getSeeds() {\n ObjectList<DynamicPart[]> seeds = new ObjectArrayList<DynamicPart[]>();\n seeds.addAll(\n getCuboids().stream().map(cuboid -> cuboid.parts).collect(Collectors.toList()));\n return seeds;\n }", "@Override\n\tpublic List<Equipo> getAll()\n\t{\n\t\treturn (ArrayList<Equipo>)equipoRepository.findAll();\n\t}", "@Override\n\tpublic List<Inventory> getAllInventories() {\n\t\tArrayList<Inventory> inventories = new ArrayList<Inventory>();\n\t\tinventoryDao.findAll().forEach(inventories::add);\n\t\treturn inventories;\n\t}", "public List<Product> findHot() {\n\t\t\treturn productDao.findHot();\n\t\t}", "public List<Park> getParkRegistry() {\n return this.pf.getParkList();\n }", "public List<Species> getSpeciesList() {\n return speciesList;\n }", "private PotCollection loadPotList(){\n SharedPreferences preferences = getSharedPreferences(SHAREDPREF_SET, MODE_PRIVATE);\n int sizeOfPotList = preferences.getInt(SHAREDPREF_ITEM_POTLIST_SIZE, 0);\n for(int i = 0; i<sizeOfPotList; i++){\n Log.i(\"serving calculator\", \"once\");\n String potName = preferences.getString(SHAREDPREF_ITEM_POTLIST_NAME+i, \"N\");\n int potWeight = preferences.getInt(SHAREDPREF_ITEM_POTLIST_WEIGHT+i, 0);\n Pot tempPot = new Pot(potName, potWeight);\n potList.addPot(tempPot);\n }\n return potList;\n }", "public Flux<Pet> findPetsAvailable() {\n\n\t\treturn client.get().uri(urlFindByStatus).retrieve().bodyToFlux(Pet.class);\n\t}", "public List<Equipment> findAllEquipment() {\n Iterable<Equipment> itEquipment = equipmentRepository.findAll();\n List<Equipment> equipment = new ArrayList<>();\n\n itEquipment.forEach(equipment::add);\n\n return equipment;\n }", "public Vector<EntityWeapon> getWeaponList();", "public static Map<String,Planet> getPlanetsByName() { return planetsByName; }", "@JsonIgnore\n public ArrayList<Ingredient> getShoppingList() {\n ArrayList<Ingredient> results = new ArrayList<>();\n for (Location location : route) {\n for (PreOrder preOrder : location.getPreOrders()) {\n for (DishWrapper dishWrapper : preOrder.getItems()) {\n for (Ingredient ingredient : dishWrapper.getDish().getIngredients()) {\n if (results.contains(ingredient)) {\n results.get(results.indexOf(ingredient)).addAmount(ingredient.getAmount() * dishWrapper.getAmount());\n } else {\n ingredient.setAmount(ingredient.getAmount() * dishWrapper.getAmount());\n }\n results.add(ingredient);\n }\n }\n }\n }\n return results;\n }", "public Iterable<Place> places(){\n return places;\n }", "public Hurtbox[] getHurtboxes() {\n return this.weapon.getHurtboxes();\n }", "@Override\r\n\tpublic List<Spot> queryAllSpot() {\n\t\treturn spotRepository.queryAllSpot();\r\n\t}", "@JsonIgnore public Collection<Participant> getSellers() {\n final Object current = myData.get(\"seller\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Participant>) current;\n }\n return Arrays.asList((Participant) current);\n }", "public LiveData<List<Spot>> getAllSpots() { return mAllSpots; }", "public ReservedInstancePriceItem [] getPrices() {\n return this.Prices;\n }", "@Override\r\n public List<HarvestResponseDto> getAllHarvests(){\r\n return harvestRepository.findAll()\r\n .stream()\r\n .map(harvestMapper::mapToDto)\r\n .collect(Collectors.toList());\r\n }", "public static HashMap<String, Shelter> getMap() {\n return shelters;\n }", "private ArrayList<Slime> getSlimes(){\n\t\treturn slimes;\n\t}", "public LinkedHashSet<Spot> getSpotSet() {\n if (spotSet == null) {\n spotSet = new LinkedHashSet<>();\n for (int x = 0; x < WIDTH; x++) {\n for (int y = 0; y < HEIGHT; y++) {\n spotSet.add(board[x][y]);\n }\n }\n }\n return spotSet;\n }", "public List<Equipment> getEquipments() {\n return equipments;\n }", "public List<SubjPhrase> getSpList(){\n\t\tSet<NounPhrase> entitySet = this.getEntConsiderPass(\"S\");\n\t\tList<SubjPhrase> spList = new ArrayList<SubjPhrase>();\n\t\t\n\t\tfor(NounPhrase subject : entitySet){\n\t\t\tspList.add(new SubjPhrase(this.action, subject));\n\t\t}\n\t\treturn spList;\n\t}", "List<Recipe> getAllRecipes();", "public ArrayList<Card> getShoe() {\n\t\treturn Shoe;\n\t}", "public ArrayList getLecturers();", "public ArrayList<Entity> getPlayers() {\n ArrayList<Entity> players = new ArrayList<>();\n students.forEach(student -> players.add(student.getPlayer()));\n return players;\n }", "public List<Ship> getAllShips() {return allShips; }", "public ArrayList<Color> getShelf() {\n return ColorShelf;\n }", "public List<Recipe> getRecipes()\n {\n return _recipes;\n }", "default Collection<ItemStack> getContentsSimulated() {\n\t\treturn this.getContents().values().stream().map(ItemStack::copy).collect(Collectors.toList());\n\t}", "public ArrayList <EggAbstract> getEggs() {\n\t\t//not checking if x is valid because that depends on the coordinate system\n\t\treturn eggs;\n\t}", "@Override\r\n\tpublic Collection<Sticker> list(Sticker sticker) {\n\t\treturn sst.selectList(\"stickerns.list\",sticker);\r\n\t}", "public List<Seat> listAll() {\n\t\treturn repository.findAll();\n\t}", "public String getMarkets() {\n\n\t\treturn getJson(API_VERSION, PUBLIC, \"getmarkets\");\n\t}", "public abstract java.util.Collection getTecnico_peticion();", "public List<Container> findAll() {\n\t\tSession currentSession = em.unwrap(Session.class);\n\t\t\n\t\t//create the query\n\t\tQuery<Container> query = currentSession.createQuery(\"from Container\", Container.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Container> containers = query.getResultList();\n\t\t//System.out.println(containers);\n\t\t//return the results\n\t\treturn containers;\n\t}", "public void takeItemsFromChest() {\r\n currentRoom = player.getCurrentRoom();\r\n for (int i = 0; i < currentRoom.getChest().size(); i++) {\r\n player.addToInventory(currentRoom.getChest().get(i));\r\n currentRoom.getChest().remove(i);\r\n }\r\n\r\n }", "public void getShops() {\r\n for (int i = 0; i < e.length; i++) { //go through inherited edges array\r\n if (e[i] != null) {\r\n CoffeeShop temp = (CoffeeShop) e[i].getEnd();\r\n allShops.add(temp);\r\n }\r\n }\r\n }", "public List<Plant> getPlants() throws SQLException {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tList<Plant> pl = new ArrayList<Plant>();\n\n\t\ttry {\n\t\t\tconn = getConnection();\n\t\t\tstmt = conn.prepareStatement(\"SELECT * FROM garden\");\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tPlant p = createPlant(rs);\n\t\t\t\tpl.add(p);\n\t\t\t}\n\t\t} finally {\n\t\t\t// If the Statement or the Connection, hasn't been closed, we close it\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t\tif (stmt != null) {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t\treturn pl;\n\n\t}", "public ArrayList<Gun> getGuns() {\n\t\tArrayList<Gun> guns = new ArrayList<Gun>(); \n\t\tfor (Item item : inventory) {\n\t\t\tif (item.asGun() != null) {\n\t\t\t\t guns.add(item.asGun());\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\treturn guns;\n\t }", "public static HashMap<String, Vol> getlesVols(){\n\t\treturn lesVols;\n\t}", "@Override\n\tpublic List<Parking> employeeparkings() {\n\t\treturn parkingRepository.employeeparkings();\n\t}", "public List<PlayerItem> getAll();", "private void listParkingLots() {\n for (ParkingLot pl: parkinglots) {\n System.out.println(pl.getName() + \" | price: \" + pl.getPrice() + \" /hour\");\n }\n }", "public Map<Integer, FlatShelf> getShelfs() {\n\treturn flatShelfs;\n }", "public ArrayList<Tile> getSilkBag() {\r\n return silkBag;\r\n }", "public Collection<Item> findAll() {\n\t\tCollection<Item> Items;\n\t\tItems = this.itemRepository.findAll();\n\n\t\treturn Items;\n\t}", "@Override\r\n public Set<String> getContainers()\r\n {\r\n assert(true);\r\n \tSet<String> toReturn = new TreeSet<String>();\r\n for (ProductContainer container : groups)\r\n {\r\n toReturn.add(container.getName());\r\n }\r\n return toReturn;\r\n }" ]
[ "0.72755563", "0.68008137", "0.6542245", "0.64477736", "0.643795", "0.6216908", "0.62093306", "0.6206319", "0.60223055", "0.59701663", "0.58953035", "0.5894967", "0.58665556", "0.57812065", "0.5780335", "0.57605594", "0.57520735", "0.5721973", "0.57144433", "0.5681336", "0.56540567", "0.56484497", "0.5640671", "0.5624257", "0.5623883", "0.5623646", "0.56236035", "0.56228596", "0.56006455", "0.5581617", "0.557399", "0.5566897", "0.55524653", "0.5513297", "0.5513098", "0.55128026", "0.5511948", "0.55083436", "0.5499273", "0.5489698", "0.5484569", "0.5481283", "0.548067", "0.5479803", "0.5477496", "0.546943", "0.5450515", "0.5444679", "0.54401946", "0.5420918", "0.5412296", "0.53945816", "0.53891313", "0.53837305", "0.53785324", "0.53782636", "0.5370569", "0.537025", "0.5366873", "0.53551215", "0.5351448", "0.5348144", "0.5329306", "0.5320545", "0.53195554", "0.53080356", "0.53027165", "0.52812344", "0.5278745", "0.5274463", "0.5260079", "0.5256665", "0.5245905", "0.5244896", "0.52425224", "0.5242306", "0.52406406", "0.5235957", "0.52329874", "0.5232486", "0.5231989", "0.52304673", "0.5228218", "0.5222546", "0.521745", "0.5206452", "0.5204835", "0.5203772", "0.5195465", "0.51939714", "0.5191497", "0.5187828", "0.51793915", "0.5178678", "0.5175762", "0.517272", "0.51689106", "0.51633376", "0.5160624", "0.5158797" ]
0.81314313
0
Method adding pets to the map
public void addPet(VirtualPet pet) { shelterPets.put(pet.name, pet); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addPets(PetPOJO pet) {\n pets.add(pet);\n }", "private void addItems() {\n int random3 = 0;\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n random3 = (int)(Math.round(Math.random()*9));\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n if (adjacentCity(i, j) && tileMap[i][j].getCity() == null) { //Only have an item if possibly within city borders\n if (random3 == 0) {\n tileMap[i][j].setResource(new Fruit(i,j)); //Rep Fruit\n } else if (random3 == 1) {\n tileMap[i][j].setResource(new Animal(i,j)); //Rep Animal\n } else if (random3 == 2) {\n tileMap[i][j].setResource(new Forest(i,j)); //Rep Trees (forest)\n } else if (random3 == 3) {\n tileMap[i][j].setResource(new Crop(i,j)); //Rep Crop\n }\n }\n } else {\n if (adjacentCity(i, j)) {\n if (random3 < 2) {\n tileMap[i][j].setResource(new Fish(i, j)); //Rep fish\n } else if (random3 == 4) {\n if (Math.random() < 0.5) {\n tileMap[i][j].setResource(new Whale(i, j)); //Rep whale\n }\n }\n }\n }\n }\n }\n }", "private void populatepets(){\r\n\t\tpets.add(new Cat(\"UnNamed\"));\r\n\t\tpets.add(new Cow(\"UnNamed\"));\r\n\t\tpets.add(new Dog(\"UnNamed\"));\r\n\t\tpets.add(new Rabbit(\"UnNamed\"));\r\n\t\tpets.add(new Rat(\"UnNamed\"));\r\n\t\tpets.add(new Velociraptor(\"UnNamed\"));\r\n\t}", "private void addWater() {\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n if (tileMap[i][j] == null) {\n tileMap[i][j] = new Space(new Water(i, j));\n }\n }\n }\n }", "public void addNewSpecies(PokemonSpecies species) {\n pokedex.add(species);\n }", "public void addItems() {\r\n\t\tproductSet.add(new FoodItems(1000, \"maggi\", 12.0, 100, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1001, \"Pulses\", 55.0, 50, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1004, \"Meat\", 101.53, 5, new Date(), new Date(), \"no\"));\r\n\t\tproductSet.add(new FoodItems(1006, \"Jelly\", 30.0, 73, new Date(), new Date(), \"no\"));\r\n\t\t\r\n\t\tproductSet.add(new Apparels(1005, \"t-shirt\", 1000.0, 10, \"small\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1002, \"sweater\", 2000.0, 5,\"medium\", \"woolen\"));\r\n\t\tproductSet.add(new Apparels(1003, \"cardigan\", 1001.53,22, \"large\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1007, \"shirt\", 500.99, 45,\"large\",\"woolen\"));\r\n\t\t\r\n\t\tproductSet.add(new Electronics(1010, \"tv\", 100000.0, 13, 10));\r\n\t\tproductSet.add(new Electronics(1012, \"mobile\", 20000.0, 20,12));\r\n\t\tproductSet.add(new Electronics(1013, \"watch\", 1101.53,50, 5));\r\n\t\tproductSet.add(new Electronics(1009, \"headphones\", 300.0, 60,2));\r\n\t\t\r\n\t}", "private void getPets(){\r\n\t\tfor(Player p : players){\r\n\t\t\tArrayList<Pet> currentpets = new ArrayList<>();\r\n\r\n\t\t\tSystem.out.println(\"How many pets for \" + p.getName() + \": \");\r\n\t\t\tint petnum = getNumber(1,3);\r\n\t\t\tfor(int i = 0; i < petnum; i++){\r\n\t\t\t\tSystem.out.println(\"Pet options are:\");\r\n\t\t\t\tint c = 1; //Counter for which pet, relating to which option\r\n\t\t\t\tfor(Pet option : pets){\r\n\t\t\t\t\tSystem.out.println(c + \". \" + option.getClass().getSimpleName() + \".\");\r\n\t\t\t\t\tc++;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Please Choose Your Pet With A Number:\");\r\n\t\t\t\tint selected = getNumber(1, 6);\r\n\t\t\t\tPet selectedpet = pets.get(selected - 1);\r\n\t\t\t\tSystem.out.println(\"Please Enter A Name For Your Pet: \");\r\n\t\t\t\tString petname = sc.next();\r\n\t\t\t\tselectedpet.setPetname(petname);\r\n\t\t\t\tSystem.out.println(\"You now have a pet named \" + selectedpet.getPetname());\r\n\t\t\t\tcurrentpets.add(selectedpet);\r\n\t\t\t}\r\n\t\t\tp.setPets(currentpets);\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testVirtualPetShelterHasACollectionOfVirtualPets() {\n\t\tVirtualPetShelter testPetShelter = new VirtualPetShelter(); \n\n\t\tMap<String, VirtualPet> virtualPets = new HashMap<String, VirtualPet>(); // I want a map of VP's\n\t\t// Map<Key, Value (instances of virtualPet)> - the key will be the name of pet, the key is assigned to the pets instance\n\t\tString pet1 = \"Tui\"; //this is my first key called \"Tui\"\n\t\tVirtualPet tui = new VirtualPet(\"Tui\", \"Is a cute little calico\", 30, 30, 30);\n\t\tvirtualPets.put(pet1, tui);\n\n\t\tString pet2 = \"Ditch\";\n\t\tVirtualPet ditch = new VirtualPet(\"Ditch\", \"Is as cunning as a shithouse rat\", 10, 40, 15);\n\t\tvirtualPets.put(pet2, ditch);\n\n\t\tString pet3 = \"Blusey\";\n\t\tVirtualPet bluesy = new VirtualPet(\"Bluesy\", \"A black and tan Main coon who is a mushy cat who loves snuggles\",\n\t\t\t\t5, 5, 5);\n\t\tvirtualPets.put(pet3, bluesy);\n\n\t\tString pet4 = \"Jazzy\";\n\t\tVirtualPet jazzy = new VirtualPet(\"Jazzy\", \"Grey tiger who hunter who who be great in the barn\", 15, 20, 25);\n\t\tvirtualPets.put(pet4, jazzy);\n\n\t\tString pet5 = \"Nigel\";\n\t\tVirtualPet nigel = new VirtualPet(\"Nigel\", \"A big old ginger cat\", 10, 10, 50);\n\t\tvirtualPets.put(pet5, nigel);\n\n\t\t// Moved the Map/HashMap below to the VirtualPetShelter\n\t\t// Map<String, VirtualPet> virtualPets = new HashMap<String, VirtualPet>();\n\t\t// Then I created a method in VirtualPetShelter which returned the VirtualPets\n\t\t// \"Values\"\n\n\t\tCollection<VirtualPet> virtualPetCollection = testPetShelter.getVirtualPets(); //Initially got error, eclipse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// asked me to create collection in VPS\n\n\t\tAssert.assertNotNull(testPetShelter.virtualPets);//I got error, eclipse asked me to create a HashMap in VPS\n\t\tAssert.assertEquals(virtualPetCollection, testPetShelter.virtualPets.values()); //\".values() is a Maps \n\t\t //way to return a \"Collection\"\n\t\tAssert.assertEquals(\"Nigel\", virtualPets.get(pet5).name); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(30, virtualPets.get(pet1).hunger); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(40, virtualPets.get(pet2).boredom); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(5, virtualPets.get(pet3).thirst); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(\"Grey tiger who hunter who who be great in the barn\", virtualPets.get(pet4).description);\n\t}", "public void setPets(ArrayOfPetModel param) {\n localPetsTracker = true;\n\n this.localPets = param;\n }", "private void addToMap(int x, int y, MapBox piece){\n\t\tBoxContainer type;\r\n\t\t\n\t\t// determine the type of this square\n\t\ttype = BoxContainer.Open;\r\n\t\t\n\t\tif (piece.hasKey()){\n\t\t\t// this is a key so mark it as such and add it to our array\n\t\t\ttype = BoxContainer.Key;\n\t\t\tPoint thisPoint = new Point(x, y, BoxContainer.Key);\n\t\t\tif (!checkForPointInArr(keys, thisPoint)){ // make sure it's not already in the array\n\t\t\t\tkeys.add(thisPoint); // add this to our key array\n\t\t\t}\n\t\t} else if (piece.isEnd()){\n\t\t\t// this is an exit so mark it as such and add it to our array\n\t\t\ttype = BoxContainer.Exit;\n\t\t\tPoint thisPoint = new Point(x, y, BoxContainer.Exit);\n\t\t\tif (!checkForPointInArr(exits, thisPoint)){ // make sure it's not already in the array\n\t\t\t\texits.add(new Point(x, y, BoxContainer.Exit)); // add this to our exit array\n\t\t\t}\n\t\t}\r\n\t\t\n\t\t// add it to the map\r\n\t\t\n\t\tmap.addElement(x, y, type);\n\t\t\n\t\t// add its surroundings to the map\n\t\tPoint[] surrondings = new Point[4];\r\n\t\t\n\t\tsurrondings[0] = new Point(x, y + 1, castToBoxContainer(piece.North)); // add the north piece\n\t\tsurrondings[1] = new Point(x, y - 1, castToBoxContainer(piece.South)); // add the south piece\n\t\tsurrondings[2] = new Point(x + 1, y, castToBoxContainer(piece.East)); // add the east piece\n\t\tsurrondings[3] = new Point(x - 1, y, castToBoxContainer(piece.West)); // add the west piece\n\t\t\n\t\tfor (int i = 0; i < surrondings.length; i++){\n\t\t\t// check if this is a key or an exit and if so add it to the respective arrays if it not already there\n\t\t\tif (surrondings[i].type == BoxContainer.Exit){\n\t\t\t\tif (!checkForPointInArr(exits, surrondings[i])){ // make sure it's not already there\n\t\t\t\t\texits.add(surrondings[i]);\n\t\t\t\t}\n\t\t\t} else if (surrondings[i].type == BoxContainer.Key){\n\t\t\t\tif (!checkForPointInArr(keys, surrondings[i])){ // make sure it's not already there\n\t\t\t\t\tkeys.add(surrondings[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmap.addElement(surrondings[i].x, surrondings[i].y, surrondings[i].type);\n\t\t}\n\t}", "public void addNewPokemon(Pokemon pokemon) {\n try {\n PokemonSpecies pokemonSpecies = findSeenSpeciesData(pokemon.getSpecies());\n // then this Pokemon has been encountered before, just add to inventory\n pokemonSpecies.addNewPokemon(pokemon);\n } catch (PokedexException e) {\n // then this Pokemon has not been encountered before, make record of it then add to inventory\n PokemonSpecies pokemonSpecies = new PokemonSpecies(pokemon.getPokedexNumber(), pokemon.getSpecies(), 0);\n pokemonSpecies.addNewPokemon(pokemon);\n addNewSpecies(pokemonSpecies);\n }\n }", "private void add(Tile t) {\n tileBag.add(t);\n shuffleBag();\n }", "public void addPokemon(Pokemon p)\n\t{\n\t\t/* See if there is space in the player's party */\n\t\tfor(int i = 0; i < m_pokemon.length; i++)\n\t\t\tif(m_pokemon[i] == null)\n\t\t\t{\n\t\t\t\tm_pokemon[i] = p;\n\t\t\t\tupdateClientParty(i);\n\t\t\t\treturn;\n\t\t\t}\n\t\t/* Else, find space in a box */\n\t\tfor(int i = 0; i < m_boxes.length; i++)\n\t\t\tif(m_boxes[i] != null)\n\t\t\t{\n\t\t\t\t/* Find space in an existing box */\n\t\t\t\tfor(int j = 0; j < m_boxes[i].getPokemon().length; j++)\n\t\t\t\t\tif(m_boxes[i].getPokemon(j) == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tm_boxes[i].setPokemon(j, p);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* We need a new box */\n\t\t\t\tm_boxes[i] = new PokemonBox();\n\t\t\t\tm_boxes[i].setPokemon(0, p);\n\t\t\t\tbreak;\n\t\t\t}\n\t}", "private void placesInit()\n {\n\n for(Map.Entry<String,Place> placeEntry: placesMap.entrySet())\n {\n addPlace(placeEntry.getKey(),placeEntry.getValue());\n }\n\n }", "public void feedAll() {\n\t\tfor (VirtualPet p : shelterPets.values()) {\n\t\t\tp.feedPet();\n\t\t}\n\t}", "private void add(String name) {\n try {\n PokemonToEdit pkm = Reader.readPokemon(name);\n team.add(pkm);\n System.out.println(name + \" has been add to the team\");\n new PokemonEditTool(pkm);\n } catch (IOException e) {\n System.out.println(\"Pokemon not found natively\");\n System.out.println(\"Try looking for the pokemon online\");\n try {\n PokemonToEdit pkm = Crawler.loadPokemon(name);\n Saver.savePokemon(pkm);\n team.add(pkm);\n System.out.println(name + \" has been added to the team\");\n new PokemonEditTool(pkm);\n } catch (IOException ex) {\n System.out.println(\"Pokemon not found\");\n } catch (TeamFullException ex) {\n System.out.println(\"Team is full\");\n }\n } catch (TeamFullException e) {\n System.out.println(\"Team is full\");\n\n }\n }", "public void addPlanet(Planet p) {\n planet.add(p);\n }", "boolean addAll(MapP2P<K, V> mapP2P);", "private void addWalk(List<Pet> pets, String name, String description, DateTime startDateTime,\n DateTime endDateTime) {\n trAddWalk.setUser(user);\n trAddWalk.setPets(pets);\n trAddWalk.setName(name);\n trAddWalk.setDescription(description);\n trAddWalk.setStartDateTime(startDateTime);\n trAddWalk.setEndDateTime(endDateTime);\n trAddWalk.setCoordinates(getCoordinates());\n\n try {\n trAddWalk.execute();\n } catch (NotPetOwnerException | InvalidPeriodException e) {\n e.printStackTrace();\n }\n\n updateMedalProgress(UserAchievement.WALKER);\n }", "private void addSpawnsToList()\n\t{\n\t\tSPAWNS.put(1, new ESSpawn(1, GraciaSeeds.DESTRUCTION, new Location(-245790,220320,-12104), new int[]{TEMPORARY_TELEPORTER}));\n\t\tSPAWNS.put(2, new ESSpawn(2, GraciaSeeds.DESTRUCTION, new Location(-249770,207300,-11952), new int[]{TEMPORARY_TELEPORTER}));\n\t\t//Energy Seeds\n\t\tSPAWNS.put(3, new ESSpawn(3, GraciaSeeds.DESTRUCTION, new Location(-248360,219272,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(4, new ESSpawn(4, GraciaSeeds.DESTRUCTION, new Location(-249448,219256,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(5, new ESSpawn(5, GraciaSeeds.DESTRUCTION, new Location(-249432,220872,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(6, new ESSpawn(6, GraciaSeeds.DESTRUCTION, new Location(-248360,220888,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(7, new ESSpawn(7, GraciaSeeds.DESTRUCTION, new Location(-250088,219256,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(8, new ESSpawn(8, GraciaSeeds.DESTRUCTION, new Location(-250600,219272,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(9, new ESSpawn(9, GraciaSeeds.DESTRUCTION, new Location(-250584,220904,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(10, new ESSpawn(10, GraciaSeeds.DESTRUCTION, new Location(-250072,220888,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(11, new ESSpawn(11, GraciaSeeds.DESTRUCTION, new Location(-253096,217704,-12296), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(12, new ESSpawn(12, GraciaSeeds.DESTRUCTION, new Location(-253112,217048,-12288), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(13, new ESSpawn(13, GraciaSeeds.DESTRUCTION, new Location(-251448,217032,-12288), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(14, new ESSpawn(14, GraciaSeeds.DESTRUCTION, new Location(-251416,217672,-12296), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(15, new ESSpawn(15, GraciaSeeds.DESTRUCTION, new Location(-251416,217672,-12296), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(16, new ESSpawn(16, GraciaSeeds.DESTRUCTION, new Location(-251416,217016,-12280), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(17, new ESSpawn(17, GraciaSeeds.DESTRUCTION, new Location(-249752,217016,-12280), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(18, new ESSpawn(18, GraciaSeeds.DESTRUCTION, new Location(-249736,217688,-12296), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(19, new ESSpawn(19, GraciaSeeds.DESTRUCTION, new Location(-252472,215208,-12120), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(20, new ESSpawn(20, GraciaSeeds.DESTRUCTION, new Location(-252552,216760,-12248), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(21, new ESSpawn(21, GraciaSeeds.DESTRUCTION, new Location(-253160,216744,-12248), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(22, new ESSpawn(22, GraciaSeeds.DESTRUCTION, new Location(-253128,215160,-12096), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(23, new ESSpawn(23, GraciaSeeds.DESTRUCTION, new Location(-250392,215208,-12120), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(24, new ESSpawn(24, GraciaSeeds.DESTRUCTION, new Location(-250264,216744,-12248), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(25, new ESSpawn(25, GraciaSeeds.DESTRUCTION, new Location(-249720,216744,-12248), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(26, new ESSpawn(26, GraciaSeeds.DESTRUCTION, new Location(-249752,215128,-12096), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(27, new ESSpawn(27, GraciaSeeds.DESTRUCTION, new Location(-250280,216760,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(28, new ESSpawn(28, GraciaSeeds.DESTRUCTION, new Location(-250344,216152,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(29, new ESSpawn(29, GraciaSeeds.DESTRUCTION, new Location(-252504,216152,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(30, new ESSpawn(30, GraciaSeeds.DESTRUCTION, new Location(-252520,216792,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(31, new ESSpawn(31, GraciaSeeds.DESTRUCTION, new Location(-242520,217272,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(32, new ESSpawn(32, GraciaSeeds.DESTRUCTION, new Location(-241432,217288,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(33, new ESSpawn(33, GraciaSeeds.DESTRUCTION, new Location(-241432,218936,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(34, new ESSpawn(34, GraciaSeeds.DESTRUCTION, new Location(-242536,218936,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(35, new ESSpawn(35, GraciaSeeds.DESTRUCTION, new Location(-240808,217272,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(36, new ESSpawn(36, GraciaSeeds.DESTRUCTION, new Location(-240280,217272,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(37, new ESSpawn(37, GraciaSeeds.DESTRUCTION, new Location(-240280,218952,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(38, new ESSpawn(38, GraciaSeeds.DESTRUCTION, new Location(-240792,218936,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(39, new ESSpawn(39, GraciaSeeds.DESTRUCTION, new Location(-239576,217240,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(40, new ESSpawn(40, GraciaSeeds.DESTRUCTION, new Location(-239560,216168,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(41, new ESSpawn(41, GraciaSeeds.DESTRUCTION, new Location(-237896,216152,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(42, new ESSpawn(42, GraciaSeeds.DESTRUCTION, new Location(-237912,217256,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(43, new ESSpawn(43, GraciaSeeds.DESTRUCTION, new Location(-237896,215528,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(44, new ESSpawn(44, GraciaSeeds.DESTRUCTION, new Location(-239560,215528,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(45, new ESSpawn(45, GraciaSeeds.DESTRUCTION, new Location(-239560,214984,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(46, new ESSpawn(46, GraciaSeeds.DESTRUCTION, new Location(-237896,215000,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(47, new ESSpawn(47, GraciaSeeds.DESTRUCTION, new Location(-237896,213640,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(48, new ESSpawn(48, GraciaSeeds.DESTRUCTION, new Location(-239560,213640,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(49, new ESSpawn(49, GraciaSeeds.DESTRUCTION, new Location(-239544,212552,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(50, new ESSpawn(50, GraciaSeeds.DESTRUCTION, new Location(-237912,212552,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(51, new ESSpawn(51, GraciaSeeds.DESTRUCTION, new Location(-237912,211912,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(52, new ESSpawn(52, GraciaSeeds.DESTRUCTION, new Location(-237912,211400,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(53, new ESSpawn(53, GraciaSeeds.DESTRUCTION, new Location(-239560,211400,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(54, new ESSpawn(54, GraciaSeeds.DESTRUCTION, new Location(-239560,211912,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(55, new ESSpawn(55, GraciaSeeds.DESTRUCTION, new Location(-241960,214536,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(56, new ESSpawn(56, GraciaSeeds.DESTRUCTION, new Location(-241976,213448,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(57, new ESSpawn(57, GraciaSeeds.DESTRUCTION, new Location(-243624,213448,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(58, new ESSpawn(58, GraciaSeeds.DESTRUCTION, new Location(-243624,214520,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(59, new ESSpawn(59, GraciaSeeds.DESTRUCTION, new Location(-241976,212808,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(60, new ESSpawn(60, GraciaSeeds.DESTRUCTION, new Location(-241960,212280,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(61, new ESSpawn(61, GraciaSeeds.DESTRUCTION, new Location(-243624,212264,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(62, new ESSpawn(62, GraciaSeeds.DESTRUCTION, new Location(-243624,212792,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(63, new ESSpawn(63, GraciaSeeds.DESTRUCTION, new Location(-243640,210920,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(64, new ESSpawn(64, GraciaSeeds.DESTRUCTION, new Location(-243624,209832,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(65, new ESSpawn(65, GraciaSeeds.DESTRUCTION, new Location(-241976,209832,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(66, new ESSpawn(66, GraciaSeeds.DESTRUCTION, new Location(-241976,210920,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(67, new ESSpawn(67, GraciaSeeds.DESTRUCTION, new Location(-241976,209192,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(68, new ESSpawn(68, GraciaSeeds.DESTRUCTION, new Location(-241976,208664,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(69, new ESSpawn(69, GraciaSeeds.DESTRUCTION, new Location(-243624,208664,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(70, new ESSpawn(70, GraciaSeeds.DESTRUCTION, new Location(-243624,209192,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(71, new ESSpawn(71, GraciaSeeds.DESTRUCTION, new Location(-241256,208664,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(72, new ESSpawn(72, GraciaSeeds.DESTRUCTION, new Location(-240168,208648,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(73, new ESSpawn(73, GraciaSeeds.DESTRUCTION, new Location(-240168,207000,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(74, new ESSpawn(74, GraciaSeeds.DESTRUCTION, new Location(-241256,207000,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(75, new ESSpawn(75, GraciaSeeds.DESTRUCTION, new Location(-239528,208648,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(76, new ESSpawn(76, GraciaSeeds.DESTRUCTION, new Location(-238984,208664,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(77, new ESSpawn(77, GraciaSeeds.DESTRUCTION, new Location(-239000,207000,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(78, new ESSpawn(78, GraciaSeeds.DESTRUCTION, new Location(-239512,207000,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(79, new ESSpawn(79, GraciaSeeds.DESTRUCTION, new Location(-245064,213144,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(80, new ESSpawn(80, GraciaSeeds.DESTRUCTION, new Location(-245064,212072,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(81, new ESSpawn(81, GraciaSeeds.DESTRUCTION, new Location(-246696,212072,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(82, new ESSpawn(82, GraciaSeeds.DESTRUCTION, new Location(-246696,213160,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(83, new ESSpawn(83, GraciaSeeds.DESTRUCTION, new Location(-245064,211416,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(84, new ESSpawn(84, GraciaSeeds.DESTRUCTION, new Location(-245048,210904,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(85, new ESSpawn(85, GraciaSeeds.DESTRUCTION, new Location(-246712,210888,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(86, new ESSpawn(86, GraciaSeeds.DESTRUCTION, new Location(-246712,211416,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(87, new ESSpawn(87, GraciaSeeds.DESTRUCTION, new Location(-245048,209544,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(88, new ESSpawn(88, GraciaSeeds.DESTRUCTION, new Location(-245064,208456,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(89, new ESSpawn(89, GraciaSeeds.DESTRUCTION, new Location(-246696,208456,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(90, new ESSpawn(90, GraciaSeeds.DESTRUCTION, new Location(-246712,209544,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(91, new ESSpawn(91, GraciaSeeds.DESTRUCTION, new Location(-245048,207816,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(92, new ESSpawn(92, GraciaSeeds.DESTRUCTION, new Location(-245048,207288,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(93, new ESSpawn(93, GraciaSeeds.DESTRUCTION, new Location(-246696,207304,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(94, new ESSpawn(94, GraciaSeeds.DESTRUCTION, new Location(-246712,207816,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(95, new ESSpawn(95, GraciaSeeds.DESTRUCTION, new Location(-244328,207272,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(96, new ESSpawn(96, GraciaSeeds.DESTRUCTION, new Location(-243256,207256,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(97, new ESSpawn(97, GraciaSeeds.DESTRUCTION, new Location(-243256,205624,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(98, new ESSpawn(98, GraciaSeeds.DESTRUCTION, new Location(-244328,205608,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(99, new ESSpawn(99, GraciaSeeds.DESTRUCTION, new Location(-242616,207272,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(100, new ESSpawn(100, GraciaSeeds.DESTRUCTION, new Location(-242104,207272,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(101, new ESSpawn(101, GraciaSeeds.DESTRUCTION, new Location(-242088,205624,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(102, new ESSpawn(102, GraciaSeeds.DESTRUCTION, new Location(-242600,205608,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\t// Seed of Annihilation\n\t\tSPAWNS.put(103, new ESSpawn(103, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184519,183007,-10456), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(104, new ESSpawn(104, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184873,181445,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(105, new ESSpawn(105, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184009,180962,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(106, new ESSpawn(106, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185321,181641,-10448), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(107, new ESSpawn(107, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184035,182775,-10512), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(108, new ESSpawn(108, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185433,181935,-10424), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(109, new ESSpawn(109, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183309,183007,-10560), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(110, new ESSpawn(110, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184929,181886,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(111, new ESSpawn(111, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184009,180392,-10424), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(112, new ESSpawn(112, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183793,183239,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(113, new ESSpawn(113, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184245,180848,-10464), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(114, new ESSpawn(114, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-182704,183761,-10528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(115, new ESSpawn(115, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184705,181886,-10504), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(116, new ESSpawn(116, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184304,181076,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(117, new ESSpawn(117, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183596,180430,-10424), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(118, new ESSpawn(118, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184422,181038,-10480), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(119, new ESSpawn(119, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184929,181543,-10496), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(120, new ESSpawn(120, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184398,182891,-10472), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(121, new ESSpawn(121, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177606,182848,-10584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(122, new ESSpawn(122, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178104,183224,-10560), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(123, new ESSpawn(123, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177274,182284,-10600), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(124, new ESSpawn(124, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177772,183224,-10560), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(125, new ESSpawn(125, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181532,180364,-10504), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(126, new ESSpawn(126, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181802,180276,-10496), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(127, new ESSpawn(127, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178429,180444,-10512), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(128, new ESSpawn(128, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177606,182190,-10600), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(129, new ESSpawn(129, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177357,181908,-10576), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(130, new ESSpawn(130, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178747,179534,-10408), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(131, new ESSpawn(131, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178429,179534,-10392), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(132, new ESSpawn(132, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178853,180094,-10472), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(133, new ESSpawn(133, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181937,179660,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(134, new ESSpawn(134, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-180992,179572,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(135, new ESSpawn(135, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185552,179252,-10368), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(136, new ESSpawn(136, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184572,178913,-10400), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(137, new ESSpawn(137, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184768,178348,-10312), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(138, new ESSpawn(138, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184572,178574,-10352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(139, new ESSpawn(139, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185062,178913,-10384), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(140, new ESSpawn(140, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181397,179484,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(141, new ESSpawn(141, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181667,179044,-10408), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(142, new ESSpawn(142, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185258,177896,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(143, new ESSpawn(143, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183506,176570,-10280), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(144, new ESSpawn(144, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183719,176804,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(145, new ESSpawn(145, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183648,177116,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(146, new ESSpawn(146, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183932,176492,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(147, new ESSpawn(147, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183861,176570,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(148, new ESSpawn(148, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183790,175946,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(149, new ESSpawn(149, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178641,179604,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(150, new ESSpawn(150, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178959,179814,-10432), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(151, new ESSpawn(151, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-176367,178456,-10376), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(152, new ESSpawn(152, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-175845,177172,-10264), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(153, new ESSpawn(153, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-175323,177600,-10248), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(154, new ESSpawn(154, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-174975,177172,-10216), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(155, new ESSpawn(155, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-176019,178242,-10352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(156, new ESSpawn(156, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-174801,178456,-10264), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(157, new ESSpawn(157, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185648,183384,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(158, new ESSpawn(158, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186740,180908,-15528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(159, new ESSpawn(159, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185297,184658,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(160, new ESSpawn(160, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185697,181601,-15488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(161, new ESSpawn(161, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186684,182744,-15536), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(162, new ESSpawn(162, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184908,183384,-15616), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(163, new ESSpawn(163, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184994,185572,-15784), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(164, new ESSpawn(164, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185796,182616,-15608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(165, new ESSpawn(165, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184970,184385,-15648), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(166, new ESSpawn(166, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185995,180809,-15512), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(167, new ESSpawn(167, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185352,182872,-15632), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(168, new ESSpawn(168, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185624,184294,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(169, new ESSpawn(169, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184486,185774,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(170, new ESSpawn(170, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186496,184112,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(171, new ESSpawn(171, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184232,185976,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(172, new ESSpawn(172, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184994,185673,-15792), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(173, new ESSpawn(173, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185733,184203,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(174, new ESSpawn(174, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185079,184294,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(175, new ESSpawn(175, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184803,180710,-15528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(176, new ESSpawn(176, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186293,180413,-15528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(177, new ESSpawn(177, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185352,182936,-15632), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(178, new ESSpawn(178, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184356,180611,-15496), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(179, new ESSpawn(179, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185375,186784,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(180, new ESSpawn(180, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184867,186784,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(181, new ESSpawn(181, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180553,180454,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(182, new ESSpawn(182, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180422,180454,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(183, new ESSpawn(183, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-181863,181138,-15120), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(184, new ESSpawn(184, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-181732,180454,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(185, new ESSpawn(185, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180684,180397,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(186, new ESSpawn(186, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-182256,180682,-15112), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(187, new ESSpawn(187, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185492,179492,-15392), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(188, new ESSpawn(188, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185894,178538,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(189, new ESSpawn(189, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186028,178856,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(190, new ESSpawn(190, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185224,179068,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(191, new ESSpawn(191, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185492,178538,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(192, new ESSpawn(192, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185894,178538,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(193, new ESSpawn(193, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180619,178855,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(194, new ESSpawn(194, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180255,177892,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(195, new ESSpawn(195, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185804,176472,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(196, new ESSpawn(196, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184580,176370,-15320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(197, new ESSpawn(197, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184308,176166,-15320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(198, new ESSpawn(198, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-183764,177186,-15304), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(199, new ESSpawn(199, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180801,177571,-15144), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(200, new ESSpawn(200, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184716,176064,-15320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(201, new ESSpawn(201, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184444,175452,-15296), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(202, new ESSpawn(202, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180164,177464,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(203, new ESSpawn(203, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180164,178213,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(204, new ESSpawn(204, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-179982,178320,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(205, new ESSpawn(205, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176925,177757,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(206, new ESSpawn(206, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176164,179282,-15720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(207, new ESSpawn(207, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175692,177613,-15800), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(208, new ESSpawn(208, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175418,178117,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(209, new ESSpawn(209, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176103,177829,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(210, new ESSpawn(210, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175966,177325,-15792), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(211, new ESSpawn(211, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174778,179732,-15664), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(212, new ESSpawn(212, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175692,178261,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(213, new ESSpawn(213, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176038,179192,-15736), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(214, new ESSpawn(214, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175660,179462,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(215, new ESSpawn(215, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175912,179732,-15664), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(216, new ESSpawn(216, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175156,180182,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(217, new ESSpawn(217, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174240,182059,-15664), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(218, new ESSpawn(218, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175590,181478,-15640), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(219, new ESSpawn(219, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174510,181561,-15616), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(220, new ESSpawn(220, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174240,182391,-15688), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(221, new ESSpawn(221, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174105,182806,-15672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(222, new ESSpawn(222, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174645,182806,-15712), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(223, new ESSpawn(223, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-214962,182403,-10992), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(224, new ESSpawn(224, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-215019,182493,-11000), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(225, new ESSpawn(225, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-211374,180793,-11672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(226, new ESSpawn(226, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-211198,180661,-11680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(227, new ESSpawn(227, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-213097,178936,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(228, new ESSpawn(228, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-213517,178936,-12712), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(229, new ESSpawn(229, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-214105,179191,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(230, new ESSpawn(230, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-213769,179446,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(231, new ESSpawn(231, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-214021,179344,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(232, new ESSpawn(232, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-210582,180595,-11672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(233, new ESSpawn(233, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-210934,180661,-11696), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(234, new ESSpawn(234, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207058,178460,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(235, new ESSpawn(235, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207454,179151,-11368), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(236, new ESSpawn(236, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207422,181365,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(237, new ESSpawn(237, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207358,180627,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(238, new ESSpawn(238, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207230,180996,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(239, new ESSpawn(239, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-208515,184160,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(240, new ESSpawn(240, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207613,184000,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(241, new ESSpawn(241, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-208597,183760,-11352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(242, new ESSpawn(242, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206710,176142,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(243, new ESSpawn(243, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206361,178136,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(244, new ESSpawn(244, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206178,178630,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(245, new ESSpawn(245, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-205738,178715,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(246, new ESSpawn(246, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206442,178205,-12648), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(247, new ESSpawn(247, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206585,178874,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(248, new ESSpawn(248, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206073,179366,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(249, new ESSpawn(249, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206009,178628,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(250, new ESSpawn(250, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206155,181301,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(251, new ESSpawn(251, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206595,181641,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(252, new ESSpawn(252, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206507,181641,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(253, new ESSpawn(253, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206507,181471,-12640), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(254, new ESSpawn(254, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206974,175972,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(255, new ESSpawn(255, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206304,175130,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(256, new ESSpawn(256, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206886,175802,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(257, new ESSpawn(257, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207238,175972,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(258, new ESSpawn(258, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206386,174857,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(259, new ESSpawn(259, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206386,175039,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(260, new ESSpawn(260, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-205976,174584,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(261, new ESSpawn(261, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207367,184320,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(262, new ESSpawn(262, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219002,180419,-12608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(263, new ESSpawn(263, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218853,182790,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(264, new ESSpawn(264, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218853,183343,-12600), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(265, new ESSpawn(265, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218358,186247,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(266, new ESSpawn(266, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218358,186083,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(267, new ESSpawn(267, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-217574,185796,-11352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(268, new ESSpawn(268, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219178,181051,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(269, new ESSpawn(269, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-220171,180313,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(270, new ESSpawn(270, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219293,183738,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(271, new ESSpawn(271, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219381,182553,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(272, new ESSpawn(272, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219600,183024,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(273, new ESSpawn(273, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219940,182680,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(274, new ESSpawn(274, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219260,183884,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(275, new ESSpawn(275, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219855,183540,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(276, new ESSpawn(276, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218946,186575,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(277, new ESSpawn(277, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219882,180103,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(278, new ESSpawn(278, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219266,179787,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(279, new ESSpawn(279, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219201,178337,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(280, new ESSpawn(280, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219716,179875,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(281, new ESSpawn(281, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219716,180021,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(282, new ESSpawn(282, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219989,179437,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(283, new ESSpawn(283, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219078,178298,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(284, new ESSpawn(284, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218684,178954,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(285, new ESSpawn(285, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219089,178456,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(286, new ESSpawn(286, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-220266,177623,-12608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(287, new ESSpawn(287, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219201,178025,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(288, new ESSpawn(288, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219142,177044,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(289, new ESSpawn(289, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219690,177895,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(290, new ESSpawn(290, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219754,177623,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(291, new ESSpawn(291, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218791,177830,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(292, new ESSpawn(292, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218904,176219,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(293, new ESSpawn(293, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218768,176384,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(294, new ESSpawn(294, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218774,177626,-11320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(295, new ESSpawn(295, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218774,177792,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(296, new ESSpawn(296, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219880,175901,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(297, new ESSpawn(297, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219210,176054,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(298, new ESSpawn(298, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219850,175991,-12608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(299, new ESSpawn(299, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219079,175021,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(300, new ESSpawn(300, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218812,174229,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(301, new ESSpawn(301, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218723,174669,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\t//@formatter:on\n\t}", "private void addMountains() {\n int randRow = 0;\n int randColumn = 0;\n int randValue = 0;\n do {\n randRow = (int)(Math.round(Math.random()*(MAP_LENGTH-4))) + 2;\n randColumn = (int)(Math.round(Math.random()*(MAP_LENGTH-4))) + 2;\n for (int i = (randRow - 2); i < (randRow + 2); i++) {\n for (int j = (randColumn - 2); j < (randColumn + 2); j++) {\n if ((tileMap[i][j].getTerrain() instanceof Grass) && (tileMap[i][j].isEmpty())) {\n randValue = (int)(Math.round(Math.random()));\n if (randValue == 0) {\n tileMap[i][j] = new Space(new Mountain(i, j)); //Create a mountain\n }\n }\n }\n }\n } while (!checkMountainCoverage());\n }", "private void loadParkingLots() {\n ParkingLot metrotown = new ParkingLot(\"Metrotown\", 4);\n ParkingLot pacificcenter = new ParkingLot(\"PacificCenter\", 5);\n\n for (int i = 0; i < 3; i++) {\n metrotown.addParkingSpot(new ParkingSpot(\"M\" + i, \"medium\", 5));\n pacificcenter.addParkingSpot(new ParkingSpot(\"PC\" + i, \"large\", 4));\n }\n\n parkinglots.add(metrotown);\n parkinglots.add(pacificcenter);\n }", "public void enterMap(Map map, int layer, int i, int j) {\n //1. add the tile to the map\n map.addTile( layer, i, j, this);\n }", "public void add(BindRecord record) {\n map.put(record.getPeptide(), record);\n }", "public void waterAll() {\n\t\tfor (VirtualPet p : shelterPets.values()) {\n\t\t\tp.waterPet();\n\t\t}\n\t}", "private HashMap<String, Integer> addProduct(HashMap<String, Integer> barcodes)\n {\n barcodes.put(getBarcode(), getAmount());\n System.out.println(\"Produkt tilføjet.\");\n System.out.println(\"\");\n return barcodes;\n }", "@Override\n public void addMapInfo(GameMapInfo mapInfo) {\n }", "void spawnItem(@NotNull Point point) {\n int anInt = r.nextInt(100) + 1;\n if (anInt <= 10)\n objectsInMap.add(new AmmoItem(point));\n else if (anInt <= 20)\n objectsInMap.add(new HealthItem(point));\n else if (anInt <= 30)\n objectsInMap.add(new ShieldItem(point));\n else if (anInt <= 40)\n objectsInMap.add(new StarItem(point));\n else if (anInt <= 45)\n objectsInMap.add(new LivesItem(point));\n }", "public ArrayList<Pets> getPets(){\n DataBase db = new DataBase(context);\n initPets(db);\n return db.getPets();\n }", "@Override\r\n\tpublic int insertSelective(shopPet t) {\n\t\treturn 0;\r\n\t}", "public void addSpawners(Room room) {\n\t\tint shiftX = (map.chunkX * 16) - (map.room.length / 2) + 8;\n\t\tint shiftZ = (map.chunkZ * 16) - (map.room.length / 2) + 8;\n\t\t//for(Room room : rooms) {\t\t\t\n\t\t\t//DoomlikeDungeons.profiler.startTask(\"Adding to room \" + room.id);\n\t\t\tfor(Spawner spawner : room.spawners) {\n\t\t\t\t\tDBlock.placeSpawner(map.world, shiftX + spawner.x, spawner.y, shiftZ + spawner.z, spawner.mob);\n\t\t\t}\n\t\t\tfor(BasicChest chest : room.chests) {\n\t\t\t\tchest.place(map.world, shiftX + chest.mx, chest.my, shiftZ + chest.mz, random);\n\t\t\t}\n\t\t\t//DoomlikeDungeons.profiler.endTask(\"Adding to room \" + room.id);\n\t\t//}\t\n\t}", "public void addPoint(T p) {\n points.add(p);\n }", "private void addToBag1(GridSquare.Type id, GridSquare.Type N, GridSquare.Type E, GridSquare.Type S, GridSquare.Type W) {\r\n\t\tbag1.add(new PieceTile(new GridSquare(id), new GridSquare[] {\r\n\t\t\t\tnew GridSquare(N),\r\n\t\t\t\tnew GridSquare(E),\r\n\t\t\t\tnew GridSquare(S),\r\n\t\t\t\tnew GridSquare(W)\r\n\t\t}));\r\n\t}", "private void addDog() {\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tString numID = id.get(i);\n\t\t\tString name = names.get(i);\n\t\t\tString breed = breeds.get(i);\n\t\t\tString dateBirth = date.get(i+1);\n\t\t\tString img = dogImg.get(i);\n\t\t\t\t\t\t\n\t\t\t//Adding the dogs to the list\n\t\t\tlistOfDogs.add(new Dog(app, numID, name, breed, dateBirth, img));\n\t\t}\t\t\n\t}", "private void addPoints(MapReader mr, Map<Integer, Mdr5Record> cityMap) {\n \t\tList<Point> list = mr.pointsForLevel(0);\n \t\tfor (Point p : list) {\n \t\t\tLabel label = p.getLabel();\n \t\t\tif (p.getNumber() > 256) {\n \t\t\t\t// I think we limit the number of points+ind-points, but just in case\n \t\t\t\tSystem.out.println(\"point number too big\");\n \t\t\t\tcontinue;\n \t\t\t}\n \n \t\t\tMdr5Record city = null;\n \t\t\tif (p.getType() < 0x11) {\n \t\t\t\t// This is itself a city, it gets a reference to its own MDR 5 record.\n\t\t\t\tint cnum = (p.getSubdiv().getNumber() << 8) + p.getNumber();\n\t\t\t\tcity = cityMap.get(cnum);\n \n \t\t\t} else {\n \t\t\t\t// This is not a city, but we have information about which city\n \t\t\t\t// it is in. If so then add the mdr5 record number of the city.\n \t\t\t\tPOIRecord poi = p.getPOIRecord();\n \t\t\t\tCity c = poi.getCity();\n \t\t\t\tif (c != null)\n\t\t\t\t\tcity = cityMap.get(c.getIndex());\n\t\t\t}\n\n\t\t\tif (city != null) {\n\t\t\t\tcity.setLblOffset(label.getOffset());\n\t\t\t\tcity.setName(label.getText());\n \t\t\t}\n \n \t\t\tif (label != null && label.getText().trim().length() > 0)\n \t\t\t\tmdrFile.addPoint(p, city);\n \t\t}\n \t}", "public static void spawnPlant (Species map[][], int plantSpawnRate, int plantHealth) {\n \n // Declare random coordinates\n int y, x; \n \n // Declare new plant\n Plant plant;\n \n // Spawn plants randomly until spawn rate is reached per turn\n for (int i = 0; i < plantSpawnRate; i++) {\n \n // Generate random coordinates\n y = (int)(Math.random() * map[0].length);\n x = (int)(Math.random() * map.length);\n \n // Check if space is empty and available to spawn\n if (map[y][x] == null) { \n \n // Get plant choice\n int plantChoice = (int) Math.ceil(Math.random() * 100);\n \n // Spawn different types of plants\n if ((plantChoice <= 100) && (plantChoice >= 50)) {\n plant = new HealthyPlant(plantHealth, x, y, plantSpawnRate);\n } else if ((plantChoice < 50) && (plantChoice >= 25)) {\n plant = new EnergizingPlant(plantHealth, x, y, plantSpawnRate);\n } else {\n plant = new PoisonousPlant(plantHealth, x, y, plantSpawnRate);\n }\n \n // Set plant location\n plant.setX(x);\n plant.setY(y);\n map[y][x] = plant;\n \n // No space\n } else {\n i -= 1;\n }\n }\n \n }", "public void makeMap(){\r\n\t\tint m =1;\r\n\t\t//EnvironObj temp = new EnvironObj(null, 0, 0);\r\n\t\tfor(int i=0; i<map.size(); i++){\r\n\t\t\tfor(int j =0; j<map.get(i).size(); j++){\r\n\t\t\t\tString o = map.get(i).get(j);\r\n\t\t\t\t//System.out.println(\"grabbing o from map, o = \" + o);\r\n\t\t\t\tif(o.equals(\"t\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"treee.png\", j+m, i*20);\r\n\t\t\t\t\tobjectList.add(temp);\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t\t//System.out.println(\"objectList: \" + objectList);\r\n\t\t\t\t}else if(o.equals(\"p\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"path.png\", j+m, i*20, true);\r\n\t\t\t\t\t//dont need to add to obj list bc its always in back\r\n\t\t\t\t\twalkables.add(temp);\r\n\r\n\t\t\t\t}else if(o.equals(\"h\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"house.png\", j+m, i*20);\r\n\t\t\t\t\tobjectList.add(temp);\r\n\t\t\t\t}else if(o.equals(\"g\")){\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t}\r\n\t\t\t\telse if(!o.equals(\"g\")){\r\n\t\t\t\t\tString fn = o +\".txt\";\r\n\t\t\t\t\tSystem.out.println(\"filename for NPC: \" + fn);\r\n\t\t\t\t\tnp = new NPC(o, fn, j+m, i*20);\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t\tcharacters.add(np);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tm=0;\r\n\t\t}\r\n\t}", "public static void updateMap (Species [][] map, int plantHealth, int sheepHealth, int wolfHealth, int plantSpawnRate) {\n \n // Age, reproduce, move, and spawn species\n ageAnimal (map); \n reproduce (map, sheepHealth, wolfHealth, plantHealth);\n move (map, plantHealth, sheepHealth, wolfHealth);\n spawnPlant(map, plantSpawnRate, plantHealth);\n \n // Update map and reset animal interactions to allow for actions\n for(int y = 0; y < map[0].length; y++){\n for(int x = 0; x < map.length; x++) {\n if (map[y][x] instanceof Sheep) {\n ((Sheep)map[y][x]).setMoved(false);\n } else if (map[y][x] instanceof Wolf) {\n ((Wolf)map[y][x]).setMoved(false);\n }\n }\n }\n \n }", "@Override\r\n\tpublic void addToMap(MapView arg0) {\n\t\tsuper.addToMap(arg0);\r\n\t}", "public static void makeGrid (Species map[][], int numSheepStart, int numWolfStart, int numPlantStart, int sheepHealth, int plantHealth, int wolfHealth, int plantSpawnRate) {\n \n // Declare coordinates to randomly spawn species\n int y = 0;\n int x = 0;\n \n // Initialise plants\n Plant plant;\n \n // Spawn plants\n for (int i = 0; i < numPlantStart; i++) {\n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Choose a random plant (50% chance healthy, 25% poisonous or energizing)\n int plantChoice = (int) Math.ceil(Math.random() * 100);\n \n // Create the new plants\n if ((plantChoice <= 100) && (plantChoice >= 50)) {\n plant = new HealthyPlant(plantHealth, x, y, plantSpawnRate);\n } else if ((plantChoice < 50) && (plantChoice >= 25)) {\n plant = new EnergizingPlant(plantHealth, x, y, plantSpawnRate);\n } else {\n plant = new PoisonousPlant(plantHealth, x, y, plantSpawnRate);\n }\n \n // Set plant coordinates\n plant.setX(x);\n plant.setY(y);\n map[y][x] = plant;\n \n // No space\n } else { \n i -= 1;\n }\n \n }\n \n // Spawn sheep\n for (int i = 0; i < numSheepStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) {\n \n // Create new sheep\n Sheep sheep = new Sheep(sheepHealth, x, y, 5); \n \n // Set sheep coordinates\n sheep.setX(x);\n sheep.setY(y);\n map[y][x] = sheep;\n \n // No space\n } else { \n i -= 1; \n }\n \n }\n \n // Spawn wolves\n for (int i = 0; i < numWolfStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Create new wolf\n Wolf wolf = new Wolf(wolfHealth, x, y, 5); \n \n // Set wolf coordinates\n wolf.setX(x);\n wolf.setY(y);\n map[y][x] = wolf; \n \n // No space\n } else { \n i -= 1; \n }\n }\n \n }", "public static void reproduce (Species [][] map, int sheepHealth, int wolfHealth, int plantHealth) {\n \n // Place the baby\n int babyY, babyX;\n \n // Check if the baby has been placed\n int spawned = 0;\n \n for (int y = 0; y < map[0].length; y++){\n for (int x = 0; x < map.length; x++){\n \n boolean [][] breeding = breedChoice (map, x, y, plantHealth);\n \n // Sheep upwards to breed with\n if (breeding[0][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y-1][x]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Sheep downwards to breed with\n } else if (breeding[1][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y+1][x]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Sheep to the left to breed with\n } else if (breeding[2][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y][x-1]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Sheep to the right to breed with\n } else if (breeding[3][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y][x+1]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Wolf upwards to breed with\n } else if (breeding[0][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y-1][x]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n // Wolf downwards to breed with\n } else if (breeding[1][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y+1][x]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n // Wolf to the left to breed with\n } else if (breeding[2][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y][x-1]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n // Wolf to the right to breed with\n } else if (breeding[3][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y][x+1]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n }\n \n }\n }\n \n }", "@Override\r\n\tpublic int insert(shopPet t) {\n\t\treturn dao.insert(t);\r\n\t}", "void add( Map< String, Object > paramMap );", "public void addFood(Food food, double serving) {\n\t\t\n\t\tString foodName = food.getName();\n\t\t\n\t\tif (foodDetail.containsKey(foodName)) {\n\t\t\tif (foodPortion.get(foodName) + serving==0) {\n\t\t\t\tfoodPortion.remove(foodName);\n\t\t\t\tfoodDetail.remove(foodName);\n\t\t\t\tmeal.remove(foodName);\n\t\t\t} else {\n\t\t\t\tfoodPortion.put(foodName, foodPortion.get(foodName) + serving);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tmeal.add(foodName);\n\t\t\tfoodDetail.put(foodName, food);\n\t\t\tfoodPortion.put(foodName, serving);\n\t\t}\n\t}", "@PostMapping(\"/Vets\")\n\tpublic Vets createVets(@RequestBody Vets vets) {\n\t\treturn VetsRepository.save(vets);\n\t}", "public void addKey(String key){\n itemMap.put(key, new ArrayList<>());\n }", "private void addEntity(String name, int value)\n\t{\n\t\tmap.add(name, value);\n\t}", "public void addElement(int x, int y, BoxContainer element){\n\t\t\tArrayList<Integer> coordinates = new ArrayList<Integer>();\n\t\t\tcoordinates.add(x);\n\t\t\tcoordinates.add(y);\n\t\t\tmap.put(coordinates, element);\n\t\t}", "public void addMap(GridMap map){\n mapsList.add(map);\n //Observer pattern\n setChanged();\n notifyObservers(this);\n }", "private void insertPet() {\n\n // Create a ContentValues object where column names are the keys,\n // and Toto's pet attributes are the values.\n ContentValues values = new ContentValues();\n values.put(PetEntry.COLUMN_PET_NAME, \"Toto\");\n values.put(PetEntry.COLUMN_PET_BREED, \"Terrier\");\n values.put(PetEntry.COLUMN_PET_GENDER, PetEntry.GENDER_MALE);\n values.put(PetEntry.COLUMN_PET_WEIGHT, 7);\n\n // Insert a new row for Toto in the database, returning the ID of that new row.\n // The first argument for db.insert() is the pets table name.\n // The second argument provides the name of a column in which the framework\n // can insert NULL in the event that the ContentValues is empty (if\n // this is set to \"null\", then the framework will not insert a row when\n // there are no values).\n // The third argument is the ContentValues object containing the info for Toto.\n Uri newUri=getContentResolver().insert(PetEntry.CONTENT_URI,values);\n if (newUri == null) {\n // If the row ID is -1, then there was an error with insertion.\n Toast.makeText(this, \"Error with saving pet\", Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful and we can display a toast with the row ID.\n Toast.makeText(this, \"Pet saved with row id: \" + newUri, Toast.LENGTH_SHORT).show();\n }\n }", "void placeFruit()\n\t{\n\t\t// .first is x-coordinate, it gets a number between 1 and 16\n\t\tfruit[0] = randomPoint();\n\t\t// .second is y-coordinate, it gets a number between 1 and 16\n\t\tfruit[1] = randomPoint();\n\t\tfruit[2] = randomPoint();\n\n\t\t// loops the snakes length\n\t\tfor (int i = 0; i < theSnake.getLength(); i++)\n\t\t{\n\t\t\t// checks for fruit being on/under snake\n\t\t\tif (theSnake.getXofPartI(i) == fruit[0] && theSnake.getYofPartI(i) == fruit[1] && theSnake.getZofPartI(i) == fruit[2])\n\t\t\t{\n\t\t\t\t// Picks new spot for fruit, because it was found on the snake\n\t\t\t\tfruit[0] = randomPoint();\n\t\t\t\tfruit[1] = randomPoint();\n\t\t\t\tfruit[2] = randomPoint();\n\t\t\t\t// just in case the fruit landed on the snake again\n\t\t\t\ti = 0;\n\t\t\t}\n\t\t}\n\t}", "public void add(Point p) {\n add(p.xyz.x, p.xyz.y, p.xyz.z);\n }", "public void add(Map<Variable, Object> instance) {\n\t\tthis.listInstance.add(instance);\n\t}", "static void setItemsAndContainers (){\n\t \t/**Add containers to places*/\n\t \tLocation.places[0].addContainer(Container.depths);\n\t \tLocation.places[1].addContainer(Container.secondaryInv);\n\t \tLocation.places[4].addContainer(Container.SRCloset);\n\t \tLocation.places[6].addContainer(Container.couch1);\n\t\t Location.places[6].addContainer(Container.couch2);\n\t\t Location.places[6].addContainer(Container.couch3);\n\t\t Location.places[6].addContainer(Container.couch4);\n\t\t Location.places[13].addContainer(Container.closetBathroom);\n Location.places[15].addContainer(Container.K1Couch);\n Location.places[16].addContainer(Container.fridge);\n Location.places[23].addContainer(Container.autoAisle);\n Location.places[24].addContainer(Container.aisle15B);\n Location.places[26].addContainer(Container.bb);\n\t\t \n\t\t /**Add items to places*/\n\t\t Location.places[0].addItem(Item.grabber);\n\t\t Location.places[1].addItem(Item.parcans);\n\t\t Location.places[3].addItem(Item.bookbag);\n\t\t Location.places[4].addItem(Item.ladder);\n\t\t Location.places[7].addItem(Item.drill);\n\t\t Location.places[7].addItem(Item.screws);\n\t\t Location.places[7].addItem(Item.pipe);\n\t\t Location.places[7].addItem(Item.twobyfour);\n\t\t Location.places[8].addItem(Item.rope);\n\t\t Location.places[11].addItem(Item.car);\n\t\t Location.places[12].addItem(Item.twentyDollars);\n\t\t Location.places[16].addItem(Item.tupperware);\n\t\t Location.places[18].addItem(Item.bottle);\n Location.places[19].addItem(Item.plunger);\n Location.places[20].addItem(Item.map);\n Location.places[21].addItem(Item.magnet);\n Location.places[23].addItem(Item.avocados);\n Location.places[25].addItem(Item.noodles);\n\t\t Location.places[26].addItem(Item.Unibrow); \n\t\t \n\t\t /**test purposes*/\n\t\t Location.places[10].addItem(Item.otherWrench);\n//\t\t Location.places[0].addItem(Item.repellent);\n//\t\t Location.places[7].addItem(Item.repellent);\n// Location.places[7].addItem(Item.wrench);\n Location.places[7].addItem(Item.keys);\n\t\t \n\t\t /**Adds items in containers*/\n\t\t Container.setItemsInContainers();\n\t\t }", "private void addItems() {\n for (int i = 0; i < 10; i++) {\n double offset = i/60d;\n mClusterManager.addItem(new CrumbClusterItem(new Crumb(new LatLng(5,-5 + offset))));\n }\n Log.d(TAG, \"All items added to map\");\n }", "private void addPlayers(@NotNull MapHandler map, @NotNull NewGameDto newGameDto) {\n ComparableTuple<Integer, Stack<SpawnTile>> result = analyseMap(map);\n flagCount = result.key;\n Stack<SpawnTile> spawnTiles = result.value;\n if (!spawnTiles.isEmpty()) {\n for (PlayerDto player : newGameDto.players) {\n SpawnTile spawnTile = spawnTiles.pop();\n if (player.id == newGameDto.userId) {\n user = new Player(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(GameGraphics.mainPlayerName + \" (you)\", player.color), player.id);\n user.setDock(spawnTile.getSpawnNumber());\n players.add(user);\n } else {\n IPlayer onlinePlayer = new OnlinePlayer(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(player.name, player.color), player.id);\n onlinePlayer.setDock(spawnTile.getSpawnNumber());\n players.add(onlinePlayer);\n }\n }\n } else {\n for (int i = 0; i < playerCount; i++) {\n NonPlayer nonPlayer = new NonPlayer(i, 0, Direction.NORTH, map, new ComparableTuple<>(\"blue\", Color.BLUE));\n nonPlayer.setDock(i);\n players.add(nonPlayer);\n }\n }\n }", "public void addPlayer(Player p){\r\n this.players[PlayerFactory.nb_instances-1]=p;\r\n this.tiles[p.getX()+(p.getY()*this.width)]=p;\r\n }", "public void insertIntoMap(String key, String name) {\n\t\tif (mapNames.containsKey(key)) {\n\t\t\t// Add new name onto the end of the existing ArrayList.\n\t\t\tmapNames.get(key).add(name);\n\t\t} else {\n\n\t\t\t// Create new ArrayList with the unparsed name as the value\n\t\t\tArrayList<String> arrName = new ArrayList<String>();\n\t\t\tarrName.add(name);\n\t\t\tmapNames.put(key, arrName);\n\t\t}\n\t}", "public void 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 }", "@Override\r\n\tpublic void insert(Map<String, String> map) {\n\t\t\r\n\t}", "public void addComponents()\r\n\t{\n\t\tSteveTechFarming.fruit = new BlockFruit(SteveTechFarming.config.getBlockID(1202, \"Fruit\", null)).setBlockName(\"WiduX-SteveTech-Farm-Fruit\");\r\n\t\tSteveTechFarming.crops = new BlockCrops(SteveTechFarming.config.getBlockID(1203, \"Crops\", null)).setBlockName(\"WiduX-SteveTech-Farm-Crops\");\r\n\t\t\r\n\t\tSteveTechFarming.seeds = new ItemSeeds(SteveTechFarming.config.getItemID(11000, \"Seeds\", null)).setItemName(\"WiduX-SteveTech-Farm-Seeds\");\r\n\t\tSteveTechFarming.harvestedItems = new ItemHarvest(SteveTechFarming.config.getItemID(11002, \"Harvest\", null)).setItemName(\"WiduX-SteveTech-Farm-Harvest\");\r\n\t\tSteveTechFarming.creativeTools = new ItemCreativeTools(SteveTechFarming.config.getItemID(11001, \"Creative Tools\", null)).setItemName(\"WiduX-SteveTech-Farm-CTools\");\r\n\t\tSteveTechFarming.foods = new Item[EnumFood.getNumberFoods()];\r\n\t\tint firstFoodItemID = SteveTechFarming.config.getItemID(11003, \"Foods Array\", \"This is the first item ID in the list of foods. Item IDs used will start here, and use the next \" + EnumFood.getNumberFoods() + \" IDs. Make sure they are all available.\");\r\n\t\tfor(int idOffset = 0; idOffset < SteveTechFarming.foods.length; idOffset++)\r\n\t\t{\r\n\t\t\tEnumFood food = EnumFood.getFood(idOffset);\r\n\t\t\tSteveTechFarming.foods[idOffset] = new ItemSTFood(firstFoodItemID + idOffset, food).setItemName(\"WiduX-SteveTech-Farm-Foods-Food\" + idOffset);\r\n\t\t}\r\n\t}", "void addPokemon(Pokemon pokemon) {\n pokemonList.add(pokemon);\n notifyItemInserted(pokemonList.size());\n }", "protected void putItems() {\n\t\tlevelSetup[0][5].putItem(new Dynamite());\n\t\tlevelSetup[6][6].putItem(new Flint());\n\t\tlevelSetup[6][3].putItem(new ManaPotion());\n\t\tlevelSetup[5][0].putItem(new ManaPotion());\n\t\tlevelSetup[2][1].putItem(new HealthPotion());\n\t\tlevelSetup[3][6].putItem(new HealthPotion());\n\t\tlevelSetup[4][2].putItem(new Spinach());\n\t}", "public Collection<VirtualPet> pets() {\n\t\treturn shelterPets.values();\n\t}", "@Override\n\tpublic void onAdd() {\n\t\tsuper.onAdd();\n\n\t\tsetIdleAnimation(4527);\n\t\tsetNeverRandomWalks(true);\n\t\tsetWalkingHomeDisabled(true);\n\n\t\tthis.region = Stream.of(AbyssalSireRegion.values()).filter(r -> r.getSire().getX() == getSpawnPositionX()\n\t\t && r.getSire().getY() == getSpawnPositionY()).findAny().orElse(null);\n\n\t\tRegion region = Region.getRegion(getSpawnPositionX(), getSpawnPositionY());\n\n\t\tif (region != null) {\n\t\t\tregion.forEachNpc(npc -> {\n\t\t\t\tif (npc instanceof AbyssalSireTentacle) {\n\t\t\t\t\tif (!npc.isDead()) {\n\t\t\t\t\t\tnpc.setDead(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tList<Position> tentaclePositions = Arrays.asList(\n\t\t\t\tthis.region.getTentacleEast(),\n\t\t\t\tthis.region.getTentacleWest(),\n\t\t\t\tthis.region.getTentacleNorthEast(),\n\t\t\t\tthis.region.getTentacleNorthWest(),\n\t\t\t\tthis.region.getTentacleSouthEast(),\n\t\t\t\tthis.region.getTentacleSouthWest()\n\t\t );\n\n\t\ttentaclePositions.forEach(position -> {\n\t\t\ttentacles.add(NpcHandler.spawnNpc(5909, position.getX(), position.getY(), position.getZ()));\n\t\t});\n\n\t\tList<Position> respiratoryPositions = Arrays.asList(\n\t\t\t\tthis.region.getRespiratorySystemNorthEast(),\n\t\t\t\tthis.region.getRespiratorySystemNorthWest(),\n\t\t\t\tthis.region.getRespiratorySystemSouthEast(),\n\t\t\t\tthis.region.getRespiratorySystemSouthWest()\n\t\t );\n\n\t\trespiratoryPositions.forEach(position -> respiratorySystems.add(\n\t\t\t\tNpcHandler.spawnNpc(5914, position.getX(), position.getY(), position.getZ())));\n\t}", "public void addNewEntity() {\n Random random = new Random();\n int bound = Aquarium.WIDTH / 10;\n int randX = bound + random.nextInt(Aquarium.WIDTH - (2 * bound));\n int randY = bound + random.nextInt(Aquarium.HEIGHT - (2 * bound));\n Piranha newPiranha = new Piranha(randX, randY);\n piranhas.add(newPiranha);\n }", "public void populateMap(int playerNumber){\n\t\tint factor = 1;\n\t\t\n\t\t\n\t}", "public static void addToProductTagsArrayList(String productID, String date, String productTagHash,\n String previousProductTagHash, String lat, String lon, String actions,\n String certificates, String productTagActions, String producerName) {\n\n MapDataModel mapDataModel = new MapDataModel();\n\n mapDataModel.setProductId(Integer.parseInt(productID));\n mapDataModel.setDateTime(date);\n mapDataModel.setCurrHash(productTagHash);\n mapDataModel.setPreHash(previousProductTagHash);\n mapDataModel.setLat(Double.parseDouble(lat));\n mapDataModel.setLng(Double.parseDouble(lon));\n mapDataModel.setActions(actions);\n mapDataModel.setCertificates(certificates);\n mapDataModel.setProductTagActions(productTagActions);\n mapDataModel.setProducerName(producerName);\n\n allMapData.add(mapDataModel);\n\n }", "public void addNewJet() {\n\t\n\tSystem.out.println(\"Please enter the model of the JET in all CAPS:\");\n\tString modelsOfJets = kb.next();\n\tSystem.out.println(\"Please enter the speed of the JET in miles per hour (MPH):\");\n\tdouble speedMPH = kb.nextDouble();\n\tSystem.out.println(\"Please enter the price of the JET in dollars:\");\n\tdouble priceInDollars = kb.nextDouble();\n\tSystem.out.println(\"Please enter the range of the JET in miles:\");\n\tdouble rangeInMiles = kb.nextDouble();\n\t\n\tJet j = new Jet(modelsOfJets, speedMPH, priceInDollars, rangeInMiles);\n\t\n\thangar.addNewJetInHangar(j); // adds the jet to the hangar object (that has the jet array)\n\t\t}", "public void AddAnimal(int amount, float xPos, float yPos)\n {\n for (int i = 0; i < amount; i++)\n {\n Animal newAnimal = new Animal(xPos, yPos, birds.size());\n birds.add(newAnimal);\n }\n }", "private void addToBag2(GridSquare.Type id, GridSquare.Type N, GridSquare.Type E, GridSquare.Type S, GridSquare.Type W) {\r\n\t\tbag2.add(new PieceTile(new GridSquare(id), new GridSquare[] {\r\n\t\t\t\tnew GridSquare(N),\r\n\t\t\t\tnew GridSquare(E),\r\n\t\t\t\tnew GridSquare(S),\r\n\t\t\t\tnew GridSquare(W)\r\n\t\t}));\r\n\t}", "public final void addPoint(final Position loc) {\n points.add(new Position(loc));\n }", "@Override\n public void fire(Map<T, Integer> places) {\n places.merge(this.place, this.weight, Integer::sum);\n }", "void add(Point point) {\n\t\tpoints[posit]=point;\n\t\tposit++;\n\t\t//if method add is applied, size should also change\n\t\tsize++;\n\t}", "void addPowerup(int xPos, int yPos) {\n int powerupIndex = new Random().nextInt(this.numPups);\n Posn loc = new Posn(xPos, yPos);\n this.pUps.add(new Powerup(this.hungerDeltaPcrntArray.get(powerupIndex),\n this.speedDeltaPcrntArray.get(powerupIndex),\n this.pointsDeltaArray.get(powerupIndex), loc,\n new FromFileImage(loc, this.imageLocationArray\n .get(powerupIndex))));\n }", "@Test\n\tpublic void populate_map() {\n\t\t//Arrange\n\t\t//testSteve.populateProductMap();\n\t\t\n\t\t//Act\n\t\ttestSteve.populateProductMap();\n\t\t\n\t\t//Assert\n\t\tAssert.assertEquals(testSteve.getProductGenerator().size(), (16));\n\t}", "public void add(int index){\n int i = 0;\n boolean isFound = false;\n for (Product product:inventory.getProducts().keySet())\n {\n i++;\n if (i == index && inventory.getProducts().get(product) > 0)\n {\n if (myBasket.containsKey(product))\n {\n System.out.println(\"One more of this product added.\");\n myBasket.replace(product , myBasket.get(product) + 1);\n }\n else {\n System.out.println(\"Product added to your basket.\");\n myBasket.put(product , 1);\n }\n totalCost = totalCost + product.getPrice();\n isFound = true;\n inventory.updateStock(product , '-');\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index or not enough product in stock!\");\n }", "public void addNewPokemon(String type, int index, String tempName, int tempLevel)\r\n {\r\n if(type.equals(\"Player\"))\r\n {\r\n if(getObjects(Pokemon.class).size() == 2)\r\n {\r\n savePokemonData(playerPokemon, currentPlayerPokemon);\r\n removeObject(playerPokemon);\r\n }\r\n\r\n for(int i = 0; i < 6; i++)\r\n {\r\n if(Reader.readIntFromFile(\"playerPokemon\", index, 3) > 0)\r\n {\r\n makePlayerPokemon(index);\r\n break;\r\n }\r\n index++;\r\n }\r\n\r\n playerPokemonName = playerPokemon.getName();\r\n\r\n addObject(playerPokemon, getWidth() / 4, getHeight() / 2 - 12);\r\n\r\n if(getObjects(Pokemon.class).size() == 2)\r\n {\r\n playerPkmnInfoBox.drawAll();\r\n }\r\n }\r\n else if(type.equals(\"Enemy\"))\r\n {\r\n if(getObjects(Pokemon.class).size() == 2)\r\n {\r\n removeObject(enemyPokemon);\r\n }\r\n\r\n if(!wildPokemon)\r\n {\r\n String enemyPkmnName = Reader.readStringFromFile(\"pokeMonListBattle\", index, 0);\r\n int enemyPkmnLevel = Reader.readIntFromFile(\"pokeMonListBattle\", index, 1);\r\n boolean enemyPkmnGender = Reader.readBooleanFromFile(\"pokeMonListBattle\", index, 2);\r\n int enemyPkmnCurrentHealth = Reader.readIntFromFile(\"pokeMonListBattle\", index, 3);\r\n this.enemyPokemon = new Pokemon(currentEnemyPokemon, enemyPkmnName, enemyPkmnLevel, enemyPkmnGender, enemyPkmnCurrentHealth, 0, false);\r\n\r\n enemyPokemonName = enemyPkmnName;\r\n\r\n addObject(enemyPokemon, 372, 84);\r\n }\r\n else\r\n {\r\n this.enemyPokemon = new Pokemon(currentEnemyPokemon, tempName, tempLevel, getRandomBoolean(), 9999, 0, false);\r\n enemyPokemonName = tempName;\r\n addObject(enemyPokemon, 372, 84);\r\n }\r\n }\r\n }", "public Map add(Tile tile) {\n this.tiles.add(tile);\n return this;\n }", "private void addPlacesToWorld(ArrayList<Place> places, GameWorld world) {\n for (int i = 0; i < places.size(); i++) {\n world.addPlace(places.get(i));\n }\n }", "public void add(HayStack stack){\n if(canMoveTo(stack.getPosition())){\n mapElement.put(stack.getPosition(), stack);\n }\n else{\n throw new IllegalArgumentException(\"UnboundedMap.add - This field is occupied\");\n }\n }", "public void initTiles() {\n\t\ttileList.add(new Go());\n\n\t\t// Brown properties\n\t\tProperty mediterranean = new Property(\"Mediterranean\");\n\t\tProperty balticAve = new Property(\"Baltic Avenue\");\n\n\t\t// Light blue properties\n\t\tProperty orientalAve = new Property(\"Oriental Avenue\");\n\t\tProperty vermontAve = new Property(\"Vermont Avenue\");\n\t\tProperty connecticutAve = new Property(\"Connecticut Avenue\");\n\n\t\t// Magenta properties\n\t\tProperty stCharles = new Property(\"St. Charles Place\");\n\t\tProperty statesAve = new Property(\"States Avenue\");\n\t\tProperty virginiaAve = new Property(\"Virginia Avenue\");\n\n\t\t// Orange properties\n\t\tProperty stJames = new Property(\"St. James Place\");\n\t\tProperty tennesseeAve = new Property(\"Tennessee Avenue\");\n\t\tProperty newYorkAve = new Property(\"New York Avenue\");\n\n\t\t// Red properties\n\t\tProperty kentuckyAve = new Property(\"Kentucky Avenue\");\n\t\tProperty indianaAve = new Property(\"Indiana Avenue\");\n\t\tProperty illinoisAve = new Property(\"Illinois Avenue\");\n\n\t\t// Yellow Properties\n\t\tProperty atlanticAve = new Property(\"Atlantic Avenue\");\n\t\tProperty ventnorAve = new Property(\"Ventnor Avenue\");\n\t\tProperty marvinGard = new Property(\"Marvin Gardins\");\n\n\t\t// Green Properties\n\t\tProperty pacificAve = new Property(\"Pacific Avenue\");\n\t\tProperty northCar = new Property(\"North Carolina Avenue\");\n\t\tProperty pennsylvannia = new Property(\"Pennsylvania Avenue\");\n\n\t\t// Dark blue properties\n\t\tProperty parkPlace = new Property(\"Park Place\");\n\t\tProperty boardWalk = new Property(\"Boardwalk\");\n\n\t\t// Tax tiles\n\t\tTaxTile incomeTax = new TaxTile(\"Income Tax\", 200);\n\t\tTaxTile luxuryTax = new TaxTile(\"Luxury Tax\", 100);\n\n\t\t// Utilities\n\t\tUtility electric = new Utility(\"Electric Company\");\n\t\tUtility water = new Utility(\"Water Works\");\n\n\t\t// Railroads\n\t\tRailroad reading = new Railroad(\"Reading\");\n\t\tRailroad pennRail = new Railroad(\"Pennsylvania\");\n\t\tRailroad bno = new Railroad(\"B & O\");\n\t\tRailroad shortLine = new Railroad(\"Short Line\");\n\n\t\t// Chance and community chest\n\t\tChance chance = new Chance();\n\t\tCommunity chest = new Community();\n\n\t\t// Adds the properties by color in accordance with their position on the board\n\t\t// adds color + placement of piece to a list of their respective colors\n\t\tbrown.add(1);\n\t\tbrown.add(3);\n\t\trailroads.add(5);\n\t\tlightBlue.add(6);\n\t\tlightBlue.add(8);\n\t\tlightBlue.add(9);\n\t\tmagenta.add(11);\n\t\tutilities.add(12);\n\t\tmagenta.add(13);\n\t\tmagenta.add(14);\n\t\trailroads.add(15);\n\t\torange.add(16);\n\t\torange.add(18);\n\t\torange.add(19);\n\t\tred.add(21);\n\t\tred.add(23);\n\t\tred.add(24);\n\t\trailroads.add(25);\n\t\tyellow.add(26);\n\t\tyellow.add(27);\n\t\tutilities.add(28);\n\t\tyellow.add(29);\n\t\tgreen.add(31);\n\t\tgreen.add(32);\n\t\tgreen.add(34);\n\t\trailroads.add(35);\n\t\tdarkBlue.add(37);\n\t\tdarkBlue.add(39);\n\n\t\t// tileList is the list of tiles of the board where each tile is representative of a place on the board\n\t\t// adds each tile is chronological order beginning of the board \"go\"\n\t\t//this list includes: properties, taxes, railroads, chance, community chest\n\t\t\n\t\ttileList.add(new Go());\n\n\t\ttileList.add(mediterranean);\n\t\ttileList.add(chest);\n\t\ttileList.add(balticAve);\n\t\ttileList.add(incomeTax);\n\t\ttileList.add(reading);\n\t\ttileList.add(orientalAve);\n\t\ttileList.add(chance);\t\n\t\ttileList.add(vermontAve);\n\t\ttileList.add(connecticutAve);\n\n\t\ttileList.add(new Jail());\n\t\t\t\n\t\ttileList.add(stCharles);\n\t\ttileList.add(electric);\t\t\t\n\t\ttileList.add(statesAve);\t\t\t\n\t\ttileList.add(virginiaAve);\n\t\ttileList.add(pennRail);\n\t\ttileList.add(stJames);\t\n\t\ttileList.add(chest);\n\t\ttileList.add(tennesseeAve);\t\t\t\n\t\ttileList.add(newYorkAve);\n\n\t\ttileList.add(new FreeParking());\n\t\t\t\n\t\ttileList.add(kentuckyAve);\t\t\n\t\ttileList.add(chance);\t\n\t\ttileList.add(indianaAve);\t\t\t\n\t\ttileList.add(illinoisAve);\n\t\ttileList.add(bno);\n\t\ttileList.add(atlanticAve);\t\t\t\n\t\ttileList.add(ventnorAve);\n\t\ttileList.add(water);\n\t\ttileList.add(marvinGard);\n\n\t\ttileList.add(new GoToJail());\n\t\t\t\t\t\n\t\ttileList.add(pacificAve);\t\t\t\n\t\ttileList.add(northCar);\n\t\ttileList.add(chest);\t\t\t\n\t\ttileList.add(pennsylvannia);\n\t\ttileList.add(shortLine);\n\t\ttileList.add(chance);\n\t\ttileList.add(parkPlace);\n\t\ttileList.add(luxuryTax);\n\t\ttileList.add(boardWalk);\n\t}", "private void addBubble(GeoPoint point) {\n\t\tdimissbubble();\n\t\t//if there isn't any bubble on the screen enter\n\t\tif (viewBubble == null) {\n\n\t\t\tparentBubble = (ViewGroup) mapView.getParent();\n\t\t\t//We inflate the view with the bubble\n\t\t\tviewBubble = getLayoutInflater().inflate(R.layout.map_tag_bubble,\n\t\t\t\t\tparentBubble, false);\n\n\t\t\t//to position the bubble over the map. The -128 and -150 are the offset.\n\t\t\tMapView.LayoutParams mvlp = new MapView.LayoutParams(\n\t\t\t\t\tMapView.LayoutParams.WRAP_CONTENT,\n\t\t\t\t\tMapView.LayoutParams.WRAP_CONTENT, geo, -128, -150,\n\t\t\t\t\tMapView.LayoutParams.LEFT);\n\n\n\n\t\t\tLinearLayout f = (LinearLayout) viewBubble;\n\t\t\t//Fill the text\n\t\t\t((TextView) f.findViewById(R.id.tag_title_textview))\n\t\t\t.setText(item.getTitle());\n\t\t\t((TextView) f.findViewById(R.id.tag_last_seen_textview))\n\t\t\t.setText(item.getSnippet());\n\n\n\t\t\t//And the event.\n\t\t\tviewBubble.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t//When we touch the bubble it is removed. And make null viewBubble to reuse it.\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tSystem.out.println(\"click\");\n\t\t\t\t\t\n\t\t\t\t\tIntent i = new Intent();\n\t\t\t\t\ti.setClass(getApplicationContext(), POIDetailActivity.class);\n\t\t\t\t\t\n\t\t\t\t\ti.putExtra(\"poiid\", \"\"+ r.getRoutePOIs().get(selectedPOIIndex).getId());\n\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\n\t\t\t\t\tmapView.removeView(viewBubble);\n\t\t\t\t\tviewBubble = null;\n\n\t\t\t\t}\n\t\t\t});\n\t\t\t//As you see, add in the map.\n\t\t\tmapView.addView(viewBubble, mvlp);\n\t\t}\n\t}", "public void add(food entry)\n\t{\n\t\titems.add(entry);\n\t\t//updates isChanged to show changes\n\t\tisChanged = true;\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tx=(int)(e.getX()*(1/widthAttitude));\n\t\ty=(int)(e.getY()*(1/heightAttitude));\n\t\t//\t\tSystem.out.println(\"(\"+x + \",\" + y +\")\"+\"point in pixel\");\n\t\tif(!mode.equals(\"load\")) {\n\t\t\tif(item.equals(\"P\")) {\n\t\t\t\tPoint3D p1=new Point3D(x,y,0);\n\t\t\t\tMap map=new Map();\n\t\t\t\t//\t\t\t\tSystem.out.println(p1.x()+\" its the x \"+p1.y()+\"its the y \"+p1.z()+\" its the z\");\n\t\t\t\tp1=map.Pixels2Polar(p1);\n\t\t\t\t//\t\t\t\tSystem.out.println(p1.x()+\" its the x \"+p1.y()+\"its the y \"+p1.z()+\" its the z\");\n\t\t\t\tgame.getGameArray().add(new Packman(x,y,0,1,1)); \n\t\t\t\tSystem.out.println(\"new packman\");\n\t\t\t\trepaint();\n\t\t\t}\n\t\t\tif(item.equals(\"F\")) {\n\t\t\t\tgame.getGameArray().add(new Fruit(x,y,0,1));\n\t\t\t\tSystem.out.println(\"new fruit\");\n\t\t\t\trepaint();\n\t\t\t}\n\t\t}\n\t}", "private void setUpMap() {\n if (points.size()>2) {\n drawCircle();\n }\n\n\n }", "public void addedToWorld(World w){\n PauseWorld world = (PauseWorld) w;\n world.addObject(nameLabel,this.getX(),this.getY()+itemSize/2+10);\n }", "public void addToVPs(int more) {\r\n\t\tint vps = more;\r\n\t\tif (goods.containsKey(Resource.VP)) {\r\n\t\t\tvps = goods.get(Resource.VP);\r\n\t\t\tvps += more;\r\n\t\t}\r\n\t\tgoods.put(Resource.VP, vps);\r\n\t}", "public void createPet(Pets pet) {\n\n try {\n\n Statement statement = conn.createStatement();\n String sqlStatement = \"INSERT INTO pets (\" +\n \"name, animal_type, animal_breed, date_of_birth, gender, weight, owner) \" +\n \"VALUES (\" +\n \"'\" + pet.getName() + \"',\" +\n \"'\" + pet.getAnimalType() + \"',\" +\n \"'\" + pet.getAnimalBreed() + \"',\" +\n \"'\" + pet.getDateOfBirth() + \"',\" +\n \"'\" + pet.getGender() + \"',\" +\n +pet.getWeight() + \",\" +\n \"'\" + pet.getOwner() + \"'\" +\n \")\";\n\n int rowsAffected = statement.executeUpdate(sqlStatement);\n\n if (rowsAffected != 0) {\n System.out.println(\"Pet added successfully!\");\n } else {\n System.out.println(\"Sorry.. Something went wrong! Try again.\");\n }\n\n } catch (SQLException exception) {\n System.out.println(\"Error creating a Pet : \" + exception);\n }\n }", "public void addItem(Product p, int qty){\n //store info as an InventoryItem and add to items array\n this.items.add(new InventoryItem(p, qty));\n }", "public static void main(String[] args) {\n\n\n\n addHeavenlyB(\"Mercury\",88 , \"planet\");\n addHeavenlyB(\"Venus\",225 , \"planet\");\n addHeavenlyB(\"Earth\",365 , \"planet\");\n addHeavenlyB(\"Mars\",687 , \"planet\");\n addHeavenlyB(\"Deimos\",1.3 , \"moon\");\n addHeavenlyB(\"Phobos\",0.3 , \"moon\");\n\n\n print(planets);\n// print(moons);\n// printSolarSys();\n\n System.out.println();\n\n solarSystem.get(\"Mercury\").addMoon(solarSystem.get(\"Deimos\"));\n printMoons(\"Mercury\");\n\n\n// HeavenlyBody temp = new HeavenlyBody(\"Mercury\", 88);\n// solarSystem.put(temp.getName(),temp);\n// planets.add(temp);\n//\n// temp = new HeavenlyBody(\"Venus\", 225);\n// solarSystem.put(temp.getName(),temp);\n// planets.add(temp);\n//\n// temp = new HeavenlyBody(\"Earth\", 365);\n// solarSystem.put(temp.getName(),temp);\n// planets.add(temp);\n//\n// HeavenlyBody tempMoon = new HeavenlyBody(\"Moon\", 27);\n// solarSystem.put(tempMoon.getName(),tempMoon);\n// temp.addMoon(tempMoon);\n//\n// temp = new HeavenlyBody(\"Mars\", 687);\n// solarSystem.put(temp.getName(), temp);\n// planets.add(temp);\n//\n// tempMoon = new HeavenlyBody(\"Deimos\", 1.3);\n// solarSystem.put(tempMoon.getName(), tempMoon);\n// temp.addMoon(tempMoon); // temp is still Mars\n//\n// tempMoon = new HeavenlyBody(\"Phobos\", 0.3);\n// solarSystem.put(tempMoon.getName(), tempMoon);\n// temp.addMoon(tempMoon); // temp is still Mars\n//\n// temp = new HeavenlyBody(\"Jupiter\", 4332);\n// solarSystem.put(temp.getName(), temp);\n// planets.add(temp);\n//\n// tempMoon = new HeavenlyBody(\"Io\", 1.8);\n// solarSystem.put(tempMoon.getName(), tempMoon);\n// temp.addMoon(tempMoon); // temp is still Jupiter\n//\n// tempMoon = new HeavenlyBody(\"Europa\", 3.5);\n// solarSystem.put(tempMoon.getName(), tempMoon);\n// temp.addMoon(tempMoon); // temp is still Jupiter\n//\n// tempMoon = new HeavenlyBody(\"Ganymede\", 7.1);\n// solarSystem.put(tempMoon.getName(), tempMoon);\n// temp.addMoon(tempMoon); // temp is still Jupiter\n//\n// tempMoon = new HeavenlyBody(\"Callisto\", 16.7);\n// solarSystem.put(tempMoon.getName(), tempMoon);\n// temp.addMoon(tempMoon); // temp is still Jupiter\n//\n// temp = new HeavenlyBody(\"Saturn\", 10759);\n// solarSystem.put(temp.getName(), temp);\n// planets.add(temp);\n//\n// temp = new HeavenlyBody(\"Uranus\", 30660);\n// solarSystem.put(temp.getName(), temp);\n// planets.add(temp);\n//\n// temp = new HeavenlyBody(\"Neptune\", 165);\n// solarSystem.put(temp.getName(), temp);\n// planets.add(temp);\n//\n// temp = new HeavenlyBody(\"Pluto\", 248);\n// solarSystem.put(temp.getName(), temp);\n// planets.add(temp);\n\n\n\n\n }", "public void addNewRecipe() {\r\n listOfRecipes.add(new Recipe().createNewRecipe());\r\n }", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public void setBasicNewGameWorld()\r\n\t{\r\n\t\tlistCharacter = new ArrayList<Character>();\r\n\t\tlistRelationship = new ArrayList<Relationship>();\r\n\t\tlistLocation = new ArrayList<Location>();\r\n\t\t\r\n\t\t//Location;\r\n\t\t\r\n\t\tLocation newLocationCity = new Location();\r\n\t\tnewLocationCity.setToGenericCity();\r\n\t\tLocation newLocationDungeon = new Location();\r\n\t\tnewLocationDungeon.setToGenericDungeon();\r\n\t\tLocation newLocationForest = new Location();\r\n\t\tnewLocationForest.setToGenericForest();\r\n\t\tLocation newLocationJail = new Location();\r\n\t\tnewLocationJail.setToGenericJail();\r\n\t\tLocation newLocationPalace = new Location();\r\n\t\tnewLocationPalace.setToGenericPalace();\r\n\t\t\r\n\t\tlistLocation.add(newLocationCity);\r\n\t\tlistLocation.add(newLocationDungeon);\r\n\t\tlistLocation.add(newLocationForest);\r\n\t\tlistLocation.add(newLocationJail);\r\n\t\tlistLocation.add(newLocationPalace);\r\n\t\t\r\n\t\t\r\n\t\t//Item\r\n\t\tItem newItem = new Item();\r\n\t\t\r\n\t\tString[] type =\t\tnew String[]\t{\"luxury\"};\r\n\t\tString[] function = new String[]\t{\"object\"};\t\r\n\t\tString[] property = new String[]\t{\"\"};\r\n\t\tnewItem.setNewItem(900101,\"diamond\", type, function, \"null\", property, 2, true);\r\n\t\tnewLocationPalace.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"weapon\"};\r\n\t\tfunction = new String[]\t{\"equipment\"};\t\r\n\t\tproperty = new String[]\t{\"weapon\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(500101,\"dagger\", type, function, \"null\", property, 1, false);\t\t\r\n\t\tnewLocationJail.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t\r\n\t\ttype =\t\tnew String[]\t{\"quest\"};\r\n\t\tfunction = new String[]\t{\"object\"};\t\r\n\t\tproperty = new String[]\t{\"\"};\r\n\t\tnewItem.setNewItem(900201,\"treasure_map\", type, function, \"null\", property, 2, true);\r\n\t\tnewLocationDungeon.addOrUpdateItem(newItem);\r\n\r\n\t\t\r\n\t\t////// Add very generic item (10+ items of same name)\r\n\t\t////// These item start ID at 100000\r\n\t\t\r\n\t\t//Add 1 berry\r\n\t\t//100000\r\n\t\tnewItem = new Item();\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"berry\"};\r\n\t\tnewItem.setNewItem(100101,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t/* REMOVE 19-2-2019 to increase performance\r\n\t\t\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100102,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100102,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100103,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t*/\r\n\r\n\t\t\r\n\t\t//Add 2 poison_plant\r\n\t\t//101000\r\n\t\tnewItem = new Item();\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"poison\"};\r\n\t\tnewItem.setNewItem(100201,\"poison_plant\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100202,\"poison_plant\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\r\n\t\t//player\r\n\t\tCharacter newChar = new Character(\"player\", 1, true,\"city\", 0, false);\r\n\t\tnewChar.setIsPlayer(true);\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t//UNIQUE NPC\r\n\t\tnewChar = new Character(\"mob_NPC_1\", 15, true,\"city\", 0, false);\r\n\t\tlistCharacter.add(newChar);\r\n\r\n\t\t\r\n\t\tnewChar = new Character(\"king\", 20, true,\"palace\", 3, true);\r\n\t\tnewChar.addOccupation(\"king\");\r\n\t\tnewChar.addOccupation(\"noble\");\r\n\t\tnewChar.addStatus(\"rich\");\r\n\t\t\r\n\t\tlistCharacter.add(newChar);\r\n\r\n\r\n\t\t//Mob character\r\n\t\tnewChar = new Character(\"soldier1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t// REMOVE to improve performance\r\n\t\t/*\r\n\t\tnewChar = new Character(\"soldier2\", 20, true,\"jail\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"soldier3\", 20, true,\"palace\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t//listLocation.add(newLocationCity);\r\n\t\t//listLocation.add(newLocationDungeon);\r\n\t\t//listLocation.add(newLocationForest);\r\n\t\t//listLocation.add(newLocationJail);\r\n\t\t//listLocation.add(newLocationPalace);\r\n\t\t\r\n\t\tnewChar = new Character(\"doctor1\", 20, true,\"city\", 3, true);\r\n\t\tnewChar.addSkill(\"heal\");\r\n\t\tnewChar.addOccupation(\"doctor\");\r\n\t\tlistCharacter.add(newChar);\t\r\n\t\tnewChar = new Character(\"blacksmith1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"blacksmith\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"thief1\", 20, true,\"jail\", 2, true);\r\n\t\tnewChar.addOccupation(\"thief\");\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"unlock\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(300101,\"lockpick\", type, function, \"thief1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t// Remove to improve performance\r\n\t\t/*\r\n\t\tnewChar = new Character(\"messenger1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"messenger\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t*/\r\n\t\t\r\n\t\tnewChar = new Character(\"miner1\", 20, true,\"dungeon\", 1, true);\r\n\t\tnewChar.addOccupation(\"miner\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\tnewChar = new Character(\"lumberjack1\", 20, true,\"forest\", 1, true);\r\n\t\tnewChar.addOccupation(\"lumberjack\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t/* REMOVE 19-2-2019 to increase performance\r\n\t\t\r\n\t\tnewChar = new Character(\"scout1\", 20, true,\"forest\", 2, true);\r\n\t\tnewChar.addOccupation(\"scout\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\tnewChar = new Character(\"farmer1\", 20, true,\"forest\", 1, true);\r\n\t\tnewChar.addOccupation(\"farmer\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"merchant1\", 20, true,\"city\", 3, true);\r\n\t\tnewChar.addOccupation(\"merchant\");\r\n\t\tnewChar.addStatus(\"rich\");\r\n\t\t\r\n\t\t// Merchant Item\r\n\t\t//NPC item start at 50000\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"poison\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200101,\"potion_poison\", type, function, \"merchant1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"healing\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200201,\"potion_heal\", type, function, \"merchant1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"cure_poison\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200301,\"antidote\", type, function, \"merchant1\", property, 1, false);\t\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t\r\n\t\t//add merchant to List\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Relation\r\n\t\tRelationship newRelation = new Relationship();\r\n\t\tnewRelation.setRelationship(\"merchant1\", \"soldier1\", \"friend\");\r\n\t\tlistRelationship.add(newRelation);\r\n\t\t\r\n\t\t//\r\n\t\r\n\t}", "private void addValueToStatMap(HashMap<String, ArrayList<Double>> map, String key, Double value) {\r\n if (!map.containsKey(key)) {\r\n map.put(key, new ArrayList<Double>());\r\n }\r\n map.get(key).add(value);\r\n }", "public void addAll(Equipment e){\r\n if(e.weapon !=null) add(e.weapon );\r\n if(e.helmet !=null) add(e.helmet );\r\n if(e.chestplate !=null) add(e.chestplate);\r\n if(e.leggings !=null) add(e.leggings );\r\n if(e.boots !=null) add(e.boots );\r\n if(e.amulet1 !=null) add(e.amulet1 );\r\n if(e.amulet2 !=null) add(e.amulet2 );\r\n }", "private PetsFound mapAdseDbPetsToPortal(String parentStyleORIN,\n String orinNumber, String entryType, String vendorColor,String vendorColorDesc, \n String imageState,\n String completionDate,String vendorStyle, PetsFound pet,String supplierId,String returnCarsFlag) {\n try{\n pet = new PetsFound();\n pet.setParentStyleOrin(parentStyleORIN); \n pet.setOrinNumber(orinNumber);\n pet.setEntryType(entryType);\n pet.setVendorColorCode(vendorColor);\n pet.setVendorColorDesc(vendorColorDesc); \n pet.setVendorStyle(vendorStyle);\n pet.setImageState(imageState); \n pet.setCompletionDate(completionDate); \n pet.setSupplierID(supplierId);\n if(returnCarsFlag.equalsIgnoreCase(\"true\"))\n {\n \tpet.setReturnCarsFlag(\"Yes\");\n }\n else\n {\n \tpet.setReturnCarsFlag(\"No\");\n }\n \n \n \n \n }catch(Exception e){\n \te.printStackTrace();\n }\n return pet; \n }", "@Test public void addPentagonalPyramid()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n PentagonalPyramid p = new PentagonalPyramid(\"new\", 10, 6);\n pList.addPentagonalPyramid(\"new\", 10, 6);\n PentagonalPyramid[] pA = pList.getList();\n Assert.assertEquals(\"addPentagonal Test\", p, pA[3]);\n }", "public void addPoolMap(PoolMap poolMap){\n\n\t\tpoolMaps.add(poolMap);\n\t}", "public boolean addWeet(Weet weet) {\n /**\n * Method for adding a new weet to the weets we already have saved in our store.\n */\n return array.addWeetToStore(weet);\n }" ]
[ "0.6854547", "0.60421586", "0.5932515", "0.59151375", "0.5746991", "0.5702226", "0.5679873", "0.56660837", "0.5557358", "0.554989", "0.55432075", "0.5536594", "0.55199325", "0.55008465", "0.54825705", "0.54342365", "0.54192454", "0.5389388", "0.5338427", "0.53305113", "0.53227484", "0.5303029", "0.5286578", "0.52678275", "0.5249049", "0.5226656", "0.52184325", "0.52143836", "0.51984686", "0.5192849", "0.5185081", "0.51620626", "0.5158425", "0.5149575", "0.5147765", "0.51471895", "0.513987", "0.5138878", "0.5132124", "0.51209795", "0.5120722", "0.5117042", "0.5114961", "0.5113651", "0.5112791", "0.5102091", "0.5099403", "0.50933325", "0.509205", "0.50801396", "0.5072449", "0.5072317", "0.5069006", "0.5067162", "0.50656986", "0.5065222", "0.50646377", "0.50481904", "0.50440145", "0.5031503", "0.50298077", "0.50278383", "0.50251657", "0.50186205", "0.50183594", "0.5016379", "0.50146276", "0.50054437", "0.4993804", "0.49911678", "0.49905694", "0.4984378", "0.49829507", "0.4980093", "0.49782574", "0.4976444", "0.49749413", "0.49680287", "0.49580276", "0.4956616", "0.4951052", "0.49506813", "0.49500895", "0.49460945", "0.4945244", "0.4939725", "0.49386805", "0.4936327", "0.49330944", "0.492842", "0.49283034", "0.49274394", "0.49269393", "0.49238563", "0.4923352", "0.49188167", "0.4917244", "0.49165344", "0.4915597", "0.49141046" ]
0.60918444
1
Method to feed all pets. For each VirtualPet in the map, run the feedPet method.
public void feedAll() { for (VirtualPet p : shelterPets.values()) { p.feedPet(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void waterAll() {\n\t\tfor (VirtualPet p : shelterPets.values()) {\n\t\t\tp.waterPet();\n\t\t}\n\t}", "private void getPets(){\r\n\t\tfor(Player p : players){\r\n\t\t\tArrayList<Pet> currentpets = new ArrayList<>();\r\n\r\n\t\t\tSystem.out.println(\"How many pets for \" + p.getName() + \": \");\r\n\t\t\tint petnum = getNumber(1,3);\r\n\t\t\tfor(int i = 0; i < petnum; i++){\r\n\t\t\t\tSystem.out.println(\"Pet options are:\");\r\n\t\t\t\tint c = 1; //Counter for which pet, relating to which option\r\n\t\t\t\tfor(Pet option : pets){\r\n\t\t\t\t\tSystem.out.println(c + \". \" + option.getClass().getSimpleName() + \".\");\r\n\t\t\t\t\tc++;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Please Choose Your Pet With A Number:\");\r\n\t\t\t\tint selected = getNumber(1, 6);\r\n\t\t\t\tPet selectedpet = pets.get(selected - 1);\r\n\t\t\t\tSystem.out.println(\"Please Enter A Name For Your Pet: \");\r\n\t\t\t\tString petname = sc.next();\r\n\t\t\t\tselectedpet.setPetname(petname);\r\n\t\t\t\tSystem.out.println(\"You now have a pet named \" + selectedpet.getPetname());\r\n\t\t\t\tcurrentpets.add(selectedpet);\r\n\t\t\t}\r\n\t\t\tp.setPets(currentpets);\r\n\t\t}\r\n\t}", "public void feedAnimals() {\n System.out.println(\"Feeding all the animals...\\n\");\n for (int i = 0; i < zoo.length; i++){\n zoo[i].eat();\n }\n System.out.println();\n }", "private void feed(Player p){\r\n\t\tSystem.out.println(\"What pet would you like to feed?\");\r\n\t\tArrayList<Food> foodlist = p.getFood();\r\n\r\n\t\tint c = 1;\r\n\t\tfor(Pet pet : p.getPets()){\r\n\t\t\tSystem.out.println(c + \". \" + pet.getPetname());\r\n\t\t\tc++;\r\n\t\t}\r\n\r\n\t\tint selectedpetindex = getNumber(1, p.getPets().size());\r\n\t\tPet selectedpet = p.getPets().get(selectedpetindex - 1);\r\n\t\tSystem.out.println(\"What food do you want to feed \" + selectedpet.getPetname() + \" with?\");\r\n\r\n\t\tc = 1;\r\n\t\tfor(Food f : foodlist){\r\n\t\t\tSystem.out.println(c + \". \" + f.getName());\r\n\t\t\tc++;\r\n\t\t}\r\n\r\n\t\tint foodindex = getNumber(1, foodlist.size());\r\n\t\tFood selectedfood = foodlist.get(foodindex);\r\n\r\n\t\tselectedpet.feed(selectedfood);\r\n\t\tfoodlist.remove(foodindex);\r\n\t\tp.setFood(foodlist);\r\n\r\n\t\tp.setActions(p.getActions() - 1);\r\n\t}", "public void placeBets(){\n System.out.println();\n System.out.println(\"Let's place your bet!\");\n System.out.println();\n for(Player player: players){\n player.placeBet(minBet, maxBet);\n }\n System.out.println();\n }", "public void cleanAll() {\n\t\tfor (VirtualPet p : shelterPets.values()) {\n\t\t\tp.cleanPet();\n\t\t}\n\t}", "public void setAllPokemon()\n {\n PokemonFactory pFactory = new PokemonFactory();\n this.allPokemon = pFactory.getRandomPokemon();\n\n }", "@Test\n\tpublic void testTheTickMethodForEachPet() {\n\t\tVirtualPetShelter testPetShelter = new VirtualPetShelter();\n\t\ttestPetShelter.addPet(\"Rusty\", new VirtualPet(\"Rusty\", \"He doesn't get hungry, he's Dead!\", 5, 30, 20));\n\t\ttestPetShelter.addPet(\"Grazer\", new VirtualPet(\"Grazer\", \"She cant leave.. she's dead too!\", 10, 20, 30));\n\t\ttestPetShelter.tick(); // I created a tick, eclipse erred and asked me to create tick in VPS\n\t\tAssert.assertEquals(32, testPetShelter.virtualPets.get(\"Rusty\").boredom);\n\t\tAssert.assertEquals(22, testPetShelter.virtualPets.get(\"Grazer\").boredom);\n\t}", "private void populatepets(){\r\n\t\tpets.add(new Cat(\"UnNamed\"));\r\n\t\tpets.add(new Cow(\"UnNamed\"));\r\n\t\tpets.add(new Dog(\"UnNamed\"));\r\n\t\tpets.add(new Rabbit(\"UnNamed\"));\r\n\t\tpets.add(new Rat(\"UnNamed\"));\r\n\t\tpets.add(new Velociraptor(\"UnNamed\"));\r\n\t}", "public void getAll() {\n\n PokeStubDTOWrapper wrappedPokemonStubs = restTemplate.getForObject(\"https://pokeapi.co/api/v2/pokemon?limit=1118\", PokeStubDTOWrapper.class);\n List<PokeStubDTO> pokemonStubList = wrappedPokemonStubs.getDTOs();\n\n for (PokeStubDTO pokeStub: pokemonStubList) {\n PokeDTO pokeDTO = restTemplate.getForObject(pokeStub.getUrl(), PokeDTO.class);\n\n Optional<Pokemon> pokemonInDB = pokemonRepository.findByName(pokeDTO.getName());\n\n if(pokemonInDB.isEmpty()){\n savePokemon(pokeDTO);\n System.out.println(\"saved: \" + pokeDTO.getName());\n\n } else {\n System.out.println(pokeDTO.getName()+ \" already exists in DB\");\n }\n }\n }", "@Test\n\tpublic void testVirtualPetShelterHasACollectionOfVirtualPets() {\n\t\tVirtualPetShelter testPetShelter = new VirtualPetShelter(); \n\n\t\tMap<String, VirtualPet> virtualPets = new HashMap<String, VirtualPet>(); // I want a map of VP's\n\t\t// Map<Key, Value (instances of virtualPet)> - the key will be the name of pet, the key is assigned to the pets instance\n\t\tString pet1 = \"Tui\"; //this is my first key called \"Tui\"\n\t\tVirtualPet tui = new VirtualPet(\"Tui\", \"Is a cute little calico\", 30, 30, 30);\n\t\tvirtualPets.put(pet1, tui);\n\n\t\tString pet2 = \"Ditch\";\n\t\tVirtualPet ditch = new VirtualPet(\"Ditch\", \"Is as cunning as a shithouse rat\", 10, 40, 15);\n\t\tvirtualPets.put(pet2, ditch);\n\n\t\tString pet3 = \"Blusey\";\n\t\tVirtualPet bluesy = new VirtualPet(\"Bluesy\", \"A black and tan Main coon who is a mushy cat who loves snuggles\",\n\t\t\t\t5, 5, 5);\n\t\tvirtualPets.put(pet3, bluesy);\n\n\t\tString pet4 = \"Jazzy\";\n\t\tVirtualPet jazzy = new VirtualPet(\"Jazzy\", \"Grey tiger who hunter who who be great in the barn\", 15, 20, 25);\n\t\tvirtualPets.put(pet4, jazzy);\n\n\t\tString pet5 = \"Nigel\";\n\t\tVirtualPet nigel = new VirtualPet(\"Nigel\", \"A big old ginger cat\", 10, 10, 50);\n\t\tvirtualPets.put(pet5, nigel);\n\n\t\t// Moved the Map/HashMap below to the VirtualPetShelter\n\t\t// Map<String, VirtualPet> virtualPets = new HashMap<String, VirtualPet>();\n\t\t// Then I created a method in VirtualPetShelter which returned the VirtualPets\n\t\t// \"Values\"\n\n\t\tCollection<VirtualPet> virtualPetCollection = testPetShelter.getVirtualPets(); //Initially got error, eclipse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// asked me to create collection in VPS\n\n\t\tAssert.assertNotNull(testPetShelter.virtualPets);//I got error, eclipse asked me to create a HashMap in VPS\n\t\tAssert.assertEquals(virtualPetCollection, testPetShelter.virtualPets.values()); //\".values() is a Maps \n\t\t //way to return a \"Collection\"\n\t\tAssert.assertEquals(\"Nigel\", virtualPets.get(pet5).name); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(30, virtualPets.get(pet1).hunger); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(40, virtualPets.get(pet2).boredom); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(5, virtualPets.get(pet3).thirst); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(\"Grey tiger who hunter who who be great in the barn\", virtualPets.get(pet4).description);\n\t}", "public void setPets(ArrayOfPetModel param) {\n localPetsTracker = true;\n\n this.localPets = param;\n }", "public Collection<VirtualPet> pets() {\n\t\treturn shelterPets.values();\n\t}", "public void addPets(PetPOJO pet) {\n pets.add(pet);\n }", "public static void main(String[] args) {\n Dog[] dogPark={new Dog(),new Dog(),new Dog(),new Dog(),new Dog()};\n //0 1 2 3 4\n\n for (int i = 0; i <= dogPark.length-1 ; i++) {\n dogPark[i].getDogInfo();\n\n }\n System.out.println(\"====================================\");\n dogPark[0].setDogInfo(\"Karaoglan\", \"German Shepperd\", \"Medium\", 6, \"Black\");\n dogPark[1].setDogInfo(\"Red\", \"Golden\", \"Medium\", 4, \"Yellow\");\n dogPark[2].setDogInfo(\"Akbas\", \"Anatolian Sheppard\", \"Large\", 2, \"White\");\n dogPark[3].setDogInfo(\"mike\",\"Poodle\",\"Big\",8,\"brown\");\n dogPark[4].setDogInfo(\"Grizzly\",\"BoxerPitt\",\"Large\",3,\"Mix\");\n\n for (int i = 0; i <= dogPark.length-1 ; i++) {\n dogPark[i].getDogInfo();\n }\n\n System.out.println(\"=============================================================\");\n for (Dog eachdog:dogPark) {\n eachdog.getDogInfo();\n }\n\n System.out.println(\"=============================================================\");\n String food=\"treat\";\n for (Dog eachdog:dogPark) {\n eachdog.eat(food);\n }\n\n System.out.println(\"=============================================================\");\n String drink=\"milk\";\n for (Dog eachdog:dogPark) {\n eachdog.drink(drink);\n }\n\n\n System.out.println(\"=============================================================\");\n //play\n for (Dog eachdog:dogPark) {\n eachdog.sleep();\n }\n\n System.out.println(\"=============================================================\");\n //sleep\n for (Dog eachdog:dogPark) {\n eachdog.sleep();\n }\n }", "private void obtainAllPetExercises(Pet pet) {\n trGetAllExercises.setUser(user);\n trGetAllExercises.setPet(pet);\n\n try {\n trGetAllExercises.execute();\n } catch (NotPetOwnerException e) {\n e.printStackTrace();\n }\n\n for (Exercise exercise : trGetAllExercises.getResult()) {\n pet.addExercise(exercise);\n }\n }", "public ArrayList<Pets> getPets(){\n DataBase db = new DataBase(context);\n initPets(db);\n return db.getPets();\n }", "private void run() {\n List<Planet> list = new ArrayList<>();\n \n fillLargeList(list);\n \n // Get an element\n getFromList(list);\n }", "public void updateFakeEntities() { \n for(ViewableEntity playerEntity : replicatedEntites.values()) {\n playerEntity.update();\n }\n }", "@Override\r\n\tpublic List<shopPet> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "private void populateEntitiesLists() {\n\t\tfor (StaticEntity entity : ((ClientTiledMap) map).staticEntities) {\n\t\t\tregisterStaticEntity(entity);\n\t\t}\n\t}", "public ArrayOfPetModel getPets() {\n return localPets;\n }", "public void runOneIteration() {\n\t\t// Update user latent vectors\n\t\tfor (int u = 0; u < userCount; u++) {\n\t\t\tupdate_user(u);\n\t\t}\n\n\t\t// Update item latent vectors\n\t\tfor (int i = 0; i < itemCount; i++) {\n\t\t\tupdate_item(i);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tBufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tPets pet1 = new Pets(null, null, 0, null, null, 0);\n\t\tPets pet2 = new Pets(null, null, 0, null, null, 0);\n\t\tPets pet3 = new Pets(null, null, 0, null, null, 0);\n\t\tPets pet4 = new Pets(null, null, 0, null, null, 0);\n\t\tPets pet5 = new Pets(null, null, 0, null, null, 0);\n\t\tPets pet6 = new Pets(null, null, 0, null, null, 0);\n\t\tPets pet7 = new Pets(null, null, 0, null, null, 0);\n\t\tPets pet8 = new Pets(null, null, 0, null, null, 0);\n\t\tPets pet9 = new Pets(null, null, 0, null, null, 0);\n\t\tPets pet10 = new Pets(null, null, 0, null, null, 0);\n\t\t\n\t\tPets[] allPets = {pet1,pet2,pet3,pet4,pet5,pet6,pet7,pet8,pet9,pet10};\n\t\tint i = 0;\n\t\tfor (Pets individualPets : allPets) {\n\t\t\ti++;\n\t\t\tSystem.out.println(\"Enter the data for the \" + i + \" pet\");\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Enter the name\");\n\t\t\t\tindividualPets.name = bufferedReader.readLine();\n\t\t\t\tSystem.out.println(\"Enter the type\");\n\t\t\t\tindividualPets.type = bufferedReader.readLine();\n\t\t\t\tSystem.out.println(\"Enter the age\");\n\t\t\t\tString age = bufferedReader.readLine();\n\t\t\t\tindividualPets.age = Integer.parseInt(age);\n\t\t\t\tSystem.out.println(\"Enter the gender\");\n\t\t\t\tindividualPets.gender = bufferedReader.readLine();\n\t\t\t\tSystem.out.println(\"Enter the color\");\n\t\t\t\tindividualPets.color = bufferedReader.readLine();\n\t\t\t\tSystem.out.println(\"Enter the size\");\n\t\t\t\tString size = bufferedReader.readLine();\n\t\t\t\tindividualPets.size = Integer.parseInt(size);\n\t\t\t} \n\t\t\t\tcatch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (Pets individualPets : allPets) {\n\t\t\tSystem.out.println(\"-------------------\");\n\t\t\tSystem.out.println(\"name: \" + individualPets.name);\n\t\t\tSystem.out.println(\"type:\" + individualPets.type);\n\t\t\tSystem.out.println(\"age:\" + individualPets.age);\n\t\t\tSystem.out.println(\"gender:\" + individualPets.gender);\n\t\t\tSystem.out.println(\"color:\" + individualPets.color);\n\t\t\tSystem.out.println(\"size:\" + individualPets.size);\n\t\t}\n\t}", "public List<Vet> getAllVets() {\n\t\tentityManager = JPAUtils.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\tvets = entityManager.createQuery(\"from Vet\", Vet.class).getResultList();\n\t\tentityManager.getTransaction().commit();\n\t\tentityManager.close();\n\t\treturn vets;\n\t}", "static void buildCatsList(int zipCode, ArrayList<PetModel> pets) {\n\n String zip = \"\" + zipCode;\n String key = System.getenv(\"PETFINDER_KEY\");\n String urlString = \"http://api.petfinder.com/pet.find?key=\" + key + \"&animal=cat&location=\" + zip\n + \"&format=json\";\n\n System.out.println(\"URL to 'get' from: \" + urlString);\n\n URL url = null;\n try {\n url = new URL(urlString);\n } catch (MalformedURLException e) {\n System.out.println(\"URL malformed\");\n }\n HttpURLConnection connection = null;\n try {\n connection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"oh no\");\n }\n // because we are retrieving...\n try {\n connection.setRequestMethod(\"GET\");\n } catch (ProtocolException e) {\n System.out.println(\"cannot set request method\");\n }\n try {\n connection.connect();\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"ahh\");\n }\n try {\n int responseCode = connection.getResponseCode();\n } catch (IOException e) {\n System.out.println(\"response code failed\");\n }\n\n\n Scanner sc = null;\n try {\n sc = new Scanner(url.openStream());\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"crap\");\n }\n String inline = \"\";\n while (sc.hasNext()) {\n inline += sc.nextLine();\n }\n sc.close();\n\n JSONObject json = new JSONObject(inline);\n json = (JSONObject) json.get(\"petfinder\");\n json = (JSONObject) json.get(\"pets\");\n\n JSONArray json_pets = (JSONArray) json.get(\"pet\");\n for (int i = 0; i < json_pets.length(); i++) {\n PetModel pet = new PetModel();\n JSONObject json_pet = (JSONObject) json_pets.get(i);\n JSONObject json_pet_name = (JSONObject) json_pet.get(\"name\");\n JSONObject json_pet_gender = (JSONObject) json_pet.get(\"sex\");\n JSONObject json_pet_description = (JSONObject) json_pet.get(\"description\");\n JSONObject json_pet_img = (JSONObject) json_pet.get(\"media\");\n\n if (json_pet_img.length() != 0) {\n json_pet_img = (JSONObject) json_pet_img.get(\"photos\");\n JSONArray json_pet_img_arr = (JSONArray) json_pet_img.get(\"photo\");\n\n if (json_pet_img_arr.length() != 0) {\n for (int k = 0; k < json_pet_img_arr.length(); k++) {\n json_pet_img = (JSONObject) json_pet_img_arr.get(k);\n //search for one with better quality...\n //JSONObject json_img_size = (JSONObject) json_pet_img.get(\"@size\");\n if (Objects.equals(json_pet_img.get(\"@size\").toString(), \"x\")) {\n break;\n }\n }\n }\n\n pet.img = json_pet_img.get(\"$t\").toString();\n }\n\n //System.out.println(json_pet_name.get(\"$t\"));\n if (json_pet_name.length() != 0) {\n pet.name = json_pet_name.get(\"$t\").toString();\n }\n if (json_pet_description.length() != 0) {\n pet.description = json_pet_description.get(\"$t\").toString();\n }\n if (json_pet_gender.length() != 0) {\n pet.gender = json_pet_gender.get(\"$t\").toString();\n }\n\n //System.out.println(\"name: \" + pet.name);\n //System.out.println(\"gender: \" + pet.gender);\n //System.out.println(\"description: \" + pet.description);\n\n pets.add(pet);\n }\n }", "@Override\n public void evaluateTariffs (List<Tariff> tariffs)\n {\n for (EvCustomer customer : evCustomers) {\n customer.evaluateTariffs(tariffs);\n }\n }", "public static void main(String[] args) {\n\n PlantFactory pf = new PlantFactory();\n for(int number = 0; number < 5; number++) {\n Corn newCorn = pf.getCorn();\n if(newCorn == null) break;\n\n PlantField.cornList.add(newCorn);\n }\n for(int number = 0;number < 10; number++) {\n Rice newRice = pf.getRice();\n if(newRice == null) break;\n\n PlantField.riceList.add(newRice);\n }\n for(int number = 0;number < 2;number++) {\n Pasture newPasture = pf.getPasture();\n if(newPasture == null) break;\n\n PlantField.pastureList.add(newPasture);\n }\n\n // Now we got different plants!\n show();\n\n // Let's fertilize those plants!\n for (Corn item : PlantField.cornList) {\n item.fertilized();\n }\n for (Pasture item : PlantField.pastureList) {\n item.fertilized();\n }\n\n // Let's try to fertilize them again.\n for (Corn item : PlantField.cornList) {\n item.fertilized();\n }\n for (Rice item : PlantField.riceList) {\n item.fertilized();\n }\n for (Pasture item : PlantField.pastureList) {\n item.fertilized();\n }\n System.out.println(\"\\nLet's harvest them!\");\n for(Corn item : PlantField.cornList){\n item.harvested();\n }\n for(Rice item : PlantField.riceList){\n item.harvested();\n }\n for(Pasture item : PlantField.pastureList){\n item.harvested();\n }\n\n show();\n\n // Maybe we need to buy some seeds.\n\n // Oops, those corns and rices need to be pollinated.\n for(Corn item : PlantField.cornList){ // corn and rise need to be poll\n PollinationStrategy ps = new SpontaneousPollination();\n ps.pollinate(item);\n }\n\n // We just pollinated those corns. Let's harvest them!\n for(Corn item : PlantField.cornList){\n item.harvested();\n }\n\n show();\n// ------\n // Take a look at those dead plant.\n for(Corn item : PlantField.cornList){\n item.harvested();\n item.fertilized();\n PollinationStrategy ps = new ArtificialPollination();\n ps.pollinate(item);\n }\n\n // plantTest completed successfully\n }", "protected void updateParticles() {\n\n\t\tfor (int i = 0; i < particles.size(); i++) {\n\t\t\tVParticle p = particles.get(i);\n\t\t\tif (p.neighbors == null) {\n\t\t\t\tp.neighbors = particles;\n\t\t\t}\n\t\t\tfor (BehaviorInterface b : behaviors) {\n\t\t\t\tb.apply(p);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < particles.size(); i++) {\n\t\t\tVParticle p = particles.get(i);\n\t\t\tp.scaleVelocity(friction);\n\t\t\tp.update();\n\t\t}\n\t}", "public void printDogs(){\n System.out.println(\"Here are the dogs in the shelter:\");\n for(Dog d : dogs){\n d.printInfo();\n }\n }", "public void renderTankPoints(List<GameCharacter> entities, GraphicsContext gc){\n for(BaseGameEntity e1: entities) renderTankPoint(e1,gc);\n }", "public void iterate()\n\t{\n\t\tfor (int p = 0; p < parasites.length; p++)\n\t\t\tpFitnesses[p][1] = 0;\n\t\t\n\t\ttry\n\t\t{\t// calculate fitnesses against other population\n\t\t\texecutor.invokeAll(tasks);\n\t\t\t// calculate fitness against hall of fame individuals\n\t\t\texecutor.invokeAll(hofTasks);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Something bad happened...\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\n\t\tArrays.sort(hFitnesses,new ArrayComparator(1,false));\n\t\tArrays.sort(pFitnesses,new ArrayComparator(1,false));\n\t\t\n\t\tint bestIndex = (int)pFitnesses[0][0];\n\t\tint size = parHOF.length;\n\t\t\n\t\tparHOF[generations%size]=new NeuralPlayer(-1,\"HOF P\",(BasicNetwork)parasites[(int)bestIndex].net.clone());\n\t\tbestIndex = (int)hFitnesses[0][0];\n\t\thostHOF[generations%size]=new NeuralPlayer(1,\"HOF H\",(BasicNetwork)hosts[(int)bestIndex].net.clone());\n\t\t\n\t\tint matePopIndex = (int)(matingPer*popSize)+1;\n\t\tRandom indexG = new Random();\n\t\t// allow top percentage to breed and replace bottom 2*percentage\n\t\t// leave everyone else alone\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = hosts[(int)hFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = hosts[(int)hFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = hosts[(int)hFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = parasites[(int)pFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = parasites[(int)pFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = parasites[(int)pFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t// mutate everyone except top percentage (matingPer)\n\t\tfor (int i = 0; i < popSize*3*matingPer; i++)\n\t\t{\n\t\t\tmutate(parasites[(int)pFitnesses[popSize - 1 - i][0]]);\n\t\t\tmutate(hosts[(int)hFitnesses[popSize - 1 - i][0]]);\n\t\t}\n\t\t\n\t\tgenerations+=1;\n\t\t// every now and then reseed the population with a good individual\n\t\tif (generations%50 == 0)\n\t\t{\n\t\t\thosts[indexG.nextInt(hosts.length)].net = (BasicNetwork)allTimeBestHost.net.clone();\n\t\t\tparasites[indexG.nextInt(parasites.length)].net = (BasicNetwork)allTimeBestPara.net.clone();\n\t\t}\n\t\t\t\n\t}", "public List<PetDTO> getAllPetsLivingDTO() {\n EntityManager em = emf.createEntityManager();\n Query query = em.createQuery(\"SELECT NEW dto.PetDTO(p) FROM Pet AS p WHERE p.death = null\");\n return query.getResultList();\n }", "public void run() {\n\t\tfor(int Index=0;Index<pac.getPath().size();Index++) { //run on the path arraylist of every pacman\n\t\t\tfullGamePath(pac, pac.getPath().get(Index).getFruit(),Index); //call the function\n\t\t\tpac.getPath().get(Index).setTime();\n\t\t}\n\t\t\n\t}", "private void apply() {\n\t\tArrayList<NPC> templates = new ArrayList<NPC>();\n\t\tfor (int i = 0; i < npcList.size(); i++) {\n\t\t\tDocument doc = ParserHelper.LoadXML(\"assets/data/npcs/\" + npcList.get(i) + \".xml\");\n\t\t\tElement root = doc.getDocumentElement();\n\t\t\tElement n = (Element) doc.getFirstChild();\n\t\t\tNPC template = new NPC(n, new Vec2f(0, 0), npcList.get(i));\n\t\t\ttemplates.add(template);\n\t\t}\n\n\t\tfor (int i = 0; i < blockGrid.length; i++) {\n\t\t\tfor (int j = 0; j < blockGrid[i].length; j++) {\n\t\t\t\tif (blockGrid[i][j] < 0 && blockGrid[i][j] > -100) {\n\t\t\t\t\tkeyBlocks.get((blockGrid[i][j] * -1) - 1).apply(i, j, zoneGrid, zone, widgetLoader, templates);\n\t\t\t\t}\n\t\t\t\tif (blockGrid[i][j] > 0 && blockGrid[i][j] < 100) {\n\t\t\t\t\tblockList.get(blockGrid[i][j] - 1).apply(i, j, zoneGrid, zone, widgetLoader, templates);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void iterateEnemyShots() {\n\t\tfor (Shot s : enemyShotList) {\n\t\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\t\tfor(Invader a : row) {\n\t\t\t\t\ta.shouldAttack(s);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void petSpeak(ArrayList<Pet> petList) {\n System.out.println(\"Pets say: \");\n for (Pet each : petList) {\n System.out.println(each.getName() + \" says \" + each.speak());\n }\n System.out.println();\n }", "public void startPVs() {\n //the pv should be started at the last minute\n for(String pvPropId : pvMap.keySet()){\n IPV pv = pvMap.get(pvPropId);\n try {\n pv.start();\n } catch (Exception e) {\n OPIBuilderPlugin.getLogger().log(Level.WARNING,\n \"Unable to connect to PV:\" + pv.getName(), e); //$NON-NLS-1$\n }\n }\n }", "public static void main(String[] args) {\n\n\t\tRoboticCat kitty = new RoboticCat(\"Fluffy\", \"very furry cat\");\n\t\tSystem.out.println(kitty);\n\n\t\tRoboticCat kitty2 = new RoboticCat(\"duffy\", \"cat\");\n\t\tSystem.out.println(kitty2);\n\n\t\tVirtualPetShelter myShelter = new VirtualPetShelter();\n\n\t\tmyShelter.addPet(kitty);\n\t\tmyShelter.addPet(kitty2);\n\n\t\tSystem.out.println(\"Inital status\");\n\n\t\tfor (VirtualPet shelterCat : myShelter.getAllPets()) {\n\t\t\tdisplayRoboticCatStatus((RoboticCat) shelterCat);\n\t\t}\n\n\t\tSystem.out.println();\n\n\t\tfor (int i = 1; i < 6; i++) {\n\t\t\tmyShelter.tick();\n\t\t\tSystem.out.println(\"LitterBoxWasteLevel = : \" + myShelter.getLitterBoxWasteLevel());\n\t\t}\n\n\t\tSystem.out.println(\"After 5 ticks\");\n\t\tfor (VirtualPet shelterCat : myShelter.getAllPets()) {\n\t\t\tdisplayRoboticCatStatus((RoboticCat) shelterCat);\n\t\t}\n\t\tSystem.out.println();\n\n\t\tfor (int i = 1; i < 6; i++) {\n\t\t\tmyShelter.tick();\n\t\t\tSystem.out.println(\"LitterBoxWasteLevel = : \" + myShelter.getLitterBoxWasteLevel());\n\t\t}\n\n\t\tSystem.out.println(\"After 10 ticks\");\n\t\tfor (VirtualPet shelterCat : myShelter.getAllPets()) {\n\t\t\tdisplayRoboticCatStatus((RoboticCat) shelterCat);\n\t\t}\n\t\tSystem.out.println();\n\n\t\tfor (int i = 1; i < 6; i++) {\n\t\t\tmyShelter.tick();\n\t\t\tSystem.out.println(\"LitterBoxWasteLevel = : \" + myShelter.getLitterBoxWasteLevel());\n\t\t}\n\n\t\tSystem.out.println(\"After 15 ticks\");\n\t\tfor (VirtualPet shelterCat : myShelter.getAllPets()) {\n\t\t\tdisplayRoboticCatStatus((RoboticCat) shelterCat);\n\t\t}\n\t\tSystem.out.println();\n\n\t}", "private void populatePlantList(){\n\n for (Document doc : getPlantList()) {\n String picture = doc.getString(\"picture_url\");\n String name = doc.getString(\"plant_name\");\n String description = doc.getString(\"description\");\n ArrayList sunlightArray = doc.get(\"sunlight\", ArrayList.class);\n String min_sun = sunlightArray.get(0).toString();\n String max_sun = sunlightArray.get(1).toString();\n ArrayList temperatureArray = doc.get(\"temperature\", ArrayList.class);\n String min_temp = temperatureArray.get(0).toString();\n String max_temp = temperatureArray.get(1).toString();\n ArrayList humidityArray = doc.get(\"humidity\", ArrayList.class);\n String min_humidity = humidityArray.get(0).toString();\n String max_humidity = humidityArray.get(1).toString();\n\n listOfPlants.add(new RecyclerViewPlantItem(picture, name, description, min_sun, max_sun, min_temp, max_temp, min_humidity, max_humidity));\n }\n }", "private void populateMoveEffects(final Pokemon poke) {\n ArrayList<Move> moves = poke.getMoves();\n\n for (final Move move : moves) {\n String name = move.getMove().getName();\n Call<MoveDetail> call = pokemonAPIService.getMoveByNameOrNumber(name, \"move\");\n call.enqueue(new Callback<MoveDetail>() {\n @Override\n public void onResponse(Call<MoveDetail> call, Response<MoveDetail> response) {\n if (!response.isSuccessful()) {\n Log.d(TAG, \"Response Code: \" + response.code());\n return;\n }\n\n MoveDetail moveDetail = response.body();\n ArrayList<EffectEntry> effects = moveDetail.getEffectEntries();\n for (EffectEntry entry : effects) {\n move.getMove().setEffect(entry.getEffect());\n move.getMove().setShortEffect(entry.getShort_effect());\n }\n\n // notifies recycler view adapter that data has changed to avoid null effect values in detail view\n adapter.newList((ArrayList<Pokemon>) team);\n }\n\n @Override\n public void onFailure(Call<MoveDetail> call, Throwable t) {\n Log.d(TAG, \"Oh no!!! Moves call didn't work.\" + t.getMessage());\n }\n });\n }\n }", "public List<Pet> listPets(Integer limit) throws RestClientException {\n return listPetsWithHttpInfo(limit).getBody();\n }", "public static void hunt(ArrayList<Player> playerList){\n Random r = new Random();\n for (int i = 0; i < playerList.size();i++){\n int eggNum = r.nextInt(11);\n for(int e = 0; e < eggNum; e++){\n Egg egg = new Egg();\n playerList.get(i).foundEgg(egg);\n }\n }\n }", "public void scatterSpawnVm(final Collection<FarmProxy> farmProxies, final String vmSpecies, final int vmsPerFarm, final Handler<Set<ResultHolder<VmProxy>>> resultHandler) {\n final Set<ResultHolder<VmProxy>> resultHolders = new HashSet<ResultHolder<VmProxy>>();\n for (final FarmProxy farmProxy : farmProxies) {\n for (int i = 0; i < vmsPerFarm; i++) {\n Handler<VmProxy> spawnResultHandler = new Handler<VmProxy>() {\n public void handle(VmProxy vmProxy) {\n resultHolders.add(new ResultHolder<VmProxy>(vmProxy));\n if (resultHolders.size() == vmsPerFarm * farmProxies.size()) {\n resultHandler.handle(resultHolders);\n }\n }\n };\n Handler<LopError> spawnErrorHandler = new Handler<LopError>() {\n public void handle(LopError lopError) {\n resultHolders.add(new ResultHolder<VmProxy>(lopError));\n if (resultHolders.size() == vmsPerFarm * farmProxies.size()) {\n resultHandler.handle(resultHolders);\n }\n }\n };\n farmProxy.spawnVm(vmSpecies, spawnResultHandler, spawnErrorHandler);\n }\n }\n }", "public boolean feedPet(String food) {\r\n switch (food) {\r\n case (\"apple\"): {\r\n if ((this.player.getMoney() - apple.getCost()) >= 0) {\r\n player.feed(apple);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n case (\"honey\"): {\r\n if ((this.player.getMoney() - honey.getCost()) >= 0) {\r\n player.feed(honey);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n case (\"spinach\"): {\r\n if ((this.player.getMoney() - spinach.getCost()) >= 0) {\r\n player.feed(spinach);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n case (\"steak\"): {\r\n if ((this.player.getMoney() - steak.getCost()) >= 0) {\r\n player.feed(steak);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public void runOneIteration() {\n // Update user latent vectors\n\n //IntStream.range(0,userCount).peek(i->update_user(i)).forEach(j->{});\n\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n\n // Update item latent vectors\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n }", "private void startRunnable(int nUserPets, ExecutorService executorService) {\n for (int actual = 0; actual < nUserPets; ++actual) {\n executorService.execute(new GetPetImageRunnable(actual, user.getUsername(),\n user.getPets().get(actual).getName()));\n }\n }", "public void map() {\n\t\tfor(GameObject object : gameObject)\n\t\t\tSystem.out.println(object);\n\t}", "@Override\r\n\tpublic List<shopPet> pager(Map<String, Integer> map) {\n\t\treturn dao.pager(map);\r\n\t}", "public void walkAllDogs() {\n\t\thappiness += 10;\n\t\thealth += 8;\n\t\tplay += 5;\n\t}", "public void update() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < columns; j++) {\n Point point = getPointAtLocation(i, j);\n WorldItem item = point.getContainedItem();\n calculatePointTemp(point);\n point.update();\n if (item instanceof FlammableItem) {\n updateIgnition(point);\n } else if (item instanceof SimulatedSensor) {\n updateAlarm(point);\n }\n }\n }\n }", "public void feed(int nutrients) {\r\n\t\treturn;\r\n\t}", "private void modifyIndividuals(){\n for(AbstractBehaviour behaviour: entityBehaviours){\n JSONObject jsonPop = null;\n GeneticInterface gi = interfaceMap.get(behaviour);\n try {\n jsonPop = gi.receiveNewPopulation();\n } catch (IOException e) {\n e.printStackTrace();\n }\n for(String key: jsonPop.keySet()){\n JSONArray funArray = jsonPop.getJSONObject(key).getJSONArray(\"functions\");\n List<Function> functions = new LinkedList<>();\n for(int a = 0; a <funArray.length(); a++){\n String tree = funArray.getString(a);\n Function functionTree = Node.treeFromString(tree, behaviour.getNumberOfInputs());\n functions.add(functionTree);\n }\n behaviour.setEntityByName(key, functions);\n }\n behaviour.resetEntities();\n }\n }", "public void paintPlanets(Graphics g)\n {\n for(Planet p: planets)\n {\n if(inBounds(p))\n {\n paintPlanet(g, p);\n }\n }\n }", "public void iterate() {\n\n\t\tArrayList<int[]> pts = new ArrayList<int[]>();\n\t\tfor (int i = 0; i < POINTS_PER_ITER; i++) {\n\t\t\tint x = Window.mathRandom.nextInt(width);\n\t\t\tint y = Window.mathRandom.nextInt(width);\n\t\t\tpts.add(new int[] { x, y });\n\t\t}\n\n\t\tint[] bestPoint = new int[] {};\n\t\tdouble maxDist = 0;\n\t\tfor (int[] point : pts) {\n\t\t\tdouble dist = getDistFromOthers(point);\n\t\t\tif (dist > maxDist) {\n\t\t\t\tmaxDist = dist;\n\t\t\t\tbestPoint = point;\n\t\t\t}\n\t\t}\n\t\tif (check(bestPoint)) {\n\t\t\tpoints.add(bestPoint);\n\t\t} else {\n\t\t\tremainingPoints += 1;\n\t\t}\n\t}", "void eachVirtualShapeDo (FunctionalParameter doThis){\r\n\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext())\r\n doThis.execute(iter.next());\r\n\r\n // more here on\r\n }\r\n\r\n\r\n }", "@Override\r\n\tprotected void render(Renderer renderer) {\n\t\trenderer.disableLighting();\r\n\t\trenderer.render(sun, camera);\r\n\t\t\r\n\t\t// Enable lighting and set the sun as the light source so\r\n\t\t// that the planets are lit by subsequent render calls\r\n\t\trenderer.enableLighting();\r\n\t\trenderer.setLightSource(sun);\r\n\t\t\r\n\t\tfor (Entity planet : planets) {\r\n\t\t\trenderer.render(planet, camera);\r\n\t\t}\r\n\t\t\r\n\t}", "public void pourDrinks(ArrayList<String> drinks,ArrayList<Integer> quantities)\n {\n\n for(int i = 0; i < quantities.size(); i++){\n DrinkAndQuantity drink = new DrinkAndQuantity();\n Drink beverage = df.makeDrink(drinks.get(i));\n\n //after drink is made, update the inventory\n updateInventory(beverage, quantities.get(i));\n\n //update DrinkAndBeverage object\n drink.setDrink(beverage); \n drink.setQuantity(quantities.get(i));\n drinksAndQuantities.add(drink);\n }\n }", "@Override\n public void update() {\n for (Integer i : arrAttack) {\n //System.out.println(scene.entityManager.getEntityByID(i).getName());\n\n //if the weapon has not a -1\n if (scene.entityManager.getEntityComponentInstance(i, Tool.class).currentActive != - 1) {\n\n ArrayList<AttackCollider> arrColliders = scene.entityManager.getEntityComponentInstance(i, attackComponent.getClass()).arrColliders;\n\n //Check if it collides with a collidable entity\n for (Integer j : arrCollidable) {\n //if they are not the same and i is not a weapon of j, and if j is alive\n if (!Objects.equals(i, j) && !isWeaponOf(i, j) && scene.entityManager.getEntityComponentInstance(j, Playable.class).isAlive) {\n\n //for each collider that collides with the entity\n for (AttackCollider k : checkAttack(i, j)) {\n //Do something to the collidable entity\n executeAttack(i, j);\n }\n }\n }\n }\n }\n initializeEntities();\n }", "public void buildPathes() {\n\n for (Fruit fruit :game.getFruits()) {\n\n GraphNode.resetCounterId();\n changePlayerPixels();\n addBlocksVertices();\n Point3D fruitPixels = new Point3D(fruit.getPixels()[0],fruit.getPixels()[1]);\n GraphNode fruitNode = new GraphNode(fruitPixels);\n vertices.add(fruitNode);\n Target target = new Target(fruitPixels, fruit);\n\n //find the neigbours\n BFS();\n\n // build the grpah\n buildGraph(target);\n }\n }", "public void runAll() {\n GameObjectManager.instance.runAll();\n }", "void fightAll(List<Creature> creatures) {\n List<FightPair> fightPairs = generatePairsForFight(creatures);\n\n for (FightPair fightPair : fightPairs) {\n // TODO defense copying or cloning?\n\n //TODO returns fight result\n fight(fightPair.getCreature1(), fightPair.getCreature2());\n }\n }", "@Override\n public void update() {\n \tif(++this.timeoutCounter < 5) { return; }\n \t\n \tList<EntityDog> dogList = this.world.getEntitiesWithinAABB(EntityDog.class, new AxisAlignedBB(this.pos.getX(), this.pos.getY() + 0.5D, this.pos.getZ(), this.pos.getX() + 1.0D, this.pos.getY() + 0.5D + 0.05000000074505806D, this.pos.getZ() + 1.0D).grow(5));\n\n \tfor(EntityDog dog : dogList) {\n \t\tdog.coords.setBowlPos(this.pos);\n \t\n \t\tint slotIndex = DogUtil.getFirstSlotWithFood(dog, this.inventory);\n \tif(dog.getDogHunger() < 60 && slotIndex >= 0)\n \t\tDogUtil.feedDog(dog, this.inventory, slotIndex);\n }\n \t\n \tthis.timeoutCounter = 0;\n }", "@Override\n public void notifyMapObservers() {\n for(MapObserver mapObserver : mapObservers){\n // needs all the renderInformation to calculate fogOfWar\n System.out.println(\"player map: \" +playerMap);\n mapObserver.update(this.playerNumber, playerMap.returnRenderInformation(), entities.returnUnitRenderInformation(), entities.returnStructureRenderInformation());\n entities.setMapObserver(mapObserver);\n }\n }", "public void update() {\r\n\r\n\t\tfor(int p=0;p<200;p++) {\r\n\t\t\tfor(int k=0;k<200;k++) {\r\n\r\n\t\t\t\tif(tileMap[p][k].getBuilding()!=null) {\r\n\t\t\t\t\tBuilding m=tileMap[p][k].getBuilding();\r\n\t\t\t\t\t//update the buildings\r\n\t\t\t\t\ttileMap[p][k].getBuilding().update();\r\n\r\n\t\t\t\t\t//Check if battery is giving off power\r\n\t\t\t\t\tif( (m instanceof LowTierBattery) || (m instanceof LargeBattery) || (m instanceof IndustrialGradeBattery) ) {\r\n\r\n\t\t\t\t\t\t//If it's a Battery\r\n\t\t\t\t\t\tLowTierBattery f =(LowTierBattery) tileMap[p][k].getBuilding();\t\r\n\r\n\t\t\t\t\t\t//Check if its getting power and charging\r\n\t\t\t\t\t\tif(checkPowerLine(p,k,3)) {\r\n\t\t\t\t\t\t\tpowerSwitcher(p,k,2,true); //If it is then give off power\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tpowerSwitcher(p,k,2,f.getCapacity()>0); ///if it isnt then only give power if there is capacity\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//If a building is generating power add power to tiles;\r\n\t\t\t\t\t}else if( (m instanceof SteamEngine) || (m instanceof HandCrankGenerator) || (m instanceof SteamTurbine) || (m instanceof WindTurbine) ) {\r\n\r\n\t\t\t\t\t\tpowerSwitcher(p,k,3,((PoweredBuilding) m).getPower()); //Adds power or remove power based on the status of the generators\r\n\r\n\t\t\t\t\t\t//Powerline only get power from other powerline or buildings\r\n\t\t\t\t\t}else if(m instanceof PowerLine) {\r\n\r\n\t\t\t\t\t\tpowerSwitcher(p,k,5,checkPowerLine(p,k,5)); //Checks if the powerline is powered by other buildings then give it to powerSwitch method\r\n\r\n\t\t\t\t\t}else if(m instanceof LargePowerLine) {\r\n\t\t\t\t\t\tpowerSwitcher(p,k,10,checkPowerLine(p,k,10)); //Checks if the powerline is powered by other buildings then give it to powerSwitch method\r\n\r\n\t\t\t\t\t\t//If its just a powered building enable it if the tile under it is powered;\r\n\t\t\t\t\t}else if((m instanceof PoweredBuilding)) {\r\n\t\t\t\t\t\t((PoweredBuilding) tileMap[p][k].getBuilding()).setPower(tileMap[p][k].getPowered());\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t//Pipe movement\r\n\t\t\t\t\tif(m instanceof Pipe ) {\r\n\t\t\t\t\t\tpipeCheck(p,k,m);\r\n\t\t\t\t\t}else if(m.getOutputInventorySize()>0) {\r\n\t\t\t\t\t\tbuildingPipeCheck(p,k,m);\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void stepPopulation(int day){\r\n\t\tthis.resetComps();\r\n\t\tthis.resetPool();\r\n\t\tfor(int i = 0; i < this.getnVillages(); i++){\r\n\t\t\tVillage curr = this.vVillages[i];\r\n\t\t\tcurr.stepVillage(day);\r\n\t\t\tthis.incrementComps(curr.getComps());\r\n\t\t\tthis.updatePool(curr.getMarketPool());\r\n\t\t}\t\t\r\n\t}", "public static void main(String[] args) {\n Dog testDog = new Dog(\"Molly\", \"123 Main St.\");\n int exampleWalks[] = { 1, 1, 2, 1, 1, 0, 0};\n testDog.setWalksPerDay(exampleWalks);\n\n Dog testDog2 = new Dog(\"Bob\", \"456 Hennepin Ave.\");\n int exampleWalks2[] = {0, 1, 1, 1, 0, 1, 1};\n testDog2.setWalksPerDay(exampleWalks2);\n \n \n //TODO put all Dogs in ArrayList\n\n for (int day = 0 ; day < 7 ; day++) {\n\n //TODO instead of working with each Dog individually, get dog information from your list of Dog objects.\n //So you'll need another loop here, to loop over the Dogs list\n System.out.println(testDog.getName());\n //String nameOfDay = dayLookup.get(day); ///get name of day from HashMap.\n System.out.println(\"On day \" + nameOfDay + \" walk dog this many times \"+ testDog.getNumberOfWalksForDay(day));\n\n\n }\n\n\n\n\n\n\n }", "@Override\r\n public void allPlayersCreateDeck() {\r\n // Loop through all players and call createNewDeck\r\n for (int i = 0; i < this.players.size(); i++) {\r\n this.playerCreateNewDeck(i);\r\n }\r\n }", "public List<Entity> shootoutEntities(List<Entity> ents, boolean simulate);", "@Override\n public void onPetLoaded(Pet pet) {\n if (mCachedPets == null) {\n mCachedPets = new LinkedHashMap<>();\n }\n mCachedPets.put(pet.getId(), pet);\n callback.onPetLoaded(pet);\n }", "public static void main(String[] args) {\n\n\t Food animals[] = new Food [2];\n\t animals[0] = new Dog(\"Baron\");\n\t animals[1] = new Cat(\"Liza\");\n\t \n\t\t System.out.println(\"Trying to give 400gr. of Food for animals.\"); \n\t \n\t for (Food p: animals){\n\t p.giveFood(400);\n\t }\n\t}", "public void tick() {\n\t\tfor (Entity e : entities) {\n\t\t\te.tick();\n\t\t}\n\t}", "@Override\r\n\tpublic void run() {\r\n\t\t\r\n\t\tif (this.pluginInstance.isPaused(CullType.DAMAGE)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tint damage_calls = this.pluginInstance.getDamageCalls();\r\n\t\t\r\n\t\tfor (int i = 0; i < damage_calls; i++)\r\n\t\t{\r\n\t\t\tEntityLimitPair entityLimitPair = this.pluginInstance.getNextEntity();\r\n\t\t\t\r\n\t\t\tif (entityLimitPair == null) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tEntity entity = entityLimitPair.getEntity();\r\n\t\t\t\r\n\t\t\tif (entity == null || entity.isDead()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tConfigurationLimit limit = entityLimitPair.getLimit();\r\n\t\t\t\r\n\t\t\tif (limit.getCulling() != CullType.DAMAGE) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tRandom random = new Random();\r\n\t\t\t\r\n\t\t\t// Loop through entities in range and count similar entities.\r\n\t\t\tint count = 0;\r\n\t\t\t\r\n\t\t\tfor (Entity otherEntity : entity.getNearbyEntities(limit.getRange(), limit.getRange(), limit.getRange())) {\r\n\t\t\t\tif (0 == otherEntity.getType().compareTo(entity.getType())) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tcount += 1;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// If we've reached a limit for this entity, go ahead and damage it.\r\n\t\t\t\t\tif (count >= limit.getLimit()) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (random.nextInt(100) < this.pluginInstance.getDamageChance()) {\r\n\t\t\t\t\t\t\tthis.pluginInstance.damageEntity(entity, this.pluginInstance.getDamage());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void realizeAll ()\r\n {\r\n for ( final String itemId : this.itemSet.keySet () )\r\n {\r\n try\r\n {\r\n realizeItem ( itemId );\r\n }\r\n catch ( final AddFailedException e )\r\n {\r\n Integer rc = e.getErrors ().get ( itemId );\r\n if ( rc == null )\r\n {\r\n rc = -1;\r\n }\r\n// logger.warn ( String.format ( \"Failed to add item: %s (%08X)\", itemId, rc ) );\r\n\r\n }\r\n catch ( final Exception e )\r\n {\r\n// logger.warn ( \"Failed to realize item: \" + itemId, e );\r\n }\r\n }\r\n }", "private void popularTela(List<Parcela> lstParcelas) {\n for (Parcela parcela : lstParcelas) {\n popularTela(parcela);\n }\n }", "public void addPet(VirtualPet pet) {\n\t\tshelterPets.put(pet.name, pet);\n\t}", "public static <T> void doForAll(int perTick, Collection<T> objects, RunArgument<T> runArgument) {\n\t\tfinal ArrayList<T> finalObjects = new ArrayList<>(objects);\n\t\tnew BukkitRunnable() {\n\t\t\tprivate int current = 0;\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor(int i = 0; i < perTick; i++) {\n\t\t\t\t\tif(current < finalObjects.size()) {\n\t\t\t\t\t\trunArgument.run(finalObjects.get(current));\n\t\t\t\t\t\tcurrent++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(current >= finalObjects.size()) {\n\t\t\t\t\tthis.cancel();\n\t\t\t\t}\n\t\t\t}\n\t\t}.runTaskTimer(AreaShop.getInstance(), 1, 1);\n\t}", "public synchronized void processAll()\r\n {\r\n if (!myItems.isEmpty())\r\n {\r\n myProcessor.accept(New.list(myItems));\r\n myItems.clear();\r\n }\r\n }", "public void seePtExtraVaccines(Pets pet) {\n\n try {\n Statement statement = conn.createStatement();\n String sqlStatement;\n\n sqlStatement = \"SELECT * FROM pets\";\n ResultSet resultSet;\n\n sqlStatement =\n \"SELECT * FROM pets \" +\n \" LEFT JOIN vaccines \" +\n \" ON pets.id = vaccines.pet_id \" +\n \" WHERE pets.id = \" + pet.getId();\n\n resultSet = statement.executeQuery(sqlStatement);\n\n while (resultSet.next()) {\n String petsVaccine = resultSet.getString(\"vaccination_type\");\n String petsDateVaccinated = resultSet.getString(\"date_vaccinated\");\n String petsDateNext = resultSet.getString(\"date_to_vaccinate_next\");\n\n System.out.println(\"VACCINE: \" + petsVaccine + \" || Date vaccinated: \" + petsDateVaccinated + \" || Next Vaccination: \" + petsDateNext);\n\n }\n } catch (SQLException exception) {\n\n System.out.println(\"Error getting pet profile information (vaccines) \" + exception);\n\n }\n\n }", "private void iterateUpdate()\n\t{\n\t\tSystem.out.println(\"ITERATE\");\n\t\t\t\n\t\tfor (Organism org : simState.getOrganisms()) \n\t\t{\n\t\t\torganismViewData.resetOrganismView(org);\n\t\t}\n\t\t\n\t\tIterationResult result = simEngine.iterate();\n\t\t\n\t\t// Process born and dead organisms\n\t\taddBornModels(result.getBorn());\n\t\tremoveDeadModels(result.getLastDead());\n\t\t\n\t\trotateAnimals();\t\t\n\t}", "public void update(Array<Body> planets, float delta) {\n\n this.state.updateTime(this, delta);\n\n updateJumpTime(delta);\n\n this.applyPullForce(planets);\n\n this.limitVelocity();\n\n this.limitAngularVelocity();\n\n this.setRotation(planets);\n\n this.verifyInPlanet();\n\n this.updateMovementState();\n }", "private void doVels() {\n\t\tthis.launchPerVel = Math.sqrt((2d * body.getGm() * this.launchApoAlt) / (this.launchPerAlt * this.a));\n\t\tthis.launchApoVel = Math.sqrt((2d * body.getGm() * this.launchPerAlt) / (this.launchApoAlt * this.a));\n\t}", "public void draw() {\n for (Point2D point : pointSet) {\n point.draw();\n }\n }", "private void run() {\n //Create the store object\n Store store = new Store();\n\n //Populate the array of people\n for (int i = 0; i < 20; i++) {\n people.add(new Viewer(store));\n if (i < 6) { //Add buyers\n people.add(new Buyer(store));\n }\n }\n\n //Make a thread pool according to the size of people\n this.threadPoolExecutor =\n (ThreadPoolExecutor) Executors.newFixedThreadPool(people.size());\n\n //Start the life of every person\n for (Person person : this.people) {\n threadPoolExecutor.execute(person);\n }\n }", "private void iterateLandProducers(){\n landPrimaryProducerManager.produceAll();\n\n for(Map.Entry<Sector, SecondaryProducer> v : landSecondaryProducerManager.getManagerMap().entrySet()){\n resourceManager.addProducerResourceVisitor(v.getValue(), v.getKey());\n }\n landSecondaryProducerManager.produceAll();\n }", "public void Collecting (Player gamer){\r\n \r\n System.out.println(\"\");\r\n System.out.println(\"Collecting from all temples..\");\r\n \r\n for(int i=0; i<big_temple.length; i++){\r\n if(gamer.big_temple[i] == null){\r\n break;\r\n }\r\n System.out.println(\"Collecting $15 and 5 zen from \" + gamer.big_temple[i].name);\r\n gamer.money = gamer.money+15;\r\n gamer.zen = gamer.zen+5;\r\n }\r\n for(int i =0; i<small_temple.length; i++){\r\n if(gamer.small_temple[i] == null){\r\n break;\r\n }\r\n System.out.println(\"Collecting and 3 zen from \" + gamer.small_temple[i].name);\r\n gamer.zen = gamer.zen + 3;\r\n }\r\n System.out.println(\"Done collecting from temples...\"); \r\n System.out.println(\"\");\r\n }", "public void report() {\n\t\tfor (Plant p : plants) {\r\n\t\t\tp.list();\r\n\t\t}\r\n\t\tfor (Fish f: fishes) {\r\n\t\t\tf.list();\r\n\t\t}\r\n\t}", "public void repeat() {\n\t\t// TODO: Implement\n\t\t//System.out.println(\"size remainingBeans: \" + remainingBeans.size());\n\t\t//System.out.println(\"getallbeans: \" + this.getSumOfSlotCount());\n\t\t//System.out.println(\"size of inflight: \" + inFlightBeans.size());\n\n\t\tfor (int i = 0; i < this.getSlotCount(); i++) {\n\t\t\tif (slotBean.isEmpty())\n\t\t\t\tbreak;\n\t\t\tfor(int k=0; k < slotBean.get(i).size(); k++)\n\t\t\t{\n\t\t\t\tif(slotBean.get(i).get(k) != null)\n\t\t\t\t\tthis.remainingBeans.add(slotBean.get(i).get(k));\n\t\t\t}\n\t\t\t//this.remainingBeans\n\t\t\t\t\t//.addAll(this.slotBean.get(i).stream().filter(x -> x != null).collect(Collectors.toList()));\n\t\t\tif(this.inFlightBeans.get(i) != null)\n\t\t\t\tthis.remainingBeans.add(this.inFlightBeans.get(i));\n\t\t}\n\t\tinFlightBeans.clear();\t\t\n\t\tthis.slotBean.clear();\n\t\tfor(int i=0; i < getSlotCount(); i++)\n\t\t{\n\t\t\tArrayList<Bean> e = new ArrayList<>();\n\t\t\tslotBean.add(e);\n\t\t\tinFlightBeans.add(null);\n\t\t}\n\t\tinsertBean();\n\t\tif(inFlightBeans.get(0) != null) inFlightBeans.get(0).reset();\n\t}", "void updateBetsResults(ArrayList<Bet> allBetsOfMatch) throws DAOException;", "public ArrayList<Pokemon> getAllPokemon(){\n\t\treturn caughtPokemon; \n\t}", "public <T, K> void seed(Class<T> entityClass, List<T> items, Function<? super T, K> keyMapper) {\n Map<K, T> itemMap = items.stream().collect(Collectors.toMap(\n keyMapper,\n it -> it\n ));\n\n // don\"t do this on massive production scale data ...\n DynamoDBScanExpression scanExpression = new DynamoDBScanExpression();\n PaginatedScanList<T> scan = mapper.scan(entityClass, scanExpression);\n for (T item : scan) {\n K key = keyMapper.apply(item);\n itemMap.remove(key);\n }\n\n log.info(\"Items to add: \" + itemMap.keySet());\n for (T item : itemMap.values()) {\n mapper.save(item);\n }\n }", "public static void main(String[] args) {\n Person p = new Person();\n Dog dog = new Dog();\n p.feed(dog);\n dog.swim();\n\n Frog frog = new Frog();\n p.feed(frog);\n frog.swim();\n\n Sheep sheep = new Sheep();\n p.feed(sheep);\n\n }", "public void setPlanets(List<Planet> planets) {\n planetList = planets;\n }", "private void obtainAllPetWeights(Pet pet) {\n trGetAllWeights.setUser(user);\n trGetAllWeights.setPet(pet);\n try {\n trGetAllWeights.execute();\n } catch (NotPetOwnerException e) {\n e.printStackTrace();\n }\n }", "public void attack() {\n\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n\n lista[i].attack();\n }\n }", "public void updateAllProjectiles() {\n for (Explosive explosive: explosives) {\n explosive.update();\n }\n }", "public List<Pokemon> showAllPokemon() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Pokemon> allPokemon = em.createQuery(\"SELECT p FROM Pokemon p\").getResultList();\r\n\t\treturn allPokemon;\r\n\t}", "@Override\r\n\tpublic void notifyObservers(){\n\t\tfor (Observer o : ol){\r\n\t\t\t//iterate through GameCollection to avoid passing iterator to views\r\n\t\t\tIterator iterator = gc.getIterator();\r\n\t\t\t//if MapView, iterate through game list and provide new state information\r\n\t\t\tif (o instanceof MapView){\r\n\t\t\t\twhile(iterator.hasNext()){\r\n\t\t \t\tGameObject g = iterator.getNext();\r\n\t\t\t\t\to.update(gwp, g);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//if PointsView, get all point values from GameCollection and provide values\r\n\t\t\telse if (o instanceof PointsView){\r\n\t\t\t\t//cast as PointsView to use overloaded update methods\r\n\t\t\t\tPointsView p = (PointsView)o;\r\n\t\t\t\t//update all point values using overloaded update method, providing string tag to PointsView to differentiate which value is which\r\n\t\t\t\t//also pass in \"hard\" values accessed from GameCollection to avoid giving views access directly to GameCollection\r\n\t\t\t\tp.update(gwp, \"time\", (600-gc.getElapsedTime())/10);\r\n\t\t\t\tp.update(gwp, \"pointsForFish\", gc.getPointsForFish());\r\n\t\t\t\tp.update(gwp, \"pointsFishInNet\", tempPointsFishInNet);\r\n\t\t\t\tp.update(gwp, \"totalPoints\", gc.getTotalPoints());\r\n\t\t\t\tp.update(gwp, \"sharksScooped\", gc.getSharksScooped());\r\n\t\t\t\t//use 2nd overloaded update() method in PointsView to pass sound as a boolean\r\n\t\t\t\tp.update(gwp,gc.getSound());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void calculateFinalData() {\n\t\tfor(TeamPO oneTeam:teams.getAllTeams()){\r\n\t\t\toneTeam.calculateTeamDataInOneSeason();\r\n\t\t}\r\n\t}", "public void scrollEverything()\n { \n tempPlatforms = (ArrayList)getObjects(Platform.class);\n for (Object o : tempPlatforms)\n {\n Platform p = (Platform)o;\n p.scroll();\n }\n tempBreakingPlatforms = (ArrayList)getObjects(BreakingPlatforms.class);\n for (Object o : tempBreakingPlatforms)\n {\n BreakingPlatforms bp = (BreakingPlatforms)o;\n bp.scroll();\n }\n tempSprings = (ArrayList)getObjects(Spring.class);\n for (Object o : tempSprings)\n {\n Spring s = (Spring)o;\n s.scroll();\n }\n tempJetpack = (ArrayList)getObjects(Jetpack.class);\n for (Object o : tempJetpack)\n {\n Jetpack j = (Jetpack)o;\n j.scroll();\n }\n tempEnemy = (ArrayList)getObjects(Enemy.class);\n for (Object o : tempEnemy)\n {\n Enemy e = (Enemy)o;\n e.scroll();\n }\n player.scroll();\n }" ]
[ "0.67006326", "0.6465785", "0.59821874", "0.5924035", "0.5886352", "0.55672145", "0.555406", "0.5544652", "0.55412483", "0.55299324", "0.54539853", "0.5426748", "0.5390861", "0.5360224", "0.5293082", "0.5189544", "0.51452947", "0.51431143", "0.508353", "0.5051524", "0.50128317", "0.5008896", "0.496805", "0.49621293", "0.4961957", "0.4957912", "0.49542418", "0.49410415", "0.49385932", "0.49322617", "0.49254996", "0.49007884", "0.48870498", "0.48753905", "0.4872099", "0.48577705", "0.48558044", "0.48428005", "0.48393437", "0.48378953", "0.48347297", "0.48334548", "0.4815881", "0.47908705", "0.47897166", "0.477959", "0.47778764", "0.47521225", "0.47285023", "0.47188026", "0.47137958", "0.4710185", "0.47046658", "0.46988976", "0.46756423", "0.46693984", "0.4665707", "0.46619397", "0.465676", "0.4656617", "0.4651381", "0.4649156", "0.46457818", "0.4643539", "0.46424064", "0.46418396", "0.46390498", "0.4634313", "0.46306938", "0.4628097", "0.46176893", "0.4616944", "0.4609378", "0.46085575", "0.46027893", "0.45983946", "0.4586598", "0.4585368", "0.45835346", "0.45826635", "0.45826", "0.4574895", "0.4567855", "0.45669577", "0.45559093", "0.45463756", "0.45395607", "0.45376313", "0.45321155", "0.45311975", "0.45295104", "0.45196655", "0.4518974", "0.45168602", "0.45163476", "0.45138946", "0.45114368", "0.4509485", "0.45033354", "0.45015973" ]
0.85756296
0
Method to water all pets
public void waterAll() { for (VirtualPet p : shelterPets.values()) { p.waterPet(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void feedAll() {\n\t\tfor (VirtualPet p : shelterPets.values()) {\n\t\t\tp.feedPet();\n\t\t}\n\t}", "private void pump_water() {\n\t\t\r\n\t}", "static boolean tryWaterTree() throws GameActionException{\n\t\tTreeInfo[] trees = rc.senseNearbyTrees(-1, rc.getTeam());\n\t\tfor (TreeInfo t : trees){\n\t\t\tif (rc.canWater(t.getID()) && t.getHealth() < 45){\n\t\t\t\trc.water(t.getID());\n\t\t\t\tSystem.out.println(\"watered!\");\n\t\t\t\treturn true;\n\t\t\t} \t\n\t\t}\n\t\treturn false;\n\t}", "public int water(){\n //TODO\n }", "private void condenseSteam() {\n if (getPressure()> Constants.ATMOSPHERIC_PRESSURE) {\n double boilingPoint = Water.getBoilingTemperature(getPressure());\n if (boilingPoint > steam.getTemperature()) { // remove steam such that it equalizes to the boiling point\n double newSteamPressure = Math.max(Water.getBoilingPressure(steam.getTemperature()), Constants.ATMOSPHERIC_PRESSURE);\n \n\n int newQuantity = steam.getParticlesAtState(newSteamPressure, getCompressibleVolume());\n int deltaQuantity = steam.getParticleNr() - newQuantity;\n if (deltaQuantity < 0) {\n System.out.println(\"BAD\");\n }\n steam.remove(deltaQuantity);\n getWater().add(new Water(steam.getTemperature(), deltaQuantity));\n }\n } \n }", "public void wearOutfit() {\r\n for (int index = 0; index < mTops.size(); index++) {\r\n mTops.get(index).setWorn(true);\r\n }\r\n for (int index = 0; index < mBottoms.size(); index++) {\r\n mBottoms.get(index).setWorn(true);\r\n }\r\n if (mShoes != null) {\r\n mShoes.setWorn(true);\r\n }\r\n for (int index = 0; index < mAccessories.size(); index++) {\r\n mAccessories.get(index).setWorn(true);\r\n }\r\n if (mHat != null) {\r\n mHat.setWorn(true);\r\n }\r\n }", "public void consumeWater(boolean waterOnly) {\n//\t\tlogger.info(person + \"::consumeWater()\");\n\t\tthirst = condition.getThirst();\n//\t\tboolean notThirsty = !condition.isThirsty();\n\t\t\n\t\tif (thirst > PhysicalCondition.THIRST_THRESHOLD / 2.0) {\n\t\t\tdouble currentThirst = Math.min(thirst, THIRST_CEILING);\n\t\t\tUnit containerUnit = person.getContainerUnit();\n\t\t\tInventory inv = null;\n\t\t\t\n\t\t\tif (containerUnit != null) {\t\t\t\n\t\t\t\tif (containerUnit instanceof MarsSurface) {\n\t\t\t\t\t// Doing EVA outside. Get water from one's EVA suit\n\t\t\t\t\tinv = person.getSuit().getInventory();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// In a vehicle or settlement\n\t\t\t\t\tinv = containerUnit.getInventory();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tdouble waterFinal = Math.min(waterEachServing, currentThirst);\n\n\t\t\tif (inv != null && waterFinal > 0) {\n\t\t\t\tint level = person.getAssociatedSettlement().getWaterRation();\n\t\t\t\tdouble new_thirst = (currentThirst - waterFinal) / 10;\n\t\t\t\t// Test to see if there's enough water\n\t\t\t\tboolean haswater = false;\n\t\t\t\tdouble amount = waterFinal / 1000D / level;\n\n\t\t\t\tif (amount > MIN) {\n\t\t\t\t\tdouble available = inv.getAmountResourceStored(ResourceUtil.waterID, false);//Storage.retrieveAnResource(amount, ResourceUtil.waterID, inv, false);\n\t\t\t\t\tif (available >= amount)\n\t\t\t\t\t\thaswater = true;\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tif (haswater) {\n\t\t\t\t\tnew_thirst = new_thirst - amount * 5_000;\n\t\t\t\t\tif (new_thirst < 0)\n\t\t\t\t\t\tnew_thirst = 0;\n\t\t\t\t\telse if (new_thirst > THIRST_CEILING)\n\t\t\t\t\t\tnew_thirst = THIRST_CEILING;\n\t\t\t\t\tcondition.setThirst(new_thirst);\n\n\t\t\t\t\tif (amount > MIN) {\n\t\t\t\t\t\tStorage.retrieveAnResource(amount, ResourceUtil.waterID, inv, true);\n\t\t\t\t\t\t// Track the water consumption\n\t\t\t\t\t\tperson.addConsumptionTime(1, amount);\n\t\t\t\t\t\tif (waterOnly)\n\t\t\t\t\t\t\tsetDescription(Msg.getString(\"Task.description.eatDrink.water\")); //$NON-NLS-1$\n\t\t\t\t\t\tLogConsolidated.log(Level.FINE, 1000, sourceName,\n\t\t\t\t\t\t\t\t\"[\" + person.getLocationTag().getLocale() + \"] \" + person\n\t\t\t\t\t\t\t\t\t\t+ \" drank \" + Math.round(amount * 1000.0) / 1.0\n\t\t\t\t\t\t\t\t\t\t+ \" mL of water.\");\n\t\t\t\t\t}\n//\t\t\t\t\tLogConsolidated.log(Level.INFO, 1000, sourceName,\n//\t\t\t\t\t\t person + \" is drinking \" + Math.round(amount * 1000.0)/1000.0 + \"kg of water\"\n//\t\t\t\t\t\t + \" thirst : \" + Math.round(currentThirst* 100.0)/100.0\n//\t\t\t\t\t\t + \" waterEachServing : \" + Math.round(waterEachServing* 100.0)/100.0\n//\t\t\t\t\t\t + \" waterFinal : \" + Math.round(waterFinal* 100.0)/100.0\n//\t\t\t\t\t\t + \" new_thirst : \" + Math.round(new_thirst* 100.0)/100.0, null);\n\t\t\t\t}\n\n\t\t\t\telse if (!haswater) {\n\t\t\t\t\t// Test to see if there's just half of the amount of water\n\t\t\t\t\tamount = waterFinal / 1000D / level / 1.5;\n\t\t\t\t\tif (amount > MIN) {\n\t\t\t\t\t\tdouble available = inv.getAmountResourceStored(ResourceUtil.waterID, false);//Storage.retrieveAnResource(amount, ResourceUtil.waterID, inv, false);\n\t\t\t\t\t\tif (available >= amount)\n\t\t\t\t\t\t\thaswater = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (haswater) {\n\t\t\t\t\t\tnew_thirst = new_thirst - amount * 5_000;\n\t\t\t\t\t\tif (new_thirst < 0)\n\t\t\t\t\t\t\tnew_thirst = 0;\n\t\t\t\t\t\telse if (new_thirst > THIRST_CEILING)\n\t\t\t\t\t\t\tnew_thirst = THIRST_CEILING;\n\t\t\t\t\t\tcondition.setThirst(new_thirst);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (amount > MIN) {\n\t\t\t\t\t\t\tStorage.retrieveAnResource(amount, ResourceUtil.waterID, inv, true);\n\t\t\t\t\t\t\t// Track the water consumption\n\t\t\t\t\t\t\tperson.addConsumptionTime(1, amount);\n\t\t\t\t\t\t\tif (waterOnly)\n\t\t\t\t\t\t\t\tsetDescription(Msg.getString(\"Task.description.eatDrink.water\")); //$NON-NLS-1$\n\t\t\t\t\t\t\tLogConsolidated.log(Level.WARNING, 1000, sourceName,\n\t\t\t\t\t\t\t\t\t\"[\" + person.getLocationTag().getLocale() + \"] \" + person\n\t\t\t\t\t\t\t\t\t\t\t+ \" was put on water ration and allocated to drink no more than \" \n\t\t\t\t\t\t\t\t\t\t\t+ Math.round(amount * 1000.0) / 1.0\n\t\t\t\t\t\t\t\t\t\t\t+ \" mL of water.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tamount = waterFinal / 1000D / level / 3.0;\n\n\t\t\t\t\t\tif (amount > MIN) {\n\t\t\t\t\t\t\tdouble available = inv.getAmountResourceStored(ResourceUtil.waterID, false);//Storage.retrieveAnResource(amount, ResourceUtil.waterID, inv, false);\n\t\t\t\t\t\t\tif (available >= amount)\n\t\t\t\t\t\t\t\thaswater = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (haswater) {\n\t\t\t\t\t\t\tnew_thirst = new_thirst - amount * 5_000;\n\t\t\t\t\t\t\tif (new_thirst < 0)\n\t\t\t\t\t\t\t\tnew_thirst = 0;\n\t\t\t\t\t\t\telse if (new_thirst > THIRST_CEILING)\n\t\t\t\t\t\t\t\tnew_thirst = THIRST_CEILING;\n\t\t\t\t\t\t\tcondition.setThirst(new_thirst);\n\n\t\t\t\t\t\t\tif (amount > MIN) {\n\t\t\t\t\t\t\t\tStorage.retrieveAnResource(amount, ResourceUtil.waterID, inv, true);\n\t\t\t\t\t\t\t\t// Track the water consumption\n\t\t\t\t\t\t\t\tperson.addConsumptionTime(1, amount);\n\t\t\t\t\t\t\t\tif (waterOnly)\n\t\t\t\t\t\t\t\t\tsetDescription(Msg.getString(\"Task.description.eatDrink.water\")); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tLogConsolidated.log(Level.WARNING, 1000, sourceName,\n\t\t\t\t\t\t\t\t\t\t\"[\" + person.getLocationTag().getLocale() + \"] \" + person\n\t\t\t\t\t\t\t\t\t\t\t\t+ \" was put on water ration and allocated to drink no more than \" \n\t\t\t\t\t\t\t\t\t\t\t\t+ Math.round(amount * 1000.0) / 1.0\n\t\t\t\t\t\t\t\t\t\t\t\t+ \" mL of water.\");\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\telse {\n\t\t\t\t\t\t\tamount = waterFinal / 1000D / level / 4.5;\n\t\t\t\t\t\t\tif (amount > MIN) {\n\t\t\t\t\t\t\t\tdouble available = inv.getAmountResourceStored(ResourceUtil.waterID, false);//Storage.retrieveAnResource(amount, ResourceUtil.waterID, inv, false);\n\t\t\t\t\t\t\t\tif (available >= amount)\n\t\t\t\t\t\t\t\t\thaswater = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (haswater) {\n\t\t\t\t\t\t\t\tnew_thirst = new_thirst - amount * 5_000;\n\t\t\t\t\t\t\t\tif (new_thirst < 0)\n\t\t\t\t\t\t\t\t\tnew_thirst = 0;\n\t\t\t\t\t\t\t\telse if (new_thirst > THIRST_CEILING)\n\t\t\t\t\t\t\t\t\tnew_thirst = THIRST_CEILING;\n\t\t\t\t\t\t\t\tcondition.setThirst(new_thirst);\n\n\t\t\t\t\t\t\t\tif (amount > MIN) {\n\t\t\t\t\t\t\t\t\tStorage.retrieveAnResource(amount, ResourceUtil.waterID, inv, true);\n\t\t\t\t\t\t\t\t\t// Track the water consumption\n\t\t\t\t\t\t\t\t\tperson.addConsumptionTime(1, amount);\n\t\t\t\t\t\t\t\t\tif (waterOnly)\n\t\t\t\t\t\t\t\t\t\tsetDescription(Msg.getString(\"Task.description.eatDrink.water\")); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\tLogConsolidated.log(Level.WARNING, 1000, sourceName,\n\t\t\t\t\t\t\t\t\t\t\t\"[\" + person.getLocationTag().getLocale() + \"] \" + person\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" was put on water ration and allocated to drink no more than \" \n\t\t\t\t\t\t\t\t\t\t\t\t\t+ Math.round(amount * 1000.0) / 1.0\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" mL of water.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n \t\t\t\tpublic void doCreateProjectedWater() {\n \n \t\t\t\t}", "public void waterWild(){\n\t\tthis.wild(); //In case this method is not overridden.\n\t}", "private void addWater() {\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n if (tileMap[i][j] == null) {\n tileMap[i][j] = new Space(new Water(i, j));\n }\n }\n }\n }", "public void cleanAll() {\n\t\tfor (VirtualPet p : shelterPets.values()) {\n\t\t\tp.cleanPet();\n\t\t}\n\t}", "private void getPets(){\r\n\t\tfor(Player p : players){\r\n\t\t\tArrayList<Pet> currentpets = new ArrayList<>();\r\n\r\n\t\t\tSystem.out.println(\"How many pets for \" + p.getName() + \": \");\r\n\t\t\tint petnum = getNumber(1,3);\r\n\t\t\tfor(int i = 0; i < petnum; i++){\r\n\t\t\t\tSystem.out.println(\"Pet options are:\");\r\n\t\t\t\tint c = 1; //Counter for which pet, relating to which option\r\n\t\t\t\tfor(Pet option : pets){\r\n\t\t\t\t\tSystem.out.println(c + \". \" + option.getClass().getSimpleName() + \".\");\r\n\t\t\t\t\tc++;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Please Choose Your Pet With A Number:\");\r\n\t\t\t\tint selected = getNumber(1, 6);\r\n\t\t\t\tPet selectedpet = pets.get(selected - 1);\r\n\t\t\t\tSystem.out.println(\"Please Enter A Name For Your Pet: \");\r\n\t\t\t\tString petname = sc.next();\r\n\t\t\t\tselectedpet.setPetname(petname);\r\n\t\t\t\tSystem.out.println(\"You now have a pet named \" + selectedpet.getPetname());\r\n\t\t\t\tcurrentpets.add(selectedpet);\r\n\t\t\t}\r\n\t\t\tp.setPets(currentpets);\r\n\t\t}\r\n\t}", "public boolean isWater() {\n return this.type == Type.WATER;\n }", "public ArrayList<Pets> getPets(){\n DataBase db = new DataBase(context);\n initPets(db);\n return db.getPets();\n }", "public void placeBets(){\n System.out.println();\n System.out.println(\"Let's place your bet!\");\n System.out.println();\n for(Player player: players){\n player.placeBet(minBet, maxBet);\n }\n System.out.println();\n }", "public void setWatering(int value) {\n\t\tthis.watering = value;\n\t}", "public Collection<VirtualPet> pets() {\n\t\treturn shelterPets.values();\n\t}", "public void setPets(ArrayOfPetModel param) {\n localPetsTracker = true;\n\n this.localPets = param;\n }", "public boolean isInWater ( ) {\n\t\t// TODO: backwards compatibility required\n\t\treturn invokeSafe ( \"isInWater\" );\n\t}", "protected void doTransferWater(float amount)\n throws OverflowException, UnderflowException {\n }", "private void equalizePressure() {\n for (int i = 0; i < 10; ++i) {\n HydraulicState hs = outputComponent.getHydroState();\n if (hs instanceof BlockedHydroState) { // we can't send anything\n break;\n } else {\n if (hs.getPressure() < getBottomPressure()) { // if our pressure is larger than the other one\n Water deltaWater = new Water(getWater().getTemperature(), Math.min((int)(3 * getWater().getParticlesPerKilo()), getWater().getParticleNr()));\n //System.out.println(\"C: Before: \" + outputComponent.getHydroState().pressure() + \" \" + getBottomPressure());\n send(deltaWater); // send 3 kg of water\n getWater().remove(deltaWater.getParticleNr());\n //System.out.println(\"C: After: \" + outputComponent.getHydroState().pressure() + \" \" + getBottomPressure());\n } else {\n // residual flow\n /*Water deltaWater = new Water(getWater().getTemperature(), new Kilograms(Math.min(0.01, getWaterMass())));\n send(deltaWater);\n getWater().remove(deltaWater.getParticleNr());*/\n }\n }\n } \n }", "public void pave() {\n if (!world[position.x][position.y].equals(Tileset.NOTHING)) {\n System.out.println(\"I cannot pave at this place.\");\n return;\n }\n world[position.x][position.y] = Tileset.FLOOR;\n }", "public ArrayOfPetModel getPets() {\n return localPets;\n }", "protected void boilWater() { \n System.out.println(\"Boiling water\");\n }", "public void update() {\r\n\r\n\t\tfor(int p=0;p<200;p++) {\r\n\t\t\tfor(int k=0;k<200;k++) {\r\n\r\n\t\t\t\tif(tileMap[p][k].getBuilding()!=null) {\r\n\t\t\t\t\tBuilding m=tileMap[p][k].getBuilding();\r\n\t\t\t\t\t//update the buildings\r\n\t\t\t\t\ttileMap[p][k].getBuilding().update();\r\n\r\n\t\t\t\t\t//Check if battery is giving off power\r\n\t\t\t\t\tif( (m instanceof LowTierBattery) || (m instanceof LargeBattery) || (m instanceof IndustrialGradeBattery) ) {\r\n\r\n\t\t\t\t\t\t//If it's a Battery\r\n\t\t\t\t\t\tLowTierBattery f =(LowTierBattery) tileMap[p][k].getBuilding();\t\r\n\r\n\t\t\t\t\t\t//Check if its getting power and charging\r\n\t\t\t\t\t\tif(checkPowerLine(p,k,3)) {\r\n\t\t\t\t\t\t\tpowerSwitcher(p,k,2,true); //If it is then give off power\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tpowerSwitcher(p,k,2,f.getCapacity()>0); ///if it isnt then only give power if there is capacity\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//If a building is generating power add power to tiles;\r\n\t\t\t\t\t}else if( (m instanceof SteamEngine) || (m instanceof HandCrankGenerator) || (m instanceof SteamTurbine) || (m instanceof WindTurbine) ) {\r\n\r\n\t\t\t\t\t\tpowerSwitcher(p,k,3,((PoweredBuilding) m).getPower()); //Adds power or remove power based on the status of the generators\r\n\r\n\t\t\t\t\t\t//Powerline only get power from other powerline or buildings\r\n\t\t\t\t\t}else if(m instanceof PowerLine) {\r\n\r\n\t\t\t\t\t\tpowerSwitcher(p,k,5,checkPowerLine(p,k,5)); //Checks if the powerline is powered by other buildings then give it to powerSwitch method\r\n\r\n\t\t\t\t\t}else if(m instanceof LargePowerLine) {\r\n\t\t\t\t\t\tpowerSwitcher(p,k,10,checkPowerLine(p,k,10)); //Checks if the powerline is powered by other buildings then give it to powerSwitch method\r\n\r\n\t\t\t\t\t\t//If its just a powered building enable it if the tile under it is powered;\r\n\t\t\t\t\t}else if((m instanceof PoweredBuilding)) {\r\n\t\t\t\t\t\t((PoweredBuilding) tileMap[p][k].getBuilding()).setPower(tileMap[p][k].getPowered());\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t//Pipe movement\r\n\t\t\t\t\tif(m instanceof Pipe ) {\r\n\t\t\t\t\t\tpipeCheck(p,k,m);\r\n\t\t\t\t\t}else if(m.getOutputInventorySize()>0) {\r\n\t\t\t\t\t\tbuildingPipeCheck(p,k,m);\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private int sinksUnderwater() {\n if ((getPosition() == null) || isOffBoard()) {\n return 0;\n }\n\n IHex curHex = game.getBoard().getHex(getPosition());\n // are we even in water? is it depth 1+\n if ((curHex.terrainLevel(Terrains.WATER) <= 0) || (getElevation() >= 0)) {\n return 0;\n }\n\n // are we entirely underwater?\n if (isProne() || (curHex.terrainLevel(Terrains.WATER) >= 2)) {\n return getHeatCapacity();\n }\n\n // okay, count leg sinks\n int sinksUnderwater = 0;\n for (Mounted mounted : getMisc()) {\n if (mounted.isDestroyed() || mounted.isBreached() || !locationIsLeg(mounted.getLocation())) {\n continue;\n }\n if (mounted.getType().hasFlag(MiscType.F_HEAT_SINK)) {\n sinksUnderwater++;\n } else if (mounted.getType().hasFlag(MiscType.F_DOUBLE_HEAT_SINK)) {\n sinksUnderwater += 2;\n }\n }\n return sinksUnderwater;\n }", "public void Collecting (Player gamer){\r\n \r\n System.out.println(\"\");\r\n System.out.println(\"Collecting from all temples..\");\r\n \r\n for(int i=0; i<big_temple.length; i++){\r\n if(gamer.big_temple[i] == null){\r\n break;\r\n }\r\n System.out.println(\"Collecting $15 and 5 zen from \" + gamer.big_temple[i].name);\r\n gamer.money = gamer.money+15;\r\n gamer.zen = gamer.zen+5;\r\n }\r\n for(int i =0; i<small_temple.length; i++){\r\n if(gamer.small_temple[i] == null){\r\n break;\r\n }\r\n System.out.println(\"Collecting and 3 zen from \" + gamer.small_temple[i].name);\r\n gamer.zen = gamer.zen + 3;\r\n }\r\n System.out.println(\"Done collecting from temples...\"); \r\n System.out.println(\"\");\r\n }", "public void setAllPokemon()\n {\n PokemonFactory pFactory = new PokemonFactory();\n this.allPokemon = pFactory.getRandomPokemon();\n\n }", "public void feedAnimals() {\n System.out.println(\"Feeding all the animals...\\n\");\n for (int i = 0; i < zoo.length; i++){\n zoo[i].eat();\n }\n System.out.println();\n }", "public void walkAllDogs() {\n\t\thappiness += 10;\n\t\thealth += 8;\n\t\tplay += 5;\n\t}", "public void sunAndTwoPlanets()\n {\n removeAllObjects();\n addObject (new Body (50, 240.0, new Vector(270, 0.0), new Color(255, 216, 0)), 460, 310);\n addObject (new Body (20, 4.2, new Vector(90, 2.2), new Color(0, 124, 196)), 695, 300);\n addObject (new Body (24, 4.6, new Vector(270, 1.8), new Color(248, 160, 86)), 180, 290);\n }", "public void applyAllTransactions(Iterable<WalletTransaction> iwt) {\n clearBalances();\n\n for (WalletTransaction wtx : iwt) {\n // WalletTransaction.Pool pool = wtx.getPool();\n Transaction tx = wtx.getTransaction();\n boolean avail = !tx.isPending();\n TransactionConfidence conf = tx.getConfidence();\n ConfidenceType ct = conf.getConfidenceType();\n\n // Skip dead transactions.\n if (ct != ConfidenceType.DEAD) {\n\n // Traverse the HDAccounts with all outputs.\n List<TransactionOutput> lto = tx.getOutputs();\n for (TransactionOutput to : lto) {\n long value = to.getValue().longValue();\n try {\n byte[] pubkey = null;\n byte[] pubkeyhash = null;\n Script script = to.getScriptPubKey();\n if (script.isSentToRawPubKey())\n pubkey = script.getPubKey();\n else\n pubkeyhash = script.getPubKeyHash();\n for (HDAccount hda : mAccounts)\n hda.applyOutput(pubkey, pubkeyhash, value, avail);\n } catch (ScriptException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n\n // Traverse the HDAccounts with all inputs.\n List<TransactionInput> lti = tx.getInputs();\n for (TransactionInput ti : lti) {\n // Get the connected TransactionOutput to see value.\n TransactionOutput cto = ti.getConnectedOutput();\n if (cto == null) {\n // It appears we land here when processing transactions\n // where we handled the output above.\n //\n // mLogger.warn(\"couldn't find connected output for input\");\n continue;\n }\n long value = cto.getValue().longValue();\n try {\n byte[] pubkey = ti.getScriptSig().getPubKey();\n for (HDAccount hda : mAccounts)\n hda.applyInput(pubkey, value);\n } catch (ScriptException e) {\n // This happens if the input doesn't have a\n // public key (eg P2SH). No worries in this\n // case, it isn't one of ours ...\n }\n }\n }\n }\n\n // This is too noisy\n // // Log balance summary.\n // for (HDAccount acct : mAccounts)\n // acct.logBalance();\n }", "@Test\n void fillWater() {\n machine.setCurrentWater(0);\n Assertions.assertEquals(machine.getCurrentWater(), 0);\n\n //ensure, water fills up to maximum\n machine.fillWater();\n Assertions.assertEquals(machine.maxWater, machine.getCurrentWater());\n }", "public Weet[] getWeets() {\n return array.getWeetsFromStore();\n //return tree.toArray();\n }", "private static void initPlanets(){\r\n CelestialBody Sun = new CelestialBody(\"Sun\", Color.YELLOW, 50);\r\n \r\n initNewCelestialBody(new CelestialBody(\"Mercury\", Color.GRAY, 10, Sun, 0.3870, 0.3788, 0.0796));\r\n initNewCelestialBody(new CelestialBody(\"Venus\", Color.GREEN, 20, Sun, 0.7219, 0.7219, 0.0049));\r\n initNewCelestialBody(new CelestialBody(\"Earth\", Color.BLUE, 25, Sun, 1.0027, 1.0025, 0.0167));\r\n initNewCelestialBody(new CelestialBody(\"Mars\", Color.RED, 20, Sun, 1.5241, 1.5173, 0.1424));\r\n initNewCelestialBody(new CelestialBody(\"Jupiter\", Color.BEIGE, 50, Sun, 5.2073, 5.2010, 0.2520));\r\n initNewCelestialBody(new CelestialBody(\"Saturn\", Color.CHOCOLATE, 40, Sun, 9.5590, 9.5231, 0.5181));\r\n initNewCelestialBody(new CelestialBody(\"Uranus\", Color.AQUAMARINE, 30, Sun, 19.1848, 19.1645, 0.9055));\r\n initNewCelestialBody(new CelestialBody(\"Neptune\", Color.AQUA, 30, Sun, 30.0806, 30.0788, 0.2687));\r\n \r\n initNewCelestialBody(Sun);\r\n renderService.setFocus(getPlanetController(\"Sun\"));\r\n }", "static void examine( List pets){\n\t\tSystem.out.println(\"Your pets need urgent attention.\");\n\t}", "int waterfall();", "private void endPetWalking(SharedPreferences sharedPreferences, @Nullable List<Pet> pets) {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n\n for (Pet pet : user.getPets()) {\n String userPet = getUserPetIdentifier(pet.getName());\n boolean isWalking = sharedPreferences.getBoolean(userPet, false);\n\n if (isWalking) {\n editor.putBoolean(userPet, false);\n\n if (pets != null) {\n pets.add(pet);\n }\n }\n }\n\n editor.apply();\n }", "public static void plaatsComputerVloot(){\n\t\tfor (int iPlaats = 0; iPlaats < 5; iPlaats++){\n\t\t\tboolean shipOrientation = Math.random() < 0.5;\n\t\t\tGame.computer1.fleet.get(iPlaats).horizontal = shipOrientation;\n\t\t\tif (Game.computer1.fleet.get(iPlaats).horizontal) {\n\t\t\t\tGame.computer1.fleet.get(iPlaats).switchlb();\n\t\t\t}\n\t\t\tRandom random = new Random();\n\t\t\tboolean conflict = false;\n\t\t\tif(Game.computer1.fleet.get(iPlaats).horizontal){ //horizontaal\n\t\t\t\tint randomx = random.nextInt(11 - Game.computer1.fleet.get(iPlaats).getBreedte());\n\t\t\t\tint randomy = random.nextInt(10);\n\t\t\t\tfor(int xLoper=0; xLoper < Game.computer1.fleet.get(iPlaats).getBreedte();xLoper++){ //controleer coordinaten die huidige schip wil hebben op conflicten\n\t\t\t\t\tfor(int iConflictIndex=0; iConflictIndex < iPlaats; iConflictIndex++){// deze lus pakt alle eerder geplaatste schepen (heeft geen zin om nog niet geplaatste schepen te controleren)\n\t\t\t\t\t\tfor(int iConflictCo=0;iConflictCo < Game.computer1.fleet.get(iConflictIndex).coordinates.length;iConflictCo++){ //doorloopt coordinaten van een eerder geplaatst schip en controleert op overeenkomsten.\n\t\t\t\t\t\t\tif(Game.computer1.fleet.get(iConflictIndex).coordinates[0][iConflictCo] == randomx+xLoper && Game.computer1.fleet.get(iConflictIndex).coordinates[1][iConflictCo] == randomy){\n\t\t\t\t\t\t\t\tconflict = true; //indien overeenkomst, is er een conflict.\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(!conflict){\n\t\t\t\t\tfor(int l = 0; l < Game.computer1.fleet.get(iPlaats).getBreedte(); l++){ \n\t\t\t\t\t\tGame.computer1.fleet.get(iPlaats).coordinates[0][l] = randomx + l;\n\t\t\t\t\t\tGame.computer1.fleet.get(iPlaats).coordinates[1][l] = randomy;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{ //verticaal. komt grotendeels overeen met horizontaal, commentaar: zie daar.\n\t\t\t\tint randomx = random.nextInt(10);\n\t\t\t\tint randomy = random.nextInt(11 - Game.computer1.fleet.get(iPlaats).getLengte());\n\t\t\t\tfor(int yLoper=0; yLoper < Game.computer1.fleet.get(iPlaats).getLengte();yLoper++){\n\t\t\t\t\tfor(int iConflictIndex=0; iConflictIndex < iPlaats; iConflictIndex++){\n\t\t\t\t\t\tfor(int iConflictCo=0;iConflictCo < Game.computer1.fleet.get(iConflictIndex).coordinates.length;iConflictCo++){\n\t\t\t\t\t\t\tif(Game.computer1.fleet.get(iConflictIndex).coordinates[0][iConflictCo] == randomx && Game.computer1.fleet.get(iConflictIndex).coordinates[1][iConflictCo] == randomy+yLoper){\n\t\t\t\t\t\t\t\tconflict = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(!conflict){\n\t\t\t\t\tfor(int l = 0; l < Game.computer1.fleet.get(iPlaats).getLengte(); l++){\n\t\t\t\t\t\tGame.computer1.fleet.get(iPlaats).coordinates[0][l] = randomx;\n\t\t\t\t\t\tGame.computer1.fleet.get(iPlaats).coordinates[1][l] = randomy + l;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(conflict){\n\t\t\t\tiPlaats--;\n\t\t\t}\n\t\t}\n\t\tspelen(); //alles geplaatst, dan spelen.\n\t}", "boolean checkWaterEnergy(AbstractWaterPokemon pokemon);", "@Override\n public void run() {\n if (config.DebugLogging) {\n getLogger().info(\"Reverting Ice to Water to prevent server overload\");\n }\n\n Block fixblock = getServer().getWorld(blockloc.getWorld().getName()).getBlockAt(blockloc);\n fixblock.setType(Material.STATIONARY_WATER);\n\n }", "public static void hunt(ArrayList<Player> playerList){\n Random r = new Random();\n for (int i = 0; i < playerList.size();i++){\n int eggNum = r.nextInt(11);\n for(int e = 0; e < eggNum; e++){\n Egg egg = new Egg();\n playerList.get(i).foundEgg(egg);\n }\n }\n }", "@Override\n\tpublic void pintar() {\n\t\n\t\tapp.image(water, this.px, this.py);\n\t\t\n\t}", "public void wakeAnimals() {\n System.out.println(\"Waking the animals up...\\n\");\n for (int i = 0; i < zoo.length; i++){\n zoo[i].wake();\n }\n System.out.println();\n }", "@Override\n public void run() {\n for(int i=0;i<TheWeatherMan.WEATHER_CHECKS; i++) {\n\n // Have some delay\n try {\n Thread.sleep(1000* startTime);\n } catch (InterruptedException e) {\n System.out.println(\"『 Weather Report 』 Pacific has gone berserk and cant sleep.\\n\" +\n \"Terminating Program...\");\n System.exit(1);\n }\n\n /**\n * Handling Different City Temperatures -------------------------------------------\n */\n\n\n // Handling Singapore Temperatures\n if(cityName == \"Singapore\") {\n\n // Generates a random number between -.3 and .3\n double randNum = (Math.random() * (.6)) - .3;\n // Formats decimals to 2 places\n DecimalFormat df = new DecimalFormat(\"#.##\");\n\n cityTemperature = Double.valueOf(df.format((cityTemperature + randNum)));\n // Set Temp\n ((Satellite) satellite).setWeather1(cityTemperature);\n }\n\n // Handling Melbourne Temperatures\n if(cityName == \"Melbourne\") {\n Random random = new Random();\n double temp = (double) random.nextInt(45) + random.nextDouble();\n\n cityTemperature = temp;\n // Set Temp\n ((Satellite) satellite).setWeather2(cityTemperature);\n }\n\n // Handling Shanghai Temperatures\n if(cityName == \"Shanghai\") {\n\n // Fluctuate +-5\n Random random = new Random();\n double temp = ((double) random.nextInt(5) +\n random.nextDouble()) * (random.nextBoolean() ? 1 : -1);\n\n\n cityTemperature = cityTemperature + temp;\n // Set Temp\n ((Satellite) satellite).setWeather3(cityTemperature);\n }\n\n }\n }", "public abstract void peel();", "private void eat() {\r\n\t\tthis.energy = this.baseEnergy;\r\n\t\tArrayList<Block> foodNeighbors = (ArrayList<Block>)this.getBlock().getAdjacent(prey, \"2457\");\r\n\t\twhile (foodNeighbors.size() > 0) {\r\n\t\t\tint randomNeighbor = r.nextInt(foodNeighbors.size());\r\n\t\t\tBlock b = this.getBlock();\r\n\t\t\tBlock t = foodNeighbors.get(randomNeighbor);\r\n\t\t\tif (!t.getNextCell().getNextState().equals(predator)) {\r\n\t\t\t\tmoveCell(this, b, t, new WaTorCell(this.getBlock(), new WaTorState(State.EMPTY_STATE),\r\n\t\t\t\t\t\tthis.ageToReproduce, this.baseEnergy));\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tfoodNeighbors.remove(t);\r\n\t\t}\r\n\t\tcellPreyRules(new WaTorState(WaTorState.WATOR_PREDATOR));\r\n\t}", "public void consumeDessertWater(double dryMass) {\n\t\tdouble currentThirst = Math.min(thirst, THIRST_CEILING);\n\t\tdouble waterFinal = Math.min(waterEachServing, currentThirst);\n\t\t// Note that the water content within the dessert has already been deducted from\n\t\t// the settlement\n\t\t// when the dessert was made.\n\t\tdouble waterPortion = 1000 * (PreparingDessert.getDessertMassPerServing() - dryMass);\n\t\tif (waterPortion > 0) {\n\t\t\twaterFinal = waterFinal - waterPortion;\n\t\t}\n\n\t\tif (waterFinal > 0) {\n\t\t\tdouble new_thirst = (currentThirst - waterFinal) / 8 - waterFinal * 5;\n\t\t\tif (new_thirst < 0)\n\t\t\t\tnew_thirst = 0;\n\t\t\telse if (new_thirst > THIRST_CEILING)\n\t\t\t\tnew_thirst = THIRST_CEILING;\n\t\t\tcondition.setThirst(new_thirst);\n\n\t\t\tdouble newStress = condition.getStress() - waterFinal;\n\t\t\tcondition.setStress(newStress);\n\t\t}\n\t}", "public int getWatering() {\n\t\treturn watering;\n\t}", "public void updateLavaTiles() {\n for (Tile tile : getTiles()) {\n Random random = new Random();\n if (tile.getType().matches(\"BurnTile\")) {\n tile.setTexture(\"Volcano_\" + (random.nextInt(4) + 5));\n }\n }\n }", "public boolean isWaterAnimal() {\n return false;\n }", "public void update(MazeEventPushedWater e) {\r\n }", "private boolean trySetWaterCoordinates() {\n\t\tfinal Point3D waterCoordinates = RadixLogic.getNearestBlock(actor, 10, Blocks.WATER);\r\n\r\n\t\tif (waterCoordinates == null) {\r\n\t\t\tactor.say(MCA.getLocalizer().getString(\"fishing.nowater\"), getAssigningPlayer());\r\n\r\n\t\t\treset();\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\twaterCoordinatesX = waterCoordinates.iX();\r\n\t\t\twaterCoordinatesY = waterCoordinates.iY();\r\n\t\t\twaterCoordinatesZ = waterCoordinates.iZ();\r\n\t\t\thasWaterPoint = true;\r\n\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public double calcNetForceExertedByY(Planet[] allPlanets){\n\t\tdouble yForce = 0;\n\t\tfor (int i =0; i < allPlanets.length; i++){\n\t\t\tif(!this.equals(allPlanets[i])){\n\t\t\t\tyForce += this.calcForceExertedByY(allPlanets[i]);\n\t\t\t}\t\t \n\t\t}\n\t\treturn yForce;\n\t}", "public void spillTrekk(List<Terning> terninger) {\n Integer sum = 0;\n for (Terning terning : terninger) {\n terning.trill();\n sum += terning.getVerdi();\n }\n Rute plass = brikke.getPlass();\n plass = brett.finnRute(plass, sum);\n brikke.setPlass(plass);\n }", "public void updateAllProjectiles() {\n for (Explosive explosive: explosives) {\n explosive.update();\n }\n }", "public void makeNoise() {\n\t\tfor (Animal a : animals) {\n\t\t\ta.makeNoise();\n\t\t}\n\t}", "public static void main(String[] args) {\n\n PlantFactory pf = new PlantFactory();\n for(int number = 0; number < 5; number++) {\n Corn newCorn = pf.getCorn();\n if(newCorn == null) break;\n\n PlantField.cornList.add(newCorn);\n }\n for(int number = 0;number < 10; number++) {\n Rice newRice = pf.getRice();\n if(newRice == null) break;\n\n PlantField.riceList.add(newRice);\n }\n for(int number = 0;number < 2;number++) {\n Pasture newPasture = pf.getPasture();\n if(newPasture == null) break;\n\n PlantField.pastureList.add(newPasture);\n }\n\n // Now we got different plants!\n show();\n\n // Let's fertilize those plants!\n for (Corn item : PlantField.cornList) {\n item.fertilized();\n }\n for (Pasture item : PlantField.pastureList) {\n item.fertilized();\n }\n\n // Let's try to fertilize them again.\n for (Corn item : PlantField.cornList) {\n item.fertilized();\n }\n for (Rice item : PlantField.riceList) {\n item.fertilized();\n }\n for (Pasture item : PlantField.pastureList) {\n item.fertilized();\n }\n System.out.println(\"\\nLet's harvest them!\");\n for(Corn item : PlantField.cornList){\n item.harvested();\n }\n for(Rice item : PlantField.riceList){\n item.harvested();\n }\n for(Pasture item : PlantField.pastureList){\n item.harvested();\n }\n\n show();\n\n // Maybe we need to buy some seeds.\n\n // Oops, those corns and rices need to be pollinated.\n for(Corn item : PlantField.cornList){ // corn and rise need to be poll\n PollinationStrategy ps = new SpontaneousPollination();\n ps.pollinate(item);\n }\n\n // We just pollinated those corns. Let's harvest them!\n for(Corn item : PlantField.cornList){\n item.harvested();\n }\n\n show();\n// ------\n // Take a look at those dead plant.\n for(Corn item : PlantField.cornList){\n item.harvested();\n item.fertilized();\n PollinationStrategy ps = new ArtificialPollination();\n ps.pollinate(item);\n }\n\n // plantTest completed successfully\n }", "public void sleutelWaarde(){\n if(sleutel100.getX() == speler.getX() && sleutel100.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel100.getWaarde());\n }\n else if(sleutel1002.getX() == speler.getX() && sleutel1002.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel1002.getWaarde());\n }\n else if(sleutel200.getX() == speler.getX() && sleutel200.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel200.getWaarde());\n }\n else if(sleutel300.getX() == speler.getX() && sleutel300.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel300.getWaarde());\n }\n }", "@Override\n public void run() {\n int slotsUsed = 0;\n int potentialBananas = 0;\n RSItem[] items = Inventory.getAll();\n for (RSItem item : items) {\n // If this isn't a bone count it\n if (item.getID() < 6904 || item.getID() > 6907) {\n slotsUsed++;\n }\n else {\n // Item id bone amount\n // 6904 1\n // 6905 2\n // 6906 3\n // 6907 4\n potentialBananas += 1 + item.getID() - 6904;\n }\n }\n \n int slotsAvailable = 28 - slotsUsed;\n\n RSItem[] food = Inventory.find(1963);\n\n // If have bananas/peaches, deposit them, else collect bones\n if (food.length > 0) {\n // Heal and then deposit\n float eatHealth = m_settings.m_eatHealth * Skills.getActualLevel(SKILLS.HITPOINTS);\n float eatTo = m_settings.m_eatTo * Skills.getActualLevel(SKILLS.HITPOINTS);\n \n if (food.length > 0 && Skills.getCurrentLevel(SKILLS.HITPOINTS) < eatHealth) {\n // Eat\n while (food.length > 0 && Skills.getCurrentLevel(SKILLS.HITPOINTS) < eatTo) {\n food[0].click(\"Eat\");\n m_script.sleep(300, 600);\n food = Inventory.find(1963);\n }\n }\n else {\n // Deposit\n RSObject[] objs = Objects.findNearest(50, \"Food chute\");\n if (objs.length > 0) {\n while (!objs[0].isOnScreen()) {\n Walking.blindWalkTo(objs[0]);\n m_script.sleep(250);\n }\n objs[0].click(\"Deposit\");\n m_script.sleep(1200);\n }\n }\n }\n else {\n // If we have more than a full load of bananas worth of bones, cast bones to peaches\n if (potentialBananas >= slotsAvailable) {\n // Cast bones to peaches\n Magic.selectSpell(\"Bones to Bananas\");\n }\n else {\n // Collect bananas\n RSObject[] bonePiles = Objects.findNearest(10725, 10726, 10727, 10728);\n if (bonePiles.length > 0) {\n while (!bonePiles[0].isOnScreen()) {\n Walking.blindWalkTo(bonePiles[0]);\n m_script.sleep(250);\n }\n bonePiles[0].click(\"Grab\");\n m_script.sleep(150);\n }\n }\n }\n }", "public static void craft()\r\n\t{\r\n\t\tList<IRecipe> recipeList = CraftingManager.getInstance().getRecipeList();\r\n\t\tIterator<IRecipe> recipe = recipeList.iterator();\r\n\r\n\t\twhile (recipe.hasNext())\r\n\t\t{\r\n\t\t\tItemStack stack = recipe.next().getRecipeOutput();\r\n\r\n\t\t\tif (stack != null && stack.areItemsEqual(stack, new ItemStack(Blocks.STONEBRICK, 1, 0)))\r\n\t\t\t{\r\n\t\t\t\trecipe.remove();\r\n\t\t\t} else if (stack != null && stack.areItemsEqual(stack, new ItemStack(Blocks.END_BRICKS, 1, 0)))\r\n\t\t\t{\r\n\t\t\t\trecipe.remove();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Adds all the 2 by 2 crafting Recipes\r\n\t\t */\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 2), new ItemStack(BBBlocks.moreStones, 4, 1));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 4), new ItemStack(BBBlocks.moreStones, 4, 3));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 6), new ItemStack(BBBlocks.moreStones, 4, 5));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 6), new ItemStack(BBBlocks.moreStones, 4, 9));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 9), new ItemStack(BBBlocks.moreStones, 4, 8));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 10), new ItemStack(BBBlocks.moreStones, 4, 13));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 13), new ItemStack(BBBlocks.moreStones, 4, 12));\r\n\t\tcraft2by2(new ItemStack(Blocks.SANDSTONE, 1, 2), new ItemStack(BBBlocks.moreStones, 4, 14));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 8), new ItemStack(BBBlocks.cotswoldBricks, 4));\r\n\t\tcraft2by2(new ItemStack(Blocks.BRICK_BLOCK, 1), new ItemStack(BBBlocks.agedBricks, 4));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 2), new ItemStack(BBBlocks.moreStones2, 4, 5));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 5), new ItemStack(BBBlocks.moreStones2, 4, 4));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 1), new ItemStack(BBBlocks.moreStones2, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 14), new ItemStack(BBBlocks.moreStones2, 4, 1));\r\n\t\tcraft2by2(new ItemStack(Blocks.RED_SANDSTONE, 1, 2), new ItemStack(BBBlocks.moreStones2, 4, 6));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 6), new ItemStack(BBBlocks.moreStones2, 4, 9));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 9), new ItemStack(BBBlocks.moreStones2, 4, 8));\r\n\t\tcraft2by2(new ItemStack(Blocks.NETHERRACK, 1), new ItemStack(BBBlocks.moreStones2, 4, 11));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 11), new ItemStack(BBBlocks.moreStones2, 4, 10));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE), new ItemStack(BBBlocks.moreStones2, 4, 12));\r\n\t\tcraft2by2(new ItemStack(Blocks.END_STONE), new ItemStack(BBBlocks.moreStones2, 4, 13));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 12), new ItemStack(Blocks.STONEBRICK, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 13), new ItemStack(Blocks.END_BRICKS, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones3, 1, 0), new ItemStack(BBBlocks.moreStones3, 4, 2));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones3, 1, 2), new ItemStack(BBBlocks.moreStones3, 4, 1));\r\n\r\n\r\n\t\t/**\r\n\t\t * Adds all the stair Recipes\r\n\t\t */\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 0), new ItemStack(BBBlocks.cobbleGraniteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 2), new ItemStack(BBBlocks.cobbleDioriteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 4), new ItemStack(BBBlocks.cobbleAndesiteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 7), new ItemStack(BBBlocks.cobbleLimestoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 11), new ItemStack(BBBlocks.cobbleMarbleStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 15), new ItemStack(BBBlocks.cobbleSandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 3), new ItemStack(BBBlocks.cobbleBasaltStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 7), new ItemStack(BBBlocks.cobbleRedsandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 1), new ItemStack(BBBlocks.brickGraniteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 3), new ItemStack(BBBlocks.brickDioriteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 5), new ItemStack(BBBlocks.brickAndesiteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 8), new ItemStack(BBBlocks.brickLimestoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 12), new ItemStack(BBBlocks.brickMarbleStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 0), new ItemStack(BBBlocks.brickSandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 4), new ItemStack(BBBlocks.brickBasaltStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 8), new ItemStack(BBBlocks.brickRedsandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 10), new ItemStack(BBBlocks.brickNetherrackStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.cotswoldBricks, 1), new ItemStack(BBBlocks.brickCotswoldStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.agedBricks, 1), new ItemStack(BBBlocks.brickAgedbrickStair, 4));\r\n\t\tcraftStair(new ItemStack(Blocks.END_BRICKS, 1), new ItemStack(BBBlocks.brickEndstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(Blocks.RED_NETHER_BRICK, 1), new ItemStack(BBBlocks.brickRednetherStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones3, 1, 1), new ItemStack(BBBlocks.brickAcheriteStair, 4));\r\n\r\n\t\t/**\r\n\t\t * Adds all the slab Recipes\r\n\t\t */\r\n\t\tcraftSlab(BBBlocks.cobbleAndesiteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleGraniteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleDioriteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleMarbleSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleLimestoneSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleSandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleBasaltSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleRedsandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickAndesiteSlab);\r\n\t\tcraftSlab(BBBlocks.brickGraniteSlab);\r\n\t\tcraftSlab(BBBlocks.brickDioriteSlab);\r\n\t\tcraftSlab(BBBlocks.brickMarbleSlab);\r\n\t\tcraftSlab(BBBlocks.brickLimestoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickSandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickBasaltSlab);\r\n\t\tcraftSlab(BBBlocks.brickRedsandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickRednetherSlab);\r\n\t\tcraftSlab(BBBlocks.brickEndstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickNetherrackSlab);\r\n\t\tcraftSlab(BBBlocks.brickCotswoldSlab);\r\n\t\tcraftSlab(BBBlocks.brickAgedbrickSlab);\r\n\t\tcraftSlab(BBBlocks.brickAcheriteSlab);\r\n\t\t\r\n\t\t/**\r\n\t\t * Other Crafting Recipes\r\n\t\t */\r\n\t\tGameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BBBlocks.moreStones2, 16, 14), new Object[] { Blocks.CLAY, \"sand\", Blocks.GRAVEL, Items.WATER_BUCKET}));\r\n\t\tNBTTagCompound concreteTag = new NBTTagCompound();\r\n\t\tconcreteTag.setInteger(\"color\", 16777215);\r\n\t\tItemStack concreteStack = new ItemStack(BBBlocks.concreteDyeable, 8, 0);\r\n\t\tconcreteStack.setTagCompound(concreteTag);\r\n\t\tGameRegistry.addRecipe(concreteStack, new Object[] { \"###\", \"#O#\", \"###\", '#', new ItemStack(BBBlocks.moreStones2, 1, 15), 'O', Items.PAPER });\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteDyeable());\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteTiles());\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteDyeable.RecipeDuplicateConcrete());\r\n\t\tGameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BBBlocks.overgrowth, 8),new Object[] { \"treeLeaves\", \"treeLeaves\"}));\r\n\r\n\t\t/**\r\n\t\t * Adds all the smelting Recipes\r\n\t\t */\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 0), new ItemStack(Blocks.STONE, 1, 1));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 2), new ItemStack(Blocks.STONE, 1, 3));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 4), new ItemStack(Blocks.STONE, 1, 5));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 7), new ItemStack(BBBlocks.moreStones, 1, 6));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 11), new ItemStack(BBBlocks.moreStones, 1, 10));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 15), new ItemStack(BBBlocks.moreStones, 1, 14));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 3), new ItemStack(BBBlocks.moreStones2, 1, 2));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 7), new ItemStack(BBBlocks.moreStones2, 1, 6));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 14), new ItemStack(BBBlocks.moreStones2, 1, 15));\r\n\r\n\t}", "public void handleWaterCollisions(Water[] water) {\r\n\t\t//Receives all the water objects\r\n\t\tfor (int i=0; i<water.length; i++){\r\n\t\t\tif(water[i] != null){\r\n\t\t\t\t\r\n\t\t\t\t//Checks if each of the objects are colliding with one another\r\n\t\t\t\t//And once heat reaches zero the fires are deleted\r\n\t\t\t\tif(graphic.isCollidingWith(water[i].getGraphic())){\r\n\t\t\t\t\tif(heat>=1){\r\n\t\t\t\t\t\theat=heat-1;\r\n\t\t\t\t\t\twater[i]=null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void withdrawAll() {\r\n for (int i = 0; i < container.capacity(); i++) {\r\n Item item = container.get(i);\r\n if (item == null) {\r\n continue;\r\n }\r\n int amount = owner.getInventory().getMaximumAdd(item);\r\n if (item.getCount() > amount) {\r\n item = new Item(item.getId(), amount);\r\n container.remove(item, false);\r\n owner.getInventory().add(item, false);\r\n } else {\r\n container.replace(null, i, false);\r\n owner.getInventory().add(item, false);\r\n }\r\n }\r\n container.update();\r\n owner.getInventory().update();\r\n }", "public void paintPlanets(Graphics g)\n {\n for(Planet p: planets)\n {\n if(inBounds(p))\n {\n paintPlanet(g, p);\n }\n }\n }", "public double calcNetForceExertedByX(Planet[] allPlanets){\n\t\tdouble xForce = 0;\n\t\tfor (int i =0; i < allPlanets.length; i++){\n\t\t\tif(!this.equals(allPlanets[i])){\n\t\t\t\txForce += this.calcForceExertedByX(allPlanets[i]);\n\t\t\t}\n\t\t}\n\t\treturn xForce;\n\t}", "public void makeTea() {\n\t\tboil();\n\t\taddSugar();\n\t\taddTea();\n\t\tserve();\n\t}", "int waterGun();", "@Override\n public void fill(ArrayList<Package> warehousePackages) {\n int diffCounter = 0;\n int checkOnce = -1;\n boolean checkTwice = false;\n boolean sameI = false;\n int overWeight = 0;\n while (!isFull() && (warehousePackages.size() - overWeight) > 0) {\n for (int i = 0; i < warehousePackages.size(); i++) {\n sameI = false;\n int destination = warehousePackages.get(i).getDestination().getZipCode();\n int difference = Math.abs(destination - this.getZipDest());\n if (difference <= diffCounter + 10 && difference >= diffCounter) {\n if (!(warehousePackages.get(i).getWeight() +\n getCurrentWeight() > getMaxWeight())) {\n addPackage(warehousePackages.get(i));\n setCurrentWeight(getCurrentWeight() + warehousePackages.get(i).getWeight());\n warehousePackages.remove(i);\n sameI = true;\n break;\n } else {\n overWeight += 1;\n }\n }\n }\n if (!sameI) {\n diffCounter += 10;\n }\n }\n\n\n }", "@Override\n\tpublic void getOil(ArrayList<Olive> olives) {\n\t\tint oil = 0;\n\t\t\n\t\tfor (Olive olive : olives) {\n\t\t\toil += olive.crush();\n\t\t}\n\t\t\n\t\tsetTotalOil(oil);\n\n\t}", "protected void generateStrongEnemies(int count)\n {\n ArrayList<MonsterInfo> monsters = new ArrayList<>();\n monsters.add(new MonsterInfo(JungleEncounterIDList.SLIMY_TREE_VINES_ENCOUNTER_ID, 3.0F));\n monsters.add(new MonsterInfo(JungleEncounterIDList.TWO_JUNGLE_HUNTERS_ENCOUNTER_ID, 3.0f));\n monsters.add(new MonsterInfo(MonsterHelper.SNAKE_PLANT_ENC, 2.0F));\n monsters.add(new MonsterInfo(JungleEncounterIDList.LYON_ENCOUNTER_ID, 3.0f));\n monsters.add(new MonsterInfo(JungleEncounterIDList.TWO_FLAMEANGOS_ENCOUNTER_ID, 2.0F));\n monsters.add(new MonsterInfo(JungleEncounterIDList.TWO_SENCKO_CULTISTS_ENCOUNTER_ID, 3.0F));\n monsters.add(new MonsterInfo(JungleEncounterIDList.SNECKO_CULTIST_AND_TRAP_ENCOUNTER_ID, 2.0F));\n\n MonsterInfo.normalizeWeights(monsters);\n populateFirstStrongEnemy(monsters, generateExclusions());\n populateMonsterList(monsters, count, false);\n }", "protected void withdrawAll(Player player) {\n\t\tItemContainer container = this.item_containers.get(player);\n\n\t\tif (container.isEmpty()) {\n\t\t\tplayer.message(\"There is nothing in this container to withdraw!\");\n\t\t\treturn;\n\t\t}\n\t\tplayer.inventory.addAll(container);\n\t\tcontainer.clear();\n\t\tupdateOfferComponents();\n\t}", "public void findStreets() {\r\n\t\tpolygonMap.resetStreets();\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tfor (int i = 0; i < island.getRoads().length; i++) {\r\n\t\t\tif (buildStreetIsAllowed(island.getRoads()[i])\r\n\t\t\t\t\t&& !isWaterStreet(island.getRoads()[i])) {\r\n\t\t\t\tpolygonMap.addStreet(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void obtainAllPetExercises(Pet pet) {\n trGetAllExercises.setUser(user);\n trGetAllExercises.setPet(pet);\n\n try {\n trGetAllExercises.execute();\n } catch (NotPetOwnerException e) {\n e.printStackTrace();\n }\n\n for (Exercise exercise : trGetAllExercises.getResult()) {\n pet.addExercise(exercise);\n }\n }", "public void sunAndPlanet()\n {\n removeAllObjects();\n addObject (new Body (50, 240.0, new Vector(270, 0.03), new Color(255, 216, 0)), 460, 270);\n addObject (new Body (20, 4.2, new Vector(90, 2.2), new Color(0, 124, 196)), 695, 260);\n }", "public static void shootCritters(){\n\t\tfor(Tower t : towers) \n\t\t\tt.shootCritters(CritterManager.getCritters());\n\t}", "public boolean heatPotion() \n\t{\n\t\tint count=0;\n\t\tfor (int i=0; i < ingredients.length(); i++) \n\t\t{\n\t\t\tif (ingredients.charAt(i)=='w') \n\t\t\t{\n\t\t\t\t//take out the water and count that it was there\n\t\t\t\tingredients = ingredients.replace(\"w\", \"\");\n\t\t\t\tcount+=1;\n\t\t\t}\n\t\t}\n\t\t//check that there was water in the potion in order to have it properly heated\n\t\tif (count > 0) \n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean getPets() {\n\t\treturn this.pets;\n\t}", "public void getAll() {\n\n PokeStubDTOWrapper wrappedPokemonStubs = restTemplate.getForObject(\"https://pokeapi.co/api/v2/pokemon?limit=1118\", PokeStubDTOWrapper.class);\n List<PokeStubDTO> pokemonStubList = wrappedPokemonStubs.getDTOs();\n\n for (PokeStubDTO pokeStub: pokemonStubList) {\n PokeDTO pokeDTO = restTemplate.getForObject(pokeStub.getUrl(), PokeDTO.class);\n\n Optional<Pokemon> pokemonInDB = pokemonRepository.findByName(pokeDTO.getName());\n\n if(pokemonInDB.isEmpty()){\n savePokemon(pokeDTO);\n System.out.println(\"saved: \" + pokeDTO.getName());\n\n } else {\n System.out.println(pokeDTO.getName()+ \" already exists in DB\");\n }\n }\n }", "public void throwBait() {\n\t\tpokemon.eatBait();;\n\t}", "public Planet[] getPlanets() {\n return this.planets;\n }", "public int getWater() {\n\t\treturn water.getValue();\n\t}", "public List<Vet> getAllVets() {\n\t\tentityManager = JPAUtils.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\tvets = entityManager.createQuery(\"from Vet\", Vet.class).getResultList();\n\t\tentityManager.getTransaction().commit();\n\t\tentityManager.close();\n\t\treturn vets;\n\t}", "private double drinkingWaterPhase(double time) {\n\t\t// Call to consume water\n\t\tconsumeWater(true);\n\t\t// Note: must call endTask here to end this task\n\t\tsuper.endTask();\n\t\treturn time *.9;\n\t}", "private void sendPlantToAll(int x ,int y){\r\n\t\tfor(PrintWriter p : players){\r\n\t\t\tif(p != null){\r\n\t\t\t\tsendPlant(p,x,y);\r\n\t\t\t\tp.flush();\r\n\t\t\t}else{\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\t\r\n\t}", "public static void bakeAll() {\n for (HandlerList h : ALL_LISTS) {\n h.bake();\n }\n }", "protected void setTemperatureAll(final int temperature) {\n for (final Map.Entry<ProviderName, Provider<?, ?>> entry : providers.entrySet()) {\n try {\n for (final Light light : entry.getValue().getLights()) {\n try {\n entry.getValue().setTemperature(light.getId(), temperature);\n } catch (final Exception e) {\n final String message = String.format(\"Failed to update temperature for %s\",\n entry.getValue().getClass().getSimpleName());\n LOGGER.error(message, e);\n throw new RuntimeException(message, e);\n }\n }\n } catch (final Exception e) {\n final String message = String.format(\"Failed to fetch information for %s\",\n entry.getValue().getClass().getSimpleName());\n LOGGER.error(message, e);\n throw new RuntimeException(message, e);\n }\n }\n }", "public void rollCall() {\n System.out.println(\"Calling roll for all the animals...\\n\");\n for (int i = 0; i < zoo.length; i++){\n zoo[i].makeNoise();\n }\n System.out.println();\n }", "public void attack() {\n\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n\n lista[i].attack();\n }\n }", "@Override\r\n\tpublic List<shopPet> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "private void addItems() {\n int random3 = 0;\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n random3 = (int)(Math.round(Math.random()*9));\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n if (adjacentCity(i, j) && tileMap[i][j].getCity() == null) { //Only have an item if possibly within city borders\n if (random3 == 0) {\n tileMap[i][j].setResource(new Fruit(i,j)); //Rep Fruit\n } else if (random3 == 1) {\n tileMap[i][j].setResource(new Animal(i,j)); //Rep Animal\n } else if (random3 == 2) {\n tileMap[i][j].setResource(new Forest(i,j)); //Rep Trees (forest)\n } else if (random3 == 3) {\n tileMap[i][j].setResource(new Crop(i,j)); //Rep Crop\n }\n }\n } else {\n if (adjacentCity(i, j)) {\n if (random3 < 2) {\n tileMap[i][j].setResource(new Fish(i, j)); //Rep fish\n } else if (random3 == 4) {\n if (Math.random() < 0.5) {\n tileMap[i][j].setResource(new Whale(i, j)); //Rep whale\n }\n }\n }\n }\n }\n }\n }", "@Test\n\tpublic void testTheTickMethodForEachPet() {\n\t\tVirtualPetShelter testPetShelter = new VirtualPetShelter();\n\t\ttestPetShelter.addPet(\"Rusty\", new VirtualPet(\"Rusty\", \"He doesn't get hungry, he's Dead!\", 5, 30, 20));\n\t\ttestPetShelter.addPet(\"Grazer\", new VirtualPet(\"Grazer\", \"She cant leave.. she's dead too!\", 10, 20, 30));\n\t\ttestPetShelter.tick(); // I created a tick, eclipse erred and asked me to create tick in VPS\n\t\tAssert.assertEquals(32, testPetShelter.virtualPets.get(\"Rusty\").boredom);\n\t\tAssert.assertEquals(22, testPetShelter.virtualPets.get(\"Grazer\").boredom);\n\t}", "public void setBoreholeWaterSupplyPerDay(double w) {\n\n this.waterCapacityBorehole = w;\n }", "public static void giveKIT(Player p) {\r\n\t\tp.getInventory().clear();\r\n\t\tfor (String kitget : kit.keySet()) {\r\n\t\t\tString[] kitdojogador = kit.get(kitget).split(\":\");\r\n\t\t\tString kit1 = kitdojogador[0];\r\n\t\t\tString kit2 = kitdojogador[1];\r\n\t\t\tif (kit1.equalsIgnoreCase(\"PvP\") || kit2.equalsIgnoreCase(\"PvP\")) {\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.WOOD_SWORD));\r\n\t\t\t}\r\n\t\t\tif (kit1.equalsIgnoreCase(\"Archer\") || kit2.equalsIgnoreCase(\"Minerador\")) {\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.BOW));\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.ARROW, 10));\r\n\t\t\t}\r\n\t\t\tif (kit1.equalsIgnoreCase(\"Barbarian\")) {\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.WOOD_SWORD));\r\n\t\t\t}\r\n\t\t\tif (kit1.equalsIgnoreCase(\"Beastmaster\")) {\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.BONE, 3));\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.MONSTER_EGG, 3, EntityType.WOLF.getTypeId()));\r\n\t\t\t}\r\n\t\t\tif (kit1.equalsIgnoreCase(\"Grandpa\")) {\r\n\t\t\t\tItemStack g = new ItemStack(Material.STICK);\r\n\t\t\t\tItemMeta gm =g.getItemMeta();\r\n\t\t\t\tgm.addEnchant(Enchantment.KNOCKBACK, 2, true);\r\n\t\t\t\tg.setItemMeta(gm);\r\n\t\t\t\tp.getInventory().addItem(g);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public List<PetDTO> getAllPetsLivingDTO() {\n EntityManager em = emf.createEntityManager();\n Query query = em.createQuery(\"SELECT NEW dto.PetDTO(p) FROM Pet AS p WHERE p.death = null\");\n return query.getResultList();\n }", "private void feed(Player p){\r\n\t\tSystem.out.println(\"What pet would you like to feed?\");\r\n\t\tArrayList<Food> foodlist = p.getFood();\r\n\r\n\t\tint c = 1;\r\n\t\tfor(Pet pet : p.getPets()){\r\n\t\t\tSystem.out.println(c + \". \" + pet.getPetname());\r\n\t\t\tc++;\r\n\t\t}\r\n\r\n\t\tint selectedpetindex = getNumber(1, p.getPets().size());\r\n\t\tPet selectedpet = p.getPets().get(selectedpetindex - 1);\r\n\t\tSystem.out.println(\"What food do you want to feed \" + selectedpet.getPetname() + \" with?\");\r\n\r\n\t\tc = 1;\r\n\t\tfor(Food f : foodlist){\r\n\t\t\tSystem.out.println(c + \". \" + f.getName());\r\n\t\t\tc++;\r\n\t\t}\r\n\r\n\t\tint foodindex = getNumber(1, foodlist.size());\r\n\t\tFood selectedfood = foodlist.get(foodindex);\r\n\r\n\t\tselectedpet.feed(selectedfood);\r\n\t\tfoodlist.remove(foodindex);\r\n\t\tp.setFood(foodlist);\r\n\r\n\t\tp.setActions(p.getActions() - 1);\r\n\t}", "protected Ocean(){\n for (int i=0; i<10; i++){\n for (int j=0;j<10; j++){\n EmptySea empty = new EmptySea();\n ships[i][j] = empty;\n }\n }\n }", "public Flux<Pet> findPetsAvailable() {\n\n\t\treturn client.get().uri(urlFindByStatus).retrieve().bodyToFlux(Pet.class);\n\t}", "public void placerEauSurVue() {\n\t\tif (partie.getJoueur().getIndiceBateauEnCours() != -1) {\n\t\t\tfor (int i : partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()].getCaseOnId()) {\n\t\t\t\tif (i != -1)\n\t\t\t\t\tvue.setWater(i);\n\t\t\t}\n\t\t}\n\t}", "public void Run()\n {\n for(int i = 0; i < birds.size(); i++)\n {\n Animal thisBird = (Animal)birds.get(i);\n \n // if the bird is all alone, it should just wander around\n if(thisBird.Alone(birds) && wandering)\n {\n PVector wander = thisBird.Wander();\n wander.mult(wanderMult);\n thisBird.ApplyForce(wander);\n }\n // if not alone, apply appropiate behaviours\n else\n {\n if (separating)\n {\n PVector separate = thisBird.Separate(birds);\n separate.mult(separationMult);\n thisBird.ApplyForce(separate);\n }\n if (cohesing)\n {\n PVector cohese = thisBird.Cohesion(birds);\n cohese.mult(cohesionMult);\n thisBird.ApplyForce(cohese);\n }\n if (aligning)\n {\n PVector align = thisBird.Align(birds);\n align.mult(alignMult);\n thisBird.ApplyForce(align);\n }\n if (noiseEnabled)\n {\n PVector noise = thisBird.NoiseMove();\n noise.mult(noiseMult);\n thisBird.ApplyForce(noise);\n }\n } \n thisBird.Tick();\n thisBird.Display();\n birds.set(i, thisBird); \n }\n }", "public double calcNetForceExertedByY(Planet[] allpt) {\n\t\tdouble f = 0;\n\t\tfor (Planet p : allpt) {\n\t\t\tif (this.equals(p)) {continue;}\n\t\t\tf += calcForceExertedByY(p);\n\t\t}\n\t\treturn f;\n\t}" ]
[ "0.6951547", "0.64733183", "0.6149492", "0.6027157", "0.60043734", "0.59187365", "0.58388615", "0.5681043", "0.56788844", "0.5621992", "0.5608779", "0.5605844", "0.5603313", "0.5583677", "0.5527346", "0.5516074", "0.54766136", "0.54710704", "0.5453234", "0.54381955", "0.543155", "0.5426738", "0.54175806", "0.54008186", "0.53806394", "0.53696054", "0.5365952", "0.53123283", "0.5307204", "0.52841437", "0.52342284", "0.5226324", "0.5222498", "0.5204134", "0.5197915", "0.5186431", "0.51719785", "0.51706153", "0.5151152", "0.5142143", "0.5127672", "0.5122522", "0.5116599", "0.5112486", "0.5104467", "0.50946486", "0.50881135", "0.5075118", "0.5073097", "0.5070619", "0.50508475", "0.5045815", "0.5029121", "0.50252306", "0.5015911", "0.5015356", "0.50103205", "0.5002067", "0.50014424", "0.4980244", "0.49728882", "0.49716866", "0.49602988", "0.49449116", "0.49420148", "0.49419138", "0.49377763", "0.4936685", "0.49339283", "0.49322444", "0.4926504", "0.49130416", "0.4908926", "0.48929405", "0.48891458", "0.48874542", "0.48868343", "0.4880285", "0.48784092", "0.48685932", "0.48669657", "0.4864567", "0.48639557", "0.4862147", "0.48610145", "0.4860056", "0.4857512", "0.4849087", "0.48473406", "0.48451594", "0.48445264", "0.483327", "0.48321605", "0.48214552", "0.48173404", "0.4812058", "0.4810612", "0.48100224", "0.48096794", "0.48069733" ]
0.86994416
0
Method to clean all pets
public void cleanAll() { for (VirtualPet p : shelterPets.values()) { p.cleanPet(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clean();", "public void clean();", "public void clean();", "public void clean();", "static void wipeLocations(){\n\t \tfor (int i= 0; i < places.length; i++){\n\t\t\t\tfor (int j = 0; j < places[i].items.size(); j++)\n\t\t\t\t\tplaces[i].items.clear();\n\t\t\t\tfor (int k = 0; k < places[i].receptacle.size(); k++)\n\t\t\t\t\tplaces[i].receptacle.clear();\n\t \t}\n\t \tContainer.emptyContainer();\n\t }", "private void deleteAllPets() {\n// int rowsDeleted = getContentResolver().delete(ArtistsContracts.GenderEntry.CONTENT_URI, null, null);\n// Log.v(\"CatalogActivity\", rowsDeleted + \" rows deleted from pet database\");\n }", "public void cleanProposition();", "public void cleanUp() {\r\n\t\tscalerStore.cleanUp();\r\n\t\tv2Store.cleanUp();\r\n\t\tv3Store.cleanUp();\r\n\t\tv4Store.cleanUp();\r\n\t\tvnStore.cleanUp();\r\n\t\tm22Store.cleanUp();\r\n\t\tm23Store.cleanUp();\r\n\t\tm24Store.cleanUp();\r\n\t\tm32Store.cleanUp();\r\n\t\tm33Store.cleanUp();\r\n\t\tm34Store.cleanUp();\r\n\t\tm42Store.cleanUp();\r\n\t\tm43Store.cleanUp();\r\n\t\tm44Store.cleanUp();\r\n\t\tmnnStore.cleanUp();\r\n\t}", "public void clearAllPilot() {\n\t\tpilotID.clear(); \n\t\tfirstName.clear(); \n\t\tlastName.clear(); \n\t\tdob.clear(); \n\t\temployeeNumber.clear(); \n\t\tdateOfHire.clear(); \n\t\tdateLeftCAF.clear(); \n\t}", "public void cleanup() {\r\n\t\tsuper.cleanup();\r\n\t\tfor (int i = 0; i < _composites.size(); i++) {\r\n\t\t\t_composites.get(i).cleanup();\t\r\n\t\t}\r\n\t}", "public void clean();", "public void clearAll() {\n bikeName = \"\";\n bikeDescription = \"\";\n bikePrice = \"\";\n street = \"\";\n zipcode = \"\";\n city = \"\";\n bikeImagePath = null;\n }", "void clean();", "void clean();", "void clean();", "public void cleanUp(){\n for(ShaderProgram sp : shaderlist){\n sp.cleanup();\n }\n }", "public void destroyForAll() {\n super.destroyForAll();\n }", "private void cleanAfterMatch() {\n\t\t// clean all consumables from all calculators\n\t\tfor (AggregationCalculator calc : calculators.values()) {\n\t\t\tcalc.cleanConsumables();\n\t\t}\n\t}", "public void clearAll();", "public void clearAll();", "public abstract void clean();", "public abstract void clean();", "public abstract void clean();", "public void destroy() {\n\t\tfor (GroupPaddle groupPaddle : paddles) {\n\t\t\tPhysicsWorld.getPhysicsWorld().destroy(groupPaddle);\n\t\t}\n\t}", "protected abstract void clearAll();", "public void emptyBasket() {\n balls.clear();\n }", "@Override\r\n\tpublic void reset() {\r\n\t\tpilots.clear();\r\n\t\tcabinCrew.clear();\r\n\r\n\t}", "void clear() throws PapooseException;", "public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}", "private void purgeAllOverflowEM_EM() {\n float mass = 0;\n for (GT_MetaTileEntity_Hatch_InputElemental tHatch : eInputHatches) {\n if (GT_MetaTileEntity_MultiBlockBase.isValidMetaTileEntity(tHatch)) {\n tHatch.updateSlots();\n }\n mass += tHatch.overflowMatter;\n tHatch.overflowMatter = 0;\n }\n for (GT_MetaTileEntity_Hatch_OutputElemental tHatch : eOutputHatches) {\n if (GT_MetaTileEntity_MultiBlockBase.isValidMetaTileEntity(tHatch)) {\n tHatch.updateSlots();\n }\n mass += tHatch.overflowMatter;\n tHatch.overflowMatter = 0;\n }\n cleanMassEM_EM(mass);\n }", "void clearAll();", "void clearAll();", "@Override\n public void clean() {\n\n }", "public void cleanUp();", "public void cleanUp();", "public void cleanToAll() {\n\t\tfor(ClientThread player: players) {\n\t\t\tplayer.send(new Package(\"CLEAN\",null));\n\t\t}\n\t}", "public void clean() {\n coffeeMachine.setDefaultCupsBeforeClean();\n }", "private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }", "public void cleanAll() {\r\n\t\ttos.clear();\r\n\t\tbcs.clear();\r\n\t\tccs.clear();\r\n\t\tattachments.clear();\r\n\t\tinLines.clear();\r\n\t\tsubject= null;\r\n\t\ttext= null;\r\n\t\tfrom= null;\r\n\t}", "public void clearAllStacks() {\n\t\tfor (CardStack stack : cardStacks) {\n\t\t\tstack.clearCards();\n\t\t}\n\t}", "public void reset(){\n star.clear();\n planet.clear();\n }", "void cleanUp();", "void cleanUp();", "void cleanUp();", "void cleanse() {\n\t\t\tSystem.out.println(\"liver cleansing\");\n\t\t\tSystem.out.println(\"age is: \" + age);\n\t\t\tSystem.out.println(\"weight is: \" + weight);\n\t\t\tSystem.out.println(\"id is: \" + id);\n\t\t\t\n\t\t}", "public void clean() {\n\t\tSystem.out.println(\"Guitar is clean\");\n\t}", "public void destroyAll() {\n children.destroyAll();\n }", "private void clean() {\n nodesToRemove.clear();\n edgesToRemove.clear();\n }", "void clean(Player p);", "public void cleanSlate(View view) {\n Log.d(LOG, \"in cleanSlate\");\r\n dbh.deleteAllData();\r\n Log.d(LOG, \"all data deleted\");\r\n }", "void cleanUpEventsAndPlaces();", "public CardCollection destroyAllCards() ;", "public void cleanup() {\n this.index = new TreeMap<String, PostingsList>();\n this.count = 0;\n }", "public void clean()\r\n {\r\n this.extension = null;\r\n this.extensionValueList = null;\r\n this.extensionLabelList = null;\r\n this.archivoVO = null;\r\n this.archivoVOValueList = null;\r\n this.archivoVOLabelList = null;\r\n this.nuevoNombre = null;\r\n this.nuevoNombreValueList = null;\r\n this.nuevoNombreLabelList = null;\r\n this.action = null;\r\n this.actionValueList = null;\r\n this.actionLabelList = null;\r\n }", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "public void clean() {\r\n\t\t\r\n\t\tlogger.trace(\"Enter clean\");\r\n\t\t\r\n\t\tdata.clear();\r\n\t\tfireTableDataChanged();\r\n\t\t\r\n\t\tlogger.trace(\"Exit clean\");\r\n\t}", "public void deleteAllOptset() {\n this.optionSet = new ArrayList<OptionSet>();\n }", "public void cleanup() {\n if (cleaned) {\n return;\n }\n for (val cleanup : cleanups) {\n cleanup.accept(this);\n }\n clear(true);\n cleanups.clear();\n attributes.clear();\n if (parent != null) {\n parent.remove(this);\n }\n cleaned = true;\n }", "public void resetPacks() {\n user.resetPacks();\n saveData();\n }", "public void cleanUp() {\n if (penv != null) {\n penv.cleanup();\n }\n List<ONDEXGraph> indexed = new LinkedList<ONDEXGraph>();\n Set<String> graphFolders = new HashSet<String>();\n for (Entry<ONDEXGraph, String> ent : indexedGraphs.entrySet()) {\n if (!indeciesToRetain.contains(ent.getValue())) graphFolders.add(new File(ent.getValue()).getParent());\n indexed.add(ent.getKey());\n }\n for (ONDEXGraph graph : indexed) removeIndex(graph, null);\n for (String graphDir : graphFolders) {\n try {\n DirUtils.deleteTree(graphDir);\n } catch (IOException e) {\n }\n }\n }", "protected void cleaningUp() {\n\t}", "public void cleanup(){\n for(int i = 0; i < 3 && Array != null; ++i){\n if( Array[i] != null ) {\n Array[i].cleanup();\n Array[i] = null;\n }\n Array = null;\n }\n }", "private void DropEverything() throws isisicatclient.IcatException_Exception {\n List<Object> allGroupsResults = port.search(sessionId, \"Grouping\");\r\n List tempGroups = allGroupsResults;\r\n List<EntityBaseBean> allGroups = (List<EntityBaseBean>) tempGroups;\r\n port.deleteMany(sessionId, allGroups);\r\n\r\n //Drop all rules\r\n List<Object> allRulesResults = port.search(sessionId, \"Rule\");\r\n List tempRules = allRulesResults;\r\n List<EntityBaseBean> allRules = (List<EntityBaseBean>) tempRules;\r\n port.deleteMany(sessionId, allRules);\r\n\r\n //Drop all public steps\r\n List<Object> allPublicStepResults = port.search(sessionId, \"PublicStep\");\r\n List tempPublicSteps = allPublicStepResults;\r\n List<EntityBaseBean> allPublicSteps = (List<EntityBaseBean>) tempPublicSteps;\r\n port.deleteMany(sessionId, allPublicSteps);\r\n }", "public void waterAll() {\n\t\tfor (VirtualPet p : shelterPets.values()) {\n\t\t\tp.waterPet();\n\t\t}\n\t}", "public void removeAll() {\n\t\tsynchronized (mNpcs) {\n\t\t\tmNpcs = Collections.synchronizedList(new ArrayList<Npc>());\n\t\t\tmDemonCount = 0;\n\t\t\tmHumanCount = 0;\n\t\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}", "@Override\n\tpublic void clearAll() {\n\t\t\n\t}", "public void clear()\n {\n dessertList.clear();\n }", "private void clearStragglers() {\n for (int i = 0; i < game.gridPieces.length; i++) {\n GridPiece piece = game.gridPieces[i];\n\n if (piece.state == game.STATE_TEMP) {\n piece.restoreState();\n //restoreState(piece);\n } else if (piece.state == game.STATE_TEMP_NOTOUCH) {\n piece.setState(game.STATE_FINAL);\n }\n }\n }", "public void cleanUp(){\n\t\tSystem.out.println(\"Destroying beans cleanUp method() for triangle\");\n\t}", "@After\n public void teardown() {\n for (UseTypeEntity thisEntity : entities) {\n me.deleteUseTypeEntity(thisEntity);\n }\n\n // clean up\n me = null;\n testEntity = null;\n entities = null;\n\n }", "@Override\n\tpublic void cleanUp() {\n\t\tofferingStrategy = null;\n\t\tacceptConditions = null;\n\t\topponentModel = null;\n\t\tnegotiationSession = null;\n\t\tutilitySpace = null;\n\t\tdagent = null;\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "public void Clean()\n\t{\n\t\tstorage.clear();\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (Paper paper : findAll()) {\n\t\t\tremove(paper);\n\t\t}\n\t}", "public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }", "public void clearAll()\n {\n textureMap.clear();\n componentMap.clear();\n }", "public void deleteAll() {\n\n\t}", "private void reset() {\n\n\n spaceShips.clear();\n playerOne = null;\n playerTwo = null;\n friendlyBullets.clear();\n enemyBullets.clear();\n powerUps.clear();\n enemyGenerator.reset();\n difficulty.reset();\n Bullets.BulletType.resetSpeed();\n\n for (int i = 0; i < enemies.size(); i++) {\n enemies.get(i).getEnemyImage().delete();\n }\n enemies.clear();\n }", "public void deleteAll()\n\t{\n\t}", "public void deleteAll()\n\t{\n\t}", "public void deleteAll() {\n\t\t\n\t}", "public void removeAllPawns(){\n\n for (Map.Entry<Integer, ImageView> entry : actionButtons.entrySet()) {\n Image image = null;\n entry.getValue().setImage(image);\n }\n\n for (Map.Entry<Integer, ImageView> entry : harvestBox.entrySet()) {\n\n Image image = null;\n entry.getValue().setImage(image);\n harvestBoxFreeSlot = 0;\n\n }\n\n for (Map.Entry<Integer, ImageView> entry : productionBox.entrySet()) {\n\n Image image = null;\n entry.getValue().setImage(image);\n productionBoxFreeSlot = 0;\n\n }\n\n for (Map.Entry<Integer, ImageView> entry : gridMap.entrySet()) {\n Image image = null;\n entry.getValue().setImage(image);\n gridFreeSlot = 0;\n }\n }", "public void cleanUp() {\n\t\tfor (int i = 0; i < 24; i++) {\r\n\t\t\tPlayerAssistant.itemOnInterface(c, 26099, i, -1, -1);\r\n\t\t}\r\n\t\tc.getPA().sendNewString(\"0\", 26013);\r\n\t}", "public void emptyPot() {\r\n\t\ttotalPot = 0;\r\n\t}", "public void cleanPile() {\n while (!emptyPile()) {\n eraseNode();\n }\n }", "public static void clearWorld() {\n\t\t// Complete this method.\n\t\tfor(Critter i: population){\n\t\t\tpopulation.remove(i);\n\t\t}\n\t\tfor(Critter j: babies){\n\t\t\tbabies.remove(j);\n\t\t}\n\t\tpopulation.clear();\n\t\tbabies.clear();\n\n\n\t}", "void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}", "public static void clean() {\n\t\tcleaned = true;\n\t\tCleaner.clean(getSequence());\n\t}", "private void clean_all() {\n\t\tpkttype=0;\r\n\t\tpacket=new byte[]{0};\r\n\t\tID=new byte[]{0};\r\n\t\tIP=new byte[]{0};\r\n\t\tTTL=0;\r\n\t\tport_no=new byte[]{0};\r\n\t\treqrep=0;\r\n\t\tdata=new byte[]{0};\r\n\t\tpaylength=new byte[]{0};\r\n\t}", "public void cleanUp(){\n //Clean up the parent class, i.e. close pipes.\n super.cleanUp();\n }", "public static final void clear ()\n {\n ITEMS.clear();\n }", "public void clean() {\n\t\tdata = new ServerData();\n\t\tdataSaver.clean();\n\t}", "private void clean() {\n // TODO: Your code here.\n for (Long id : vertices()) {\n if (adj.get(id).size() == 1) {\n adj.remove(id);\n }\n }\n }", "private void clearAllFilter() {\n }", "private void deleteCartAll() {\n cartTable.getItems().removeAll(componentsCart);\n\n //Clear ComponentsCart List\n componentsCart.clear();\n updateTotal();\n }", "public void cleanUp() {\r\n\t\tsuper.cleanUp() ;\r\n\t}", "public void resetComputation()\n {\n for (Block block : this.blocks) {\n block.setShadow(null);\n block.deleteInputValues();\n }\n }", "public void clean() {\n\t\tfor(ComponentConfig comp: components ) {\r\n\t\t\tList<Integer> cleanCalls = new ArrayList<Integer>();\r\n\t\t\tif(comp.getCalls()!=null) {\r\n\t\t\t\tfor(int call:comp.getCalls()) {\r\n\t\t\t\t\tif(hasComp(call)) {\r\n\t\t\t\t\t\tcleanCalls.add(call);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tint[] result = new int[cleanCalls.size()];\r\n\t\t\t\tint i=0;\r\n\t\t\t\tfor(Integer call: cleanCalls) {\r\n\t\t\t\t\tresult[i] = call;\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\tcomp.setCalls(result);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t// remove duplicate\r\n\t\tList<ComponentConfig> newComponentList = new ArrayList<ComponentConfig>();\r\n\t\tthis.compids.clear();\r\n\t\tfor(ComponentConfig c:components) {\r\n\t\t\tif(!compids.contains(c.getId())) {\r\n\t\t\t\tnewComponentList.add(c);\r\n\t\t\t\tcompids.add(c.getId());\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.components = newComponentList;\r\n\t}" ]
[ "0.6468332", "0.6468332", "0.6468332", "0.6468332", "0.6430603", "0.63895", "0.63769794", "0.6346967", "0.6312898", "0.62493783", "0.62405616", "0.6204552", "0.6188561", "0.6188561", "0.6188561", "0.6176706", "0.614048", "0.60833085", "0.60702527", "0.60702527", "0.604772", "0.604772", "0.604772", "0.6034163", "0.6032352", "0.60169715", "0.5994677", "0.5946578", "0.5941876", "0.5936357", "0.59269243", "0.59269243", "0.5887869", "0.58713484", "0.58713484", "0.58638734", "0.5863352", "0.58558154", "0.5855732", "0.5847753", "0.583992", "0.5789381", "0.5789381", "0.5789381", "0.57823235", "0.57682043", "0.5759577", "0.5750142", "0.5746518", "0.5746154", "0.57435423", "0.57429075", "0.5735309", "0.573421", "0.57044744", "0.57044744", "0.56976473", "0.5697123", "0.56938267", "0.56727165", "0.56660914", "0.56540287", "0.5653191", "0.565121", "0.5645373", "0.56391543", "0.5638211", "0.56339294", "0.5629655", "0.56259763", "0.56180406", "0.5617345", "0.56096345", "0.56022084", "0.55906945", "0.5590642", "0.5585648", "0.55829835", "0.5581774", "0.5580663", "0.5572643", "0.5572643", "0.5571768", "0.55704796", "0.55703104", "0.5552723", "0.5552632", "0.55519855", "0.5548619", "0.5547273", "0.5543597", "0.5540078", "0.5538165", "0.5531849", "0.55230814", "0.5516589", "0.5512597", "0.55084956", "0.5507477", "0.5493919" ]
0.8375389
0
Method to return a pet from the map by name
public VirtualPet getPet(String name) { return shelterPets.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Pet getPet(String name) {\n\t\treturn getPet(name, false);\n\t}", "public Pet getPet(String name, boolean ignoreNew) {\n\t\tname = name.toLowerCase();\n\t\tfor (Pet pet : getPetsInternal()) {\n\t\t\tif (!ignoreNew || !pet.isNew()) {\n\t\t\t\tString compName = pet.getName();\n\t\t\t\tcompName = compName.toLowerCase();\n\t\t\t\tif (compName.equals(name)) {\n\t\t\t\t\treturn pet;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getPetName();", "public Prostor getProstor(String name){\r\n return mapa.get(name);\r\n }", "static public Person searchPerson(String name) {\n return personMap.get(name);\n }", "public static Animal getByName(String name) {\n for(var animal : animals){\n if(animal.getName().equalsIgnoreCase(name))\n return animal;\n }\n return null;\n\n //Diffrent way of finding the animal\n /*return animals.stream()\n .filter(a -> a.getName().equalsIgnoreCase(name))\n .findAny()\n .orElse(null);*/\n }", "protected Pokemon getPokemonByIdOrName(String idOrName) {\n Optional<Pokemon> pokemon;\n if (idOrName.matches(\"[0-9]+\")) {\n pokemon = pokemonDao.getPokemonById(Integer.valueOf(idOrName));\n } else {\n pokemon = pokemonDao.getPokemonByName(idOrName.toLowerCase());\n }\n if (!pokemon.isPresent()) {\n throw new PokemonNotFoundException(idOrName);\n }\n return pokemon.get();\n }", "public Dog getDogFromName(String name){\n for(Dog d : dogs){\n if(d.getName().equals(name)){\n return d;\n }\n }\n return null;\n }", "public T get(String name) {\n for (int i = maps.size() - 1; i >= 0; i--) {\n HashMap<String, T> scope = maps.get(i);\n T t = scope.get(name);\n if (t != null) return t; // Found it!\n }\n return null; // Not found\n }", "public Optional<List<Pokemon>> findByName(String name);", "public Stock getFromMap(String name){\n\tif(table.containsKey(name)){\n\tStock rval = table.get(name);\n\treturn rval;\n\t}\n\telse{\n\t\t//call pull from URL and return newStock \n\t\taddToMap(String name, Stock newStock);\n\t\tgetFromMap(name);\n\t}\n}", "public T lookup( String name )\r\n {\r\n T result = null;\r\n \r\n for( HashMap<String,T> table : tables )\r\n {\r\n result = table.get( name );\r\n if( result!=null ) break;\r\n }\r\n \r\n return result;\r\n }", "Expertise findByName(String name);", "@Override\r\n\tpublic Plate findByName(String nom) {\n\t\treturn null;\r\n\t}", "public Person getPerson(String personName)\n {\n Person currentPerson = characters.get(0);\n // get each person object in characters's array list.\n for (Person person : characters){\n if (person.getName().equals(personName)){\n currentPerson = person;\n }\n }\n return currentPerson;\n }", "public PokemonSpecies findSeenSpeciesData(String name) throws PokedexException {\n PokemonSpecies rv = null;\n String nameLower = name.toLowerCase();\n Iterator<PokemonSpecies> it = pokedex.iterator();\n PokemonSpecies currentSpecies;\n while(it.hasNext()) {\n currentSpecies = it.next();\n if(currentSpecies.getSpeciesName().equals(nameLower)) {\n rv = currentSpecies;\n break;\n }\n }\n if(rv == null) {\n throw new PokedexException(String.format(Config.UNSEEN_POKEMON, name));\n }\n return rv;\n }", "E getByName(String name);", "public Individual getIndividualByName(String name) throws ObjectNotFoundException{\n \t\n\t\tList<Individual> individualList = new ArrayList<>();\n\t\tindividualList = (new TeamsJsonReader()).getListOfIndividuals();\n\t\tIndividual individual = null;\n\t\tint size, counter = 0;\n\t\tfor (size = 0; size < individualList.size(); size++) {\n\t\t\tcounter = 0;\n\n\t\t\tindividual = individualList.get(size);\n\n\t\t\tif (individual.getName().equals(name)) {\n\t\t\t\tcounter = 1;\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (size == individualList.size() && counter == 0)\n\t\t\tthrow new ObjectNotFoundException(\"individual\", \"name\", name);\n\n\t\treturn individual;\n\n\n }", "@Override\r\n\tpublic Country find(String name) {\r\n\t\tCountry retDM = null;\r\n\r\n\t\tif (name == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treadMapFromFile();\r\n\t\t\tretDM=this.daoMap.get(name);\r\n\r\n\t\t} catch (JsonSyntaxException | JsonIOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn retDM;\r\n\t}", "Object find(String name);", "public Person getPerson(String personName) {\n \tqueryExecutor.select(personName);\n return personMap.get(personName);\n }", "public List<Map<String, String>> searchByName(String name) throws IOException {\n\t\tString queryString = \n\t\t\t\"PREFIX pkm: <http://pokedex.dataincubator.org/pkm/> \" +\n\t\t\t\"SELECT \" +\n\t\t\t\" ?number\" +\n\t\t\t\" ?name\" +\n\t\t\t\" ?numberAndName\" + \n\t\t\t\" (GROUP_CONCAT(?typeName;separator=\\\"|\\\") as ?types)\" +\n\t\t\t\" ?color\" +\n\t\t\t\" ?height\" +\n\t\t\t\" ?weight\" +\n\t\t\t\" (str(?image) as ?imageUrl)\" + // get url string from image RDF node\n\t\t\t\" ?attack\" +\n\t\t\t\" ?defense\" +\n\t\t\t\" ?spAttack\" +\n\t\t\t\" ?spDefense\" +\n\t\t\t\" ?speed\" +\n\t\t\t\" ?hp\" +\n\t\t\t\" ?description \" +\n\t\t\t\"WHERE {\" +\n\t\t\t\" ?pokemon <http://www.w3.org/2000/01/rdf-schema#label> ?name. \" +\n\t\t\t\" ?pokemon pkm:nationalNumber ?number. \" +\n\t\t\t\" BIND(CONCAT(?name, \\\" #\\\", str(?number)) as ?numberAndName) \" + // used for UI search\n\t\t\t\" ?pokemon pkm:type ?type. \" +\n\t\t\t\" ?type <http://www.w3.org/2000/01/rdf-schema#label> ?typeDescription. \" +\n\t\t\t\"\t BIND(REPLACE(?typeDescription, \\\" Type\\\", \\\"\\\") AS ?typeName). \" +\n\t\t\t\" ?pokemon pkm:colour ?color. \" +\n\t\t\t\" ?pokemon pkm:description ?description. \" +\n\t\t\t\" ?pokemon pkm:length ?height. \" +\n\t\t\t\" ?pokemon pkm:weight ?weight. \" +\n\t\t\t\" ?pokemon <http://xmlns.com/foaf/0.1/depiction> ?image. \" +\n\t\t\t\" ?pokemon pkm:baseAttack ?attack. \" +\n\t\t\t\" ?pokemon pkm:baseDefense ?defense. \" +\n\t\t\t\" ?pokemon pkm:baseSpAtk ?spAttack. \" +\n\t\t\t\" ?pokemon pkm:baseSpDef ?spDefense. \" +\n\t\t\t\" ?pokemon pkm:baseSpeed ?speed. \" +\n\t\t\t\" ?pokemon pkm:baseHP ?hp. \" +\n\t\t\t\" FILTER strStarts(?name, \\\"\" + name + \"\\\" ) \" +\n\t\t\t\"\t FILTER (langMatches(lang(?description), \\\"EN\\\")) \" +\t// only return English description\n\t\t\t\"\t FILTER contains(str(?image), \\\"legendarypokemon.net\\\") \" + // only return url of image from legendarypokemon.net\n\t\t\t\"}\" +\n\t\t\t\"GROUP BY ?number ?name ?numberAndName ?color ?description ?height ?weight ?image ?attack ?defense ?spAttack ?spDefense ?speed ?hp \" +\n\t\t\t\"ORDER BY ?name LIMIT 10\"; // return 10 results ordered by name\n\t\treturn runQuery(queryString);\n\t}", "@Nullable\n @Contract(pure = true)\n public Entry byName(@NotNull String name) {\n return mappingByName.get(name);\n }", "public Pet getPet() {\n return pet;\n }", "List<Map<String, Object>> searchIngredient(String name);", "public abstract T findByName(String name) ;", "public PersonEntity getPerson(String personName, String bankName) {\n\n return personEntitiesMap.get(personName + \"_\" + bankName);\n }", "public Map<String, Summoner> getSummoner(String... names){\n return get(String.format(\"by-name/%s\", Joiner.on(',').skipNulls().join(Arrays.asList(names))))\n .getEntity(new GenericType<Map<String, Summoner>>(){});\n }", "public Artist getByName(String name);", "public Entity getEntity(String name) {\r\n\r\n for (int i = 0; i < entities.size(); i++) {\r\n if (name.equals(entities.get(i).nume)) {\r\n\r\n return entities.get(i);\r\n }\r\n }\r\n return null;\r\n }", "public Object getTag(String name)\r\n\t{\r\n\t\treturn tagMap.get(name);\r\n\t}", "Heaver findByName(String name);", "@Override\n\tpublic Pizza getPizzaByName(String pizzaName) {\n\t\treturn mongoTemplate.findOne(Query.query(Criteria.where(\"name\").in(pizzaName)), Pizza.class);\n\t}", "RiceCooker getByName(String name);", "Tag findByName(String name);", "public Player getPlayerFromList(String name){\n for (Player player : players){\n if (player.getName().equals(name)){\n return player;\n }\n }\n return null; //This will never happen. Will always be found. Only called from the takeoverTerritory method\n }", "Person findPerson(String name);", "ResultSet searchName(String name) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * FROM Pokemon WHERE Name = \" + \"'\" + name + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }", "public Perfil findByName(PerfilName perfilName);", "public T get(String name) {\n\t\treturn get(name, 0);\n\t}", "public static Profile lookup(String name) {\n for (Profile p: values()) {\n if (name.equals(p.name))\n return p;\n }\n return null;\n }", "@Override\n public String toString() {\n return PET_NAME;\n }", "public User getPlayer(String name) {\n\t\tUser ret = null;\n\t\tList<User> searchResult = this.players.stream().filter(x->x.name.equals(name)).collect(Collectors.toList());\n\t\tif (!searchResult.isEmpty()) {\n\t\t\tret = searchResult.get(0);\n\t\t}\n\t\treturn ret;\n\t}", "Skill getSkill(String name);", "@Test\n\tpublic void testVirtualPetShelterHasACollectionOfVirtualPets() {\n\t\tVirtualPetShelter testPetShelter = new VirtualPetShelter(); \n\n\t\tMap<String, VirtualPet> virtualPets = new HashMap<String, VirtualPet>(); // I want a map of VP's\n\t\t// Map<Key, Value (instances of virtualPet)> - the key will be the name of pet, the key is assigned to the pets instance\n\t\tString pet1 = \"Tui\"; //this is my first key called \"Tui\"\n\t\tVirtualPet tui = new VirtualPet(\"Tui\", \"Is a cute little calico\", 30, 30, 30);\n\t\tvirtualPets.put(pet1, tui);\n\n\t\tString pet2 = \"Ditch\";\n\t\tVirtualPet ditch = new VirtualPet(\"Ditch\", \"Is as cunning as a shithouse rat\", 10, 40, 15);\n\t\tvirtualPets.put(pet2, ditch);\n\n\t\tString pet3 = \"Blusey\";\n\t\tVirtualPet bluesy = new VirtualPet(\"Bluesy\", \"A black and tan Main coon who is a mushy cat who loves snuggles\",\n\t\t\t\t5, 5, 5);\n\t\tvirtualPets.put(pet3, bluesy);\n\n\t\tString pet4 = \"Jazzy\";\n\t\tVirtualPet jazzy = new VirtualPet(\"Jazzy\", \"Grey tiger who hunter who who be great in the barn\", 15, 20, 25);\n\t\tvirtualPets.put(pet4, jazzy);\n\n\t\tString pet5 = \"Nigel\";\n\t\tVirtualPet nigel = new VirtualPet(\"Nigel\", \"A big old ginger cat\", 10, 10, 50);\n\t\tvirtualPets.put(pet5, nigel);\n\n\t\t// Moved the Map/HashMap below to the VirtualPetShelter\n\t\t// Map<String, VirtualPet> virtualPets = new HashMap<String, VirtualPet>();\n\t\t// Then I created a method in VirtualPetShelter which returned the VirtualPets\n\t\t// \"Values\"\n\n\t\tCollection<VirtualPet> virtualPetCollection = testPetShelter.getVirtualPets(); //Initially got error, eclipse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// asked me to create collection in VPS\n\n\t\tAssert.assertNotNull(testPetShelter.virtualPets);//I got error, eclipse asked me to create a HashMap in VPS\n\t\tAssert.assertEquals(virtualPetCollection, testPetShelter.virtualPets.values()); //\".values() is a Maps \n\t\t //way to return a \"Collection\"\n\t\tAssert.assertEquals(\"Nigel\", virtualPets.get(pet5).name); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(30, virtualPets.get(pet1).hunger); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(40, virtualPets.get(pet2).boredom); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(5, virtualPets.get(pet3).thirst); //test value of local HashMap (moved later to VPS)\n\t\tAssert.assertEquals(\"Grey tiger who hunter who who be great in the barn\", virtualPets.get(pet4).description);\n\t}", "public static Texture get(String name){\n for(TextureHandler t : textures){\n if(t.getName().toLowerCase().equals(name.toLowerCase())){\n return t.getTexture();\n }\n }\n return error;\n }", "private MorphCategory get(String name)\n {\n MorphCategory cat = this.categoryMap.get(name);\n\n if (cat == null)\n {\n this.categoryMap.put(name, cat = new MorphCategory(this, name));\n }\n\n return cat;\n }", "public Service consultName(String name){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \tcriteria.add(Restrictions.like(\"name\",name));\r\n \treturn (Service)criteria.list().get(0);\r\n }", "public Landmark getByName(String name){\n if( name == null ){\n return null;\n }\n else{\n return this.map.get(name);\n }\n }", "public java.lang.String getPetName() {\n return localPetName;\n }", "public static Item getItemByName(String name)\n\t{\n\t\tfor(Item i : itemCollections)\n\t\t{\n\t\t\tif(i.getName() == name)\n\t\t\t\treturn i;\n\t\t}\n\t\tfor(Equipment equ : equipmentCollections)\n\t\t{\n\t\t\tif(equ.getName() == name)\n\t\t\t\treturn equ;\n\t\t}\n\t\treturn null;\n\t}", "protected Type getPokemonTypeByName(String typeName) {\n Optional<Type> type = typeDao.getTypeByName(typeName);\n if (!type.isPresent()) {\n throw new TypeNotFoundException(typeName);\n }\n return type.get();\n }", "public String searchByName(String name){\n for(Thing things: everything){\n if(things.getName().equalsIgnoreCase(name)){\n return things.toString();\n }\n }\n return \"Cannot Find given Name\";\n }", "public Card getWeapon(String weaponName) {\n return card.getWeapon(weaponName);\n }", "public static Map<String,Planet> getPlanetsByName() { return planetsByName; }", "private static Person findPersonByNameWithAllDogs(EntityManager em, String name) {\n\t\tQuery query = em.createQuery(\"select p from Person p join fetch p.dogs where p.name = :name\", Person.class);\n\t\tquery.setParameter(\"name\", name);\n\t\treturn (Person) query.getSingleResult();\n\t}", "Map<String, Object> getIngredient(long foodID);", "List<Goods> findByName(String name);", "public Object get(String aName) { return _attrMap.get(aName); }", "public String getPotionName()\r\n/* 119: */ {\r\n/* 120:121 */ return Potion.potionList[this.id].getName();\r\n/* 121: */ }", "@SuppressWarnings(\"unchecked\")\r\n public static <T> T getProperty(String name) {\r\n return (T) propertyMap.get(name);\r\n }", "Car findByName(String name);", "public NautiLODResult get(String NautiLODName) {\n for (NautiLODResult NautiLODI : this)\n if (NautiLODI.name.equals(NautiLODName))\n // Found an instance with the specified name\n return NautiLODI;\n // No matching instance for specified name\n return null;\n }", "public Gift getGift(String name) {\r\n return GiftList.get(name);\r\n }", "public String getName() { return (String)get(\"Name\"); }", "public Object get(String itemName);", "public Person getPerson(String idOrUrl) {\n return personMap.get(idOrUrl);\n }", "public Pokemon retrievePokemon(String pokemonName, int boxNum) {\r\n\t\tif(pokemonBoxes.get(boxNum).isInTheBox(pokemonName)) {\r\n\t\t\treturn pokemonBoxes.get(boxNum).getPokemon(pokemonName);\r\n\t\t}else {\r\n\t\t\tSystem.out.println(pokemonName + \" is not inside box \" + boxNum);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static Item getItem(String itemName)\n {\n Item temp = null;\n for (Item inventory1 : inventory) {\n if (inventory1.getName().equals(itemName)) {\n temp = inventory1;\n }\n }\n return temp;\n }", "@Test\n\tpublic void testPetWhenGetNameViolet() {\n\t\tPet pet = new Pet(\"Violet\", \"arf\");\t\t\n\t\tString expect = \"Violet\";\n\t\tString result = pet.getPetName();\t\t\n\t\tassertEquals(expect, result);\t\n\t}", "public ArrayList<Pets> getPetList() {\n\n ArrayList<Pets> petList = new ArrayList<>();\n\n try {\n Statement statement = conn.createStatement();\n String sqlStatement = \"SELECT name FROM pets\";\n\n ResultSet rs = statement.executeQuery(sqlStatement);\n\n while (rs.next()) {\n //Create a new Pets object\n Pets pet = new Pets();\n pet.setName(rs.getString(\"name\"));\n\n System.out.println(pet.getName());\n\n }\n } catch (SQLException exception) {\n System.out.println(\"Error getting Pet name list: \" + exception);\n }\n return petList;\n }", "public Product getProductWithName(String name) {\n for (Product s : products) {\n if (s.getName() == name) { return s;}\n }\n return null;\n }", "public abstract SmartObject findIndividualName(String individualName);", "Product getProductByName(String name) throws EntityNotFoundException;", "void chooseMap(String username);", "@GetMapping(\"/pets/{id}\")\n public ResponseEntity<Pet> getPet(@PathVariable Long id) {\n log.debug(\"REST request to get Pet : {}\", id);\n Optional<Pet> pet = petService.findOne(id);\n return ResponseUtil.wrapOrNotFound(pet);\n }", "@Override\n\tpublic Eleve findById(int id) {\n\t\treturn map.get(id);\n\t}", "private Shape find(String name, ArrayList<Shape> listShapes, ArrayList<Command> commands) {\r\n for (Shape shape : listShapes) {\r\n if (shape.getName().equals(name)) {\r\n return shape;\r\n }\r\n }\r\n throw new IllegalArgumentException(\"Cannot find shape.\");\r\n }", "private void populatepets(){\r\n\t\tpets.add(new Cat(\"UnNamed\"));\r\n\t\tpets.add(new Cow(\"UnNamed\"));\r\n\t\tpets.add(new Dog(\"UnNamed\"));\r\n\t\tpets.add(new Rabbit(\"UnNamed\"));\r\n\t\tpets.add(new Rat(\"UnNamed\"));\r\n\t\tpets.add(new Velociraptor(\"UnNamed\"));\r\n\t}", "public Player getPlayerinTable(String name) {\r\n for (Player player : this.players) {\r\n if (player.getName().equals(name)) {\r\n return player;\r\n }\r\n }\r\n return null;\r\n }", "public static Object getThingByName (String name) {\n \n Object thing = Item.getByNameOrId(name);\n \n if (thing != null)\n return thing;\n \n thing = Block.getBlockFromName(name);\n \n if (thing != null)\n return thing;\n \n return null;\n }", "public Player getPlayerByName(String name){\n for (Player player : players){\n if (name.equals(player.getName())){\n return player;\n }\n }\n return null;\n }", "public abstract co.com.telefonica.atiempo.ejb.eb.PeticionLocal getPeticion();", "private Jogador getJogadorByName(String nomeJogador) throws Exception {\n for (int i = 0; i < this.listaJogadores.size(); i++) {\n Jogador j = this.listaJogadores.get(i);\n\n if (j.getNome().equals(nomeJogador)) {\n return j;\n }\n }\n\n throw new Exception(\"Player doesn't exist\");\n }", "@Test\n\tpublic void testPetWhenGetNameBolt() {\n\t\tPet pet = new Pet(\"Bolt\", \"owloo\");\t\t\n\t\tString expect = \"Bolt\";\n\t\tString result = pet.getPetName();\t\t\n\t\tassertEquals(expect, result);\t\n\t}", "public abstract BaseCreature getCreature(Point p);", "public Country findByName(String name);", "private String getName(Map<String, String> map) throws WrongParameterException{\n String name = map.get(\"name\");\n if(name != null){\n return name;\n }\n else throw new WrongParameterException(\"parameter 'name' not found in FindCustomer command\");\n }", "@Override\r\n\tpublic ArrayList<PlayerPO> findPlayerByName(String name) {\n\t\treturn playerController.findPlayerByName(name);\r\n\t}", "public String searchPerson(String name){\n String string = \"\";\n ArrayList<Person> list = new ArrayList<Person>();\n \n for(Person person: getPersons().values()){\n String _name = person.getName();\n if(_name.contains(name)){\n list.add(person);\n }\n }\n list.sort(Comparator.comparing(Person::getName));\n for (int i = 0; i < list.size(); i++){\n string += list.get(i).toString();\n }\n\n return string;\n }", "public static TypeDictionaryDicoEffetTactiqueRecherche getByName(String name) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tTypeDictionaryDicoEffetTactiqueRecherche result = VALUES_ARRAY[i];\n\t\t\tif (result.getName().equals(name)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "Food getByType(String type);", "private PetsFound mapAdseDbPetsToPortal(String parentStyleORIN,\n String orinNumber, String entryType, String vendorColor,String vendorColorDesc, \n String imageState,\n String completionDate,String vendorStyle, PetsFound pet,String supplierId,String returnCarsFlag) {\n try{\n pet = new PetsFound();\n pet.setParentStyleOrin(parentStyleORIN); \n pet.setOrinNumber(orinNumber);\n pet.setEntryType(entryType);\n pet.setVendorColorCode(vendorColor);\n pet.setVendorColorDesc(vendorColorDesc); \n pet.setVendorStyle(vendorStyle);\n pet.setImageState(imageState); \n pet.setCompletionDate(completionDate); \n pet.setSupplierID(supplierId);\n if(returnCarsFlag.equalsIgnoreCase(\"true\"))\n {\n \tpet.setReturnCarsFlag(\"Yes\");\n }\n else\n {\n \tpet.setReturnCarsFlag(\"No\");\n }\n \n \n \n \n }catch(Exception e){\n \te.printStackTrace();\n }\n return pet; \n }", "private SymObject find(String name) {\n SymObject object = table.find(name);\n if (object == SymbolTable.OBJECT_NONE) {\n error(name + \" can't be resolved to a name\");\n }\n\n return object;\n }", "private Object findByNameProperty(String key, Collection collection) throws InvocationTargetException, IllegalAccessException, NoSuchMethodException {\n for (Object candidate : collection) {\n Object candidateName = getProperty(candidate, \"name\");\n if (candidateName != null && key.equals(candidateName.toString())) {\n return candidate;\n }\n }\n return null;\n }", "public Entity getEntityByName(String name) {\n return this.entity_list_.get(name);\n }", "@Override\r\n\tpublic Dept getByName(String name) {\n\t\t\r\n\t\treturn deptDAO.getByName(name);\r\n\t}", "public Exercise getExercise(Name name) throws ExerciseNotFoundException {\n for (Exercise e : this.exercises) {\n if (e.getName().equals(name)) {\n return e;\n }\n }\n throw new ExerciseNotFoundException();\n }", "public StudentDto findByName(String name) \n\t{\n\n\t\tSession session = factory.openSession();\n\t\tQuery<StudentDto> query = session.createQuery(\"from StudentDto where name = :n\");\n\t\tquery.setParameter(\"n\", name);\n\t\tStudentDto studentDto = query.uniqueResult();\n\t\tsession.close();\n\n\t\treturn studentDto;\n\t}", "String getName( String name );" ]
[ "0.7365927", "0.67472434", "0.6573583", "0.6558933", "0.626462", "0.626296", "0.62069625", "0.61547893", "0.61196375", "0.60532176", "0.601913", "0.5994881", "0.59440154", "0.5930266", "0.5907225", "0.58924747", "0.58644605", "0.58548456", "0.5840418", "0.58280617", "0.5819372", "0.5782202", "0.57488436", "0.5724723", "0.57099956", "0.5705926", "0.5688179", "0.56714094", "0.566067", "0.56572145", "0.565592", "0.5636071", "0.5635371", "0.5619762", "0.56093776", "0.55834913", "0.555554", "0.5555442", "0.55446655", "0.5537407", "0.5524959", "0.552458", "0.5486948", "0.5458869", "0.54564714", "0.5450625", "0.54500693", "0.5445966", "0.544238", "0.54245555", "0.5409937", "0.54073435", "0.5398695", "0.53975594", "0.53903127", "0.5384856", "0.5383028", "0.5379916", "0.53584707", "0.5358185", "0.5357053", "0.5355864", "0.53549397", "0.53461576", "0.53371817", "0.53345835", "0.5329561", "0.53245825", "0.53214264", "0.5300308", "0.52981985", "0.5286578", "0.5280549", "0.5277868", "0.5275346", "0.5270343", "0.5264449", "0.5260391", "0.525253", "0.5251637", "0.5248989", "0.52479804", "0.5246182", "0.5243236", "0.52404886", "0.5240138", "0.52396977", "0.52391976", "0.52353793", "0.5230585", "0.52303207", "0.5216764", "0.52069914", "0.52053", "0.5202946", "0.5194802", "0.5188828", "0.5186474", "0.5185839", "0.51826674" ]
0.74036527
0
Method to play with one pet
public void playOne(VirtualPet player) { player.playPet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void play(Player p){\r\n\t\tSystem.out.println(\"What pet would you like to play with?\");\r\n\t\tint c = 1;\r\n\t\tArrayList<Toy> toys = p.getToys();\r\n\r\n\t\tfor(Pet pet : p.getPets()){\r\n\t\t\tSystem.out.println(c + \". \" + pet.getPetname());\r\n\t\t\tc++;\r\n\t\t}\r\n\t\tint selectedpetindex = getNumber(1, p.getPets().size());\r\n\t\tPet selectedpet = p.getPets().get(selectedpetindex - 1);\r\n\t\tSystem.out.println(\"What toy do you want to use to play with \" + selectedpet.getPetname());\r\n\r\n\t\tc = 1;\r\n\t\tfor(Toy t : toys){\r\n\t\t\tSystem.out.println(c + \". \" + t.getName());\r\n\t\t\tc++;\r\n\t\t}\r\n\t\tint toyindex = getNumber(1, toys.size());\r\n\t\tToy selectedtoy = toys.get(toyindex);\r\n\r\n\t\tselectedpet.play(selectedtoy);\r\n\t\tselectedtoy.setDurability(selectedtoy.getDurability() - selectedpet.getRoughness());\r\n\r\n\t\tif(selectedtoy.getDurability() < 1){\r\n\t\t\ttoys.remove(toyindex);\r\n\t\t}else{\r\n\t\t\ttoys.set(toyindex, selectedtoy);\r\n\t\t}\r\n\r\n\t\tp.setToys(toys);\r\n\t\tp.setActions(p.getActions() - 1);\r\n\t}", "public void pet() {\n this.hunger += 1;\n this.mood += 1;\n\n if (!muted) {\n System.out.println(\"pet\\t\\t|\\t*purrr*\");\n }\n }", "public boolean playPet(String toy) {\r\n switch (toy) {\r\n case (\"ball\"): {\r\n if ((this.player.getMoney() - ball.getCost()) >= 0) {\r\n player.play(ball);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n case (\"doll\"): {\r\n if ((this.player.getMoney() - doll.getCost()) >= 0) {\r\n player.play(doll);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n case (\"frisbee\"): {\r\n if ((this.player.getMoney() - frisbee.getCost()) >= 0) {\r\n player.play(frisbee);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n case (\"feather toy\"): {\r\n if ((this.player.getMoney() - featherToy.getCost()) >= 0) {\r\n player.play(featherToy);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "@Override\n public void play(Puppy puppy) {\n System.out.println(\"The puppy is asleep enjoying its wonderful dreams, it currently does not have the desire to play with you right now.\");\n }", "public void Play();", "public void talking(){\n System.out.println(\"PetOwner : *says something*\");\n }", "public void play(){\n\t\t\n\t}", "static public void viewPet(int petId) {\n User user = LocalUserManager.getCurrentUser();\n Pet pet = LocalPetManager.findPet(petId);\n assert pet != null;\n Presenter.showInstruction(\"You see a \"+pet.getPetColour()+\", \"+\n pet.getPetSex()+\" pet named \"+pet.getPetName()+\"\\n\");\n Presenter.showInstruction(pet.getPetName()+\": \"+pet.getGreeting()+\".\\n\");\n while (true) {\n boolean userInput = GameController.getUserYesOrNo(\"Enter 'y' to feed it or 'n' to go back\");\n if (userInput) {\n Presenter.showInstruction(pet.getPetName()+\": Yummy Yummy! Thank you, \" + user.getUsername()+\"\\n\");\n }\n else {\n return;\n }\n }\n }", "public void play() {\n if (!isHungry()) {\n hunger += 2;\n mood += 2;\n fatigue += 3;\n\n if (!muted) {\n System.out.println(\"play\\t|\\tPlaying is fun!\");\n }\n }\n }", "public void play() {\r\n\t\tSystem.out.println(\"Playing Cricket with ball and bat\");\r\n\t}", "@Override\n\tpublic void play() {\n\t\tSystem.out.println(\"We played Snokker today\");\n\t\t\n\t\t\n\t}", "public void play() {\n\t\t\r\n\t}", "void play();", "public abstract CardAction play(Player p);", "void playMonumentCard();", "public void play() {\n\t\tSystem.out.println(\"ting.. ting...\");\n\t}", "@Override\n\tpublic void compete() {\n\t\tSystem.out.println(\"Pawan is competing as a swimming Athlete \");\n\t\t\n\t}", "public abstract void fruitEffect(Player p);", "public void petSpeak(ArrayList<Pet> petList) {\n System.out.println(\"Pets say: \");\n for (Pet each : petList) {\n System.out.println(each.getName() + \" says \" + each.speak());\n }\n System.out.println();\n }", "void makePlay(int player) {\n }", "void play ();", "public Pet getPet() {\n return pet;\n }", "public abstract void play();", "public abstract void play();", "@Override\n\tpublic void play() {\n\t\t\n\t}", "@Override\n public void play() {\n quest();\n if ((int) (Math.random() * 10) % 2 == 0) {\n won = true;\n System.out.println(\"You beat the last quest!\");\n } else {\n System.out.println(\"There are many more adventures for you, young warrior\");\n }\n }", "public VirtualPet getPet(String name) {\n\t\treturn shelterPets.get(name);\n\n\t}", "static void feedPet() {\r\n\t\tJOptionPane.showMessageDialog(null, \"Your \" + pet + \" is happy and full.\");\r\n\t\thappinessLevel+=3;\r\n\t}", "public void playPvC() {\n boolean computerFirst = true;\n playPvC(computerFirst);\n }", "@Override\n\tpublic Entity interact(Player p) {\n\t\tif(p.getCarryOns() == null) {\n\t\t\tp.setCarryOns(this);\n\t\t\tp.getDungeon().removeEntity(this);\n\t\t\tSystem.out.println(\"CARRIED KEY WITH ID = \" +this.id);\n\t\t\tString musicFile = \"./sounds/Key.wav\";\n\t\t\tMedia sound = new Media(new File(musicFile).toURI().toString());\n\t\t\tMediaPlayer mediaPlayer = new MediaPlayer(sound);\n\t\t\tmediaPlayer.play();\n\t\t\treturn this;\n\t\t} else {\n\t\t\tSystem.out.println(\"Cannot pick up key, already carrying something\");\n\t\t\treturn null;\n\t\t}\n\t}", "@Test\n\tpublic void testTheTickMethodForEachPet() {\n\t\tVirtualPetShelter testPetShelter = new VirtualPetShelter();\n\t\ttestPetShelter.addPet(\"Rusty\", new VirtualPet(\"Rusty\", \"He doesn't get hungry, he's Dead!\", 5, 30, 20));\n\t\ttestPetShelter.addPet(\"Grazer\", new VirtualPet(\"Grazer\", \"She cant leave.. she's dead too!\", 10, 20, 30));\n\t\ttestPetShelter.tick(); // I created a tick, eclipse erred and asked me to create tick in VPS\n\t\tAssert.assertEquals(32, testPetShelter.virtualPets.get(\"Rusty\").boredom);\n\t\tAssert.assertEquals(22, testPetShelter.virtualPets.get(\"Grazer\").boredom);\n\t}", "@Override\n\tpublic void play() {\n\n\t}", "private void makePlay() {\n\t\teating = true;\n\t\ttama.setLayoutX(200);\n\n\t\tplay = new Sprite(6, 6, 360, 379, new Image(\"file:./res/images/basketball.png\"), 1, 1000);\n\t\tplay.setLayoutX(140);\n\t\tplay.setLayoutY(190);\n\t\tplay.setScaleX(0.5);\n\t\tplay.setScaleY(0.5);\n\t\tgrid.getChildren().addAll(play);\n\t\tPauseTransition pause = new PauseTransition(Duration.millis(1000));\n\t\tpause.setOnFinished(e -> {\n\t\t\tgrid.getChildren().remove(play);\n\t\t\ttama.setLayoutX(190);\n\t\t\teating = false;\n\t\t\tmodel.getController().playWith();\n\t\t});\n\t\tpause.play();\n\n\t}", "public void playTurn() {\r\n\r\n }", "@Override\n public void beHelpful() {\n this.playPiano();\n this.takeABow();\n }", "void playMonopolyCard(String resource);", "public void turnToPlay(Player opponent) {\n\n }", "public void giveAndTake(Player a){\n\t\tString type = typetoString();\r\n\t\tint totalDice = a.getDice1() + a.getDice2(), purpleRent = owner.numPurple(), lightGreenRent = owner.numLightGreen(), violetRent = owner.numViolet(), orangeRent = owner.numOrange(), redRent = owner.numRed(), yellowRent = owner.numYellow(), darkGreenRent = owner.numDarkGreen(), darkBlueRent = owner.numDarkBlue(), utilitiesRent = owner.numUtilities(), railRent = owner.numRails(), modRent = 0;\r\n\t\tif(type.equals(\"PURPLE\")){\r\n\t\t\tif(purpleRent == 1){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(purpleRent == 2){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"LIGHTGREEN\")){\r\n\t\t\tif(lightGreenRent == 1 || lightGreenRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(lightGreenRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"VIOLET\")){\r\n\t\t\tif(violetRent == 1 || violetRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(violetRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"ORANGE\")){\r\n\t\t\tif(orangeRent == 1 || orangeRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(orangeRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"RED\")){\r\n\t\t\tif(redRent == 1 || redRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(redRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"YELLOW\")){\r\n\t\t\tif(yellowRent == 1 || yellowRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(yellowRent == 3){\r\n\t\t\t\t\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"DARKGREEN\")){\r\n\t\t\tif(darkGreenRent == 1 || darkGreenRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(darkGreenRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"DARKBLUE\")){\r\n\t\t\tif(darkBlueRent == 1){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(darkBlueRent == 2){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"UTILITIES\")){\r\n\t\t\tif(utilitiesRent == 1){\r\n\t\t\t\tmodRent = 4 * totalDice;\r\n\t\t\t}else if(utilitiesRent == 2){\r\n\t\t\t\tmodRent = 10 * totalDice;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"RAILROAD\")){\r\n\t\t\tif(railRent == 1){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(railRent == 2){\r\n\t\t\t\tmodRent = rent * 2;\r\n\t\t\t}else if(railRent == 3){\r\n\t\t\t\tmodRent = rent * 4;\r\n\t\t\t}else if(railRent == 4){\r\n\t\t\t\tmodRent = rent * 8;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(a.returnName()+\" has paid $\"+modRent+\" to \"+owner.returnName());\r\n\t\ta.subtractMoney(modRent);\r\n\t\towner.addMoney(modRent);\r\n\t}", "@Override\r\n\tpublic Bet whatToPlay() {\n\t\treturn null;\r\n\t}", "private void BlueEatsPlayer(Player player)\n {\n Player player_to_be_eaten = null;\n try\n {\n BluePlayer player_to_eat = (BluePlayer) player;\n player_to_be_eaten = checkIfEatsRedPlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsGreenPlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsYellowPlayer(player_to_eat);\n }\n }\n //player_to_be_eaten.println(\"blue_player_to_be_eaten\" + player_to_be_eaten.toString());\n if (player_to_be_eaten != null)\n {\n playPersonEatenMusic();\n returnPlayerHome(player_to_be_eaten);\n }\n }\n catch (Exception e)\n {\n \n }\n return;\n }", "static public void editPet() {\n User user = LocalUserManager.getCurrentUser();\n Pet pet = LocalPetManager.findPet(user.getPetId());\n while (true) {\n Presenter.showMenu(new String[]{\"Edit pet name\", \"Set pet public/private\", \"Re-create pet\", \"Back\"},\n \"\\nThis is the pet editor menu, you can:\");\n int userChoice = GameController.getUserNum(4);\n if (userChoice == 1) {\n assert pet != null;\n String newPetName = GameController.getUserString(\"Your previous pet name is \"+\n pet.getPetName()+\". Please enter a new name...\");\n if (newPetName.equals(pet.getPetName())){\n Presenter.showNotice(\"That's the same name from before!\");\n }\n else {\n LocalPetManager.changePetName(user.getPetId(), newPetName);\n Presenter.showNotice(\"You have changed your pet name to \"+pet.getPetName()+\" successfully!\");\n }\n }\n else if (userChoice == 2) {\n boolean petPublic = GameController.getUserYesOrNo(\n \"Your pet is \"+LocalPetManager.checkPublicity(user.getPetId())+\" to others now.\\n\" +\n \"Enter 'y' to make it public or 'n' to make it private\");\n assert pet != null;\n pet.setPublicity(petPublic);\n Presenter.showNotice(\"You have change your pet to \"+\n LocalPetManager.checkPublicity(user.getPetId())+\" successfully!\");\n }\n else if (userChoice == 3){\n boolean reCreatePet = GameController.getUserYesOrNo(\n \"Are you sure you want to create a new pet? You will lose \" + pet.getPetName()+\" in the process.\\n\" +\n \"Enter 'y' to create a new pet or 'n' to go back\"\n );\n if (reCreatePet){\n UserController.createUserPet();\n Presenter.showNotice(\"\\nYou have successfully created a new pet!\\n\");\n }\n return;\n }\n else {\n return;\n }\n }\n }", "void playGame(MarbleSolitaireModel model);", "public static play() {\n\t\t\n\t}", "public Pet getPet(String name) {\n\t\treturn getPet(name, false);\n\t}", "public String callPlayer() {\n\t\treturn \"OVER HERE!!\";\n\t}", "void letToPlay(Shape shape);", "public static void main(String[] args) {\n\t\tPet cat = new Cat(false,4);\n\t\tcat.run(getPetName(cat));\n\t\tPet parrot = new Parrot(true,2);\n\t\tparrot.run(getPetName(parrot));\n\t\t\n\t\tParrot pr = (Parrot) parrot;\n\t\tpr.fly(getPetName(pr));\n\t\t\n\t\tPet pet = pr;\n\t\n\t}", "public GameTypeWrapper playGame();", "boolean play();", "@Override\r\n\tpublic void playSoldierCard() {\n\t\t\r\n\t}", "public void thankYouVet(){\n System.out.println(\"PetOwner says ... thank you Vet!\");\n }", "public void playAI() {\r\n // An item has been added to the ticket. Fire an event and let everyone know.\r\n System.out.println(\"You're going to lose foolish human!\");\r\n }", "public String getPetName();", "@Test\n\tpublic void testAllowIntakeOfAHomelessPet() {\n\t\tVirtualPetShelter testPetShelter = new VirtualPetShelter(); //eclipse ask me to create addPet in VPS\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\ttestPetShelter.addPet(new String(), new VirtualPet(\"Rusty\", \"He doesn't get hungry, he's Dead!\", 0, 0, 0));\n\t\tAssert.assertEquals(1, testPetShelter.getVirtualPets().size()); // I test # of values (pets) in collection\n\t}", "@Override\n\tpublic void playCard() {\n\t\t\n\t}", "public void playCard(int player, int card) {\n }", "private void play(Poker pokerInstance, int action) {\n if (this.playing) {\n if (action == Poker.ACTION_BET) {\n actionBet(pokerInstance, 50);\n } else if (action == Poker.ACTION_FOLLOW) {\n actionFollow(pokerInstance);\n } else if (action == Poker.ACTION_CHECK) {\n actionCheck();\n } else if (action == Poker.ACTION_BED) {\n actionLeave();\n }\n }\n }", "@Test\n\tpublic void testAdoptionOfAShelterPet() {\n\t\tVirtualPetShelter testPetShelter = new VirtualPetShelter(); \n\t\ttestPetShelter.addPet(\"Rusty\", new VirtualPet(\"Rusty\", \"He doesn't get hungry, he's Dead!\", 0, 0, 0));\n\t\ttestPetShelter.addPet(\"Grazer\", new VirtualPet(\"Grazer\", \"She cant leave.. she's dead too!\", 0, 0, 0));\n\t\ttestPetShelter.adoptPet(\"Grazer\"); // I created adoptPet, eclipse erred and asked me to create adoptPet in VPS \n\t\tAssert.assertEquals(1, testPetShelter.getVirtualPets().size()); // Pet is now removed from VP's collection\n\t}", "@Override\r\n\tpublic void playCard() {\n\t\t\r\n\t}", "private void getPets(){\r\n\t\tfor(Player p : players){\r\n\t\t\tArrayList<Pet> currentpets = new ArrayList<>();\r\n\r\n\t\t\tSystem.out.println(\"How many pets for \" + p.getName() + \": \");\r\n\t\t\tint petnum = getNumber(1,3);\r\n\t\t\tfor(int i = 0; i < petnum; i++){\r\n\t\t\t\tSystem.out.println(\"Pet options are:\");\r\n\t\t\t\tint c = 1; //Counter for which pet, relating to which option\r\n\t\t\t\tfor(Pet option : pets){\r\n\t\t\t\t\tSystem.out.println(c + \". \" + option.getClass().getSimpleName() + \".\");\r\n\t\t\t\t\tc++;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Please Choose Your Pet With A Number:\");\r\n\t\t\t\tint selected = getNumber(1, 6);\r\n\t\t\t\tPet selectedpet = pets.get(selected - 1);\r\n\t\t\t\tSystem.out.println(\"Please Enter A Name For Your Pet: \");\r\n\t\t\t\tString petname = sc.next();\r\n\t\t\t\tselectedpet.setPetname(petname);\r\n\t\t\t\tSystem.out.println(\"You now have a pet named \" + selectedpet.getPetname());\r\n\t\t\t\tcurrentpets.add(selectedpet);\r\n\t\t\t}\r\n\t\t\tp.setPets(currentpets);\r\n\t\t}\r\n\t}", "public void playPaper(ActionEvent e) throws IOException {\n try {\n //System.out.println(\"Class play: \" + game.getClass().toString());\n getWinnerRPS(game.play(2));\n playerPlays = \"Player plays paper\";\n computerPlays = \"Computer plays \" + addRPSPlayed(game.getComputerPlays());\n myctr.setLabels();\n } catch(Exception n) {\n System.out.println(\"Game \\\"RockPaperScissors\\\" not initialized!\");\n }\n }", "public void play() {\n System.out.println(\"Player \" + this.name + \" started to play...\");\n System.out.println(\"Current balance: \" + getTotalAsset());\n\n // roll a dice to move\n int steps = rollDice();\n System.out.println(\"Player diced \" + steps);\n\n // move\n move(steps);\n Land land = Map.getLandbyIndex(position);\n\n // land triggered purchase or opportunity events\n land.trigger();\n\n System.out.println(\"Player \" + this.name + \"has finished.\");\n }", "private void play() {\n\t\tParcel pc = Parcel.obtain();\n\t\tParcel pc_reply = Parcel.obtain();\n\t\ttry {\n\t\t\tSystem.out.println(\"DEBUG>>>pc\" + pc.toString());\n\t\t\tSystem.out.println(\"DEBUG>>>pc_replay\" + pc_reply.toString());\n\t\t\tib.transact(1, pc, pc_reply, 0);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void play() {\n\t\tplay(true, true);\n\t}", "@Override\n public void playOneRound (Player player) {\n this.executeActions(this.actionChoosed(player), player);\n }", "public void makeHappy() {\n while (statusEnum() != TamagotchiMood.HAPPY) {\n if (!isHungry() && !isTired()) {\n play();\n } else if (isHungry() && !isTired()) {\n eat();\n } else {\n sleep();\n }\n }\n\n if (!muted) {\n System.out.println(\"I can do thing on my own now and will rule the world! MUHAHAHA!\");\n }\n }", "Player getSelectedPlayer();", "public boolean checkPet() {\r\n return this.player.pet.getIsAlive();\r\n }", "Player currentPlayer();", "@Override\n public String speak()\n {\n return \"peep\";\n }", "void win(Player player);", "@Override\r\npublic void Play() {\n\t\r\n}", "public abstract void interact (Player p, int interactAmount);", "public void howToPlay() {\r\n // An item has been added to the ticket. Fire an event and let everyone know.\r\n System.out.println(\"Step 1: Have no life. \\nStep 2: Deal cards\\nStep 3: Cry yourself to sleep.\");\r\n }", "public void play() {\n\n showIntro();\n startGame();\n\n }", "public static void playScream()\n {\n scream.play();\n }", "private void GreenEatsPlayer(Player player)\n {\n Player player_to_be_eaten = null;\n try\n {\n Player player_to_eat = player;\n player_to_be_eaten = checkIfEatsYellowPlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsBluePlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsRedPlayer(player_to_eat);\n }\n }\n //println(\"green_player_to_be_eaten=\" + player_to_be_eaten.toString());\n if (player_to_be_eaten != null)\n {\n playPersonEatenMusic();\n returnPlayerHome(player_to_be_eaten);\n }\n }\n catch (Exception e)\n {\n \n }\n return;\n }", "private void YellowEatsPlayer(Player player)\n {\n Player player_to_be_eaten = null;\n try\n {\n YellowPlayer player_to_eat = (YellowPlayer) player;\n player_to_be_eaten = checkIfEatsGreenPlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsBluePlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsRedPlayer(player_to_eat);\n }\n }\n //println(\"yellow_player_to_be_eaten=\" + player_to_be_eaten.toString());\n if (player_to_be_eaten != null)\n {\n playPersonEatenMusic();\n returnPlayerHome(player_to_be_eaten);\n }\n }\n catch (Exception e)\n {\n \n }\n return;\n }", "@Override\r\n\tpublic void sound() {\r\n\t\tsuper.sound();\r\n\t\tSystem.out.println(\"SportsCar sound: Vutututututu\");\r\n\t}", "public void win()\r\n {\n Actor win;\r\n win=getOneObjectAtOffset(0,0,Goal.class);\r\n if (win !=null)\r\n {\r\n World myWorld=getWorld();\r\n Congrats cong=new Congrats();\r\n myWorld.addObject(cong,myWorld.getWidth()/2,myWorld.getHeight()/2); //(Greenfoot,2013) \r\n \r\n Greenfoot.stop();\r\n Greenfoot.playSound(\"finish.wav\"); //(Sound-Ideas,2014)\r\n \r\n }\r\n }", "public void printVictoryMessage() { //main playing method\r\n System.out.println(\"Congrats \" + name + \" you won!!!\");\r\n }", "public void setpetID(String petID){\n this.petID = petID;\n }", "void doAction(Player player);", "public Pokemon start() {\n System.out.println(\"\\n\" + this.pokemonOne.getName() + \" affronte \" + this.pokemonTwo.getName() + \" dans un combat qui s'annonce extraordinaire\\n\");\n\n this.pokemonOne.speakFightShout();\n this.pokemonTwo.speakFightShout();\n\n while (true) {\n if (this.PokemonOneIsAlive()) {\n this.pokemonOne.giveDamage(pokemonTwo);\n } else {\n this.pokemonOne.speakDefeatShout();\n this.pokemonTwo.speakVictoryShout();\n return this.pokemonOne;\n }\n if (this.PokemonTwoIsAlive()) {\n this.pokemonTwo.giveDamage(pokemonOne);\n } else {\n this.pokemonTwo.speakDefeatShout();\n this.pokemonOne.speakVictoryShout();\n return this.pokemonTwo;\n }\n }\n }", "public void playRound(){\n\t\tsetHumanThrow(humanType); \n\t\tsetCompThrow();\n\t\tSystem.out.println(\"Your Throw: \" + humanThrow.getThrowType());\n\t\tSystem.out.println(\"The Computer's Throw: \" + compThrow.getThrowType());\n\t\tRound current = new Round(humanThrow, compThrow);\n\t\tthisGame.updateScores(current);\n\t\tSystem.out.println(current.getRoundSummary());\n\t\tif(thisGame.getRoundNumber() < totalRounds){\n\t\t\tplayRound();\n\t\t}\n\t\telse{\n\t\t\tendGame();\n\t\t}\n\t}", "public void playHitWall() {\r\n hitWall.play(soundFxVol);\r\n }", "public void setPet(Pet pet) {\n this.pet = pet;\n Util.getInstance().loadImage(pet.getId(), avatarImageView, false, new com.squareup.picasso.Callback(){\n @Override\n public void onSuccess() {\n\n }\n\n @Override\n public void onError() {\n\n }\n });\n\n idEditText.setText(pet.getId());\n nameEditText.setText(pet.getName());\n femaleButton.setChecked(pet.isFemale());\n switch (pet.getSpecies()) {\n case \"Cat\":\n speciesSpinner.setSelection(0);\n break;\n case \"Dog\":\n speciesSpinner.setSelection(1);\n break;\n case \"Bird\":\n speciesSpinner.setSelection(2);\n break;\n case \"Rabbit\":\n speciesSpinner.setSelection(3);\n break;\n case \"Others\":\n speciesSpinner.setSelection(4);\n break;\n default:\n break;\n\n }\n if(pet.getBirthday() == null){\n birthdayEditText.setText(\"\");\n } else{\n birthdayEditText.setText(Util.getInstance().dateFormatter().format(pet.getBirthday()));\n }\n vetPhoneEditText.setText(pet.getVetPhone());\n vetNameEditText.setText(pet.getVetName());\n medicationsEditText.setText(pet.getMedications());\n chipIdEditText.setText(pet.getChipId());\n chipCompanyEditText.setText(pet.getChipCompany());\n }", "public abstract void attackPlayer(Player p);", "@Override\n\tpublic void play() {\n\t\tGuitar.super.play();\n\t\tPiano.super.play();\n\t}", "public void play ()\r\n\t{\r\n\t\t// generates random numbers\r\n\t\tRandom generator = new Random();\r\n\t\tdouble randNum1 = generator.nextDouble();\r\n\t\tdouble randNum2 = generator.nextDouble();\r\n\t\t\r\n\t\tint type1 = randCompare(randNum1);\r\n\t\tint type2 = randCompare(randNum2);\r\n\t\t\r\n\t\tif (type1 == type2)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// type1 wins\r\n\t\telse if ((type1 == ROCK && type2 == SCISSORS) || (type1 == PAPER && type2 == ROCK) || (type1 == SCISSORS && type2 == PAPER))\r\n\t\t{\r\n\t\t\trpsSize[type2] = rpsSize[type2] - 1;\r\n\t\t\tsize = size -1;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tsize = size -1;\r\n\t\t\trpsSize[type1] = rpsSize[type1] - 1;\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "public abstract void attack(Player p);", "void play(boolean fromUser);", "Player getPlayer();", "public void explosion(){\n explosionEffect.play(pitch, volume);\n }", "private void feed(Player p){\r\n\t\tSystem.out.println(\"What pet would you like to feed?\");\r\n\t\tArrayList<Food> foodlist = p.getFood();\r\n\r\n\t\tint c = 1;\r\n\t\tfor(Pet pet : p.getPets()){\r\n\t\t\tSystem.out.println(c + \". \" + pet.getPetname());\r\n\t\t\tc++;\r\n\t\t}\r\n\r\n\t\tint selectedpetindex = getNumber(1, p.getPets().size());\r\n\t\tPet selectedpet = p.getPets().get(selectedpetindex - 1);\r\n\t\tSystem.out.println(\"What food do you want to feed \" + selectedpet.getPetname() + \" with?\");\r\n\r\n\t\tc = 1;\r\n\t\tfor(Food f : foodlist){\r\n\t\t\tSystem.out.println(c + \". \" + f.getName());\r\n\t\t\tc++;\r\n\t\t}\r\n\r\n\t\tint foodindex = getNumber(1, foodlist.size());\r\n\t\tFood selectedfood = foodlist.get(foodindex);\r\n\r\n\t\tselectedpet.feed(selectedfood);\r\n\t\tfoodlist.remove(foodindex);\r\n\t\tp.setFood(foodlist);\r\n\r\n\t\tp.setActions(p.getActions() - 1);\r\n\t}", "@Override\r\n\tpublic void playMonumentCard() {\n\t\t\r\n\t}", "public void addPet(VirtualPet pet) {\n\t\tshelterPets.put(pet.name, pet);\n\t}", "Player createPlayer();", "private void RedEatsPlayer(Player player)\n {\n Player player_to_be_eaten = null;\n try\n {\n RedPlayer player_to_eat = (RedPlayer) player;\n player_to_be_eaten = checkIfEatsBluePlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsGreenPlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsYellowPlayer(player_to_eat);\n }\n }\n\n //player_to_be_eaten.println(\"red_player_to_be_eaten\" + player_to_be_eaten.toString());\n if (player_to_be_eaten != null)\n {\n playPersonEatenMusic();\n returnPlayerHome(player_to_be_eaten);\n }\n }\n catch (Exception e)\n {\n \n }\n return;\n }", "public void OnPlayer(Joueur joueur);" ]
[ "0.7828707", "0.7100256", "0.67849207", "0.65981257", "0.659701", "0.65338445", "0.645682", "0.64463466", "0.64013714", "0.6369291", "0.6329505", "0.62987596", "0.6296989", "0.6290096", "0.6248129", "0.6242046", "0.6226588", "0.6214629", "0.61987895", "0.61863774", "0.6182286", "0.6138561", "0.6137347", "0.6137347", "0.6123663", "0.61167824", "0.611674", "0.6103701", "0.6102016", "0.6092036", "0.6082503", "0.6078509", "0.6058807", "0.6045948", "0.6044284", "0.6031339", "0.60250217", "0.60078007", "0.60004234", "0.59636295", "0.5950274", "0.59431595", "0.59359145", "0.592086", "0.59150285", "0.5904881", "0.5899532", "0.5898045", "0.58872473", "0.5875699", "0.5874057", "0.58699334", "0.58573717", "0.58543074", "0.5854082", "0.5847818", "0.58450806", "0.5840468", "0.58361983", "0.58302605", "0.58248264", "0.5822361", "0.581574", "0.5807638", "0.5805406", "0.58025306", "0.5801525", "0.57985955", "0.57968724", "0.57911646", "0.5787734", "0.57830155", "0.5780575", "0.577724", "0.5771155", "0.57702595", "0.5763737", "0.57630444", "0.57525724", "0.57523656", "0.5749635", "0.57404804", "0.57323897", "0.5727963", "0.57252234", "0.5724236", "0.5723104", "0.57211703", "0.5720835", "0.57198477", "0.57197195", "0.5715062", "0.57145864", "0.571099", "0.571013", "0.56970334", "0.5690805", "0.56835353", "0.5681011", "0.5679856" ]
0.7575393
1
Method to adopt a pet
public void adoptPet(String removedPet) { shelterPets.remove(removedPet); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAdoptionOfAShelterPet() {\n\t\tVirtualPetShelter testPetShelter = new VirtualPetShelter(); \n\t\ttestPetShelter.addPet(\"Rusty\", new VirtualPet(\"Rusty\", \"He doesn't get hungry, he's Dead!\", 0, 0, 0));\n\t\ttestPetShelter.addPet(\"Grazer\", new VirtualPet(\"Grazer\", \"She cant leave.. she's dead too!\", 0, 0, 0));\n\t\ttestPetShelter.adoptPet(\"Grazer\"); // I created adoptPet, eclipse erred and asked me to create adoptPet in VPS \n\t\tAssert.assertEquals(1, testPetShelter.getVirtualPets().size()); // Pet is now removed from VP's collection\n\t}", "public Pet getPet() {\n return pet;\n }", "public void addPet(VirtualPet pet) {\n\t\tshelterPets.put(pet.name, pet);\n\t}", "@Test\n\tpublic void testAllowIntakeOfAHomelessPet() {\n\t\tVirtualPetShelter testPetShelter = new VirtualPetShelter(); //eclipse ask me to create addPet in VPS\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\ttestPetShelter.addPet(new String(), new VirtualPet(\"Rusty\", \"He doesn't get hungry, he's Dead!\", 0, 0, 0));\n\t\tAssert.assertEquals(1, testPetShelter.getVirtualPets().size()); // I test # of values (pets) in collection\n\t}", "public void pet() {\n this.hunger += 1;\n this.mood += 1;\n\n if (!muted) {\n System.out.println(\"pet\\t\\t|\\t*purrr*\");\n }\n }", "public void addPets(PetPOJO pet) {\n pets.add(pet);\n }", "public interface Pet {// interface is the blueprint for other class\r\n\r\n\tpublic String food();// method food abstract method no action \r\n\r\n\r\n}", "public void createPet(Pets pet) {\n\n try {\n\n Statement statement = conn.createStatement();\n String sqlStatement = \"INSERT INTO pets (\" +\n \"name, animal_type, animal_breed, date_of_birth, gender, weight, owner) \" +\n \"VALUES (\" +\n \"'\" + pet.getName() + \"',\" +\n \"'\" + pet.getAnimalType() + \"',\" +\n \"'\" + pet.getAnimalBreed() + \"',\" +\n \"'\" + pet.getDateOfBirth() + \"',\" +\n \"'\" + pet.getGender() + \"',\" +\n +pet.getWeight() + \",\" +\n \"'\" + pet.getOwner() + \"'\" +\n \")\";\n\n int rowsAffected = statement.executeUpdate(sqlStatement);\n\n if (rowsAffected != 0) {\n System.out.println(\"Pet added successfully!\");\n } else {\n System.out.println(\"Sorry.. Something went wrong! Try again.\");\n }\n\n } catch (SQLException exception) {\n System.out.println(\"Error creating a Pet : \" + exception);\n }\n }", "public String getPetName();", "public void adoptHuman(Human human) {\r\n System.out.println(\"Adopting a human!\");\r\n\r\n if (!human.hasPet(this)){\r\n human.adoptPet(this);\r\n this.human = human; \r\n System.out.println(\"Success! Adopted \" + human);\r\n }\r\n }", "@Override\n\tpublic void updatePet(PetVO vo) {\n\t\t\n\t}", "public VirtualPet getPet(String name) {\n\t\treturn shelterPets.get(name);\n\n\t}", "public static void main(String[] args) {\n\t\tPet cat = new Cat(false,4);\n\t\tcat.run(getPetName(cat));\n\t\tPet parrot = new Parrot(true,2);\n\t\tparrot.run(getPetName(parrot));\n\t\t\n\t\tParrot pr = (Parrot) parrot;\n\t\tpr.fly(getPetName(pr));\n\t\t\n\t\tPet pet = pr;\n\t\n\t}", "public void setpetID(String petID){\n this.petID = petID;\n }", "@Transactional\n\tpublic PetDTO createPet(PetDTO petDTO) {\n\t\tUser user = validateParametersAdd(petDTO);\n\t\tPet pet = new Pet();\n\t\tpetSetters(pet, petDTO);\n\t\tif (petDTO.getAdvertisement() != null\n\t\t\t\t&& advertisementRepository.findAdvertisementById(petDTO.getAdvertisement()) != null) {\n\t\t\tpet.setAdvertisement(advertisementRepository.findAdvertisementById(petDTO.getAdvertisement()));\n\t\t}\n\t\tSet<PetDTO> allUserPets = getPetsByUser(petDTO.getUserName());\n\t\tallUserPets.add(petDTO);\n\n\t\tuser.getPets().add(pet);\n\n\t\tpetRepository.save(pet);\n\t\tuserRepository.save(user);\n\t\tpetDTO.setId(pet.getId());\n\n\t\treturn petDTO;\n\t}", "@Test\n\tpublic void testTheTickMethodForEachPet() {\n\t\tVirtualPetShelter testPetShelter = new VirtualPetShelter();\n\t\ttestPetShelter.addPet(\"Rusty\", new VirtualPet(\"Rusty\", \"He doesn't get hungry, he's Dead!\", 5, 30, 20));\n\t\ttestPetShelter.addPet(\"Grazer\", new VirtualPet(\"Grazer\", \"She cant leave.. she's dead too!\", 10, 20, 30));\n\t\ttestPetShelter.tick(); // I created a tick, eclipse erred and asked me to create tick in VPS\n\t\tAssert.assertEquals(32, testPetShelter.virtualPets.get(\"Rusty\").boredom);\n\t\tAssert.assertEquals(22, testPetShelter.virtualPets.get(\"Grazer\").boredom);\n\t}", "@Override\n\tpublic void registerPet(PetVO vo) {\n\t\t\n\t}", "public void setPet(Pet pet) {\n this.pet = pet;\n Util.getInstance().loadImage(pet.getId(), avatarImageView, false, new com.squareup.picasso.Callback(){\n @Override\n public void onSuccess() {\n\n }\n\n @Override\n public void onError() {\n\n }\n });\n\n idEditText.setText(pet.getId());\n nameEditText.setText(pet.getName());\n femaleButton.setChecked(pet.isFemale());\n switch (pet.getSpecies()) {\n case \"Cat\":\n speciesSpinner.setSelection(0);\n break;\n case \"Dog\":\n speciesSpinner.setSelection(1);\n break;\n case \"Bird\":\n speciesSpinner.setSelection(2);\n break;\n case \"Rabbit\":\n speciesSpinner.setSelection(3);\n break;\n case \"Others\":\n speciesSpinner.setSelection(4);\n break;\n default:\n break;\n\n }\n if(pet.getBirthday() == null){\n birthdayEditText.setText(\"\");\n } else{\n birthdayEditText.setText(Util.getInstance().dateFormatter().format(pet.getBirthday()));\n }\n vetPhoneEditText.setText(pet.getVetPhone());\n vetNameEditText.setText(pet.getVetName());\n medicationsEditText.setText(pet.getMedications());\n chipIdEditText.setText(pet.getChipId());\n chipCompanyEditText.setText(pet.getChipCompany());\n }", "public Pet getPet(String name) {\n\t\treturn getPet(name, false);\n\t}", "@Override\n\tpublic void compete() {\n\t\tSystem.out.println(\"Pawan is competing as a swimming Athlete \");\n\t\t\n\t}", "private void play(Player p){\r\n\t\tSystem.out.println(\"What pet would you like to play with?\");\r\n\t\tint c = 1;\r\n\t\tArrayList<Toy> toys = p.getToys();\r\n\r\n\t\tfor(Pet pet : p.getPets()){\r\n\t\t\tSystem.out.println(c + \". \" + pet.getPetname());\r\n\t\t\tc++;\r\n\t\t}\r\n\t\tint selectedpetindex = getNumber(1, p.getPets().size());\r\n\t\tPet selectedpet = p.getPets().get(selectedpetindex - 1);\r\n\t\tSystem.out.println(\"What toy do you want to use to play with \" + selectedpet.getPetname());\r\n\r\n\t\tc = 1;\r\n\t\tfor(Toy t : toys){\r\n\t\t\tSystem.out.println(c + \". \" + t.getName());\r\n\t\t\tc++;\r\n\t\t}\r\n\t\tint toyindex = getNumber(1, toys.size());\r\n\t\tToy selectedtoy = toys.get(toyindex);\r\n\r\n\t\tselectedpet.play(selectedtoy);\r\n\t\tselectedtoy.setDurability(selectedtoy.getDurability() - selectedpet.getRoughness());\r\n\r\n\t\tif(selectedtoy.getDurability() < 1){\r\n\t\t\ttoys.remove(toyindex);\r\n\t\t}else{\r\n\t\t\ttoys.set(toyindex, selectedtoy);\r\n\t\t}\r\n\r\n\t\tp.setToys(toys);\r\n\t\tp.setActions(p.getActions() - 1);\r\n\t}", "@Override\n\t\t\tpublic Pet answer(InvocationOnMock invocation) throws Throwable {\n\t\t\t\tPet innerPet = (Pet) invocation.getArguments()[0]; \n\t\t\t\tpets.add(innerPet);\n\t\t\t\treturn innerPet;\n\t\t\t}", "public static void main(String[] args) {\n\n Pet pet = new Pet(\"Larry\",5) {\n @Override\n public void say() {\n System.out.println(\"wow, wow, wow\");\n }\n };\n System.out.println(pet);\n\n pet.say();\n // ((Cat) pet).getPredator();---> преобразовал тип pet в cat ---> можно, но нельзя\n\n }", "public abstract void fruitEffect(Player p);", "public void talking(){\n System.out.println(\"PetOwner : *says something*\");\n }", "@PostMapping(\"/pets\")\n public ResponseEntity<Pet> createPet(@RequestBody Pet pet) throws URISyntaxException {\n log.debug(\"REST request to save Pet : {}\", pet);\n if (pet.getId() != null) {\n throw new BadRequestAlertException(\"A new pet cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Pet result = petService.save(pet);\n return ResponseEntity.created(new URI(\"/api/pets/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public HousePet()\n\t{\n\t\tthis.setChipId(0);\n\t\tthis.setName(\"**No Name**\");\n\t\tthis.setPetType(\"**no type**\");\n\t\tthis.setAge(0.0);\n\t}", "public void petCat(){\n this.isHungry = true;\n System.out.println(\"Purrrrr\");\n }", "@Override\r\n\tpublic int insertSelective(shopPet t) {\n\t\treturn 0;\r\n\t}", "@Override\n public boolean isPet(Entity entity) {\n return entity.hasMetadata(\"pet\");\n }", "public abstract void peel();", "Petunia() {\r\n\t\t}", "int insertSelective(Pet record);", "public Pet getPet(String name, boolean ignoreNew) {\n\t\tname = name.toLowerCase();\n\t\tfor (Pet pet : getPetsInternal()) {\n\t\t\tif (!ignoreNew || !pet.isNew()) {\n\t\t\t\tString compName = pet.getName();\n\t\t\t\tcompName = compName.toLowerCase();\n\t\t\t\tif (compName.equals(name)) {\n\t\t\t\t\treturn pet;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getPetID(){\n return petID;\n }", "public static void main(String[] args) {\n AnimalBp turtle = new AnimalBp(); \n AnimalBp dog = new AnimalBp();\n AnimalBp cat = new AnimalBp();\n \n \n \n turtle .setType(\"Reptile\");\n String turtleType = turtle.getType();\n \n \n System.out.println(turtleType);\n \n turtle.setnumberOfFeet(4);\n int turtlenumberOfFeet = turtle.getnumberOfFeet();\n \n System.out.println(turtlenumberOfFeet);\n \n turtle.setColor(\"Green\");\n String turtleColor = turtle.getColor();\n \n System.out.println(turtleColor);\n \n turtle.setlaysAnEgg(true);\n boolean turtlelaysAnEgg = turtle.getLaysAnEgg();\n \n System.out.println(turtlelaysAnEgg);\n \n \n dog .setType(\"Mammal\");\n String dogType = dog.getType();\n \n System.out.println(dogType);\n \n dog.setnumberOfFeet(4);\n int dognumberOfFeet = dog.getnumberOfFeet();\n \n System.out.println(dognumberOfFeet);\n \n dog.setColor(\"Brown and White\");\n String dogColor = dog.getColor();\n \n System.out.println(dogColor);\n \n dog.setlaysAnEgg(false);\n boolean doglaysAnEgg = dog.getLaysAnEgg();\n \n System.out.println(doglaysAnEgg);\n \n cat .setType(\"Mammal\");\n String catType = cat.getType();\n \n \n System.out.println(catType);\n \n cat.setnumberOfFeet(4);\n int catnumberOfFeet = cat.getnumberOfFeet();\n \n System.out.println(catnumberOfFeet);\n \n cat.setColor(\"gray\");\n String catColor = cat.getColor();\n \n System.out.println(catColor);\n \n cat.setlaysAnEgg(false);\n boolean catlaysAnEgg = cat.getLaysAnEgg();\n \n System.out.println(catlaysAnEgg);\n }", "public void thankYouVet(){\n System.out.println(\"PetOwner says ... thank you Vet!\");\n }", "@Override\n\tpublic boolean updatePet(Pet pet, String licenseNumber) {\n\t\treturn false;\n\t}", "public JsonHarvester(HarvestPetition petition) {\n this.petition = petition;\n\n }", "public String isPet() {\n\t\tString Y = \"True\";\r\n\t\tString N = \"False\";\r\n\t\tif (pet.compareTo(\"Y\") == 0) {\r\n\t\t\treturn Y; //returns Y for yes if pet\r\n\t\t} else\r\n\t\t\treturn N; //returns N for no if not pet\r\n\t}", "@Override\n\tpublic void makeShoeComfortable() {\n\t\t\n\t}", "void addPerson(Player player);", "@PostMapping\n public PetDTO savePet(@RequestBody PetDTO petDTO) {\n Customer customer = null;\n if ((Long) petDTO.getOwnerId() != null) {\n customer = customerService.getCustomerById(petDTO.getOwnerId());\n }\n Pet pet = ConvertService.convertDTOToPetEntity(petDTO);\n pet.setCustomer(customer);\n\n pet = petService.save(pet);\n petDTO.setId(pet.getId());\n\n return petDTO;\n }", "@Override\r\n public String toString(){\n String fromPet = super.toString();\r\n fromPet+= \"\\nLives: \"+ livesRemaining;\r\n fromPet += \"\\nType: Cat\";\r\n return fromPet;\r\n \r\n }", "private void getPets(){\r\n\t\tfor(Player p : players){\r\n\t\t\tArrayList<Pet> currentpets = new ArrayList<>();\r\n\r\n\t\t\tSystem.out.println(\"How many pets for \" + p.getName() + \": \");\r\n\t\t\tint petnum = getNumber(1,3);\r\n\t\t\tfor(int i = 0; i < petnum; i++){\r\n\t\t\t\tSystem.out.println(\"Pet options are:\");\r\n\t\t\t\tint c = 1; //Counter for which pet, relating to which option\r\n\t\t\t\tfor(Pet option : pets){\r\n\t\t\t\t\tSystem.out.println(c + \". \" + option.getClass().getSimpleName() + \".\");\r\n\t\t\t\t\tc++;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Please Choose Your Pet With A Number:\");\r\n\t\t\t\tint selected = getNumber(1, 6);\r\n\t\t\t\tPet selectedpet = pets.get(selected - 1);\r\n\t\t\t\tSystem.out.println(\"Please Enter A Name For Your Pet: \");\r\n\t\t\t\tString petname = sc.next();\r\n\t\t\t\tselectedpet.setPetname(petname);\r\n\t\t\t\tSystem.out.println(\"You now have a pet named \" + selectedpet.getPetname());\r\n\t\t\t\tcurrentpets.add(selectedpet);\r\n\t\t\t}\r\n\t\t\tp.setPets(currentpets);\r\n\t\t}\r\n\t}", "void ponderhit();", "public void gainExperience(Combatant opponent) { }", "public void makeTea() {\n\t\tboil();\n\t\taddSugar();\n\t\taddTea();\n\t\tserve();\n\t}", "void cook(Food food) {\n //cook in pressure cooker\n }", "Horse addHorse(Horse horse);", "int insert(Pet record);", "static public void viewPet(int petId) {\n User user = LocalUserManager.getCurrentUser();\n Pet pet = LocalPetManager.findPet(petId);\n assert pet != null;\n Presenter.showInstruction(\"You see a \"+pet.getPetColour()+\", \"+\n pet.getPetSex()+\" pet named \"+pet.getPetName()+\"\\n\");\n Presenter.showInstruction(pet.getPetName()+\": \"+pet.getGreeting()+\".\\n\");\n while (true) {\n boolean userInput = GameController.getUserYesOrNo(\"Enter 'y' to feed it or 'n' to go back\");\n if (userInput) {\n Presenter.showInstruction(pet.getPetName()+\": Yummy Yummy! Thank you, \" + user.getUsername()+\"\\n\");\n }\n else {\n return;\n }\n }\n }", "public void giveAndTake(Player a){\n\t\tString type = typetoString();\r\n\t\tint totalDice = a.getDice1() + a.getDice2(), purpleRent = owner.numPurple(), lightGreenRent = owner.numLightGreen(), violetRent = owner.numViolet(), orangeRent = owner.numOrange(), redRent = owner.numRed(), yellowRent = owner.numYellow(), darkGreenRent = owner.numDarkGreen(), darkBlueRent = owner.numDarkBlue(), utilitiesRent = owner.numUtilities(), railRent = owner.numRails(), modRent = 0;\r\n\t\tif(type.equals(\"PURPLE\")){\r\n\t\t\tif(purpleRent == 1){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(purpleRent == 2){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"LIGHTGREEN\")){\r\n\t\t\tif(lightGreenRent == 1 || lightGreenRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(lightGreenRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"VIOLET\")){\r\n\t\t\tif(violetRent == 1 || violetRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(violetRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"ORANGE\")){\r\n\t\t\tif(orangeRent == 1 || orangeRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(orangeRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"RED\")){\r\n\t\t\tif(redRent == 1 || redRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(redRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"YELLOW\")){\r\n\t\t\tif(yellowRent == 1 || yellowRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(yellowRent == 3){\r\n\t\t\t\t\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"DARKGREEN\")){\r\n\t\t\tif(darkGreenRent == 1 || darkGreenRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(darkGreenRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"DARKBLUE\")){\r\n\t\t\tif(darkBlueRent == 1){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(darkBlueRent == 2){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"UTILITIES\")){\r\n\t\t\tif(utilitiesRent == 1){\r\n\t\t\t\tmodRent = 4 * totalDice;\r\n\t\t\t}else if(utilitiesRent == 2){\r\n\t\t\t\tmodRent = 10 * totalDice;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"RAILROAD\")){\r\n\t\t\tif(railRent == 1){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(railRent == 2){\r\n\t\t\t\tmodRent = rent * 2;\r\n\t\t\t}else if(railRent == 3){\r\n\t\t\t\tmodRent = rent * 4;\r\n\t\t\t}else if(railRent == 4){\r\n\t\t\t\tmodRent = rent * 8;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(a.returnName()+\" has paid $\"+modRent+\" to \"+owner.returnName());\r\n\t\ta.subtractMoney(modRent);\r\n\t\towner.addMoney(modRent);\r\n\t}", "static public void editPet() {\n User user = LocalUserManager.getCurrentUser();\n Pet pet = LocalPetManager.findPet(user.getPetId());\n while (true) {\n Presenter.showMenu(new String[]{\"Edit pet name\", \"Set pet public/private\", \"Re-create pet\", \"Back\"},\n \"\\nThis is the pet editor menu, you can:\");\n int userChoice = GameController.getUserNum(4);\n if (userChoice == 1) {\n assert pet != null;\n String newPetName = GameController.getUserString(\"Your previous pet name is \"+\n pet.getPetName()+\". Please enter a new name...\");\n if (newPetName.equals(pet.getPetName())){\n Presenter.showNotice(\"That's the same name from before!\");\n }\n else {\n LocalPetManager.changePetName(user.getPetId(), newPetName);\n Presenter.showNotice(\"You have changed your pet name to \"+pet.getPetName()+\" successfully!\");\n }\n }\n else if (userChoice == 2) {\n boolean petPublic = GameController.getUserYesOrNo(\n \"Your pet is \"+LocalPetManager.checkPublicity(user.getPetId())+\" to others now.\\n\" +\n \"Enter 'y' to make it public or 'n' to make it private\");\n assert pet != null;\n pet.setPublicity(petPublic);\n Presenter.showNotice(\"You have change your pet to \"+\n LocalPetManager.checkPublicity(user.getPetId())+\" successfully!\");\n }\n else if (userChoice == 3){\n boolean reCreatePet = GameController.getUserYesOrNo(\n \"Are you sure you want to create a new pet? You will lose \" + pet.getPetName()+\" in the process.\\n\" +\n \"Enter 'y' to create a new pet or 'n' to go back\"\n );\n if (reCreatePet){\n UserController.createUserPet();\n Presenter.showNotice(\"\\nYou have successfully created a new pet!\\n\");\n }\n return;\n }\n else {\n return;\n }\n }\n }", "@Override\n\tpublic void laysEgg() {\n\t\t\n\t}", "Player attackingPlayer(int age, int overall, int potential) {\r\n Player newPlayer = new Player(this.nameGenerator.generateName(), age, overall, potential, 'C' , 'F');\r\n\r\n\r\n\r\n\r\n }", "public Puppy() {\n\t\t//TODO\n\t}", "public void createFood() {\n }", "private void fortificationPhase(Player p) \n\t{\n\t\tp.fortify();\n\t}", "public CyberPet ( String str )\r\n {\r\n name = str;\r\n }", "private void populatepets(){\r\n\t\tpets.add(new Cat(\"UnNamed\"));\r\n\t\tpets.add(new Cow(\"UnNamed\"));\r\n\t\tpets.add(new Dog(\"UnNamed\"));\r\n\t\tpets.add(new Rabbit(\"UnNamed\"));\r\n\t\tpets.add(new Rat(\"UnNamed\"));\r\n\t\tpets.add(new Velociraptor(\"UnNamed\"));\r\n\t}", "private PetsFound mapAdseDbPetsToPortal(String parentStyleORIN,\n String orinNumber, String entryType, String vendorColor,String vendorColorDesc, \n String imageState,\n String completionDate,String vendorStyle, PetsFound pet,String supplierId,String returnCarsFlag) {\n try{\n pet = new PetsFound();\n pet.setParentStyleOrin(parentStyleORIN); \n pet.setOrinNumber(orinNumber);\n pet.setEntryType(entryType);\n pet.setVendorColorCode(vendorColor);\n pet.setVendorColorDesc(vendorColorDesc); \n pet.setVendorStyle(vendorStyle);\n pet.setImageState(imageState); \n pet.setCompletionDate(completionDate); \n pet.setSupplierID(supplierId);\n if(returnCarsFlag.equalsIgnoreCase(\"true\"))\n {\n \tpet.setReturnCarsFlag(\"Yes\");\n }\n else\n {\n \tpet.setReturnCarsFlag(\"No\");\n }\n \n \n \n \n }catch(Exception e){\n \te.printStackTrace();\n }\n return pet; \n }", "static void feedPet() {\r\n\t\tJOptionPane.showMessageDialog(null, \"Your \" + pet + \" is happy and full.\");\r\n\t\thappinessLevel+=3;\r\n\t}", "public void setPetName(java.lang.String param) {\n localPetNameTracker = true;\n\n this.localPetName = param;\n }", "public void setPetId(java.lang.String param) {\n localPetIdTracker = true;\n\n this.localPetId = param;\n }", "public HousePet(int theChipId, String theName, String thePetType, double theAge)\n\t{\n\t\tthis.setChipId(theChipId);\n\t\tthis.setName(theName);\n\t\tthis.setPetType(thePetType);\n\t\tthis.setAge(theAge);\n\n\t\t//following if statements check the data\n\t\t//if any of the data is invalid, makes the field the default\n\t\tif(theChipId<0)\n\t\t{\n\t\t\ttheChipId=0;\n\t\t}\n\n\t\tif(theName.length()==0)\n\t\t{\n\t\t\ttheName=\"**No Name**\";\n\t\t}\n\n\t\tif(thePetType.length()==0)\n\t\t{\n\t\t\tthePetType=\"**no type**\";\n\t\t}\n\n\t\tif(theAge<0.0)\n\t\t{\n\t\t\ttheAge=0.0;\n\t\t}\n\n\t}", "@Override\r\n\tpublic void create(Person p) \r\n\t{\n\t\t\r\n\t}", "public PetLove create(PetLove newPetLove) throws ErrorInProcessPetLove {\r\n\t\ttry {\r\n\t\t\t// access to DB\r\n\t\t\tEntityManager em = AccessToDb.createFactory();\r\n\r\n\t\t\tem.persist(newPetLove);\r\n\r\n\t\t\t// Save and close\r\n\t\t\tAccessToDb.commitFactory();\r\n\t\t\treturn newPetLove;\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new ErrorInProcessPetLove(\"Error in process pet love data\");\r\n\t\t} finally {\r\n\t\t\tAccessToDb.closeFactory();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void eat(Food food) {\n\r\n\t}", "public Pet convertToEntity(PetDTO petDTO) {\n\t\tPet pet = new Pet();\n\t\tOptional<Advertisement> advertisement = advertisementRepository.findById(pet.getAdvertisement().getId());\n\t\tif (advertisement.isPresent()) {\n\t\t\tpet.setAdvertisement(advertisement.get());\n\t\t} else {\n\t\t\tpet.setAdvertisement(null);\n\t\t}\n\t\tpet.setGender(petDTO.getGender());\n\t\tpet.setId(petDTO.getId());\n\t\tpet.setSpecies(petDTO.getSpecies());\n\t\tpet.setDescription(petDTO.getDescription());\n\t\tpet.setDateOfBirth(petDTO.getDateOfBirth());\n\t\tpet.setBreed(petDTO.getBreed());\n\t\tpet.setName(petDTO.getName());\n\t\tpet.setPicture(petDTO.getPicture());\n\t\treturn pet;\n\t}", "void eat(Edible anEdible, int amount);", "@Override\n\tpublic void jogavel(Participante p) {\n\t\t\n\t}", "public abstract void addCreature(Point p, BaseCreature critter);", "void planted() {\n\n }", "int countByExample(PetExample example);", "public boolean checkPet() {\r\n return this.player.pet.getIsAlive();\r\n }", "private void feed(Player p){\r\n\t\tSystem.out.println(\"What pet would you like to feed?\");\r\n\t\tArrayList<Food> foodlist = p.getFood();\r\n\r\n\t\tint c = 1;\r\n\t\tfor(Pet pet : p.getPets()){\r\n\t\t\tSystem.out.println(c + \". \" + pet.getPetname());\r\n\t\t\tc++;\r\n\t\t}\r\n\r\n\t\tint selectedpetindex = getNumber(1, p.getPets().size());\r\n\t\tPet selectedpet = p.getPets().get(selectedpetindex - 1);\r\n\t\tSystem.out.println(\"What food do you want to feed \" + selectedpet.getPetname() + \" with?\");\r\n\r\n\t\tc = 1;\r\n\t\tfor(Food f : foodlist){\r\n\t\t\tSystem.out.println(c + \". \" + f.getName());\r\n\t\t\tc++;\r\n\t\t}\r\n\r\n\t\tint foodindex = getNumber(1, foodlist.size());\r\n\t\tFood selectedfood = foodlist.get(foodindex);\r\n\r\n\t\tselectedpet.feed(selectedfood);\r\n\t\tfoodlist.remove(foodindex);\r\n\t\tp.setFood(foodlist);\r\n\r\n\t\tp.setActions(p.getActions() - 1);\r\n\t}", "@Override\r\n\tpublic int insert(shopPet t) {\n\t\treturn dao.insert(t);\r\n\t}", "public void occupyPit(Pit pit);", "void Dogs() {\n \n }", "@Override\n\tprotected void apply(Living affected) {\n\t\t\n\t}", "default void interactWith(PressurePlate pressurePlate) {\n\t}", "public void interact(Entity other) { }", "void impact(GameObject object) {\n\n }", "@Override\n\tpublic void makeFeatChoices(PlayerCharacter pc) {\n\n\t}", "public abstract void eat(String foodName);", "public void addperson(Person p, int floorNum) {\n\r\n\r\n }", "@Override\n\tpublic void eats() {\n\t\t\n\t}", "@PostMapping(\"person/{personId}/pets\")\n\tpublic PetModel createComment(@PathVariable (value = \"personId\") Long personId,\n\t\t\t@Valid @RequestBody PetModel pet) {\n\t\treturn personRepo.findById(personId).map(PersonModel -> {\n\t\t\tpet.setPerson(PersonModel);\n\t\t\treturn petRepo.save(pet);\n\t\t}).orElseThrow(() -> new ResourceNotFoundException(\"Person\", \"id\", pet));\n\t}", "public void create(Person p) {\n\t\t\n\t}", "public abstract co.com.telefonica.atiempo.ejb.eb.PeticionLocal getPeticion();", "public abstract void attack(Player p);", "public Potion()\r\n\t{\r\n\t\tsuper(\"Potion\");\r\n\t\thealthRecovery = 30;\r\n\t}", "Hurt createHurt();", "public void playOne(VirtualPet player) {\n\t\tplayer.playPet();\n\t}", "public PlayerInterface createPlayer(String godName, PlayerInterface p) {\n God god = find(godName);\n p = addEffects(p, god.getEffects());\n return p;\n }", "public interface PetService extends CrudService<Pet, Long>{\n\n}", "protected abstract void addMeat();", "default void interactWith(Lever lever) {\n\t}", "public void addPotion() {\n setPotion(getPotion() + 1);\n }" ]
[ "0.706861", "0.68448573", "0.6732431", "0.6728354", "0.6559374", "0.651646", "0.63397235", "0.6292373", "0.6242487", "0.61305237", "0.6059782", "0.60574406", "0.60391724", "0.6033726", "0.60250795", "0.6012292", "0.59814954", "0.59678", "0.59673196", "0.5963243", "0.5946774", "0.59009236", "0.5885508", "0.5835591", "0.5829212", "0.57816654", "0.5767539", "0.5764873", "0.5724832", "0.5704664", "0.5696848", "0.5696003", "0.5669904", "0.5660531", "0.5637776", "0.562114", "0.56093276", "0.56023735", "0.55946356", "0.55871314", "0.5584199", "0.5583069", "0.55705893", "0.55629605", "0.55552816", "0.5525968", "0.55210996", "0.5521074", "0.5504788", "0.5504104", "0.55019164", "0.55002296", "0.54879713", "0.5484561", "0.5480242", "0.5469438", "0.5465715", "0.5460955", "0.5460732", "0.54600525", "0.5448145", "0.5430483", "0.5428852", "0.5419755", "0.541849", "0.54054826", "0.5401816", "0.53831786", "0.53712356", "0.53633285", "0.53607893", "0.5354312", "0.5345357", "0.5340311", "0.5337007", "0.5333154", "0.5330734", "0.53230315", "0.53225887", "0.53190416", "0.5313564", "0.53012335", "0.53009796", "0.528847", "0.52858126", "0.5282869", "0.527472", "0.5267189", "0.52643985", "0.52581894", "0.52566814", "0.525465", "0.52542347", "0.5250038", "0.52452815", "0.52408457", "0.52381253", "0.5235997", "0.5232892", "0.5231175" ]
0.5983569
16
Have to set it to true so you can your the OnCreateOptionsMenu() function
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { setHasOptionsMenu(true); rootView = inflater.inflate(R.layout.link_list, container, false); activity = getActivity(); // Find a reference to the {@link ListView} in the layout linksListView = (ListView) rootView.findViewById(R.id.list); emptyStateTextView = (TextView) rootView.findViewById(R.id.empty_view); linksListView.setEmptyView(emptyStateTextView); /*Jwydo*/ db = new LnkFtchDbHelper(getActivity()); db.open(); /*the Db will load correctly and everything, just need to invoke calls like these db.deleteAllEntries(LnkContract.LinkEntry.TABLE_NAME_EMAIL); db.createEmailEntry("SomeName", "SomeEmail", "SomeTime"); db.createEmailEntry("NewEmail", "[email protected]", "SomeTime"); */ //Testing whether QueryUtils works //QueryUtils.createEmail("[email protected]", db); displayListView(); return rootView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\n\t\t \n return true;\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n\r\n return true;\r\n }", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) \n\t{\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n super.onCreateOptionsMenu(menu);\n return true;\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n //return true;\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\n\t\n\t\t return true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\treturn true;\n\t}" ]
[ "0.8536829", "0.85315305", "0.8531289", "0.85166323", "0.85166323", "0.85166323", "0.85166323", "0.85166323", "0.85166323", "0.8511543", "0.8488834", "0.8486182", "0.8478717", "0.8472849", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.84274346", "0.8426301", "0.8408649", "0.8408649", "0.83695096", "0.8364552", "0.8364552", "0.8364552", "0.8364552", "0.8364552", "0.8364552", "0.8364552", "0.8290992", "0.82874477", "0.8233438", "0.82184774", "0.8199179", "0.81759906" ]
0.0
-1
Hide loading indicator because the data has been loaded
@Override public void onLoadFinished(Loader<List<Link>> loader, List<Link> links) { View loadingIndicator = rootView.findViewById(R.id.loading_indicator); loadingIndicator.setVisibility(View.GONE); // Set empty state text to display "No links found." emptyStateTextView.setText(R.string.no_links); /* Jwydo depercated // Clear the adapter of previous link data //adapter.clear(); // If there is a valid list of {@link Links}s, then add them to the adapter's // data set. This will trigger the ListView to update. if (links != null && !links.isEmpty()) { adapter.addAll(links); } */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void hideLoading()\n {\n relLoadingPanel.setVisibility(View.GONE);\n ViewHelper.setViewGroupEnabled(scrMainContainer, true);\n }", "private void showLoading() {\n mRecycleView.setVisibility(View.INVISIBLE);\n /* Finally, show the loading indicator */\n mLoadingIndicator.setVisibility(View.VISIBLE);\n }", "private void showLoading() {\n hideNoNetwork();\n mRecipesBinding.fragmentRecipesProgressBar.setVisibility(View.VISIBLE);\n }", "private void hideLoadingAndUpdate() {\n image.setVisibility(View.VISIBLE);\n loadingBar.setVisibility(View.INVISIBLE);\n shareBtn.setVisibility(shareBtnVisibility);\n\n }", "@Override\n public void hiddenLoading() {\n Log.i(Tag, \"hiddenLoading\");\n }", "@Override\n public void hideLoading() {\n if (progressDialog!=null && progressDialog.isShowing()){\n progressDialog.dismiss();\n }\n }", "protected void hideLoader() {\n\n if (progressBar != null) {\n progressBar.setVisibility(View.INVISIBLE);\n }\n if(getActivity()!=null) {\n getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n }\n\n }", "public void showLoading() {\n loadingLayout.setVisibility(View.VISIBLE);\n mapView.setVisibility(View.GONE);\n errorLayout.setVisibility(View.GONE);\n }", "private void showLoading()\n {\n relLoadingPanel.setVisibility(View.VISIBLE);\n ViewHelper.setViewGroupEnabled(scrMainContainer, false);\n }", "private void setLoadingDisplay() {\n if (swipeRefreshing) {\n footer.clear();\n setRefreshing(true);\n } else if (loading) {\n footer.setLoading();\n }\n }", "private void showDataView() {\n mLoadingIndicator.setVisibility(View.INVISIBLE);\n /* Finally, make sure the data is visible */\n mRecycleView.setVisibility(View.VISIBLE);\n }", "@Override\n protected void onStartLoading() {\n progressBar.setVisibility(View.VISIBLE);\n forceLoad();\n }", "@Override\r\n\tpublic void showLoading(boolean isLoading) {\r\n\t\tsetSupportProgressBarIndeterminateVisibility(isLoading);\r\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tloadingView.setVisibility(View.VISIBLE);\n\t\t}", "@Override\n public void showLoading() {\n setRefresh(true);\n }", "public final void showLoadingIndicator(boolean z) {\n if (z) {\n ProgressBar progressBar = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLoadingAuctionSaleList);\n Intrinsics.checkExpressionValueIsNotNull(progressBar, \"pbLoadingAuctionSaleList\");\n progressBar.setVisibility(0);\n return;\n }\n ProgressBar progressBar2 = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLoadingAuctionSaleList);\n Intrinsics.checkExpressionValueIsNotNull(progressBar2, \"pbLoadingAuctionSaleList\");\n progressBar2.setVisibility(8);\n }", "void showLoading(boolean visible);", "@Override\n protected void onPreExecute() {\n mLytContainerLayout.setVisibility(View.GONE);\n mToolbar.setVisibility(View.GONE);\n mPrgLoading.setVisibility(View.VISIBLE);\n }", "public void showProgress(){\n loadMainActivity.setVisibility(View.VISIBLE);\n recyclerView.setVisibility(View.INVISIBLE);\n }", "protected void showLoader() {\n if (progressBar != null) {\n progressBar.setVisibility(View.VISIBLE);\n }\n if(getActivity()!=null) {\n getActivity().getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE,\n WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n }\n }", "public void showLoadingView() {\n handleLoadingContainer(false /* showContent */, false /* showEmpty */, false /* animate */);\n }", "public void showLoading() {\n }", "void showLoading(boolean isLoading);", "public void hideLoadingDialog() {\n if (isDestroyingActivity())\n return;\n if (mProgressDialog != null && mProgressDialog.isShowing()) {\n mProgressDialog.dismiss();\n mProgressDialog = null;\n }\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n mLoadingIndicator.setVisibility(View.VISIBLE);\n }", "private void hideProgressIndicator() {\n setProgressBarIndeterminateVisibility(false);\n setProgressBarIndeterminate(false);\n }", "public void stopLoadAnim() {\n avi.smoothToHide();\n loadTv.setVisibility(View.INVISIBLE);\n loginContainer.setVisibility(View.VISIBLE);\n }", "void hideMainLoadingWheel();", "private void showLoadedResults() {\n recyclerView.setVisibility(View.VISIBLE);\n errorMessageDisplayView.setVisibility(View.INVISIBLE);\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n /** SHOW PROGRESS WHILE LOADING DATA **/\n linlaHeaderProgress.setVisibility(View.VISIBLE);\n }", "public void onStopLoading() {\n boolean cancelLoad = cancelLoad();\n }", "public void onStopLoading() {\n boolean cancelLoad = cancelLoad();\n }", "@Override\n protected void onStartLoading() {\n super.onStartLoading();\n\n mLoadingIndicator.setVisibility(View.VISIBLE);\n\n forceLoad();\n }", "@Override\n public void onLoadingStarted(String arg0, View arg1) {\n holder.imageView.setVisibility(View.GONE);\n }", "private void displayLoader() {\n pDialog = new ProgressDialog(DangKyActivity.this);\n pDialog.setMessage(\"Vui lòng đợi trong giây lát...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }", "@Override\r\n public void onPreResponse() {\r\n findViewById(R.id.loader).setVisibility(View.VISIBLE);\r\n findViewById(R.id.mainContainer).setVisibility(View.GONE);\r\n findViewById(R.id.errorText).setVisibility(View.GONE);\r\n\r\n }", "public void showData(){\n loadMainActivity.setVisibility(View.INVISIBLE);\n recyclerView.setVisibility(View.VISIBLE);\n }", "public void onStopLoading() {\n cancelLoad();\n }", "private void displayLoadingIndicator(Boolean displayIndicator){\n Log.d(LOG_TAG, \"displayLoadingIndicator() => \" + displayIndicator);\n if (displayIndicator){\n /* Display the loading indicator */\n mLoadingIndicator.setVisibility(View.VISIBLE);\n } else {\n /* Hide the loading indicator */\n mLoadingIndicator.setVisibility(View.INVISIBLE);\n }\n }", "public boolean loadProgress() {\n return false;\n }", "public void startLoading() {\r\n\t\tgetDisplay().setRowCount(0, true);\r\n\t\tlabel1.setHTML(\"\");\r\n\t\tlabel2.setHTML(\"\");\r\n\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n settLoadingScr.setVisibility(View.VISIBLE);\n\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n settLoadingScr.setVisibility(View.VISIBLE);\n\n }", "@Override\n protected void onStopLoading() {\n cancelLoad();\n }", "private void setDataVisibility() {\n boolean loaded = mRecipeList != null && mRecipeList.size() > 0;\n Logger.d(\"loaded: \" + loaded);\n mRefreshLayout.setRefreshing(false);\n\n mRecipesRecyclerView.setVisibility(loaded ? View.VISIBLE : View.GONE);\n mNoDataContainer.setVisibility(loaded ? View.GONE : View.VISIBLE);\n\n cookBookApplication.setIdleState(true);\n\n }", "@Override\n protected void onStopLoading() {\n cancelLoad();\n }", "public void infoProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.GONE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "@Override\r\n\t\tprotected void onPreExecute() {\r\n\t\t\tsuper.onPreExecute();\r\n\t\t\tshowLoading();\r\n\t\t}", "protected final void showLoadingDialog() {\n }", "@Override\n\t\t\tpublic void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n\t\t\t\tif (progressbar != null)\n\t\t\t\t\tprogressbar.setVisibility(View.GONE);\n\t\t\t}", "@Override\n public void showLoading() {\n Log.i(Tag, \"showLoading\");\n }", "public final void showLoadingIndicator(boolean z) {\n if (z) {\n ProgressBar progressBar = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(progressBar, \"pbReviewPayment\");\n progressBar.setVisibility(0);\n return;\n }\n ProgressBar progressBar2 = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(progressBar2, \"pbReviewPayment\");\n progressBar2.setVisibility(8);\n }", "void hideNextEventsLoadingWheel();", "public boolean isBusyLoading() {\n\t\treturn false; // return (AppStatusLine.isBusyLoading());\n\t}", "@Override\n protected void onPostExecute(Void result) {\n super.onPostExecute(result);\n\n listBook.setAdapter(adapter);\n\n /** HIDE PROGRESS AFTER LOADING DATA **/\n linlaHeaderProgress.setVisibility(View.GONE);\n\n\n }", "@Override\n public void setLoadingIndicator(boolean active) {\n\n if (active) {\n mBusyIndicator.setVisibility(View.VISIBLE);\n } else {\n mBusyIndicator.setVisibility(View.GONE);\n }\n }", "public boolean isLoading() {\n return mIsLoading;\n }", "public void setLoading(boolean loading) {\n this.loading = loading;\n }", "@Override\r\n\t\tpublic void onLoadingCancelled(String arg0, View arg1) {\n\t\t\tholder.app_icon.setVisibility(View.VISIBLE);\r\n\t\t}", "public void startLoading() {\n projects.clear();\n processContainer.setVisibility(View.VISIBLE);\n progressSpinner.setVisibility(View.VISIBLE);\n progressText.setVisibility(View.VISIBLE);\n progressText.setText(\"Getting Items...\"); // Text updated using SetProgress()\n listView.setVisibility(View.GONE);\n }", "@Override\n public Boolean isLoading() {\n return loadingInProgress;\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n loading = ProgressDialog.show(this.context, \"Fetching Data\",\"Please Wait...\",true,true);\n }", "@Override\n protected void onStartLoading() {\n if (idlingResource != null) {\n idlingResource.setIdleState(false);\n }\n\n if (recepts != null) {\n deliverResult(recepts);\n } else {\n mLoadingIndicator.setVisibility(View.VISIBLE);\n forceLoad();\n }\n }", "public void showLoadingView() {\n mStateView.showViewLoading();\n }", "public void onStop() {\n if (this.loadingCount > 0) {\n this.loadingCount = 1;\n hideLoading();\n }\n super.onStop();\n }", "protected void showLoading()\n {\n progressBar = new ProgressDialog(this);\n progressBar.setTitle(\"Loading\");\n progressBar.setMessage(\"Wait while loading...\");\n progressBar.setCancelable(false); // disable dismiss by tapping outside of the dialog\n progressBar.show();\n }", "void setLoading(boolean isLoading);", "@Override\n\t\t\tpublic void onLoadingCancelled(String imageUri, View view) {\n\t\t\t\tif (progressbar != null)\n\t\t\t\t\tprogressbar.setVisibility(View.GONE);\n\t\t\t}", "public void onLoadingComplete() {\n swipeRefreshing = loading = false;\n autoLoadMore = true;\n\n setRefreshing(false);\n\n if (postsAdapter.getCount() == 0) footer.showMessage(NO_POSTS);\n else footer.clear();\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tlinlaHeaderProgress.setVisibility(View.VISIBLE);\n\t\t}", "private void displayLoader() {\n pDialog = new ProgressDialog(AddReviewActivity.this);\n pDialog.setMessage(\"Adding Review...Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }", "public final void showLoadingIndicator(boolean z) {\n if (z) {\n ProgressBar progressBar = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLogin);\n if (progressBar != null) {\n progressBar.setVisibility(0);\n return;\n }\n return;\n }\n ProgressBar progressBar2 = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLogin);\n if (progressBar2 != null) {\n progressBar2.setVisibility(8);\n }\n }", "@Override\n protected void onStopLoading() {\n // Attempt to cancel the current load task if possible.\n cancelLoad();\n }", "@Override\n protected void onStopLoading() {\n // Attempt to cancel the current load task if possible.\n cancelLoad();\n }", "@Override\n protected void onStopLoading() {\n // Attempt to cancel the current load task if possible.\n cancelLoad();\n }", "public void hideLoadingScreen() {\n setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n getSelectGameScreenIfActive().ifPresent((gameScreen) -> gameScreen.setEnabled());\n }", "private void showProgressIndicator() {\n setProgressBarIndeterminateVisibility(true);\n setProgressBarIndeterminate(true);\n }", "@Override\nprotected void onStopLoading() {\n cancelLoad();\n }", "@Override\n public void onListDataLoaded() {\n if (this.progressBar != null && !this.isListLoaded) {\n this.progressBar.setVisibility(View.GONE);\n }\n if (!this.isListLoaded) {\n addListHeader();\n this.isListLoaded = true;\n }\n }", "private void hideProgress() {\n\n if(null != mErrorTextView) {\n mErrorTextView.setVisibility(View.GONE);\n }\n }", "@Override\n public void onLoadFinished(Loader<List<VehiclesTotalRunningCosts>> loader, List<VehiclesTotalRunningCosts> data) {\n mLoadingIndicator.setVisibility(View.INVISIBLE);\n\n if (data == null || data.size() == 0) {\n showEmptyView();\n } else {\n showDashboardListView();\n }\n /* Update the adapters data with the new one */\n invalidateData();\n mDashboardListAdapter.setDashboardData(data);\n\n if (mRecyclerState != null) {\n mDashboardList.getLayoutManager().onRestoreInstanceState(mRecyclerState);\n mRecyclerState = null;\n }\n }", "@Override\n public void onLoadingCancelled(String arg0, View arg1) {\n holder.imageView.setVisibility(View.GONE);\n }", "public void showLoadingError() {\n showError(MESSAGE_LOADING_ERROR);\n }", "@Override\r\n public void beforeTaskComplete() {\r\n if (recyclerView.getChildCount() < 1) {\r\n recyclerView.setVisibility(View.GONE);\r\n }\r\n progressBar.setVisibility(View.VISIBLE);\r\n }", "void hidePreviousEventsLoadingWheel();", "@Override\n public void onLoadingComplete(String arg0, View arg1, Bitmap arg2) {\n holder.imageView.setVisibility(View.VISIBLE);\n }", "@Override\r\n\t\tpublic void onLoadingComplete(String arg0, View arg1, Bitmap arg2) {\n\t\t\tholder.app_icon.setVisibility(View.VISIBLE);\r\n\t\t}", "@Override public void showLoading() {\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowLoading();\n\n errorView.setVisibility(View.GONE);\n setFormEnabled(false);\n }", "public void onUnFinishFetching() {\n\t\t\t\thideLoading();\n\t\t\t\tUiApplication.getUiApplication().invokeLater(new Runnable() {\n\t\t\t\t\t\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}\n\t\t\t\t});\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onLoadingFailed(String imageUri, View view, FailReason failReason) {\n\t\t\t\tif (progressbar != null)\n\t\t\t\t\tprogressbar.setVisibility(View.GONE);\n\t\t\t}", "@Override\n protected void onStopLoading() {\n cancelLoad();\n\n // Note that we leave the observer as is. Loaders in a stopped state\n // should still monitor the data source for changes so that the Loader\n // will know to force a new load if it is ever started again.\n }", "@Override\n public void onLoadFinished(Loader<ArrayList<Movie>> loader, ArrayList<Movie> data) {\n mLoadingIndicator.setVisibility(View.INVISIBLE);\n mAdapter.setMovieData(data);\n\n\n if (data != null) {\n showJsonData();\n } else {\n showErrorMessage();\n }\n }", "private void setLoading(boolean isLoading) {\n if (isLoading) {\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE,\n WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n layoutLoading.setVisibility(View.VISIBLE);\n } else {\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n layoutLoading.setVisibility(View.INVISIBLE);\n }\n }", "public void displayLoadingWindowServerDown()\r\n\t{\r\n\t\tloadingWindow.hideLoadingBar();\r\n\t\tloadingWindow.setDescription(\"The HVMK server is down. Please try again later.\");\r\n\t}", "private void showNothing(){\n errorTextView.setVisibility(View.INVISIBLE);\n errorButton.setVisibility(View.INVISIBLE);\n errorButton.setEnabled(false);\n recyclerView.setVisibility(View.INVISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n noFavoriteMoviesTextView.setVisibility(View.INVISIBLE);\n }", "public void hideProgressDialog() {\r\n\t\trunOnUiThread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (progress.isShowing())\r\n\t\t\t\t\t\tprogress.dismiss();\r\n\t\t\t\t} catch (Throwable e) {\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n protected void onPreExecute() {\n showLoadingProgressDialog();\n }", "@Override\n protected void onPreExecute() {\n showLoadingProgressDialog();\n }", "@Override\n public void hideProgressBar() {\n if (getActivity() != null) {\n getActivity().runOnUiThread(() -> {\n if (progressBarLayout != null && progressBar != null) {\n progressBar.setVisibility(View.GONE);\n progressBarLayout.setVisibility(View.GONE);\n }\n });\n }\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tloadLayout.setVisibility(View.VISIBLE);\n\t\t}", "@Override\n protected void onStopLoading() {\n cancelLoad();\n\n // Note that we leave the observer as is. Loaders in a stopped state\n // should still monitor the data source for changes so that the Loader\n // will know to force a new load if it is ever started again.\n }" ]
[ "0.7811368", "0.7792105", "0.7745711", "0.7680877", "0.7665593", "0.76342726", "0.7508345", "0.742704", "0.7419868", "0.72494", "0.7188237", "0.7112717", "0.7106117", "0.70980805", "0.7097986", "0.7097623", "0.70571107", "0.70479405", "0.70278245", "0.69912", "0.69730306", "0.696972", "0.6965161", "0.6957748", "0.6932418", "0.69150144", "0.6893163", "0.688576", "0.68669057", "0.68645114", "0.6843195", "0.6843195", "0.6831757", "0.67571783", "0.67476344", "0.674558", "0.6731616", "0.67066073", "0.67021734", "0.66987044", "0.6698037", "0.66881037", "0.66881037", "0.6668816", "0.6661836", "0.6655671", "0.6636355", "0.6636302", "0.66358405", "0.6630985", "0.66288257", "0.66273737", "0.6611912", "0.6600991", "0.6595659", "0.6589824", "0.6579785", "0.65706366", "0.6570022", "0.65678036", "0.6561344", "0.6545637", "0.65422946", "0.6535776", "0.6533197", "0.65292764", "0.65124947", "0.6495746", "0.64951813", "0.649112", "0.6470078", "0.6451453", "0.64508927", "0.64508927", "0.64508927", "0.64332324", "0.6427781", "0.64216864", "0.6421245", "0.64200485", "0.64153016", "0.6388034", "0.63861", "0.63812697", "0.63719296", "0.63712937", "0.6367246", "0.6360414", "0.6346381", "0.63378197", "0.63353777", "0.6326735", "0.6319927", "0.6316454", "0.6314223", "0.6297554", "0.62968224", "0.62968224", "0.629485", "0.6291598", "0.628434" ]
0.0
-1
Loader reset, so we can clear out our existing data. adapter2.clear();
@Override public void onLoaderReset(Loader<List<Link>> loader) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onLoaderReset(Loader<List<Book>> loader) {\n mAdapter.clear();\n }", "@Override\n public void onLoaderReset(Loader<ArrayList<Book>> loader) {\n adapter.clear();\n Log.i(LOG_TAG,\"onLoaderReset\");\n }", "@Override\n public void onLoaderReset(Loader<List<StockPicking>> loader) {\n mAdapter.clear();\n }", "@Override\r\n public void onLoaderReset(Loader<List<News>> loader) {\n mAdapter.clear();\r\n }", "public void onLoaderReset(Loader<List<Book>> loader) {\n mAdapter.clear();\n }", "@Override\n public void onLoaderReset(@NonNull Loader<List<newslist>> loader) {\n mAdapter.clear();\n }", "@Override\n public void onLoaderReset(Loader<List<EarthQuake>> loader) {\n mAdapter.clear();\n }", "@Override\r\n public void onLoaderReset(Loader<List<NewsList>> loader) {\n adapter.clear();\r\n }", "@Override\n public void onLoaderReset(Loader<ArrayList<NewsItem>> loader) {\n newsAdapter.clear();\n }", "@Override\n public void onLoaderReset(Loader<List<Pokemon>> loader) {\n mAdapter.clear();\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n // Clear the Cursor we were using with another call to the swapCursor()\n adapter.swapCursor(null);\n }", "@Override\n public void onLoaderReset(Loader loader) {\n mAdapter.swapCursor(null);\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n adapter.swapCursor(null);\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mAdapter.swapCursor(null);\n }", "@Override\n\tpublic void onLoaderReset(Loader<Cursor> loader) {\n\t\tsetListAdapter(null);\n\t}", "@Override\n\tpublic void onLoaderReset(Loader<Cursor> loader) {\n\t\tmAdapter.swapCursor(null);\n\t}", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mSubredditsAdapter.swapCursor(null);\n }", "@Override\n public void onLoaderReset(android.support.v4.content.Loader loader) {\n adapter.swapCursor(null);\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mPurseAdapter.swapCursor(null);\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n this.goalAdapter.swapCursor(null);\n }", "@Override\r\n public void onLoaderReset(Loader<Cursor> loader) {\n mCursorAdapter.swapCursor(null);\r\n\r\n }", "@Override\n public void onLoaderReset(Loader<ArrayList<SingleMovieReview>> loader) {\n Log.i(LOG_TAG, \"onLoaderReset\");\n mAdapterR = new MovieReviewsAdapter(reviewsList);\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mCursorAdapter.swapCursor(null);\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n bookAdapter.swapCursor(null);\n }", "@Override\n public void onLoaderReset(Loader<List<News>> loader) {\n mAdapter = new NewsRecyclerAdapter(MainActivity.this, new ArrayList<News>());\n }", "@Override\n public void onLoaderReset(Loader<List<TutorialModel>> loader) {\n mTutorialAdapter.clear();\n progressDialog.toggleDialog(false);\n }", "public void onLoaderReset(Loader<Cursor> arg0) {\n \t adapter.swapCursor(null);\n \t\t\n \t}", "public void onLoaderReset(Loader<Cursor> loader) {\n awardsGridViewAdapter.swapCursor(null);\n }", "@Override\n\tpublic void onLoaderReset(Loader<Cursor> loader) {\n\n\t}", "@Override public void onLoaderReset(Loader<Cursor> loader) {\n\t\t}", "@Override\r\n\tpublic void onLoaderReset(Loader<Cursor> mLoader) {\n\t\t\r\n\t}", "@Override\n\tpublic void onLoaderReset(Loader<Cursor> arg0) {\n\t // This is called when the last Cursor provided to onLoadFinished()\n\t // above is about to be closed. We need to make sure we are no\n\t // longer using it.\n\t\tmForecastAdapter.swapCursor(null); // Release previous cursor so can be properly handled\n\t}", "@Override\n protected void onReset() {\n onStopLoading();\n\n // At this point we can release the resources associated with 'mData'.\n if (mResult != null) {\n mResult = null;\n }\n\n }", "@Override\n protected void onReset() {\n onStopLoading();\n\n // At this point we can release the resources associated with 'mData'.\n if (mData != null) {\n releaseResources(mData);\n mData = null;\n }\n }", "@Override\r\n public void onLoaderReset(Loader<Cursor> loader){\r\n //mDetailCursor = null;\r\n }", "@Override\n\tpublic void onReset() {\n\t\tonStopLoading();\n\n\t\t// At this point we can release the resources associated with 'mData'.\n\t\tif (mData != null) {\n\t\t\tonReleaseResources(mData);\n\t\t\tmData = null;\n\t\t}\n\t\t// The Loader is being reset so we need to unregister Observer\n\t\tunregisterObserver();\n\t}", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n\n\n }", "public void reset() {\n //mLoader.reset();\n start();\n }", "private void refreshData(){\n Log.d(LOG_TAG, \"refreshData()\");\n mRVAdapter.setData(null);\n loadData();\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader)\n {\n// mFlavorAdapter.swapCursor(null);\n }", "@Override\n public void onLoaderReset(@NonNull Loader<Cursor> loader) {\n\n }", "@Override\n public void onLoaderReset(Loader<Cursor> arg0) {\n\n }", "@Override\n public void onLoaderReset(Loader<Cursor> arg0) {\n\n }", "@Override\n protected void onReset() {\n super.onReset();\n\n // Ensure the loader is stopped\n onStopLoading();\n\n // At this point we can release the resources associated with 'apps' if needed.\n if (mData != null) {\n onReleaseResources(mData);\n mData = null;\n }\n }", "@Override\n public void onLoaderReset(Loader<List<VehiclesTotalRunningCosts>> loader) {\n /*\n * We aren't using this method in this application, but we are required to Override\n * it to implement the LoaderCallbacks<List<DashboardReviewsListItem>> interface\n */\n }", "@Override\n protected void onReset() {\n onStopLoading();\n\n // At this point we can release resources\n if( mData != null ) {\n releaseResources( mData );\n mData = null;\n }\n\n // The loader is being reset, so we should stop monitoring for changes\n if( mObserver != null ) {\n resolver.unregisterContentObserver( mObserver );\n mObserver = null;\n }\n }", "@Override\n public void onLoaderReset(Loader<ArrayList<Reviews>> loader) {\n\n }", "@Override\n public void onLoaderReset(Loader<Cursor> arg0) {\n\n\n }", "@Override \n\t protected void onReset() {\n\t super.onReset();\n\n\t // Ensure the loader is stopped\n\t onStopLoading();\n\t \n\t mChildList = null;\n\t }", "@Override \n\t protected void onReset() {\n\t super.onReset();\n\n\t // Ensure the loader is stopped\n\t onStopLoading();\n\t \n\t mChildList = null;\n\t }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mPriceEditText.setText(\"\");\n mQuantityEditText.setText(\"\");\n mSupplierEditText.setText(\"\");\n mTypeSpinner.setSelection(0); // Select \"NOT SELECTED\"\n }", "@Override\n public void onLoaderReset(Loader<ArrayList<Movie>> loader) {\n }", "@Override\n public void onLoaderReset(Loader<Cursor> cursorLoader) {\n // Nothing to do here\n }", "private void reset() {\n\n mPullRefreshEnabled = mAutoLoadAdapter.getPullToRefreshEn();\n mIsLoadMoreEn = mAutoLoadAdapter.getLoadMoreEn();\n mIsFooterEn = mAutoLoadAdapter.getFooterEn();\n mIsLoadMoreErrEn = mAutoLoadAdapter.getLoadMoreErrEn();\n setLoadingMore(false);\n }", "@Override\n protected void onReset() {\n // Ensure the loader has been stopped.\n onStopLoading();\n // At this point we can release the resources.\n if (mCursor != null) {\n ReleaseResources(mCursor);\n mCursor = null;\n }\n }", "@Override\n\tpublic void onLoaderReset(Loader<List<NewsEntry>> arg0)\n\t{\n\t\t\n\t}", "@Override\n protected void onReset() {\n super.onReset();\n // Ensure the loader is stopped\n onStopLoading();\n // At this point we can release the resources associated with 'apps'\n // if needed.\n if (mData != null) {\n onReleaseResources(mData);\n mData = null;\n }\n unregisterObserver();\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mNameTextView.setText(\"\");\n mQuantityTextView.setText(\"\");\n mPriceTextView.setText(\"\");\n mSupplierTextView.setText(\"\");\n mPhoneTextView.setText(\"\");\n mEmailTextView.setText(\"\");\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n nameTextView.setText(\"\");\n ingredientsTextView.setText(\"\");\n recipeTextView.setText(\"\");\n }", "@Override\n\tpublic void onLoaderReset(Loader<ContentResponse> loader) {\n\t\t\n\t}", "@Override\n\tpublic void onLoaderReset(Loader<ContentResponse> loader) {\n\t\t\n\t}", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n //data.moveToPrevious();\n mAdapter.swapCursor(data);\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mBrandEditText.setText(\"\");\n mModelEditText.setText(\"\");\n mPriceEditText.setText(\"\");\n mQuantityEditText.setText(\"\");\n mColourSpinner.setSelection(0);\n }", "@Override\r\n\t\tpublic void onLoaderReset(android.content.Loader<List<User>> arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n public void onLoaderReset(Loader<Cursor> loader) {\n\r\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mDescriptionEditText.setText(\"\");\n\n }", "private void reset() {\n\t\tdata.clear();\n\t}", "@Override\n\tpublic void onLoaderReset(Loader<Cursor> loader) {\n\t\tswitch (loader.getId()) {\n\t\t\tcase LOADER_MODULES_FRAGMENT:\n\t\t\t\t((ModulesCursorAdapter) mAdapter).swapCursor(null);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase LOADER_MODULE_INFO_FRAGMENT_DESCRIPTIONS:\n\t\t\tcase LOADER_MODULE_ANNOUNCEMENTS_FRAGMENT:\n\t\t\tcase LOADER_NEW_ANNOUNCEMENTS_FRAGMENT:\n\t\t\t\t((CursorAdapter) mAdapter).swapCursor(null);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase LOADER_MODULE_WEBCASTS_FRAGMENT:\n\t\t\tcase LOADER_MODULE_WORKBINS_FRAGMENT:\n\t\t\tcase LOADER_VIEW_WEBCAST_FRAGMENT:\n\t\t\tcase LOADER_VIEW_WEBCAST_ITEM_GROUP_FRAGMENT:\n\t\t\tcase LOADER_VIEW_WORKBIN_FILES_FRAGMENT:\n\t\t\tcase LOADER_VIEW_WORKBIN_FOLDERS_FRAGMENT:\n\t\t\t\t((SimpleCursorAdapter) mAdapter).swapCursor(null);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase LOADER_MODULE_INFO_FRAGMENT:\n\t\t\tcase LOADER_VIEW_ANNOUNCEMENT_FRAGMENT:\n\t\t\tcase LOADER_VIEW_WEBCAST_ACTIVITY:\n\t\t\tcase LOADER_VIEW_WEBCAST_FILE_ACTIVITY:\n\t\t\tcase LOADER_VIEW_WORKBIN_ACTIVITY:\n\t\t\tcase LOADER_VIEW_WORKBIN_FRAGMENT:\n\t\t\t\t// Do nothing.\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\"No such loader\");\n\t\t}\n\t}", "@Override\r\n public void onLoaderReset(Loader<Cursor> loader) {\n mLocationCursor.close();\r\n mLocationCursor = null;\r\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n etTitle.setText(\"\");\n etAuthor.setText(\"\");\n etPrice.setText(\"\");\n etEditQuantity.setText(\"\");\n etSupplier.setText(\"\");\n etPhoneNumber.setText(\"\");\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mNameEditText.setText(\"\");\n mDescriptionEditText.setText(\"\");\n mPriceEditText.setText(\"\");\n mQuantityEditText.setText(\"\");\n mImageView.setImageDrawable(null);\n\n }", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n // Update the data that the adapter uses to create ViewHolders\n mAdapter.swapCursor(data);\n }", "@Override\n public void onLoadFinished(android.support.v4.content.Loader loader, Cursor data) {\n adapter.swapCursor(data);//replaces the old Cursor with the new one\n }", "@Override\n public void onLoaderReset(@NonNull Loader<Cursor> loader) {\n mTitleEditText.setText(\"\");\n mPriceEditText.setText(\"\");\n mQuantityEditText.setText(\"\");\n mSupplierNameEditText.setText(\"\");\n mSupplierPhoneEditText.setText(\"\");\n\n }", "public void resetAdapter() {\n\n // Hide ProgressBar\n mBinding.searchUserLayout.getUvm().hideProgress();\n\n // Cancel any pending searches\n mSearchHandler.removeCallbacksAndMessages(null);\n\n // Clear the Adapter\n mAdapter.clear();\n }", "public void reset() {\n cancelTaskLoadOIFits();\n\n userCollection = new OiDataCollection();\n oiFitsCollection = new OIFitsCollection();\n oiFitsCollectionFile = null;\n selectedDataPointer = null;\n\n fireOIFitsCollectionChanged();\n }", "public void onReset() {\n super.onReset();\n onStopLoading();\n Cursor cursor = this.mCursor;\n if (cursor != null && !cursor.isClosed()) {\n this.mCursor.close();\n }\n this.mCursor = null;\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mNameEditText.setText(\"\");\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mNameEditText.setText(\"\");\n mAddressEditText.setText(\"\");\n mNumberEditText.setText(\"\");\n mBirthTextView.setText(\"\");\n mImagePathTextView.setText(\"\");\n\n }", "private void freshTheData() {\n mData.clear();\n mData.addAll(mDataOrg);\n }", "@Override\n public void onLoaderReset(Loader<List<EarthQuake>> loader) {\n updateUI(null,\"No earthQUakeFound\");\n\n }", "void onItemsLoadComplete() {\n adapter.notifyDataSetChanged();\n\n // Stop refresh animation\n srl.setRefreshing(false);\n }", "@Override\n\tpublic void refreshData(){\n\t\tpageNum = 1;\n\t\tlist.clear();\n\t\tloadData();\n\t}", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n bookAdapter.swapCursor(data);\n }", "private void refreshData(){\n filempty.setVisibility(View.GONE);\n adapter = new FoundRecyclerviewAdapter(FoundActivity.this, data);\n v.setAdapter(adapter);\n emptyView();\n }", "public void reset() {\n resetData();\n postInvalidate();\n }", "private void fillAdapter() {\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<String> recipesListLoader = loaderManager.getLoader(RECIPES_LIST_LOADER);\n if(recipesListLoader == null) {\n loaderManager.initLoader(RECIPES_LIST_LOADER, null, this);\n } else {\n loaderManager.restartLoader(RECIPES_LIST_LOADER, null, this);\n }\n }", "public void onReset() {\n super.onReset();\n onStopLoading();\n if (this.mCursor != null && !this.mCursor.isClosed()) {\n this.mCursor.close();\n }\n this.mCursor = null;\n }", "@Override\n protected void onStopLoading() {\n cancelLoad();\n\n // Note that we leave the observer as is. Loaders in a stopped state\n // should still monitor the data source for changes so that the Loader\n // will know to force a new load if it is ever started again.\n }", "@Override\n public void clear() {\n isLoaded = false;\n }", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {\n // The swapCursor() method assigns the new Cursor to the adapter\n adapter.swapCursor(cursor);\n }", "@Override\n public void clear() {\n original.clear();\n filtered.clear();\n notifyDataSetChanged();\n }", "public void onReset() {\n super.onReset();\n onStopLoading();\n if (!(this.mCursor == null || this.mCursor.isClosed())) {\n this.mCursor.close();\n }\n this.mCursor = null;\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mProductName.setText(\"\");\n mProductPrice.setText(\"\");\n mProductQuantity.setText(\"\");\n // Select \"Unknown\" gender\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mEditSymptomText.setText(\"\");\n }", "private void clearData() {}", "protected synchronized void clearURLLoader() {\r\n currentLoader = null;\r\n }", "public void clearData() {\n mData.clear();\n notifyDataSetChanged();\n }", "protected void resetCache() {\n if (cacheResults && initialized) {\n dataCache.clear();\n }\n }", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n mAdapter.swapCursor(data);\n if(mPosition==RecyclerView.NO_POSITION){\n mPosition=0;\n }\n mRecyclerView.smoothScrollToPosition(mPosition);\n // Log.v(\"getcount\",String.valueOf(data.getCount()));\n if(data.getCount()!=0){\n showWeatherDataView();\n }\n\n }" ]
[ "0.82650405", "0.8167838", "0.8161345", "0.8090242", "0.80745745", "0.806551", "0.806374", "0.8055596", "0.8043748", "0.8007334", "0.78237194", "0.7807075", "0.7792245", "0.7764343", "0.7719886", "0.77111274", "0.7704299", "0.7699102", "0.7674117", "0.76670814", "0.76530284", "0.76442176", "0.7614869", "0.7527855", "0.74825954", "0.747989", "0.7336255", "0.727592", "0.72585124", "0.7255355", "0.7210545", "0.7191472", "0.7166793", "0.7164284", "0.71607167", "0.7104425", "0.7069922", "0.7037143", "0.69909537", "0.6979055", "0.6972949", "0.69382846", "0.69382846", "0.6936663", "0.69301826", "0.6914998", "0.6896565", "0.6891141", "0.68773425", "0.68773425", "0.68771935", "0.6850489", "0.68495536", "0.6828818", "0.6795347", "0.67829347", "0.67617583", "0.67186207", "0.6706342", "0.67024326", "0.67024326", "0.6684029", "0.6680388", "0.6672062", "0.6654665", "0.6648778", "0.6648263", "0.6644549", "0.6643789", "0.66160154", "0.66137767", "0.66134906", "0.6582761", "0.6558554", "0.6551222", "0.6528365", "0.6475929", "0.6473725", "0.6473402", "0.6463499", "0.6432313", "0.6429991", "0.6428987", "0.64086854", "0.6408213", "0.63701653", "0.63689137", "0.63588643", "0.6347291", "0.6341623", "0.6301564", "0.6278653", "0.6273197", "0.62679964", "0.62438965", "0.62406796", "0.6225876", "0.6211822", "0.62032753", "0.6200896" ]
0.68285483
54
Get the cursor, positioned to the corresponding row in the result set
@Override public void onItemClick(AdapterView<?> listView, View view, int position, long id) { Cursor cursor = (Cursor) listView.getItemAtPosition(position); String email = cursor.getString(cursor.getColumnIndexOrThrow("email")); Intent newI = new Intent(Intent.ACTION_SENDTO); newI.setData(Uri.parse("mailto:" + email)); startActivity(newI); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract long getCursor();", "public int getCursor() { return curs; }", "@Nullable\n\tprotected abstract T readCursor(ResultSet rs, int currentRow) throws SQLException;", "public int getCurrentRowNumber() throws SQLException {\n/* 174 */ return this.currentPositionInEntireResult + 1;\n/* */ }", "public int cursor();", "public void setCursor(int row, int col);", "public java.lang.String getCursor() {\n return cursor_;\n }", "public java.lang.String getCursor() {\n return instance.getCursor();\n }", "public int nextIndex() {\n\t\t\treturn cursor;\n\t\t}", "int index(){\n\n\t\t\n\t\tif (cursor == null) \n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn index;\n\t}", "public abstract Cursor buildCursor();", "public CursorWrapper getCursor() {\n\t\t\treturn cursor;\n\t\t}", "Cursor getCursor(final Point p) {\n return getTarget().getCursor();\n }", "DataFrameCursor<R,C> cursor();", "public int cursorLineNum() {\n return cursor;\n }", "public TextPosition getPosition ( ) { return _cursorPosition; }", "public int getCursorPosition();", "DBCursor execute();", "public Cursor getCursor() throws RelationException;", "public WeightedPoint getCursor()\n {\n return cursor;\n }", "int getCursorPosition();", "public void cursorOn();", "private int jumpCursor() {\n if (cc == columns) {\n if (cl + 1 == lines)\n cl = 0;\n else\n ++cl;\n\n cc = 0;\n }\n\n return cc++;\n }", "public Cursor getCursor() throws SQLException\n {\n Cursor c = db.query( true, C_TABLA, columnas, null, null, null, null, null, null);\n\n return c;\n }", "public CursorPosition getCurrentCursorPosition(){\n return XSelection.getCurrentCursorPosition(this);\n }", "public void setCursor(int l, int c);", "public Node<E> getCursor() {\n if (isCurrent()) { return cursor; }\n else { throw new IllegalStateException(\"There is no current element.\"); }\n }", "public static interface Cursor {\n\t\tpublic void open() throws RelationException;\n\n\t\t//the hasNext() method actually loads the object, so don't skip it\n\t\tpublic boolean hasNext() throws RelationException;\n\n\t\t//this retrieves the next object. use in confunction with hasNext();\n\t\tpublic Tuple next() throws RelationException;\n\n\t\tpublic void close() throws RelationException;\n\t}", "public int maDBCursorNext(int cursorHandle)\n \t{\n \t\tif (!hasCursor(cursorHandle))\n \t\t{\n \t\t\treturn MA_DB_ERROR;\n \t\t}\n \n \t\ttry\n \t\t{\n \t\t\tif (getCursor(cursorHandle).next())\n \t\t\t{\n \t\t\t\treturn MA_DB_OK;\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\treturn MA_DB_NO_ROW;\n \t\t\t}\n \t\t}\n \t\tcatch (SQLiteException ex)\n \t\t{\n \t\t\tlogStackTrace(ex);\n \t\t\treturn MA_DB_ERROR;\n \t\t}\n \t}", "public int getPositionRow(){return this.positionRow;}", "public int getRow() throws SQLException {\n\n try {\n debugCodeCall(\"getRow\");\n checkClosed();\n int rowId = result.getRowId();\n if (rowId >= result.getRowCount()) { return 0; }\n return rowId + 1;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public int getStartRow();", "private void moveCursorToRow(int row) {\n\t\ttry {\n\t\t\tint count = 0;\n\t\t\twhile (row != count && rs.next()) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException se) {\n\t\t\tthrow getExceptionTranslator().translate(\"Attempted to move ResultSet to last committed row\", getSql(), se);\n\t\t}\n\t}", "public int getRow() { return _row; }", "public Cursor getGraphCursor() {\r\n \t\treturn graph.getCursor();\r\n \t}", "public Cursor getCursor(){\n return mCursor;\n }", "private void advance(final ResultSet rs, final RowSelection selection)\n \t\t\tthrows SQLException {\n \n-\t\tfinal int firstRow = getFirstRow( selection );\n+\t\tfinal int firstRow = LimitHelper.getFirstRow( selection );\n \t\tif ( firstRow != 0 ) {\n \t\t\tif ( getFactory().getSettings().isScrollableResultSetsEnabled() ) {\n \t\t\t\t// we can go straight to the first required row\n \t\t\t\trs.absolute( firstRow );\n \t\t\t}\n \t\t\telse {\n \t\t\t\t// we need to step through the rows one row at a time (slow)\n \t\t\t\tfor ( int m = 0; m < firstRow; m++ ) rs.next();\n \t\t\t}\n \t\t}\n \t}", "public ResultSetRow getAt(int ind) throws SQLException {\n/* 138 */ notSupported();\n/* */ \n/* 140 */ return null;\n/* */ }", "public final int getCursorX() {\n return cursorX;\n }", "public Cursor getCursor() {\n\t\treturn null;\n\t}", "public String getCursorName() throws SQLException\n {\n return m_rs.getCursorName();\n }", "public ResultSetRow next() throws SQLException {\n/* 338 */ if (this.fetchedRows == null && this.currentPositionInEntireResult != -1) {\n/* 339 */ throw SQLError.createSQLException(Messages.getString(\"ResultSet.Operation_not_allowed_after_ResultSet_closed_144\"), \"S1000\", this.mysql.getExceptionInterceptor());\n/* */ }\n/* */ \n/* */ \n/* 343 */ if (!hasNext()) {\n/* 344 */ return null;\n/* */ }\n/* */ \n/* 347 */ this.currentPositionInEntireResult++;\n/* 348 */ this.currentPositionInFetchedRows++;\n/* */ \n/* */ \n/* 351 */ if (this.fetchedRows != null && this.fetchedRows.size() == 0) {\n/* 352 */ return null;\n/* */ }\n/* */ \n/* 355 */ if (this.fetchedRows == null || this.currentPositionInFetchedRows > this.fetchedRows.size() - 1) {\n/* 356 */ fetchMoreRows();\n/* 357 */ this.currentPositionInFetchedRows = 0;\n/* */ } \n/* */ \n/* 360 */ ResultSetRow row = this.fetchedRows.get(this.currentPositionInFetchedRows);\n/* */ \n/* 362 */ row.setMetadata(this.metadata);\n/* */ \n/* 364 */ return row;\n/* */ }", "public static CursorPos cursorPos() {\n\n System.out.print(CSI + \"6n\");\n try {\n System.in.skip(2);\n int read = -1;\n StringBuilder row = new StringBuilder();\n while ((read = System.in.read()) != ';') {\n row.append((char) read);\n }\n StringBuilder col = new StringBuilder();\n while ((read = System.in.read()) != 'R') {\n col.append((char) read);\n }\n return new CursorPos(row.length() > 0 ? Integer.parseInt(row.toString()) : 1,\n col.length() > 0 ? Integer.parseInt(col.toString()) : 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public Cursor getWaitCursor() {\r\n return waitCursor;\r\n }", "public void setResultCursor() {\r\n getParameterTypes().set(0, OUT_CURSOR); \r\n setIsCursorOutputProcedure(!hasOutputCursors());\r\n setIsMultipleCursorOutputProcedure(hasOutputCursors());\r\n }", "int atRow();", "public int getRow(){\r\n // return statement\r\n return row;\r\n }", "public int locateRow(String val, int col);", "public Cursor queryTheCursorLocation() { \n\t Cursor c = db.rawQuery(\"SELECT * FROM \"+ DBEntryContract.LocationEntry.TABLE_NAME, null); \n\t return c; \n\t}", "public int getRow(){\r\n\t\treturn this.row;\r\n\t}", "public int getRow()\r\n\t{\r\n\t\treturn this.row;\r\n\t}", "public Cursor fetchEntry(long rowId) throws SQLException {\n\t return mDb.query(true, DATABASE_TABLE, null, KEY_ROWID + \"=\" + rowId, null, null, null, null, null);\n }", "public Integer getPosition();", "public abstract String getCurrentRow();", "private int getCurrentLineByCursor() {\n return Math.min((int)cursor.getY() / lineHeight + 1, textBuffer.getMaxLine()-1);\n }", "@Override\n public boolean isCurrent() { return cursor != null; }", "public Cursor getCursor()\n {\n// Object localObject1;\n// if (!this.mCursorValid)\n// {\n// this.mCursor = new EsMatrixCursor(PROJECTION);\n// this.mCursorValid = true;\n// if ((this.mLocalProfilesLoaded) && (this.mGaiaIdsAndCirclesLoaded))\n// {\n// localObject1 = new HashSet();\n// HashSet localHashSet = new HashSet();\n// Object localObject3 = this.mLocalProfiles.iterator();\n// while (true)\n// {\n// long l1;\n// if (!((Iterator)localObject3).hasNext())\n// {\n// localObject5 = this.mContacts.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject5).hasNext())\n// {\n// localObject2 = this.mPublicProfiles.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject2).hasNext())\n// {\n// localObject3 = this.mPublicProfiles.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject3).hasNext())\n// {\n// localObject1 = this.mCursor;\n// break;\n// }\n// localObject4 = (PublicProfile)((Iterator)localObject3).next();\n// localObject2 = ((PublicProfile)localObject4).gaiaId;\n// if (((HashSet)localObject1).contains(localObject2))\n// continue;\n// localObject5 = this.mCursor;\n// arrayOfObject = new Object[11];\n// l1 = this.mNextId;\n// this.mNextId = (1L + l1);\n// arrayOfObject[0] = Long.valueOf(l1);\n// arrayOfObject[1] = ((PublicProfile)localObject4).personId;\n// arrayOfObject[2] = null;\n// arrayOfObject[3] = localObject2;\n// arrayOfObject[4] = ((PublicProfile)localObject4).name;\n// arrayOfObject[5] = null;\n// arrayOfObject[6] = null;\n// arrayOfObject[7] = null;\n// arrayOfObject[8] = null;\n// arrayOfObject[9] = null;\n// arrayOfObject[10] = ((PublicProfile)localObject4).snippet;\n// ((EsMatrixCursor)localObject5).addRow(arrayOfObject);\n// }\n// }\n// localObject3 = (PublicProfile)((Iterator)localObject2).next();\n// localObject5 = ((PublicProfile)localObject3).gaiaId;\n// localObject4 = (String)this.mGaiaIdsAndCircles.get(localObject5);\n// if ((((HashSet)localObject1).contains(localObject5)) || (TextUtils.isEmpty((CharSequence)localObject4)))\n// continue;\n// ((HashSet)localObject1).add(localObject5);\n// localObject6 = this.mCursor;\n// Object[] arrayOfObject = new Object[11];\n// l1 = this.mNextId;\n// this.mNextId = (1L + l1);\n// arrayOfObject[0] = Long.valueOf(l1);\n// arrayOfObject[1] = ((PublicProfile)localObject3).personId;\n// arrayOfObject[2] = null;\n// arrayOfObject[3] = localObject5;\n// arrayOfObject[4] = ((PublicProfile)localObject3).name;\n// arrayOfObject[5] = localObject4;\n// arrayOfObject[6] = null;\n// arrayOfObject[7] = null;\n// arrayOfObject[8] = null;\n// arrayOfObject[9] = null;\n// arrayOfObject[10] = null;\n// ((EsMatrixCursor)localObject6).addRow(arrayOfObject);\n// }\n// }\n// localObject3 = (Contact)((Iterator)localObject5).next();\n// if (l1.contains(((Contact)localObject3).name))\n// continue;\n// localObject2 = this.mCursor;\n// localObject4 = new Object[11];\n// l2 = this.mNextId;\n// this.mNextId = (1L + l2);\n// localObject4[0] = Long.valueOf(l2);\n// localObject4[1] = ((Contact)localObject3).personId;\n// localObject4[2] = ((Contact)localObject3).lookupKey;\n// localObject4[3] = null;\n// localObject4[4] = ((Contact)localObject3).name;\n// localObject4[5] = null;\n// localObject4[6] = null;\n// localObject4[7] = ((Contact)localObject3).email;\n// localObject4[8] = ((Contact)localObject3).phoneNumber;\n// localObject4[9] = ((Contact)localObject3).phoneType;\n// localObject4[10] = null;\n// ((EsMatrixCursor)localObject2).addRow(localObject4);\n// }\n// }\n// Object localObject6 = (LocalProfile)((Iterator)localObject3).next();\n// Object localObject2 = ((LocalProfile)localObject6).gaiaId;\n// ((HashSet)localObject1).add(localObject2);\n// l1.add(((LocalProfile)localObject6).name);\n// Object localObject4 = this.mCursor;\n// Object localObject5 = new Object[11];\n// long l2 = this.mNextId;\n// this.mNextId = (1L + l2);\n// localObject5[0] = Long.valueOf(l2);\n// localObject5[1] = ((LocalProfile)localObject6).personId;\n// localObject5[2] = null;\n// localObject5[3] = localObject2;\n// localObject5[4] = ((LocalProfile)localObject6).name;\n// localObject5[5] = ((LocalProfile)localObject6).packedCircleIds;\n// localObject5[6] = ((LocalProfile)localObject6).email;\n// localObject5[7] = null;\n// localObject5[8] = ((LocalProfile)localObject6).phoneNumber;\n// localObject5[9] = ((LocalProfile)localObject6).phoneType;\n// localObject5[10] = null;\n// ((EsMatrixCursor)localObject4).addRow(localObject5);\n// }\n// }\n// localObject1 = this.mCursor;\n// }\n// else\n// {\n// localObject1 = this.mCursor;\n// }\n// return (Cursor)(Cursor)(Cursor)(Cursor)(Cursor)(Cursor)localObject1;\n return null;\n }", "@Override\n\tprotected Object[] readCursor(ResultSet rs, int currentRow)\n\t\t\tthrows SQLException {\n\t\treturn super.readCursor(rs, currentRow);\n\t}", "public com.google.protobuf.ByteString\n getCursorBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(cursor_);\n }", "public int getBlockIndex() {\n return mCursorPosition;\n }", "public int getRow()\r\n {\r\n return row;\r\n }", "public int getRow() {\n return mRow;\n }", "public void setCursor(Cursor c) {\n\n\t}", "public int getRow() throws SQLException\n {\n return m_rs.getRow();\n }", "int getRow();", "public int getRow()\n\t\t{\n\t\t\treturn m_row;\n\t\t}", "public int getRow() {\r\n return this.row;\r\n }", "public Cursor fetchById(long rowId) {\n\t\tCursor cursor = db.query(tableName, fields, fields[0] + \" = \" + rowId, null, null, null, null);\n\t\tif (cursor != null) {\n\t\t\tcursor.moveToFirst();\n\t\t}\n\t\treturn cursor;\n\t}", "public int getRow() {\r\n\t\treturn this.row;\r\n\t}", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "public int getPosition() {\n\treturn (_current);\n }", "public int getRow()\n {\n return row;\n }", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "public int getRow() {\n return this.row;\n }", "public int getRow() {\n return this.row;\n }", "public int getRow() {\r\n\t\treturn row;\r\n\t}", "public int getRow() {\r\n\t\treturn row;\r\n\t}", "public int getRow() {\r\n return row;\r\n }", "public int row();", "private int findCursorBlock() {\n List<BlockLine> blocks = mSpanner == null ? null : mSpanner.getColors().getBlocks();\n if(blocks == null || blocks.isEmpty()) {\n return -1;\n }\n return findCursorBlock(blocks);\n }", "public int getRow() {\n\t\treturn row; \n\t}", "public int getRow()\n {\n return row;\n }", "protected int getRow() {\r\n\t\treturn this.row;\r\n\t}", "public int getRow() {\n\t\treturn row;\n\t}", "public int getRow() {\n\t\treturn row;\n\t}", "@Override\n\tpublic StendhalCursor getCursor() {\n\t\treturn StendhalCursor.LOOK;\n\t}", "public int getRow() {\n\t\treturn i;\n\t}", "public int getCurIdx() {\n\t\treturn dDisplay.getCurIdx();\n\t}", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n // YOUR CODE HERE\n return this.row;\n }" ]
[ "0.7476776", "0.73659617", "0.7129292", "0.6982205", "0.68917495", "0.6825945", "0.6775825", "0.6769757", "0.6629953", "0.6587987", "0.6539544", "0.6498297", "0.6470159", "0.6437232", "0.64214367", "0.63793766", "0.6363279", "0.6356981", "0.63544303", "0.6333752", "0.6304166", "0.62920696", "0.6267946", "0.6264482", "0.6234556", "0.6227709", "0.61906916", "0.61858207", "0.61399645", "0.60976714", "0.60877866", "0.60433275", "0.603832", "0.60306364", "0.598917", "0.59765685", "0.59730864", "0.5961653", "0.5912472", "0.5912384", "0.5883484", "0.58819246", "0.58725095", "0.58666617", "0.5865689", "0.5840269", "0.58347327", "0.5833939", "0.5824483", "0.5823138", "0.58196294", "0.58162266", "0.58069927", "0.5805307", "0.5800692", "0.57941306", "0.5791645", "0.57852733", "0.5784158", "0.5783246", "0.5781039", "0.577767", "0.5770458", "0.5770388", "0.57640606", "0.5753379", "0.5746225", "0.5744295", "0.5743821", "0.5735584", "0.5735584", "0.5735584", "0.5735584", "0.5735584", "0.56915575", "0.5688009", "0.5686224", "0.5686224", "0.5686224", "0.56768245", "0.56768245", "0.5673799", "0.5673799", "0.56735057", "0.5671857", "0.5658122", "0.5657951", "0.5649606", "0.5645222", "0.56425214", "0.56425214", "0.5638459", "0.56288683", "0.5621281", "0.5620838", "0.5620838", "0.5620838", "0.5620838", "0.5620838", "0.5620838", "0.5620226" ]
0.0
-1
Create the two player objects
public static void main(String[] args) { Player player1 = new Player(); Player player2 = new Player(); //Create the scanner object for input Scanner input = new Scanner(System.in); while(true) { //Let player 1 shoot their shot player1.Shoot(); if(player1.getPlayerBucket()==false) { //If the player misses, tell them they missed System.out.println("Player 1: Missed Shot!"); } else if(player1.getPlayerBucket() == true) { //If the player makes it, tell them they made it System.out.println("Player 1: Hit Shot!"); } //Let player 2 shoot their shot player2.Shoot(); if(player2.getPlayerBucket() == false) { //If the player misses, tell them they missed System.out.println("Player 2: Missed Shot!"); } else if(player2.getPlayerBucket() == true) { //If the player made it, tell them they made it System.out.println("Player 2: Hit Shot!"); } if(player1.getPlayerBucket() == true && player2.getPlayerBucket() == false) { //If player 1 made it,and player 2 missed, give player 2 the next letter //in horse System.out.println("\tPlayer 2 Added An: " + player2.ReceiveLetter()); } else if(player1.getPlayerBucket() == false && player2.getPlayerBucket() == true) { //if player 2 made it, and player 1 missed, give player 1 the next //letter in horse System.out.println("\tPlayer 1 Added An: " + player1.ReceiveLetter()); } //Checking to see if the player 1 has reached HORSE if(player1.getCounter() >= 5) { //Print the winner and loser, with their corresponding score System.out.println("Player 2 Wins!: "+ player2.getScore() + " :: " + "Player 1: " +player1.getScore() ); //Ask the user for input if they would like to play again System.out.println("Would you like to play again? (Y|N)"); String reply = input.next(); //If the player says Y, create new players and start again if(reply.equals("Y")) { player1 = new Player(); player2 = new Player(); } //If the player says N, end the loop and program else if(reply.equals("N")) { break; } //If the player says anything else, end it too. else { System.out.println("Thanks thanks for playing!"); break; } } //Chekcing to see if the player 2 has reached HORSE else if(player2.getCounter() >= 5) { //Same deal as the if statement as above, around line 61 System.out.println("Player 1 Wins!: " + player1.getScore() + " :: " + "Player 2: " + player2.getScore()); System.out.println("Would you like to play again? (Y|N)"); String reply = input.next(); if(reply.equals("Y")) { player1 = new Player(); player2 = new Player(); } else if(reply.equals("N")) { break; } else { System.out.println("Thanks thanks for playing!"); break; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createPlayers() {\n\tGlobal.camera_player1 = new Camera(new OrthographicCamera());\n\tGlobal.camera_player2 = new Camera(new OrthographicCamera());\n\tGlobal.camera_ui = new OrthographicCamera();\n\tGlobal.player1 = new Plane(Global.player1_respawn.x,\n\t\tGlobal.player1_respawn.y, 0, new Planetype(PlaneTypes.F35),\n\t\tEntityType.PLAYER1);\n\tGlobal.player2 = new Plane(Global.player2_respawn.x,\n\t\tGlobal.player2_respawn.y, 0, new Planetype(PlaneTypes.F35),\n\t\tEntityType.PLAYER2);\n }", "public static void createPlayers() {\n\t\tcomputer1 = new ComputerSpeler();\n\t\tspeler = new PersoonSpeler();\n//\t\tif (Main.getNumberOfPlayers() >= 3) { \n//\t\t\tSpeler computer2 = new ComputerSpeler();\n//\t\t}\n//\t\tif (Main.getNumberOfPlayers() == 4) {\n//\t\t\tSpeler computer3 = new ComputerSpeler();\n//\t\t}\n\n\n\t}", "public void createPlayers() {\n\t\t\n\t\twhite = new Player(Color.WHITE);\n\t\twhite.initilizePieces();\n\t\tcurrentTurn = white;\n\t\t\n\t\tblack = new Player(Color.BLACK);\n\t\tblack.initilizePieces();\n\t}", "Player createPlayer();", "void createPlayer(Player player);", "private void createPlayers() {\n // create human player first\n Player human = new Player(\"Player 1\", true);\n players.add(human);\n \n // create remaining AI Players\n for (int i = 0; i < numAIPlayers; i++) {\n Player AI = new Player(\"AI \" + (i + 1), false);\n players.add(AI);\n }\n }", "public void preparePlayer2()\n {\n Player2 p2 = new Player2();\n addObject(p2, 878, 600);\n }", "public void initiateTwoPlayers() {\n spaceShips.add(new SpaceShip(250, 700, friendlyBullets, \"spaceship_blue_30x30.png\", \"bullet_blue_20x30.png\", \"heart_blue_13x13.png\", 50, Bullets.BulletType.NORMAL, 0));\n spaceShips.add(new SpaceShip(500, 700, friendlyBullets, \"green_spaceship_30x30.png\", \"bullet_green_20x30.png\", \"heart_green_13x13.png\", 730, Bullets.BulletType.NORMAL, 0));\n\n playerOne = new Player(KeyboardEvent.KEY_UP, KeyboardEvent.KEY_DOWN, KeyboardEvent.KEY_LEFT, KeyboardEvent.KEY_RIGHT, KeyboardEvent.KEY_SPACE, spaceShips.get(0));\n playerTwo = new Player(KeyboardEvent.KEY_W, KeyboardEvent.KEY_S, KeyboardEvent.KEY_A, KeyboardEvent.KEY_D, KeyboardEvent.KEY_T, spaceShips.get(1));\n\n versus = false;\n init(); // TODO: 13/02/2019 passar nr de player\n\n }", "private void initPlayers() {\n this.playerOne = new Player(1, 5, 6);\n this.playerTwo = new Player(2, 0, 1);\n this.currentPlayer = playerOne;\n\n }", "public void preparePlayer1()\n {\n Player1 p1 = new Player1();\n addObject(p1, 200, 600);\n }", "private void createPlayer() {\n Entity entity = engine.createEntity();\n B2dBodyComponent b2dbody = engine.createComponent(B2dBodyComponent.class);\n TransformComponent position = engine.createComponent(TransformComponent.class);\n TextureComponent texture = engine.createComponent(TextureComponent.class);\n PlayerComponent player = engine.createComponent(PlayerComponent.class);\n CollisionComponent colComp = engine.createComponent(CollisionComponent.class);\n TypeComponent type = engine.createComponent(TypeComponent.class);\n StateComponent stateCom = engine.createComponent(StateComponent.class);\n\n // create the data for the components and add them to the components\n b2dbody.body = bodyFactory.makeCirclePolyBody(10,10,1, BodyFactory.STONE, BodyType.DynamicBody,true);\n // set object position (x,y,z) z used to define draw order 0 first drawn\n position.position.set(10,10,0);\n texture.region = atlas.findRegion(\"player\");\n type.type = TypeComponent.PLAYER;\n stateCom.set(StateComponent.STATE_NORMAL);\n b2dbody.body.setUserData(entity);\n\n // add the components to the entity\n entity.add(b2dbody);\n entity.add(position);\n entity.add(texture);\n entity.add(player);\n entity.add(colComp);\n entity.add(type);\n entity.add(stateCom);\n\n // add the entity to the engine\n engine.addEntity(entity);\n }", "public void createOwnerPlayer(String name, double x, double y) {\n Player player = (Player) players.get(name);\r\n if (player == null) {\r\n// System.out.println(\"Create owner player \" + name);\r\n player = new Player(name, x, y);\r\n inPlayer = player;\r\n players.put(name, player);\r\n }\r\n }", "private void createPlayers() {\n\t\t//Randomize roles\n\t\tArrayList<AdventurerEnum> randomisedRoles = getRandomisedRoles();\n\t\tfor(int i=0; i<numPlayers; i++) \n\t\t\tcreateOnePlayer(randomisedRoles.get(i), i+1);\n\t}", "public void createPlayer(String name, double x, double y) {\n Player player = (Player) players.get(name);\r\n if (player == null) {\r\n// System.out.println(\"Create online player \" + name);\r\n player = new OnlinePlayer(name, x, y);\r\n players.put(name, player);\r\n }\r\n }", "void createGame(User playerOne, User playerTwo) throws RemoteException;", "private Game(Player player1, Player player2){\n\t\tplayer1.setGame(this);\n\t\tplayer2.setGame(this);\n\n\t\t//todo: We should be satisfied we only having turnManager not also Player array\n\t\tplayers = new Player[]{player1, player2};\n\n\t\tturnManager.addPlayer(player2); // want player2 to start, so add it first.\n\t\t//todo: we should want player1 to start because that's more logical.\n\t\tturnManager.addPlayer(player1);\n\n\t\t//Create Dealer\n\t\tdealer = new Dealer();\n\n\t\t// First Card\n\t\tUnoCard firstCard = getNextCard();\n\t\tplayedCards().add(firstCard);\n\n\t\tdealer.spreadOut(players);\n\t\t\n\t\tisOver = false;\n\t\t// Start the turn.\n\t\tturnManager.startTurn();\n\t}", "public static Game createGame2Players(Player player1, Player player2) {\n\t\treturn new Game(player1, player2);\n\t}", "public PlayerHandler create(String type, PlayerInfo playerInfo, List<Integer> otherPlayerIds);", "private void createHumanPlayer() {\n humanPlayer = new Player(\"USER\");\n players[0] = humanPlayer;\n }", "public Multi_Player()\r\n {\r\n \r\n }", "public GameHandler(Player firstPlayer, Player secondPlayer)\n\t{\n\t\tplayer1 = firstPlayer;\n\t\tplayer2 = secondPlayer;\n\t\t\n\t\tplayedCards = new ArrayList<Card>();\n\t\t\n\t\tnewRound();\n\t\t\n\t\tplayedCards.add(activePlayerOneCard);\n\t\tplayedCards.add(activePlayerTwoCard);\n\t}", "public void createNewPlayer()\n\t{\n\t\t// Set up all badges.\n\t\tm_badges = new byte[42];\n\t\tfor(int i = 0; i < m_badges.length; i++)\n\t\t\tm_badges[i] = 0;\n\t\tm_isMuted = false;\n\t}", "public void start(){\n int numberOfPlayers = Integer.parseInt(JOptionPane.showInputDialog(\"How many players\"));\n player1 = new Player(JOptionPane.showInputDialog(\"What is your name?\"));\n if(numberOfPlayers == 1){\n player2 = new Player(\"Computer\");\n }\n else if(numberOfPlayers == 2){\n player2 = new Player(JOptionPane.showInputDialog(\"What is the second player name?\"));\n }\n\n }", "public void createPlayer() {\n ColorPicker colorPicker = new ColorPicker();\n\n for (Player player : players) {\n if (player.getColor() == color(0, 0, 0) || (player.hasName() == false)) {\n pickColor(player, colorPicker);\n return;\n }\n }\n\n // if (ENABLE_SOUND) {\n // sfx.moveToGame();\n // }\n\n state = GameState.PLAY_GAME;\n\n // Spawn players\n int index = 0;\n for (int i=players.size()-1; i>=0; i--) {\n String dir = directions.get(index); // Need to add players in reverse so that when they respawn, they move in the right direction\n players.get(i).setSpawn(spawns.get(dir)).setDirection(dir);\n index++;\n }\n\n // Update game state only if all players have name and color\n}", "private void prepare()\n {\n addObject(player,185,196);\n player.setLocation(71,271);\n Ground ground = new Ground();\n addObject(ground,300,360);\n invent invent = new invent();\n addObject(invent,300,375);\n }", "public SnapGame(String player1, String player2) {\n\t\tthis.player1 = player1;\n\t\tthis.player2 = player2;\n\t}", "public TieBreakGame(Player player1, Player player2) {\n player1.resetPoints();\n player2.resetPoints();\n players = new Player[] {player1, player2};\n }", "public void createPlayers() {\r\n\t\tPlayerList playerlist = new PlayerList();\r\n\t\tPlayer p = new Player();\r\n\t\tfor (int x = 0; x <= players; x++) {\r\n\t\t\tplayerlist.createPlayer(p);\r\n\t\t}\r\n\r\n\t\tScanner nameScanner = new Scanner(System.in);\r\n\r\n\t\tfor (int createdPlayers = 1; createdPlayers < players; createdPlayers++) {\r\n\t\t\tSystem.out.println(\"Enter next player's name:\");\r\n\t\t\tplayerlist.namePlayer(createdPlayers, nameScanner.nextLine());\r\n\t\t}\r\n\t\tnameScanner.close();\r\n\t}", "PlayerGroup createPlayerGroup();", "PlayerBean create(String name);", "public void createPlayer() {\n mainHandler = new Handler();\n videoTrackSelectionFactory = new AdaptiveTrackSelection.Factory(bandwidthMeter);\n trackSelector = new DefaultTrackSelector(videoTrackSelectionFactory);\n player = ExoPlayerFactory.newSimpleInstance(this, trackSelector);\n }", "private void createPlayers(LogicEngine in_logicEngine)\r\n\t{\n\t\tfor(int i=0 ; i < 4 ;i++)\r\n\t\t{\r\n\t\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/tinyship.png\",(LogicEngine.rect_Screen.getWidth()/2) - (32*i) + 64,50,20);\r\n\t\t\tship.i_animationFrame=0;\r\n\t\t\tship.i_animationFrameSizeWidth=16;\r\n\t\t\tship.i_animationFrameSizeHeight=16;\r\n\t\t\tship.allegiance = GameObject.ALLEGIANCES.PLAYER;\r\n\t\t\tship.collisionHandler = new PlayerCollision(ship);\r\n\t\t\tship.stepHandlers.add(new PlayerStep(i,ship));\r\n\t\t\tship.shotHandler = new StraightLineShot(\"data/\"+GameRenderer.dpiFolder+\"/bullet.png\",7.0f,new Vector2d(0,9));\r\n\t\t\t\r\n\t\t\tship.stepHandlers.add(new AnimateRollStep());\r\n\t\t\t\t\r\n\t\t\tship.str_name = \"player\";\r\n\t\t\t\r\n\t\t\tship.c_Color = new Color(1.0f,1.0f,1.0f,1.0f);\r\n\t\t\t\r\n\t\t\tship.v.setMaxForce(3);\r\n\t\t\tship.v.setMaxVel(20.0);\r\n\t\t\tin_logicEngine.objectsPlayers.add(ship);\r\n\t\t\t\r\n\t\t\t//double firing speed on hell\r\n\t\t\tif(Difficulty.isHard())\r\n\t\t\t\tship.shootEverySteps = (int) (ship.shootEverySteps * 0.75); \r\n\t\t\t\r\n\t\t\t//for each advantage if it is enabled apply it\r\n\t\t\tfor(int j=Advantage.b_advantages.length-1 ;j>=0;j--)\r\n\t\t\t\tif(Advantage.b_advantages[j])\r\n\t\t\t\t\tAdvantage.applyAdvantageToShip(j,ship,i,in_logicEngine);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static Player[] createPlayers(){\r\n\t\tPlayer[] players = new Player[2];\r\n\t\tSystem.out.print(\"Enter three letter nick name of Player1: \");\r\n\t\tplayers[0] = new Player(getName(), 0);\r\n\t\tSystem.out.print(\"Enter three letter nick name of Player2: \");\r\n\t\tplayers[1] = new Player(getName(), 18);\r\n\t\treturn players;\r\n\t}", "public static void main(String[] args) {\n System.out.println(\"Create the player.\");\n }", "public void setUpPlayers() {\n this.players.add(new Player(\"Diogo\"));\n this.players.add(new Player(\"Hayden\"));\n this.players.add(new Player(\"Gogo\"));\n }", "void createNewGame(Player player);", "public SinglePlayerGameController() {\n player1 = new Player(\"Player 1\");\n computer = new Player(\"Computer\");\n game = new Game(new Dice(), player1, computer);\n player1.setColor(\"blue\");\n computer.setColor(\"red\");\n diceImage = new DiceImage();\n }", "public void createPlayerModel() {\n\t\tModelBuilder mb = new ModelBuilder();\n\t\tModelBuilder mb2 = new ModelBuilder();\n\t\tlong attr = Usage.Position | Usage.Normal;\n\t\tfloat r = 0.5f;\n\t\tfloat g = 1f;\n\t\tfloat b = 0.75f;\n\t\tMaterial material = new Material(ColorAttribute.createDiffuse(new Color(r, g, b, 1f)));\n\t\tMaterial faceMaterial = new Material(ColorAttribute.createDiffuse(Color.BLUE));\n\t\tfloat w = 1f;\n\t\tfloat d = w;\n\t\tfloat h = 2f;\n\t\tmb.begin();\n\t\t//playerModel = mb.createBox(w, h, d, material, attr);\n\t\tNode node = mb.node(\"box\", mb2.createBox(w, h, d, material, attr));\n\t\t// the face is just a box to show which direction the player is facing\n\t\tNode faceNode = mb.node(\"face\", mb2.createBox(w/2, h/2, d/2, faceMaterial, attr));\n\t\tfaceNode.translation.set(0f, 0f, d/2);\n\t\tplayerModel = mb.end();\n\t}", "public PlayerFighter create(GamePlayer player);", "public Player() {}", "public Player() {}", "public Player() {}", "public Player() {}", "public Game(){\n player = new Player(createRooms());\n parser = new Parser(); \n }", "static Game newGame(Player player1, Player player2) {\n return new GameImpl(player1, player2);\n }", "public void makePlayers(LinkedList<String> playerNames){\n\n for(String s : playerNames) {\n if(s.contains(\"[B0T]\")){\n players.add(new AIPlayer(s));\n }else {\n players.add(new Player(s));\n }\n }\n\n //RANDOM DISTRIBUTION OF TERRITORIES AND TROOPS\n //The territory list is always randomized in the DefaultWorldMap class\n for(Territory terry : genericWorldMap.getAllTerritories()){\n players.peek().addTerritory(terry); //Adding current territory to current player\n terry.setOwner(players.peek().getName()); //Setting owner of territory to current player\n players.add(players.pop()); //Sending current player to the back of the queue\n }\n\n Collections.shuffle(players);//Players are initialized and order is randomized.\n\n //Putting troops in all player's territories\n for (Player player: players){\n player.setupPlayer(playerNames.size());\n }\n currentPlayer = players.pop();//Establish the first player to go\n }", "public Player(){}", "public Player(){}", "private void prepare()\n {\n treespawn treespawn2 = new treespawn();\n addObject(treespawn2,30,486);\n\n hantu hantu = new hantu();\n addObject(hantu,779,359);\n \n hantu hantu2 = new hantu();\n addObject(hantu2,88,84);\n \n bergerak bergerak2 = new bergerak();\n addObject(bergerak2,745,423);\n\n bergerak bergerak3 = new bergerak();\n addObject(bergerak3,266,566);\n \n bergerak bergerak4 = new bergerak();\n addObject(bergerak4,564,566);\n\n hantu hantu3 = new hantu();\n addObject(hantu3,671,490);\n \n hantu hantu4 = new hantu();\n addObject(hantu4,371,499);\n\n bergerak bergerak = new bergerak();\n addObject(bergerak,150,148);\n\n lantai lantai = new lantai();\n addObject(lantai,561,577); \n addObject(lantai,419,579); \n\n player player = new player();\n addObject(player,882,498);\n\n lantai3 lantai3 = new lantai3();\n addObject(lantai3,120,148);\n\n flyinglantai flyinglantai = new flyinglantai();\n addObject(flyinglantai,292,148);\n\n treespawn treespawn = new treespawn();\n addObject(treespawn,30,291);\n\n lantai4 lantai4 = new lantai4();\n addObject(lantai4,235,536);\n \n lantai4 lantai42 = new lantai4();\n addObject(lantai42,275,508);\n \n lantai4 lantai43 = new lantai4();\n addObject(lantai43,323,480);\n \n lantai4 lantai44 = new lantai4();\n addObject(lantai44,369,454);\n\n lantai2 lantai2 = new lantai2();\n addObject(lantai2,680,424);\n\n \n lantai3 lantai32 = new lantai3();\n addObject(lantai32,938,146);\n \n lantai4 lantai45 = new lantai4();\n addObject(lantai45,21,370);\n\n lantai4 lantai46 = new lantai4();\n addObject(lantai46,210,180);\n \n lantai4 lantai47 = new lantai4();\n addObject(lantai47,257,201);\n \n lantai4 lantai48 = new lantai4();\n addObject(lantai48,302,229);\n \n lantai4 lantai49 = new lantai4();\n addObject(lantai49,354,255);\n \n lantai4 lantai410 = new lantai4();\n addObject(lantai410,402,281);\n \n lantai4 lantai411 = new lantai4();\n addObject(lantai411,444,302);\n \n lantai4 lantai412 = new lantai4();\n addObject(lantai412,491,334);\n \n lantai4 lantai413 = new lantai4();\n addObject(lantai413,546,364);\n \n lantai4 lantai414 = new lantai4();\n addObject(lantai414,582,397);\n \n doorlv3 doorlv3 = new doorlv3();\n addObject(doorlv3,910,45);\n\n \n }", "@Override\n public void create(GameContainer gc) {\n this.gc = gc;\n addKeys();\n\n AssetManager.background.setSize(gc.getWidth(), gc.getHeight());\n AssetManager.background.addToRender();\n\n player = new Player(gc.getWidth() / 2,\n gc.getHeight() / 2, 100, 100);\n updateCamera((int) player.getX(), (int) player.getY());\n\n player2 = new Player(gc.getWidth() / 2 + player.getWidth(),\n gc.getHeight() / 2 + player.getHeight(), 100, 100);\n }", "public Player2(){\n super();\n name=\"110\";\n }", "public Player1() {\n dbg = new DBG(DBG.PLAYERS, \"Player1\");\n }", "public abstract void makePlayer(Vector2 origin);", "private void setupPlayers() {\n\t\tuserData=(UserData) Main.currentStage.getUserData();\n\t\tnumberPlayers=userData.getNumberPlayers();\n\t\tplayerNames=userData.getPlayerNames();\n\t\tcurrentPlayer=userData.getFirstPlayer();\n\t\tlb_currentplayername.setText(playerNames[currentPlayer]);\n\t\tplayers =new Player[4];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tif(i<numberPlayers) {\n\t\t\t\tplayers[i]=new Player(playerNames[i], false, i) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void rollDices() {\n\t\t\t\t\t\trotatedDice1();\n\t\t\t\t\t\trotatedDice2();\n\t\t\t\t\t\t//waiting for player choose what way to go then handler that choice\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t\telse {\n\t\t\t\tplayers[i]=new Player(playerNames[i], true, i) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void rollDices() {\n\t\t\t\t\t\trotatedDice1();\n\t\t\t\t\t\trotatedDice2();\n\t\t\t\t\t\t//randomchoice and next player rolldice\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t\tswitch (i) {\n\t\t\t\tcase 0:{\n\t\t\t\t\tplayers[i].setHorseColor(yh0, yh1, yh2, yh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 1:{\n\t\t\t\t\tplayers[i].setHorseColor(bh0, bh1, bh2, bh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 2:{\n\t\t\t\t\tplayers[i].setHorseColor(rh0, rh1, rh2, rh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 3:{\n\t\t\t\t\tplayers[i].setHorseColor(gh0, gh1, gh2, gh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tPlayer p1 = new Player(\"asd123\", \"Jamal Hassan\");\r\n\t\tPlayer p2 = new Player(\"asd321\", \"Abdul Gersak\");\r\n\t\t\r\n\t\t\r\n\t\tfor(int i = 1; i != 10; i++)\r\n\t\t{\r\n\t\tSystem.out.println(\"A(z) \" + i + \"-dik\" + \" korben\");\t\r\n\t\tp1.throwShape().battle(p2.throwShape());\r\n\t\tSystem.out.println(\"Player 1: \" + p1.getName() + \": \" + Player.toCompare.get(0));\r\n\t\tSystem.out.println(\"Player 2: \" + p2.getName() + \": \" + Player.toCompare.get(1));\r\n\t\t\t\t\r\n\t\t\r\n\t\tPlayer.toCompare.clear();\r\n\t\tSystem.out.println(\"\\n\");\r\n\t\t}\r\n\t\tSystem.exit(0);\r\n\t}", "@Override\n public void playWithTwoPlayers(Player player1, Player player2) {\n int[] combinationPlayer;\n int counter = config.getMaxTries();\n config.getMsgInfo().choiceGameBonus();\n config.getMsgInfo().counter(counter);\n\n // initialize a random number that both players will try to find\n IAPlayer ia = new IAPlayer(config);\n int[] defenseCombination = ia.initialiseCombination();\n if (config.isDevMode())\n config.getMsgCombination().devMode(defenseCombination);\n config.getMsgInfo().computer();\n\n // Proposition player1\n config.getMsgInfo().player1();\n combinationPlayer = player1.research(null);\n config.getMsgCombination().newAnswer(combinationPlayer);\n String[] clues = ia.clues(combinationPlayer);\n if (IsWin.winIf(clues)) {\n config.getMsgInfo().isWin();\n return;\n }\n config.getMsgCombination().cluesAre(clues);\n\n // Proposition player2\n config.getMsgInfo().player2();\n combinationPlayer = player2.research(null);\n config.getMsgCombination().newAnswer(combinationPlayer);\n String[] clews = ia.clues(combinationPlayer);\n if (IsWin.winIf(clews)) {\n config.getMsgInfo().isWin();\n return;\n }\n config.getMsgCombination().cluesAre(clews);\n\n counter--;\n config.getMsgInfo().counterLess(counter);\n\n do {\n // Proposition player1\n config.getMsgInfo().player1();\n combinationPlayer = player1.research(clues);\n config.getMsgCombination().newAnswer(combinationPlayer);\n clues = ia.clues(combinationPlayer);\n if (IsWin.winIf(clues)) {\n config.getMsgInfo().isWin();\n return;\n } else if (counter > 1) {\n config.getMsgCombination().cluesAre(clues);\n } else if (counter == 1) {\n if (!Arrays.equals(combinationPlayer, defenseCombination))\n config.getMsgInfo().notGood();\n }\n\n // Proposition player2\n config.getMsgInfo().player2();\n combinationPlayer = player2.research(clews);\n config.getMsgCombination().newAnswer(combinationPlayer);\n clews = ia.clues(combinationPlayer);\n if (IsWin.winIf(clews)) {\n config.getMsgInfo().isWin();\n return;\n } else if (counter > 1) {\n config.getMsgCombination().cluesAre(clews);\n } else if (counter == 1) {\n if (!Arrays.equals(combinationPlayer, defenseCombination))\n config.getMsgInfo().notGood();\n }\n\n counter--;\n if (counter >= 1)\n config.getMsgInfo().counterLess(counter);\n else {\n config.getMsgInfo().endGameDuel();\n config.getMsgCombination().finallyRevealSecretCombination(defenseCombination);\n break;\n }\n } while (true);\n }", "public BlackJackGame()\r\n\t{\r\n\t\tplayer1 = new Player();\r\n\t\tdealer = new Player();\r\n\t\tcardDeck = new Deck();\r\n\t\tendGame = false;\r\n\t}", "public void init(PlayerModel aPlayer, PlayerModel bPlayer) {\n\t\tSystem.out.println(\"The player is A\");\n\t}", "public PlayerMatches(String player1, String player2) {\n this.player1 = player1;\n this.player2 = player2;\n }", "public void addPlayer(Player p1, Player2 p2)\n\t{\n\t\tthis.p1 = p1;\n\t\tthis.p2 = p2;\n\t\t\n\t\tfor(Block b:p1.blocks1)\n\t\t{\n\t\t\taddBlock(b);\n\t\t}\n\t\t\n\t\tfor(Block b:p2.blocks2)\n\t\t{\n\t\t\taddBlock(b);\n\t\t}\n\t}", "public Player(){\r\n\r\n }", "public static void main(String[] args) {\n Player[] playerArray = new Player[5];\n //Creating and naming the players\n Player player1 = new Player();\n Player player2 = new Player();\n for (int i = 1; i <= 2; i++) {\n Scanner sc = new Scanner(System.in);\n System.out.print(\"Please input the name of Player\" + i + \":\");\n String name = sc.nextLine();\n if (i == 1) {\n player1.setName(name);\n }\n if (i == 2) {\n player2.setName(name);\n }\n }\n //Putting the players in the array\n playerArray[0] = player1;\n playerArray[1] = player2;\n \n for (int i = 0; i < playerArray.length; i++) {\n if (playerArray[i] != null) { // we have to check to see if there is a player object in the array\n System.out.println(\"Player\" + i + \" name is: \" + playerArray[i].getName());\n System.out.println(playerArray[i].getHealth() + \"Hp\");\n System.out.println(playerArray[i].getMana() + \"Mp\");\n }\n }\n \n Sword1 sword1 = new Sword1();\n sword1.setName(\"Longsword\");\n Sword2 sword2 = new Sword2();\n sword2.setName(\"Excalibur\");\n \n System.out.println(player1.getName() + \" is using; a \" + sword1.getName());\n System.out.print(\"The \" + sword1.getName() + \" deals \" + sword1.getDamage() + \"Dmg. The \" + sword1.getName() + \" has an attack speed of: \");\n System.out.printf(\"%.2f\", sword1.getAttackSpeed());\n System.out.println(\"/s\");\n \n System.out.println(player2.getName() + \" is using; a \" + sword2.getName());\n System.out.print(\"The \" + sword2.getName() + \" deals \" + sword2.getDamage() + \"Dmg. The \" + sword2.getName() + \" has an attack speed of: \");\n System.out.printf(\"%.2f\", sword2.getAttackSpeed());\n System.out.println(\"/s\");\n \n float damagePerSecond1 = sword1.getDamage()*sword1.getAttackSpeed();\n float damagePerSecond2 = sword2.getDamage()*sword2.getAttackSpeed();\n System.out.print(\"The \" + sword1.getName() + \" deals: \");\n System.out.printf(\"%.2f\", damagePerSecond1);\n System.out.println(\"/s\");\n System.out.print(\"The \" + sword2.getName() + \" deals: \");\n System.out.printf(\"%.2f\", damagePerSecond2);\n System.out.println(\"/s\");\n \n if (damagePerSecond1 > damagePerSecond2) {\n System.out.println(player1.getName() + \" slashes \" + player2.getName() + \" across the chest, killing them.\");\n System.out.println(player1.getName() + \" Wins!\");\n }\n if (damagePerSecond1 < damagePerSecond2) {\n System.out.println(player2.getName() + \" slashes \" + player1.getName() + \" across the chest, killing them.\");\n System.out.println(player2.getName() + \" Wins!\");\n }\n // System.out.println(player1.getName() + \"'s health is: \" + player1.getHealth());\n }", "public void startGame() {\n\t\ttank1.create(20, 530, 0, 0);\n\t\ttank1.setDefaults();\n\t\ttank2.create(960, 530, 0, 0);\n\t\ttank2.setDefaults();\n\t\tobjects.add(tank1);\n\t\tobjects.add(tank2);\n\t\tground = new Groundmod2((int) (Math.random() * 4));\n\t\tturn = Turn.PLAYER1;\n\t\tgrabFocus();\n\t}", "public Game()//Method was given\n {\n parser = new Parser();\n player = new Player();\n }", "public GamePlayer() {}", "private void spawnPlayer() {\n\t\tplayer.show(true);\n\t\tplayer.resetPosition();\n\t\tplayerDead = false;\n\t\tplayerDeadTimeLeft = 0.0;\n\t}", "ChessGame(ChessConnection player_one, ChessConnection player_two) {\n this.clients = new ChessConnection[2];\n this.error = false;\n\n this.clients[0] = player_one;\n this.clients[1] = player_two;\n this.board = new ChessBoard();\n this.board.initBoard();\n }", "public static VideoPlayers createVideoPlayers(){\n return new VideoPlayers();\n }", "public TicTacToe(Client player1, Client player2) {\n\t\tthis.player1 = player1;\n\t\tthis.player2 = player2;\n\t\tturn = player1;\n\t}", "public Player(){\n\n }", "public interface Player {\n\n\n /**\n * Represents the attack result of random strategy.\n *\n * @return an attack result\n */\n AttackResult randomAttack();\n\n /**\n * Represents the attack result of user strategy.\n *\n * @return an attack result\n */\n AttackResult userAttack();\n\n /**\n * Represents the attack result of smart strategy.\n *\n * @return an attack result\n */\n AttackResult smartAttack();\n\n /**\n * Tells if one of the players has win the game.\n *\n * @return true if wins the game and false otherwise\n */\n boolean winGame();\n\n /**\n * Prints the fleet map.\n *\n * @param printer the printer to print the map\n */\n void printFleet(ConsolePrinter printer);\n\n /**\n * Prints the battle map.\n *\n * @param printer the printer to print the map\n */\n void printBattle(ConsolePrinter printer);\n\n /**\n * Creates a user player.\n *\n * @param randPlace true if place the ship randomly and false to place the ship by the player\n * @param fleetMap the fleet map of the player\n * @param battleMap the battle map of the player\n * @return a new user player\n */\n static Player createUserPlayer(boolean randPlace, FleetMap fleetMap, BattleMap battleMap) {\n return new AbstractPlayer(fleetMap, battleMap, randPlace);\n }\n\n /**\n * Creates a robot player.\n *\n * @param fleetMap the fleet map of the player\n * @param battleMap the battle map of the player\n * @return a new robot player\n */\n static Player createRobotPlayer(FleetMap fleetMap, BattleMap battleMap) {\n return new AbstractPlayer(fleetMap, battleMap, true);\n }\n}", "private void setupPlayer(Engine engine, SceneManager sceneManager) throws IOException {\n\t\t// Entity dolphinEntityOne = sceneManager.createEntity(\"dolphinEntityOne\",\n\t\t// \"playerModel.obj\");\n\t\tSkeletalEntity dolphinEntityOne = sceneManager.createSkeletalEntity(\"player\", \"player.rkm\", \"player.rks\");\n\t\tdolphinEntityOne.setPrimitive(Primitive.TRIANGLES);\n\n\t\t// load animations\n\t\tdolphinEntityOne.loadAnimation(\"player_running\", \"player_running.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"player_shooting\", \"player_shooting.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"player_jump\", \"player_jump.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"stepLeft\", \"stepLeft.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"stepRight\", \"stepRight.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"standing\", \"player_standing.rka\");\n\t\tdolphinNodeOne = sceneManager.getRootSceneNode().createChildSceneNode(dolphinEntityOne.getName() + \"Node\");\n\t\tdolphinNodeOne.attachObject(dolphinEntityOne);\n\n\t\t// initialize 'charge' state\n\t\tplayerCharge.put(dolphinNodeOne, false);\n\t\tplayerStretchController = new StretchController();\n\t\tsceneManager.addController(playerStretchController);\n\t\tplayerOrbitController = new OrbitController(dolphinNodeOne, 1.0f, 0.5f, 0.0f, false);\n\t\tsceneManager.addController(playerOrbitController);\n\n\t\t// initialize position and scale\n\t\tVector3 randomLocation = randomLocationMonster();\n\t\tdolphinNodeOne.setLocalPosition(randomLocation);\n\t\tdolphinNodeOne.setLocalPosition(100f,0f,0f);\n\t\tdolphinNodeOne.scale(0.04f, 0.04f, 0.04f);\n\t\t\n\t\ttargetNode = dolphinNodeOne.createChildSceneNode(\"targetNode\");\n\t\ttargetNode.setLocalPosition(0.0f, 10.0f, 50.0f);\n\n\t\t// initialize textures\n\t\tTexture dolphinOneTexture = textureManager.getAssetByPath(\"playerModel.png\");\n\t\tTextureState dolphinOneTextureState = (TextureState) renderSystem.createRenderState(RenderState.Type.TEXTURE);\n\t\tdolphinOneTextureState.setTexture(dolphinOneTexture);\n\t\tdolphinEntityOne.setRenderState(dolphinOneTextureState);\n\t\tSystem.out.println(dolphinNodeOne.getName());\n\t\thealths.put(dolphinNodeOne.getName(), 100);\n\t\tplayPlayerStandingAnimation();\n\t}", "private void initializePlayers()\n\t{\n\t\tfor(Player player : playerList)\n\t\t{\n\t\t\t// Distribute personality cards\n\t\t\tplayer.setPersonalityCard(board.getPersonalityCardDeck().pickTopCard());\n\t\t\t\n\t\t\t// Distribute money\n\t\t\tboard.getBankAccount().transfertAmountTo(player, nbGoldStartPerPlayer, false);\n\t\t\t\n\t\t\t// Distribute minions\n\t\t\tfor(int i = 0; i < nbMinionsPerPlayer; i++)\n\t\t\t{\n\t\t\t\tplayer.addMinion(new Minion());\n\t\t\t}\n\t\t\t\n\t\t\t// Distribute buildings\n\t\t\tfor(int i = 0; i < nbBuildingsPerPlayer; i++)\n\t\t\t{\n\t\t\t\tplayer.addBuilding(new Building());\n\t\t\t}\n\t\t}\n\n\t\t// Distribute player cards\n\t\tfor(int i = 0; i < nbInitCards; i++)\n\t\t{\n\t\t\tfor(Player player : playerList)\n\t\t\t{\n\t\t\t\tplayer.getPlayerCardDeck().addCard(board.getPlayerCardDeck().pickTopCard());\n\t\t\t}\n\t\t}\n\t}", "public Player() {\t\n\t}", "private void createPlayer() {\r\n try {\r\n mRadioPlayer = new RadioPlayer(getApplication(), mDeezerConnect,\r\n new WifiAndMobileNetworkStateChecker());\r\n mRadioPlayer.addPlayerListener(this);\r\n setAttachedPlayer(mRadioPlayer);\r\n } catch (DeezerError e) {\r\n handleError(e);\r\n } catch (TooManyPlayersExceptions e) {\r\n handleError(e);\r\n }\r\n }", "public void createStartingPlayers(CFrame frame) {\r\n\t\tSet<String> passableActions = new HashSet<String>();\r\n\t\tint playerNumber = Integer.parseInt(frame.getSidePanel().getButtons().getButton(\"start\", null));\r\n\t\tString name =\"\", charr;\r\n\t\tMap<String, String> pc = new HashMap<String, String>();\r\n\t\t\r\n\t\tframe.getSidePanel().getText().setText(\"Please select a character\\nand enter your name\\n\");\r\n\t\tfor(int i =0;i<playerNumber;i++){\r\n\t\t\tString test = frame.getSidePanel().getButtons().getButton(\"characterSelect\", passableActions);\r\n\r\n\t\t\tString Playercharacter[] = test.split(\",\");\r\n\t\t\tname= Playercharacter[0];\r\n\t\t\tcharr= Playercharacter[1];\r\n\t\t\tpassableActions.add(charr);\r\n\t\t\t\r\n\t\t\tpc.put(charr, name);\r\n\r\n\t\t\tSystem.out.println(\"Output: \" + name+\" : \"+charr);\r\n\t\t}\r\n\t\t\r\n\t\tfor(BoardObject object: boardObjects){\r\n\t\t\tSystem.out.println(object.getName() +\" \"+passableActions);\r\n\t\t\tif(object instanceof Character && passableActions.contains(object.getName())){\r\n\t\t\t\tSystem.out.println(object.getName());\r\n\t\t\t\t((Character) object).setAsPlayer(true);\r\n\t\t\t\t((Character) object).setPlayerName(pc.get(object.getName()));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tdeck.deal(players(), players().size());\r\n\r\n\t\t//Testing allocation\r\n\t\tfor(Character c: players())\r\n\t\t\tSystem.out.println(c.getName() + \": \" + c.playerName());\r\n\t}", "private JPanel setUpOtherPlayersPanel(List<Player> otherPlayers) {\n otherPlayersPanel = new JPanel();\n otherPlayersPanel.setLayout(new BoxLayout(otherPlayersPanel, BoxLayout.Y_AXIS));\n \n otherPlayerProperties = new JPanel();\n otherPlayerProperties = setUpOtherPlayerAssets(otherPlayers.get(0));\n \n return otherPlayersPanel;\n }", "public interface PlayerCreator {\n\n // Factory method for creating a player\n public PlayerHandler create(String type, PlayerInfo playerInfo, List<Integer> otherPlayerIds);\n \n public List<String> getPlayerTypes();\n}", "public ServerGame(ServerPlayer _p1, ServerPlayer _p2) {\r\n\t\tsetP1(_p1);\r\n\t\tsetP2(_p2);\r\n\t\tcurrentPlayer = getP1();\r\n\r\n\t\tboard = new int[3][3];\r\n\t\tfor (int i = 0; i < 3; i++) {\r\n\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\tboard[i][j] = BLANK;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Player(int playerNumber, Map map, CommandRelay commandRelay, MapObserver observer, UnitObserver unitObserver, StructureObserver structureObserver, StatusObserver statusObserver, PlayerObservator playerObservator, int startingX, int startingY){\n\n this.playerNumber = playerNumber;\n customID=new CustomID(IdType.PLAYER, String.valueOf(playerNumber));\n\n// entities = new EntityOwnership(customID, commandRelay, startingX, startingY); //TODO should entity ownership know Player?\n\n entities = new EntityOwnership(customID, commandRelay,startingX, startingY); //TODO should entity ownership know Player?\n entities.setMapObserver(observer);\n entities.setUnitObserver(unitObserver);\n\n keymap = new HashMap<KeyCode, String>();\n\n // Defualt keys\n keymap.put(KeyCode.NUMPAD2, \"SOUTH\");\n keymap.put(KeyCode.NUMPAD8, \"NORTH\");\n keymap.put(KeyCode.NUMPAD7, \"NW\");\n keymap.put(KeyCode.NUMPAD1, \"SW\");\n keymap.put(KeyCode.NUMPAD9, \"NE\");\n keymap.put(KeyCode.NUMPAD3, \"SE\");\n\n\n\n resources = new ResourceOwnership(customID);\n resources.addResource(new Resource(ResourceType.ENERGY, 100));\n resources.addResource(new Resource(ResourceType.ORE, 100));\n resources.addResource(new Resource(ResourceType.FOOD, 100));\n this.playerMap = map; // TODO for the moment global map is shared, later each player will have own map\n this.registerMapObserver(observer);\n this.registerUnitObserver(unitObserver);\n this.registerStructureObserver(structureObserver);\n this.registerStatusObserver(statusObserver);\n this.registerPlayerObserver(playerObservator);\n }", "Game() {\n _randomSource = new Random();\n\n _players = new Player[2];\n _input = new BufferedReader(new InputStreamReader(System.in));\n _players[0] = new HumanPlayer(BP, this);\n _players[1] = new MachinePlayer(WP, this);\n _playing = false;\n }", "private void createCharacters()\n {\n Person player = new Person(PLAYER,getRoom(STARTROOM));\n characters.add(player);\n }", "public static void main(String[] args) \n {\n BaseballStats player1 = new BaseballStats(\"Daeho Kim\",\"Giants\"); \n FootballStats player2 = new FootballStats(\"Doug Baldwin\",\"Seahawks\"); \n \n player1.score();\n player1.hit();\n player1.setError();\n player1.hit();\n player2.score();\n player2.gainYard(10);\n \n System.out.println(player1);\n System.out.println(player2);\n }", "public Game() {\n\t\tbPlayer = new Player(false);\n\t\twPlayer = new Player(true);\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void createPlayers(String[] playerNames) {\n\t\tif(playerArray==null) {\n\t\t\tplayerArray = new Player[getPlayerCount()];\n\t\t\t\n\t\t\tfor(int i=0; i<getPlayerCount(); i++) {\n\t\t\t\tplayerArray[i] = new Player(playerNames[i], i);\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Error, Players array already initialised\");\n\t\t}\n\t}", "Player attackingPlayer(int age, int overall, int potential) {\r\n Player newPlayer = new Player(this.nameGenerator.generateName(), age, overall, potential, 'C' , 'F');\r\n\r\n\r\n\r\n\r\n }", "public void startGame() {\n\t\t\n\t\tPlayer p1;\n\t\tPlayer p2;\n\t\t\n\t\tif(player1.getSelectionModel().getSelectedItem().equals(_HUMAN)) {\n\t\t\tp1 = new Human(1, main);\n\t\t}\n\t\telse {\n\t\t\tString difficulty = player1Diff.getSelectionModel().getSelectedItem();\n\t\t\t\n\t\t\tint diff = difficulty.equals(_DIFFICULTY1) ? 1 : difficulty.equals(_DIFFICULTY2) ? 2 : 3;\n\t\t\t\n\t\t\tp1 = new AI(1, diff, main);\n\t\t}\n\t\t\n\t\t\n\t\tif(player2.getSelectionModel().getSelectedItem().equals(_HUMAN)) {\n\t\t\tp2 = new Human(2, main);\n\t\t}\n\t\telse {\n\t\t\tString difficulty = player2Diff.getSelectionModel().getSelectedItem();\n\t\t\t\n\t\t\tint diff = difficulty.equals(_DIFFICULTY1) ? 1 : difficulty.equals(_DIFFICULTY2) ? 2 : 3;\n\t\t\t\n\t\t\tp2 = new AI(2, diff, main);\n\t\t}\n\t\t\n\t\t\n\t\tmain.startGame(p1, p2);\n\t\t\n\t}", "private void createPlayerExplosion() {\n\t\tAsteroidsExplosion explosion = new AsteroidsExplosion(GameObject.ROOT, this, 50, 20.0, 3.0);\n\t\texplosion.translate(player.getPositionVector());\n\t\totherObjects.add(explosion);\n\t}", "public void setupComputerPlayers() {\r\n\t\tif(models == null) models = new ModelFactory(this, options);\r\n\t\tCPUFactory factory = new CPUFactory(this);\r\n\t\tint cpuIndex = 0;\r\n\t\tfor(int i = 0; i < getNumPlayers(); i++) {\r\n\t\t\tboolean isCPU = i >= getNumPlayers() - getNumNPC();\r\n\t\t\tif(isCPU) {\r\n\t\t\t\tPlayer current = players.get(i);\r\n\t\t\t\tcurrent.setComputerPlayer(factory.getComputerPlayer(current, cpuTypes.get(cpuIndex++)));\r\n\t\t\t}\r\n\t\t} \r\n\t}", "@Before\n public void setUp()\n {\n hockeyPl1 = new HockeyPlayer(\"Ben Casey\", \"025\");\n hockeyPl2 = new HockeyPlayer(\"Clara Dent\", \"040\");\n hockeyTe1 = new HockeyTeam(\"Sticks\");\n coach1 = new Coach(\"Amy Blunt\", \"001\", \"MNHA\");\n }", "@Test\n public void test() {\n GolfPlayer golfPlayer1 = new GolfPlayer();\n golfPlayer1.withName( \"Tiger Woods\" ).withHandicap( 12 );\n\n GolfPlayerDto dto = GolfPlayerMapper.INSTANCE.toDto( golfPlayer1 );\n\n GolfPlayer golfPlayer2 = GolfPlayerMapper.INSTANCE.toPlayer( dto );\n\n Assert.assertEquals( \"Tiger Woods\", golfPlayer2.name() );\n Assert.assertEquals( 12L, golfPlayer2.handicap(), 0 );\n }", "public static void main(String[] args) {\n boolean playWithMachine =false;\n String s1 = JOptionPane.showInputDialog(\"Do you want to play with a Machine?(Y/N)\");\n String s2 =JOptionPane.showInputDialog(\"Input how many rows you want to have:\");\n int rowSize = Integer.parseInt(s2);\n\n Player p1 = new Player(rowSize);\n Player p2 = new Player(rowSize);\n\n //Create player 1\n p1.setName();\n p1.setChessLabel();\n\n //Create player 2\n if(s1.toLowerCase().equals(\"y\"))\n {\n playWithMachine = true;\n p2.setPlayerIsMachine(playWithMachine);\n p2.machinePlayer();\n }else\n {\n p2.setName();\n p2.setChessLabel();\n }\n\n\n while(!p1.gameRestart)\n {\n p1.printBoard(p1, p2); //Print out a new empty chessboard\n\n p1.gameIsOn = true; // Game is moving further on\n\n while (p1.gameIsOn) {\n\n //Player 1 choose his/her own block and place the chess\n p1.placeChess(p1);\n //Print out the current board\n p1.printBoard(p1,p2);\n //Check winner\n p1.checkWinner(p1, p2);\n if (!p1.gameIsOn)\n break;\n\n //Player 2 choose his//her own block and place the chess\n p1.placeChess(p2);\n //Print out the current board\n p1.printBoard(p1,p2);\n p1.checkWinner(p2, p1);\n if (!p1.gameIsOn)\n break;\n }\n\n\n }\n }", "@Test\n public void testGetOtherPlayer2Player() {\n Player p = new Player();\n Player p2 = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n pL.add(p2);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n\n Player l = j.getOtherPlayer(p);\n\n assertEquals(\"Le player ne devrai pas etre le même que celui mis dans la fonction\", p2, l);\n }", "public TestPlayer()\n {\n }", "public static void main(String[] args) {\n Deck gameDeck = new Deck();\n //shuffle the deck\n gameDeck.shuffle();\n //hand objects to hold each player's hands\n Hand player1 = new Hand();\n Hand player2 = new Hand();\n //deal the cards, remember to alternate\n while(gameDeck.getTop() < gameDeck.getDeckSize()) {\n //deal a card to player 1\n Card dealerCard = gameDeck.dealCard();\n player1.addCard(dealerCard);\n //deal a card to player 2\n dealerCard = gameDeck.dealCard();\n player2.addCard(dealerCard);\n }\n //hands are ready, time to play\n playWar(player1, player2);\n }", "public void initPlayer();", "public Player initPlayerToGameplane(String name, Player.PlayerType type, int attacks, int safeTP) {\n\t\tPlayer \t\t\tplayer;\n\t\tPoint p \t\t= new Point();\n\t\t\n\t\t//find a point that isn't already occupied\n\t\tp \t\t\t\t= getSafeTeleportPosition();\n\t\tplayer \t\t\t= new Player(name, p, type, attacks, safeTP);\n\t\t\n\t\taddNewPlayer(player);\n\t\toccupiedPositions.add(p);\n\t\t\n\t\tif(type == Player.PlayerType.Agent)\n\t\t\tagents += 1;\n\t\t//assign the robot a player to follow\n\t\telse if(type == Player.PlayerType.Robot) \n\t\t\tplayer.addPlayerToFollow(assignPlayerToFollow(null));\n\t\t\n\t\tserver.updateGameplane();\n\t\treturn player;\n\t}", "public Board(C4.Canvas gameContext, String player1Colour, String player2Colour) {\r\n game = gameContext;\r\n players = new Player[2];\r\n players[0] = new Player(player1Colour);\r\n players[1] = new Player(player2Colour);\r\n boardArray = new Piece[7][7];\r\n for (int nx = 0; nx < 7; nx++) {\r\n for (int ny = 0; ny < 7; ny++) {\r\n boardArray[nx][ny] = new Piece();\r\n }\r\n }\r\n }", "public void start() {\n\n // Get the players' names\n System.out.print(\"Please enter Player 1's name : \");\n String pname1 = sc.next();\n System.out.print(\"Please enter Player 2's name : \");\n String pname2 = sc.next();\n\n // totalTimes is to record how many times they played\n int totalTimes = 0;\n\n // Initialize two players\n NimPlayer player1 = new NimPlayer(pname1);\n NimPlayer player2 = new NimPlayer(pname2);\n\n // a flag to mark which player is playing, 1 means player1\n int flag = 1;\n\n // A temp player to hold two players\n NimPlayer playerTemp;\n\n // create five variables to hold upper bound, current number of\n // stones, the number of stones removal and stone symbol\n int bound;\n int currNum;\n int removeNum;\n\n // a flag to check if start the game\n boolean play = true;\n\n while (play) {\n\n // increment the total playing times\n player1.setTotalTimes(++totalTimes);\n player2.setTotalTimes(totalTimes);\n\n // enter the upper bound and initial number of stones\n System.out.print(\"Enter upper bound : \");\n bound = sc.nextInt();\n System.out.print(\"Enter initial number of stones : \");\n currNum = sc.nextInt();\n\n while (currNum != 0) {\n\n System.out.println();\n\n // show the stones\n System.out.print(currNum + \" stones left :\");\n showStone(currNum);\n\n // player1 starts playing\n if (flag == 1) {\n playerTemp = player1;\n flag = 2;\n } else {\n\n // player2 starts playing\n playerTemp = player2;\n flag = 1;\n }\n\n System.out.println();\n\n // Player1 starts playing\n removeNum = playerTemp.removeStone(currNum, bound);\n while (invalid(removeNum, bound, currNum)) {\n removeNum = playerTemp.removeStone(currNum, bound);\n }\n\n // update the current number after one round playing\n currNum -= removeNum;\n }\n\n System.out.println();\n System.out.println(\"Game Over\");\n\n // playerTemp is stored the last player\n if (flag == 1) {\n playerTemp = player1;\n } else {\n playerTemp = player2;\n }\n\n // output the winner info\n playerTemp.setWinTimes(playerTemp.getWinTimes() + 1);\n System.out.println(playerTemp.getName() + \" wins!\\n\");\n\n // set flag back to 1, which will still start from player1\n flag = 1;\n\n // Asking if they want to continue\n System.out.print(\"Do you want to play again (Y/N): \");\n\n // if no, end of start() method, back to main method\n if (sc.next().equalsIgnoreCase(\"n\")) {\n\n play = false;\n\n // show the game result\n showResult(player1, player2);\n\n // absorb the \\n\n sc.nextLine();\n }\n }\n }", "public void newGame(String p1, String p2, int stonesInEachPit) {\n\t\toriginalCount = stonesInEachPit;\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tif (i == 6 || i == 13) {\n\t\t\t\tboard[i] = 0; \n\t\t\t} else {\n\t\t\t\tboard[i] = originalCount;\n\t\t\t}\n\t\t}\n\t\tplayer1 = new Player(p1,1);\n\t\tplayer2 = new Player(p2,2);\n\t\tcurrentPlayer = player1;\n\t\t//printBoard();\n\t\tSystem.out.println(\"It is now \" + currentPlayer.getName() + \"'s turn\");\n\t}", "public Player2(State state){\n super(state);\n name=\"110\";\n }" ]
[ "0.7872644", "0.742941", "0.73970073", "0.7233177", "0.7158484", "0.71360606", "0.7115959", "0.7114443", "0.69507736", "0.6940266", "0.6779417", "0.6685085", "0.6613023", "0.6600601", "0.6577804", "0.6526712", "0.6524847", "0.65007657", "0.64842784", "0.64539635", "0.644562", "0.6403739", "0.6392448", "0.6383349", "0.63588667", "0.63364893", "0.6305931", "0.62542987", "0.62390286", "0.6232122", "0.62169427", "0.62032264", "0.6175197", "0.6141657", "0.6130122", "0.6117921", "0.6113948", "0.60964787", "0.6094585", "0.6091102", "0.6091102", "0.6091102", "0.6091102", "0.6060951", "0.6033236", "0.602241", "0.60165083", "0.60165083", "0.60122484", "0.6004849", "0.6004363", "0.59975356", "0.5992781", "0.5973517", "0.59611285", "0.59582865", "0.5954789", "0.59170383", "0.591017", "0.59002715", "0.5885953", "0.5870277", "0.58603066", "0.5855739", "0.5853929", "0.58537006", "0.58484674", "0.58468413", "0.5837248", "0.58287114", "0.58148783", "0.58044535", "0.57956475", "0.57896984", "0.57878727", "0.57809854", "0.5771767", "0.57607234", "0.5751826", "0.57452625", "0.57438946", "0.5735639", "0.57335174", "0.57233834", "0.57203555", "0.5715577", "0.57136923", "0.56752354", "0.5671984", "0.56709707", "0.5663872", "0.56542444", "0.56484175", "0.56441945", "0.56371665", "0.5634189", "0.5633832", "0.56302744", "0.56281805", "0.5624887", "0.5621088" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table account
int deleteByPrimaryKey(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Query(\"select a from Account a\")\n List<Account> getAllAccount();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "Account selectByPrimaryKey(Long accountid);", "public void createAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\t// Prüfung, ob Tabelle bereits besteht\r\n\t\tResultSet resultSet = connection.getMetaData().getTables(\"%\", \"%\", \"%\", new String[] { \"TABLE\" });\r\n\t\tboolean shouldCreateTable = true;\r\n\t\twhile (resultSet.next() && shouldCreateTable) {\r\n\t\t\tif (resultSet.getString(\"TABLE_NAME\").equalsIgnoreCase(\"ACCOUNT\")) {\r\n\t\t\t\tshouldCreateTable = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tresultSet.close();\r\n\r\n\t\tif (shouldCreateTable) {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tString sql = \"CREATE table account (id int not null primary key, owner varchar(\"\r\n\t\t\t\t\t+ DatabaseAdministration.ownerLength + \") not null, number varchar(4) not null)\";\r\n\t\t\t// Tabelle wird erstellt\r\n\t\t\tstatement.execute(sql);\r\n\t\t\tstatement.close();\r\n\t\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\t\tlogger.info(\"Tabelle \\\"Account\\\" wurde erstellt.\");\r\n\t\t\tbankAccountExists = false;\r\n\t\t\t// Das Bank-Konto wird angelegt\r\n\t\t\taddAccount(\"0000\", \"BANK\", BigDecimal.ZERO);\r\n\t\t\tbankAccountExists = true;\r\n\t\t}\r\n\t\tconnection.close();\r\n\t}", "@Query(\"select a from Account a\")\n List<Account> getAllAccounts();", "@Query(\"select a from Account a where a.role = 'ADMIN'\")\n List<Account> getAllAdminsAccount();", "@Query(\"select ad from AccountDetail ad\")\n List<AccountDetail> getAllAccounts();", "@Override\n\tpublic int addAccount(Account account) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"insert into accounts values(default, ?, ?) returning id\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setString(1, account.getType());\n\t\tprepStmt.setDouble(2, account.getBalance());\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\tint id = 0;\n\t\twhile(rs.next()) {\n\t\t\tid = rs.getInt(1);\n\t\t}\n\t\treturn id;\n\t}", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "ShopAccount selectByPrimaryKey(Integer spAccount);", "@Override\r\n\tpublic Map<String, List<NewAccount>> Accountlist(int UserID) throws SQLException {\n\t\tList<NewAccount> accounts = createAccountDao.Accountlist(UserID);\r\n\t\tSystem.out.println(\"[CreateAccountDaoImp][save] New account save status : \" + accounts);\r\n\t\tList<NewAccount> loanAccounts = new ArrayList<NewAccount>();\r\n\t\tList<NewAccount> savingAccount = new ArrayList<NewAccount>();\r\n\t\tList<NewAccount> creditAccount = new ArrayList<NewAccount>();\r\n\t\tMap<String, List<NewAccount>> accountsMap = new HashMap<String, List<NewAccount>>();\r\n\r\n\t\t// Account Sorting\r\n\t\tfor (int i = 0; i < accounts.size(); i++) {\r\n\t\t\t\r\n\t\t\tif (accounts.get(i).getAccountType().equals(\"Loans\")) {\r\n\t\t\t\t\r\n\t\t\t\tloanAccounts.add(accounts.get(i));\r\n\t\t\t\t\r\n\t\t\t} else if (accounts.get(i).getAccountType().equals(\"Accounts\")) {\r\n\t\t\t\t\r\n\t\t\t\tsavingAccount.add(accounts.get(i));\r\n\t\t\t\t\r\n\t\t\t} else if (accounts.get(i).getAccountType().equals(\"Cards\")) {\r\n\t\t\t\tcreditAccount.add(accounts.get(i));\r\n\t\t\t}\r\n\t\t\t// credit //accountsMap.put(\"loan\",accounts.get(i));\r\n\t\t}\r\n\t\taccountsMap.put(\"loanAccount\", loanAccounts);\r\n\t\taccountsMap.put(\"savingsAccount\", savingAccount);\r\n\t\taccountsMap.put(\"creditAccount\", creditAccount);\r\n\t\tSet<String> key = accountsMap.keySet();\r\n\t\tIterator<String> iterator = key.iterator();\r\n\t/*\twhile (iterator.hasNext()) {\r\n\t\t\tString accountType = iterator.next();\r\n\r\n\t\t\tSystem.out.println(\"----------------------\" + accountType + \"------------------------\");\r\n\t\t\tSystem.out.println(\"|------------\" + accountsMap.get(accountType) + \"---------------|\");\r\n\t\t\tSystem.out.println(\"-----------------End of first Account Type-------------------\");\r\n\t\t}*/\r\n\r\n\t\treturn accountsMap;\r\n\t}", "public ResultSet getAllAccounts () throws Exception {\r\n String sql = \"SELECT * FROM `accounts`;\";\r\n return stmt.executeQuery(sql);\r\n }", "UserAccount getUserAccountById(long id);", "Account getAccount();", "java.lang.String getAccount();", "public List<Account> getAccounts() throws SQLException {\r\n\t\tList<Account> accounts = new ArrayList<>();\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t// Alle Datensätze der Account-Tabelle abrufen\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\twhile (resultSet.next()) {\r\n\t\t\t// Datensätze in Kontoobjekte umwandeln\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\t\t\tAccount account = new Account();\r\n\t\t\taccount.setId(id);\r\n\t\t\taccount.setOwner(owner);\r\n\t\t\taccount.setNumber(number);\r\n\t\t\taccount.setTransactions(daTransaction.getTransactionHistory(number));\r\n\t\t\taccounts.add(account);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t\treturn accounts;\r\n\t}", "@Query(\"select ad from AccountDetail ad where ad.role = 'USER'\")\n List<AccountDetail> getAllAdminAccounts();", "Account selectByPrimaryKey(String id);", "FinanceAccount selectByPrimaryKey(Integer id);", "List<Account> findAll();", "List<Account> findAll();", "public int subsAccount(NguoiNhap nn) throws SQLException {\r\n System.out.println(nn.getUsername() + nn.getPassword() + nn.getName() + nn.getGender() + nn.getBirthday());\r\n return this.connectionAdminToAccessData(\r\n \"INSERT INTO USER() VALUES('\"\r\n + nn.getUsername() + \"','\"\r\n + nn.getPassword() + \"','\"\r\n + nn.getName() + \"','\"\r\n + nn.getGender() + \"','\"\r\n + nn.getBirthday() + \"')\");\r\n }", "public interface AccountDao {\n int insert(Account account);\n\n Account queryAccountById(Long id);\n\n Account findAccount(Account account);\n\n Account queryAccountByMobile(Long mobile);\n\n Account queryAccountByEmail(String email);\n\n void update(Account account);\n\n void resetPassword(Account account);\n}", "public JavaaccountModel getaccount(JavaaccountModel oJavaaccountModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing account from the database*/\n oJavaaccountModel = (JavaaccountModel) hibernateSession.get(JavaaccountModel.class, oJavaaccountModel.getaccountId());\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaaccountModel;\n }", "public ResultSet returnAccount(Long demataccountNo)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select BANK_ACC_NO from CUSTOMER_DETAILS where DEMAT_ACC_NO=\"+demataccountNo+\"\");\r\n\treturn rs;\r\n}", "List<Account> selectAll();", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "List<TmpUserPayAccount> selectAll();", "@Override\n\tpublic List<Account> getAccountsByName(String name) {\n\t\treturn jdbcTemplate.query(\"select * from account where locate(?, name)>0 \", new Object[]{name}, new BeanPropertyRowMapper(Account.class));\n\t}", "public interface AccountDao {\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @return Account or null\n */\n Account getAccount(Integer accountNumber);\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return Account or null\n */\n Account getAccount(Integer accountNumber, Configuration configuration);\n\n /**\n * Get all accounts for user with login\n *\n * @param login unique String key for user\n * @return List of Account or empty List\n */\n List<Account> getAccounts(String login);\n\n /**\n * Update account\n *\n * @param account new data to Account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return new updated Account\n */\n Account updateAccount(Account account, Configuration configuration);\n\n}", "@Override\r\n\tpublic List<AccountDTO> getAllUser() {\n\t\treturn accountDao.getAll();\r\n\t}", "CusBankAccount selectByPrimaryKey(Integer id);", "@Override\npublic void update(Account account) {\n\taccountdao.update(account);\n}", "public int getC_BankAccount_ID();", "public List<Account> getAccountByType() throws Exception{\n Session session= sessionFactory.getCurrentSession();\n List<Account> accountList= session.createQuery(\"select account_type, COUNT(account_no) from Account group by account_type\").list();\n return accountList;\n }", "public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}", "@Override\n\tpublic void addToUserAccountTable(int accountId,String username) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString insertQuery = \"insert into user_account values(?, ?)\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(insertQuery);\n \n\t\t\tprepStmt.setString(1, username);\n\t\t\tprepStmt.setInt(2, accountId);\n\t\t\tprepStmt.executeUpdate();\n\t}", "Long getAccountId();", "@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}", "List<BookAccount> findAllForAccount(long idAccount);", "public int getAccountType() {\r\n return accountType;\r\n }", "public static String getUserAccount(String account){\n return \"select ui_account from user_information where ui_account = '\"+account+\"'\";\n }", "@Query(\"select a from Account a where a.role = 'Admin'\")\n List<Account> getAllAdmins();", "@Override\n\tpublic List<Map<String, Object>> getAccountsMapByName(String name) {\n\t\treturn jdbcTemplate.queryForList(\"select * from account where locate(?, name)>0 \", new Object[]{name});\n\t}", "public GenericDao<Account> getAccountDao();", "public void AddToAccountInfo();", "@Select({\n \"select\",\n \"username, password\",\n \"from tb_user\"\n })\n @Results({\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR)\n })\n List<User> selectAll();", "@Query(\"select acc from Account acc where acc.customer.customerId = :customerId\")\n\tAccount findAccountByCustomer(@Param(\"customerId\") Long customerId);", "void updateAccount();", "@GetMapping()\n public List<Account> accounts(){\n List<Account> accounts = new ArrayList<>();\n //repoAccounts.forEach(accounts::add);\n accountRepository.findAll().forEach(accounts::add);\n return accounts;\n }", "public String getAccountNo();", "private void showContentAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\tSystem.out.println(\"Table account:\");\r\n\t\twhile (resultSet.next()) {\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\r\n\t\t\tSystem.out.println(id + \" | \" + owner + \" | \" + number);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t}", "public abstract int getAccountType();", "@Override\n public void insertAccount() throws Exception {\n\n }", "public void setAccountNo (String AccountNo);", "@MyBatisDao\npublic interface UserProfileMapper {\n UserProfile selectByPrimaryKey(long id);\n\n UserProfile selectByUserId(long userId);\n\n UserProfile selectByEmail(String email);\n\n int deleteByPrimaryKey(long id);\n\n int insert(UserProfile userProfile);\n\n int update(UserProfile userProfile);\n\n int updateAvatar(UserProfile userProfile);\n}", "public interface AccountDao {\n\t\n\t/**\n\t * Gets the list of Accounts based on the criteria passed as parameter\n\t * @param map a key value pair map used as criteria\n\t * @return List of {@link Account} satisfying the criteria\n\t * @throws DaoException\n\t */\n\tList<Account> getAccountsBasedOnCriteria(Map<String, Object> map) throws DaoException;\n\t\n\t/**\n\t * Get the {@link Account} object based on its accountNumber\n\t * @param accountNumber\n\t * @return\n\t * @throws DaoException\n\t */\n\tAccount getAccountByAccountNumber(Integer accountNumber) throws DaoException;\n\t\n\t/**\n\t * Update {@link Account}\n\t * @param account {@link Account} object needs to be updated\n\t * @throws DaoException\n\t */\n\tvoid update(Account account) throws DaoException;\n}", "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as long as the next row is not null\n String username, password, firstName, lastName;\n int age;\n username = resultSet.getString(\"username\");\n password = resultSet.getString(\"password\");\n firstName = resultSet.getString(\"firstname\");\n lastName = resultSet.getString(\"lastname\");\n age = resultSet.getInt(\"age\");\n // place all the new items into a new Account object\n Account newAccount = new Account(username, password, firstName, lastName, age);\n // add the account to the list\n accounts.add(newAccount);\n }\n } catch (SQLException exc) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, exc);\n }\n\n return accounts;\n }", "List<Account> findAccountByRole(UserRole role);", "public Long getAccountID() {\n return accountID;\n }", "public Long getAccountID() {\n return accountID;\n }", "public String getAccount(){\n\t\treturn account;\n\t}", "public String getAccount() {\r\n return account;\r\n }", "Account findByAccountType(String accountType);", "@Override\n\tpublic void registerAccount(AccountVO account) {\n\tsession.insert(\"account.registerAccount\",account);\n\t\t\n\t}", "public ResultSet retBalance(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"Select balance from account where accno=\"+userid+\"\");\r\n\treturn rs;\r\n}", "public Account(){\n this.id = 0;\n this.balance = 0;\n this.annualInterestRate = 0;\n this.dateCreated = new Date();\n }", "@Override\npublic Account findById(int accountid) {\n\treturn accountdao.findById(accountid);\n}", "Account getAccount(int id);", "public List<Accounts> getAllAccounts() {\n List<Accounts> accountList = new ArrayList<Accounts>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_ACCOUNTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Accounts account = new Accounts();\n account.setID(Integer.parseInt(cursor.getString(0)));\n account.setName(cursor.getString(1));\n account.setPassword(cursor.getString(2));\n account.setPhoneNumber(cursor.getString(3));\n account.setEmail(cursor.getString(4));\n // Adding account to list\n accountList.add(account);\n } while (cursor.moveToNext());\n }\n\n // return account list\n return accountList;\n }", "public void saveAccount() {\n\n }", "public MnoAccount getAccountById(String id);", "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "@Override\n\tpublic List<Account> findAllAccounts() {\n\t\treturn m_accountDao.findAll();\n\t}", "public final void loadAccounts() {\n DBUtil.select(\n \"select id, created, account_name, account_pass, account_email, timezone from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".af_account\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n while (resultSet.next() ) {\n AfAccount account = createAccountFromResultSet(resultSet);\n }\n }\n });\n }", "public int getAccountID() {\n return accountID;\n }", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public interface AccountRepository extends JpaRepository<Account, Integer>{\n}", "@Override\n\tpublic Account findAccountByAccountId(int accountId) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"select * from accounts where id=?\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setInt(1, accountId);\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\tAccount a = null;\n\t\twhile (rs.next()) {\n\t\t\ta = new Account(rs.getInt(1), rs.getString(2), rs.getDouble(3));\n\t\t}\n\t\treturn a;\n\n\t}", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "List<AccountModel> findAll();", "public String displayAccount() {\r\n\t return id+\",\"+name+\",\"+balance+\",\"+email+\",\"+dateOfOpening;\r\n }", "public Account getAccount() {\n return account;\n }", "public Account getAccount() {\n return account;\n }", "public BankAccount getAccountBalanceRepo(String accountNr){\n String sql = \"SELECT * FROM bankaccount WHERE accountnr = :accountnr\";\n Map paramMap = new HashMap();\n paramMap.put(\"accountnr\", accountNr);\n BankAccount result = jdbcTemplate.queryForObject(sql, paramMap, new AccountRowMapper());\n return result;\n }", "BankUserInfo selectByPrimaryKey(String userId);", "@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);", "public ResultSet returnAccno(Long userid)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select bank_acc_no from CUSTOMER_DETAILS where user_id=\"+userid+\"\");\r\n\treturn rs;\r\n}" ]
[ "0.66119426", "0.62071675", "0.6161898", "0.613387", "0.6078687", "0.6062299", "0.6017875", "0.6015458", "0.59938693", "0.5983831", "0.59764045", "0.5954496", "0.5941056", "0.5915", "0.5907664", "0.5882835", "0.5857446", "0.5845746", "0.58445644", "0.5825568", "0.58070624", "0.58070624", "0.58003676", "0.57964957", "0.57943314", "0.578784", "0.5775591", "0.5773042", "0.5769394", "0.57596684", "0.57544386", "0.5751086", "0.5748734", "0.5748179", "0.5745114", "0.5734012", "0.5733365", "0.5717736", "0.5709837", "0.5697737", "0.56914955", "0.56871414", "0.5670269", "0.5639005", "0.5636582", "0.5634653", "0.5634427", "0.56256425", "0.5616734", "0.56159526", "0.56143135", "0.561371", "0.56029654", "0.56009114", "0.5598393", "0.55980885", "0.55969816", "0.5583781", "0.557832", "0.5574771", "0.55612165", "0.55612165", "0.5553615", "0.55455947", "0.5544339", "0.55392206", "0.55379", "0.5536918", "0.5529504", "0.5526796", "0.5523707", "0.55149114", "0.5508204", "0.55040836", "0.5497177", "0.5496235", "0.5495825", "0.54951215", "0.54951215", "0.54951215", "0.5492938", "0.54841906", "0.5472473", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5457646", "0.5451221", "0.54493445", "0.54493445", "0.5445107", "0.5443027", "0.5441353", "0.5435856" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table account
int insert(Account record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Query(\"select a from Account a\")\n List<Account> getAllAccount();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "Account selectByPrimaryKey(Long accountid);", "public void createAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\t// Prüfung, ob Tabelle bereits besteht\r\n\t\tResultSet resultSet = connection.getMetaData().getTables(\"%\", \"%\", \"%\", new String[] { \"TABLE\" });\r\n\t\tboolean shouldCreateTable = true;\r\n\t\twhile (resultSet.next() && shouldCreateTable) {\r\n\t\t\tif (resultSet.getString(\"TABLE_NAME\").equalsIgnoreCase(\"ACCOUNT\")) {\r\n\t\t\t\tshouldCreateTable = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tresultSet.close();\r\n\r\n\t\tif (shouldCreateTable) {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tString sql = \"CREATE table account (id int not null primary key, owner varchar(\"\r\n\t\t\t\t\t+ DatabaseAdministration.ownerLength + \") not null, number varchar(4) not null)\";\r\n\t\t\t// Tabelle wird erstellt\r\n\t\t\tstatement.execute(sql);\r\n\t\t\tstatement.close();\r\n\t\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\t\tlogger.info(\"Tabelle \\\"Account\\\" wurde erstellt.\");\r\n\t\t\tbankAccountExists = false;\r\n\t\t\t// Das Bank-Konto wird angelegt\r\n\t\t\taddAccount(\"0000\", \"BANK\", BigDecimal.ZERO);\r\n\t\t\tbankAccountExists = true;\r\n\t\t}\r\n\t\tconnection.close();\r\n\t}", "@Query(\"select a from Account a\")\n List<Account> getAllAccounts();", "@Query(\"select a from Account a where a.role = 'ADMIN'\")\n List<Account> getAllAdminsAccount();", "@Query(\"select ad from AccountDetail ad\")\n List<AccountDetail> getAllAccounts();", "@Override\n\tpublic int addAccount(Account account) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"insert into accounts values(default, ?, ?) returning id\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setString(1, account.getType());\n\t\tprepStmt.setDouble(2, account.getBalance());\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\tint id = 0;\n\t\twhile(rs.next()) {\n\t\t\tid = rs.getInt(1);\n\t\t}\n\t\treturn id;\n\t}", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "ShopAccount selectByPrimaryKey(Integer spAccount);", "@Override\r\n\tpublic Map<String, List<NewAccount>> Accountlist(int UserID) throws SQLException {\n\t\tList<NewAccount> accounts = createAccountDao.Accountlist(UserID);\r\n\t\tSystem.out.println(\"[CreateAccountDaoImp][save] New account save status : \" + accounts);\r\n\t\tList<NewAccount> loanAccounts = new ArrayList<NewAccount>();\r\n\t\tList<NewAccount> savingAccount = new ArrayList<NewAccount>();\r\n\t\tList<NewAccount> creditAccount = new ArrayList<NewAccount>();\r\n\t\tMap<String, List<NewAccount>> accountsMap = new HashMap<String, List<NewAccount>>();\r\n\r\n\t\t// Account Sorting\r\n\t\tfor (int i = 0; i < accounts.size(); i++) {\r\n\t\t\t\r\n\t\t\tif (accounts.get(i).getAccountType().equals(\"Loans\")) {\r\n\t\t\t\t\r\n\t\t\t\tloanAccounts.add(accounts.get(i));\r\n\t\t\t\t\r\n\t\t\t} else if (accounts.get(i).getAccountType().equals(\"Accounts\")) {\r\n\t\t\t\t\r\n\t\t\t\tsavingAccount.add(accounts.get(i));\r\n\t\t\t\t\r\n\t\t\t} else if (accounts.get(i).getAccountType().equals(\"Cards\")) {\r\n\t\t\t\tcreditAccount.add(accounts.get(i));\r\n\t\t\t}\r\n\t\t\t// credit //accountsMap.put(\"loan\",accounts.get(i));\r\n\t\t}\r\n\t\taccountsMap.put(\"loanAccount\", loanAccounts);\r\n\t\taccountsMap.put(\"savingsAccount\", savingAccount);\r\n\t\taccountsMap.put(\"creditAccount\", creditAccount);\r\n\t\tSet<String> key = accountsMap.keySet();\r\n\t\tIterator<String> iterator = key.iterator();\r\n\t/*\twhile (iterator.hasNext()) {\r\n\t\t\tString accountType = iterator.next();\r\n\r\n\t\t\tSystem.out.println(\"----------------------\" + accountType + \"------------------------\");\r\n\t\t\tSystem.out.println(\"|------------\" + accountsMap.get(accountType) + \"---------------|\");\r\n\t\t\tSystem.out.println(\"-----------------End of first Account Type-------------------\");\r\n\t\t}*/\r\n\r\n\t\treturn accountsMap;\r\n\t}", "public ResultSet getAllAccounts () throws Exception {\r\n String sql = \"SELECT * FROM `accounts`;\";\r\n return stmt.executeQuery(sql);\r\n }", "UserAccount getUserAccountById(long id);", "Account getAccount();", "java.lang.String getAccount();", "public List<Account> getAccounts() throws SQLException {\r\n\t\tList<Account> accounts = new ArrayList<>();\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t// Alle Datensätze der Account-Tabelle abrufen\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\twhile (resultSet.next()) {\r\n\t\t\t// Datensätze in Kontoobjekte umwandeln\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\t\t\tAccount account = new Account();\r\n\t\t\taccount.setId(id);\r\n\t\t\taccount.setOwner(owner);\r\n\t\t\taccount.setNumber(number);\r\n\t\t\taccount.setTransactions(daTransaction.getTransactionHistory(number));\r\n\t\t\taccounts.add(account);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t\treturn accounts;\r\n\t}", "@Query(\"select ad from AccountDetail ad where ad.role = 'USER'\")\n List<AccountDetail> getAllAdminAccounts();", "Account selectByPrimaryKey(String id);", "FinanceAccount selectByPrimaryKey(Integer id);", "List<Account> findAll();", "List<Account> findAll();", "public int subsAccount(NguoiNhap nn) throws SQLException {\r\n System.out.println(nn.getUsername() + nn.getPassword() + nn.getName() + nn.getGender() + nn.getBirthday());\r\n return this.connectionAdminToAccessData(\r\n \"INSERT INTO USER() VALUES('\"\r\n + nn.getUsername() + \"','\"\r\n + nn.getPassword() + \"','\"\r\n + nn.getName() + \"','\"\r\n + nn.getGender() + \"','\"\r\n + nn.getBirthday() + \"')\");\r\n }", "public interface AccountDao {\n int insert(Account account);\n\n Account queryAccountById(Long id);\n\n Account findAccount(Account account);\n\n Account queryAccountByMobile(Long mobile);\n\n Account queryAccountByEmail(String email);\n\n void update(Account account);\n\n void resetPassword(Account account);\n}", "public JavaaccountModel getaccount(JavaaccountModel oJavaaccountModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing account from the database*/\n oJavaaccountModel = (JavaaccountModel) hibernateSession.get(JavaaccountModel.class, oJavaaccountModel.getaccountId());\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaaccountModel;\n }", "public ResultSet returnAccount(Long demataccountNo)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select BANK_ACC_NO from CUSTOMER_DETAILS where DEMAT_ACC_NO=\"+demataccountNo+\"\");\r\n\treturn rs;\r\n}", "List<Account> selectAll();", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "List<TmpUserPayAccount> selectAll();", "@Override\n\tpublic List<Account> getAccountsByName(String name) {\n\t\treturn jdbcTemplate.query(\"select * from account where locate(?, name)>0 \", new Object[]{name}, new BeanPropertyRowMapper(Account.class));\n\t}", "public interface AccountDao {\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @return Account or null\n */\n Account getAccount(Integer accountNumber);\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return Account or null\n */\n Account getAccount(Integer accountNumber, Configuration configuration);\n\n /**\n * Get all accounts for user with login\n *\n * @param login unique String key for user\n * @return List of Account or empty List\n */\n List<Account> getAccounts(String login);\n\n /**\n * Update account\n *\n * @param account new data to Account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return new updated Account\n */\n Account updateAccount(Account account, Configuration configuration);\n\n}", "@Override\r\n\tpublic List<AccountDTO> getAllUser() {\n\t\treturn accountDao.getAll();\r\n\t}", "CusBankAccount selectByPrimaryKey(Integer id);", "@Override\npublic void update(Account account) {\n\taccountdao.update(account);\n}", "public int getC_BankAccount_ID();", "public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}", "public List<Account> getAccountByType() throws Exception{\n Session session= sessionFactory.getCurrentSession();\n List<Account> accountList= session.createQuery(\"select account_type, COUNT(account_no) from Account group by account_type\").list();\n return accountList;\n }", "@Override\n\tpublic void addToUserAccountTable(int accountId,String username) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString insertQuery = \"insert into user_account values(?, ?)\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(insertQuery);\n \n\t\t\tprepStmt.setString(1, username);\n\t\t\tprepStmt.setInt(2, accountId);\n\t\t\tprepStmt.executeUpdate();\n\t}", "Long getAccountId();", "@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}", "List<BookAccount> findAllForAccount(long idAccount);", "public int getAccountType() {\r\n return accountType;\r\n }", "public static String getUserAccount(String account){\n return \"select ui_account from user_information where ui_account = '\"+account+\"'\";\n }", "@Query(\"select a from Account a where a.role = 'Admin'\")\n List<Account> getAllAdmins();", "@Override\n\tpublic List<Map<String, Object>> getAccountsMapByName(String name) {\n\t\treturn jdbcTemplate.queryForList(\"select * from account where locate(?, name)>0 \", new Object[]{name});\n\t}", "public GenericDao<Account> getAccountDao();", "public void AddToAccountInfo();", "@Select({\n \"select\",\n \"username, password\",\n \"from tb_user\"\n })\n @Results({\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR)\n })\n List<User> selectAll();", "@Query(\"select acc from Account acc where acc.customer.customerId = :customerId\")\n\tAccount findAccountByCustomer(@Param(\"customerId\") Long customerId);", "void updateAccount();", "@GetMapping()\n public List<Account> accounts(){\n List<Account> accounts = new ArrayList<>();\n //repoAccounts.forEach(accounts::add);\n accountRepository.findAll().forEach(accounts::add);\n return accounts;\n }", "public String getAccountNo();", "public abstract int getAccountType();", "private void showContentAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\tSystem.out.println(\"Table account:\");\r\n\t\twhile (resultSet.next()) {\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\r\n\t\t\tSystem.out.println(id + \" | \" + owner + \" | \" + number);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t}", "@MyBatisDao\npublic interface UserProfileMapper {\n UserProfile selectByPrimaryKey(long id);\n\n UserProfile selectByUserId(long userId);\n\n UserProfile selectByEmail(String email);\n\n int deleteByPrimaryKey(long id);\n\n int insert(UserProfile userProfile);\n\n int update(UserProfile userProfile);\n\n int updateAvatar(UserProfile userProfile);\n}", "@Override\n public void insertAccount() throws Exception {\n\n }", "public void setAccountNo (String AccountNo);", "public interface AccountDao {\n\t\n\t/**\n\t * Gets the list of Accounts based on the criteria passed as parameter\n\t * @param map a key value pair map used as criteria\n\t * @return List of {@link Account} satisfying the criteria\n\t * @throws DaoException\n\t */\n\tList<Account> getAccountsBasedOnCriteria(Map<String, Object> map) throws DaoException;\n\t\n\t/**\n\t * Get the {@link Account} object based on its accountNumber\n\t * @param accountNumber\n\t * @return\n\t * @throws DaoException\n\t */\n\tAccount getAccountByAccountNumber(Integer accountNumber) throws DaoException;\n\t\n\t/**\n\t * Update {@link Account}\n\t * @param account {@link Account} object needs to be updated\n\t * @throws DaoException\n\t */\n\tvoid update(Account account) throws DaoException;\n}", "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as long as the next row is not null\n String username, password, firstName, lastName;\n int age;\n username = resultSet.getString(\"username\");\n password = resultSet.getString(\"password\");\n firstName = resultSet.getString(\"firstname\");\n lastName = resultSet.getString(\"lastname\");\n age = resultSet.getInt(\"age\");\n // place all the new items into a new Account object\n Account newAccount = new Account(username, password, firstName, lastName, age);\n // add the account to the list\n accounts.add(newAccount);\n }\n } catch (SQLException exc) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, exc);\n }\n\n return accounts;\n }", "List<Account> findAccountByRole(UserRole role);", "public Long getAccountID() {\n return accountID;\n }", "public Long getAccountID() {\n return accountID;\n }", "public String getAccount(){\n\t\treturn account;\n\t}", "public String getAccount() {\r\n return account;\r\n }", "Account findByAccountType(String accountType);", "public ResultSet retBalance(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"Select balance from account where accno=\"+userid+\"\");\r\n\treturn rs;\r\n}", "@Override\n\tpublic void registerAccount(AccountVO account) {\n\tsession.insert(\"account.registerAccount\",account);\n\t\t\n\t}", "public Account(){\n this.id = 0;\n this.balance = 0;\n this.annualInterestRate = 0;\n this.dateCreated = new Date();\n }", "@Override\npublic Account findById(int accountid) {\n\treturn accountdao.findById(accountid);\n}", "Account getAccount(int id);", "public List<Accounts> getAllAccounts() {\n List<Accounts> accountList = new ArrayList<Accounts>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_ACCOUNTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Accounts account = new Accounts();\n account.setID(Integer.parseInt(cursor.getString(0)));\n account.setName(cursor.getString(1));\n account.setPassword(cursor.getString(2));\n account.setPhoneNumber(cursor.getString(3));\n account.setEmail(cursor.getString(4));\n // Adding account to list\n accountList.add(account);\n } while (cursor.moveToNext());\n }\n\n // return account list\n return accountList;\n }", "public void saveAccount() {\n\n }", "public MnoAccount getAccountById(String id);", "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "@Override\n\tpublic List<Account> findAllAccounts() {\n\t\treturn m_accountDao.findAll();\n\t}", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "public final void loadAccounts() {\n DBUtil.select(\n \"select id, created, account_name, account_pass, account_email, timezone from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".af_account\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n while (resultSet.next() ) {\n AfAccount account = createAccountFromResultSet(resultSet);\n }\n }\n });\n }", "public int getAccountID() {\n return accountID;\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public interface AccountRepository extends JpaRepository<Account, Integer>{\n}", "@Override\n\tpublic Account findAccountByAccountId(int accountId) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"select * from accounts where id=?\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setInt(1, accountId);\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\tAccount a = null;\n\t\twhile (rs.next()) {\n\t\t\ta = new Account(rs.getInt(1), rs.getString(2), rs.getDouble(3));\n\t\t}\n\t\treturn a;\n\n\t}", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "List<AccountModel> findAll();", "public String displayAccount() {\r\n\t return id+\",\"+name+\",\"+balance+\",\"+email+\",\"+dateOfOpening;\r\n }", "public Account getAccount() {\n return account;\n }", "public Account getAccount() {\n return account;\n }", "public BankAccount getAccountBalanceRepo(String accountNr){\n String sql = \"SELECT * FROM bankaccount WHERE accountnr = :accountnr\";\n Map paramMap = new HashMap();\n paramMap.put(\"accountnr\", accountNr);\n BankAccount result = jdbcTemplate.queryForObject(sql, paramMap, new AccountRowMapper());\n return result;\n }", "BankUserInfo selectByPrimaryKey(String userId);", "@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);", "public ResultSet returnAccno(Long userid)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select bank_acc_no from CUSTOMER_DETAILS where user_id=\"+userid+\"\");\r\n\treturn rs;\r\n}" ]
[ "0.6612246", "0.6207615", "0.6163707", "0.61339647", "0.6075847", "0.60627675", "0.6018527", "0.60154366", "0.59935486", "0.5984616", "0.59767735", "0.5954365", "0.5941535", "0.5916868", "0.59099877", "0.58843684", "0.5858682", "0.58463085", "0.58451885", "0.58255434", "0.5808429", "0.5808429", "0.5800566", "0.57976323", "0.57944196", "0.5788641", "0.57763064", "0.5775041", "0.57695806", "0.57610464", "0.57563204", "0.57523125", "0.5749496", "0.5748", "0.5745599", "0.57349116", "0.57336134", "0.5715721", "0.5711596", "0.56974965", "0.56922555", "0.5686932", "0.56708306", "0.5639592", "0.56375045", "0.56363267", "0.5634368", "0.56261736", "0.5618437", "0.56153303", "0.56151485", "0.56141293", "0.56015706", "0.55998814", "0.5599197", "0.55983204", "0.5597888", "0.558509", "0.55799", "0.5576506", "0.55614036", "0.55614036", "0.55551", "0.5546974", "0.5544932", "0.55395013", "0.5539428", "0.5536806", "0.5530645", "0.55284476", "0.55241597", "0.5514603", "0.5509346", "0.55049264", "0.549845", "0.5496882", "0.5496882", "0.5496882", "0.5496436", "0.54960275", "0.54932624", "0.5484713", "0.5473163", "0.5471094", "0.5471094", "0.5471094", "0.5471094", "0.5471094", "0.5471094", "0.5471094", "0.5471094", "0.5471094", "0.5471094", "0.5458426", "0.545108", "0.54509276", "0.54509276", "0.5447513", "0.5443471", "0.5442146", "0.5436794" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table account
int insertSelective(Account record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Query(\"select a from Account a\")\n List<Account> getAllAccount();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "Account selectByPrimaryKey(Long accountid);", "public void createAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\t// Prüfung, ob Tabelle bereits besteht\r\n\t\tResultSet resultSet = connection.getMetaData().getTables(\"%\", \"%\", \"%\", new String[] { \"TABLE\" });\r\n\t\tboolean shouldCreateTable = true;\r\n\t\twhile (resultSet.next() && shouldCreateTable) {\r\n\t\t\tif (resultSet.getString(\"TABLE_NAME\").equalsIgnoreCase(\"ACCOUNT\")) {\r\n\t\t\t\tshouldCreateTable = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tresultSet.close();\r\n\r\n\t\tif (shouldCreateTable) {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tString sql = \"CREATE table account (id int not null primary key, owner varchar(\"\r\n\t\t\t\t\t+ DatabaseAdministration.ownerLength + \") not null, number varchar(4) not null)\";\r\n\t\t\t// Tabelle wird erstellt\r\n\t\t\tstatement.execute(sql);\r\n\t\t\tstatement.close();\r\n\t\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\t\tlogger.info(\"Tabelle \\\"Account\\\" wurde erstellt.\");\r\n\t\t\tbankAccountExists = false;\r\n\t\t\t// Das Bank-Konto wird angelegt\r\n\t\t\taddAccount(\"0000\", \"BANK\", BigDecimal.ZERO);\r\n\t\t\tbankAccountExists = true;\r\n\t\t}\r\n\t\tconnection.close();\r\n\t}", "@Query(\"select a from Account a\")\n List<Account> getAllAccounts();", "@Query(\"select a from Account a where a.role = 'ADMIN'\")\n List<Account> getAllAdminsAccount();", "@Query(\"select ad from AccountDetail ad\")\n List<AccountDetail> getAllAccounts();", "@Override\n\tpublic int addAccount(Account account) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"insert into accounts values(default, ?, ?) returning id\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setString(1, account.getType());\n\t\tprepStmt.setDouble(2, account.getBalance());\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\tint id = 0;\n\t\twhile(rs.next()) {\n\t\t\tid = rs.getInt(1);\n\t\t}\n\t\treturn id;\n\t}", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "ShopAccount selectByPrimaryKey(Integer spAccount);", "@Override\r\n\tpublic Map<String, List<NewAccount>> Accountlist(int UserID) throws SQLException {\n\t\tList<NewAccount> accounts = createAccountDao.Accountlist(UserID);\r\n\t\tSystem.out.println(\"[CreateAccountDaoImp][save] New account save status : \" + accounts);\r\n\t\tList<NewAccount> loanAccounts = new ArrayList<NewAccount>();\r\n\t\tList<NewAccount> savingAccount = new ArrayList<NewAccount>();\r\n\t\tList<NewAccount> creditAccount = new ArrayList<NewAccount>();\r\n\t\tMap<String, List<NewAccount>> accountsMap = new HashMap<String, List<NewAccount>>();\r\n\r\n\t\t// Account Sorting\r\n\t\tfor (int i = 0; i < accounts.size(); i++) {\r\n\t\t\t\r\n\t\t\tif (accounts.get(i).getAccountType().equals(\"Loans\")) {\r\n\t\t\t\t\r\n\t\t\t\tloanAccounts.add(accounts.get(i));\r\n\t\t\t\t\r\n\t\t\t} else if (accounts.get(i).getAccountType().equals(\"Accounts\")) {\r\n\t\t\t\t\r\n\t\t\t\tsavingAccount.add(accounts.get(i));\r\n\t\t\t\t\r\n\t\t\t} else if (accounts.get(i).getAccountType().equals(\"Cards\")) {\r\n\t\t\t\tcreditAccount.add(accounts.get(i));\r\n\t\t\t}\r\n\t\t\t// credit //accountsMap.put(\"loan\",accounts.get(i));\r\n\t\t}\r\n\t\taccountsMap.put(\"loanAccount\", loanAccounts);\r\n\t\taccountsMap.put(\"savingsAccount\", savingAccount);\r\n\t\taccountsMap.put(\"creditAccount\", creditAccount);\r\n\t\tSet<String> key = accountsMap.keySet();\r\n\t\tIterator<String> iterator = key.iterator();\r\n\t/*\twhile (iterator.hasNext()) {\r\n\t\t\tString accountType = iterator.next();\r\n\r\n\t\t\tSystem.out.println(\"----------------------\" + accountType + \"------------------------\");\r\n\t\t\tSystem.out.println(\"|------------\" + accountsMap.get(accountType) + \"---------------|\");\r\n\t\t\tSystem.out.println(\"-----------------End of first Account Type-------------------\");\r\n\t\t}*/\r\n\r\n\t\treturn accountsMap;\r\n\t}", "public ResultSet getAllAccounts () throws Exception {\r\n String sql = \"SELECT * FROM `accounts`;\";\r\n return stmt.executeQuery(sql);\r\n }", "UserAccount getUserAccountById(long id);", "Account getAccount();", "java.lang.String getAccount();", "public List<Account> getAccounts() throws SQLException {\r\n\t\tList<Account> accounts = new ArrayList<>();\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t// Alle Datensätze der Account-Tabelle abrufen\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\twhile (resultSet.next()) {\r\n\t\t\t// Datensätze in Kontoobjekte umwandeln\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\t\t\tAccount account = new Account();\r\n\t\t\taccount.setId(id);\r\n\t\t\taccount.setOwner(owner);\r\n\t\t\taccount.setNumber(number);\r\n\t\t\taccount.setTransactions(daTransaction.getTransactionHistory(number));\r\n\t\t\taccounts.add(account);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t\treturn accounts;\r\n\t}", "@Query(\"select ad from AccountDetail ad where ad.role = 'USER'\")\n List<AccountDetail> getAllAdminAccounts();", "Account selectByPrimaryKey(String id);", "FinanceAccount selectByPrimaryKey(Integer id);", "List<Account> findAll();", "List<Account> findAll();", "public int subsAccount(NguoiNhap nn) throws SQLException {\r\n System.out.println(nn.getUsername() + nn.getPassword() + nn.getName() + nn.getGender() + nn.getBirthday());\r\n return this.connectionAdminToAccessData(\r\n \"INSERT INTO USER() VALUES('\"\r\n + nn.getUsername() + \"','\"\r\n + nn.getPassword() + \"','\"\r\n + nn.getName() + \"','\"\r\n + nn.getGender() + \"','\"\r\n + nn.getBirthday() + \"')\");\r\n }", "public interface AccountDao {\n int insert(Account account);\n\n Account queryAccountById(Long id);\n\n Account findAccount(Account account);\n\n Account queryAccountByMobile(Long mobile);\n\n Account queryAccountByEmail(String email);\n\n void update(Account account);\n\n void resetPassword(Account account);\n}", "public JavaaccountModel getaccount(JavaaccountModel oJavaaccountModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing account from the database*/\n oJavaaccountModel = (JavaaccountModel) hibernateSession.get(JavaaccountModel.class, oJavaaccountModel.getaccountId());\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaaccountModel;\n }", "public ResultSet returnAccount(Long demataccountNo)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select BANK_ACC_NO from CUSTOMER_DETAILS where DEMAT_ACC_NO=\"+demataccountNo+\"\");\r\n\treturn rs;\r\n}", "List<Account> selectAll();", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "List<TmpUserPayAccount> selectAll();", "@Override\n\tpublic List<Account> getAccountsByName(String name) {\n\t\treturn jdbcTemplate.query(\"select * from account where locate(?, name)>0 \", new Object[]{name}, new BeanPropertyRowMapper(Account.class));\n\t}", "public interface AccountDao {\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @return Account or null\n */\n Account getAccount(Integer accountNumber);\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return Account or null\n */\n Account getAccount(Integer accountNumber, Configuration configuration);\n\n /**\n * Get all accounts for user with login\n *\n * @param login unique String key for user\n * @return List of Account or empty List\n */\n List<Account> getAccounts(String login);\n\n /**\n * Update account\n *\n * @param account new data to Account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return new updated Account\n */\n Account updateAccount(Account account, Configuration configuration);\n\n}", "@Override\r\n\tpublic List<AccountDTO> getAllUser() {\n\t\treturn accountDao.getAll();\r\n\t}", "CusBankAccount selectByPrimaryKey(Integer id);", "@Override\npublic void update(Account account) {\n\taccountdao.update(account);\n}", "public int getC_BankAccount_ID();", "public List<Account> getAccountByType() throws Exception{\n Session session= sessionFactory.getCurrentSession();\n List<Account> accountList= session.createQuery(\"select account_type, COUNT(account_no) from Account group by account_type\").list();\n return accountList;\n }", "public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}", "@Override\n\tpublic void addToUserAccountTable(int accountId,String username) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString insertQuery = \"insert into user_account values(?, ?)\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(insertQuery);\n \n\t\t\tprepStmt.setString(1, username);\n\t\t\tprepStmt.setInt(2, accountId);\n\t\t\tprepStmt.executeUpdate();\n\t}", "Long getAccountId();", "@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}", "List<BookAccount> findAllForAccount(long idAccount);", "public int getAccountType() {\r\n return accountType;\r\n }", "public static String getUserAccount(String account){\n return \"select ui_account from user_information where ui_account = '\"+account+\"'\";\n }", "@Query(\"select a from Account a where a.role = 'Admin'\")\n List<Account> getAllAdmins();", "@Override\n\tpublic List<Map<String, Object>> getAccountsMapByName(String name) {\n\t\treturn jdbcTemplate.queryForList(\"select * from account where locate(?, name)>0 \", new Object[]{name});\n\t}", "public GenericDao<Account> getAccountDao();", "public void AddToAccountInfo();", "@Select({\n \"select\",\n \"username, password\",\n \"from tb_user\"\n })\n @Results({\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR)\n })\n List<User> selectAll();", "@Query(\"select acc from Account acc where acc.customer.customerId = :customerId\")\n\tAccount findAccountByCustomer(@Param(\"customerId\") Long customerId);", "void updateAccount();", "@GetMapping()\n public List<Account> accounts(){\n List<Account> accounts = new ArrayList<>();\n //repoAccounts.forEach(accounts::add);\n accountRepository.findAll().forEach(accounts::add);\n return accounts;\n }", "public String getAccountNo();", "private void showContentAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\tSystem.out.println(\"Table account:\");\r\n\t\twhile (resultSet.next()) {\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\r\n\t\t\tSystem.out.println(id + \" | \" + owner + \" | \" + number);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t}", "public abstract int getAccountType();", "@Override\n public void insertAccount() throws Exception {\n\n }", "public void setAccountNo (String AccountNo);", "@MyBatisDao\npublic interface UserProfileMapper {\n UserProfile selectByPrimaryKey(long id);\n\n UserProfile selectByUserId(long userId);\n\n UserProfile selectByEmail(String email);\n\n int deleteByPrimaryKey(long id);\n\n int insert(UserProfile userProfile);\n\n int update(UserProfile userProfile);\n\n int updateAvatar(UserProfile userProfile);\n}", "public interface AccountDao {\n\t\n\t/**\n\t * Gets the list of Accounts based on the criteria passed as parameter\n\t * @param map a key value pair map used as criteria\n\t * @return List of {@link Account} satisfying the criteria\n\t * @throws DaoException\n\t */\n\tList<Account> getAccountsBasedOnCriteria(Map<String, Object> map) throws DaoException;\n\t\n\t/**\n\t * Get the {@link Account} object based on its accountNumber\n\t * @param accountNumber\n\t * @return\n\t * @throws DaoException\n\t */\n\tAccount getAccountByAccountNumber(Integer accountNumber) throws DaoException;\n\t\n\t/**\n\t * Update {@link Account}\n\t * @param account {@link Account} object needs to be updated\n\t * @throws DaoException\n\t */\n\tvoid update(Account account) throws DaoException;\n}", "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as long as the next row is not null\n String username, password, firstName, lastName;\n int age;\n username = resultSet.getString(\"username\");\n password = resultSet.getString(\"password\");\n firstName = resultSet.getString(\"firstname\");\n lastName = resultSet.getString(\"lastname\");\n age = resultSet.getInt(\"age\");\n // place all the new items into a new Account object\n Account newAccount = new Account(username, password, firstName, lastName, age);\n // add the account to the list\n accounts.add(newAccount);\n }\n } catch (SQLException exc) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, exc);\n }\n\n return accounts;\n }", "List<Account> findAccountByRole(UserRole role);", "public Long getAccountID() {\n return accountID;\n }", "public Long getAccountID() {\n return accountID;\n }", "public String getAccount(){\n\t\treturn account;\n\t}", "public String getAccount() {\r\n return account;\r\n }", "Account findByAccountType(String accountType);", "@Override\n\tpublic void registerAccount(AccountVO account) {\n\tsession.insert(\"account.registerAccount\",account);\n\t\t\n\t}", "public ResultSet retBalance(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"Select balance from account where accno=\"+userid+\"\");\r\n\treturn rs;\r\n}", "public Account(){\n this.id = 0;\n this.balance = 0;\n this.annualInterestRate = 0;\n this.dateCreated = new Date();\n }", "@Override\npublic Account findById(int accountid) {\n\treturn accountdao.findById(accountid);\n}", "Account getAccount(int id);", "public List<Accounts> getAllAccounts() {\n List<Accounts> accountList = new ArrayList<Accounts>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_ACCOUNTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Accounts account = new Accounts();\n account.setID(Integer.parseInt(cursor.getString(0)));\n account.setName(cursor.getString(1));\n account.setPassword(cursor.getString(2));\n account.setPhoneNumber(cursor.getString(3));\n account.setEmail(cursor.getString(4));\n // Adding account to list\n accountList.add(account);\n } while (cursor.moveToNext());\n }\n\n // return account list\n return accountList;\n }", "public void saveAccount() {\n\n }", "public MnoAccount getAccountById(String id);", "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "@Override\n\tpublic List<Account> findAllAccounts() {\n\t\treturn m_accountDao.findAll();\n\t}", "public final void loadAccounts() {\n DBUtil.select(\n \"select id, created, account_name, account_pass, account_email, timezone from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".af_account\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n while (resultSet.next() ) {\n AfAccount account = createAccountFromResultSet(resultSet);\n }\n }\n });\n }", "public int getAccountID() {\n return accountID;\n }", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public interface AccountRepository extends JpaRepository<Account, Integer>{\n}", "@Override\n\tpublic Account findAccountByAccountId(int accountId) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"select * from accounts where id=?\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setInt(1, accountId);\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\tAccount a = null;\n\t\twhile (rs.next()) {\n\t\t\ta = new Account(rs.getInt(1), rs.getString(2), rs.getDouble(3));\n\t\t}\n\t\treturn a;\n\n\t}", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "List<AccountModel> findAll();", "public String displayAccount() {\r\n\t return id+\",\"+name+\",\"+balance+\",\"+email+\",\"+dateOfOpening;\r\n }", "public Account getAccount() {\n return account;\n }", "public Account getAccount() {\n return account;\n }", "public BankAccount getAccountBalanceRepo(String accountNr){\n String sql = \"SELECT * FROM bankaccount WHERE accountnr = :accountnr\";\n Map paramMap = new HashMap();\n paramMap.put(\"accountnr\", accountNr);\n BankAccount result = jdbcTemplate.queryForObject(sql, paramMap, new AccountRowMapper());\n return result;\n }", "BankUserInfo selectByPrimaryKey(String userId);", "@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);", "public ResultSet returnAccno(Long userid)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select bank_acc_no from CUSTOMER_DETAILS where user_id=\"+userid+\"\");\r\n\treturn rs;\r\n}" ]
[ "0.66119426", "0.62071675", "0.6161898", "0.613387", "0.6078687", "0.6062299", "0.6017875", "0.6015458", "0.59938693", "0.5983831", "0.59764045", "0.5954496", "0.5941056", "0.5915", "0.5907664", "0.5882835", "0.5857446", "0.5845746", "0.58445644", "0.5825568", "0.58070624", "0.58070624", "0.58003676", "0.57964957", "0.57943314", "0.578784", "0.5775591", "0.5773042", "0.5769394", "0.57596684", "0.57544386", "0.5751086", "0.5748734", "0.5748179", "0.5745114", "0.5734012", "0.5733365", "0.5717736", "0.5709837", "0.5697737", "0.56914955", "0.56871414", "0.5670269", "0.5639005", "0.5636582", "0.5634653", "0.5634427", "0.56256425", "0.5616734", "0.56159526", "0.56143135", "0.561371", "0.56029654", "0.56009114", "0.5598393", "0.55980885", "0.55969816", "0.5583781", "0.557832", "0.5574771", "0.55612165", "0.55612165", "0.5553615", "0.55455947", "0.5544339", "0.55392206", "0.55379", "0.5536918", "0.5529504", "0.5526796", "0.5523707", "0.55149114", "0.5508204", "0.55040836", "0.5497177", "0.5496235", "0.5495825", "0.54951215", "0.54951215", "0.54951215", "0.5492938", "0.54841906", "0.5472473", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5457646", "0.5451221", "0.54493445", "0.54493445", "0.5445107", "0.5443027", "0.5441353", "0.5435856" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table account
Account selectByPrimaryKey(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Query(\"select a from Account a\")\n List<Account> getAllAccount();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "Account selectByPrimaryKey(Long accountid);", "public void createAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\t// Prüfung, ob Tabelle bereits besteht\r\n\t\tResultSet resultSet = connection.getMetaData().getTables(\"%\", \"%\", \"%\", new String[] { \"TABLE\" });\r\n\t\tboolean shouldCreateTable = true;\r\n\t\twhile (resultSet.next() && shouldCreateTable) {\r\n\t\t\tif (resultSet.getString(\"TABLE_NAME\").equalsIgnoreCase(\"ACCOUNT\")) {\r\n\t\t\t\tshouldCreateTable = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tresultSet.close();\r\n\r\n\t\tif (shouldCreateTable) {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tString sql = \"CREATE table account (id int not null primary key, owner varchar(\"\r\n\t\t\t\t\t+ DatabaseAdministration.ownerLength + \") not null, number varchar(4) not null)\";\r\n\t\t\t// Tabelle wird erstellt\r\n\t\t\tstatement.execute(sql);\r\n\t\t\tstatement.close();\r\n\t\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\t\tlogger.info(\"Tabelle \\\"Account\\\" wurde erstellt.\");\r\n\t\t\tbankAccountExists = false;\r\n\t\t\t// Das Bank-Konto wird angelegt\r\n\t\t\taddAccount(\"0000\", \"BANK\", BigDecimal.ZERO);\r\n\t\t\tbankAccountExists = true;\r\n\t\t}\r\n\t\tconnection.close();\r\n\t}", "@Query(\"select a from Account a\")\n List<Account> getAllAccounts();", "@Query(\"select a from Account a where a.role = 'ADMIN'\")\n List<Account> getAllAdminsAccount();", "@Query(\"select ad from AccountDetail ad\")\n List<AccountDetail> getAllAccounts();", "@Override\n\tpublic int addAccount(Account account) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"insert into accounts values(default, ?, ?) returning id\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setString(1, account.getType());\n\t\tprepStmt.setDouble(2, account.getBalance());\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\tint id = 0;\n\t\twhile(rs.next()) {\n\t\t\tid = rs.getInt(1);\n\t\t}\n\t\treturn id;\n\t}", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "ShopAccount selectByPrimaryKey(Integer spAccount);", "@Override\r\n\tpublic Map<String, List<NewAccount>> Accountlist(int UserID) throws SQLException {\n\t\tList<NewAccount> accounts = createAccountDao.Accountlist(UserID);\r\n\t\tSystem.out.println(\"[CreateAccountDaoImp][save] New account save status : \" + accounts);\r\n\t\tList<NewAccount> loanAccounts = new ArrayList<NewAccount>();\r\n\t\tList<NewAccount> savingAccount = new ArrayList<NewAccount>();\r\n\t\tList<NewAccount> creditAccount = new ArrayList<NewAccount>();\r\n\t\tMap<String, List<NewAccount>> accountsMap = new HashMap<String, List<NewAccount>>();\r\n\r\n\t\t// Account Sorting\r\n\t\tfor (int i = 0; i < accounts.size(); i++) {\r\n\t\t\t\r\n\t\t\tif (accounts.get(i).getAccountType().equals(\"Loans\")) {\r\n\t\t\t\t\r\n\t\t\t\tloanAccounts.add(accounts.get(i));\r\n\t\t\t\t\r\n\t\t\t} else if (accounts.get(i).getAccountType().equals(\"Accounts\")) {\r\n\t\t\t\t\r\n\t\t\t\tsavingAccount.add(accounts.get(i));\r\n\t\t\t\t\r\n\t\t\t} else if (accounts.get(i).getAccountType().equals(\"Cards\")) {\r\n\t\t\t\tcreditAccount.add(accounts.get(i));\r\n\t\t\t}\r\n\t\t\t// credit //accountsMap.put(\"loan\",accounts.get(i));\r\n\t\t}\r\n\t\taccountsMap.put(\"loanAccount\", loanAccounts);\r\n\t\taccountsMap.put(\"savingsAccount\", savingAccount);\r\n\t\taccountsMap.put(\"creditAccount\", creditAccount);\r\n\t\tSet<String> key = accountsMap.keySet();\r\n\t\tIterator<String> iterator = key.iterator();\r\n\t/*\twhile (iterator.hasNext()) {\r\n\t\t\tString accountType = iterator.next();\r\n\r\n\t\t\tSystem.out.println(\"----------------------\" + accountType + \"------------------------\");\r\n\t\t\tSystem.out.println(\"|------------\" + accountsMap.get(accountType) + \"---------------|\");\r\n\t\t\tSystem.out.println(\"-----------------End of first Account Type-------------------\");\r\n\t\t}*/\r\n\r\n\t\treturn accountsMap;\r\n\t}", "public ResultSet getAllAccounts () throws Exception {\r\n String sql = \"SELECT * FROM `accounts`;\";\r\n return stmt.executeQuery(sql);\r\n }", "UserAccount getUserAccountById(long id);", "Account getAccount();", "java.lang.String getAccount();", "public List<Account> getAccounts() throws SQLException {\r\n\t\tList<Account> accounts = new ArrayList<>();\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t// Alle Datensätze der Account-Tabelle abrufen\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\twhile (resultSet.next()) {\r\n\t\t\t// Datensätze in Kontoobjekte umwandeln\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\t\t\tAccount account = new Account();\r\n\t\t\taccount.setId(id);\r\n\t\t\taccount.setOwner(owner);\r\n\t\t\taccount.setNumber(number);\r\n\t\t\taccount.setTransactions(daTransaction.getTransactionHistory(number));\r\n\t\t\taccounts.add(account);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t\treturn accounts;\r\n\t}", "@Query(\"select ad from AccountDetail ad where ad.role = 'USER'\")\n List<AccountDetail> getAllAdminAccounts();", "FinanceAccount selectByPrimaryKey(Integer id);", "List<Account> findAll();", "List<Account> findAll();", "public int subsAccount(NguoiNhap nn) throws SQLException {\r\n System.out.println(nn.getUsername() + nn.getPassword() + nn.getName() + nn.getGender() + nn.getBirthday());\r\n return this.connectionAdminToAccessData(\r\n \"INSERT INTO USER() VALUES('\"\r\n + nn.getUsername() + \"','\"\r\n + nn.getPassword() + \"','\"\r\n + nn.getName() + \"','\"\r\n + nn.getGender() + \"','\"\r\n + nn.getBirthday() + \"')\");\r\n }", "public interface AccountDao {\n int insert(Account account);\n\n Account queryAccountById(Long id);\n\n Account findAccount(Account account);\n\n Account queryAccountByMobile(Long mobile);\n\n Account queryAccountByEmail(String email);\n\n void update(Account account);\n\n void resetPassword(Account account);\n}", "public JavaaccountModel getaccount(JavaaccountModel oJavaaccountModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing account from the database*/\n oJavaaccountModel = (JavaaccountModel) hibernateSession.get(JavaaccountModel.class, oJavaaccountModel.getaccountId());\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaaccountModel;\n }", "public ResultSet returnAccount(Long demataccountNo)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select BANK_ACC_NO from CUSTOMER_DETAILS where DEMAT_ACC_NO=\"+demataccountNo+\"\");\r\n\treturn rs;\r\n}", "List<Account> selectAll();", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "List<TmpUserPayAccount> selectAll();", "@Override\n\tpublic List<Account> getAccountsByName(String name) {\n\t\treturn jdbcTemplate.query(\"select * from account where locate(?, name)>0 \", new Object[]{name}, new BeanPropertyRowMapper(Account.class));\n\t}", "public interface AccountDao {\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @return Account or null\n */\n Account getAccount(Integer accountNumber);\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return Account or null\n */\n Account getAccount(Integer accountNumber, Configuration configuration);\n\n /**\n * Get all accounts for user with login\n *\n * @param login unique String key for user\n * @return List of Account or empty List\n */\n List<Account> getAccounts(String login);\n\n /**\n * Update account\n *\n * @param account new data to Account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return new updated Account\n */\n Account updateAccount(Account account, Configuration configuration);\n\n}", "@Override\r\n\tpublic List<AccountDTO> getAllUser() {\n\t\treturn accountDao.getAll();\r\n\t}", "CusBankAccount selectByPrimaryKey(Integer id);", "@Override\npublic void update(Account account) {\n\taccountdao.update(account);\n}", "public int getC_BankAccount_ID();", "public List<Account> getAccountByType() throws Exception{\n Session session= sessionFactory.getCurrentSession();\n List<Account> accountList= session.createQuery(\"select account_type, COUNT(account_no) from Account group by account_type\").list();\n return accountList;\n }", "public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}", "@Override\n\tpublic void addToUserAccountTable(int accountId,String username) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString insertQuery = \"insert into user_account values(?, ?)\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(insertQuery);\n \n\t\t\tprepStmt.setString(1, username);\n\t\t\tprepStmt.setInt(2, accountId);\n\t\t\tprepStmt.executeUpdate();\n\t}", "Long getAccountId();", "@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}", "List<BookAccount> findAllForAccount(long idAccount);", "public int getAccountType() {\r\n return accountType;\r\n }", "public static String getUserAccount(String account){\n return \"select ui_account from user_information where ui_account = '\"+account+\"'\";\n }", "@Query(\"select a from Account a where a.role = 'Admin'\")\n List<Account> getAllAdmins();", "@Override\n\tpublic List<Map<String, Object>> getAccountsMapByName(String name) {\n\t\treturn jdbcTemplate.queryForList(\"select * from account where locate(?, name)>0 \", new Object[]{name});\n\t}", "public GenericDao<Account> getAccountDao();", "public void AddToAccountInfo();", "@Select({\n \"select\",\n \"username, password\",\n \"from tb_user\"\n })\n @Results({\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR)\n })\n List<User> selectAll();", "@Query(\"select acc from Account acc where acc.customer.customerId = :customerId\")\n\tAccount findAccountByCustomer(@Param(\"customerId\") Long customerId);", "void updateAccount();", "@GetMapping()\n public List<Account> accounts(){\n List<Account> accounts = new ArrayList<>();\n //repoAccounts.forEach(accounts::add);\n accountRepository.findAll().forEach(accounts::add);\n return accounts;\n }", "public String getAccountNo();", "public abstract int getAccountType();", "private void showContentAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\tSystem.out.println(\"Table account:\");\r\n\t\twhile (resultSet.next()) {\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\r\n\t\t\tSystem.out.println(id + \" | \" + owner + \" | \" + number);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t}", "@Override\n public void insertAccount() throws Exception {\n\n }", "@MyBatisDao\npublic interface UserProfileMapper {\n UserProfile selectByPrimaryKey(long id);\n\n UserProfile selectByUserId(long userId);\n\n UserProfile selectByEmail(String email);\n\n int deleteByPrimaryKey(long id);\n\n int insert(UserProfile userProfile);\n\n int update(UserProfile userProfile);\n\n int updateAvatar(UserProfile userProfile);\n}", "public void setAccountNo (String AccountNo);", "public interface AccountDao {\n\t\n\t/**\n\t * Gets the list of Accounts based on the criteria passed as parameter\n\t * @param map a key value pair map used as criteria\n\t * @return List of {@link Account} satisfying the criteria\n\t * @throws DaoException\n\t */\n\tList<Account> getAccountsBasedOnCriteria(Map<String, Object> map) throws DaoException;\n\t\n\t/**\n\t * Get the {@link Account} object based on its accountNumber\n\t * @param accountNumber\n\t * @return\n\t * @throws DaoException\n\t */\n\tAccount getAccountByAccountNumber(Integer accountNumber) throws DaoException;\n\t\n\t/**\n\t * Update {@link Account}\n\t * @param account {@link Account} object needs to be updated\n\t * @throws DaoException\n\t */\n\tvoid update(Account account) throws DaoException;\n}", "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as long as the next row is not null\n String username, password, firstName, lastName;\n int age;\n username = resultSet.getString(\"username\");\n password = resultSet.getString(\"password\");\n firstName = resultSet.getString(\"firstname\");\n lastName = resultSet.getString(\"lastname\");\n age = resultSet.getInt(\"age\");\n // place all the new items into a new Account object\n Account newAccount = new Account(username, password, firstName, lastName, age);\n // add the account to the list\n accounts.add(newAccount);\n }\n } catch (SQLException exc) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, exc);\n }\n\n return accounts;\n }", "List<Account> findAccountByRole(UserRole role);", "public Long getAccountID() {\n return accountID;\n }", "public Long getAccountID() {\n return accountID;\n }", "public String getAccount(){\n\t\treturn account;\n\t}", "public String getAccount() {\r\n return account;\r\n }", "Account findByAccountType(String accountType);", "@Override\n\tpublic void registerAccount(AccountVO account) {\n\tsession.insert(\"account.registerAccount\",account);\n\t\t\n\t}", "public ResultSet retBalance(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"Select balance from account where accno=\"+userid+\"\");\r\n\treturn rs;\r\n}", "public Account(){\n this.id = 0;\n this.balance = 0;\n this.annualInterestRate = 0;\n this.dateCreated = new Date();\n }", "@Override\npublic Account findById(int accountid) {\n\treturn accountdao.findById(accountid);\n}", "Account getAccount(int id);", "public List<Accounts> getAllAccounts() {\n List<Accounts> accountList = new ArrayList<Accounts>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_ACCOUNTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Accounts account = new Accounts();\n account.setID(Integer.parseInt(cursor.getString(0)));\n account.setName(cursor.getString(1));\n account.setPassword(cursor.getString(2));\n account.setPhoneNumber(cursor.getString(3));\n account.setEmail(cursor.getString(4));\n // Adding account to list\n accountList.add(account);\n } while (cursor.moveToNext());\n }\n\n // return account list\n return accountList;\n }", "public void saveAccount() {\n\n }", "public MnoAccount getAccountById(String id);", "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "@Override\n\tpublic List<Account> findAllAccounts() {\n\t\treturn m_accountDao.findAll();\n\t}", "public final void loadAccounts() {\n DBUtil.select(\n \"select id, created, account_name, account_pass, account_email, timezone from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".af_account\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n while (resultSet.next() ) {\n AfAccount account = createAccountFromResultSet(resultSet);\n }\n }\n });\n }", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "public int getAccountID() {\n return accountID;\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public interface AccountRepository extends JpaRepository<Account, Integer>{\n}", "@Override\n\tpublic Account findAccountByAccountId(int accountId) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"select * from accounts where id=?\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setInt(1, accountId);\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\tAccount a = null;\n\t\twhile (rs.next()) {\n\t\t\ta = new Account(rs.getInt(1), rs.getString(2), rs.getDouble(3));\n\t\t}\n\t\treturn a;\n\n\t}", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "List<AccountModel> findAll();", "public String displayAccount() {\r\n\t return id+\",\"+name+\",\"+balance+\",\"+email+\",\"+dateOfOpening;\r\n }", "public Account getAccount() {\n return account;\n }", "public Account getAccount() {\n return account;\n }", "public BankAccount getAccountBalanceRepo(String accountNr){\n String sql = \"SELECT * FROM bankaccount WHERE accountnr = :accountnr\";\n Map paramMap = new HashMap();\n paramMap.put(\"accountnr\", accountNr);\n BankAccount result = jdbcTemplate.queryForObject(sql, paramMap, new AccountRowMapper());\n return result;\n }", "BankUserInfo selectByPrimaryKey(String userId);", "@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);", "public ResultSet returnAccno(Long userid)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select bank_acc_no from CUSTOMER_DETAILS where user_id=\"+userid+\"\");\r\n\treturn rs;\r\n}" ]
[ "0.6611813", "0.6207485", "0.61638474", "0.6133445", "0.60778236", "0.6062583", "0.60182166", "0.6015758", "0.5994378", "0.5983749", "0.59765923", "0.59561926", "0.5940864", "0.5916388", "0.59102565", "0.58845484", "0.58584654", "0.5846061", "0.58254087", "0.58078426", "0.58078426", "0.580115", "0.5797718", "0.57949966", "0.57888085", "0.57758605", "0.57757235", "0.5769636", "0.5761418", "0.5755866", "0.5752857", "0.574943", "0.5748552", "0.57468206", "0.57344407", "0.57343525", "0.5717464", "0.571112", "0.5697257", "0.56920594", "0.56874585", "0.56703323", "0.5639297", "0.56377226", "0.563595", "0.5635666", "0.5625188", "0.5617988", "0.56164116", "0.5615739", "0.56144416", "0.5602269", "0.5600675", "0.5600125", "0.5598197", "0.5597847", "0.55852914", "0.5579866", "0.5576257", "0.5561129", "0.5561129", "0.55549914", "0.5546866", "0.5544812", "0.5540518", "0.55404294", "0.55378765", "0.5530073", "0.55282736", "0.55244523", "0.55157477", "0.5508703", "0.5505495", "0.5498322", "0.5497075", "0.5496546", "0.5496546", "0.5496546", "0.5496042", "0.54941595", "0.54847413", "0.5472867", "0.54708564", "0.54708564", "0.54708564", "0.54708564", "0.54708564", "0.54708564", "0.54708564", "0.54708564", "0.54708564", "0.54708564", "0.54581475", "0.54514825", "0.5451397", "0.5451397", "0.544754", "0.5443558", "0.54408705", "0.5437288" ]
0.58442533
18
This method was generated by MyBatis Generator. This method corresponds to the database table account
int updateByPrimaryKeySelective(Account record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Query(\"select a from Account a\")\n List<Account> getAllAccount();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "Account selectByPrimaryKey(Long accountid);", "public void createAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\t// Prüfung, ob Tabelle bereits besteht\r\n\t\tResultSet resultSet = connection.getMetaData().getTables(\"%\", \"%\", \"%\", new String[] { \"TABLE\" });\r\n\t\tboolean shouldCreateTable = true;\r\n\t\twhile (resultSet.next() && shouldCreateTable) {\r\n\t\t\tif (resultSet.getString(\"TABLE_NAME\").equalsIgnoreCase(\"ACCOUNT\")) {\r\n\t\t\t\tshouldCreateTable = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tresultSet.close();\r\n\r\n\t\tif (shouldCreateTable) {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tString sql = \"CREATE table account (id int not null primary key, owner varchar(\"\r\n\t\t\t\t\t+ DatabaseAdministration.ownerLength + \") not null, number varchar(4) not null)\";\r\n\t\t\t// Tabelle wird erstellt\r\n\t\t\tstatement.execute(sql);\r\n\t\t\tstatement.close();\r\n\t\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\t\tlogger.info(\"Tabelle \\\"Account\\\" wurde erstellt.\");\r\n\t\t\tbankAccountExists = false;\r\n\t\t\t// Das Bank-Konto wird angelegt\r\n\t\t\taddAccount(\"0000\", \"BANK\", BigDecimal.ZERO);\r\n\t\t\tbankAccountExists = true;\r\n\t\t}\r\n\t\tconnection.close();\r\n\t}", "@Query(\"select a from Account a\")\n List<Account> getAllAccounts();", "@Query(\"select a from Account a where a.role = 'ADMIN'\")\n List<Account> getAllAdminsAccount();", "@Query(\"select ad from AccountDetail ad\")\n List<AccountDetail> getAllAccounts();", "@Override\n\tpublic int addAccount(Account account) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"insert into accounts values(default, ?, ?) returning id\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setString(1, account.getType());\n\t\tprepStmt.setDouble(2, account.getBalance());\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\tint id = 0;\n\t\twhile(rs.next()) {\n\t\t\tid = rs.getInt(1);\n\t\t}\n\t\treturn id;\n\t}", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "ShopAccount selectByPrimaryKey(Integer spAccount);", "@Override\r\n\tpublic Map<String, List<NewAccount>> Accountlist(int UserID) throws SQLException {\n\t\tList<NewAccount> accounts = createAccountDao.Accountlist(UserID);\r\n\t\tSystem.out.println(\"[CreateAccountDaoImp][save] New account save status : \" + accounts);\r\n\t\tList<NewAccount> loanAccounts = new ArrayList<NewAccount>();\r\n\t\tList<NewAccount> savingAccount = new ArrayList<NewAccount>();\r\n\t\tList<NewAccount> creditAccount = new ArrayList<NewAccount>();\r\n\t\tMap<String, List<NewAccount>> accountsMap = new HashMap<String, List<NewAccount>>();\r\n\r\n\t\t// Account Sorting\r\n\t\tfor (int i = 0; i < accounts.size(); i++) {\r\n\t\t\t\r\n\t\t\tif (accounts.get(i).getAccountType().equals(\"Loans\")) {\r\n\t\t\t\t\r\n\t\t\t\tloanAccounts.add(accounts.get(i));\r\n\t\t\t\t\r\n\t\t\t} else if (accounts.get(i).getAccountType().equals(\"Accounts\")) {\r\n\t\t\t\t\r\n\t\t\t\tsavingAccount.add(accounts.get(i));\r\n\t\t\t\t\r\n\t\t\t} else if (accounts.get(i).getAccountType().equals(\"Cards\")) {\r\n\t\t\t\tcreditAccount.add(accounts.get(i));\r\n\t\t\t}\r\n\t\t\t// credit //accountsMap.put(\"loan\",accounts.get(i));\r\n\t\t}\r\n\t\taccountsMap.put(\"loanAccount\", loanAccounts);\r\n\t\taccountsMap.put(\"savingsAccount\", savingAccount);\r\n\t\taccountsMap.put(\"creditAccount\", creditAccount);\r\n\t\tSet<String> key = accountsMap.keySet();\r\n\t\tIterator<String> iterator = key.iterator();\r\n\t/*\twhile (iterator.hasNext()) {\r\n\t\t\tString accountType = iterator.next();\r\n\r\n\t\t\tSystem.out.println(\"----------------------\" + accountType + \"------------------------\");\r\n\t\t\tSystem.out.println(\"|------------\" + accountsMap.get(accountType) + \"---------------|\");\r\n\t\t\tSystem.out.println(\"-----------------End of first Account Type-------------------\");\r\n\t\t}*/\r\n\r\n\t\treturn accountsMap;\r\n\t}", "public ResultSet getAllAccounts () throws Exception {\r\n String sql = \"SELECT * FROM `accounts`;\";\r\n return stmt.executeQuery(sql);\r\n }", "UserAccount getUserAccountById(long id);", "Account getAccount();", "java.lang.String getAccount();", "public List<Account> getAccounts() throws SQLException {\r\n\t\tList<Account> accounts = new ArrayList<>();\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t// Alle Datensätze der Account-Tabelle abrufen\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\twhile (resultSet.next()) {\r\n\t\t\t// Datensätze in Kontoobjekte umwandeln\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\t\t\tAccount account = new Account();\r\n\t\t\taccount.setId(id);\r\n\t\t\taccount.setOwner(owner);\r\n\t\t\taccount.setNumber(number);\r\n\t\t\taccount.setTransactions(daTransaction.getTransactionHistory(number));\r\n\t\t\taccounts.add(account);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t\treturn accounts;\r\n\t}", "@Query(\"select ad from AccountDetail ad where ad.role = 'USER'\")\n List<AccountDetail> getAllAdminAccounts();", "Account selectByPrimaryKey(String id);", "FinanceAccount selectByPrimaryKey(Integer id);", "List<Account> findAll();", "List<Account> findAll();", "public int subsAccount(NguoiNhap nn) throws SQLException {\r\n System.out.println(nn.getUsername() + nn.getPassword() + nn.getName() + nn.getGender() + nn.getBirthday());\r\n return this.connectionAdminToAccessData(\r\n \"INSERT INTO USER() VALUES('\"\r\n + nn.getUsername() + \"','\"\r\n + nn.getPassword() + \"','\"\r\n + nn.getName() + \"','\"\r\n + nn.getGender() + \"','\"\r\n + nn.getBirthday() + \"')\");\r\n }", "public interface AccountDao {\n int insert(Account account);\n\n Account queryAccountById(Long id);\n\n Account findAccount(Account account);\n\n Account queryAccountByMobile(Long mobile);\n\n Account queryAccountByEmail(String email);\n\n void update(Account account);\n\n void resetPassword(Account account);\n}", "public JavaaccountModel getaccount(JavaaccountModel oJavaaccountModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing account from the database*/\n oJavaaccountModel = (JavaaccountModel) hibernateSession.get(JavaaccountModel.class, oJavaaccountModel.getaccountId());\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaaccountModel;\n }", "public ResultSet returnAccount(Long demataccountNo)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select BANK_ACC_NO from CUSTOMER_DETAILS where DEMAT_ACC_NO=\"+demataccountNo+\"\");\r\n\treturn rs;\r\n}", "List<Account> selectAll();", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "List<TmpUserPayAccount> selectAll();", "@Override\n\tpublic List<Account> getAccountsByName(String name) {\n\t\treturn jdbcTemplate.query(\"select * from account where locate(?, name)>0 \", new Object[]{name}, new BeanPropertyRowMapper(Account.class));\n\t}", "public interface AccountDao {\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @return Account or null\n */\n Account getAccount(Integer accountNumber);\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return Account or null\n */\n Account getAccount(Integer accountNumber, Configuration configuration);\n\n /**\n * Get all accounts for user with login\n *\n * @param login unique String key for user\n * @return List of Account or empty List\n */\n List<Account> getAccounts(String login);\n\n /**\n * Update account\n *\n * @param account new data to Account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return new updated Account\n */\n Account updateAccount(Account account, Configuration configuration);\n\n}", "@Override\r\n\tpublic List<AccountDTO> getAllUser() {\n\t\treturn accountDao.getAll();\r\n\t}", "CusBankAccount selectByPrimaryKey(Integer id);", "@Override\npublic void update(Account account) {\n\taccountdao.update(account);\n}", "public int getC_BankAccount_ID();", "public List<Account> getAccountByType() throws Exception{\n Session session= sessionFactory.getCurrentSession();\n List<Account> accountList= session.createQuery(\"select account_type, COUNT(account_no) from Account group by account_type\").list();\n return accountList;\n }", "public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}", "@Override\n\tpublic void addToUserAccountTable(int accountId,String username) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString insertQuery = \"insert into user_account values(?, ?)\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(insertQuery);\n \n\t\t\tprepStmt.setString(1, username);\n\t\t\tprepStmt.setInt(2, accountId);\n\t\t\tprepStmt.executeUpdate();\n\t}", "Long getAccountId();", "@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}", "List<BookAccount> findAllForAccount(long idAccount);", "public int getAccountType() {\r\n return accountType;\r\n }", "public static String getUserAccount(String account){\n return \"select ui_account from user_information where ui_account = '\"+account+\"'\";\n }", "@Query(\"select a from Account a where a.role = 'Admin'\")\n List<Account> getAllAdmins();", "@Override\n\tpublic List<Map<String, Object>> getAccountsMapByName(String name) {\n\t\treturn jdbcTemplate.queryForList(\"select * from account where locate(?, name)>0 \", new Object[]{name});\n\t}", "public GenericDao<Account> getAccountDao();", "public void AddToAccountInfo();", "@Select({\n \"select\",\n \"username, password\",\n \"from tb_user\"\n })\n @Results({\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR)\n })\n List<User> selectAll();", "@Query(\"select acc from Account acc where acc.customer.customerId = :customerId\")\n\tAccount findAccountByCustomer(@Param(\"customerId\") Long customerId);", "void updateAccount();", "@GetMapping()\n public List<Account> accounts(){\n List<Account> accounts = new ArrayList<>();\n //repoAccounts.forEach(accounts::add);\n accountRepository.findAll().forEach(accounts::add);\n return accounts;\n }", "public String getAccountNo();", "private void showContentAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\tSystem.out.println(\"Table account:\");\r\n\t\twhile (resultSet.next()) {\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\r\n\t\t\tSystem.out.println(id + \" | \" + owner + \" | \" + number);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t}", "public abstract int getAccountType();", "@Override\n public void insertAccount() throws Exception {\n\n }", "public void setAccountNo (String AccountNo);", "@MyBatisDao\npublic interface UserProfileMapper {\n UserProfile selectByPrimaryKey(long id);\n\n UserProfile selectByUserId(long userId);\n\n UserProfile selectByEmail(String email);\n\n int deleteByPrimaryKey(long id);\n\n int insert(UserProfile userProfile);\n\n int update(UserProfile userProfile);\n\n int updateAvatar(UserProfile userProfile);\n}", "public interface AccountDao {\n\t\n\t/**\n\t * Gets the list of Accounts based on the criteria passed as parameter\n\t * @param map a key value pair map used as criteria\n\t * @return List of {@link Account} satisfying the criteria\n\t * @throws DaoException\n\t */\n\tList<Account> getAccountsBasedOnCriteria(Map<String, Object> map) throws DaoException;\n\t\n\t/**\n\t * Get the {@link Account} object based on its accountNumber\n\t * @param accountNumber\n\t * @return\n\t * @throws DaoException\n\t */\n\tAccount getAccountByAccountNumber(Integer accountNumber) throws DaoException;\n\t\n\t/**\n\t * Update {@link Account}\n\t * @param account {@link Account} object needs to be updated\n\t * @throws DaoException\n\t */\n\tvoid update(Account account) throws DaoException;\n}", "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as long as the next row is not null\n String username, password, firstName, lastName;\n int age;\n username = resultSet.getString(\"username\");\n password = resultSet.getString(\"password\");\n firstName = resultSet.getString(\"firstname\");\n lastName = resultSet.getString(\"lastname\");\n age = resultSet.getInt(\"age\");\n // place all the new items into a new Account object\n Account newAccount = new Account(username, password, firstName, lastName, age);\n // add the account to the list\n accounts.add(newAccount);\n }\n } catch (SQLException exc) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, exc);\n }\n\n return accounts;\n }", "List<Account> findAccountByRole(UserRole role);", "public Long getAccountID() {\n return accountID;\n }", "public Long getAccountID() {\n return accountID;\n }", "public String getAccount(){\n\t\treturn account;\n\t}", "public String getAccount() {\r\n return account;\r\n }", "Account findByAccountType(String accountType);", "@Override\n\tpublic void registerAccount(AccountVO account) {\n\tsession.insert(\"account.registerAccount\",account);\n\t\t\n\t}", "public ResultSet retBalance(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"Select balance from account where accno=\"+userid+\"\");\r\n\treturn rs;\r\n}", "public Account(){\n this.id = 0;\n this.balance = 0;\n this.annualInterestRate = 0;\n this.dateCreated = new Date();\n }", "@Override\npublic Account findById(int accountid) {\n\treturn accountdao.findById(accountid);\n}", "Account getAccount(int id);", "public List<Accounts> getAllAccounts() {\n List<Accounts> accountList = new ArrayList<Accounts>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_ACCOUNTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Accounts account = new Accounts();\n account.setID(Integer.parseInt(cursor.getString(0)));\n account.setName(cursor.getString(1));\n account.setPassword(cursor.getString(2));\n account.setPhoneNumber(cursor.getString(3));\n account.setEmail(cursor.getString(4));\n // Adding account to list\n accountList.add(account);\n } while (cursor.moveToNext());\n }\n\n // return account list\n return accountList;\n }", "public void saveAccount() {\n\n }", "public MnoAccount getAccountById(String id);", "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "@Override\n\tpublic List<Account> findAllAccounts() {\n\t\treturn m_accountDao.findAll();\n\t}", "public final void loadAccounts() {\n DBUtil.select(\n \"select id, created, account_name, account_pass, account_email, timezone from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".af_account\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n while (resultSet.next() ) {\n AfAccount account = createAccountFromResultSet(resultSet);\n }\n }\n });\n }", "public int getAccountID() {\n return accountID;\n }", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public interface AccountRepository extends JpaRepository<Account, Integer>{\n}", "@Override\n\tpublic Account findAccountByAccountId(int accountId) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"select * from accounts where id=?\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setInt(1, accountId);\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\tAccount a = null;\n\t\twhile (rs.next()) {\n\t\t\ta = new Account(rs.getInt(1), rs.getString(2), rs.getDouble(3));\n\t\t}\n\t\treturn a;\n\n\t}", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "List<AccountModel> findAll();", "public String displayAccount() {\r\n\t return id+\",\"+name+\",\"+balance+\",\"+email+\",\"+dateOfOpening;\r\n }", "public Account getAccount() {\n return account;\n }", "public Account getAccount() {\n return account;\n }", "public BankAccount getAccountBalanceRepo(String accountNr){\n String sql = \"SELECT * FROM bankaccount WHERE accountnr = :accountnr\";\n Map paramMap = new HashMap();\n paramMap.put(\"accountnr\", accountNr);\n BankAccount result = jdbcTemplate.queryForObject(sql, paramMap, new AccountRowMapper());\n return result;\n }", "BankUserInfo selectByPrimaryKey(String userId);", "@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);", "public ResultSet returnAccno(Long userid)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select bank_acc_no from CUSTOMER_DETAILS where user_id=\"+userid+\"\");\r\n\treturn rs;\r\n}" ]
[ "0.66119426", "0.62071675", "0.6161898", "0.613387", "0.6078687", "0.6062299", "0.6017875", "0.6015458", "0.59938693", "0.5983831", "0.59764045", "0.5954496", "0.5941056", "0.5915", "0.5907664", "0.5882835", "0.5857446", "0.5845746", "0.58445644", "0.5825568", "0.58070624", "0.58070624", "0.58003676", "0.57964957", "0.57943314", "0.578784", "0.5775591", "0.5773042", "0.5769394", "0.57596684", "0.57544386", "0.5751086", "0.5748734", "0.5748179", "0.5745114", "0.5734012", "0.5733365", "0.5717736", "0.5709837", "0.5697737", "0.56914955", "0.56871414", "0.5670269", "0.5639005", "0.5636582", "0.5634653", "0.5634427", "0.56256425", "0.5616734", "0.56159526", "0.56143135", "0.561371", "0.56029654", "0.56009114", "0.5598393", "0.55980885", "0.55969816", "0.5583781", "0.557832", "0.5574771", "0.55612165", "0.55612165", "0.5553615", "0.55455947", "0.5544339", "0.55392206", "0.55379", "0.5536918", "0.5529504", "0.5526796", "0.5523707", "0.55149114", "0.5508204", "0.55040836", "0.5497177", "0.5496235", "0.5495825", "0.54951215", "0.54951215", "0.54951215", "0.5492938", "0.54841906", "0.5472473", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5469631", "0.5457646", "0.5451221", "0.54493445", "0.54493445", "0.5445107", "0.5443027", "0.5441353", "0.5435856" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table account
int updateByPrimaryKey(Account record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Query(\"select a from Account a\")\n List<Account> getAllAccount();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "Account selectByPrimaryKey(Long accountid);", "public void createAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\t// Prüfung, ob Tabelle bereits besteht\r\n\t\tResultSet resultSet = connection.getMetaData().getTables(\"%\", \"%\", \"%\", new String[] { \"TABLE\" });\r\n\t\tboolean shouldCreateTable = true;\r\n\t\twhile (resultSet.next() && shouldCreateTable) {\r\n\t\t\tif (resultSet.getString(\"TABLE_NAME\").equalsIgnoreCase(\"ACCOUNT\")) {\r\n\t\t\t\tshouldCreateTable = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tresultSet.close();\r\n\r\n\t\tif (shouldCreateTable) {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tString sql = \"CREATE table account (id int not null primary key, owner varchar(\"\r\n\t\t\t\t\t+ DatabaseAdministration.ownerLength + \") not null, number varchar(4) not null)\";\r\n\t\t\t// Tabelle wird erstellt\r\n\t\t\tstatement.execute(sql);\r\n\t\t\tstatement.close();\r\n\t\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\t\tlogger.info(\"Tabelle \\\"Account\\\" wurde erstellt.\");\r\n\t\t\tbankAccountExists = false;\r\n\t\t\t// Das Bank-Konto wird angelegt\r\n\t\t\taddAccount(\"0000\", \"BANK\", BigDecimal.ZERO);\r\n\t\t\tbankAccountExists = true;\r\n\t\t}\r\n\t\tconnection.close();\r\n\t}", "@Query(\"select a from Account a\")\n List<Account> getAllAccounts();", "@Query(\"select a from Account a where a.role = 'ADMIN'\")\n List<Account> getAllAdminsAccount();", "@Query(\"select ad from AccountDetail ad\")\n List<AccountDetail> getAllAccounts();", "@Override\n\tpublic int addAccount(Account account) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"insert into accounts values(default, ?, ?) returning id\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setString(1, account.getType());\n\t\tprepStmt.setDouble(2, account.getBalance());\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\tint id = 0;\n\t\twhile(rs.next()) {\n\t\t\tid = rs.getInt(1);\n\t\t}\n\t\treturn id;\n\t}", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "ShopAccount selectByPrimaryKey(Integer spAccount);", "@Override\r\n\tpublic Map<String, List<NewAccount>> Accountlist(int UserID) throws SQLException {\n\t\tList<NewAccount> accounts = createAccountDao.Accountlist(UserID);\r\n\t\tSystem.out.println(\"[CreateAccountDaoImp][save] New account save status : \" + accounts);\r\n\t\tList<NewAccount> loanAccounts = new ArrayList<NewAccount>();\r\n\t\tList<NewAccount> savingAccount = new ArrayList<NewAccount>();\r\n\t\tList<NewAccount> creditAccount = new ArrayList<NewAccount>();\r\n\t\tMap<String, List<NewAccount>> accountsMap = new HashMap<String, List<NewAccount>>();\r\n\r\n\t\t// Account Sorting\r\n\t\tfor (int i = 0; i < accounts.size(); i++) {\r\n\t\t\t\r\n\t\t\tif (accounts.get(i).getAccountType().equals(\"Loans\")) {\r\n\t\t\t\t\r\n\t\t\t\tloanAccounts.add(accounts.get(i));\r\n\t\t\t\t\r\n\t\t\t} else if (accounts.get(i).getAccountType().equals(\"Accounts\")) {\r\n\t\t\t\t\r\n\t\t\t\tsavingAccount.add(accounts.get(i));\r\n\t\t\t\t\r\n\t\t\t} else if (accounts.get(i).getAccountType().equals(\"Cards\")) {\r\n\t\t\t\tcreditAccount.add(accounts.get(i));\r\n\t\t\t}\r\n\t\t\t// credit //accountsMap.put(\"loan\",accounts.get(i));\r\n\t\t}\r\n\t\taccountsMap.put(\"loanAccount\", loanAccounts);\r\n\t\taccountsMap.put(\"savingsAccount\", savingAccount);\r\n\t\taccountsMap.put(\"creditAccount\", creditAccount);\r\n\t\tSet<String> key = accountsMap.keySet();\r\n\t\tIterator<String> iterator = key.iterator();\r\n\t/*\twhile (iterator.hasNext()) {\r\n\t\t\tString accountType = iterator.next();\r\n\r\n\t\t\tSystem.out.println(\"----------------------\" + accountType + \"------------------------\");\r\n\t\t\tSystem.out.println(\"|------------\" + accountsMap.get(accountType) + \"---------------|\");\r\n\t\t\tSystem.out.println(\"-----------------End of first Account Type-------------------\");\r\n\t\t}*/\r\n\r\n\t\treturn accountsMap;\r\n\t}", "public ResultSet getAllAccounts () throws Exception {\r\n String sql = \"SELECT * FROM `accounts`;\";\r\n return stmt.executeQuery(sql);\r\n }", "UserAccount getUserAccountById(long id);", "Account getAccount();", "java.lang.String getAccount();", "public List<Account> getAccounts() throws SQLException {\r\n\t\tList<Account> accounts = new ArrayList<>();\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t// Alle Datensätze der Account-Tabelle abrufen\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\twhile (resultSet.next()) {\r\n\t\t\t// Datensätze in Kontoobjekte umwandeln\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\t\t\tAccount account = new Account();\r\n\t\t\taccount.setId(id);\r\n\t\t\taccount.setOwner(owner);\r\n\t\t\taccount.setNumber(number);\r\n\t\t\taccount.setTransactions(daTransaction.getTransactionHistory(number));\r\n\t\t\taccounts.add(account);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t\treturn accounts;\r\n\t}", "@Query(\"select ad from AccountDetail ad where ad.role = 'USER'\")\n List<AccountDetail> getAllAdminAccounts();", "Account selectByPrimaryKey(String id);", "FinanceAccount selectByPrimaryKey(Integer id);", "List<Account> findAll();", "List<Account> findAll();", "public int subsAccount(NguoiNhap nn) throws SQLException {\r\n System.out.println(nn.getUsername() + nn.getPassword() + nn.getName() + nn.getGender() + nn.getBirthday());\r\n return this.connectionAdminToAccessData(\r\n \"INSERT INTO USER() VALUES('\"\r\n + nn.getUsername() + \"','\"\r\n + nn.getPassword() + \"','\"\r\n + nn.getName() + \"','\"\r\n + nn.getGender() + \"','\"\r\n + nn.getBirthday() + \"')\");\r\n }", "public interface AccountDao {\n int insert(Account account);\n\n Account queryAccountById(Long id);\n\n Account findAccount(Account account);\n\n Account queryAccountByMobile(Long mobile);\n\n Account queryAccountByEmail(String email);\n\n void update(Account account);\n\n void resetPassword(Account account);\n}", "public JavaaccountModel getaccount(JavaaccountModel oJavaaccountModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing account from the database*/\n oJavaaccountModel = (JavaaccountModel) hibernateSession.get(JavaaccountModel.class, oJavaaccountModel.getaccountId());\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaaccountModel;\n }", "public ResultSet returnAccount(Long demataccountNo)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select BANK_ACC_NO from CUSTOMER_DETAILS where DEMAT_ACC_NO=\"+demataccountNo+\"\");\r\n\treturn rs;\r\n}", "List<Account> selectAll();", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "List<TmpUserPayAccount> selectAll();", "@Override\n\tpublic List<Account> getAccountsByName(String name) {\n\t\treturn jdbcTemplate.query(\"select * from account where locate(?, name)>0 \", new Object[]{name}, new BeanPropertyRowMapper(Account.class));\n\t}", "public interface AccountDao {\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @return Account or null\n */\n Account getAccount(Integer accountNumber);\n\n /**\n * Get one account with accountNumber\n *\n * @param accountNumber unique number for account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return Account or null\n */\n Account getAccount(Integer accountNumber, Configuration configuration);\n\n /**\n * Get all accounts for user with login\n *\n * @param login unique String key for user\n * @return List of Account or empty List\n */\n List<Account> getAccounts(String login);\n\n /**\n * Update account\n *\n * @param account new data to Account\n * @param configuration {@link Configuration} for executing in DB-transaction\n * @return new updated Account\n */\n Account updateAccount(Account account, Configuration configuration);\n\n}", "@Override\r\n\tpublic List<AccountDTO> getAllUser() {\n\t\treturn accountDao.getAll();\r\n\t}", "CusBankAccount selectByPrimaryKey(Integer id);", "@Override\npublic void update(Account account) {\n\taccountdao.update(account);\n}", "public int getC_BankAccount_ID();", "public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}", "public List<Account> getAccountByType() throws Exception{\n Session session= sessionFactory.getCurrentSession();\n List<Account> accountList= session.createQuery(\"select account_type, COUNT(account_no) from Account group by account_type\").list();\n return accountList;\n }", "@Override\n\tpublic void addToUserAccountTable(int accountId,String username) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString insertQuery = \"insert into user_account values(?, ?)\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(insertQuery);\n \n\t\t\tprepStmt.setString(1, username);\n\t\t\tprepStmt.setInt(2, accountId);\n\t\t\tprepStmt.executeUpdate();\n\t}", "Long getAccountId();", "@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}", "List<BookAccount> findAllForAccount(long idAccount);", "public int getAccountType() {\r\n return accountType;\r\n }", "public static String getUserAccount(String account){\n return \"select ui_account from user_information where ui_account = '\"+account+\"'\";\n }", "@Query(\"select a from Account a where a.role = 'Admin'\")\n List<Account> getAllAdmins();", "@Override\n\tpublic List<Map<String, Object>> getAccountsMapByName(String name) {\n\t\treturn jdbcTemplate.queryForList(\"select * from account where locate(?, name)>0 \", new Object[]{name});\n\t}", "public GenericDao<Account> getAccountDao();", "public void AddToAccountInfo();", "@Select({\n \"select\",\n \"username, password\",\n \"from tb_user\"\n })\n @Results({\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR)\n })\n List<User> selectAll();", "@Query(\"select acc from Account acc where acc.customer.customerId = :customerId\")\n\tAccount findAccountByCustomer(@Param(\"customerId\") Long customerId);", "void updateAccount();", "@GetMapping()\n public List<Account> accounts(){\n List<Account> accounts = new ArrayList<>();\n //repoAccounts.forEach(accounts::add);\n accountRepository.findAll().forEach(accounts::add);\n return accounts;\n }", "public String getAccountNo();", "public abstract int getAccountType();", "private void showContentAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\tSystem.out.println(\"Table account:\");\r\n\t\twhile (resultSet.next()) {\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\r\n\t\t\tSystem.out.println(id + \" | \" + owner + \" | \" + number);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t}", "@MyBatisDao\npublic interface UserProfileMapper {\n UserProfile selectByPrimaryKey(long id);\n\n UserProfile selectByUserId(long userId);\n\n UserProfile selectByEmail(String email);\n\n int deleteByPrimaryKey(long id);\n\n int insert(UserProfile userProfile);\n\n int update(UserProfile userProfile);\n\n int updateAvatar(UserProfile userProfile);\n}", "@Override\n public void insertAccount() throws Exception {\n\n }", "public void setAccountNo (String AccountNo);", "public interface AccountDao {\n\t\n\t/**\n\t * Gets the list of Accounts based on the criteria passed as parameter\n\t * @param map a key value pair map used as criteria\n\t * @return List of {@link Account} satisfying the criteria\n\t * @throws DaoException\n\t */\n\tList<Account> getAccountsBasedOnCriteria(Map<String, Object> map) throws DaoException;\n\t\n\t/**\n\t * Get the {@link Account} object based on its accountNumber\n\t * @param accountNumber\n\t * @return\n\t * @throws DaoException\n\t */\n\tAccount getAccountByAccountNumber(Integer accountNumber) throws DaoException;\n\t\n\t/**\n\t * Update {@link Account}\n\t * @param account {@link Account} object needs to be updated\n\t * @throws DaoException\n\t */\n\tvoid update(Account account) throws DaoException;\n}", "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as long as the next row is not null\n String username, password, firstName, lastName;\n int age;\n username = resultSet.getString(\"username\");\n password = resultSet.getString(\"password\");\n firstName = resultSet.getString(\"firstname\");\n lastName = resultSet.getString(\"lastname\");\n age = resultSet.getInt(\"age\");\n // place all the new items into a new Account object\n Account newAccount = new Account(username, password, firstName, lastName, age);\n // add the account to the list\n accounts.add(newAccount);\n }\n } catch (SQLException exc) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, exc);\n }\n\n return accounts;\n }", "List<Account> findAccountByRole(UserRole role);", "public Long getAccountID() {\n return accountID;\n }", "public Long getAccountID() {\n return accountID;\n }", "public String getAccount(){\n\t\treturn account;\n\t}", "public String getAccount() {\r\n return account;\r\n }", "Account findByAccountType(String accountType);", "public ResultSet retBalance(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"Select balance from account where accno=\"+userid+\"\");\r\n\treturn rs;\r\n}", "@Override\n\tpublic void registerAccount(AccountVO account) {\n\tsession.insert(\"account.registerAccount\",account);\n\t\t\n\t}", "public Account(){\n this.id = 0;\n this.balance = 0;\n this.annualInterestRate = 0;\n this.dateCreated = new Date();\n }", "@Override\npublic Account findById(int accountid) {\n\treturn accountdao.findById(accountid);\n}", "Account getAccount(int id);", "public List<Accounts> getAllAccounts() {\n List<Accounts> accountList = new ArrayList<Accounts>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_ACCOUNTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Accounts account = new Accounts();\n account.setID(Integer.parseInt(cursor.getString(0)));\n account.setName(cursor.getString(1));\n account.setPassword(cursor.getString(2));\n account.setPhoneNumber(cursor.getString(3));\n account.setEmail(cursor.getString(4));\n // Adding account to list\n accountList.add(account);\n } while (cursor.moveToNext());\n }\n\n // return account list\n return accountList;\n }", "public void saveAccount() {\n\n }", "public MnoAccount getAccountById(String id);", "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "@Override\n\tpublic List<Account> findAllAccounts() {\n\t\treturn m_accountDao.findAll();\n\t}", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "public final void loadAccounts() {\n DBUtil.select(\n \"select id, created, account_name, account_pass, account_email, timezone from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".af_account\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n while (resultSet.next() ) {\n AfAccount account = createAccountFromResultSet(resultSet);\n }\n }\n });\n }", "public int getAccountID() {\n return accountID;\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public interface AccountRepository extends JpaRepository<Account, Integer>{\n}", "@Override\n\tpublic Account findAccountByAccountId(int accountId) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"select * from accounts where id=?\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setInt(1, accountId);\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\tAccount a = null;\n\t\twhile (rs.next()) {\n\t\t\ta = new Account(rs.getInt(1), rs.getString(2), rs.getDouble(3));\n\t\t}\n\t\treturn a;\n\n\t}", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "List<AccountModel> findAll();", "public String displayAccount() {\r\n\t return id+\",\"+name+\",\"+balance+\",\"+email+\",\"+dateOfOpening;\r\n }", "public Account getAccount() {\n return account;\n }", "public Account getAccount() {\n return account;\n }", "public BankAccount getAccountBalanceRepo(String accountNr){\n String sql = \"SELECT * FROM bankaccount WHERE accountnr = :accountnr\";\n Map paramMap = new HashMap();\n paramMap.put(\"accountnr\", accountNr);\n BankAccount result = jdbcTemplate.queryForObject(sql, paramMap, new AccountRowMapper());\n return result;\n }", "BankUserInfo selectByPrimaryKey(String userId);", "@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);", "public ResultSet returnAccno(Long userid)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select bank_acc_no from CUSTOMER_DETAILS where user_id=\"+userid+\"\");\r\n\treturn rs;\r\n}" ]
[ "0.6612246", "0.6207615", "0.6163707", "0.61339647", "0.6075847", "0.60627675", "0.6018527", "0.60154366", "0.59935486", "0.5984616", "0.59767735", "0.5954365", "0.5941535", "0.5916868", "0.59099877", "0.58843684", "0.5858682", "0.58463085", "0.58451885", "0.58255434", "0.5808429", "0.5808429", "0.5800566", "0.57976323", "0.57944196", "0.5788641", "0.57763064", "0.5775041", "0.57695806", "0.57610464", "0.57563204", "0.57523125", "0.5749496", "0.5748", "0.5745599", "0.57349116", "0.57336134", "0.5715721", "0.5711596", "0.56974965", "0.56922555", "0.5686932", "0.56708306", "0.5639592", "0.56375045", "0.56363267", "0.5634368", "0.56261736", "0.5618437", "0.56153303", "0.56151485", "0.56141293", "0.56015706", "0.55998814", "0.5599197", "0.55983204", "0.5597888", "0.558509", "0.55799", "0.5576506", "0.55614036", "0.55614036", "0.55551", "0.5546974", "0.5544932", "0.55395013", "0.5539428", "0.5536806", "0.5530645", "0.55284476", "0.55241597", "0.5514603", "0.5509346", "0.55049264", "0.549845", "0.5496882", "0.5496882", "0.5496882", "0.5496436", "0.54960275", "0.54932624", "0.5484713", "0.5473163", "0.5471094", "0.5471094", "0.5471094", "0.5471094", "0.5471094", "0.5471094", "0.5471094", "0.5471094", "0.5471094", "0.5471094", "0.5458426", "0.545108", "0.54509276", "0.54509276", "0.5447513", "0.5443471", "0.5442146", "0.5436794" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.my, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); return id == R.id.action_settings || 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 // 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 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 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\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\n onBackPressed();\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 == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n 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 switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79042757", "0.7805287", "0.7766401", "0.7727273", "0.7631789", "0.76227075", "0.75850916", "0.75309587", "0.74881005", "0.74574566", "0.74574566", "0.7438689", "0.74217546", "0.7403555", "0.73919356", "0.738709", "0.7379311", "0.73706394", "0.73631936", "0.7356187", "0.7345765", "0.73425454", "0.73304135", "0.73285425", "0.7325551", "0.73193544", "0.73170114", "0.7313763", "0.7304262", "0.7304262", "0.73016006", "0.7298295", "0.72936976", "0.7287051", "0.72835594", "0.7280915", "0.7278735", "0.7260228", "0.7259963", "0.7259963", "0.7259963", "0.7259532", "0.72500527", "0.7225106", "0.7219787", "0.72181183", "0.72050196", "0.7200268", "0.72000635", "0.719394", "0.71856725", "0.71783334", "0.7168997", "0.7167865", "0.7154361", "0.715409", "0.7136464", "0.71354663", "0.71354663", "0.71303326", "0.7129188", "0.71245664", "0.71237016", "0.71235603", "0.7122907", "0.71177214", "0.7117509", "0.7117236", "0.7117236", "0.7117236", "0.7117236", "0.7116619", "0.71152025", "0.7112939", "0.71100503", "0.71093804", "0.71064043", "0.70999765", "0.7098476", "0.70958054", "0.7094259", "0.7094259", "0.70869505", "0.708348", "0.7081001", "0.7080677", "0.70734984", "0.7068878", "0.70622814", "0.70608747", "0.7060793", "0.70519054", "0.7037856", "0.7037856", "0.7036377", "0.70360506", "0.70360506", "0.70331967", "0.7030844", "0.7029912", "0.70200884" ]
0.0
-1
builds ShoppingListChangeTextLineItemQuantityAction without checking for non null required values
public ShoppingListChangeTextLineItemQuantityAction buildUnchecked() { return new ShoppingListChangeTextLineItemQuantityActionImpl(textLineItemId, quantity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChangeCustomLineItemQuantityChange buildUnchecked() {\n return new ChangeCustomLineItemQuantityChangeImpl(change, previousValue, nextValue, customLineItem,\n customLineItemId);\n }", "public static ChangeCustomLineItemQuantityChangeBuilder of() {\n return new ChangeCustomLineItemQuantityChangeBuilder();\n }", "public ChangeCustomLineItemQuantityChange build() {\n Objects.requireNonNull(change, ChangeCustomLineItemQuantityChange.class + \": change is missing\");\n Objects.requireNonNull(previousValue, ChangeCustomLineItemQuantityChange.class + \": previousValue is missing\");\n Objects.requireNonNull(nextValue, ChangeCustomLineItemQuantityChange.class + \": nextValue is missing\");\n Objects.requireNonNull(customLineItem,\n ChangeCustomLineItemQuantityChange.class + \": customLineItem is missing\");\n Objects.requireNonNull(customLineItemId,\n ChangeCustomLineItemQuantityChange.class + \": customLineItemId is missing\");\n return new ChangeCustomLineItemQuantityChangeImpl(change, previousValue, nextValue, customLineItem,\n customLineItemId);\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if ((mQuantityEditText.getText().toString().isEmpty())) {\n mTemporaryQuantity = 0;\n } else {\n try {\n mTemporaryQuantity = Integer.parseInt(mQuantityEditText.getText().toString());\n } catch (NumberFormatException e) {\n\n }\n }\n }", "private String validateQuantityAmountNumPromotionShop(List<PromotionShopMap> lstCurrentPromotionShopMap, List<PromotionShopMap> lstNewPromotionShopMap) {\n\t\tint size = lstCurrentPromotionShopMap.size();\n\t\tint allocateQuantity = 0;\n\t\tint allocateAmount = 0;\n\t\tint allocateNum = 0;\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tPromotionShopMap psm = lstCurrentPromotionShopMap.get(i);\n\t\t\tif (psm.getQuantityMax() != null) {\n\t\t\t\tallocateQuantity++;\n\t\t\t}\n\t\t\tif (psm.getAmountMax() != null) {\n\t\t\t\tallocateAmount++;\n\t\t\t}\n\t\t\tif (psm.getNumMax() != null) {\n\t\t\t\tallocateNum++;\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0, n = lstNewPromotionShopMap.size(); j < n; j++) {\n\t\t\tPromotionShopMap promotionShopMap = lstNewPromotionShopMap.get(j);\n\t\t\tString shopName = promotionShopMap.getShop() == null ? \"\" : (promotionShopMap.getShop().getShopCode() + \" - \" + promotionShopMap.getShop().getShopName());\n\t\t\tif (promotionShopMap.getQuantityMax() != null && allocateQuantity == 0) {\n\t\t\t\treturn Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.denied.allcate.quantity\", shopName);\n\t\t\t}\n\t\t\tif (promotionShopMap.getQuantityMax() == null && allocateQuantity > 0) {\n\t\t\t\treturn Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.no.allcate.quantity\", shopName);\n\t\t\t}\n\t\t\tif (promotionShopMap.getAmountMax() != null && allocateAmount == 0) {\n\t\t\t\treturn Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.denied.allcate.amount\", shopName);\n\t\t\t}\n\t\t\tif (promotionShopMap.getAmountMax() == null && allocateAmount > 0) {\n\t\t\t\treturn Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.no.allcate.amount\", shopName);\n\t\t\t}\n\t\t\tif (promotionShopMap.getNumMax() != null && allocateNum == 0) {\n\t\t\t\treturn Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.denied.allcate.num\", shopName);\n\t\t\t}\n\t\t\tif (promotionShopMap.getNumMax() == null && allocateNum > 0) {\n\t\t\t\treturn Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.no.allcate.num\", shopName);\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "private String validateQuantityAmountNumPromotionShop(List<PromotionShopMap> lstPromotionShopMap) {\n\t\tint size = lstPromotionShopMap.size();\n\t\tint ALL_ALLOCATE = size;\n\t\tint NO_ALLOCATE = 0;\n\t\tint allocateQuantity = 0;\n\t\tint allocateAmount = 0;\n\t\tint allocateNum = 0;\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tPromotionShopMap psm = lstPromotionShopMap.get(i);\n\t\t\tif (psm.getQuantityMax() != null) {\n\t\t\t\tallocateQuantity++;\n\t\t\t}\n\t\t\tif (psm.getAmountMax() != null) {\n\t\t\t\tallocateAmount++;\n\t\t\t}\n\t\t\tif (psm.getNumMax() != null) {\n\t\t\t\tallocateNum++;\n\t\t\t}\n\t\t}\n\t\t// neu co phan bo thi phai phan bo tat ca cac dong\n\t\tif (NO_ALLOCATE < allocateQuantity && allocateQuantity < ALL_ALLOCATE) {\n\t\t\treturn Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.no.allcate.all.quantity\");\n\t\t}\n\t\tif (NO_ALLOCATE < allocateAmount && allocateAmount < ALL_ALLOCATE) {\n\t\t\treturn Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.no.allcate.all.amount\");\n\t\t}\n\t\tif (NO_ALLOCATE < allocateNum && allocateNum < ALL_ALLOCATE) {\n\t\t\treturn Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.no.allcate.all.num\");\n\t\t}\n\t\t// phai phan bo it nhat 1 loai (so suat/so tien/so luong)\n\t\tif (allocateQuantity == NO_ALLOCATE && allocateAmount == NO_ALLOCATE && allocateNum == NO_ALLOCATE) {\n\t\t\treturn Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.no.allocate.all\");\n\t\t}\n\t\treturn \"\";\n\t}", "public static ChangeCustomLineItemQuantityChangeBuilder of(final ChangeCustomLineItemQuantityChange template) {\n ChangeCustomLineItemQuantityChangeBuilder builder = new ChangeCustomLineItemQuantityChangeBuilder();\n builder.change = template.getChange();\n builder.previousValue = template.getPreviousValue();\n builder.nextValue = template.getNextValue();\n builder.customLineItem = template.getCustomLineItem();\n builder.customLineItemId = template.getCustomLineItemId();\n return builder;\n }", "Quantity createQuantity();", "public void setQuantity(int qty) {\r\n\t\tthis.quantity = qty;\r\n\t}", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "private int checkItemQuantity() {\n\n int desiredQuantity = initialQuantity;\n MenusItem tempItem = null;\n tempItem = ItemCart.getInstance().checkItem(menusItem);\n\n if(tempItem != null){\n desiredQuantity = tempItem.getDesiredQuantity();\n }\n\n\n return desiredQuantity;\n }", "@Override\n public void onClick(View view) {\n int tempQty = Integer.parseInt(itemQty.getText().toString());\n if(tempQty > 0)\n {\n tempQty = tempQty - 1;\n itemQty.setText(String.valueOf(tempQty));\n }\n //get quantity\n int fillQuantity = Integer.parseInt(itemQty.getText().toString());\n //Create SaleItem\n SaleItem tempSaleItem = new SaleItem(fillName, fillQuantity, fillPrice, fillIngArr);\n //Update SaleItems Array\n saleItems.set(position, tempSaleItem);\n updateTotal();\n }", "@Override\n public void onClick(View view) {\n String enteredQuantity = etEditQuantity.getText().toString().trim();\n\n // Check to see if quantity has been entered and set it as the quantity if it has.\n if (!enteredQuantity.equals(\"\")) {\n quantity = Integer.parseInt(enteredQuantity);\n }\n\n // Set the quantity to zero if quantity has been entered and then removed,\n // so that the buttons work properly.\n if (enteredQuantity.equals(\"\")) {\n quantity = 0;\n }\n\n // Perform action on click.\n switch (view.getId()) {\n // Action to perform when the decrease button is clicked.\n case R.id.btn_decrease:\n // Don't allow quantity to go below zero.\n if (quantity == 0) {\n Toast.makeText(this, R.string.minimum_quantity,\n Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Decrease the quantity and set the value in the quantity TextView.\n quantity--;\n etEditQuantity.setText(String.valueOf(quantity));\n break;\n\n // Action to perform when the increase button is clicked.\n case R.id.btn_increase:\n // Increase the quantity and set the value in the quantity TextView.\n quantity++;\n etEditQuantity.setText(String.valueOf(quantity));\n break;\n\n // Action to perform when the order button is clicked.\n case R.id.btn_order:\n // Create an intent to call the supplier.\n Intent callSupplier = new Intent(Intent.ACTION_DIAL);\n callSupplier.setData(Uri.parse(\"tel:\" + supplierPhoneNumber));\n // Make sure an app is installed to complete this action.\n if (callSupplier.resolveActivity(getPackageManager()) != null) {\n // Start the intent if there is an app installed to handle the intent.\n startActivity(callSupplier);\n } else {\n // Show a toast if there isn't an app installed to handle the intent.\n Toast.makeText(getApplication(), R.string.install_phone_app,\n Toast.LENGTH_SHORT).show();\n }\n }\n }", "public void setQty(int qty) {\n this.qty = qty;\n }", "public Builder clearQuantity() {\n \n quantity_ = 0L;\n onChanged();\n return this;\n }", "public Builder clearQuantity() {\n \n quantity_ = 0L;\n onChanged();\n return this;\n }", "public void setQuantity(String quantity) {\n this.quantity = quantity;\n }", "@Override\r\n public void ItemQuantity(int quantity) {\n this.quantity = quantity;\r\n }", "public void setQuantity(int quantity) {\r\n this.quantity = quantity;\r\n }", "private void quantityActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public void setQuantity(int quantity) {\n this.quantity = quantity;\n }", "public void setQuantity(int quantity) {\n this.quantity = quantity;\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\t\tif (qtyProductField.getText().isEmpty() || customerList.getSelectedIndex() == -1 || productList.getSelectedIndex() == -1) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(AddInvoiceForm.this, String.format(\n\t\t\t\t\t\t\t\t\"One or more empty field(s), will not add to database\", event.getActionCommand()));\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// get customer value\n\t\t\t\t\t\tString customerIdstr = customerList.getSelectedItem().toString();\n\t\t\t\t\t\tcustomerIdstr = customerIdstr.substring(customerIdstr.indexOf(\"(\") + 1, customerIdstr.indexOf(\")\"));\n\t\t\t\t\t\tint customerId = Integer.parseInt(customerIdstr);\n\n\t\t\t\t\t\t// get product value\n\t\t\t\t\t\tString productIdstr = productList.getSelectedItem().toString();\n\t\t\t\t\t\tproductIdstr = productIdstr.substring(productIdstr.indexOf(\"(\") + 1, productIdstr.indexOf(\")\"));\n\t\t\t\t\t\tint productId = Integer.parseInt(productIdstr);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// check if the quantity input is a valid number\n\t\t\t\t\t\tif (qtyProductField.getText().matches(\"^[0-9]+\") == false) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(AddInvoiceForm.this, \n\t\t\t\t\t\t\t\t\tString.format(\"Invalid quantity input, please try again\", event.getActionCommand()));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// check if the quantity input is no less than 1 and not more than 100\n\t\t\t\t\t\telse if (Integer.parseInt(qtyProductField.getText()) < 1 || Integer.parseInt(qtyProductField.getText()) > 100) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(AddInvoiceForm.this, \n\t\t\t\t\t\t\t\t\tString.format(\"Please enter a quantity 1-100, no more, no less\", event.getActionCommand()));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// else execute insert\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// get quantity value and parse it into integer format\n\t\t\t\t\t\t\tint qtyProduct = Integer.parseInt(qtyProductField.getText());\n\n\t\t\t\t\t\t\tSimpleDateFormat formatDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\t\tSimpleDateFormat formatTime = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\t\t\t\tDate d = new Date();\n\t\t\t\t\t\t\tTimeZone.setDefault(TimeZone.getTimeZone(\"UTC\"));\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tConnection connection = null;\n\t\t\t\t\t\t\tStatement statement = null;\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tconnection = DriverManager.getConnection(DATABASE_URL, UserName_SQL, Password_SQL);\n\t\t\t\t\t\t\t\tstatement = connection.createStatement();\n\t\t\t\t\t\t\t\tstatement.executeUpdate(\n\t\t\t\t\t\t\t\t\t\t\"INSERT INTO invoice (customerId, productId, qtyProduct, invoiceDate, invoiceTime)\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ \" VALUES \" + \"(\" + customerId + \",\" + productId + \",\" + qtyProduct + \",'\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ formatDate.format(d) + \"','\" + formatTime.format(d) + \"')\");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcatch (SQLException sqlException) {\n\t\t\t\t\t\t\t\tsqlException.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tstatement.close();\n\t\t\t\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tcatch (Exception exception) {\n\t\t\t\t\t\t\t\t\texception.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Created New Record\");\n\t\t\t\t\t\t\trefreshJTable();\n\t\t\t\t\t\t\tcustomerList.setSelectedIndex(-1);\n\t\t\t\t\t\t\tproductList.setSelectedIndex(-1);\n\t\t\t\t\t\t\tqtyProductField.setText(\"\");\n\t\t\t\t\t\t} // end inner else\n\t\t\t\t\t} // end outer else\n\t\t\t\t}", "public void addQuantity()\n {\n int quantity = Integer.parseInt(quantityTextField.getText());\n quantity++;\n quantityTextField.setText(\"\" + quantity);\n\n changeSubtotalTextField();\n }", "public String updateCustomerQuantity() throws Exception {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\tresult.put(ERROR, true);\n\t\tif (promotionId == null || promotionId < 1 || id == null || id < 1) {\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_DATA_CORRECT));\n\t\t\treturn JSON;\n\t\t}\n\t\ttry {\n\t\t\tstaff = getStaffByCurrentUser();\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\tPromotionProgram pro = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (pro == null) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (!ActiveType.WAITING.equals(pro.getStatus()) && !ActiveType.RUNNING.equals(pro.getStatus())) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.incorrect\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\n\t\t\tPromotionCustomerMap pcm = promotionProgramMgr.getPromotionCustomerMapById(id);\n\t\t\tif (pcm == null || !ActiveType.RUNNING.equals(pcm.getStatus())) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.customer.map.not.exists\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (quantity != null && pcm.getQuantityReceivedTotal() != null && quantity.compareTo(pcm.getQuantityReceivedTotal()) < 0) {\n\t\t\t\tresult.put(\"errMsg\", \"Số suất phân bổ không được bé hơn số suất đã nhận.\");\n\t\t\t\treturn JSON;\n\t\t\t} else if (amount != null && pcm.getAmountReceivedTotal() != null && amount.compareTo(pcm.getAmountReceivedTotal()) < 0) {\n\t\t\t\tresult.put(\"errMsg\", \"Số tiền phân bổ không được bé hơn số tiền đã nhận.\");\n\t\t\t\treturn JSON;\n\t\t\t} else if (number != null && pcm.getNumReceivedTotal() != null && number.compareTo(pcm.getNumReceivedTotal()) < 0) {\n\t\t\t\tresult.put(\"errMsg\", \"Số lượng phân bổ không được bé hơn số lượng đã nhận.\");\n\t\t\t\treturn JSON;\n\t\t\t} else {\n\t\t\t\tpcm.setQuantityMax(quantity);\n\t\t\t\tpcm.setAmountMax(amount);\n\t\t\t\tpcm.setNumMax(number);\n\t\t\t\tpromotionProgramMgr.updatePromotionCustomerMap(pcm, getLogInfoVO());\n\t\t\t\tresult.put(ERROR, false);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.updateCustomerQuantity\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn JSON;\n\t}", "private void minusQuantity(TextField source, Clothing clothing) {\n clothing.setCount(-1);\n int quantity = clothing.getCount();\n double totalPriceOfClothing = 0;\n\n for (int i = 0; i < clothingArrayList.size(); i++) {\n double countOfItems = clothingArrayList.get(i).getCount();\n double clothingPricePerUnit = Double.valueOf(clothingArrayList.get(i).getPrice());\n totalPriceOfClothing += clothingPricePerUnit * countOfItems;\n\n }\n source.setText(\"\" + (quantity));\n totalPrices.setText(\"\" + totalPriceOfClothing );\n\n }", "@Override\n public void onClick(View view) {\n float quantity = Float.valueOf(String.valueOf(editQuantity.getText()));\n\n if (quantity != food.getQuantity()) {\n food.updateQuantities(quantity);\n }\n\n dbManager.addFood(food);\n Snackbar saveSnackbar = Snackbar.make(view, R.string.snack_save_success, Snackbar.LENGTH_SHORT);\n saveSnackbar.show();\n saveButton.setVisibility(View.INVISIBLE);\n cancelButton.setVisibility(View.INVISIBLE);\n editQuantity.setVisibility(View.INVISIBLE);\n editLabel.setVisibility(View.INVISIBLE);\n }", "@NonNull\n public BasketItemBuilder incrementQuantity() {\n this.quantity++;\n return this;\n }", "public ChangeCustomLineItemQuantityChangeBuilder customLineItem(\n Function<com.commercetools.history.models.common.LocalizedStringBuilder, com.commercetools.history.models.common.LocalizedStringBuilder> builder) {\n this.customLineItem = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of())\n .build();\n return this;\n }", "private void validateQuantity() {\n if (numQuantity.isEmpty()) {\n numQuantity.setErrorMessage(\"This field cannot be left blank.\");\n numQuantity.setInvalid(true);\n removeValidity();\n }\n // Check that quantity is in acceptable range (range check)\n else if (!validator.checkValidQuantity(numQuantity.getValue().intValue())) {\n numQuantity.setErrorMessage(\"Please enter a number between 1 and \" + researchDetails.MAX_QUANTITY + \" (inclusively)\");\n numQuantity.setInvalid(true);\n removeValidity();\n }\n\n }", "public void setProductQty (BigDecimal ProductQty)\n{\nif (ProductQty == null) throw new IllegalArgumentException (\"ProductQty is mandatory\");\nset_Value (\"ProductQty\", ProductQty);\n}", "public ChangeCustomLineItemQuantityChangeBuilder change(final String change) {\n this.change = change;\n return this;\n }", "@Override\n public void onClick(View v) {\n priceOfThisProduct = (numberPicker.getValue() * item.itemPrice);\n Snackbar.make(parentLayout, \"New Quantity: \" + priceOfThisProduct, Snackbar.LENGTH_SHORT).show();\n\n cv.put(\"CartItemsName\", \"\" + item.itemName);\n cv.put(\"CartItemsPrice\", item.itemPrice);\n cv.put(\"CartItemsPriceTotal\", priceOfThisProduct);\n cv.put(\"CartItemsQuantity\", numberPicker.getValue());\n cv.put(\"CartItemsTimeStamp\", System.currentTimeMillis());\n db.insert(CartOpenHelper.CART_TABLE, null, cv);\n\n Cart.grandTotal += priceOfThisProduct - Long.parseLong(tvPrice.getText().toString());\n\n tvQuantity.setText(numberPicker.getValue() + \"\");\n tvPrice.setText(priceOfThisProduct + \"\");\n tvCartValue.setText(\"Total Cart Value: Rs. \" + Cart.grandTotal);\n\n d.dismiss();\n db.delete(CartOpenHelper.CART_TABLE, CartOpenHelper.CART_ITEM_TIMESTAMP + \" = \" + \"'\" + item.itemTimeStamp + \"'\", null);\n loadActivity();\n }", "public void setQuantity(int quantity)\n\t{\n\t\tthis.quantity = quantity;\n\t}", "@Test\r\n\tpublic void testUpdateQuantity() throws IdNotContainedException { \r\n\t\tint initialQuantity = menu.findItemId(\"DES006\").getQuantity();\r\n\t int expectedQuantity = 2;\r\n\t processOrder.updateItemQuantity(currentOrder);\r\n\t int actualQuantity = menu.findItemId(\"DES006\").getQuantity();\r\n\t String message =\"Value updated succesfully\";\r\n\t\tassertEquals(message, actualQuantity, expectedQuantity ); \r\n assertTrue(actualQuantity > initialQuantity); //make sure that when updating the value has increased\r\n\r\n\t}", "public ItemQuantity(Item item, int quantity) {\n this.item = item;\n this.quantity = quantity;\n }", "public String updateShopQuantity() throws Exception {\n\t\tList<PromotionShopMap> lstCheckPromotionShopMap = new ArrayList<PromotionShopMap>();\n\t\tList<PromotionShopJoin> lstCheckPromotionShopJoin = new ArrayList<PromotionShopJoin>();\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\tresult.put(ERROR, true);\n\t\tif (promotionId == null || promotionId < 1 || lstShopQttAdd == null || lstShopQttAdd.size() == 0) {\n\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_DATA_CORRECT));\n\t\t\treturn JSON;\n\t\t}\n\t\ttry {\n\t\t\tstaff = getStaffByCurrentUser();\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\t\t\tPromotionProgram pro = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (pro == null) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (!ActiveType.WAITING.equals(pro.getStatus()) && !ActiveType.RUNNING.equals(pro.getStatus())) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.incorrect\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tList<PromotionShopMap> lstNewPromotionShopMap = new ArrayList<PromotionShopMap>();\n\t\t\tList<PromotionShopJoin> lstNewPromotionShopJoin = new ArrayList<PromotionShopJoin>();\n\t\t\tlstCheckPromotionShopMap = promotionProgramMgr.getListPromotionChildShopMapWithShopAndPromotionProgram(staff.getShop().getId(), promotionId);\n\t\t\tlstCheckPromotionShopJoin = promotionProgramMgr.getListPromotionChildShopJoinWithShopAndPromotionProgram(staff.getShop().getId(), promotionId);\n\t\t\tfor (int i = 0, sz = lstShopQttAdd.size(); i < sz; i++) {\n\t\t\t\tPromotionShopQttVO promotionShopQttVO = lstShopQttAdd.get(i);\n\t\t\t\tif (promotionShopQttVO != null) {\n\t\t\t\t\tPromotionShopMap psm = null;\n\t\t\t\t\tPromotionShopJoin psj = null;\n\t\t\t\t\tshopId = promotionShopQttVO.getShopId();\n\t\t\t\t\tif (super.getMapShopChild().get(shopId) == null) {\n\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"common.cms.shop.undefined\"));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tShop shop = shopMgr.getShopById(shopId);\n\t\t\t\t\tif (shop == null) {\n\t\t\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.shop.name.lable\")));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tif (!ActiveType.RUNNING.equals(shop.getStatus())) {\n\t\t\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_STATUS_INACTIVE, shop.getShopCode()));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tif (shop.getType() != null && shop.getType().getSpecificType() != null && (ShopSpecificType.NPP.getValue().equals(shop.getType().getSpecificType().getValue()) || ShopSpecificType.NPP_MT.getValue().equals(shop.getType()\n\t\t\t\t\t\t\t.getSpecificType().getValue()))) {\n\t\t\t\t\t\tfor (int j = 0, size = lstCheckPromotionShopMap.size(); j < size; j++) {\n\t\t\t\t\t\t\tPromotionShopMap item = lstCheckPromotionShopMap.get(j);\n\t\t\t\t\t\t\tif (item.getShop() != null && item.getShop().getId().equals(shopId)) {\n\t\t\t\t\t\t\t\tpsm = item;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (psm == null) {\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.shop.not.exist\"));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (promotionShopQttVO.getQuantityMax() != null && psm.getQuantityReceivedTotal() != null && promotionShopQttVO.getQuantityMax().compareTo(psm.getQuantityReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.quantity.max.not.less.than.quantity.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t} else if (promotionShopQttVO.getAmountMax() != null && psm.getAmountReceivedTotal() != null && promotionShopQttVO.getAmountMax().compareTo(psm.getAmountReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.amount.max.not.less.than.amount.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t} else if (promotionShopQttVO.getNumMax() != null && psm.getNumReceivedTotal() != null && promotionShopQttVO.getNumMax().compareTo(psm.getNumReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.num.max.not.less.than.num.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsm.setQuantityMax(promotionShopQttVO.getQuantityMax());\n\t\t\t\t\t\tpsm.setIsQuantityMaxEdit(promotionShopQttVO.getIsEdit());\n\t\t\t\t\t\tpsm.setAmountMax(promotionShopQttVO.getAmountMax());\n\t\t\t\t\t\tpsm.setNumMax(promotionShopQttVO.getNumMax());\n\t\t\t\t\t\tlstNewPromotionShopMap.add(psm);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0, size = lstCheckPromotionShopJoin.size(); j < size; j++) {\n\t\t\t\t\t\t\tPromotionShopJoin item = lstCheckPromotionShopJoin.get(j);\n\t\t\t\t\t\t\tif (item.getShop() != null && item.getShop().getId().equals(shopId)) {\n\t\t\t\t\t\t\t\tpsj = item;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (psj == null) {\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.shop.not.exist\"));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (promotionShopQttVO.getQuantityMax() != null && psj.getQuantityReceivedTotal() != null && promotionShopQttVO.getQuantityMax().compareTo(psj.getQuantityReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.quantity.max.not.less.than.quantity.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t} else if (promotionShopQttVO.getAmountMax() != null && psj.getAmountReceivedTotal() != null && promotionShopQttVO.getAmountMax().compareTo(psj.getAmountReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.amount.max.not.less.than.amount.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t} else if (promotionShopQttVO.getNumMax() != null && psj.getNumReceivedTotal() != null && promotionShopQttVO.getNumMax().compareTo(psj.getNumReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.num.max.not.less.than.num.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsj.setQuantityMax(promotionShopQttVO.getQuantityMax());\n\t\t\t\t\t\tpsj.setIsQuantityMaxEdit(promotionShopQttVO.getIsEdit());\n\t\t\t\t\t\tpsj.setAmountMax(promotionShopQttVO.getAmountMax());\n\t\t\t\t\t\tpsj.setNumMax(promotionShopQttVO.getNumMax());\n\t\t\t\t\t\tlstNewPromotionShopJoin.add(psj);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ActiveType.RUNNING.equals(pro.getStatus())) {\n\t\t\t\t// lay cau hinh bat buoc cac node NPP phai duoc phan bo\n\t\t\t\tList<ApParam> allocationPromotionShopConfigs = apParamMgr.getListApParam(ApParamType.ALLOCATION_PROMOTION_SHOP, ActiveType.RUNNING);\n\t\t\t\tisAllocationPromotionShop = (allocationPromotionShopConfigs == null || allocationPromotionShopConfigs.size() == 0 || Constant.ONE_TEXT.equals(allocationPromotionShopConfigs.get(0).getValue()));\n\t\t\t\tif (isAllocationPromotionShop) {\n\t\t\t\t\terrMsg = validateQuantityAmountNumPromotionShop(lstCheckPromotionShopMap);\n\t\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// 1. kiem tra cha phan bo con phai phan bo: chi kiem tra khi chuyen trang thai sang hoat dong. khi luu chi kiem tra tong con <= cha. \n\t\t\t\terrMsg = validateAllocateParentChildPromotionShop(lstCheckPromotionShopMap, lstCheckPromotionShopJoin);\n\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t}\n\t\t\terrMsg = validatePromotionShop(lstCheckPromotionShopMap, lstCheckPromotionShopJoin);\n\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tpromotionProgramMgr.updatePromotionShop(lstNewPromotionShopMap, lstNewPromotionShopJoin, getLogInfoVO());\n\t\t\tresult.put(ERROR, false);\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.updateShopQuantity\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t\treturn JSON;\n\t\t} finally {\n\t\t\tlstCheckPromotionShopMap.clear();\n\t\t\tlstCheckPromotionShopMap = null;\n\t\t\tlstCheckPromotionShopJoin.clear();\n\t\t\tlstCheckPromotionShopJoin = null;\n\t\t}\n\t\treturn JSON;\n\t}", "@Override\n public void onClick(View view) {\n int tempQty = Integer.parseInt(itemQty.getText().toString());\n tempQty = tempQty + 1;\n itemQty.setText(String.valueOf(tempQty));\n\n //get quantity\n int fillQuantity = Integer.parseInt(itemQty.getText().toString());\n //Create SaleItem\n SaleItem tempSaleItem = new SaleItem(fillName, fillQuantity, fillPrice, fillIngArr);\n //Update SaleItems Array\n saleItems.set(position, tempSaleItem);\n updateTotal();\n }", "public void minusQuantity()\n {\n int quantity = Integer.parseInt(quantityTextField.getText());\n if ( quantity == 0 )\n {\n Popup.DisplayError(\"Quantity cannot be negative.\");\n return;\n }\n quantity--;\n quantityTextField.setText(\"\" + quantity);\n\n changeSubtotalTextField();\n }", "org.hl7.fhir.Quantity addNewValueQuantity();", "public void setQuantity(int quantity) {\r\n\t\tthis.quantity = quantity;\r\n\t}", "@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent event) {\n\n\t\t\t\t\t\tConnection connection = null;\n\t\t\t\t\t\tStatement statement = null;\n\n\t\t\t\t\t\t//outer if-else if-else statement for field validations\n\t\t\t\t\t\tif (qtyProductField.getText().isEmpty()) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Quantity field is empty, will not save changes\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (qtyProductField.getText().matches(\"^[0-9]+\") == false) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(UpdateInvoiceForm.this, \n\t\t\t\t\t\t\t\t\tString.format(\"Invalid quantity change, please try again\", event.getActionCommand()));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// nested if-else if-else\n\t\t\t\t\t\t\tif (Integer.parseInt(qtyProductField.getText()) == Integer.parseInt(qtyProduct)) {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No changes were made\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (Integer.parseInt(qtyProductField.getText()) < 1 || Integer.parseInt(qtyProductField.getText()) > 100) {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(UpdateInvoiceForm.this, \n\t\t\t\t\t\t\t\t\t\tString.format(\"Please enter a quantity 1-100, no more, no less\", event.getActionCommand()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tint newQtyProduct = Integer.parseInt(qtyProductField.getText());\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tconnection = DriverManager.getConnection(DATABASE_URL, UserName_SQL, Password_SQL);\n\t\t\t\t\t\t\t\t\tstatement = connection.createStatement();\n\t\t\t\t\t\t\t\t\tstatement.executeUpdate(\"UPDATE invoice SET qtyProduct =\" + newQtyProduct\n\t\t\t\t\t\t\t\t\t\t\t+ \" WHERE (customerId,productId,invoiceDate,invoiceTime) = (\" + customerId + \",\"\n\t\t\t\t\t\t\t\t\t\t\t+ productId + \", '\" + invoiceDate + \"', '\" + invoiceTime + \"')\");\n\t\t\t\t\t\t\t\t} // end try\n\n\t\t\t\t\t\t\t\tcatch (SQLException sqlException) {\n\t\t\t\t\t\t\t\t\tsqlException.printStackTrace();\n\t\t\t\t\t\t\t\t} // end catch\n\n\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tstatement.close();\n\t\t\t\t\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t\t\t\t\t} // end try\n\n\t\t\t\t\t\t\t\t\tcatch (Exception exception) {\n\t\t\t\t\t\t\t\t\t\texception.printStackTrace();\n\t\t\t\t\t\t\t\t\t} // end catch\n\t\t\t\t\t\t\t\t} // end finally\n\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Record Updated\");\n\t\t\t\t\t\t\t\trefreshJTable();\n\t\t\t\t\t\t\t}// end inner else\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}// end outer else\n\t\t\t\t\t}", "@Override\n public void onClick(View view) {\n quantityText.setText(String.valueOf(Integer.parseInt(quantityText.getText().toString()) + 1));\n Uri currentItemUri = ContentUris.withAppendedId(MenuItemsContract.MenuItemsEntry.CONTENT_URI, id);\n ContentValues values = new ContentValues();\n values.put(MenuItemsContract.MenuItemsEntry.COLUMN_ITEM_QUANTITY,Integer.parseInt(quantityText.getText().toString()));\n context.getContentResolver().update(currentItemUri,values,null,null);\n }", "public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }", "public void setQuantity(Integer quantity) {\r\n this.quantity = quantity;\r\n }", "protected void validate() {\n\t\tString quantity=editText.getText().toString().trim();\n\t\tif(quantity.length()==0){\n\t\t\tAlertUtils.showToast(mContext, \"Enter quantity\");\n\t\t\treturn;\n\t\t}else if(!isValidNumber(quantity)){\n\t\t\tAlertUtils.showToast(mContext, \"Enter valid quantity\");\n\t\t\treturn;\n\t\t}\n//\t\tif(((HomeActivity)mContext).checkInternet())\n//\t\t\tdialogCallback.setQuantity(item);\n\t}", "public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }", "public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }", "private String bulkorderqtycalculation() {\n String strSubtotal = estimatedSubTotalPriceDisplayShoppingCart.getText();\n float intSubtotal = Float.parseFloat(strSubtotal.replaceAll(\"[^0-9.]\", \"\"));\n DecimalFormat df = new DecimalFormat(\"#\");\n String forSubtotal = df.format(intSubtotal);\n int forIntSubtotal = Integer.parseInt(forSubtotal);\n System.out.println(\"=== Subtotal after trimming: \" + forIntSubtotal);\n int reqqty = 0;\n reqqty = (3000 / forIntSubtotal);\n System.out.println(\"=== Qty Require is: \" + reqqty);\n String qtystr = String.valueOf(reqqty);\n return qtystr;\n }", "public void update() {\n\t\tthis.quantity = item.getRequiredQuantity();\n\t}", "private void adjustAddedQty(){\n \tString tmp1=jTable1.getModel().getValueAt(jTable1.getSelectedRow(), 3).toString();\n \t\n \tif(!addedBom.contains(tmp1)){\n \t\treturn;\n \t}\n \tint k=addedBom.indexOf(tmp1);\n \tjava.util.Vector<String> tmp2=addedBomDet.elementAt(k);\n \tfor (int i = 0; i<bomDet.length; i++){\n \t\tif(tmp2.contains(bomDet[i][1].toString())){\n \t\t\tbomDet[i][3]=new Long(0);\n \t\t}\n \t}\n \t\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (quantity > 0) {\r\n\t\t\t\t\tquantity--;\r\n\t\t\t\t\tquantityText.setText(\"\" + quantity);\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "public void setQuantity(int quantity) {\n\t\tthis.quantity = quantity;\n\t}", "public String getSelectQuantity() {\n\t\tactionStartTime = new Date();\n\t\ttry {\n\t\t\tInteger quantityUnit = promotionProgramMgr.getSelectQuantity(groupKMId, levelKMId);\n\t\t\tresult.put(ERROR, false);\n\t\t\tresult.put(\"quantityUnit\", quantityUnit);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.getMaxOrderNumber\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}", "@Override\n public void onClick(View v)\n {\n\n try\n {\n String item_id = list.get(position).getItem_id();\n String item_name = list.get(position).getItem_name();\n String totalPrice = list.get(position).getTotalPrice();\n String stockQty=list.get(position).getItem_qty();\n String dicount=list.get(position).getDiscount();\n String gst=list.get(position).getGst_per();\n String unit_price=list.get(position).getUnit_price();\n String purchase_price=list.get(position).getItem_purchase();\n String status=list.get(position).getStatus();\n String changedUnit=list.get(position).getUnit();\n\n\n String qty = view.sumValue.getText().toString().trim();\n Log.d(TAG, \"onClick:Qty\"+qty);\n Log.d(\"qty\", stockQty);\n Log.d(\"item\",item_name);\n Log.d(\"item_id\", item_id);\n Log.d(\"totalPrice\", totalPrice);\n Log.d(\"purchase_price\",purchase_price);\n Log.d(\"GST\",gst);\n\n Log.d(\"discount\",dicount);\n Log.d(\"UnitPrice:\",unit_price);\n Log.d(\"Status\",status);\n int quantity = Integer.parseInt(qty);\n quantity++;\n if(quantity<=Integer.parseInt(stockQty) || status.equalsIgnoreCase(\"infinite\"))\n {\n double totalAmont = Double.parseDouble(totalPrice) * quantity;\n Log.d(\"totalAount\", String.valueOf(totalAmont));\n view.sumValue.setText(String.valueOf(quantity));\n Log.d(TAG, \"onClick:Qty\"+quantity);\n // addItem(item_id,String.valueOf(quantity),totalPrice,dicount,gst,totalAmont,unit_price);\n addItem(item_id,String.valueOf(quantity),totalPrice,dicount,gst,totalAmont,unit_price,changedUnit);\n\n\n getTotalQunatity();\n notifyDataSetChanged();\n }else\n {\n Toast.makeText(context,\"Stock not Available\",Toast.LENGTH_LONG).show();\n }\n\n }catch (Exception e)\n {\n Log.d(TAG, \"onClick:Add Item\",e);\n\n\n }\n\n\n\n }", "private void printCheckItemQuantityMenu(Shop shop) {\n System.out.println(\"What is the ID of the tool you would like to look up?\");\n int itemId = receiveNumberInput();\n if (shop.searchInventory(itemId)) {\n System.out.println(\"Quantity: \" + shop.checkToolStock(itemId));\n } else {\n System.out.println(\"Tool does not exist or invalid input, please check spelling and try again.\");\n }\n }", "public ChangeCustomLineItemQuantityChangeBuilder withCustomLineItem(\n Function<com.commercetools.history.models.common.LocalizedStringBuilder, com.commercetools.history.models.common.LocalizedString> builder) {\n this.customLineItem = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of());\n return this;\n }", "public Product() {\n//\t\tthis.qty = new TextField();\n//\t\tthis.isSelected = new CheckBox();\n//\t\tisSelected.setOnAction(event ->{\n//\t\t\tOrderTransactionCtrl ctrl = new OrderTransactionCtrl();\n//\t\t\tCheckBox chx = (CheckBox)event.getSource();\n//\t\t\t\n//\t\t\tif(chx.isSelected()) {\n//\t\t\t\ttry {\n//\t\t\t\t\tctrl.addToCache();\n//\t\t\t\t} catch (ExecutionException e) {\n//\t\t\t\t\te.printStackTrace();\n//\t\t\t\t}\n//\t\t\t}else {\n//\t\t\t\tctrl.removeFromCache();\n//\t\t\t\t\n//\t\t\t}\n//\t\t});\n\t}", "public void increaseQuantity (View view){\n if(quantity == 100){\n Toast.makeText(this, \"You cannot order more than 100 coffee\", Toast.LENGTH_SHORT).show();\n return;\n }\n quantity = quantity + 1;\n displayQuantity(quantity);\n }", "public void removeItems(Product product, int quantity) throws IllegalArgumentException {\n int qty = quantity;\n \t\t\n if (qty > 0) {\n if (qty <= getNumOfRequestItems()) {\n for (int i = 0; i < qty; i++) {\n this.setRequestValue(getRequestValue() - product.getPrice());\n requestItems.remove(product);\n product.setQuantity(product.getQuantity() + 1);\n }\n }\n } else {\n throw new IllegalArgumentException(\"The number has to be positive.\");\n }\n }", "@Override\n public void changeQuantity(Product product, int position) {\n changeProductQuantity(product, -1);\n }", "public void submitOrder(View view) {\n\n CheckBox whippedCreamCheckBox = (CheckBox) findViewById(R.id.whipped_cream_checkbox);\n boolean hasWhippedCream = whippedCreamCheckBox.isChecked();\n\n CheckBox chocolateCheckBox = (CheckBox) findViewById(R.id.chocolate);\n boolean hasChocolateChecked = chocolateCheckBox.isChecked();\n EditText editText = (EditText) findViewById(R.id.name);\n String name = editText.getText().toString();\n createOrderSummary(quantity, hasWhippedCream, hasChocolateChecked, name);\n\n\n }", "@Override\n // This is not right, please do not use.\n public int getQuantity() {\n String a = null;\n a.isEmpty();\n\n return super.getQuantity();\n }", "private void plusQuantity(TextField source, Clothing clothing) {\n clothing.setCount(1);\n int quantity = clothing.getCount();\n double totalPriceOfClothing = 0;\n\n for (int i = 0; i < clothingArrayList.size(); i++) {\n double countOfItems = clothingArrayList.get(i).getCount();\n double clothingPricePerUnit = Double.valueOf(clothingArrayList.get(i).getPrice());\n totalPriceOfClothing += countOfItems * clothingPricePerUnit;\n\n }\n source.setText(\"\" + (quantity));\n totalPrices.setText(\"\" + totalPriceOfClothing);\n\n totalPrice.textProperty().bind(totalPrices.textProperty());\n }", "public void setQuantity(float value) {\n this.quantity = value;\n }", "public void setItemsQuantity(Integer itemsQuantity) {\r\n this.itemsQuantity = itemsQuantity;\r\n }", "private void increaseOneToQuantity() {\n String previousValueString = mQuantityEditText.getText().toString();\n int previousValue;\n if (previousValueString.isEmpty() || previousValueString.equals(\"0\")) {\n return;\n }\n else {\n previousValue = Integer.parseInt(previousValueString);\n mQuantityEditText.setText(String.valueOf(previousValue + 1));\n }\n }", "public String saveShopSupportQuantity() {\n\t\tList<PromotionShopMap> lstCurrentPromotionShopMap = new ArrayList<PromotionShopMap>();\n\t\tList<PromotionShopJoin> lstCurrentPromotionShopJoin = new ArrayList<PromotionShopJoin>();\n\t\tresetToken(result);\n\t\tactionStartTime = DateUtil.now();\n\t\tresult.put(ERROR, true);\n\t\ttry {\n\t\t\tif (currentUser == null || currentUser.getShopRoot() == 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\t\t\tif (promotionId == null || promotionId < 1 || lstShopQttAdd == null || lstShopQttAdd.size() == 0) {\n\t\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_DATA_CORRECT));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tPromotionProgram pro = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (pro == null) {\n\t\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (!ActiveType.RUNNING.equals(pro.getStatus())) {\n\t\t\t\tresult.put(ERR_MSG, Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.incorrect\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tlstCurrentPromotionShopMap = promotionProgramMgr.getListPromotionChildShopMapWithShopAndPromotionProgram(currentUser.getShopRoot().getShopId(), promotionId);\n\t\t\tlstCurrentPromotionShopJoin = promotionProgramMgr.getListPromotionChildShopJoinWithShopAndPromotionProgram(currentUser.getShopRoot().getShopId(), promotionId);\n\t\t\tList<PromotionShopMap> lstNewShopMap = new ArrayList<PromotionShopMap>();\n\t\t\tList<PromotionShopMap> lstNewShopMapNewTree = new ArrayList<PromotionShopMap>(); // chua shop nam trong cay moi\n\t\t\tList<PromotionShopMap> lstNewShopMapOldTree = new ArrayList<PromotionShopMap>(); // chua shop nam trong cay da them\n\t\t\tList<PromotionShopJoin> lstNewShopJoin = new ArrayList<PromotionShopJoin>();\n\t\t\tPromotionShopMap psmAdd = null;\n\t\t\tShop shT = null;\n\t\t\tDate now = commonMgr.getSysDate();\n\t\t\tLong idt = null;\n\t\t\tfor (int i = 0, sz = lstShopQttAdd.size(); i < sz; i++) {\n\t\t\t\tPromotionShopQttVO promotionShopQttVO = lstShopQttAdd.get(i);\n\t\t\t\tif (promotionShopQttVO != null) {\n\t\t\t\t\tidt = promotionShopQttVO.getShopId();\n\t\t\t\t\tif (super.getMapShopChild().get(idt) == null) {\n\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"common.cms.shop.undefined\"));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tshT = shopMgr.getShopById(idt);\n\t\t\t\t\tif (shT == null || shT.getType() == null || (!ShopSpecificType.NPP.equals(shT.getType().getSpecificType()) && !ShopSpecificType.NPP_MT.equals(shT.getType().getSpecificType()))) {\n\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"common.cms.shop.undefined\"));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tif (!ActiveType.RUNNING.equals(shT.getStatus())) {\n\t\t\t\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_STATUS_INACTIVE, shT.getShopCode()));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tPromotionShopMap psm = promotionProgramMgr.getPromotionShopMap(idt, promotionId);\n\t\t\t\t\tif (psm != null && ActiveType.RUNNING.equals(psm.getStatus())) {\n\t\t\t\t\t\tresult.put(ERR_MSG, Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.shop.exist.shop.map.view\", shT.getShopCode()));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tpsmAdd = new PromotionShopMap();\n\t\t\t\t\tpsmAdd.setPromotionProgram(pro);\n\t\t\t\t\tpsmAdd.setShop(shT);\n\t\t\t\t\tpsmAdd.setStatus(ActiveType.RUNNING);\n\t\t\t\t\tpsmAdd.setCreateDate(now);\n\t\t\t\t\tpsmAdd.setCreateUser(currentUser.getUserName());\n\t\t\t\t\tpsmAdd.setFromDate(pro.getFromDate());\n\t\t\t\t\tpsmAdd.setToDate(pro.getToDate());\n\t\t\t\t\tif (promotionShopQttVO.getQuantityMax() != null) {\n\t\t\t\t\t\tif (!ValidateUtil.validateNumber(promotionShopQttVO.getQuantityMax().toString()) || promotionShopQttVO.getQuantityMax().intValue() < 0) {\n\t\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"catalog.promotion.shop.add.map.quantity.max.error\", shT.getShopCode()));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsmAdd.setQuantityMax(promotionShopQttVO.getQuantityMax());\n\t\t\t\t\t}\n\t\t\t\t\tif (promotionShopQttVO.getNumMax() != null) {\n\t\t\t\t\t\tif (!ValidateUtil.validateNumber(promotionShopQttVO.getNumMax().toString()) || promotionShopQttVO.getNumMax().intValue() < 0) {\n\t\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"catalog.promotion.shop.add.map.num.max.error\", shT.getShopCode()));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsmAdd.setNumMax(promotionShopQttVO.getNumMax());\n\t\t\t\t\t}\n\t\t\t\t\tif (promotionShopQttVO.getAmountMax() != null) {\n\t\t\t\t\t\tif (!ValidateUtil.validateNumber(promotionShopQttVO.getAmountMax().toString()) || promotionShopQttVO.getAmountMax().intValue() < 0) {\n\t\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"catalog.promotion.shop.add.map.amount.max.error\", shT.getShopCode()));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsmAdd.setAmountMax(promotionShopQttVO.getAmountMax());\n\t\t\t\t\t}\n\t\t\t\t\t// ktra co cha phan bo k\n\t\t\t\t\tList<Shop> listParentShop = shopMgr.getListParentShopId(ActiveType.RUNNING.getValue(), idt);\n\t\t\t\t\tPromotionShopJoin parentAllotion = getParentPromotionShopJoinAllcation(listParentShop, lstCurrentPromotionShopJoin);\n\t\t\t\t\tif (parentAllotion == null) {\n\t\t\t\t\t\tlstNewShopMapNewTree.add(psmAdd);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlstNewShopMapOldTree.add(psmAdd);\n\t\t\t\t\t\t// them cac shop cha con thieu\n\t\t\t\t\t\tfor (Shop shop : listParentShop) {\n\t\t\t\t\t\t\tif (shop.getId() != null && parentAllotion.getShop() != null && shop.getId().equals(parentAllotion.getShop().getId())) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tPromotionShopJoin shopAdded = getParentPromotionShopJoin(lstNewShopJoin, shop.getId());\n\t\t\t\t\t\t\tif (shopAdded != null) {\n\t\t\t\t\t\t\t\tshopAdded.setQuantityMax(shopAdded.getQuantityMax() == null ? promotionShopQttVO.getQuantityMax() : (shopAdded.getQuantityMax() + promotionShopQttVO.getQuantityMax()));\n\t\t\t\t\t\t\t\tshopAdded.setNumMax(shopAdded.getNumMax() == null ? promotionShopQttVO.getNumMax() : shopAdded.getNumMax().add(promotionShopQttVO.getNumMax()));\n\t\t\t\t\t\t\t\tshopAdded.setAmountMax(shopAdded.getAmountMax() == null ? promotionShopQttVO.getAmountMax() : shopAdded.getAmountMax().add(promotionShopQttVO.getAmountMax()));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tPromotionShopJoin newShopJoin = new PromotionShopJoin();\n\t\t\t\t\t\t\t\tnewShopJoin.setPromotionProgram(pro);\n\t\t\t\t\t\t\t\tnewShopJoin.setShop(shop);\n\t\t\t\t\t\t\t\tnewShopJoin.setStatus(ActiveType.RUNNING);\n\t\t\t\t\t\t\t\tnewShopJoin.setCreateDate(now);\n\t\t\t\t\t\t\t\tnewShopJoin.setCreateUser(currentUser.getUserName());\n\t\t\t\t\t\t\t\tnewShopJoin.setFromDate(pro.getFromDate());\n\t\t\t\t\t\t\t\tnewShopJoin.setToDate(pro.getToDate());\n\t\t\t\t\t\t\t\tnewShopJoin.setQuantityMax(promotionShopQttVO.getQuantityMax());\n\t\t\t\t\t\t\t\tnewShopJoin.setNumMax(promotionShopQttVO.getNumMax());\n\t\t\t\t\t\t\t\tnewShopJoin.setAmountMax(promotionShopQttVO.getAmountMax());\n\t\t\t\t\t\t\t\tlstNewShopJoin.add(newShopJoin);\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\tlstNewShopMap.add(psmAdd);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// validate cac shop thuoc nhanh moi\n\t\t\tif (lstNewShopMapNewTree.size() > 0) {\n\t\t\t\t// lay cau hinh bat buoc cac node NPP phai duoc phan bo\n\t\t\t\tList<ApParam> allocationPromotionShopConfigs = apParamMgr.getListApParam(ApParamType.ALLOCATION_PROMOTION_SHOP, ActiveType.RUNNING);\n\t\t\t\tisAllocationPromotionShop = (allocationPromotionShopConfigs == null || allocationPromotionShopConfigs.size() == 0 || Constant.ONE_TEXT.equals(allocationPromotionShopConfigs.get(0).getValue()));\n\t\t\t\tif (isAllocationPromotionShop) {\n\t\t\t\t\terrMsg = validateQuantityAmountNumPromotionShop(lstCurrentPromotionShopMap, lstNewShopMapNewTree);\n\t\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// validate cac shop thuoc nhanh da them\n\t\t\tif (lstNewShopMapOldTree.size() > 0) {\n\t\t\t\tlstCurrentPromotionShopMap.addAll(lstNewShopMapOldTree);\n\t\t\t\tlstCurrentPromotionShopJoin.addAll(lstNewShopJoin);\n\t\t\t\terrMsg = validateQuantityAmountNumPromotionShop(lstCurrentPromotionShopMap, lstNewShopMapOldTree);\n\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t\terrMsg = validateAllocateParentChildPromotionShop(lstCurrentPromotionShopMap, lstCurrentPromotionShopJoin);\n\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t\terrMsg = validatePromotionShop(lstCurrentPromotionShopMap, lstCurrentPromotionShopJoin);\n\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpromotionProgramMgr.addPromotionShop(lstNewShopMap, lstNewShopJoin, getLogInfoVO());\n\t\t\tresult.put(ERROR, false);\n\t\t} catch (BusinessException ex) {\n\t\t\tLogUtility.logErrorStandard(ex, \"vnm.web.action.program.ProgramCatalogAction.saveShopSupportQuantity\", createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(ERROR, true);\n\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t} finally {\n\t\t\tlstCurrentPromotionShopMap.clear();\n\t\t\tlstCurrentPromotionShopMap = null;\n\t\t\tlstCurrentPromotionShopJoin.clear();\n\t\t\tlstCurrentPromotionShopJoin = null;\n\t\t}\n\t\treturn JSON;\n\t}", "boolean isSetValueQuantity();", "public Builder setQuantity(long value) {\n \n quantity_ = value;\n onChanged();\n return this;\n }", "public Builder setQuantity(long value) {\n \n quantity_ = value;\n onChanged();\n return this;\n }", "public void actionPerformed(ActionEvent e)\n\t\t\t\t\t{\n\t\t\t\t\t\tBuyerUIItem thisUIItem = (BuyerUIItem)order.getParent();\n\t\t\t\t\t\tint amountDesired = (int)spinner.getValue();\n\t\t\t\t\t\tif(_item.getQuantity() >= amountDesired && _item.inStock()) {\n\t\t\t\t\t\t\titemHelper.orderItem(thisUIItem, _item, amountDesired);\n\t\t\t\t\t\t\tquantity.setText(String.valueOf(_item.getQuantity()));\n\t\t\t\t\t\t\tnumModel.setValue(1);\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else if(_item.inStock()) {\n\t\t\t\t\t\t\titemHelper.underStock(_item);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\titemHelper.stockOut(_item);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void buildProjector(int quantity){\r\n if (quantity != 0){\r\n eventRoomItems.addItem(itemFactory.constructProjector());\r\n }\r\n else{\r\n eventRoomItems.addItem(null);\r\n }\r\n }", "@Override\n\tpublic void modify(int quantity) {\n\t}", "@SuppressLint(\"StaticFieldLeak\")\n @Override\n public void onClick(View v) {\n String id = scannedItem.getText().toString();\n String chosenDate = date;\n int ACTUALTOTALQUANTITY = TOTAL_QUANTITY;\n\n\n if(!TextUtils.isEmpty(id) && !TextUtils.isEmpty(chosenDate) && TOTAL_QUANTITY!= 0){\n Inventory inventory = new Inventory(id,chosenDate,ACTUALTOTALQUANTITY,finalMonth,finalDayOfMonth,finalYear);\n databaseReference.child(id).setValue(inventory);\n Toast.makeText(getContext(), \"Added to database\", Toast.LENGTH_SHORT).show();\n TOTAL_QUANTITY = 0;\n quantity.setText(\"Quantity: \" + TOTAL_QUANTITY);\n\n selectedDate.setText(\"\");\n }else{\n Toast.makeText(getContext(), \"Make sure the name and date are selected and that the quantity is above 0\", Toast.LENGTH_SHORT).show();\n }\n\n }", "public void getQty(final ReviseSalesOrderList reviseSalesOrderList){\n\n\n AlertDialog.Builder mBuilder = new AlertDialog.Builder(SOR__ListItemActivity_Selected.this);\n View mView = getLayoutInflater().inflate(R.layout.layout_for_popup,null);\n\n final EditText etQuantity,etFreeQuantity;\n TextView tvButton;\n\n etQuantity = (EditText) mView.findViewById(R.id.etQuantity);\n etFreeQuantity = (EditText) mView.findViewById(R.id.etFreeQuantity);\n tvButton = (TextView)mView.findViewById(R.id.tvButton);\n\n //Set quantities\n etQuantity.setText(\"\"+reviseSalesOrderList.getQuantity());\n etFreeQuantity.setText(\"\"+reviseSalesOrderList.getFreeQuantity());\n\n\n tvButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n double amount = 0,freeAmount=0;\n String qty = etQuantity.getText().toString();\n String freeQty = etFreeQuantity.getText().toString();\n\n if (qty.isEmpty()){\n qty=0+\"\";\n }\n\n if (freeQty.isEmpty()){\n freeQty = 0+\"\";\n }\n int quantity = Integer.parseInt(qty);\n int freeQuantity = Integer.parseInt(freeQty);\n\n //set current product quantity , free quantity and amount\n reviseSalesOrderList.setQuantity(quantity);\n reviseSalesOrderList.setFreeQuantity(freeQuantity);\n reviseSalesOrderList.setISCheckedItem(true);\n reviseSalesOrderList.setAmount(reviseSalesOrderList.getUnitSellingPrice()*quantity);\n\n\n boolean add = false;\n for (int i = 0 ; i < selectedArrayList.size();i++){\n if (selectedArrayList.get(i).getProductId()==reviseSalesOrderList.getProductId()){\n selectedArrayList.set(i,reviseSalesOrderList);\n add = true;\n }\n }\n\n if (add==false){\n selectedArrayList.add(reviseSalesOrderList);\n }\n\n setTotalAmounts(selectedArrayList);\n\n\n dialog.dismiss();\n loadRecyclerView(selectedArrayList);\n\n }\n });\n\n mBuilder.setView(mView);\n dialog = mBuilder.create();\n dialog.show();\n }", "@Test\n\tpublic void testProcessInventoryUpdateOrderAdjustmentChangeQty() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tfinal long warehouseUid = WAREHOUSE_UID;\n\t\tinventory.setWarehouseUid(warehouseUid);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tfinal String skuCode = SKU_CODE;\n\t\tproductSku.setSkuCode(skuCode);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproduct.setGuid(PRODUCT);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\t\torder.setStoreCode(store.getCode());\n\t\tfinal PhysicalOrderShipmentImpl shipment = getMockPhysicalOrderShipment();\n\t\tfinal OrderSku orderSku = new OrderSkuImpl();\n\t\torderSku.setProductSku(productSku);\n\t\tshipment.addShipmentOrderSku(orderSku);\n\t\torder.addShipment(shipment);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\toneOf(beanFactory).getBean(ALLOCATION_RESULT); will(returnValue(new AllocationResultImpl()));\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(skuCode, warehouseUid); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_10, inventoryDto.getAllocatedQuantity());\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t}\n\t\t});\n\n\t\tfinal Inventory inventory2 = assembler.assembleDomainFromDto(inventoryDto);\n\n\t\tfinal InventoryDao inventoryDao2 = context.mock(InventoryDao.class, INVENTORY_DAO2);\n\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao2);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tallowing(inventoryDao2).getInventory(skuCode, warehouseUid); will(returnValue(inventory2));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tallocationService.processAllocationEvent(\n\t\t\t\torderSku, AllocationEventType.ORDER_ADJUSTMENT_CHANGEQTY, EVENT_ORIGINATOR_TESTER, QUANTITY_10, null);\n\n\t\tinventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10 - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_10 + QUANTITY_10, inventoryDto.getAllocatedQuantity());\n\t}", "private void validatePurchaseOrder(MaintenanceRequest mrq) throws MalBusinessException{\n\t\tArrayList<String> messages = new ArrayList<String>();\n\t\tBigDecimal amount = new BigDecimal(0.00);\n\t\t\t\t\n\t\t//Validate PO header required data\n\t\tif(MALUtilities.isEmptyString(mrq.getJobNo()))\n\t\t\tmessages.add(\"Job No. is required\");\n\t\tif(MALUtilities.isEmptyString(mrq.getMaintReqStatus()))\n\t\t\tmessages.add(\"PO Status is required\");\n\t\tif(MALUtilities.isEmptyString(mrq.getMaintReqType()))\n\t\t\tmessages.add(\"PO Type is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getCurrentOdo()))\n\t\t\tmessages.add(\"Odo is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getActualStartDate()))\n\t\t\tmessages.add(\"Actual Start Date is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getPlannedEndDate()))\n\t\t\tmessages.add(\"End date is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getServiceProvider()))\n\t\t\tmessages.add(\"Service Provider is required\");\n\t\t/* TODO Need to determine if this check is necessary. We do not have a hard requirement for this.\n\t\tif(!MALUtilities.isEmpty(po.getServiceProvider()) \n\t\t\t\t&& (!MALUtilities.convertYNToBoolean(po.getServiceProvider().getNetworkVendor()) \n\t\t\t\t\t\t&& this.calculateMarkUp(po).compareTo(new BigDecimal(0.00)) < 1))\n\t\t\tmessages.add(\"Mark Up is required for out of network service providers\");\n\t */\n\t\t\n\t\t//Validate PO Line items (tasks) required data\n\t\tif(!MALUtilities.isEmpty(mrq.getMaintenanceRequestTasks())){\n\t\t\tfor(MaintenanceRequestTask line : mrq.getMaintenanceRequestTasks()){\n\t\t\t\tif(MALUtilities.isEmptyString(line.getMaintCatCode()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Maint Category is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getTaskQty()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Qty is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getUnitCost()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Unit Price is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getTotalCost())) \n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Total Amount is required\");\t\t\t\t\t\t\t\t\n\t\t\t\tif(!(MALUtilities.isEmpty(line.getTaskQty()) && MALUtilities.isEmpty(line.getUnitCost()))){\n\t\t\t\t\tamount = line.getUnitCost().multiply(line.getTaskQty()).setScale(2, BigDecimal.ROUND_HALF_UP); \n\t\t\t\t\tif( amount.compareTo(line.getTotalCost().setScale(2, BigDecimal.ROUND_HALF_UP)) != 0)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Total amount is incorrect\");\t\t\t\t\t\t\t\n\t\t\t\t}\t\n/** TODO This will not work well with goodwill POs as the user will not have the changes to add cost avoidance data to subsequent lines.\t\t\t\t\n\t\t\t\tif(mrq.isGoodwillIndicator() && line.isCostAvoidanceIndicator()){\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceCode()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceAmount()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Amount is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillReason()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillCost()) || line.getGoodwillCost().compareTo(new BigDecimal(0)) < 1)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Amount is required\");\t\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillPercent()) || line.getGoodwillPercent().compareTo(new BigDecimal(0)) < 1)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Percent is required\");\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!mrq.isGoodwillIndicator() && line.isCostAvoidanceIndicator()){\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceCode()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceAmount()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Amount is required\");\t\t\t\t\t\n\t\t\t\t}\n*/\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(messages.size() > 0)\n\t\t\tthrow new MalBusinessException(\"service.validation\", messages.toArray(new String[messages.size()]));\t\t\n\t\t\n\t}", "public static void main(String args[]) \r\n\t{\n\t\tSystem.out.println(\"Welcome to the Line Item Calculator\"); \r\n\t\tSystem.out.println(); \r\n\t\tScanner sc = new Scanner(System.in); \r\n\t\t\r\n\t\t\r\n\t\tString select_item;\r\n\t\tString choice = \"y\"; \r\n\t\tInvoice item = new Invoice ();\r\n\t\tdouble invoice_Total = 0;\r\n\t\t\r\n\t\tNumberFormat currency = NumberFormat.getCurrencyInstance();\r\n\t\t\r\n\t\twhile (choice.equalsIgnoreCase(\"y\")){ \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// get the input from the user \r\n\t\t\tString productCode = Validator.getString(sc,\"Enter product code: \"); \r\n\t\t\tint quantity = Validator.getInt(sc,\"Enter quantity: \"); \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//get the Product object \r\n\t\t\tProduct product = ProductDB.getProductInfo(productCode); \r\n\t\t\t\r\n\t\t\t\r\n\t\t\tBonus:\r\n\t\t\tfor(int i=0; i < item.get_list().size(); i++){\r\n\t\t\t\tselect_item = item.get_list().get(i) ;\r\n\t\t\t\t\r\n\t\t\t\t//&& i != item.get_list().size()\r\n\t\t\t\tif(select_item.substring(0,2).contains(productCode) && i != item.get_list().size()){\r\n\t\t\t\t\tquantity += Integer.parseInt(select_item.substring(42,43)); //index of the quantity in the list\r\n\t\t\t\t\t//invoice_Total -= Integer.parseInt(select_item\r\n\t\t\t\t\titem.delete_line_item(i);\r\n\t\t\t\t\tbreak Bonus;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\t// create the LineItem object and set its fields \r\n\t\t\tLineItem lineItem = new LineItem(); \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tlineItem.setProduct(product); \r\n\t\t\tlineItem.setQuantity(quantity);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//invoice_Total += lineItem.getTotal();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\titem.store_line_item(lineItem.getProduct(), lineItem.getQuantity(), lineItem.getTotal());\r\n\t\t\t\r\n\t\t\r\n\t\t\tSystem.out.println(\"Another line item? (y/n): \"); \r\n\t\t\tchoice = sc.nextLine();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Code Description Price Qty Total \");\r\n\t\tSystem.out.println(\"---- ------------ --------- ----- ------- \");\r\n\t\t\r\n\t\t\r\n\t\tfor (String list:item.get_list()){\r\n\t\t\t\r\n\t\t\r\n\t\t\tinvoice_Total += Double.parseDouble(list.substring(56,61)); //index of the total in the list\r\n\t\t\tSystem.out.println(list);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\" Invoice total: \" + currency.format(invoice_Total));\r\n\t\t\r\n\t}", "@Override\r\n public int getItemQuantity() {\n return this.quantity;\r\n }", "public void setQuantity(int quantity) {\r\n if (quantity >= 0) {\r\n this.quantity = quantity;\r\n }\r\n else {\r\n System.out.print(\"Sorry no negative quantities -- setting to 1\");\r\n this.quantity = 1;\r\n }\r\n }", "public void addItems(Product product, JSpinner spinner, JLayeredPane pane, JTable table) throws IllegalArgumentException {\n int qty = (int) spinner.getValue(); //get the added quantity from table\n\n if (qty > 0) {\n if (qty <= product.getQuantity()) {\n for (int i = 0; i < qty; i++) {\n this.setRequestValue(getRequestValue() + product.getPrice()); //update request value\n requestItems.add(product);\n product.setQuantity(product.getQuantity() - 1); //update product in stock\n }\n } else {\n \tDefaultTableModel model = (DefaultTableModel) table.getModel();\n int rowCount = model.getRowCount();\n for (int i = rowCount - 1; i >= 0; i--) {\n \tmodel.removeRow(i);\n }\n table.setModel(model);\n \tJOptionPane.showMessageDialog(pane, \"There is not enough in stock.\");\n throw new IllegalArgumentException(\"There is not enough in stock\");\n }\n } else {\n throw new IllegalArgumentException(\"The amount has to be positive\");\n }\n }", "@Override\n public void onClick(View v)\n {\n // Increase purchased quantity\n productQuantityTextView.setText(Integer.toString(++productQuantity));\n }", "ResponseEntity<Cart> updateCartItemQuantity(CartFormData formData);", "private void generateReceipt(){\n ArrayList<Product> productList = cart.getProductList();\n ArrayList<Float> costsList = cart.getCostsList();\n for (int i=0; i<productList.size(); i++){\n String quantity = \"\"+productList.get(i).getQuantity();\n String name = \"\"+productList.get(i).getName();\n String cost = \"\"+Math.round(costsList.get(i) * 100.0) / 100.0;\n //String cost = \"\"+costsList.get(i);\n \n reciept.addLine(quantity+\" \"+name+\": \"+cost);\n }\n \n reciept.addLine(\"Total Taxes: \"+Math.round(cart.getTotalTax() * 100.0) / 100.0);\n reciept.addLine(\"Total: \"+ Math.round((cart.getTotalTax()+cart.getTotalCost()) * 100.0) / 100.0);\n // print reciept\n }", "Quantity initQuantity(Quantity iQuantity)\n {\n iQuantity.updateElementValue(\"Quantity\");\n return iQuantity;\n }", "public LineItem(Product product, int quantity) {\n this.product = product;\n this.quantity = quantity;\n }", "private void updateQuantity(int number) {\n Log.d(\"Method\", \"updateQuantity()\");\n coffeeCount += number;\n if (coffeeCount < getResources().getInteger(R.integer.min_coffee)) {\n Log.w(\"\", \"coffeeCount < minimum coffee order. Resetting to \" + getResources().getInteger(R.integer.min_coffee) + \".\");\n coffeeCount = getResources().getInteger(R.integer.min_coffee);\n } else if ((coffeeCount > getResources().getInteger(R.integer.high_coffee_count)) && (!quantityAlert)) {\n Log.i(\"\", \"Alerting user about a high coffee count order.\");\n displayMessage(getResources().getString(R.string.high_coffee_message));\n quantityAlert = true;\n } else if (coffeeCount > getResources().getInteger(R.integer.max_coffee)) {\n Log.w(\"\", \"coffeeCount > maximum coffee order. Resetting to \" + getResources().getInteger(R.integer.max_coffee) + \".\");\n coffeeCount = getResources().getInteger(R.integer.max_coffee);\n displayMessage(getResources().getString(R.string.max_coffee_message));\n }\n displayQuantity();\n }", "public void resetQuantity() {\n Log.d(\"Method\", \"resetQuantity()\");\n CheckBox cb = (CheckBox) findViewById(R.id.whipped_checkbox_view);\n\n coffeeCount = getResources().getInteger(R.integer.min_coffee);\n quantityAlert = false;\n cb.setChecked(false);\n displayQuantity();\n }", "@Override\n\tpublic java.lang.String getNeedQuantity() {\n\t\treturn _lineaGastoCategoria.getNeedQuantity();\n\t}", "public void setQuantity(Float quantity) {\n this.quantity = quantity;\n }", "public String updateSalerQuantity() throws Exception {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\tresult.put(ERROR, true);\n\t\tif (promotionId == null || promotionId < 1 || id == null || id < 1) {\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_DATA_CORRECT));\n\t\t\treturn JSON;\n\t\t}\n\t\ttry {\n\t\t\tstaff = getStaffByCurrentUser();\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\tPromotionProgram pro = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (pro == null) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (!ActiveType.WAITING.equals(pro.getStatus()) && !ActiveType.RUNNING.equals(pro.getStatus())) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.incorrect\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\n\t\t\tPromotionStaffMap psm = promotionProgramMgr.getPromotionStaffMapById(id);\n\t\t\tif (psm == null || !ActiveType.RUNNING.equals(psm.getStatus())) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.staff.map.not.exists\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (quantity != null && psm.getQuantityReceivedTotal() != null && quantity.compareTo(psm.getQuantityReceivedTotal()) < 0) {\n\t\t\t\tresult.put(\"errMsg\", \"Số suất phân bổ không được bé hơn số suất đã nhận.\");\n\t\t\t\treturn JSON;\n\t\t\t} else if (amount != null && psm.getAmountReceivedTotal() != null && amount.compareTo(psm.getAmountReceivedTotal()) < 0) {\n\t\t\t\tresult.put(\"errMsg\", \"Số tiền phân bổ không được bé hơn số tiền đã nhận.\");\n\t\t\t\treturn JSON;\n\t\t\t} else if (number != null && psm.getNumReceivedTotal() != null && number.compareTo(psm.getNumReceivedTotal()) < 0) {\n\t\t\t\tresult.put(\"errMsg\", \"Số lượng phân bổ không được bé hơn số lượng đã nhận.\");\n\t\t\t\treturn JSON;\n\t\t\t} else {\n\t\t\t\tpsm.setQuantityMax(quantity);\n\t\t\t\tpsm.setAmountMax(amount);\n\t\t\t\tpsm.setNumMax(number);\n\t\t\t\tpromotionProgramMgr.updatePromotionStaffMap(psm, getLogInfoVO());\n\t\t\t\tresult.put(ERROR, false);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.updateSalerQuantity\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn JSON;\n\t}", "@Override\r\n\tpublic void actionSplitLine_actionPerformed(ActionEvent e) throws Exception {\n\t\t// kdtRWOItemSpEntry.getColumn(\"originalQty\").getStyleAttributes().\r\n\t\t// setHided(false);\r\n\r\n\t\tif (PublicUtils.isEmpty(editData.getString(\"id\"))) {\r\n\t\t\tthrow new EASBizException(new NumericExceptionSubItem(\"\",\r\n\t\t\t\t\t\"未保存工单,不允许分担!\"));\r\n\t\t}\r\n\t\tif (!PublicUtils.equals(getOprtState(), OprtState.EDIT)) {\r\n\t\t\tthrow new EASBizException(new NumericExceptionSubItem(\"\",\r\n\t\t\t\t\t\"非修改状态,不允许分担!\"));\r\n\t\t}\r\n\r\n\t\tInteger[] iSel = KDTableUtils.getSelectedRowIndex(kdtRWOItemSpEntry,\r\n\t\t\t\tfalse);\r\n\t\tint selRowIndex = iSel[0].intValue();\r\n\t\tIRow selRow = kdtRWOItemSpEntry.getRow(selRowIndex);\r\n\t\tTEnum tType = (TEnum) selRow.getCell(\"t\").getValue();\r\n\t\tIEnum iType = (IEnum) selRow.getCell(\"i\").getValue();\r\n\t\tBigDecimal unIssueQty = PublicUtils.getBigDecimal(selRow.getCell(\r\n\t\t\t\t\"unIssueQty\").getValue());\r\n\t\tBigDecimal qty = PublicUtils.getBigDecimal(selRow.getCell(\"qty\")\r\n\t\t\t\t.getValue());\r\n\t\tif (qty.compareTo(BIGDEC0) == 0) {\r\n\t\t\tthrow new EASBizException(new NumericExceptionSubItem(\"\",\r\n\t\t\t\t\t\"数量为0的数据行,不允许分担!\"));\r\n\t\t}\r\n\t\tif (PublicUtils.equals(TEnum.P, tType)\r\n\t\t\t\t&& unIssueQty.compareTo(BIGDEC0) != 0) { // 配件行\r\n\t\t\tthrow new EASBizException(new NumericExceptionSubItem(\"\",\r\n\t\t\t\t\t\"配件未完全出库,不允许分担!\"));\r\n\t\t}\r\n\t\tif (PublicUtils.equals(IEnum.X, iType)) {\r\n\t\t\tthrow new EASBizException(new NumericExceptionSubItem(\"\",\r\n\t\t\t\t\t\"已结账数据行,不允许分担!\"));\r\n\t\t}\r\n\t\tMap uictx = new HashMap();\r\n\t\tuictx.put(\"ui\", this);\r\n\t\tuictx.put(\"kdtable\", kdtRWOItemSpEntry);\r\n\t\tuictx.put(\"originalRow\", selRow);\r\n\t\tBigDecimal amount = PublicUtils.getBigDecimal(selRow.getCell(\"amount\")\r\n\t\t\t\t.getValue());\r\n\t\tString itemspName = (String) selRow.getCell(\"itemspName\").getValue();\r\n\t\tIUIFactory iUIFactory = UIFactory.createUIFactory(UIFactoryName.MODEL);\r\n\t\tIUIWindow iUIWindowSizesHEdit = iUIFactory.create(\r\n\t\t\t\tRepairWOAllocateExpenseUI.class.getName(), uictx);\r\n\t\tRepairWOAllocateExpenseUI allocateExpenseUI = (RepairWOAllocateExpenseUI) iUIWindowSizesHEdit\r\n\t\t\t\t.getUIObject();\r\n\t\tallocateExpenseUI.setUITitle(String.format(\"[%s]\", itemspName));\r\n\t\tiUIWindowSizesHEdit.show();\r\n\t\tfor (int i = 0; i < kdtRWOItemSpEntry.getRowCount(); i++) {\r\n\t\t\tIRow row = kdtRWOItemSpEntry.getRow(i);\r\n\t\t\tRepairWORWOItemSpEntryInfo itemSpEntryInfo = (RepairWORWOItemSpEntryInfo) row\r\n\t\t\t\t\t.getUserObject();\r\n\t\t\tif (itemSpEntryInfo != null\r\n\t\t\t\t\t&& PublicUtils.isEmpty(itemSpEntryInfo.getString(\"id\")))\r\n\t\t\t\titemSpEntryInfo.setId(BOSUuid.create(\"FF1F0E1A\"));\r\n\r\n\t\t}\r\n\r\n\t}", "public String getQuantity() {\n return quantity;\n }", "public void setQty( String showInputDialog )\n\t{\n\n\t}", "void setQuantity(int quantity) {\n mQuantityTextView.setText(String.valueOf(quantity));\n }", "public static int validateStockInput(Context context, TextInputEditText editText) {\n // store input\n final String rawQuantity = editText.getText().toString().trim();\n\n // return 0 as a default value\n if (TextUtils.isEmpty(rawQuantity))\n return 0;\n\n try {\n int quantityInt = Integer.parseInt(editText.getText().toString().trim());\n if (quantityInt < 0) {\n editText.setError(context.getResources().getString(R.string.editor_edt_invalid_input));\n return -1;\n }\n return quantityInt;\n } catch (NumberFormatException nfe) {\n editText.setError(context.getResources().getString(R.string.editor_edt_invalid_input));\n return -1;\n }\n }", "@NonNull\n @Override\n public View getView(final int position, @Nullable View convertView, @NonNull ViewGroup parent) {\n if(convertView == null){\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.layout_list_sale_item, parent, false);\n }\n\n //MenuItem for specific position\n final MenuItem menuItem = menuItems.get(position);\n\n //Set saleItem variables\n final String fillName = menuItem.getItem();\n final double fillPrice = menuItem.getPrice();\n final ArrayList<Ingredient> fillIngArr = menuItem.getIngredients();\n\n //Update convertView\n final TextView itemName = convertView.findViewById(R.id.itemName);\n final Button minusButton = convertView.findViewById(R.id.minusButton);\n final EditText itemQty = convertView.findViewById(R.id.itemQty);\n final Button plusButton = convertView.findViewById(R.id.plusButton);\n\n //Set item Names\n itemName.setText(menuItem.getItem());\n\n\n //set tag buttons\n minusButton.setTag(position);\n plusButton.setTag(position);\n\n //Button Listeners\n minusButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //Subtract 1 from number up to 0\n int tempQty = Integer.parseInt(itemQty.getText().toString());\n if(tempQty > 0)\n {\n tempQty = tempQty - 1;\n itemQty.setText(String.valueOf(tempQty));\n }\n //get quantity\n int fillQuantity = Integer.parseInt(itemQty.getText().toString());\n //Create SaleItem\n SaleItem tempSaleItem = new SaleItem(fillName, fillQuantity, fillPrice, fillIngArr);\n //Update SaleItems Array\n saleItems.set(position, tempSaleItem);\n updateTotal();\n }\n });\n\n //Edit Text Listener\n itemQty.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {\n //get quantity\n int fillQuantity = Integer.parseInt(itemQty.getText().toString());\n //Create SaleItem\n SaleItem tempSaleItem = new SaleItem(fillName, fillQuantity, fillPrice, fillIngArr);\n //Update SaleItems Array\n saleItems.set(position, tempSaleItem);\n updateTotal();\n return false;\n }\n });\n\n\n\n plusButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //Add 1 to number\n int tempQty = Integer.parseInt(itemQty.getText().toString());\n tempQty = tempQty + 1;\n itemQty.setText(String.valueOf(tempQty));\n\n //get quantity\n int fillQuantity = Integer.parseInt(itemQty.getText().toString());\n //Create SaleItem\n SaleItem tempSaleItem = new SaleItem(fillName, fillQuantity, fillPrice, fillIngArr);\n //Update SaleItems Array\n saleItems.set(position, tempSaleItem);\n updateTotal();\n }\n });\n return convertView;\n }" ]
[ "0.61142504", "0.6084739", "0.57324", "0.56872076", "0.5642042", "0.56193227", "0.5585558", "0.54905415", "0.5458863", "0.545663", "0.545663", "0.545663", "0.54056555", "0.5394057", "0.53103447", "0.5285915", "0.5281566", "0.5281566", "0.52678144", "0.52578", "0.5235126", "0.520993", "0.5205452", "0.5205452", "0.5182206", "0.51814735", "0.5177384", "0.5174685", "0.5172261", "0.5157058", "0.51558", "0.5135705", "0.51310486", "0.5126723", "0.51216596", "0.51200217", "0.5117211", "0.5115511", "0.51063514", "0.51052856", "0.5096082", "0.50877607", "0.50816625", "0.50699705", "0.5069385", "0.50688905", "0.50574183", "0.5057326", "0.5043554", "0.5043554", "0.5042578", "0.5031883", "0.50285435", "0.50277984", "0.50207007", "0.5012728", "0.5001239", "0.49951148", "0.4988374", "0.49870887", "0.49559593", "0.49550644", "0.4954925", "0.49542388", "0.49484733", "0.49354255", "0.49339128", "0.49312302", "0.4923779", "0.49091738", "0.49077988", "0.48899406", "0.48899406", "0.48860285", "0.48808396", "0.48735967", "0.4873566", "0.48666108", "0.48608524", "0.485469", "0.48541763", "0.48529503", "0.48382744", "0.48303086", "0.48296407", "0.4826805", "0.48240942", "0.48236907", "0.48219773", "0.4815514", "0.4810283", "0.48096567", "0.48065674", "0.47973514", "0.47907215", "0.47829026", "0.47810796", "0.47656623", "0.47616535", "0.4755335" ]
0.7500634
0
The constructor for this class
public PorController() { window = utils.getWindow(); storageLocation = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public PSRelation()\n {\n }", "public CyanSus() {\n\n }", "public Chick() {\n\t}", "public Coche() {\n super();\n }", "private Instantiation(){}", "public Chauffeur() {\r\n\t}", "public Lanceur() {\n\t}", "public Orbiter() {\n }", "public Pitonyak_09_02() {\r\n }", "public CSSTidier() {\n\t}", "public Trening() {\n }", "public Pasien() {\r\n }", "public Cohete() {\n\n\t}", "public _355() {\n\n }", "private TMCourse() {\n\t}", "public Curso() {\r\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Anschrift() {\r\n }", "public Mitarbeit() {\r\n }", "public Tbdtokhaihq3() {\n super();\n }", "public Aanbieder() {\r\n\t\t}", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "public Clade() {}", "public Phl() {\n }", "public SgaexpedbultoImpl()\n {\n }", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "public RngObject() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "public Tigre() {\r\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "public Ov_Chipkaart() {\n\t\t\n\t}", "public Parameters() {\n\t}", "public Catelog() {\n super();\n }", "public AirAndPollen() {\n\n\t}", "public mapper3c() { super(); }", "public Magazzino() {\r\n }", "public TTau() {}", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public Supercar() {\r\n\t\t\r\n\t}", "public AntrianPasien() {\r\n\r\n }", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public Odontologo() {\n }", "public Libro() {\r\n }", "public Rol() {}", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Achterbahn() {\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public Data() {\n \n }", "public SlanjePoruke() {\n }", "public Data() {\n }", "public Data() {\n }", "public EnsembleLettre() {\n\t\t\n\t}", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "public Parser()\n {\n //nothing to do\n }", "public Property() {\n this(0, 0, 0, 0);\n }", "public Waschbecken() {\n this(0, 0);\n }", "public Vector() {\n construct();\n }", "public Tbdcongvan36() {\n super();\n }", "public Mannschaft() {\n }", "public DetArqueoRunt () {\r\n\r\n }", "public Goodsinfo() {\n super();\n }", "public Node(){\n\n\t\t}", "private Node() {\n\n }", "public Carrera(){\n }", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "public Self__1() {\n }", "public Soil()\n\t{\n\n\t}", "public Excellon ()\n {}", "public Cgg_jur_anticipo(){}", "public ExamMB() {\n }", "public CMN() {\n\t}", "public JSFOla() {\n }", "private Composite() {\n }", "public Generic(){\n\t\tthis(null);\n\t}", "public Data() {}", "public Alojamiento() {\r\n\t}", "public Rook()\n {\n super();\n }", "private Marinator() {\n }", "private Marinator() {\n }", "public Demo() {\n\t\t\n\t}", "public Genret() {\r\n }", "protected GeometricObject() \n\t{\n\t\tdateCreated = new java.util.Date();\n\t}", "public Job() {\n\t\t\t\n\t\t}", "Composite() {\n\n\t}", "@Override public void init()\n\t\t{\n\t\t}", "public TRIP_Sensor () {\n super();\n }", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public Content() {\n\t}", "public Livro() {\n\n\t}", "public Node() {\n }", "public SimOI() {\n super();\n }", "public Steganography() {}", "public Connection() {\n\t\t\n\t}", "@Override\n public void init() {}", "protected GraphNode() {\n }", "protected GraphNode() {\n }" ]
[ "0.8594242", "0.8276221", "0.7473248", "0.74486613", "0.7281836", "0.7248455", "0.72395784", "0.71978307", "0.71883607", "0.7187296", "0.71820605", "0.7179505", "0.7157305", "0.71564496", "0.7153138", "0.714791", "0.71356666", "0.7119485", "0.7094403", "0.7087575", "0.70670986", "0.7064723", "0.705121", "0.7024288", "0.70036864", "0.7003243", "0.6976512", "0.69763833", "0.69746935", "0.69673467", "0.69646084", "0.69636905", "0.69590104", "0.6958423", "0.69569814", "0.6953912", "0.69432884", "0.69264716", "0.6925151", "0.692444", "0.69208825", "0.6920264", "0.6915983", "0.69075906", "0.6901915", "0.69008946", "0.69005847", "0.6896249", "0.6895801", "0.68899417", "0.68859303", "0.68849057", "0.68763506", "0.68706024", "0.68706024", "0.68691456", "0.6854162", "0.6846173", "0.68428874", "0.68394506", "0.6836665", "0.682877", "0.68275136", "0.6820156", "0.6819805", "0.68186116", "0.6815811", "0.68158066", "0.68131924", "0.6808597", "0.6802256", "0.67998433", "0.6798637", "0.6796", "0.6791437", "0.6790335", "0.67870414", "0.677888", "0.6771678", "0.67653185", "0.67632926", "0.6762589", "0.6762589", "0.6759515", "0.6756647", "0.6754081", "0.6753402", "0.67383045", "0.67370564", "0.67364264", "0.6734332", "0.6733496", "0.67324066", "0.6732159", "0.6724885", "0.67231125", "0.672205", "0.6717408", "0.6703706", "0.6702692", "0.6702692" ]
0.0
-1
Unbinds the elements before closing
@PreDestroy public void onClose() { progSpin.progressProperty().unbind(); progLabel.textProperty().unbind(); processButton.disableProperty().unbind(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void close() {\n unbind();\n }", "@Override\n\tpublic void close() {\n\t\tsuper.close();\n\t\t\n\t\tbnetMap.clear();\n\t\titemIds.clear();\n\t}", "@Override\n public void close()\n throws XMLStreamException\n {\n /* 19-Jul-2004, TSa: Hmmh. Let's actually close all still open\n * elements, starting with currently open start (-> empty)\n * element, if one exists, and then closing scopes by adding\n * matching end elements.\n */\n _finishDocument(false);\n }", "public void clearAll()\n\t{\n\t\tClearMarks();\n\t\tpop = null;\n\t\tpopSequence = null;\n\t\ti1.killRoi();\n\t\tic.removeMouseListener(this);\n\t\tic.removeKeyListener(this);\n\t\tStackWindow sw1 = new StackWindow(i1, ic);\n\t\ti1.setWindow(sw1);\n\t\tdispose();\n\t}", "public void close(){\n PropertyEditor.checkRestrictions.remove();\r\n // removed current value for xml converterContext\r\n ConverterContext.remove();\r\n }", "public void close() {\n closeItems();\n }", "public void cancel_outhiding() {\n\t\t_outcaptures.removeAllElements();\n\t\t_outhides.removeAllElements();\n\t}", "@Override\n\t\tpublic void close() {\n\t\t\ttplItr = null;\n\t\t}", "void unbindAll();", "public void closeAlerts() {\n Collection<Alert> alerts = new ArrayList<Alert>();\n for(Widget anAlertPlace : alertPlace) {\n alerts.add((Alert) anAlertPlace);\n }\n for(Alert alert : alerts) {\n // automatically removes the alert from the alertPlace children list, hence the two loops\n alert.close();\n }\n }", "private void setFileClosed() {\n \topenFiles.pop();\n \trelativeNames.pop();\n }", "private void closeAll(){\r\n\t\t\r\n\t}", "public void clear() {\r\n\t\tthis.document = null;\r\n\t\tthis.elements.clear();\r\n\t}", "@Override\r\n\tpublic void onClosed() {\n\t\tmSlidingLayer.removeAllViews();\r\n\t}", "public void teardown() {\n for (App app : applications) {\n app.icon.setCallback(null);\n }\n\t}", "public void clear() {\n context = null;\n nestedElements.clear();\n }", "private void eraseContainer() {\r\n\t\tfor (Component comp:this.getComponents()) {\r\n\t\t\tcomp.setVisible(false);\r\n\t\t}\r\n\t}", "void unsetSearchWindowEnd();", "private void tear() {\n\t\tthis.torn = true;\n\t\tthis.getContainer().addToContents(getDucatContent());\n\t\tthis.getContainer().removeFromContents(this);\n\t}", "public void unloadDocument() {\n\t\tfor (int i=0; i<jtp.getTabCount()-1; i++) {\n\t\t\t((XCDisplay)jtp.getComponentAt(i)).unloadDocument();\n\t\t}\n\t\t//jtp.removeChangeListener(jtp.getChangeListeners()[0]);\n\t\t//jtp.removeAll();\n\t}", "public void discardContent() {\n dispose();\n }", "private static void removeAllElementsInContainer()\n {\n DefaultTableModel dm = (DefaultTableModel) JSoundsMainWindowViewController.table.getModel();\n for (int i = dm.getRowCount() - 1; i >= 0; i--) {\n dm.removeRow(i);\n } \n }", "public void exit()\n {\n m_doc = null;\n m_stylesheet = null;\n\n // m_defaultParaProperties = null;\n\n m_paragraph = null;\n m_paraProperties = null;\n m_charProperties = null;\n m_charPropertiesStack = null;\n m_container = null;\n m_containerStack = null;\n }", "public final void close() {\n LuaValue[] old = array;\n array = new LuaValue[] {old[index]};\n old[index] = null;\n index = 0;\n }", "public void closeElement() throws IOException {\r\n if (this.elements.size() <= 1) return;\r\n Element elt = popElement();\r\n this.depth--;\r\n // this is an empty element\r\n if (this.isNude) {\r\n writer.write('/');\r\n this.isNude = false;\r\n // the element contains text\r\n } else {\r\n if (elt.hasChildren) this.indent();\r\n this.writer.write('<');\r\n this.writer.write('/');\r\n int x = elt.qName.indexOf(' ');\r\n if (x < 0)\r\n this.writer.write(elt.qName);\r\n else\r\n this.writer.write(elt.qName.substring(0, x));\r\n }\r\n // restore previous mapping if necessary\r\n restorePrefixMapping(elt);\r\n this.writer.write('>');\r\n if (super.indent) this.writer.write('\\n');\r\n }", "public void unsetAmountOpen()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(AMOUNTOPEN$8, 0);\n }\n }", "public void popAll() {\n\n top = null;\n }", "void unsetEnd();", "void unbind(Object element);", "public void cancelAll() {\n this.disposables.dispose();\n }", "@Override\n\tpublic void close() {\n\t\tframe = null;\n\t\tclassic = null;\n\t\trace = null;\n\t\tbuild = null;\n\t\tbt_classic = null;\n\t\tbt_race = null;\n\t\tbt_build = null;\n\t\tGameView.VIEW.removeDialog();\n\t}", "public abstract void unbindComponents();", "public void reset() {\n aCollection = this.asciiMathLibraryBlock.getOwnedElement().stream().filter(e -> e instanceof NamedElement).collect(Collectors.toList());\n cCollection = this.customFuncBlock.getOwnedElement().stream().filter(e -> e instanceof NamedElement).collect(Collectors.toList());\n }", "public void destroy()\r\n\t{\r\n\t\tsetRoot(null);\r\n\t\tsetCounter(0);\r\n\t}", "void unsetEndPosition();", "public void destroyForAll() {\n super.destroyForAll();\n }", "public void unbind() {\n\t\tview.setAdapter(null);\n\t}", "public void disposeResources() {\n Arrays.fill(icons, null);\n iconComponent.removeAncestorListener(this);\n }", "@Override\n\tpublic void explode()\n\t{\n\t\tparent.remove( this );\n\t}", "@Override\n public void close() {\n for (Servlet registeredServlet : registeredServlets) {\n paxWeb.unregisterServlet(registeredServlet);\n }\n for (Filter filter : registeredFilters) {\n paxWeb.unregisterFilter(filter);\n }\n for (EventListener eventListener : registeredEventListeners) {\n paxWeb.unregisterEventListener(eventListener);\n }\n for (String alias : registeredResources) {\n paxWeb.unregister(alias);\n }\n }", "public void removeAll()\n {\n if (elemsListLayout != null)\n {\n elemsListLayout.clear();\n }\n }", "protected void cleanupOnClose() {\n\t}", "public void closing(OpenableElementInfo info) {\n\t\t// TODO what cleanup to do?\n\t}", "public void popAll()\r\n {\n this.top = null;\r\n }", "public void reset() {\n bb.clear();\n cb.clear();\n found = false;\n }", "@Override\n\t\t\t\t\tpublic void closing() {\n\t\t\t\t\t\tSystem.out.println(xmlData.get(\"topic\") + \" window has been closed\");\n\t\t\t\t\t\tliveTopics.remove(xmlData.get(\"topic\"));\n\t\t\t\t\t}", "private void clearButtons()\n {\n // remove all saved search Buttons\n listTableLayout.removeAllViews();\n }", "public void close() {\n this.sipStack = null;\n }", "@Override\r\n public void onEscapeEvent() {\r\n Hub.getMainWindow().removeWindowListener(cancelOnFocusLost);\r\n openModelsCombo.removeActionListener(onSelectModel);\r\n openModelsCombo.removeAllItems();\r\n templatesCombo.removeActionListener(onSelectTemplate);\r\n templatesCombo.removeAllItems();\r\n canvas.setUIInteraction(false);\r\n setVisible(false);\r\n }", "public final void close() {\r\n\t\tlayout.removeComponent(this);\r\n\t\tlayout.removeComponent(menu);\r\n\t}", "public void close()\n\t{\n\t\ttext = null;\n\t}", "public void removeAllElements() {\n for (int i = 0; i < OLast; i++) O[i] = null;\n ON = OLast = 0;\n Gap = -1;\n }", "private void clearButtons(){\n\t\t// remove-all saved search Buttons\n\t\tqueryTableLayout.removeAllViews();\n\t}", "public void clear()\n {\n for (SelectableGraphElement element : elements) {\n element.setSelected(false);\n }\n elements.clear();\n }", "protected void decrementNesting() {\n --m_nestingDepth;\n if (m_nestingDepth >= 0) {\n while (m_nestingDepth == m_namespaceDepth) {\n closeNamespaces();\n }\n }\n }", "private void tagClose() {\n if( tagOpen ) {\n out.println( \">\" ); \n tagOpen = false;\n }\n }", "public void clearRemovalTag() {\n\t levelOfRemoval = 0;\n\t}", "public void closeWatchers() {\n //inform all the children windows (plots/lists) that the parent has died\n for (RtStatusListener i : watchers) {\n i.bailOut();\n }\n\n watchers.clear();\n }", "public void purge() {\n\t\tIterator<T> it = iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t}\n\t}", "protected void terminate(){\r\n\t\tsetTerminate(true);\r\n\t\tHolder holder = this.getDirectHolder();\r\n\t\tsetHolder(null);\r\n\t\tholder.removeItem(this);\r\n\t}", "private void removeClosingTag(ArrayList p_tags, HtmlObjects.Tag p_tag)\n {\n for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o instanceof HtmlObjects.EndTag)\n {\n HtmlObjects.EndTag etag = (HtmlObjects.EndTag) o;\n\n if (p_tag.tag.equalsIgnoreCase(etag.tag)\n && p_tag.partnerId == etag.partnerId)\n {\n p_tags.remove(i);\n return;\n }\n }\n }\n }", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "final void makeNonRecursive() { this.unboundedBoundSymbols = null; }", "public void clear() {\n super.clear();\n locationToWidget.clear();\n widgetToCaptionWrapper.clear();\n }", "public void removeAllElements();", "public void closeEndTag() throws XMLStreamException {\n write(HtmlObject.HtmlMarkUp.CLOSE_BRACKER);\n }", "private void closeNamespaces() {\n \n // revert prefixes for namespaces included in last declaration\n DeclarationInfo info = (DeclarationInfo)m_namespaceStack.pop();\n int[] deltas = info.m_deltas;\n String[] priors = info.m_priors;\n for (int i = deltas.length - 1; i >= 0; i--) {\n int index = deltas[i];\n undefineNamespace(index);\n if (index < m_prefixes.length) {\n m_prefixes[index] = priors[i];\n } else if (m_extensionUris != null) {\n index -= m_prefixes.length;\n for (int j = 0; j < m_extensionUris.length; j++) {\n int length = m_extensionUris[j].length;\n if (index < length) {\n m_extensionPrefixes[j][index] = priors[i];\n } else {\n index -= length;\n }\n }\n }\n }\n \n // set up for clearing next nested set\n if (m_namespaceStack.empty()) {\n m_namespaceDepth = -1;\n } else {\n m_namespaceDepth =\n ((DeclarationInfo)m_namespaceStack.peek()).m_depth;\n }\n }", "public void exitScope(){\n\t\tfor (SymbolEntry se: scope.get(0)){\n\t\t\tsymbolMap.get(se.symbol.name).remove(0);\n\t\t\tif(symbolMap.get(se.symbol.name).isEmpty())\n\t\t\t\tsymbolMap.remove(se.symbol.name);\n\t\t}\n\t\tscope.remove(0);\n\t\t--scopeLevel;\n\t}", "public void free(){\n\t\t\tif(this.elements != null){\n\t\t\t\tfor(Element element : this.elements){\n\t\t\t\t\telement.free();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n\tpublic void close() throws Exception {\n\t\tsuper.close();\n\t\t\n\t\tbnetMap.clear();\n\t\titemIds.clear();\n\t}", "void closeAll();", "public void cleanup() {\n if (cleaned) {\n return;\n }\n for (val cleanup : cleanups) {\n cleanup.accept(this);\n }\n clear(true);\n cleanups.clear();\n attributes.clear();\n if (parent != null) {\n parent.remove(this);\n }\n cleaned = true;\n }", "public static void close() {\n HashMap<String, Transaction> map = instance.getTransactions();\n for (Transaction transaction : map.values()) {\n transaction.destroy();\n }\n map.clear();\n instance.transactions.remove();\n }", "public void closeFrame() {\n framesize = wordpointer = bitindex = -1;\n }", "void removeExistingGlue() {\r\n\t\tfor (int i = outputStream.size() - 1; i >= 0; i--) {\r\n\t\t\tRTObject c = outputStream.get(i);\r\n\t\t\tif (c instanceof Glue) {\r\n\t\t\t\toutputStream.remove(i);\r\n\t\t\t} else if (c instanceof ControlCommand) { // e.g.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// BeginString\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\toutputStreamDirty();\r\n\t}", "@Override\r\n\tpublic void closeMe()\r\n\t{\r\n\t\t// stop listening to node changes\r\n\r\n\t\t// and let the parent close\r\n\t\tsuper.closeMe();\r\n\t}", "@Override\n\tpublic void detalhar() {\n\t\t\n\t}", "private void remove() {\n \t\tfor(int i = 0; i < 5; i++) {\n \t\t\trMol[i].setText(\"\");\n \t\t\trGrams[i].setText(\"\");\n \t\t\tpMol[i].setText(\"\");\n \t\t\tpGrams[i].setText(\"\");\n \t\t}\n }", "@Override\n\tpublic void hide() {\n\t\thits.remove();\n\t\ttimeLeft.remove();\n\t\tdarken.remove();\n\t\tcontainer.remove();\n\t\ttimer = null;\n\t\ttrainingBag = null;\n\t}", "protected void closeThis() {\n\t\tthis.setVisible(false);\n\t}", "public void closeAll() {\n\t\tInteger[] keys = visible.keySet().stream().toArray(Integer[]::new);\n\t\tfor (int k : keys) {\n\t\t\tclose(k >> 16, k & 0xFFFF);\n\t\t}\n\t}", "void unbind(boolean shouldPlaceSpacer, boolean switchingStream);", "public void closeAllWindow() {\n\t\tthis.dispose();\n\t\tSystem.exit(0);\n\t}", "private void stopEsp(){\r\n for(Rectangle r : EspBoxes)\r\n if(r != null)\r\n r.setVisible(false);\r\n }", "@Override\r\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}", "public void close()\n {\n myListenerHelper.close();\n mySpecializedProcessorsLock.writeLock().lock();\n try\n {\n myRenderableGeometryProcessors.clear();\n myProjectionSensitiveProcessors.clear();\n }\n finally\n {\n mySpecializedProcessorsLock.writeLock().unlock();\n }\n myProcessorsLock.writeLock().lock();\n try\n {\n for (final GeometryProcessor<? extends Geometry> proc : myGeometryProcessorsMap.values())\n {\n myProcessorBuilder.getPickManager().removeGeometries(proc.getGeometries());\n proc.close();\n }\n myGeometryProcessorsMap.clear();\n myInactiveGeometries.clear();\n recalculateCoveredTimeSpans();\n myGeometryProcessorsSnapshot = Collections.emptyList();\n }\n finally\n {\n myProcessorsLock.writeLock().unlock();\n }\n\n myUnprocessedGeometryLock.lock();\n try\n {\n removeTimeListeners();\n }\n finally\n {\n myUnprocessedGeometryLock.unlock();\n }\n }", "public void unsetDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATECLOSE$4, 0);\n }\n }", "@Override\n public void clear() {\n elements.clear();\n indexByElement.clear();\n }", "public void exit(AllElement node) {\n exit((CommonCompositorDefinition)node);\n }", "void unbind() { }", "public void resetBelt() throws JposException;", "public void close(){\n this.mMovieCursor.unregisterContentObserver(mContentObserver);\n mContentObserver = null;\n this.mMovieCursor.close();\n loadedMovies.clear();\n loadedMovies = null;\n }", "public void clearLeadUI() {\n\t\tfor (JLabel item : leadList) {\n\t\t\testimationGame.getContentPane().remove(item);\n\t\t}\n\t\tleadList.clear();\n\t}", "@Override\n public void windowDeiconified(WindowEvent we) {\n }", "public void clearContainerElements() {\n nestedElements.clear();\n }", "protected void clearOutEvents() {\n\t}" ]
[ "0.60976046", "0.6003477", "0.5995002", "0.59613454", "0.592442", "0.5918397", "0.585557", "0.57862973", "0.5780644", "0.57526124", "0.5742161", "0.5663252", "0.56582266", "0.56573653", "0.5639651", "0.5615545", "0.559141", "0.55850893", "0.55720985", "0.55605376", "0.55430406", "0.5536869", "0.552927", "0.55291224", "0.5527733", "0.55264676", "0.549961", "0.54931086", "0.5492058", "0.548066", "0.5452362", "0.54481584", "0.5446936", "0.54378146", "0.5434778", "0.5425684", "0.54141283", "0.5413103", "0.54125816", "0.54110503", "0.53797686", "0.53759724", "0.53716546", "0.53706354", "0.53663796", "0.5359336", "0.5357421", "0.5353409", "0.5346155", "0.53453666", "0.53390443", "0.5311865", "0.5309953", "0.53083265", "0.53072107", "0.53045666", "0.53008115", "0.52984387", "0.5295925", "0.5289986", "0.5287782", "0.52865326", "0.52865326", "0.52865326", "0.52865326", "0.52865326", "0.52842015", "0.5278133", "0.5277925", "0.5276576", "0.52757776", "0.5275618", "0.52747285", "0.52737975", "0.5270016", "0.5266331", "0.52623713", "0.52548313", "0.5244999", "0.52407503", "0.5236602", "0.52352905", "0.5232663", "0.52278405", "0.5227349", "0.52247006", "0.5224369", "0.5222802", "0.52199787", "0.52199787", "0.521893", "0.52181035", "0.52171063", "0.5214886", "0.5212834", "0.5210553", "0.52094275", "0.52079904", "0.520687", "0.5205926", "0.52005607" ]
0.0
-1
Interaction IkanSungutGanda kepada pengunjung.
@Override public void interact() { System.out.print("Halo aku ikan di bawah laut dalam lho, aku punya lampu supaya aku" + "bisa tetap melihat di kegelapan"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "public void tampilKarakterC(){\r\n System.out.println(\"Saya adalah binatang \");\r\n }", "@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }", "public void sugangSincheong(CSugang sugang) {\n\t\t\r\n\t}", "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "public abstract String dohvatiKontakt();", "private void hienThi() {\n try {\n if (isInsert) {\n txtMaThucAn.setText(ThucPhamController.hienMa());\n txtMaThucAn.setEnabled(false);\n hienTrangThai();\n } else {\n txtMaThucAn.setText(tp.getMathucpham());\n txtMaThucAn.setEnabled(false);\n txtTenThucAn.setText(tp.getTenthucpham());\n jSpinSoLuong.setValue(tp.getSoluong());\n String sDonGia = Integer.toString((int) tp.getDongia());\n txtDonGia.setText(sDonGia);\n hienTrangThai();\n if (tp.getTrangthai() == 1) {\n cbbTrangThai.setSelectedIndex(0);\n } else {\n cbbTrangThai.setSelectedIndex(1);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "public static void main(String[] args) {\n System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n System.out.println(\"--Selamat Datang Di Kuis Matematika--\");\n System.out.println(\"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\");\n System.out.println(\"Daftar soal: \");\n soal();\n System.out.println(\"Silahkan input angka sesuai dengan nomer soal: \");\n pilihan();\n \n \n \n }", "void kiemTraThangHopLi() {\n }", "public void Makan()\n\t{\n\tSystem.out.println(\"Harimau Makan Daging dan minum susu\");\n\tSystem.out.println();\n\t}", "public String interact() {\n return \"Nguiikk!\";\n }", "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "void tampilKarakterA();", "public void Jomijoma()\n {\n System.out.println(\"Ami dadar jomi joma paya geci\");\n }", "public static void main(String[] args) {\n\n Bilangan tampilan = new Bilangan();\n System.out.println(\"Nilai E = \"+tampilan.tampilkanE());\n System.out.println(\"Nilai F = \"+tampilan.tampilkanF());\n System.out.println(\"Nilai G = \"+tampilan.tampilkanG());\n\n //nilai diintput\n tampilan.inputE(100);\n System.out.println(\"Nilai E setelah diinput = \"+tampilan.tampilkanE());\n tampilan.inputF(200);\n System.out.println(\"Nilai F setelah diinput = \"+tampilan.tampilkanF());\n tampilan.inputG(300);\n System.out.println(\"Nilai G setelah diinput = \"+tampilan.tampilkanG());\n\n //panggil method tambah(), kurang(), kali(), bagi()\n System.out.println(\"Hasil pertambahan E, F dan G = \"+tampilan.tambah());\n System.out.println(\"Hasil pengurangan G dikurang E = \"+tampilan.kurang());\n System.out.println(\"Hasil perkalian E, F dan G = \"+tampilan.perkalian());\n System.out.println(\"Hasil pembagian G dibagi E = \"+tampilan.pembagian());\n }", "public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }", "public void mainkan(){\n System.out.println();\n //System.out.printf(\"Waktu: %1.2f\\n\", this.oPlayer.getWaktu());\n System.out.println(\"Nama : \" + this.oPlayer.nama);\n System.out.println(\"Senjata : \" + this.oPlayer.getNamaSenjataDigunakan());\n System.out.println(\"Kesehatan : \" + this.oPlayer.getKesehatan());\n// System.out.println(\"Daftar Efek : \" + this.oPlayer.getDaftarEfekDiri());\n System.out.println(\"Nama Tempat : \" + this.namaTempat);\n System.out.println(\"Narasi : \" + this.narasi);\n }", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "public MangKaib(Main game){\n super(game);\n taust = new Taust(0,0,600,400);\n taust.checkLevel();// checkime, mis areaga tegu on peale uue tausta loomist\n mobSpawner.lisaMobInfo(); // laeme mob info.\n //game, width height draw x draw y, elud, damage, nimi, exp\n mangija = new Player(game, 97,174,50,370,100,10);\n mspawner = new mobSpawner(game, Mobid[13].getWidth(), Mobid[13].getHeight(), 450, 370, km[13].elud, km[13].dpsMin, km[13].dpsMax, km[13].mobSpeed, km[13].nimi, km[13].mobXp, km[13].mobGold,km[13].mobGold);\n magicAttack = new magicAttack(game,(mangija.x+mangija.width-15),(mangija.y-(mangija.height/2)),40,20,1,mangija.damage);\n kLiides = new uiBox(0,400,600,200);\n kLiides2 = new uiSide(600,0,200,600);\n uusRida = new Tekstid(0,420);//420 v 590\n }", "@Override\n public void onClick(View view) {\n kurangIsi();\n }", "public String interact() {\n return suara;\n }", "public void displayPhieuXuatKho() {\n\t\tlog.info(\"-----displayPhieuXuatKho()-----\");\n\t\tif (!maPhieu.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tDieuTriUtilDelegate dieuTriUtilDelegate = DieuTriUtilDelegate.getInstance();\n\t\t\t\tPhieuTraKhoDelegate pxkWS = PhieuTraKhoDelegate.getInstance();\n\t\t\t\tCtTraKhoDelegate ctxWS = CtTraKhoDelegate.getInstance();\n\t\t\t\tDmKhoa dmKhoaNhan = new DmKhoa();\n\t\t\t\tdmKhoaNhan = (DmKhoa)dieuTriUtilDelegate.findByMa(IConstantsRes.KHOA_KC_MA, \"DmKhoa\", \"dmkhoaMa\");\n\t\t\t\tphieuTra = pxkWS.findByPhieutrakhoByKhoNhan(maPhieu, dmKhoaNhan.getDmkhoaMaso());\n\t\t\t\tif (phieuTra != null) {\n\t\t\t\t\tmaPhieu = phieuTra.getPhieutrakhoMa();\n\t\t\t\t\tresetInfo();\n\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\t\tngayXuat = df.format(phieuTra.getPhieutrakhoNgay());\n\t\t\t\t\tfor (CtTraKho ct : ctxWS.findByphieutrakhoMa(phieuTra.getPhieutrakhoMa())) {\n\t\t\t\t\t\tCtTraKhoExt ctxEx = new CtTraKhoExt();\n\t\t\t\t\t\tctxEx.setCtTraKho(ct);\n\t\t\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t\t\t}\n\t\t\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\t\t\tisFound=\"true\";\n\t\t\t\t\t// = null la chua luu ton kho -> cho ghi nhan\n\t\t\t\t\t// = 1 da luu to kho -> khong cho ghi nhan\n\t\t\t\t\tif(phieuTra.getPhieutrakhoNgaygiophat()==null)\n\t\t\t\t\tisUpdate = \"1\";\n\t\t\t\t\telse\n\t\t\t\t\t\tisUpdate = \"0\";\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\ttinhTien();\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\treset();\n\t\t\t\tlog.error(String.format(\"-----Error: %s\", e));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void nhap() {\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\" so cmnd:\");\n\t\tthis.cmnd = reader.nextLine();\n\t\tSystem.out.println(\" nhap ho ten khach hang:\");\n\t\tthis.hoTenKhachHang = reader.nextLine();\n\t\tSystem.out.println(\" so tien gui:\");\n\t\tthis.soTienGui = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap ngay lap:\");\n\t\tthis.ngayLap = reader.nextLine();\n\t\tSystem.out.println(\" lai suat:\");\n\t\tthis.laiSuat = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" so thang gui:\");\n\t\tthis.soThangGui = Integer.parseInt(reader.nextLine());\n\t\tSystem.out.println(\" nhap ky han:\");\n\t\tthis.kyHan = Integer.parseInt(reader.nextLine());\n\t}", "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "private void hienThiDichVuKhachHangSuDung(String maKH){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layDichVuKhachHangSuDung(maKH);\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaDV.addItem(suDungModel.getMaDV());\n }\n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "public void klikkaa(Tavarat tavarat, Klikattava klikattava);", "@Override\n public void onClick(View v) {\n if (!vKenalan()){\n dialog.show();\n berbicara.play(\"it seems like we haven't met yet, don't know it then don't love, let's know you first\");\n return;\n }\n // untuk toogle\n if (diam){\n bolehMendengarkan();\n diam = false;\n }else {\n tidakBolehMendengarkan();\n diam = true;\n }\n }", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "void NhapGT(int thang, int nam) {\n }", "@Override\n\tpublic void nhanTinNhan() {\n\n\t}", "public Harimau(String namaHarimau)\n\t{\n\t//mengisi pengubah yang diwarisi oleh kelas abstract\n\tHarimau.nama = namaHarimau;\n\t}", "public DanhSachHocPhanDaDangKi() {\n initComponents();\n updateTable();\n }", "public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "public void asetaTeksti(){\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "@Override\n\tpublic void habla() {\n\t\tSystem.out.println(\"Miau, Miau!!\");\n\t}", "public void actionsTouches () {\n\t\t//Gestion des deplacements du mineur si demande\n\t\tif (Partie.touche == 'g' || Partie.touche == 'd' || Partie.touche == 'h' || Partie.touche == 'b') deplacements();\n\n\t\t//Affichage du labyrinthe et des instructions, puis attente de consignes clavier.\n\t\tpartie.affichageLabyrinthe();\n\n\t\t//Quitte la partie si demande.\n\t\tif (Partie.touche == 'q') partie.quitter();\n\n\t\t//Trouve et affiche une solution si demande.\n\t\tif (Partie.touche == 's') affichageSolution();\n\n\t\t//Recommence la partie si demande.\n\t\tif (Partie.touche == 'r') {\n\t\t\tgrille.removeAll();\n\t\t\tpartie.initialisation();\n\t\t}\n\n\t\t//Affichage de l'aide si demande\n\t\tif (Partie.touche == 'a') {\n\t\t\tString texteAide = new String();\n\t\t\tswitch(themeJeu) {\n\t\t\tcase 2 : texteAide = \"Le but du jeu est d'aider Link à trouver la sortie du donjon tout en récupérant le(s) coffre(s).\\n Link doit egalement recuperer la Master Sword qui permet de tuer le monstre bloquant le chemin.\\n\\nLink se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 3 : texteAide = \"Le but du jeu est d'aider Samus à trouver la sortie du vaisseau tout en récupérant le(s) émeraude(s).\\nSamus doit egalement recuperer la bombe qui permet de tuer le metroid qui bloque l'accès à la sortie.\\n\\nSamus se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 4 : texteAide = \"Le but du jeu est d'aider le pompier à trouver la sortie du batiment tout en sauvant le(s) rescapé(s).\\nLe pompier doit egalement recuperer l'extincteur qui permet d'éteindre le feu qui bloque l'accès à la sortie.\\n\\nLe pompier se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 5 : texteAide = \"Le but du jeu est d'aider Mario à trouver le drapeau de sortie tout en ramassant le(s) pièce(s).\\nMario doit egalement recuperer l'étoile d'invincibilité qui permet de se débarasser du Goomba qui l'empêche de sortir.\\n\\nMario se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Here we gooo !\"; break;\n\t\t\tdefault : texteAide = \"Le but du jeu est d'aider le mineur à trouver la sortie du labyrinthe tout en extrayant le(s) filon(s).\\nLe mineur doit egalement recuperer la clef qui permet l'ouverture de le porte qui bloque l'accès à la sortie.\\n\\nLe mineur se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n============================================ AIDE ========================================\\n\\n\" + texteAide + \"\\n\\n==========================================================================================\\n\");\n\t\t\tJOptionPane.showMessageDialog(null, texteAide, \"Aide\", JOptionPane.QUESTION_MESSAGE);\n\t\t\tPartie.touche = ' ';\n\t\t}\n\n\t\t//Affichage de les infos si demande\n\t\tif (Partie.touche == 'i') {\n\t\t\tSystem.out.println(\"\\n============================================ INFOS =======================================\\n\\nCe jeu a ete developpe par Francois ADAM et Benjamin Rancinangue\\ndans le cadre du projet IPIPIP 2015.\\n\\n==========================================================================================\\n\");\n\t\t\tPartie.touche = ' ';\n\t\t\tJOptionPane.showMessageDialog(null, \"Ce jeu a été développé par François Adam et Benjamin Rancinangue\\ndans le cadre du projet IPIPIP 2015.\", \"Infos\", JOptionPane.INFORMATION_MESSAGE, new ImageIcon(getClass().getResource(\"/images/EMN.png\")));\n\t\t}\n\n\t\t//Nettoyage de l'ecran de console\n\t\tSystem.out.println(\"\\n==========================================================================================\\n\");\n\t}", "@Override\n\tpublic void gaga() {\n\t\tthis.zhizhi();\n\t}", "private void btnHomeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnHomeActionPerformed\n// timingnyaDiStop();\n int inginKeluar;// 0 = (YES) exit ke main menu , 1 = (NO)tidak jadi //default netbeansnya\n inginKeluar = JOptionPane.showConfirmDialog(this, \"Anda yakin ingin mengakhiri Pembahasan / Materi?\", \"Konfirmasi Kembali\", 0);\n if (inginKeluar == 0) //kalo bener mau keluar, skoring muncul (masukkanSkor)\n {\n try {\n masukkanSkor();\n\n } catch (IOException ex) {\n Logger.getLogger(bahas.class\n .getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n timingnyaMainLagi();\n }\n }", "public v_halaman() {\n initComponents();\n this.setLocationRelativeTo(this);\n profileFrame.setLocationRelativeTo(null);\n kandang1Button.setActionCommand(\"kandang1\");\n kandang2Button.setActionCommand(\"kandang2\");\n kandang3Button.setActionCommand(\"kandang3\");\n kandang4Button.setActionCommand(\"kandang4\");\n kandang5Button.setActionCommand(\"kandang5\");\n kandang6Button.setActionCommand(\"kandang6\");\n rumputGratis1.setActionCommand(\"rumput\"+1);\n rumputGratis2.setActionCommand(\"rumput\"+2);\n rumputGratis3.setActionCommand(\"rumput\"+3);\n rumputGratis4.setActionCommand(\"rumput\"+4);\n rumputGratis5.setActionCommand(\"rumput\"+5);\n rumputGratis6.setActionCommand(\"rumput\"+6);\n rumputGratis7.setActionCommand(\"rumput\"+7);\n rumputGratis8.setActionCommand(\"rumput\"+8);\n rumputGratis9.setActionCommand(\"rumput\"+9);\n rumputGratis10.setActionCommand(\"rumput\"+10);\n papanBeliKandang.setActionCommand(\"papan1\");\n papanBelikandang2.setActionCommand(\"papan2\");\n papanBelikandang3.setActionCommand(\"papan3\");\n papanBelikandang4.setActionCommand(\"papan4\");\n papanBelikandang5.setActionCommand(\"papan5\");\n\n for (int i = 0; i < 10; i++) {\n getButtonRumput()[i].setVisible(false);\n }\n for (int i = 0; i < 5; i++) {\n getButtonPapan()[i].setVisible(false);\n }\n \n \n }", "@Override\n\tpublic void xoaDonHang(String ma_kh) {\n\n\t}", "public String suaTaiKhoan(){\n\t\ttaiKhoanDao.suaTaiKhoan(ttCaNhan);\r\n\t\t\r\n\t\t//kiem tra quyen dang nhap\r\n\t\tint kt=kiemTraquyenDN();\r\n\t\tif(kt==1){\r\n\t\t\treturn \"QLTaiKhoan_Admin?faces-redirect=true\";\r\n\t\t}else if(kt==3){\r\n\t\t\treturn \"QLTaiKhoan_NV?faces-redirect=true\";\r\n\t\t}else{\r\n\t\t\treturn \"QLTaiKhoan_NVDH?faces-redirect=true\";\r\n\t\t}\r\n\t}", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public static void jawaban1() {\n int cari;\r\n boolean ditemukan = true;\r\n int a=0;\r\n\r\n //membentuk array yang berisi data\r\n int[] angka = new int[]{74, 98, 72, 74, 72, 90, 81, 72};\r\n \r\n //mengeluarkan array\r\n for (int i = 0; i < angka.length; i++) {\r\n System.out.print(angka [i]+\"\\t\");\r\n\r\n \r\n }\r\n\r\n\r\n //meminta user memasukkan angka yang hendak dicari\r\n Scanner keyboard = new Scanner(System.in);\r\n System.out.println(\"\\nMasukkan angka yang ingin anda cari dibawah sini\");\r\n cari = keyboard.nextInt();\r\n\r\n //proses pencarian atau pencocokan data pada array\r\n for (int i = 0; i < angka.length; i++) {\r\n if (cari == angka[i]) {\r\n ditemukan = true;\r\n \r\n System.out.println(\"Angka yang anda masukkan ada didalam data ini\");\r\n \r\n break;\r\n }\r\n\r\n }\r\n //proses hitung data\r\n if (ditemukan == true) {\r\n \r\n for (int i = 0; i < angka.length; i++) {\r\n if (angka[i]== cari){\r\n a++;\r\n }\r\n \r\n }\r\n\r\n }\r\n \r\n System.out.println(\"Selamat data anda dengan angka \"+cari+ \" ditemukan sebanyak \"+a);\r\n }", "public add_karyawan() {\n initComponents();\n showTable();\n randomNumber();\n setLocation(500, 200);\n }", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }", "public static void menuInicial() {\n System.out.println(\"Boas vindas à Arena pokemon Treinador!!!\");\n System.out.println(\"Digite 1 para fazer sua inscrição\");\n System.out.println(\"Digite 2 para sair\");\n\n }", "public doimatkhau() {\n initComponents();\n setLocationRelativeTo(null);\n txtTendangnhap.setText(sharehelper.user.getMaNV());\n }", "public void kurangIsi(){\n status();\n //kondisi jika air kurang atau sama dengan level 0\n if(level==0){Toast.makeText(this,\"Air Sedikit\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(--level);\n }", "public void ektypwsiAstheni() {\n\t\t// Elegxw an yparxoun astheneis\n\t\tif(numOfPatient != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR PATIENT No.\" + (i+1) + \":\");\n\t\t\t\tpatient[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Override\n\tpublic int hitungPemasukan() {\n\t\treturn getHarga() * getPenjualan();\n\t}", "public Gigamesh(int vel, int daño,String derecha, String izquierda,String arriba, String abajo, String ataca,String ataca2,String interact,String salta,int intervaloAtaque)\n {\n super(\"giga\",9,6,vel,daño,derecha,izquierda,arriba,abajo,ataca,ataca2,interact,salta,intervaloAtaque); \n \n }", "@Override\n\tpublic void chi(String pinzhong, String xingming) {\n\t\n\t}", "public void cambiarIdioma(Jugador jugador, Button btnNoExit, Button btnSiExit,\n TextView logoBocadilloIntroExit) {\n\n int idioma = jugador.getIdioma();\n\n if (idioma == 0) { //CAT\n btnNoExit.setText(\"No\");\n btnSiExit.setText(\"Si\");\n logoBocadilloIntroExit.setText(R.string.exitCAT);\n } else if (idioma == 1) { //ESP\n btnNoExit.setText(\"No\");\n btnSiExit.setText(\"Si\");\n logoBocadilloIntroExit.setText(R.string.exitESP);\n } else { //ENG\n btnNoExit.setText(\"No\");\n btnSiExit.setText(\"Yes\");\n logoBocadilloIntroExit.setText(R.string.exitENG);\n }\n }", "public Pasien(String nama, String alamat, String tempatLahir, int tanggalLahir, int bulanLahir, int tahunLahir, String NIK) {\r\n this.nama = nama;\r\n this.alamat = alamat;\r\n this.tempatLahir = tempatLahir;\r\n this.NIK = NIK;\r\n this.tanggalLahir = tanggalLahir;\r\n this.bulanLahir = bulanLahir;\r\n this.tahunLahir = tahunLahir;\r\n }", "@Override\r\n\tpublic int hitungBiayaKopi(int jumlahHalaman) {\n\t\treturn jumlahHalaman * 750;\r\n\t}", "@Override\r\n public void onClick(View v)\r\n {\n \r\n DJIDrone.getDjiMainController().setGohomeAltitude(50, new DJIExecuteBooleanResultCallback() {\r\n \r\n @Override\r\n public void onResult(boolean result)\r\n {\r\n // TODO Auto-generated method stub\r\n if (result) {\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Set Successfully\"));\r\n } else {\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Set Fail\"));\r\n }\r\n }\r\n });\r\n }", "public void sendeSpielfeld();", "public static void main(String[] args) {\n int[][] agungji = {{1,2},{2,4}};\r\n System.out.println(\"memasukkan nilai secara langsung\");\r\n keluarkan(agungji);\r\n //ini menentukan jumlah baris dan kolom array\r\n int[][] anjay = new int [5][5];\r\n System.out.println(\"dengan memasukkan nilai baris dan kolom\");\r\n keluarkan(anjay);\r\n\r\n //looping manual\r\n// for(int i = 0; i < anjay.length; i++){\r\n// System.out.print(\"[\");\r\n// for(int j = 0; j < anjay[i].length;j++){\r\n// System.out.print(anjay[i][j] + \",\");\r\n// }\r\n// System.out.print(\"]\\n\");\r\n// }\r\n // looping foreach\r\n\r\n int[][] agungji_2 = {\r\n {31,32,33,34,35},\r\n {11,12,13,14,15},\r\n {21,22,23,24,25}\r\n };\r\n keluarkan(agungji_2);\r\n\r\n }", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "@Override\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\tif (unekoa != null) {\n\t\t\t\t\t\t\tunekoa.desaukeratu();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// JComponent p = (JComponent) e.getSource();\n\t\t\t\t\t\tk.aukeratu();\n\t\t\t\t\t\tunekoa = k;\n\t\t\t\t\t\tHautagaiakText.setText(k.getHautagaiak());\n\t\t\t\t\t\tif (k.getBalioa() == 0) {\n\t\t\t\t\t\t\tBalioaText.setText(\"\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBalioaText.setText(String.valueOf(k.getBalioa()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }", "public static void printSieger(){\n System.out.println(\"Sieger ist \" +GameController.SIEGER);\n }", "public void tiepTucNhap() {\n\t\tlog.info(\"-----tiepTucNhap()-----\");\n\t\tlog.info(String.format(\"-----index: %s\", updateItem));\n\t\t\n\t\tlog.info(\"tonkhoMa:\"+tonkhoMa);\n\t\tlog.info(\"xuat:\"+xuat);\n\t\tlog.info(\"dmtMa:\"+dmtMa);\n\t\tlog.info(\"updateItem:\"+updateItem);\n\t\tlog.info(\"tonkho:\"+tonkho);\n\n\t\tif (xuat == null || xuat.equals(\"\") || tonkho == null || tonkho.equals(\"\")){\n\t\t\treturn;\n\t\t}\n\t\t \n\t\tif (\"\".equals(tonkhoMa) && tonkhoMa == null) {\n\t\t\tlog.info(\"-----tonkho ma is null.\");\n\t\t} else {\n\t\t\tlog.info(String.format(\"-----tonkho ma: %s\", tonkhoMa));\n\t\t\tTonKho tk = null;\n\t\t\t\n\t\t\tTonKhoDelegate tkDelegate;\n\t\t\ttry {\n\t\t\t\ttkDelegate = TonKhoDelegate.getInstance();\n\t\t\t\t\n\t\t\t\ttk = tkDelegate.find(Integer.valueOf(tonkhoMa));\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tCtTraKho ctx = new CtTraKho();\n\t\t\t\n\t\t\tDouble slXuat = new Double(\"0\");\n\t\t\tfor (int i = 0; i < listCtKhoLeTraEx.size(); i++) {\n\t\t\t\tCtTraKho ctxk = listCtKhoLeTraEx.get(i).getCtTraKho();\n\t\t\t\tif (malk.equals(ctxk.getCttrakhoMalk())) {\n\t\t\t\t\tlog.info(\"-----malk \" + malk);\n\t\t\t\t\tslXuat += ctxk.getCttrakhoSoluong();\n\t\t\t\t\tupdateItem = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tslXuat += Double.valueOf(xuat);\n\t\t\tctx.setCttrakhoSoluong(slXuat);\n\t\t\tCtTraKhoExt ctxEx = createCtXuatKho(ctx, tk);\n\t\t\tlog.info(\"-----xuat: \" + slXuat);\n\t\t\t\n\t\t\tif (updateItem.equals(-1)) {\n\t\t\t\tlog.info(\"-----them moi ct\");\n\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t} else {\n\t\t\t\tlog.info(\"-----Cap nhat ct-----\");\n\t\t\t\tif (tk != null) {\n\t\t\t\t\tlistCtKhoLeTraEx.set(updateItem, ctxEx);\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_TK_NULL, dmtMa);\n\t\t\t\t}\n\n\t\t\t\tlog.info(String.format(\"-----update ct: %s\", ctx.getCttrakhoThutu()));\n\t\t\t}\n\n\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\tlog.info(String.format(\"-----listCtXuatKho: %s\", listCtKhoLeTraEx.size()));\n\t\t\ttonkhoMa = \"\";\n\t\t\tdmtMa = \"\";\n\t\t\ttonkho = new Double(0);\n\t\t\txuat = new Double(0);\n\t\t\tupdateItem = -1;\n\t\t}\n\t\ttinhTien();\n\t}", "@Override\n\tpublic void HowtoEat() {\n\t\tSystem.out.println(\"Fırında Ye!!\");\n\t}", "public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}", "public hitungan() {\n initComponents();\n }", "public void ciudad(){\n System.out.println(\"ciudad londres\");\n }", "public void printTagihanTamu() {\n for (Tagihan t: daftarTagihan.values()) {\n System.out.println(\"Tamu:\"+t.tamu.nama);\n System.out.println(\"Tagihan:\"+t.hitungSemuaTagihan());\n }\n }", "public static void main(String [] args) {\n Guru guru = new Guru();\n\n guru.id = 1;\n guru.nik = \"18630958\";\n guru.nama = \"Rizka Oktaviyani\";\n guru.nilai = 3.6;\n guru.alamat = \"Banjarbaru\";\n guru.tampilData();\n\n Guru guru1 = new Guru(2,\"18630011\", \"Ananda\", 3.1, \"Banjarbaru\");\n guru1.tampilDataDenganGaris( \"---------------------------\");\n\n\n double hasilReturnValue = guru.getNilai();\n System.out.println(\"Hasil return value : \" + hasilReturnValue);\n\n// guru.tampilDataDenganGaris(\"===========================\");\n// guru.tampilDataDenganGaris(\"***************************\");\n// guru.hitungLuasPersegiPanjang(5,3);\n// guru.hitungLuasPersegiPanjang(7,3);\n// guru.hitungLuasPersegiPanjang(8,4);\n// guru.hitungLuasPersegiPanjang(9,2);\n }", "public aplikasi_kun() {\n initComponents();\n }", "public void emitirSaludoConGui()\n {\n JOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"<html><p style ='color: red'>Saludo en modo gráfico </p></html>\" + \n\t\t\t\t\t\"\\n\\nBienvenido/a al curso de programación orientada a objetos\\n en Java utilizando BlueJ\",\n\t\t\t\t\t\"Ejemplo de prueba\", JOptionPane.INFORMATION_MESSAGE);\n }", "@Override\n\tpublic void nghienCuu() {\n\t\tSystem.out.println(\"Nghiên cứu\");\n\t}", "@Override\n public void help(CommandSender sender) {\n \n }", "public static void alamatPerusahaan() {\r\n System.out.println(\"Karyawan bekerja di Perusahaan \" + Employee.perusahaan + \" yang beralamat di Jalan Astangkuri Jakarta\");\r\n }", "@Override\r\n\tpublic void description() {\n\t\tSystem.out.println(\"Seorang yang mengendarai kendaraan dan bekerja\");\r\n\t}", "public void TampilkanHasil(String isi_hasil){\n TextView hasil = (TextView) findViewById(R.id.txt_mainactivity_hasilBMI);\n hasil.setText(isi_hasil);\n }", "protected static void HienThiChiTiet() {\n\t\t\n\t\ttry {\n\n\t\t\tdtm1.setRowCount(0);\n\n\t\t\tString Sql = \"select SanPham.TenSP, Soluong,DonGia,DVT, DonGia*Soluong from SanPham,HoaDonTiec,ChiTietHoaDonTiec where SanPham.MaSP=ChiTietHoaDonTiec.MaSP and HoaDonTiec.MaHD=ChiTietHoaDonTiec.MaHD and HoaDonTiec.MaHD=?\";\n\t\t\tPreparedStatement prepare = conn.prepareStatement(Sql);\n\t\t\tprepare.setString(1, maHD);\n\t\t\tResultSet result = prepare.executeQuery();\n\t\t\twhile (result.next()) {\n\t\t\t\tVector<Object> vec = new Vector<Object>();\n\t\t\t\tvec.add(result.getString(1));\n\t\t\t\tvec.add(result.getInt(2));\n\t\t\t\tvec.add(result.getInt(3));\n\t\t\t\tvec.add(result.getString(4));\n\t\t\t\tvec.add(result.getInt(5));\n\t\t\t\t//maHD = result.getString(8);\n\t\t\t\t\n\t\t\t\tdtm1.addRow(vec);\n\t\t\t\t//int i = tbl.getRowCount();\n\t\t\t\t//txtMaHD.setText(maHD);// hiển thị mã HD theo bàn\n\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t}", "String sayHI(String msg){\n return msg + \"juga nama saya\" + this.nama;\n }", "@Override\n public void interact() {\n System.out.println(\"Hi I'm Kingfisher Bird! \");\n System.out.println(\"I can fly at 40km/h top speed \");\n }", "@Override\n\tpublic void bildir(){\n\t\tif(durum == true){\n\t\t\tSystem.out.println(\"Durum: Acik\");\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Durum: Kapali\");\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void meminjam(int tanggal, int bulan, int tahun) {\n\t\tsetTanggal(tanggal);\r\n\t\tsetBulan(bulan);\r\n\t\tsetTahun(tahun);\r\n\t}", "TipeLayanan(String deskripsi)\r\n {\r\n this.deskripsi = deskripsi;\r\n }", "@Override\r\n\tpublic void actionMisil() {\n\t\tSystem.out.println(\"미사일 있다.\");\r\n\t}", "public void testNamaPNSYangSkepnyaDiterbitkanOlehPresiden(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPNSYangSkepnyaDiterbitkanOlehPresiden(); \n\n\t\tshowData(data,\"nip\",\"nama\",\"tanggal_lahir\",\"tanggal_berhenti\",\"pangkat\",\"masa_kerja\",\"penerbit\");\n\t}", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public void testTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(); \n\n\t\tshowData_skpp(data,\"penerbit\",\"jumlah_surat\");\n\t}", "public void action() {\n\t\t\n\t\tjugar.setOnAction(f->{\n\n\t\t\tMain.pantallaPersonaje();\n\t\t});\n\t\n\t\tpuntajes.setOnAction(f->{\n\t\t\tMain.pantallaPuntajes();\n\t\t});\n\t\n\t\n\t}", "public boolean voikoSulkea() {\n handleTallenna();\n return true;\n }", "private void hienThiMaKHSuDungDV(){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layMaKHSuDungDVLoaiBoTrungLap();\n \n cbbThanhToanMaKH.removeAllItems();\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaKH.addItem(suDungModel.getMaKH());\n }\n }", "private void tutorial(){\n\t\tString msg = \"[Space] = Inicia e pausa o jogo depois de iniciado.\";\n\t\tmsg += \"\\n[Seta esquerda] = Move o paddle para a esquerda.\";\n\t\tmsg += \"\\n[Seta direita] = Move o paddle para a direita.\";\n\t\tmsg += \"\\n[I] = Abre a janela de informaçoes.\";\n\t\tmsg += \"\\n[R] = Reinicia o jogo.\";\n\t\tJOptionPane.showMessageDialog(null, \"\"+msg, \"Informaçoes\", JOptionPane.INFORMATION_MESSAGE);\n\t}" ]
[ "0.6920435", "0.6865736", "0.670859", "0.65081793", "0.65047437", "0.64887017", "0.644254", "0.64141494", "0.6371254", "0.6350112", "0.6310088", "0.6268243", "0.62184334", "0.61971545", "0.61747134", "0.6170515", "0.6167078", "0.6129937", "0.61268884", "0.61260825", "0.61077535", "0.6093179", "0.60715425", "0.60522664", "0.6040221", "0.60331327", "0.5994663", "0.599173", "0.5979191", "0.59784514", "0.59726274", "0.59692776", "0.59550333", "0.5948922", "0.59338635", "0.5933058", "0.5922785", "0.5911656", "0.58973706", "0.5894705", "0.58870023", "0.58848625", "0.5877264", "0.5866535", "0.58653593", "0.58585095", "0.5857075", "0.58547765", "0.58543015", "0.58519757", "0.58497244", "0.58422595", "0.5841993", "0.5834714", "0.5832482", "0.58308923", "0.58265597", "0.5820835", "0.58136487", "0.58061373", "0.5804461", "0.57973045", "0.5796134", "0.57945573", "0.5793331", "0.57643384", "0.57602954", "0.57568896", "0.5753508", "0.57521844", "0.5750479", "0.5749963", "0.57498825", "0.57489294", "0.57457656", "0.57414776", "0.5739481", "0.5737324", "0.57357454", "0.5732789", "0.57304424", "0.5724457", "0.571954", "0.5708939", "0.57065356", "0.57057166", "0.5696259", "0.5693724", "0.5688589", "0.5688062", "0.568632", "0.56854844", "0.5685228", "0.5678632", "0.56773835", "0.5672409", "0.56714076", "0.5670405", "0.5669527", "0.56673485" ]
0.677621
2
Memperoleh type makanan animal.
@Override public String getFoodType() { return foodType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Animal(String tipo){\n\t\tthis.tipo = tipo;\n\t}", "AnimalSpecific(String category,String name,String type){\n\t\tsuper(category);\n\t\tanimalName = name;\n\t\tanimalType = type;\n\t}", "@Override\n\tpublic void tipoAnimal() {\n\t\tSystem.out.println(super.getNome() + \" é um gato.\");\n\t}", "public static com.nowcoder.Animal getAnimal(int type) {\n return new com.nowcoder.Human(\"Lei\", 22, \"CN\");\n }", "@Override\npublic void mating(Animal a) {\nSystem.out.println(a.getType()+ \" is mating.\");\n}", "public Animal(String hewan, int x, int y) {\n switch (hewan) {\n case \"Bekantan\": {\n name = \"Bekantan\";\n habitat = \"Land\";\n weight = 50;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Fruit\";\n legs = 2;\n content = 'A';\n suara = \"Uuuuuuuu\";\n break;\n }\n case \"BurungHantu\": {\n name = \"Burung Hantu\";\n habitat = \"Air\";\n weight = 2;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Meat\";\n legs = 2;\n content = 'B';\n suara = \"Kur kur kur\";\n break;\n }\n case \"Codot\": {\n name = \"Codot\";\n habitat = \"Air\";\n weight = (float) 0.5;\n type = \"Herbivore\";\n tamed = false;\n diet = \"Fruit\";\n legs = 2;\n content = 'C';\n suara = \"Cit cit cit\";\n break;\n }\n case \"Elang\": {\n name = \"Elang\";\n habitat = \"Air\";\n weight = 3;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 2;\n content = 'D';\n suara = \"Koak koakk koakk\";\n break;\n }\n case \"Gajah\": {\n name = \"Gajah\";\n habitat = \"Land\";\n weight = 3500;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Leaf\";\n legs = 4;\n content = 'E';\n suara = \"Ngoett\";\n break;\n }\n case \"Gorilla\": {\n name = \"Gorilla\";\n habitat = \"Land\";\n weight = 200;\n type = \"Herbivore\";\n tamed = false;\n diet = \"Fruit\";\n legs = 2;\n content = 'C';\n suara = \"Huhahuha\";\n break;\n }\n case \"Harimau\": {\n name = \"Harimau\";\n habitat = \"Land\";\n weight = 450;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 4;\n content = 'G';\n suara = \"Roarrrr\";\n break;\n }\n case \"Hiu\": {\n name = \"Hiu\";\n habitat = \"Water\";\n weight = 100;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Meat\";\n legs = 0;\n content = 'H';\n suara = \"Shush shush\";\n break;\n }\n case \"IkanTerbang\": {\n name = \"Ikan Terbang\";\n habitat = \"Water\";\n weight = 2;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Insect\";\n legs = 0;\n content = 'I';\n suara = \"Cepok cepok cepok\";\n break;\n }\n case \"Jerapah\": {\n name = \"Jerapah\";\n habitat = \"Land\";\n weight = 500;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Leaf\";\n legs = 4;\n content = 'J';\n suara = \"Ngoet ngoet\";\n break;\n }\n case \"Kancil\": {\n name = \"Kancil\";\n habitat = \"Land\";\n weight = 60;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Leaf\";\n legs = 4;\n content = 'K';\n suara = \"Ngik ngik ngik\";\n break;\n }\n case \"Kepik\": {\n name = \"Kepik\";\n habitat = \"Air\";\n weight = (float) 0.01;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Nectar\";\n legs = 6;\n content = 'L';\n suara = \"Krik krik krik\";\n break;\n }\n case \"Kepiting\": {\n name = \"Kepiting\";\n habitat = \"Water\";\n weight = 1;\n type = \"Omnivore\";\n tamed = true;\n diet = \"Plankton\";\n legs = 10;\n content = 'M';\n suara = \"Kuikk kuikk\";\n break;\n }\n case \"KumbangHutan\": {\n name = \"Kumbang Hutan\";\n habitat = \"Air\";\n weight = (float) 0.05;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Nectar\";\n legs = 6;\n content = 'N';\n suara = \"Kruk kruk kruk\";\n break;\n }\n case \"KupuKupu\": {\n name = \"KupuKupu\";\n habitat = \"Air\";\n weight = (float) 0.03;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Nectar\";\n legs = 6;\n content = 'O';\n suara = \"Wir wir\";\n break;\n }\n case \"Lobster\": {\n name = \"Lobster\";\n habitat = \"Water\";\n weight = (float) 0.5;\n type = \"Omnivore\";\n tamed = true;\n diet = \"Plankton\";\n legs = 10;\n content = 'P';\n suara = \"Crek crek crek\";\n break;\n }\n case \"LumbaLumba\": {\n name = \"Lumba lumba\";\n habitat = \"Water\";\n weight = 100;\n type = \"Omnivore\";\n tamed = true;\n diet = \"Plankton\";\n legs = 0;\n content = 'Q';\n suara = \"Cet cet cet\";\n break;\n }\n case \"MacanTutul\": {\n name = \"Macan Tutul\";\n habitat = \"Land\";\n weight = 350;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Meat\";\n legs = 4;\n content = 'R';\n suara = \"Aummmm\";\n break;\n }\n case \"OwaOwa\": {\n name = \"OwaOwa\";\n habitat = \"Land\";\n weight = 70;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Fruit\";\n legs = 2;\n content = 'S';\n suara = \"Huhuhuhu\";\n break;\n }\n case \"PausSperma\": {\n name = \"Paus Sperma\";\n habitat = \"Water\";\n weight = 7000;\n type = \"Omnivore\";\n tamed = true;\n diet = \"Plankton\";\n legs = 0;\n content = 'T';\n suara = \"Srosh srosh\";\n break;\n }\n case \"Piranha\": {\n name = \"Piranha\";\n habitat = \"Water\";\n weight = (float) 0.7;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 0;\n content = 'U';\n suara = \"Kraus kraus\";\n break;\n }\n case \"Platypus\": {\n name = \"Platypus\";\n habitat = \"Land and Water\";\n weight = 5;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Insect\";\n legs = 4;\n content = 'V';\n suara = \"Krr krr\";\n break;\n }\n case \"Singa\": {\n name = \"Singa\";\n habitat = \"Land\";\n weight = 400;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 4;\n content = 'W';\n suara = \"Groarrr\";\n break;\n }\n case \"SingaLaut\": {\n name = \"Singa Laut\";\n habitat = \"Water\";\n weight = 70;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 0;\n content = 'X';\n suara = \"Ou ou ou\";\n break;\n }\n default: {\n name = \"NULL\";\n habitat = \"NULL\";\n weight = 0;\n type = \"NULL\";\n tamed = false;\n diet = \"NULL\";\n legs = 0;\n content = '-';\n suara = \"NULL\";\n break;\n }\n }\n fodder = (float) 0.025 * weight;\n locX = x;\n locY = y;\n nAnimal++;\n consumerate += fodder;\n }", "@Override\n\tpublic void tipoInteligencia() {\n\t\tSystem.out.println(super.getNome() + \" é um animal \" + ((super.isRacional() == true) ? \"racional.\" : \"irracional.\"));\n\t}", "public static int add_animal(Animal bixinho) {\n\t\tif(bixinho instanceof Mamifero)\t\tsetorM.add(bixinho);\r\n\t\tif(bixinho instanceof Ave)\t\t\tsetorAv.add(bixinho);\r\n\t\tif(bixinho instanceof Reptil)\t\tsetorR.add(bixinho);\r\n\t\tif(bixinho instanceof Anfibio)\t\tsetorAn.add(bixinho);\r\n\t\tif(bixinho instanceof Invertebrado)\tsetorI.add(bixinho);\r\n\t}", "@Override\n\tString getName(){\n\t\treturn animalName;\n\t}", "public void settype(String cat) { this.type = cat; }", "@Override\n\tpublic String type() {\n\t\treturn \"armour\";\n\t}", "private static void ListAnimalByType() {\n\t\t\n\t\tshowMessage(\"Choose one type to list:\\n\");\n showMessage(\"1 - Dog\");\n showMessage(\"2 - Cat\");\n showMessage(\"3 - Bird\");\n showMessage(\"4 - Hamster\");\n showMessage(\"5 - Rabbit\");\n showMessage(\"6 - Back to previous menu.\");\n \n int option = getUserAnimalByType();\n /** switch case option start below */\n\t\tswitch (option){\n\n case 1 : ToScreen.listAnimal(animals.getDogList(), true); ListAnimalByType();\n break;\n case 2 : ToScreen.listAnimal(animals.getCatList(), true); ListAnimalByType();\n break;\n case 3 : ToScreen.listAnimal(animals.getBirdList(), true); ListAnimalByType();\n \tbreak;\n case 4 : ToScreen.listAnimal(animals.getHamsterList(), true); ListAnimalByType();\n \tbreak;\n case 5 : ToScreen.listAnimal(animals.getRabbitList(), true); ListAnimalByType();\n \tbreak;\n case 6 : main();\n \tbreak;\n \n default: ListAnimalByType();\n\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n AnimalBp turtle = new AnimalBp(); \n AnimalBp dog = new AnimalBp();\n AnimalBp cat = new AnimalBp();\n \n \n \n turtle .setType(\"Reptile\");\n String turtleType = turtle.getType();\n \n \n System.out.println(turtleType);\n \n turtle.setnumberOfFeet(4);\n int turtlenumberOfFeet = turtle.getnumberOfFeet();\n \n System.out.println(turtlenumberOfFeet);\n \n turtle.setColor(\"Green\");\n String turtleColor = turtle.getColor();\n \n System.out.println(turtleColor);\n \n turtle.setlaysAnEgg(true);\n boolean turtlelaysAnEgg = turtle.getLaysAnEgg();\n \n System.out.println(turtlelaysAnEgg);\n \n \n dog .setType(\"Mammal\");\n String dogType = dog.getType();\n \n System.out.println(dogType);\n \n dog.setnumberOfFeet(4);\n int dognumberOfFeet = dog.getnumberOfFeet();\n \n System.out.println(dognumberOfFeet);\n \n dog.setColor(\"Brown and White\");\n String dogColor = dog.getColor();\n \n System.out.println(dogColor);\n \n dog.setlaysAnEgg(false);\n boolean doglaysAnEgg = dog.getLaysAnEgg();\n \n System.out.println(doglaysAnEgg);\n \n cat .setType(\"Mammal\");\n String catType = cat.getType();\n \n \n System.out.println(catType);\n \n cat.setnumberOfFeet(4);\n int catnumberOfFeet = cat.getnumberOfFeet();\n \n System.out.println(catnumberOfFeet);\n \n cat.setColor(\"gray\");\n String catColor = cat.getColor();\n \n System.out.println(catColor);\n \n cat.setlaysAnEgg(false);\n boolean catlaysAnEgg = cat.getLaysAnEgg();\n \n System.out.println(catlaysAnEgg);\n }", "public String getTypeOfFood(){\n return typeOfFood;\n }", "public static void main(String[] args){\n All_in_One<String> nama = new All_in_One<>();\r\n nama.setManusia(\"Wildan\");\r\n System.out.println(\"Nama Saya: \"+nama.getManusia());\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Integer\r\n All_in_One<Integer> umur = new All_in_One<>();\r\n umur.setManusia(19);\r\n System.out.println(\"Usia Saya: \"+umur.getManusia()+\" Tahun\");\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Boolean\r\n All_in_One<Boolean> kondisi = new All_in_One<>();\r\n kondisi.setManusia(true);\r\n System.out.println(\"Saya Sedang Belajar Java: \"+kondisi.getManusia());\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Float\r\n All_in_One<Float> IPK = new All_in_One<>();\r\n IPK.setManusia(3.5f);\r\n System.out.println(\"Nilai IPK Saya: \"+IPK.getManusia());\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Character\r\n All_in_One<Character> Karakter = new All_in_One<>();\r\n Karakter.setManusia('W');\r\n System.out.println(\"Huruf Awalan Nama Saya Adalah: \"+Karakter.getManusia());\r\n }", "public static void function(Animal a){\n a.eat();\n if (a instanceof Cat){//instanceof 判断指向类型\n Cat c =(Cat)a;\n c.catchMouse();\n }\n else if(a instanceof Dog){\n Dog d =(Dog) a;\n d.kanjia();\n }\n\n }", "private static int getUserAnimalByType() {\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint input;\n\t\t\n\t\tdo {\n\n\t\t\ttry {\n\t\t\t\tinput = Integer.parseInt(myReader.readLine());\n\t\t\t\t\n\t\t\t\tif ((input < 1) || (input > 6)) {\n\t\t\t\t\tSystem.out.println(\"please type in a number between 1-6.\");\n\t\t\t\t}\n\t\t\t\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid. Please enter a number between 1-6.\");\n\t\t\t\tinput = 0;\n\t\t\t}\t\n\t\t}while((input < 1) || (input > 6));\n\t\t\n\t\treturn input;\n\t\t\n\t}", "public void createAnimals() {\n\t\tanimals = new Animal[noAnimals];\n\n\t\tfor (int i = 0; i < noAnimals; i++) {\n\t\t\tanimals[i] = new Animal(noAnimals);\n\t\t\tanimals[i].setDiffCo(diffCo[i]);\n\t\t\tanimals[i].setDiffusionRate(diffusionRate[i]);\n animals[i].initiateDensities(getIo().getNeighbours().length,getIo().getNeighbours()[0].length);\n\t\t}\n\t\n\t\t animals[0].setName(\"Hare\"); \n\t\t animals[1].setName(\"Puma\");\n\t}", "public Animal(String name) {\r\n this.animalName = name;\r\n }", "public void setAnimal(Animal animal) {\n\t\tthis.animal = animal;\r\n\t}", "public Animal(int row, int col, String sex, String type) {\n this.row = row;\n this.col = col;\n this.sex = sex;\n this.type = type;\n this.typeChar = type.charAt(0);\n }", "public abstract void setType();", "public TipoAnimalEntity crearTipoAnimal(TipoAnimalEntity entity){\n persistence.create(entity);\n return entity;\n }", "public String getTypeOfFood()\n {\n return typeOfFood;\n }", "@Override\npublic void tipoAnimal() {\n\tSystem.out.println(\"Tipo animal es GATO\");\n}", "private void emitType (Type t) {\r\n if (t == PrimitiveType.BYTE || t == PrimitiveType.CHAR ||\r\n\tt == PrimitiveType.SHORT || t == PrimitiveType.INT) \r\n Emitter.emit (\"Integer\");\r\n else if (t == PrimitiveType.LONG) \r\n Emitter.emit (\"Long\");\r\n else if (t == PrimitiveType.FLOAT) \r\n Emitter.emit (\"Float\");\r\n else if (t == PrimitiveType.DOUBLE) \r\n Emitter.emit (\"Double\");\r\n else if (t == PrimitiveType.BOOL) \r\n Emitter.emit (\"Boolean\");\r\n }", "CatType catType();", "public String type();", "abstract public Type type();", "@Override\n public String getType() {\n return \"golem\";\n }", "@Override\n public EFoodType getFoodtype() {\n MessageUtility.logGetter(name,\"getFoodtype\",EFoodType.MEAT);\n return EFoodType.MEAT;\n }", "abstract public String getType();", "public static void main(String[] args) {\n Animal unAnimalRavioso = new Animal();\n System.out.println(unAnimalRavioso.informaEnergia());\n\n //Al objeto le digo que corra\n unAnimalRavioso.correr();\n\n //Imprimo la energia\n System.out.println(unAnimalRavioso.informaEnergia());\n\n Comida unPaty = new Comida();\n unPaty.setEnergia(120);\n System.out.println(unPaty.getEnergia());\n\n System.out.println(\"Energia antes de comer paty \" + unAnimalRavioso.informaEnergia());\n unAnimalRavioso.comer(unPaty);\n\n System.out.println(\"Energia despues de comer paty \" + unAnimalRavioso.informaEnergia());\n\n Perro perroCobarde = new Perro();\n perroCobarde.hacerRuido();\n\n Gato gatoCobarde = new Gato();\n ArrayList<Animal>animales = new ArrayList<>();\n\n animales.add(perroCobarde);\n animales.add(gatoCobarde);\n\n System.out.println(\"hacer ruido animales\");\n for (Animal unAnimal:animales) {\n unAnimal.hacerRuido();\n }\n\n\n\n }", "public long getIdAnimal() {\r\n return idAnimal;\r\n }", "int getGunType();", "public void addAnimals() throws IOException {\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint a = 0;\n\t\tArrayList<GameObjects> animals = new ArrayList<GameObjects>();\n\t\tRandom rand = new Random();\n\t\twhile(b<bigFish) {\n\t\t\tanimals.add(new BigFish(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth/2))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\tb+=1;\n\t\t}\n\t\twhile(c<crab) {\n\t\t\tanimals.add(new Crab(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth - frameWidth/3))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\tc+=1;\n\t\t}\n\t\twhile(a<algae) {\n\t\t\tanimals.add(new Algae(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth - frameWidth/3))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\ta+=1;\n\t\t}\n\n\t\tanimals.add(new BigFish(frameWidth, frameHeight));\n\t\tanimals.add(new Crab(frameWidth, frameHeight));\n\t\tanimals.add(new Algae(frameWidth, frameHeight));\n\n\t\tthis.objects = animals;\n\t}", "public Bird(String name,int age, double weight,String sound, int noOfLegs,boolean canFly,AnimalType type) {\n\t\t\n\t\tsuper(name,age,weight,sound,noOfLegs,AnimalCategory.BIRD,type);\n\t\tthis.canFly=canFly;\n\t}", "private void seeAnimal() {\n\r\n\t}", "public String getBreedOrType() { return breedOrType; }", "@Override\r\n\tpublic void typeform() {\n\t\tSystem.out.println(\"Type Carre\");\r\n\t}", "public void addAnimal(String typeAnimal, String nomAnimal, String comportement) {\r\n\t\ttypes.add(typeAnimal);\r\n\t\tnoms.add(nomAnimal);\r\n\t\tcomportements.add(comportement);\r\n\t}", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public String getName() {\r\n return this.animalName;\r\n }", "private String getType(){\r\n return type;\r\n }", "public AngelType getType() {\n return type;\n }", "public ArmyType getArmyType() {\r\n return armyType;\r\n }", "public static int getNAnimal() {\n return nAnimal;\n }", "@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "protected abstract String getType();" ]
[ "0.68862194", "0.654674", "0.6392628", "0.6147439", "0.61240554", "0.60426897", "0.5988034", "0.59876406", "0.59216326", "0.5912158", "0.590305", "0.589225", "0.5830597", "0.5799959", "0.5799866", "0.5762998", "0.5751882", "0.5746571", "0.5682306", "0.5680697", "0.5657774", "0.56169575", "0.55760884", "0.5574047", "0.5570938", "0.5568693", "0.55647117", "0.5564459", "0.5556391", "0.5553908", "0.55485904", "0.55455434", "0.55446094", "0.5541626", "0.55359364", "0.5516415", "0.549503", "0.5489626", "0.548461", "0.5483212", "0.5470707", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.546976", "0.5466614", "0.5466614", "0.5466614", "0.5466614", "0.5466614", "0.5466614", "0.5466614", "0.5466614", "0.5446529", "0.54460824", "0.54433393", "0.54404294", "0.5437948", "0.54277897", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54258966", "0.54196584" ]
0.0
-1
Memperoleh nama kelas dari animal.
@Override public String getClassName() { return kelas; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.CharSequence getNamaHari() {\n return nama_hari;\n }", "public java.lang.CharSequence getNamaHari() {\n return nama_hari;\n }", "public String getName() {\r\n return this.animalName;\r\n }", "@Override\n\tString getName(){\n\t\treturn animalName;\n\t}", "public String getNama() {\r\n return nama;\r\n }", "public String getAnimalName() {\n if (animal == null) {\n String msg = \"Name is null\";\n return msg;\n } else {\n return animal.getName();\n }\n }", "@Override\n public String toString() {\n \treturn \"내 이름은\" + name + \", \" + \"내 학번은\" + number + \", \" + \"나는 \" + gender + \"자야\";\n }", "@Override\n\tpublic void tipoAnimal() {\n\t\tSystem.out.println(super.getNome() + \" é um gato.\");\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn namaBulan;\n\t}", "public java.lang.CharSequence getNamaKelas() {\n return nama_kelas;\n }", "public java.lang.CharSequence getNamaKelas() {\n return nama_kelas;\n }", "java.lang.String getNume();", "java.lang.String getNume();", "public static int getNAnimal() {\n return nAnimal;\n }", "@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn nome;\n\t\t\t}", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public String getNamaKlinik() {\n return namaKlinik;\r\n }", "@Override\n\tpublic int getNam() {\n\t\treturn _keHoachKiemDemNuoc.getNam();\n\t}", "public java.lang.CharSequence getNamaMk() {\n return nama_mk;\n }", "public java.lang.String getAnimalName() {\n return localAnimalName;\n }", "public java.lang.CharSequence getNamaMk() {\n return nama_mk;\n }", "public String annaNimi()\n\t{\n\t\treturn this.nimi;\n\t}", "public int getNombreAllumettes() {\n\t\treturn this.nbAllumettes;\n\t\t}", "public static void alamatPerusahaan() {\r\n System.out.println(\"Karyawan bekerja di Perusahaan \" + Employee.perusahaan + \" yang beralamat di Jalan Astangkuri Jakarta\");\r\n }", "public void showAnimalInfo(Player p, Entity e){\r\n\tif(this.checkifHasOwner(e.getUniqueId().toString())){\r\n\t\tAnimals a = new Animals(plugin, e.getUniqueId().toString(), p.getUniqueId().toString());\r\n\t\tint hp = (int) a.getHeartPoints();\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"+++++ Animal Info +++++\");\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Animal Name: \" + ChatColor.GREEN+ a.getAnimalName());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Animal Owner: \" + ChatColor.GREEN+ a.getOwnerName());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Heart Level: \" + ChatColor.GREEN + hp);\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is Clean: \" + ChatColor.GREEN + a.getIsWashed());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is happy: \" + ChatColor.GREEN + a.isHappy());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is lonely: \" + ChatColor.GREEN + a.getIsPet());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is Hungry: \" + ChatColor.GREEN + a.getHunger());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is Healthy: \" + ChatColor.GREEN + a.isHealthy());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is Weight: \" + ChatColor.GREEN + a.getWeight());\r\n\t\t}\r\n\t}", "Karyawan(String n)\n {\n this.nama = n;\n }", "MahasiswaFix(){\n nama = \"Fajar\";\n System.out.println(nama);\n }", "public static String getPelottavaNimi() {\n int indeksi = random.nextInt(pelottavatNimet.length);\n return pelottavatNimet[indeksi];\n }", "public String getName() {\n return \"nickel\";\n }", "public Harimau(String namaHarimau)\n\t{\n\t//mengisi pengubah yang diwarisi oleh kelas abstract\n\tHarimau.nama = namaHarimau;\n\t}", "public String getName()\r\n {\n return \"tan\";\r\n }", "public String getNomor() {\n return this.nomor;\n }", "public String nombreHabitacionMasPopular(){\n return this.habitacionPopular;\n }", "@Override\n\tpublic void tipoInteligencia() {\n\t\tSystem.out.println(super.getNome() + \" é um animal \" + ((super.isRacional() == true) ? \"racional.\" : \"irracional.\"));\n\t}", "public void printAnnuNom() \n {\n System.out.println(\"Annuaire de \"+nomAnnuaire);\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn this.nome;\r\n\t}", "public String nome() {\n\t\treturn this.nome;\n\t}", "private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }", "@Override\n public String toString() {\n return \"Nimi: \" + nimi +\"\\n\"+\n \"Vanus: \"+ vanus +\"\\n\"+\n \"Pikkus: \"+ pikkus +\"\\n\"+\n \"Kehakaal: \"+ kehakaal+\"\\n\"+\n \"Aktiivus: \"+aktiivsus+\"\\n\";\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn nom;\r\n\t}", "public String getName() {\n return this.id + \", \" + this.nom + \" \" + this.prenom + \", \" + this.cin;\n }", "@Override\n public String getName()\n {\n if (amount > 1)\n {\n return amount + \" Nickles\";\n }\n else\n {\n return amount + \" Nickle\";\n }\n }", "public static String getHauskaNimi() {\n int indeksi = random.nextInt(hauskatNimet.length);\n return hauskatNimet[indeksi];\n }", "public int getNickel () {\n return NNickel;\n }", "@Override\r\n\tpublic String showKode() {\n\t\treturn getPenerbit() + \" \" + firsText(getJudul()) + \" \" + lastText(getPengarang());\r\n\t}", "public String getNaam() {\n return naam;\n }", "public String getNom() {\n\t\treturn null;\r\n\t}", "public String getNotchianName();", "static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }", "public void printTagihanTamu() {\n for (Tagihan t: daftarTagihan.values()) {\n System.out.println(\"Tamu:\"+t.tamu.nama);\n System.out.println(\"Tagihan:\"+t.hitungSemuaTagihan());\n }\n }", "public Nombre() {\n char v[] = { 'a', 'e', 'i', 'o', 'u' };\n char c[] = { 'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'ñ', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x',\n 'y', 'z' };\n vocales = new Letras(v);\n consonantes = new Letras(c);\n r = new Random();\n }", "@Override\n\tpublic String verNombreCondicion() {\n\t\treturn getNombre();\n\t}", "@Override\r\n\tpublic Map<String, Object> namaUniv(Integer id_univ) {\n\t\treturn fakultas.namaUniv(id_univ);\r\n\t}", "@Override\r\n\tpublic String falar() {\r\n\t\treturn \"[ \"+getNome()+\" ] Sou Um Professor\";\r\n\t}", "public String getNaam() {\n\t\treturn naam;\n\t}", "public long getIdAnimal() {\r\n return idAnimal;\r\n }", "public java.lang.String getAnimalId() {\n return localAnimalId;\n }", "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "public Kurama(){\n super(\"Kurama\",3,800,800,\"n\",19,5);\n }", "public String getNome()\r\n\t{\r\n\t\treturn nome;\r\n\t}", "public String getNome()\r\n\t{\r\n\t\treturn nome;\r\n\t}", "public void setNama(String nama) {\r\n this.nama = nama;\r\n }", "public String printDetails(Animal animal) {\n return animal.getName() + \" - \" + animal.getBreedOrType() + \", born in \" + animal.getYearOfBirth();\n }", "@Override\n public String toString() {\n return nome + placa;\n }", "@Override\n public String toString() {\n return PET_NAME;\n }", "public String toString() {\n\t\treturn \"Kori \" + malli + \". Omenien yhteispaino: \" + Omena.kokopaino +\"g.\\n\"\r\n\t\t\t\t+ \"Omenia korissa \" + Omena.nimi +\", \"+Omena.paino;\r\n\t\r\n\t\t\r\n\t}", "public String getNomeItem() {\r\n\t\treturn this.emprestimoid.getNomeItem();\r\n\t}", "public List<String> nomeAnimais(){\n\t\tfor (Animal a: this.animais) {\n\t\t\tthis.nomes.add(a.getNomeNumero());\n\t\t}\n\t\treturn this.nomes;\n\t}", "@Override\r\n\tpublic String getSpecies()\r\n\t{\r\n\t\treturn \"\";\r\n\t}", "public String getNome() {\n return this.nome;\n }", "public String getNombres() { return (this.nombres == null) ? \"\" : this.nombres; }", "public String getNombres() { return (this.nombres == null) ? \"\" : this.nombres; }", "@Override\n\tpublic String getNom() {\n\t\treturn null;\n\t}", "public String getNome(){\n\t\treturn nome;\n\t}", "public String getNom(){\n\t\treturn this.nom;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Nombre: \"+this.nombre+\" Cantidad: \"+this.cantidad+\" \"+this.unidadMedida;\n\t}", "public void printSpeciesData(){\n\n System.out.println(\"A \" + this.name + \" has \" + this.legs + \" legs, \" + this.numberOfWings +\n \" wings, it is \" + this.wingColor + \", and likes a plant called \" + this.favFlower);\n\n }", "public String getNombreFicheroAlumno(){\n\t\treturn \"Ev-Intermedia-Arboles-BST-Apellido1Apellido2Nombre-UOxxxx\";\n\t}", "@Test\n\tpublic void testPetWhenGetNameNala() {\n\t\tPet pet = new Pet(\"Nala\", \"roar\");\t\t\n\t\tString expect = \"Nala\";\n\t\tString result = pet.getPetName();\t\t\n\t\tassertEquals(expect, result);\t\t\n\t}", "public String getPetName();", "public String getNom();", "@Override\n\tpublic String damePatente() {\n\t\treturn \"TJH 123\";\n\t}", "public String getNom() {\n\t\treturn this.nom;\r\n\t\t}", "public Animal(String tipo){\n\t\tthis.tipo = tipo;\n\t}", "@Override\n public String toString() {\n return String.format(\"[%d] [%d]\", dameFila(), dameColumna());\n }", "public String lerNome() {\n\t\treturn JOptionPane.showInputDialog(\"Digite seu Nome:\");\n\t\t// janela de entrada\n\t}", "private void generarNombre() {\r\n\t\tthis.nombre = NOMBRES[(int) (Math.random() * NOMBRES.length)];\r\n\t}", "public int NbreObjets(){\n\t\treturn this.nombre_objets;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn getAdi()+\" \"+plakaNo;\r\n\t}", "@Override\n\tpublic String getSpecies() {\n\t\treturn \"homo sapien\";\n\t}", "public void addAName(Animal n)\r\n\t{\r\n\t\tint holderColot = n.hashCode()%9;\r\n\t\tanimalHashMap.put(n, colorArray[holderColot]);\r\n\t\tobNameList.add(n);\r\n\t}", "void setNama(String nama) {\r\n\tthis.nama = nama;\r\n }", "public void showInfomation()\n\t{\n\t\tSystem.out.println(\"\\nMeal\"+\"\\n\\tnumber: \"+ number +\"\\n\\tdishName: \" + dishName +\"\\n\\tprice : \" + price+\"$\");\n\t}", "public String getNom() {\n\treturn this.nom;\n }", "public String getNom() {\n\treturn this.nom;\n }", "public String getTinyImageName() {\n return this.getPokemonInfo().getTinyImageName();\n }", "public String getNome() {\n\t\treturn this.nome;\r\n\t}", "public Object getNome() {\n\t\treturn null;\n\t}", "public String obtenirNomItem() {\n\t\treturn this.nomItem;\n\t}", "public int getNumberOfAnimalSpecies() {\n\t\treturn numberOfAnimalSpecies;\n\t}", "public String getnome()\n {\n return this.nome;\n }" ]
[ "0.6880144", "0.6839428", "0.65597457", "0.65386814", "0.64093995", "0.6338146", "0.6319623", "0.6256478", "0.62450653", "0.62409896", "0.6229689", "0.6190589", "0.6190589", "0.6165672", "0.6150967", "0.61246836", "0.6121311", "0.6102131", "0.604814", "0.60325164", "0.60254455", "0.59474295", "0.5937915", "0.5927651", "0.5904254", "0.58687264", "0.5867739", "0.58426917", "0.58351374", "0.5833641", "0.57927835", "0.5768441", "0.5759779", "0.5722579", "0.57201475", "0.5695908", "0.56933117", "0.5679316", "0.5679278", "0.56583375", "0.56440765", "0.5630285", "0.5629867", "0.5626772", "0.5610455", "0.56062", "0.55956465", "0.55934626", "0.5589953", "0.558201", "0.55819035", "0.5574438", "0.5570952", "0.5570942", "0.55704516", "0.5559597", "0.5557647", "0.5556763", "0.5554186", "0.55527896", "0.55527896", "0.5552339", "0.5549938", "0.554348", "0.55312896", "0.5517018", "0.55161965", "0.5504942", "0.54999715", "0.54987514", "0.54986495", "0.54986495", "0.54875416", "0.5487006", "0.5485272", "0.5484094", "0.5483487", "0.54802674", "0.54792184", "0.5478947", "0.54692495", "0.5465512", "0.54653716", "0.54649794", "0.54642284", "0.5460602", "0.5459108", "0.54587835", "0.54558057", "0.5450727", "0.54477406", "0.5447516", "0.5446804", "0.54450804", "0.54450804", "0.54441696", "0.54438305", "0.54382163", "0.54348564", "0.54313123", "0.54312027" ]
0.0
-1
Memperoleh deskripsi animal .
@Override public String getDeskripsi() { return deskripsi; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public static void main(String[] args) {\n Animal unAnimalRavioso = new Animal();\n System.out.println(unAnimalRavioso.informaEnergia());\n\n //Al objeto le digo que corra\n unAnimalRavioso.correr();\n\n //Imprimo la energia\n System.out.println(unAnimalRavioso.informaEnergia());\n\n Comida unPaty = new Comida();\n unPaty.setEnergia(120);\n System.out.println(unPaty.getEnergia());\n\n System.out.println(\"Energia antes de comer paty \" + unAnimalRavioso.informaEnergia());\n unAnimalRavioso.comer(unPaty);\n\n System.out.println(\"Energia despues de comer paty \" + unAnimalRavioso.informaEnergia());\n\n Perro perroCobarde = new Perro();\n perroCobarde.hacerRuido();\n\n Gato gatoCobarde = new Gato();\n ArrayList<Animal>animales = new ArrayList<>();\n\n animales.add(perroCobarde);\n animales.add(gatoCobarde);\n\n System.out.println(\"hacer ruido animales\");\n for (Animal unAnimal:animales) {\n unAnimal.hacerRuido();\n }\n\n\n\n }", "public void removeAnimal(Entity e){\r\n\t\tSet<String> farmers = plugin.getAnimalData().getConfigurationSection(\"Farmer\").getKeys(false);\r\n\t\tfor(String farmer : farmers){\r\n\t\t\tSet<String> farmeranimals = plugin.getAnimalData().getConfigurationSection(\"Farmer.\" + farmer + \".Animals\").getKeys(false);\r\n\t\t\t\r\n\t\t\tfor(String farmanimal : farmeranimals){\r\n\t\t\t\tif(farmanimal.equalsIgnoreCase(e.getUniqueId().toString())){\r\n\t\t\t\t\tLivingEntity le = (LivingEntity) e;\r\n\t\t\t\t\tplugin.getAnimalData().set(\"Farmer.\" + farmer +\".Animals.\"+ farmanimal, null);\r\n\t\t\t\t\tPlayer[] p = Bukkit.getOnlinePlayers();\r\n\t\t\t\t\tfor(Player online : p){\r\n\t\t\t\t\tif(online.getUniqueId().toString().equalsIgnoreCase(farmer)){\r\n\t\t\t\t\tonline.sendMessage(ChatColor.GRAY + \"Your \" + e.getType().toString() + \" \" + le.getCustomName() + \" has \" + ChatColor.DARK_RED + \"died.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(plugin.getAnimalData().contains(\"AnimalCoolDown.\" + farmanimal)){\r\n\t\t\t\t\t\tplugin.getAnimalData().set(\"AnimalCoolDown.\" + farmanimal, null );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tplugin.saveAnimalData();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public static void main(String[] args) {\n Animal a1 = new Animal();\n \n //objeto animal parametrizado\n Animal a2 = new Animal(LocalDate.of(2020, 6, 4), \"Saphi\", Animal.Tipo.GATO, 400, Animal.Estado.DURMIENDO);\n \n //imprimir a1 y a2\n System.out.println(\"Animal a1:\\n \" + a1.toString());\n System.out.println(\"Animal a2:\\n \" + a2.toString());\n \n \n //clonar a2 en a3\n Animal a3 = Animal.clonar(a2);\n System.out.println(\"Animal a3:\\n\" + a3.toString());\n \n //contador de instancias\n System.out.println(\"N de instancias: \" + Animal.getContadorInstancias());\n \n //creacion de dos personas\n Persona p1 = new Persona(\"Juan\", 33);\n Persona p2 = new Persona(\"Alba\", 21);\n \n //p1 despierta a los animales\n p1.llamar(a1);\n p1.llamar(a2);\n p1.llamar(a3);\n\n //p2 juega con a2 12m min\n p2.jugar(a2, 120);\n System.out.println(\"Peso de a2 despues de jugar con p2: \" + a2.getGramos());\n \n \n //p1 alimenta a a1 1000 gramos, nuevo peso\n p1.alimentar(a1, 1000);\n System.out.println(\"Peso de a1 despues de comer: \" + a1.getGramos());\n \n //FALTA CONTROLAR EXCEPCION\n \n //p1 juega con a1 200 min, nuevo peso\n// p1.jugar(a1, 200);\n// System.out.println(\"El animal a1 pesa \" + a1.getGramos() + \" después de jugar\");\n \n \n }", "public static void eliminarAnimal(String crotal){\n ArrayList<Animal> animales = bdAnimales.getDatosObjeto(crotal);\n if(animales.size() > 0)\n bdAnimales.borrarDatos(animales.get(0));\n }", "public Animal(String hewan, int x, int y) {\n switch (hewan) {\n case \"Bekantan\": {\n name = \"Bekantan\";\n habitat = \"Land\";\n weight = 50;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Fruit\";\n legs = 2;\n content = 'A';\n suara = \"Uuuuuuuu\";\n break;\n }\n case \"BurungHantu\": {\n name = \"Burung Hantu\";\n habitat = \"Air\";\n weight = 2;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Meat\";\n legs = 2;\n content = 'B';\n suara = \"Kur kur kur\";\n break;\n }\n case \"Codot\": {\n name = \"Codot\";\n habitat = \"Air\";\n weight = (float) 0.5;\n type = \"Herbivore\";\n tamed = false;\n diet = \"Fruit\";\n legs = 2;\n content = 'C';\n suara = \"Cit cit cit\";\n break;\n }\n case \"Elang\": {\n name = \"Elang\";\n habitat = \"Air\";\n weight = 3;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 2;\n content = 'D';\n suara = \"Koak koakk koakk\";\n break;\n }\n case \"Gajah\": {\n name = \"Gajah\";\n habitat = \"Land\";\n weight = 3500;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Leaf\";\n legs = 4;\n content = 'E';\n suara = \"Ngoett\";\n break;\n }\n case \"Gorilla\": {\n name = \"Gorilla\";\n habitat = \"Land\";\n weight = 200;\n type = \"Herbivore\";\n tamed = false;\n diet = \"Fruit\";\n legs = 2;\n content = 'C';\n suara = \"Huhahuha\";\n break;\n }\n case \"Harimau\": {\n name = \"Harimau\";\n habitat = \"Land\";\n weight = 450;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 4;\n content = 'G';\n suara = \"Roarrrr\";\n break;\n }\n case \"Hiu\": {\n name = \"Hiu\";\n habitat = \"Water\";\n weight = 100;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Meat\";\n legs = 0;\n content = 'H';\n suara = \"Shush shush\";\n break;\n }\n case \"IkanTerbang\": {\n name = \"Ikan Terbang\";\n habitat = \"Water\";\n weight = 2;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Insect\";\n legs = 0;\n content = 'I';\n suara = \"Cepok cepok cepok\";\n break;\n }\n case \"Jerapah\": {\n name = \"Jerapah\";\n habitat = \"Land\";\n weight = 500;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Leaf\";\n legs = 4;\n content = 'J';\n suara = \"Ngoet ngoet\";\n break;\n }\n case \"Kancil\": {\n name = \"Kancil\";\n habitat = \"Land\";\n weight = 60;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Leaf\";\n legs = 4;\n content = 'K';\n suara = \"Ngik ngik ngik\";\n break;\n }\n case \"Kepik\": {\n name = \"Kepik\";\n habitat = \"Air\";\n weight = (float) 0.01;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Nectar\";\n legs = 6;\n content = 'L';\n suara = \"Krik krik krik\";\n break;\n }\n case \"Kepiting\": {\n name = \"Kepiting\";\n habitat = \"Water\";\n weight = 1;\n type = \"Omnivore\";\n tamed = true;\n diet = \"Plankton\";\n legs = 10;\n content = 'M';\n suara = \"Kuikk kuikk\";\n break;\n }\n case \"KumbangHutan\": {\n name = \"Kumbang Hutan\";\n habitat = \"Air\";\n weight = (float) 0.05;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Nectar\";\n legs = 6;\n content = 'N';\n suara = \"Kruk kruk kruk\";\n break;\n }\n case \"KupuKupu\": {\n name = \"KupuKupu\";\n habitat = \"Air\";\n weight = (float) 0.03;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Nectar\";\n legs = 6;\n content = 'O';\n suara = \"Wir wir\";\n break;\n }\n case \"Lobster\": {\n name = \"Lobster\";\n habitat = \"Water\";\n weight = (float) 0.5;\n type = \"Omnivore\";\n tamed = true;\n diet = \"Plankton\";\n legs = 10;\n content = 'P';\n suara = \"Crek crek crek\";\n break;\n }\n case \"LumbaLumba\": {\n name = \"Lumba lumba\";\n habitat = \"Water\";\n weight = 100;\n type = \"Omnivore\";\n tamed = true;\n diet = \"Plankton\";\n legs = 0;\n content = 'Q';\n suara = \"Cet cet cet\";\n break;\n }\n case \"MacanTutul\": {\n name = \"Macan Tutul\";\n habitat = \"Land\";\n weight = 350;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Meat\";\n legs = 4;\n content = 'R';\n suara = \"Aummmm\";\n break;\n }\n case \"OwaOwa\": {\n name = \"OwaOwa\";\n habitat = \"Land\";\n weight = 70;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Fruit\";\n legs = 2;\n content = 'S';\n suara = \"Huhuhuhu\";\n break;\n }\n case \"PausSperma\": {\n name = \"Paus Sperma\";\n habitat = \"Water\";\n weight = 7000;\n type = \"Omnivore\";\n tamed = true;\n diet = \"Plankton\";\n legs = 0;\n content = 'T';\n suara = \"Srosh srosh\";\n break;\n }\n case \"Piranha\": {\n name = \"Piranha\";\n habitat = \"Water\";\n weight = (float) 0.7;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 0;\n content = 'U';\n suara = \"Kraus kraus\";\n break;\n }\n case \"Platypus\": {\n name = \"Platypus\";\n habitat = \"Land and Water\";\n weight = 5;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Insect\";\n legs = 4;\n content = 'V';\n suara = \"Krr krr\";\n break;\n }\n case \"Singa\": {\n name = \"Singa\";\n habitat = \"Land\";\n weight = 400;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 4;\n content = 'W';\n suara = \"Groarrr\";\n break;\n }\n case \"SingaLaut\": {\n name = \"Singa Laut\";\n habitat = \"Water\";\n weight = 70;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 0;\n content = 'X';\n suara = \"Ou ou ou\";\n break;\n }\n default: {\n name = \"NULL\";\n habitat = \"NULL\";\n weight = 0;\n type = \"NULL\";\n tamed = false;\n diet = \"NULL\";\n legs = 0;\n content = '-';\n suara = \"NULL\";\n break;\n }\n }\n fodder = (float) 0.025 * weight;\n locX = x;\n locY = y;\n nAnimal++;\n consumerate += fodder;\n }", "public void ektypwsiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR MEDICINE No.\" + (i+1) + \":\");\n\t\t\t\tmedicine[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMA FARMAKA PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Override\n\tString getName(){\n\t\treturn animalName;\n\t}", "private void seeAnimal() {\n\r\n\t}", "public static void main(String[] args) {\n\t\tAnimal avestruz = new Animal(\"Julio\", 0, 25 ); //uno genérico\n\t\t\n\t\tavestruz.mostrar();\n\t\n\t\tPerro perrito = new Perro (\"Gordo\", 4, 10); //otro especifico con un método mostrar diferente en su clase para así decir otra cosa\n\t\t\n\t\tperrito.mostrar();\n\t\t\n\t\tDelfin fliper = new Delfin (\"Flipper\", 0, 60, true);\n\t\n\t\tfliper.mostrar();\n\t\t\n\t\tAnimal[] animales = {avestruz, perrito, fliper};\n\t\tfor (int i = 0; i < animales.length; i++) {\n\t\t\tSystem.out.println(\"-----------------------\");\n\t\t\tanimales[i].mostrar();\n\t\t}\n\t\t\n\t\t//Enseñar varios bucles.\n\t\t\n\t\tDelfin [] delfines = {fliper};\n\t\t\n\t\t\n\t\t\n\t}", "public void showAnimalInfo(Player p, Entity e){\r\n\tif(this.checkifHasOwner(e.getUniqueId().toString())){\r\n\t\tAnimals a = new Animals(plugin, e.getUniqueId().toString(), p.getUniqueId().toString());\r\n\t\tint hp = (int) a.getHeartPoints();\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"+++++ Animal Info +++++\");\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Animal Name: \" + ChatColor.GREEN+ a.getAnimalName());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Animal Owner: \" + ChatColor.GREEN+ a.getOwnerName());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Heart Level: \" + ChatColor.GREEN + hp);\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is Clean: \" + ChatColor.GREEN + a.getIsWashed());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is happy: \" + ChatColor.GREEN + a.isHappy());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is lonely: \" + ChatColor.GREEN + a.getIsPet());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is Hungry: \" + ChatColor.GREEN + a.getHunger());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is Healthy: \" + ChatColor.GREEN + a.isHealthy());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is Weight: \" + ChatColor.GREEN + a.getWeight());\r\n\t\t}\r\n\t}", "public void diagrafiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka sto farmakeio\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA FARMAKWN\");\n\t\t\t// Emfanizw ola ta famraka tou farmakeiou\n\t\t\tfor(int j = 0; j < numOfMedicine; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA FARMAKOU: \");\n\t\t\t\tSystem.out.println();\n\t \t \tmedicine[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttmp_1 = sir.readPositiveInt(\"DWSTE TON ARITHMO TOU FARMAKOU POU THELETAI NA DIAGRAFEI: \");\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos egkyrotitas tou ari8mou pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfMedicine)\n\t\t\t{\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"KSANAEISAGETAI ARITHMO FARMAKOU: \");\n\t\t\t}\n\t\t\t// Metakinw ta epomena farmaka mia 8esi pio aristera\n\t\t\tfor(int k = tmp_1; k < numOfMedicine - 1; k++)\n\t\t\t{\n\t\t\t\tmedicine[k] = medicine[k+1]; // Metakinw to farmako sti 8esi k+1 pio aristera\n\t\t\t}\n\t\t\tnumOfMedicine--; // Meiwse ton ari8mo twn farmakwn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print(\"\\nDEN YPARXOUN DIATHESIMA FARMAKA PROS DIAGRAFH!\\n\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void tagOnlyNomorDua() {\r\n Iterator<Kalimat> iterSatu = MarkovCore.TAG_ONLY.iterator();\r\n while (iterSatu.hasNext()) {\r\n Kalimat kalimat = iterSatu.next();\r\n System.out.println(kalimat.getRawKalimat());\r\n System.out.println(kalimat.getBigramProbability(Kalimat.TAG_ONLY));\r\n }\r\n }", "public void createAnimals() {\n\t\tanimals = new Animal[noAnimals];\n\n\t\tfor (int i = 0; i < noAnimals; i++) {\n\t\t\tanimals[i] = new Animal(noAnimals);\n\t\t\tanimals[i].setDiffCo(diffCo[i]);\n\t\t\tanimals[i].setDiffusionRate(diffusionRate[i]);\n animals[i].initiateDensities(getIo().getNeighbours().length,getIo().getNeighbours()[0].length);\n\t\t}\n\t\n\t\t animals[0].setName(\"Hare\"); \n\t\t animals[1].setName(\"Puma\");\n\t}", "public static void main(String[] args) {\n Dog dog = new Dog(true, true, \"big\");\n System.out.println(\" \");\n Kat kat = new Kat(true, 2,true, 123, true, true, \"yes\");\n// System.out.println(dog.makeSound() + kat.makeSound());\n\n\n System.out.println(kat.catYears());\n\n System.out.println(dog.dogYears());\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "public String animalDice(String texto){\n\t\treturn texto;\n\t}", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void swim(){// this class only for fish class\n System.out.println(name+\" swimming\");\n }", "public void eat(){\r\n System.out.println(this.animalName + \" eats\");\r\n }", "public static void main(String[] args) {\n AnimalBp turtle = new AnimalBp(); \n AnimalBp dog = new AnimalBp();\n AnimalBp cat = new AnimalBp();\n \n \n \n turtle .setType(\"Reptile\");\n String turtleType = turtle.getType();\n \n \n System.out.println(turtleType);\n \n turtle.setnumberOfFeet(4);\n int turtlenumberOfFeet = turtle.getnumberOfFeet();\n \n System.out.println(turtlenumberOfFeet);\n \n turtle.setColor(\"Green\");\n String turtleColor = turtle.getColor();\n \n System.out.println(turtleColor);\n \n turtle.setlaysAnEgg(true);\n boolean turtlelaysAnEgg = turtle.getLaysAnEgg();\n \n System.out.println(turtlelaysAnEgg);\n \n \n dog .setType(\"Mammal\");\n String dogType = dog.getType();\n \n System.out.println(dogType);\n \n dog.setnumberOfFeet(4);\n int dognumberOfFeet = dog.getnumberOfFeet();\n \n System.out.println(dognumberOfFeet);\n \n dog.setColor(\"Brown and White\");\n String dogColor = dog.getColor();\n \n System.out.println(dogColor);\n \n dog.setlaysAnEgg(false);\n boolean doglaysAnEgg = dog.getLaysAnEgg();\n \n System.out.println(doglaysAnEgg);\n \n cat .setType(\"Mammal\");\n String catType = cat.getType();\n \n \n System.out.println(catType);\n \n cat.setnumberOfFeet(4);\n int catnumberOfFeet = cat.getnumberOfFeet();\n \n System.out.println(catnumberOfFeet);\n \n cat.setColor(\"gray\");\n String catColor = cat.getColor();\n \n System.out.println(catColor);\n \n cat.setlaysAnEgg(false);\n boolean catlaysAnEgg = cat.getLaysAnEgg();\n \n System.out.println(catlaysAnEgg);\n }", "void Dogs() {\n \n }", "void breed() {\n\t\tSystem.out.println(\"Ape breeding\");\n\t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tAnimal a1 = new Animal(\"Köpek\", \"Kuçi\",\"boy\",2);\n\t\tAnimal a2 = new Animal();\n\t\t\n\t\ta2.setName(\"Badi\");\n\t\ta2.setAge(3);\n\t\ta2.setGender(\"by\");\n\t\ta2.setType(\"Köpek\");\n\t\t\n\t\tSystem.out.println(a2.getAge()+\" \"+ a2.getName()+\" \"+ a2.getType());\n\t\t\n\t\ta1.hunt();\n\t\ta1.eat();\n\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tAnimal a1 = new Animal();\r\n\t\tDog d1 = (Dog)a1;\r\n\t\td1.eat();\r\n\t\td1.noise();\r\n\t\t\r\n\t}", "public void kjop() {\r\n System.out.println(\"Skriv inn hvem som skal kjope\");\r\n String eier = scan.nextLine().toLowerCase();\r\n\r\n if (personListe.containsKey(eier)) {\r\n System.out.println(\"Skriv inn tittelen paa DVD'en du vil kjope\");\r\n String tittel = scan.nextLine().toLowerCase();\r\n\r\n if (!dvdListe.containsKey(tittel)) {\r\n DVD dvd = new DVD(tittel, personListe.get(eier));\r\n personListe.get(eier).leggTilDVD(dvd);\r\n dvdListe.put(tittel, dvd);\r\n }\r\n\r\n else {\r\n System.out.println(\"Denne DVD'en eksisterer alt.\");\r\n }\r\n }\r\n\r\n else {\r\n System.out.println(\"Denne personen finnes ikke\");\r\n }\r\n }", "public static void main(String[] args) {\n Ator a = new Ator(\"Alberto\");\r\n Ator b = new Ator(\"Vagner moura\");\r\n Ator c = new Ator(\"Ator 1\");\r\n\r\n Filme f= new Filme(\"Tropa de elite\", 2011);\r\n\r\n f.addPapel(a,\"papel 1\", false);\r\n f.addPapel(b,\"papel 2\", true);\r\n f.addPapel(c,\"papel 3\", true);\r\n\r\n\r\n System.out.println(a.getFilmes());\r\n /*System.out.println(f.getProtagonista());\r\n System.out.println(f);\r\n System.out.println(a);\r\n System.out.println(b);\r\n System.out.println(c);*/\r\n\r\n\r\n }", "public Vector<MakhlukHidup> get_daftar();", "@Override\n\tpublic void tipoAnimal() {\n\t\tSystem.out.println(super.getNome() + \" é um gato.\");\n\t}", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void druckeMagazin()\n {\n for (T posten : magazin) \n {\n System.out.println (posten);\n }\n }", "public static void main(String[] args) {\n Animal zebra=new Animal(\"Pol\", \"Male\", 11, \"Zebra\");\n zebra.sleep();\n zebra.walk();\n zebra.eat();\n \n Animal giraffe=new Animal(\"Necky\",\"Female\",23,\"Giraffe\");\n giraffe.sleep();\n giraffe.walk();\n giraffe.eat();\n \n \n}", "public Animal(String name) {\r\n this.animalName = name;\r\n }", "public Animal(String tipo){\n\t\tthis.tipo = tipo;\n\t}", "public Town getDroghedaDescription1() {\n\t\treturn new Town(\"The River Boyne (Irish: An Bhóinn or Abhainn na Bóinne) is a river in Leinster, Ireland, the course of which is about 112 kilometres\");\r\n\t}", "public static int animals(int tavuk, int inek, int keci){\n\t \n\t int sum=inek*4+tavuk*2+keci*4;\n\t \n\t return sum;\n\n\t}", "public String getName() {\r\n return this.animalName;\r\n }", "public static void main(String[] args) {\n\n int x = Integer.parseInt(JOptionPane.showInputDialog(null,\"Introduceti numarul de instante:\"));\n for(int i=0;i<x;i++){\n Animal animal = new Animal();\n animal.setLegs(Integer.parseInt(JOptionPane.showInputDialog(null, \"Introduceti numarul de membre: \")));\n animal.setColor(JOptionPane.showInputDialog(null, \"Introduceti culoarea: \"));\n animal.setVegetarian(Boolean.parseBoolean(String.valueOf(JOptionPane.showConfirmDialog(null, \"Erbivor? \"))));\n animal.setWeight(Float.parseFloat(JOptionPane.showInputDialog(null, \"Introduceti greutatea: \")));\n\n JOptionPane.showMessageDialog(null,animal.toString());\n }\n\n }", "private static void grabarYleerMedico() {\r\n\r\n\t\tMedico medico = new Medico(\"Manolo\", \"Garcia\", \"62\", \"casa\", \"2\", null);\r\n\t\tDTO<Medico> dtoMedico = new DTO<>(\"src/Almacen/medico.dat\");\r\n\t\tif (dtoMedico.grabar(medico) == true) {\r\n\t\t\tSystem.out.println(medico.getNombre());\r\n\t\t\tSystem.out.println(medico.getDireccion());\r\n\t\t\tSystem.out.println(\"Medico grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tMedico medicoLeer = dtoMedico.leer();\r\n\t\tSystem.out.println(medicoLeer);\r\n\t\tSystem.out.println(medicoLeer.getNombre());\r\n\t}", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "public MakhlukHidup get_daftar(int i);", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"NUEVO ANIMAL\\n¿Nombre?\");\r\n\t\tString nombre = input.nextLine();\r\n\t\tSystem.out.println(\"\\n¿Edad?\");\r\n\t\tint edad = Integer.parseInt(input.nextLine());\r\n\t\tAnimal nuevoAnimal = new Animal(nombre,edad);\r\n\t\tSystem.out.println(nuevoAnimal.nace() + \"\\n\");\r\n\t\tSystem.out.println(\"Me llamo \" + nuevoAnimal.getNombre() + \" y tengo \" + nuevoAnimal.getEdad() + \" años.\");\r\n\t}", "public Jugador(int dorsal)\n {\n Random rmd = new Random();\n edad = rmd.nextInt(23)+18 ;\n estadoForma = rmd.nextInt(11);\n int nom = rmd.nextInt(33);\n Nombres nomb = new Nombres();\n nombre = nomb.getNombre(nom);\n this.dorsal = dorsal;\n this.nombre = nombre;\n }", "public String getAllFarmAnimals(){\r\n\t\tPlayer[] p = Bukkit.getOnlinePlayers();\r\n\t\t\tfor(Player player : p){\r\n\t\t\tif(plugin.getAnimalData().contains(\"Farmer.\" + player.getUniqueId().toString())){\r\n\t\t\tString farmer = player.getUniqueId().toString();\t\r\n\t\t\tSet<String> animals = plugin.getAnimalData().getConfigurationSection(\"Farmer.\" + farmer + \".Animals\").getKeys(false);\r\n\t\t\tfor(String animal : animals){\r\n\t\treturn animal;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn null;\r\n\t}", "public static void main(String[] args) {\n\t\tAnimal Jose = new Animal(\"lion\",\"Marco\",'M',\"1825\");\r\n\t\tAnimal Josianne = new Animal(\"lion\",\"josianne\",'F',\"1829\");\r\n\t\t\r\n\t\t// rajout de l'accouplement avec Josianne pour Jose\r\n\t\tJose.setAccouple(Josianne);\r\n\r\n\t\tSystem.out.println(Jose.toString());\r\n\t}", "public static void show() {\n Animal.Petdog.sleep();\n\n // The dog is going to bark.\n Animal.Petdog.bark();\n\n // Creating a new chicken and a new pig.\n Animal c= new Chicken();\n Animal g= new Pig();\n\n // The animals are going to sleep.\n c.sleep();\n g.sleep();\n\n // The animals are going to fight with dog.\n c.fightWithDog();\n g.fightWithDog();\n\n // The animals are going to exercise.\n c.exe();\n g.exe();\n\n // Chicken can also run with your set.\n c.exewithset(\"Run\");\n\n // The animals are going to breed.\n c.breed();\n g.breed();\n\n // The animals are going to do shower.\n c.shower();\n g.shower();\n\n // Let's see how many product do we have before animals produce products.\n System.out.println(\"Chicken meat: \" +Chickenmeat.amount+\"\\nEggs: \"+ Eggs.amount) ;\n System.out.println(\"Pork: \" +Pork.amount) ;\n\n // The animals are going to produce external product.\n c.producewithoutdeath();\n g.producewithoutdeath();\n\n // The animals are going to produce internal product.\n c.producewithdeath();\n g.producewithdeath();\n\n // Let's see how many product do we have after animals produce products.\n System.out.println(\"Chicken meat: \" +Chickenmeat.amount+\"\\nEggs: \"+ Eggs.amount) ;\n System.out.println(\"Pork: \" +Pork.amount) ;\n\n // Get currnet states of the animals.\n c.getstate();\n g.getstate();\n\n // The dead animals regain life.\n c.setstate();\n g.setstate();\n c.getstate();\n g.getstate();\n\n\n }", "public static void main(String[] args) {\n\t\tCat cat=new Cat(\"Kira\",8); \n\t\tSystem.out.println(cat); \n\t\tcat.getSound(); \n\t\tcat.eat(); \n\t\tcat.eat(\"wiskas\"); \n\t}", "public void printSpayedOrNeutered(){\n System.out.println(\"Spayed or Neutered Dogs:\");\n ArrayList<Dog> dogsSpayedOrNeutered = dogsSpayedOrNeutered();\n for(Dog d : dogsSpayedOrNeutered){\n d.printInfo();\n }\n }", "public void bark(){// bark class only belongs to dog class\n System.out.println(name+\" is barking\");\n }", "public static void main(String[] args) {\nScanner sca = new Scanner(System.in);\t\nCachorrO dog = new CachorrO();\nCavalO hor = new CavalO();\nPreguiÇa per = new PreguiÇa();\nAnimaL anim= null;\nint ani;\ndo {\nSystem.out.println(\"Escolha um animal\\n1-Cachorro\\n2-Cavalo\\n3-Preguiça\");\nani = sca.nextInt();\nSystem.out.println(\"Fazenda Dourado\");\nSystem.out.println(\"Seja bem-vindo\");\nSystem.out.println(\"------------------------------------------------------\");\nif(ani==1)\n{\n\tanim = dog;\n\tSystem.out.println(\"\\nQual o nome do seu cachorro?\");\n\tString nome = sca.next();\n\tSystem.out.println(\"\\nQuantos anos seu cachorro tem?\");\n\tint idade = sca.nextInt();\n\tSystem.out.println(\"\\nEssa é legal!!!Qual o som que seu cachorro emite?\");\n\tString som = sca.next();\n\tSystem.out.println(\"------------------------------------------------------\");\n\tdog.Nome(nome);\n\tdog.Idade(idade);\n\tdog.Som(som);\n}\nelse if(ani==2)\n{\n\tanim=hor;\n\tSystem.out.println(\"\\nQual o nome do seu cavalo?\");\n\tString nome = sca.next();\n\tSystem.out.println(\"\\nQuantos anos seu cavalo tem?\");\n\tint idade = sca.nextInt();\n\tSystem.out.println(\"\\nEssa é legal!!!Qual o som que seu cavalo emite?\");\n\tString som = sca.next();\n\tSystem.out.println(\"------------------------------------------------------\");\n\thor.Nome(nome);\n\thor.Idade(idade);\n\thor.Som(som);\n\t\n}\nelse if(ani==3)\n{\n\tanim=per;\n\tSystem.out.println(\"\\nQual o nome da sua preguiça?\");\n\tString nome = sca.next();\n\tSystem.out.println(\"\\nQuantos anos sua preguiça tem?\");\n\tint idade = sca.nextInt();\n\tSystem.out.println(\"\\nEssa é legal!!!Qual o som que sua preguiça emite?\");\n\tString som = sca.next();\n\tSystem.out.println(\"------------------------------------------------------\");\n\tper.Nome(nome);\n\tper.Idade(idade);\n\tper.Som(som);\n}\nelse\n{\n\tSystem.out.println(\"\\nInformação Inválida!!!\");\n}\n}\nwhile(ani<=0 || ani>=4);\n}", "public static void function(Animal a){\n a.eat();\n if (a instanceof Cat){//instanceof 判断指向类型\n Cat c =(Cat)a;\n c.catchMouse();\n }\n else if(a instanceof Dog){\n Dog d =(Dog) a;\n d.kanjia();\n }\n\n }", "public void removeAnimal(AnimalSol animal) {\n for (int i = 0; i < myAnimals.length; i++) {\n if (animal == myAnimals[i]) {\n nrAnimals--;\n myAnimals[i]=myAnimals[nrAnimals];\n myAnimals[nrAnimals]=null;\n return;\n } else if (null == myAnimals[i]) {\n throw new RuntimeException(\"Animal \" + animal + \" not found :(\");\n }\n }\n }", "public void pet() {\n this.hunger += 1;\n this.mood += 1;\n\n if (!muted) {\n System.out.println(\"pet\\t\\t|\\t*purrr*\");\n }\n }", "public static void main(String[] args) {\n\t\tAnimal1 d=new Dog1();\n\t\td.eat();\n\t\td.makeSound();\n\t\tAnimal1 c=new Cat();\n\t\tc.eat();\n\t\tc.makeSound();\n\t}", "@Override\n public void mature(Farm farm, Animal animal) {\n }", "public static void main(String[] args) {\n Pasien Dam = new Pasien(\"Puspaningsyas\");\r\n Dam.setTanggalLahir(1974, 1, 12);\r\n// String str = Dam.getNama();\r\n \r\n \r\n\r\n System.out.println(\"Umur = \" + Dam.getUsia());\r\n Dam.NomorRekamMedis();\r\n // System.out.println(str.substring(0, 3));\r\n\r\n// Pasien Dam2 = new Pasien(\"Dam\");\r\n// Dam2.setTanggalLahir(1999,3,13);\r\n// System.out.println(\"Umur = \" +Dam2.getUsia());\r\n }", "public void laan() {\r\n if (personListe.size() > 1) {\r\n System.out.println(\"Hvem vil laane DVD'en?\");\r\n String laaner = scan.nextLine().toLowerCase();\r\n\r\n if (personListe.containsKey(laaner)) {\r\n System.out.println(\"Hvem eier DVD'en?\");\r\n String eier = scan.nextLine().toLowerCase();\r\n Person nyEier = personListe.get(eier);\r\n if (!eier.equalsIgnoreCase(laaner)) {\r\n\r\n if(personListe.containsKey(eier)) {\r\n\r\n if(personListe.get(eier).eierSize() > 0) {\r\n System.out.println(\"Hvilken DVD skal laanes?\");\r\n String tittel = scan.nextLine().toLowerCase();\r\n\r\n if(nyEier.hentEierListe().containsKey(tittel)) {\r\n\r\n if (!nyEier.hentUtlaantListe().containsKey(tittel)) {\r\n\r\n /*kaller paa laanut pa eier, laaner legger den til laaner listen,\r\n og dvd'en setter en laaner referanse */\r\n DVD dvd = nyEier.hentEierListe().get(tittel);\r\n nyEier.laanUt(dvd);\r\n personListe.get(laaner).leggTilLaaner(dvd);\r\n System.out.println(laaner + \" laaner naa \" + tittel + \" av \" + eier);\r\n }\r\n\r\n else {\r\n System.out.println(tittel + \" er allerede utlaant.\");\r\n }\r\n\r\n }\r\n\r\n else {\r\n System.out.println(eier + \" eier ikke den DVD'en\");\r\n }\r\n\r\n }\r\n\r\n else {\r\n System.out.println(eier + \" har ingen DVD'er aa laane ut\");\r\n }\r\n\r\n }\r\n\r\n else {\r\n System.out.println(eier + \" finnes ikke i systemet\");\r\n }\r\n\r\n }\r\n\r\n else {\r\n System.out.println(\"Man kan ikke laane fra seg selv!\");\r\n }\r\n\r\n }\r\n\r\n else {\r\n System.out.println(laaner + \" finnes ikke i systemet\");\r\n }\r\n }\r\n\r\n else {\r\n System.out.println(\"Ikke nok personer til a kunne laane ut en DVD!\");\r\n }\r\n\r\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tDog dog1 = new Dog();\r\n//\t\tdog1.bark(); //we need to have created method bark().\r\n\t\tdog1.name = \"Tinito\";\r\n\t\t\r\n/*____________________________________________________________*/\t\t\r\n\t\t\r\n\t\t//Now make a Dog array.\r\n\t\t\r\n\t\tDog[] myDogs = new Dog[3];\r\n\t\tmyDogs[0] = new Dog(); //instantiates dog object referenced to by myDog[0]. \r\n\t\tmyDogs[1] = new Dog(); \r\n\t\tmyDogs[2] = dog1;\r\n/*____________________________________________________________*/\t\t\r\n\r\n\t\t//Now access the dogs using the array references\r\n\t\t\r\n\t\tmyDogs[0].name = \"Fred\";\r\n\t\tmyDogs[1].name = \"Merge\";\r\n\t\t//Note that you can't say dog1.name = \"Tinito.\"\r\n/*____________________________________________________________*/\t\t\r\n\t\t\r\n\t\t//Hmmmm....what myDogs[2] name?\r\n\t\tSystem.out.print(\"Last dog's name is \");\r\n\t\tSystem.out.println(myDogs[2].name);// Also accessed thru array ref.\r\n/*______________________________________________________________*/\t\t\r\n\t\r\n\t\t//Now loop through the array and tell all dogs to bark.\r\n\t\tint i = 0;\r\n\t\twhile(i < myDogs.length) {\r\n//\t\t\tmyDogs[i].bark;\r\n\t\t\ti = i +1;\r\n/*______________________________________________________________*/\t\t\t\r\n\t\t\t\r\n\t\t//Up to now the dogs don't know how to bark. We create method bark.\t\r\n\t\t\r\n//\t\t\tpublic void bark(){\t\t//Not sure why method rejected.\r\n\t\t\tSystem.out.println(name + \"says Ruff Ruff!\");\r\n\t\t}\r\n\t\t\r\n/*____________________________________________________________*/\r\n//\t //Similarly u can command the dogs to eat, chaseCat etc.\t\t\r\n//\t\t\tpublic void eat() { }\r\n//\t\t\tpublic void chaseCat() { }\r\n//\t\t\t\r\n//\t\t}\r\n\t}", "public boolean pedirMus(Jugador j);", "public static void main(String[] args) {\n\t\tDog dog=new Dog(12,30);\r\n\t\tLion lion=new Lion(14,100);\r\n\t\tSystem.out.println(dog.height+\" \"+dog.weight);\r\n\t\tdog.talk();\r\n\t\tSystem.out.println(lion.height+\" \"+lion.weight);\r\n\t\tlion.talk();\r\n\t\t\r\n\r\n\t}", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public void setAnimal(Animal animal) {\n\t\tthis.animal = animal;\r\n\t}", "public static void main(String[] args) {\n llama coolAnimal = new llama();\n llama.giveName();\n llama.giveGender();\n llama.name = \"joe the llama papa\";\n llama.gender = \"male\";\n llama.giveName();\n llama.giveGender();\n unicorn.giveName();\n unicorn.giveGender();\n\n }", "public void effetDeCarte(int idEffet, Joueur joueurQuiJoueLaCarte, Plateau plateau) {\n switch (idEffet) {\n case 0:\n joueurQuiJoueLaCarte.deck.piocher(1);\n break;\n case 1:\n joueurQuiJoueLaCarte.deck.piocher(2);\n break;\n case 2:\n joueurQuiJoueLaCarte.deck.piocher(3);\n break;\n case 3:\n joueurQuiJoueLaCarte.gagnerDegats(1);\n break;\n case 4:\n joueurQuiJoueLaCarte.gagnerDegats(2);\n break;\n case 5:\n joueurQuiJoueLaCarte.gagnerDegats(3);\n\n break;\n case 6:\n joueurQuiJoueLaCarte.gagnerDegats(4);\n break;\n case 7:\n joueurQuiJoueLaCarte.gagnerRunes(1);\n break;\n case 8:\n gagnerDesRunes(joueurQuiJoueLaCarte,2);\n break;\n case 9:\n gagnerDesRunes(joueurQuiJoueLaCarte,3);\n break;\n case 11:\n gagnerDesRunes(joueurQuiJoueLaCarte,1);\n gagnerDesDegats(joueurQuiJoueLaCarte,1);\n break;\n case 12:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(1);\n break;\n case 14:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n joueurQuiJoueLaCarte.piocher(1);\n break;\n case 15:\n joueurQuiJoueLaCarte.tuerUneCarteAvecDeLattaqueGratuitement(plateau);\n System.out.println(\"DEfeat a monster that has 4 D or less without paying it cost\");\n break;\n case 16:\n System.out.println(\"DEfeat a monster that has 6 D or less without paying it cost\");\n break;\n case 17:\n //joueurQuiJoueLaCarte.deck.piocher(1);\n System.out.println(\" You may banish a card in the center row\");\n break;\n case 18:\n System.out.println(\"Discard a card, if you do, draw two cards\");\n break;\n case 19:\n System.out.println(\"Copy l'effet d'un Héros joué ce tour-ci\");\n break;\n case 20:\n System.out.println(\"Once per turn you may draw a card\");\n break;\n case 21:\n System.out.println(\"You may banish this Construct to take an additional turn after this one.\");\n break;\n case 22:\n System.out.println(\"Acquire a Hero without paying its cost. Place in on top of your deck.\");\n break;\n case 23:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(1);\n gagnerDesRunes(joueurQuiJoueLaCarte,1);\n break;\n case 24:\n gagnerDesRunes(joueurQuiJoueLaCarte,2);\n verifLifebound(joueurQuiJoueLaCarte);\n break;\n case 25:\n gagnerDesRunes(joueurQuiJoueLaCarte,1);\n joueurQuiJoueLaCarte.deck.piocher(1);\n break;\n case 26:\n System.out.println(\"Once per turn, gain 1 runes, the first time you play a lifebound hero, each turn gain 1 recompense\");\n break;\n case 27:\n System.out.println(\"Once per turn , gain 1d\" +\n \"Once per turn, you may spend 4r to gain 3 recompense\");\n break;\n case 28:\n gagnerDesDegats(joueurQuiJoueLaCarte,2);\n plusDeDeuxConstructeur(joueurQuiJoueLaCarte);\n System.out.println(\"Draw a card if you control 2 or moreConstrcut\");\n break;\n case 29:\n System.out.println(\"Gain 1d or 1r\");\n break;\n case 30:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\"Gain 2r You pay 1R less the next time you acquire a Construc this turn\");\n break;\n case 31:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\"Once per turn, when you put a Mechana Construc into play (including this one) , draw a card\");\n break;\n case 32:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\"Once per turn, gain 2d.You may spend it only to acquire Mechana Construct\");\n break;\n case 33:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\" Once per turn\");\n gagner1DParTourPourChaqueMechaConstruct(joueurQuiJoueLaCarte);\n\n break;\n case 34:\n System.out.println(\"You may treat all Construcs as Mechana Construcs\");\n break;\n case 35:\n System.out.println(\"Once per turn, when you acquire another Mechana Construc, you may put it directly into play\");\n break;\n case 36:\n System.out.println(\"Once per turn ,gain 1 r . you may spend it only to acquire Mechana Construc\");\n break;\n case 37:\n joueurQuiJoueLaCarte.deck.piocher(2);\n System.out.println(\"Banish a card in you hand\");\n break;\n case 38:\n gagnerDesDegats(joueurQuiJoueLaCarte,2);\n System.out.println(\"Banish a card in you hand or discard pile\");\n break;\n case 39:\n gagnerDesDegats(joueurQuiJoueLaCarte,1);\n System.out.println(\"Banish a card in you hand or discard pile\");\n break;\n case 40:\n System.out.println(\"Once per turn, gain 3d\");\n break;\n case 41:\n System.out.println(\"Once per turn, gain 1d\");\n break;\n case 42:\n System.out.println(\"Once per turn gain 1 The first time you deafeat a monster in the center row each turn, gain 1 R\");\n break;\n case 43:\n System.out.println(\"Unbanishable You may acquire or defeat any car in the center row without paying its cost\");\n break;\n case 44:\n System.out.println(\"Each opponent must destryo a Construc he controls\");\n break;\n case 45:\n System.out.println(\"Banish a card un the center row and/or in you discard pile\");\n break;\n case 46:\n System.out.println(\"Banish a card un the center row\");\n break;\n case 47:\n System.out.println(\"If an opponent has more than one construct, that player must destroy all but one Construct he controls\");\n break;\n case 48:\n System.out.println(\"Take a card at random from each oppenent's hand and add that card to your hands\");\n break;\n }\n\n }", "public static void main(String[] args) {\n Animal animal= new Animal(\"Animal\", 1,1,5,5);\n Dog dog= new Dog(\"Dingo\", 8,20,2,4,1,20, \"long silky\");\n \n }", "public void spayOrNeuterDog(String name){\n Dog d = getDogFromName(name);\n if(d.isSpayedOrNeutered()){\n System.out.println(d.getName() + \" is already spayed or neutered\");\n }else {\n d.setSpayedOrNeutered(true);\n }\n }", "public void leerAlimentos();", "Dog(){\n\t\t\n\t\t//I want to create a chemicals object. Inorder to do this, I have to first create a Cardiac obj, then a Cells obj, then a Chemicals object.\n\t\t//I have to create a Chemicals object, to get a chemicals constructor \n\t\tnew Cardiac().new Cells().new Chemicals();\n\t\t\n\t}", "@Override\n\tpublic void tipoInteligencia() {\n\t\tSystem.out.println(super.getNome() + \" é um animal \" + ((super.isRacional() == true) ? \"racional.\" : \"irracional.\"));\n\t}", "public void cambiarDificultad(){\r\n\t\tif (Menu.dificultad == \"facil\") {\r\n\t\t\tspeed = 10;\r\n\t\t\tspace = 350;\r\n\t\t}else if (Menu.dificultad == \"normal\") {\r\n\t\t\tspeed = 10;\r\n\t\t\tspace = 280;\r\n\t\t}else if (Menu.dificultad == \"dificil\") {\r\n\t\t\tspeed = 15 ;\r\n\t\t\tspace = 300;\r\n\t\t}else if (Menu.dificultad == \"Invertido\") {\r\n\t\t\tspeed = 10;\r\n\t\t\tspace = 280;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void eatfood() {\n\t\tSystem.out.println(\"==pig : 잡식 ==\");\n\t}", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "public void adoptDog(String name){\n boolean dogAdopted = false;\n for(int i = dogs.size() - 1; i >= 0; --i){\n Dog d = dogs.get(i);\n if(d.getName().equals(name)){\n dogs.remove(i);\n dogAdopted = true;\n }\n }\n if(!dogAdopted){\n System.out.println(\"No dog by the name of \" + name + \" here to adopt\");\n }\n }", "public void parler() {\n\t System.out.println(this.formulerMonNom()); // appel d'une méthode de l'objet\n\t System.out.println(\"Je suis un animal et j'ai \" + this.nombreDePatte + \" pattes\");\n\t }", "@Test \r\n\t\r\n\tpublic void ataqueDeMagoSinMagia(){\r\n\t\tPersonaje perso=new Humano();\r\n\t\tEspecialidad mago=new Hechicero();\r\n\t\tperso.setCasta(mago);\r\n\t\tperso.bonificacionDeCasta();\r\n\t\t\r\n\t\tPersonaje enemigo=new Orco();\r\n\t\tEspecialidad guerrero=new Guerrero();\r\n\t\tenemigo.setCasta(guerrero);\r\n\t\tenemigo.bonificacionDeCasta();\r\n\t\t\r\n\t\tAssert.assertEquals(50,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(44,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t\t\r\n\t\t//ataque normal\r\n\t\tperso.atacar(enemigo);\r\n\t\t\r\n\t\tAssert.assertEquals(50,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(32,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t\t\r\n\t\t// utilizar hechizo\r\n\t\tperso.getCasta().getHechicero().agregarHechizo(\"Engorgio\", new Engorgio());\r\n\t\tperso.getCasta().getHechicero().hechizar(\"Engorgio\",enemigo);\r\n\t\t\r\n\t\tAssert.assertEquals(20,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(32,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t}", "public Dog(String Breed, String PrimaryColor, String Size, String name, int age){\r\n // setting the parent animal name\r\n super(name,age);\r\n // setting the parent animal age\r\n // System.out.println(\"Setting Breed...\");\r\n this.Breed = Breed ;\r\n // System.out.println(\"Setting PrimaryColor...\");\r\n this.PrimaryColor = PrimaryColor;\r\n //System.out.println(\"Setting Size...\");\r\n this.Size = Size;\r\n\r\n\r\n\r\n }", "public void addAnimals() throws IOException {\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint a = 0;\n\t\tArrayList<GameObjects> animals = new ArrayList<GameObjects>();\n\t\tRandom rand = new Random();\n\t\twhile(b<bigFish) {\n\t\t\tanimals.add(new BigFish(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth/2))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\tb+=1;\n\t\t}\n\t\twhile(c<crab) {\n\t\t\tanimals.add(new Crab(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth - frameWidth/3))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\tc+=1;\n\t\t}\n\t\twhile(a<algae) {\n\t\t\tanimals.add(new Algae(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth - frameWidth/3))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\ta+=1;\n\t\t}\n\n\t\tanimals.add(new BigFish(frameWidth, frameHeight));\n\t\tanimals.add(new Crab(frameWidth, frameHeight));\n\t\tanimals.add(new Algae(frameWidth, frameHeight));\n\n\t\tthis.objects = animals;\n\t}", "public static void main(String[] args) {\n Animal A1 = new Animal(5,\"Animal\",1,\"Carnivores\",1);\n Dog d1 = new Dog(2,\"Miller\",4,\"Herbivores\",1);\n\n d1.eat();\n A1.eat();\n\n }", "public static void main(String[] args) {\n\t\tAnimal cat = new Cat();\n\t\tcat.eat();\n\t\t\n\t\tSystem.out.println(\"----------\");\n\t\t\n\t\tCat c1 = new Cat(\"吾皇\", 4);\n\t\tSystem.out.println(c1.getName()+\" - \"+c1.getAge());\n\t\tc1.eat();\n\t\tc1.play();\n\t\t\n\t\tSystem.out.println(\"----------\");\n\t\t\n\t\tDog d1 = new Dog(\"巴匝黑\",3);\n\t\tSystem.out.println(d1.getName()+\" - \"+d1.getAge());\n\t\td1.eat();\n\t\td1.grant();\n\t}", "public EnquirerAnimals() {\r\n database = new TreeMap<>();\r\n bc = new BaseConhecimento();\r\n bc.setScenario(\"animals\");\r\n String[] animais_aux = bc.listaNomes();\r\n \r\n perguntas = new ArrayList<>();\r\n animais = new ArrayList<>();\r\n \r\n animais.addAll(Arrays.asList(animais_aux));\r\n \r\n \r\n \r\n //Monta database com perguntas, animais e respectivas respostas\r\n for (String animal : animais) {\r\n obj = bc.recuperaObjeto(animal);\r\n database.put(animal, new TreeMap<String,Boolean>());\r\n \r\n for (IDeclaracao decl = obj.primeira(); decl != null; decl = obj.proxima()){\r\n \r\n String perguntaAtual = decl.getPropriedade(); // pega pergunta\r\n String resp = decl.getValor(); // Pega resposta da pergunta atual\r\n \r\n QuestionInfo atual = new QuestionInfo(perguntaAtual);\r\n if (!perguntas.contains(atual))\r\n perguntas.add(atual); //Cria QuestionInfo da pergutnta atual;\r\n \r\n if (resp.equalsIgnoreCase(\"sim\"))\r\n database.get(animal).put(perguntaAtual, true);\r\n else //Respondeu nao\r\n database.get(animal).put(perguntaAtual, false);\r\n }\r\n }\r\n \r\n \r\n for (QuestionInfo pergunta : perguntas)\r\n pergunta.novoEquilibrio();\r\n }", "public static void main(String... args) {\n Mammal mammal = new Mammal();\n mammal.getName();\n Bird bird = new Bird();\n bird.getName();\n\n System.out.println(\"showAnimal(AbstractAnimal abstractAnimal) \");\n showAnimal(mammal);\n showAnimal(bird);\n }", "public static void main(String[] args) {\n\n // animal.weight = 25.3;\n // animal.age = 11;\n // System.out.println(\"animal -> \" + animal);\n\n Dog bobik = new Dog();\n bobik.setNick(\"Bobik\");\n bobik.setGender(\"male\");\n bobik.setWeight(10.0D);\n bobik.setBreed(\"Shpich\");\n bobik.age = 5;\n bobik.gender = \"netural\";\n\n // animal.say();\n bobik.say();\n\n Cat speedy = new Cat(5.25D);\n speedy.speed = \"very fast\"; // так писать нельзя\n\n bobik.walk();\n }", "public static void main(String[] args){\n //uso correcto de git aaaaa por fin lo comprendi, bueno, por ahora :/...\n\n Perro dog = new Perro(\"Teddy\", \"Callejero\", \"Croquetas\", 2, \"Fuerte\");\n Gato cat = new Gato(\"Miau\", \"Hogareño\", \"Atún\", 1, 7);\n //Perico\n Perico parrot = new Perico(\"Pericles\", \"Loro gris\", \"Galletas\", 1, \"Saludos humanos\");\n //Hamster\n Hamster ham = new Hamster(\"Hamilton\", \"Hamster chino\", \"Apio\", 4, \"Morado\");\n //No recuerdo lol...\n\n //los metodos\n dog.mostrarPerro();\n System.out.println(\"-------\");\n cat.mostrarGato();\n System.out.println(\"-------\");\n parrot.mostrarPerico();\n System.out.println(\"-------\");\n ham.mostrarHamster();\n System.out.println(\"_______\");\n \n }", "public void maakDambord() {\t\r\n\tbord.addSpeelBord(dambord.getSpeelbord());\r\n\tframe.pack();\r\n }", "private Animal criarAnimal(JTextField textNomePet, JTextField textEspecie, JTextField textRaca, JComboBox cbDonos,\n\t\t\tJTextField textPeso, JFormattedTextField textDataN) {\n\t\treturn null;\n\t}", "public static void main(String agrs[]){\n\t\t\n\t\tAnimal m = new Cat(); \n\t\n\t\n\t\ttestVoice(m);\n\t\t//只写了Animal方法区,m猫对象只有这个方法的地址却找不到方法区中animal类的方法//\n\t\tAnimal n = new Dog();\n\t\tDog k = (Dog)n;\n\t\ttestVoice(n);\n\t\tk.seeDoor();\n\t}", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tAnimals an = new Animals();\r\n\t\tan.eat();\r\n\t\tan.similar();\r\n\t\tan.sound();\r\n\t\t\r\n\t\t//creating object for Dog class based on Animals class\r\n\t\tAnimals d = new Dog();\r\n\t\td.sound();\r\n\t\td.eat();\r\n\t\t\r\n\t\t//creating object for CAT class based on Animals class.\r\n\t\tAnimals c = new Cat();\r\n\t\tc.sound();\r\n\t\tc.eat();\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tArvoreAnimal arvoreRaiz = new ArvoreAnimal(Constantes.PERGUNTA_RAIZ);\n\t\t//inicia o jogo com dois animais\n\t\tarvoreRaiz.setNoEsquerdo(new ArvoreAnimal(Constantes.ANIMAL_TUBARAO));\n\t\tarvoreRaiz.setNoDireito(new ArvoreAnimal(Constantes.ANIMAL_MACACO));\n\t\t\n\t\t//contem a logica do jogo\n\t\tKernel kernel = new Kernel();\n\t\t//seta a o no inicial para comecar o jogo\n\t\tkernel.setArvoreAnimal(arvoreRaiz);\n\n\t\t//cria a tela que exibe as mensagem\n\t\tTela tela = new Tela();\n\t\t//seta o a classe quem contem o mecanismo do jogo\n\t\ttela.setKernel(kernel);\n\t}", "protected boolean dangerAnimal() {\n return dangerAnimal(0);\n }", "@Override\n public void setEdibleAnimals() {\n addPrey(Rabbit.SPECIES);\n }", "public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "private void populaAlimento()\n {\n Alimento a = new Alimento(\"Arroz\", 100d, 5d, 0.4d, 30d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Abacaxi\", 96.2d, 1.2d, 2.3d, 6d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Carne moida - Acem\", 212.4d, 26.7d, 9.8d, 0d, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pernil Assado\", 262.3d, 32.1d, 13.1d, 0, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pao de forma integral\", 253.2d, 9.4d, 2.9d, 49, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n }", "private static void animalShout(Animal animal) {\n\t\tif(animal instanceof Cat) {\n\t\t\tCat cat = (Cat)animal;\n\t\t\tcat.sleep();\n\t\t\tcat.shout();\n\t\t} else {\n\t\t\tSystem.out.println(\"this animal is not a cat\");\n\t\t}\n\t}", "public void exerciseAnimals() {\n System.out.println(\"Letting the animals get their exercise...\\n\");\n for (int i = 0; i < zoo.length; i++){\n zoo[i].roam();\n }\n System.out.println();\n }", "public void pilihanAksi() {\n\n int urutPil = 0; //item, pintu\n int subPil = 0; //aksinya\n\n //Aksi dengan Polymorphism\n System.out.println(\"========== Pilihan Aksi pada Ruangan =============\");\n System.out.println(\"| Item di ruangan |\");\n System.out.println(\"==================================================\");\n System.out.println();\n\n //Menampilkan item dalam Array Item (Polymorphism)\n for (Item listItem : arrItem){\n urutPil++;\n subPil = 0; // Sistem penomoran 11, 12, 13, dan seterusnya\n\n System.out.println(listItem.getNama()); //Menampilkan nama pada arrItem\n\n //Menampilkan aksi pada turunan method dengan polymorphism\n ArrayList<String> arrPil = listItem.getAksi();\n for (String stringPilihan : arrPil){\n subPil++;\n //Print pilihan menu\n System.out.printf(\"%d%d. %s %n\", urutPil, subPil, stringPilihan);\n }\n }\n\n System.out.print(\"Pilihan anda : \");\n String strPil = sc.next();\n System.out.println(\"---------------\");\n\n //split pilihan dan subpilihan\n\n int pil = Integer.parseInt(strPil.substring(0,1)); //ambil digit pertama, asumsikan jumlah tidak lebih dari 10\n subPil = Integer.parseInt(strPil.substring(1,2)); //ambil digit kedua, asumsikan jumlah tidak lebih dari 10\n\n //Inheritance dari Proses Aksi dengan Polymorphism\n Item pilih = arrItem.get(pil-1);\n pilih.prosesAksi(subPil); //aksi item\n }", "public boolean removeAnimal(String name);", "private static void fish(ArrayList<Item> a, ItemManager im) {\n\t\t\n\t\tdouble ph = Math.random();\n\t\tSystem.out.println(\"you rolled a \" + ph);\n\t\tif( ph > 0.7) {\n\t\t\tprintItem(im,1);\n\t\t\ta.add(im.allItems[1]);\n\t\t} else if(ph > 0.03) {\n\t\t\tprintItem(im,2);\n\t\t\ta.add(im.allItems[2]);\n\t\t} else {\n\t\t\tSystem.out.println(\"Bummer! No luck!\");\n\t\t}\t\n\t}", "@Override\n\tvoid Show() {\n\t\tanimal.Show();\n\t\tSystem.out.print(\" Shorts\");\n\t}", "public void printDiamond(){\n printIsoceles();\n //use bottom isosceles method to get bottom half of Diamond\n printBottomIsoceles();\n }", "public void showMandje(){\r\n \r\n // Laat \r\n System.out.println(\"Winkelmand bevat de volgende items\");\r\n \r\n // Print alle artikelen die de in zijn winkelmandje heeft\r\n for(Artikel item : artikelen)\r\n {\r\n System.out.println(\"Naam:\" + item.getNaam() + \" prijs:\"+ item.getPrijs());\r\n }\r\n }", "public static void main (String[] args) \n\t {\n\t Animal an1 = new Animal(\"Bobby\", \"ocean\",120,\"medium\", 12);\n\t System.out.println(an1.getName());\n\t \t an1.setName(\"Tom\");\n\t System.out.println(\" changed to: \"+ an1.getName());\n\t System.out.println(\" Energy level after sleep changed to: \" + an1.sleep());\n\t \n\t Animal an2 = new Animal(\"Bobby\", \"ocean\",120,\"medium\", 12);\n\n\t \t \n}" ]
[ "0.656895", "0.64282036", "0.64277166", "0.62242275", "0.6149798", "0.6065559", "0.60100263", "0.5995625", "0.59518987", "0.5896573", "0.58898944", "0.5888327", "0.587441", "0.58568335", "0.5847389", "0.58282757", "0.582727", "0.58256894", "0.5816978", "0.5815326", "0.5800808", "0.57731575", "0.5757062", "0.5749005", "0.5732439", "0.5726407", "0.5723711", "0.5708866", "0.57063836", "0.5701118", "0.56973785", "0.5691488", "0.56860465", "0.568589", "0.568419", "0.5683098", "0.568044", "0.5678366", "0.5665696", "0.5661298", "0.5655193", "0.5654039", "0.5652027", "0.5651792", "0.5646293", "0.5636726", "0.5630564", "0.5622648", "0.5613733", "0.5612512", "0.56063426", "0.56020457", "0.55725527", "0.55644816", "0.5563475", "0.55584276", "0.5555756", "0.5554142", "0.5552491", "0.5548539", "0.55477226", "0.5546375", "0.5546051", "0.55426264", "0.5534857", "0.55335695", "0.55328846", "0.5529865", "0.55223256", "0.5521841", "0.55171394", "0.5515493", "0.5500761", "0.5499366", "0.54991573", "0.54901373", "0.54864365", "0.54812574", "0.5475229", "0.54750496", "0.54726535", "0.5471732", "0.5470107", "0.5468111", "0.5467299", "0.54612345", "0.54588866", "0.5457884", "0.54477525", "0.543846", "0.542687", "0.54211766", "0.5421119", "0.54064775", "0.5403354", "0.5403254", "0.54021215", "0.5396323", "0.5386351", "0.53818667", "0.53817314" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\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\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.layout.menu, menu);\n\t\treturn true;\n\t}", "@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.724863", "0.7203384", "0.7197011", "0.71784776", "0.71090055", "0.7040796", "0.7039464", "0.7013998", "0.70109546", "0.6982435", "0.6946134", "0.6939684", "0.6935636", "0.69193685", "0.69193685", "0.6892893", "0.6884914", "0.68768066", "0.68763", "0.68635243", "0.68635243", "0.68635243", "0.68635243", "0.6854071", "0.68483156", "0.6820635", "0.6818679", "0.68139905", "0.68138844", "0.68138844", "0.68068254", "0.68019366", "0.67988884", "0.6792257", "0.6791312", "0.67894673", "0.6785093", "0.67605865", "0.67587006", "0.67494637", "0.6745356", "0.6745356", "0.67428446", "0.6741961", "0.6726888", "0.67248803", "0.67236483", "0.67236483", "0.6722583", "0.6712873", "0.6707795", "0.67058164", "0.67011815", "0.669981", "0.66978544", "0.6695866", "0.66877913", "0.66849333", "0.66849333", "0.6684108", "0.66811496", "0.6680523", "0.6678561", "0.6669383", "0.66685265", "0.6664329", "0.6658405", "0.6658405", "0.6658405", "0.66576266", "0.6655998", "0.6655998", "0.6655998", "0.6653282", "0.66530126", "0.6651592", "0.6650151", "0.6648575", "0.6647844", "0.6647643", "0.6647611", "0.66465765", "0.6646401", "0.6644694", "0.6643749", "0.6643608", "0.6640089", "0.66356236", "0.6634635", "0.6633641", "0.6633641", "0.6633641", "0.66333216", "0.6630465", "0.66291285", "0.662822", "0.66277045", "0.6625648", "0.6621995", "0.6620415", "0.6620415" ]
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 // 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 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 super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\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 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\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.7904669", "0.78062934", "0.77666116", "0.7727495", "0.7631956", "0.7622029", "0.75855523", "0.7530999", "0.7488249", "0.74583405", "0.74583405", "0.74391454", "0.742199", "0.7403733", "0.73921114", "0.7387281", "0.73795027", "0.73708874", "0.7363864", "0.7356251", "0.73459506", "0.7342001", "0.73306113", "0.73286015", "0.7326429", "0.73191065", "0.7317039", "0.7313901", "0.73044896", "0.73044896", "0.7301832", "0.7298614", "0.72935665", "0.7286882", "0.72838604", "0.7281134", "0.7279026", "0.7260287", "0.72602856", "0.72602856", "0.72602856", "0.72597146", "0.7250437", "0.7224467", "0.7219954", "0.7217789", "0.7204917", "0.7200529", "0.72004616", "0.71939325", "0.71854734", "0.71783715", "0.7169028", "0.7168044", "0.7154098", "0.715406", "0.7136618", "0.7135388", "0.7135388", "0.71293885", "0.7129296", "0.71248746", "0.71238405", "0.71236056", "0.7122437", "0.71178895", "0.7117577", "0.7117577", "0.7117577", "0.7117577", "0.7117551", "0.7117253", "0.7115515", "0.7112961", "0.7110418", "0.7109445", "0.7106109", "0.710037", "0.7098831", "0.70961183", "0.7094036", "0.7094036", "0.7086734", "0.7083463", "0.7081277", "0.70808643", "0.7073911", "0.70687914", "0.70622855", "0.70609766", "0.7060495", "0.7051786", "0.7037978", "0.7037978", "0.7036548", "0.70358485", "0.70358485", "0.70334274", "0.7031107", "0.70302725", "0.70190936" ]
0.0
-1
Handle the collision of the moving entity to the same tile as the other entity.
@Override public final void handleCollision(final E movingEntity, final Entity otherEntity, final T game) throws CollisionException { if(movingEntity == null) { throw new IllegalArgumentException("movingEntity cannot be null"); } if(game == null) { throw new IllegalArgumentException("game cannot be null"); } if(!doHandleCollision(movingEntity, otherEntity, game)) { throw new CannotCollideWithException(movingEntity, otherEntity); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean doHandleCollision(E movingEntity,\n Entity otherEntity,\n T game)\n throws CollisionException;", "public void applyEntityCollision(Entity entityIn) {\n }", "public void checkCollisionTile(Entity entity) {\n\t\t\tint entityLeftX = entity.worldX + entity.collisionArea.x;\n\t\t\tint entityRightX = entity.worldX + entity.collisionArea.x + entity.collisionArea.width;\n\t\t\tint entityUpY = entity.worldY + entity.collisionArea.y;\n\t\t\tint entityDownY = entity.worldY + entity.collisionArea.y + entity.collisionArea.height;\n\t\t\t\n\t\t\tint entityLeftCol = entityLeftX/gamePanel.unitSize;\n\t\t\tint entityRightCol = entityRightX/gamePanel.unitSize;\n\t\t\tint entityUpRow = entityUpY/gamePanel.unitSize;\n\t\t\tint entityDownRow = entityDownY/gamePanel.unitSize;\n\t\t\t\n\t\t\tint point1;\n\t\t\tint point2;\n\t\t\t//This point is used for diagonal movement\n\t\t\tint point3;\n\t\t\t\n\t\t\tswitch(entity.direction) {\n\t\t\t\t//Lateral and longitudinal movements\n\t\t\t\tcase \"up\":\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\t//Sets the top left and top right point to draw a line which will check for collision\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\t//If either points are touched, turn on collision stopping movement\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"down\":\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"left\":\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"right\":\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t//Diagonal Movements\n\t\t\t\tcase \"upleft\":\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\t//Sets the top left and top right point to draw a line which will check for collision\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\t//If either points are touched, turn on collision stopping movement\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"upright\":\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase \"downleft\":\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"downright\":\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "void checkCollision(Entity other);", "public abstract void collideWith(Entity entity);", "@Override\r\n\tpublic boolean collides (Entity other)\r\n\t{\r\n\t\tif (other == owner || other instanceof Missile)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn super.collides(other);\r\n\t}", "@Override\r\n\tpublic void Collision(Entity e)\r\n\t{\r\n\t\tthis.isAlive = false;\r\n\t}", "private void handleCollisions(Sprite sprite1, Sprite sprite2){\n\t\tif(!sprite1.isActive() || !sprite2.isActive()) return;\n\n\t\tif(sprite1.equals(sprite2)){\n\t\t\treturn;\n\t\t}\n\n\t\tBounds boundsSprite1 = renderSprite(sprite1).getChildren().get(0).getBoundsInParent();\n\t\tBounds boundsSprite2 = (renderSprite(sprite2).getChildren().get(0).getBoundsInParent());\n\n\t\tif(boundsSprite1.intersects(boundsSprite2)) {\n\t\t\tcollisionHandler.handleCollide(sprite1, sprite2);\n\t\t}\n\n\t}", "@Override\n\tpublic void onCollision(Entity collidedEntity)\n\t{\n\t\t\n\t}", "protected void onCollision(Actor other) {\r\n\r\n\t}", "private boolean handleCollision(CollisionResult result, Node movingNode, Node anotherNode,\n double oldX, double oldY){\n if(result.containFlag(CollisionResult.REJECT)){\n // set translate co-ord back to before\n movingNode.setTranslateX(oldX);\n movingNode.setTranslateY(oldY);\n }\n if(result.containFlag(CollisionResult.LOSE)){\n System.out.println(\"You've LOST the game!\");\n Platform.runLater(this::handleLose);\n mainAnimation.stop();\n return true;\n }\n if(result.containFlag(CollisionResult.WIN)){\n System.out.println(\"You've WON the game!\");\n handleWin();\n mainAnimation.stop();\n return true;\n }\n if(result.containFlag(CollisionResult.DELETE_FIRST)){\n dungeonPane.getChildren().remove(movingNode);\n }\n if(result.containFlag(CollisionResult.DELETE_SECOND)){\n dungeonPane.getChildren().remove(anotherNode);\n }\n if(result.containFlag(CollisionResult.REFRESH_INVENTORY)){\n updateInventory();\n }\n if(result.containFlag(CollisionResult.REFRESH_EFFECT_TIMER)){\n // second one is the one being collided\n Potion potion = (Potion) result.getCollidingObjects()[1];\n Timer timer = new Timer(potion, arg -> player.removePotionEffect(engine, potion));\n\n timers.add(timer);\n }\n return false;\n }", "private void updateTileCollisions(Mob mob) {\n\t\tif (mob instanceof Player) {\r\n\t\t\tmob.setScreenPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.max(mob.getScreenPosition().x, mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.max(mob.getScreenPosition().y, mob.getHeight() / 2)));\r\n\t\t\tmob.setScreenPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.min(mob.getScreenPosition().x, Display.getWidth() - mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.min(mob.getScreenPosition().y, Display.getHeight() - mob.getHeight() / 2)));\n\r\n\t\t\tmob.setAbsPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.max(mob.getAbsPosition().x, mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.max(mob.getAbsPosition().y, mob.getHeight() / 2)));\r\n\t\t\tmob.setAbsPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.min(mob.getAbsPosition().x, tilemap.getWidth() - mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.min(mob.getAbsPosition().y, tilemap.getHeight()) - mob.getHeight() / 2));\r\n\t\t}\r\n\r\n\t\tPoint center = mob.getScreenPosition().add(offset);\r\n\r\n\t\tboolean hitGround = false; // used to check for vertical collisions and determine \r\n\t\t// whether or not the mob is in the air\r\n\t\tboolean hitWater = false;\r\n\r\n\t\t//update mob collisions with tiles\r\n\t\tfor (int i = 0; i < tilemap.grid.length; i++) {\r\n\t\t\tfor (int j = 0; j < tilemap.grid[0].length; j++) {\r\n\r\n\t\t\t\tif (tilemap.grid[i][j] != null &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().x > center.x - (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().x < center.x + (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().y > center.y - (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().y < center.y + (250)) {\r\n\r\n\t\t\t\t\tRectangle mobRect = mob.getBounds();\r\n\t\t\t\t\tRectangle tileRect = tilemap.grid[i][j].getBounds();\r\n\r\n\t\t\t\t\t// if mob intersects a tile\r\n\t\t\t\t\tif (mobRect.intersects(tileRect)) {\r\n\r\n\t\t\t\t\t\t// get the intersection rectangle\r\n\t\t\t\t\t\tRectangle rect = mobRect.intersection(tileRect);\r\n\r\n\t\t\t\t\t\t// if the mob intersects a water tile, adjust its movement accordingly\r\n\t\t\t\t\t\tif (tilemap.grid[i][j].type == TileMap.WATER) { \r\n\r\n\t\t\t\t\t\t\tmob.gravity = mob.defaultGravity * 0.25f;\r\n\t\t\t\t\t\t\tmob.jumpSpeed = mob.defaultJumpSpeed * 0.35f;\r\n\t\t\t\t\t\t\tmob.moveSpeed = mob.defaultMoveSpeed * 0.7f;\r\n\r\n\t\t\t\t\t\t\tif (!mob.inWater) { \r\n\t\t\t\t\t\t\t\tmob.velocity.x *= 0.2;\r\n\t\t\t\t\t\t\t\tmob.velocity.y *= 0.2;\r\n\t\t\t\t\t\t\t\tmob.inWater = true;\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\thitWater = true;\r\n\t\t\t\t\t\t\tmob.jumping = false;\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\t\t// if intersection is vertical (and underneath player)\r\n\t\t\t\t\t\t\tif (rect.getHeight() < rect.getWidth()) {\r\n\r\n\t\t\t\t\t\t\t\t// make sure the intersection isn't really horizontal\r\n\t\t\t\t\t\t\t\tif (j + 1 < tilemap.grid[0].length && \r\n\t\t\t\t\t\t\t\t\t\t(tilemap.grid[i][j+1] == null || \r\n\t\t\t\t\t\t\t\t\t\t!mobRect.intersects(tilemap.grid[i][j+1].getBounds()))) {\r\n\r\n\t\t\t\t\t\t\t\t\t// only when the mob is falling\r\n\t\t\t\t\t\t\t\t\tif (mob.velocity.y <= 0) {\r\n\t\t\t\t\t\t\t\t\t\tmob.velocity.y = 0;\r\n\t\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().x, \r\n\t\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().y + rect.getHeight() - 1)));\r\n\t\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().x, \r\n\t\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().y + rect.getHeight() - 1)));\r\n\t\t\t\t\t\t\t\t\t\tmob.inAir = false;\t\r\n\t\t\t\t\t\t\t\t\t\tmob.jumping = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// if intersection is horizontal\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tmob.velocity.x = 0;\r\n\r\n\t\t\t\t\t\t\t\tif (mobRect.getCenterX() < tileRect.getCenterX()) {\r\n\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().x - rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().y));\r\n\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().x - rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().y));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().x + rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().y));\r\n\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().x + rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().y));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tfloat xToCenter = Math.abs((float)(mobRect.getCenterX() - tileRect.getCenterX()));\r\n\t\t\t\t\t\t\tfloat yToCenter = Math.abs((float)(mobRect.getCenterY() - tileRect.getCenterY())); \r\n\r\n\t\t\t\t\t\t\t// Check under the mob to see if it touches a tile. If so, hitGround = true\r\n\t\t\t\t\t\t\tif (yToCenter <= (mobRect.getHeight() / 2 + tileRect.getHeight() / 2) && \r\n\t\t\t\t\t\t\t\t\txToCenter <= (mobRect.getWidth() / 2 + tileRect.getWidth() / 2))\r\n\t\t\t\t\t\t\t\thitGround = true;\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if mob doesn't intersect a tile vertically, they are in the air\r\n\t\tif (!hitGround) {\r\n\t\t\tmob.inAir = true;\r\n\t\t}\r\n\t\t// if the mob is not in the water, restore its default movement parameters\r\n\t\tif (!hitWater) {\r\n\t\t\tmob.gravity = mob.defaultGravity;\r\n\t\t\tmob.moveSpeed = mob.defaultMoveSpeed;\r\n\t\t\tmob.jumpSpeed = mob.defaultJumpSpeed;\r\n\t\t\tmob.inWater = false;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void doCollision(CollisionResult c) {\n\t\t\n\t}", "public void collide(Entity entity) throws IllegalArgumentException{\n\t \n \tif (this instanceof Ship && entity instanceof Ship) this.defaultCollide(entity);\n \telse if (this instanceof MinorPlanet && entity instanceof MinorPlanet) this.defaultCollide(entity);\n \telse if (entity instanceof Bullet) {\n \t\tBullet bullet = (Bullet) entity;\n \t\tif (bullet.getBulletSource() == this) bullet.bulletCollideOwnShip((Ship) this);\n \t\telse bullet.bulletCollideSomethingElse(this);\n \t\t}\n \t\n \telse if (this instanceof Bullet) {\n \t\tBullet bullet = (Bullet) this;\n \t\tif (bullet.getBulletSource() == entity) bullet.bulletCollideOwnShip((Ship) entity);\n \t\telse bullet.bulletCollideSomethingElse(entity);\n \t\t}\n \t\n \telse if ((this instanceof Ship && entity instanceof Asteroid) || (entity instanceof Ship && this instanceof Asteroid)){\n \t\tShip ship = null;\n \t\tif (this instanceof Ship){\n \t\t\tship = (Ship) this;\n \t\t} else {\n \t\t\tship = (Ship) entity;\n \t\t}\n \t\tship.terminate();\n \t}\n \t\n \telse if ((this instanceof Ship && entity instanceof Planetoid) || (entity instanceof Ship && this instanceof Planetoid)){\n \t\tShip ship = null;\n \t\tif (this instanceof Ship){\n \t\t\tship = (Ship) this;\n \t\t} else {\n \t\t\tship = (Ship) entity;\n \t\t}\n \t\t\n \t\tWorld world = ship.getSuperWorld();\n \t\tdouble xnew = Helper.randomInBetween(this.getRadius(), world.getWorldWidth());\n \t\tdouble ynew = Helper.randomInBetween(this.getRadius(), world.getWorldHeight());\n \t\tship.setPosition(xnew, ynew);\n \t\t\n \t\twhile (! this.overlapAnyEntity()){\n \t\t\txnew = Helper.randomInBetween(this.getRadius(), world.getWorldWidth());\n \t\t\tynew = Helper.randomInBetween(this.getRadius(), world.getWorldHeight());\n \t\t\tship.setPosition(xnew, ynew);\n \t\t\t}\n \t}\n\t \t\n \t\n }", "public void tick() {\n if (!isActive || !entities[0].canCollide || !entities[1].canCollide) {\n return;\n }\n\n rectangles[0].x = boundaries[0].x - 1;\n rectangles[1].x = boundaries[1].x - 1;\n rectangles[0].y = boundaries[0].y - 1;\n rectangles[1].y = boundaries[1].y - 1;\n\n isCollided = rectangles[0].intersects(rectangles[1]);\n\n if (isCollided && !firedEvent) {\n lastEvent = new EntityEntityCollisionEvent(this);\n onCollide();\n start(lastEvent);\n firedEvent = true;\n }\n if (!isCollided && firedEvent) {\n onCollisionEnd();\n end(lastEvent);\n firedEvent = false;\n }\n if (previouslyCollided != isCollided) {\n setBoundaryColors();\n }\n\n previouslyCollided = isCollided;\n }", "@Override\n\tpublic void collide(Entity e) {\n\n\t}", "void collisionHappened(int position);", "@Override\r\n\tpublic void handleCollision(Contact contact) {\n\t}", "public abstract void collision(SpaceThing thing);", "public void applyEntityCollision(Entity var1)\n {\n if (this.gotMovement)\n {\n if (var1 instanceof EntitySentry || var1 instanceof EntityTrackingGolem || var1 instanceof EntitySliderHostMimic || var1 instanceof EntitySentryGuardian || var1 instanceof EntitySentryGolem || var1 instanceof EntityBattleSentry || var1 instanceof EntitySlider || var1 instanceof EntityMiniSlider)\n {\n return;\n }\n\n boolean var2 = var1.attackEntityFrom(DamageSource.causeMobDamage(this.slider), 6);\n\n if (var2 && var1 instanceof EntityLiving)\n {\n this.worldObj.playSoundAtEntity(this, \"aeboss.slider.collide\", 2.5F, 1.0F / (this.rand.nextFloat() * 0.2F + 0.9F));\n\n if (var1 instanceof EntityCreature || var1 instanceof EntityPlayer)\n {\n EntityLiving var3 = (EntityLiving) var1;\n var3.motionY += 0.35D;\n var3.motionX *= 2.0D;\n var3.motionZ *= 2.0D;\n }\n\n this.stop();\n }\n }\n }", "public void unitCollision() {\n\t}", "@Override\n\t\t\t\tpublic boolean validEntity(Entity me, Entity other) {\n\t\t\t\t\tif(Mappers.status.get(me).same(Mappers.status.get(other))) return false;\n\t\t\t\t\t\n\t\t\t\t\tFacingComponent facingComp = Mappers.facing.get(me);\n\t\t\t\t\tBody myBody = Mappers.body.get(me).body;\n\t\t\t\t\tBody otherBody = Mappers.body.get(other).body;\n\t\t\t\t\t\n\t\t\t\t\tfloat xOff = facingComp.facingRight ? 0.5f : -0.5f;\n\t\t\t\t\t\n\t\t\t\t\tfloat myX = myBody.getPosition().x + xOff;\n\t\t\t\t\tfloat myY = myBody.getPosition().y;\n\t\t\t\t\tfloat otherX = otherBody.getPosition().x;\n\t\t\t\t\tfloat otherY = otherBody.getPosition().y;\n\t\t\t\t\t\n\t\t\t\t\tfloat minX = 0.0f;\n\t\t\t\t\tfloat maxX = minX + range;\n\t\t\t\t\tfloat yRange = 0.9f;\n\t\t\t\t\t\n\t\t\t\t\t// Construct box in front of you\n\t\t\t\t\tfloat closeX = facingComp.facingRight ? myX + minX : myX - minX;\n\t\t\t\t\tfloat farX = facingComp.facingRight ? myX + maxX : myX - maxX;\n\t\t\t\t\tfloat top = myY + yRange;\n\t\t\t\t\tfloat bottom = myY - yRange;\n\t\t\t\t\t\n\t\t\t\t\tDebugRender.setType(ShapeType.Line);\n\t\t\t\t\tDebugRender.setColor(Color.CYAN);\n\t\t\t\t\tDebugRender.rect(facingComp.facingRight ? closeX : farX, bottom, Math.abs(farX - closeX), top - bottom, 1.0f);\n\t\t\t\t\t\n\t\t\t\t\tRectangle kick = new Rectangle(Math.min(closeX, farX), bottom, Math.abs(closeX - farX), top - bottom);\n\t\t\t\t\tRectangle enemy = new Rectangle(Mappers.body.get(other).getAABB());\n\t\t\t\t\tenemy.x = otherX - enemy.width * 0.5f;\n\t\t\t\t\tenemy.y = otherY - enemy.height * 0.5f;\n\t\t\t\t\t\n\t\t\t\t\treturn kick.overlaps(enemy);\n//\t\t\t\t\treturn (((facingComp.facingRight && otherX >= closeX && otherX <= farX) || (!facingComp.facingRight && otherX >= farX && otherX <= closeX)) && otherY <= top && otherY >= bottom);\n\t\t\t\t}", "@Override\n\tpublic boolean handleCollision(ICollider otherObject, GameWorld gw) {\n\t\tif (otherObject instanceof NPSMissile) return false;\n\t\tif(otherObject instanceof PlayerShip)\n\t\t\tgw.explodePS();\n\t\treturn true;\n\t\t\n\t}", "@Override\r\n public void tick() {\n playerNextTo();\r\n if (playerContact() && isCollisioned()) {\r\n if (!((GameState) game.getGameState()).getWorld().getTile((int) (x + xMove), (int) (y + yMove)).isSolid()\r\n && isValidMove(xMove, yMove)) {\r\n x += xMove;\r\n y += yMove;\r\n }\r\n }\r\n }", "@Override\r\n public boolean collision(org.dyn4j.dynamics.Body body1, BodyFixture fixture1, org.dyn4j.dynamics.Body body2, BodyFixture fixture2) {\r\n //Default, keep processing this event\r\n\r\n return true;\r\n }", "@Override protected boolean drag_collide(float newX, float newY, Entity e){\n\n\n boolean collides=\n e.collideLine(x, y, newX, newY) ||\n e.collideLine(x + thirdWidth, y, newX+thirdWidth, newY) ||\n e.collideLine(x, y+height, newX, newY+height) ||\n e.collideLine(x + thirdWidth, y+height, newX+thirdWidth, newY+height) ||\n\n e.collideLine(2*thirdWidth + x, y, 2*thirdWidth + newX, newY) ||\n e.collideLine(2*thirdWidth + x + thirdWidth, y, 2*thirdWidth + newX+thirdWidth, newY) ||\n e.collideLine(2*thirdWidth + x, y+height, 2*thirdWidth + newX, newY+height) ||\n e.collideLine(2*thirdWidth + x + thirdWidth, y+height, 2*thirdWidth + newX+thirdWidth, newY+height)\n ;\n return collides;\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}", "@Override\r\n public void update() {\r\n super.update();\r\n hero.checkForTileCollision(getXOverlap(hero.oldx,hero.oldx+width,hero.x,hero.x+width), getYOverlap(hero.oldy,hero.oldy+hero.height,hero.y, hero.y+hero.height));\r\n int i = 0;\r\n\r\n while (turningPoints[i]!= null)\r\n {\r\n if (intersects(turningPoints[i].x,turningPoints[i].y, turningPoints[i].width,turningPoints[i].height))\r\n {\r\n vx = -vx;\r\n vy = -vy;\r\n }\r\n i++;\r\n }\r\n }", "private void collision() {\n\t\tfor(int i = 0; i < brownMeteors.length; i++) {\n\t\t\tif( distance(brownMeteors[i].getLayoutX() + ENTITIES_SIZE/2, brownMeteors[i].getLayoutY() - ENTITIES_SIZE/2, \n\t\t\t\t\tplayer.getLayoutX() + ENTITIES_SIZE/2, player.getLayoutY() - ENTITIES_SIZE/2) <= ENTITIES_SIZE) {\n\t\t\t\tsetNewElementPosition(brownMeteors[i]);\n\t\t\t\t\n\t\t\t\t//Update score -\n\t\t\t\tsc.score -= 3 * sc.collisionCounter; \n\t\t\t\tsc.collisionCounter++;\n\t\t\t}\n\t\t}\n\t\t//player vs grey Meteor\n\t\tfor(int i = 0; i < greyMeteors.length; i++) {\n\t\t\tif( distance(greyMeteors[i].getLayoutX() + ENTITIES_SIZE/2, greyMeteors[i].getLayoutY() - ENTITIES_SIZE/2, \n\t\t\t\t\tplayer.getLayoutX() + ENTITIES_SIZE/2, player.getLayoutY() - ENTITIES_SIZE/2) <= ENTITIES_SIZE) {\n\t\t\t\tsetNewElementPosition(greyMeteors[i]);\n\n\t\t\t\t//Update score -\n\t\t\t\tsc.score -= 3 * sc.collisionCounter;\n\t\t\t\tsc.collisionCounter++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//laser vs brown Meteor\n\t\tfor(int i = 0; i < lasers.size(); i++) {\n\t\t\tfor(int j = 0; j < brownMeteors.length; j++) { // 0 - 2 -> 3elem\n\t\t\t\tif(lasers.get(i).getBoundsInParent().intersects(brownMeteors[j].getBoundsInParent())) {\t// bounds of a node in it's parent coordinates\n\t\t\t\t\tsetNewElementPosition(brownMeteors[j]);\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i));\n\t\t\t\t\tlasers.remove(i);\n\t\t\t\t\tSystem.out.println(lasers.size());\n\t\t\t\t\t\n\t\t\t\t\t//Update score +\n\t\t\t\t\tsc.score += 1; \n\t\t\t\t\tbreak; //kein fehler mehr durch index out of bounds verletzung\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\t\n\t\tfor(int i = 0; i < lasers.size(); i++) {\n\t\t\tfor(int j = 0; j < greyMeteors.length; j++) { // 0 - 2 -> 3elem\n\t\t\t\tif(lasers.get(i).getBoundsInParent().intersects(greyMeteors[j].getBoundsInParent())) {\t// bounds of a node in it's parent coordinates\n\t\t\t\t\tsetNewElementPosition(greyMeteors[j]);\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i));\n\t\t\t\t\tlasers.remove(i);\n\t\t\t\t\tSystem.out.println(lasers.size());\n\t\t\t\t\t\n\t\t\t\t\t//Update score +\n\t\t\t\t\tsc.score += 1; \n\t\t\t\t\tbreak; //kein fehler mehr durch index out of bounds verletzung\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\t\t\n\t}", "public void handleCollision(Collision c);", "private void checkForCollisionWithSelf() {\r\n if (isInSnake(snake[0].row,snake[0].column,true)) {\r\n gameOver();\r\n }\r\n }", "public void handleCollision(ISprite collisionSprite, Collision collisionType);", "@Override\r\n\tpublic void handle(Collidable otherSprite) {\n\t\t\r\n\t}", "public void processMove(MahjongSolitaireMove move)\n {\n // REMOVE THE MOVE TILES FROM THE GRID\n ArrayList<MahjongSolitaireTile> stack1 = tileGrid[move.col1][move.row1];\n ArrayList<MahjongSolitaireTile> stack2 = tileGrid[move.col2][move.row2]; \n MahjongSolitaireTile tile1 = stack1.remove(stack1.size()-1);\n MahjongSolitaireTile tile2 = stack2.remove(stack2.size()-1);\n \n // MAKE SURE BOTH ARE UNSELECTED\n tile1.setState(VISIBLE_STATE);\n tile2.setState(VISIBLE_STATE);\n \n // SEND THEM TO THE STACK\n tile1.setTarget(TILE_STACK_X + TILE_STACK_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile1.startMovingToTarget(MAX_TILE_VELOCITY);\n tile2.setTarget(TILE_STACK_X + TILE_STACK_2_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile2.startMovingToTarget(MAX_TILE_VELOCITY);\n stackTiles.add(tile1);\n stackTiles.add(tile2); \n \n // MAKE SURE THEY MOVE\n movingTiles.add(tile1);\n movingTiles.add(tile2);\n \n // AND MAKE SURE NEW TILES CAN BE SELECTED\n selectedTile = null;\n \n // PLAY THE AUDIO CUE\n miniGame.getAudio().play(MahjongSolitairePropertyType.MATCH_AUDIO_CUE.toString(), false);\n \n // NOW CHECK TO SEE IF THE GAME HAS EITHER BEEN WON OR LOST\n \n // HAS THE PLAYER WON?\n if (stackTiles.size() == NUM_TILES)\n {\n // YUP UPDATE EVERYTHING ACCORDINGLY\n endGameAsWin();\n }\n else\n {\n // SEE IF THERE ARE ANY MOVES LEFT\n MahjongSolitaireMove possibleMove = this.findMove();\n if (possibleMove == null)\n {\n // NOPE, WITH NO MOVES LEFT BUT TILES LEFT ON\n // THE GRID, THE PLAYER HAS LOST\n endGameAsLoss();\n }\n }\n }", "public abstract boolean collide(int x, int y, int z, int dim, Entity entity);", "@Override\n\tpublic boolean checkCollision() {\n\t\treturn true;\n\t}", "public void noCollision(){\r\n this.collidingEntity2=null;\r\n this.collidingEntity=null;\r\n collidedTop=false;\r\n collide=false;\r\n }", "void checkHandleContactWithPlayer() {\n Player curPlayer = this.mainSketch.getCurrentActivePlayer();\n\n if (this.doesAffectPlayer) {\n // boundary collision for player\n if (contactWithCharacter(curPlayer)) { // this has contact with non-player\n if (!this.charactersTouchingThis.contains(curPlayer)) { // new collision detected\n curPlayer.changeNumberOfVerticalBoundaryContacts(1);\n this.charactersTouchingThis.add(curPlayer);\n }\n curPlayer.handleContactWithVerticalBoundary(this.startPoint.x);\n\n } else { // this DOES NOT have contact with player\n if (this.charactersTouchingThis.contains(curPlayer)) {\n curPlayer.setAbleToMoveRight(true);\n curPlayer.setAbleToMoveLeft(true);\n curPlayer.changeNumberOfVerticalBoundaryContacts(-1);\n this.charactersTouchingThis.remove(curPlayer);\n }\n }\n }\n }", "private void collide(String typeOfCollision, Entity first, Entity second) {\n switch (typeOfCollision) {\n\n case \"playerWithWall\":\n intersectPlayerWithWall(first);\n break;\n\n case \"playerWithHazard\":\n intersectPlayerWithWall(first);\n break;\n\n case \"bulletWithWall\":\n room.getEntityManager().removeEntity(first);\n ((WeaponComponent) player.getComponent(ComponentType.WEAPON)).getBullets().removeEntity(first);\n break;\n\n case \"enemyWithWall\":\n intersectEnemyWithWall(first, second);\n break;\n\n case \"enemyWithBullet\":\n intersectBulletWithEnemy(first, second);\n break;\n\n case \"enemyWithEnemy\":\n intersectEnemyWithWall(first, second);\n break;\n\n case \"enemyWithPlayer\":\n NinjaEntity ninja = (NinjaEntity) second;\n ninja.setIsHit(true);\n break;\n\n case \"itemWithPlayer\":\n itemIntersectsPlayer(first);\n break;\n\n case \"swordWithEnemy\":\n intersectSwordWithEnemy(first, second);\n break;\n }\n }", "@Override\r\n\tpublic void collisionEffect(AbstractCollidable other, Vector mtv) {\r\n\t\t\r\n\t\tClass<? extends AbstractCollidable> otherClass = other.getClass();\r\n\r\n\t\tif (\t\totherClass.equals(TerrainSection.class)\r\n\t\t\t\t|| otherClass.equals(Obstacle.class)\r\n\t\t\t\t|| (otherClass.equals(Player.class) && owner != other)\r\n\t\t\t\t|| (otherClass.equals(Enemy.class) && owner != other)) {\r\n\t\t\thasCollided = true;\r\n\t\t}\r\n\t\t\r\n\t}", "public void onEntityMove(Entity entity) {\n\n }", "public void collidedWith(Entity other){\n\t}", "@Override\r\n\tpublic void handleCollision(ICollider otherObject) {\r\n\t\t((GameObject) otherObject).setGetIfCol(true);\r\n\t\tif (otherObject instanceof Asteroid) {\r\n\t\t\t((Asteroid) otherObject).setHitCase(2);\r\n\t\t} else if (otherObject instanceof Missile) {\r\n\t\t\tif (((Missile) otherObject).getMissileFlag() == 0) {\r\n\t\t\t\t((Missile) otherObject).setHitCase(6);\r\n\t\t\t}\r\n\t\t} else if (otherObject instanceof PlayerShip) {\r\n\t\t\t((PlayerShip) otherObject).setHitCase(7);\r\n\t\t} else if(otherObject instanceof Curve) {\r\n\t\t\t((Curve) otherObject).setHitCase(9);\r\n\t\t}\r\n\t}", "private void checkRegTileCollisions(float deltaTime) {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\t//overlap between player and tile\n\t\t\t\n\t\t\t//experiment with these values to get close to perfect collisions *************************\n\t\t\ttry {\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t\n\t\t\t\t\t//check y - collisions\n\t\t\t\t\tif(player.position.y > tile.position.y + (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y + 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f; //prev. optimal was .3\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.y < tile.position.y - (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y - 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//check x - collision\n\t\t\t\t\tif(player.position.x > tile.position.x + (tile.bounds.width / 2) + correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x + 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.x < tile.position.x - (tile.bounds.width / 2) - correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x - 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t} catch (Exception e) {}\n\t\t}\n\t\trecheckTileCollisions(); //fix frame-skipping \n\t}", "public boolean colidesWith(Entity e, boolean player){\n\t\tthis.setBounds((int) x, (int)y, Tile.size, Tile.size);\n\t\tif(player)\n\t\t\te.setBounds((int) (main.getCamOfSetX() + e.getPx()), (int) (main.getCamOfSetY() + e.getPy()), (int)e.getWidth(), (int)e.getHeight());\n\t\telse\n\t\t\te.setBounds((int)e.getX(), (int)e.getY(), (int)e.getWidth(), (int)e.getHeight());\n\t\treturn this.intersects(e);\n\t}", "public abstract boolean collisionWith(CollisionObject obj);", "public void collision(){\r\n\t\tif(currX < 0 || currX > 1000-width || currY < 0 || currY > 700-height){\r\n\t\t\tinGame=false;\r\n\t\t}\r\n\t\t/*\r\n\t\tI start at 1 because tail[0] will constantly be taking the position\r\n\t\tof the snake's head, so if i start at 0, the game would end immediately.\r\n\t\t*/\r\n\t\tfor(int i=1; i < numOranges; i++){\r\n\t\t\tRectangle currOrangeRect = new Rectangle(tail[i].getXcoords(), tail[i].getYcoords(), OrangeModel.getWidth(), OrangeModel.getHeight());\r\n\t\t\tif(new Rectangle(currX, currY, width, height).intersects(currOrangeRect)){\r\n\t\t\t\tinGame=false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void collide() {\n int collisionRange;\n \n if(isObstacle) {\n for(Thing thg: proximity) {\n if(\n thg.isObstacle\n &&\n !thg.equals(this)\n ) {\n collisionRange = (thg.size + this.size)/2;\n deltaA = this.distance(thg);\n \n if( \n Math.abs(deltaA[0]) <= collisionRange\n &&\n Math.abs(deltaA[1]) <= collisionRange\n ){\n if(deltaA[0] > deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == 1) {\n dA[0] = 0;\n }\n }\n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == -1) {\n dA[1] = 0;\n }\n }\n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n if(dA[0] != 0) {\n dA[1] = dA[0];\n }\n if(dA[1] != 0) {\n dA[0] = dA[1];\n }\n }\n }\n \n if(deltaA[0] < deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == -1) {\n dA[0] = 0;\n }\n } \n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == 1) {\n dA[1] = 0;\n }\n } \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = dA[0];\n }\n }\n \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = -dA[0];\n }\n }\n }\n }\n }\n }", "@Override\n\tprotected void moveto(World world, double x, double y)\n\t{\n\t\t// If the destination is not blocked by terrain, move there\n\t\tif (!world.terrainBlocks(x + halfPlayerWidth(), y - halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x - halfPlayerWidth(), y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x + halfPlayerWidth(), y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x - halfPlayerWidth(), y - halfPlayerHeight()))\n\t\t{\n\t\t\tthis.x = x;\n\t\t\tthis.y = y;\n\t\t}\n\t\t// Else: Check vertically collision\n\t\telse if (!world.terrainBlocks(this.x + halfPlayerWidth(), y - halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(this.x - halfPlayerWidth(), y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(this.x + halfPlayerWidth(), y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(this.x - halfPlayerWidth(), y - halfPlayerHeight()))\n\t\t{\n\t\t\tthis.y = y;\n\n\t\t\tthis.drawMissile = false;\n\t\t}\n\t\t// Else: Check horizontally collision\n\t\telse if (!world.terrainBlocks(x + halfPlayerWidth(), this.y - halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x - halfPlayerWidth(), this.y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x + halfPlayerWidth(), this.y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x - halfPlayerWidth(), this.y - halfPlayerHeight()))\n\t\t{\n\t\t\tthis.x = x;\n\n\t\t\tthis.drawMissile = false;\n\t\t}\n\t}", "@Override\n\tpublic void collision(SimpleObject s) {\n\t\t\n\t}", "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 }", "protected void checkEntityCollisions(long time) {\n\t\tRectangle2D.Float pla1 = player1.getLocationAsRect();\n\t\tRectangle2D.Float pla2 = player2.getLocationAsRect();\n\t\tfor(int i = 0; i < ghosts.length; i++)\n\t\t{\n\t\t\tGhost g = ghosts[i];\n\t\t\t\n\t\t\tif(g.isDead())\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tRectangle2D.Float ghRect = g.getLocationAsRect();\n\t\t\t\n\t\t\tif(ghRect.intersects(pla1))\n\t\t\t\tonPlayerCollideWithGhost(time, player1, i);\n\t\t\t\n\t\t\tif(ghRect.intersects(pla2))\n\t\t\t\tonPlayerCollideWithGhost(time, player2, i);\n\t\t}\n\t}", "@Override\r\n public boolean collision(org.dyn4j.dynamics.Body body1, BodyFixture fixture1, org.dyn4j.dynamics.Body body2, BodyFixture fixture2, Manifold manifold) {\r\n\r\n EntityId one = (EntityId) body1.getUserData();\r\n EntityId two = (EntityId) body2.getUserData();\r\n\r\n if (gravityState.isWormholeFixture(fixture1) || gravityState.isWormholeFixture(fixture2)) {\r\n return gravityState.collide(body1, fixture1, body2, fixture2, manifold, time.getTpf());\r\n }\r\n\r\n if (flagState.isFlag(one) || flagState.isFlag(two)) {\r\n return flagState.collide(body1, fixture1, body2, fixture2, manifold, time.getTpf());\r\n }\r\n\r\n return true; //Default, keep processing this event\r\n }", "@Override\n\tpublic void act(float delta) {\n\t\tsuper.act(delta);\n\t\t\n\t\tif(PWM.instance().pointIsInObstacle(this.getX(), this.getY())){\n\t\t\tif(!PWM.instance().pointIsInObstacle(this.getX(), lastPos.y)){\n\t\t\t\tthis.setPosition(this.getX(), lastPos.y);\n\t\t\t}else if(!PWM.instance().pointIsInObstacle(lastPos.x, this.getY())){\n\t\t\t\tthis.setPosition(lastPos.x, this.getY());\n\t\t\t}else{\n\t\t\t\tthis.setPosition(lastPos.x, lastPos.y);\n\t\t\t}\n\t\t\t\n\t\t\tthis.lastPos.x = this.getX();\n\t\t\tthis.lastPos.y = this.getY();\n\t\t\t\n\t\t}\t\t\t\t\n\t\t\n\t\tmainCameraFollowHero();\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void handleCollision(GameObject otherObject) {\n\t\tif(otherObject instanceof Drone) {\n\t\t\tSystem.out.println(\"PlayerCyborg collided with a Drone cause 1 damage\\n\");\n\t\t\tthis.setDamageLevel(this.getDamageLevel()+1);\n\t\t}\n\t\telse if(otherObject instanceof NonPlayerCyborg) {\n\t\t\tSystem.out.println(\"PlayerCyborg collided with another cyborg cause 2 damage\\n\");\n\t\t\tthis.setDamageLevel(this.getDamageLevel()+2);\n\t\t}\n\t\telse if(otherObject instanceof Base) {\n\t\t\tint BaseID = ((Base) otherObject).getBaseID();\n\t\t\tif(this.getLastBaseReached()+1 == BaseID){\n\t\t\t\tint newBaseID = this.getLastBaseReached()+1;\n\t\t\t\tthis.setLastBaseReached(newBaseID);\n\t\t\t\tif(this.getLastBaseReached()+1 < 4){\n\t\t\t\t\tSystem.out.println(\"PlayerCyborg reach to base \" + newBaseID + \"\\n\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Please collide base in sequential!\\n\" + \n\t\t\t\t\t\t \"The next sequential is \" + (this.getLastBaseReached()+1) + \"\\n\");\n\t\t\t}\n\t\t}\n\t\telse if(otherObject instanceof EnergyStation) {\n\t\t\tif(((EnergyStation) otherObject).getCapacity()!=0) {\n\t\t\t\tint beforeRuel = this.getEnergyLevel();\n\t\t\t\tif(this.getEnergyLevel()+((EnergyStation) otherObject).getCapacity()<this.getMaxEnergyLevel()) {\n\t\t\t\t\tthis.setEnergyLevel(this.getEnergyLevel()+((EnergyStation) otherObject).getCapacity());\n\t\t\t\t}else {\n\t\t\t\t\tthis.setEnergyLevel(this.getMaxEnergyLevel()); //over fuel the Energy\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"PlayerCyborg collided with a EnergyStation refuel \" + Math.abs(this.getEnergyLevel()-beforeRuel) + \" Energy\\n\");\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public void applyEntityCollision(Entity entity)\r\n {\r\n Vector3 v = Vector3.getNewVector();\r\n Vector3 v1 = Vector3.getNewVector();\r\n\r\n blockBoxes.clear();\r\n\r\n int sizeX = blocks.length;\r\n int sizeY = blocks[0].length;\r\n int sizeZ = blocks[0][0].length;\r\n Set<Double> topY = Sets.newHashSet();\r\n for (int i = 0; i < sizeX; i++)\r\n for (int k = 0; k < sizeY; k++)\r\n for (int j = 0; j < sizeZ; j++)\r\n {\r\n ItemStack stack = blocks[i][k][j];\r\n if (stack == null || stack.getItem() == null) continue;\r\n\r\n Block block = Block.getBlockFromItem(stack.getItem());\r\n AxisAlignedBB box = Matrix3.getAABB(posX + block.getBlockBoundsMinX() - 0.5 + boundMin.x + i,\r\n posY + block.getBlockBoundsMinY() + k,\r\n posZ + block.getBlockBoundsMinZ() - 0.5 + boundMin.z + j,\r\n posX + block.getBlockBoundsMaxX() + 0.5 + boundMin.x + i,\r\n posY + block.getBlockBoundsMaxY() + k,\r\n posZ + block.getBlockBoundsMaxZ() + 0.5 + boundMin.z + j);\r\n blockBoxes.add(box);\r\n topY.add(box.maxY);\r\n }\r\n\r\n v.setToVelocity(entity).subtractFrom(v1.setToVelocity(this));\r\n v1.clear();\r\n Matrix3.doCollision(blockBoxes, entity.getEntityBoundingBox(), entity, 0, v, v1);\r\n for(Double d: topY)\r\n if (entity.posY >= d && entity.posY + entity.motionY <= d && motionY <= 0)\r\n {\r\n double diff = (entity.posY + entity.motionY) - (d + motionY);\r\n double check = Math.max(0.5, Math.abs(entity.motionY + motionY));\r\n if (diff > 0 || diff < -0.5 || Math.abs(diff) > check)\r\n {\r\n entity.motionY = 0;\r\n }\r\n }\r\n\r\n boolean collidedY = false;\r\n if (!v1.isEmpty())\r\n {\r\n if (v1.y >= 0)\r\n {\r\n entity.onGround = true;\r\n entity.fallDistance = 0;\r\n entity.fall(entity.fallDistance, 0);\r\n }\r\n else if (v1.y < 0)\r\n {\r\n boolean below = entity.posY + entity.height - (entity.motionY + motionY) < posY;\r\n if (below)\r\n {\r\n v1.y = 0;\r\n }\r\n }\r\n if (v1.x != 0) entity.motionX = 0;\r\n if (v1.y != 0) entity.motionY = motionY;\r\n if (v1.z != 0) entity.motionZ = 0;\r\n if (v1.y != 0) collidedY = true;\r\n v1.addTo(v.set(entity));\r\n v1.moveEntity(entity);\r\n }\r\n if (entity instanceof EntityPlayer)\r\n {\r\n EntityPlayer player = (EntityPlayer) entity;\r\n if (Math.abs(player.motionY) < 0.1 && !player.capabilities.isFlying)\r\n {\r\n entity.onGround = true;\r\n entity.fallDistance = 0;\r\n }\r\n if (!player.capabilities.isCreativeMode && !player.worldObj.isRemote)\r\n {\r\n EntityPlayerMP entityplayer = (EntityPlayerMP) player;\r\n if (collidedY) entityplayer.playerNetServerHandler.floatingTickCount = 0;\r\n }\r\n }\r\n }", "public void checkCollision(Enemy enemy){\r\n if(collidingEntity!=null && collidingEntity!=enemy){\r\n return;\r\n }\r\n FloatRect x = enemy.getRect ();\r\n\r\n if (rect1==null || x==null){\r\n return;\r\n }\r\n\r\n FloatRect ins = rect1.intersection (x);\r\n\r\n if(ins!=null) {\r\n this.collidingEntity= enemy;\r\n collide=true;\r\n checkRightCollision (x);\r\n checkLeftCollision (x);\r\n bounce(enemy);\r\n } else {\r\n noCollision ();\r\n }\r\n }", "private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }", "@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 void moveEntity(Entity entity, Direction direction, float delta) {\r\n float newX = entity.getX();\r\n float newY = entity.getY();\r\n\r\n float velocity = entity.getVelocity();\r\n float distanceCovered = velocity * delta;\r\n\r\n switch (direction) {\r\n case NORTH:\r\n newY = newY + distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraVertically(newY);\r\n break;\r\n case EAST:\r\n newX = newX + distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraHorizontally(newX);\r\n break;\r\n case WEST:\r\n newX = newX - distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraHorizontally(newX);\r\n break;\r\n case SOUTH:\r\n newY = newY - distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraVertically(newY);\r\n break;\r\n }\r\n\r\n //TODO: Increase performance (e.g. only check for items when actually changing layer position)\r\n Position tilePosition = Utils.toTilePosition(newX + 20, newY + 20);\r\n Optional<Map.Entry<Position, Item>> optMapItem = getMapItem(tilePosition.x, tilePosition.y);\r\n if(optMapItem.isPresent()) {\r\n Map.Entry<Position, Item> itemEntry = optMapItem.get();\r\n entity.getItems().add(itemEntry.getValue());\r\n gameItems.remove(itemEntry.getKey());\r\n }\r\n\r\n entity.setMoving(true);\r\n entity.setX(newX);\r\n entity.setY(newY);\r\n }", "public void checkEntityOverlap(){\n for(Entity entity:entityList){\n if(entity.getEntityType().equals(\"Sandwich\")) {\n if (player.getPlayerCoordinates() == entity.getEntityCoordinates()) {\n player.eatSandwich();\n entityList.remove(entity);\n }\n }\n }\n }", "@Override\n public boolean canMove(double x, double y) {\n double xRec=rectangle.getX();\n double yRec=rectangle.getY();\n rectangle.setLocation((int)(xRec+x*1),(int)(yRec+y*1));\n\n List<Rectangle> staticRectangles= board.getStaticRectangles();\n List<Creature> creatures=board.getCreatures();\n Iterator<Rectangle> itr1=staticRectangles.iterator();\n\n while(itr1.hasNext()){\n Rectangle tmpRectangle =itr1.next();\n if(rectangle.intersects(tmpRectangle)) {\n return false;\n }\n }\n Iterator<Creature> itr2=creatures.iterator();\n while(itr2.hasNext()){\n Creature creature=itr2.next();\n if(creature==this){\n continue;\n }\n else{\n if(rectangle.intersects(creature.getRectangle()))\n return false;\n }\n\n }\n\n return true;\n }", "public void move() {\n if (!isCollision(xMove, 0))\n moveX();\n //else\n // adjustX(xMove);\n\n if (!isCollision(0, yMove))\n moveY();\n //else\n // adjustY(yMove);\n //check isCollision(gameObject) with calculating the position for next move\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 abstract void onCollision();", "public void collide(StaticCollEvent sce) {\n int cType = sce.getInvCollType();\n\n if (cType == StaticCollEvent.COLL_BOTTOM) {\n collBottom = true;\n this.newY = sce.getInvokerNewY();\n }\n if (cType == StaticCollEvent.COLL_BOTTOMLEFT || cType == StaticCollEvent.COLL_BOTTOMRIGHT) {\n collLeftRight = true;\n this.newX = sce.getInvokerNewX();\n this.newY = sce.getInvokerNewY();\n }\n if (cType == StaticCollEvent.COLL_LEFT || cType == StaticCollEvent.COLL_RIGHT) {\n this.velX = -this.velX; // Turn around.\n }\n if (collBottom || collLeftRight) {\n if (action == FALLING) {\n this.action = WALKING;\n this.velX = monsterSpeed;\n }\n } else {\n this.action = FALLING;\n this.newX = sce.getInvokerNewX();\n this.newY = sce.getInvokerNewY();\n }\n }", "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}", "public abstract void processCollisions();", "public EntityEntityCollision(EntityBoundary boundary1, EntityBoundary boundary2) {\n boundaries = new EntityBoundary[]{boundary1, boundary2};\n rectangles = new Rectangle[]{boundaries[0].asRectangle(), boundaries[1].asRectangle()};\n rectangles[0].width += 2;\n rectangles[1].width += 2;\n rectangles[0].height += 2;\n rectangles[1].height += 2;\n entities = new Entity[]{boundaries[0].parent, boundaries[1].parent};\n }", "@Override\n synchronized public void run() {\n if (gameBoard.wasCollisionDetected()) {\n Point collisionPoint = gameBoard.getLastCollision();\n if (collisionPoint.x >= 0) {\n dummyText.setText(\"Last Collision XY (\" + Integer.toString(collisionPoint.x) + \",\" + Integer.toString(collisionPoint.y) + \")\");\n score++;\n }\n //turn off the animation until reset gets pressed\n //return;\n }\n frame.removeCallbacks(frameUpdate);\n\n Point playerNewPosition = new Point(gameBoard.getPlayerX(), gameBoard.getPlayerY());\n Point targetNewPosition = new Point(gameBoard.getTargetX(), gameBoard.getTargetY());\n Point obstacle1NewPosition = new Point(gameBoard.getObstacle1X(), gameBoard.getObstacle1Y());\n Point obstacle2NewPosition = new Point(gameBoard.getObstacle2X(), gameBoard.getObstacle2Y());\n\n updatePlayerVelocity();\n playerNewPosition.y = playerNewPosition.y + playerVelocity.y;\n if (playerNewPosition.y > playerMaxY) {\n // return doge to original position if it overshoots\n playerNewPosition.y = playerMaxY;\n performJump = false;\n button.setEnabled(true);\n }\n\n targetNewPosition.x = targetNewPosition.x + targetVelocity.x;\n if (targetNewPosition.x > memeMaxX || targetNewPosition.x < 5) {\n targetVelocity.x *= -1;\n }\n targetNewPosition.y = targetNewPosition.y + targetVelocity.y;\n if (targetNewPosition.y > memeMaxY || targetNewPosition.y < 5) {\n targetVelocity.y *= -1;\n }\n\n obstacle1NewPosition.x = obstacle1NewPosition.x + obstacle1Velocity.x;\n if (obstacle1NewPosition.x > memeMaxX || obstacle1NewPosition.x < 5) {\n obstacle1Velocity.x *= -1;\n }\n obstacle1NewPosition.y = obstacle1NewPosition.y + obstacle1Velocity.y;\n if (obstacle1NewPosition.y > memeMaxY || obstacle1NewPosition.y < 5) {\n obstacle1Velocity.y *= -1;\n }\n\n obstacle2NewPosition.x = obstacle2NewPosition.x + obstacle2Velocity.x;\n if (obstacle2NewPosition.x > memeMaxX || obstacle2NewPosition.x < 5) {\n obstacle2Velocity.x *= -1;\n }\n obstacle2NewPosition.y = obstacle2NewPosition.y + obstacle2Velocity.y;\n if (obstacle2NewPosition.y > memeMaxY || obstacle2NewPosition.y < 5) {\n obstacle2Velocity.y *= -1;\n }\n\n gameBoard.setPlayerPosition(playerNewPosition.x, playerNewPosition.y);\n gameBoard.setTargetPosition(targetNewPosition.x, targetNewPosition.y);\n gameBoard.setObstacle1Position(obstacle1NewPosition.x, obstacle1NewPosition.y);\n gameBoard.setObstacle2Position(obstacle2NewPosition.x, obstacle2NewPosition.y);\n gameBoard.invalidate();\n frame.postDelayed(frameUpdate, getFrameRate());\n }", "public static void doCollision(org.bukkit.entity.Entity entity, org.bukkit.entity.Entity with) {\n\t\tCommonNMS.getNative(entity).collide(CommonNMS.getNative(with));\n\t}", "@Override\n public void checkCollision( Sprite obj )\n {\n \n }", "private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}", "public boolean collision(Objet o) {\r\n\t\treturn false;\r\n\t}", "private boolean checkCollision(int x, int y) {\r\n\t\tRectangle r = new Rectangle(); // Location Rectangle\r\n\t\tr.width = Tile.TILEWIDTH;\r\n\t\tr.height = Tile.TILEHEIGHT;\r\n\t\tr.x = x * Tile.TILEWIDTH;\r\n\t\tr.y = y * Tile.TILEHEIGHT;\r\n\t\tfor(Nonmoving n : handler.getWorld().getEntityManager().getNonmoving()) {\r\n\t\t\tif(n.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(Objects o : handler.getWorld().getEntityManager().getObjects()) {\r\n\t\t\tif(o.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public abstract void collided(Collision c);", "private void checkPlayerCollisions() {\r\n\t\tGObject left = getElementAt(player.getX() - 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tGObject right = getElementAt(player.getX() + player.getWidth() + 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tif(dragon1 != null && (left == dragon1 || right == dragon1)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t\tif(dragon2 != null && (left == dragon2 || right == dragon2)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t}", "public void collide(DynamicCollEvent dce, int collRole) {\n if (collRole == DynamicCollEvent.COLL_AFFECTED) {\n BasicGameObject invoker = dce.getInvoker();\n if (invoker instanceof Monster) { /* Do nothing */ }\n if (invoker instanceof Player) {\n Player player = (Player) invoker;\n boolean harmedPlayer = (\n dce.getInvokerCollType() == DynamicCollEvent.COLL_LEFT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_RIGHT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_TOP ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_TOPLEFT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_TOPRIGHT\n );\n boolean harmedByPlayer = (\n dce.getInvokerCollType() == DynamicCollEvent.COLL_BOTTOM ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_BOTTOMLEFT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_BOTTOMRIGHT\n );\n\n if (harmedPlayer) {\n player.decreaseHealth(10); // This monster scores 10 hitpoints. ;)\n collLeftRight = true; // This way, we will turn around in advanceCycle.\n } else if (harmedByPlayer) {\n player.setVelocity(player.getVelX(), -20);\n this.getReferrer().getSndFX().play(SoundFX.SND_MONSTERSQUISH);\n this.decreaseHealth(100);\n referrer.getPlayer().increasePoints(5);\n } else {\n System.out.println(\"Undefined collision between Monster and Player. ERROR 30\");\n }\n }\n this.newX = dce.getAffectedNewX();\n this.newY = dce.getAffectedNewY();\n } else {\n this.newX = dce.getInvokerNewX();\n this.newY = dce.getInvokerNewY();\n }\n\n if (DEBUG) {\n if (this == this.getReferrer().getObjects()[9]) {\n System.out.println(\"DET F�RSTE MONSTERET HAR CRASHET MED PLAYER!!!\");\n }\n }\n }", "public void checkCollision(Box box){\r\n if(collidingEntity2!=null && collidingEntity2!=box){\r\n return;\r\n }\r\n FloatRect x = box.getRect ();\r\n\r\n if (rect1==null || x==null){\r\n return;\r\n }\r\n\r\n FloatRect ins = rect1.intersection (x);\r\n\r\n if(ins!=null) {\r\n this.collidingEntity2= box;\r\n collide=true;\r\n checkTopCollision (x);\r\n if(collidedTop==false) {\r\n checkRightCollision (x);\r\n checkLeftCollision (x);\r\n }\r\n } else {\r\n noCollision ();\r\n }\r\n }", "@Override\n\tpublic void move(List<TileCollision> collidedTiles) \n\t{\t\t\t \n\t\tfor (TileCollision tc : collidedTiles)\n\t\t{\n\n\t\t\tint tileType = tc.theTile.getTileType();\n\n\t\t\tisWall = false;\n\t\t\t// 11 and 12 are the only tiles that are not walls.\n\t\t\tfor (int i = 0; i < 11; i++)\n\t\t\t{\n\t\t\t\tif (tileType == i) isWall = true;\n\t\t\t}\n\n\t\t\tif (tileType == 13 && tc.collisionSide == 0)\n\t\t\t{\n\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\tsetDirection(Direction.RIGHT.getValue());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isWall)\n\t\t {\n\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\tsetDirection(randomDirection());\n\t\t\t\treturn;\n\t\t }\n\n\t\t\t// Only gets executed when pacman is in it normal state, and not in\n\t\t\t// hunter mode.\n\t\t\tif(!pacman.isHunter())\n\t\t\t{\n\t\t\t if(isPacmanToClose() && !inToCloseZone)\n\t\t\t {\n\t\t\t \tinToCloseZone = true;\n\n\t\t\t \tif (pacman.movesUp() || pacman.movesDown())\n\t\t\t \t{\n\t\t\t \t\treverseVerticalDirection();\n\t\t\t \t}\n\t\t\t \tif (pacman.movesLeft() || pacman.movesRight())\n\t\t\t \t{\n\t\t\t \t\treverseHorizontalDirection();\t\t\t \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t else \n\t\t\t\t{\n\t\t\t\t\tinToCloseZone = false;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Only gets executed when pacman eat a power up and is the hunter.\n\t\t\telse if(pacman.isHunter())\n\t\t {\n\t\t\t if (isWall)\n\t\t\t { \n\t\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\t\tif (getDirection() == Direction.UP.getValue())\n\t\t\t\t\t{\n\t\t\t\t\t\tif(collided)\n\t\t\t\t\t\t{\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tsetDirection(Direction.DOWN.getValue());\t\t\t\t\t \n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsetDirection(Direction.RIGHT.getValue());\n\t\t\t\t\t\t\tcollided = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t else if (getDirection() == Direction.RIGHT.getValue())\n\t\t\t\t\t {\n\t\t\t if(collided)\n\t\t\t {\n\t\t\t \t setDirection(Direction.DOWN.getValue());\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.UP.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t }\n\t\t\t\t\t }\n\n\t\t\t\t\t else if (getDirection() == Direction.LEFT.getValue())\n\t\t\t\t\t {\n\t\t\t\t\t\t if(collided)\n\t\t\t\t\t\t {\n\t\t\t \t setDirection(Direction.RIGHT.getValue());\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.UP.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\n\t\t\t\t\t else if (getDirection() == Direction.DOWN.getValue())\n\t\t\t\t\t {\n\t\t\t\t\t\t if(collided)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t setDirection(Direction.LEFT.getValue()); \t \n\t\t\t\t\t\t }\n\t\t\t\t\t else\n\t\t\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.RIGHT.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t\t\t } \n\t\t\t\t\t }\t\t\t\t\t\t \n\t\t\t } \n\t\t\t else\n\t\t\t {\n\t\t\t collided = false;\t\t\t\t\t \n\t\t\t }\n\t\t }\n\t }\n\t}", "@Override\r\n public boolean collision(org.dyn4j.dynamics.Body body1, BodyFixture fixture1, org.dyn4j.dynamics.Body body2, BodyFixture fixture2, Penetration penetration) {\r\n return true;\r\n }", "private void checkCollisions() {\n float x = pacman.getPos().x;\n float y = pacman.getPos().y;\n\n GameEntity e;\n for (Iterator<GameEntity> i = entities.iterator(); i.hasNext(); ) {\n e = i.next();\n // auf kollision mit spielfigur pruefen\n if (Math.sqrt((x - e.getPos().x) * (x - e.getPos().x) + (y - e.getPos().y) * (y - e.getPos().y)) < 0.5f)\n if (e.collide(this, pacman))\n i.remove();\n }\n }", "public void collisionPhsysics (Body otherBody) {\n if (this.mass <= otherBody.mass) {\n this.merged = true;\n otherBody.mass += this.mass;\n this.x = 0;\n this.y = 0;\n this.temp_x = 0;\n this.temp_y = 0;\n }\n else {\n otherBody.merged = true;\n this.mass += otherBody.mass;\n otherBody.x = 0;\n otherBody.y = 0;\n otherBody.temp_x = 0;\n otherBody.temp_y = 0;\n }\n\n // momentum transfer\n if (this.mass <= otherBody.mass) {\n otherBody.vx = (this.mass*this.vx + otherBody.mass*otherBody.vx)/(this.mass + otherBody.mass);\n otherBody.vy = (this.mass*this.vy + otherBody.mass*otherBody.vy)/(this.mass + otherBody.mass);\n }\n else {\n this.vx = (this.mass*this.vx + otherBody.mass*otherBody.vx)/(this.mass + otherBody.mass);\n this.vy = (this.mass*this.vy + otherBody.mass*otherBody.vy)/(this.mass + otherBody.mass);\n }\n\n\n }", "public abstract void collide(InteractiveObject obj);", "@Override\n\tpublic void handleCollision(ICollider otherObject) {\n\t\tSystem.out.println(\"i hit a flame :(\");\n\t}", "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 }", "void collision(float x_a,float y_a,float x_b,float y_b){\n float dy = y_a - y_b;\r\n float dx = x_a - x_b;\r\n float distance12 = dy * dy + dx * dx;\r\n\r\n if (distance12 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ((GameActivity)mActivity).mTimer.cancel();\r\n ((GameActivity)mActivity).layout.removeAllViews();\r\n new AlartMessage(mActivity);\r\n }\r\n\r\n }", "private void handleObjectCollision() {\n \tGObject obstacle = getCollidingObject();\n \t\n \tif (obstacle == null) return;\n \tif (obstacle == message) return;\n \t\n\t\tvy = -vy;\n\t\t\n\t\tSystem.out.println(\"ball x: \" + ball.getX() + \" - \" + (ball.getX() + BALL_RADIUS * 2) );\n\t\tSystem.out.println(\"paddle x: \" + paddleXPosition + \" - \" + (paddleXPosition + PADDLE_WIDTH) );\n\t\tif (obstacle == paddle) {\n\t\t\tpaddleCollisionCount++;\n\t\t\t\n\t\t\t// if we're hitting the paddle's side, we need to also bounce horizontally\n\t\t\tif (ball.getX() >= (paddleXPosition + PADDLE_WIDTH) || \n\t\t\t\t(ball.getX() + BALL_RADIUS * 2) <= paddleXPosition ) {\n\t\t\t\tvx = -vx;\t\t\t\t\n\t\t\t}\n\t\t} else {\n \t\t// if the object isn't the paddle, it's a brick\n\t\t\tremove(obstacle);\n\t\t\tnBricksRemaining--;\n\t\t}\n\t\t\n\t\tif (paddleCollisionCount == 7) {\n\t\t\tvx *= 1.1;\n\t\t}\n }", "public boolean collidesWith(GameObject other) {\n me.setBounds((int) x, (int) y, sprite.getWidth(), sprite.getHeight());\n him.setBounds((int) other.x, (int) other.y, other.sprite.getWidth(), other.sprite.getHeight());\n\n return me.intersects(him);\n }", "public void checkCollision()\r\n\t{\r\n\t\t//for Bullets against Avatar and Enemy\r\n\t\tfor(int bulletIndex = 0; bulletIndex < bullets.size(); bulletIndex++)\r\n\t\t{\r\n\t\t\tBullet b = bullets.get(bulletIndex);\r\n\t\t\tif (b instanceof AvatarBullet)\r\n\t\t\t{\r\n\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\tboolean collided = false;\r\n\t\t\t\tfor (int enemyIndex = 0; enemyIndex < enemy.size(); enemyIndex++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEnemy e = enemy.get(enemyIndex);\r\n\t\t\t\t\tif(((AvatarBullet) b).collidedWith(e))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\t\tenemy.remove(enemyIndex);\r\n\t\t\t\t\t\tenemyIndex --;\r\n\t\t\t\t\t\tcollided = true;\r\n\t\t\t\t\t\tint score = getScore()+1;\r\n\t\t\t\t\t\tsetScore(score);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (b instanceof EnemyBullet)\r\n\t\t\t{\r\n\t\t\t\tif (((EnemyBullet) b).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\tint health = Avatar.getLives()-1;\r\n\t\t\t\t\tavatar.setLives(health);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int platformIndex = 0; platformIndex < platforms.size(); platformIndex++)\r\n\t\t{\r\n\t\t\tPlatforms p = platforms.get(platformIndex);\r\n\t\t\tif (p instanceof Platforms)\r\n\t\t\t{\r\n\t\t\t\t//boolean collided = false;\r\n\t\t\t\t//Avatar a = avatar.get(enemyIndex);\r\n\t\t\t\tif(((Platforms) p).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(false);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void update(float dt) {\n\n\n for (GameObject g : getGameObjectList()) {\n Collider gameObjectCollider = g.getComponent(Collider.class);\n if (g.getSID() instanceof Map.Block ) {\n continue;\n }\n gameObjectCollider.reduceAvoidTime(dt);\n\n for (GameObject h : getGameObjectList()) {\n Collider gameObjectCollider2 = h.getComponent(Collider.class);\n if (g.equals(h)) {\n continue;\n }\n\n if ((gameObjectCollider.bitmask & gameObjectCollider2.layer) != 0) {\n if (gameObjectCollider2.layer == gameObjectCollider.layer){\n continue;\n }\n\n TransformComponent t = g.getComponent(TransformComponent.class);\n Vector2f pos1 = g.getComponent(Position.class).getPosition();\n FloatRect rect1 = new FloatRect(pos1.x, pos1.y, t.getSize().x, t.getSize().y);\n TransformComponent t2 = g.getComponent(TransformComponent.class);\n Vector2f pos2 = h.getComponent(Position.class).getPosition();\n FloatRect rect2 = new FloatRect(pos2.x, pos2.y, t2.getSize().x, t2.getSize().y);\n FloatRect collision = rect2.intersection(rect1);\n if (collision != null) {\n Collider mainCollider = g.getComponent(Collider.class);\n Collider collidingWith = h.getComponent(Collider.class);\n\n\n if (!(mainCollider.checkGameObject(h)||collidingWith.checkGameObject(g)))\n {\n if (mainCollider.events == true && collidingWith.events == true)\n {\n\n\n if ((g.getBitmask() & BitMasks.produceBitMask(CollisionEvent.class)) == 0)\n {\n g.addComponent(new CollisionEvent());\n\n\n }\n g.getComponent(CollisionEvent.class).getG().add(h);\n if ((h.getBitmask() & BitMasks.produceBitMask(CollisionEvent.class)) == 0) {\n h.addComponent(new CollisionEvent());\n\n }\n h.getComponent(CollisionEvent.class).getG().add(g);\n\n }\n\n\n if (mainCollider.dieOnPhysics == true) {\n EntityManager.getEntityManagerInstance().removeGameObject(g);\n }\n if (mainCollider.physics == true && collidingWith.physics == true) {\n float resolve = 0;\n float xIntersect = (rect1.left + (rect1.width * 0.5f)) - (rect2.left + (rect2.width * 0.5f));\n float yIntersect = (rect1.top + (rect1.height * 0.5f)) - (rect2.top + (rect2.height * 0.5f));\n if (Math.abs(xIntersect) > Math.abs(yIntersect)) {\n if (xIntersect > 0) {\n resolve = (rect2.left + rect2.width) - rect1.left;\n } else {\n resolve = -((rect1.left + rect1.width) - rect2.left);\n }\n g.getComponent(Position.class).addPosition(new Vector2f(resolve, 0));\n } else {\n if (yIntersect > 0) {\n resolve = (rect2.top + rect2.height) - rect1.top;\n\n } else\n {\n resolve = -((rect1.top + rect1.height) - rect2.top);\n }\n g.getComponent(Position.class).addPosition(new Vector2f(0, resolve));\n }\n }\n }\n\n\n }\n }\n }\n }\n }", "@Override\r\n\tpublic void move(MoverType mover, double currOffX, double currOffY, double currOffZ) {\r\n\t\t// FIXME: most likely incorrect\r\n\t\tif (this.noClip) {\r\n\t\t\tthis.offsetEntity(currOffX, currOffY, currOffZ);\r\n\t\t} else {\r\n\t\t\tdouble originalOffX = currOffX;\r\n\t\t\tdouble originalOffY = currOffY;\r\n\t\t\tdouble originalOffZ = currOffZ;\r\n\r\n\t\t\tif (this.isInWeb) {\r\n\t\t\t\tthis.isInWeb = false;\r\n\t\t\t\tcurrOffX *= 0.25D;\r\n\t\t\t\tcurrOffY *= 0.05000000074505806D;\r\n\t\t\t\tcurrOffZ *= 0.25D;\r\n\t\t\t\tthis.motionX = 0.0D;\r\n\t\t\t\tthis.motionY = 0.0D;\r\n\t\t\t\tthis.motionZ = 0.0D;\r\n\t\t\t}\r\n\r\n\t\t\tdouble correctedOffX = currOffX;\r\n\t\t\tdouble correctedOffY = currOffY;\r\n\t\t\tdouble correctedOffZ = currOffZ;\r\n\t\t\tCollisionParts[] parts = this.getParts();\r\n\t\t\tif (parts == null) {\r\n\t\t\t\tparts = new CollisionParts[0];\r\n\t\t\t}\r\n\r\n\t\t\tAxisAlignedBB ourBoundingBox = this.getEntityBoundingBox();\r\n\t\t\tList<AxisAlignedBB> bbsInWay = this.world\r\n\t\t\t\t\t.getCollisionBoxes(this, ourBoundingBox.addCoord(currOffX, currOffY, currOffZ));\r\n\t\t\t// Calculates the smallest possible offset in Y direction\r\n\t\t\tfor (AxisAlignedBB bb : bbsInWay) {\r\n\t\t\t\tcurrOffY = bb.calculateYOffset(ourBoundingBox, currOffY);\r\n\t\t\t}\r\n\t\t\tfor (AxisAlignedBB bb : bbsInWay) {\r\n\t\t\t\tcurrOffX = bb.calculateXOffset(ourBoundingBox, currOffX);\r\n\t\t\t}\r\n\t\t\tfor (AxisAlignedBB bb : bbsInWay) {\r\n\t\t\t\tcurrOffZ = bb.calculateZOffset(ourBoundingBox, currOffZ);\r\n\t\t\t}\r\n\t\t\tfor (CollisionParts part : parts) {\r\n\t\t\t\tAxisAlignedBB partBoundingBox = part.getEntityBoundingBox();\r\n\t\t\t\tList<AxisAlignedBB> bbsInWayPart = this.world\r\n\t\t\t\t\t\t.getCollisionBoxes(this, partBoundingBox.addCoord(currOffX, currOffY, currOffZ));\r\n\t\t\t\t// Calculates the smallest possible offset in Y direction\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInWayPart) {\r\n\t\t\t\t\tcurrOffY = bb.calculateYOffset(partBoundingBox, currOffY);\r\n\t\t\t\t}\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInWayPart) {\r\n\t\t\t\t\tcurrOffX = bb.calculateXOffset(partBoundingBox, currOffX);\r\n\t\t\t\t}\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInWayPart) {\r\n\t\t\t\t\tcurrOffZ = bb.calculateZOffset(partBoundingBox, currOffZ);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/** If we will are or will land on something */\r\n\t\t\tboolean landed = this.onGround || (correctedOffY != currOffY && correctedOffY < 0.0D);\r\n\r\n\t\t\tif (this.stepHeight > 0.0F && landed && (this.height < 0.125F)\r\n\t\t\t\t\t&& (correctedOffX != currOffX || correctedOffZ != currOffZ)) {\r\n\t\t\t\tdouble nostepOffX = currOffX;\r\n\t\t\t\tdouble nostepOffY = currOffY;\r\n\t\t\t\tdouble nostepOffZ = currOffZ;\r\n\r\n\t\t\t\tcurrOffX = correctedOffX;\r\n\t\t\t\tcurrOffY = this.stepHeight;\r\n\t\t\t\tcurrOffZ = correctedOffZ;\r\n\r\n\t\t\t\tList<AxisAlignedBB> bbsInStepup = this.world\r\n\t\t\t\t\t\t.getCollisionBoxes(this, ourBoundingBox.addCoord(correctedOffX, currOffY, correctedOffZ));\r\n\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInStepup) {\r\n\t\t\t\t\tcurrOffY = bb.calculateYOffset(ourBoundingBox, currOffY);\r\n\t\t\t\t}\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInStepup) {\r\n\t\t\t\t\tcurrOffX = bb.calculateXOffset(ourBoundingBox, currOffX);\r\n\t\t\t\t}\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInStepup) {\r\n\t\t\t\t\tcurrOffZ = bb.calculateZOffset(ourBoundingBox, currOffZ);\r\n\t\t\t\t}\r\n\t\t\t\tfor (CollisionParts part : parts) {\r\n\t\t\t\t\tAxisAlignedBB partBoundingBox = part.getEntityBoundingBox();\r\n\t\t\t\t\tList<AxisAlignedBB> bbsInStepupPart = this.world\r\n\t\t\t\t\t\t\t.getCollisionBoxes(this, partBoundingBox.addCoord(currOffX, currOffY, currOffZ));\r\n\t\t\t\t\tfor (AxisAlignedBB bb : bbsInStepupPart) {\r\n\t\t\t\t\t\tcurrOffY = bb.calculateYOffset(partBoundingBox, currOffY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfor (AxisAlignedBB bb : bbsInStepupPart) {\r\n\t\t\t\t\t\tcurrOffX = bb.calculateXOffset(partBoundingBox, currOffX);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfor (AxisAlignedBB bb : bbsInStepupPart) {\r\n\t\t\t\t\t\tcurrOffZ = bb.calculateZOffset(partBoundingBox, currOffZ);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdouble groundOffY = -this.stepHeight;\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInStepup) {\r\n\t\t\t\t\tgroundOffY = bb.calculateYOffset(ourBoundingBox.offset(currOffX, currOffY, currOffZ), groundOffY);\r\n\t\t\t\t}\r\n\t\t\t\tfor (CollisionParts part : parts) {\r\n\t\t\t\t\tAxisAlignedBB partBoundingBox = part.getEntityBoundingBox();\r\n\t\t\t\t\tList<AxisAlignedBB> bbsInStepDown = this.world\r\n\t\t\t\t\t\t\t.getCollisionBoxes(this, partBoundingBox.addCoord(currOffX, currOffY, currOffZ));\r\n\t\t\t\t\t// Calculates the smallest possible offset in Y direction\r\n\t\t\t\t\tfor (AxisAlignedBB bb : bbsInStepDown) {\r\n\t\t\t\t\t\tcurrOffY = bb.calculateYOffset(partBoundingBox, currOffY);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcurrOffY += groundOffY;\r\n\r\n\t\t\t\tif (nostepOffX * nostepOffX + nostepOffY * nostepOffY >= currOffX * currOffX + currOffZ * currOffZ) {\r\n\t\t\t\t\tcurrOffX = nostepOffX;\r\n\t\t\t\t\tcurrOffY = nostepOffY;\r\n\t\t\t\t\tcurrOffZ = nostepOffZ;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Until this point, unlike the original implementation, nothing\r\n\t\t\t// happened to the\r\n\t\t\t// entity itself, push the state\r\n\t\t\tdouble originalX = this.posX;\r\n\t\t\tdouble originalY = this.posY;\r\n\t\t\tdouble originalZ = this.posZ;\r\n\t\t\t// Handle things like fire, movesounds, etc\r\n\t\t\tsuper.move(mover, originalOffX, originalOffY, originalOffZ);\r\n\t\t\t// Pop the state\r\n\t\t\tthis.posX = originalX;\r\n\t\t\tthis.posY = originalY;\r\n\t\t\tthis.posZ = originalZ;\r\n\t\t\tsetEntityBoundingBox(ourBoundingBox);\r\n\t\t\t// Apply our offset\r\n\t\t\tthis.offsetEntity(currOffX, currOffY, currOffZ);\r\n\t\t}\r\n\t}", "private void bulletCollisionWithObject() {\r\n\t\tif(bullet != null) {\r\n\t\t\tGObject collider = getElementAt(bullet.getX() -1 , bullet.getY() + 1);\r\n\t\t\tif (dragon1 != null && collider == dragon1) {\r\n\t\t\t\thit(dragon1);\r\n\t\t\t}\r\n\t\t\tif(dragon2 != null && collider == dragon2) {\r\n\t\t\t\thit(dragon2);\r\n\t\t\t}\r\n\t\t\tif(mehran != null && collider == mehran && bullet.getY() > mehran.getY() + mehran.getHeight() / 2.0) {\r\n\t\t\t\thit(mehran);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void handleCollisions() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tcheckInvaderDeath(a);\n\t\t\t\tcheckPlayerDeath(a);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (Shot s : enemyShotList) {\n\t\t\t\n\t\t\tif (s.detectDownwardCollision(player.getX(), player.getY())) {\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcollectPowerUp(armorPiercing);\n\t\tcollectPowerUp(explosive);\n\t}", "public static void moveEntity(int direction){\n int tileSize = SpriteHandler.tileSize;\n switch(direction){\n case 0:\n if((userY-tileSize) >= MapManager.offset){\n userY -= tileSize;\n }\n break;\n case 1:\n if((userX+tileSize) <= (MapManager.width_X * tileSize)){\n userX += tileSize; \n }\n break;\n case 2:\n if((userY+tileSize) <= (MapManager.height_Y * tileSize)){\n userY += tileSize; \n }\n break;\n case 3:\n if((userX-tileSize) >= MapManager.offset){\n userX -= tileSize; \n }\n break;\n }\n }", "@Override\n public boolean canMove(double x, double y) {\n double xr = this.x, yr = this.y - 32; //subtract y to get more accurate results\n //the thing is, subract to 32 (sprite size), so if we add 1 tile we get the next pixel tile with this\n //we avoid the shaking inside tiles with the help of steps\n if (direction == 0) {\n yr += sprite.getSize() - 1;\n xr += sprite.getSize() / 2;\n }\n if (direction == 1) {\n yr += sprite.getSize() / 2;\n xr += 1;\n }\n if (direction == 2) {\n xr += sprite.getSize() / 2;\n yr += 1;\n }\n if (direction == 3) {\n xr += sprite.getSize() - 1;\n yr += sprite.getSize() / 2;\n }\n int xx = Coordinates.pixelToTile(xr) + (int) x;\n int yy = Coordinates.pixelToTile(yr) + (int) y;\n Entity a = Board.getInstance().getEntity(xx, yy, this); //entity of the position we want to go\n return !a.collide(this);\n }", "public void checkCollision() {}", "@Override\r\n public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn)\r\n {\r\n TileEntity tile = worldIn.getTileEntity(pos);\r\n if (tile instanceof TileEntityTransformer && entityIn instanceof EntityPlayer)\r\n {\r\n ((TileEntityTransformer) tile).onStepped((EntityPlayer) entityIn);\r\n }\r\n super.onEntityCollidedWithBlock(worldIn, pos, state, entityIn);\r\n }", "@Override\n protected void onCollide(AbstractCollidableSprite target) {\n super.onCollide(target);\n this.getController().onCollide(target);\n\n // Hard code, not good!\n if(target instanceof Bomb){\n Vector2D oldCenterPos = getOldCenterPos();\n Vector2D curCenterPos = getCurCenterPos();\n// if(oldCenterPos.getX() <= 0 || oldCenterPos.getY() <= 0 || oldCenterPos.equals(curCenterPos)){\n// Vector2D newPos = this.getSpritePos().applyDir(this.getCurDirection(), -1);\n// this.setSpritePos(newPos);\n// CollideDetector.setDirtyFlag(true);\n// } else {\n// // Center better be stable before & after collision.\n// // Vector2D newCenterPos = oldCenterPos.advance(curCenterPos, 1);\n//\n// DIRECTIONS moveDir = Utilities.calculateDir(oldCenterPos, curCenterPos);\n// this.setSpritePos(this.getSpritePos().applyDir(moveDir, -1));\n//\n// CollideDetector.setDirtyFlag(true);\n// }\n\n double half_dist = oldCenterPos.dist(curCenterPos)/2;\n\n Vector2D targetCenterPos = target.getCurCenterPos();\n // Move the sprite away\n DIRECTIONS moveDir = Utilities.calculateDir(targetCenterPos, curCenterPos);\n Vector2D newPos = this.getSpritePos().applyDir(moveDir, half_dist > 1? half_dist:1);\n this.setSpritePos(newPos);\n CollideDetector.setDirtyFlag(true);\n }\n }", "@Override\n public void checkCollision( Sprite obj )\n {\n\n }" ]
[ "0.7087368", "0.70210147", "0.6938246", "0.68742514", "0.6804212", "0.6796987", "0.67244864", "0.6716356", "0.6707067", "0.66994613", "0.6684086", "0.6637005", "0.6514469", "0.6483918", "0.64596504", "0.6414707", "0.64145863", "0.6387329", "0.6378986", "0.637575", "0.6369136", "0.63613844", "0.6325328", "0.6323089", "0.63230866", "0.6276706", "0.6255798", "0.62416095", "0.62393326", "0.6232277", "0.6231207", "0.6229564", "0.62279224", "0.620827", "0.61942834", "0.61793876", "0.6155689", "0.6129794", "0.6117351", "0.6111042", "0.61020994", "0.6096105", "0.60908437", "0.60866296", "0.6073145", "0.606648", "0.6051592", "0.6040766", "0.6023375", "0.6017019", "0.60165596", "0.60151225", "0.5996389", "0.5986033", "0.5985595", "0.59760976", "0.5970113", "0.5969371", "0.59650636", "0.5951556", "0.5945917", "0.59457356", "0.5942017", "0.5939978", "0.5927779", "0.5920795", "0.59194165", "0.5915698", "0.5915289", "0.59010226", "0.58999807", "0.58933395", "0.5887764", "0.58851105", "0.588119", "0.5880939", "0.58800966", "0.5870931", "0.58592564", "0.5858539", "0.58559257", "0.5853934", "0.5850416", "0.5848686", "0.5848351", "0.58407", "0.58403444", "0.5840146", "0.58394486", "0.58382124", "0.58296925", "0.5827919", "0.5825359", "0.5825197", "0.58247596", "0.5818669", "0.5818201", "0.581432", "0.58104783", "0.58023787" ]
0.65876704
12
Handle the collision of the moving entity to the same tile as the other entity.
protected abstract boolean doHandleCollision(E movingEntity, Entity otherEntity, T game) throws CollisionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void applyEntityCollision(Entity entityIn) {\n }", "public void checkCollisionTile(Entity entity) {\n\t\t\tint entityLeftX = entity.worldX + entity.collisionArea.x;\n\t\t\tint entityRightX = entity.worldX + entity.collisionArea.x + entity.collisionArea.width;\n\t\t\tint entityUpY = entity.worldY + entity.collisionArea.y;\n\t\t\tint entityDownY = entity.worldY + entity.collisionArea.y + entity.collisionArea.height;\n\t\t\t\n\t\t\tint entityLeftCol = entityLeftX/gamePanel.unitSize;\n\t\t\tint entityRightCol = entityRightX/gamePanel.unitSize;\n\t\t\tint entityUpRow = entityUpY/gamePanel.unitSize;\n\t\t\tint entityDownRow = entityDownY/gamePanel.unitSize;\n\t\t\t\n\t\t\tint point1;\n\t\t\tint point2;\n\t\t\t//This point is used for diagonal movement\n\t\t\tint point3;\n\t\t\t\n\t\t\tswitch(entity.direction) {\n\t\t\t\t//Lateral and longitudinal movements\n\t\t\t\tcase \"up\":\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\t//Sets the top left and top right point to draw a line which will check for collision\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\t//If either points are touched, turn on collision stopping movement\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"down\":\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"left\":\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"right\":\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t//Diagonal Movements\n\t\t\t\tcase \"upleft\":\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\t//Sets the top left and top right point to draw a line which will check for collision\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\t//If either points are touched, turn on collision stopping movement\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"upright\":\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase \"downleft\":\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"downright\":\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "void checkCollision(Entity other);", "public abstract void collideWith(Entity entity);", "@Override\r\n\tpublic boolean collides (Entity other)\r\n\t{\r\n\t\tif (other == owner || other instanceof Missile)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn super.collides(other);\r\n\t}", "@Override\r\n\tpublic void Collision(Entity e)\r\n\t{\r\n\t\tthis.isAlive = false;\r\n\t}", "private void handleCollisions(Sprite sprite1, Sprite sprite2){\n\t\tif(!sprite1.isActive() || !sprite2.isActive()) return;\n\n\t\tif(sprite1.equals(sprite2)){\n\t\t\treturn;\n\t\t}\n\n\t\tBounds boundsSprite1 = renderSprite(sprite1).getChildren().get(0).getBoundsInParent();\n\t\tBounds boundsSprite2 = (renderSprite(sprite2).getChildren().get(0).getBoundsInParent());\n\n\t\tif(boundsSprite1.intersects(boundsSprite2)) {\n\t\t\tcollisionHandler.handleCollide(sprite1, sprite2);\n\t\t}\n\n\t}", "@Override\n\tpublic void onCollision(Entity collidedEntity)\n\t{\n\t\t\n\t}", "protected void onCollision(Actor other) {\r\n\r\n\t}", "private boolean handleCollision(CollisionResult result, Node movingNode, Node anotherNode,\n double oldX, double oldY){\n if(result.containFlag(CollisionResult.REJECT)){\n // set translate co-ord back to before\n movingNode.setTranslateX(oldX);\n movingNode.setTranslateY(oldY);\n }\n if(result.containFlag(CollisionResult.LOSE)){\n System.out.println(\"You've LOST the game!\");\n Platform.runLater(this::handleLose);\n mainAnimation.stop();\n return true;\n }\n if(result.containFlag(CollisionResult.WIN)){\n System.out.println(\"You've WON the game!\");\n handleWin();\n mainAnimation.stop();\n return true;\n }\n if(result.containFlag(CollisionResult.DELETE_FIRST)){\n dungeonPane.getChildren().remove(movingNode);\n }\n if(result.containFlag(CollisionResult.DELETE_SECOND)){\n dungeonPane.getChildren().remove(anotherNode);\n }\n if(result.containFlag(CollisionResult.REFRESH_INVENTORY)){\n updateInventory();\n }\n if(result.containFlag(CollisionResult.REFRESH_EFFECT_TIMER)){\n // second one is the one being collided\n Potion potion = (Potion) result.getCollidingObjects()[1];\n Timer timer = new Timer(potion, arg -> player.removePotionEffect(engine, potion));\n\n timers.add(timer);\n }\n return false;\n }", "private void updateTileCollisions(Mob mob) {\n\t\tif (mob instanceof Player) {\r\n\t\t\tmob.setScreenPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.max(mob.getScreenPosition().x, mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.max(mob.getScreenPosition().y, mob.getHeight() / 2)));\r\n\t\t\tmob.setScreenPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.min(mob.getScreenPosition().x, Display.getWidth() - mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.min(mob.getScreenPosition().y, Display.getHeight() - mob.getHeight() / 2)));\n\r\n\t\t\tmob.setAbsPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.max(mob.getAbsPosition().x, mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.max(mob.getAbsPosition().y, mob.getHeight() / 2)));\r\n\t\t\tmob.setAbsPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.min(mob.getAbsPosition().x, tilemap.getWidth() - mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.min(mob.getAbsPosition().y, tilemap.getHeight()) - mob.getHeight() / 2));\r\n\t\t}\r\n\r\n\t\tPoint center = mob.getScreenPosition().add(offset);\r\n\r\n\t\tboolean hitGround = false; // used to check for vertical collisions and determine \r\n\t\t// whether or not the mob is in the air\r\n\t\tboolean hitWater = false;\r\n\r\n\t\t//update mob collisions with tiles\r\n\t\tfor (int i = 0; i < tilemap.grid.length; i++) {\r\n\t\t\tfor (int j = 0; j < tilemap.grid[0].length; j++) {\r\n\r\n\t\t\t\tif (tilemap.grid[i][j] != null &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().x > center.x - (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().x < center.x + (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().y > center.y - (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().y < center.y + (250)) {\r\n\r\n\t\t\t\t\tRectangle mobRect = mob.getBounds();\r\n\t\t\t\t\tRectangle tileRect = tilemap.grid[i][j].getBounds();\r\n\r\n\t\t\t\t\t// if mob intersects a tile\r\n\t\t\t\t\tif (mobRect.intersects(tileRect)) {\r\n\r\n\t\t\t\t\t\t// get the intersection rectangle\r\n\t\t\t\t\t\tRectangle rect = mobRect.intersection(tileRect);\r\n\r\n\t\t\t\t\t\t// if the mob intersects a water tile, adjust its movement accordingly\r\n\t\t\t\t\t\tif (tilemap.grid[i][j].type == TileMap.WATER) { \r\n\r\n\t\t\t\t\t\t\tmob.gravity = mob.defaultGravity * 0.25f;\r\n\t\t\t\t\t\t\tmob.jumpSpeed = mob.defaultJumpSpeed * 0.35f;\r\n\t\t\t\t\t\t\tmob.moveSpeed = mob.defaultMoveSpeed * 0.7f;\r\n\r\n\t\t\t\t\t\t\tif (!mob.inWater) { \r\n\t\t\t\t\t\t\t\tmob.velocity.x *= 0.2;\r\n\t\t\t\t\t\t\t\tmob.velocity.y *= 0.2;\r\n\t\t\t\t\t\t\t\tmob.inWater = true;\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\thitWater = true;\r\n\t\t\t\t\t\t\tmob.jumping = false;\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\t\t// if intersection is vertical (and underneath player)\r\n\t\t\t\t\t\t\tif (rect.getHeight() < rect.getWidth()) {\r\n\r\n\t\t\t\t\t\t\t\t// make sure the intersection isn't really horizontal\r\n\t\t\t\t\t\t\t\tif (j + 1 < tilemap.grid[0].length && \r\n\t\t\t\t\t\t\t\t\t\t(tilemap.grid[i][j+1] == null || \r\n\t\t\t\t\t\t\t\t\t\t!mobRect.intersects(tilemap.grid[i][j+1].getBounds()))) {\r\n\r\n\t\t\t\t\t\t\t\t\t// only when the mob is falling\r\n\t\t\t\t\t\t\t\t\tif (mob.velocity.y <= 0) {\r\n\t\t\t\t\t\t\t\t\t\tmob.velocity.y = 0;\r\n\t\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().x, \r\n\t\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().y + rect.getHeight() - 1)));\r\n\t\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().x, \r\n\t\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().y + rect.getHeight() - 1)));\r\n\t\t\t\t\t\t\t\t\t\tmob.inAir = false;\t\r\n\t\t\t\t\t\t\t\t\t\tmob.jumping = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// if intersection is horizontal\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tmob.velocity.x = 0;\r\n\r\n\t\t\t\t\t\t\t\tif (mobRect.getCenterX() < tileRect.getCenterX()) {\r\n\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().x - rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().y));\r\n\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().x - rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().y));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().x + rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().y));\r\n\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().x + rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().y));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tfloat xToCenter = Math.abs((float)(mobRect.getCenterX() - tileRect.getCenterX()));\r\n\t\t\t\t\t\t\tfloat yToCenter = Math.abs((float)(mobRect.getCenterY() - tileRect.getCenterY())); \r\n\r\n\t\t\t\t\t\t\t// Check under the mob to see if it touches a tile. If so, hitGround = true\r\n\t\t\t\t\t\t\tif (yToCenter <= (mobRect.getHeight() / 2 + tileRect.getHeight() / 2) && \r\n\t\t\t\t\t\t\t\t\txToCenter <= (mobRect.getWidth() / 2 + tileRect.getWidth() / 2))\r\n\t\t\t\t\t\t\t\thitGround = true;\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if mob doesn't intersect a tile vertically, they are in the air\r\n\t\tif (!hitGround) {\r\n\t\t\tmob.inAir = true;\r\n\t\t}\r\n\t\t// if the mob is not in the water, restore its default movement parameters\r\n\t\tif (!hitWater) {\r\n\t\t\tmob.gravity = mob.defaultGravity;\r\n\t\t\tmob.moveSpeed = mob.defaultMoveSpeed;\r\n\t\t\tmob.jumpSpeed = mob.defaultJumpSpeed;\r\n\t\t\tmob.inWater = false;\r\n\t\t}\r\n\t}", "@Override\n public final void handleCollision(final E movingEntity,\n final Entity otherEntity,\n final T game)\n throws CollisionException\n {\n if(movingEntity == null)\n {\n throw new IllegalArgumentException(\"movingEntity cannot be null\");\n }\n if(game == null)\n {\n throw new IllegalArgumentException(\"game cannot be null\");\n }\n if(!doHandleCollision(movingEntity, otherEntity, game))\n {\n throw new CannotCollideWithException(movingEntity, otherEntity);\n }\n }", "@Override\n\tpublic void doCollision(CollisionResult c) {\n\t\t\n\t}", "public void collide(Entity entity) throws IllegalArgumentException{\n\t \n \tif (this instanceof Ship && entity instanceof Ship) this.defaultCollide(entity);\n \telse if (this instanceof MinorPlanet && entity instanceof MinorPlanet) this.defaultCollide(entity);\n \telse if (entity instanceof Bullet) {\n \t\tBullet bullet = (Bullet) entity;\n \t\tif (bullet.getBulletSource() == this) bullet.bulletCollideOwnShip((Ship) this);\n \t\telse bullet.bulletCollideSomethingElse(this);\n \t\t}\n \t\n \telse if (this instanceof Bullet) {\n \t\tBullet bullet = (Bullet) this;\n \t\tif (bullet.getBulletSource() == entity) bullet.bulletCollideOwnShip((Ship) entity);\n \t\telse bullet.bulletCollideSomethingElse(entity);\n \t\t}\n \t\n \telse if ((this instanceof Ship && entity instanceof Asteroid) || (entity instanceof Ship && this instanceof Asteroid)){\n \t\tShip ship = null;\n \t\tif (this instanceof Ship){\n \t\t\tship = (Ship) this;\n \t\t} else {\n \t\t\tship = (Ship) entity;\n \t\t}\n \t\tship.terminate();\n \t}\n \t\n \telse if ((this instanceof Ship && entity instanceof Planetoid) || (entity instanceof Ship && this instanceof Planetoid)){\n \t\tShip ship = null;\n \t\tif (this instanceof Ship){\n \t\t\tship = (Ship) this;\n \t\t} else {\n \t\t\tship = (Ship) entity;\n \t\t}\n \t\t\n \t\tWorld world = ship.getSuperWorld();\n \t\tdouble xnew = Helper.randomInBetween(this.getRadius(), world.getWorldWidth());\n \t\tdouble ynew = Helper.randomInBetween(this.getRadius(), world.getWorldHeight());\n \t\tship.setPosition(xnew, ynew);\n \t\t\n \t\twhile (! this.overlapAnyEntity()){\n \t\t\txnew = Helper.randomInBetween(this.getRadius(), world.getWorldWidth());\n \t\t\tynew = Helper.randomInBetween(this.getRadius(), world.getWorldHeight());\n \t\t\tship.setPosition(xnew, ynew);\n \t\t\t}\n \t}\n\t \t\n \t\n }", "public void tick() {\n if (!isActive || !entities[0].canCollide || !entities[1].canCollide) {\n return;\n }\n\n rectangles[0].x = boundaries[0].x - 1;\n rectangles[1].x = boundaries[1].x - 1;\n rectangles[0].y = boundaries[0].y - 1;\n rectangles[1].y = boundaries[1].y - 1;\n\n isCollided = rectangles[0].intersects(rectangles[1]);\n\n if (isCollided && !firedEvent) {\n lastEvent = new EntityEntityCollisionEvent(this);\n onCollide();\n start(lastEvent);\n firedEvent = true;\n }\n if (!isCollided && firedEvent) {\n onCollisionEnd();\n end(lastEvent);\n firedEvent = false;\n }\n if (previouslyCollided != isCollided) {\n setBoundaryColors();\n }\n\n previouslyCollided = isCollided;\n }", "@Override\n\tpublic void collide(Entity e) {\n\n\t}", "void collisionHappened(int position);", "@Override\r\n\tpublic void handleCollision(Contact contact) {\n\t}", "public abstract void collision(SpaceThing thing);", "public void applyEntityCollision(Entity var1)\n {\n if (this.gotMovement)\n {\n if (var1 instanceof EntitySentry || var1 instanceof EntityTrackingGolem || var1 instanceof EntitySliderHostMimic || var1 instanceof EntitySentryGuardian || var1 instanceof EntitySentryGolem || var1 instanceof EntityBattleSentry || var1 instanceof EntitySlider || var1 instanceof EntityMiniSlider)\n {\n return;\n }\n\n boolean var2 = var1.attackEntityFrom(DamageSource.causeMobDamage(this.slider), 6);\n\n if (var2 && var1 instanceof EntityLiving)\n {\n this.worldObj.playSoundAtEntity(this, \"aeboss.slider.collide\", 2.5F, 1.0F / (this.rand.nextFloat() * 0.2F + 0.9F));\n\n if (var1 instanceof EntityCreature || var1 instanceof EntityPlayer)\n {\n EntityLiving var3 = (EntityLiving) var1;\n var3.motionY += 0.35D;\n var3.motionX *= 2.0D;\n var3.motionZ *= 2.0D;\n }\n\n this.stop();\n }\n }\n }", "public void unitCollision() {\n\t}", "@Override\n\t\t\t\tpublic boolean validEntity(Entity me, Entity other) {\n\t\t\t\t\tif(Mappers.status.get(me).same(Mappers.status.get(other))) return false;\n\t\t\t\t\t\n\t\t\t\t\tFacingComponent facingComp = Mappers.facing.get(me);\n\t\t\t\t\tBody myBody = Mappers.body.get(me).body;\n\t\t\t\t\tBody otherBody = Mappers.body.get(other).body;\n\t\t\t\t\t\n\t\t\t\t\tfloat xOff = facingComp.facingRight ? 0.5f : -0.5f;\n\t\t\t\t\t\n\t\t\t\t\tfloat myX = myBody.getPosition().x + xOff;\n\t\t\t\t\tfloat myY = myBody.getPosition().y;\n\t\t\t\t\tfloat otherX = otherBody.getPosition().x;\n\t\t\t\t\tfloat otherY = otherBody.getPosition().y;\n\t\t\t\t\t\n\t\t\t\t\tfloat minX = 0.0f;\n\t\t\t\t\tfloat maxX = minX + range;\n\t\t\t\t\tfloat yRange = 0.9f;\n\t\t\t\t\t\n\t\t\t\t\t// Construct box in front of you\n\t\t\t\t\tfloat closeX = facingComp.facingRight ? myX + minX : myX - minX;\n\t\t\t\t\tfloat farX = facingComp.facingRight ? myX + maxX : myX - maxX;\n\t\t\t\t\tfloat top = myY + yRange;\n\t\t\t\t\tfloat bottom = myY - yRange;\n\t\t\t\t\t\n\t\t\t\t\tDebugRender.setType(ShapeType.Line);\n\t\t\t\t\tDebugRender.setColor(Color.CYAN);\n\t\t\t\t\tDebugRender.rect(facingComp.facingRight ? closeX : farX, bottom, Math.abs(farX - closeX), top - bottom, 1.0f);\n\t\t\t\t\t\n\t\t\t\t\tRectangle kick = new Rectangle(Math.min(closeX, farX), bottom, Math.abs(closeX - farX), top - bottom);\n\t\t\t\t\tRectangle enemy = new Rectangle(Mappers.body.get(other).getAABB());\n\t\t\t\t\tenemy.x = otherX - enemy.width * 0.5f;\n\t\t\t\t\tenemy.y = otherY - enemy.height * 0.5f;\n\t\t\t\t\t\n\t\t\t\t\treturn kick.overlaps(enemy);\n//\t\t\t\t\treturn (((facingComp.facingRight && otherX >= closeX && otherX <= farX) || (!facingComp.facingRight && otherX >= farX && otherX <= closeX)) && otherY <= top && otherY >= bottom);\n\t\t\t\t}", "@Override\n\tpublic boolean handleCollision(ICollider otherObject, GameWorld gw) {\n\t\tif (otherObject instanceof NPSMissile) return false;\n\t\tif(otherObject instanceof PlayerShip)\n\t\t\tgw.explodePS();\n\t\treturn true;\n\t\t\n\t}", "@Override\r\n public void tick() {\n playerNextTo();\r\n if (playerContact() && isCollisioned()) {\r\n if (!((GameState) game.getGameState()).getWorld().getTile((int) (x + xMove), (int) (y + yMove)).isSolid()\r\n && isValidMove(xMove, yMove)) {\r\n x += xMove;\r\n y += yMove;\r\n }\r\n }\r\n }", "@Override\r\n public boolean collision(org.dyn4j.dynamics.Body body1, BodyFixture fixture1, org.dyn4j.dynamics.Body body2, BodyFixture fixture2) {\r\n //Default, keep processing this event\r\n\r\n return true;\r\n }", "@Override protected boolean drag_collide(float newX, float newY, Entity e){\n\n\n boolean collides=\n e.collideLine(x, y, newX, newY) ||\n e.collideLine(x + thirdWidth, y, newX+thirdWidth, newY) ||\n e.collideLine(x, y+height, newX, newY+height) ||\n e.collideLine(x + thirdWidth, y+height, newX+thirdWidth, newY+height) ||\n\n e.collideLine(2*thirdWidth + x, y, 2*thirdWidth + newX, newY) ||\n e.collideLine(2*thirdWidth + x + thirdWidth, y, 2*thirdWidth + newX+thirdWidth, newY) ||\n e.collideLine(2*thirdWidth + x, y+height, 2*thirdWidth + newX, newY+height) ||\n e.collideLine(2*thirdWidth + x + thirdWidth, y+height, 2*thirdWidth + newX+thirdWidth, newY+height)\n ;\n return collides;\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}", "@Override\r\n public void update() {\r\n super.update();\r\n hero.checkForTileCollision(getXOverlap(hero.oldx,hero.oldx+width,hero.x,hero.x+width), getYOverlap(hero.oldy,hero.oldy+hero.height,hero.y, hero.y+hero.height));\r\n int i = 0;\r\n\r\n while (turningPoints[i]!= null)\r\n {\r\n if (intersects(turningPoints[i].x,turningPoints[i].y, turningPoints[i].width,turningPoints[i].height))\r\n {\r\n vx = -vx;\r\n vy = -vy;\r\n }\r\n i++;\r\n }\r\n }", "private void collision() {\n\t\tfor(int i = 0; i < brownMeteors.length; i++) {\n\t\t\tif( distance(brownMeteors[i].getLayoutX() + ENTITIES_SIZE/2, brownMeteors[i].getLayoutY() - ENTITIES_SIZE/2, \n\t\t\t\t\tplayer.getLayoutX() + ENTITIES_SIZE/2, player.getLayoutY() - ENTITIES_SIZE/2) <= ENTITIES_SIZE) {\n\t\t\t\tsetNewElementPosition(brownMeteors[i]);\n\t\t\t\t\n\t\t\t\t//Update score -\n\t\t\t\tsc.score -= 3 * sc.collisionCounter; \n\t\t\t\tsc.collisionCounter++;\n\t\t\t}\n\t\t}\n\t\t//player vs grey Meteor\n\t\tfor(int i = 0; i < greyMeteors.length; i++) {\n\t\t\tif( distance(greyMeteors[i].getLayoutX() + ENTITIES_SIZE/2, greyMeteors[i].getLayoutY() - ENTITIES_SIZE/2, \n\t\t\t\t\tplayer.getLayoutX() + ENTITIES_SIZE/2, player.getLayoutY() - ENTITIES_SIZE/2) <= ENTITIES_SIZE) {\n\t\t\t\tsetNewElementPosition(greyMeteors[i]);\n\n\t\t\t\t//Update score -\n\t\t\t\tsc.score -= 3 * sc.collisionCounter;\n\t\t\t\tsc.collisionCounter++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//laser vs brown Meteor\n\t\tfor(int i = 0; i < lasers.size(); i++) {\n\t\t\tfor(int j = 0; j < brownMeteors.length; j++) { // 0 - 2 -> 3elem\n\t\t\t\tif(lasers.get(i).getBoundsInParent().intersects(brownMeteors[j].getBoundsInParent())) {\t// bounds of a node in it's parent coordinates\n\t\t\t\t\tsetNewElementPosition(brownMeteors[j]);\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i));\n\t\t\t\t\tlasers.remove(i);\n\t\t\t\t\tSystem.out.println(lasers.size());\n\t\t\t\t\t\n\t\t\t\t\t//Update score +\n\t\t\t\t\tsc.score += 1; \n\t\t\t\t\tbreak; //kein fehler mehr durch index out of bounds verletzung\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\t\n\t\tfor(int i = 0; i < lasers.size(); i++) {\n\t\t\tfor(int j = 0; j < greyMeteors.length; j++) { // 0 - 2 -> 3elem\n\t\t\t\tif(lasers.get(i).getBoundsInParent().intersects(greyMeteors[j].getBoundsInParent())) {\t// bounds of a node in it's parent coordinates\n\t\t\t\t\tsetNewElementPosition(greyMeteors[j]);\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i));\n\t\t\t\t\tlasers.remove(i);\n\t\t\t\t\tSystem.out.println(lasers.size());\n\t\t\t\t\t\n\t\t\t\t\t//Update score +\n\t\t\t\t\tsc.score += 1; \n\t\t\t\t\tbreak; //kein fehler mehr durch index out of bounds verletzung\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\t\t\n\t}", "private void checkForCollisionWithSelf() {\r\n if (isInSnake(snake[0].row,snake[0].column,true)) {\r\n gameOver();\r\n }\r\n }", "public void handleCollision(Collision c);", "public void handleCollision(ISprite collisionSprite, Collision collisionType);", "@Override\r\n\tpublic void handle(Collidable otherSprite) {\n\t\t\r\n\t}", "public void processMove(MahjongSolitaireMove move)\n {\n // REMOVE THE MOVE TILES FROM THE GRID\n ArrayList<MahjongSolitaireTile> stack1 = tileGrid[move.col1][move.row1];\n ArrayList<MahjongSolitaireTile> stack2 = tileGrid[move.col2][move.row2]; \n MahjongSolitaireTile tile1 = stack1.remove(stack1.size()-1);\n MahjongSolitaireTile tile2 = stack2.remove(stack2.size()-1);\n \n // MAKE SURE BOTH ARE UNSELECTED\n tile1.setState(VISIBLE_STATE);\n tile2.setState(VISIBLE_STATE);\n \n // SEND THEM TO THE STACK\n tile1.setTarget(TILE_STACK_X + TILE_STACK_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile1.startMovingToTarget(MAX_TILE_VELOCITY);\n tile2.setTarget(TILE_STACK_X + TILE_STACK_2_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile2.startMovingToTarget(MAX_TILE_VELOCITY);\n stackTiles.add(tile1);\n stackTiles.add(tile2); \n \n // MAKE SURE THEY MOVE\n movingTiles.add(tile1);\n movingTiles.add(tile2);\n \n // AND MAKE SURE NEW TILES CAN BE SELECTED\n selectedTile = null;\n \n // PLAY THE AUDIO CUE\n miniGame.getAudio().play(MahjongSolitairePropertyType.MATCH_AUDIO_CUE.toString(), false);\n \n // NOW CHECK TO SEE IF THE GAME HAS EITHER BEEN WON OR LOST\n \n // HAS THE PLAYER WON?\n if (stackTiles.size() == NUM_TILES)\n {\n // YUP UPDATE EVERYTHING ACCORDINGLY\n endGameAsWin();\n }\n else\n {\n // SEE IF THERE ARE ANY MOVES LEFT\n MahjongSolitaireMove possibleMove = this.findMove();\n if (possibleMove == null)\n {\n // NOPE, WITH NO MOVES LEFT BUT TILES LEFT ON\n // THE GRID, THE PLAYER HAS LOST\n endGameAsLoss();\n }\n }\n }", "public abstract boolean collide(int x, int y, int z, int dim, Entity entity);", "@Override\n\tpublic boolean checkCollision() {\n\t\treturn true;\n\t}", "public void noCollision(){\r\n this.collidingEntity2=null;\r\n this.collidingEntity=null;\r\n collidedTop=false;\r\n collide=false;\r\n }", "void checkHandleContactWithPlayer() {\n Player curPlayer = this.mainSketch.getCurrentActivePlayer();\n\n if (this.doesAffectPlayer) {\n // boundary collision for player\n if (contactWithCharacter(curPlayer)) { // this has contact with non-player\n if (!this.charactersTouchingThis.contains(curPlayer)) { // new collision detected\n curPlayer.changeNumberOfVerticalBoundaryContacts(1);\n this.charactersTouchingThis.add(curPlayer);\n }\n curPlayer.handleContactWithVerticalBoundary(this.startPoint.x);\n\n } else { // this DOES NOT have contact with player\n if (this.charactersTouchingThis.contains(curPlayer)) {\n curPlayer.setAbleToMoveRight(true);\n curPlayer.setAbleToMoveLeft(true);\n curPlayer.changeNumberOfVerticalBoundaryContacts(-1);\n this.charactersTouchingThis.remove(curPlayer);\n }\n }\n }\n }", "private void collide(String typeOfCollision, Entity first, Entity second) {\n switch (typeOfCollision) {\n\n case \"playerWithWall\":\n intersectPlayerWithWall(first);\n break;\n\n case \"playerWithHazard\":\n intersectPlayerWithWall(first);\n break;\n\n case \"bulletWithWall\":\n room.getEntityManager().removeEntity(first);\n ((WeaponComponent) player.getComponent(ComponentType.WEAPON)).getBullets().removeEntity(first);\n break;\n\n case \"enemyWithWall\":\n intersectEnemyWithWall(first, second);\n break;\n\n case \"enemyWithBullet\":\n intersectBulletWithEnemy(first, second);\n break;\n\n case \"enemyWithEnemy\":\n intersectEnemyWithWall(first, second);\n break;\n\n case \"enemyWithPlayer\":\n NinjaEntity ninja = (NinjaEntity) second;\n ninja.setIsHit(true);\n break;\n\n case \"itemWithPlayer\":\n itemIntersectsPlayer(first);\n break;\n\n case \"swordWithEnemy\":\n intersectSwordWithEnemy(first, second);\n break;\n }\n }", "@Override\r\n\tpublic void collisionEffect(AbstractCollidable other, Vector mtv) {\r\n\t\t\r\n\t\tClass<? extends AbstractCollidable> otherClass = other.getClass();\r\n\r\n\t\tif (\t\totherClass.equals(TerrainSection.class)\r\n\t\t\t\t|| otherClass.equals(Obstacle.class)\r\n\t\t\t\t|| (otherClass.equals(Player.class) && owner != other)\r\n\t\t\t\t|| (otherClass.equals(Enemy.class) && owner != other)) {\r\n\t\t\thasCollided = true;\r\n\t\t}\r\n\t\t\r\n\t}", "public void onEntityMove(Entity entity) {\n\n }", "public void collidedWith(Entity other){\n\t}", "@Override\r\n\tpublic void handleCollision(ICollider otherObject) {\r\n\t\t((GameObject) otherObject).setGetIfCol(true);\r\n\t\tif (otherObject instanceof Asteroid) {\r\n\t\t\t((Asteroid) otherObject).setHitCase(2);\r\n\t\t} else if (otherObject instanceof Missile) {\r\n\t\t\tif (((Missile) otherObject).getMissileFlag() == 0) {\r\n\t\t\t\t((Missile) otherObject).setHitCase(6);\r\n\t\t\t}\r\n\t\t} else if (otherObject instanceof PlayerShip) {\r\n\t\t\t((PlayerShip) otherObject).setHitCase(7);\r\n\t\t} else if(otherObject instanceof Curve) {\r\n\t\t\t((Curve) otherObject).setHitCase(9);\r\n\t\t}\r\n\t}", "private void checkRegTileCollisions(float deltaTime) {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\t//overlap between player and tile\n\t\t\t\n\t\t\t//experiment with these values to get close to perfect collisions *************************\n\t\t\ttry {\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t\n\t\t\t\t\t//check y - collisions\n\t\t\t\t\tif(player.position.y > tile.position.y + (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y + 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f; //prev. optimal was .3\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.y < tile.position.y - (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y - 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//check x - collision\n\t\t\t\t\tif(player.position.x > tile.position.x + (tile.bounds.width / 2) + correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x + 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.x < tile.position.x - (tile.bounds.width / 2) - correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x - 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t} catch (Exception e) {}\n\t\t}\n\t\trecheckTileCollisions(); //fix frame-skipping \n\t}", "public boolean colidesWith(Entity e, boolean player){\n\t\tthis.setBounds((int) x, (int)y, Tile.size, Tile.size);\n\t\tif(player)\n\t\t\te.setBounds((int) (main.getCamOfSetX() + e.getPx()), (int) (main.getCamOfSetY() + e.getPy()), (int)e.getWidth(), (int)e.getHeight());\n\t\telse\n\t\t\te.setBounds((int)e.getX(), (int)e.getY(), (int)e.getWidth(), (int)e.getHeight());\n\t\treturn this.intersects(e);\n\t}", "public abstract boolean collisionWith(CollisionObject obj);", "public void collision(){\r\n\t\tif(currX < 0 || currX > 1000-width || currY < 0 || currY > 700-height){\r\n\t\t\tinGame=false;\r\n\t\t}\r\n\t\t/*\r\n\t\tI start at 1 because tail[0] will constantly be taking the position\r\n\t\tof the snake's head, so if i start at 0, the game would end immediately.\r\n\t\t*/\r\n\t\tfor(int i=1; i < numOranges; i++){\r\n\t\t\tRectangle currOrangeRect = new Rectangle(tail[i].getXcoords(), tail[i].getYcoords(), OrangeModel.getWidth(), OrangeModel.getHeight());\r\n\t\t\tif(new Rectangle(currX, currY, width, height).intersects(currOrangeRect)){\r\n\t\t\t\tinGame=false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void collide() {\n int collisionRange;\n \n if(isObstacle) {\n for(Thing thg: proximity) {\n if(\n thg.isObstacle\n &&\n !thg.equals(this)\n ) {\n collisionRange = (thg.size + this.size)/2;\n deltaA = this.distance(thg);\n \n if( \n Math.abs(deltaA[0]) <= collisionRange\n &&\n Math.abs(deltaA[1]) <= collisionRange\n ){\n if(deltaA[0] > deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == 1) {\n dA[0] = 0;\n }\n }\n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == -1) {\n dA[1] = 0;\n }\n }\n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n if(dA[0] != 0) {\n dA[1] = dA[0];\n }\n if(dA[1] != 0) {\n dA[0] = dA[1];\n }\n }\n }\n \n if(deltaA[0] < deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == -1) {\n dA[0] = 0;\n }\n } \n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == 1) {\n dA[1] = 0;\n }\n } \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = dA[0];\n }\n }\n \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = -dA[0];\n }\n }\n }\n }\n }\n }", "@Override\n\tprotected void moveto(World world, double x, double y)\n\t{\n\t\t// If the destination is not blocked by terrain, move there\n\t\tif (!world.terrainBlocks(x + halfPlayerWidth(), y - halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x - halfPlayerWidth(), y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x + halfPlayerWidth(), y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x - halfPlayerWidth(), y - halfPlayerHeight()))\n\t\t{\n\t\t\tthis.x = x;\n\t\t\tthis.y = y;\n\t\t}\n\t\t// Else: Check vertically collision\n\t\telse if (!world.terrainBlocks(this.x + halfPlayerWidth(), y - halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(this.x - halfPlayerWidth(), y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(this.x + halfPlayerWidth(), y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(this.x - halfPlayerWidth(), y - halfPlayerHeight()))\n\t\t{\n\t\t\tthis.y = y;\n\n\t\t\tthis.drawMissile = false;\n\t\t}\n\t\t// Else: Check horizontally collision\n\t\telse if (!world.terrainBlocks(x + halfPlayerWidth(), this.y - halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x - halfPlayerWidth(), this.y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x + halfPlayerWidth(), this.y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x - halfPlayerWidth(), this.y - halfPlayerHeight()))\n\t\t{\n\t\t\tthis.x = x;\n\n\t\t\tthis.drawMissile = false;\n\t\t}\n\t}", "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 void collision(SimpleObject s) {\n\t\t\n\t}", "protected void checkEntityCollisions(long time) {\n\t\tRectangle2D.Float pla1 = player1.getLocationAsRect();\n\t\tRectangle2D.Float pla2 = player2.getLocationAsRect();\n\t\tfor(int i = 0; i < ghosts.length; i++)\n\t\t{\n\t\t\tGhost g = ghosts[i];\n\t\t\t\n\t\t\tif(g.isDead())\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tRectangle2D.Float ghRect = g.getLocationAsRect();\n\t\t\t\n\t\t\tif(ghRect.intersects(pla1))\n\t\t\t\tonPlayerCollideWithGhost(time, player1, i);\n\t\t\t\n\t\t\tif(ghRect.intersects(pla2))\n\t\t\t\tonPlayerCollideWithGhost(time, player2, i);\n\t\t}\n\t}", "@Override\r\n public boolean collision(org.dyn4j.dynamics.Body body1, BodyFixture fixture1, org.dyn4j.dynamics.Body body2, BodyFixture fixture2, Manifold manifold) {\r\n\r\n EntityId one = (EntityId) body1.getUserData();\r\n EntityId two = (EntityId) body2.getUserData();\r\n\r\n if (gravityState.isWormholeFixture(fixture1) || gravityState.isWormholeFixture(fixture2)) {\r\n return gravityState.collide(body1, fixture1, body2, fixture2, manifold, time.getTpf());\r\n }\r\n\r\n if (flagState.isFlag(one) || flagState.isFlag(two)) {\r\n return flagState.collide(body1, fixture1, body2, fixture2, manifold, time.getTpf());\r\n }\r\n\r\n return true; //Default, keep processing this event\r\n }", "@Override\n\tpublic void handleCollision(GameObject otherObject) {\n\t\tif(otherObject instanceof Drone) {\n\t\t\tSystem.out.println(\"PlayerCyborg collided with a Drone cause 1 damage\\n\");\n\t\t\tthis.setDamageLevel(this.getDamageLevel()+1);\n\t\t}\n\t\telse if(otherObject instanceof NonPlayerCyborg) {\n\t\t\tSystem.out.println(\"PlayerCyborg collided with another cyborg cause 2 damage\\n\");\n\t\t\tthis.setDamageLevel(this.getDamageLevel()+2);\n\t\t}\n\t\telse if(otherObject instanceof Base) {\n\t\t\tint BaseID = ((Base) otherObject).getBaseID();\n\t\t\tif(this.getLastBaseReached()+1 == BaseID){\n\t\t\t\tint newBaseID = this.getLastBaseReached()+1;\n\t\t\t\tthis.setLastBaseReached(newBaseID);\n\t\t\t\tif(this.getLastBaseReached()+1 < 4){\n\t\t\t\t\tSystem.out.println(\"PlayerCyborg reach to base \" + newBaseID + \"\\n\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Please collide base in sequential!\\n\" + \n\t\t\t\t\t\t \"The next sequential is \" + (this.getLastBaseReached()+1) + \"\\n\");\n\t\t\t}\n\t\t}\n\t\telse if(otherObject instanceof EnergyStation) {\n\t\t\tif(((EnergyStation) otherObject).getCapacity()!=0) {\n\t\t\t\tint beforeRuel = this.getEnergyLevel();\n\t\t\t\tif(this.getEnergyLevel()+((EnergyStation) otherObject).getCapacity()<this.getMaxEnergyLevel()) {\n\t\t\t\t\tthis.setEnergyLevel(this.getEnergyLevel()+((EnergyStation) otherObject).getCapacity());\n\t\t\t\t}else {\n\t\t\t\t\tthis.setEnergyLevel(this.getMaxEnergyLevel()); //over fuel the Energy\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"PlayerCyborg collided with a EnergyStation refuel \" + Math.abs(this.getEnergyLevel()-beforeRuel) + \" Energy\\n\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void act(float delta) {\n\t\tsuper.act(delta);\n\t\t\n\t\tif(PWM.instance().pointIsInObstacle(this.getX(), this.getY())){\n\t\t\tif(!PWM.instance().pointIsInObstacle(this.getX(), lastPos.y)){\n\t\t\t\tthis.setPosition(this.getX(), lastPos.y);\n\t\t\t}else if(!PWM.instance().pointIsInObstacle(lastPos.x, this.getY())){\n\t\t\t\tthis.setPosition(lastPos.x, this.getY());\n\t\t\t}else{\n\t\t\t\tthis.setPosition(lastPos.x, lastPos.y);\n\t\t\t}\n\t\t\t\n\t\t\tthis.lastPos.x = this.getX();\n\t\t\tthis.lastPos.y = this.getY();\n\t\t\t\n\t\t}\t\t\t\t\n\t\t\n\t\tmainCameraFollowHero();\n\t\t\n\t\t\n\t}", "@Override\r\n public void applyEntityCollision(Entity entity)\r\n {\r\n Vector3 v = Vector3.getNewVector();\r\n Vector3 v1 = Vector3.getNewVector();\r\n\r\n blockBoxes.clear();\r\n\r\n int sizeX = blocks.length;\r\n int sizeY = blocks[0].length;\r\n int sizeZ = blocks[0][0].length;\r\n Set<Double> topY = Sets.newHashSet();\r\n for (int i = 0; i < sizeX; i++)\r\n for (int k = 0; k < sizeY; k++)\r\n for (int j = 0; j < sizeZ; j++)\r\n {\r\n ItemStack stack = blocks[i][k][j];\r\n if (stack == null || stack.getItem() == null) continue;\r\n\r\n Block block = Block.getBlockFromItem(stack.getItem());\r\n AxisAlignedBB box = Matrix3.getAABB(posX + block.getBlockBoundsMinX() - 0.5 + boundMin.x + i,\r\n posY + block.getBlockBoundsMinY() + k,\r\n posZ + block.getBlockBoundsMinZ() - 0.5 + boundMin.z + j,\r\n posX + block.getBlockBoundsMaxX() + 0.5 + boundMin.x + i,\r\n posY + block.getBlockBoundsMaxY() + k,\r\n posZ + block.getBlockBoundsMaxZ() + 0.5 + boundMin.z + j);\r\n blockBoxes.add(box);\r\n topY.add(box.maxY);\r\n }\r\n\r\n v.setToVelocity(entity).subtractFrom(v1.setToVelocity(this));\r\n v1.clear();\r\n Matrix3.doCollision(blockBoxes, entity.getEntityBoundingBox(), entity, 0, v, v1);\r\n for(Double d: topY)\r\n if (entity.posY >= d && entity.posY + entity.motionY <= d && motionY <= 0)\r\n {\r\n double diff = (entity.posY + entity.motionY) - (d + motionY);\r\n double check = Math.max(0.5, Math.abs(entity.motionY + motionY));\r\n if (diff > 0 || diff < -0.5 || Math.abs(diff) > check)\r\n {\r\n entity.motionY = 0;\r\n }\r\n }\r\n\r\n boolean collidedY = false;\r\n if (!v1.isEmpty())\r\n {\r\n if (v1.y >= 0)\r\n {\r\n entity.onGround = true;\r\n entity.fallDistance = 0;\r\n entity.fall(entity.fallDistance, 0);\r\n }\r\n else if (v1.y < 0)\r\n {\r\n boolean below = entity.posY + entity.height - (entity.motionY + motionY) < posY;\r\n if (below)\r\n {\r\n v1.y = 0;\r\n }\r\n }\r\n if (v1.x != 0) entity.motionX = 0;\r\n if (v1.y != 0) entity.motionY = motionY;\r\n if (v1.z != 0) entity.motionZ = 0;\r\n if (v1.y != 0) collidedY = true;\r\n v1.addTo(v.set(entity));\r\n v1.moveEntity(entity);\r\n }\r\n if (entity instanceof EntityPlayer)\r\n {\r\n EntityPlayer player = (EntityPlayer) entity;\r\n if (Math.abs(player.motionY) < 0.1 && !player.capabilities.isFlying)\r\n {\r\n entity.onGround = true;\r\n entity.fallDistance = 0;\r\n }\r\n if (!player.capabilities.isCreativeMode && !player.worldObj.isRemote)\r\n {\r\n EntityPlayerMP entityplayer = (EntityPlayerMP) player;\r\n if (collidedY) entityplayer.playerNetServerHandler.floatingTickCount = 0;\r\n }\r\n }\r\n }", "public void checkCollision(Enemy enemy){\r\n if(collidingEntity!=null && collidingEntity!=enemy){\r\n return;\r\n }\r\n FloatRect x = enemy.getRect ();\r\n\r\n if (rect1==null || x==null){\r\n return;\r\n }\r\n\r\n FloatRect ins = rect1.intersection (x);\r\n\r\n if(ins!=null) {\r\n this.collidingEntity= enemy;\r\n collide=true;\r\n checkRightCollision (x);\r\n checkLeftCollision (x);\r\n bounce(enemy);\r\n } else {\r\n noCollision ();\r\n }\r\n }", "private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }", "@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 void moveEntity(Entity entity, Direction direction, float delta) {\r\n float newX = entity.getX();\r\n float newY = entity.getY();\r\n\r\n float velocity = entity.getVelocity();\r\n float distanceCovered = velocity * delta;\r\n\r\n switch (direction) {\r\n case NORTH:\r\n newY = newY + distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraVertically(newY);\r\n break;\r\n case EAST:\r\n newX = newX + distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraHorizontally(newX);\r\n break;\r\n case WEST:\r\n newX = newX - distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraHorizontally(newX);\r\n break;\r\n case SOUTH:\r\n newY = newY - distanceCovered;\r\n if(isColliding(newX, newY))\r\n return;\r\n\r\n if(entity instanceof Player)\r\n gameCamera.moveCameraVertically(newY);\r\n break;\r\n }\r\n\r\n //TODO: Increase performance (e.g. only check for items when actually changing layer position)\r\n Position tilePosition = Utils.toTilePosition(newX + 20, newY + 20);\r\n Optional<Map.Entry<Position, Item>> optMapItem = getMapItem(tilePosition.x, tilePosition.y);\r\n if(optMapItem.isPresent()) {\r\n Map.Entry<Position, Item> itemEntry = optMapItem.get();\r\n entity.getItems().add(itemEntry.getValue());\r\n gameItems.remove(itemEntry.getKey());\r\n }\r\n\r\n entity.setMoving(true);\r\n entity.setX(newX);\r\n entity.setY(newY);\r\n }", "@Override\n public boolean canMove(double x, double y) {\n double xRec=rectangle.getX();\n double yRec=rectangle.getY();\n rectangle.setLocation((int)(xRec+x*1),(int)(yRec+y*1));\n\n List<Rectangle> staticRectangles= board.getStaticRectangles();\n List<Creature> creatures=board.getCreatures();\n Iterator<Rectangle> itr1=staticRectangles.iterator();\n\n while(itr1.hasNext()){\n Rectangle tmpRectangle =itr1.next();\n if(rectangle.intersects(tmpRectangle)) {\n return false;\n }\n }\n Iterator<Creature> itr2=creatures.iterator();\n while(itr2.hasNext()){\n Creature creature=itr2.next();\n if(creature==this){\n continue;\n }\n else{\n if(rectangle.intersects(creature.getRectangle()))\n return false;\n }\n\n }\n\n return true;\n }", "public void checkEntityOverlap(){\n for(Entity entity:entityList){\n if(entity.getEntityType().equals(\"Sandwich\")) {\n if (player.getPlayerCoordinates() == entity.getEntityCoordinates()) {\n player.eatSandwich();\n entityList.remove(entity);\n }\n }\n }\n }", "public void move() {\n if (!isCollision(xMove, 0))\n moveX();\n //else\n // adjustX(xMove);\n\n if (!isCollision(0, yMove))\n moveY();\n //else\n // adjustY(yMove);\n //check isCollision(gameObject) with calculating the position for next move\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 abstract void onCollision();", "public void collide(StaticCollEvent sce) {\n int cType = sce.getInvCollType();\n\n if (cType == StaticCollEvent.COLL_BOTTOM) {\n collBottom = true;\n this.newY = sce.getInvokerNewY();\n }\n if (cType == StaticCollEvent.COLL_BOTTOMLEFT || cType == StaticCollEvent.COLL_BOTTOMRIGHT) {\n collLeftRight = true;\n this.newX = sce.getInvokerNewX();\n this.newY = sce.getInvokerNewY();\n }\n if (cType == StaticCollEvent.COLL_LEFT || cType == StaticCollEvent.COLL_RIGHT) {\n this.velX = -this.velX; // Turn around.\n }\n if (collBottom || collLeftRight) {\n if (action == FALLING) {\n this.action = WALKING;\n this.velX = monsterSpeed;\n }\n } else {\n this.action = FALLING;\n this.newX = sce.getInvokerNewX();\n this.newY = sce.getInvokerNewY();\n }\n }", "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}", "public abstract void processCollisions();", "public EntityEntityCollision(EntityBoundary boundary1, EntityBoundary boundary2) {\n boundaries = new EntityBoundary[]{boundary1, boundary2};\n rectangles = new Rectangle[]{boundaries[0].asRectangle(), boundaries[1].asRectangle()};\n rectangles[0].width += 2;\n rectangles[1].width += 2;\n rectangles[0].height += 2;\n rectangles[1].height += 2;\n entities = new Entity[]{boundaries[0].parent, boundaries[1].parent};\n }", "@Override\n synchronized public void run() {\n if (gameBoard.wasCollisionDetected()) {\n Point collisionPoint = gameBoard.getLastCollision();\n if (collisionPoint.x >= 0) {\n dummyText.setText(\"Last Collision XY (\" + Integer.toString(collisionPoint.x) + \",\" + Integer.toString(collisionPoint.y) + \")\");\n score++;\n }\n //turn off the animation until reset gets pressed\n //return;\n }\n frame.removeCallbacks(frameUpdate);\n\n Point playerNewPosition = new Point(gameBoard.getPlayerX(), gameBoard.getPlayerY());\n Point targetNewPosition = new Point(gameBoard.getTargetX(), gameBoard.getTargetY());\n Point obstacle1NewPosition = new Point(gameBoard.getObstacle1X(), gameBoard.getObstacle1Y());\n Point obstacle2NewPosition = new Point(gameBoard.getObstacle2X(), gameBoard.getObstacle2Y());\n\n updatePlayerVelocity();\n playerNewPosition.y = playerNewPosition.y + playerVelocity.y;\n if (playerNewPosition.y > playerMaxY) {\n // return doge to original position if it overshoots\n playerNewPosition.y = playerMaxY;\n performJump = false;\n button.setEnabled(true);\n }\n\n targetNewPosition.x = targetNewPosition.x + targetVelocity.x;\n if (targetNewPosition.x > memeMaxX || targetNewPosition.x < 5) {\n targetVelocity.x *= -1;\n }\n targetNewPosition.y = targetNewPosition.y + targetVelocity.y;\n if (targetNewPosition.y > memeMaxY || targetNewPosition.y < 5) {\n targetVelocity.y *= -1;\n }\n\n obstacle1NewPosition.x = obstacle1NewPosition.x + obstacle1Velocity.x;\n if (obstacle1NewPosition.x > memeMaxX || obstacle1NewPosition.x < 5) {\n obstacle1Velocity.x *= -1;\n }\n obstacle1NewPosition.y = obstacle1NewPosition.y + obstacle1Velocity.y;\n if (obstacle1NewPosition.y > memeMaxY || obstacle1NewPosition.y < 5) {\n obstacle1Velocity.y *= -1;\n }\n\n obstacle2NewPosition.x = obstacle2NewPosition.x + obstacle2Velocity.x;\n if (obstacle2NewPosition.x > memeMaxX || obstacle2NewPosition.x < 5) {\n obstacle2Velocity.x *= -1;\n }\n obstacle2NewPosition.y = obstacle2NewPosition.y + obstacle2Velocity.y;\n if (obstacle2NewPosition.y > memeMaxY || obstacle2NewPosition.y < 5) {\n obstacle2Velocity.y *= -1;\n }\n\n gameBoard.setPlayerPosition(playerNewPosition.x, playerNewPosition.y);\n gameBoard.setTargetPosition(targetNewPosition.x, targetNewPosition.y);\n gameBoard.setObstacle1Position(obstacle1NewPosition.x, obstacle1NewPosition.y);\n gameBoard.setObstacle2Position(obstacle2NewPosition.x, obstacle2NewPosition.y);\n gameBoard.invalidate();\n frame.postDelayed(frameUpdate, getFrameRate());\n }", "public static void doCollision(org.bukkit.entity.Entity entity, org.bukkit.entity.Entity with) {\n\t\tCommonNMS.getNative(entity).collide(CommonNMS.getNative(with));\n\t}", "@Override\n public void checkCollision( Sprite obj )\n {\n \n }", "private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}", "public boolean collision(Objet o) {\r\n\t\treturn false;\r\n\t}", "private boolean checkCollision(int x, int y) {\r\n\t\tRectangle r = new Rectangle(); // Location Rectangle\r\n\t\tr.width = Tile.TILEWIDTH;\r\n\t\tr.height = Tile.TILEHEIGHT;\r\n\t\tr.x = x * Tile.TILEWIDTH;\r\n\t\tr.y = y * Tile.TILEHEIGHT;\r\n\t\tfor(Nonmoving n : handler.getWorld().getEntityManager().getNonmoving()) {\r\n\t\t\tif(n.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(Objects o : handler.getWorld().getEntityManager().getObjects()) {\r\n\t\t\tif(o.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public abstract void collided(Collision c);", "private void checkPlayerCollisions() {\r\n\t\tGObject left = getElementAt(player.getX() - 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tGObject right = getElementAt(player.getX() + player.getWidth() + 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tif(dragon1 != null && (left == dragon1 || right == dragon1)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t\tif(dragon2 != null && (left == dragon2 || right == dragon2)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t}", "public void collide(DynamicCollEvent dce, int collRole) {\n if (collRole == DynamicCollEvent.COLL_AFFECTED) {\n BasicGameObject invoker = dce.getInvoker();\n if (invoker instanceof Monster) { /* Do nothing */ }\n if (invoker instanceof Player) {\n Player player = (Player) invoker;\n boolean harmedPlayer = (\n dce.getInvokerCollType() == DynamicCollEvent.COLL_LEFT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_RIGHT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_TOP ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_TOPLEFT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_TOPRIGHT\n );\n boolean harmedByPlayer = (\n dce.getInvokerCollType() == DynamicCollEvent.COLL_BOTTOM ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_BOTTOMLEFT ||\n dce.getInvokerCollType() == DynamicCollEvent.COLL_BOTTOMRIGHT\n );\n\n if (harmedPlayer) {\n player.decreaseHealth(10); // This monster scores 10 hitpoints. ;)\n collLeftRight = true; // This way, we will turn around in advanceCycle.\n } else if (harmedByPlayer) {\n player.setVelocity(player.getVelX(), -20);\n this.getReferrer().getSndFX().play(SoundFX.SND_MONSTERSQUISH);\n this.decreaseHealth(100);\n referrer.getPlayer().increasePoints(5);\n } else {\n System.out.println(\"Undefined collision between Monster and Player. ERROR 30\");\n }\n }\n this.newX = dce.getAffectedNewX();\n this.newY = dce.getAffectedNewY();\n } else {\n this.newX = dce.getInvokerNewX();\n this.newY = dce.getInvokerNewY();\n }\n\n if (DEBUG) {\n if (this == this.getReferrer().getObjects()[9]) {\n System.out.println(\"DET F�RSTE MONSTERET HAR CRASHET MED PLAYER!!!\");\n }\n }\n }", "public void checkCollision(Box box){\r\n if(collidingEntity2!=null && collidingEntity2!=box){\r\n return;\r\n }\r\n FloatRect x = box.getRect ();\r\n\r\n if (rect1==null || x==null){\r\n return;\r\n }\r\n\r\n FloatRect ins = rect1.intersection (x);\r\n\r\n if(ins!=null) {\r\n this.collidingEntity2= box;\r\n collide=true;\r\n checkTopCollision (x);\r\n if(collidedTop==false) {\r\n checkRightCollision (x);\r\n checkLeftCollision (x);\r\n }\r\n } else {\r\n noCollision ();\r\n }\r\n }", "@Override\n\tpublic void move(List<TileCollision> collidedTiles) \n\t{\t\t\t \n\t\tfor (TileCollision tc : collidedTiles)\n\t\t{\n\n\t\t\tint tileType = tc.theTile.getTileType();\n\n\t\t\tisWall = false;\n\t\t\t// 11 and 12 are the only tiles that are not walls.\n\t\t\tfor (int i = 0; i < 11; i++)\n\t\t\t{\n\t\t\t\tif (tileType == i) isWall = true;\n\t\t\t}\n\n\t\t\tif (tileType == 13 && tc.collisionSide == 0)\n\t\t\t{\n\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\tsetDirection(Direction.RIGHT.getValue());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isWall)\n\t\t {\n\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\tsetDirection(randomDirection());\n\t\t\t\treturn;\n\t\t }\n\n\t\t\t// Only gets executed when pacman is in it normal state, and not in\n\t\t\t// hunter mode.\n\t\t\tif(!pacman.isHunter())\n\t\t\t{\n\t\t\t if(isPacmanToClose() && !inToCloseZone)\n\t\t\t {\n\t\t\t \tinToCloseZone = true;\n\n\t\t\t \tif (pacman.movesUp() || pacman.movesDown())\n\t\t\t \t{\n\t\t\t \t\treverseVerticalDirection();\n\t\t\t \t}\n\t\t\t \tif (pacman.movesLeft() || pacman.movesRight())\n\t\t\t \t{\n\t\t\t \t\treverseHorizontalDirection();\t\t\t \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t else \n\t\t\t\t{\n\t\t\t\t\tinToCloseZone = false;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Only gets executed when pacman eat a power up and is the hunter.\n\t\t\telse if(pacman.isHunter())\n\t\t {\n\t\t\t if (isWall)\n\t\t\t { \n\t\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\t\tif (getDirection() == Direction.UP.getValue())\n\t\t\t\t\t{\n\t\t\t\t\t\tif(collided)\n\t\t\t\t\t\t{\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tsetDirection(Direction.DOWN.getValue());\t\t\t\t\t \n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsetDirection(Direction.RIGHT.getValue());\n\t\t\t\t\t\t\tcollided = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t else if (getDirection() == Direction.RIGHT.getValue())\n\t\t\t\t\t {\n\t\t\t if(collided)\n\t\t\t {\n\t\t\t \t setDirection(Direction.DOWN.getValue());\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.UP.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t }\n\t\t\t\t\t }\n\n\t\t\t\t\t else if (getDirection() == Direction.LEFT.getValue())\n\t\t\t\t\t {\n\t\t\t\t\t\t if(collided)\n\t\t\t\t\t\t {\n\t\t\t \t setDirection(Direction.RIGHT.getValue());\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.UP.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\n\t\t\t\t\t else if (getDirection() == Direction.DOWN.getValue())\n\t\t\t\t\t {\n\t\t\t\t\t\t if(collided)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t setDirection(Direction.LEFT.getValue()); \t \n\t\t\t\t\t\t }\n\t\t\t\t\t else\n\t\t\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.RIGHT.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t\t\t } \n\t\t\t\t\t }\t\t\t\t\t\t \n\t\t\t } \n\t\t\t else\n\t\t\t {\n\t\t\t collided = false;\t\t\t\t\t \n\t\t\t }\n\t\t }\n\t }\n\t}", "@Override\r\n public boolean collision(org.dyn4j.dynamics.Body body1, BodyFixture fixture1, org.dyn4j.dynamics.Body body2, BodyFixture fixture2, Penetration penetration) {\r\n return true;\r\n }", "private void checkCollisions() {\n float x = pacman.getPos().x;\n float y = pacman.getPos().y;\n\n GameEntity e;\n for (Iterator<GameEntity> i = entities.iterator(); i.hasNext(); ) {\n e = i.next();\n // auf kollision mit spielfigur pruefen\n if (Math.sqrt((x - e.getPos().x) * (x - e.getPos().x) + (y - e.getPos().y) * (y - e.getPos().y)) < 0.5f)\n if (e.collide(this, pacman))\n i.remove();\n }\n }", "public void collisionPhsysics (Body otherBody) {\n if (this.mass <= otherBody.mass) {\n this.merged = true;\n otherBody.mass += this.mass;\n this.x = 0;\n this.y = 0;\n this.temp_x = 0;\n this.temp_y = 0;\n }\n else {\n otherBody.merged = true;\n this.mass += otherBody.mass;\n otherBody.x = 0;\n otherBody.y = 0;\n otherBody.temp_x = 0;\n otherBody.temp_y = 0;\n }\n\n // momentum transfer\n if (this.mass <= otherBody.mass) {\n otherBody.vx = (this.mass*this.vx + otherBody.mass*otherBody.vx)/(this.mass + otherBody.mass);\n otherBody.vy = (this.mass*this.vy + otherBody.mass*otherBody.vy)/(this.mass + otherBody.mass);\n }\n else {\n this.vx = (this.mass*this.vx + otherBody.mass*otherBody.vx)/(this.mass + otherBody.mass);\n this.vy = (this.mass*this.vy + otherBody.mass*otherBody.vy)/(this.mass + otherBody.mass);\n }\n\n\n }", "public abstract void collide(InteractiveObject obj);", "@Override\n\tpublic void handleCollision(ICollider otherObject) {\n\t\tSystem.out.println(\"i hit a flame :(\");\n\t}", "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 }", "void collision(float x_a,float y_a,float x_b,float y_b){\n float dy = y_a - y_b;\r\n float dx = x_a - x_b;\r\n float distance12 = dy * dy + dx * dx;\r\n\r\n if (distance12 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ((GameActivity)mActivity).mTimer.cancel();\r\n ((GameActivity)mActivity).layout.removeAllViews();\r\n new AlartMessage(mActivity);\r\n }\r\n\r\n }", "public boolean collidesWith(GameObject other) {\n me.setBounds((int) x, (int) y, sprite.getWidth(), sprite.getHeight());\n him.setBounds((int) other.x, (int) other.y, other.sprite.getWidth(), other.sprite.getHeight());\n\n return me.intersects(him);\n }", "private void handleObjectCollision() {\n \tGObject obstacle = getCollidingObject();\n \t\n \tif (obstacle == null) return;\n \tif (obstacle == message) return;\n \t\n\t\tvy = -vy;\n\t\t\n\t\tSystem.out.println(\"ball x: \" + ball.getX() + \" - \" + (ball.getX() + BALL_RADIUS * 2) );\n\t\tSystem.out.println(\"paddle x: \" + paddleXPosition + \" - \" + (paddleXPosition + PADDLE_WIDTH) );\n\t\tif (obstacle == paddle) {\n\t\t\tpaddleCollisionCount++;\n\t\t\t\n\t\t\t// if we're hitting the paddle's side, we need to also bounce horizontally\n\t\t\tif (ball.getX() >= (paddleXPosition + PADDLE_WIDTH) || \n\t\t\t\t(ball.getX() + BALL_RADIUS * 2) <= paddleXPosition ) {\n\t\t\t\tvx = -vx;\t\t\t\t\n\t\t\t}\n\t\t} else {\n \t\t// if the object isn't the paddle, it's a brick\n\t\t\tremove(obstacle);\n\t\t\tnBricksRemaining--;\n\t\t}\n\t\t\n\t\tif (paddleCollisionCount == 7) {\n\t\t\tvx *= 1.1;\n\t\t}\n }", "public void checkCollision()\r\n\t{\r\n\t\t//for Bullets against Avatar and Enemy\r\n\t\tfor(int bulletIndex = 0; bulletIndex < bullets.size(); bulletIndex++)\r\n\t\t{\r\n\t\t\tBullet b = bullets.get(bulletIndex);\r\n\t\t\tif (b instanceof AvatarBullet)\r\n\t\t\t{\r\n\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\tboolean collided = false;\r\n\t\t\t\tfor (int enemyIndex = 0; enemyIndex < enemy.size(); enemyIndex++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEnemy e = enemy.get(enemyIndex);\r\n\t\t\t\t\tif(((AvatarBullet) b).collidedWith(e))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\t\tenemy.remove(enemyIndex);\r\n\t\t\t\t\t\tenemyIndex --;\r\n\t\t\t\t\t\tcollided = true;\r\n\t\t\t\t\t\tint score = getScore()+1;\r\n\t\t\t\t\t\tsetScore(score);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (b instanceof EnemyBullet)\r\n\t\t\t{\r\n\t\t\t\tif (((EnemyBullet) b).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.remove(bulletIndex);\r\n\t\t\t\t\tbulletIndex--;\r\n\t\t\t\t\tint health = Avatar.getLives()-1;\r\n\t\t\t\t\tavatar.setLives(health);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int platformIndex = 0; platformIndex < platforms.size(); platformIndex++)\r\n\t\t{\r\n\t\t\tPlatforms p = platforms.get(platformIndex);\r\n\t\t\tif (p instanceof Platforms)\r\n\t\t\t{\r\n\t\t\t\t//boolean collided = false;\r\n\t\t\t\t//Avatar a = avatar.get(enemyIndex);\r\n\t\t\t\tif(((Platforms) p).collidedWith(avatar))\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tsetAlive(false);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void update(float dt) {\n\n\n for (GameObject g : getGameObjectList()) {\n Collider gameObjectCollider = g.getComponent(Collider.class);\n if (g.getSID() instanceof Map.Block ) {\n continue;\n }\n gameObjectCollider.reduceAvoidTime(dt);\n\n for (GameObject h : getGameObjectList()) {\n Collider gameObjectCollider2 = h.getComponent(Collider.class);\n if (g.equals(h)) {\n continue;\n }\n\n if ((gameObjectCollider.bitmask & gameObjectCollider2.layer) != 0) {\n if (gameObjectCollider2.layer == gameObjectCollider.layer){\n continue;\n }\n\n TransformComponent t = g.getComponent(TransformComponent.class);\n Vector2f pos1 = g.getComponent(Position.class).getPosition();\n FloatRect rect1 = new FloatRect(pos1.x, pos1.y, t.getSize().x, t.getSize().y);\n TransformComponent t2 = g.getComponent(TransformComponent.class);\n Vector2f pos2 = h.getComponent(Position.class).getPosition();\n FloatRect rect2 = new FloatRect(pos2.x, pos2.y, t2.getSize().x, t2.getSize().y);\n FloatRect collision = rect2.intersection(rect1);\n if (collision != null) {\n Collider mainCollider = g.getComponent(Collider.class);\n Collider collidingWith = h.getComponent(Collider.class);\n\n\n if (!(mainCollider.checkGameObject(h)||collidingWith.checkGameObject(g)))\n {\n if (mainCollider.events == true && collidingWith.events == true)\n {\n\n\n if ((g.getBitmask() & BitMasks.produceBitMask(CollisionEvent.class)) == 0)\n {\n g.addComponent(new CollisionEvent());\n\n\n }\n g.getComponent(CollisionEvent.class).getG().add(h);\n if ((h.getBitmask() & BitMasks.produceBitMask(CollisionEvent.class)) == 0) {\n h.addComponent(new CollisionEvent());\n\n }\n h.getComponent(CollisionEvent.class).getG().add(g);\n\n }\n\n\n if (mainCollider.dieOnPhysics == true) {\n EntityManager.getEntityManagerInstance().removeGameObject(g);\n }\n if (mainCollider.physics == true && collidingWith.physics == true) {\n float resolve = 0;\n float xIntersect = (rect1.left + (rect1.width * 0.5f)) - (rect2.left + (rect2.width * 0.5f));\n float yIntersect = (rect1.top + (rect1.height * 0.5f)) - (rect2.top + (rect2.height * 0.5f));\n if (Math.abs(xIntersect) > Math.abs(yIntersect)) {\n if (xIntersect > 0) {\n resolve = (rect2.left + rect2.width) - rect1.left;\n } else {\n resolve = -((rect1.left + rect1.width) - rect2.left);\n }\n g.getComponent(Position.class).addPosition(new Vector2f(resolve, 0));\n } else {\n if (yIntersect > 0) {\n resolve = (rect2.top + rect2.height) - rect1.top;\n\n } else\n {\n resolve = -((rect1.top + rect1.height) - rect2.top);\n }\n g.getComponent(Position.class).addPosition(new Vector2f(0, resolve));\n }\n }\n }\n\n\n }\n }\n }\n }\n }", "@Override\r\n\tpublic void move(MoverType mover, double currOffX, double currOffY, double currOffZ) {\r\n\t\t// FIXME: most likely incorrect\r\n\t\tif (this.noClip) {\r\n\t\t\tthis.offsetEntity(currOffX, currOffY, currOffZ);\r\n\t\t} else {\r\n\t\t\tdouble originalOffX = currOffX;\r\n\t\t\tdouble originalOffY = currOffY;\r\n\t\t\tdouble originalOffZ = currOffZ;\r\n\r\n\t\t\tif (this.isInWeb) {\r\n\t\t\t\tthis.isInWeb = false;\r\n\t\t\t\tcurrOffX *= 0.25D;\r\n\t\t\t\tcurrOffY *= 0.05000000074505806D;\r\n\t\t\t\tcurrOffZ *= 0.25D;\r\n\t\t\t\tthis.motionX = 0.0D;\r\n\t\t\t\tthis.motionY = 0.0D;\r\n\t\t\t\tthis.motionZ = 0.0D;\r\n\t\t\t}\r\n\r\n\t\t\tdouble correctedOffX = currOffX;\r\n\t\t\tdouble correctedOffY = currOffY;\r\n\t\t\tdouble correctedOffZ = currOffZ;\r\n\t\t\tCollisionParts[] parts = this.getParts();\r\n\t\t\tif (parts == null) {\r\n\t\t\t\tparts = new CollisionParts[0];\r\n\t\t\t}\r\n\r\n\t\t\tAxisAlignedBB ourBoundingBox = this.getEntityBoundingBox();\r\n\t\t\tList<AxisAlignedBB> bbsInWay = this.world\r\n\t\t\t\t\t.getCollisionBoxes(this, ourBoundingBox.addCoord(currOffX, currOffY, currOffZ));\r\n\t\t\t// Calculates the smallest possible offset in Y direction\r\n\t\t\tfor (AxisAlignedBB bb : bbsInWay) {\r\n\t\t\t\tcurrOffY = bb.calculateYOffset(ourBoundingBox, currOffY);\r\n\t\t\t}\r\n\t\t\tfor (AxisAlignedBB bb : bbsInWay) {\r\n\t\t\t\tcurrOffX = bb.calculateXOffset(ourBoundingBox, currOffX);\r\n\t\t\t}\r\n\t\t\tfor (AxisAlignedBB bb : bbsInWay) {\r\n\t\t\t\tcurrOffZ = bb.calculateZOffset(ourBoundingBox, currOffZ);\r\n\t\t\t}\r\n\t\t\tfor (CollisionParts part : parts) {\r\n\t\t\t\tAxisAlignedBB partBoundingBox = part.getEntityBoundingBox();\r\n\t\t\t\tList<AxisAlignedBB> bbsInWayPart = this.world\r\n\t\t\t\t\t\t.getCollisionBoxes(this, partBoundingBox.addCoord(currOffX, currOffY, currOffZ));\r\n\t\t\t\t// Calculates the smallest possible offset in Y direction\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInWayPart) {\r\n\t\t\t\t\tcurrOffY = bb.calculateYOffset(partBoundingBox, currOffY);\r\n\t\t\t\t}\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInWayPart) {\r\n\t\t\t\t\tcurrOffX = bb.calculateXOffset(partBoundingBox, currOffX);\r\n\t\t\t\t}\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInWayPart) {\r\n\t\t\t\t\tcurrOffZ = bb.calculateZOffset(partBoundingBox, currOffZ);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/** If we will are or will land on something */\r\n\t\t\tboolean landed = this.onGround || (correctedOffY != currOffY && correctedOffY < 0.0D);\r\n\r\n\t\t\tif (this.stepHeight > 0.0F && landed && (this.height < 0.125F)\r\n\t\t\t\t\t&& (correctedOffX != currOffX || correctedOffZ != currOffZ)) {\r\n\t\t\t\tdouble nostepOffX = currOffX;\r\n\t\t\t\tdouble nostepOffY = currOffY;\r\n\t\t\t\tdouble nostepOffZ = currOffZ;\r\n\r\n\t\t\t\tcurrOffX = correctedOffX;\r\n\t\t\t\tcurrOffY = this.stepHeight;\r\n\t\t\t\tcurrOffZ = correctedOffZ;\r\n\r\n\t\t\t\tList<AxisAlignedBB> bbsInStepup = this.world\r\n\t\t\t\t\t\t.getCollisionBoxes(this, ourBoundingBox.addCoord(correctedOffX, currOffY, correctedOffZ));\r\n\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInStepup) {\r\n\t\t\t\t\tcurrOffY = bb.calculateYOffset(ourBoundingBox, currOffY);\r\n\t\t\t\t}\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInStepup) {\r\n\t\t\t\t\tcurrOffX = bb.calculateXOffset(ourBoundingBox, currOffX);\r\n\t\t\t\t}\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInStepup) {\r\n\t\t\t\t\tcurrOffZ = bb.calculateZOffset(ourBoundingBox, currOffZ);\r\n\t\t\t\t}\r\n\t\t\t\tfor (CollisionParts part : parts) {\r\n\t\t\t\t\tAxisAlignedBB partBoundingBox = part.getEntityBoundingBox();\r\n\t\t\t\t\tList<AxisAlignedBB> bbsInStepupPart = this.world\r\n\t\t\t\t\t\t\t.getCollisionBoxes(this, partBoundingBox.addCoord(currOffX, currOffY, currOffZ));\r\n\t\t\t\t\tfor (AxisAlignedBB bb : bbsInStepupPart) {\r\n\t\t\t\t\t\tcurrOffY = bb.calculateYOffset(partBoundingBox, currOffY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfor (AxisAlignedBB bb : bbsInStepupPart) {\r\n\t\t\t\t\t\tcurrOffX = bb.calculateXOffset(partBoundingBox, currOffX);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfor (AxisAlignedBB bb : bbsInStepupPart) {\r\n\t\t\t\t\t\tcurrOffZ = bb.calculateZOffset(partBoundingBox, currOffZ);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdouble groundOffY = -this.stepHeight;\r\n\t\t\t\tfor (AxisAlignedBB bb : bbsInStepup) {\r\n\t\t\t\t\tgroundOffY = bb.calculateYOffset(ourBoundingBox.offset(currOffX, currOffY, currOffZ), groundOffY);\r\n\t\t\t\t}\r\n\t\t\t\tfor (CollisionParts part : parts) {\r\n\t\t\t\t\tAxisAlignedBB partBoundingBox = part.getEntityBoundingBox();\r\n\t\t\t\t\tList<AxisAlignedBB> bbsInStepDown = this.world\r\n\t\t\t\t\t\t\t.getCollisionBoxes(this, partBoundingBox.addCoord(currOffX, currOffY, currOffZ));\r\n\t\t\t\t\t// Calculates the smallest possible offset in Y direction\r\n\t\t\t\t\tfor (AxisAlignedBB bb : bbsInStepDown) {\r\n\t\t\t\t\t\tcurrOffY = bb.calculateYOffset(partBoundingBox, currOffY);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcurrOffY += groundOffY;\r\n\r\n\t\t\t\tif (nostepOffX * nostepOffX + nostepOffY * nostepOffY >= currOffX * currOffX + currOffZ * currOffZ) {\r\n\t\t\t\t\tcurrOffX = nostepOffX;\r\n\t\t\t\t\tcurrOffY = nostepOffY;\r\n\t\t\t\t\tcurrOffZ = nostepOffZ;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Until this point, unlike the original implementation, nothing\r\n\t\t\t// happened to the\r\n\t\t\t// entity itself, push the state\r\n\t\t\tdouble originalX = this.posX;\r\n\t\t\tdouble originalY = this.posY;\r\n\t\t\tdouble originalZ = this.posZ;\r\n\t\t\t// Handle things like fire, movesounds, etc\r\n\t\t\tsuper.move(mover, originalOffX, originalOffY, originalOffZ);\r\n\t\t\t// Pop the state\r\n\t\t\tthis.posX = originalX;\r\n\t\t\tthis.posY = originalY;\r\n\t\t\tthis.posZ = originalZ;\r\n\t\t\tsetEntityBoundingBox(ourBoundingBox);\r\n\t\t\t// Apply our offset\r\n\t\t\tthis.offsetEntity(currOffX, currOffY, currOffZ);\r\n\t\t}\r\n\t}", "private void handleCollisions() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tcheckInvaderDeath(a);\n\t\t\t\tcheckPlayerDeath(a);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (Shot s : enemyShotList) {\n\t\t\t\n\t\t\tif (s.detectDownwardCollision(player.getX(), player.getY())) {\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcollectPowerUp(armorPiercing);\n\t\tcollectPowerUp(explosive);\n\t}", "private void bulletCollisionWithObject() {\r\n\t\tif(bullet != null) {\r\n\t\t\tGObject collider = getElementAt(bullet.getX() -1 , bullet.getY() + 1);\r\n\t\t\tif (dragon1 != null && collider == dragon1) {\r\n\t\t\t\thit(dragon1);\r\n\t\t\t}\r\n\t\t\tif(dragon2 != null && collider == dragon2) {\r\n\t\t\t\thit(dragon2);\r\n\t\t\t}\r\n\t\t\tif(mehran != null && collider == mehran && bullet.getY() > mehran.getY() + mehran.getHeight() / 2.0) {\r\n\t\t\t\thit(mehran);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void moveEntity(int direction){\n int tileSize = SpriteHandler.tileSize;\n switch(direction){\n case 0:\n if((userY-tileSize) >= MapManager.offset){\n userY -= tileSize;\n }\n break;\n case 1:\n if((userX+tileSize) <= (MapManager.width_X * tileSize)){\n userX += tileSize; \n }\n break;\n case 2:\n if((userY+tileSize) <= (MapManager.height_Y * tileSize)){\n userY += tileSize; \n }\n break;\n case 3:\n if((userX-tileSize) >= MapManager.offset){\n userX -= tileSize; \n }\n break;\n }\n }", "@Override\n public boolean canMove(double x, double y) {\n double xr = this.x, yr = this.y - 32; //subtract y to get more accurate results\n //the thing is, subract to 32 (sprite size), so if we add 1 tile we get the next pixel tile with this\n //we avoid the shaking inside tiles with the help of steps\n if (direction == 0) {\n yr += sprite.getSize() - 1;\n xr += sprite.getSize() / 2;\n }\n if (direction == 1) {\n yr += sprite.getSize() / 2;\n xr += 1;\n }\n if (direction == 2) {\n xr += sprite.getSize() / 2;\n yr += 1;\n }\n if (direction == 3) {\n xr += sprite.getSize() - 1;\n yr += sprite.getSize() / 2;\n }\n int xx = Coordinates.pixelToTile(xr) + (int) x;\n int yy = Coordinates.pixelToTile(yr) + (int) y;\n Entity a = Board.getInstance().getEntity(xx, yy, this); //entity of the position we want to go\n return !a.collide(this);\n }", "public void checkCollision() {}", "@Override\r\n public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn)\r\n {\r\n TileEntity tile = worldIn.getTileEntity(pos);\r\n if (tile instanceof TileEntityTransformer && entityIn instanceof EntityPlayer)\r\n {\r\n ((TileEntityTransformer) tile).onStepped((EntityPlayer) entityIn);\r\n }\r\n super.onEntityCollidedWithBlock(worldIn, pos, state, entityIn);\r\n }", "@Override\n protected void onCollide(AbstractCollidableSprite target) {\n super.onCollide(target);\n this.getController().onCollide(target);\n\n // Hard code, not good!\n if(target instanceof Bomb){\n Vector2D oldCenterPos = getOldCenterPos();\n Vector2D curCenterPos = getCurCenterPos();\n// if(oldCenterPos.getX() <= 0 || oldCenterPos.getY() <= 0 || oldCenterPos.equals(curCenterPos)){\n// Vector2D newPos = this.getSpritePos().applyDir(this.getCurDirection(), -1);\n// this.setSpritePos(newPos);\n// CollideDetector.setDirtyFlag(true);\n// } else {\n// // Center better be stable before & after collision.\n// // Vector2D newCenterPos = oldCenterPos.advance(curCenterPos, 1);\n//\n// DIRECTIONS moveDir = Utilities.calculateDir(oldCenterPos, curCenterPos);\n// this.setSpritePos(this.getSpritePos().applyDir(moveDir, -1));\n//\n// CollideDetector.setDirtyFlag(true);\n// }\n\n double half_dist = oldCenterPos.dist(curCenterPos)/2;\n\n Vector2D targetCenterPos = target.getCurCenterPos();\n // Move the sprite away\n DIRECTIONS moveDir = Utilities.calculateDir(targetCenterPos, curCenterPos);\n Vector2D newPos = this.getSpritePos().applyDir(moveDir, half_dist > 1? half_dist:1);\n this.setSpritePos(newPos);\n CollideDetector.setDirtyFlag(true);\n }\n }", "@Override\n public void checkCollision( Sprite obj )\n {\n\n }" ]
[ "0.7020985", "0.69406503", "0.68742925", "0.68042487", "0.67974997", "0.67253286", "0.67171746", "0.67078626", "0.66995543", "0.6684196", "0.66383195", "0.65878993", "0.65140784", "0.6484398", "0.645947", "0.64150816", "0.6414879", "0.63880914", "0.63785154", "0.6375487", "0.63690233", "0.6361573", "0.63251704", "0.6323369", "0.63229895", "0.62769663", "0.6256616", "0.6242127", "0.6239025", "0.6232798", "0.6232161", "0.62297106", "0.6228102", "0.62082565", "0.6195371", "0.61796653", "0.6156414", "0.61303425", "0.61168194", "0.6111604", "0.61018395", "0.60957867", "0.60915583", "0.6087329", "0.60745883", "0.6066912", "0.6052195", "0.60402256", "0.60231525", "0.60174745", "0.6016421", "0.60156393", "0.5996343", "0.59858614", "0.5985512", "0.5977294", "0.5971637", "0.5970311", "0.5965142", "0.5951", "0.5946371", "0.59457505", "0.59414583", "0.5940742", "0.5927712", "0.5921478", "0.592071", "0.5915193", "0.5914516", "0.5901075", "0.59010327", "0.58941233", "0.5889135", "0.5885794", "0.58825755", "0.58807516", "0.5880267", "0.5871072", "0.58600813", "0.58592004", "0.58553386", "0.58541447", "0.58487487", "0.5848173", "0.5848165", "0.58410686", "0.5840385", "0.58402073", "0.5839424", "0.5838754", "0.5830148", "0.5827546", "0.5825844", "0.58256626", "0.5824731", "0.5819612", "0.58182997", "0.5814548", "0.58109325", "0.5803082" ]
0.7087406
0
Creates an Uri for the MovieDb call
private static URL buildFinalMovieDbURL(String urlString){ Uri movieDbBuiltUri = Uri.parse(urlString).buildUpon() .appendQueryParameter(APIKEY_PARAM, BuildConfig.MOVIE_DB_API_KEY) .build(); //Now creates an URL based on the created Uri URL finalMovieDbURL = null; try { finalMovieDbURL = new URL(movieDbBuiltUri.toString()); } catch (MalformedURLException e) { Log.e(ERROR_TAG, e.getMessage()); } return finalMovieDbURL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static URL buildMovieDbUrl(String apiMethod)\n {\n Uri builtUri = Uri.parse(API_BASE).buildUpon().appendEncodedPath(apiMethod)\n .appendQueryParameter(\"api_key\", API_KEY).build();\n URL url = null;\n try {\n url = new URL(builtUri.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n return url;\n }", "private URL createUrl(String movieId) {\n URL url = null;\n try {\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"https\")\n .authority(\"api.themoviedb.org\")\n .appendPath(\"3\")\n .appendPath(\"movie\")\n .appendPath(movieId)\n .appendQueryParameter(\"api_key\", getString(R.string.moviedb_api_key));\n url = new URL(builder.build().toString());\n } catch (Exception exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "public static Uri buildMovieUri(long id){\n return ContentUris.withAppendedId(CONTENT_URI, id);\n }", "public void createURL(){\n urlDB = ( PREFACE + server + \"/\" + database + options);\n }", "String getUri();", "public static URL buildMovieDbQueryURL(@MovieDisplayMode int displayMode) {\n String chosenURLBasedOnSortBy = \"\";\n\n switch (displayMode) {\n case MovieDisplayMode.MOST_POPULAR:\n chosenURLBasedOnSortBy = MOVIEDB_API_MOSTPOPULAR_URL;\n break;\n case MovieDisplayMode.HIGHEST_RATED:\n chosenURLBasedOnSortBy = MOVIEDB_API_TOPRATED_URL;\n break;\n default:\n throw new IllegalArgumentException(String.format(\"No URL to generate for displayMode '%s'\", displayMode));\n }\n\n return buildFinalMovieDbURL(chosenURLBasedOnSortBy);\n }", "URI createURI();", "public String getUri();", "String getUri( );", "URI getUri();", "java.lang.String getUri();", "java.lang.String getUri();", "Uri mo1686a();", "@Nullable\n @Override\n public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable String selection, @Nullable String[] selectionArgs, @Nullable String sortOrder) {\n\n Cursor cursor;\n\n /*\n * Here's the switch statement that, given a URI, will determine what kind of request is\n * being made and query the database accordingly.\n */\n switch (sUriMatcher.match(uri)) {\n\n /*\n * When sUriMatcher's match method is called with a URI that looks something like this\n *\n * content://za.co.samtakie.djoga.popmovies/movielist/23\n *\n * sUriMatcher's match method will return the code that indicates to us that we need\n * to return the movie data.\n * In this case, we want to return a cursor that contains one row of movie data\n */\n\n\n\n\n case MOVIES_WITH_ID: {\n\n String[] selectionArguments = new String[]{uri.getLastPathSegment()};\n\n cursor = mMovieListDbHelper.getReadableDatabase().query(\n /* Table we are going to query */\n MovieListContract.MovieListEntry.TABLE_NAME,\n /*\n * A projection designates the columns we want returned in our Cursor.\n * Passing null will return all columns of data within the Cursor.\n * However, if you don't need all the data from the table, it's best\n * practice to limit the columns returned in the Cursor with a projection.\n */\n projection,\n /*\n * The URI that matches MOVIE_WITH_ID\n */\n MovieListContract.MovieListEntry.COLUMN_MOVIEID + \" = ? \",\n selectionArguments,\n null,\n null,\n sortOrder);\n\n break;\n }\n\n case FAV_WITH_ID: {\n\n String[] selectionArguments = new String[]{uri.getLastPathSegment()};\n\n cursor = mMovieListDbHelper.getReadableDatabase().query(\n /* Table we are going to query */\n MovieListContract.MovieListEntry.TABLE_NAME_FAV,\n /*\n * A projection designates the columns we want returned in our Cursor.\n * Passing null will return all columns of data within the Cursor.\n * However, if you don't need all the data from the table, it's best\n * practice to limit the columns returned in the Cursor with a projection.\n */\n projection,\n /*\n * The URI that matches MOVIE_WITH_ID\n */\n MovieListContract.MovieListEntry.COLUMN_MOVIEID + \" = ? \",\n selectionArguments,\n null,\n null,\n sortOrder);\n\n break;\n }\n\n /*\n * When sUriMatcher's match method is called with a URI that looks EXACTLY like this\n *\n * content://za.co.samtakie.djoga.popmovies/movielist/\n *\n * sUriMatcher's match method will return the code that indicates to us that we need\n * to return all of the movie in our movielist table.\n *\n * In this case, we want to return a cursor that contains every row of movie data\n * in our movielist table.\n */\n case MOVIES: {\n cursor = mMovieListDbHelper.getReadableDatabase().query(\n MovieListContract.MovieListEntry.TABLE_NAME,\n projection,\n selection,\n selectionArgs,\n null,\n null,\n sortOrder);\n\n break;\n }\n\n /*\n * When sUriMatcher's match method is called with a URI that looks EXACTLY like this\n *\n * content://za.co.samtakie.djoga.popmovies/favorite/\n *\n * sUriMatcher's match method will return the code that indicates to us that we need\n * to return all of the movies in our favorite table.\n *\n * In this case, we want to return a cursor that contains every row of favorite movie data\n * in our movielist table.\n */\n case FAVORITES: {\n cursor = mMovieListDbHelper.getReadableDatabase().query(\n MovieListContract.MovieListEntry.TABLE_NAME_FAV,\n projection,\n selection,\n selectionArgs,\n null,\n null,\n sortOrder);\n\n break;\n }\n\n default:\n throw new UnsupportedOperationException(\"Unknown uri: \" + uri);\n }\n\n cursor.setNotificationUri(getContext().getContentResolver(), uri);\n return cursor;\n }", "public abstract String makeReplayURI(final String datespec, final String url);", "abstract String getUri();", "public static Uri buildMovieWithId(long id)\n {\n return ContentUris.withAppendedId(CONTENT_URI, id);\n }", "@Override\n public URI createUri(String url) {\n try {\n this.uri = new URI(url);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n return uri;\n }", "public static Uri buildFavouriteMovieUri(long id){\r\n return ContentUris.withAppendedId(CONTENT_URI, id);\r\n }", "public static Uri createUri(Class<? extends Model> type, Long id) {\n final StringBuilder uri = new StringBuilder();\n uri.append(\"content://\");\n uri.append(sAuthority);\n uri.append(\"/\");\n uri.append(Cache.getTableName(type).toLowerCase());\n\n if (id != null) {\n uri.append(\"/\");\n uri.append(id.toString());\n }\n\n return Uri.parse(uri.toString());\n }", "public static URL buildUrl(int id) {\n if (id == R.id.sort_by_popular) {\n SORT_BY = \"popular\";\n }\n if (id == R.id.sort_by_top_rated) {\n SORT_BY = \"top_rated\";\n }\n\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"http\")\n .authority(\"api.themoviedb.org\")\n .appendPath(\"3\")\n .appendPath(\"movie\")\n .appendPath(SORT_BY)\n .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n .build();\n\n// Uri builtUri = new Uri.Builder().scheme(\"http\")\n// .authority(\"api.themoviedb.org\")\n// .appendPath(\"3\")\n// .appendPath(SORT_BY)\n// .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n// .build();\n//\n// Uri.parse(MOVIE_DB_BASE_URL+SORT_BY).buildUpon()\n// .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n// .build();\n Log.d(\"BUILDURL\", builder.toString());\n URL url = null;\n try {\n url = new URL(builder.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n return url;\n }", "public String makeReplayURI(final SearchResult result) {\n \t\treturn makeReplayURI(searchResultToDateStr(result),\n \t\t\t\tsearchResultToAbsoluteUrl(result));\n \t}", "@Nullable\n @Override\n public Uri insert(@NonNull Uri uri, @Nullable ContentValues values) {\n final SQLiteDatabase db = mMovieListDbHelper.getWritableDatabase();\n\n // Write URI matching code to identify the match for the movies directory\n int match = sUriMatcher.match(uri);\n\n // Insert new values into the database\n // Set the value for the returnedUri and write the default case for the unknown URI's\n Uri returnUri;\n\n switch (match){\n case MOVIES:\n // Inserting values into movielist table\n long id = db.insert(MovieListContract.MovieListEntry.TABLE_NAME, null, values);\n if(id > 0){\n // success\n returnUri = ContentUris.withAppendedId(MovieListContract.MovieListEntry.CONTENT_URI, id);\n }else {\n throw new android.database.SQLException(\"Failed to insert row into \" + uri);\n }\n\n break;\n\n case FAVORITES:\n // Inserting values into movielist table\n\n try{\n db.insertOrThrow(MovieListContract.MovieListEntry.TABLE_NAME_FAV, null, values);\n String idMovie = values.getAsString(\"movieid\");\n Log.d(TAG, idMovie);\n returnUri = null;\n\n }catch (android.database.sqlite.SQLiteConstraintException e) {\n String idMovie = values.getAsString(\"movieid\");\n Log.d(TAG, idMovie);\n Log.e(TAG, \"SQLiteConstraintException:\" + e.getMessage());\n returnUri = null;\n }\n catch (android.database.sqlite.SQLiteException e) {\n Log.e(TAG, \"SQLiteException:\" + e.getMessage());\n returnUri = null;\n }\n catch (Exception e) {\n Log.e(TAG, \"Exception:\" + e.getMessage());\n returnUri = null;\n }\n\n break;\n\n // Default case throws an UnsupportedOperationException\n default:\n throw new UnsupportedOperationException(\"Unknown uri: \" + uri);\n }\n\n // Notify the resolver if the uri has been changed\n //getContext().getContentResolver().notifyChange(uri, null);\n\n return returnUri;\n }", "public static URL buildPopularMoviesUrl()\n {\n return buildMovieDbUrl(\"movie/popular\");\n }", "private static Uri buildFavoritesUri() {\n Uri.Builder builder = Phone.CONTENT_URI.buildUpon();\n builder.appendQueryParameter(ContactsContract.Contacts.EXTRA_ADDRESS_BOOK_INDEX, \"true\");\n builder.appendQueryParameter(ContactsContract.REMOVE_DUPLICATE_ENTRIES, \"true\");\n return builder.build();\n }", "public static URL buildUrl(String sortOrder) {\r\n\r\n if (sortOrder.equals(\"HighestRated\")) {\r\n mMovieBaseUrl = MOVIEDB_URL + MOVIE_LOOKUP_TOP_RATED;\r\n } else {\r\n mMovieBaseUrl = MOVIEDB_URL + MOVIE_LOOKUP_POPLAR;\r\n }\r\n Uri builtUri = Uri.parse(mMovieBaseUrl).buildUpon()\r\n .appendQueryParameter(API_PARAM, API_KEY)\r\n .build();\r\n URL url = null;\r\n try {\r\n url = new URL(builtUri.toString());\r\n } catch (MalformedURLException e) {\r\n e.printStackTrace();\r\n }\r\n Log.v(TAG, \"Built URI \" + url);\r\n\r\n return url;\r\n }", "public static Uri createImageUri() {\n \t\tUri imageFileUri;\n \t\tString folder = Environment.getExternalStorageDirectory()\n \t\t\t\t.getAbsolutePath() + \"/tmp\";\n \t\tFile folderF = new File(folder);\n \t\tif (!folderF.exists()) {\n \t\t\tfolderF.mkdir();\n \t\t}\n \n \t\tString imageFilePath = folder + \"/\"\n \t\t\t\t+ String.valueOf(System.currentTimeMillis()) + \"jpg\";\n \t\tFile imageFile = new File(imageFilePath);\n \t\timageFileUri = Uri.fromFile(imageFile);\n \n \t\treturn imageFileUri;\n \t}", "URI getMediaURI();", "private Uri getOutputMediaFileUri(int mediaType) {\n //parvo triabva da se proveri dali ima external storage\n\n if (isExternalStorageAvailable()) {\n\n //sled tova vrashtame directoriata za pictures ili ia sazdavame\n //1.Get external storage directory\n String appName = SendMessage.this.getString(R.string.app_name);\n String environmentDirectory; //\n //ako snimame picture zapismave v papkata za kartiniki, ako ne v papkata za Movies\n\n if(mediaType == MEDIA_TYPE_IMAGE) {\n environmentDirectory = Environment.DIRECTORY_PICTURES;\n } else {\n environmentDirectory = Environment.DIRECTORY_MOVIES;\n }\n File mediaStorageDirectory = new File(\n Environment.getExternalStoragePublicDirectory(environmentDirectory),\n appName);\n\n //2.Create subdirectory if it does not exist\n if (! mediaStorageDirectory.exists()) {\n if (!mediaStorageDirectory.mkdirs()) {\n Log.e(TAG, \"failed to create directory\");\n return null;\n }\n }\n\n //3.Create file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n File mediaFile;\n if (mediaType == MEDIA_TYPE_IMAGE) {\n mediaFile = new File(mediaStorageDirectory.getPath() + File.separator +\n \"IMG_\" + timeStamp + \".jpg\");\n } else if (mediaType == MEDIA_TYPE_VIDEO) {\n mediaFile = new File(mediaStorageDirectory.getPath() + File.separator +\n \"MOV_\" + timeStamp + \".mp4\");\n } else {\n return null;\n }\n //4.Return the file's URI\n Log.d(TAG, \"File path: \" + Uri.fromFile(mediaFile));\n return Uri.fromFile(mediaFile);\n\n } else //ako niama external storage\n Log.d(\"Vic\",\"no external strogage, mediaUri si null\");\n return null;\n\n }", "public ArrayList<MovieUrl> query(){\n ArrayList<MovieUrl> arrayList = new ArrayList<MovieUrl>();\n Cursor cursor = database.query(DATABASE_TABLE, null, null, null, null, null, null);\n cursor.moveToFirst();\n MovieUrl movieUrl;\n if (cursor.getCount() > 0){\n do {\n movieUrl = new MovieUrl();\n movieUrl.setId(cursor.getInt(cursor.getColumnIndexOrThrow(_ID)));\n movieUrl.setTitleMovie(cursor.getString(cursor.getColumnIndexOrThrow(DbMediaContract.VideoColumns.TITLE_VIDEO)));\n movieUrl.setUrlMovie(cursor.getString(cursor.getColumnIndexOrThrow(DbMediaContract.VideoColumns.URL_VIDEO)));\n\n arrayList.add(movieUrl);\n cursor.moveToNext();\n } while (!cursor.isAfterLast());\n }\n cursor.close();\n return arrayList;\n }", "private Uri insertMovie(Uri uri, ContentValues values) {\n Integer movieId = values.getAsInteger(MovieContract.MovieEntry.COLUMN_MOVIE_ID);\n if (movieId == null) {\n throw new IllegalArgumentException(\"MovieProvider requires an id\");\n }\n // Get writable database\n SQLiteDatabase database = mDbHelper.getWritableDatabase();\n\n // Insert the new movie with the given values\n long id = database.insert(MovieContract.MovieEntry.TABLE_NAME, null, values);\n // If the ID is -1, then the insertion failed. Log an error and return null.\n if (id == -1) {\n Log.e(LOG_TAG, \"Failed to insert row for \" + uri);\n return null;\n }\n\n // Return the new URI with the ID (of the newly inserted row) appended at the end\n return ContentUris.withAppendedId(uri, id);\n }", "public static Uri buildUri(long id) {\n Uri uri = ContentUris.withAppendedId(CONTENT_URI, id);\n\n return uri;\n }", "public static Uri buildUri(long id) {\n Uri uri = ContentUris.withAppendedId(CONTENT_URI, id);\n\n return uri;\n }", "public static Uri buildUri(long id) {\n Uri uri = ContentUris.withAppendedId(CONTENT_URI, id);\n\n return uri;\n }", "public static URL buildTopRatedMoviesUrl()\n {\n return buildMovieDbUrl(\"movie/top_rated\");\n }", "private static Uri buildMovieImageURI(String imagePath, boolean backdrop){\n // Select size based on the image <- POSTER by default as it's much more frequent\n String size = POSTER_SIZE;\n if(backdrop)\n size = BACKDROP_SIZE;\n\n return Uri.parse(BASE_IMAGE_URL).buildUpon()\n .appendPath(size)\n .appendPath(imagePath.substring(1))\n .build();\n }", "Call createVideoCall(String uri)\n throws OperationFailedException, ParseException;", "public abstract String getResUri();", "@Override\n public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,\n String sortOrder) {\n // Get readable database\n SQLiteDatabase database = mDbHelper.getReadableDatabase();\n Cursor cursor;\n\n // Check if the URI matcher can match the URI to a specific code\n int match = sUriMatcher.match(uri);\n switch (match) {\n\n case FAVORITE_MOVIES:\n // For the FAVORITE_MOVIES code, query the favoriteMovies table directly with the\n // given projection, selection, selection arguments, and sort order. The cursor\n // could contain multiple rows of the movies table.\n cursor = database.query(MovieContract.MovieEntry.TABLE_NAME, projection, selection, selectionArgs, null, null, sortOrder);\n break;\n\n case MOVIE_ID:\n\n // For the MOVIE_ID code, select movie from the given uri's database id\n selection = MovieContract.MovieEntry._ID + \"=?\";\n selectionArgs = new String[] { String.valueOf(ContentUris.parseId(uri)) };\n\n // Query table with the selection arguments and set the cursor object to\n // the cursor object it returns.\n cursor = database.query(MovieContract.MovieEntry.TABLE_NAME, projection, selection, selectionArgs,\n null, null, sortOrder);\n break;\n default:\n throw new IllegalArgumentException(\"Cannot query unknown URI \" + uri);\n }\n return cursor;\n }", "@Override\r\n\tpublic String getUri() {\n\t\treturn uri;\r\n\t}", "Uri getRecordingUri(Uri channelUri);", "private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}", "public String getUriString() {\n return \"mina:\" + getProtocol() + \":\" + getHost() + \":\" + getPort();\n }", "public String getUri()\r\n {\r\n return uri;\r\n }", "String getURI();", "String getURI();", "String getURI();", "public String getUri() {\n return uri;\n }", "URI uri();", "public URI buildUri(String name) {\n return URI.create(String.format(\"%s/%s\",\n config.getSftpListingDirectoryPath(),\n name));\n }", "public void uriParse() {\n uri = Uri.parse(getUrlVideo());\n }", "@Override\r\n public URI getBaseUri() {\n try{\r\n return new URI(\"http://localhost:8080/app/jpa-rs/\");\r\n } catch (URISyntaxException e){\r\n return null;\r\n }\r\n }", "@Override\n public Cursor query(Uri url, String[] projectionIn, String selection, \n String[] selectionArgs, String sort) {\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n SQLiteDatabase db = getDatabase(getContext()); //mOpenHelper.getReadableDatabase();\n // Modifyed by amt_chenjing for switchui-2192 20120715 begin\n\tif(db == null) {\n\t\tLog.v(TAG, \"open database: Failed\");\n\t\treturn null;\n\t}\n\t// Modifyed by amt_chenjing for switchui-2192 20120715 end\n int match = graphyUri.match(url);\n Cursor cur = null;\n switch (match) {\n case ALL_APPS:\n qb.setTables(Apps.TABLE_NAME);\n cur = qb.query(db, projectionIn, selection, selectionArgs, null, null, sort);\n break;\n case ONE_APP:\n qb.setTables(Apps.TABLE_NAME);\n qb.appendWhere(\"_id=\");\n qb.appendWhere(url.getPathSegments().get(1));\n cur = qb.query(db, projectionIn, selection, selectionArgs, null, null, sort);\n break;\n case ALL_RANKS:\n qb.setTables(Ranks.TABLE_NAME);\n cur = qb.query(db, projectionIn, selection, selectionArgs, null, null, sort);\n break;\n case ONE_RANK:\n qb.setTables(Ranks.TABLE_NAME);\n qb.appendWhere(\"_id=\");\n qb.appendWhere(url.getPathSegments().get(1));\n cur = qb.query(db, projectionIn, selection, selectionArgs, null, null, sort);\n break;\n case ALL_MANUALS:\n qb.setTables(ManualList.TABLE_NAME);\n cur = qb.query(db, projectionIn, selection, selectionArgs, null, null, sort);\n break;\n case ONE_MANUAL:\n qb.setTables(ManualList.TABLE_NAME);\n qb.appendWhere(\"_id=\");\n qb.appendWhere(url.getPathSegments().get(1));\n cur = qb.query(db, projectionIn, selection, selectionArgs, null, null, sort);\n break;\n case EXCUTESQL:\n cur = db.rawQuery(selection, null);\n break;\n default:\n throw new IllegalArgumentException(\"Unknown URi \" + url);\n }\n \n if (cur == null) {\n Log.v(TAG, \"query: failed\");\n } \t\t\n return cur;\n }", "public String getUri() {\n\t\treturn Uri;\n\t}", "private String composeUri(String mode, String botName, String kind,\n String fileName) throws URISyntaxException {\n String uri = \"https://\" + host;\n uri += sep(mode);\n uri += sep(appId);\n uri += sep(botName);\n uri += sep(kind);\n uri += sep(fileName);\n return uri;\n }", "public String getUri() {\n return uri;\n }", "private Uri computeUri(Context param1) {\n }", "private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}", "@Override\r\n public String getURI() {\r\n if (uriString == null) {\r\n uriString = createURI();\r\n }\r\n return uriString;\r\n }", "public Uri getImageFileUri()\n {\n imagePath = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES), \"Tuxuri\");\n Log.d(tag, \"Find \" + imagePath.getAbsolutePath());\n\n\n if (! imagePath.exists())\n {\n if (! imagePath.mkdirs())\n {\n Log.d(\"CameraTestIntent\", \"failed to create directory\");\n return null;\n }else{\n Log.d(tag,\"create new Tux folder\");\n }\n }\n\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n File image = new File(imagePath,\"TUX_\"+ timeStamp + \".jpg\");\n file = image;\n name = file.getName();\n path = imagePath;\n\n\n if(!image.exists())\n {\n try {\n image.createNewFile();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n return Uri.fromFile(image);\n }", "private URI lookupURI(URI imdbURI) throws IOException,\n URISyntaxException {\n // lookup uri if not yet set\n String imdbString = IMDBLink.getMovieURIString(target\n .getMovieTitle(), target.getYear());\n if (imdbString != null) {\n imdbURI = new URI(imdbString);\n target.setIMDBMovieURI(imdbURI);\n }\n return imdbURI;\n }", "public static URL buildUrl() {\n Uri builtUri = Uri.parse(CONTENT_JSON_URL).buildUpon()\n .build();\n\n URL url = null;\n try {\n url = new URL(builtUri.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n return url;\n }", "private URI getUri(final MMIContext context, final PrepareRequest request)\n throws URISyntaxException, MMIMessageException {\n final ContentURLType contentUrlType = request.getContentURL();\n if (contentUrlType != null) {\n final String href = contentUrlType.getHref();\n if (href != null) {\n return new URI(href);\n }\n }\n final AnyComplexType content = request.getContent();\n if (content != null) {\n return createTemporaryVoiceXmlDocumentUri(context, content);\n }\n return context.getContentURL();\n }", "RaptureURI getBaseURI();", "public VideoUrlHelper open() throws SQLException {\n dbMediaHelper = new DbMediaHelper(context);\n database = dbMediaHelper.getWritableDatabase();\n return this;\n }", "@Test\r\n public void testCreateImageUrl() throws MovieDbException {\r\n LOG.info(\"createImageUrl\");\r\n MovieDb movie = tmdb.getMovieInfo(ID_MOVIE_BLADE_RUNNER, \"\");\r\n String result = tmdb.createImageUrl(movie.getPosterPath(), \"original\").toString();\r\n assertTrue(\"Error compiling image URL\", !result.isEmpty());\r\n }", "@Override\n public URI toUri() {\n return null;\n }", "String getT_modelUri();", "public URI getUri()\n {\n return uri;\n }", "public static URL buildMovieListUrl(String sortParam) {\n Uri builtUri = Uri.parse(MOVIE_DB_BASE_URL).buildUpon()\n .appendPath(sortParam)\n .appendQueryParameter(API_KEY_PARAM, API_KEY)\n .build();\n\n return getUrlFromUri(builtUri);\n }", "private String getUriForAdd(UriInfo uriInfo, OrderRepresentation ordRep) {\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t.path(\"order\")\r\n\t\t\t\t.build()\r\n\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t}", "private Uri getOutputMediaFileUri(int mediaType) {\n\t\t\tFile mediaStorageDir = null;\n\t\t\tif(isExternalStorageAvailable()) {\n\t\t\t\tmediaStorageDir = new File(Environment.getExternalStoragePublicDirectory(\n\t\t\t Environment.DIRECTORY_PICTURES), \"SChat\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmediaStorageDir = new File(Environment.DIRECTORY_DCIM);\n\t\t\t\t//Toast.makeText(MainActivity.this, mediaStorageDir.getParent()+\"\", Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t\t if (! mediaStorageDir.exists()){\n\t\t\t if (! mediaStorageDir.mkdirs()){\n\t\t\t Log.d(\"MyCameraApp\", \"failed to create directory\");\n\t\t\t return null;\n\t\t\t }\n\t\t\t }\n\t\t\t\n\t\t\t String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n\t\t\t File mediaFile;\n\t\t\t if (mediaType == MEDIA_TYPE_IMAGE){\n\t\t\t mediaFile = new File(mediaStorageDir.getPath() + File.separator +\n\t\t\t \"IMG_\"+ timeStamp + \".jpg\");\n\t\t\t Log.d(\"MyCameraApp\", mediaFile.toString());\n\t\t\t } else if(mediaType == MEDIA_TYPE_VIDEO) {\n\t\t\t mediaFile = new File(mediaStorageDir.getPath() + File.separator +\n\t\t\t \"VID_\"+ timeStamp + \".mp4\");\n\t\t\t } else {\n\t\t\t return null;\n\t\t\t }\n\t\t\t return Uri.fromFile(mediaFile);\n\t\t}", "Cursor mo9429a(Uri uri);", "private URI getUri(final MMIContext context, final StartRequest request)\n throws URISyntaxException, MMIMessageException {\n final ContentURLType contentUrlType = request.getContentURL();\n if (contentUrlType != null) {\n final String href = contentUrlType.getHref();\n if (href != null && !href.isEmpty()) {\n return new URI(href);\n }\n }\n final AnyComplexType content = request.getContent();\n if (content != null) {\n return createTemporaryVoiceXmlDocumentUri(context, content);\n }\n return context.getContentURL();\n }", "private static String buildOsrsExchangeUrl(int itemId)\n\t{\n\t\tString url = new HttpUrl.Builder()\n\t\t\t.scheme(\"http\")\n\t\t\t.host(\"services.runescape.com\")\n\t\t\t.addPathSegment(\"m=itemdb_oldschool\")\n\t\t\t.addPathSegment(\"Runescape\")\n\t\t\t.addPathSegment(\"viewitem\")\n\t\t\t.addQueryParameter(\"obj\", String.valueOf(itemId))\n\t\t\t.build()\n\t\t\t.toString();\n\n\t\tlog.info(\"Opening OSRS Exchange: \" + url);\n\t\treturn url;\n\t}", "public java.lang.String getUri() {\n return uri;\n }", "public static Uri buildTrailerWithId(long movieId)\n {\n return ContentUris.withAppendedId(CONTENT_URI, movieId);\n }", "FullUriTemplateString baseUri();", "public String getUri() {\r\n\t\treturn uri;\r\n\t}", "@Nullable\n @Override\n public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable String selection,\n @Nullable String[] selectionArgs, @Nullable String sortOrder) {\n final SQLiteDatabase db = movdbh.getReadableDatabase();\n int match = sUriMatcher.match(uri);\n Cursor cursor;\n switch (match) {\n case MOVIE:\n cursor = db.query(MovieContract.RowEntry.TABLE_NAME, projection, selection,\n selectionArgs, null, null, sortOrder);\n break;\n case MOVIE_ID:\n cursor = db.query(MovieContract.RowEntry.TABLE_NAME,projection,selection,\n selectionArgs, null, null, null);\n break;\n default:\n throw new UnsupportedOperationException(\"Unknow uri: \" + uri);\n }\n cursor.setNotificationUri(getContext().getContentResolver(), uri);\n return cursor;\n }", "WebURL createURL()\n {\n String url = getDir().getURL().getString() + \"!/\" + _cmt._rev.getId().getName();\n return WebURL.getURL(url);\n }", "public Uri buildTrailerUri(String size)\n {\n final String BASE_URL = \"http://image.tmdb.org/t/p/\";\n\n Uri builtUri = Uri.parse(BASE_URL).buildUpon()\n .appendPath(size)\n .appendEncodedPath(\"\")\n .build();\n\n return builtUri;\n }", "public static String buildBestPodcastUrl(){\n Uri builtURI = Uri.parse(LISTEN_NOTE_BASE_URL).buildUpon()\n .appendPath(BEST_PODCAST)\n .build();\n\n return builtURI.toString();\n }", "void setBaseUri(String baseUri);", "@Nullable\n @Override\n public Uri insert(@NonNull Uri uri, @Nullable ContentValues values) {\n final SQLiteDatabase db = movdbh.getWritableDatabase();\n int match = sUriMatcher.match(uri);\n Uri returnUri;\n switch (match) {\n case MOVIE:\n long regId = db.insert(MovieContract.RowEntry.TABLE_NAME, null, values);\n if( regId > 0) {\n returnUri =ContentUris.withAppendedId(MovieContract.RowEntry.CONTENT_URI,regId);\n } else {\n throw new android.database.SQLException(\"Failed to insert row into \" + uri);\n }\n break;\n default:\n throw new UnsupportedOperationException(\"Unknow uri: \" + uri);\n }\n getContext().getContentResolver().notifyChange(uri, null);\n return returnUri;\n }", "private Uri getMedia(String mediaName) {\n if (URLUtil.isValidUrl(mediaName)) {\n // Media name is an external URL.\n return Uri.parse(mediaName);\n } else {\n\n // you can also put a video file in raw package and get file from there as shown below\n\n return Uri.parse(\"android.resource://\" + getPackageName() +\n \"/raw/\" + mediaName);\n\n\n }\n }", "private String buildLink(String posterPath) {\n return \"http://image.tmdb.org/t/p/w92\" + posterPath;\n }", "public static Uri m39030a(int i) {\n return new Builder().scheme(\"res\").path(String.valueOf(i)).build();\n }", "private static Uri getOutputMediaFileUri(){\n return Uri.fromFile(getOutputMediaFile());\n }", "private Uri getOutputMediaFileUri(){\n\t\treturn Uri.fromFile( getOutputMediaFile() );\n\t}", "@Override\r\n public String getFriendlyURI() {\r\n return createURI(false, false);\r\n }", "private static URIBuilder createURIBuilder(String path) {\n\t\tURIBuilder builder = new URIBuilder();\n\t\tif(path.contains(\"?\")) {\n\t\t\tString uri = path.substring(0, path.indexOf(\"?\"));\n\t\t\tString queryParamName = path.substring(path.indexOf(\"?\") + 1, path.indexOf(\"=\"));\n\t\t\tString queryParamValue = path.substring(path.indexOf(\"=\") + 1);\n\t\t\tbuilder.setScheme(\"http\").setHost(HOST).setPath(uri).setParameter(queryParamName, queryParamValue);\n\t\t}\n\t\telse {\n\t\t\tbuilder.setScheme(\"http\").setHost(HOST).setPath(path);\n\t\t}\n\t\treturn builder;\n\t}", "public String generateUrl(String host, String port, String dbName) {\n\t\tString url = \"jdbc:postgresql:\";\n\t\tif (!host.isEmpty()) {\n\t\t\turl += \"//\" + host;\n\t\t\tif (!port.isEmpty())\n\t\t\t\turl += \":\" + port + \"/\";\n\t\t\telse\n\t\t\t\turl += \"/\";\n\t\t}\n\t\turl += dbName;\n\t\treturn url;\n\t}", "private URI createdLocation(int staffNo) {\n final UriBuilder locBuilder = this.uriInfo.getRequestUriBuilder();\n locBuilder.path(\"{staffNo}\");\n return locBuilder.build(staffNo);\n }", "public String getUri() {\n\t\treturn uri;\n\t}", "public URI getUri(String iden) {\r\n\t\tURI rtn = null;\r\n\t\tString url = null;\r\n\t\tStringBuilder strRtn = new StringBuilder(uriBuilder);\r\n\t\tif(isUri(iden)) {\r\n\t\t\tSystem.out.println(\"isUri\");\r\n\t\t\treturn valueFactory.createURI(iden);\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\turl = URLEncoder.encode(iden,\"utf-8\");\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tstrRtn.append(url);\r\n\t\t\trtn = valueFactory.createURI(strRtn.toString());\r\n\t\t\treturn rtn;\r\n\t\t}\r\n\t}", "@Override\r\n public Uri insert(Uri uri, ContentValues initValues) {\n return null;\r\n }", "public Uri insert(Uri uri, ContentValues initialValues) {\n\t\tif (sUriMatcher.match(uri) != INCOMING_MOVIE_COLLECTION_URI_INDICATOR\r\n\t\t\t\t&& sUriMatcher.match(uri) != INCOMING_DAY_COLLECTION_URI_INDICATOR\r\n\t\t\t\t&& sUriMatcher.match(uri) != INCOMING_ACTOR_COLLECTION_URI_INDICATOR \r\n\t\t\t\t&& sUriMatcher.match(uri) != INCOMING_REF_ACTOR_SINGLE_URI_INDICATOR \r\n\t\t\t\t&& sUriMatcher.match(uri) != INCOMING_REF_ACTOR_COLLECTION_URI_INDICATOR \r\n\t\t\t\t&& sUriMatcher.match(uri) != INCOMING_DIRECTOR_COLLECTION_URI_INDICATOR) {\r\n\t\t\tthrow new IllegalArgumentException(\"Nuno Database provider exception: Unknown URI \" + uri);\r\n\t\t}\r\n\r\n\t\tContentValues values;\r\n\t\tif (initialValues != null) {\r\n\t\t\tvalues = new ContentValues(initialValues);\r\n\t\t} else {\r\n\t\t\tvalues = new ContentValues();\r\n\t\t}\r\n\r\n\t\t// Long now = Long.valueOf(System.currentTimeMillis());\r\n\r\n\t\tif (sUriMatcher.match(uri) == INCOMING_MOVIE_COLLECTION_URI_INDICATOR) {\r\n\t\t\tif (!values.containsKey(MovieTMD.LOCAL_NAME)) {\r\n\t\t\t\tthrow new SQLException(\r\n\t\t\t\t\t\t\"Falha ao introduzir linha porque o nome local do filme é necessário\"\r\n\t\t\t\t\t\t\t\t+ uri);\r\n\t\t\t}\r\n\t\t\tif (!values.containsKey(MovieTMD.ORIGINAL_NAME)) {\r\n\t\t\t\tthrow new SQLException(\r\n\t\t\t\t\t\t\"Falha ao introduzir linha porque o nome original do filme é necessário\"\r\n\t\t\t\t\t\t\t\t+ uri);\r\n\t\t\t}\r\n\r\n\t\t\tif (!values.containsKey(MovieTMD.CHANNEL)) {\r\n\t\t\t\tthrow new SQLException(\r\n\t\t\t\t\t\t\"Falha ao introduzir linha porque o canal do filme é necessária\"\r\n\t\t\t\t\t\t\t\t+ uri);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (!values.containsKey(MovieTMD.HOLLYWOOD_URL)) {\r\n\t\t\t\tthrow new SQLException(\"Falha ao introduzir linha porque o \"\r\n\t\t\t\t\t\t+ \"link do canal do filme é necessária\" + uri);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (sUriMatcher.match(uri) == INCOMING_DAY_COLLECTION_URI_INDICATOR) {\r\n\t\t\tif (!values.containsKey(DayTMD.DATE_START)) {\r\n\t\t\t\tthrow new SQLException(\r\n\t\t\t\t\t\t\"Falha ao introduzir linha porque a data do alarme é necessária\"\r\n\t\t\t\t\t\t\t\t+ uri);\r\n\t\t\t}\r\n\t\t\tif (!values.containsKey(DayTMD.DATE_END)) {\r\n\t\t\t\tthrow new SQLException(\r\n\t\t\t\t\t\t\"Falha ao introduzir linha porque a ID do filme é necessária\"\r\n\t\t\t\t\t\t\t\t+ uri);\r\n\t\t\t}\r\n\t\t\tif (!values.containsKey(DayTMD.MOVIE_ID)) {\r\n\t\t\t\tthrow new SQLException(\r\n\t\t\t\t\t\t\"Falha ao introduzir linha porque a id do filme é necessário\"\r\n\t\t\t\t\t\t\t\t+ uri);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (sUriMatcher.match(uri) == INCOMING_ACTOR_COLLECTION_URI_INDICATOR) {\r\n\t\t\tif (!values.containsKey(ActorTMD.ACTOR_NAME)) {\r\n\t\t\t\tthrow new SQLException(\r\n\t\t\t\t\t\t\"Falha ao introduzir linha porque a nome do actor é necessário\"\r\n\t\t\t\t\t\t\t\t+ uri);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (sUriMatcher.match(uri) == INCOMING_REF_ACTOR_SINGLE_URI_INDICATOR) {\r\n\t\t\tif (!values.containsKey(RefMovActTMD.REF_MA_ACTOR_ID)) {\r\n\t\t\t\tthrow new SQLException(\r\n\t\t\t\t\t\t\"Falha ao introduzir linha porque a id do actor é necessário\"\r\n\t\t\t\t\t\t\t\t+ uri);\r\n\t\t\t}\r\n\t\t\tif (!values.containsKey(RefMovActTMD.REF_MA_MOVIE_ID)) {\r\n\t\t\t\tthrow new SQLException(\r\n\t\t\t\t\t\t\"Falha ao introduzir linha porque a id do filme é necessário\"\r\n\t\t\t\t\t\t\t\t+ uri);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (sUriMatcher.match(uri) == INCOMING_DIRECTOR_COLLECTION_URI_INDICATOR) {\r\n\t\t\tif (!values.containsKey(DirectorTMD.DIRECTOR_NAME)) {\r\n\t\t\t\tthrow new SQLException(\r\n\t\t\t\t\t\t\"Falha ao introduzir linha porque a nome do realizador é necessário\"\r\n\t\t\t\t\t\t\t\t+ uri);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSQLiteDatabase db = mOpenHelper.getWritableDatabase();\r\n\t\tlong rowId;\r\n\t\tUri insertedUri = null;\r\n\r\n\t\tif (values.containsKey(RefMovActTMD.REF_MA_ACTOR_ID)\r\n\t\t\t\t&& values.containsKey(RefMovActTMD.REF_MA_MOVIE_ID)) {\r\n\t\t\trowId = db.insert(RefMovActTMD.TABLE_NAME, null, values);\r\n\t\t\tif (rowId > 0) {\r\n\t\t\t\tinsertedUri = ContentUris.withAppendedId(RefMovActTMD.CONTENT_URI,\r\n\t\t\t\t\t\trowId);\r\n\t\t\t\tgetContext().getContentResolver().notifyChange(insertedUri,\r\n\t\t\t\t\t\tnull);\r\n\t\t\t}\r\n\t\t\treturn insertedUri;\r\n\t\t}\r\n\t\t\r\n\t\tif (values.containsKey(DayTMD.MOVIE_ID)) {\r\n\t\t\trowId = db.insert(DayTMD.TABLE_NAME, null, values);\r\n\t\t\tif (rowId > 0) {\r\n\t\t\t\tinsertedUri = ContentUris.withAppendedId(DayTMD.CONTENT_URI, rowId);\r\n\t\t\t\tgetContext().getContentResolver().notifyChange(insertedUri,\r\n\t\t\t\t\t\tnull);\r\n\t\t\t}\r\n\t\t\treturn insertedUri;\r\n\t\t}\r\n\r\n\t\tif (values.containsKey(MovieTMD.LOCAL_NAME) == true) {\r\n\t\t\trowId = db.insert(MovieTMD.TABLE_NAME, null, values);\r\n\t\t\tif (rowId > 0) {\r\n\t\t\t\tinsertedUri = ContentUris.withAppendedId(MovieTMD.CONTENT_URI,\r\n\t\t\t\t\t\trowId);\r\n\t\t\t\tgetContext().getContentResolver().notifyChange(insertedUri,\r\n\t\t\t\t\t\tnull);\r\n\t\t\t}\r\n\t\t\treturn insertedUri;\r\n\t\t}\r\n\r\n\t\tif (values.containsKey(ActorTMD.ACTOR_NAME) == true) {\r\n\t\t\trowId = db.insert(ActorTMD.TABLE_NAME, null, values);\r\n\t\t\tif (rowId > 0) {\r\n\t\t\t\tinsertedUri = ContentUris.withAppendedId(ActorTMD.CONTENT_URI,\r\n\t\t\t\t\t\trowId);\r\n\t\t\t\tgetContext().getContentResolver().notifyChange(insertedUri,\r\n\t\t\t\t\t\tnull);\r\n\t\t\t}\r\n\t\t\treturn insertedUri;\r\n\t\t}\r\n\t\t\r\n\t\tthrow new SQLException(\"Failed to insert row into \" + uri);\r\n\t}", "public Uri getPhotoPageUri() {\n return Uri.parse(\"https://www.flickr.com/photos/\").buildUpon()\n .appendPath(mOwner)\n .appendPath(mId)\n .build();\n }", "public abstract String getRobotUri();" ]
[ "0.65852576", "0.6394486", "0.6247847", "0.5965436", "0.59498066", "0.59438163", "0.591794", "0.5864067", "0.5832224", "0.58097947", "0.57968056", "0.57968056", "0.5727077", "0.5719105", "0.5660976", "0.5605765", "0.5570352", "0.55636555", "0.5548898", "0.55197614", "0.54833573", "0.546348", "0.5402782", "0.53772676", "0.53759164", "0.5353645", "0.53530663", "0.52983844", "0.52587086", "0.52356255", "0.52293557", "0.52230364", "0.52230364", "0.52230364", "0.5217229", "0.52167195", "0.5210272", "0.5209733", "0.5197538", "0.51914394", "0.51830816", "0.51739836", "0.514514", "0.51199716", "0.51146", "0.51146", "0.51146", "0.5113737", "0.50945586", "0.50936306", "0.50673085", "0.5065139", "0.5051559", "0.5050522", "0.5039252", "0.5024317", "0.501859", "0.5017256", "0.5014636", "0.5010817", "0.5007884", "0.4999927", "0.49944997", "0.49880594", "0.49776345", "0.4969802", "0.49653968", "0.4964984", "0.49515617", "0.4948495", "0.4937802", "0.4931728", "0.4929027", "0.49044374", "0.4890481", "0.4887933", "0.485175", "0.4851692", "0.48443884", "0.48426667", "0.48309603", "0.48299634", "0.48263434", "0.48258975", "0.48200375", "0.48121214", "0.4807099", "0.48065326", "0.4804394", "0.48028997", "0.47978058", "0.47945496", "0.47936302", "0.47904038", "0.4787389", "0.47671008", "0.47635648", "0.47588646", "0.47513962", "0.47511363" ]
0.64136845
1
This decides how the result will be sorted.
public static URL buildMovieDbQueryURL(@MovieDisplayMode int displayMode) { String chosenURLBasedOnSortBy = ""; switch (displayMode) { case MovieDisplayMode.MOST_POPULAR: chosenURLBasedOnSortBy = MOVIEDB_API_MOSTPOPULAR_URL; break; case MovieDisplayMode.HIGHEST_RATED: chosenURLBasedOnSortBy = MOVIEDB_API_TOPRATED_URL; break; default: throw new IllegalArgumentException(String.format("No URL to generate for displayMode '%s'", displayMode)); } return buildFinalMovieDbURL(chosenURLBasedOnSortBy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String doSort();", "public void sortCompetitors(){\n\t\t}", "public void sort() {\n }", "public void radixSorting() {\n\t\t\n\t}", "boolean isSortResult();", "public void sortMatches();", "protected void sort() {\n\n\t\tCollections.sort(this.myRRList);\n\t}", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "private void sortResults(List<String> results) {\r\n\t\tif (comparator == null) {\r\n\t\t\tCollections.sort(results);\r\n\t\t} else {\r\n\t\t\tCollections.sort(results, comparator);\r\n\t\t}\r\n\t}", "public String sortBy();", "public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}", "@Override\r\n\t\t\tpublic int compare(Presentor o1, Presentor o2) {\n\t\t\t\tint sort = 0;\r\n\t\t\t\tint a = o1.getZs() - o2.getZs();\r\n\t\t\t\tif (a != 0) {\r\n\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta = o1.getJd() - o2.getJd();\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn sort;\r\n\t\t\t}", "public static boolean testSort() {\r\n Manager inst;\r\n try {\r\n inst = new PokemonTable();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n LinkedList<Pokemon> list;\r\n list = inst.sortByAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() < list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() > list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() < list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() > list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).getFavorite() && list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getFavorite() && !list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() < list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() > list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).isLegendary() && list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).isLegendary() && !list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) > 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) < 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() < list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() > list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() < list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() > list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() < list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() > list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "private static void sortingMemo() {\n\t\t\n\t}", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "public void sort() {\n\t\tdivider(0, array.size() - 1);\n\t}", "public String getSortOrder();", "private void sort() {\n Collections.sort(mEntries, new Comparator<BarEntry>() {\n @Override\n public int compare(BarEntry o1, BarEntry o2) {\n return o1.getX() > o2.getX() ? 1 : o1.getX() < o2.getX() ? -1 : 0;\n }\n });\n }", "public String sortOriginOrReturn();", "@Override\n \tpublic void sort() {\n \t\tArrays.sort(data);\n \t}", "void sort();", "void sort();", "void order() {\n for (int i = 0; i < numVertices; i++) {\n if (simp[i][numParams] < simp[best][numParams]) {\n best = i;\n }\n if (simp[i][numParams] > simp[worst][numParams]) {\n worst = i;\n }\n }\n nextWorst = best;\n for (int i = 0; i < numVertices; i++) {\n if (i != worst) {\n if (simp[i][numParams] > simp[nextWorst][numParams]) {\n nextWorst = i;\n }\n }\n }\n }", "private void sortEntities(){\n for (int i = 1; i < sorted.size; i++) {\n for(int j = i ; j > 0 ; j--){\n \tEntity e1 = sorted.get(j);\n \tEntity e2 = sorted.get(j-1);\n if(getRL(e1) < getRL(e2)){\n sorted.set(j, e2);\n sorted.set(j-1, e1);\n }\n }\n }\n }", "public void sortByAndser() {\r\n\t\tQuestion[][] question2DArray = new Question[displayingList.size()][];\r\n\t\tfor (int i = 0; i < displayingList.size(); i++) {\r\n\t\t\tquestion2DArray[i] = new Question[1];\r\n\t\t\tquestion2DArray[i][0] = displayingList.get(i);\r\n\t\t}\r\n\r\n\t\twhile (question2DArray.length != 1) {\r\n\t\t\tquestion2DArray = (Question[][]) merge2DArray(question2DArray);\r\n\t\t}\r\n\t\tdisplayingList.removeAll(displayingList);\r\n\t\tfor (int i = 0; i < question2DArray[0].length; i++) {\r\n\t\t\tdisplayingList.add(question2DArray[0][i]);\r\n\t\t}\r\n\t}", "private static boolean getSorted(JobConf conf) {\n return conf.getBoolean(INPUT_SORT, false);\n }", "private List<Article> orderArticles(List<Article> things){\n\t\t Comparator<Article> comparatorPrizes = new Comparator<Article>() {\n\t public int compare(Article x, Article y) {\n\t return (int) (x.getPrize() - y.getPrize());\n\t }\n\t };\n\t Collections.sort(things,comparatorPrizes); \n\t Collections.reverse(things);\n\t return things;\n\t }", "private int getSortValue() {\n\t\tint sortBy = DisplaySpecServices.ORDERDATESORT; // default sort option -\n\t\t// ORDERDATE\n\t\tif (this.searchNotSort == false) {\n\t\t\ttry {\n\t\t\t\tsortBy = Integer.parseInt(this.sortOption);\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT; // default sort\n\t\t\t\t// option\n\t\t\t}\n\t\t} else {\n\t\t\tString searchOption = this.getSearchOption();\n\n\t\t\ttry {\n\t\t\t\tint searchOptValue = Integer.parseInt(searchOption);\n\t\t\t\tswitch (searchOptValue) {\n\t\t\t\tcase DisplaySpecServices.ORDERDATEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.REPUBLICATIONDATEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.REPUBLICATIONDATESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.PUBLICATIONTITLEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.PUBLICATIONTITLESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.ORDERDETAILIDFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.ORDERDETAILIDSORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.PERMISSIONTYPEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.PERMISSIONTYPESORT; // 2ndary\n\t\t\t\t\t// sort\n\t\t\t\t\t// Order\n\t\t\t\t\t// Date\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.PERMISSIONSTATUSFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.PERMISSIONSTATUSSORT; // 2ndary\n\t\t\t\t\t// sort\n\t\t\t\t\t// Order\n\t\t\t\t\t// Date\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.BILLINGSTATUSFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.YOURREFERENCEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.YOURREFERENCESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.INVOICENUMBERFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.INVOICENUMBERSORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.REPUBLICATIONTITLEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.REPUBLICATIONTITLESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.REPUBLICATIONPUBLISHERFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.REPUBLICATIONPUBLISHERSORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.LASTUPDATEDATESORT:\n\t\t\t\t\tsortBy = DisplaySpecServices.LASTUPDATEDATESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT; // default\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT; // default\n\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t}\n\t\t}\n\t\treturn sortBy;\n\t}", "public void sort() {\n documents.sort();\n }", "public String getMessageSort();", "@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}", "public void sort() {\r\n int k = start;\r\n for (int i = 0; i < size - 1; i++) {\r\n int p = (k + 1) % cir.length;\r\n for (int j = i + 1; j < size; j++) {\r\n if ((int) cir[p] < (int) cir[k % cir.length]) {\r\n Object temp = cir[k];\r\n cir[k] = cir[p];\r\n cir[p] = temp;\r\n }\r\n p = (p + 1) % cir.length;\r\n }\r\n k = (k + 1) % cir.length;\r\n }\r\n }", "public static void main(String[] args) {\n\t\tList<Product> prodList = new ArrayList<>();\n\t\tprodList.add(new Product(12, \"Refrigerator\", \"Whirlpool\", 43000.00f));\n\t\tprodList.add(new Product(16, \"Mobile\", \"Samsung\", 18000.00f));\n\t\tprodList.add(new Product(11, \"Laptop\", \"Lenovo\", 28300.00f));\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Before Sorting\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\tCollections.sort(prodList);\n\t\t\n\t\tSystem.out.println(\"After Sorting\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\tProductNameComparator pnc = new ProductNameComparator();\n\t\tCollections.sort(prodList, pnc);\n\t\t\n\t\tSystem.out.println(\"After Sorting as per name\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\tCollections.sort(prodList,Collections.reverseOrder());\n\t\t\n\t\tSystem.out.println(\"After Sorting as per desc id\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\tCollections.sort(prodList,Collections.reverseOrder(pnc));\n\t\t\n\t\tSystem.out.println(\"After Sorting as per desc name\");\n\t\tfor(Product p:prodList) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\t\n\t\t\n\t\tCollections.sort(prodList, (p1,p2)-> p1.getPrice()>p2.getPrice()?1:-1 );\n\t\tSystem.out.println(\"After Sorting as per price\");\n\t\tprodList.forEach(p->System.out.println(p));\n\t\t\n\t\tCollections.sort(prodList, (p1,p2)-> p1.getPrice()<p2.getPrice()?1:-1 );\n\t\tSystem.out.println(\"After Sorting as per desc price\");\n\t\tprodList.forEach(System.out::println);\n\t\t\n\t}", "@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n public void sortAndCount() {\n Insertion.reset();\n Insertion.sort(arrayForTests);\n comp = Sort.getComparisonOperations(); // Sort.getComp();\n copy = Sort.getCopyOperations(); // Sort.getCopy();\n }", "private int Compare(ResultsClass lhs, ResultsClass rhs) {\n if (lhs.bodyPart > rhs.bodyPart) {\n return 1;\n } else if (lhs.bodyPart > rhs.bodyPart) {\n return -1;\n } else {\n return 0;\n }\n }", "private static void setSorted(JobConf conf) {\n conf.setBoolean(INPUT_SORT, true);\n }", "public static void userSort(ArrayList<FileData> fromFile, int primary_sort, int secondary_sort, int primary_order, int secondary_order)\n {\n \n // user wants to sort by primary = state code and secondary = county code\n if(primary_sort == 1 && secondary_sort == 2) \n {\n if(primary_order == 1 && secondary_order == 1){// user wants both primary and secondary in ascending order\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order == 2 && secondary_order == 2){ // user wants both primary and secondary in decending order\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){// primary is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){//primary is descending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n // user wants to sort by primary = county code and secondary = state code\n if(primary_sort == 2 && secondary_sort == 1){\n if(primary_order == 1 && secondary_order == 1){\n //primary and seconary is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order == 2 && secondary_order == 2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){//primary is ascending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code()); // primary sort\n \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){//primary is descending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code().reversed()); // primary sort\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==1&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Name()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new Sort_State_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new Sort_County_Name()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new Sort_County_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==1&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount());\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information \n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information \n } \n } \n }\n \n \n if(primary_sort==1&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); \n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); \n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n \n if(primary_sort==8&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new Sort_State_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new Sort_County_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new Sort_County_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==2&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==6&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==2&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==7&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==8&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==3&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==4&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==5&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==8&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==8&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order == 2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n }", "private Sort() { }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "public void sortElements(){\n\t\tgetInput();\n\t\tPeople[] all = countAndSort(people, 0, people.length-1);\n\t\t//PrintArray(all);\n\t\tSystem.out.println(InversionCount);\n\t}", "@VTID(28)\n boolean getSortUsingCustomLists();", "public SoilTypeComparator() {\n\t\tthis.descending = true;\n\t}", "void sortUI();", "private static void performSort(TestApp testApp) {\n testApp.testPartition();\n\n /*\n Date end = new Date();\n System.out.println(\"Sort ended @ \" + end.getTime());\n System.out.println(\"Total time = \" + (end.getTime() - start.getTime())/1000.0 + \" seconds...\");\n */\n }", "@Override\n public int compare(Map<String, Object> o1, Map<String, Object> o2) {\n if(!descflag){\n return String.valueOf(o2.get(orderField)).compareTo(String.valueOf(o1.get(orderField)));\n }else {\n return String.valueOf(o1.get(orderField)).compareTo(String.valueOf(o2.get(orderField)));\n }\n // return 0;//加一个默认返回\n }", "public void sortByQnNum() {\r\n\t\tfor (int j = 0; j < displayingList.size() - 1; j++) {\r\n\t\t\tfor (int i = 0; i < displayingList.size() - j - 1; i++) {\r\n\t\t\t\tif (displayingList.get(i).getQnNum() > displayingList.get(i + 1).getQnNum()) {\r\n\t\t\t\t\tswapPosition(displayingList, i, i + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int compare(Object o1, Object o2) {\n/* 25 */ Alphabet a1 = (Alphabet)o1;\n/* 26 */ Alphabet a2 = (Alphabet)o2;\n/* */ \n/* 28 */ return a2.order - a1.order;\n/* */ }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "@Override\n protected void runAlgorithm() {\n for (int i = 0; i < getArray().length; i++) {\n for (int j = i + 1; j < getArray().length; j++) {\n if (applySortingOperator(getValue(j), getValue(i))) {\n swap(i, j);\n }\n }\n }\n }", "boolean areSorted();", "protected SortedResultSpecification getSortedResultSpecification() {\r\n int offset = getIntParameter(NAME_PROVIDER.getNameForOffset(), 0);\r\n int maxCount = getIntParameter(NAME_PROVIDER.getNameForMaxCount(), 0);\r\n\r\n SortedResultSpecification resultSpecification = new SortedResultSpecification(offset,\r\n maxCount);\r\n return resultSpecification;\r\n }", "public void changeSortOrder();", "@Override\r\n public int compare(HDTV o1, HDTV o2) {\n return o1.getSize() - o2.getSize(); // prints object in ascending order\r\n\r\n }", "public int compare(Viewer view, Object e1, Object e2) {\n\t\t\t// Config and Build results are sorted in reverse order\n\t\t\tif (e1 instanceof BuildResultsElement) {\n\t\t\t\tResultsElement element = (ResultsElement) e2;\n\t\t\t\treturn element.compareTo(e1);\n\t\t\t}\n\t\t\tif (e1 instanceof ResultsElement) {\n\t\t\t\tResultsElement element = (ResultsElement) e1;\n\t\t\t\treturn element.compareTo(e2);\n\t\t\t}\n\t\t\treturn super.compare(view, e1, e2);\n\t\t}", "@Override\n public List<OrderByExpression> resultsOrderedBy() {\n return null;\n }", "private PerfectMergeSort() {}", "@Override\n\t\t\tpublic int compare(Entry<String, Integer> o1, Entry<String, Integer> o2) {\n\t\t\t\treturn o2.getValue().compareTo(o1.getValue());\n\t\t\t}", "public static void specialSets() {\n\t\tSystem.out.printf(\"%12s%15s%15s%10s%10s%10s%10s%n\",\"Size\",\"Range\",\"Pre-Sort Type\",\"Insertion\",\"Selectuon\",\"Quick\",\"Merge\");\n\t\tint[] array;\n\t\t//200K\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 200000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Sorted array\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Sorted\");\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Reverse Sorted\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Reverse Sorted\");\n\t\tint[] temp = new int[array.length];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\ttemp[i] = array[array.length -1 -i];\n\t\t}\n\t\tfourSorts(temp);\n\t\tSystem.out.println();\n\t\t//Range 1-20\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-20\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 20);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "public void setSortOnCPUTime() {\n this.sortedJobList = new TreeSet<Job>(new Comparator<Job>() {\n @Override\n public int compare(Job a, Job b) {\n\n int aCPUUsed = 0;\n int bCPUUsed = 0;\n\n try {\n aCPUUsed = a.getCPUUsed();\n bCPUUsed = b.getCPUUsed();\n } catch (AS400SecurityException e) {\n e.printStackTrace();\n } catch (ErrorCompletingRequestException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ObjectDoesNotExistException e) {\n e.printStackTrace();\n }\n\n if (aCPUUsed == bCPUUsed) return 0;\n else return bCPUUsed - aCPUUsed;\n }\n });\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tprivate static ArrayList<Result> sortByScore(ArrayList<Result> sortThis){\n\t\tArrayList<Result> sorted = sortThis;\n\t\tCollections.sort(sorted, new Comparator(){\n\t\t\t\n\t\t\tpublic int compare(Object o1, Object o2){\n\t\t\t\tResult r1 = (Result) o1;\n\t\t\t\tResult r2 = (Result) o2;\n\n\t\t\t\tDouble Score1 = new Double(r1.getScore());\n\t\t\t\tDouble Score2 = new Double(r2.getScore());\n\t\t\t\treturn Score1.compareTo(Score2);\n\t\t\t}\n\t\t});\n\t\tCollections.reverse(sorted);\n\t\t\n\t\treturn sorted;\n\t}", "public void sort() {\n ListNode start = head;\n ListNode position1;\n ListNode position2;\n\n // Going through each element of the array from the second element to the end\n while (start.next != null) {\n start = start.next;\n position1 = start;\n position2 = position1.previous;\n // Checks if previous is null and keeps swapping elements backwards till there\n // is an element that is bigger than the original element\n while (position2 != null && (position1.data < position2.data)) {\n swap(position1, position2);\n numberComparisons++;\n position1 = position2;\n position2 = position1.previous;\n }\n }\n }", "private void sort()\n {\n // This implements Shell sort.\n // Unfortunately we cannot use the sorting functions from the library\n // (e.g. java.util.Arrays.sort), since the ones that work on int\n // arrays do not accept a comparison function, but only allow\n // sorting into natural order.\n int jump = length;\n boolean done;\n \n while( jump>1 ){\n jump /= 2;\n \n do {\n done = true;\n \n for( int j = 0; j<(length-jump); j++ ){\n int i = j + jump;\n \n if( !areCorrectlyOrdered( indices[j], indices[i] ) ){\n // Things are in the wrong order, swap them and step back.\n int tmp = indices[i];\n indices[i] = indices[j];\n indices[j] = tmp;\n done = false;\n }\n }\n } while( !done );\n }\n \n // TODO: integrate this with the stuff above.\n for( int i=1; i<length; i++ ){\n commonality[i] = commonLength( indices[i-1], indices[i] );\n }\n commonality[0] = -1;\n }", "private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}", "public void sort()\n {\n\tstrack.sort((Node n1, Node n2) ->\n\t{\n\t if (n1.getCost() < n2.getCost()) return -1;\n\t if (n1.getCost() > n2.getCost()) return 1;\n\t return 0;\n\t});\n }", "void sortV();", "public String printSortedResult() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(printStartNumberAndName() + \"; \");\n\t\tsb.append(printInfo());\n\t\t\n\t\tsb.append(printTotalTime());\n\t\t\n\t\tsb.append(errorHandler.print());\n\t\t\n\t\treturn sb.toString();\n\t}", "public void sortKnowledgeBase()\n {\n int i;\n Random random;\n String aPredicate;\n StringTokenizer tokenizer;\n //------------\n random = new Random();\n i = 0;\n while (i < knowledgeBase.size())\n {\n aPredicate = knowledgeBase.get(i).commitments.get(0).predicate;\n tokenizer = new StringTokenizer(aPredicate,\"(), \");\n if(tokenizer.nextToken().equals(\"secuencia\"))\n knowledgeBase.get(i).priority = random.nextInt(100);\n //end if\n else\n knowledgeBase.get(i).priority = random.nextInt(10000);\n //end else\n i = i + 1;\n }//end while\n Collections.sort(knowledgeBase);\n }", "@Test\n void queryWithMultipleSortersReturnsAppropriateOrder() {\n final RecordSorter<Munro> designationSorter = new RecordSorter<>(Munro::getDesignation,\n SortOrder.ASCENDING);\n final RecordSorter<Munro> heightSorter = new RecordSorter<>(Munro::getHeight,\n SortOrder.ASCENDING);\n\n final List<Comparator<Munro>> sorters =\n Arrays.asList(designationSorter, heightSorter);\n\n final List<Munro> munroes = this.store.query(\n new MunroQuerySpecification(null, null, null, null, sorters));\n\n // Tracking designation and last height across results.\n Designation currentType = Designation.MUN;\n double lastHeight = Double.MIN_VALUE;\n boolean isFirstOfNewType = true;\n\n for (final Munro munro : munroes) {\n if (currentType != munro.getDesignation()) {\n if (isFirstOfNewType) {\n // One swap of type is allowed. Any more swaps and they weren't sorted by type\n // first.\n currentType = munro.getDesignation();\n\n // Reset the last height when changing types, since height was a secondary\n // ordering.\n lastHeight = Double.MIN_VALUE;\n\n isFirstOfNewType = false;\n } else {\n // More than one swap, the sorting didn't work.\n Assertions.fail(\"Expected ordering by type\");\n }\n }\n\n Assertions.assertEquals(currentType, munro.getDesignation());\n Assertions.assertTrue(munro.getHeight() >= lastHeight);\n lastHeight = munro.getHeight();\n }\n }", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "@Override\n public int compareTo(Record o) {\n if (this.result - o.result > 0) {\n return 1;\n } else if (this.result - o.result < 0) {\n return -1;\n } else {\n // press time: the less, the better.\n if (this.pressTime < o.pressTime) {\n return 1;\n } else if (this.pressTime > o.pressTime) {\n return -1;\n } else {\n // total times: the more, the better.\n if (this.totalTimes > o.totalTimes) {\n return 1;\n } else if (this.totalTimes < o.totalTimes) {\n return -1;\n }\n return 0;\n }\n }\n }", "JDKSort() {\n }", "public void sort() {\n compares = 0;\n shuttlesort((int[]) indexes.clone(), indexes, 0, indexes.length);\n }", "public void sort() {\n\t\tif (data.size() < 10) {\n\t\t\tbubbleSort();\n\t\t\tSystem.out.println(\"Bubble Sort\");\n\t\t} else {\n\t\t\tquickSort();\n\t\t\tSystem.out.println(\"Quick Sort\");\n\t\t}\n\t}", "public void oldSort()\n\t{\n\t\tfor (int index = 0; index < arraySize; index++) {\n\t\t\tfor (int secondIndex = index + 1; secondIndex < arraySize; secondIndex++) {\n\t\t\t\tint temp = 0;\n\t\t\t\tif (array[index] > array[secondIndex]) {\n\t\t\t\t\ttemp = array[index];\n\t\t\t\t\tarray[index] = array[secondIndex];\n\t\t\t\t\tarray[secondIndex] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void testSort() {\n\t\tint[] test = {-1,-2,-3,4,1,3,0,3,-2,1,-2,2,-1,1,-5,4,-3};\n\t\tArrays.sort(test);\n\t\tfor (int e : test) {\n\t\t\tSystem.out.print(e + \", \");\n\t\t}\n\t}", "@Override\n\tpublic int getOrder() {\n\t\treturn Ordered.HIGHEST_PRECEDENCE + 10000;\n\t}", "public void triCollection(){\r\n Collections.sort(collection);\r\n }", "public RadixSorting()\n\t{\n\t\tbuckets.add(zero);\n\t\tbuckets.add(one);\n\t\tbuckets.add(two);\n\t\tbuckets.add(three);\n\t\tbuckets.add(four);\n\t\tbuckets.add(five);\n\t\tbuckets.add(six);\n\t\tbuckets.add(seven);\n\t\tbuckets.add(eight);\n\t\tbuckets.add(nine);\n\t\tbuckets.add(ten);\n\t\tbuckets.add(eleven);\n\t\tbuckets.add(twelve);\n\t\tbuckets.add(thirteen);\n\t\tbuckets.add(fourteen);\n\t\tbuckets.add(fifteen);\n\t\tbuckets.add(sixteen);\n\t\tbuckets.add(seventeen);\n\t\tbuckets.add(eighteen);\n\t\tbuckets.add(nineteen);\n\t}", "public void sort() {\n /*int jokers = this.getJokers();\n\t\tif (jokers > 0 && this.size() > 2) {\n\t\t\tArrayList<Tile> list = new ArrayList<>();\n for (int i=0; i<this.size(); i++) {\n\t\t\t\tif (this.get(i).getColour() == 'J') {\n\t\t\t\t\tTile joker = this.remove(this.get(i));\n\t\t\t\t\tlist.add(joker);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Tile j : list) {\n\t\t\t\tthis.addInSort(j);\n\t\t\t}\n }*/\n \n\n //may need something in here to accomodate a joker changing its form\n\n if (tiles.size() > 1) { //will only sort a meld with any tiles in it\n //Override default comparator to compare by tile value (ints)\n Collections.sort(tiles, new Comparator<Tile>() {\n @Override \n public int compare(Tile t1, Tile t2) { \n if (t1.getColour() > t2.getColour()) {\n return 1;\n } else if (t1.getColour() < t2.getColour()) {\n return -1;\n }\n if (t1.getValue() > t2.getValue()) {\n return 1;\n } else if (t1.getValue() < t2.getValue()) {\n return -1;\n } else {\n return 0;\n }\n }\n });\n }\n\n }", "@Override\n\t public int compare(Player p1, Player p2) {\n\t boolean desc = sortField.startsWith(\"-\");\n\t String fieldToUse = desc ? sortField.substring(1): sortField; \n\n\t try {\n\t String field1 = BeanUtils.getProperty(p1, fieldToUse);\n\t String field2 = BeanUtils.getProperty(p2, fieldToUse);\n\t return (desc) ? field2.compareTo(field1) : field1.compareTo(field2);\n\t } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t// Again just for test purposes. Since we are in the service layer \n\t\t\t\t\t\t// and beyond the API. We will throw a Business Logic Exception.\n\t\t\t\t\t\tthrow new BusinessLogicException(e.getMessage(), \n\t\t\t\t\t\t\t\tBusinessErrorCodeEnum.INTERNAL_PROCESSING_ERROR);\n\t\t\t\t\t}\n\t\t\t\t}", "int order();", "public void sort() {\n if (sorter != null)\n sort(sorter);\n }", "public void sortScoresDescendently(){\n this.langsScores.sort((LangScoreBankUnit o1, LangScoreBankUnit o2) -> {\n return Double.compare(o2.getScore(),o1.getScore());\n });\n }", "private void sortOutlines() {\r\n Collections.sort(outlines, reversSizeComparator);\r\n }", "Results sortResults(FilterSpecifier.ListBy listBy, SortSpecifier sortspec) throws SearchServiceException;", "@Override\n public int compare(UserData o1, UserData o2) {\n if (\"Distance\".equals(sort)) {\n return calcDistanceToMatch(o1) > calcDistanceToMatch(o2) ? 1 : -1;\n\n } else {\n return calcSchedulePercentage(o1) < calcSchedulePercentage(o2) ? 1 : -1;\n }\n }", "public static void main(String[] args) {\n String [] folge = {\"ab\",\"cd\", \"aa\"};\n new SortierenBeiEinfugen().sortiereAbsteigend(folge);\n System.out.println(Arrays.toString(folge));\n new SortierenBeiEinfugen().sortiereAufsteigend(folge);\n System.out.println(Arrays.toString(folge));\n\n\n\n\n\n\n int[] feld = {2,8,5,6,3,1,4,7};\n\n int countVergleich=0;\n int countTausch = 0;\n for (int i = 0; i < feld.length; i++) {\n for (int j = i; j > 0 ; j--) {\n countVergleich++;\n if (feld[j - 1]>(feld[j]) ) {\n int temp = feld[j];\n feld[j] = feld[j - 1];\n feld[j - 1] = temp;\n countTausch++;\n } else {\n System.out.println(countVergleich);\n System.out.println(countTausch);\n break;\n }\n }\n }\n }", "@NotNull\n EntityIterable asSortResult();", "public void sortByRating() {\n Log.d(Contract.TAG_WORK_PROCESS_CHECKING, \"ListPresenter - sortByRating\");\n\n listInteractor.sortByRating(new ListCallback() {\n @Override\n public void setPhotosList(List<BasePojo.Result> photosList) {\n Log.d(Contract.TAG_WORK_PROCESS_CHECKING, \"ListPresenter - sortByRating - setPhotosList\");\n\n getViewState().setData(photosList);\n }\n });\n }", "@Override\n\tpublic int compare(Object o1, Object o2) {\n\t\tint a1=((TestBig)o1).a;\n\t\tint a2=((TestBig)o2).a;\n\t\tif(a1<a2)\n\t\t\treturn 1;\n\t\treturn -1;\n\t}", "@Override\n\t\t\tpublic int compare(Integer ano1, Integer ano2) {\n\t\t\t\treturn ano1.compareTo(ano2);\n\t\t\t}", "@Override\n public void sort() {\n for (int i = 0; i < size; i++) {\n for (int j = i + 1; j < size; j++) {\n if (((Comparable) data[i]).compareTo(data[j]) > 0) {\n E c = data[i];\n data[i] = data[j];\n data[j] = c;\n\n }\n }\n }\n }", "@Override\n\t\tpublic int compare(Object a, Object b) {\n\t\t\tif(hm.get(a)>hm.get(b))\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t}", "public static void doSort ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t//get the ParameterParser from RunData\n\t\tParameterParser params = data.getParameters ();\n\n\t\t// save the current selections\n\t\tSet selectedSet = new TreeSet();\n\t\tString[] selectedItems = data.getParameters ().getStrings (\"selectedMembers\");\n\t\tif(selectedItems != null)\n\t\t{\n\t\t\tselectedSet.addAll(Arrays.asList(selectedItems));\n\t\t}\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, selectedSet);\n\n\t\tString criteria = params.getString (\"criteria\");\n\n\t\tif (criteria.equals (\"title\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_DISPLAY_NAME;\n\t\t}\n\t\telse if (criteria.equals (\"size\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_CONTENT_LENGTH;\n\t\t}\n\t\telse if (criteria.equals (\"created by\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_CREATOR;\n\t\t}\n\t\telse if (criteria.equals (\"last modified\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_MODIFIED_DATE;\n\t\t}\n\t\telse if (criteria.equals(\"priority\") && ContentHostingService.isSortByPriorityEnabled())\n\t\t{\n\t\t\t// if error, use title sort\n\t\t\tcriteria = ResourceProperties.PROP_CONTENT_PRIORITY;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_DISPLAY_NAME;\n\t\t}\n\n\t\tString sortBy_attribute = STATE_SORT_BY;\n\t\tString sortAsc_attribute = STATE_SORT_ASC;\n\t\tString comparator_attribute = STATE_LIST_VIEW_SORT;\n\t\t\n\t\tif(state.getAttribute(STATE_MODE).equals(MODE_REORDER))\n\t\t{\n\t\t\tsortBy_attribute = STATE_REORDER_SORT_BY;\n\t\t\tsortAsc_attribute = STATE_REORDER_SORT_ASC;\n\t\t\tcomparator_attribute = STATE_REORDER_SORT;\n\t\t}\n\t\t// current sorting sequence\n\t\tString asc = NULL_STRING;\n\t\tif (!criteria.equals (state.getAttribute (sortBy_attribute)))\n\t\t{\n\t\t\tstate.setAttribute (sortBy_attribute, criteria);\n\t\t\tasc = Boolean.TRUE.toString();\n\t\t\tstate.setAttribute (sortAsc_attribute, asc);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// current sorting sequence\n\t\t\tasc = (String) state.getAttribute (sortAsc_attribute);\n\n\t\t\t//toggle between the ascending and descending sequence\n\t\t\tif (asc.equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\tasc = Boolean.FALSE.toString();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tasc = Boolean.TRUE.toString();\n\t\t\t}\n\t\t\tstate.setAttribute (sortAsc_attribute, asc);\n\t\t}\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tComparator comparator = ContentHostingService.newContentHostingComparator(criteria, Boolean.getBoolean(asc));\n\t\t\tstate.setAttribute(comparator_attribute, comparator);\n\t\t\t\n\t\t\t// sort sucessful\n\t\t\t// state.setAttribute (STATE_MODE, MODE_LIST);\n\n\t\t}\t// if-else\n\n\t}", "private String getOrderBy( List<Integer> listSortBy )\n {\n StringBuffer strOrderBy = new StringBuffer( );\n String strReturn = SuggestUtils.EMPTY_STRING;\n int ncpt = 0;\n\n if ( ( listSortBy != null ) && ( listSortBy.size( ) != 0 ) )\n {\n strOrderBy.append( SQL_ORDER_BY );\n\n for ( Integer sort : listSortBy )\n {\n ncpt++;\n\n switch ( sort )\n {\n case SubmitFilter.SORT_BY_DATE_RESPONSE_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_DATE_RESPONSE_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_DATE_RESPONSE_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_DATE_RESPONSE_DESC );\n\n break;\n\n case SubmitFilter.SORT_BY_SCORE_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_SCORE_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_SCORE_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_SCORE_DESC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_COMMENT_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_COMMENT_ENABLE_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_COMMENT_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_COMMENT_ENABLE_DESC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_VIEW_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_VIEW_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_VIEW_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_VIEW_DESC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_VOTE_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_VOTE_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_VOTE_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_VOTE_DESC );\n\n break;\n\n case SubmitFilter.SORT_MANUALLY:\n strOrderBy.append( SQL_FILTER_SORT_MANUALLY );\n\n break;\n\n default:\n break;\n }\n\n if ( ncpt < listSortBy.size( ) )\n {\n strOrderBy.append( \",\" );\n }\n }\n\n strReturn = strOrderBy.toString( );\n\n if ( strReturn.endsWith( \",\" ) )\n {\n strReturn = strReturn.substring( 0, strReturn.length( ) - 1 );\n }\n }\n\n return strReturn;\n }", "boolean isSortAscending();", "public void SortByPrice() {\n for (int i = 1; i < LastIndex; i++) {\n int x = i;\n while (x >= 1) {\n if (ForChild[x - 1].getPrice() > ForChild[x].getPrice()) {\n Confectionery sweets = ForChild[x - 1];\n ForChild[x - 1] = ForChild[x];\n ForChild[x] = sweets;\n\n }\n x -= 1;\n }\n }\n }" ]
[ "0.69436914", "0.67913437", "0.66259193", "0.65364516", "0.6513741", "0.6477468", "0.6457756", "0.6433925", "0.6408935", "0.63749254", "0.6327839", "0.632598", "0.6283207", "0.6271487", "0.625368", "0.62495345", "0.6244339", "0.6239953", "0.6211557", "0.62010515", "0.61625403", "0.6126344", "0.6122365", "0.6122365", "0.6119429", "0.61185783", "0.6115263", "0.6077268", "0.60741353", "0.60551304", "0.60523057", "0.60380614", "0.6034216", "0.60253364", "0.6010516", "0.6009328", "0.6000018", "0.59892696", "0.5985624", "0.5981715", "0.59746313", "0.59691143", "0.596376", "0.59624326", "0.5959541", "0.59558207", "0.59524786", "0.5945565", "0.5941029", "0.5934681", "0.5921729", "0.5919794", "0.59172404", "0.5905238", "0.5900976", "0.589201", "0.5890681", "0.5874212", "0.58737904", "0.58669746", "0.5865607", "0.5859267", "0.5856547", "0.58563876", "0.5854898", "0.585369", "0.58440614", "0.5843105", "0.5841703", "0.58414745", "0.5840567", "0.5836633", "0.58347976", "0.58346754", "0.5833986", "0.5831429", "0.5830791", "0.58290243", "0.5828087", "0.58264726", "0.5813636", "0.58129275", "0.58089334", "0.5806075", "0.5800551", "0.5796014", "0.5791032", "0.5790396", "0.5782969", "0.5775448", "0.57706636", "0.57676816", "0.57670856", "0.5766167", "0.5765443", "0.57635117", "0.5762745", "0.57586855", "0.5749368", "0.57345015", "0.57315505" ]
0.0
-1
This method returns the entire result from the HTTP response.
public static String getResponseFromHttpUrl(URL url) throws IOException { HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); try { InputStream in = urlConnection.getInputStream(); Scanner scanner = new Scanner(in); scanner.useDelimiter("\\A"); boolean hasInput = scanner.hasNext(); if (hasInput) { return scanner.next(); } else { return null; } } finally { urlConnection.disconnect(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getResponse();", "private static String paseResponse(HttpResponse response) {\n\t\tHttpEntity entity = response.getEntity();\n\t\t\n//\t\tlog.info(\"response status: \" + response.getStatusLine());\n\t\tString charset = EntityUtils.getContentCharSet(entity);\n//\t\tlog.info(charset);\n\t\t\n\t\tString body = null;\n\t\ttry {\n if (entity != null) { \n InputStream instreams = entity.getContent(); \n body = convertStreamToString(instreams); \n// System.out.println(\"result:\" + body);\n } \n//\t\t\tlog.info(body);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn body;\n\t}", "String getResponse();", "public String produceResponse() {\n processData();\n return response;\n }", "public Object getResponse ()\r\n {\r\n\r\n return response_;\r\n }", "public synchronized Object getResponse() {\n Object[] resp = new Object[ responses.size() ] ;\n for (int i=0;i<responses.size();i++) {\n resp[i] = responses.get(i) ;\n }\n responses.clear();\n responseChanged = false ;\n numResponses ++ ;\n return resp ;\n }", "public String getResponse()\r\n {\r\n return this.response;\r\n }", "public String getResponse() {\n return response;\n }", "public String getResponse() {\n return response;\n }", "public String getResponse() {\n return response;\n }", "public String getResponse() {\n return response;\n }", "public String getResponse() {\n return response;\n }", "public T getResponse() {\n return response;\n }", "public String getResponseContent() {\n\t\treturn responseContent;\n\t}", "protected T getResponse() {\n return responseData;\n }", "public int getResponse() {return response;}", "public com.google.protobuf.ByteString getResponse(int index) {\n return response_.get(index);\n }", "public Double getResponse( )\n\t{\n\t\treturn response;\n\t}", "private String readResponseBody() {\n try {\n StringBuilder s_buffer = new StringBuilder();\n InputStream is = new BufferedInputStream(httpConn.getInputStream());\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n String inputLine;\n while ((inputLine = br.readLine()) != null) {\n s_buffer.append(inputLine);\n }\n return s_buffer.toString();\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n return null;\n }\n }", "public com.google.protobuf.ByteString getResponse(int index) {\n return response_.get(index);\n }", "public download.Map getResult() {\n return result;\n }", "public String readResponse(HttpResponse httpResp) {\n String response = \"\";\n try {\n int code = httpResp.getStatusLine().getStatusCode();\n Log(\"Response code=\" + code);\n InputStream is = httpResp.getEntity().getContent();\n BufferedReader inb = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder(\"\");\n String line;\n String NL = System.getProperty(\"line.separator\");\n while ((line = inb.readLine()) != null) {\n sb.append(line).append(NL);\n Log(\"Read \" + line);\n }\n inb.close();\n response = sb.toString();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return response;\n }", "public HttpResponseWrapper getResponse() {\n return response;\n }", "public abstract String getResponse();", "public com.github.yeriomin.playstoreapi.ResponseWrapper getResponse() {\n return response_;\n }", "public ClientResponse getResponse() {\n return r;\n }", "public com.rpg.framework.database.Protocol.ResponseCode getResult() {\n return result_;\n }", "public com.rpg.framework.database.Protocol.ResponseCode getResult() {\n return result_;\n }", "public com.rpg.framework.database.Protocol.ResponseCode getResult() {\n return result_;\n }", "private String getBody(CloseableHttpResponse response) throws IOException {\n HttpEntity entity = response.getEntity();\n return EntityUtils.toString(entity, \"UTF-8\");\n }", "public com.rpg.framework.database.Protocol.ResponseCode getResult() {\n return result_;\n }", "public com.rpg.framework.database.Protocol.ResponseCode getResult() {\n return result_;\n }", "public Response getResponse() {\n return response;\n }", "public com.rpg.framework.database.Protocol.ResponseCode getResult() {\n return result_;\n }", "public com.rpg.framework.database.Protocol.ResponseCode getResult() {\n return result_;\n }", "public com.rpg.framework.database.Protocol.ResponseCode getResult() {\n return result_;\n }", "public void parseResponse();", "public com.rpg.framework.database.Protocol.ResponseCode getResult() {\n return result_;\n }", "public com.rpg.framework.database.Protocol.ResponseCode getResult() {\n return result_;\n }", "private static String parseResponse(HttpResponse response) throws Exception {\r\n \t\tString result = null;\r\n \t\tBufferedReader reader = null;\r\n \t\ttry {\r\n \t\t\tHeader contentEncoding = response\r\n \t\t\t\t\t.getFirstHeader(\"Content-Encoding\");\r\n \t\t\tif (contentEncoding != null\r\n \t\t\t\t\t&& contentEncoding.getValue().equalsIgnoreCase(\"gzip\")) {\r\n \t\t\t\treader = new BufferedReader(new InputStreamReader(\r\n \t\t\t\t\t\tnew GZIPInputStream(response.getEntity().getContent())));\r\n \t\t\t} else {\r\n \t\t\t\treader = new BufferedReader(new InputStreamReader(response\r\n \t\t\t\t\t\t.getEntity().getContent()));\r\n \t\t\t}\r\n \t\t\tStringBuilder sb = new StringBuilder();\r\n \t\t\tString line = null;\r\n \r\n \t\t\twhile ((line = reader.readLine()) != null) {\r\n \t\t\t\tsb.append(line + \"\\n\");\r\n \t\t\t}\r\n \t\t\tresult = sb.toString();\r\n \t\t} finally {\r\n \t\t\tif (reader != null) {\r\n \t\t\t\treader.close();\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn result;\r\n \t}", "public java.util.List<com.google.protobuf.ByteString>\n getResponseList() {\n return java.util.Collections.unmodifiableList(response_);\n }", "public static String getAll() {\n Result r = new Result();\n int status = 0;\n if((status = doGetList(r)) != 200) return \"Error from server \"+ status;\n return r.getValue();\n }", "public Result getResult() {\n return result;\n }", "public Result getResult() {\n return result;\n }", "public Result getResults()\r\n {\r\n return result;\r\n }", "com.google.protobuf.ByteString\n getResponseBytes();", "public String getResults() {\r\n return returnObject.getResults();\r\n }", "@Override\n public byte[] execute() {\n return buildResponse();\n }", "public com.webobjects.appserver.WOResponse readResponse(){\n return null; //TODO codavaj!!\n }", "public byte[] getResponseData() {\n return responseData;\n }", "public List <State> getResponse ()\n {\n return response;\n }", "public com.google.search.now.wire.feed.ResponseProto.Response getResponse() {\n return instance.getResponse();\n }", "public com.google.search.now.wire.feed.ResponseProto.Response getResponse() {\n return instance.getResponse();\n }", "public String getResponse() {\n Object ref = response_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n response_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public int getResponse() {\r\n return response;\r\n }", "public synchronized RestResponse getResponse() {\n\t\treturn getContext().getLocalSession().getOpSession().getResponse();\n\t}", "public abstract Response[] collectResponse();", "@Override\n \tpublic Object getResult() {\n \t\treturn result;\n \t}", "public java.util.List<com.google.protobuf.ByteString>\n getResponseList() {\n return response_;\n }", "public String getResponse() throws BooruEngineConnectionException {\n try {\n if (this.mResponse == null){\n StringBuilder response = new StringBuilder();\n BufferedReader reader = new BufferedReader(new InputStreamReader(mConnection.getInputStream()));\n String input;\n while ((input = reader.readLine()) != null) response.append(input);\n reader.close();\n this.mResponse = response.toString();\n }\n return this.mResponse;\n } catch (IOException e){\n mErrStream = mConnection.getErrorStream();\n throw new BooruEngineConnectionException(e);\n\n }\n }", "public Result getResult() {\n\t\treturn this._result;\n\t}", "public com.github.yeriomin.playstoreapi.ResponseWrapper getResponse() {\n if (responseBuilder_ == null) {\n return response_;\n } else {\n return responseBuilder_.getMessage();\n }\n }", "private String readResult() throws IOException {\n return reader.readLine();\n }", "public com.google.protobuf.ByteString\n getResponseBytes() {\n Object ref = response_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n response_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private String doHttpClientGet() {\n\t\t\r\n\t\tHttpGet httpGet=new HttpGet(url);\r\n\t\tHttpClient client=new DefaultHttpClient();\r\n\t\ttry {\r\n\t\t\tHttpResponse response=client.execute(httpGet);\r\n\t\t\tif(response.getStatusLine().getStatusCode()==HttpStatus.SC_OK){\r\n\t\t\t\tresult=EntityUtils.toString(response.getEntity());\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"content----->\"+result);\r\n\t\t} catch (ClientProtocolException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n public Object parseNetworkResponse(Response response, int i) throws Exception {\n return response.body().string();\n }", "public String getResponseString() {\r\n\t\t// TODO - log message if this is ever called\r\n\t\treturn \"\";\r\n\t}", "public String getResponse() {\n Object ref = response_;\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 response_ = s;\n }\n return s;\n }\n }", "private String getContent(HttpResponse response) throws IOException {\n return IOUtils.toString(\n response.getEntity().getContent(),\n StandardCharsets.UTF_8\n );\n }", "public String getBody() {\n\t\tif(body == null) {\n\t\t\ttry {\n\t\t\t\tbody = streamToString(response.getEntity().getContent());\n\t\t\t\treturn body;\n\t\t\t} catch (IllegalStateException e) {\n\t\t\t\tLog.e(Integrum.TAG, e.getStackTrace().toString());\n\t\t\t\treturn \"\";\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(Integrum.TAG, e.getStackTrace().toString());\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t} else {\n\t\t\treturn body;\n\t\t}\n\t}", "public HTTPResponse finish() {\n HTTPResponse response = new HTTPResponse();\n try {\n //create the HTTP connection\n super.CreateConnection();\n //write the JSON data via DataOutputStream\n DataOutputStream dataOutputStream = new DataOutputStream(super.httpConn.getOutputStream());\n dataOutputStream.writeBytes(jsonParam.toString());\n //get the results\n response.setResponseCode(super.httpConn.getResponseCode());\n response.setResponseBody(super.readResponseBody());\n dataOutputStream.flush();\n dataOutputStream.close();\n super.httpConn.disconnect();\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n return response;\n }", "com.google.protobuf.ByteString\n getResponseBytes();", "private String getResponse(InputStream input) throws IOException {\n\t\ttry (BufferedReader buffer = new BufferedReader(new InputStreamReader(input))) {\n\t\t\treturn buffer.lines().collect(Collectors.joining(\"\\n\"));\n\t\t}\n\t}", "@Override\n\tpublic Result getResult() {\n\t\treturn m_Result;\n\t}", "public String getResponseBody() {\n return this.responseBody;\n }", "private static String getHTTPResponse(URL url){\n\t\t\n\t\tStringBuilder response = new StringBuilder();\n\t\t\n\t\ttry{\n\t\t\tURLConnection connection = url.openConnection();\n\t\t\tBufferedReader res = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\t\t\tString responseLine;\n\t\t\t\n\t\t\twhile((responseLine = res.readLine()) != null)\n\t\t\t\tresponse.append(responseLine);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t\treturn response.toString();\n\t}", "protected R getResult() {\n\t\treturn result;\n\t}", "public String getResult()\n {\n return result;\n }", "private ArrayList<String> getHttpResponseString(String urlStr) {\n\t\ttry {\n\n\t\t\tURL url = new URL(urlStr);\n\t\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\t\tconn.setRequestMethod(\"GET\");\n\n\t\t\tconn.setRequestProperty(\"Accept\", \"application/json\");\n\t\t\t\n\t\t\tif (conn.getResponseCode() != 200) {\n\t\t\t\tSystem.out.println(\"Connection Failed with \" + urlStr + \" with HTTP error code: \" + conn.getResponseCode());\n\t\t\t\tif (conn.getResponseCode() == 401) {\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader((conn.getInputStream())));\n\n\t\t\tArrayList<String> output = \"\";// br.readLine();\n\t\t\tString line = \"\";\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\toutput += line;\n\t\t\t}\n\n\t\t\tconn.disconnect();\n\t\t\treturn output;\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public com.google.protobuf.ByteString\n getResponseBytes() {\n Object ref = response_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n response_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getStringResponse() {\r\n\r\n\t\tString responseStr=null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tCloseableHttpResponse response= postSoapRequest(\"getDealList_Request\",baseURI);\r\n\r\n\t\t\tresponseStr=EntityUtils.toString(response.getEntity(),\"UTF-8\");\r\n\r\n\t\t\tSystem.out.println(\"Response in String formate =\"+responseStr);\r\n\r\n\t\t} catch (ParseException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\r\n\t\treturn responseStr;\r\n\r\n\r\n\r\n\t}", "public java.lang.String getResponseBody() {\n return instance.getResponseBody();\n }", "public java.lang.String getResponseBody() {\n return responseBody_;\n }", "public String getResult()\r\n\t{\r\n\t\treturn result;\r\n\t}", "public Map<String, Object> getResult() {\n return mRes;\n }", "public SynchronizationResponse getResult() {\n return _response;\n }", "public String getResult() {\n return result;\n }", "public String getResult() {\n return result;\n }", "public String getResult() {\n return result;\n }", "private static String readResponse(HttpResponse response)\n throws IOException\n {\n HttpEntity responseEntity = response.getEntity();\n if (responseEntity.getContentLength() == 0)\n {\n return \"\";\n }\n byte[] content = StreamUtils.read(responseEntity.getContent());\n return new String(content, \"UTF-8\");\n }", "public String getResponse() {\n\t\treturn value;\n\t}", "@Override\n public void processResult(HttpResponseMessage response) {\n }", "public String getResult() \n\t{\n\t\treturn strResult;\n\t}", "public GrizzletResponse getResponse();", "public ServletResponse getResponse();", "public br.com.sergio.wallet.Response getResponse() {\n br.com.sergio.wallet.Response result = br.com.sergio.wallet.Response.valueOf(response_);\n return result == null ? br.com.sergio.wallet.Response.UNRECOGNIZED : result;\n }", "public String getResponse() {\n return this.applicationState.getResponse();\n }", "public byte[] getResponseBody() {\n if (this.responseBody == null) {\n try {\n InputStream instream = getResponseBodyAsStream();\n if (instream != null) {\n LOG.debug(\"Buffering response body\");\n ByteArrayOutputStream outstream = new ByteArrayOutputStream();\n byte[] buffer = new byte[4096];\n int len;\n while ((len = instream.read(buffer)) > 0) {\n outstream.write(buffer, 0, len);\n }\n outstream.close();\n setResponseStream(null);\n this.responseBody = outstream.toByteArray();\n }\n } catch (IOException e) {\n LOG.error(\"I/O failure reading response body\", e);\n this.responseBody = null;\n }\n }\n return this.responseBody;\n }", "entities.Torrent.ChunkResponse getChunkResponse();", "com.google.protobuf.ByteString getResponse(int index);", "@Override\r\n public Reader contentReader() {\r\n try {\r\n return okResponse.body().charStream();\r\n } catch (IOException e) {\r\n throw fail(e);\r\n }\r\n }" ]
[ "0.6983338", "0.6791096", "0.6661941", "0.6621642", "0.65974313", "0.6528623", "0.6512443", "0.65030444", "0.65030444", "0.65030444", "0.65030444", "0.65030444", "0.6462374", "0.64320314", "0.64027375", "0.6311549", "0.6288311", "0.6270195", "0.625211", "0.6236235", "0.6229648", "0.6225751", "0.62203807", "0.6212897", "0.61836636", "0.61582595", "0.61528826", "0.61528826", "0.61528826", "0.6152471", "0.6151909", "0.6151909", "0.61382085", "0.6124446", "0.61238396", "0.61238396", "0.6123755", "0.61232406", "0.61232406", "0.6102156", "0.6098319", "0.6081337", "0.60768783", "0.6074039", "0.6068775", "0.6065379", "0.6056588", "0.6029662", "0.6025077", "0.6017905", "0.6017335", "0.6014644", "0.6014644", "0.60075223", "0.60053825", "0.6000752", "0.5994373", "0.59699965", "0.5962804", "0.5961896", "0.5954977", "0.5954766", "0.59502816", "0.5941015", "0.5934956", "0.59162426", "0.59139353", "0.59127223", "0.588566", "0.5881255", "0.5880286", "0.5869939", "0.58607036", "0.5855576", "0.5840165", "0.5823387", "0.5821037", "0.5812445", "0.58069474", "0.5802663", "0.5798515", "0.5794041", "0.5788954", "0.57777786", "0.5766591", "0.5753131", "0.5750979", "0.5750979", "0.5750979", "0.5748351", "0.57409275", "0.57372504", "0.57312584", "0.5726557", "0.57072675", "0.56948483", "0.5684965", "0.56822175", "0.5681824", "0.5681384", "0.5679465" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int[] a = {22, 99, 55, 11}; quickSort(a, 0, a.length); for(int i=0; i<a.length; i++) { System.out.println(a[i]); } }
{ "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
Responses to Hyperlink activation.
public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { JEditorPane pane = (JEditorPane) e.getSource(); if (e instanceof HTMLFrameHyperlinkEvent) { HTMLFrameHyperlinkEvent evt = (HTMLFrameHyperlinkEvent)e; HTMLDocument doc = (HTMLDocument)pane.getDocument(); doc.processHTMLFrameHyperlinkEvent(evt); } else { try { pane.setPage(e.getURL()); } catch (Throwable t) { t.printStackTrace(); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateEnquireLink();", "public boolean get_hyperlink_policy(){\n\t\treturn(this.activate_hyperlinks);\n\t}", "public java.lang.CharSequence getResponseLink() {\n return ResponseLink;\n }", "@RequestMapping(value = \"/link\", method = RequestMethod.GET)\n\tString link() {\n\t\ttry {\n\t\t\thueUseCase.linkBridgeWithNewUser();\n\t\t} catch (NullPointerException e) {\n\t\t\t// User did not press the Bridge button.\n\t\t\tSonarUtil.swallowException(e);\n\t\t\treturn \"setup\";\n\t\t}\n\n\t\treturn \"redirect:/configdata\";\n\t}", "public java.lang.CharSequence getResponseLink() {\n return ResponseLink;\n }", "@And(\"^I goto Activation Page$\")\r\n\t\r\n\tpublic void I_goto_Activation_Page() throws Exception {\r\n\t\t\r\n\t\tenduser.click_activationTab();\r\n\t\t\r\n\t}", "@Test\n\tpublic void demoqaLinkIsClickable() {\n\t\tassertTrue(ServicesLogic.demoqaLinkIsClickable());\n\t}", "public void hyperlinkUpdate(HyperlinkEvent event) {\r\n\t\t// TODO add open link in default browser\r\n\t\tif (event.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\r\n\t\t\ttry {\r\n\t\t\t\th.setPage(event.getURL());\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tioe.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public IHyperLink attachLink()\n throws OculusException;", "HtmlPage clickLink();", "public boolean hasResponseLink() {\n return fieldSetFlags()[7];\n }", "public void hyperlinkUpdate(HyperlinkEvent e){\n\t\tif(e.getEventType() == HyperlinkEvent.EventType.ACTIVATED){\n\t\t\t\n\t\t\t\t// Take the link-URL clicked, simplify, and open in browser.\n\t\t\t\t// Simplification involves conversion to an ASCII character\n\t\t\t \t// set (to weed out any unusual characters).\n\t\t\tString ascii_url;\n\t\t\ttry{ascii_url = e.getURL().toString();\n\t\t\t\tascii_url = new URL(ascii_url).toURI().toASCIIString();\n\t\t\t} catch(Exception exception){\n\t\t\t\tgui_globals.open_url(this, e.getURL().toString());\n\t\t\t\treturn; \n\t\t\t} // If conversion fails, just pass off to the browser, which\n\t\t\t // may also fail, but will show a graphical warning message.\n\t\t\t\n\t\t\tgui_globals.open_url(this, ascii_url);\n\t\t}\n\t}", "public void activate();", "@Override\r\n public String getAGBLink() {\r\n return HOSTER + \"/regulamin\";\r\n }", "public void hyperlinkUpdate(HyperlinkEvent e)\n {\n if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)\n {\n ServiceReference<BrowserLauncherService> serviceReference =\n BrandingActivator.getBundleContext().getServiceReference(\n BrowserLauncherService.class);\n\n if (serviceReference != null)\n {\n BrowserLauncherService browserLauncherService\n = BrandingActivator\n .getBundleContext().getService(serviceReference);\n\n browserLauncherService.openURL(e.getDescription());\n }\n }\n }", "public boolean activate();", "public void setResponseLink(java.lang.CharSequence value) {\n this.ResponseLink = value;\n }", "public void activate() {\t\t\n\t\t// Put activation code here (computing output based on the network's inputs)\n }", "@Override\n\tpublic void activate() throws Exception {\n\t\tValueMap props = getPageProperties();\n\t\tString[] imageLink = (String[]) props.get(\"bannerImages\",String[].class);\n\t\t//formatedBannerImages = imageLink[1];\n\t\tformatBannerLinks(imageLink);\n\t}", "public void activate()\n {\n }", "public String getLink();", "public ModelAndView activateAccount(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) {\r\n\t\tInstAdminRegistrationInfo input = new InstAdminRegistrationInfo();\r\n HttpSession session = request.getSession(true);\r\n\t\t\r\n input.setUserId(request.getParameter(\"userId\"));\r\n input.setInstituteName(request.getParameter(\"instituteName\"));\r\n input.setInstituteNickName(request.getParameter(\"instituteNickName\"));\r\n input.setCity(request.getParameter(\"city\"));\r\n input.setState(request.getParameter(\"state\"));\r\n input.setCountry(request.getParameter(\"country\"));\r\n input.setPrimaryEmailId(request.getParameter(\"adminEmail\"));\r\n int i = instAdminRegistrationDAO.updateRequestStatus(input);\r\n\t\tif (i > 0) {\r\n\t\t\treturn new ModelAndView(\"sendpassword/accountInfo\", \"info\",\r\n\t\t\t\t\t\"Account request confirmed successfully.\");\r\n\t\t} else {\r\n\t\t\treturn new ModelAndView(\"sendpassword/accountInfo\", \"info\",\r\n\t\t\t\t\t\"Page Expired.\");\r\n\t\t}\r\n\t}", "public void set_hyperlink_policy(boolean activate){\n\t\t\n\t\tif(this.activate_hyperlinks != activate){\n\t\t\tthis.activate_hyperlinks = activate;\n\t\t\t\n\t\t\t\t// Realize that if we try to set the hyperlink policy very\n\t\t\t\t// early (i.e., when the \"appearance\" menu initializes and\n\t\t\t\t// tries to read/pass this setting from config), then the\n\t\t\t\t// browser might not have content; leading to null exception.\n\t\t\t\t// Here that exception is caught and ignored.\n\t\t\ttry{if(activate) // Refresh currently displayed diff\n\t\t\t\t\tbrowser.setText(cur_content.content_linked);\n\t\t\t\telse browser.setText(cur_content.content);\n\t\t\t} catch(NullPointerException e){}\n\t\t} // only refresh/change if policy is different from previous\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n String bsn = request.getParameter(\"bsn\");\n String uuid = request.getParameter(\"uuid\");\n if (service.ActivateUser(bsn, uuid)) { \n PrintWriter out = response.getWriter();\n out.println(\"Uw account is succesvol geregistreerd. U kunt nu inloggen op de website van de Rekeningrijder.\");\n }\n else {\n PrintWriter out = response.getWriter();\n out.println(\"Registratie is mislukt. Mogelijk is de link verlopen of is de account al geactiveerd.\");\n }\n } catch (Exception ex) {\n PrintWriter out = response.getWriter();\n out.println(\"Er is een fout opgetreden: \" + ex.toString());\n }\n }", "public void activate() {\n\t\tactivated = true;\n\t}", "void activateUser(String email, String activationToken);", "public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}", "public void activate(){\n callback.action();\n }", "public void activate(){\r\n\r\n\t}", "@RequestMapping(value = \"/activate/{key}\", method = RequestMethod.GET)\n public final String activate(@PathVariable(\"key\") final String key,\n final ModelMap modelMap) {\n\n final boolean status = userDetailsService.activateUser(key);\n\n if (!status) {\n modelMap.put(\"error\", true);\n }\n\n return \"activate\";\n }", "@Override\n\tpublic boolean activate() {\n\t\treturn true;\n\t}", "public final boolean isHyperlink() {\n return hyperlink != null;\n }", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "public void linkAccount() {}", "public static URL getUrlForActivateCar()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/connected_account_services/vehicle_activation\";\r\n return str2url( strUrl );\r\n }", "public Hyperlink(){\n this.href = \"\";\n this.text = new TextSpan(\"\");\n }", "@When(\"^user clicks on Register link$\")\r\n public void user_clicks_on_Register_link() throws Throwable {\n throw new PendingException();\r\n }", "boolean hasAccountLink();", "String getLink();", "public boolean completelink() throws Exception {\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(completelink);\r\n\t\t\t\tflag = element.isDisplayed() && element.isEnabled();\r\n\t\t\t\tAssert.assertTrue(flag, \"Complete link is not dispalyed and enabled\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"USER NAME NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn flag;\r\n\t\t}", "public String getLinkStatus() {\n return linkStatus;\n }", "HtmlPage clickSiteLink();", "@Override\n\tpublic void activate() {\n\t}", "@Override\n\tpublic void activate() {\n\t}", "@Override\n public void activate() {\n \n }", "public void verifyRegisterLink() {\n registerLink.assertState().enabled();\n registerLink.assertContains().text(\"Register\");\n }", "@Override\n\tpublic void activate() {\n\t\t\n\t}", "public void activate() throws JBIException {\n count++;\n if(count != 1)\n return;\n if (_serviceref == null) {\n ServiceEndpoint[] candidates = _ode.getContext().getExternalEndpointsForService(_endpoint.serviceName);\n if (candidates.length != 0) {\n _external = candidates[0];\n }\n }\n _internal = _ode.getContext().activateEndpoint(_endpoint.serviceName, _endpoint.portName);\n if (__log.isDebugEnabled()) {\n __log.debug(\"Activated endpoint \" + _endpoint);\n }\n // TODO: Is there a race situation here?\n }", "public OntologyLinkModeTool()\n \t{\n \tedu.tufts.vue.ontology.ui.OntologyBrowser.getBrowser().addOntologySelectionListener(this);\n \t//creationLink.setID(\"<creationLink>\"); // can't use label or it will draw one \n \t//invisibleLinkEndpoint.addLinkRef(creationLink);\n \tcreationLink=null;\n invisibleLinkEndpoint.setSize(0,0);\n \n \t}", "public String verifyLinkIsActive(String object, String data) {\n\n\t\ttry {\n\n\t\t\tWebElement link = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object))));\n\t\t\tif (link.getAttribute(OR.getProperty(\"ATTRIBUTE_CLASS\")).equals(OR.getProperty(\"CLASS_VALUE_ACTIVE\"))) {\n\t\t\t\treturn Constants.KEYWORD_PASS + \"Link is Active\";\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\treturn Constants.KEYWORD_FAIL + \"Link is InActive\";\n\t\t\t}\n\n\t\t} \n\t\tcatch(TimeoutException ex)\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + e.getMessage();\n\t\t}\n\t}", "private void activationON() {\n\n switch(afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.activatedContents();\n shell.layout();\n break;\n case AFFICHE_USER :\n ecranUser.activatedContents();\n shell.layout();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.activatedContents();\n shell.layout();\n break;\n default: break;\n }\n\n }", "public void clickOnEngagementLink() {\n getLogger().info(\"Click on engagement link\");\n try {\n waitForClickableOfElement(eleEngagementLink, \"Wait for click on engagement link\");\n clickElement(eleEngagementLink, \"Click on engagement\");\n NXGReports.addStep(\"Verify click on engagement link \", LogAs.PASSED, null);\n } catch (Exception ex) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify click on engagement link \", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }", "public abstract void activate();", "public abstract void activate();", "private Hyperlink makeHyperlink(){\n\t\tHyperlink ret = new Hyperlink();\n\t\tret.setId(\"variable\");\n\t\tret.setOnMouseClicked(e -> clickedVariable(ret));\n\t\tvBox.getChildren().add(ret);\n\t\treturn ret;\n\t}", "public boolean getAutolink()\r\n {\r\n return (m_autolink);\r\n }", "protected APPAAnnounce() {\n\n url = AppaLounge.BASE_URL + \"announcements/2/\";\n\n }", "public void onActivation() { }", "public void verifyAccessibilityLink() {\n accessibilityFooterLink.assertState().enabled();\n accessibilityFooterLink.assertContains().text(\"Accessibility\");\n }", "@ApiModelProperty(value = \"Hyperlink reference to the target specification\")\n\n\n public String getHref() {\n return href;\n }", "void activate();", "void activate();", "void activate(ExtendableServer server);", "@RequestMapping(value=\"/product/{id}/activation\" , method=RequestMethod.POST)\r\n\tpublic String activateProductHandler(@PathVariable int id) {\r\n\t\t\r\n\t\t//Fetching the product on basis of id coming from front end data table\r\n\t\tProduct product = productDAO.get(id);\r\n\t\t//updating product status to true or false dependin g on their existing status\r\n\t\tproduct.setActive(!product.isActive());\r\n\t\tboolean isActive = product.isActive();\r\n\t\tproductDAO.update(product);\r\n\t\treturn (isActive)? \"The product with id \" + product.getId() + \"is deactivated\" \r\n\t\t\t\t\t\t: \t \"The product with id \" + product.getId() + \"is activated\" ;\r\n\t}", "public void AdminLink(){\n\t\tAdminLink.click();\n\t}", "public String getHref() {\n return href;\n }", "@Then(\"component links are displaying\")\n public void component_links_are_displaying() {\n }", "@Override\n public void activate() {\n\n }", "private void doActivation() {\n OnFieldActivated activateEvent = new OnFieldActivated(this::finishReset);\n activateEvent.beginTask();\n DefenceField.getShrineEntity().send(activateEvent);\n activateEvent.finishTask();\n }", "public void entityActivated() throws javax.slee.resource.ResourceException {\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger.debug(\"entityActivated() \");\r\n \t\t}\r\n \t\t\r\n \t\ttry {\r\n \t\t\t\r\n \t\t\t// SO EACH ACTIVITY CAN HAVE ACCESS TO SOME NEEDED METHODS DEFINED\r\n \t\t\t// BY THIS INTERFACE, THIS WAY WE DONT HAVE TO WORRY ABOUT PASSING\r\n \t\t\t// IT TO CONSTRUCTOR.\r\n \t\t\tinitializeNamingContextBindings();\r\n \t\t\thttpRaSbbinterface = new HttpServletRaSbbInterfaceImpl(this);\r\n \t\t\tactivities = new ConcurrentHashMap();\r\n \t\t\trequestLock = new RequestLock();\r\n \r\n \t\t} catch (NamingException e) {\r\n \t\t\tthrow new javax.slee.resource.ResourceException(\r\n \t\t\t\t\t\"entityActivated(): Failed to activate HttpServlet RA\",\r\n \t\t\t\t\te);\r\n \t\t}\r\n \t}", "@When(\"^Click on Compose hyperlink icon$\")\npublic void click_on_Compose_hyperlink_icon() throws Throwable \n{\n\tWebElement p=driver.findElement(By.partialLinkText(\"Compose\"));\n p.click();\n System.out.println(\"Page title after link click : \" + driver.getTitle());\n \n\n\n}", "String nextLink();", "public String getHref() {\r\n return href;\r\n }", "public void clickOnAutoresponse() throws Exception {\n\t\twdriver.findElement(By.xpath(WebData.autoresponses)).isDisplayed();\n\t\twdriver.findElement(By.xpath(WebData.autoresponses)).click();\n\t}", "public void activate(){\r\n\t\tactive=true;\r\n\t}", "public byte[] sendSmppEnquireLink() {\n try {\n byte[] response = this.pduSender().sendEnquireLink(new ByteArrayOutputStream(atomicInteger.get()), atomicInteger.addAndGet(1));\n System.out.println(Arrays.toString(response));\n return response;\n } catch (IOException e) {\n throw new RuntimeException(\"Error occurred during sendEnquireLink\");\n }\n }", "public void clickLink(String link){\n\t\tSystem.out.println(\"CONTROLLER: LINK WAS CLICKED: \" + link);\n\t\tURL url_ = null;\n\t\ttry{\n\t\t\turl_ = new URL(new URL(this.url), link);\n\t\t\tthis.content = BrowsrDocumentValidator.assertIsValidBrowsrDocument(url_);\n\t\t\tthis.url = url_.toString();\n\t\t\tSystem.out.println(\"URL CONTROLLER:\" + this.url);\n\t\t} catch (Exception exception){\n\t\t\tthis.content = new Text(exception.toString());\n\t\t}\n\n\t}", "@Test\n public void testLink() {\n try {\n Message email = emailUtils.getMessagesBySubject(\"You've received a document via HelloSign\", true, 5)[0];\n String link = emailUtils.getUrlsFromMessage(email, Data.mainUrl + \"/t\").get(0);\n\n driver.get(link);\n\n //TODO: continue testing\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "public void activateOptions() {\n if (!isActive()) {\n setActive(true);\n if (advertiseViaMulticastDNS) {\n zeroConf = new ZeroConfSupport(ZONE, port, getName());\n zeroConf.advertise();\n }\n\n fireConnector(false);\n }\n }", "public static cryptix.util.core.LinkStatus getLinkStatus() { return linkStatus; }", "protected void doActivate() throws FndException\n {\n }", "public void activateWings() {\n\t\tSystem.out.println(\"Wings are activated\");\n\t}", "public String getLink() {\n return link;\n }", "public String getHref() {\n return href;\n }", "public String getLink() {\r\n return link;\r\n }", "public void verifyHhsLink() {\n dhhsFooterLink.assertState().enabled();\n dhhsFooterLink.assertContains().text(\"Department of Health & Human Services\");\n }", "String getHref();", "void openLink(Link target);", "public void completeRuleHTTP_HMethod(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {\n\t\t// subclasses may override\n\t}", "@Override public void activated() {\n\t\t\tApiDemo.INSTANCE.controller().reqFundamentals(m_contract, FundamentalType.ReportRatios, this);\n\t\t}", "private boolean getLinks() {\n return false;\n }", "public String link() {\n return DevRant.BASE_URL + DevRant.RANT_URL + '/' + getId();\n }", "public String getLink()\n {\n return link;\n }", "void askLeaderCardActivation();", "public void getLinks() {\n\n var client = HttpClient.newBuilder()\n .followRedirects(HttpClient.Redirect.ALWAYS)\n .build();\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(URL_PREFIX))\n .build();\n client.sendAsync(request, HttpResponse.BodyHandlers.ofLines())\n .thenApply(HttpResponse::body)\n .thenApply(this::processLines)\n .thenApply(versions -> tasks(versions))\n .join();\n }", "public boolean getActivate() {\r\n return Activate;\r\n }", "public String getLink() {\n return link;\n }", "public String getLink() {\n return link;\n }", "public String getLink() {\n return link;\n }", "public String getLink() {\n return link;\n }" ]
[ "0.5999804", "0.5926349", "0.58076197", "0.5802432", "0.5793948", "0.5582", "0.5378127", "0.5351467", "0.5345517", "0.5339925", "0.53251594", "0.52951753", "0.525595", "0.5251838", "0.52501655", "0.5247585", "0.5228779", "0.5139181", "0.51095027", "0.50988346", "0.50908476", "0.507976", "0.50794196", "0.5064903", "0.506456", "0.5060687", "0.50512165", "0.5049682", "0.50479543", "0.5026961", "0.5000693", "0.50000787", "0.49953336", "0.49953336", "0.4993864", "0.4989973", "0.49827418", "0.49705642", "0.49677128", "0.49346775", "0.49341968", "0.4930066", "0.49280488", "0.49085063", "0.49085063", "0.4907577", "0.49066806", "0.49055612", "0.49041513", "0.49019656", "0.48791483", "0.48731494", "0.48659983", "0.48501503", "0.48501503", "0.4848683", "0.4847728", "0.4842442", "0.48344585", "0.48316696", "0.482627", "0.48238745", "0.48238745", "0.4812527", "0.48094583", "0.4803371", "0.47851273", "0.47847095", "0.47714403", "0.47679913", "0.47619677", "0.47613782", "0.47545284", "0.4745371", "0.4741301", "0.4730257", "0.47246206", "0.4721573", "0.47193432", "0.47191942", "0.47191066", "0.4713427", "0.47111645", "0.47097307", "0.47089362", "0.47080305", "0.4707101", "0.4698636", "0.46979916", "0.46805248", "0.4680233", "0.46801403", "0.46797696", "0.46783388", "0.4668746", "0.46684283", "0.46662626", "0.46544108", "0.46544108", "0.46544108", "0.46544108" ]
0.0
-1
Transform NULL into null
@Deprecated public static Object stripNULL(Object obj) { if (obj == null) { throw new NullPointerException(); } if (Null.getInstance().equals(obj)) { return null; } return obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Value makeNull() {\n return theNull;\n }", "public static String nullConv(String value){\r\n\t\tif(value==null){\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "T getNullValue();", "T getNullRepresentation();", "@Override\n public void setNull() {\n\n }", "public static String removeNull(Object value) {\r\n String valueToReturn = EMPTY_STRING_INDICATOR;\r\n\r\n if(value instanceof String) {\r\n valueToReturn = removeNullString((String) value);\r\n } else if(value instanceof Integer) {\r\n valueToReturn = removeNullInteger((Integer) value);\r\n } else if(value instanceof Date) {\r\n valueToReturn = removeNullDate((Date) value);\r\n } else if(value instanceof Boolean) {\r\n valueToReturn = removeNullBoolean((Boolean) value);\r\n } else if(value instanceof BigDecimal) {\r\n valueToReturn = removeNullBigDecimal((BigDecimal) value);\r\n } else if(value instanceof Long) {\r\n valueToReturn = removeNullLong((Long) value);\r\n }\r\n\r\n return valueToReturn;\r\n }", "@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}", "@Override\n\tpublic void visit(NullValue arg0) {\n\n\t}", "protected <T> T emptyToNull(T obj) {\r\n if (isEmpty(obj)) {\r\n return null;\r\n } else {\r\n return obj;\r\n }\r\n }", "@Override\n\tpublic void visit(NullValue arg0) {\n\t\t\n\t}", "public static String nullToBlank(Object texto) {\n try {\n if (texto == null) {\n return \"\";\n }\n if (texto.toString().trim().equals(\"null\")) {\n return \"\";\n }\n return texto.toString().trim();\n } catch (Exception e) {\n return \"\";\n }\n\n }", "public void setValueNull()\n\t{\n\t\tallValues.clear();\n\t}", "protected abstract Object convertNonNull(Object o);", "ExprNull createExprNull();", "NullValue createNullValue();", "NullValue createNullValue();", "public static String convertNULLtoString(Object object) {\n return object == null ? EMPTY : object.toString();\n }", "private void removeNulls( State state)\n {\n StackOp[] shifts = new StackOp[ state.stackOps.length - 1];\n for( int i=0, j=0; j < shifts.length; i++)\n {\n if ( state.stackOps[ i] != nullShift)\n shifts[ j++] = state.stackOps[ i];\n }\n state.stackOps = shifts;\n }", "void writeNullObject() throws SAXException {\n workAttrs.clear();\n addIdAttribute(workAttrs, \"0\");\n XmlElementName elemName = uimaTypeName2XmiElementName(\"uima.cas.NULL\");\n startElement(elemName, workAttrs, 0);\n endElement(elemName);\n }", "@Override\n public String visit(NullLiteralExpr n, Object arg) {\n return null;\n }", "@Override\n\tpublic void flagNull() {\n\t\t\n\t}", "boolean isNullOmittable();", "public static String nullToEmpty ( final String n )\n {\n return null == n ? \"\" : n;\n }", "@Override\r\n\tpublic void visit(NullExpression nullExpression) {\n\r\n\t}", "public static String formatNull() {\n\t\treturn \"null\";\n\t}", "public String replaceMissingWithNull(String value);", "String getDefaultNull();", "public static String convertNullToBlank(String s) {\n \tif(s==null) return \"\";\n \treturn s;\n }", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\n\t}", "private void serializeNull(final StringBuffer buffer)\n {\n buffer.append(\"N;\");\n }", "public void visitACONST_NULL(ACONST_NULL o){\n\t\t// Nothing needs to be done here.\n\t}", "public static String nullToEmpty(String string)\r\n {\r\n return (string == null)?\"\":string;\r\n }", "public T caseNullDirective(NullDirective object)\n\t{\n\t\treturn null;\n\t}", "public static Transformer nullTransformer() {\n return NULL_TRANSFORMER;\n }", "public static String trimAndConvertEmptyToNull(String str) {\n\n\t\tif (str == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString newStr = str.trim();\n\n\t\tif (newStr.length() < 1) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn newStr;\n\t}", "@Override public Type make_nil(byte nil) { return make(nil,_any); }", "public T caseNullLiteral(NullLiteral object)\n {\n return null;\n }", "private void replaceNullKeyWithEmptyString(PFXExtensionType extensionType, ObjectNode node) {\n Set<String> existingFields = getExistingFields(node);\n\n Set<String> missingFields = extensionType.getBusinessKeys();\n missingFields.removeAll(existingFields);\n\n for (String missingField : missingFields) {\n if (node.get(missingField) == null || node.get(missingField).isMissingNode() ||\n node.get(missingField).textValue() == null) {\n node.put(missingField, StringUtils.EMPTY);\n }\n }\n }", "private String replaceNull(Time s) {\n\t\treturn s == null ? \"--\" : s.toString();\n\t}", "public static float nullToZero(Float f)\n {\n if(f == null)\n {\n return 0;\n }\n else\n {\n return f.floatValue();\n }\n }", "private String getNullValueText() {\n return getNull();\n }", "public void unsetNullFlavor()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(NULLFLAVOR$28);\n }\n }", "public String getNullAttribute();", "public static <E> Function<E, E> replaceNullWith(E val) {\r\n\t\treturn new ReplaceNulls<E>(val);\n\t}", "@Impure\n public abstract void encodeNull(int typeCode) throws DatabaseException;", "public M cssePostionNull(){if(this.get(\"cssePostionNot\")==null)this.put(\"cssePostionNot\", \"\");this.put(\"cssePostion\", null);return this;}", "private String setNullIfEmpty(String in) {\n if (in != null && in.trim().length() == 0) {\n return null;\n }\n return in;\n }", "private String notNull(String value) {\n return value != null ? value : \"\";\n }", "public M cssePersonNull(){if(this.get(\"cssePersonNot\")==null)this.put(\"cssePersonNot\", \"\");this.put(\"cssePerson\", null);return this;}", "private void createNullSet()\n\t{\n\t\tm_values = null;\n\t}", "static String emptyToNull(String value) {\n if (value == null || value.trim().isEmpty())\n return null;\n return value.trim();\n }", "public T caseNullLiteralExpCS(NullLiteralExpCS object) {\r\n return null;\r\n }", "public M csmiPersonNull(){if(this.get(\"csmiPersonNot\")==null)this.put(\"csmiPersonNot\", \"\");this.put(\"csmiPerson\", null);return this;}", "private void nullColumns(List columns)\n {\n for (Iterator iterator = columns.iterator(); iterator.hasNext(); )\n {\n setColumnNullInternal((String) iterator.next());\n }\n }", "protected static <U, V extends U> U replaceNull(U original, V replacement) {\n\n // Check if the replacement object is null.\n if (replacement == null) {\n throw new IllegalArgumentException(\"The replacement object cannot be null.\");\n }\n\n return (original == null) ? replacement : original;\n }", "public static String mapEmptyToNull(String strIn)\r\n {\r\n if (strIn == null || strIn.trim().equals(\"\"))\r\n {\r\n return null;\r\n }\r\n return strIn;\r\n }", "public M csolFromNull(){if(this.get(\"csolFromNot\")==null)this.put(\"csolFromNot\", \"\");this.put(\"csolFrom\", null);return this;}", "protected Object calcRightNullRow()\n {\n return null;\n }", "private void setColumnNullInternal(String column)\n {\n data.put(canonicalize(column), NULL_OBJECT);\n }", "protected void writeNullValue() throws IOException {\n _generator.writeNull();\n }", "public static String emptyToNull(String string)\r\n {\r\n return TextUtil.isEmpty(string)?null:string;\r\n }", "public static String null2String(Object obj) {\n\t\treturn obj == null ? \"\" : obj.toString();\n\t}", "@Test(expected = NullPointerException.class)\n public void givenNullValueShouldReturnNullPointerException() {\n transpose.setString(null);\n }", "public M csmiRelationNull(){if(this.get(\"csmiRelationNot\")==null)this.put(\"csmiRelationNot\", \"\");this.put(\"csmiRelation\", null);return this;}", "private void setNulls() {\n mEnum = null;\n mString = null;\n mCharSequence = null;\n //mBoolean = true;\n mBoolByte = BooleanDataType.NULL;\n mChar = CharDataType.NULL;\n mDateTime = DateTimeDataType.NULL;\n mTimeOfDay = TimeOfDayDataType.NULL;\n\n mByte = IntegerDataType.INT8_NULL;\n mShort = IntegerDataType.INT16_NULL;\n mInt = IntegerDataType.INT32_NULL;\n mInt48 = IntegerDataType.INT48_NULL;\n mLong = IntegerDataType.INT64_NULL;\n mFloat = FloatDataType.IEEE32_NULL;\n mDouble = FloatDataType.IEEE64_NULL;\n //mDouble2 = FloatDataType.IEEE64_NULL;\n mPUINT30 = IntegerDataType.PUINT30_NULL;\n mPUINT61 = IntegerDataType.PUINT61_NULL;\n mPIneterval = IntegerDataType.PINTERVAL_NULL;\n mSCALE_AUTO = FloatDataType.DECIMAL_NULL;\n mSCALE4 = FloatDataType.DECIMAL_NULL;\n }", "public M csmiCertifyTypeNull(){if(this.get(\"csmiCertifyTypeNot\")==null)this.put(\"csmiCertifyTypeNot\", \"\");this.put(\"csmiCertifyType\", null);return this;}", "private static String null2unknown(String in) {\r\n\t\tif (in == null || in.length() == 0) {\r\n\t\t\treturn null;\r\n\t\t} else {\r\n\t\t\treturn in;\r\n\t\t}\r\n\t}", "@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}", "private String bindNull() {\n String op;\n \n if (operator == null) {\n op = null;\n } else if (operator.equals(\"=\")) {\n op = \"IS\";\n } else if (operator.equals(\"!=\")) {\n op = \"IS NOT\";\n } else {\n op = operator;\n }\n if (column != null && skipNulls) {\n return \"1 = 1\";\n } else {\n return cond(column, op, \"NULL\");\n }\n }", "public void visitIFNULL(IFNULL o){\n\t\tif (!(stack().peek() instanceof ReferenceType)){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of a ReferenceType, but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\treferenceTypeIsInitialized(o, (ReferenceType) (stack().peek()) );\t\n\t}", "@Override\n public String visit(CastExpr n, Object arg) {\n return null;\n }", "public M csrtMoneyTypeNull(){if(this.get(\"csrtMoneyTypeNot\")==null)this.put(\"csrtMoneyTypeNot\", \"\");this.put(\"csrtMoneyType\", null);return this;}", "boolean isNull();", "@Override\n public void writeNull(FieldDefinition di) {\n if (inArray) {\n arr.addNull();\n } else if (writeNulls) {\n obj.putNull(di.getName());\n }\n }", "private String parseNull () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n char chr=next();//get next character\r\n assert chr=='n';//assert correct first character\r\n skip(3);//skip to end of null token\r\n \r\n return \"null\";//return string representation of null\r\n \r\n }", "public M csolRemarkNull(){if(this.get(\"csolRemarkNot\")==null)this.put(\"csolRemarkNot\", \"\");this.put(\"csolRemark\", null);return this;}", "@Test void testInterpretNullif() {\n final String sql = \"select nullif(x, 2), x\\n\"\n + \"from (values (1, 'a'), (2, 'b'), (3, 'c')) as t(x, y)\";\n sql(sql).returnsRows(\"[1, 1]\", \"[null, 2]\", \"[3, 3]\");\n }", "public static String nullToZero(String s)\n {\n if(s == null || s.equals(\"null\") || s.trim().length() == 0)\n {\n return \"0\";\n }\n else\n {\n return s;\n }\n }", "public static String nullifyNullOrEmptyString(final String targetString) {\n\t\tString outputString = null;\n\n\t\tif (targetString != null) {\n\t\t\tString targetStringTrim = targetString.trim();\n\t\t\tif ((!\"null\".equalsIgnoreCase(targetStringTrim)) && (targetStringTrim.length() > 0)) {\n\t\t\t\toutputString = targetStringTrim;\n\t\t\t}\n\t\t}\n\n\t\treturn outputString;\n\t}", "@Test\n\tpublic void retrieve_literal_null_value() throws Exception {\n\t\tif (configuration.startsWith(\"derby\")) return;\n\t\t\n\t\t\n\t\tjdbcExecutor_test_null(Long.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Integer.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Short.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Byte.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Double.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Float.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Boolean.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(String.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Character.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Date.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Time.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Timestamp.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(java.util.Date.class, \"select null from jdbc_test\");\n\t\t\n\t\tjdbcExecutor_test_null(byte[].class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Clob.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Blob.class, \"select null from jdbc_test\");\n\t\n\t}", "protected void changeNulls(String[] line) {\n if (line[airlineID].equals(\"\\\\N\")) {\n line[airlineID] = \"0\";\n }\n\n if (line[sourceAirportID].equals(\"\\\\N\")) {\n line[sourceAirportID] = \"0\";\n }\n\n if (line[destinationAirportID].equals(\"\\\\N\")) {\n line[destinationAirportID] = \"0\";\n }\n }", "public static String trimToNull(String str) {\n\t\tString temp = trim(str);\n\t\treturn isEmpty(temp) ? null : temp;\n\t}", "@Override\n protected <T> T replaceIfNotNull(T previousVal, T newVal) {\n return newVal;\n }", "public String notNull(String text)\n {\n return text == null ? \"\" : text;\n }", "public Value restrictToNotNullNotUndef() {\n checkNotPolymorphicOrUnknown();\n if (!isMaybeNull() && !isMaybeUndef())\n return this;\n Value r = new Value(this);\n r.flags &= ~(NULL | UNDEF);\n return canonicalize(r);\n }", "public boolean canProcessNull() {\n return false;\n }", "public static String removeNullString(String value) {\r\n if(value == null) {\r\n value = NULL_STRING_INDICATOR;\r\n }\r\n\r\n /*else\r\n if(value.trim().equals(\"\")) {\r\n value = EMPTY_STRING_INDICATOR;\r\n }*/\r\n return value;\r\n }", "public Builder clearNilValue() {\n if (typeCase_ == 1) {\n typeCase_ = 0;\n type_ = null;\n onChanged();\n }\n return this;\n }", "public static String[] stripNullStrings(String[] str) {\n\t\tif (str==null) return null;\n\n\t\t// propagate null strings to the end\n\t\tfor (int i=str.length-1; i>0; i--) {\n\t\t\tif (str[i]!=null&&str[i-1]==null) {\n\t\t\t\tstr[i-1]=str[i];\n\t\t\t\tstr[i]=null;\n\t\t\t}\n\t\t}\n\n\t\tint numvalid=0;\n\t\tfor (int i=0; i<str.length; i++)\n\t\t\tif (str[i]!=null) numvalid=i+1;\n\n\t\tif (numvalid==0) return null;\n\n\t\tString tmp[]=new String[numvalid];\n\t\tSystem.arraycopy(str, 0, tmp, 0, numvalid);\n\t\treturn tmp;\n\t}", "public boolean anyNull () ;", "public void dropNullValueProperties(){\n if(properties!=null){\n final Iterator<Map.Entry<String,Object>> iterator = properties.entrySet().iterator();\n for (;iterator.hasNext();) {\n final Object value = iterator.next().getValue();\n if(value == null){\n iterator.remove();\n }\n }\n }\n }", "@Override\n public String Inject(String value, SchemaBuilder schema)\n {\n return \"ReplaceWithNull\";\n }", "private void putOwnerAndNull() {\n\n visitInsn(DUP2_X1);\n\n //Stack = valueHigh, valueLow, owner, valueHigh, valueLow\n\n visitInsn(POP2);\n\n //Stack = valueHigh, valueLow, owner\n\n visitInsn(DUP_X2);\n\n //Stack = owner, valueHigh, valueLow, owner\n\n visitInsn(Opcodes.ACONST_NULL);\n }", "@Test\n\tpublic void testNullToTerm() {\n\t\tassertTrue(JAVA_NULL.termEquals(jpc.toTerm(null)));\n\t}", "boolean getToDayNull();", "@Test\n void nullTest() {\n assertNull(sFloat1.toScrabbleInt());\n assertNull(sFloat1.and(sFloat2));\n assertNull(sFloat1.or(sFloat2));\n assertNull(sFloat1.toScrabbleBool());\n assertNull(sFloat1.toScrabbleBinary());\n assertNull(sFloat1.addToString(new ScrabbleString(\"Hello World\")));\n }", "@Override\n\tpublic Object revert(Object o) {\n\t\tif(o != null) {\n\t\t\treturn new String((char[])o);\n\t\t}\n\t\treturn null;\n\t}", "public M csseRemarkNull(){if(this.get(\"csseRemarkNot\")==null)this.put(\"csseRemarkNot\", \"\");this.put(\"csseRemark\", null);return this;}", "public M csrtIdNull(){if(this.get(\"csrtIdNot\")==null)this.put(\"csrtIdNot\", \"\");this.put(\"csrtId\", null);return this;}" ]
[ "0.66155255", "0.66039646", "0.6560832", "0.65444607", "0.6531873", "0.64744604", "0.6466645", "0.64547867", "0.64364827", "0.64358705", "0.64044064", "0.64021677", "0.6394832", "0.63531405", "0.63307863", "0.63307863", "0.6327014", "0.6321561", "0.626368", "0.6250756", "0.62506956", "0.62395364", "0.62389654", "0.622969", "0.62068504", "0.6174235", "0.6115006", "0.6112619", "0.6099717", "0.609835", "0.6035892", "0.6016193", "0.60039407", "0.5994323", "0.5980902", "0.5971733", "0.5948144", "0.59313834", "0.5919816", "0.5902746", "0.58909035", "0.58801234", "0.58650535", "0.5861854", "0.5860906", "0.5859889", "0.58484954", "0.58453524", "0.5836588", "0.5823938", "0.5822646", "0.5817396", "0.58130586", "0.5795972", "0.57886016", "0.57834923", "0.578331", "0.57617164", "0.57508546", "0.5734723", "0.57329714", "0.5728332", "0.5722644", "0.5720475", "0.5714714", "0.5686093", "0.5683356", "0.56807005", "0.5658742", "0.5658395", "0.5655012", "0.56533337", "0.56288093", "0.5609362", "0.5595224", "0.5591934", "0.5587628", "0.5579792", "0.5575481", "0.55726105", "0.55693316", "0.5556413", "0.5545047", "0.55252886", "0.55086917", "0.55086327", "0.5503521", "0.54971105", "0.54788727", "0.5477018", "0.54750186", "0.5465558", "0.5454876", "0.5436301", "0.54299414", "0.5429548", "0.5429306", "0.54257536", "0.54237306", "0.5422742" ]
0.6498029
5
DB Connection User Name
public static String getConnUserID(Connection con) throws StoreException { PreparedStatement pstmt = null; ResultSet rset = null; String user_id = ""; try{ pstmt = con.prepareStatement("SELECT SYS.LOGIN_USER() AS USER_ID FROM DUAL"); rset = pstmt.executeQuery(); if (rset!=null && rset.next()) user_id = rset.getString(1); } catch(SQLException se) { logTemp = "[DBUtils.getConnUserName] SQLException:"+se; log.error(logTemp); throw new StoreException(logTemp); } catch(Exception e) { logTemp = "[DBUtils.getConnUserName] SQLException:"+e; log.error(logTemp); throw new StoreException(logTemp); } finally { try{ freeConnection(null, pstmt, rset); } catch (Exception s) { logTemp = "[DBUtils.getConnUserName] Connection Recover Exception:"+s; log.error(logTemp); } } return user_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDatabaseUser();", "public String getDbuser() {\n return dbuser;\n }", "public String getSystemUser()\n\t{\n\t\treturn \"postgres\";\n\t}", "@Nullable\n public String getConnectionUser()\n {\n return connectionUser;\n }", "public String getDbUsername() {\n\t\treturn mDbUsername;\n\t}", "public String getJdbcUser()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_USER);\n }", "public String getUsername() {\n return jdbcUsername;\n }", "public String getDbUser() {\n\t\treturn textFieldDbUser.getText();\n\t}", "public String getRepositoryDatabaseUsername(){\n \t\treturn getProperty(\"org.sagebionetworks.repository.database.username\");\n \t}", "public String getIdGeneratorDatabaseUsername(){\n \t\treturn getProperty(\"org.sagebionetworks.id.generator.database.username\");\n \t}", "public String getJdbcUsername() {\n if(isJakartaNamespace()) {\n return \"jakarta.persistence.jdbc.user\";\n }\n return \"javax.persistence.jdbc.user\";\n }", "public void setDatabaseUser(String sDatabaseUser) throws IOException;", "private void getUserNamePwd() {\n\n try {\n // get Application Connection ID\n LogonCoreContext lgCtx = LogonCore.getInstance().getLogonContext();\n userName = lgCtx.getBackendUser();\n pwd = lgCtx.getBackendPassword();\n appConnID = LogonCore.getInstance().getLogonContext()\n .getConnId();\n } catch (LogonCoreException e) {\n LogManager.writeLogError(Constants.device_reg_failed_txt, e);\n }\n }", "static String getUserName() {\n return System.getProperty(\"user.name\");\n }", "public void setDbuser(String dbuser) {\n this.dbuser = dbuser;\n }", "public String getConnectionName() {\n return connectionName;\r\n }", "public String getUsername() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_user_text;\n\t}", "public String getUser() {\r\n \t\treturn properties.getProperty(KEY_USER);\r\n \t}", "public final String getUsername() {\n return properties.get(USERNAME_PROPERTY);\n }", "String getConnectionAlias();", "String getConnectionAlias();", "public String getConnectionName() {\n return this.connectionName;\n }", "public String getUser() {\r\n\t\treturn _userName;\r\n\t}", "public ConnectInfo() {\n\t\tthis(System.getProperty(\"user.name\"));\n\t}", "public final String getUser() {\n return username;\n }", "public String getMongoUser() {\n return mongoUser;\n }", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public static String getCurrentUser() {\n\t\treturn System.getProperty(\"user.name\");\n\t}", "public String getDbName();", "@Override\r\n\t\t\tpublic String getUsername() {\n\t\t\t\treturn \"User1\";\r\n\t\t\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "public static String getAgraphUsername() {\n\t\treturn \"root\";\n\t}", "public String getUser() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public String getUserName();", "private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }", "public void setJdbcUser(String val)\n {\n setValue(DataSourceDobj.FLD_JDBC_USER, val);\n }", "String getUserName();", "String getUserName();", "public String getDBName()\n {\n return dbServer;\n }", "@Override\n\tpublic String getUser(String uname) {\n\t\tReadSQLUtil.sqlSource = config.getProperty(\"SQLDirectory\");\n\t\tMap<String, String> aPs = new HashMap<String, String>();\n\t\taPs.put(\"u_name\", uname);\n\t\tString fileName = \"user/Users.txt\";\n\t\tString aSql = ReadSQLUtil.ReadSqlFile(fileName);\n\t\tString sql = dbUtils.getSQL(aSql, aPs);\n\t\tJSONArray aJson = dbDao.getTable(sql);\n\t\tString res = JSON.toJSONString(aJson);\n\t\treturn res;\n\t}", "public String getUsername() {\n\t\treturn userName;\n\t}", "@Override\n\tpublic String getUsername() {\n\t\treturn admin.getPassword();\n\t}", "java.lang.String getUser();", "public String getConnectionURL (String dbHost, int dbPort, String dbName,\n\t\tString userName)\n\t{\n\t\treturn \"jdbc:postgresql://\" \n\t\t\t+ dbHost + \":\" + dbPort + \"/\" + dbName;\n\t}", "@AutoEscape\n\tpublic String getUser_name();", "public String databaseName();", "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUserName();\n\t}", "public String getUserName() {\n if (passCred != null)\n return passCred.getUserName();\n else\n return null;\n }", "protected final String getUserName() {\n return this.userName;\n }", "public DBConnection(String DBUrl, String userName, String passsword )\n {\n this.DBUrl=DBUrl;\n this.userName=userName;\n this.password = passsword;\n }", "public String getUserName() {\n return userName;\n }", "public String getDatabaseName(){\n\treturn strDbName;\n }", "public String getUser() {\r\n\t\treturn user;\r\n\t}", "public String getUser() {\r\n\t\treturn user;\r\n\t}", "public String getUserHost() {\n return userHost;\n }", "String getUserUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserLoginName() {\n return userLoginName;\n }", "public String getUserName() {\n return userName;\n }", "String getUserCnName(String userName);", "final String getDDUser() {\r\n\t\treturn ddUser;\r\n\t}", "public static String getDBName(String userName) {\n StringBuilder buffer = new StringBuilder();\n buffer.append(EMBEDED_DB_NAME);\n buffer.append(\"@\");\n buffer.append(userName);\n return buffer.toString();\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }" ]
[ "0.7536898", "0.7467594", "0.7463256", "0.7360898", "0.73490417", "0.7298496", "0.7233303", "0.7058619", "0.6964407", "0.6891239", "0.6841809", "0.6774567", "0.6553957", "0.64654195", "0.6456551", "0.63357574", "0.6331973", "0.6313346", "0.61644137", "0.6159527", "0.6159527", "0.61523896", "0.6145808", "0.61401904", "0.6137865", "0.6116858", "0.61082286", "0.61082286", "0.61082286", "0.6101008", "0.6046316", "0.6037215", "0.60140204", "0.60140204", "0.60087", "0.600782", "0.5997503", "0.5997372", "0.5987481", "0.59782755", "0.59782755", "0.5964376", "0.5950904", "0.59507537", "0.5940063", "0.59372544", "0.5936288", "0.592486", "0.59204704", "0.5917937", "0.5914943", "0.59051144", "0.589893", "0.5894758", "0.5893305", "0.5892199", "0.5892199", "0.58890486", "0.588874", "0.58694506", "0.58694506", "0.58694506", "0.58694506", "0.58694506", "0.58694506", "0.58694506", "0.58694506", "0.58694506", "0.58676577", "0.58676577", "0.58676577", "0.58676577", "0.5867118", "0.5867118", "0.5867118", "0.5867118", "0.5858573", "0.5856999", "0.58486265", "0.58466095", "0.58459276", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766", "0.5843766" ]
0.62424695
18
An array list with the content of this directory (files and subdirectories) is returned. The returned list may not be changed, only read access is allowed.
@Override public ArrayList<FileSystemItem> getContent() { return this.content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] list() {\n String[] list = _file.list();\n if (list == null) {\n return null;\n }\n for (int i = list.length; i-- > 0; ) {\n if (new File(_file, list[i]).isDirectory() && !list[i].endsWith(\"/\")) {\n list[i] += \"/\";\n }\n }\n return list;\n }", "@Override\n public List<Directory> get()\n {\n return getAllDirectories();\n }", "private void getDirectoryContents() {\n\t File directory = Utilities.prepareDirectory(\"Filtering\");\n\t if(directory.exists()) {\n\t FilenameFilter filter = new FilenameFilter() {\n\t public boolean accept(File dir, String filename) {\n\t return filename.contains(\".pcm\") || filename.contains(\".wav\");\n\t }\n\t };\n\t fileList = directory.list(filter);\n\t }\n\t else {\n\t fileList = new String[0];\n\t }\n\t}", "List<Path> getFiles();", "public List<String> getFiles();", "public List<File> getFiles();", "public File[] listFiles() {\n\n\t\tFileFilter Ff = f -> true;\n\t\treturn this.listFiles(Ff);\n\t}", "protected File[] getFiles() {\r\n DirectoryScanner scanner = new DirectoryScanner(rootDir,true,\"*.xml\");\r\n List<File> files = scanner.list();\r\n return files.toArray(new File[files.size()]);\r\n }", "public List<File> getListing(){\n\t return getFileList(new File(defaultPath));\n }", "java.util.List<entities.Torrent.FileInfo>\n getFilesList();", "public List<IFile> getAllChildFiles() {\n return this.childFiles;\n }", "public abstract List<String> getFiles( );", "synchronized List<File> getRoots() {\n\t\t\treturn new ArrayList<>(roots);\n\t\t}", "public List<IDirectory> getAllChildDir() {\n return this.children;\n }", "public abstract List<LocalFile> getAllFiles();", "protected abstract String[] getFolderList() throws IOException;", "public List <WebFile> getChildFiles()\n{\n if(_type==FileType.SOURCE_DIR) return getSourceDirChildFiles();\n return _file.getFiles();\n}", "public abstract List<File> listFiles() throws AccessException;", "public File[] elements() {\n File plik = new File(katalog);\n katalog = plik.getAbsolutePath();\n if (katalog.endsWith(\".\")) {\n katalog = katalog.substring(0, katalog.length() - 1);\n }\n return plik.listFiles();\n }", "public abstract List<String> getDirs( );", "@Override\n public String getFileList() {\n StringBuilder string = null;\n //if (parentFile.isDirectory()) {\n File parentFile = currentDir;\n string = new StringBuilder();\n for (File childFile : parentFile.listFiles()) {\n try {\n //TODO: Verify that Paths.get() is retrieving a valid path relative to the project's location.\n Path file = Paths.get(childFile.getPath());\n\n BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"M\");\n String month = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"d\");\n String dayOfMonth = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"y\");\n String year = dateFormat.format(attr.creationTime().toMillis());\n\n char fileType = childFile.isDirectory() ? 'd' : '-'; //'-' represents a file.\n string.append(String.format(\"%srw-r--r--\", fileType)); //Linux style permissions\n string.append(\"\\t\");\n string.append(\"1\"); //?\n string.append(\" \");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(childFile.length()); //Length\n string.append(\" \");\n string.append(month); //Month\n string.append(\" \");\n string.append(dayOfMonth); //Day\n string.append(\" \");\n string.append(\" \");\n string.append(year); //Year\n string.append(\" \");\n string.append(childFile.getName());\n string.append(System.getProperty(\"line.separator\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //}\n\n String format = \"%S\\t%d %d\\t%d\\t%d %S %d %d %S\";\n //return \"-rw-r--r-- 1 0 0 1073741824000 Feb 19 2016 1000GB.zip\";\n if (!string.equals(null)) {\n return string.toString();\n } else {\n return \"Error when creating file list.\";\n }\n }", "public ArrayList<String> getFiles() {\n\t\t// Sort list\n\t\tCollections.sort(this.files);\n\t\t\n\t\treturn this.files;\n\t}", "java.util.List<ds.hdfs.generated.FileMetadata> \n getFilesList();", "@Override\n public Iterable<File> list(File storageDirectory) {\n\treturn null;\n }", "public String[] getListOfFiles() {\n\t\treturn listOfFiles;\n\t}", "public ArrayList<String> getFiles() {\n\n\t\tif (m_db == null)\n\t\t\treturn new ArrayList<String>();\n\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_PATH }, null, null, null, null, null);\n\n\t\t//\n\t\t// construct array list\n\t\t//\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\t//\n\t\t// collect result set\n\t\t//\n\t\tcollectResultSet(cursor, list);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn list;\n\t}", "public List<File> findAll() {\n\t\treturn files;\n\t}", "public List<MediaFile> list() {\n\t\treturn (doc != null ? listFeed() : listHtml());\n\t}", "public File[] getFiles() {\n waitPainted(-1);\n Component list = getFileList();\n if(list instanceof JList) {\n ListModel<?> listModel = ((JList)list).getModel();\n File[] result = new File[listModel.getSize()];\n for (int i = 0; i < listModel.getSize(); i++) {\n result[i] = (File) listModel.getElementAt(i);\n }\n return result;\n } else if(list instanceof JTable){\n TableModel listModel = ((JTable)list).getModel();\n File[] result = new File[listModel.getRowCount()];\n for (int i = 0; i < listModel.getRowCount(); i++) {\n result[i] = (File) listModel.getValueAt(i, 0);\n }\n return result;\n } else\n throw new IllegalStateException(\"Wrong component type\");\n }", "public List<String> getFileContent() {\r\n\t\tTextFileProcessor proc = new TextFileProcessor();\r\n\t\tthis.processFile(proc);\r\n\t\treturn proc.strList;\r\n\t}", "@java.lang.Override\n public java.util.List<entities.Torrent.FileInfo> getFilesList() {\n return files_;\n }", "@Override\n public GitFile[] getFiles()\n {\n if(_files==null) try { _files = getFilesImpl(); } catch(Exception e) { throw new RuntimeException(e); }\n return _files;\n }", "public java.util.List<entities.Torrent.FileInfo> getFilesList() {\n if (filesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(files_);\n } else {\n return filesBuilder_.getMessageList();\n }\n }", "private static ArrayList<File> buildFilesArray() {\n ArrayList<File> result = new ArrayList<>();\n rAddFilesToArray(workingDirectory, result);\n return result;\n }", "private List<File> getFiles() {\n\t\tList<File> mFileLists = new ArrayList<File>();\n\t\tfor (Category category : mFiles) {\n\t\t\tif (category.getName() == null) {\n\t\t\t\tLog.i(TAG, \"no file seleted=\" + category.tag);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmFileLists.add(new File(category.getName()));\n\t\t}\n\t\treturn mFileLists;\n\t}", "java.util.List<entities.Torrent.FileInfo>\n getFileInfoList();", "@SuppressWarnings(\"unchecked\")\n protected List<File> getAllDocuments() {\n\n return (List<File>)stage.getProperties().get(GlobalConstants.ALL_DOCUMENTS_PROPERTY_KEY);\n }", "public List<String> stringy() {\n\t\t\tList<String> temp = new ArrayList<>();\n\t\t\t// add all the file names\n\t\t\ttemp.addAll(getFileNames());\n\t\t\t// add all the directories [indicated by a \"-\"]\n\t\t\tfor (DirectoryObjects t : subdirectories) {\n\t\t\t\ttemp.add(t.name);\n\t\t\t}\n\n\t\t\treturn temp;\n\t\t}", "public String[] listDirectory( String directory, FileType type );", "public List<File> listCacheDirs() {\n List<File> cacheDirs = new ArrayList<File>();\n File file = new File(parent);\n if(file.exists()) {\n File[] files = file.listFiles(new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n // TODO Auto-generated method stub\n return pathname.isDirectory() && \n pathname.getName().startsWith(CacheDirectory.cacheDirNamePrefix(identity));\n }\n \n });\n cacheDirs = Arrays.asList(files);\n }\n return cacheDirs;\n }", "public List listFiles(String path);", "public ArrayList<String> getDirectories() {\n\n\t\t//\n\t\t// construct array list\n\t\t//\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\tif (m_db == null)\n\t\t\treturn list;\n\n\t\t//\n\t\t// read directories\n\t\t//\n\t\tCursor cursor = m_db.query(DIRECTORY_TABLE_NAME,\n\t\t\t\tnew String[] { DIRECTORY_FIELD_PATH }, null, null, null, null,\n\t\t\t\tnull);\n\n\t\t//\n\t\t// collect result\n\t\t//\n\t\tcollectResultSet(cursor, list);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// return result list\n\t\t//\n\t\treturn list;\n\t}", "List<File> list(String directory) throws FindException;", "public List<File> mo83571d() {\n File[] listFiles;\n this.f60298e.lock();\n try {\n ArrayList arrayList = new ArrayList();\n if (this.f60297d != null) {\n File file = new File(this.f60297d);\n if (file.exists() && file.isDirectory() && (listFiles = file.listFiles()) != null) {\n for (File file2 : listFiles) {\n if (file2.length() == 0) {\n if (!file2.delete()) {\n file2.deleteOnExit();\n }\n } else if (file2.isFile() && !this.f60299f.contains(file2)) {\n arrayList.add(file2);\n }\n }\n }\n }\n this.f60299f.addAll(arrayList);\n return arrayList;\n } finally {\n this.f60298e.unlock();\n }\n }", "public LinkedList<ApfsFile> getFiles() {\n LinkedList<ApfsFile> files = new LinkedList<ApfsFile>();\n for(ApfsElement apfse: children) {\n if(apfse.isFile())\n files.add((ApfsFile) apfse);\n }\n return files;\n }", "private File[] getFilesInDirectory() {\n\t\t//Show Directory Dialog\n\t\tDirectoryChooser dc = new DirectoryChooser();\n\t\tdc.setTitle(\"Select Menu File Directory\");\n\t\tString folderPath = dc.showDialog(menuItemImport.getParentPopup().getScene().getWindow()).toString();\n\t\t\n\t\t//Update Folder location text\n\t\ttxtFolderLocation.setText(\"Import Folder: \" + folderPath);\n\t\t//Now return a list of all the files in the directory\n\t\tFile targetFolder = new File(folderPath);\n\t\t\n\t\treturn targetFolder.listFiles(); //TODO: This returns the names of ALL files in a dir, including subfolders\n\t}", "public String[] list() {\n\t\tSet<String> fileSet = fileList.keySet();\n\t\tString[] fileListArray = fileSet.toArray(new String[fileList.size()]);\n \treturn fileListArray;\n }", "public String [] listContents(File directory) throws IOException{\n\t\tFile [] dirContents = directory.listFiles();\n\t\tString [] arrOfFileNames = new String[dirContents.length];\n\t\tint i = 0;\n\t\tfor(File file: dirContents) {\n\t\t\tarrOfFileNames[i++] = file.getName();\n }\n return arrOfFileNames;\n }", "public List<FileObjects> getFiles() {\n\n\t\t\treturn files;\n\t\t}", "public String[] listFilesString() {\n\t\tFile[] FL = listFiles();\n\t\treturn FU.listFilesString(FL);\n\t}", "public List<String> ls(String path) {\n\t\treturn getDirectory(path, directory).stringy();\n\t}", "@Override\n\tpublic List<File> getAll() {\n\t\t return getSession().\n\t createQuery(\"from File f\", File.class).\n\t getResultList();\n\t}", "private List<File> getSearchFiles() {\n\t\tif (searchDirs == null || searchDirs.size() <= 0) {\n\n\t\t\tsearchDirs = new ArrayList<File>();\n\t\t\t\n\t\t\tsearchDirs.add(StorageUtils.getLocalCacheDir(this));\n//\t\t\tsearchDirs.add(StorageUtils.getExternalCacheDir(this));\n\t\t\tsearchDirs.add(StorageUtils.getFavorDir(this));\n\t\t}\n\t\treturn searchDirs;\n\t}", "public String[] allDocs() {\r\n\t\t\r\n\t\tFile folderNames = new File(folderName);\r\n int i=0;\r\n File[] files = folderNames.listFiles();\r\n String[] documents = new String[files.length];\r\n for (File file: files)\r\n {\r\n \tdocuments[i] = file.getName();\r\n i++;\r\n }\r\n return documents;\t\r\n\t}", "@GetMapping(\"/files\")\n public ResponseEntity<List<FileInfo>> getListFiles() {\n List<FileInfo> fileInfos = storageService.loadAll().map(path -> {\n String filename = path.getFileName().toString();\n String url = MvcUriComponentsBuilder\n .fromMethodName(FilesController.class, \"getFile\", path.getFileName().toString()).build().toString();\n\n return new FileInfo(filename, url);\n }).collect(Collectors.toList());\n\n return ResponseEntity.status(HttpStatus.OK).body(fileInfos);\n }", "GitFile[] getFilesImpl() throws Exception\n {\n TreeWalk twalk = new TreeWalk(getRepo()); twalk.addTree(_rev);\n List <GitFile> files = new ArrayList();\n while(twalk.next()) {\n ObjectId id = twalk.getObjectId(0);\n RevObject rid = getRevObject(id);\n String path = _path + (_path.length()>1? \"/\" : \"\") + twalk.getNameString();\n GitFile child = rid instanceof RevTree? new GitTree((RevTree)rid, path) : new GitBlob((RevBlob)rid, path);\n files.add(child);\n }\n return files.toArray(new GitFile[files.size()]);\n }", "public File[] getLocalFiles() {\n\t\tFile[] filesArray = new File(this.fileStorage.toString()).listFiles(\n\t\t\t\tnew FileFilter() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean accept(File file) {\n\t\t\t\t\t\treturn !file.isHidden();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\treturn filesArray;\n\t}", "public List<SessionFile> getRoots() {\n List<SessionFile> result = Factory.newArrayList();\n for (SharedFile shared : fileSystem.getRoots())\n result.add(getOrCreateFile(shared));\n return result;\n }", "private File[] getFiles() {\n\n if (mPPTFilePath == null) {\n mPPTFilePath = getArguments().getString(PPTPathString);\n }\n\n String Path = mPPTFilePath;\n File mFile = new File(Path);\n if (mFile.exists() && mFile.isDirectory() && mFile.listFiles()!=null) {\n\n return mFile.listFiles();\n } else {\n Log.d(TAG, \"File==null\");\n return null;\n }\n }", "List<File> getSystemDescriptionFiles();", "java.util.List<java.lang.String>\n getPathsList();", "@Override\n public Iterable<File> list(File storageDirectory, FilenameFilter filter) {\n\treturn null;\n }", "private ObservableList<TreeItem<Path>> buildChildren() {\r\n if (Files.isDirectory(getValue())) {\r\n try {\r\n\r\n return Files.list(getValue())\r\n .map(FileTreeItem::new)\r\n .collect(Collectors.toCollection(() -> FXCollections.observableArrayList()));\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return FXCollections.emptyObservableList();\r\n } \r\n }\r\n\r\n return FXCollections.emptyObservableList();\r\n }", "@Override\n public Vector<CloudFile> list() {\n if (!this.directoryExists) {\n fileList.removeAllElements();\n return fileList;\n }\n\n if (!directoryHasChanged) {\n return fileList;\n }\n\n final Integer listingComplete = new Integer(0);\n fileList.removeAllElements();\n\n System.out.println(\"GOOGLE DRIVE ls <\" + currentDirectory + \">\");\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n List<com.google.api.services.drive.model.File> res = new ArrayList<File>();\n Drive.Files.List request = drive.files().list();\n System.out.println(\"~~~Listing\");\n\n do {\n try {\n FileList files = request.setQ(\"'\" + currentFolderID + \"' in parents and trashed=false\").execute();\n\n res.addAll(files.getItems());\n request.setPageToken(files.getNextPageToken());\n } catch (HttpResponseException e) {\n\n if (e.getStatusCode() == 401) { // Credentials have been revoked.\n System.err.println(\"Google Drive API credentials have been revoked\");\n authenticate();\n }\n } catch (IOException e) {\n System.err.println(\"An error occurred: \" + e);\n request.setPageToken(null);\n\n }\n\n } while (request.getPageToken() != null &&\n request.getPageToken().length() > 0);\n\n //add shared with me directory when listing home\n if (currentDirectory.equals( getHomeDirectory() )) {\n FileList files = request.setQ(\"sharedWithMe\").execute();\n res.addAll(files.getItems());\n }\n\n for (com.google.api.services.drive.model.File f : res) {\n fileList.add(new GoogleCloudFile(drive, f));\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n System.out.println(\"~~~Listed\");\n //notify parent function that listing has completed\n synchronized (listingComplete) {\n listingComplete.notify();\n }\n }\n });\n\n //start the file listing thread\n thread.start();\n //wait for it to complete listing\n System.out.println(\"Waiting ls\");\n synchronized (listingComplete) {\n try {\n listingComplete.wait();\n } catch (InterruptedException e) {\n }\n }\n System.out.println(\"Ls complete\");\n\n return fileList;\n }", "@PostFilter(\"hasPermission(filterObject, 'read') or hasPermission(filterObject, 'write') or hasPermission(filterObject, 'administration') or hasPermission(filterObject, 'delete')\")\n public List<File> getAll() {\n return fileRepository.findAll();\n }", "private List<DMTFile> listFilesRecursive(String path) {\n\t\tList<DMTFile> list = new ArrayList<DMTFile>();\n\t\tDMTFile file = getFile(path); //Get the real file\n\t\t\n\t\tif (null != file ){ //It checks if the file exists\n\t\t\tif (! file.isDirectory()){\n\t\t\t\tlist.add(file);\n\t\t\t} else {\n\t\t\t\tDMTFile[] files = listFilesWithoutConsoleMessage(file.getPath());\n\t\t\t\tfor (int x = 0; x < files.length; x++) {\n\t\t\t\t\tDMTFile childFile = files[x];\t\t \n\t\t\t\t\tif (childFile.isDirectory()){\n\t\t\t\t\t\tlist.addAll(listFilesRecursive(childFile.getPath()));\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist.add(childFile);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public java.util.List<entities.Torrent.FileInfo.Builder>\n getFilesBuilderList() {\n return getFilesFieldBuilder().getBuilderList();\n }", "public List<Path> getAllPaths();", "private List<File> getFileList(File root){\n\t List<File> returnable = new ArrayList<File>();\n\t if(root.exists()){\n\t\t for(File currentSubFile : root.listFiles()){\n\t\t\t if(currentSubFile.isDirectory()){\n\t\t\t\t returnable.addAll(getFileList(currentSubFile));\n\t\t\t } else {\n\t\t\t\t returnable.add(currentSubFile);\n\t\t\t }\n\t\t }\n\t }\n\t return returnable;\n }", "public List getAll() throws FileNotFoundException, IOException;", "public String[] getListOfFileInArray() {\n String[] items = new String[this.listOfFile.size()];\n for(int x=0;x<this.listOfFile.size();x++) {\n items[x]=this.listOfFile.get(x).getName();\n }\n return items;\n }", "public ArrayList<FileDesc> getAllFiles() {\n\n\t\tArrayList<FileDesc> result = new ArrayList<FileDesc>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllFiles);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\n\t\t\tString query = \"SELECT FILEGID, TYPE, DESCRIPTION FROM FILE\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\t\n\t\t\twhile (rs.next() == true) {\n\t\t\t\tString fileGID = rs.getString(1);\n\t\t\t\tString type = rs.getString(2);\n\t\t\t\tString Description = rs.getString(3);\n\t\t\t\tresult.add(new FileDesc(fileGID, \"\", \"\", \"\", type, Description));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\t}", "public File[] CreateListFiles() {\n\t\tif (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {\n\t\t\tToast.makeText(this, \"Error! No SDCARD Found!\", Toast.LENGTH_LONG).show();\n\t\t} else {\n\t\t\tfile = new File(Environment.getExternalStorageDirectory(), File.separator + \"/MelanomaPics/\" + File.separator + MelanomaActivity.pacientSelected);\n\t\t\tfile.mkdirs();\n\t\t}\n\t\t// pega todas as imagens do diretorio MelanomaPics e coloca dentro de\n\t\t// uma lista\n\t\tif (file.isDirectory()) {\n\t\t\tlistFile = file.listFiles();\n\t\t}\n\t\treturn listFile;\n\t}", "private static void listar(Path a){\n File dir = new File(a.toString());\n if(dir.isDirectory()){\n String[] dirContents = dir.list();\n for(int i =0; i < dirContents.length; i++){\n System.out.println(dirContents[i]);\n }\n }\n }", "public List<RAFFileEntry> getFileEntries() {\n\t\treturn fileEntries;\n\t}", "@Override\r\n\tpublic String[] list(String path) {\n\t\treturn null;\r\n\t}", "private List<String> getDataFromApi() throws IOException {\n // Get a list of up to 10 files.\n List<String> fileInfo = new ArrayList<String>();\n FileList result = mService.files().list()\n .setMaxResults(10)\n .execute();\n List<File> files = result.getItems();\n if (files != null) {\n for (File file : files) {\n fileInfo.add(String.format(\"%s (%s)\\n\",\n file.getTitle(), file.getId()));\n }\n }\n return fileInfo;\n }", "List<String> getListPaths();", "public List<String> getListOfZipFiles()\n {\n \treturn fileList;\n }", "private static List<File> listChildFiles(File dir) throws IOException {\n\t\t List<File> allFiles = new ArrayList<File>();\n\t\t \n\t\t File[] childFiles = dir.listFiles();\n\t\t for (File file : childFiles) {\n\t\t if (file.isFile()) {\n\t\t allFiles.add(file);\n\t\t } else {\n\t\t List<File> files = listChildFiles(file);\n\t\t allFiles.addAll(files);\n\t\t }\n\t\t }\n\t\t return allFiles;\n\t\t }", "public HashMap<String, String> getAllFiles() {\n return _allFiles;\n }", "public String[] getFiles() throws Exception\n {\n if (dir == null)\n {\n throw new Exception(\"No directory specified for filelist.\");\n }\n\n if (filenames.size() == 0)\n {\n throw new Exception(\"No files specified for filelist.\");\n }\n\n String[] result = new String[filenames.size()];\n filenames.copyInto(result);\n return result;\n }", "public abstract List<String> path();", "public Hashtable<String,String> getDirList() {\n return mDirList;\n }", "public synchronized ResultSet getFileList() {\n try {\n return statement.executeQuery(\"select * from FileManager\");\n } catch (SQLException ex) {\n Logger.getLogger(DataManager.class.getName()).log(Level.SEVERE,\n null, ex);\n }\n\n return null;\n }", "List<String> getFileSystemEntries(String path) throws IOException;", "@GetMapping(\"/all\")\r\n\tpublic List<FileModel> getListFiles() {\r\n\t\treturn fileRepository.findAll();\r\n\t}", "public DBCursor getFileList() {\n\treturn getFileList(new BasicDBObject());\n }", "public Vector getTypedFiles() {\r\n\treturn getTypedFilesForDirectory(getCurrentDirectory());\r\n }", "public String ls()\n\t{\n\t\tString toReturn = \"\";\n\t\tIterable<Position<FileElement>> kids = fileSystem.children(currentFileElement);\n\t\tif (kids == null) return \"Nothing to list\";\n\t\t{\n\t\t\tfor (Position<FileElement> fe : kids)\n\t\t\t{\n\t\t\t\ttoReturn += fe.toString() + \", \";\n\t\t\t}\n\t\t}\n\t\treturn toReturn;\n\t}", "java.util.List<java.lang.String> getContentsList();", "public org.hpccsystems.ws.filespray.PhysicalFileStruct[] getFiles() {\n\t\t return files;\n\t }", "public ArrayList<String> getList(String path) throws Exception {\n\t\t\t\n\t\t\tSmbFile file = new SmbFile(path, new NtlmPasswordAuthentication(null, user, pass));\n\t\t\tArrayList<String> fileList = new ArrayList<String>();\n\t\t\t\n\t\t\tSmbFile[] fArr = file.listFiles();\n\t\t\t\n\t\t\tfor(int a=0;a<fArr.length;a++) {\n\t\t\t\tif(accept(fArr[a]) == true) {\n\t\t\t\t\tfileList.add(fArr[a].getName());\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn fileList;\n\t\t}", "public List<String> list(String path) throws IOException {\n Path destionationPath = new Path(path);\n\n List<String> childsList = new ArrayList<>();\n FileStatus[] childElements = hdfs.listStatus(destionationPath);\n Arrays.stream(childElements).forEach(child -> childsList.add(child.getPath().getName()));\n return childsList;\n }", "public ArrayList<OfflineSong> getPlayList() {\n System.out.println(MEDIA_PATH);\n if (MEDIA_PATH != null) {\n File home = new File(MEDIA_PATH);\n File[] listFiles = home.listFiles();\n if (listFiles != null && listFiles.length > 0) {\n for (File file : listFiles) {\n System.out.println(file.getAbsolutePath());\n if (file.isDirectory()) {\n scanDirectory(file);\n } else {\n addSongToList(file);\n }\n }\n }\n }\n // return songs list array\n return songsList;\n }", "List<String> getFiles(String path) throws IOException;", "protected List <WebFile> getSourceDirChildFiles()\n{\n // Iterate over source dir and add child packages and files\n List children = new ArrayList();\n for(WebFile child : getFile().getFiles()) {\n if(child.isDir() && child.getType().length()==0)\n addPackageDirFiles(child, children);\n else children.add(child);\n }\n \n return children;\n}", "private Vector getDirectoryEntries(File directory) {\n Vector files = new Vector();\n\n // File[] filesInDir = directory.listFiles();\n String[] filesInDir = directory.list();\n\n if (filesInDir != null) {\n int length = filesInDir.length;\n\n for (int i = 0; i < length; ++i) {\n files.addElement(new File(directory, filesInDir[i]));\n }\n }\n\n return files;\n }", "public List<String> getPaths() {\n List<String> result;\n synchronized (this.paths) {\n result = this.paths;\n }\n return result;\n }", "public Stream<Path> loadAll() {\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(\"File Retrived\");\n\t\t\treturn Files.walk(this.path, 1).filter(path->!path.equals(this.path)).map(this.path::relativize);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"File Retrived Error\");\n\t\t}\n\t\treturn null;\n\t}" ]
[ "0.7702846", "0.7694536", "0.73921317", "0.72335714", "0.7211358", "0.7156556", "0.71263915", "0.70879745", "0.7070341", "0.7053125", "0.70284116", "0.7023265", "0.70083314", "0.7004772", "0.69725746", "0.6950842", "0.6949251", "0.6903742", "0.68989056", "0.68755114", "0.6808041", "0.67767835", "0.67626774", "0.673643", "0.6729526", "0.67249715", "0.67186445", "0.6715199", "0.6698173", "0.6683859", "0.66759944", "0.6652133", "0.6630142", "0.6619972", "0.65922195", "0.65811163", "0.655838", "0.65478516", "0.65400976", "0.65285957", "0.65021867", "0.6497246", "0.64919144", "0.64835733", "0.6469952", "0.6452631", "0.6444016", "0.6437723", "0.6411941", "0.63989556", "0.6392922", "0.63915104", "0.6390217", "0.638786", "0.6373129", "0.63607407", "0.63562363", "0.6349176", "0.6339262", "0.63204217", "0.6308347", "0.6297764", "0.6295816", "0.6294455", "0.62912905", "0.62898296", "0.6286781", "0.62839645", "0.6279595", "0.62659293", "0.6262875", "0.6246441", "0.6237641", "0.6231953", "0.62274116", "0.62273234", "0.62252176", "0.6224665", "0.6215361", "0.62142694", "0.62121546", "0.6208309", "0.61959", "0.6192999", "0.61884356", "0.61810017", "0.61751246", "0.6166834", "0.6166183", "0.61571795", "0.6152198", "0.6148562", "0.6147527", "0.61393774", "0.61317414", "0.61268145", "0.61263144", "0.6126292", "0.6121433", "0.61174846" ]
0.66970074
29
Adds a new subdirectory to this directory. If the directory to add is already part of another directory structure, it is removed from there.
public void add(Directory subDir) { this.content.add(subDir); if(subDir.getParent() != null) { subDir.getParent().content.remove(subDir); } subDir.setParent(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addSubdirectory(Directory newdir) {\n\t\tgetSubdirectories().add(newdir);\n\t}", "public void addDirectory(FileDiffDirectory directory) {\n \t\tthis.directories.add(directory);\n \t}", "public void addDirectory(String name, IDirectory parent) {\r\n Directory newDir = new Directory(name, (Directory) parent);\r\n ((Directory) parent).addItem(newDir);\r\n }", "abstract void addNewSourceDirectory(final File targetDirectory);", "public void addChild(DirectoryNode node) throws FullDirectoryException, NotADirectoryException {\n if(isFile)\n throw new NotADirectoryException(\"Error: This node is a file\");\n if(left != null && middle != null && right != null)\n throw new FullDirectoryException(\"This directory is full\");\n if(left == null)\n left = node;\n else if(middle == null)\n middle = node;\n else if(right == null)\n right = node;\n }", "public final void addDirectory(String dir) {\n addDirectory(Paths.get(dir));\n }", "private void addFolder(){\n }", "public void add(String directoryName) {\n this.add(new SubMenuItem(directoryName));\n }", "public void addChild(IDirectory child) {\n children.add(child);\n }", "@Override\n\tpublic boolean addModuleDirectory(String path)\n\t{\n\t\tpath = path.replace(\"~\", System.getProperty(\"user.home\"));\n\t\tSystem.out.println(\"Path: \" + path);\n\t\tFile newDir = new File(path);\n\n\t\tif (newDir.exists() && newDir.isDirectory()) {\n\t\t\tmoduleDirectories.add(newDir);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public void addDirectories( File base ) {\n if( base.isDirectory() ) {\n repository.add( base );\n File[] files = base.listFiles();\n\n for( int i = 0; i < files.length; i++ ) {\n addDirectories( files[i] );\n }\n }\n }", "public final void addDirectory(Path dir) {\n\t\t// enable trace for registration\n this.trace = true;\n register(dir);\n }", "public void addFolder(Folder f) {\n folders.add(f);\n }", "public void mkdirP(String dirPath) {\n\n\t\t// check if you need to go anywhere further\n\t\tif (dirPath.lastIndexOf(\"/\") == 0) {\n\t\t\treturn;// done\n\t\t} else {\n\t\t\t// parse directories...\n\t\t\tArrayList<String> direcs = new ArrayList<>();\n\t\t\tString temp = dirPath;\n\t\t\tboolean cont = true;\n\t\t\ttemp = temp.substring(1);\n\t\t\twhile (temp.length() > 1 && cont) {\n\n\t\t\t\t// add the substring to the list of directories that need to be\n\t\t\t\t// checked and/or created\n\t\t\t\tdirecs.add(temp.substring(0, temp.indexOf(\"/\")));\n\t\t\t\t// if there are more \"/\"s left, repeat\n\t\t\t\tif (temp.contains(\"/\")) {\n\t\t\t\t\ttemp = temp.substring(temp.indexOf(\"/\") + 1);\n\t\t\t\t}\n\t\t\t\t// else break out of the loop\n\t\t\t\telse {\n\t\t\t\t\tcont = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// do one last check to see if there are any extra characters left\n\t\t\tif (temp.length() > 0) {\n\t\t\t\t// there is still something left\n\t\t\t\tdirecs.add(temp);\n\t\t\t}\n\n\t\t\t// go through each directory, checking if it exists. if not, create\n\t\t\t// the directory and repeat.\n\t\t\tDirectoryObjects current = directory;\n\n\t\t\tfor (String p : direcs) {\n\n\t\t\t\tif (current.getDirectoryByName(p) != null) {\n\t\t\t\t\tcurrent = current.getDirectoryByName(p);\n\t\t\t\t} else {\n\t\t\t\t\tcurrent.getSubdirectories().add(new DirectoryObjects(p));\n\t\t\t\t\tcurrent = current.getDirectoryByName(p);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "protected void createDirectory(Path path, Path destPath) {\n String rootLocation = destPath.toString();\n int index;\n if(firstTime) {\n firstTime = false;\n index = path.toFile().getPath().lastIndexOf(\"\\\\\")+1;//index where cur directory name starts\n rootFolder = path.toFile().getPath().substring(index);\n }\n else {\n index = path.toFile().getPath().indexOf(rootFolder);\n }\n\n String folderName= path.toFile().getPath().substring(index);\n Path newDirPath = Paths.get(rootLocation + DOUBLE_BKW_SLASH +folderName);\n try {\n Path newDir = Files.createDirectory(newDirPath);\n } catch(FileAlreadyExistsException e){\n // the directory already exists.\n e.printStackTrace();\n } catch (IOException e) {\n //something else went wrong\n e.printStackTrace();\n }\n }", "public String createDirectory(String parentID, String new_directory) throws CloudStorageNotEnoughSpace {\n File newFile = new File();\n newFile.setTitle(new_directory);\n newFile.setMimeType(\"application/vnd.google-apps.folder\");\n newFile.setParents(Arrays.asList(new ParentReference().setId(parentID)));\n\n try {\n File insertedFile = drive.files().insert(newFile).execute();\n return insertedFile.getId();\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n\n }", "public File createSubDirectories(String directoryPath) {\n File myFilesDir = new File(this.assetFolderPath, directoryPath);\n\n if(!myFilesDir.isDirectory()) {\n myFilesDir.mkdirs();\n }\n return myFilesDir;\n }", "public String addDirectory(String dir)\n\t{\n\t\tString dirn= this.sysdir + File.separator + dir;\n\t\tFile f= new File(dirn);\n\t\tif( !f.exists() )\n\t\t\tf.mkdirs();\n\t\t\n\t\tsynchronized( syncFiles ) // get Intermediate-Data access for the key \n\t\t{\n\t\t\twhile( syncFileswait )\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tsyncFiles.wait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tsyncFileswait= true;\n\t\t\t\n\t\t\tfiles.put(dir, dirn);\n\t\t\t\n\t\t\tsyncFileswait= false;\n\t\t\tsyncFiles.notifyAll();\n\t\t}\n\t\t\n\t\treturn dirn;\n\t}", "public boolean addDirectory(String directory) {\n\n\t\tif (m_db == null)\n\t\t\treturn false;\n\n\t\t//\n\t\t// construct new content values\n\t\t//\n\t\tContentValues values = new ContentValues();\n\n\t\t//\n\t\t// add directory value\n\t\t//\n\t\tvalues.put(DIRECTORY_FIELD_PATH, directory);\n\n\t\t//\n\t\t// now execute the query\n\t\t//\n\t\tlong rows_affected = m_db.insert(DIRECTORY_TABLE_NAME, null, values);\n\n\t\t//\n\t\t// informal debug print\n\t\t//\n\t\tLogger.i(\"DBManager::addDirectory> rows_affected \" + rows_affected);\n\n\t\tif (rows_affected == 1) {\n\t\t\t//\n\t\t\t// succeeded\n\t\t\t//\n\t\t\treturn true;\n\t\t}\n\n\t\t//\n\t\t// insert failed\n\t\t//\n\t\treturn false;\n\n\t}", "private static void addDirectory(ZipOutputStream zout, File fileSource, File sourceDir) {\n\n\t\t// get sub-folder/files list\n\t\tFile[] files = fileSource.listFiles();\n\n\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\ttry {\n\t\t\t\tString name = files[i].getAbsolutePath();\n\t\t\t\tname = name.substring((int) sourceDir.getAbsolutePath().length());\n\t\t\t\t// if the file is directory, call the function recursively\n\t\t\t\tif (files[i].isDirectory()) {\n\t\t\t\t\taddDirectory(zout, files[i], sourceDir);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * we are here means, its file and not directory, so\n\t\t\t\t * add it to the zip file\n\t\t\t\t */\n\n\n\t\t\t\t// create object of FileInputStream\n\t\t\t\tFileInputStream fin = new FileInputStream(files[i]);\n\n\t\t\t\tzout.putNextEntry(new ZipEntry(name));\n\n\t\t\t\tIOUtils.copy(fin, zout);\n\t\t\t\t\n\t\t\t\tzout.closeEntry();\n\n\t\t\t\t// close the InputStream\n\t\t\t\tfin.close();\n\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "public void add(DirectoryComponent item) {\r\n\t\tthis.DirectoryList.add(item);\r\n\r\n\t}", "public void addPath(File path) throws IllegalArgumentException {\r\n File[] PathFiles;\r\n if (path.isDirectory() == true) {\r\n \tPathFiles = path.listFiles();\r\n for (int i=0; i<PathFiles.length; i++) {\r\n \tFile currentfile = PathFiles[i];\r\n if (currentfile.isDirectory()) {\r\n \tdirectory_queue.enqueue(currentfile);\r\n \taddPath(currentfile);\r\n }\r\n }\r\n } else {\r\n throw new IllegalArgumentException(\"Can't resolve the directory path \" + path);\r\n }\r\n }", "public static String addToPath(String path, String path2) { return path + \"/\" + path2; }", "private TreeItem<String> addNewItem(Path path) {\n TreeItem<String> mostCorrespondingParent = findMostCorrespondingParentFor(path);\n TreeItem<String> newChildTreeItem;\n if (buildPathForNode(mostCorrespondingParent) != null) {\n Path newChildPath;\n if (mostCorrespondingParent != rootNode) {\n Path mostCorrespondingParentPath = getNodeAbsolutePath(mostCorrespondingParent);\n newChildPath = extractChildPath(path, mostCorrespondingParentPath);\n } else {\n newChildPath = path;\n }\n newChildTreeItem = new TreeItem<>(newChildPath.toString(), new ImageView(FileTreeItem.FileType.FILE.getImage()));\n } else {\n newChildTreeItem = new TreeItem<>(path.toString(), new ImageView(FileTreeItem.FileType.FILE.getImage()));\n }\n mostCorrespondingParent.getChildren().add(newChildTreeItem);\n sortChildren(mostCorrespondingParent);\n return extractFileNameToLeaf(newChildTreeItem);\n }", "private static void addLibraryPath(String pathToAdd) throws Exception{\n\t\tfinal Field usrPathsField = ClassLoader.class.getDeclaredField(\"usr_paths\");\n\t\tusrPathsField.setAccessible(true);\n\t \n\t\t//get array of paths\n\t\tfinal String[] paths = (String[])usrPathsField.get(null);\n\t \n\t\t//check if the path to add is already present\n\t\tfor(String path : paths) {\n\t\t\tif(path.equals(pathToAdd)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t \n\t\t//add the new path\n\t\tfinal String[] newPaths = Arrays.copyOf(paths, paths.length + 1);\n\t\tnewPaths[newPaths.length-1] = pathToAdd;\n\t\tusrPathsField.set(null, newPaths);\n\t}", "private static void doCreateDir() {\n String newDir = \"new_dir\";\n boolean success = (new File(newDir)).mkdir();\n\n if (success) {\n System.out.println(\"Successfully created directory: \" + newDir);\n } else {\n System.out.println(\"Failed to create directory: \" + newDir);\n }\n\n // Create a directory; all non-existent ancestor directories are\n // automatically created.\n newDir = \"c:/export/home/jeffreyh/new_dir1/new_dir2/new_dir3\";\n success = (new File(newDir)).mkdirs();\n\n if (success) {\n System.out.println(\"Successfully created directory: \" + newDir);\n } else {\n System.out.println(\"Failed to create directory: \" + newDir);\n }\n\n }", "public void addFile(String name, IDirectory parent) {\r\n // Create a new file\r\n File newFile = new File(name, (Directory) parent);\r\n ((Directory) parent).addItem(newFile);\r\n }", "public void pushDirectory(Directory directory) {\r\n directoryStack.push(directory);\r\n }", "private static void addDirectoryToLibraryPath(String dir) throws IOException {\n try {\n Field field = ClassLoader.class.getDeclaredField(\"usr_paths\");\n field.setAccessible(true);\n String[] paths = (String[]) field.get(null);\n for (String path: paths) {\n if (dir.equals(path)) {\n return;\n }\n }\n String[] tmp = new String[paths.length + 1];\n System.arraycopy(paths, 0, tmp, 0, paths.length);\n tmp[paths.length] = dir;\n field.set(null, tmp);\n } catch (IllegalAccessException e) {\n throw new IOException(\"Failed to get permissions to set library path.\");\n } catch (NoSuchFieldException e) {\n throw new IOException(\"Failed to get field handle to set library path.\");\n }\n }", "public void newFolderButtonClicked() {\n TreePath[] paths = _fileSystemTree.getSelectionPaths();\r\n List selection = getSelectedFolders(paths);\r\n if (selection.size() > 1 || selection.size() == 0)\r\n return; // should never happen\r\n \r\n File parent = (File) selection.get(0);\r\n \r\n final ResourceBundle resourceBundle = FolderChooserResource.getResourceBundle(Locale.getDefault());\r\n String folderName = JOptionPane.showInputDialog(_folderChooser, resourceBundle.getString(\"FolderChooser.new.folderName\"),\r\n resourceBundle.getString(\"FolderChooser.new.title\"), JOptionPane.OK_CANCEL_OPTION | JOptionPane.QUESTION_MESSAGE);\r\n \r\n if (folderName != null) {\r\n File newFolder = new File(parent, folderName);\r\n boolean success = newFolder.mkdir();\r\n \r\n TreePath parentPath = paths[0];\r\n boolean isExpanded = _fileSystemTree.isExpanded(parentPath);\r\n if (!isExpanded) { // expand it first\r\n _fileSystemTree.expandPath(parentPath);\r\n }\r\n \r\n LazyMutableTreeNode parentTreeNode = (LazyMutableTreeNode) parentPath.getLastPathComponent();\r\n BasicFileSystemTreeNode child = BasicFileSystemTreeNode.createFileSystemTreeNode(newFolder, _folderChooser);\r\n // child.setParent(parentTreeNode);\r\n if (success) {\r\n parentTreeNode.clear();\r\n int insertIndex = _fileSystemTree.getModel().getIndexOfChild(parentTreeNode, child);\r\n if (insertIndex != -1) {\r\n // ((BasicFileSystemTreeModel) _fileSystemTree.getModel()).insertNodeInto(child, parentTreeNode, insertIndex);\r\n ((BasicFileSystemTreeModel) _fileSystemTree.getModel()).nodeStructureChanged(parentTreeNode);\r\n // ((BasicFileSystemTreeModel) _fileSystemTree.getModel()).addPath(parentPath, insertIndex, child);\r\n }\r\n }\r\n TreePath newPath = parentPath.pathByAddingChild(child);\r\n _fileSystemTree.setSelectionPath(newPath);\r\n _fileSystemTree.scrollPathToVisible(newPath);\r\n }\r\n }", "public void addFolder(TaskFolder folder)\n {\n folders.add(folder);\n }", "public void addDir(File dirObj, ZipOutputStream out) throws IOException {\n\t\t File[] files = dirObj.listFiles();\n\t\t byte[] tmpBuf = new byte[1024];\n\t\t for (int i = 0; i < files.length; i++) {\n\t\t if (files[i].isDirectory()) {\n\t\t addDir(files[i], out);\n\t\t continue;\n\t\t }\n\t \t FileInputStream in = new FileInputStream(files[i].getAbsolutePath());\n\t\t System.out.println(\" Adding: \" + files[i].getAbsolutePath());\n\t\t out.putNextEntry(new ZipEntry(files[i].getAbsolutePath()));\n\t\t int len;\n\t\t while ((len = in.read(tmpBuf)) > 0) { out.write(tmpBuf, 0, len); }\n\t\t out.closeEntry();\n\t\t in.close();\n\t\t }\n\t\t }", "Directory createAsDirectory() {\n return getParentAsExistingDirectory().findOrCreateChildDirectory(name);\n }", "public void addFolder(String name, int index) {\n\t\tDefaultTreeModel model = (DefaultTreeModel) getModel();\n\t\tTreeNode root = (TreeNode) model.getRoot();\n\t\tif (index > root.getChildCount() || index < 0){\n\t\t\tindex = root.getChildCount();\n\t\t}\n\t\tmodel.insertNodeInto(new TreeNode(name, root.getNodeOption(), index, true), root, index);\n\t\tsetCellRenderer(new TreeRenderer());\n\t\tmodel.reload();\n\n\t\tscrollRowToVisible(index + 1);\n\t}", "private static void addDir(String s) throws IOException { This enables the java.library.path to be modified at runtime\n // From a Sun engineer at\n // http://forums.sun.com/thread.jspa?threadID=707176\n //\n try {\n Field field = ClassLoader.class.getDeclaredField(\"usr_paths\");\n\n field.setAccessible(true);\n String[] paths = (String[]) field.get(null);\n for (String path : paths) {\n if (s.equals(path)) {\n return;\n }\n }\n String[] tmp = new String[paths.length + 1];\n System.arraycopy(paths, 0, tmp, 0, paths.length);\n tmp[paths.length] = s;\n field.set(null, tmp);\n System.setProperty(\"java.library.path\", System.getProperty(\"java.library.path\")\n + File.pathSeparator + s);\n } catch (IllegalAccessException e) {\n throw new IOException(\"Failed to get permissions to set library path\");\n } catch (NoSuchFieldException e) {\n throw new IOException(\"Failed to get field handle to set library path\");\n }\n }", "public DirectoryField addDirectoryField(final FileProperty property, final String directory) {\n return addDirectoryField(property.getKey(), directory);\n }", "public void addDirectory2(View view){\n\t\tcontrol(2);\n\t}", "void setAddParentFolder(DriveRequest<?> request, String addParentFolder);", "private void createNewDirectory() {\n getMainWindow().addWindow(\n new TextInputDialog(\n \"Create Directory\",\n \"Create Directory\",\n \"New Folder\",\n new TextInputDialog.Callback() {\n public void onDialogResult(boolean happy, String newDirectory) {\n if ( happy\n && isValidFile(newDirectory)) {\n try {\n // Verzeichnis anlegen\n File newDir = getFile(newDirectory);\n if (!newDir.exists()) {\n newDir.mkdir(0755);\n }\n // Prüfen, ob das Verzeichnis angelegt wurde\n if (newDir.exists()) {\n loadXtreemFSData();\n showNotification(\"Success\", \"Directory \" + newDirectory + \" created.\", Notification.TYPE_TRAY_NOTIFICATION, null);\n }\n else {\n showNotification(\"Error\", \"Directory \" + newDirectory + \" could not be created.\", Notification.TYPE_WARNING_MESSAGE, null);\n }\n } catch (IOException e) {\n showNotification(\"Error\", e.toString(), Notification.TYPE_ERROR_MESSAGE, e);\n }\n }\n }\n }));\n }", "private void appendBreadcrumb(Context context, ExternalFileInfo newFolder) {\n int currentCrumb = -1;\n if (mBreadcrumbBarLayout.getChildCount() > 0) {\n // Find the current folder's crumb in the bar\n if (mCurrentFolder != null && mCurrentRoot != null) {\n currentCrumb = findBreadcrumb(mCurrentFolder);\n } else {\n // In the root folder, so current crumb is the first child\n currentCrumb = 0;\n }\n // Check if the next crumb (right) corresponds to the new folder\n if (currentCrumb >= 0) {\n if (currentCrumb + 1 < mBreadcrumbBarLayout.getChildCount()) {\n boolean clearToRight = true;\n LinearLayout crumb = (LinearLayout) mBreadcrumbBarLayout.getChildAt(currentCrumb + 1);\n Object tag = crumb.getTag();\n if (tag != null && tag instanceof ExternalFileInfo) {\n ExternalFileInfo file = (ExternalFileInfo) tag;\n if (file.getUri().equals(newFolder.getUri())) {\n // New folder is already in breadcrumb bar\n clearToRight = false;\n }\n }\n if (clearToRight) {\n // let's rebuild bread crumb bar from scratch, since it can be a\n // non-immediate child\n rebuildBreadcrumbBar(getContext(), newFolder);\n }\n } else {\n // let's rebuild bread crumb bar from scratch, since it can be a\n // non-immediate child\n rebuildBreadcrumbBar(getContext(), newFolder);\n }\n setCurrentBreadcrumb(currentCrumb + 1);\n }\n }\n if (currentCrumb < 0) {\n // Current crumb could not be found or bar is not built, try (re)building the bar\n rebuildBreadcrumbBar(context, null);\n // Create a new crumb and add to end of bar\n createBreadcrumb(context, newFolder, -1);\n\n setCurrentBreadcrumb(-1);\n }\n }", "public boolean makeDirectory( String directory, FileType type );", "public void addToDirQueue(Path pathDir) {\n synchronized (this.queueDir) {\n this.queueDir.add(pathDir);\n }\n }", "public void addDirectory1(View view){\n\t\tcontrol(1);\n\t}", "public DirectoryField addDirectoryField(final String key, final String directory) {\n String label = key;\n DirectoryField directoryField = new DirectoryField(getComposite(), _form, key, label, directory, false);\n directoryField.adapt(_formToolkit);\n _form.mapField(key, directoryField);\n return directoryField;\n }", "public boolean changeDirectory(String newDir){\n\t\tthis.currentDir = newDir;\n\t\treturn true;\n\t}", "private void actionAddFolder ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\r\n\t\t\tJFileChooser folderChooser = new JFileChooser();\r\n\t\t\tfolderChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n\r\n\t\t\tint isFolderSelected = folderChooser.showOpenDialog(folderChooser);\r\n\r\n\t\t\tif (isFolderSelected == JFileChooser.APPROVE_OPTION)\r\n\t\t\t{\r\n\t\t\t\tString folderPath = folderChooser.getSelectedFile().getPath();\r\n\r\n\t\t\t\tFile folderFileDescriptor = new File(folderPath);\r\n\t\t\t\tFile[] listFolderFiles = folderFileDescriptor.listFiles();\r\n\r\n\t\t\t\tString[] fileList = new String[listFolderFiles.length];\r\n\r\n\t\t\t\tfor (int i = 0; i < listFolderFiles.length; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tfileList[i] = listFolderFiles[i].getPath();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tDataController.scenarioOpenFolder(fileList);\r\n\r\n\t\t\t\thelperDisplayProjectFiles();\r\n\t\t\t\thelperDisplayInputImage();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}", "public void addToFiles(Path pathDir) {\n this.files.add(pathDir);\n }", "public void createDirectory(SrvSession sess, TreeConnection tree, FileOpenParams params)\n throws IOException {\n\n // Access the database context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Check if the database is online\n \n if ( dbCtx.getDBInterface().isOnline() == false)\n throw new DiskOfflineException( \"Database is offline\");\n \n // Get, or create, a file state for the new path. Initially this will indicate that the directory\n // does not exist.\n \n FileState fstate = getFileState(params.getPath(), dbCtx, false);\n if ( fstate != null && fstate.fileExists() == true)\n throw new FileExistsException(\"Path \" + params.getPath() + \" exists\");\n\n // If there is no file state check if the directory exists\n \n if ( fstate == null) {\n\n // Create a file state for the new directory\n \n fstate = getFileState(params.getPath(), dbCtx, true);\n \n // Get the file details for the directory\n \n if ( getFileDetails(params.getPath(), dbCtx, fstate) != null)\n throw new FileExistsException(\"Path \" + params.getPath() + \" exists\");\n }\n\n // Find the parent directory id for the new directory\n \n int dirId = findParentDirectoryId(dbCtx,params.getPath(),true);\n if ( dirId == -1)\n throw new IOException(\"Cannot find parent directory\");\n \n // Create the new directory entry\n \n try {\n\n // Get the directory name\n \n String[] paths = FileName.splitPath(params.getPath());\n String dname = paths[1];\n\n // Check if the directory name is too long\n \n if ( dname != null && dname.length() > MaxFileNameLen)\n throw new FileNameException(\"Directory name too long, \" + dname);\n \n // If retention is enabled check if the file is a temporary folder\n \n boolean retain = true;\n \n if ( dbCtx.hasRetentionPeriod()) {\n \n // Check if the file is marked delete on close\n \n if ( params.isDeleteOnClose())\n retain = false;\n }\n \n // Set the default NFS file mode, if not set\n \n if ( params.hasMode() == false)\n params.setMode(DefaultNFSDirMode);\n\n // Make sure the create directory option is enabled\n \n if ( params.hasCreateOption( WinNT.CreateDirectory) == false)\n throw new IOException( \"Create directory called for non-directory\");\n \n // Use the database interface to create the new file record\n \n int fid = dbCtx.getDBInterface().createFileRecord(dname, dirId, params, retain);\n\n // Indicate that the path exists\n \n fstate.setFileStatus( FileStatus.DirectoryExists);\n \n // Set the file id for the new directory\n \n fstate.setFileId(fid);\n \n // If retention is enabled get the expiry date/time\n \n if ( dbCtx.hasRetentionPeriod() && retain == true) {\n RetentionDetails retDetails = dbCtx.getDBInterface().getFileRetentionDetails(dirId, fid);\n if ( retDetails != null)\n fstate.setRetentionExpiryDateTime(retDetails.getEndTime());\n }\n \n // Check if the file loader handles create directory requests\n \n if ( fid != -1 && dbCtx.getFileLoader() instanceof NamedFileLoader) {\n \n // Create the directory in the filesystem/repository\n \n NamedFileLoader namedLoader = (NamedFileLoader) dbCtx.getFileLoader();\n namedLoader.createDirectory(params.getPath(), fid);\n }\n }\n catch (Exception ex) {\n Debug.println(ex);\n }\n }", "private void addDirToList(File dir, List<File> list) {\n\t\tif(dir.exists() && dir.isDirectory()) {\n\t\t\tlist.add(dir);\n\t\t}\n\t}", "public BookmarkId addFolder(BookmarkId parent, int index, String title) {\n return nativeAddFolder(mNativeEnhancedBookmarksBridge, parent, index, title);\n }", "private void loadDirectoryUp() {\n\t\tString s = pathDirsList.remove(pathDirsList.size() - 1);\n\t\t// path modified to exclude present directory\n\t\tpath = new File(path.toString().substring(0,\n\t\t\t\tpath.toString().lastIndexOf(s)));\n\t\tfileList.clear();\n\t}", "@Test\n public void testMkdirOneDirectoryRelativePathMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\", \"directory1/subDirectory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"A already exists or a path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n }", "protected void addNetworkDir(final StringBuffer directory, final StringBuffer file,\n final String networkName) {\n if (!networkfolders) {\n return;\n }\n \n final String network = sanitise(networkName.toLowerCase());\n \n boolean prependNetwork = false;\n \n // Check dir exists\n final File dir = new File(directory + network + System.getProperty(\n \"file.separator\"));\n if (dir.exists() && !dir.isDirectory()) {\n eventBus.publishAsync(new UserErrorEvent(ErrorLevel.LOW, null,\n \"Unable to create networkfolders dir (file exists instead)\", \"\"));\n // Prepend network name to file instead.\n prependNetwork = true;\n } else if (!dir.exists() && !dir.mkdirs()) {\n eventBus.publishAsync(new UserErrorEvent(ErrorLevel.LOW, null,\n \"Unable to create networkfolders dir\", \"\"));\n prependNetwork = true;\n }\n \n if (prependNetwork) {\n file.insert(0, \" -- \");\n file.insert(0, network);\n } else {\n directory.append(network);\n directory.append(System.getProperty(\"file.separator\"));\n }\n }", "private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\r\n public void moveToDirWithSameName() {\r\n Dir sameName = new Dir(\"child\", \"/\");\r\n currentDirectory.addNewDirectory(sameName);\r\n command.executeCommand(\"/parent/child/\", \"/\", root, currentDirectory);\r\n currentDirectory = currentDirectory.getSubDirectoryByName(\"child\");\r\n // check child directory with file is in root\r\n assertTrue(currentDirectory.getFileByName(\"file\") != null);\r\n }", "private void createFolder(String name, String path, Long id) {\n VMDirectory newDir = new VMDirectory();\n newDir.setName(name);\n editResourceService.createDir(id, name, new AsyncCallback<Long>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.say(caught.getMessage());\n }\n\n @Override\n public void onSuccess(Long result) {\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, id), newDir, result, true);\n folderPath_idMap.put(path, result);\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n }\n });\n }", "long addEntry(DirectoryEntry newEntry) {\n // Unlink an entry from the free list (or add to the end of the existing\n // directory)\n long pos;\n if (freeEntries.size() > 0) {\n pos = freeEntries.get(0);\n freeEntries.remove(0);\n } else {\n pos = endOfEntries;\n endOfEntries += 32;\n }\n // Put the new entry into it's slot\n dirStream.position(pos);\n newEntry.writeTo(dirStream);\n // Update internal structures to reflect new entry (as if read from\n // disk)\n entries.put(pos, newEntry);\n handleAccessed(true);\n return pos;\n }", "private void createFolder(String myFilesystemDirectory) {\n\r\n File file = new File(myFilesystemDirectory);\r\n try {\r\n if (!file.exists()) {\r\n //modified \r\n file.mkdirs();\r\n }\r\n } catch (SecurityException e) {\r\n Utilidades.escribeLog(\"Error al crear carpeta: \" + e.getMessage());\r\n }\r\n }", "private void createLocalFolder(File newFolder) {\n\n if (!newFolder.exists()) {\n newFolder.mkdirs();\n //TODO: what if the folder can't be created?\n PieLogger.trace(this.getClass(), \"Folder created!\");\n } else {\n PieLogger.debug(this.getClass(), \"Folder exits already?!\");\n }\n }", "@PreAuthorize(\"hasAuthority('file:write')\")\n @PostMapping(\"/newDirectory\")\n public String createNewDirectory(@RequestParam(\"folderName\") String folderName,\n HttpSession httpSession,\n RedirectAttributes redirectAttributes) {\n String currentDirectory = httpSession.getAttribute(\"currentFolderPath\").toString();\n\n //create New directory from the request\n storageService.createNewDirectory(currentDirectory + File.separator + folderName);\n\n redirectAttributes.addFlashAttribute(\"message\",\n \"New directory created\");\n\n return \"redirect:/\";\n }", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "private void addFileToNode(DefaultMutableTreeNode node, FileInfo givenFile){\r\n\t\t//check that there are files in this folder\r\n\t\t// replace existing file if one is present with the same name\r\n\t\tif(!node.isLeaf()){\r\n\t\t\tFileInfo index = (FileInfo) node.getFirstChild();\r\n\t\t\t//look through all the files\r\n\t\t\twhile(index != null){\r\n\t\t\t\t//if it's already there\r\n\t\t\t\tif((index.toString()).equals(givenFile.toString())){\r\n\t\t\t\t\t//FileInfo temp = (FileInfo)index.getPreviousSibling();\r\n\t\t\t\t\t//remove the old file\t\r\n\t\t\t\t\tindex.removeFromParent();\r\n\t\t\t\t\t//index = temp;\r\n\t\t\t\t}\r\n\t\t\t\t//move on to the next index\r\n\t\t\t\tindex = (FileInfo) index.getNextSibling();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//add it to the node\r\n\t\tnode.add(givenFile);\r\n\t\tif(parentTree != null)\r\n\t\t\tparentTree.nodeStructureChanged(node);\r\n\t}", "public void addNode(Node node){subNodes.add(node);}", "private static LinkedList<String> addAllSubDirs(File dir, LinkedList<String> list) {\n\t\tString [] dirListing = dir.list();\n\t\tfor (String subDirName : dirListing) {\n\t\t\tFile subdir = new File(dir.getPath() + System.getProperty(\"file.separator\") + subDirName);\n\t\t\tif (subdir.isDirectory()) {\n\t\t\t\tif (containsJavaFiles(subdir))\n\t\t\t\t\tlist.add(subdir.getPath());\n\t\t\t\tlist = addAllSubDirs(subdir, list);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public void setAndCreateDirPath(String dirname) {\r\n\t File newPath = new File(dirname); \r\n\t \r\n\t if(!newPath.isDirectory()) {\r\n\t\t newPath.mkdirs();\r\n\t }\r\n\t \r\n\t directory = newPath;\r\n }", "public String addDataDir(String path) {\n ArrayList<File> dataDir = getDataDirectories();\n\n String tmp = \"These are paths to be indexed.\\n\";\n\n //Check input(s).\n if (path.isEmpty() || path.length() == 0) return \"Input error.\";\n\n //Split a string into many paths with ';'\n String[] paths = path.split(\";\");\n\n for (String dir : paths) {\n Path dir_path = Paths.get(dir);\n if (Files.exists(dir_path)) {\n if (!contains(dataDir, dir_path)) { //If path hasn't been added.\n dataDir.add(dir_path.toFile()); //Add a path into a list of directory to be indexed.\n watchDir(dir_path);\n tmp += dir_path.toString() + \"\\n\";\n } else {\n tmp += dir + \" is already added.\\n\";\n logger.info(dir + \" is a duplicated path.\");\n }\n } else {\n tmp += dir + \" is an incorrect path, Please enter an exist path.\\n\";\n logger.warning(dir + \" is an incorrect path, Please enter an exist path.\");\n }\n }\n return tmp; //Report back what path had been added.\n }", "@Test\n public void testMkdirOneDirectoryRelativePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n }", "public void add (K key) {\n\t\tthis.root = this.addRecursively(root,key);\n\t}", "private void populateNewChildDirectory(DirectoryEntry newEntry) {\n try (ClusterStream stream = new ClusterStream(fileSystem,\n FileAccess.Write,\n newEntry.getFirstCluster(),\n 0xffffffff)) {\n // First is the self-referencing entry...\n DirectoryEntry selfEntry = new DirectoryEntry(newEntry);\n selfEntry.setName(FileName.SelfEntryName);\n selfEntry.writeTo(stream);\n // Second is a clone of our self entry (i.e. parent) - though dates\n // are odd...\n DirectoryEntry parentEntry = new DirectoryEntry(getSelfEntry());\n parentEntry.setName(FileName.ParentEntryName);\n parentEntry.setCreationTime(newEntry.getCreationTime());\n parentEntry.setLastWriteTime(newEntry.getLastWriteTime());\n parentEntry.writeTo(stream);\n } catch (IOException e) {\n throw new dotnet4j.io.IOException(e);\n }\n }", "@Override\n\tpublic void addSubComponent(Component component) {\n\n\t\tassert (component != null);\n\n\t\t// Check component is not already a subComponent\n\t\tif (subComponents.contains(component)) {\n\t\t\treturn;\n\t\t}\n\n\t\tsubComponents.add(component);\n\t\tcomponent.setSuperComponent(this);\n\t\tnotifySubComponentsChangedListeners();\n\t}", "@Override\n public boolean add(T parent, T child) {\n boolean result = false;\n if (this.root == null) {\n this.root = new Node<>(parent);\n this.root.add(new Node<>(child));\n result = true;\n this.modCount++;\n } else if (findBy(parent).isPresent()) {\n findBy(parent).get().add(new Node<>(child));\n result = true;\n this.modCount++;\n }\n return result;\n }", "public boolean createDirectoryInJarFolder(String folderName){\r\n \r\n path = getPathToJarFolder();\r\n \r\n // add folder to path and make directory\r\n path += folderName;\r\n File file = new File(path);\r\n return file.mkdir();\r\n }", "@Test\n\tpublic void Directories() {\n\t\t\n\t\tString dirs = \"test/one/two/\";\n\t\tFile d = new File(dirs);\n\t\td.mkdirs();\n\t\tAssert.assertTrue(d.exists());\n\t\t\n\t\t//Cleanup\n\t\tif(d.delete()) {\n\t\t\td = new File(\"test/one\");\n\t\t\tif(d.delete()) {\n\t\t\t\td = new File(\"test\");\n\t\t\t\td.delete();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void addRightNode(Tree<T> toAdd) {\n if (right != null) {\n throw new IllegalArgumentException(\"Tree already has a right node\");\n }\n this.right = toAdd;\n }", "public void addPath(Path aPath) {\n _thePaths.add(aPath);\n }", "@Override\n protected NodeInfo createDirectoryEntry(NodeInfo parentEntry, Path dir) throws IOException {\n return drive.createFolder(parentEntry.getId(), toFilenameString(dir));\n }", "@Override\r\n\tpublic boolean copyFolder(String path, String dirName, String newDirName) throws FileSystemUtilException {\r\n\t\tthrow new FileSystemUtilException(\"000000\",null,Level.ERROR,null);\r\n\t}", "@GetMapping(\"/moveInto/{directoryName:.+}\")\n public String moveIntoDirectory(@PathVariable(\"directoryName\") String directory,\n HttpSession httpSession, RedirectAttributes redirectAttributes) {\n String currentDirectory = httpSession.getAttribute(\"currentFolderPath\").toString();\n httpSession.setAttribute(\"currentFolderPath\", currentDirectory + File.separator + directory);\n\n redirectAttributes.addFlashAttribute(\"message\",\n \"Moves into subdirectory: \" + directory);\n return \"redirect:/\";\n }", "public void addChild(TreeNode toAdd) {\n\t\t\tthis.children.add(toAdd);\n\t\t}", "public void addNodeToSelectedNode(Node node) throws NoSelectedNodeException {\n\t\tif (!(this.selectedNode instanceof Folder)){\n\t\t\tesv.showPopupError(\"Can only add a folder to another folder\");\n\t\t\treturn;\n\t\t}\n\n\t\t//Update the swing view first because it will send the needed exceptions\n\t\tesv.addNodeToSelectedNode(node);\n\n\t\t//Update internal representation of tree\n\t\tFolder parent = (Folder)this.selectedNode;\n\t\tparent.addChild(node);\n\t\tnode.setParent(parent);\n\n\t\t//Update lastInserted HashMap\n\t\tthis.lastInsertedNodes.clear();\n\t\tthis.lastInsertedNodes.put(0, node);\n\t}", "public void newFolder ()\n {\n newNode(null);\n }", "public void createFolder(String remotepath){\n String path = rootremotepath+remotepath;\n try {\n sardine.createDirectory(path);\n } catch (IOException e) {\n throw new NextcloudApiException(e);\n }\n }", "public void addChild(Node newChild) {\r\n\t\t\tchildren.reset();\r\n\t\t\t\r\n\t\t\tnewChild.setParent(this);\r\n\r\n\t\t\tif (children.size() == 0)\r\n\t\t\t\tchildren.add(newChild);\r\n\t\t\telse if (children.get().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) \r\n\t\t\t\tchildren.insert(newChild);\r\n\t\t\telse {\r\n\t\t\t\twhile (children.hasNext()) {\r\n\t\t\t\t\tif (children.next().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) break;\r\n\t\t\t\t}\r\n\t\t\t\tif (children.get().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) \r\n\t\t\t\t\tchildren.insert(newChild);\r\n\t\t\t\telse\r\n\t\t\t\t\tchildren.add(newChild);\r\n\t\t\t}\r\n\t\t}", "public void addSubRole(Role role) {\n\t\t// pruefe ob eine Schleife entsteht\n\t\tRole current = role.parentRole;\n\t\twhile (current != null) {\n\t\t\tif (current.name.equals(name))\n\t\t\t\tthrow new RuntimeException(\n\t\t\t\t \"Zirkulaere Zuordnungen zwischen Rollen sind nicht erlaubt.\");\n\t\t\tcurrent = current.parentRole;\n\t\t}\n\t\t// Umhaengen\n\t\tif (role.parentRole != null)\n\t\t\trole.parentRole.subRoles.remove(role);\n\t\tsubRoles.add(role);\n\t\trole.parentRole = this;\n\t}", "public void addJARFolder() {\n btAddJARFolder().push();\n }", "private DirectoryObjects getDirectory(String path, DirectoryObjects current) {\n\t\tif (path.lastIndexOf(\"/\") == 0) {\n\t\t\treturn current;// done\n\t\t} else {\n\t\t\t// parse directories...\n\t\t\tArrayList<String> direcs = new ArrayList<>();\n\t\t\tString temp = path;\n\t\t\tboolean cont = true;\n\t\t\ttemp = temp.substring(1);\n\t\t\twhile (temp.length() > 1 && cont) {\n\n\t\t\t\t// add the substring to the list of directories that need to be\n\t\t\t\t// checked and/or created\n\t\t\t\tdirecs.add(temp.substring(0, temp.indexOf(\"/\")));\n\t\t\t\t// if there are more \"/\"s left, repeat\n\t\t\t\tif (temp.contains(\"/\")) {\n\t\t\t\t\ttemp = temp.substring(temp.indexOf(\"/\") + 1);\n\t\t\t\t}\n\t\t\t\t// else break out of the loop\n\t\t\t\telse {\n\t\t\t\t\tcont = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// do one last check to see if there are any extra characters left\n\t\t\tif (temp.length() > 0) {\n\t\t\t\t// there is still something left\n\t\t\t\tdirecs.add(temp);\n\t\t\t}\n\n\t\t\t// go through each directory, checking if it exists. if not, create\n\t\t\t// the directory and repeat.\n\t\t\tDirectoryObjects l = current;\n\n\t\t\tfor (String p : direcs) {\n\n\t\t\t\tif (l.getDirectoryByName(p) != null) {\n\t\t\t\t\tl = l.getDirectoryByName(p);\n\t\t\t\t} else {\n\t\t\t\t\t// instead of creating a new directory, we just throw an\n\t\t\t\t\t// exception\n\t\t\t\t\treturn l;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn l;\n\n\t\t}\n\n\t}", "@Nonnull\n private static String mergePath(@Nonnull final String directory, @Nonnull final String name) {\n if (directory.endsWith(\"/\")) {\n return directory + name;\n }\n return directory + '/' + name;\n }", "public void add(File toAdd, boolean alsoRemove)\n \tthrows Exception {\n \t\tValidate.notNull(toAdd, \"File toAdd must not be null!\");\n \t\t\n \t\tfinal File root = db.getWorkDir();\n \t\tfinal String toAddCanon = toAdd.getCanonicalPath();\n \t\tfinal String rootCanon = root.getCanonicalPath();\n \t\t\n \t\tValidate.isTrue(toAddCanon.startsWith(rootCanon),\n \t\t\t\t\"File toAdd must be within repository {0} but is {1}!\", root, toAdd);\n \n \t\tfinal ObjectWriter ow = new ObjectWriter(db);\n \t\tfinal DirCache dc = DirCache.lock(db);\n \t\tfinal DirCacheBuilder edit = dc.builder();\n \t\tfinal TreeWalk tw = new TreeWalk(db);\n \t\ttw.reset();\n \t\tif (toAddCanon.equals(rootCanon))\n \t\t\ttw.setFilter(TreeFilter.ALL);\n \t\telse\n \t\t\ttw.setFilter(PathFilter.create(toAddCanon.substring(\n \t\t\t\t\trootCanon.length() + 1).replace('\\\\', '/')));\n \t\ttw.addTree(new DirCacheBuildIterator(edit));\n \t\ttw.addTree(new FileTreeIterator(root));\n \t\twhile (tw.next()) {\n \t\t\tfinal DirCacheBuildIterator i;\n \t\t\tfinal FileTreeIterator d;\n \t\t\tfinal DirCacheEntry e;\n \t\t\t\n \t\t\tif (tw.getRawMode(0) == 0) {\n \t\t\t\t// Entry doesn't yet exist in the index. If its an ignored\n \t\t\t\t// path name, skip over the entry.\n \t\t\t\t//\n \t\t\t\tfinal File f = new File(root, tw.getPathString());\n \t\t\t\tif (ignores.isIgnored(f))\n \t\t\t\t\tcontinue;\n \t\t\t}\n \n \t\t\tif (tw.isSubtree()) {\n \t\t\t\t// The index doesn't allow trees directly, we need to\n \t\t\t\t// recurse and process only leaf nodes.\n \t\t\t\t//\n \t\t\t\ttw.enterSubtree();\n \t\t\t\tcontinue;\n \t\t\t}\n \n \t\t\ti = tw.getTree(0, DirCacheBuildIterator.class);\n \t\t\td = tw.getTree(1, FileTreeIterator.class);\n \n \t\t\tif (tw.getRawMode(0) == 0) {\n \t\t\t\te = new DirCacheEntry(tw.getRawPath());\n \t\t\t\tedit.add(e);\n \n \t\t\t} else if (tw.getRawMode(1) == 0) {\n \t\t\t\t// Entry is no longer in the directory, but is still in the\n \t\t\t\t// index. If we aren't supposed to process removals, keep\n \t\t\t\t// the entry in the cache.\n \t\t\t\t//\n \t\t\t\tif (!alsoRemove)\n \t\t\t\t\tedit.add(i.getDirCacheEntry());\n \t\t\t\tcontinue;\n \n \t\t\t} else if (FileMode.SYMLINK.equals(tw.getFileMode(0))) {\n \t\t\t\t// Entry exists as a symlink. We can't process that in Java.\n \t\t\t\t//\n \t\t\t\tedit.add(i.getDirCacheEntry());\n \t\t\t\tcontinue;\n \n \t\t\t} else {\n \t\t\t\te = i.getDirCacheEntry();\n \t\t\t\tedit.add(e);\n \t\t\t}\n \n \t\t\tfinal FileMode mode = d.getEntryFileMode();\n \t\t\tif (FileMode.GITLINK.equals(mode)) {\n \t\t\t\t// TODO: FileTreeIterator doesn't implement objectId right\n \t\t\t\t// for a GITLINK yet.\n \t\t\t\t//\n \t\t\t\te.setLength(0);\n \t\t\t\te.setLastModified(0);\n \t\t\t\te.setObjectId(d.getEntryObjectId());\n \n \t\t\t} else if (e.getLength() != d.getEntryLength()\n \t\t\t\t\t|| !timestampMatches(e, d)) {\n \t\t\t\tfinal File f = new File(root, tw.getPathString());\n \t\t\t\te.setLength((int) d.getEntryLength());\n \t\t\t\te.setLastModified(d.getEntryLastModified());\n \t\t\t\te.setObjectId(ow.writeBlob(f));\n \t\t\t}\n \t\t\te.setFileMode(mode);\n \t\t}\n \t\tif (!edit.commit())\n \t\t\tthrow new IOException(\"Can't update index\");\n \t}", "public Directory(String name) {\n super(name);\n this.parent = null;\n }", "public File enterSubDir(String dir) {\n return enterSubDir(dir, getComparator());\n }", "private void addChild(final INode node, final int insertionPoint) {\r\n if (children == null) {\r\n children = new ArrayList<INode>(DEFAULT_FILES_PER_DIRECTORY);\r\n }\r\n node.setParent(this);\r\n children.add(-insertionPoint - 1, node);\r\n\r\n if (node.getGroupName() == null) {\r\n node.setGroup(getGroupName());\r\n }\r\n }", "@PostMapping(\"/createfolder\")\n public String createFolder(@RequestParam(name=\"directoryName\", required=true) String directoryName, @RequestParam(name=\"currentPath\", required=true) String currentPath, RedirectAttributes redirectAttributes) {\n try {\n logger.log(Level.INFO, \"Creating directory\");\n uiCommandService.createNewFolder(directoryName, currentPath);\n logger.log(Level.INFO, \"Folder was created successfully!\");\n redirectAttributes.addFlashAttribute(\"success_messages\",\"[Successfully created \" + directoryName + \"!]\");\n } catch (DirectoryExistsException e) {\n redirectAttributes.addFlashAttribute(\"error_messages\", \"[\"+ directoryName +\" already exists!]\");\n logger.log(Level.WARNING, \"Folder {0} already exist in {1}\", new Object[]{directoryName, currentPath});\n }\n return \"redirect:/imageview?location=\" + currentPath.replace(\"\\\\\", \"/\");\n }", "private final void add_to_common_dirs(String val) {\n\n\t\tif (val == null) {\n\n\t\t\treturn;\n\n\t\t}\n\n\t\tif (val == \"\") {\n\n\t\t\treturn;\n\n\t\t}\n\n\t\tif (commonDirs == null) {\n\n\t\t\tcommonDirs = new String[MAX_DIRS];\n\n\t\t\tfor (int i = 0; i < MAX_DIRS; i++) {\n\n\t\t\t\tcommonDirs[i] = \"\";\n\n\t\t\t}\n\n\t\t\tcommonDirs[0] = val;\n\n\t\t}\n\n\t\telse {\n\n\t\t\t/*\n\t\t\t * \n\t\t\t * check for duplicates\n\t\t\t * \n\t\t\t */\n\n\t\t\tfor (int i = 0; i < MAX_DIRS; i++) {\n\n\t\t\t\tif (commonDirs[i].equalsIgnoreCase(val)) {\n\n\t\t\t\t\treturn;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tfor (int i = MAX_DIRS - 1; i > 0; i--) {\n\n\t\t\t\tcommonDirs[i] = commonDirs[i - 1];\n\n\t\t\t}\n\n\t\t\tcommonDirs[0] = val;\n\n\t\t}\n\n\t}", "public Fraction add(Fraction addend)\n {\n int newDenominator = (this.getDenominator() * addend.getDenominator());\n int convertedNumerator1 = (this.getNumerator() * addend.getDenominator());\n int convertedNumerator2 = (addend.getNumerator() * this.getDenominator());\n int newNumerator = convertedNumerator1 + convertedNumerator2;\n \n Fraction newFraction = new Fraction(newNumerator, newDenominator);\n return newFraction;\n }", "@Test\n public void testMkdirMultipleDirectoriesRelativePathOneDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"directory1\", \"directory2\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 or directory2 already exists or the path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1\"), true);\n assertEquals(myTree.hasDirectory(\"/directory2\"), true);\n }", "public static boolean mkdirs(String existingPath, String dirPath){\r\n\t\tif(dirPath == null || dirPath.trim().equals(\"\")) return false;\r\n\t\tString[] dirs = null;\r\n\t\tif(existingPath == null) existingPath = \"\";\r\n\t\tif(dirPath.indexOf(\"\\\\\") != -1){\r\n\t\t\tdirs = dirPath.split(\"\\\\\\\\+\");\r\n\t\t}else if (dirPath.indexOf(\"/\") != -1){\r\n\t\t\tdirs = dirPath.split(\"/+\");\r\n\t\t}\r\n\t\tfor (int i = 0; i < dirs.length; i++) {\r\n\t\t\tif(dirs[i] == null || dirs[i].trim().equals(\"\")) continue;\r\n\t\t\tFile f = new File(existingPath + \"\\\\\" + dirs[i]);\r\n\t\t\tif(!f.exists())\r\n\t\t\t\tf.mkdirs();\r\n\t\t\texistingPath += \"\\\\\" + dirs[i];\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Test\n public void testMkdirOneDirectoryAbsolutePathMultipleDeep() {\n FileTree myTree = new FileTree();\n String[] path = {\"/directory1\", \"/directory1/subDirectory1\"};\n try {\n myTree.mkdir(path);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"A already exists or a path is invalid.\");\n }\n assertEquals(myTree.hasDirectory(\"/directory1/subDirectory1\"), true);\n }", "private void createDirectory(String path) throws IOException {\n\t\tfinal Path p = Paths.get(path);\n\t\tif (!fileExists(p)) {\n\t\t\tFiles.createDirectory(p);\n\t\t}\n\t}", "public void add(int d) {\n // if empty tree, new node is root\n if (root == null) {\n root = new Node(d);\n }\n // if non-empty tree, insert for completeness\n else {\n // go down the left branch of tree until a leaf is reached\n \n // check if leaf has a right sibling, if not, add to right, else go back one node and see if the node's right sibling has children\n // if right sibling \n \n // add to its left child\n\n }\n }", "@Override\n\t\t\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n\t\t\t\tPath resolve = target.resolve(source.relativize(dir));\n\t\t\t\tFile resolve_file = resolve.toFile();\n\n\t\t\t\tif (resolve_file.exists() == false) {\n\t\t\t\t\tFiles.createDirectory(resolve);\n\t\t\t\t} else {\n\t\t\t\t\t// delete old data in sub-directories\n\t\t\t\t\t// without deleting the directory\n\t\t\t\t\tArrays.asList(resolve_file.listFiles()).forEach(File::delete);\n\t\t\t\t}\n\t\t\t\treturn FileVisitResult.CONTINUE;\n\t\t\t}" ]
[ "0.7459737", "0.64573956", "0.62575656", "0.5972372", "0.59246993", "0.5766962", "0.57590497", "0.57459104", "0.5670931", "0.56675196", "0.5498871", "0.5413537", "0.53499955", "0.5276423", "0.5269503", "0.5237418", "0.5218724", "0.5201779", "0.51728636", "0.5171647", "0.5156846", "0.5153552", "0.5054339", "0.50492996", "0.50451726", "0.50381243", "0.49670663", "0.49418876", "0.49339974", "0.49120402", "0.48922998", "0.48815534", "0.48717192", "0.48602507", "0.48329908", "0.48100883", "0.48012453", "0.47990492", "0.47962016", "0.47914255", "0.4790305", "0.4782824", "0.47681358", "0.47673246", "0.47641593", "0.47510117", "0.47363234", "0.47212604", "0.47147822", "0.47030878", "0.47021547", "0.46982825", "0.46944126", "0.46931148", "0.46702033", "0.46623546", "0.46468788", "0.4645142", "0.4632739", "0.46323106", "0.46278355", "0.4627136", "0.46252388", "0.46068624", "0.46049735", "0.46044323", "0.4585828", "0.45790172", "0.45749465", "0.45581087", "0.45559645", "0.45479178", "0.45390627", "0.45285082", "0.4526268", "0.45220378", "0.45216033", "0.44772837", "0.4477085", "0.44752282", "0.44748053", "0.44732025", "0.44667566", "0.44660905", "0.44640028", "0.44528386", "0.4449351", "0.44480878", "0.44478825", "0.44443426", "0.44367364", "0.44308415", "0.443034", "0.44245508", "0.44122526", "0.440751", "0.4391796", "0.43906265", "0.43889147", "0.43887818" ]
0.6854222
1
Adds a new file to this directory. If the file to add is already part of another directory structure, it is removed from there.
public void add(File file) { this.content.add(file); if(file.getParent() != null) { file.getParent().content.remove(file); } file.setParent(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(File file) {\n\t\tfiles.add(file);\n\t}", "public void addFile(final String file);", "public void addFile(FileDiffFile file) {\n \t\tfiles.add(file);\n \t}", "@NonNull\n\t\tBuilder addFile(@NonNull Path path);", "public void add(File file) throws IOException {\n File realFile = new File(Main.CWD, file.getName());\n File rmStage = new File(REMOVAL, file.getName());\n if (rmStage.exists()) {\n rmStage.delete();\n }\n if (realFile.exists()) {\n if (curAndCWDIdentical(file, realFile)) {\n File stagingFile = new File(INDEX, file.getName());\n if (stagingFile.exists()) {\n stagingFile.delete();\n }\n } else {\n File resultingFile = new File(INDEX, file.getName());\n if (!resultingFile.exists()) {\n resultingFile.createNewFile();\n }\n String content = Utils.readContentsAsString(realFile);\n Utils.writeContents(resultingFile, content);\n }\n }\n }", "private void addFileToNode(DefaultMutableTreeNode node, FileInfo givenFile){\r\n\t\t//check that there are files in this folder\r\n\t\t// replace existing file if one is present with the same name\r\n\t\tif(!node.isLeaf()){\r\n\t\t\tFileInfo index = (FileInfo) node.getFirstChild();\r\n\t\t\t//look through all the files\r\n\t\t\twhile(index != null){\r\n\t\t\t\t//if it's already there\r\n\t\t\t\tif((index.toString()).equals(givenFile.toString())){\r\n\t\t\t\t\t//FileInfo temp = (FileInfo)index.getPreviousSibling();\r\n\t\t\t\t\t//remove the old file\t\r\n\t\t\t\t\tindex.removeFromParent();\r\n\t\t\t\t\t//index = temp;\r\n\t\t\t\t}\r\n\t\t\t\t//move on to the next index\r\n\t\t\t\tindex = (FileInfo) index.getNextSibling();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//add it to the node\r\n\t\tnode.add(givenFile);\r\n\t\tif(parentTree != null)\r\n\t\t\tparentTree.nodeStructureChanged(node);\r\n\t}", "@NonNull\n\t\tBuilder addFile(@NonNull String path);", "private static void addFile(File filedir) throws Exception {\n String fileName = getFileNameInput();\n File newFile = new File(filedir.toString() + \"\\\\\" + fileName);\n boolean fileAlreadyExists = newFile.exists();\n if (fileAlreadyExists) {\n throw new FileAlreadyExistsException(\"File already exists in current directory.\");\n } else {\n try {\n if (newFile.createNewFile()) {\n System.out.println(\"File created successfully\");\n } else {\n System.out.println(\"Something went wrong, please try again.\");\n }\n } catch (IOException e) {\n throw new IOException(e.getMessage());\n }\n }\n }", "public void addFile(String name, IDirectory parent) {\r\n // Create a new file\r\n File newFile = new File(name, (Directory) parent);\r\n ((Directory) parent).addItem(newFile);\r\n }", "public void addFile(Path inputFile) throws IOException {\n\t\taddFile(inputFile, this.index);\n\t}", "public void touchOne(File inFile)\n {\n mFiles.add(inFile);\n }", "@NonNull\n\t\tBuilder addFile(@NonNull File file);", "abstract void addNewSourceDirectory(final File targetDirectory);", "public void addFile(String file) {\n files.add(file);\n }", "@Override\n public void addSingleFile(FileInfo file) {\n }", "public void addFile(String source, String dest) throws IOException {\n\t\tConfiguration conf = this.getConfig();\r\n\r\n\t\tFileSystem fileSystem = FileSystem.get(conf);\r\n\t\t// Get the filename out of the file path\r\n\t\tString filename = source.substring(source.lastIndexOf('/') + 1,\r\n\t\t\t\tsource.length());\r\n\t\t// Create the destination path including the filename.\r\n\t\tif (dest.charAt(dest.length() - 1) != '/') {\r\n\t\t\tdest = dest + \"/\" + filename;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdest = dest + filename;\r\n\t\t}\r\n\t\t// Check if the file already exists\r\n\t\tPath path = new Path(dest);\r\n\t\tif (fileSystem.exists(path)) {\r\n\t\t\tSystem.out.println(\"File \" + dest + \" already exists\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Create a new file and write data to it.\r\n\t\tFSDataOutputStream out = fileSystem.create(path);\r\n\t\tInputStream in = new BufferedInputStream(new FileInputStream(\r\n\t\t\t\tnew File(source)));\r\n\t\tbyte[] bytes = new byte[1024];\r\n\t\tint numBytes = 0;\r\n\t\twhile ((numBytes = in.read(bytes)) > 0) {\r\n\t\t\tout.write(bytes, 0, numBytes);\r\n\t\t}\r\n\r\n\t\t// Close all the file descripters\r\n\t\tin.close();\r\n\t\tout.close();\r\n\t\tfileSystem.close();\r\n\t}", "public boolean addFile(File sourceFile) {\n String filename = sourceFile.getName();\n File destFile = null;\n String codeExtension = null;\n boolean replacement = false;\n\n // if the file appears to be code related, drop it\n // into the code folder, instead of the data folder\n if (filename.toLowerCase().endsWith(\".o\") ||\n filename.toLowerCase().endsWith(\".a\") ||\n filename.toLowerCase().endsWith(\".so\")) {\n\n //if (!codeFolder.exists()) codeFolder.mkdirs();\n prepareCodeFolder();\n destFile = new File(codeFolder, filename);\n\n } else {\n for (String extension : getExtensions()) {\n String lower = filename.toLowerCase();\n if (lower.endsWith(\".\" + extension)) {\n destFile = new File(this.folder, filename);\n codeExtension = extension;\n }\n }\n if (codeExtension == null) {\n prepareDataFolder();\n destFile = new File(dataFolder, filename);\n }\n }\n\n // check whether this file already exists\n if (destFile.exists()) {\n Object[] options = { _(\"OK\"), _(\"Cancel\") };\n String prompt = I18n.format(_(\"Replace the existing version of {0}?\"), filename);\n int result = JOptionPane.showOptionDialog(editor,\n prompt,\n _(\"Replace\"),\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE,\n null,\n options,\n options[0]);\n if (result == JOptionPane.YES_OPTION) {\n replacement = true;\n } else {\n return false;\n }\n }\n\n // If it's a replacement, delete the old file first,\n // otherwise case changes will not be preserved.\n // http://dev.processing.org/bugs/show_bug.cgi?id=969\n if (replacement) {\n boolean muchSuccess = destFile.delete();\n if (!muchSuccess) {\n Base.showWarning(_(\"Error adding file\"),\n I18n.format(_(\"Could not delete the existing ''{0}'' file.\"), filename),\n\t\t\t null);\n return false;\n }\n }\n\n // make sure they aren't the same file\n if ((codeExtension == null) && sourceFile.equals(destFile)) {\n Base.showWarning(_(\"You can't fool me\"),\n _(\"This file has already been copied to the\\n\" +\n \"location from which where you're trying to add it.\\n\" +\n \"I ain't not doin nuthin'.\"), null);\n return false;\n }\n\n // in case the user is \"adding\" the code in an attempt\n // to update the sketch's tabs\n if (!sourceFile.equals(destFile)) {\n try {\n Base.copyFile(sourceFile, destFile);\n\n } catch (IOException e) {\n Base.showWarning(_(\"Error adding file\"),\n I18n.format(_(\"Could not add ''{0}'' to the sketch.\"), filename),\n\t\t\t e);\n return false;\n }\n }\n\n if (codeExtension != null) {\n SketchCode newCode = new SketchCode(destFile, codeExtension);\n\n if (replacement) {\n replaceCode(newCode);\n\n } else {\n insertCode(newCode);\n sortCode();\n }\n setCurrentCode(filename);\n editor.header.repaint();\n if (editor.untitled) { // TODO probably not necessary? problematic?\n // Mark the new code as modified so that the sketch is saved\n current.setModified(true);\n }\n\n } else {\n if (editor.untitled) { // TODO probably not necessary? problematic?\n // If a file has been added, mark the main code as modified so\n // that the sketch is properly saved.\n code[0].setModified(true);\n }\n }\n return true;\n }", "public void addToFiles(Path pathDir) {\n this.files.add(pathDir);\n }", "public void addFile(File inFile) throws IOException {\n write(org.apache.commons.io.FileUtils.readFileToString(inFile, Charset.defaultCharset()));\n }", "public void addPath(File path) throws IllegalArgumentException {\r\n File[] PathFiles;\r\n if (path.isDirectory() == true) {\r\n \tPathFiles = path.listFiles();\r\n for (int i=0; i<PathFiles.length; i++) {\r\n \tFile currentfile = PathFiles[i];\r\n if (currentfile.isDirectory()) {\r\n \tdirectory_queue.enqueue(currentfile);\r\n \taddPath(currentfile);\r\n }\r\n }\r\n } else {\r\n throw new IllegalArgumentException(\"Can't resolve the directory path \" + path);\r\n }\r\n }", "public void addFile( File file, EnumMap<FileState, Set<File>> result )\n {\n Set<File> fileSet = result.get( this );\n if ( fileSet == null )\n {\n fileSet = new HashSet<File>();\n result.put( this, fileSet );\n }\n fileSet.add( file );\n }", "public void add(File toAdd, boolean alsoRemove)\n \tthrows Exception {\n \t\tValidate.notNull(toAdd, \"File toAdd must not be null!\");\n \t\t\n \t\tfinal File root = db.getWorkDir();\n \t\tfinal String toAddCanon = toAdd.getCanonicalPath();\n \t\tfinal String rootCanon = root.getCanonicalPath();\n \t\t\n \t\tValidate.isTrue(toAddCanon.startsWith(rootCanon),\n \t\t\t\t\"File toAdd must be within repository {0} but is {1}!\", root, toAdd);\n \n \t\tfinal ObjectWriter ow = new ObjectWriter(db);\n \t\tfinal DirCache dc = DirCache.lock(db);\n \t\tfinal DirCacheBuilder edit = dc.builder();\n \t\tfinal TreeWalk tw = new TreeWalk(db);\n \t\ttw.reset();\n \t\tif (toAddCanon.equals(rootCanon))\n \t\t\ttw.setFilter(TreeFilter.ALL);\n \t\telse\n \t\t\ttw.setFilter(PathFilter.create(toAddCanon.substring(\n \t\t\t\t\trootCanon.length() + 1).replace('\\\\', '/')));\n \t\ttw.addTree(new DirCacheBuildIterator(edit));\n \t\ttw.addTree(new FileTreeIterator(root));\n \t\twhile (tw.next()) {\n \t\t\tfinal DirCacheBuildIterator i;\n \t\t\tfinal FileTreeIterator d;\n \t\t\tfinal DirCacheEntry e;\n \t\t\t\n \t\t\tif (tw.getRawMode(0) == 0) {\n \t\t\t\t// Entry doesn't yet exist in the index. If its an ignored\n \t\t\t\t// path name, skip over the entry.\n \t\t\t\t//\n \t\t\t\tfinal File f = new File(root, tw.getPathString());\n \t\t\t\tif (ignores.isIgnored(f))\n \t\t\t\t\tcontinue;\n \t\t\t}\n \n \t\t\tif (tw.isSubtree()) {\n \t\t\t\t// The index doesn't allow trees directly, we need to\n \t\t\t\t// recurse and process only leaf nodes.\n \t\t\t\t//\n \t\t\t\ttw.enterSubtree();\n \t\t\t\tcontinue;\n \t\t\t}\n \n \t\t\ti = tw.getTree(0, DirCacheBuildIterator.class);\n \t\t\td = tw.getTree(1, FileTreeIterator.class);\n \n \t\t\tif (tw.getRawMode(0) == 0) {\n \t\t\t\te = new DirCacheEntry(tw.getRawPath());\n \t\t\t\tedit.add(e);\n \n \t\t\t} else if (tw.getRawMode(1) == 0) {\n \t\t\t\t// Entry is no longer in the directory, but is still in the\n \t\t\t\t// index. If we aren't supposed to process removals, keep\n \t\t\t\t// the entry in the cache.\n \t\t\t\t//\n \t\t\t\tif (!alsoRemove)\n \t\t\t\t\tedit.add(i.getDirCacheEntry());\n \t\t\t\tcontinue;\n \n \t\t\t} else if (FileMode.SYMLINK.equals(tw.getFileMode(0))) {\n \t\t\t\t// Entry exists as a symlink. We can't process that in Java.\n \t\t\t\t//\n \t\t\t\tedit.add(i.getDirCacheEntry());\n \t\t\t\tcontinue;\n \n \t\t\t} else {\n \t\t\t\te = i.getDirCacheEntry();\n \t\t\t\tedit.add(e);\n \t\t\t}\n \n \t\t\tfinal FileMode mode = d.getEntryFileMode();\n \t\t\tif (FileMode.GITLINK.equals(mode)) {\n \t\t\t\t// TODO: FileTreeIterator doesn't implement objectId right\n \t\t\t\t// for a GITLINK yet.\n \t\t\t\t//\n \t\t\t\te.setLength(0);\n \t\t\t\te.setLastModified(0);\n \t\t\t\te.setObjectId(d.getEntryObjectId());\n \n \t\t\t} else if (e.getLength() != d.getEntryLength()\n \t\t\t\t\t|| !timestampMatches(e, d)) {\n \t\t\t\tfinal File f = new File(root, tw.getPathString());\n \t\t\t\te.setLength((int) d.getEntryLength());\n \t\t\t\te.setLastModified(d.getEntryLastModified());\n \t\t\t\te.setObjectId(ow.writeBlob(f));\n \t\t\t}\n \t\t\te.setFileMode(mode);\n \t\t}\n \t\tif (!edit.commit())\n \t\t\tthrow new IOException(\"Can't update index\");\n \t}", "public void addDirectory(FileDiffDirectory directory) {\n \t\tthis.directories.add(directory);\n \t}", "void addFile(RebaseJavaFile jf)\n{\n if (file_nodes.contains(jf)) return;\n\n file_nodes.add(jf);\n jf.setRoot(this);\n}", "public void add(FileSystemEntry entry);", "public void addFile(File fileName){\n files.add(fileName);\n }", "public void handleAddFile() {\n // make sure the user didn't hide the sketch folder\n ensureExistence();\n\n // if read-only, give an error\n if (isReadOnly()) {\n // if the files are read-only, need to first do a \"save as\".\n Base.showMessage(_(\"Sketch is Read-Only\"),\n _(\"Some files are marked \\\"read-only\\\", so you'll\\n\" +\n \"need to re-save the sketch in another location,\\n\" +\n \"and try again.\"));\n return;\n }\n\n // get a dialog, select a file to add to the sketch\n String prompt =\n _(\"Select an image or other data file to copy to your sketch\");\n //FileDialog fd = new FileDialog(new Frame(), prompt, FileDialog.LOAD);\n FileDialog fd = new FileDialog(editor, prompt, FileDialog.LOAD);\n fd.setVisible(true);\n\n String directory = fd.getDirectory();\n String filename = fd.getFile();\n if (filename == null) return;\n\n // copy the file into the folder. if people would rather\n // it move instead of copy, they can do it by hand\n File sourceFile = new File(directory, filename);\n\n // now do the work of adding the file\n boolean result = addFile(sourceFile);\n\n if (result) {\n editor.statusNotice(_(\"One file added to the sketch.\"));\n }\n }", "public void addFile(File aResourceFile) {\n\t\tif (!aResourceFile.exists()) {\n\t\t\tignoredReferences.put(aResourceFile.getPath(), \"does not exists\");\n\t\t\treturn;\n\t\t}\n\t\tif (!aResourceFile.isFile()) {\n\t\t\tignoredReferences.put(aResourceFile.getPath(), \"is no file\");\n\t\t\treturn;\n\t\t}\n\t\tif (!aResourceFile.getAbsolutePath().endsWith(\".integrity\")) {\n\t\t\tignoredReferences.put(aResourceFile.getPath(), \"is no integrity file (*.integrity)\");\n\t\t\treturn;\n\t\t}\n\t\tresourceFiles.add(aResourceFile.getAbsolutePath());\n\t}", "public void add(Directory subDir) {\n\t\tthis.content.add(subDir);\n\t\tif(subDir.getParent() != null) {\n\t\t\tsubDir.getParent().content.remove(subDir);\n\t\t}\n\t\tsubDir.setParent(this);\n\t}", "public void addRecursively(File aResourceFile) {\n\t\tif (!aResourceFile.exists()) {\n\t\t\tignoredReferences.put(aResourceFile.getPath(), \"does not exists\");\n\t\t\treturn;\n\t\t}\n\t\tif (!aResourceFile.isDirectory()) {\n\t\t\taddFile(aResourceFile);\n\t\t\treturn;\n\t\t}\n\t\tfor (File tempFile : aResourceFile.listFiles()) {\n\t\t\taddRecursively(tempFile);\n\t\t}\n\t}", "public void addfile() {\n\t\tString name;\r\n\t\tSystem.out.println(\"Enter the file name you want to add\");\r\n Scanner sc = new Scanner(System.in);\r\n name = sc.nextLine();\r\n try {\r\n \t\tFile file = new File(\"g:\\\\LockedMe\\\\\"+name);\r\n \t\tif(file.createNewFile()) {\r\n \t\t\tSystem.out.println(\"New file created\");\r\n \t\t}\r\n \t\telse {\r\n \t\t\tif(file.exists())\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"file already exists\");\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"file does not exist\");\r\n \t\t\t}\r\n \t\t}\r\n }\r\n catch(Exception e)\r\n {\r\n \t e.printStackTrace();\r\n }\r\n\t}", "@Override\n\tpublic FileModel add(FileModel c) {\n\t\treturn fm.save(c);\n\t}", "public edu.umich.icpsr.ddi.FileTypeType addNewFileType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileTypeType target = null;\n target = (edu.umich.icpsr.ddi.FileTypeType)get_store().add_element_user(FILETYPE$8);\n return target;\n }\n }", "public void addDir(File dirObj, ZipOutputStream out) throws IOException {\n\t\t File[] files = dirObj.listFiles();\n\t\t byte[] tmpBuf = new byte[1024];\n\t\t for (int i = 0; i < files.length; i++) {\n\t\t if (files[i].isDirectory()) {\n\t\t addDir(files[i], out);\n\t\t continue;\n\t\t }\n\t \t FileInputStream in = new FileInputStream(files[i].getAbsolutePath());\n\t\t System.out.println(\" Adding: \" + files[i].getAbsolutePath());\n\t\t out.putNextEntry(new ZipEntry(files[i].getAbsolutePath()));\n\t\t int len;\n\t\t while ((len = in.read(tmpBuf)) > 0) { out.write(tmpBuf, 0, len); }\n\t\t out.closeEntry();\n\t\t in.close();\n\t\t }\n\t\t }", "private static void addDirectory(ZipOutputStream zout, File fileSource, File sourceDir) {\n\n\t\t// get sub-folder/files list\n\t\tFile[] files = fileSource.listFiles();\n\n\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\ttry {\n\t\t\t\tString name = files[i].getAbsolutePath();\n\t\t\t\tname = name.substring((int) sourceDir.getAbsolutePath().length());\n\t\t\t\t// if the file is directory, call the function recursively\n\t\t\t\tif (files[i].isDirectory()) {\n\t\t\t\t\taddDirectory(zout, files[i], sourceDir);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * we are here means, its file and not directory, so\n\t\t\t\t * add it to the zip file\n\t\t\t\t */\n\n\n\t\t\t\t// create object of FileInputStream\n\t\t\t\tFileInputStream fin = new FileInputStream(files[i]);\n\n\t\t\t\tzout.putNextEntry(new ZipEntry(name));\n\n\t\t\t\tIOUtils.copy(fin, zout);\n\t\t\t\t\n\t\t\t\tzout.closeEntry();\n\n\t\t\t\t// close the InputStream\n\t\t\t\tfin.close();\n\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "public AddFileToZip add(final File source) {\n\t\treturn new AddFileToZip(source);\n\t}", "public void addFile(String fileName) throws FileNotFoundException,\r\n\t\t\tIOException {\r\n\t\tFileInputStream fis = new FileInputStream(fileName);\r\n\t\tint size = 0;\r\n\t\tbyte[] buffer = new byte[2048];\r\n\r\n\t\t// Ajouter une entree à l'archive zip\r\n\t\tFile file = new File(fileName);\r\n\t\tZipEntry zipEntry = new ZipEntry(file.getName());\r\n\t\tthis.zos.putNextEntry(zipEntry);\r\n\r\n\t\t// copier et compresser les données\r\n\t\twhile ((size = fis.read(buffer, 0, buffer.length)) > 0) {\r\n\t\t\tthis.zos.write(buffer, 0, size);\r\n\t\t}\r\n\r\n\t\tthis.zos.closeEntry();\r\n\t\tfis.close();\r\n\t}", "@Override\n\t\tpublic void add(File explodedAar) {\n if (!isShared(explodedAar))\n files.addAll(getJars(explodedAar));\n\t\t}", "public static void addFile(File f) throws IOException {\n addURL(f.toURI().toURL());\n }", "private void addPressed() {\n\n\t\tJFileChooser fc = new JFileChooser();\n\t\tfc.setFileFilter(SwingFileFilterFactory.newMediaFileFilter());\n\t\tint returnVal = fc.showOpenDialog(Library.this);\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tString newFile = fc.getSelectedFile().getAbsolutePath();\n\t\t\t// Check that file is a video or audio file.\n\t\t\tInvalidCheck i = new InvalidCheck();\n\t\t\tboolean isValidMedia = i.invalidCheck(newFile);\n\n\t\t\tif (!isValidMedia) {\n\t\t\t\tJOptionPane.showMessageDialog(Library.this, \"You have specified an invalid file.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}else{\n\t\t\t\tselectedFile = fc.getSelectedFile();\n\t\t\t\tl.addElement(selectedFile.getName());\n\t\t\t\tpaths.put(selectedFile.getName(), selectedFile.getAbsolutePath());\n\t\t\t\tsizes.put(selectedFile.getName(),selectedFile.length());\n\t\t\t}\n\t\t}\n\t}", "private void addFolder(){\n }", "public void addChildFile(IFile child) {\n childFiles.add(child);\n }", "public void addFile(MultipartFile multipartFile, String username) throws IOException {\n InputStream fis = multipartFile.getInputStream();\n // create an output buffer\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n // write data to the output buffer\n int nRead;\n byte[] data = new byte[1024];\n while ((nRead = fis.read(data, 0, data.length)) != -1) {\n buffer.write(data, 0, nRead);\n }\n buffer.flush();\n\n Integer userID = usersMapper.getUser(username).getUserID();\n String fileName = multipartFile.getOriginalFilename();\n Integer fileID = 0;\n String contentType = multipartFile.getContentType();\n String fileSize = String.valueOf(multipartFile.getSize());\n byte[] fileData = buffer.toByteArray();\n\n Files file = new Files(fileID, fileName, contentType,\n fileSize, userID, fileData);\n filesMapper.insertFile(file);\n }", "public void addToFile(User newUser){\r\n //If the user name is not already in the file then we do not want to re-add the user.\r\n if (f.searchForUsername(newUser.getUsername()) == -1) {\r\n newUser.setPassword(encrypt(newUser.getPassword()));\r\n f.write(newUser);\r\n } else {\r\n System.err.println(\"User already exists\");\r\n }\r\n }", "public void addAddFile( String addfile ) {\n if ( addfile == null ) {\n return ;\n }\n addfiles .addElement( addfile );\n }", "public void addSubdirectory(Directory newdir) {\n\t\tgetSubdirectories().add(newdir);\n\t}", "public void addFile(FileWithFaultLocations faultLocationsFile) throws UnsupportedOperationException;", "public void add(String name) {\n File f = new File(name);\n if (!f.exists()) {\n Utils.message(\"File does not exist.\");\n throw new GitletException();\n }\n Blob blob = new Blob(f);\n untracked.remove(name);\n HashMap<String, Blob> files = head.getContents();\n if (files.containsKey(name)\n && files.get(name).getContent().equals(blob.getContent())) {\n return;\n } else if (!(files.containsKey(name) && files.get(name).equals(blob))) {\n stagingarea.put(blob.getName(), blob);\n File stagefile = Utils.join(staging, blob.getHash());\n Utils.writeObject(stagefile, blob);\n }\n\n }", "public ImageFile addImageFile(ImageFile f) {\n imageFiles.add(f);\n return f;\n }", "public String addFile(String fn)\n\t{\n\t\tString intfn= sysdir + File.separator + fn;\n\t\tsynchronized( syncFiles ) // get Intermediate-Data access for the key \n\t\t{\n\t\t\twhile( syncFileswait )\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tsyncFiles.wait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tsyncFileswait= true;\n\t\t\t\n\t\t\tfiles.put(fn, intfn);\n\t\t\t\n\t\t\tsyncFileswait= false;\n\t\t\tsyncFiles.notifyAll();\n\t\t}\n\t\t\n\t\treturn intfn;\n\t}", "public void add(FileName fn) {\n if (size() == 0) {\n fileNameList.add(this);\n }\n fileNameList.add(fn);\n }", "public edu.umich.icpsr.ddi.FileNameType addNewFileName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileNameType target = null;\n target = (edu.umich.icpsr.ddi.FileNameType)get_store().add_element_user(FILENAME$0);\n return target;\n }\n }", "public void addPath(Path aPath) {\n _thePaths.add(aPath);\n }", "private void addToZip(File directoryToZip, File file, ZipOutputStream zos) throws IOException {\r\n final int BUFFER_SIZE = 1024;\r\n FileInputStream fis = new FileInputStream(file);\r\n // we want the zipEntry's path to be a relative path that is relative\r\n // to the directory being zipped, so chop off the rest of the path\r\n String zipFilePath = file.getCanonicalPath().substring(\r\n (directoryToZip.getCanonicalPath().length() - directoryToZip.getName().length()),\r\n file.getCanonicalPath().length());\r\n ZipEntry zipEntry = new ZipEntry(zipFilePath);\r\n zos.putNextEntry(zipEntry);\r\n byte[] bytes = new byte[BUFFER_SIZE];\r\n int length;\r\n while ((length = fis.read(bytes)) >= 0) {\r\n zos.write(bytes, 0, length);\r\n }\r\n zos.closeEntry();\r\n fis.close();\r\n }", "private TreeItem<String> addNewItem(Path path) {\n TreeItem<String> mostCorrespondingParent = findMostCorrespondingParentFor(path);\n TreeItem<String> newChildTreeItem;\n if (buildPathForNode(mostCorrespondingParent) != null) {\n Path newChildPath;\n if (mostCorrespondingParent != rootNode) {\n Path mostCorrespondingParentPath = getNodeAbsolutePath(mostCorrespondingParent);\n newChildPath = extractChildPath(path, mostCorrespondingParentPath);\n } else {\n newChildPath = path;\n }\n newChildTreeItem = new TreeItem<>(newChildPath.toString(), new ImageView(FileTreeItem.FileType.FILE.getImage()));\n } else {\n newChildTreeItem = new TreeItem<>(path.toString(), new ImageView(FileTreeItem.FileType.FILE.getImage()));\n }\n mostCorrespondingParent.getChildren().add(newChildTreeItem);\n sortChildren(mostCorrespondingParent);\n return extractFileNameToLeaf(newChildTreeItem);\n }", "public void addFile (File f) {\n Arquivo arquivo = new Arquivo(this, f);\n arquivo.setVisible(true);\n\n panFiles.add(arquivo);\n }", "public void addChild(DirectoryNode node) throws FullDirectoryException, NotADirectoryException {\n if(isFile)\n throw new NotADirectoryException(\"Error: This node is a file\");\n if(left != null && middle != null && right != null)\n throw new FullDirectoryException(\"This directory is full\");\n if(left == null)\n left = node;\n else if(middle == null)\n middle = node;\n else if(right == null)\n right = node;\n }", "private void addFileToTarGz(TarArchiveOutputStream tOut, String path, String base) throws IOException {\n File f = new File(path);\n String entryName = base + f.getName();\n TarArchiveEntry tarEntry = new TarArchiveEntry(f, entryName);\n tOut.putArchiveEntry(tarEntry);\n Platform.runLater(() -> fileLabel.setText(\"Processing \" + f.getPath()));\n\n if (f.isFile()) {\n FileInputStream fin = new FileInputStream(f);\n IOUtils.copy(fin, tOut);\n fin.close();\n tOut.closeArchiveEntry();\n } else {\n tOut.closeArchiveEntry();\n File[] children = f.listFiles();\n if (children != null) {\n for (File child : children) {\n addFileToTarGz(tOut, child.getAbsolutePath(), entryName + \"/\");\n }\n }\n }\n }", "public static void addFile(String s) throws IOException {\n File f = new File(s);\n addFile(f);\n }", "private void actionAddFile ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tJFileChooser fileChooserDriver = new JFileChooser();\r\n\r\n\t\t\tint isFileSelected = fileChooserDriver.showOpenDialog(fileChooserDriver);\r\n\r\n\t\t\tif (isFileSelected == JFileChooser.APPROVE_OPTION)\r\n\t\t\t{\r\n\t\t\t\tString filePath = fileChooserDriver.getSelectedFile().getPath();\r\n\t\t\t\tDataController.scenarioAddFile(filePath);\r\n\r\n\t\t\t\thelperDisplayProjectFiles();\r\n\t\t\t\thelperDisplayInputImage();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\r\n\t}", "public void appendFileTo(String sourceFilename, String targetFilename)\r\n\tthrows FileNotFoundException, IOException {\r\n\t\tString theFileContent = readStringFromFile(sourceFilename);\r\n\t\tappendStringToFile(theFileContent, targetFilename);\r\n\t}", "public void insertNewIntoDirectory(int position, FileSystem file) {\r\n\tList<FileSystem> list = this.getDir().getList(); \r\n\tlist.add(position, file);\r\n}", "public static void addFile(String filePath, String fileName, org.apache.tools.tar.TarOutputStream tarFile) throws IOException {\r\n // change to the path\r\n // File f = new File(filePath + \".\");\r\n // Create a buffer for reading the files\r\n byte[] buf = new byte[2048];\r\n // Compress the file\r\n FileInputStream in = new FileInputStream(filePath + fileName);\r\n // Add tar entry to output stream.\r\n File f = new File(filePath + fileName);\r\n TarEntry entry = new TarEntry(f);\r\n entry.setName(f.getName());\r\n //tarFile.writeEntry(entry, false);\r\n //tarFile.writeEntry(entry, false);\r\n tarFile.putNextEntry(entry);\r\n // Transfer bytes from the file to the tar file\r\n int len;\r\n while ((len = in.read(buf)) > -1) {\r\n //log.debug(\"len: \" + len + \" buf: \" + buf.toString());\r\n tarFile.write(buf, 0, len);\r\n }\r\n // Complete the entry\r\n tarFile.closeEntry();\r\n in.close();\r\n }", "long addEntry(DirectoryEntry newEntry) {\n // Unlink an entry from the free list (or add to the end of the existing\n // directory)\n long pos;\n if (freeEntries.size() > 0) {\n pos = freeEntries.get(0);\n freeEntries.remove(0);\n } else {\n pos = endOfEntries;\n endOfEntries += 32;\n }\n // Put the new entry into it's slot\n dirStream.position(pos);\n newEntry.writeTo(dirStream);\n // Update internal structures to reflect new entry (as if read from\n // disk)\n entries.put(pos, newEntry);\n handleAccessed(true);\n return pos;\n }", "public void add(ClassFile classFile) {\n throwIfClassNameDoesNotMatch(classFile, classFilePath);\n list.add(classFile);\n }", "public static void add(Gitlet currCommit, String[] args) {\n if (args.length != 2) {\n System.out.println(\"Specify which file to add.\");\n return;\n }\n FileManip fileToAdd = new FileManip(args[1]);\n FileManip prevFile = new FileManip(\".gitlet/\"\n + currCommit.tree.getCommit() + \"/\" + args[1]);\n if (!fileToAdd.exists()) {\n System.out.println(\"File does not exist.\");\n } else if (!prevFile.exists()) {\n currCommit.status.addToStatus(args[1]);\n addSerializeFile(currCommit);\n } else if (fileToAdd.isSame(prevFile.getPath())) {\n System.out.println(\"File has not been modified since the last commit.\");\n } else {\n currCommit.status.addToStatus(args[1]);\n addSerializeFile(currCommit);\n }\n }", "public void addFiletoNode(DefaultMutableTreeNode pnode,\n\t\t\t\t\tEllowFile pfile) {\n\t\t\t\tcurrentFiles++;\n\t\t\t\tdesktopPane.setDialogProgress(\n\t\t\t\t\t\t(int) (currentFiles / totalFiles * 100),\n\t\t\t\t\t\t\"Refreshing Workspace\", \"Scanning Projects\");\n\t\n\t\t\t\tif (pfile.isDirectory()){\n\t\t\t\t\tfor (File file : pfile.listFiles())\n\t\t\t\t\t\tif (file.isDirectory())\n\t\t\t\t\t\t\tscanFile(file,pfile, pnode);\n\t\t\t\t\tfor (File file : pfile.listFiles())\n\t\t\t\t\t\tif (!file.isDirectory())\n\t\t\t\t\t\t\tscanFile(file,pfile, pnode);\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\tpublic void addFile(String type, String given_name, \r\n\t\t\tString localDesc, String globalDesc){\r\n\t\t\r\n\t\t//check the conditions\r\n\t\tif(globalDesc == null)\r\n\t\t\tglobalDesc = \"\";\r\n\t\tif(localDesc == null)\r\n\t\t\tlocalDesc = \"\";\r\n\t\tif(given_name == null)\r\n\t\t\treturn;\r\n\t\t\r\n\t\t//add the file to the appropriate node\r\n\t\tif(type.equals(INFILE_KEY)){\r\n\t\t\taddFileToNode(input, new FileInfo(given_name, localDesc, globalDesc));\r\n\t\t}\r\n\t\tif(type.equals(OUTFILE_KEY)){\r\n\t\t\taddFileToNode(output, new FileInfo(given_name, localDesc, globalDesc));\r\n\t\t}\r\n\t}", "void addFileToZip(File file, Zipper z, SynchronizationRequest req) \n throws IOException {\n\n if (file.isFile()) {\n z.setBaseDirectory(req.getTargetDirectory());\n z.addFileToZip(file, _out);\n } else if (file.isDirectory()) {\n z.setBaseDirectory(req.getTargetDirectory());\n z.addDirectoryToZip(file, _out);\n } else {\n assert false;\n }\n }", "public edu.umich.icpsr.ddi.FileContType addNewFileCont()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileContType target = null;\n target = (edu.umich.icpsr.ddi.FileContType)get_store().add_element_user(FILECONT$2);\n return target;\n }\n }", "protected void add(String path) throws IOException {\n String[] command = {SVN, ADD, path};\n run(command, null, null, null);\n }", "public void addFolder(Folder f) {\n folders.add(f);\n }", "boolean addFile() {\n String currentDir;\n //Start in last accessed directory\n if (photoList.isEmpty())\n currentDir = \".\";\n else\n currentDir = photoList.get(photoList.size()-1);\n\n JFileChooser fc = fileChooserDialog(\"Add File\", currentDir);\n\n // Now open chooser\n int result = fc.showOpenDialog(this);\n\n if (result == JFileChooser.CANCEL_OPTION) {\n return true;\n } else if (result == JFileChooser.APPROVE_OPTION) {\n checkBoxArea.setVisible(false);\n fFile = fc.getSelectedFile();\n photoList.add(fFile.getPath());\n checkBoxArea.addCheckBox(fFile);\n int height = (int)checkBoxArea.getPreferredSize().getHeight();\n checkScroll.getVerticalScrollBar().setValue(height);\n\n checkBoxArea.setVisible(true);\n } else {\n return false;\n }\n return true;\n }", "public AddFileToZip recursive() {\n\t\t\tthis.recursive = true;\n\t\t\treturn this;\n\t\t}", "private void addModule(ZipOutputStream out, File file) throws IOException\n\t{\n\t\tif (file.isDirectory())\n\t\t{\n\t\t\tfor (File f : file.listFiles())\n\t\t\t{\n\t\t\t\t// FIXME: remove MainModule.java\n\t\t\t\tif (!f.getName().equals(\"MainModule.java\"))\n\t\t\t\t{\n\t\t\t\t\taddModule(out, f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString fileName = \"/src/main/java/modules/\" + file.getName();\n\t\t\t\n\t\t\tcreateZipEntry(out, fileName, Files.readAllBytes(Paths.get(file.getAbsolutePath())));\t\t}\n\t}", "public void addFromFile(File file) throws CoreException {\n\tInputStream stream = null;\n\n\ttry {\n\t stream = new FileInputStream(file);\n\t addFromStream(stream);\n\n\t} catch (IOException e) {\n\t throwReadException(e);\n\n\t} finally {\n\t try {\n\t\tif (stream != null)\n\t\t stream.close();\n\t } catch (IOException e) {\n\t }\n\t}\n }", "protected final void addFileId(int index, int fileid) {\n getChildIds().add(index, fileid);\n getBTreeMetaData().setDirty(this);\n }", "public final void addDirectory(String dir) {\n addDirectory(Paths.get(dir));\n }", "public static void addToZip(String path, ZipOutputStream myZip, File f) throws FileNotFoundException, IOException{\n\t\tif(f.isDirectory()){\n\t\t\tfor(File subF : f.listFiles()){\n\t\t\t\taddToZip(path + File.separator + f.getName() , myZip, subF);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tZipEntry e = new ZipEntry(path + File.separator + f.getName());\n\t\t\tmyZip.putNextEntry(e);\n\t\t\ttry (InputStream is = new FileInputStream(f.getAbsolutePath())) {\n\t\t\t\tIOUtils.copyLarge(is, myZip);\n\t\t\t}\n\t\t}\n\t}", "void addNewAccountToFile(Account newAccount);", "@Override\n\tpublic boolean addModuleDirectory(String path)\n\t{\n\t\tpath = path.replace(\"~\", System.getProperty(\"user.home\"));\n\t\tSystem.out.println(\"Path: \" + path);\n\t\tFile newDir = new File(path);\n\n\t\tif (newDir.exists() && newDir.isDirectory()) {\n\t\t\tmoduleDirectories.add(newDir);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public void addFileSet(final FileSet _fileSet) {\n this.fileSets.add(_fileSet);\n }", "void setNewFile(File file);", "public FileObject add(String path){\r\n FileObject fileObject = order.add(path);\r\n if (fileObject != null) {\r\n calendar = new DateControll();\r\n }\r\n return fileObject;\r\n }", "public ArchiveEntry addEntry (File baseDir, File file, URI format,\n\t\tboolean mainEntry) throws IOException\n\t{\n\t\tif (!file.exists ())\n\t\t\tthrow new IOException (\"file does not exist.\");\n\t\t\n\t\tif (!file.getAbsolutePath ().contains (baseDir.getAbsolutePath ()))\n\t\t\tthrow new IOException (\"file must be in basedir.\");\n\t\t\n\t\tString localName = file.getAbsolutePath ()\n\t\t\t.replace (baseDir.getAbsolutePath (), \"\");\n\t\t\n\t\treturn addEntry (file, localName, format, mainEntry);\n\t}", "public ArchiveEntry addEntry (File baseDir, File file, URI format)\n\t\tthrows IOException\n\t{\n\t\tif (!file.exists ())\n\t\t\tthrow new IOException (\"file does not exist.\");\n\t\t\n\t\tif (!file.getAbsolutePath ().contains (baseDir.getAbsolutePath ()))\n\t\t\tthrow new IOException (\"file must be in basedir.\");\n\t\t\n\t\tString localName = file.getAbsolutePath ()\n\t\t\t.replace (baseDir.getAbsolutePath (), \"\");\n\t\t\n\t\treturn addEntry (file, localName, format, false);\n\t}", "public boolean addNew(String path, String name, String info) throws IOException {\n\t\tString newLast = (Integer.toString(getNumber(path) + 1));\n\t\tFile f = new File (path + \"aacont.txt\");\n\t\tFileWriter fw = new FileWriter(f);\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\tbw.write(newLast);\n\t\tbw.close();\n\t\t//Create student's file\n\t\tf = new File (path + name.trim().replace(\" \", \"\").toLowerCase() + \".txt\");\n\t\tfw = new FileWriter(f);\n\t\tbw = new BufferedWriter(fw);\n\t\tbw.write(info);\n\t\tbw.close();\n\t\t//Add student to the list\n\t\tFileReader fr = null;\n\t\ttry {\n\t\t\tf = new File(path + \"aaall.txt\");\n\t\t\tfr = new FileReader (f);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tString line, total = \"\";\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\ttotal += line + \"\\n\";\n\t\t\t}\n\t\t\tfw = new FileWriter(f);\n\t\t\tbw = new BufferedWriter(fw);\n\t\t\tbw.write(total + name);\n\t\t\tbr.close();\n\t\t\treturn true;\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\treturn false;\n\t\t}\n\t\tfinally {\n\t\t\tif (fr != null) {\n\t\t\t\tfr.close();\n\t\t\t\tbw.close();\n\t\t\t}\n\t\t}\n\t}", "void putFile(String relativePath, Codebase codebase) {\n try {\n File dest = new File(rootDirectory.getAbsolutePath(), relativePath);\n File src = codebase.getFile(relativePath);\n boolean srcExists = filesystem.exists(src);\n boolean destExists = filesystem.exists(dest);\n\n boolean srcExecutable = filesystem.isExecutable(src);\n boolean destExecutable = filesystem.isExecutable(dest);\n\n if (!srcExists && !destExists) {\n throw new MoeProblem(\n \"Neither src nor dests exists. Unreachable code:%n%s%n%s%n%s\", relativePath, src, dest);\n }\n\n if (!srcExists) {\n util.runSvnCommandWithWorkingDirectory(rootDirectory.getAbsolutePath(), \"rm\", relativePath);\n // TODO(dbentley): handle newly-empty directories\n return;\n }\n\n try {\n filesystem.makeDirsForFile(dest);\n filesystem.copyFile(src, dest);\n } catch (IOException e) {\n throw new MoeProblem(e, \"Failed to copy %s to %s\", src, dest);\n }\n\n if (!destExists) {\n util.runSvnCommandWithWorkingDirectory(\n rootDirectory.getAbsolutePath(), \"add\", \"--parents\", relativePath);\n }\n\n String mimeType = guessMimeType(relativePath);\n if (mimeType != null) {\n try {\n util.runSvnCommandWithWorkingDirectory(\n rootDirectory.getAbsolutePath(), \"propset\", \"svn:mime-type\", mimeType, relativePath);\n } catch (CommandRunner.CommandException e) {\n // If the mime type setting fails, it's not really a big deal.\n // Just log it and keep going.\n ui.message(\"Error setting mime-type for %s\", relativePath);\n }\n }\n\n if (destExecutable != srcExecutable) {\n if (srcExecutable) {\n util.runSvnCommandWithWorkingDirectory(\n rootDirectory.getAbsolutePath(), \"propset\", \"svn:executable\", \"*\", relativePath);\n } else {\n util.runSvnCommandWithWorkingDirectory(\n rootDirectory.getAbsolutePath(), \"propdel\", \"svn:executable\", relativePath);\n }\n }\n } catch (CommandRunner.CommandException e) {\n throw new MoeProblem(\"problem occurred while running svn: %s\", e.stderr);\n }\n }", "@Override\n\tpublic int InsertFile(MyFile file) {\n\t\tint i=fdi.InsertFile(file);\n\t\treturn i;\n\t}", "private void addToZipStream(Path file, ZipOutputStream zipStream, String dirName)\r\n throws Exception {\r\n String inputFileName = file.toFile().getPath();\r\n try (FileInputStream inputStream = new FileInputStream(inputFileName)) {\r\n\r\n // create a new ZipEntry, which is basically another file\r\n // within the archive. We omit the path from the filename\r\n Path directory = Paths.get(dirName);\r\n ZipEntry entry = new ZipEntry(directory.relativize(file).toString());\r\n\r\n zipStream.putNextEntry(entry);\r\n\r\n // Now we copy the existing file into the zip archive. To do\r\n // this we write into the zip stream, the call to putNextEntry\r\n // above prepared the stream, we now write the bytes for this\r\n // entry. For another source such as an in memory array, you'd\r\n // just change where you read the information from.\r\n byte[] readBuffer = new byte[2048];\r\n int amountRead;\r\n int written = 0;\r\n\r\n while ((amountRead = inputStream.read(readBuffer)) > 0) {\r\n zipStream.write(readBuffer, 0, amountRead);\r\n written += amountRead;\r\n }\r\n } catch (IOException e) {\r\n throw new Exception(\"Unable to process \" + inputFileName, e);\r\n }\r\n }", "protected final void addFileId(int fileId) {\n getChildIds().add(fileId);\n getBTreeMetaData().setDirty(this);\n }", "public File addResource(String id, File f) {\n\t\trks.add(id);\n\t\trvs.add(f);\n\t\treturn f;\n\t}", "public void addChild(FileNode child) {\r\n child.setParent(this);\r\n children.add(child);\r\n childNum++;\r\n }", "public synchronized void addProjectFilesCP(File f) { projectFilesCP.add(f); }", "public void addFileType( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), FILETYPE, value);\r\n\t}", "private static void addLibraryPath(String pathToAdd) throws Exception{\n\t\tfinal Field usrPathsField = ClassLoader.class.getDeclaredField(\"usr_paths\");\n\t\tusrPathsField.setAccessible(true);\n\t \n\t\t//get array of paths\n\t\tfinal String[] paths = (String[])usrPathsField.get(null);\n\t \n\t\t//check if the path to add is already present\n\t\tfor(String path : paths) {\n\t\t\tif(path.equals(pathToAdd)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t \n\t\t//add the new path\n\t\tfinal String[] newPaths = Arrays.copyOf(paths, paths.length + 1);\n\t\tnewPaths[newPaths.length-1] = pathToAdd;\n\t\tusrPathsField.set(null, newPaths);\n\t}", "public void add(String directoryName) {\n this.add(new SubMenuItem(directoryName));\n }", "void addContentFile(InputContentFile contentFile )\n throws ServiceException;", "public void addDirectory(String name, IDirectory parent) {\r\n Directory newDir = new Directory(name, (Directory) parent);\r\n ((Directory) parent).addItem(newDir);\r\n }", "public void addFileToMonitor(String pFile) {\n LOGGER.info(\"Adding file '{}' to monitoring\", pFile);\n mFileList.add(pFile);\n }" ]
[ "0.6799137", "0.6797032", "0.67912877", "0.65286833", "0.64468104", "0.6435256", "0.64177495", "0.63768965", "0.6354318", "0.63310266", "0.6283291", "0.6280769", "0.6252403", "0.6217508", "0.6195538", "0.61251193", "0.6059756", "0.60383856", "0.60329247", "0.59875196", "0.59860635", "0.59855896", "0.598389", "0.5980083", "0.5831271", "0.5818909", "0.5816364", "0.5796777", "0.57514167", "0.5616406", "0.56151843", "0.56043535", "0.56040883", "0.56014156", "0.5601184", "0.5594223", "0.55874056", "0.5585769", "0.5585146", "0.5575623", "0.5569022", "0.5560926", "0.55571157", "0.5556973", "0.5517369", "0.5508629", "0.5500422", "0.54936755", "0.5480845", "0.54728144", "0.5462835", "0.5439385", "0.5429731", "0.5427235", "0.5417621", "0.5407121", "0.5402308", "0.53891045", "0.5381961", "0.53798956", "0.5360493", "0.5348368", "0.5338636", "0.5332065", "0.53183806", "0.5300753", "0.5274283", "0.5272984", "0.5265459", "0.5259669", "0.5256522", "0.5225867", "0.5222082", "0.52141744", "0.5202757", "0.5200862", "0.517377", "0.51720595", "0.5166141", "0.51632416", "0.5161287", "0.5135263", "0.5092316", "0.5090563", "0.5078324", "0.507016", "0.50692403", "0.50641525", "0.5054972", "0.5052998", "0.50377655", "0.50325793", "0.5028454", "0.5024018", "0.5021471", "0.50146747", "0.5014027", "0.5008803", "0.50080585", "0.5002125" ]
0.65905756
3
Returns the number of files in this directory. Does not count number of files in the subdirectories.
@Override public int getNumberOfFiles() { Iterator<FileSystemItem> it = this.content.iterator(); int numberOfFiles = 0; while (it.hasNext()) { if(it.next().isDirectory() == false) { numberOfFiles++; } } return numberOfFiles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getFilesCount() {\n if (filesBuilder_ == null) {\n return files_.size();\n } else {\n return filesBuilder_.getCount();\n }\n }", "public int getFilesCount() throws YAPI_Exception\n {\n return get_filesCount();\n }", "int getFilesCount();", "int getFilesCount();", "public int getnumFiles() {\r\n\t\t//initialize the variable numFiles \r\n\t\tthis.numFiles=0;\r\n\r\n\t\t/*An enhanced for loop is used to iterate through the arraylist.\r\n\t\t * An if statement checks in the object at the \"item\" index is of type file\r\n\t\t * If it is the numFiles variable is incremented by 1.\r\n\t\t * Otherwise, it is a directory, and the the getnumFiles is called recursively to search\r\n\t\t * for files in the folder.\r\n\t\t */\r\n\t\tfor (DirectoryComponent item : DirectoryList){\r\n\t\t\tif(item instanceof File){\r\n\t\t\t\tthis.numFiles ++;\r\n\t\t\t} else {\r\n\t\t\t\tthis.numFiles += item.getnumFiles();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn numFiles;\r\n\t}", "public long getNumberOfFilesInDirectory() {\n ClassLoader classLoader = getClass().getClassLoader();\n File directoryFile = new File(classLoader.getResource(directoryString).getFile());\n\n return directoryFile.listFiles().length;\n }", "@java.lang.Override\n public int getFilesCount() {\n return files_.size();\n }", "int getFileInfoCount();", "public String getNumFiles() {\n\t\ttry {\n\t\t\tFile dir = new File(getLocationOfFiles());\n\t\t\treturn Long.toString(dir.listFiles(new XMLFileFilter()).length);\n\t\t} catch (Throwable e) {\n\t\t\treturn \"0\";\n\t\t}\n\t}", "public int getFileInfoCount() {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.size();\n } else {\n return fileInfoBuilder_.getCount();\n }\n }", "public double getNumFiles(){\n\t\treturn (this.num_files);\n\t}", "public int countFile(String path){\r\n int count=0;\r\n String filename;\r\n File dir = new File(path);\r\n\r\n String[] children = dir.list();\r\n if (children == null) {\r\n count = 0;\r\n }else {\r\n count = children.length;\r\n }\r\n return count;\r\n }", "public Number getFileCount() {\r\n\t\treturn (this.fileCount);\r\n\t}", "private int getFilesCount(File inputFile) {\n File[] files = inputFile.listFiles();\n int result = 0;\n\n for (File file : Objects.requireNonNull(files)) {\n if (!shouldInterrupt.get()) {\n if (file.isDirectory()) {\n result = result + getFilesCount(file);\n }\n else {\n result++;\n }\n }\n }\n return result;\n }", "int getFileCount();", "public int size() {\n return files.size();\n }", "public static int getNumberOfFiles(File file) {\n return getNumberOfFiles(file, 0); // Call auxiliary method\n }", "public static int numberOfFiles(File f)\n\t{\n\t\tif (f.isFile())\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tint total = 0;\n\t\t\tfor (File file: f.listFiles())\n\t\t\t{\n\t\t\t\ttotal += numberOfFiles(file);\n\t\t\t}\n\t\t\treturn total+1;\n\n\t\t}\n\t\t\t\t\n\t}", "int countFile(String path) {\n return readFile(path).length;\n }", "@java.lang.Override\n public int getFileInfoCount() {\n return fileInfo_.size();\n }", "public int get_filesCount() throws YAPI_Exception\n {\n int res;\n synchronized (this) {\n if (_cacheExpiration <= YAPIContext.GetTickCount()) {\n if (load(_yapi._defaultCacheValidity) != YAPI.SUCCESS) {\n return FILESCOUNT_INVALID;\n }\n }\n res = _filesCount;\n }\n return res;\n }", "public int getFileCount() {\n waitPainted(-1);\n Component list = getFileList();\n if(list instanceof JList)\n return ((JList)list).getModel().getSize();\n else if(list instanceof JTable)\n return ((JTable)list).getModel().getRowCount();\n else\n throw new IllegalStateException(\"Wrong component type\");\n }", "public static int getNumberOfFiles() {\n\t\treturn EXTENSIONS.length;\n\t}", "public int getNumberOfAvailableFiles() {\n return numberOfAvailableFiles;\n }", "public int getFileNamesCount() {\n return fileNames_.size();\n }", "public int getFileNamesCount() {\n return fileNames_.size();\n }", "int getFileNamesCount();", "int getFileNamesCount();", "int countFile(File file) {\n return readFile(file).length;\n }", "public int getFileCount(File folder) {\n\t\treturn folder.list().length;\n\t}", "public static int filesWithSizes (File f)\n\t{\n\t\tif (f.isFile())\n\t\t{\n\t\t\tif (f.length()>= 10000 && f.length() <= 25000)\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint count = 0;\n\t\t\tfor (File file: f.listFiles())\n\t\t\t{\n\t\t\t\tcount += filesWithSizes(file);\n\t\t\t}\n\t\t\treturn count;\n\t\t}\n\t}", "public int getNumberOfInProcessFiles() {\n return numberOfInProcessFiles;\n }", "public static int getNumberOfFiles(File file, int numberOfFiles) {\n if (file.isDirectory()) {\n File[] files = file.listFiles(); // List the directory contents\n\n for (File f : files) { // For each object in the array\n numberOfFiles += getNumberOfFiles(f); // Recursive call\n }\n } else { // Base call or stopping condition\n // System.out.println(file.getPath());\n numberOfFiles++;\n }\n\n return numberOfFiles; // Return the total number of files\n }", "public int countFiles(@NonNull DocumentFile parent, final FileHelper.NameFilter filter) {\n return countDocumentFiles(parent, filter, false, true);\n }", "public int size() {\r\n\t\tthis.size= 0;\r\n\t\tfor (DirectoryComponent item : DirectoryList){\r\n\t\t\tthis.size += item.size();\r\n\t\t}\r\n\t\treturn this.size;\r\n\t}", "int getNumbersOfRowsInFolder(String path) {\n return getFilesInFolder(path).length;\n }", "public static long sizeOfDirectory(File dir) {\n File[] files = dir.listFiles();\n if (files == null) {\n return 0;\n }\n long ret = 0;\n for (File file : files) {\n try {\n if (file.isDirectory()) {\n ret += sizeOfDirectory(file);\n }\n else {\n ret += file.length();\n }\n }\n catch (Exception e) {\n throw new DatabaseException(e);\n }\n }\n return ret;\n }", "private long directorySize(String name) {\n\t\tFile directory = new File(name);\n\t\tif (!directory.exists())\n\t\t\treturn 0;\n\t\tif (directory.isFile()) \n\t\t\treturn directory.length();\n\t\tlong length = 0;\n\t\tfor (File file : directory.listFiles()) {\n\t\t\tif (file.isFile())\n\t\t\t\tlength += file.length();\n\t\t\telse if (file.isDirectory())\n\t\t\t\tlength += directorySize(file.getPath());\n\t\t}\n\t\treturn length;\n\t}", "int getPathsCount();", "public static int getTotalRecursiveFileCount(final File pFolder){\n\t\tfinal File[] children = pFolder.listFiles();\n\n\t\tint tmpCnt = 0;\n\t\tfor(final File c : children){\n\t\t\tif(c.isDirectory()){\n\t\t\t\ttmpCnt += getTotalRecursiveFileCount(c);\n\t\t\t}else{\n\t\t\t\ttmpCnt++;\n\t\t\t}\n\t\t}\n\t\treturn tmpCnt;\n\t}", "public int getChildCount(Object parent) {\n\t\tint result = 0;\n\t\tFile file = (File) parent;\n\n\t\tif (file instanceof Directory) {\n\t\t\tDirectory directory = (Directory) file;\n\t\t\tresult = directory.getNumberOfChildren();\n\t\t}\n\t\treturn result;\n\t}", "public int getPathCount() {\n return path_.size();\n }", "public int nbOutputFiles() {\n\treturn getOutputFiles().size();\n }", "public int getPathCount() {\n return path_.size();\n }", "public int getPathsCount() {\n return paths_.size();\n }", "int getSourceFileCount();", "public int count( ) {\n if(empty()) {\n return 0;\n } else{\n return countNodes(root);\n }\n }", "public int getPathsCount() {\n return paths_.size();\n }", "private static long dirSize(File dir) {\n\t long result = 0;\n\t File[] fileList = dir.listFiles();\n\n\t for(int i = 0; i < fileList.length; i++) {\n\t // Recursive call if it's a directory\n\t if(fileList[i].isDirectory()) {\n\t result += dirSize(fileList[i]);\n\t } else {\n\t // Sum the file size in bytes\n\t result += fileList[i].length();\n\t }\n\t }\n\t return result; // return the file size\n\t}", "@Override\n public synchronized long size(Path file) throws FileNotFoundException\n {\n File f = file.toFile(root);\n if (!f.exists() || f.isDirectory())\n throw new FileNotFoundException(\"File not found or is a directory\");\n return f.length(); \n }", "private int countDocumentFiles(\n @NonNull final DocumentFile parent,\n final FileHelper.NameFilter nameFilter,\n boolean listFolders,\n boolean listFiles,\n boolean stopFirst) {\n if (null == client) return 0;\n int result = 0;\n\n try (Cursor c = getCursorFor(parent.getUri())) {\n if (c != null)\n while (c.moveToNext()) {\n final String documentName = c.getString(1);\n boolean isFolder = c.getString(2).equals(DocumentsContract.Document.MIME_TYPE_DIR);\n\n // FileProvider doesn't take query selection arguments into account, so the selection has to be done manually\n if ((null == nameFilter || nameFilter.accept(documentName)) && ((listFiles && !isFolder) || (listFolders && isFolder)))\n result++;\n\n // Don't do the whole loop if the point is to check for emptiness\n if (stopFirst && result > 0) break;\n }\n } catch (Exception e) {\n Timber.w(e, \"Failed query\");\n }\n return result;\n }", "public FileCount(int numFiles){\n this.numFiles = numFiles;\n }", "public final int count() {\n\t\tCountFunction function = new CountFunction();\n\t\teach(function);\n\t\treturn function.getCount();\n\t}", "@Override\r\n\tpublic int countAll() {\r\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\r\n\t\t\t\tFINDER_ARGS_EMPTY, this);\r\n\r\n\t\tif (count == null) {\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_SHARE);\r\n\r\n\t\t\t\tcount = (Long)q.uniqueResult();\r\n\r\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\r\n\t\t\t\t\tcount);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\r\n\t\t\t\t\tFINDER_ARGS_EMPTY);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn count.intValue();\r\n\t}", "public static long getDirSize(java.io.File file) throws Exception {\n if (file == null)\n return 0;\n if (file.isFile()) {\n return file.length();\n }\n java.io.File[] fileList = file.listFiles();\n long size = 0;\n for (int i = 0; i < fileList.length; i++) {\n if (fileList[i].isDirectory()) {\n size = size + getDirSize(fileList[i]);\n } else {\n size = size + fileList[i].length();\n }\n }\n return size;\n }", "public long countEntries() {\n\t\tlong entries=0;\n\t\ttry {\n\t\t\tentries=Files.lines(new File(PAYROLL_FILE_NAME).toPath()).count();\n\t\t}catch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn entries;\n\t}", "public int size() {\n return fileNameList.size();\n }", "public int size() {\n int count = terminal ? 1 : 0;\n for (Set<String> child : children)\n if (child != null) count += child.size();\n return count;\n }", "public int getNumberOfFailedFiles() {\n return numberOfFailedFiles;\n }", "@Override\n\tpublic int size() {\n\t\tmodCount = root.numChildren();\n\t\treturn modCount;\n\t}", "public void incFileCount(){\n\t\tthis.num_files++;\n\t}", "public int getNumberOfCompletedFiles() {\n return numberOfCompletedFiles;\n }", "int countDocumentFiles(\n @NonNull final DocumentFile parent,\n final FileHelper.NameFilter nameFilter,\n boolean countFolders,\n boolean countFiles) {\n return countDocumentFiles(parent, nameFilter, countFolders, countFiles, false);\n }", "public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }", "public int getTotalCount() {\r\n return root.getTotalCount();\r\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_CAMPUS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getSourcePathCount() {\n if (sourcePathBuilder_ == null) {\n return sourcePath_.size();\n } else {\n return sourcePathBuilder_.getCount();\n }\n }", "public int size() {\n return tree.count();\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_TESTUNIT);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int countNodes(){\r\n \treturn count(root);\r\n }", "private long getFolderSize(String filePath)\n {\n // Source/Inspiration for codeblock below: http://www.baeldung.com/java-folder-size\n File dir = new File(filePath);\n\n File[] filesinDir = dir.listFiles();\n\n long directorySize = 0;\n\n // traverse through dir structure\n if (filesinDir != null) {\n for (File currentFile : filesinDir) {\n if (currentFile.isFile()) {\n directorySize += currentFile.length();\n } else {\n // Recursive call for subdirectories\n directorySize += getFolderSize(currentFile.getPath());\n }\n }\n }\n return directorySize;\n }", "public int size() {\n\t\t// TODO\n\t\treturn size(root);\n\t}", "public int getFileRecordCount() {\n\t\treturn fileRecordCount;\n\t}", "public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(\n\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_PHATVAY);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "private Map<ServerFile, Integer> totalFiles(){\n\t\tMap<ServerFile, Integer> ret = new HashMap<ServerFile, Integer>();\n\t\tfor (ClientObj c : clients){\n\t\t\tfor (ServerFile f : c.getFiles()){\n\t\t\t\tif (!ret.containsKey(f))\n\t\t\t\t\tret.put(f, 1);\n\t\t\t\telse\n\t\t\t\t\tret.put(f, ret.get(f) + 1);\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public int size() {\r\n int count = 0;\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] != null) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(\n\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_ANSWER);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tfinderCache.removeResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getNumberOfPhotos(){\n\t\tint num = 0;\n\t\ttry {\n\t\t\tFileInputStream in = new FileInputStream(\"images\");\n\t\t\t//Skipping magic number\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tin.read();\n\t\t\t}\n\t\t\tbyte[] tmpVar = new byte[4];\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\ttmpVar[i] = (byte) in.read();\n\t\t\t}\n\t\t\tnum = ByteBuffer.wrap(tmpVar).getInt();\n\t\t\tin.close();\n\t\t}catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn num;\n\t\t\n\t}", "public int size() {\n return size(root);\n }", "public int size() {\n return size(root);\n }", "public int size() {\n\t\treturn size(root);\n\t}", "public int size() {\n\t\treturn size(root);\n\t}", "public int[] filesRemaining();", "@Override\n\tpublic int totalPathLength() {\n\t\treturn totalPathLength(root, sum);// returns total path lenght number\n\t}", "public int size()\n\t{\n\t\tint size = 0;\n\t\t\n\t\tfor (LinkedList<Entry> list : entries)\n\t\t\tsize += (list == null) ? 0 : list.size();\n\t\t\n\t\treturn size;\n\t}", "public double getNumuploads(){\n\t\treturn (this.num_upload);\n\t}", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_LOCALRICHINFO);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public static int deleteContents(File dir) {\n File[] files = dir.listFiles();\n if (files == null) {\n return 0;\n } else {\n return Stream.of(files)\n .mapToInt(file -> {\n if (file.isDirectory()) {\n int count = deleteContents(file);\n file.delete();\n return count;\n } else {\n return file.delete() ? 1 : 0;\n }\n })\n .sum();\n }\n }", "public long size(String path);", "public int getNumOfPath(){\r\n\t\treturn numOfPath;\r\n\t}", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(\n\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_CATEGORY);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tfinderCache.removeResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int countNodes()\n {\n return countNodes(root);\n }", "public int countNodes()\n {\n return countNodes(root);\n }", "public int getSize() {\n\t\treturn this.getSizeRecursive(root);\n\t}", "public int size() \r\n\t{\r\n\t\treturn size(root);\r\n\t}", "public int size() {\n if(root == null){\n return 0;\n }\n else{\n return 1 + size(root.lc) + size(root.rc);\n }\n }", "public int getSourcepathCount() {\n return sourcepath_.size();\n }", "public int numPages() {\n \t//numOfPages = (int)(this.fileName.length()/BufferPool.PAGE_SIZE);\n return numOfPages;\n }", "public int numPages() {\n // some code goes here\n //System.out.println(\"File length :\" + f.length());\n\n return (int) Math.ceil(f.length() * 1.0 / BufferPool.PAGE_SIZE * 1.0);\n }" ]
[ "0.8117568", "0.79767823", "0.7959521", "0.7959521", "0.7938496", "0.7920695", "0.7790128", "0.75985587", "0.7578393", "0.75378263", "0.75056666", "0.745222", "0.7312453", "0.72741765", "0.7214869", "0.7211877", "0.71780854", "0.717377", "0.71692395", "0.71386296", "0.7111491", "0.70223475", "0.7022005", "0.68440104", "0.6784657", "0.6776605", "0.6772359", "0.6772359", "0.674433", "0.67160153", "0.6697721", "0.6610126", "0.658879", "0.65454274", "0.64782095", "0.64523077", "0.64407533", "0.64140743", "0.64125216", "0.637479", "0.6365085", "0.6342602", "0.631012", "0.62910724", "0.62441987", "0.62385947", "0.6236675", "0.6226746", "0.61730355", "0.61695254", "0.61345124", "0.61334807", "0.6129172", "0.6085515", "0.6069027", "0.60489", "0.6015063", "0.6007407", "0.60040355", "0.6003978", "0.59940803", "0.5980041", "0.5977966", "0.59714407", "0.5969449", "0.596628", "0.59474117", "0.5941161", "0.5922211", "0.5915636", "0.5906529", "0.5888036", "0.5883168", "0.58767647", "0.5870577", "0.5864231", "0.58628154", "0.5847438", "0.583823", "0.58181983", "0.58181983", "0.5816555", "0.5816555", "0.5813655", "0.5807848", "0.5806472", "0.5802967", "0.58000237", "0.57923925", "0.578661", "0.57847595", "0.5770276", "0.5765557", "0.5765557", "0.5763158", "0.5759773", "0.5751547", "0.57469296", "0.57419705", "0.5739136" ]
0.832644
0
Returns 0 since directories have no size.
@Override public int getSize() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size() {\r\n\t\tthis.size= 0;\r\n\t\tfor (DirectoryComponent item : DirectoryList){\r\n\t\t\tthis.size += item.size();\r\n\t\t}\r\n\t\treturn this.size;\r\n\t}", "private long directorySize(String name) {\n\t\tFile directory = new File(name);\n\t\tif (!directory.exists())\n\t\t\treturn 0;\n\t\tif (directory.isFile()) \n\t\t\treturn directory.length();\n\t\tlong length = 0;\n\t\tfor (File file : directory.listFiles()) {\n\t\t\tif (file.isFile())\n\t\t\t\tlength += file.length();\n\t\t\telse if (file.isDirectory())\n\t\t\t\tlength += directorySize(file.getPath());\n\t\t}\n\t\treturn length;\n\t}", "public int size() {\n return files.size();\n }", "@Override\n\tpublic int getNumberOfFiles() {\n\t\tIterator<FileSystemItem> it = this.content.iterator();\n\t\tint numberOfFiles = 0;\n\t\t\n\t\twhile (it.hasNext()) {\n\t\t\tif(it.next().isDirectory() == false) {\n\t\t\t\tnumberOfFiles++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn numberOfFiles;\n\t}", "public long getNumberOfFilesInDirectory() {\n ClassLoader classLoader = getClass().getClassLoader();\n File directoryFile = new File(classLoader.getResource(directoryString).getFile());\n\n return directoryFile.listFiles().length;\n }", "public long size(String path);", "private long size() {\n\t\treturn 0;\n\t}", "int getFilesCount();", "int getFilesCount();", "public String getNumFiles() {\n\t\ttry {\n\t\t\tFile dir = new File(getLocationOfFiles());\n\t\t\treturn Long.toString(dir.listFiles(new XMLFileFilter()).length);\n\t\t} catch (Throwable e) {\n\t\t\treturn \"0\";\n\t\t}\n\t}", "private static long dirSize(File dir) {\n\t long result = 0;\n\t File[] fileList = dir.listFiles();\n\n\t for(int i = 0; i < fileList.length; i++) {\n\t // Recursive call if it's a directory\n\t if(fileList[i].isDirectory()) {\n\t result += dirSize(fileList[i]);\n\t } else {\n\t // Sum the file size in bytes\n\t result += fileList[i].length();\n\t }\n\t }\n\t return result; // return the file size\n\t}", "public long size() {\r\n return 0;\r\n }", "int getTotalSize();", "public int getTotalSize();", "long getSize() throws FileSystemException;", "@Override\n\tpublic int size() {\n\t\tif(size != 0)\n\t\t\treturn size;\n\t\treturn 0;\n\t}", "public int getSize() {\n\t\treturn smilFiles.size();\n\t}", "public long size() {\n\treturn 0;\n }", "int getFileInfoCount();", "@java.lang.Override\n public int getFilesCount() {\n return files_.size();\n }", "public static long sizeOfDirectory(File dir) {\n File[] files = dir.listFiles();\n if (files == null) {\n return 0;\n }\n long ret = 0;\n for (File file : files) {\n try {\n if (file.isDirectory()) {\n ret += sizeOfDirectory(file);\n }\n else {\n ret += file.length();\n }\n }\n catch (Exception e) {\n throw new DatabaseException(e);\n }\n }\n return ret;\n }", "public static long getAllSize(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tif (path.getPath().startsWith(\"/mnt\"))\n\t\t{\n \tFile dir = new File(\"/mnt\");\n \tif(dir.isDirectory())\n \t{\n \t\tFile[] files = dir.listFiles();\n \t\tif(files!=null)\n \t\t{\n \t\tfor(File file : files)\n \t\t{\n \t\t\tif((file.getPath().contains(\"sdcard\") || file.getPath().contains(\"SdCard\")) || file.getPath().equals(path.getPath()))\n \t\t\t{\n \t\t\t\tif(file.canRead())\n \t\t\t\t{\n\t\t \t\t\tStatFs stat = new StatFs(file.getPath()); \n\t\t \t\t\tlong blockSize = stat.getBlockSize(); \n\t\t \t\t\tlong availableBlocks = stat.getBlockCount();\n\t\t \t\t\tsize += availableBlocks * blockSize; \n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t}\n \t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tStatFs stat = new StatFs(path.getPath()); \n\t\t\tlong blockSize = stat.getBlockSize(); \n\t\t\tlong availableBlocks = stat.getBlockCount();\n\t\t\tsize = availableBlocks * blockSize; \n\t\t}\n\t\treturn size;\n\t}", "private long getFolderSize(String filePath)\n {\n // Source/Inspiration for codeblock below: http://www.baeldung.com/java-folder-size\n File dir = new File(filePath);\n\n File[] filesinDir = dir.listFiles();\n\n long directorySize = 0;\n\n // traverse through dir structure\n if (filesinDir != null) {\n for (File currentFile : filesinDir) {\n if (currentFile.isFile()) {\n directorySize += currentFile.length();\n } else {\n // Recursive call for subdirectories\n directorySize += getFolderSize(currentFile.getPath());\n }\n }\n }\n return directorySize;\n }", "public static long getAllSize2(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tif (path.getPath().startsWith(\"/mnt\"))\n\t\t{\n \tFile dir = new File(\"/mnt\");\n \tif(dir.isDirectory())\n \t{\n \t\tFile[] files = dir.listFiles();\n \t\tif(files!=null)\n \t\t{\n \t\tfor(File file : files)\n \t\t{\n \t\t\tif((file.getPath().contains(\"sdcard\") || file.getPath().contains(\"SdCard\")) && !file.getPath().equals(path.getPath()))\n \t\t\t{\n\t \t\t\tStatFs stat = new StatFs(file.getPath()); \n\t \t\t\tlong blockSize = stat.getBlockSize(); \n\t \t\t\tlong availableBlocks = stat.getBlockCount();\n\t \t\t\tsize += availableBlocks * blockSize; \n \t\t\t}\n \t\t}\n \t\t}\n \t}\n\t\t}\n\t\treturn size;\n\t}", "public int getFilesCount() {\n if (filesBuilder_ == null) {\n return files_.size();\n } else {\n return filesBuilder_.getCount();\n }\n }", "public int size() {\r\n return archive.size();\r\n }", "public int getnumFiles() {\r\n\t\t//initialize the variable numFiles \r\n\t\tthis.numFiles=0;\r\n\r\n\t\t/*An enhanced for loop is used to iterate through the arraylist.\r\n\t\t * An if statement checks in the object at the \"item\" index is of type file\r\n\t\t * If it is the numFiles variable is incremented by 1.\r\n\t\t * Otherwise, it is a directory, and the the getnumFiles is called recursively to search\r\n\t\t * for files in the folder.\r\n\t\t */\r\n\t\tfor (DirectoryComponent item : DirectoryList){\r\n\t\t\tif(item instanceof File){\r\n\t\t\t\tthis.numFiles ++;\r\n\t\t\t} else {\r\n\t\t\t\tthis.numFiles += item.getnumFiles();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn numFiles;\r\n\t}", "private long getSize(String securedFolderPath) {\n\n logger.info(\"Current secured folder size in FolderMonitor\");\n\n long size = 0;\n\n File folder = new File(securedFolderPath);\n\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles.length > 0) {\n\n for (File file : listOfFiles) {\n\n if (file.toString().contains(CommonConstants.BATCH)\n || file.toString().contains(CommonConstants.SH)) {\n\n file.delete();\n logger.info(\"File deleted :\" + file.getName());\n continue;\n }\n if (file.isFile()) {\n\n size += file.length();\n }\n }\n }\n return size;\n\n }", "public long size();", "public int size() {\r\n // TODO\r\n return 0;\r\n }", "@Override\n\tpublic long getSize()\n\t{\n\t\tif (size >= 0)\n\t\t{\n\t\t\treturn size;\n\t\t}\n\t\telse if (cachedContent != null)\n\t\t{\n\t\t\treturn cachedContent.length;\n\t\t}\n\t\telse if (dfos.isInMemory())\n\t\t{\n\t\t\treturn dfos.getData().length;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn dfos.getFile().length();\n\t\t}\n\t}", "public int size() {\n return getSize(0);\n }", "long size();", "long size();", "long size();", "long size();", "public static long getAllSize1(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tStatFs stat = new StatFs(path.getPath()); \n\t\tlong blockSize = stat.getBlockSize(); \n\t\tlong availableBlocks = stat.getBlockCount();\n\t\tsize = availableBlocks * blockSize; \n\t\treturn size;\n\t}", "int getFileCount();", "@Override\r\n\t\t\tpublic long size() {\n\t\t\t\treturn 0;\r\n\t\t\t}", "public int getPathLength()\r\n\t{\r\n\t\treturn path.size();\r\n\t}", "public Long getSize(Job job) {\n File dir = getFileDir(job);\n if (dir != null && dir.exists()) {\n return FileUtils.sizeOfDirectory(dir);\n } else {\n return 0L;\n }\n }", "public double getNumFiles(){\n\t\treturn (this.num_files);\n\t}", "public int size() {\n return fileNameList.size();\n }", "public int size()\r\n\t {\r\n\t\t if(root == null)\r\n\t\t {\r\n\t\t\t return 0;\r\n\t\t }\r\n\t\t return root.getSubTreeSize();\r\n\t }", "@Override\n\tpublic int totalPathLength() {\n\t\treturn totalPathLength(root, sum);// returns total path lenght number\n\t}", "public int getPathCount() {\n return path_.size();\n }", "@Override\n public synchronized long size(Path file) throws FileNotFoundException\n {\n File f = file.toFile(root);\n if (!f.exists() || f.isDirectory())\n throw new FileNotFoundException(\"File not found or is a directory\");\n return f.length(); \n }", "public abstract long size() throws IOException;", "public int size() {\n\t\t// TODO\n\t\treturn size(root);\n\t}", "boolean hasTotalSize();", "public int size() {\n return this.treeSize - this.unusedTreeIndices.size();\n }", "public int getNumberOfAvailableFiles() {\n return numberOfAvailableFiles;\n }", "public int size() {\n\t\treturn 0;\n\t}", "public int size() {\n\t\treturn 0;\n\t}", "int sizeOfPathArray();", "@Override\n public long size() {\n return 0;\n }", "public int getPathCount() {\n return path_.size();\n }", "public int size()\n {\n return 0;\n }", "public int size() {\n\t\treturn wc.size();\n\t}", "public int size() {\n int count = terminal ? 1 : 0;\n for (Set<String> child : children)\n if (child != null) count += child.size();\n return count;\n }", "public int size() {\n\t\tif (this.root == null) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn this.root.getSize(); \n\t}", "public int size() \n\t {\n\t\t return size(root);\n\t }", "public int size() {\n return tree.count();\n }", "int size()\r\n\t{\r\n\t\treturn size(root);\r\n\t}", "public int size() {\n return doSize();\n }", "public int size() {\n\t\treturn size(root);\n\t}", "public int size() {\n\t\treturn size(root);\n\t}", "int getPathsCount();", "@Override\n\tpublic int size() {\n\t\tmodCount = root.numChildren();\n\t\treturn modCount;\n\t}", "private static int m2538d(Context context) {\n try {\n File file = new File(Log.m2547a(context, Log.f1857e));\n if (file.exists()) {\n return file.list().length;\n }\n return 0;\n } catch (Throwable th) {\n BasicLogHandler.m2542a(th, \"StatisticsManager\", \"getFileNum\");\n return 0;\n }\n }", "public int getFileInfoCount() {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.size();\n } else {\n return fileInfoBuilder_.getCount();\n }\n }", "public int GetSize() \n\t{\n\t\treturn numEntries; //dummy return so file would compile\n\t}", "public static long getDirSize(java.io.File file) throws Exception {\n if (file == null)\n return 0;\n if (file.isFile()) {\n return file.length();\n }\n java.io.File[] fileList = file.listFiles();\n long size = 0;\n for (int i = 0; i < fileList.length; i++) {\n if (fileList[i].isDirectory()) {\n size = size + getDirSize(fileList[i]);\n } else {\n size = size + fileList[i].length();\n }\n }\n return size;\n }", "@java.lang.Override\n public int getFileInfoCount() {\n return fileInfo_.size();\n }", "public int getSize() {\n\t\treturn 0;\r\n\t}", "public int size()\n\t{\n\t\tint size = 0;\n\t\t\n\t\tfor (LinkedList<Entry> list : entries)\n\t\t\tsize += (list == null) ? 0 : list.size();\n\t\t\n\t\treturn size;\n\t}", "long sizeInBytes() throws IOException;", "public int size(){\n return size(root);\n }", "public int getPathsCount() {\n return paths_.size();\n }", "public int size() { return 0; }", "public int size() \r\n\t{\r\n\t\treturn size(root);\r\n\t}", "@Override public long getSize() {\n throw new UnsupportedOperationException(\"Filesystem size is not (yet) supported\");\n }", "public int getSize() {\n\t\treturn this.getSizeRecursive(root);\n\t}", "@Override\npublic int getTotalSize() {\n\treturn 0;\n}", "public int size() /*@Readonly*/ {\r\n return 0;\r\n }", "public int size() {\n return size(root);\n }", "public int size() {\n return size(root);\n }", "public int size() {\n // DO NOT MODIFY THIS METHOD!\n return size;\n }", "public int getTotalSize() {\n return totalSize_;\n }", "public int size() {\r\n int count = 0;\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] != null) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "int size ();", "public int size() {\n synchronized (this.base) {\n return this.base.size();\n }\n }", "public int getPathsCount() {\n return paths_.size();\n }", "public int size ()\n\t{\n\t\treturn -1;\n\t}", "@Override\n\tpublic int size() {\n\t\tint s = valCount; // saves value of current node\n\t\tfor (int i = 0; i < childCount; ++i) { // then checks all children\n\t\t\ts += children[i].size();\n\t\t}\n\t\treturn s;\n\t}", "public int getFilesCount() throws YAPI_Exception\n {\n return get_filesCount();\n }", "@Override\n\tpublic int size() {\n\t\treturn size(root);\n\t}", "public int size() \n {\n return size(root);\n }", "public static long getDirectorySize(File dir) {\n long size = 0;\n if (dir == null || !dir.isDirectory()) {\n throw new IllegalArgumentException(\"Argument is null or is not a directory!\");\n }\n try {\n File[] fileList = dir.listFiles();\n for (File file : fileList) {\n if (file.isDirectory()) {\n size = size + getDirectorySize(file);\n } else {\n size = size + file.length();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return size;\n }", "public int size ()\r\n {\r\n }", "public int size(){\n if(root!=null){ // มี node ใน tree\n return size(root);\n }\n else{\n return 0; // tree เปล่า size 0\n }\n }" ]
[ "0.7072073", "0.7038606", "0.69399256", "0.68159246", "0.6616993", "0.65904903", "0.652321", "0.64891803", "0.64891803", "0.6480281", "0.64327013", "0.6385472", "0.6337543", "0.63349515", "0.6313879", "0.6309945", "0.6303166", "0.6279628", "0.62789863", "0.62721217", "0.62696767", "0.6188703", "0.6186738", "0.61799335", "0.617112", "0.6169766", "0.61618817", "0.6159292", "0.61496", "0.6135425", "0.6128962", "0.61141896", "0.61031204", "0.61031204", "0.61031204", "0.61031204", "0.61009717", "0.6091306", "0.6070063", "0.60615206", "0.60436666", "0.6033515", "0.60325897", "0.602711", "0.6014529", "0.60138613", "0.6008515", "0.5994574", "0.5985471", "0.5980413", "0.59768546", "0.5962955", "0.59490544", "0.59490544", "0.5933209", "0.5930351", "0.59302115", "0.59288687", "0.59267074", "0.5925126", "0.5917072", "0.59169024", "0.5913991", "0.59116876", "0.5909478", "0.5906205", "0.5906205", "0.5904927", "0.59027207", "0.5900378", "0.5897104", "0.5894835", "0.5890164", "0.5878897", "0.5874799", "0.58722454", "0.58718455", "0.58703536", "0.5870142", "0.58694327", "0.5866671", "0.5854109", "0.5831722", "0.5818955", "0.581707", "0.5815315", "0.5815315", "0.5815292", "0.581043", "0.5805671", "0.58038425", "0.58022213", "0.57968926", "0.5794269", "0.57900864", "0.5784197", "0.5783666", "0.57780534", "0.5777936", "0.57736754", "0.5770207" ]
0.0
-1
/ Hash Map Create a Hash Map of String pairs add the follow values map.put("ONE","AAA"); map.put("TWO","BBB"); map.put("THREE","CCC"); map.put("FOUR","DDD"); map.put("FIVE","EEE"); print the key and values pairs using loop Remove below from Map "ONE" "FOUR" Print key and values pairs using loop OUTPUT HashMap Before Remove : FIVE : EEE ONE : AAA FOUR : DDD TWO : BBB THREE : CCC HashMap After Remove : FIVE : EEE TWO : BBB THREE : CCC
public static void main(String[] args) { Map<String, String> map = new HashMap<>(); map.put("ONE","AAA"); map.put("TWO","BBB"); map.put("THREE","CCC"); map.put("FOUR","DDD"); map.put("FIVE","EEE"); System.out.println("HashMap Before Remove :"); Iterator<Entry<String, String>> it = map.entrySet().iterator(); while(it.hasNext()) { Entry<String, String> singleIt = it.next(); System.out.println(singleIt.getKey() + " : " + singleIt.getValue()); } map.remove("ONE"); map.remove("FOUR"); System.out.println("------------------"); System.out.println("HashMap After Remove :"); Iterator<Entry<String, String>> it1 = map.entrySet().iterator(); while(it1.hasNext()) { Entry<String, String> singleIt1 = it1.next(); System.out.println(singleIt1.getKey() + " : " + singleIt1.getValue()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n HashMap<String, String> hashMap2 = new HashMap<String, String>();\n hashMap2.put(\"bobbyJoe1996\", \"FluffyPonies\");\n hashMap2.put(\"helloKittyFan21\", \"AloeVera?\");\n hashMap2.put(\"coolguyswag\", \"password123\");\n\n System.out.println(hashMap2);\n //hashmaps don't really have an order so the order above might be different than what is printed\n //to the console.\n System.out.println(hashMap2.size());\n System.out.println(hashMap2.replace(\"bobbyJoe1996\", \"DifferenTpassWoRd\"));\n System.out.println(hashMap2);\n System.out.println(hashMap2.containsValue(\"password123\"));\n System.out.println(hashMap2.containsValue(\"passwor\"));\n System.out.println(hashMap2.containsKey(\"coolguyswag\"));\n System.out.println(hashMap2.remove(\"helloKittyFan21\"));\n System.out.println(hashMap2);\n System.out.println(hashMap2.keySet());\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tHashMap<Integer,String>hm=new HashMap<Integer,String>();\n\t\thm.put(0,\"hello\");\n\t\thm.put(1,\"hello\");\n\t\thm.put(2,\"hello\");\n\t\thm.put(3,\"hello\");\n\t\thm.put(4,\"hello\");\n\t\thm.put(null,null);\n\t\thm.put(null,null);\n\t\tSystem.out.println(hm.get(2));\n\t\thm.remove(2);\n\t\tSystem.out.println(hm.get(2));\n\t\t\n\t\tSet sn =hm.entrySet();\n\t\tIterator i = sn.iterator();\n\t\twhile(i.hasNext()) {\n\t\t\t\n\t\tMap.Entry mp =(Map.Entry)i.next();\n\tSystem.out.println(\tmp.getKey() +\"\" + mp.getValue());\n\t\n}\n\t\t\n\n\t}", "public static void main(String[] args) {\n Map<Integer,String> map = new HashMap<>();\n map.put(1, \"Nancy\");\n map.put(2, \"Mariam\");\n map.put(1, \"Heaven\");\n // in case of duplicated key, the value will get updated So it will print 1=Heaven for lines 13 and 15\n map.put(100, \"Ramy\"); //(key is not only numerical it can be any type)\n System.out.println(map.get(2)); // it accepts the key and return the value of this key // \"Mariam\"\n System.out.println(map);\n System.out.println(map.get(50)); // it will return null as there is no key 50\n //map.remove(1); // it removed the whole entry (key+value)\n System.out.println(map.containsKey(2)); // true\n System.out.println(map.containsValue(\"Nancy\")); // false\n\n for( Integer each: map.keySet()){\n System.out.println(each + \" - \" + map.get(each));\n\n // to get a certain key if we know only the value\n if(map.get(each).equals(\"Heaven\")){\n System.out.println(\"This is our key \" + each);\n }\n }\n\n\n }", "public static void mapHashMap(Map<Integer, String> mapHashMap) {\n System.out.println(\"----------------------------- HashMap ----------------------------\");\n System.out.println(\"\\\"HashMap\\\" is unordered!\");\n mapHashMap.put(7, \"Cristiano Ronaldo\");\n mapHashMap.put(10, \"Leo Messi\");\n mapHashMap.put(8, \"Avi Nimni\");\n mapHashMap.put(24, \"Kobi Brian\");\n PrintUtils.printMap(mapHashMap);\n System.out.println();\n // STEP 2 - set p3 name to \"Moshe\"\n System.out.println(\"Set the name of player number 8 to be \\\"Moshe\\\":\");\n mapHashMap.replace(8, \"Avi Nimni\", \"Moshe\");\n // if you use \"put\" instead of \"replace\" it will work to!\n PrintUtils.printMap(mapHashMap);\n System.out.println();\n // STEP 3 - add p5 to the end of the list using using ADD method\n System.out.println(\"Add p5 to the end of the list using ADD method:\");\n System.out.println(\"Not an option!\");\n System.out.println();\n // STEP 4 - add p6 to position 3 the end of the list using ADD method\n System.out.println(\"Add p6 to position 3 the end of the list using ADD method:\");\n System.out.println(\"Not an option, you can wright over it!\");\n System.out.println();\n // STEP 5 - remove p2 from the list\n System.out.println(\"Remove p2 from the list and printing the list using a static method in a utility class:\");\n mapHashMap.remove(10, \"Leo Messi\");\n PrintUtils.printMap(mapHashMap);\n System.out.println();\n }", "public static void main(String[] args) {\n HashMap<Integer, String> Hm = new HashMap<Integer, String>();\n Hm.put(0, \"USA\");\n Hm.put(1, \"UK\");\n Hm.put(2, \"India\");\n Hm.put(3, \"Maldives\");\n \n Set sn=Hm.entrySet();\n Iterator i= sn.iterator(); \n while(i.hasNext()) {\n Map.Entry mp=(Map.Entry)i.next();\n System.out.println(mp.getKey());\n System.out.println(mp.getValue());\n }\n \n\t}", "public static void main(String[] args) {\n\n Map map = new HashMap();\n map.put(1, \"Raja\");\n map.put(1, \"hjihihi\");\n map.put(3, \"Aadherai\");\n map.put(4, \"ram\");\n\n // traversing the map by using set\n Set set = map.entrySet();\n\n Iterator itr = set.iterator();\n while(itr.hasNext()){\n\n // System.out.println(itr);\n\n Map.Entry entry= (Map.Entry)itr.next(); // converting to Map.Entry so that we can get key & value seperately\n\n System.out.println(entry.getKey()+\" \"+entry.getValue());\n }\n }", "public static void main(String[] args) {\n\t\tHashMapCreation cr = new HashMapCreation();\n\t\tHashMap<Integer , String> hp = new HashMap<Integer , String>();\n\t\thp = cr.createMap(hp, 34,\"Rahul\");\n\t\thp = cr.createMap(hp, 22,\"John\");\n\t\thp = cr.createMap(hp, 86,\"Sam\");\n\t\thp = cr.createMap(hp, 65,\"Nancy\");\n\t\thp = cr.createMap(hp, 66,\"April\");\n\t\t//cr.removeKey(hp, 22);\n\t\tString srr = cr.getValue(hp, 34);\n\t\tSystem.out.println(\"The value for key 34 is: \" + srr);\n\t\t// Display content\n\t\tfor(int key : hp.keySet())\n\t\t\tSystem.out.println(\"key and Value : \" + key +\" \" + hp.get(key));\n\t}", "public static void main(String[] args) {\n\tMap <String, Integer>phones=new HashMap<>();\r\n\tphones.put(\"Mila\", 98232433);\r\n\tphones.put(\"Jenia\", 2834732);\r\n\tphones.put(\"Yerlan\", 77398274);\r\n\tphones.put(\"Mila\",1263584);\r\n\t//last one will override the first one\r\n\t\r\n\tIterator <String> iterator=phones.keySet().iterator();\r\n\twhile (iterator.hasNext()){\r\n\t\tString key=iterator.next();\r\n\t\tInteger value=phones.get(key);\r\n\t\tSystem.out.println(key+\" \"+value);\r\n\t}\r\n\t\r\n\t//store keys in Set\r\n\tSet<String> keys=phones.keySet();\r\n\tfor (String key : keys) {\r\n\t\tSystem.out.println(key);\r\n\t}\r\n\t//store values in Collection\r\n Collection <Integer> val=phones.values();\r\n for (Integer values : val) {\r\n \tSystem.out.println(values);\r\n\t\t\r\n\t}\r\n \r\n Set<Entry<String,Integer>> entry=phones.entrySet();\r\n for (Entry<String, Integer> entry2 : entry) {\r\n\t\t//System.out.println(entry2);\r\n\t\tSystem.out.println(entry2.getKey()+\" \"+entry2.getValue());\r\n\t}\r\n}", "public static void main(String[] args) {\n\t\tjava.util.HashMap<Integer,String> h=new java.util.HashMap<Integer,String>(); //Keys,values\n\t\th.put(1,\"alla\");\n\t\th.put(2, \"gopal\");\n\t\th.put(3, \"Barathi\");\n\t\th.put(4, \"thirupathi\");\n\t\th.put(5,\"\");\n\t\th.put(6,\"\");\n\t\th.put( null, \"hello\");\n\t\th.put( null, \"hi\"); //It will take only one null key and number null values\n\t\th.replace(1, \"alla\",\"yeshwanth\");\n\t\t\n\t\t\n\t\tSystem.out.println(h);\n\t\t\n\t\tSystem.out.println(h.get(3));\n\t\tSystem.out.println(h.replace(2, \"gopal\", \"Gopalreddy\"));\n\t\t\n\t\tSet s=h.entrySet();\n\t\tIterator i=s.iterator();\n\t\twhile(i.hasNext())\n\t\t{\n\t\t\tMap.Entry m=(Map.Entry)i.next();\n\t\t\tSystem.out.println(m.getKey()); //if you want seperately print keys\n\t\t\tSystem.out.println(m.getValue()); //If you want seperately print values\n\t\t}\n\t\t\n\t}", "public static void demo1() {\n Map<String, String> m = new HashMap<String, String>();\r\n // Key, Value\r\n m.put(\"cn\", \"China\");\r\n m.put(\"th\", \"Thailand\");\r\n m.put(\"jp\", \"Japan\");\r\n\r\n// System.out.println(m.get(\"jp\"));\r\n\r\n for (Map.Entry<String, String> item : m.entrySet()) {\r\n String key = item.getKey();\r\n String value = item.getValue();\r\n System.out.printf(\"%s => %s\\n\", key, value);\r\n }\r\n\r\n System.out.println(\"----------------------\");\r\n m.put(\"th\", \"Siam\");\r\n\r\n for (Map.Entry<String, String> item : m.entrySet()) {\r\n String key = item.getKey();\r\n String value = item.getValue();\r\n System.out.printf(\"%s => %s\\n\", key, value);\r\n }\r\n\r\n if (m.containsValue(\"Japan\")) {\r\n System.out.println(\"found Japan\");\r\n }\r\n\r\n if (m.containsKey(\"cn\")) {\r\n System.out.println(\"found key cn\");\r\n m.remove(\"cn\");\r\n System.out.println(\"----------------remove cn-------------\");\r\n for (Map.Entry<String, String> item : m.entrySet()) {\r\n String key = item.getKey();\r\n String value = item.getValue();\r\n System.out.printf(\"%s => %s\\n\", key, value);\r\n }\r\n }\r\n\r\n }", "public static void main(String[] args) {\n\t\tHashMap<String, Integer> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"Pune\", 4111014);\n\t\tmap.put(\"nsk\", 40000014);\n\t\tmap.put(\"Mumbai\", 40000001);\n\t\t\n\t\t\n\t\tSystem.out.println(map);\n\t\t\n\t\tSystem.out.println(map.keySet());\n\t\tSystem.out.println(map.values());\n\t\t\n\t\tSystem.out.println(map.size());\n\t\t\n\t\tmap.replace(\"Pune\",10000001);\n\t\tSystem.out.println(map);\n\t\t\n\t\tSystem.out.println(map.containsKey(\"Nashik\"));\n\t\t\n\t\t//System.out.println(map.remove(\"Pune\", 000000000));\n\t}", "public static void main(String[] args) {\n HashMap<String, String> capitalCities = new HashMap<String, String>();\n\n // Add keys and values (Country, City)\n capitalCities.put(\"England\", \"London\");\n capitalCities.put(\"Germany\", \"Berlin\");\n capitalCities.put(\"Norway\", \"Oslo\");\n capitalCities.put(\"USA\", \"WashingtonDC\");\n\n System.out.println(capitalCities);\n\n //Access an Item\n capitalCities.get(\"England\");\n System.out.println(capitalCities.get(\"England\"));\n\n //Remove an Item\n capitalCities.remove(\"England\");\n System.out.println(capitalCities);\n\n //To remove all items, use the clear() method:\n //capitalCities.clear();\n //System.out.println(capitalCities);\n\n //HashMap Size\n capitalCities.size();\n System.out.println(capitalCities.size());\n\n //Loop Through a HashMap\n // Print keys\n for (String i : capitalCities.keySet()) {\n System.out.print(i + \" \");\n }\n System.out.println();\n\n // Print values\n for (String i : capitalCities.values()) {\n System.out.print(i + \" \");\n }\n System.out.println();\n\n\n // Create a HashMap object called people\n Map<String, Integer> people = new LinkedHashMap<String, Integer>();\n\n // Add keys and values (Name, Age)\n people.put(\"John\", 32);\n people.put(\"Steve\", 30);\n people.put(\"Angie\", 33);\n\n for (String i : people.keySet()) {\n System.out.println(\"key: \" + i + \" value: \" + people.get(i));\n }\n\n\n\n\n }", "public static void main(String[] args) {\n\t\tHashMap<String,String> capitalMap=new HashMap<String,String>();//creating hashmap\n\t\tcapitalMap.put(\"India\", \"New Delhi\");\n\t\tcapitalMap.put(\"USA\", \"WashingtonDC\");//adding values into it\n\t\tcapitalMap.put(\"UK\", \"London\");\n\t\tcapitalMap.put(\"Australlia\", \"Canberra\");\n\t\tcapitalMap.put(\"UK\", \"London111\");\n\t\tcapitalMap.put(\"Africa\", null);\n\t\tcapitalMap.put(\"Odisa\", null);\n\n\n\t\t//getting the values from it\n\t\tSystem.out.println(capitalMap.get(\"Australlia\"));\n\t\tSystem.out.println(capitalMap.get(\"Germany\"));// if value is not present then it will throw null\n\t\tSystem.out.println(capitalMap.get(\"UK\"));// always take the lates value\n\t\t\n\t\t//we can store n number of null valuesbut only one null key\n\t\tcapitalMap.put(null, \"LA\");\n\t\tcapitalMap.put(null, \"SFO\");// can have multiple null values but one null key\n\t\tSystem.out.println(capitalMap.get(null));\n\t\tSystem.out.println(capitalMap.get(\"Africa\"));\n\t\tSystem.out.println(capitalMap.get(\"Odisa\"));\n\t\t\n\t\t//How to Traverse through Hashmap-USing Iterator\n\t\tIterator<String> it=capitalMap.keySet().iterator();// applying iterator on keyset or value set\n\t\t\n\t\twhile(it.hasNext()) {\n\t\tString key=\tit.next();\n\t\tString value=capitalMap.get(key);\n\t\tSystem.out.println(\"Key = \"+key+\" \"+\"value= \"+value );\n\t\t}\n\t\t\n\t\tSystem.out.println(\"****************************************\");\n\t\t//entry set iterator\n\t\tIterator<Entry<String, String>> it1=capitalMap.entrySet().iterator();\n\t\t\n\t\twhile(it1.hasNext()) {\n\t\t\tEntry<String, String> entry=it1.next();\n\t\t\tSystem.out.println(\"Key is \"+entry.getKey()+ \" Value is \"+entry.getValue());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"****************************************\");\n\t\t\n\t\t//iterator with for each and lamda java 8\n\t\tcapitalMap.forEach((k,v)->System.out.println(\"key \"+k+\" value\"+v));\n\t\t\n\t\t\n\t\t\n\n\n\t\t\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\n\tHashMap<Integer, String> map=new HashMap<Integer, String>();\n\tmap.put(0, \"X\");\n\tmap.put(1, \"X\");\n\tmap.put(2, \"Y\");\n\tmap.put(3, \"Z\");\n\t\n\tSystem.out.println(map.get(2));\n\t\n\tfor(int i=0;i<=map.size();i++) {\n\t\tSystem.out.println(map.get(i));\n\t}\n\t\n\t//for(String s:li)\n\tfor (Map.Entry<Integer, String> entry : map.entrySet()) {\n\t System.out.println(entry.getKey() + \" = \" + entry.getValue());\n\t}\n\t\n\tmap.forEach((key,value) -> System.out.println(key + \" = \" + value));\n\t\n\t\n\tmap.forEach((key,value) -> System.out.println(key +\"=\"+value));\n\t\n\t\n}", "public static void main(String[] args) {\n\t\t\n\t\tMap<Integer,Employee> map = new HashMap<Integer, Employee>();\n\t\tMap<String, Employee> hashMap = new HashMap();\n\t\tMap<Employee, Integer> hashMap1 = new HashMap();\n\t\tfor (int i =1; i<=10; i++){\n\t\t\t\n\t\t\tmap.put(i, new Employee(i+3, \"Manish\"+(i+3)));\n\t\t}\n\t\tSystem.out.println(map);\n\t\t\n\t\tEmployee emp1 = new Employee(4, \"Manish3\");\n\t\t//Use of Contains\n\t\tSystem.out.println(map.containsValue(emp1)); \n\t\t\n\t\t//Key Set\n\t\tSystem.out.println(map.keySet());\n\t\t\n\t\t//retrieve entry set\n\t\tSystem.out.println(map.entrySet());\n\t\t\n\t\t//map.forEach(action);; TO DO- need to understand this method\n\t\t\n\n\t\t//Returns in sorted order when Key is natural (permitives or String or Enum)\n\t\thashMap.put(\"A\", new Employee(1, \"Manish\"));\n\t\thashMap.put(\"C\", new Employee(3, \"Gaurav\"));\n\t\thashMap.put(\"B\", new Employee(2, \"Vinay\"));\n\t\tSystem.out.println(hashMap);\n\t\t\n\t\t//maintains insertion order when key is Object type(dont have any natural order)\n\t\thashMap1.put(new Employee(1, \"Manish\"),1);\n\t\thashMap1.put(new Employee(3, \"Gaurav\"),3);\n\t\thashMap1.put(new Employee(2, \"Vinay\"),2);\n\t\tSystem.out.println(hashMap1);\n\t\tHashMap<Long, String> masterRoomPoolMapping = new HashMap<Long, String>();\n\t\tmasterRoomPoolMapping.put(new Long(123), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(124), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(125), \"Manish\");\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSet<Long> keySet = masterRoomPoolMapping.keySet();\n\t\tSet<Long> newKeySet = new HashSet<Long>();\n\t\tfor(Long key : keySet){\n\t\t\tnewKeySet.add(new Long(key));\n\t\t}\n\t\tSystem.out.println(\"newKeySet***************************************************\");\n\t\tif(newKeySet.contains(new Long(123)))\n\t\t\tnewKeySet.remove(new Long(123));\n\t\tfor(Long key : newKeySet){\n\t\t\tSystem.out.println(key);\n\t\t}\n\t\tSystem.out.println(\"keySet1***************************************************\");\n\t\tSet<Long> keySet1 = masterRoomPoolMapping.keySet();\n\t\tfor(Long key : keySet1){\n\t\t\tSystem.out.println(masterRoomPoolMapping.get(key));\n\t\t}\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSystem.out.println(masterRoomPoolMapping);\n\t}", "public static void main(String[] args) {\n\t\tMap myMap = new HashMap();\r\n\t\tmyMap.put(91,\"India\");\r\n\t\tmyMap.put(65,\"Singapore\");\r\n\t\tmyMap.put(94, \"SriLanka\");\r\n\t\tmyMap.put(971, \"Dubai\");\r\n\t\tmyMap.put(91,\"India\");\r\n\t\tmyMap.put(98,\"India\");\r\n\t\tmyMap.put(null,\"India\");\r\n\t\tmyMap.put(null, \"SriLanka\");\r\n\t\tmyMap.put(99,null);\r\n\t\tmyMap.put(199,null);\r\n\t\t\r\n\t\tSystem.out.println(\"myMap :\"+myMap);\r\n\t\t\r\n\t\tSet keySet= myMap.keySet();\r\n\t\tSystem.out.println(\"keySet : \"+keySet);\r\n\t\t\r\n//\t\tfor (int i=0;i<keySet.size();i++) {\t\t\t\r\n//\t\t\tSystem.out.println(myMap.get(keySet));\r\n//\t\t}\r\n\t\tSystem.out.println(\"Using Iterator & while loop\");\r\n\t\tIterator itr = keySet.iterator();\r\n\t\twhile(itr.hasNext()) {\r\n\t\t\tSystem.out.println(myMap.get(itr.next()));\r\n\t\t}\r\n\t\tSystem.out.println(\"Using Enhanced for loop\");\r\n\t\tfor (Object object : keySet) {\r\n\t\t\tSystem.out.println(myMap.get(object));\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tTreeMap<Integer, String> myMap = new TreeMap<Integer, String>();//sort on keys\r\n\t\tmyMap.put(101, \"Tejas\");\r\n\t\tmyMap.put(701, \"sid\");\r\n\t\tmyMap.put(301, \"kavya\");\r\n\t\tmyMap.put(801, \"dhruv\");\r\n\t\tmyMap.put(501, \"sumit\");\r\n\t\tmyMap.put(601, \"satvik\");\r\n\t\tmyMap.remove(501);\r\n\t\t\r\n\t\tSystem.out.println(myMap);\r\n\t\t//System.out.println(myMap.get(101));\r\n\t\t\r\n\t\tSet<Integer> keys = myMap.keySet();\r\n\t\tfor (Iterator iterator = keys.iterator(); iterator.hasNext();) {\r\n\t\t\tInteger key = (Integer) iterator.next();\r\n\t\t\tSystem.out.println(\"Key=\"+key+\" value=\"+myMap.get(key));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tMap<Integer,String> hm=new LinkedHashMap<>();\n\t\thm.put(1,\"Jack\");\n\t\thm.put(2,\"Peter\");\n\t\thm.put(3,\"Sam\");\n\t\thm.put(4,\"Bruce\");\n\t\tSystem.out.println(\"Map:\"+hm);\n\t\thm.put(2,\"Wayne\");\n\t\tSystem.out.println(\"\\nAfter Changing An element in the Map:\\n\"+hm);\n\t\thm.remove(2);\n\t\tSystem.out.println(\"\\nAfter removing an element from the Map:\\n\"+hm);\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic static void main(String[] args) {\r\n\t\t\r\n\t\t/* Declare HashMap Object */\r\n\t\tHashMap<Integer, String> hmap = new HashMap<Integer, String>();\r\n\t\t\r\n\t\t//Add Elements\r\n\t\thmap.put(1, \"Liban\");\r\n\t\thmap.put(2, \"abdullahi\");\r\n\t\thmap.put(3, \"mohamed\");\r\n\t\thmap.put(4, \"Roble\");\r\n\t\thmap.put(5, \"Warfaa\");\r\n\t\thmap.put(6, \"Faarax\");\r\n\t\t\r\n\t\t/* Iterate Using For Loop*/\r\n\t\tSystem.out.println(\"Iterate Using for loop\");\r\n\t\tfor(Map.Entry me : hmap.entrySet())\r\n\t\t\tSystem.out.println(\"Key is: \" + me.getKey() + \" & Value is: \" + me.getValue());\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t\r\n\t\t/* Iterate USING wHILE lOOP + iTERATOR */\r\n\t\tSystem.out.println(\"Iterate Using while loop + iterator\");\r\n\t\t\r\n\t\t// Getting a Set of Key-value pairs\r\n\t\tSet set = hmap.entrySet();\r\n\t\t\r\n\t\t// Obtaining an iterator for the entry set\r\n\t\tIterator iter = set.iterator();\r\n\t\t\r\n\t\t// Iterate through HashMap entries(Key-Value pairs)\r\n\t\twhile(iter.hasNext())\r\n\t\t{\r\n\t\t\tMap.Entry mentry = (Map.Entry)iter.next();\r\n\t\t\tSystem.out.println(\"Key is: \" + mentry.getKey() + \" & Value is: \" + mentry.getValue());\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tHashMap<String, String> hashmap = new HashMap();\r\n\r\n//Add key values pairs to hashmap\r\n\r\n\t\thashmap.put(\"1\", \"One\");\r\n\t\thashmap.put(\"2\", \"Two\");\r\n\t\thashmap.put(\"3\", \"Three\");\r\n\t\thashmap.put(\"4\", \"Four\");\r\n\t\thashmap.put(\"5\", \"Five\");\r\n\t\thashmap.put(\"6\", \"Six\");\r\n\r\n\t\t/*\r\n\t\t * To check whether a particular key exists in HashMap use boolean\r\n\t\t * containsKey(Object key) method of HashMap class. containsKey(Object key)\r\n\t\t * returns true if the HashMap contains mapping for specified key otherwise\r\n\t\t * false.\r\n\t\t */\r\n\r\n\t\tboolean isExists = hashmap.containsKey(\"4\");\r\n\t\tSystem.out.println(\"4 exists in HashMap ? : \" + isExists);\r\n\r\n\t\tif (!hashmap.isEmpty()) {\r\n\r\n\t\t\tIterator it = hashmap.entrySet().iterator();\r\n\r\n\t\t\twhile (it.hasNext()) {\r\n\r\n\t\t\t\tMap.Entry obj = (Entry) it.next();\r\n\t\t\t\tSystem.out.print(obj.getKey() + \" \");\r\n\t\t\t\tSystem.out.println(obj.getValue());\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n HashMap<Integer, Character> hashMap = new HashMap<Integer, Character>();\n hashMap.put(0,'F');hashMap.put(1,'G');hashMap.put(2,'R');\n hashMap.put(3,'S');hashMap.put(4,'T');hashMap.put(5,'L');\n hashMap.put(6,'M');hashMap.put(7,'N');hashMap.put(8,'O');\n hashMap.put(9,'P');hashMap.put(10,'Q');hashMap.put(11,'W');\n hashMap.put(12,'X');hashMap.put(13,'Y');hashMap.put(14,'Z');\n hashMap.put(15,'U');hashMap.put(16,'A');hashMap.put(17,'G');\n hashMap.put(18,'H');hashMap.put(19,'I');hashMap.put(20,'J');\n hashMap.put(21,'K');hashMap.put(22,'B');hashMap.put(23,'C');\n hashMap.put(24,'D');hashMap.put(25,'E');hashMap.put(26,'l');\n hashMap.put(27,'m');hashMap.put(28,'n');hashMap.put(29,'o');\n hashMap.put(30,'p');hashMap.put(31,'i');hashMap.put(32,'j');\n hashMap.put(33,'k');hashMap.put(34,'f');hashMap.put(35,'g');\n hashMap.put(36,'h');hashMap.put(37,'a');hashMap.put(38,'b');\n hashMap.put(39,'c');hashMap.put(40,'d');hashMap.put(41,'e');\n hashMap.put(42,'q');hashMap.put(43,'r');hashMap.put(44,'w');\n hashMap.put(45,'x');hashMap.put(46,'y');hashMap.put(47,'z');\n hashMap.put(48,'s');hashMap.put(49,'t');hashMap.put(50,'u');\n hashMap.put(51,'v');\n while(in.hasNext()){\n String str = in.next();\n\n String[] arr = str.split(\"[#]+\");\n\n StringBuffer ss = new StringBuffer();\n\n for (int i = 0; i < arr.length; i++) {\n\n //System.out.println(arr[i]);\n\n StringBuffer sb = new StringBuffer();\n\n for (int j = 0; j < arr[i].length(); j++) {\n\n int a = arr[i].charAt(j)=='-'?0:1;\n sb.append(a);\n }\n\n long b = Long.valueOf(sb.toString(),2);\n\n if (b>51||b<0){\n ss.replace(0,ss.length(),\"\");\n ss.append(\"ERROR\");\n break;\n }else {\n ss.append(hashMap.get((int)b));\n }\n }\n System.out.println(ss);\n\n }\n }", "public static void main(String[] args) {\n\t\t\tSystem.out.println(\"10000000\".compareTo(\"2000\"));\n\t\t\t\n\t\t\tTreeMap<String, String> map = new TreeMap<>(Collections.reverseOrder());\n\t\t\tmap.put(\"1\",\"2\");\n\t\t\tmap.put(\"2\",\"1\");\n\t\t\t\n\t\t\tSet<Entry<String, String>> set = map.entrySet();\n\t\t\tIterator<Entry<String, String>> itr = set.iterator();\n\t\t\t\n\t\t\twhile(itr.hasNext()) {\n\t\t\t\tEntry<String, String> e = itr.next();\n\t\t\t\tmap.remove(e.getKey());\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(map);\n\t\t\t\n\t}", "public static void main(String[] args) {\n\t\tHashMap<Integer,String> map=new HashMap<Integer,String>();//Creating HashMap \n\t\t map.put(1,\"Mango\"); //Put elements in Map \n\t\t map.put(2,\"Apple\"); \n\t\t map.put(3,\"Banana\"); \n\t\t map.put(4,\"Grapes\"); \n\t\t \n\t\t System.out.println(\"Iterating Hashmap...\"); \n\t\t for(Map.Entry m : map.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t System.out.println(\"*************no duplicate keys*********************\");\n\t\t \n\t\t HashMap<Integer,String> map1=new HashMap<Integer,String>();//Creating HashMap \n\t\t map1.put(1,\"Mango\"); //Put elements in Map \n\t\t map1.put(2,\"Apple\"); \n\t\t map1.put(3,\"Banana\"); \n\t\t map1.put(1,\"Grapes\"); //trying duplicate key \n\t\t \n\t\t System.out.println(\"Iterating Hashmap...\"); \n\t\t for(Map.Entry m : map1.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t System.out.println(\"**********adding elements********************\");\n\t\t \n\t\t HashMap<Integer,String> hm=new HashMap<Integer,String>(); \n\t\t System.out.println(\"Initial list of elements: \"+hm); \n\t\t hm.put(100,\"Amit\"); \n\t\t hm.put(101,\"Vijay\"); \n\t\t hm.put(102,\"Rahul\"); \n\t\t \n\t\t System.out.println(\"After invoking put() method \"); //{}\n\t\t for(Map.Entry m:hm.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t \n\t\t hm.putIfAbsent(103, \"Gaurav\"); \n\t\t System.out.println(\"After invoking putIfAbsent() method \"); \n\t\t for(Map.Entry m:hm.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t HashMap<Integer,String> map2=new HashMap<Integer,String>(); \n\t\t map2.put(104,\"Ravi\"); \n\t\t map2.putAll(hm); \n\t\t System.out.println(\"After invoking putAll() method \"); \n\t\t for(Map.Entry m:map2.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t map2.remove(100);\n\t\t System.out.println(map2);\n\t\t map2.remove(102,\"Rahul\");\n\t\t System.out.println(map2);\n\t\t System.out.println(\"**********replace elements********************\");\n\t\t map2.replace(103, \"rupom\");\n\t\t System.out.println(map2);\n\t\t map2.replace(101, \"Vijay\", \"roy\");\n\t\t System.out.println(map2);\n\t\t \n\t\t\t \n\t\t \n\n\t\t \n\t\t \n\n\t}", "public static void main(String[] args) throws Exception {\n\r\n\t\tHashMap<String, Integer> hm = new HashMap<>(3);\r\n\r\n\t\thm.put(\"CHINA\", 2000);\r\n\t\thm.display();\r\n\r\n\t\thm.put(\"INDIA\", 1200);\r\n\t\thm.display();\r\n\r\n\t\thm.put(\"PAK\", 800);\r\n\t\thm.display();\r\n\r\n\t\thm.put(\"USA\", 200);\r\n\t\thm.display();\r\n\r\n\t\thm.put(\"UK\", 150);\r\n\t\thm.display();\r\n\r\n\t\thm.put(\"UAE\", 20);\r\n\t\thm.display();\r\n\r\n\t\thm.put(\"BRAZIL\", 500);\r\n\t\thm.display();\r\n\r\n\t\thm.put(\"NIGERIA\", 250);\r\n\t\thm.display();\r\n\r\n\t\thm.put(\"NIGERIA\", 350);\r\n\t\thm.display();\r\n\r\n\t\thm.Remove(\"PAK\");\r\n\t\thm.display();\r\n\t\tSystem.out.println(hm.size());\r\n\t\tSystem.out.println(hm.Get(\"NIGERIA\"));\r\n\r\n\t}", "public static void removeInfo(HashMap<String,String> hm) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString ssn =\"\";\n\t\t\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"Enter SSN to remove from system from the list below\");\n\t\t\t\n\t\t\tfor (String keys : hm.keySet()) \n\t\t\t{\n\t\t\t System.out.println(keys + \":\"+ hm.get(keys)+\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.println(\"Press 'Q' to end the program\");\n\t\t\tssn =scan.next();\n\t\t\tif(ssn.equalsIgnoreCase(\"Q\")) {\n\t\t\t\tSystem.out.println(\"Thank you! Bye now!\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(hm.isEmpty()) {\n\t\t\t\tSystem.out.println(\"there is no any data to remove, bye Now\");\n\t\t\t\tbreak;\n\t\t\t}else if(hm.containsKey(ssn)) {\n\t\t\t\tString personInfo=hm.remove(ssn);\n\t\t\t\tSystem.out.println(ssn+ \" you entered is removed/deleted\"+personInfo);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(ssn+ \" is not in the map. please enter the one that is below\");\n\t\t\t\tfor (String keys : hm.keySet()) \n\t\t\t\t{\n\t\t\t\t System.out.println(keys + \":\"+ hm.get(keys));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}while(true);\n\t\tSystem.out.println(hm);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tMap<Integer , String> mapitr = new HashMap<>();\r\n\t\t//enter values\r\n\t\tmapitr.put(0, \"hi\");\r\n\t\tmapitr.put(1, \"hello\");\r\n\t\tmapitr.put(2, \"welcome\");\r\n\t\tmapitr.put(3, \"hey\");\r\n\t\t\r\n\t\tIterator<Entry<Integer, String>> iterator= mapitr.entrySet().iterator();\r\n\t\t\r\nwhile(iterator.hasNext()){\r\n\tEntry<Integer ,String> entry=iterator.next();\r\n\tSystem.out.println(entry.getValue());\r\n\tSystem.out.println(entry.getKey());\r\n\t\r\n\t\t\r\n\t}\r\n\t\t\t\r\n\t\t}", "public static void main(String[] args) {\n Map<Integer, Integer> conMap = new HashMap<>();\n for(int i = 1; i < 1000000 ; i ++){\n conMap.put(i,i);\n }\n\n// Thread thread1 = new Thread(() -> {\n// while(true) {\n// for (Map.Entry<Integer, Integer> entry : conMap.entrySet()) {\n// entry.getKey();\n// }\n// }\n// });\n// thread1.start();\n//\n// Thread thread2 = new Thread( () ->{\n// for (Map.Entry<Integer, Integer> entry : conMap.entrySet()) {\n// conMap.remove(entry.getKey());\n// }\n// });\n// thread2.start();\n\n Thread thread3 = new Thread( () ->{\n// for (Map.Entry<Integer, Integer> entry : conMap.entrySet()) {\n// conMap.remove(entry.getKey());\n// }\n Iterator<Map.Entry<Integer,Integer>> iterator = conMap.entrySet().iterator();\n while(iterator.hasNext()){\n iterator.next();\n iterator.remove();\n }\n });\n thread3.start();\n }", "public static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\thash_map();\n\t\t//textread();\n\t\t\n\t\t/*\n\n\t\tFileReader fromfile = new FileReader(\"E:\\\\OnlineJob\\\\PWD.txt\");\n\t\tBufferedReader bufferReader = new BufferedReader(fromfile);\n\t\t\n\t\tString textFromfile =null;\n\t\twhile ((textFromfile = bufferReader.readLine())!= null) {\n\t\t\tSystem.out.println(textFromfile);\n\t\t}\n\t\tfromfile.close();\n\t\tbufferReader.close();\n\t}\n\t\n\tpublic static void textread() {\n\t\t\n\t\tScanner userinput = new Scanner(System.in);\n\t\tSystem.out.println(\"Learning Java from?\");\n\t\tString variable = userinput.nextLine();\n\t\tSystem.out.println(variable);\n\t\tuserinput.close();\n\t\t} */\n\tpublic static void hash_map() {\n\t\tHashMap<Integer, String> testmp = new HashMap<Integer, String>(); \n\t\ttestmp.put(1, \"Param\");\n\t\ttestmp.put(2, \"Selvi\");\n\t\ttestmp.put(3,\"\" );\n\t\ttestmp.put(4, \"Ragha\");\n\t\t//testmp.put(4, 100);\n\t\t//testmp.put(4,250);\n\t\tSystem.out.println(\"Elements of Map:\");\n\t\ttestmp.remove(6);\n\t\tSystem.out.println(testmp.containsKey(6));\n\t\tSystem.out.println(testmp);\n\t\tSystem.out.println(testmp.keySet());\n\t\tSystem.out.println(testmp.values());\n\t\tSystem.out.println(testmp.isEmpty());\n\t\t\n\t}\n\n\t\n}", "public static void main(String[] args) {\n\r\n\t\tSortByValue sbv = new SortByValue();\r\n\t\tsbv.setValueOnMap(12, \"Aarti\");\r\n\t\tsbv.setValueOnMap(15, \"Sonam\");\r\n\t\tsbv.setValueOnMap(17, \"Anita\");\r\n\t\tsbv.setValueOnMap(13, \"Premlata\");\r\n\t\tsbv.setValueOnMap(14, \"Komal\");\r\n\t\tsbv.setValueOnMap(20, \"Namita\");\r\n\t\tsbv.setValueOnMap(25, \"Babita\");\r\n\t\t\r\n\t\tMap<Integer, String> _map = sbv.getValueFromMap();\r\n\t\t/*Iterator<Map.Entry<Integer, String>> _it = _map.entrySet().iterator();\r\n\t\twhile(_it.hasNext()){\r\n\t\t\tMap.Entry<Integer, String> _map_value = _it.next();\r\n\t\t\tSystem.out.println(_map_value.getKey()+\"|\"+_map_value.getValue());\r\n\t\t}*/\r\n\t\t\r\n\t\tSet<Entry<Integer, String>> set = _map.entrySet();\r\n\t\tList<Entry<Integer, String>> list = new ArrayList<Entry<Integer, String>>(set);\r\n\t\tSystem.out.println(\"HashMap values Before sort:\");\r\n\t\tfor(Map.Entry<Integer, String> listBeforeSort : list){\r\n\t\t\tSystem.out.println(listBeforeSort.getKey()+\" | \"+listBeforeSort.getValue());\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(list, new Comparator<Map.Entry<Integer, String>>(){\r\n\t\t\tpublic int compare(Map.Entry<Integer, String> value1, Map.Entry<Integer, String> value2){\r\n\t\t\t\treturn value1.getValue().compareTo(value2.getValue());\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tSystem.out.println(\"HashMap values After sort:\");\r\n\t\tfor(Map.Entry<Integer, String> listBeforeSort : list){\r\n\t\t\tSystem.out.println(listBeforeSort.getKey()+\" | \"+listBeforeSort.getValue());\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tMap<String, String> m=new HashMap();\n\t\t\nm.put(\"SW\", \"1\");\nm.put(\"HR\", \"2\");\nm.put(\"Admin\", \"3\");\nm.put(\"FOE\", \"4\");\n\nString s=m.get(\"Admin\");\nSystem.out.println(s);\nIterator i=m.keySet().iterator();\n\n//via iterator\nwhile(i.hasNext())\n{\n\tObject k=i.next();\n\tObject v=m.get(k);\n\tSystem.out.print(\"Key=\"+k+\"value=\"+v+\"\\n\");\n}\n//via for loop\nSystem.out.println(\"_________\");\nfor(String key:m.keySet())\n{\n\tString value=m.get(key);\n\t\n\tSystem.out.print(\"Key=\"+key+\"value=\"+value+\"\\n\");\n}\n\n}", "public static void main(String[] args) {\n\n\t\tHashMap<String,String> hm = new HashMap<String, String>();\n\t\t\n\t\thm.put(\"e\",\"a1\");\n\t\thm.put(\"b\",\"a1\");\n\t\thm.put(\"a\",\"a2\");\n\t\t \n\t\thm.put(\"a\",\"a5\");\n\t\t\n\t\tSet s = hm.entrySet();\n\t\tIterator it = s.iterator();\n\t\t\n\t\tfor(Map.Entry me : hm.entrySet())\n\t\t\tSystem.out.println(me.getKey()+\" \"+me.getValue());\n\t\t\n\t\t\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMap.Entry mentry = (Map.Entry) it.next();\n\t\t\tSystem.out.println(mentry.getKey() +\" \"+mentry.getValue());\n\t\t\t\n\t\t}\n\t\t\n\tMap<String,String> thmp = \tnew TreeMap<String,String> (hm);\n\tSystem.out.println();\n\tfor(Map.Entry g : thmp.entrySet())\n\t\tSystem.out.println(g.getKey()+\" \"+g.getValue());\n\t\n\t\n\tSystem.out.println(hm.containsKey(\"a\")+\" \"+hm.containsValue(\"a5\"));\n\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) \r\n\t{\r\n\t\tMap<String,String> hm = new HashMap<>();\r\n\t\thm.put(\"Navin\", \"1234567890\");\r\n\t\thm.put(\"Ali\", \"9347891302\");\r\n\t\thm.put(\"Archana\", \"8954671283\");\r\n\t\thm.put(\"Navin\", \"2222222222\"); \r\n\t\thm.put(null, \"3333333333\");\r\n\t\thm.put(null, \"4444444444\");\r\n\t\t\r\n\t//\tSystem.out.println(\"print the vlaue :\"+hm.get(\"Navin\")); // print the latest values\r\n\t//\tSystem.out.println(\"print the value :\"+hm.get(null)); // print the latest null values\r\n\t\t\r\n\t\tfor(Map.Entry<String, String> m : hm.entrySet()) // map entry used to iterate / get the value of map with key value pair\r\n\t\t{\r\n\t\t\tSystem.out.println( m.getKey() + \" \" + m.getValue() );\r\n\t\t}\r\n\t}", "public static void main(String[] args) \r\n {\n TreeMap<Employee, Integer> hashMap = new TreeMap<Employee, Integer>(); \r\n \r\n // Mapping string values to int keys \r\n hashMap.put(new Employee(10,\"uday\"), 10); \r\n hashMap.put(new Employee(11,\"uday\"), 11); \r\n hashMap.put(new Employee(12,\"uday\"), 12); \r\n hashMap.put(new Employee(13,\"uday\"), 13); \r\n \r\n for (Entry<Employee, Integer> e : hashMap.entrySet()) \r\n System.out.println(e.getKey().toString() + \" \" + e.getValue()); \r\n \r\n HashMap<String, Integer> map = new HashMap<>(); \r\n \r\n }", "public static void main(String[] args) {\n\t\tProduct proone=new Product();\r\n\t\tproone.setProdid(10001);\r\n\t\tproone.setProdname(\"lg\");\r\n\t\tproone.setProdprice(1181.11);\r\n\t\t\r\n\t\tProduct protwo=new Product();\r\n\t\tprotwo.setProdid(10008);\r\n\t\tprotwo.setProdname(\"lg\");\r\n\t\tprotwo.setProdprice(1181.11);\r\n\t\t\r\n\t\tProduct prothree=new Product();\r\n\t\tprothree.setProdid(10011);\r\n\t\tprothree.setProdname(\"lg\");\r\n\t\tprothree.setProdprice(1181.11);\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n /* Map<Integer,String> myMap=new HashMap<>();\r\n myMap.put(1, \"abcd\");\r\n myMap.put(2,\"life\");\r\n myMap.put(3,\"veena\");\r\n */\r\n\t\t Map<Integer,Product> myMap=new HashMap<>();\r\n\t myMap.put(1, protwo);\r\n\t myMap.put(3,prothree);\r\n System.out.println(myMap);\r\n System.out.println(myMap.keySet());//give all keys\r\n System.out.println(myMap.get(2));\r\n System.out.println(myMap.values());//all values\r\n System.out.println(\"____________________for loop_=====================\");\r\n \r\n for(Integer keys:myMap.keySet())\r\n {\r\n \t System.out.println(\"Keys are:\"+keys+\"Values \"+myMap.get(keys));\r\n }\r\n for(Integer keys:myMap.keySet())\r\n {\r\n \t System.out.println(myMap.get(keys).getProdid());\r\n \t System.out.println(myMap.get(keys).getProdname());\r\n \t System.out.println(myMap.get(keys).getProdprice());\r\n \t \r\n }\r\n System.out.println(\"____________________Iterator=====================\");\r\n \r\n // Iterator it=myMap.iterator(); error becoz map is not part of collection but list nd set are part of collection\r\n //convert to set wid help of keyset...keyset will only convert keys entryset will convert evrythng\r\n \r\n Set myData=myMap.entrySet();\r\n Iterator it=myData.iterator();\r\n \r\n while(it.hasNext())\r\n {\r\n \t System.out.println(it.next());\r\n }\r\n \r\n System.out.println(\"============================\");\r\n //Collections.sort(myMap);\r\n \r\n // Set<Product> trgtset=new HashSet<>(myMap.values());\r\n Collection<Product> mySet=myMap.values(); \r\n //Set<Product> sett=new TreeSet<>(mySet);\r\n List<Product> myList=new LinkedList<>(mySet);\r\n Collections.sort(myList);\r\n \r\n /* for(Product prod:myList)\r\n {\r\n \t System.out.println(prod.getProdid());\r\n \t System.out.println(prod.getProdname());\r\n \t System.out.println(prod.getProdprice());\r\n }\r\n\r\n */\r\n Iterator it1=myData.iterator();\r\n \r\n while(it1.hasNext())\r\n {\r\n \t System.out.println(it1.next());\r\n }\r\n Map mp=new HashMap<>();\r\n mp.put(null,null);\r\n mp.put(1, null);\r\n mp.put(2, null);\r\n mp.put(null,null);\r\n System.out.println(mp);\r\n //is same above snippet written with map mp=new HashTable<>() it will giv nullpointer exception\r\n \r\n\t}", "public HashMap<String, ArrayList< List<String> >> cleanHM(HashMap<String, ArrayList< List<String> >> hm){\n for(String ID : hm.keySet() ){\n ArrayList<List<String>> curIDSentences = hm.get(ID);\n List<String> tempL= new ArrayList<String>();\n curIDSentences.removeAll(Collections.singleton(tempL));\n }\n return hm;\n }", "public static void main(String[] args) {\n\t\tMap<Integer, Integer> myMap = new HashMap<Integer, Integer>();\n\t\t\n\t\tmyMap.put(1, 5);\n\t\tmyMap.put(2, 4);\n\t\tmyMap.put(3, 3);\n\t\tmyMap.put(4, 2);\n\t\tmyMap.put(5, 1);\n\t\t\n\t\tIterator<Map.Entry<Integer, Integer>> iterator =myMap.entrySet().iterator();\n\t\t\n\t\twhile(iterator.hasNext()) {\n\t\t\tMap.Entry<Integer, Integer> entry =iterator.next();\n\t\t\tSystem.out.println(\"key : \"+entry.getKey()\n\t\t\t+\" value : \"+entry.getValue());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"-----------\");\n\t\t\n\t\tfor(Map.Entry<Integer, Integer> iteratoor : myMap.entrySet()) {\n\t\t\tSystem.out.println(iteratoor);\n\t\t}\n\t\t\n\t\tmyMap.forEach((k,v) -> System.out.println(k+\"-\"+v));\n\t}", "public static void main(String[] args) {\n\t\tMap<String, List<String>> map = new HashMap<String, List<String>>();\n\n\t\t// create list one and store values\n\t\tList<String> valuSetOne = new ArrayList<String>();\n\t\tvaluSetOne.add(\"Apple\");\n\t\tvaluSetOne.add(\"Banana\");\n\n\t\t// Create list two and store values\n\t\tList<String> valuSetTwo = new ArrayList<String>();\n\t\tvaluSetTwo.add(\"Orange\");\n\t\tvaluSetTwo.add(\"Watermelon\");\n\n\t\t// Create list three and store values\n\t\tList<String> valuSetThree = new ArrayList<String>();\n\t\tvaluSetThree.add(\"Mango\");\n\t\tvaluSetThree.add(\"Pineapple\");\n\n\t\t// Put values into the map\n\t\tmap.put(\"A\", valuSetOne);\n\t\tmap.put(\"B\", valuSetTwo);\n\t\tmap.put(\"C\", valuSetThree);\n\n\t\t//Retrieve values with for each loop\n\t\tfor(Map.Entry<String,List<String>> entry: map.entrySet()){\n\t\t\tString key = entry.getKey();\n\t\t\tList<String> values = entry.getValue();\n\t\t\tSystem.out.println(key+\" \" + values);\n\t\t}\n\n\t\tIterator itr = map.entrySet().iterator();\n\t\t//Retrieve values with while loop\n\t\twhile (itr.hasNext()){\n\t\t\tMap.Entry elements = (Map.Entry)itr.next();\n\t\t\tSystem.out.println(elements.getKey()+\" \"+elements.getValue());\n\t\t}\n\t}", "public void removeAll(String k1, String k2) {\n java.util.HashMap<String, V> newMap = new java.util.HashMap<String, V>(map);\n for (String key: newMap.keySet()) {\n int ind = key.indexOf(\"|\");\n String a = key.substring(0, ind);\n String b = key.substring(ind + 1, key.length());\n\n // if the current key contains either k1 or k2 remove it\n if (a.equals(k1) || b.equals(k1) || a.equals(k2) || b.equals(k2)) {\n map.remove(a + \"|\" + b);\n map.remove(b + \"|\" + a);\n } // END if\n } // END for key\n }", "public static void main(String[] args) {\n\t\tMap hashmap = new HashMap();\r\n\t\tMap treemap = new TreeMap();\r\n\t\t// JDK 1.4+ only\r\n\t\tMap linkedMap = new LinkedHashMap();\r\n\t\tSet s;\r\n\t\tIterator i;\r\n\t\t\r\n\t\t/// HASHMAP\r\n\t\thashmap.put(\"Three\", \"Three\");\r\n\t\thashmap.put(\"Three\", \"Three\"); // This entry overwrites the previous\r\n\t\thashmap.put(\"One\", \"One\");\r\n\t\thashmap.put(\"Two\", \"Two\");\r\n\t\thashmap.put(\"Six\", \"Six\");\r\n\t\thashmap.put(\"Seven\", \"Seven\");\r\n\t\t// Order is NOT guaranteed to be consistent; no duplicate keys\r\n\t\tSystem.out.println(\"Unordered Contents of HashMap:\");\r\n\t\t\r\n\t\t/*\r\n\t\t * To iterate over items in a Map, you must first retrieve a Set of all \r\n\t\t * of its keys. Then, iterate over the keys and use each key to retrieve \r\n\t\t * the value object from the Map.\r\n\t\t */\r\n\t\ts = hashmap.keySet();\r\n\t\t// A Map does not have an iterator, but a Set DOES ... why?\r\n\t\ti = s.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\t// Example of how to retreive and view the key\r\n\t\t\tObject key = i.next();\r\n\t\t\tSystem.out.println( key );\r\n//\t\t\tSystem.out.println( \"Key: \" + key );\r\n\t\t\t// Now retrieve and view the Map value using that key\r\n//\t\t\tString value = (String)hashmap.get(key);\r\n//\t\t\tSystem.out.println( \"Value: \" + value );\r\n\t\t}\r\n\t\t\r\n\t\t/// LINKEDHASHMAP\r\n\t\tlinkedMap.put(\"Three\", \"Three\");\r\n\t\tlinkedMap.put(\"Three\", \"Three\"); // This entry overwrites the previous\r\n\t\tlinkedMap.put(\"One\", \"One\");\r\n\t\tlinkedMap.put(\"Two\", \"Two\");\r\n\t\tlinkedMap.put(\"Six\", \"Six\");\r\n\t\tlinkedMap.put(\"Seven\", \"Seven\");\r\n\t\t// Order IS guaranteed to be consistent (LRU - Entry order)\r\n\t\tSystem.out.println(\"\\nOrdered (Entry Order) Contents of LinkedHashMap:\");\r\n\t\ts = linkedMap.keySet();\r\n\t\ti = s.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tSystem.out.println( i.next() );\r\n\t\t}\r\n\r\n\t\t/// TREEMAP\r\n\t\ttreemap.put(\"Three\", \"Three\");\r\n\t\ttreemap.put(\"Three\", \"Three\");\r\n\t\ttreemap.put(\"Two\", \"Two\");\r\n\t\ttreemap.put(\"Seven\", \"Seven\");\r\n\t\ttreemap.put(\"One\", \"One\");\r\n\t\ttreemap.put(\"Six\", \"Six\");\r\n\t\t// Keys guaranteed to be in sorted order, no duplicate keys\r\n\t\tSystem.out.println(\"\\nOrdered (Sorted) Contents of TreeMap:\");\r\n\t\ts = treemap.keySet();\r\n\t\ti = s.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tSystem.out.println( i.next() );\r\n\t\t}\r\n\t\t\r\n\t\t// Integer Object values\r\n\t\thashmap = new HashMap();\r\n\t\thashmap.put( \"Three\", new Integer(3) );\r\n\t\thashmap.put( \"Three\", new Integer(3) );\r\n\t\thashmap.put( \"One\", new Integer(1) );\r\n\t\thashmap.put( \"Two\", new Integer(2) );\r\n\t\thashmap.put( \"Six\", new Integer(6) );\r\n\t\thashmap.put( \"Seven\", new Integer(7) );\r\n\t\t\r\n\t\tSystem.out.println(\"\\nContents of HashMap:\");\r\n\t\ts = hashmap.keySet();\r\n\t\ti = s.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tSystem.out.println( i.next() );\r\n\t\t}\r\n\t\t\r\n\t\t// Keys guaranteed to be in sorted order, no duplicate keys\r\n\t\ttreemap = new TreeMap();\r\n\t\ttreemap.put( \"Three\", new Integer(3) );\r\n\t\ttreemap.put( \"Three\", new Integer(3) );\r\n\t\ttreemap.put( \"Two\", new Integer(2) );\r\n\t\ttreemap.put( \"Seven\", new Integer(7) );\r\n\t\ttreemap.put( \"One\", new Integer(1) );\r\n\t\ttreemap.put( \"Six\", new Integer(6) );\r\n\t\t\r\n\t\tSystem.out.println(\"\\nContents of TreeMap:\");\r\n\t\ts = treemap.keySet();\r\n\t\ti = s.iterator();\r\n\t\t\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tSystem.out.println( i.next() );\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\n\t\tHashMap<Integer, String> hash_map = new HashMap<Integer, String>();\n\t\thash_map.put(1, \"Simon\");\n\t\thash_map.put(2, \"Samuel\");\n\t\thash_map.put(3, \"Thomus\");\n\t\thash_map.put(4, \"Ezekel\");\n\t\t\n\t\tStringBuilder str = new StringBuilder();\n\t\thash_map.entrySet().forEach(n-> str.append(n.getKey()).append(n.getValue()));\n\t\tSystem.out.println(str.toString());\n//\t\tSet<Entry<Integer, String>> n= hash_map.entrySet();\n//\t\thash_map.forEach(n -> str.toString());\n\t}", "private static void linkedHashMapMap(Map<Integer, String> linkedHashMapMap) {\n System.out.println(\"----------------------------- LinkedHashMap ----------------------------\");\n System.out.println(\"\\\"TreeMap\\\" is ordered by entry\");\n linkedHashMapMap.put(7, \"Cristiano Ronaldo\");\n linkedHashMapMap.put(10, \"Leo Messi\");\n linkedHashMapMap.put(8, \"Avi Nimni\");\n linkedHashMapMap.put(24, \"Kobi Brian\");\n PrintUtils.printMap(linkedHashMapMap);\n System.out.println();\n // STEP 2 - set p3 name to \"Moshe\"\n System.out.println(\"Set the name of player number 8 to be \\\"Moshe\\\":\");\n linkedHashMapMap.replace(8, \"Avi Nimni\", \"Moshe\");\n // if you use \"put\" instead of \"replace\" it will work to!\n PrintUtils.printMap(linkedHashMapMap);\n System.out.println();\n // STEP 3 - add p5 to the end of the list using using ADD method\n System.out.println(\"Add p5 to the end of the list using ADD method:\");\n System.out.println(\"Not an option!\");\n System.out.println();\n // STEP 4 - add p6 to position 3 the end of the list using ADD method\n System.out.println(\"Add p6 to position 3 the end of the list using ADD method:\");\n System.out.println(\"Not an option, you can wright over it!\");\n System.out.println();\n // STEP 5 - remove p2 from the list\n System.out.println(\"Remove p2 from the list and printing the list using a static method in a utility class:\");\n linkedHashMapMap.remove(10, \"Leo Messi\");\n PrintUtils.printMap(linkedHashMapMap);\n System.out.println();\n }", "public static void main(String[] args) {\n\t\tMap<String, Integer> priceMap = new HashMap<>(); \n\t\tpriceMap.put(\"TV\", 500); priceMap.put(\"Phone\", 200); \n\t\tpriceMap.put(\"Car\", 20000); priceMap.put(\"Bike\", 6000); \n\t\tpriceMap.put(\"Furniture\", 700); \n\t\n\t\tSystem.out.println(\"price map: \" + priceMap); \n\t\t\n\t\tSet<String> keys = priceMap.keySet(); \n\t\tCollection<Integer> values = priceMap.values();\n\t\t\n\t\tSet<Entry<String, Integer>> entries = priceMap.entrySet(); \n\t\tSystem.out.println(\"keys of Map : \" + keys); \n\t\tSystem.out.println(\"values from Map :\" + values); \n\t\tSystem.out.println(\"entries from Map :\" + entries);\n\n\t\t//Output: price map: {Car=20000, Phone=200, Bike=6000, Furniture=700, TV=500} keys of Map : [Car, Phone, Bike, Furniture, TV] values from Map :[20000, 200, 6000, 700, 500] entries from Map :[Car=20000, Phone=200, Bike=6000, Furniture=700, TV=500]\n\n\t\t\t\t\n\t}", "public static void main(String[] args) {\n HashMap<Character,Integer> hMapOutPut = new HashMap<>();\n //HashMap map = new HashMap();\n String sInput = \"india\";\n char[] strInputArray = sInput.toCharArray();\n for(char fLoop: strInputArray) {\n System.out.println(fLoop);\n if(hMapOutPut.containsKey(fLoop)) {\n int temp=hMapOutPut.get(fLoop)+1;\n hMapOutPut.put(fLoop,temp );\n }else {\n hMapOutPut.put(fLoop, 1);\n }\n }\nSystem.out.println(hMapOutPut);\n }", "public static void main(String[] args) {\n HashMap<Integer, String> map = new HashMap<>();\n map.put(1, \"Red\");\n map.put(2, \"Green\");\n map.put(3, \"Black\");\n map.put(4, \"White\");\n map.put(5, \"Blue\");\n\n\n ///////TOTALLY WRONG SOLUTION/////////// you may use this way with par2\n\n// String value = \"Black\";\n// if (map.containsValue(value)){\n// System.out.println(\"It has black on \" + map.get(value));\n// }else {\n// System.out.println(\"it has not\");\n// }\n\n\n /////////////////////////////////\n String value = \"Black\";\n if (map.containsValue(value)){\n System.out.println(\"It has Black\");\n }else {\n System.out.println(\"it is not working\");\n }\n\n\n System.out.println(\"Part2---------------------------------------------\");\n //part2, try to check it using loop, without .containsValue method\n // print key if you have value in map\n\n for (Map.Entry<Integer, String> entry : map.entrySet()) {\n Integer entryKey = entry.getKey();\n String entryValue = entry.getValue();\n\n if (entryValue.equals(\"White\")) {\n System.out.println(\"key is:\" + entryKey);\n }\n }\n\n //10. Write a Java program to get the\n // value of a specified key in a map.\n System.out.println(\"--------------\");\n\n System.out.println(map.get(3));\n\n //11. Write a Java program to get a set view of the keys contained in this map.\n\n System.out.println(\"__---------------\");\n// for (Map.Entry<Integer, String> entry : map.entrySet()) { // my way right\n// Integer keys = entry.getKey();\n//\n// System.out.println(\"keys is \" + keys + \" \");\n// }\n System.out.println(\"all keys in map \" + map.keySet()); // correct way\n\n HashMap<Character, Boolean> maps = new HashMap<>();\n maps.put('A', true);\n maps.put('B', true);\n maps.put('C', false);\n\n //print => A B C\n //1.way\n Set<Character> characters = maps.keySet();\n System.out.println(characters);\n // 2.way\n for (Character character : characters) {\n System.out.println(character);\n }\n\n\n // 12. to get colection view of the values contained in this map\n\n // 1.way\n\n System.out.println(\"Values are \" + map.values());\n\n //2. way\n\n for (Map.Entry<Integer, String> entry : map.entrySet()) {\n String value4 = entry.getValue();\n\n System.out.println(\"value is \" + value4);\n }\n\n\n }", "public static void main(String[] args) {\n\t\tTreeMap<String,Long> actorMap = new TreeMap<String, Long>();\t\t\n\t\tactorMap.put(\"Varun Dhawan\", 9966337744L);\n\t\tactorMap.put(\"Jonny Depp\", 9912347744L);\n\t\tactorMap.put(\"Robert Jr.\", 9967837744L);\n\t\tactorMap.put(\"Aalia Bhat\", 9526335744L);\n\t\tactorMap.put(\"Shraddha Kapoor\", 9963337744L);\n\t\t\n\t\tSystem.out.println(\"Phone No of Varun Dhawan : \" + actorMap.get(\"Varun Dhawan\"));\n\t\t\n\t\tSystem.out.println(actorMap);\n\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\tSet<String> actor = actorMap.keySet();\n\t\tSystem.out.println(\"User Iterator\");\n\t\tIterator<String> it = actor.iterator();\n\t\twhile(it.hasNext()) {\n\t\t\tString actorName = it.next();\n\t\t\tlong phNo = actorMap.get(actorName);\n\t\t\tSystem.out.println(\"Actor Name : \" + actorName + \"\\tPhone Number : \" + phNo);\n\t\t}\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\tNavigableMap<String, Long> hdMap = actorMap.headMap(\"Shraddha Kapoor\", false);\n\t\tSystem.out.println(\"Head Map : \" +hdMap);\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\tNavigableMap<String, Long> tlMap = actorMap.tailMap(\"Shraddha Kapoor\", false);\n\t\tSystem.out.println(\"Tail Map : \" +tlMap);\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\tSortedMap<String, Long> sbMap = actorMap.subMap(\"Aalia Bhat\", \"Shraddha Kapoor\");\n\t\tSystem.out.println(\"Sub Map : \" +sbMap);\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\tSystem.out.println(\"Ceiling of Shraddha Kapoor is \" + actorMap.ceilingKey(\"Shraddha Kapoor\") );\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\tSystem.out.println(\"Floor of Shraddha Kapoor is \" + actorMap.floorKey(\"Shraddha Kapoor\"));\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\tSystem.out.println(\"Higher of Shraddha Kapoor is \" + actorMap.higherKey(\"Shraddha Kapoor\"));\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\tSystem.out.println(\"Lower of Shraddha Kapoor is \" + actorMap.lowerKey(\"Shraddha Kapoor\"));\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tHashMap<Integer, String> map=new HashMap<>();\n\t\tmap.put(101,\"One\");\n\t\tmap.put(101,\"Two\");\n\t\tmap.put(303,null);\n\t\tmap.put(323,null);\n\t\tmap.put(456,\"Six\");\n\t\tmap.put(890,\"Six\");\n\t\tmap.put(null,\"Seven\");\n\t\t\n\t\tfor(Map.Entry m:map.entrySet())\n\t\t{\n\t\t\tSystem.out.println(m.getKey()+\" \"+m.getValue());\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\r\n\t\tString input = \"4451234485213\";\r\n\r\n\t\tHashMap<Integer, Integer> compareMap = new HashMap<Integer, Integer>();\r\n\t\tSet<Character> dupSet = new HashSet<Character>();\r\n\r\n\t\tfor (char temp : input.toCharArray()) {\r\n\r\n\t\t\tboolean finder = dupSet.add(temp);\r\n\r\n\t\t\tif (finder) {\r\n\t\t\t\t// Element not in set first occurence\r\n\t\t\t\tcompareMap.put(Character.getNumericValue(temp), 1);\r\n\t\t\t} else {\r\n\t\t\t\tcompareMap.put(Character.getNumericValue(temp),\r\n\t\t\t\t\t\tcompareMap.get(Character.getNumericValue(temp)) + 1);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * for(int finalshit:compareMap.keySet()) {\r\n\t\t * System.out.println(\"Key--> \"+finalshit + \" Occurence-->\" +\r\n\t\t * compareMap.get(finalshit));\r\n\t\t * //compareMap2.put(compareMap.get(finalshit), finalshit); }\r\n\t\t */\r\n\r\n\t\tList<Map.Entry<Integer, Integer>> list = new LinkedList<Map.Entry<Integer, Integer>>(\r\n\t\t\t\tcompareMap.entrySet());\r\n\r\n\t\tCollections.sort(list, new customComparator());\r\n\r\n\t\t// System.out.println(compareMap2);\r\n\r\n\t\tHashMap<Integer, Integer> temp = new LinkedHashMap<Integer, Integer>();\r\n\t\tfor (Map.Entry<Integer, Integer> aa : list) {\r\n\t\t\ttemp.put(aa.getKey(), aa.getValue());\r\n\t\t}\r\n\r\n\t\tfor (int a : temp.keySet()) {\r\n\t\t\tSystem.out.println(\"Key = \" + a + \" value=\" + temp.get(a));\r\n\t\t}\r\n\r\n\t}", "private static void deleteVallue(Map<String, List<String>> map, String string) {\n List<String> list = new ArrayList<>();\n for (Map.Entry entry : map.entrySet()) {\n for (int i = 0; i < map.size(); i++) {\n list = (List) entry.getValue();\n if (list.get(i).equals(string)) {\n list.remove(i);\n }\n }\n map.put((String) entry.getKey(), list);\n }\n }", "static void testRemove2(BTMap<Integer, Integer> m) {\n var keys = Arrays.asList(3, 8, 1, 0);\n\n System.out.println(keys);\n\n for (int i = 0; i < keys.size(); i++) {\n m.insert(keys.get(i), i);\n }\n\n System.out.println(m);\n\n m.remove(8);\n\n System.out.println(m);\n\n\n }", "public static void main(String[] args) {\n Map<Integer, String> ht = new Hashtable<>();\n \n // hash = 7, so, (7 & 0x7FFFFFFF) % 11 => 7 % 11 => 7. So, it stores the element in 7th index bucket location\n ht.put(7, \"aa\"); \n ht.put(11, \"ba\");\n ht.put(1, \"ad\");\n ht.put(15, \"sa\");\n ht.put(20, \"rea\");\n \n // hash = 18, so, (18 & 0x7FFFFFFF) % 11 => 18 % 11 => 7. So, it stores the element in 7th index bucket location.\n // But we already have one element then this new element will have next pointer variable. It will point to the element whcih already exists.\n // Then this new element will be placed in the 7th index.\n ht.put(18, \"ewa\");\n\n // When we iterate the elements it will iterate from top to bottom and right to left only.\n // Same index we have a possibility of multiple elements. So, it will read it from right to left.\n System.out.println(ht);\n }", "public static void main(String[] args) {\n LinkedHashMap<Integer, Pracownik> mapa = new LinkedHashMap<>();\n Pracownik[] pracownicy = {\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\")\n };\n\n for(Pracownik pracownik: pracownicy){\n mapa.put(pracownik.getID(),pracownik);\n }\n System.out.println(mapa);\n\n mapa.remove(3);\n\n\n mapa.put(4,new Pracownik(\"Asia\"));\n mapa.put(3,new Pracownik(\"Patryk\"));\n\n\n\n mapa.entrySet();\n System.out.println(mapa);\n for(Map.Entry<Integer,Pracownik> wpis: mapa.entrySet() ){\n // System.out.println(\"ID \" + wpis.getKey()+ \" Imie: \" + wpis.getValue().getImie());\n\n\n\n\n System.out.println(\"ID Pracownika \"+ wpis.getKey());\n System.out.println(\"Imie \" + wpis.getValue().getImie());\n\n\n }\n System.out.println(\"---------------------------------------------------------------\");\n TreeMap<Integer,Pracownik> mapaPosotrowana = new TreeMap<Integer, Pracownik>(mapa);\n\n Map<Integer,Pracownik> subMapa = mapaPosotrowana.subMap(0,4);\n\n for(Map.Entry<Integer,Pracownik> wpis: subMapa.entrySet() ){\n // System.out.println(\"ID \" + wpis.getKey()+ \" Imie: \" + wpis.getValue().getImie());\n\n\n\n if(subMapa.isEmpty()){\n System.out.println(\"PUSTO\");\n }else{\n System.out.println(\"ID Pracownika \"+ wpis.getKey());\n System.out.println(\"Imie \" + wpis.getValue().getImie());\n }\n\n }\n\n Map<Date, Event> exampleMap;\n\n\n\n\n\n\n\n\n\n }", "public static void main(String[] args) {\n\t\tHashMap<String, String> hm = new HashMap<String, String>();\n\t\thm.put(\"A1\", \"Distributed Software Systems\");\n\t\thm.put(\"A2\", \"Distributed Software Systems\");\n\t\t\n\t\tHashMapImplementation.hm.put(\"A1\", \"Distributed Software Systems\");\n\t\thm.put(\"A3\", \"Distributed Software Systems\");\n\t\t\n\t\tSystem.out.println(hm.hashCode());\n\t\tSystem.out.println(hm.entrySet());\n\n\t\t\n// Different ways of Iterating through a hashmap\t\t\n\t\tIterator it = hm.entrySet().iterator();\t\t// EntrySet \n\t\t\n\t\n\t\tfor(;it.hasNext();){\n\t\t\tMap.Entry<String, String> current = (Map.Entry<String, String>)it.next();\n\t\t\tSystem.out.println(current);\n\t\t}\n\t\t\n\t\tfor(Map.Entry<String, String> entry : hm.entrySet()){\n\t\t\tString key = entry.getKey();\n\t\t\tSystem.out.println(key);\n\t\t\tString value = entry.getValue();\n\t\t\tSystem.out.println(value);\n\t\t}\n\t\t\n\t\tIterator it1 = hm.keySet().iterator(); \t// Key set\n\t\t\n\t\tfor(;it1.hasNext();){\n\t\t\tString current = (String)it1.next();\n\t\t\tSystem.out.println(current);\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\n\t LinkedHashMap<Integer, String> hm = new LinkedHashMap<Integer, String>(); \n\t \n // Inserting the Elements \n hm.put(3, \"Geeks\"); \n hm.put(2, \"For\"); \n hm.put(1, \"Geeks\"); \n \n for (Map.Entry<Integer, String> mapElement : hm.entrySet()) { \n \n Integer key = mapElement.getKey(); \n \n // Finding the value \n String value = mapElement.getValue(); \n \n // print the key : value pair \n System.out.println(key + \" : \" + value); \n\t}\n\n}", "private static void fixPopulation() {\r\n \t//get a copy of the population hash map\r\n \tHashMap<String, ArrayList<Critter>> copy = new HashMap<String, ArrayList<Critter>>(population);\r\n \tIterator<String> populationIterator = copy.keySet().iterator();\r\n \twhile (populationIterator.hasNext()) { \r\n String pos = populationIterator.next();\r\n ArrayList<Critter> critterList = copy.get(pos);\r\n //clear the key if there is no more critters in that space\r\n if(critterList.size() == 0 || critterList == null) {\r\n \tpopulation.remove(pos);\r\n }\r\n \t}\r\n }", "public static void main(String[] args) {\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"a\", \"A\");\r\n map.put(\"b\", \"B\");\r\n map.put(\"c\", \"C\");\r\n \r\n \r\n int h = (new TestMap()).hashCode();\r\n \r\n String a = map.get(\"a\");\r\n \r\n \r\n \r\n \r\n for (String o : map.keySet()){\r\n \tSystem.out.println(o);\r\n \tSystem.out.println(map.get(o));\r\n \t\r\n }\r\n \r\n Map<String, String> map2 = new HashMap<String, String>();\r\n map2.putAll(map);\r\n \r\n for (Map.Entry<String, String> o : map2.entrySet()){\r\n \tSystem.out.println(o.getKey());\r\n \tSystem.out.println(o.getValue());\r\n }\r\n \r\n System.out.println(map2.containsValue(\"A\")); \r\n System.out.println(map2.equals(map)); \r\n\r\n\t}", "public void printHash(String valu){\r\n /*\r\n Put A for Arrangers\r\n V for Vocalists\r\n C for Circles\r\n */\r\n String type=\"\";\r\n Map <Integer,String>TempMap=new HashMap();\r\n switch(valu){\r\n case \"A\":\r\n type=\"Arranger's\";\r\n TempMap.putAll(ArrangersMap);\r\n break;\r\n case \"V\":\r\n type=\"Vocalists's\";\r\n TempMap.putAll(VocalistsMap);\r\n break;\r\n case \"C\":\r\n type=\"Circle's\";\r\n TempMap.putAll(CirclesMap);\r\n break; \r\n }\r\n int counter=0;\r\n List<String> values=new ArrayList<>();\r\n for(int id:TempMap.keySet()){\r\n values.add(TempMap.get(id));\r\n }\r\n TempMap.clear();\r\n Collections.sort(values,Collator.getInstance());\r\n for(String val: values){\r\n val=val.trim();\r\n TempMap.put(counter, val.trim());\r\n //System.out.println(val);\r\n counter++;\r\n }\r\n for(int id:TempMap.keySet()){\r\n System.out.println(\"The \" + type+ \" name is: \"+TempMap.get(id)+ \" The id is:\"+id);\r\n }\r\n }", "public static void main(String[] args) {\n\t\tHashMap<Price,String> hm = new HashMap<Price,String>();\n\t\tPrice p1 = new Price(100,\"mango\");\n\t\tPrice p2 = new Price(200,\"apple\");\n\t\tPrice p3 = new Price(500,\"custard\");\n\t\tPrice p4 = new Price(700,\"grapes\");\n\t\thm.put(p1, \"mango\"); // key cannot accept duplicate keys so inserting price as a key\n\t\thm.put(p2, \"apple\");\n\t\thm.put(p3, \"custard\");\n\t\thm.put(p4, \"grapes\");\n\t\tPrice p5 = new Price(200,\"apple\");\n\t\thm.put(p5, \"apple\");\n\t\tSet set1 = hm.keySet();\n\t\tSystem.out.println(set1);\n\t\tCollection c = hm.values();\n\t\t\n\t\tfor(Map.Entry<Price, String> map : hm.entrySet()){\n\t\t\tPrice key =map.getKey();\n\t\t\tString value = map.getValue();\n\t\t\tSystem.out.println(key+\" \"+value);\n\t\t}\n\t}", "public static void main(String[] args)\r\n\t{\n\t\tMap<String,String> map = new Hashtable<>(); // synchronized, slower\r\n\t\t\r\n\t\tmap.put(\"myName\", \"Bachhan\"); /* we can repeat value but we can't repeat key */\r\n\t\tmap.put(\"actor\", \"Akshay\");\r\n\t\tmap.put(\"ceo\", \"Pichai\");\r\n\t\tmap.put(\"actor\", \"Bachhan\");\r\n\t\t\r\n\t\t// store the keySet() value in Set\r\n\t\tSet<String> keys = map.keySet();\r\n\t\tfor(String key: keys){\r\n\t\t\r\n\t\tSystem.out.println(key+ \" \" +map.get(key));\r\n\t\t}\r\n\t}", "public static void main(String[] args)\n\t{\n\t\t\n\t\tHashMap<String, Integer> map=new HashMap<String, Integer>(); // creating hashmap\n\t\t\n\t\tmap.put(\"Vishal\",12276); // adding object\n\t\tmap.put(\"Rashmi\",12277);\n\t\tmap.put(\"Shubhangi\",12278);\n\t\tmap.put(null,12279); // allowed null key so give value\n\t\t\n\t//\tSystem.out.println(map.get(\"Rashmi\")); \n\t//\tSystem.out.println(map.get(null)); \n\t\t\n\t\tSet<String> set =map.keySet(); // fetching all the value of key\n\t\t\n\t\tfor(String s:set)\n\t\t{\n\t\t\tSystem.out.println(map.get(s)); // iterating key..\n\t\t}\n\t\t\n\t\tSystem.out.println(\"--------------------\");\n\t\t\n\t\tHashtable<String, String> map2 = new Hashtable<String, String>();\n\t\t\n\t\tmap2.put(\"Firstname\", \"Vishal\");\n\t\tmap2.put(\"Lastname\",\"Pandey\");\n\t\t//map2.put(null,\"test\"); // will not allowed null key so give null pointer exception error.\n\t\t\n\t\tSystem.out.println(map2.get(null));\n\t\t\n\n\t}", "public static void printHashMapIS(Map<Integer, String> map) throws IOException{\n\t\tPrintWriter writer = new PrintWriter(\"C:/Users/Naveen/Desktop/TestRuns/LastRun/finalCatalogHash\");\n\t\tfor (Entry<Integer, String> entry : map.entrySet())\n\t {\t \t\t\n\t \t\twriter.println(entry.getKey()+\":\"+entry.getValue());\n\t }\n\t writer.close();\n\t}", "private static void simpleMapExamples() {\n\t\tSystem.out.println(\"simpleMapExamples Start ----\");\n\t\t\n\t\tMap<String,Integer> mapEx1 = new HashMap<>();\n\t\t\n\t\tmapEx1.put(\"Amit\", 35);\n\t\tmapEx1.put(\"Gunjan\", 45);\n\t\tmapEx1.put(\"Vidut\", 55);\n\t\t\n\t\t//Loop over Map\n\t\tfor(Entry<String, Integer> entry : mapEx1.entrySet()) {\n\t\t\t\n\t\t\tString key = entry.getKey();\n\t\t\tInteger val = entry.getValue();\n\t\t\t\n\t\t\tSystem.out.println(\"KEY : \" + key + \" : VAL : \" + val);\n\t\t\t\n\t\t}\n\t\t\n\t\t//API to get collection of values from the map\n\t\tCollection<Integer> values = mapEx1.values();\n\t\t\n\t\t//Now browse over collection values using java8 lambda\n\t\tSystem.out.println(\"Printing values ...\");\n\t\tvalues.forEach((val) -> System.out.println(val));\n\t\t\n\t\t//Replace values in the map using \n\t\t//Here we are replacing each key's value to 46\n\t\tmapEx1.replaceAll(( s, i) -> {\n\t\t\treturn 46;\n\t\t});\n\t\t\n\t\tSystem.out.println(\"Printing after firing replaceAll...\");\n\t\t//Now print the key/value pair of map using lambda\n\t\tmapEx1.forEach((k,v) -> {\n\t\t\tSystem.out.println(\"Key : \" + k + \" Val \" + v);\n\t\t});\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"simpleMapExamples End ----\");\n\t}", "public static void main(String[] args) {\n\t\tMap<String,Integer>grocery=new HashMap<>();\n\t\tgrocery.put(\"milk\",1);\n\t\tgrocery.put(\"cucumber\",3);\n\t\tgrocery.put(\"banana\",12);\n\t\tgrocery.put(\"cheese\",2);\n\t\t\n\t\tSystem.out.println(grocery);\n//create a map of items to buy, we want to save order\n\t\tMap<String,Integer>household=new LinkedHashMap<>();\n\t\thousehold.put(\"lysol\",2);\n\t\thousehold.put(\"sanitizer\",4);\n\t\thousehold.put(\"papertowel\",2);\n\t\thousehold.put(\"facemask\",20);\n\t\tSystem.out.println(household);\n\t\t\n\t\t//create a map in which we store all previous items in ascending order\n\t\tMap<String,Integer>shopping=new TreeMap<>();\n\t\tshopping.putAll(household);\n\t\tSystem.out.println(shopping);\n\t\t\n\t\t//get all keys using loop\n\t\tfor(String key:shopping.keySet()) {\n\t\t\tSystem.out.println(\"Key: \"+key);\t\n\t\t}\n\t\t//get all keys using iterator\n\t\tIterator<String> it=shopping.keySet().iterator();\n\t\twhile(it.hasNext()) {\n\t\tSystem.out.println(\"Key=\"+it.next());\n\t\t\n\t}\n\t\t//get all values using loop\n\t\tfor(int val:shopping.values()) {\n\t\t\tSystem.out.println(\"Values: \"+val);\n\t\t}\n\t\t//get all values using iterator\n\t\tIterator<Integer>iterator=shopping.values().iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(\"Key=\"+iterator.next());\n\t\t\t\t\n}\n}", "public static void sortbyValue()\n {\n //1. Create a list from elements of HashMap\n List<Map.Entry<Integer,String>> list = new LinkedList<>(map.entrySet());\n\n //2. Sort the list -- >Sory via Value\n //Collections.sort(list, (Map.Entry<Integer,String> o1,Map.Entry<Integer,String> o2) -> (o1.getKey().compareTo(o2.getKey())));\n\n //2. Sort the list -- >Sory via Key\n Collections.sort(list, (Map.Entry<Integer,String> o1,Map.Entry<Integer,String> o2) -> (o1.getValue().compareTo(o2.getValue())));\n\n \n //3. Put data from sorted list to map\n Map<Integer,String> temp = new LinkedHashMap<Integer,String>();\n\n for(Map.Entry<Integer,String> entry : list)\n {\n temp.put(entry.getKey(), entry.getValue());\n }\n\n //4. Printing the data from map\n for(Map.Entry<Integer,String> entry : temp.entrySet())\n {\n System.out.println(entry.getKey()+\" \"+entry.getValue());\n }\n }", "public static void printHashMapSS(Map<String, String> map) throws IOException{\n\t\tPrintWriter writer = new PrintWriter(\"C:/Users/Naveen/Desktop/TestRuns/LastRun/documentHash\");\n\t\tfor (Entry<String, String> entry : map.entrySet())\n\t {\t \t\t\n\t \t\twriter.println(entry.getKey()+\":\"+entry.getValue());\n\t }\n\t writer.close();\n\t}", "public static void main(String[] args) {\n\t\tLinkedHashMap<Integer,String> hs=new LinkedHashMap<Integer,String>();\n\t\ths.put(1,\"chennai\");\n\t\ths.put(2,\"pondy\");\n\t\ths.put(3, \"kerla\");\n\t\ths.put(1,\"pondy\");\n\t\ths.put(4,\"pondy\");\n\t\ths.put(4,null);\n\t\ths.put(null, null);\n\t\ths.put(null, null);\n\t\t\n\t\t\n\t\tfor(Map.Entry<Integer,String> hm:hs.entrySet())\n\t\t{\n\t\t\tSystem.out.println(hm.getKey() + \" \"+hm.getValue());\n\t\t\t}\n\n\t}", "public static Map readingFilesMap(String file) {\n\n Stream<String> lines = null;\n try {\n lines = Files.lines(Paths.get(file));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n /* lines = lines.filter(line -> line.trim().length() > 0)\n .map(line -> line.substring(line.lastIndexOf(\" \")));\n*/\n Map map = lines.collect(Collectors.toMap(\n line -> line.substring(line.lastIndexOf(\" \")),\n line -> line.substring(0, line.lastIndexOf(\" \"))\n ));//.forEach(System.out::print);\n //lines.forEach(Collections.list());\n\n map.forEach((k, v) -> {\n System.out.println(\"key:\"+k+ \" Value=\"+v);\n } );\n return map;\n\n //set.forEach(System.out::print);\n\n\n }", "public static void main(String[] args) {\n String[] names= {\"Mehmet\", \"Asha\", \"Amina\", \"Omar\", \"Siyar\", \"Danny\"};\n \n Map<Integer, String> nameMap=new LinkedHashMap<>();\n \n int key=1;\n \n for(String name:names) {\n nameMap.put(key, name);\n key++;\n }\n System.out.println(nameMap);\n \n for(Map.Entry<Integer,String>entry:nameMap.entrySet()) {\n \t\tString mapValue=entry.getKey()+\" == \"+entry.getValue();\n \t\tSystem.out.println(mapValue);\n \t\t\n \t\t\n \t}\n \n Iterator<Entry<Integer, String>>it=nameMap.entrySet().iterator();\n\t\twhile(it.hasNext()) {\n\t\t\tMap.Entry entry=it.next();\n\t\t\tString valueFromMap=entry.getKey()+\" : \"+entry.getValue();\n\t\t\tSystem.out.println(valueFromMap);\n\t\t}\n\t\t\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tArrayList<String> lista = new ArrayList<>();\n\t\t\n\t\tString a = \"Juan\";\n\t\tString b = \"ObiJuan\";\n\t\tString c = \"Paco\";\n\t\t\n\t\tlista.add(a);\n\t\tlista.add(b);\n\t\tlista.add(c);\n\t\t\n\t\tmap.put(\"primero\", a);\n\t\tmap.put(\"segundo\", b);\n\t\tmap.put(\"tercero\", c);\n\t\t\n\t\tSystem.out.println(lista.get(1));\n\t\tSystem.out.println(lista.get(lista.indexOf(\"ObiJuan\")));\n\t\t\n\t\tSystem.out.println(\"----------------\");\n\t\t\n\t\tSystem.out.println(map.get(\"primero\"));\n\t\t\n\t\tlista.remove(lista.indexOf(\"Paco\"));\n\t\t\n\t\t\n\t\tfor (String palabra : lista) {\n\t\t\tSystem.out.println(palabra);\n\t\t}\n\t\tSystem.out.println(\"----------------\");\n\t\tfor (String key : map.keySet()) {\n\t\t\tSystem.out.println(\"Clave: \" + key);\n\t\t\tSystem.out.println(\"Valor: \" + map.get(key));\n\t\t\tSystem.out.println(\"----------------\");\n\t\t}\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"----------------\");\n\t\t\n\t\tlista.forEach(elemento -> System.out.println(elemento));\n\t\t\n\t\tSystem.out.println(\"----------------\");\n\t\t\n//\t\tmap.forEach(clave, valor -> (\n//\t\t\tSystem.out.println(\"Clave con lambda: \" + clave);\n//\t\t\tSystem.out.println(\"Valor con lambda: \" + valor);\n//\t\t);\n//\t\t\n\t}", "private HashMap<Object, Object> HashMapTransform(List<String> lines) {\n\n HashMap<Object, Object> keypair = new HashMap<>();\n\n for (String line : lines) {\n if (line.contains(pairDelimiter)) {\n String[] intermediate = line.split(pairDelimiter, maxSplitSize);\n keypair.put(intermediate[0], intermediate[1]);\n }\n }\n return keypair;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tMap<Integer, Integer> map =new HashMap<>();\r\n\t\tmap.put(1, 8);\r\n\t\tmap.put(2, 2);\r\n\t\tmap.put(3, 9);\r\n\t\tmap.put(4, 2);\r\n\t\t\r\n\t\t\r\n\t\tSet<Entry<Integer, Integer>> ss = new HashSet<>(map.entrySet());\r\n\t\tList<Entry<Integer, Integer>> ll = new ArrayList<>(map.entrySet());\r\n\t\t\r\n\t\tfor(Map.Entry<Integer, Integer> map1: ll)\r\n\t\t{\r\n\t\t\tSystem.out.println(map1.getKey()+\" :: \"+map1.getValue());\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(ll,new SortByValue());\r\n\t\tSystem.out.println(\"-------------------------------\");\r\n\t\t\r\n\t\tfor(Map.Entry<Integer, Integer> map1: ll)\r\n\t\t{\r\n\t\t\tSystem.out.println(map1.getKey()+\" :: \"+map1.getValue());\r\n\t\t}\r\n\r\n\t}", "public void test5() {\n\t\tSet<String> keySet = member.keySet();\n\t\tfor(String key : keySet) {\n\t\t\tif(key ==\"leess\") {\n\t\t\t\tmember.remove(key);\n\t\t\t}\n\t\t}\n\t}", "public static void printHashMapSI(Map<String, Integer> map) throws IOException{\n\t\tPrintWriter writer = new PrintWriter(\"C:/Users/Naveen/Desktop/TestRuns/LastRun/allTermHash\");\n\t\tfor (Entry<String, Integer> entry : map.entrySet())\n\t {\t \t\t\n\t \t\twriter.println(entry.getKey()+\":\"+entry.getValue());\n\t }\n\t writer.close();\n\t}", "public static void main(String[] args) {\n HashMap<String, String> hashColours = new HashMap<>();\n hashColours.put(\"#FF0000\", \"red\");\n hashColours.put(\"#FFD700\",\"gold\");\n hashColours.put(\"#FFFF00\",\"yellow\");\n hashColours.put(\"#008080\",\"teal\");\n\n\n System.out.println(\"The hashmaps looks something like this: \" + hashColours.toString());\n\n\n //Update the above program to count the number of key-value mappings in a map\n System.out.println(\"The number of key-value pairs is: \" + hashColours.size());\n\n\n //Update the above program to get the value of a specified key in a map\n System.out.println(\"My favourite color has the hex value of #008080 and its name is: \" +hashColours.get(\"#008080\"));\n\n\n //Update the above program to remove a specific mappings from a map\n hashColours.remove(\"#FF0000\");\n System.out.println(\"After removing my least favourite colour the hashMap looks something like: \" + hashColours.toString());\n\n\n //Update the above program to view of the keys contained in this map\n Set keys = hashColours.keySet();\n System.out.println(\"The remaining keys are: \" + keys);\n }", "public static void test2(Map<Object,Object> map) \n\t{\n\t\tprint(map.getClass().getSimpleName()+\"~~~~~~~~~~~~\");\n\t\tmap.putAll(new CountingMapData(25));\n\t\t// Map has 'Set' behavior for keys:\n\t\tmap.putAll(new CountingMapData(25));\n\t\tprintKeys2(map);\n\t\t// Producing a collection of the values:\n\t\tprintnb(\"Values: \");\n\t\tprint(map.values());\n\t\tprint(map);\n\t\tprint(\"map.containsKey(11): \" + map.containsKey(11));\n\t\tprint(\"map.get(11): \" + map.get(11));\n\t\tprint(\"map.containsValue(\\\"F0\\\"): \" + map.containsValue(\"F0\"));\n\t\tObject key = map.keySet().iterator().next();\n\t\tprint(\"First key in map: \" + key);\n\t\tmap.remove(key);\n\t\tprintKeys2(map);\n\t\tmap.clear();\n\t\tprint(\"map.isEmpty(): \" + map.isEmpty());\n\t\tmap.putAll(new CountingMapData(25));\n\t\t// Operations on the Set change the Map:\n\t\tmap.keySet().removeAll(map.keySet());\n\t\tprint(\"map.isEmpty(): \" + map.isEmpty());\n\t}", "public static void main(String[] args) {\n\n Map<Integer, String> map = new HashMap<>();\n\n for (int i = 0; i < 10; i++) {\n map.putIfAbsent(i, \"val\" + i);\n }\n\n map.forEach((id, val) -> System.out.println(id + \": \" + val));\n\n// This example shows how to compute code on the map by utilizing functions:\n\n map.computeIfPresent(3, (num, val) -> val + num);\n map.get(3); // val33\n\n map.computeIfPresent(9, (num, val) -> null);\n map.containsKey(9); // false\n\n map.computeIfAbsent(23, num -> \"val\" + num);\n map.containsKey(23); // true\n\n map.computeIfAbsent(3, num -> \"bam\");\n map.get(3); // val33\n\n\n// Next, we learn how to remove entries for a given key, only if it's currently mapped to a given value:\n\n map.remove(3, \"val3\");\n map.get(3); // val33\n\n map.remove(3, \"val33\");\n map.get(3); // null\n\n\n// Another helpful method:\n\n map.getOrDefault(42, \"not found\"); // not found\n\n\n// Merging entries of a map is quite easy:\n\n map.merge(9, \"val9\", (value, newValue) -> value.concat(newValue));\n map.get(9); // val9\n\n map.merge(9, \"concat\", (value, newValue) -> value.concat(newValue));\n map.get(9); // val9concat\n// Merge either put the key/value into the map if no entry for the key exists, or the merging function will be called to change the existing value.\n\n\n }", "public static void main(String[] args) {\n\n\t\tint[] a = {1,2,3,8,8,9,6,4};\n\t String s = \"hello2java\"; \n\t\tHashMap<Integer,Integer> countMap1 = new HashMap<Integer,Integer>();\n\t\tHashMap<Character,Integer> countMap2 = new HashMap<Character,Integer>();\n \n\t\tchar[] ch = s.toCharArray();\n\t\t\n\t\t\tfor(int i=0;i<a.length;i++){\n\t\t\t\tif(countMap1.containsKey(a[i])){\n\t\t\t\t\tcountMap1.put(a[i], countMap1.get(a[i])+1);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcountMap1.put(a[i],1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t//}\n\t\tSystem.out.println(countMap1);\n\t\t\n\t\tfor(int i=0;i<ch.length;i++){\n\t\t\tif(countMap2.containsKey(ch[i])){\n\t\t\t\tcountMap2.put(ch[i], countMap2.get(ch[i])+1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcountMap2.put(ch[i],1);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(countMap2);\n\t\t\n\t\tSet<Character> ket = countMap2.keySet();\n for(Character c:ket){\n \tif(countMap2.get(c)>1){\n \t\tSystem.out.println(c+\"-->\"+countMap2.get(c));\n \t}\n }\n\t}", "@org.junit.jupiter.api.Test\n void drop2ColisionesJuntos() {\n String key = \"0\";\n String value =\"David\";\n String key2 = \"11\";\n String value2 =\"ferrero\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.put(key2,value2);\n hashTable.put(\"22\",\"hola\");\n\n hashTable.drop(\"0\");\n hashTable.drop(\"11\");\n\n String esperado =\"bucket[0] = [22, hola]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n\n }", "public static void main(String args[]) {\n HashSet<String> set = new HashSet<String>();\n\n // Use add() method to add elements into the Set\n set.add(\"Welcome\");\n set.add(\"To\");\n set.add(\"Geeks\");\n set.add(\"4\");\n set.add(\"Geeks\");\n\n\n // Displaying the HashSet\n System.out.println(\"HashSet: \" + set);\n\n // Creating an iterator\n Iterator value = set.iterator();\n\n while (value.hasNext()) {\n System.out.println(\"Next value is: \" + value.next());\n }\n\n\n // Displaying the values after iterating through the set\n System.out.println(\"The iterator values are: \");\n while (value.hasNext()) {\n\n //Remove element during iteration\n if (value.next().equals(\"4\")) {\n value.remove();\n System.out.println(\"After element removal\" + set);\n }\n\n\n\n }\n\n }", "private static void printMap(HashMap<String, Integer> hashMap) {\n\t\tfor (String key : hashMap.keySet()) {\r\n\t\t System.out.println(\"Key: \" + key + \" Value: \" + hashMap.get(key));\r\n }\r\n System.out.println(\"Total features in Hashmap: \"+ hashMap.size());\r\n\t}", "public static void main(String[] args) {\n\t\tLinkedHashMap<String, Student> hm = new LinkedHashMap<>();\n\t\thm.put(\"3\", new Student(\"Freshman\", \"lee\"));\n\t\thm.put(\"1\", new Student(\"Sophomore\", \"Kim\"));\n\t\thm.put(\"2\", new Student(\"Junior\", \"Park\"));\n\t\thm.put(\"2\", new Student(\"Senior\", \"Choi\"));\t// key 값이 같으면 overwriting\n\t\tSystem.out.println(hm.size());\n\t\tSystem.out.println(hm.isEmpty());\n\t\tSystem.out.println(hm.containsKey(\"1\"));\n\t\tSystem.out.println(hm); // hashcode\n\t\t\n\t\thm.remove(\"2\");\n\t\tSystem.out.println(hm);\n\t\thm.put(\"4\", new Student(\"Senior\", \"Choi\"));\n\t\tSystem.out.println(hm);\n\t\tSystem.out.println(hm.get(\"3\"));// value return, 없으면 null return\n\t\t\n\t\tfor(String key : hm.keySet()) {\n\t\t\tSystem.out.println(key + \", \" + hm.get(key));\n\t\t}\n\t\tfor(Map.Entry<String, Student> s : hm.entrySet()) {\n\t\t\tString key = s.getKey();\n\t\t\tStudent value = s.getValue();\n\t\t\tSystem.out.println(\"Key = \" + key + \", value = \" + value);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tHashMap<String, String> hm = new HashMap<String, String>(); \n\t\thm.put(\"first\", \"Java\"); \n\t\thm.put(\"second\", \"By\"); \n\t\thm.put(\"third\", \"Kiran\"); \n\t\tSystem.out.println(hm); \n\t\tSet<String> keys = hm.keySet(); \n\t\t \n\t\t for (String key : keys) { \n\t\t\t System.out.println(\"Value of \" + key + \" is: \" + hm.get(key)); \n\t\t }\n\t}", "public static void main(String[] args) {\n\t\tArrayList<String> givenArray = new ArrayList<String>();\n\t\tArrayList<String> listOfNamesStartingWithA = new ArrayList<String>();\n\t\tArrayList<String> listOfNamesStartingWithG = new ArrayList<String>();\n\t\tgivenArray.add(\"apple\");\n\t\tgivenArray.add(\"appleinc\");\n\t\tgivenArray.add(\"applemac\");\n\t\tgivenArray.add(\"google\");\n\t\t\n\t\tHashMap<String, ArrayList> map = new HashMap<String, ArrayList>();\n\t\tmap.clone();\n\t\tIterator<String> itr = givenArray.iterator();\n\t\t\n\t\twhile(itr.hasNext()) {\n\t\t\tString arrayListOb = itr.next();\n\n\t\t\tString key =arrayListOb.substring(0, 1);\n\t\t\tif(key.startsWith(\"a\")) {\n\t\t\t\tlistOfNamesStartingWithA.add(arrayListOb);\t\n\t\t\t\tmap.put(key, listOfNamesStartingWithA);\t\n\t\t\t}\n\t\t\tif(key.startsWith(\"g\")) {\n\t\t\t\tlistOfNamesStartingWithG.add(arrayListOb);\n\t\t\t\tmap.put(key, listOfNamesStartingWithG);\n\t\t\t}\t\t\t\t\n\t\t\tSystem.out.println(key);\n\t\t\tSystem.out.println(map.get(key));\n\t\t}\n\t\tSystem.out.println(map.size());\n\t\t//System.out.println(map.get(\"g\"));\n\t\t//System.out.println(map.get(\"a\"));\n\t\t/*for(Map.Entry<String,ArrayList> entry: map.entrySet())\n\t\t{\n\t\t\tSystem.out.println(map.get(\"a\"));\n\t\t}*/\n\t}", "MapComp<K, V> removeAllPairs(BiPredicate<K, V> p);", "public static HashMap<String, String> reverseKeysVals(HashMap<String, String> initialMap) {\n \n HashMap<String, String> finalMap = new HashMap();\n for (String key : initialMap.keySet()) {\n finalMap.put(initialMap.get(key), key);\n }\n return finalMap;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\t Hashtable<String, String> hm = new Hashtable<String, String>();\r\n\t //add key-value pair to Hashtable\r\n\t hm.put(\"first\", \"FIRST INSERTED\");\r\n\t hm.put(\"second\", \"SECOND INSERTED\");\r\n\t hm.put(\"third\",\"THIRD INSERTED\");\r\n\t // hm.put(null,null); Throw run time error - NullPointer Exception\r\n\t Iterator it = (Iterator) hm.keys();\r\n\t System.out.println(\"My Hashtable content:\");\r\n\t System.out.println(hm); // Display the contents by key wise reverse order\r\n\t //Checking Keys\r\n\t if(hm.containsKey(\"first\")){\r\n\t System.out.println(\"The Hashtable contains key first\");\r\n\t } else {\r\n\t System.out.println(\"The Hashtable does not contains key first\");\r\n\t }\r\n\t // Checking Value \r\n\t if(hm.containsValue(\"SECOND INSERTED\")){\r\n\t System.out.println(\"The Hashtable contains value SECOND INSERTED\");\r\n\t } else {\r\n\t System.out.println(\"The Hashtable does not contains value SECOND INSERTED\");\r\n\t }\r\n\t //Clearing Items\r\n\t \r\n\t System.out.println(\"Clearing Hashtable:\");\r\n\t hm.clear();\r\n\t System.out.println(\"Content After clear:\");\r\n\t System.out.println(hm);}", "static void testRemove1(BTMap<Integer, Integer> m) {\n var keys = Arrays.asList(3, 8, 1, 0);\n\n System.out.println(keys);\n\n for (int i = 0; i < keys.size(); i++) {\n m.insert(keys.get(i), i);\n }\n\n System.out.println(m);\n\n m.remove(0);\n\n System.out.println(m);\n \n m.remove(1);\n\n System.out.println(m);\n }", "public static void main(String[] args) {\n\t\t\n\t\tHashMap<String,String> countries = new HashMap<String,String>();\n\t\t\n\t\t//add a key and value\n\t\tcountries.put(\"USA\",\"Washington DC\");\n\t\tcountries.put(\"India\",\"New Delhi\");\n\t\tcountries.put(\"Russia\",\"Moscow\");\n\t\tcountries.put(\"China\",\"Beijing\");\n\t\t\n\t\t//System.out.println(countries);\n\t\t//countries.remove(\"USA\");\n\t\t//System.out.println(countries.get(\"Russia\"));\n\t\t//countries.clear();\n\t\t//System.out.println(countries.size());\n\t\t//countries.replace(\"USA\", \"Detroit\");\n\t\t//System.out.print(countries.containsKey(\"England\"));\n\t\t//System.out.print(countries.containsValue(\"Beijing\"));\n\t\t\n\t\t\n\t\t for(String i : countries.keySet()) { \n\t\t\t System.out.print(i+\"\\t\"+\"= \");\n\t\t \t System.out.println(countries.get(i));\n\t\t \t }\n\t\t \n\t\t\n\t}", "@org.junit.jupiter.api.Test\n void drop2ColisionesSeparados() {\n String key = \"0\";\n String value =\"David\";\n String key2 = \"11\";\n String value2 =\"ferrero\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.put(key2,value2);\n hashTable.put(\"22\",\"hola\");\n\n hashTable.drop(\"0\");\n hashTable.drop(\"22\");\n\n String esperado =\"bucket[0] = [11, ferrero]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n\n }", "static void testRemove3(BTMap<Integer, Integer> m) {\n var keys = Arrays.asList(3, 8, 1, 0, -1, 10, 5);\n\n System.out.println(keys);\n\n for (int i = 0; i < keys.size(); i++) {\n m.insert(keys.get(i), i);\n }\n\n System.out.println(m);\n\n m.remove(0);\n\n System.out.println(m);\n\n m.remove(8);\n\n System.out.println(m);\n\n m.remove(3);\n System.out.println(m);\n }", "public static void main(String[] args) {\n\t\tMap map = new Map();\n\t\tHashMap<Integer,Integer> hashmap = new HashMap<>();\n\t\tmap.addValue(11);\n\t\tmap.addValue(12);\n\t\tmap.addValue(13);\n\t\tmap.updateValue(2, 100);\n\t\tmap.removeData(1);\n\t\thashmap = map.getAllData();\n\t\t\n\t\tSystem.out.println(hashmap);\n\t}", "private static void treeMapMap(Map<Integer, String> treeMapMap) {\n System.out.println(\"----------------------------- TreeMap ----------------------------\");\n System.out.println(\"To work with \\\"TreeMap\\\" we need to add \\\"Equals and HashCode\\\" and \\\"Comparable\\\" to the Person Class!\");\n System.out.println(\"\\\"TreeMap\\\" is ordered by key\");\n treeMapMap.put(7, \"Cristiano Ronaldo\");\n treeMapMap.put(10, \"Leo Messi\");\n treeMapMap.put(8, \"Avi Nimni\");\n treeMapMap.put(24, \"Kobi Brian\");\n PrintUtils.printMap(treeMapMap);\n System.out.println();\n // STEP 2 - set p3 name to \"Moshe\"\n System.out.println(\"Set the name of player number 8 to be \\\"Moshe\\\":\");\n treeMapMap.replace(8, \"Avi Nimni\", \"Moshe\");\n // if you use \"put\" instead of \"replace\" it will work to!\n PrintUtils.printMap(treeMapMap);\n System.out.println();\n // STEP 3 - add p5 to the end of the list using using ADD method\n System.out.println(\"Add p5 to the end of the list using ADD method:\");\n System.out.println(\"Not an option!\");\n System.out.println();\n // STEP 4 - add p6 to position 3 the end of the list using ADD method\n System.out.println(\"Add p6 to position 3 the end of the list using ADD method:\");\n System.out.println(\"Not an option, you can wright over it!\");\n System.out.println();\n // STEP 5 - remove p2 from the list\n System.out.println(\"Remove p2 from the list and printing the list using a static method in a utility class:\");\n treeMapMap.remove(10, \"Leo Messi\");\n PrintUtils.printMap(treeMapMap);\n System.out.println();\n }", "public static void getMapDetails(){\n\t\tmap=new HashMap<String,String>();\r\n\t map.put(getProjName(), getDevID());\r\n\t //System.out.println(\"\\n[TEST Teamwork]: \"+ map.size());\r\n\t \r\n\t // The HashMap is currently empty.\r\n\t\tif (map.isEmpty()) {\r\n\t\t System.out.println(\"It is empty\");\r\n\t\t \r\n\t\t System.out.println(\"Trying Again:\");\r\n\t\t map=new HashMap<String,String>();\r\n\t\t map.put(getProjName(), getDevID());\r\n\t\t \r\n\t\t System.out.println(map.isEmpty());\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t//retrieving values from map\r\n\t Set<String> keys= map.keySet();\r\n\t for(String key : keys){\r\n\t \t//System.out.println(key);\r\n\t System.out.println(key + \": \" + map.get(key));\r\n\t }\r\n\t \r\n\t //searching key on map\r\n\t //System.out.println(\"Map Value: \"+map.containsKey(toStringMap()));\r\n\t System.out.println(\"Map Value: \"+map.get(getProjName()));\r\n\t \r\n\t //searching value on map\r\n\t //System.out.println(\"Map Key: \"+map.containsValue(getDevID()));\r\n\t \r\n\t\t\t\t\t // Put keys into an ArrayList and sort it.\r\n\t\t\t\t\t\t//ArrayList<String> list = new ArrayList<String>();\r\n\t\t\t\t\t\t//list.addAll(keys);\r\n\t\t\t\t\t\t//Collections.sort(list);\r\n\t\t\t\t\r\n\t\t\t\t\t\t// Display sorted keys and their values.\r\n\t\t\t\t\t\t//for (String key : list) {\r\n\t\t\t\t\t\t// System.out.println(key + \": \" + map.get(key));\r\n\t\t\t\t\t\t//}\t\t\t \r\n\t}", "public static void hashMapEx() {\n\t\tString str = \"habiletechE\";\n\t\tstr = str.toLowerCase();\n\t\tchar[] ch = str.toCharArray();\n\t\tint size = ch.length;\n\n\t\tHashMap<Character, Integer> hmap = new HashMap<Character, Integer>();\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (!hmap.containsKey(ch[i]))\n\t\t\t\thmap.put(ch[i], 1);\n\t\t\telse {\n\t\t\t\tint val = hmap.get(ch[i]) + 1;\n\t\t\t\thmap.put(ch[i], val);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Duplicate Charaacters :\");\n\t\tfor (Map.Entry<Character, Integer> hm : hmap.entrySet()) {\n\t\t\tif (hm.getValue() > 1)\n\t\t\t\tSystem.out.println(hm.getKey() + \" \" + hm.getValue());\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tMap<String,Double> items = new HashMap<>();\r\n\t\t\r\n\t\titems.put(\"Toaster\",350.00);\t\t//inits elements into map [STRING == KEY; DOUBLE == VALUE]\r\n\t\titems.put(\"Dongle\", 5.99);\r\n\t\titems.put(\"Sham Wow\", 19.99);\r\n\t\titems.put(\"Flex Seal\",19.99);\r\n\t\t\r\n\t\tSet<String> setOKeys = items.keySet();\r\n\t\tint count = 0;\r\n\t\tfor(String key : items.keySet()){\r\n\t\t\tSystem.out.print(++count + \") \" + key + \": $\" /*+ items.get(key)USED IN NORMAL FORMAT; NEEDED TO UPDATE FOR 2 DECI POINTS see below*/);\r\n\t\t\tSystem.out.printf(\"%.2f\\n\", items.get(key));\t//printf; decimal format to help\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(items.containsKey(\"Sham Wow\"));\r\n\t\tSystem.out.println(items.containsValue(19.99));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t//ANIMAL BOOK HASH MAP EXAMPLE\r\n\t\tMap<String, Integer> ani = new HashMap<>();\r\n\t\tani.put(\"Toucan\", 40);\r\n\t\tani.put(\"Lizard\", 7);\t\t\t//Stored by Integer value\r\n\t\tani.put(\"Wallaby\", 18);\r\n\t\t\r\n\t\tSystem.out.println(ani.get(\"Lizard\"));\r\n\t\t\r\n\t\tani.remove(\"Toucan\");\r\n\t\t\r\n\t\tSystem.out.println(ani); //toString Method is in the collections class automatically\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t//TREE MAP\r\n\t\tSet<Character> letters = new TreeSet<>(); //LINKEDHASHSET will be unordered\r\n\t\tletters.add('b');\r\n\t\tletters.add('c');\r\n\t\tletters.add('a');\r\n\t\tletters.add('c');\t\t//duplicate REMOVED automatically\r\n\t\t\r\n\t\tSystem.out.println(letters);\r\n\t\t\r\n\t\tletters.remove('b');\r\n\t\tSystem.out.println(letters);\r\n\t\t\r\n\t\tSystem.out.println(letters.contains('f'));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tLinkedList<String> food = new LinkedList<>(); //can do list-linked list, linked list-linked list\r\n\t\t\r\n\t\tfood.add(\"Sauerkraut\");\r\n\t\tfood.add(\"Carrots\");\r\n\t\tfood.add(\"Mud\");\r\n\t\tfood.add(1, \"Margarine\"); //at indx 1; Margarine\r\n\t\t\r\n\t\tCollections.sort(food); //method in collections class which sorts\r\n\t\tfood.toString();\r\n\t\t//food.clear(); clears list\r\n\t\t\r\n\t\tString marg = food.get(3);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tQueue<String> cities = new PriorityQueue<>();\r\n\t\t\r\n\t\tcities.offer(\"Detroit\");\t\t//QUEUES 'OFFER'\r\n\t\tcities.offer(\"Los Angeles\");\r\n\t\tcities.offer(\"Vienna\");\r\n\t\tcities.offer(\"Windsor\");\r\n\t\t\r\n\t\tSystem.out.println(cities.peek()); //insertion order\r\n\t\tSystem.out.println(cities);\r\n\t\t\r\n\t\tStack<String> dishes = new Stack<>();\r\n\t\t\r\n\t\tdishes.add(\"Cereal bowl\");\r\n\t\tdishes.add(\"Lunch tray\");\r\n\t\tdishes.add(\"Pots and pans\");\r\n\t\tdishes.add(\"Dinner fork\");\r\n\t\t\r\n\t\tSystem.out.println(dishes.peek());\r\n\t\t\r\n\t\tdishes.pop();\r\n\t\tdishes.pop();\t\t//removing the oldest; fifo \r\n\t\t\r\n\t\tSystem.out.println(dishes);\r\n\t}", "@Test\n\tpublic void testHashMap() {\n\n\t\t/*\n\t\t * Creates an empty HashMap object with default initial capacity 16 and default\n\t\t * fill ratio \"0.75\".\n\t\t */\n\t\tHashMap hm = new HashMap();\n\t\thm.put(\"evyaan\", 700);\n\t\thm.put(\"varun\", 100);\n\t\thm.put(\"dolly\", 300);\n\t\thm.put(\"vaishu\", 400);\n\t\thm.put(\"vaishu\", 300);\n\t\thm.put(null, 500);\n\t\thm.put(null, 600);\n\t\t// System.out.println(hm);\n\n\t\tCollection values = hm.values();\n//\t\tSystem.out.println(values);\n\n\t\tSet entrySet = hm.entrySet();\n\t\t// System.out.println(entrySet);\n\n\t\tIterator iterator = entrySet.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry entry = (Map.Entry) iterator.next();\n\t\t\t// System.out.println(entry.getKey()+\":\"+entry.getValue());\n\t\t}\n\n\t}", "public static Map<String, String> m3185a(Map<String, String> map) {\n Map<String, String> hashMap = new HashMap();\n map = map.entrySet().iterator();\n while (map.hasNext()) {\n Entry entry = (Entry) map.next();\n Object obj = (String) entry.getKey();\n Object obj2 = (String) entry.getValue();\n if (obj.length() > 40) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"cd key length over:\");\n stringBuilder.append(obj);\n C0784a.m3253a(stringBuilder.toString());\n obj = obj.substring(0, 40);\n }\n if (obj2 != null && obj2.length() > 1024) {\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"cd value length over:\");\n stringBuilder.append(obj2);\n C0784a.m3253a(stringBuilder.toString());\n obj2 = obj2.substring(0, 1024);\n }\n hashMap.put(obj, obj2);\n }\n return hashMap;\n }", "public static void main(String[] args) {\n\t\tMap<String,String > cityCaptials = new HashMap<String,String>();\r\n\t\tcityCaptials.put(\"India\",\"Delhi\");\r\n\t\tcityCaptials.put(\"USA\",\"Washington\");\r\n\t\tcityCaptials.put(\"Aus\",\"Berra\");\r\n\t\tcityCaptials.put(\"Srilanka\",\"Columbo\");\r\n\t\tIterator<String> it = cityCaptials.keySet().iterator();\r\n\t\twhile(it.hasNext()) {\r\n\t\t\tSystem.out.println(cityCaptials.get(it.next()));\r\n\t\t\tcityCaptials.put(\"Sat\", \"Ragesh\");\r\n\t\t}\r\n\r\n\t}", "@Test\n public void mapRemove() {\n check(MAPREM);\n query(MAPSIZE.args(MAPREM.args(MAPENTRY.args(1, 2), 1)), 0);\n }", "@Override\n\tpublic void printFilteredMap() {\n\t\tthis.result.forEach((k, v )-> v.forEach((ke,ve) -> ve.forEach((s) -> System.out.println(k + \" : \"+ ke + \" : \"+ s))));\n\n\t}", "public static void main(String[] args) throws IllegalAccessException, InvocationTargetException, InstantiationException {\n\r\n Map<String, Shape> shapeMap = new HashMap<>();\r\n\r\n shapeMap.put(\"Triangle\", new SimpleTriangle(3, 5, 5));\r\n shapeMap.put(\"Circle\", new SimpleCircle(5));\r\n\r\n for (Map.Entry<String, Shape> entry : shapeMap.entrySet()) {\r\n System.out.println(\"Key - \" + entry.getKey() + \" Value \" + entry.getValue());\r\n }\r\n\r\n //Write a Java program to count the number of key-value (size) mappings in a map\r\n\r\n int size = shapeMap.size();\r\n System.out.println(size);\r\n\r\n //Write a Java program to copy all of the mappings from the specified map to another map.\r\n\r\n Map<String, Shape> shapeMap1 = new HashMap<>();\r\n shapeMap1.put(\"Square7\", new SimpleSquare(7));\r\n shapeMap1.put(\"Square9\", new SimpleSquare(9));\r\n\r\n shapeMap.putAll(shapeMap1);\r\n\r\n System.out.println(shapeMap);\r\n\r\n //Write a Java program to check whether a map contains key-value mappings (empty) or not.Try to use .clear()\r\n\r\n shapeMap1.clear();\r\n System.out.println(shapeMap1.isEmpty());\r\n\r\n //Write a Java program to test if a map contains a mapping for the specified key.\r\n\r\n boolean what = shapeMap.containsKey(\"Square7\");\r\n System.out.println(what);\r\n\r\n //Write a Java program to test if a map contains a mapping for the specified value.\r\n\r\n boolean whatValue = shapeMap.containsValue(new SimpleSquare(7));\r\n System.out.println(whatValue);\r\n\r\n //Write a Java program to create a set view of the mappings contained in a map.\r\n\r\n\r\n //Tree Set\r\n\r\n Set<Employee> treeSet = new TreeSet<>();\r\n treeSet.add(new Employee(17_000, \"J\"));\r\n treeSet.add(new Employee(20_000, \"K\"));\r\n\r\n System.out.println(treeSet);\r\n\r\n final EmployeeAgeComparator ageComparator = new EmployeeAgeComparator();\r\n Set<Employee> treeSetByAge = new TreeSet<>(ageComparator);\r\n treeSetByAge.add(new Employee(22_000, 35, \"L\"));\r\n treeSetByAge.add(new Employee(78_000, 19, \"J\"));\r\n treeSetByAge.add(new Employee(93_000, 55, \"P\"));\r\n\r\n System.out.println(treeSetByAge);\r\n\r\n final EmployeeSalaryComparator salaryComparator = new EmployeeSalaryComparator();\r\n Set<Employee> treeSetBySalary = new TreeSet<>(salaryComparator);\r\n treeSetBySalary.add(new Employee(98_120, 59, \"LA\"));\r\n treeSetBySalary.add(new Employee(92_000, 79, \"AA\"));\r\n treeSetBySalary.add(new Employee(18_100, 44, \"AC\"));\r\n\r\n System.out.println(treeSetBySalary);\r\n\r\n System.out.println(\"==============================================\");\r\n\r\n Set<Employee> treeSetByName = new TreeSet<Employee>((o1, o2) -> o1.getName().compareTo(o2.getName()));\r\n\r\n treeSetByName.add(new Employee(98_120, 59, \"LA\"));\r\n treeSetByName.add(new Employee(92_000, 79, \"AA\"));\r\n treeSetByName.add(new Employee(18_100, 44, \"AC\"));\r\n\r\n System.out.println(treeSetByName);\r\n\r\n Employee newEmployee = null;\r\n final Constructor<?>[] constructorsEmp = Employee.class.getConstructors();\r\n for (Constructor constructor : constructorsEmp) {\r\n System.out.println(constructor.getParameterCount());\r\n if (constructor.getParameterCount() == 2) {\r\n newEmployee = (Employee) constructor.newInstance(66_000, \"From Reflection\");\r\n }\r\n }\r\n if(newEmployee != null){\r\n System.out.println(newEmployee);\r\n }\r\n\r\n }" ]
[ "0.65896344", "0.6539731", "0.6472757", "0.64550257", "0.6414942", "0.6304779", "0.6194089", "0.61918265", "0.61849684", "0.61692786", "0.61598366", "0.6158675", "0.6158669", "0.6147333", "0.6139546", "0.6133526", "0.6037993", "0.60084337", "0.5970552", "0.592203", "0.59218794", "0.5897908", "0.58947796", "0.5884659", "0.5861416", "0.5857302", "0.5848013", "0.5837733", "0.5832794", "0.5820274", "0.58199763", "0.5784419", "0.57802236", "0.576933", "0.57656103", "0.5760649", "0.5751997", "0.56853217", "0.5657416", "0.5654738", "0.56380016", "0.56351167", "0.5606293", "0.55880654", "0.5570846", "0.55688566", "0.5553216", "0.55472803", "0.5532167", "0.55289185", "0.5505732", "0.5495906", "0.54945743", "0.5484319", "0.5483639", "0.54744893", "0.5466999", "0.5464283", "0.5458161", "0.54470223", "0.5441275", "0.54400635", "0.5424851", "0.54214305", "0.5400328", "0.5399759", "0.5394665", "0.53862053", "0.538129", "0.53797567", "0.5365962", "0.53657776", "0.53610027", "0.53595847", "0.5348356", "0.5335316", "0.53282636", "0.53154486", "0.5310954", "0.53019696", "0.5300203", "0.52972513", "0.5293854", "0.5288656", "0.5287397", "0.5273987", "0.52633584", "0.52606416", "0.5257703", "0.5255942", "0.52529234", "0.5251707", "0.52378166", "0.5236374", "0.52299654", "0.5223909", "0.5220256", "0.52187854", "0.52070326", "0.5204847" ]
0.73722756
0
wrap around ParameterListener which raises a ParameterEvent
public void addListener(Listener listener) { Listener wrapper = new ParameterListenerWrapper(this, listener); for (Button b : radioButton) { b.addListener(SWT.Selection, wrapper); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void registerIParameterViewListener(IParameterViewListener listener) {\n _listeners.add(listener);\n }", "public void parameterDisconnected(ParameterDisconnectedEvent event) {\n }", "interface NoParametersListener {\n\tvoid execute();\n}", "public interface Listener<P extends Parameter, E> {\n CriteriaQuery<E> query(Root<E> root, CriteriaQuery<E> query, CriteriaBuilder builder, P parameter);\n}", "@Override\n public void watchParameter(String name, IntWatcher cb) {\n watchEvent(name, cb);\n getIntParam(name);\n }", "public void parameterChange( ParameterChangeEvent event ) {\n\n String S = C + \": parameterChange(): \";\n if ( D ) System.out.println( \"\\n\" + S + \"starting: \" );\n\n String name1 = event.getParameterName();\n\n // if IMR selection changed, update the site parameter list and supported IMT\n if ( name1.equalsIgnoreCase(imrGuiBean.IMR_PARAM_NAME)) {\n ScalarIntensityMeasureRelationshipAPI imr = imrGuiBean.getSelectedIMR_Instance();\n //set the intensity measure for the IMR\n imr.setIntensityMeasure(SA_Param.NAME);\n //gets the SA Period Values for the IMR\n this.getSA_PeriodForIMR(imr);\n siteGuiBean.replaceSiteParams(imr.getSiteParamsIterator());\n siteGuiBean.validate();\n siteGuiBean.repaint();\n }\n if(name1.equalsIgnoreCase(ERF_GuiBean.ERF_PARAM_NAME)) {\n /* get the selected ERF\n NOTE : We have used erfGuiBean.getSelectedERF_Instance()INSTEAD OF\n erfGuiBean.getSelectedERF.\n Difference is that erfGuiBean.getSelectedERF_Instance() does not update\n the forecast while erfGuiBean.getSelectedERF updates the\n */\n if(erfGuiBean !=null){\n\n controlComboBox.removeAllItems();\n this.initControlList();\n // add the Epistemic control panel option if Epistemic ERF is selected\n if(erfGuiBean.isEpistemicList()) {\n this.controlComboBox.addItem(EPISTEMIC_CONTROL);\n controlComboBox.setSelectedItem(EPISTEMIC_CONTROL);\n }\n }\n }\n }", "void visit(final Parameter parameter);", "private void addParameterEventHandler(){\n\t\t\n\t\tgetParameterNameListBox().addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tparameterAceEditor.clearAnnotations();\n\t\t\t\tparameterAceEditor.removeAllMarkers();\n\t\t\t\tparameterAceEditor.redisplay();\n\t\t\t\tSystem.out.println(\"In addParameterEventHandler on DoubleClick isPageDirty = \" + getIsPageDirty() + \" selectedIndex = \" + getParameterNameListBox().getSelectedIndex());\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = getParameterNameListBox().getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedParamID = getParameterNameListBox().getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedParamerterObjId = selectedParamID;\n\t\t\t\t\t\tif(getParameterMap().get(selectedParamID) != null){\n\t\t\t\t\t\t\tgetParameterNameTxtArea().setText(getParameterMap().get(selectedParamID).getParameterName());\n\t\t\t\t\t\t\tgetParameterAceEditor().setText(getParameterMap().get(selectedParamID).getParameterLogic());\n\t\t\t\t\t\t\tSystem.out.println(\"In Parameter DoubleClickHandler, doing setText()\");\n\t\t\t\t\t\t\t//disable parameterName and Logic fields for Default Parameter\n\t\t\t\t\t\t\tboolean isReadOnly = getParameterMap().get(selectedParamID).isReadOnly();\n\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setTitle(\"Delete\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(MatContext.get().getMeasureLockService()\n\t\t\t\t\t\t\t\t\t.checkForEditPermission()){\n\t\t\t\t\t\t\t\tsetParameterWidgetReadOnly(!isReadOnly);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\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@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLParameters().contains(getParameterMap().get(selectedParamID).getParameterName())) {\n\t\t\t\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setEnabled(false);\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tsuccessMessageAlert.clearAlert();\n\t\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "public void test3_2ParameterChangedListener() throws Exception {\n synchronized(mLock) {\n mInitialized = false;\n createListenerLooper(false, false, true);\n waitForLooperInitialization_l();\n\n getReverb(0);\n mChangedParameter = -1;\n mReverb.setRoomLevel((short)0);\n\n int looperWaitCount = MAX_LOOPER_WAIT_COUNT;\n while ((mChangedParameter == -1) && (looperWaitCount-- > 0)) {\n try {\n mLock.wait();\n } catch(Exception e) {\n }\n }\n terminateListenerLooper();\n releaseReverb();\n }\n assertEquals(\"parameter change not received\",\n EnvironmentalReverb.PARAM_ROOM_LEVEL, mChangedParameter);\n }", "public void parameterRebound(Parameter source, Parameter oldValue, Parameter newValue) {\n }", "public void parameterChangeFailed(ParameterChangeFailEvent e) {\n\n\t\tString S = C + \" : parameterChangeFailed(): \";\n\n\t\tStringBuffer b = new StringBuffer();\n\n\t\tParameter param = (Parameter) e.getSource();\n\n\t\tParameterConstraint constraint = param.getConstraint();\n\t\tString oldValueStr = e.getOldValue().toString();\n\t\tString badValueStr = e.getBadValue().toString();\n\t\tString name = param.getName();\n\n\t\tb.append(\"The value \");\n\t\tb.append(badValueStr);\n\t\tb.append(\" is not permitted for '\");\n\t\tb.append(name);\n\t\tb.append(\"'.\\n\");\n\t\tb.append(\"Resetting to \");\n\t\tb.append(oldValueStr);\n\t\tb.append(\". The constraints are: \\n\");\n\t\tb.append(constraint.toString());\n\n\t\tJOptionPane.showMessageDialog(this, b.toString(),\n\t\t\t\t\"Cannot Change Value\", JOptionPane.INFORMATION_MESSAGE);\n\t}", "@Override\n\tpublic void visit(JdbcParameter arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(JdbcParameter arg0) {\n\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "protected void sequence_Parameter(ISerializationContext context, org.xtext.tdl.tdl.Parameter semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.PARAMETER__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.PARAMETER__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getParameterAccess().getNameIDTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}", "public void ee_parameter(Double ee_parameter) {\n }", "void addTypedParameter(Parameter typedParameter);", "IParameter getParameter();", "public void addIndependentParameter(ParameterAPI parameter)\n throws ParameterException;", "protected IParameter createParameter(IEvent event, String ident)\n\t\t\tthrows RodinDBException {\n\t\tIParameter parameter = event.createChild(IParameter.ELEMENT_TYPE, null, null);\n\t\tparameter.setIdentifierString(ident, null);\n\t\treturn parameter;\n\t}", "@Override\n\tpublic void visit(JdbcNamedParameter arg0) {\n\t\t\n\t}", "@Override\n protected void collectParameters(Consumer<Parameter<?>> parameterCollector) {\n }", "public void addParameter(ParmInfoEntry p){\n\t}", "ParameterSource createParameterSource();", "public void intervalAdded(ListDataEvent parm1) {\n DefaultListModel lm = (DefaultListModel)parm1.getSource();\n int index = parm1.getIndex0();\n String key = (String)lm.elementAt(index);\n itsMsg.addUserDefinedParameter(theChangedKey, theChangedValue);\n }", "@EventName(\"targetInfoChanged\")\n EventListener onTargetInfoChanged(EventHandler<TargetInfoChanged> eventListener);", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void contentsChanged(ListDataEvent parm1) {\n DefaultListModel lm = (DefaultListModel)parm1.getSource();\n int index = parm1.getIndex0();\n itsMsg.removeUserDefinedParameter(theChangedKey);\n itsMsg.addUserDefinedParameter(theChangedKey, theChangedValue);\n }", "static ParameterLine generateParameterLine(final ParameterInterface pi, final String param,\r\n final ActionListener listener) {\n final String paramName = Mysys.encString(param);\r\n final Object paramValue = pi.getParameter(param);\r\n final List<Class<?>> allowedClasses = pi.getAllowedClass(param);\r\n final ParameterLine retObj = new ParameterLine();\r\n retObj.setOpisByClass(allowedClasses, paramName, listener);\r\n retObj.setComponentByClass(allowedClasses, paramValue);\r\n return retObj;\r\n }", "ParameterBinding createParameterBinding();", "void onArgumentsChanged();", "public SignalEntry notifyParameterChange(ParameterChangeSignal signal) {\r\n return log(null, signal.getChange(0).getName(), String.valueOf(signal.getChange(0).getValue()));\r\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 }", "void addCalcValueListener(CalcValueListener l);", "Report addParameter(String parameter, Object value);", "private void NotifyResetParameters() {\n for(IParameterViewListener listener : _listeners){\n listener.OnResetParameters();\n }\n }", "ParameterSink createParameterSink();", "public void addMySelectionListener(EventListener l);", "void eventChanged();", "public abstract void addListener(EventListener eventListener, String componentName);", "private void addEventHandlerToRangeSlider(RangeSlider rs, String parameter)\n\t{\n\t\trs.addEventHandler(MouseEvent.MOUSE_RELEASED, new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) \n {\n \t// Special adjustments after drag is finished.\n \tif (parameter == \"kappa\") {\n \t\trs.setLowValue(Math.round(rs.getLowValue()));\n \t\trs.setHighValue(Math.round(rs.getHighValue()));\n \t}\n \t\n \t// Update control values after slider values were changed.\n \tupdateControlValues(rs, parameter);\n \t\n \t// Re-generate parameter values.\n \tgenerateParameterValues();\n };\n });\n\t\t\n\t\t// Add listener to determine position during mouse drag.\n\t\trs.addEventHandler(MouseEvent.MOUSE_DRAGGED, new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) \n {\n \t// Update control values after slider values where changed.\n \tupdateControlValues(rs, parameter);\n };\n });\n\t}", "public interface GetPointsListener extends Listener {\n\n public void onGetPointsSucc(PointsInfo info);\n}", "public void setParameter( List<Parameter> parameter )\n {\n _parameter = parameter;\n }", "public void actionPerformed(ActionEvent e) {\r\n\t\tExParValue v = ExParValue.runtimeParameterValue(\"\\\"\"\r\n\t\t\t\t+ textField.getText() + \"\\\"\");\r\n\t\tif (v != null) {\r\n\t\t\texParValue.set(v);\r\n\t\t\tcontroller.parameterSet(exParName);\r\n\t\t\t// System.out.println(\"SingleParEntryPanel.actionPerformed() \" +\r\n\t\t\t// exParName + \"=\" + v);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void getListener(){\n\t}", "Parameter createParameter();", "public interface DependentParameterAPI<E> extends ParameterAPI<E> {\n\n public static final String XML_INDEPENDENT_PARAMS_NAME =\n \"IndependentParameters\";\n\n /**\n * Returns an iterator of all indepenedent parameters this parameter depends\n * upon. Returns the parametes in the order they were added.\n */\n public ListIterator getIndependentParametersIterator();\n\n /**\n * Locates and returns an independent parameter from the list if it exists.\n * Throws a parameter excpetion if the requested parameter is not one of the\n * independent parameters.\n * \n * @param name\n * Parameter name to lookup.\n * @return The found independent Parameter.\n * @throws ParameterException\n * Thrown if not one of the independent parameters.\n */\n public ParameterAPI getIndependentParameter(String name)\n throws ParameterException;\n\n /** Set's a complete list of independent parameters this parameter requires */\n public void setIndependentParameters(ParameterList list);\n\n /** Adds the parameter if it doesn't exist, else throws exception */\n public void addIndependentParameter(ParameterAPI parameter)\n throws ParameterException;\n\n /** Returns true if this parameter is one of the independent ones */\n public boolean containsIndependentParameter(String name);\n\n /** Removes the parameter if it exist, else throws exception */\n public void removeIndependentParameter(String name)\n throws ParameterException;\n\n /** Returns all the names of the independent parameters concatenated */\n public String getIndependentParametersKey();\n\n /** see implementation in the DependentParameter class for information */\n public String getDependentParamMetadataString();\n\n /** see implementation in the DependentParameter class for information */\n public int getNumIndependentParameters();\n\n}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "void setParameter(String name, String value);", "void onVariableChanged(Object... newValue);", "void setParameter(String name, Object value);", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "Parameter getParameter();", "@Override\n public void setParameter(String parameter, String value) {\n //no parameters\n }", "abstract public void addListener(Listener listener);", "public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }", "void addListener(ChangeListener<? super T> listener);", "void event(Event e) throws Exception;", "public interface IEventListener<TEventArg extends EventArgs>\n{\n void onExecute(TEventArg args);\n}", "public void parameterChange(ParameterChangeEvent e) {\n\t\tsite.setLocation(new Location(((Double) latitude.getValue())\n\t\t\t\t.doubleValue(), ((Double) longitude.getValue()).doubleValue()));\n\t}", "@Override\r\n public void setParameter(String parameters) {\r\n // dummy\r\n }", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "@Override\n\tprotected void setParameterValues() {\n\t}", "public interface Parameter {\n\n\t/**\n\t * Returns the actual parameter value given the inputs provided as arguments.\n\t * If the actual value cannot be retrieved (missing information), throws \n\t * an exception.\n\t * \n\t * @param input the input assignment\n\t * @return the actual parameter value\n\t */\n\tpublic double getParameterValue (Assignment input) ;\n\t\n\t\n\t/**\n\t * Returns the (possibly empty) set of parameter identifiers used in the \n\t * parameter object.\n\t * \n\t * @return the collection of parameter labels \n\t */\n\tpublic Collection<String> getParameterIds();\n\n\t\n\t\n\t/**\n\t * Adds the value of the two parameters and returns the result\n\t * \n\t * @param otherPram the parameter to add\n\t * @return the result of the addition\n\t */\n\tpublic Parameter sumParameter(Parameter otherPram); \n\t\n\t/**\n\t * Multiplies the value of the two parameters and returns the result\n\t * \n\t * @param otherPram the parameter to multiply\n\t * @return the result of the multiplication\n\t */\n\tpublic Parameter multiplyParameter(Parameter otherPram); \n\t\n}", "public interface OperateListener {\n Object oper(Object obj);\n\n}", "private void addParameter(int param) {\r\n command_parameters.addInt(param);\r\n }", "public void addNPTListener(NPTListener l){}", "@SuppressWarnings(\"rawtypes\")\n\tpublic ComboListener(JComboBox cbListenerParam, Vector vectorParam) {\n\t\tcbListener = cbListenerParam;\n\t\tvector = vectorParam;\n\t}", "@Override\n\tpublic boolean hasParameterGuard() {\n\t\treturn true;\n\t}", "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 }", "interface DataListener\n{\n\tpublic void DataChanged(MDSplus.Data data);\n}", "public boolean isParameterProvided();", "public void addSelectionListener(SelectionListener listener) {\r\n\tcheckWidget();\r\n\tif (listener == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tTypedListener typedListener = new TypedListener (listener);\r\n\taddListener (SWT.Selection,typedListener);\r\n\taddListener (SWT.DefaultSelection,typedListener);\r\n}", "public ChangeSceneEvent(String param) {\n super(SCENE_CHANGE_EVENT_TYPE);\n this.param = param;\n }", "public void addSelectionListener(SelectionListener listener) {\r\n\tcheckWidget();\r\n\tif (listener == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tTypedListener typedListener = new TypedListener(listener);\r\n\taddListener(SWT.Selection,typedListener);\r\n\taddListener(SWT.DefaultSelection,typedListener);\r\n}", "protected final void addParameter(final ParameterDef parameter) {\n parameters.add(parameter);\n }", "public void itemStateChanged(ItemEvent e) {\r\n\t\texParValue.set(choice.getSelectedItem());\r\n\t\tcontroller.parameterSet(exParName);\r\n\t\t// System.out.println(\"SingleParEntryPanel.itemStateChanged() \" +\r\n\t\t// exParName + \"=\" + choice.getSelectedItem());\r\n\t}", "public EventParameter(String key, int value) {\n this.key = key;\n this.value = value;\n this.summary = \"\";\n this.valueDescription = \"\";\n }", "@Override\n public void accept(ExtractedParameterValueVisitor visitor) throws FHIRPersistenceException {\n// visitor.visit(this);\n }", "public ShakeMap_2003_AttenRel(ParameterChangeWarningListener listener) {\n\t\tthis.listener = listener;\n\n\t\tinitCoefficients(); // This must be called before the next one\n\t\tinitSupportedIntensityMeasureParams();\n\n\t\tinitEqkRuptureParams();\n\t\tinitPropagationEffectParams();\n\t\tinitSiteParams();\n\t\tinitOtherParams();\n\n\t\tinitIndependentParamLists(); // Do this after the above\n\t}", "private void handleProductionElementParameter(GrammarCollectionBox box, ITypeHandler typeHandler,\n\t ParameterDSLInformation parameterInfo) {\n\tString param = \"P\" + parameterInfo.getIndex() + \"{\" + this.parameterCounter.getAndIncrement() + \"}\";\n\tICategory<String> parameterCategory = new Category(param, false);\n\tbox.rhsMethodCategory.add(parameterCategory);\n\n\tMap<ConfigurationOptions, String> parameterOptions = parameterInfo.getConfigurationOptions();\n\tICategory<String> parameterMapping = typeHandler.handle(parameterInfo.getType(), parameterOptions);\n\tRule rule = new Rule(parameterCategory, parameterMapping);\n\n\tICategory<String> typeCategory = new Category(CategoryNames.PARAMETERTYPE_CATEGORY, false);\n\tRule typeRule = new Rule(parameterMapping, typeCategory);\n\t// XXX(Leo_Roos;Nov 9, 2011) This annotation has been added by Pablo to\n\t// avoid interpretation of DSL key words as groovy keywords if they are\n\t// parsed mixed with groovy grammer.\n\n\ttypeRule.addAnnotation(new AvoidAnnotation());\n\n\tbox.addRule(rule);\n\tbox.addRule(typeRule);\n\tbox.addCategory(parameterMapping);\n\n }", "public MyEventListenerProxy(MyEventListener listener) {\n super(listener);\n }", "public void inputChanged(Viewer arg0, Object arg1, Object arg2) {\n\t\t}", "void onAddParameterButtonClick();", "@Override\n\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\tif(InitComplete && e.getStateChange() == 1)\n\t\t\t{\n\t\t\t\tString AllName[] = e.getSource().toString().split(\",\");\n\t\t\t\t\n\t\t\t\tString Index = AllName[0].replace(\"javax.swing.JComboBox[Smooth\", \"\");\n\t\t\t\t\n\t\t\t\tComponent Point = null;\n\t\t\t\tfor(Component one:parameterPanel.getComponents())\n\t\t\t\t{\n\t\t\t\t\tif(one.getName() != null && one.getName().equals(\"Parameter\" + Index))\n\t\t\t\t\t{\n\t\t\t\t\t\tPoint = one;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Point != null)\n\t\t\t\t{\n\t\t\t\t\tJTextField PointText = (JTextField) Point;\n\t\t\t\t\tString MethodValue = smoothParameters.GetMethodOneValue(e.getItem().toString());\n\t\t\t\t\t\n\t\t\t\t\tPointText.setText(MethodValue);\n\t\t\t\t\tPointText.setToolTipText(smoothParameters.GetMethodComment(e.getItem().toString()));\n\t\t\t\t\tif (MethodValue.equals(\"0\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tPointText.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tPointText.setEnabled(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "protected abstract Object validateParameter(Object constraintParameter);", "private void checkGameListenerMethodsArguments(@Nullable Game game, @Nullable ValueEventListener listener) {\n if (game == null) {\n throw new IllegalArgumentException(\"game should not be null.\");\n }\n if (listener == null) {\n throw new IllegalArgumentException(\"event listener should not be null.\");\n }\n }", "public void setListener(IAlgorithmListener listener);", "@Override\n\tprotected void validateParameterValues() {\n\t\t\n\t}", "public void addParameter(ParameterExtendedImpl param) {\n \tParameterExtendedImpl paramExt = parameters.getParameter(param.getIndex());\n \tif(paramExt != null)\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\n \tparamExt = parameters.getParameter(param.getIndex(), param.getDirection());\n \tif(paramExt != null){\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\treturn;\n \t}\n \t\n \taddToParameters(param);\n }", "@Override\n\tpublic void updateParameter(String parameterLabel, double newValue) {\n\t\tif (parameterLabel.equals(PROBCATCH_PARAMETER_LABEL_GUI)) {\n\t\t\tprobCatch = newValue;\n\t\t}\n\n\t}", "public QPEvent(Event event) {\n this.eventName = event.getEventName();\n this.eventTime = event.getEventTime();\n this.eventType = event.getEventType();\n this.parameters = event.getParameters();\n this.unitId = event.getUnitId();\n if (event.getParameters() != null) {\n for (String key : event.getParameters().keySet()) {\n this.setParameter(key, event.getParameters().get(key));\n }\n }\n }", "public interface EldersInfoListener {\n void eldersInfoListener(int position);\n}", "ParameterIdentification createParameterIdentification();", "void setListener(Listener listener);", "public void inputChanged(Viewer arg0, Object arg1, Object arg2) {\r\n\t\t// Nothing to do\r\n\t}", "public VisualizationStyleParameterChangeEvent(String dtiKey, VisualizationStyle style,\r\n Set<VisualizationStyleParameter> changedSet, Object source)\r\n {\r\n Utilities.checkNull(style, \"style\");\r\n Utilities.checkNull(changedSet, \"changedSet\");\r\n\r\n myDTIKey = dtiKey;\r\n myStyle = style;\r\n mySource = source;\r\n myChangedParameterSet = Collections.unmodifiableSet(New.set(changedSet));\r\n\r\n for (VisualizationStyleParameter p : myChangedParameterSet)\r\n {\r\n if (p.getHint() != null)\r\n {\r\n if (!p.getHint().isRenderPropertyChangeOnly())\r\n {\r\n myRequiresGeometryRebuild = true;\r\n }\r\n if (p.getHint().isRequiresMetaData())\r\n {\r\n myRequiresMetaData = true;\r\n }\r\n }\r\n }\r\n }", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "void addChangeListener(ChangeListener cl);" ]
[ "0.7117306", "0.6416401", "0.6413717", "0.6373483", "0.63570213", "0.6298873", "0.62492335", "0.622708", "0.6181321", "0.6071583", "0.5998802", "0.5933692", "0.5932591", "0.5912339", "0.5902136", "0.58586246", "0.5847581", "0.58106625", "0.5805451", "0.58046865", "0.5797619", "0.5780538", "0.5765169", "0.57613283", "0.5758552", "0.57413834", "0.5733455", "0.5731308", "0.5713269", "0.57104576", "0.5701477", "0.569504", "0.5693694", "0.56667775", "0.5632564", "0.5624839", "0.5614218", "0.56021726", "0.5601198", "0.55610406", "0.5547247", "0.5540819", "0.55385035", "0.54752105", "0.547013", "0.54689246", "0.5457526", "0.5451409", "0.54331434", "0.5431231", "0.5430073", "0.5428341", "0.5421835", "0.541586", "0.54156274", "0.5404952", "0.5401182", "0.5400516", "0.539146", "0.5385596", "0.53689307", "0.5367037", "0.5344533", "0.5337783", "0.53315586", "0.531983", "0.53171897", "0.5308848", "0.53081274", "0.5306515", "0.5305121", "0.5302653", "0.5301166", "0.52950794", "0.52932847", "0.5291286", "0.52857643", "0.5283217", "0.5281161", "0.5273563", "0.5268109", "0.5267762", "0.5264723", "0.5262322", "0.5258916", "0.5254586", "0.52427775", "0.5240675", "0.5230845", "0.5222221", "0.5206737", "0.5204682", "0.52033013", "0.5194247", "0.5192663", "0.5191958", "0.51865345", "0.51846164", "0.51846164", "0.51792186" ]
0.580387
20
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\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}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n 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\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\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.72473437", "0.7202402", "0.71960324", "0.7177793", "0.7108265", "0.7040525", "0.70388484", "0.70126176", "0.70101976", "0.6981143", "0.69461405", "0.694", "0.69346833", "0.69183874", "0.69183874", "0.6891571", "0.6884306", "0.68758994", "0.687534", "0.68627334", "0.68627334", "0.68627334", "0.68627334", "0.6853258", "0.6847784", "0.6820167", "0.68177783", "0.68134266", "0.68132955", "0.68132955", "0.6806282", "0.68011856", "0.6798178", "0.67916524", "0.67897713", "0.6788724", "0.6783952", "0.6759952", "0.6757919", "0.6748738", "0.67445415", "0.67445415", "0.6741439", "0.67401767", "0.6726359", "0.6724678", "0.6723058", "0.6723058", "0.6721303", "0.67123276", "0.670777", "0.67050874", "0.670039", "0.66992784", "0.6697299", "0.6695259", "0.6686728", "0.668404", "0.668404", "0.6683142", "0.668091", "0.66799283", "0.6677784", "0.6669004", "0.66677624", "0.66630834", "0.66577506", "0.66577506", "0.66577506", "0.6656902", "0.66553235", "0.66553235", "0.66553235", "0.66530025", "0.66522014", "0.6650771", "0.66497517", "0.6647805", "0.66470283", "0.66469866", "0.6646818", "0.6645723", "0.66454786", "0.66439635", "0.66434425", "0.6642393", "0.6639529", "0.6635146", "0.6634077", "0.6632954", "0.66327274", "0.66327274", "0.66327274", "0.66297686", "0.66288346", "0.66275346", "0.66271275", "0.6625066", "0.6621276", "0.6619167", "0.6619167" ]
0.0
-1
Lasershot 13x37 (width x height) /////////////////////////
private void shootLaser() { for(int i = 0; i<lasers.size(); i++) { if(lasers.get(i).getLayoutY() > -lasers.get(i).getBoundsInParent().getHeight() ) { //-37 wenn unterhalb des windows lasers.get(i).relocate(lasers.get(i).getLayoutX(), lasers.get(i).getLayoutY() - 3); //um 3 pixel nach oben bewegen } else { //wenn oberhalb des windows gamePane.getChildren().remove(lasers.get(i)); lasers.remove(i); System.out.println(lasers.size()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateKlausur(int width, int height, int[] pixels) {\n\t\tfor (int y=0; y<height; y++) {\n\t\t\t// Schleife ueber die x-Werte\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tint pos = y*width + x; // Arrayposition bestimmen\n\t\t\t\tint r=255*(width-1-x)/(width-1);\n\t\t\t\tint g=255*y/(height-1);\n\t\t\t\tint b=0;\n\n\t\t\t\tpixels[pos] = (0x80 <<24) | (r << 16) | (g << 8) | b;\n\t\t\t}\n\t\t}\n\n\n\t}", "private void generateBangla(int width, int height, int[] pixels) {\n\t\tfor (int y=0; y<height; y++) {\n\t\t\t// Schleife ueber die x-Werte\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tint pos = y*width + x; // Arrayposition bestimmen\n\t\t\t\tint r=0;\n\t\t\t\tint g=106;\n\t\t\t\tint b=78;\n\n\t\t\t\tif((x - 9*width/20)*(x - 9*width/20) + (y-height/2)*(y-height/2) <= height*height/9){\n\t\t\t\t\tr = 244;\n\t\t\t\t\tg = 42;\n\t\t\t\t\tb = 65;\n\t\t\t\t}\n\t\t\t\t// Werte zurueckschreiben\n\t\t\t\tpixels[pos] = 0xFF000000 | (r << 16) | (g << 8) | b;\n\t\t\t}\n\t\t}\n\t}", "public RunLengthEncoding(int width, int height) {\n // Your solution here.\n//\t PixImage image=new PixImage(width,height);\n\t this.width=width;\n\t this.height=height;\n\t int[] run = {width*height, 0, 0, 0};\n\t runs = new DList<int[]>(run); \n }", "private static double MdUllah(double length, double height, double width) {\n\t\treturn length*height*width;\n\t}", "void mo33732Px();", "public void init241()\n {\n\t \twidth= p2[21]<<24 | p2[20]<<16 | p2[19]<<8 | p2[18];\n\n\n\n\t\theight= p2[25]<<24 | p2[24]<<16 | p2[23]<<8 | p2[22];\n\n\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n i=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t{\n \t b=p2[z]&0xff;\n binary[j++]=b&0x01;\n g=p2[z+1]&0xff;\n binary[j++]=g&0x01;\n \t r=p2[z+2]&0xff;\n binary[j++]=r&0x01;\n \t pix[l]= 255<<24 | r<<16 | g<<8 | b;\n z=z+3;\n x++;\n \t l++;\n }\n z=z+padding;\n }\n int k;\n x=0;\n stringcon();\n\n\n\tfor(i=l-width;i>=0;i=i-width)\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n// pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n}", "private void generateTschech(int width, int height, int[] pixels) {\n\t\tfor (int y=0; y<height; y++) {\n\t\t\t// Schleife ueber die x-Werte\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tint pos = y*width + x; // Arrayposition bestimmen\n\t\t\t\tint r=255;\n\t\t\t\tint g=255;\n\t\t\t\tint b=255;\n\n\t\t\t\tif(y>=height/2){\n\t\t\t\t\tr = 255;\n\t\t\t\t\tg = 0;\n\t\t\t\t\tb = 0;\n\t\t\t\t}\n\t\t\t\tif( x< width/2 && y> height*x/width && y< (width-x)*height/width){\n\t\t\t\t\tr = 0;\n\t\t\t\t\tg = 0;\n\t\t\t\t\tb = 255;\n\t\t\t\t}\n\n\t\t\t\t// Werte zurueckschreiben\n\t\t\t\tpixels[pos] = 0xFF000000 | (r << 16) | (g << 8) | b;\n\t\t\t}\n\t\t}\n\t}", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "private void getWidthandHeight(char[] imagenaux) {\n for (iterator = 3; imagenaux[iterator] != '\\n'; ++iterator) {\n if (imagenaux[iterator] == ' ') anchura = false;\n else {\n if (anchura) {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n width *= 10;\n width += aux;\n } else {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n height *= 10;\n height += aux;\n }\n }\n }\n ++iterator;\n while (imagenaux[iterator] != '\\n') { ++iterator; }\n ++iterator;\n }", "public int getWidth()\n {\n return larghezza;\n }", "private native void convertToLum( short[] data, int w, int h );", "void loadRainbow(int width, int height, boolean isHorizontal);", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "public int getTileWidth() {\n return 8;\n }", "public int getActualTileWidth() {\n return 32;\n }", "laptop(int length, int weight, int height, int width) {\r\n this.length = length;\r\n this.weight = weight;\r\n this.height = height;\r\n this.width = width;\r\n }", "public void getTile_B8();", "public void init24()\n {\n\t \twidth= p[21]<<24 | p[20]<<16 | p[19]<<8 | p[18];\n\t\theight= p[25]<<24 | p[24]<<16 | p[23]<<8 | p[22];\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t {\n \t b=p[z]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z]=p[z]&0xff|binary[j++];\n b1=p1[z]&0xff;\n }\n else\n {\n p1[z]=p[z]&0xff & (binary[j++]|0xfe);\n b1=p1[z]&0xff;\n }\n }\n else\n b1=p[z]&0xff;\n \tg=p[z+1]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+1]=p[z+1]&0xff|binary[j++];\n g1=p[z+1]&0xff;\n }\n else\n {\n p1[z+1]=p[z+1]&0xff & (binary[j++]|0xfe);\n g1=p1[z+1]&0xff;\n }\n }\n else\n g1=p[z]&0xff;\n r=p[z+2]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+2]=p[z+2]&0xfe|binary[j++];\n r1=p[z+2]&0xff;\n }\n else\n {\n p1[z+2]=p[z+2]&0xff & (binary[j++]|0xfe);\n r1=p1[z+2]&0xff;\n }\n }\n else\n r1=p[z]&0xff;\n\tz=z+3;\n\tpix[l]= 255<<24 | r<<16 | g<<8 | b;\n pix1[l]= 255<<24 | r1<<16 | g1<<8 | b1;\n\tl++;\n\tx++;\n\t}\nz=z+padding;\n}\nint k;\nx=0;\n\tfor(i=l-width;i>=0;i=i-width) //l=WIDTH * height\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n }", "public static int getMapWidth() {\r\n\t\treturn 7;\r\n\t}", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "int getHorizontalResolution();", "public void drawWorld(int var1) {\n boolean var24 = field_759;\n int var2 = this.field_736[var1] * this.field_737[var1];\n int[] var3 = this.spritePixels[var1];\n int[] var4 = new int['\\u8000'];\n int var5 = 0;\n int var6;\n if(var24) {\n var6 = var3[var5];\n ++var4[((var6 & 16252928) >> 9) + ((var6 & '\\uf800') >> 6) + ((var6 & 248) >> 3)];\n ++var5;\n }\n\n while(var5 < var2) {\n var6 = var3[var5];\n ++var4[((var6 & 16252928) >> 9) + ((var6 & '\\uf800') >> 6) + ((var6 & 248) >> 3)];\n ++var5;\n }\n\n int[] var25 = new int[256];\n var25[0] = 16711935;\n int[] var7 = new int[256];\n int var8 = 0;\n int var10;\n int var11;\n if(var24 || var8 < '\\u8000') {\n do {\n int var9 = var4[var8];\n if(var9 > var7[255]) {\n var10 = 1;\n if(var24 || var10 < 256) {\n do {\n if(var9 > var7[var10]) {\n var11 = 255;\n if(var24 || var11 > var10) {\n do {\n var25[var11] = var25[var11 - 1];\n var7[var11] = var7[var11 - 1];\n --var11;\n } while(var11 > var10);\n }\n\n var25[var10] = ((var8 & 31744) << 9) + ((var8 & 992) << 6) + ((var8 & 31) << 3) + 263172;\n var7[var10] = var9;\n if(!var24) {\n break;\n }\n }\n\n ++var10;\n } while(var10 < 256);\n }\n }\n\n var4[var8] = -1;\n ++var8;\n } while(var8 < '\\u8000');\n }\n\n byte[] var26 = new byte[var2];\n var10 = 0;\n if(!var24 && var10 >= var2) {\n this.spriteColoursUsed[var1] = var26;\n this.spriteColourList[var1] = var25;\n this.spritePixels[var1] = null;\n } else {\n do {\n var11 = var3[var10];\n int var12 = ((var11 & 16252928) >> 9) + ((var11 & '\\uf800') >> 6) + ((var11 & 248) >> 3);\n int var13 = var4[var12];\n if(var13 == -1) {\n int var14 = 999999999;\n int var15 = var11 >> 16 & 255;\n int var16 = var11 >> 8 & 255;\n int var17 = var11 & 255;\n int var18 = 0;\n if(var24 || var18 < 256) {\n do {\n int var19 = var25[var18];\n int var20 = var19 >> 16 & 255;\n int var21 = var19 >> 8 & 255;\n int var22 = var19 & 255;\n int var23 = (var15 - var20) * (var15 - var20) + (var16 - var21) * (var16 - var21) + (var17 - var22) * (var17 - var22);\n if(var23 < var14) {\n var14 = var23;\n var13 = var18;\n }\n\n ++var18;\n } while(var18 < 256);\n }\n\n var4[var12] = var13;\n }\n\n var26[var10] = (byte)var13;\n ++var10;\n } while(var10 < var2);\n\n this.spriteColoursUsed[var1] = var26;\n this.spriteColourList[var1] = var25;\n this.spritePixels[var1] = null;\n }\n }", "private void initArrayHeightAndWidth() {\n\n\t\theight = 0;\n\t\twidth = 0;\n\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(mapFile));\n\t\t\tString line = br.readLine();\n\t\t\t// get length of map\n\t\t\twidth = line.length();\n\t\t\t// get height of map\n\t\t\twhile (line != null) {\n\t\t\t\theight += 1;\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\tbr.close();\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\theight_on_display = (height - 1) * 35;\n\t\twidth_on_display = (width - 1) * 35;\n\t\tmapElementStringArray = new String[height][width];\n\t\tmapElementArray = new MapElement[height][width];\n\n\t}", "private void createGraySquares() {\n for (int x = 0; x < 16; x ++)\n for (int y = 0; y < 16; y ++)\n // If the area is not explored, creates a gray square at that point.\n if (!storage.explored[x][y]) {\n GraySquare square = new GraySquare(screen.miscAtlases.get(2));\n // Uses the x and y integers to set the corresponding position in the grid.\n square.setPosition(x * 20, y * 20 + 19);\n // Adds to the rendering list.\n squares.add(square);\n }\n }", "public int getLargeur() {\n return getWidth();\n }", "int getHeight() {return height;}", "private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }", "int getTileSize();", "public static void main(String[] args) {\n // Be forwarned that when you write arrays directly in Java as below,\n // each \"row\" of text is a column of your image--the numbers get\n // transposed.\n PixImage image1 = array2PixImage(new int[][] { { 0, 3, 6 },\n { 1, 4, 7 },\n { 2, 5, 8 } });\n\n System.out.println(\"Testing one-parameter RunLengthEncoding constuctor \" +\n \"on a 3x3 image. Input image:\");\n System.out.print(image1);\n /////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n /*\n int [] red = {2,4,1,6,7};\n int [] leth = {2,3,1,1,2};\n\n RunLengthEncoding rle0 = new RunLengthEncoding(3, 3,red, red,red, leth);\n // RunLengthEncoding rle0 = new RunLengthEncoding(3, 3);\n \n for(RunIterator i=rle0.iterator();i.hasNext();) {\n\t System.out.println(i.next()[3]);\n }\n \n rle0.toPixImage();\n \n System.out.println(rle0.toPixImage().toString());\n System.out.println(\"XXXXXXXXXX\");\n\n */\n \n \n RunLengthEncoding rle1 = new RunLengthEncoding(image1);\n rle1.check();\n System.out.println(\"Testing getWidth/getHeight on a 3x3 encoding.\");\n doTest(rle1.getWidth() == 3 && rle1.getHeight() == 3,\n \"RLE1 has wrong dimensions\");\n \n rle1.toPixImage();\n \n System.out.println(\"Testing toPixImage() on a 3x3 encoding.\");\n System.out.println(rle1.toPixImage().toString());\n System.out.println(image1.toString());\n doTest(image1.equals(rle1.toPixImage()),\n \"image1 -> RLE1 -> image does not reconstruct the original image\");\n\n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle1, 0, 0, 42);\n image1.setPixel(0, 0, (short) 42, (short) 42, (short) 42);\n doTest(rle1.toPixImage().equals(image1),\n /*\n array2PixImage(new int[][] { { 42, 3, 6 },\n { 1, 4, 7 },\n { 2, 5, 8 } })),\n */\n \"Setting RLE1[0][0] = 42 fails.\");\n\n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle1, 1, 0, 42);\n image1.setPixel(1, 0, (short) 42, (short) 42, (short) 42);\n doTest(rle1.toPixImage().equals(image1),\n \"Setting RLE1[1][0] = 42 fails.\");\n\n \n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle1, 0, 1, 2);\n image1.setPixel(0, 1, (short) 2, (short) 2, (short) 2);\n doTest(rle1.toPixImage().equals(image1),\n \"Setting RLE1[0][1] = 2 fails.\");\n\n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle1, 0, 0, 0);\n image1.setPixel(0, 0, (short) 0, (short) 0, (short) 0);\n doTest(rle1.toPixImage().equals(image1),\n \"Setting RLE1[0][0] = 0 fails.\");\n\n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle1, 2, 2, 7);\n image1.setPixel(2, 2, (short) 7, (short) 7, (short) 7);\n doTest(rle1.toPixImage().equals(image1),\n \"Setting RLE1[2][2] = 7 fails.\");\n\n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle1, 2, 2, 42);\n image1.setPixel(2, 2, (short) 42, (short) 42, (short) 42);\n doTest(rle1.toPixImage().equals(image1),\n \"Setting RLE1[2][2] = 42 fails.\");\n \n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle1, 1, 2, 42);\n image1.setPixel(1, 2, (short) 42, (short) 42, (short) 42);\n doTest(rle1.toPixImage().equals(image1),\n \"Setting RLE1[1][2] = 42 fails.\");\n\n \n PixImage image2 = array2PixImage(new int[][] { { 2, 3, 5 },\n { 2, 4, 5 },\n { 3, 4, 6 } });\n\n System.out.println(\"Testing one-parameter RunLengthEncoding constuctor \" +\n \"on another 3x3 image. Input image:\");\n System.out.print(image2);\n\n \n \n RunLengthEncoding rle2 = new RunLengthEncoding(image2);\n rle2.check();\n System.out.println(\"Testing getWidth/getHeight on a 3x3 encoding.\");\n doTest(rle2.getWidth() == 3 && rle2.getHeight() == 3,\n \"RLE2 has wrong dimensions\");\n\n System.out.println(\"Testing toPixImage() on a 3x3 encoding.\");\n doTest(rle2.toPixImage().equals(image2),\n \"image2 -> RLE2 -> image does not reconstruct the original image\");\n\n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle2, 0, 1, 2);\n \n image2.setPixel(0, 1, (short) 2, (short) 2, (short) 2);\n doTest(rle2.toPixImage().equals(image2),\n \"Setting RLE2[0][1] = 2 fails.\");\n\n System.out.println(\"Testing setPixel() on a 3x3 encoding.\");\n setAndCheckRLE(rle2, 2, 0, 2);\n image2.setPixel(2, 0, (short) 2, (short) 2, (short) 2);\n doTest(rle2.toPixImage().equals(image2),\n \"Setting RLE2[2][0] = 2 fails.\");\n\n\n PixImage image3 = array2PixImage(new int[][] { { 0, 5 },\n { 1, 6 },\n { 2, 7 },\n { 3, 8 },\n { 4, 9 } });\n\n System.out.println(\"Testing one-parameter RunLengthEncoding constuctor \" +\n \"on a 5x2 image. Input image:\");\n System.out.print(image3);\n RunLengthEncoding rle3 = new RunLengthEncoding(image3);\n rle3.check();\n System.out.println(\"Testing getWidth/getHeight on a 5x2 encoding.\");\n doTest(rle3.getWidth() == 5 && rle3.getHeight() == 2,\n \"RLE3 has wrong dimensions\");\n\n System.out.println(\"Testing toPixImage() on a 5x2 encoding.\");\n doTest(rle3.toPixImage().equals(image3),\n \"image3 -> RLE3 -> image does not reconstruct the original image\");\n\n System.out.println(\"Testing setPixel() on a 5x2 encoding.\");\n setAndCheckRLE(rle3, 4, 0, 6);\n image3.setPixel(4, 0, (short) 6, (short) 6, (short) 6);\n doTest(rle3.toPixImage().equals(image3),\n \"Setting RLE3[4][0] = 6 fails.\");\n\n System.out.println(\"Testing setPixel() on a 5x2 encoding.\");\n setAndCheckRLE(rle3, 0, 1, 6);\n image3.setPixel(0, 1, (short) 6, (short) 6, (short) 6);\n doTest(rle3.toPixImage().equals(image3),\n \"Setting RLE3[0][1] = 6 fails.\");\n\n System.out.println(\"Testing setPixel() on a 5x2 encoding.\");\n setAndCheckRLE(rle3, 0, 0, 1);\n image3.setPixel(0, 0, (short) 1, (short) 1, (short) 1);\n doTest(rle3.toPixImage().equals(image3),\n \"Setting RLE3[0][0] = 1 fails.\");\n\n\n PixImage image4 = array2PixImage(new int[][] { { 0, 3 },\n { 1, 4 },\n { 2, 5 } });\n\n System.out.println(\"Testing one-parameter RunLengthEncoding constuctor \" +\n \"on a 3x2 image. Input image:\");\n System.out.print(image4);\n RunLengthEncoding rle4 = new RunLengthEncoding(image4);\n rle4.check();\n System.out.println(\"Testing getWidth/getHeight on a 3x2 encoding.\");\n doTest(rle4.getWidth() == 3 && rle4.getHeight() == 2,\n \"RLE4 has wrong dimensions\");\n\n System.out.println(\"Testing toPixImage() on a 3x2 encoding.\");\n doTest(rle4.toPixImage().equals(image4),\n \"image4 -> RLE4 -> image does not reconstruct the original image\");\n\n System.out.println(\"Testing setPixel() on a 3x2 encoding.\");\n setAndCheckRLE(rle4, 2, 0, 0);\n image4.setPixel(2, 0, (short) 0, (short) 0, (short) 0);\n doTest(rle4.toPixImage().equals(image4),\n \"Setting RLE4[2][0] = 0 fails.\");\n\n System.out.println(\"Testing setPixel() on a 3x2 encoding.\");\n setAndCheckRLE(rle4, 1, 0, 0);\n image4.setPixel(1, 0, (short) 0, (short) 0, (short) 0);\n doTest(rle4.toPixImage().equals(image4),\n \"Setting RLE4[1][0] = 0 fails.\");\n\n System.out.println(\"Testing setPixel() on a 3x2 encoding.\");\n setAndCheckRLE(rle4, 1, 0, 1);\n image4.setPixel(1, 0, (short) 1, (short) 1, (short) 1);\n doTest(rle4.toPixImage().equals(image4),\n \"Setting RLE4[1][0] = 1 fails.\");\n \n \n }", "long getWidth();", "private void initialiseBoard() {\r\n\t\thorizontal = new char[width];\r\n\t\tvertical = new int[height];\r\n\t\tfor (int i=0; i<horizontal.length; i++) {\r\n\t\t\thorizontal[i] = (char)(i+65);\r\n\t\t}\r\n\t\tfor (int i=0; i<vertical.length; i++) {\r\n\t\t\tvertical[i] = i+1;\r\n\t\t}\r\n\t}", "BigInteger getWidth();", "public Igra2048() {\r\n\t\ttabela = new int[4][4];\r\n\t\tbroj_slobodnih = 16;\r\n\t\trnd = new Random();\r\n\t\tpobjeda = false;\r\n\t\tigrajPoslijePobjede = false;\r\n\t\t\r\n\t\tgenerisiPolje();\r\n\t\tgenerisiPolje();\r\n\t}", "@Override\n public int hashCode() {\n return mHeight ^ ((mWidth << (Integer.SIZE / 2)) | (mWidth >>> (Integer.SIZE / 2)));\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void checkers() throws IOException{\n String input = j.showInputDialog(\"How many squares would you like?\");\n int num=Integer.parseInt(input);\n input = j.showInputDialog(\"Choose a file to use:\");\n Scanner f= new Scanner(new File(input+\".ppm\"));\n input = j.showInputDialog(\"Choose a name for the new file:\");\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(input+\".ppm\")));\n out.println(f.next());\n int height=Integer.parseInt(f.next());\n int width=Integer.parseInt(f.next());\n out.println(height);out.println(width);out.println(f.next());\n int ab[][][]=new int[width][height][3];\n for(int x=0;x<width;x++){\n for(int y=0;y<height;y++){\n for(int c=0;c<3;c++){\n ab[x][y][c]=Integer.parseInt(f.next());\n }\n }\n }\n int smhei=height/(int)Math.sqrt(num);\n int smwid=width/(int)Math.sqrt(num);\n int temp[][][][] = new int[num][smwid][smhei][3];\n int x2=0;int y2=0; int d=0;\n\n for(int x=0;x<width;x++){\n if(x!=0){\n d=(height/smhei)*(x/smwid);\n if(x%smwid==0){\n x2=0;\n }\n }\n for(int y=0;y<height;y++){\n if(y!=0&&y%smhei==0){\n y2=0;d++; \n }\n for(int c=0;c<3;c++){\n temp[d][x2][y2][c]=ab[x][y][c];\n }\n y2++;\n }\n y2=0;\n x2++;\n }\n /*int raN[]=new int[num];\n for(int i=0;i<num;i++){\n raN[i]=i;\n }*/\n int r=num-1;\n for(int n=0;n<num;n++){\n /*\n r=gen.nextInt(num);\n while(raN[r]<0){\n r=gen.nextInt(num);\n }*/\n if(r>=0){\n \n }\n for(int x=0;x<smwid;x++){\n for(int y=0;y<smhei;y++){\n for(int c=0;c<3;c++){\n out.print(temp[r][x][y][c]+\" \");\n }\n }\n }\n //raN[r]=raN[r]*-1;\n r--;\n }\n f.close();\n out.close();\n System.exit(0);\n }", "private static void createMap()\r\n {\r\n position = new String[8][8];\r\n for(int i=0;i<8;i++)\r\n {\r\n int z=0;\r\n for(int j=72;j>=65;j--)\r\n {\r\n position[i][z]=(char)j+\"\"+(i+1); //uses ascii char placement for letters\r\n z++;\r\n }\r\n }\r\n \r\n }", "public static int m22583h(long j) {\n return 8;\n }", "static int designerPdfViewer(int[] h, String word) {\r\n \tchar c='a';\r\n \tint maxHeight=0;\r\n \tMap<Character, Integer> alphabet = new HashMap<>(); \t\r\n \tfor(int height:h) {\r\n \t\talphabet.put(c, height);\r\n \t\tc++;\r\n \t}\r\n \tfor(int i=0;i<word.length();i++) {\r\n \t\tif( alphabet.get( word.charAt(i) ) > maxHeight ) {\r\n \t\t\tmaxHeight = alphabet.get( word.charAt(i) );\r\n \t\t}\r\n \t}\r\n \t//System.out.println(alphabet);\r\n \treturn maxHeight*word.length();\r\n }", "public void settings() { size(1200, 800); }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "private String land() {\r\n\t\tint[] temp=tile.getLand();\r\n\t\tString out=\"Tile Land: \\n\\n\";\r\n\t\tint square=(int)Math.sqrt(temp.length);\r\n\t\tif(square*square<temp.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<temp.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<temp.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%4s\", temp[i]));\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "public salida()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n }", "public int getH() { return height; }", "public int getTileHeight() {\n return 8;\n }", "private final Tuples<Integer, Integer> m137836a() {\n int i;\n int measuredWidth = getMeasuredWidth() / getChildCount();\n if (getChildCount() == 1 || LPFit.f99531a.mo120373a()) {\n i = getMeasuredHeight();\n } else {\n i = (int) (((float) measuredWidth) / VideoParams.f96577a.mo116006l());\n }\n return new Tuples<>(Integer.valueOf(measuredWidth), Integer.valueOf(i));\n }", "private void buildRack() {\n char[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n for (char c : alphabet) {\n rack.add(new LetterTile(c,\n IMAGE_DIRECTORY,\n IMAGE_TYPE));\n }\n }", "private static ArrayImg< UnsignedByteType, ByteArray > createLargeRectangularImage() {\n\t\tArrayImg< UnsignedByteType, ByteArray > img = ArrayImgs.unsignedBytes( 1024, 512 );\n\t\tfor ( int i = 0; i < 3; i++ ) {\n\t\t\tlong[] xmin = new long[] { 199 + i * 200, 0 };\n\t\t\tlong[] xmax = new long[] { 299 + i * 200, 511 };\n\t\t\tIntervalView< UnsignedByteType > iview = Views.interval( img, xmin, xmax );\n\t\t\tiview.forEach( pixel -> pixel.set( ( byte ) 255 ) );\n\t\t}\n\t\treturn img;\n\t}", "public int getActualTileHeight() {\n return 32;\n }", "long getHeight();", "public void screenMath(){\r\n\t\t//10.9375 H\r\n\t\t//12.037037037037036 W\r\n\t\tDouble test1 = 0.12 * screenWidth / 2.2;\r\n\t\tDouble test2 = 0.807 * screenHight;\r\n\t\tDouble test3 = screenHight - test2;\r\n\t\tDouble test4 = test3 / 10;\r\n\t\tfor(int i = 0; i < 10; i++){\r\n\r\n\t\t\tArrayList<Double> tempArray = new ArrayList<Double>();\r\n\t\t\t\r\n\t\t\ttempArray.add(screenHight - test3 + (test4 * i));\r\n\t\t\ttempArray.add(test1);\r\n\t\t\tint[] RGBArray = getScreenColor(test1, screenHight - test3 + (test4 * i));\r\n\t\t\t\r\n\t\t\tfor(int x = 0; x < RGBArray.length; x++){\r\n\t\t\t\ttempArray.add((double) (RGBArray[x]));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlifeGlobe.addPosition(tempArray);\r\n\t\t}\r\n\t}", "private void m17129H() {\n int i;\n boolean z = this.f15653i0 > 0;\n int i2 = 2131231283;\n if (z && this.f15655k0 == C2470a.MAP) {\n i = 2131231288;\n if (!this.f15652h0) {\n i2 = 2131231285;\n }\n } else if (this.f15655k0 == C2470a.MAP) {\n i = 2131231291;\n i2 = this.f15652h0 ? 2131231284 : 2131231286;\n } else if (z) {\n i = 2131231295;\n } else {\n i = 2131231294;\n i2 = 2131231282;\n }\n this.f15639U.setBackgroundResource(i);\n this.f15640V.setImageResource(i2);\n if (this.f15655k0 != C2470a.MAP || !z || !this.f15652h0) {\n this.f15650f0.setVisibility(8);\n this.f15640V.setVisibility(0);\n return;\n }\n this.f15650f0.setVisibility(0);\n TextView textView = this.f15650f0;\n textView.setText(m17135b(textView.getContext()));\n this.f15640V.setVisibility(8);\n }", "public IntegerArray scratch(int length, int height, String name);", "public static void lukisImej(BufferedImage image_dest) {\n int w = image_dest.getWidth();\n int h = image_dest.getHeight();\n\n//\t\tfor(int y=0; y<h;y++)\n//\t\t{\n//\t\t\tfor(int x =0 ; x<w; x++)\n//\t\t\t{\n//\t\t\t\tif(image_dest.getRGB(x, y)==-1)\n//\t\t\t\t\tSystem.out.print(\"1\");\n//\t\t\t\telse\n//\t\t\t\t{\n//\t\t\t\t\t//System.err.print(\"X\"+x+\" Y : \"+y);\n//\t\t\t\t\t//return;\n//\t\t\t\t\tSystem.out.print(\"0\");\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tSystem.out.println(\"\");\n//\t\t}\n\n }", "void loadCheckerBoard(int tileSize);", "public static void neighborhoodMaxLowMem(String szinputsegmentation,String szanchorpositions,\n int nbinsize, int numleft, int numright, int nspacing, \n\t\t\t\t\tboolean busestrand, boolean busesignal, String szcolfields,\n\t\t\t\t\tint noffsetanchor, String szoutfile,Color theColor, \n\t\t\t\t\t String sztitle,String szlabelmapping, boolean bprintimage, \n boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n\tboolean bchrommatch = false;//added in 1.23 to check for chromosome matches\n\t//an array of chromosome names\n\tArrayList alchromindex = new ArrayList();\n\n\tString szLine;\n\n\t//stores the largest index value for each chromosome\n\tHashMap hmchromMax = new HashMap();\n\n\t//maps chromosome names to index values\n\tHashMap hmchromToIndex = new HashMap();\n\tHashMap hmLabelToIndex = new HashMap(); //maps label to an index\n\tHashMap hmIndexToLabel = new HashMap(); //maps index string to label\n\t//stores the maximum integer label value\n\tint nmaxlabel=0;\n\tString szlabel =\"\";\n\tBufferedReader brinputsegment = Util.getBufferedReader(szinputsegmentation);\n\n\tboolean busedunderscore = false;\n //the number of additional intervals to the left and right to include\n \n \t//the center anchor position\n\tint numintervals = 1+numleft+numright;\n\n\n\t//this loops reads in the segmentation \n\twhile ((szLine = brinputsegment.readLine())!=null)\n\t{\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t\tif ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t\t{\n\t\t continue;\n\t\t}\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t { \n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegmentation+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n //assumes segments are in standard bed format which to get to \n\t //0-based inclusive requires substract 1 from the end\n\t //int nbegin = Integer.parseInt(st.nextToken().trim())/nbinsize; \n\t st.nextToken().trim();\n\t int nend = (Integer.parseInt(st.nextToken().trim())-1)/nbinsize; \n\t szlabel = st.nextToken().trim();\n\t short slabel;\n\n\t if (bstringlabels)\n\t {\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t }\n\t }\n\n\t if (!busedunderscore)\n\t {\n\t //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t\t nmaxlabel = hmLabelToIndex.size()+1;\n\t\t slabel = (short) nmaxlabel;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t\t }\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t }\n\t catch (NumberFormatException ex2)\n\t {\n\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t }\n\t \n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t\t//System.out.println(\"on chrom \"+szchrom);\n\t\thmchromMax.put(szchrom,Integer.valueOf(nend));\n\t\thmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t\talchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t\tint ncurrmax = objMax.intValue();\n\t\tif (ncurrmax < nend)\n\t\t{\n\t\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t\t}\n\t }\n\t}\n\tbrinputsegment.close();\n\n\t//stores a tally for each position relative to an anchor how frequently the label was observed\n\tdouble[][] tallyoverlaplabel = new double[numintervals][nmaxlabel+1]; \n\n\t//stores a tally for the total signal associated with each anchor position\n\tdouble[] dsumoverlaplabel = new double[numintervals];\n\n //a tally on how frequently each label occurs\n double[] tallylabel = new double[nmaxlabel+1];\n\n\n\tint numchroms = alchromindex.size();\n\n //short[][] labels = new short[numchroms][];\n\n\t//allocates space store all the segment labels for each chromosome\n\tfor (int nchrom = 0; nchrom < numchroms; nchrom++)\n\t{\n \t //stores all the segments in the data\n\t //ArrayList alsegments = new ArrayList();\n\t brinputsegment = Util.getBufferedReader(szinputsegmentation);\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(alchromindex.get(nchrom))).intValue()+1;\n\t short[] labels = new short[nsize];\n\t //this loops reads in the segmentation \n\n\n\t //short[] labels_nchrom = labels[nchrom];\n\t for (int npos = 0; npos < nsize; npos++)\n {\n labels[npos] = -1;\n }\n\t\t\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t //int numlines = alsegments.size();\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t bchrommatch = true;\n //assumes segments are in standard bed format which to get to \n\t //0-based inclusive requires substract 1 from the end\n\t int nbegin = Integer.parseInt(st.nextToken().trim())/nbinsize;\n\t int nend = (Integer.parseInt(st.nextToken().trim())-1)/nbinsize; \n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\t if (nunderscoreindex >=0)\n\t\t {\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t }\n\n\t\t if (!busedunderscore)\n\t\t {\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t }\n\t }\n\t }\n\n\t //this loop stores into labels the full segmentation\n\t //and a count of how often each label occurs\n\t //for (int nindex = 0; nindex < numlines; nindex++)\n\t //{\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t }\n\n\t if (slabel >= 0)\n\t {\n\t tallylabel[slabel]+=(nend-nbegin)+1; \n\t }\t \n\t }\n\t brinputsegment.close();\n\n\n\t RecAnchorIndex theAnchorIndex = getAnchorIndex(szcolfields, busestrand, busesignal);\n\n \t //reads in the anchor position \n BufferedReader brcoords = Util.getBufferedReader(szanchorpositions);\n\t while ((szLine = brcoords.readLine())!=null)\n {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n String szchrom = szLineA[theAnchorIndex.nchromindex]; \n\t if (!szchrom.equals(szchromwant)) \n continue;\n\n\t int nanchor = (Integer.parseInt(szLineA[theAnchorIndex.npositionindex])-noffsetanchor);\n\t boolean bposstrand = true;\n\t if (busestrand)\n\t {\n\t String szstrand = szLineA[theAnchorIndex.nstrandindex];\t \n\t if (szstrand.equals(\"+\"))\n\t {\n\t bposstrand = true;\n\t }\n else if (szstrand.equals(\"-\"))\n {\n \t bposstrand = false;\n\t }\n\t else\n\t {\n \t throw new IllegalArgumentException(szstrand +\" is an invalid strand. Strand should be '+' or '-'\");\n\t\t }\t \n\t }\n\n\t double damount;\n\n\t if ((busesignal)&&(theAnchorIndex.nsignalindex< szLineA.length))\n\t {\n\t damount = Double.parseDouble(szLineA[theAnchorIndex.nsignalindex]);\n\t }\n\t else\n {\n\t damount = 1;\n\t }\n\n\t //updates the tallys for the given anchor position\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n //if (objChrom != null)\n\t //{\n\t // int nchrom = objChrom.intValue();\n\t\t //short[] labels_nchrom = labels[nchrom];\n\n\t if (bposstrand)\n\t {\n\t int ntallyindex = 0;\n\t for(int noffset= -numleft; noffset <= numright; noffset++)\n\t {\n\t\t int nposindex = (nanchor + nspacing*noffset)/nbinsize;\n\n\t\t if ((nposindex >=0)&&(nposindex < labels.length)&&(labels[nposindex]>=0))\n\t\t {\n\t tallyoverlaplabel[ntallyindex][labels[nposindex]] += damount;\t\t \n\t\t }\n\t\t ntallyindex++;\n\t\t }\n\t\t }\n\t else\n\t {\n\t int ntallyindex = 0;\n\t for(int noffset= numright; noffset >= -numleft; noffset--)\n\t {\n\t\t int nposindex = (nanchor + nspacing*noffset)/nbinsize;\n\n\t\t if ((nposindex >=0)&&(nposindex < labels.length)&&(labels[nposindex]>=0))\n\t\t {\n\t tallyoverlaplabel[ntallyindex][labels[nposindex]]+=damount;\t\t \n\t\t }\n\t\t ntallyindex++;\n\t\t }\n\t\t //}\n\t\t }\n\t }\n brcoords.close(); \t \n\t}\n\n\tif (!bchrommatch)\n\t{\n\t throw new IllegalArgumentException(\"No chromosome name matches found between \"+szanchorpositions+\n \" and those in the segmentation file.\");\n\t}\n\n\toutputneighborhood(tallyoverlaplabel,tallylabel,dsumoverlaplabel,szoutfile,nspacing,numright,\n numleft,theColor,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,\n szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }", "@Override\n\tpublic float getHeight() {\n\t\treturn 26;\n\t}", "public short[][] getHue(){ return hue; }", "void ciff_block_1030()\n{\n int key[] = new int[2];\n key[0] = 0x410;\n key[1] = 0x45f3;\n int i, bpp, row, col, vbits=0;\n long bitbuf=0;\n\n get2();\n if ((get4()) != 0x80008 || get4()==0) return;\n bpp = get2();\n if (bpp != 10 && bpp != 12) return;\n for (i=row=0; row < 8; row++)\n for (col=0; col < 8; col++) {\n if (vbits < bpp) {\n\tbitbuf = bitbuf << 16 | (get2() ^ key[i++ & 1]);\n\tvbits += 16;\n }\n white[row][col] = ( char)( bitbuf << (LONG_BIT - vbits) >> (LONG_BIT - bpp));\n vbits -= bpp;\n }\n}", "public int getHeight() {return height;}", "Parallelogram(double l, double w, double h){\n if(l == 0 || w == 0 || h == 0){\n length = width = height = 0; \n }\n else{\n length = l;\n width = w;\n height = h;\n }\n }", "public pr3s1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n prepare();\n }", "int getHeatCode(int x, int y);", "public int[] getLabTaille(){\n\tint [] tab = new int[2];\n\ttab[0] = lab.getHeight();\n\ttab[1] = lab.getWidth();\n\treturn tab;\n }", "public TelaJogos() {\n initComponents();\n setSize(1018,768);\n \n }", "public static void main(String[] args){\n float w = 11.56E2f;\n int hh = (int)w;\n System.out.println(hh);\n \n System.out.println((int)11.56);\n int cents = (int)(11.56 * 100);\n System.out.println(cents);\n System.out.println(4/7.0);\n System.out.println(Math.random());\n \n System.out.println(Toolkit.getDefaultToolkit().getScreenSize());\n int width=1366,height=768;\n Toolkit.getDefaultToolkit().getScreenSize();\n System.out.println(\"Loop to print first 10 numbers\");\n \n int [] number = {1,2,3,4,5,6,7,8,9,10};\n int total = 0;\n for(int n:number){\n total = total + n;\n }\n System.out.println(total);\n\n System.out.println(\"Loop to print first 10 numbers without arrays\");\n int counter = 0;\n for(int i = 0; i<=10; i++){\n counter = counter + i;\n }\n System.out.println(counter);\n }", "public MainFrame() {\n \n /*Integer a = 127;\n Integer b = 127;\n Integer c = 128;\n Integer d = 128;\n System.out.println(a==b);\n System.out.println(c==d);*/\n \n initComponents();\n net = new Hopfield(10, 12);\n net.init();\n net.learn();\n \n \n /*int[][] figure = new int[5][5];\n for (int i=0; i<5; i++)\n for (int j=0; j<5; j++)\n figure[i][j]=-1;\n \n figure[1][3]=1;*/\n \n /*int[][] figure = {\n {-1, -1, -1, -1, -1}, \n {-1, -1, -1, -1, -1},\n {-1, -1, -1, -1, -1},\n {-1, -1, -1, -1, -1},\n {-1, -1, -1, -1, -1}};\n \n figure = net.identify(figure);\n \n for (int i=0; i<5; i++) {\n java.lang.System.out.println();\n for (int j=0; j<5; j++)\n java.lang.System.out.print(figure[i][j]>=0?\"+\"+figure[i][j]+\" \":figure[i][j]+\" \");\n }*/\n \n /*int[][] test_fig = new int[7][7];\n for (int i=0; i<7; i++)\n for (int j=0; j<7; j++)\n test_fig[i][j] = -1;\n test_fig[1][1] = 1;\n test_fig[2][2] = 1;\n test_fig[3][3] = 1;\n test_fig[4][4] = 1;\n test_fig[5][5] = 1;\n test_fig[6][6] = 1;\n test_fig[1][1] = 1;\n test_fig[3][4] = 1;\n test_fig[4][3] = 1;\n test_fig[4][1] = 1;\n \n java.lang.System.out.println(net.getWidth()+\" \"+net.getHeight());\n \n java.lang.System.out.println(\"\\nИзначально\");\n \n for (int i=0; i<7; i++) {\n for (int j=0; j<7; j++) {\n //java.lang.System.out.println(i+\" \"+j);\n if (j==0)\n java.lang.System.out.println();\n if (j>0)\n java.lang.System.out.print(\".\");\n java.lang.System.out.print(test_fig[i][j]==1?\"#\":\"_\");\n }\n }\n \n int[][] res = net.resize(test_fig, 7, 7);\n \n java.lang.System.out.println(\"\\n\\n\\nДо трансформации\");\n \n for (int i=0; i<net.getWidth(); i++) {\n for (int j=0; j<net.getHeight(); j++) {\n if (j==0)\n java.lang.System.out.println();\n if (j>0)\n java.lang.System.out.print(\".\");\n java.lang.System.out.print(res[i][j]==1?\"#\":\"_\");\n }\n }\n \n res = net.identify(res);\n \n java.lang.System.out.println(\"\\n\\n\\nПосле трансформации\");\n \n for (int i=0; i<net.getWidth(); i++) {\n for (int j=0; j<net.getHeight(); j++) {\n if (j==0)\n java.lang.System.out.println();\n if (j>0)\n java.lang.System.out.print(\".\");\n java.lang.System.out.print(res[i][j]==1?\"#\":\"_\");\n }\n }*/\n //net.test_old();\n //net.test();\n buttonGroup.add(rbuttonFonModel);\n buttonGroup.add(rbuttonPorogBit);\n buttonGroup.add(rbuttonPorogColor);\n buttonGroup.add(rbuttonPorogGrey);\n buttonGroup.add(rbuttonPorogColorSubstr);\n buttonGroup.add(rbuttonItog);\n //rbuttonFonModel.setSelected(true);\n //rbuttonPorogBit.setSelected(true);\n rbuttonItog.setSelected(true);\n model.setNet(net);\n }", "public static int[] setup()\r\n\t{\r\n\t\tint[] size = new int[2];\r\n\t\tGraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();\r\n\t\tint width = gd.getDisplayMode().getWidth();\r\n\t\tint length = gd.getDisplayMode().getHeight();\r\n\t\tsize[0] = width;\r\n\t\tsize[1] = length;\r\n\t\treturn size;\r\n\t}", "private void calc_screen_size(){\r\n \tscn_grid.setFont(scn_font);\r\n \tscn_context = scn_grid.getFontRenderContext();\r\n \t scn_layout = new TextLayout(\"X\",scn_font,scn_context);\r\n scn_char_rect = scn_layout.getBlackBoxBounds(0,1).getBounds();\r\n scn_char_height = (int) (scn_char_rect.getHeight()); // RPI 630 was Width in err, 6 to *1.5\r\n \tscn_char_base = scn_char_height/2+1;\r\n \tscn_char_height = scn_char_height + scn_char_base+2;\r\n scn_char_width = (int) (scn_char_rect.getWidth()); // RPI 630 was Height in err\r\n \tscn_height = scn_rows * scn_char_height; // RPI 408 + 5 \r\n \tscn_width = scn_cols * scn_char_width + 3; // RPI 408 + 5 \r\n \tscn_size = new Dimension(scn_width,scn_height);\r\n \tscn_image = new BufferedImage(scn_width,scn_height,BufferedImage.TYPE_INT_ARGB);\r\n \tscn_grid = scn_image.createGraphics();\r\n \tscn_grid.setFont(scn_font); \r\n scn_grid.setColor(scn_text_color);\r\n \t scn_context = scn_grid.getFontRenderContext();\r\n scn_grid.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n }", "private static void arrCHS2LBA(int[][] arr) {\n\t\tfor(int[] chs : arr){\n\t\t\tchs[3] = 255 * 63 * chs[0] + 63 * chs[1] + chs[2] - 1;\n\t\t\tchs[7] = 255 * 63 * chs[4] + 63 * chs[5] + chs[6] - 1 ;\n\t\t}\n\t}", "public static void laukiHorizontalaIrudikatu(int neurria, char ikurra) {\n int altuera=neurria/2;\n int zabalera=neurria;\n for(int i=1; i<=altuera; i++){//altuera\n System.out.println(\" \");\n \n \n for(int j=1; j<=zabalera; j++){//zabalera\n \n System.out.print(ikurra);\n }\n\n}\n }", "private static final byte[] xfplot_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -60, 16, 0, -65,\n\t\t\t\t3, 28, -1, 0, 21, -1, 0, 68, 0, 0, 0, -1, 0, 114, -1, 0, -70,\n\t\t\t\t-18, 0, -1, -1, 0, -27, -52, 0, -1, -78, 0, -1, -121, 0, -1,\n\t\t\t\t59, 0, -1, 93, 0, -1, 0, -112, -1, 0, 102, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n\t\t\t\t0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n\t\t\t\t0, 0, 0, 0, 0, 0, 33, -7, 4, 1, 0, 0, 16, 0, 44, 0, 0, 0, 0,\n\t\t\t\t16, 0, 16, 0, 0, 5, 103, 32, 36, -114, 16, 0, -112, 40, 25,\n\t\t\t\t-84, 65, -102, 10, -80, -112, 14, 36, 97, -33, 40, 61, 22,\n\t\t\t\t-123, -51, -25, 35, -61, -31, -64, 27, 26, 72, 58, 8, -62, 32,\n\t\t\t\t60, 48, 17, 72, 81, 2, 65, 125, 82, 19, 35, 93, 98, 75, -67,\n\t\t\t\t110, -77, 16, -123, 88, -79, -35, -114, 21, -94, -63, -126,\n\t\t\t\t-63, 62, -117, -39, -116, 5, -92, -31, 120, -40, -31, 112, -5,\n\t\t\t\t-61, -47, -128, 12, 6, 122, 11, -126, 11, 122, 127, 72, -128,\n\t\t\t\t15, -126, 118, -122, 46, 127, 14, 14, -116, 46, 35, 13, 125,\n\t\t\t\t41, 33, 0, 59 };\n\t\treturn data;\n\t}", "public void speckle() {\n\t\tint r = (height / res) - 1;\n\t\tint c = (width / res);\n\t\tfor (int i = 0; i < c; i++)\t\t{\n\t\t\tint x = rng.nextInt(25);\t\t\t\n\t\t\tif (x == 0) { // 1/25 chance of changing bottom row pixel to black\t \n\t\t\t\tvalues[r][i] = color1;\t\t\t\t\n\t\t\t}\n\t\t\telse if (x == 1) { // 1/25 chance of changing bottom row pixel to white\n\t\t\t\tvalues[r][i] = color2;\n\t\t\t}\n\t\t\t// 23/25 chance of leaving bottom pixel alone\n\t\t}\n\t}", "public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }", "private Bitmap m14718q() {\n Bitmap a = this.f10962q.mo12204a(this.f10968w, this.f10967v, this.f10969x ? Config.ARGB_8888 : Config.RGB_565);\n m14714a(a);\n return a;\n }", "public static RegionRepeatsBean maxSharedUnigramDensity(String cipher,\n\t\t\tint cipherWidth, int height, int width, boolean minimize) {\n\t\t/** upper left corner range:\n\t\t * \t\trow: [0, cipherHeight-1-height+1]\n\t\t * \t\tcol: [0, cipherWidth-1-width+1]\n\t\t */\n\t\t\n\t\tint cipherHeight = cipher.length()/cipherWidth;\n\t\tint rowBound = cipherHeight-1-height+1;\n\t\tint colBound = cipherWidth-1-width+1;\n\t\t\n\t\tRegionRepeatsBean result = new RegionRepeatsBean();\n\t\tresult.z340 = Ciphers.Z340.equals(cipher);\n\t\t\n\t\tfor (int pos1=0; pos1<cipher.length(); pos1++) {\n\t\t\tint r1 = pos1/cipherWidth;\n\t\t\tint c1 = pos1%cipherWidth;\n\t\t\tif (r1>rowBound || c1>colBound) continue;\n\t\t\tRectangle rect1 = new Rectangle(r1, c1, height, width); \n\t\t\tfor (int pos2=pos1+1; pos2<cipher.length(); pos2++) {\n\t\t\t\tint r2 = pos2/cipherWidth;\n\t\t\t\tint c2 = pos2%cipherWidth;\n\t\t\t\tif (r2>rowBound || c2>colBound) continue;\n\t\t\t\tRectangle rect2 = new Rectangle(r2, c2, height, width); \n\t\t\t\t// check for overlap, using all 4 points of R2\n\t\t\t\tif (rect1.overlap(rect2)) {\n//\t\t\t\t\tSystem.out.println(\"overlap \" + rect1 + \", \" + rect2 + \", \" + rect1.extract(cipher, cipherWidth) +\", \" + rect2.extract(cipher, cipherWidth));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(\"valid \" + rect1 + \", \" + rect2 + \", \" + rect1.extract(cipher, cipherWidth) +\", \" + rect2.extract(cipher, cipherWidth));\n//\t\t\t\tSystem.out.println(\"render(); \" + rect1.render() + \" \" + rect2.render());\n\t\t\t\tString s1 = rect1.extract(cipher, cipherWidth); \n\t\t\t\tString s2 = rect2.extract(cipher, cipherWidth);\n\t\t\t\tdouble density = shared(s1, s2);\n\t\t\t\tdensity /= s1.length();\n\t\t\t\tboolean better = false;\n\t\t\t\tif (result.density == null) better = true;\n\t\t\t\telse if (minimize && density < result.density) better = true;\n\t\t\t\telse if (density > result.density) better = true;\n\t\t\t\tif (better) {\n\t\t\t\t\tresult.rect1 = rect1;\n\t\t\t\t\tresult.rect2 = rect2;\n\t\t\t\t\tresult.density = density;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n//\t\tfor (int r1=0; r1<=rowBound; r1++) {\n//\t\t\tfor (int c1=0; c1<=colBound; c1++) {\n//\t\t\t\tRectangle rect1 = new Rectangle(r1, c1, height, width); \n//\t\t\t\tfor (int r2=0; r2<=rowBound; r2++) {\n//\t\t\t\t\tfor (int c2=0; c2<=colBound; c2++) {\n//\t\t\t\t\t\tRectangle rect2 = new Rectangle(r2, c2, height, width); \n//\t\t\t\t\t\t// check for overlap, using all 4 points of R2\n//\t\t\t\t\t\tif (rect1.overlap(rect2)) {\n////\t\t\t\t\t\t\tSystem.out.println(\"overlap \" + rect1 + \", \" + rect2 + \", \" + rect1.extract(cipher, cipherWidth) +\", \" + rect2.extract(cipher, cipherWidth));\n//\t\t\t\t\t\t\tcontinue;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tSystem.out.println(\"valid \" + rect1 + \", \" + rect2 + \", \" + rect1.extract(cipher, cipherWidth) +\", \" + rect2.extract(cipher, cipherWidth));\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n\t\treturn result;\n\t}", "@Override\n public int getHeight() {\n return 320;\n }", "Length getHeight();", "@Override\n public byte[] getMatrix() {\n return luminances;\n }", "private android.graphics.Bitmap m14713a(com.clevertap.android.sdk.C3072b1 r18, com.clevertap.android.sdk.C3072b1 r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r18\n r2 = r19\n int[] r10 = r0.f10958m\n r11 = 0\n if (r2 != 0) goto L_0x000e\n java.util.Arrays.fill(r10, r11)\n L_0x000e:\n r12 = 3\n r13 = 2\n r14 = 1\n if (r2 == 0) goto L_0x005e\n int r3 = r2.f10976g\n if (r3 <= 0) goto L_0x005e\n if (r3 != r13) goto L_0x0037\n boolean r3 = r1.f10975f\n if (r3 != 0) goto L_0x002c\n com.clevertap.android.sdk.c1 r3 = r0.f10961p\n int r4 = r3.f11004l\n int[] r5 = r1.f10980k\n if (r5 == 0) goto L_0x0033\n int r3 = r3.f11002j\n int r5 = r1.f10977h\n if (r3 != r5) goto L_0x0033\n goto L_0x0032\n L_0x002c:\n int r3 = r0.f10959n\n if (r3 != 0) goto L_0x0032\n r0.f10969x = r14\n L_0x0032:\n r4 = 0\n L_0x0033:\n r0.m14716a(r10, r2, r4)\n goto L_0x005e\n L_0x0037:\n if (r3 != r12) goto L_0x005e\n android.graphics.Bitmap r3 = r0.f10963r\n if (r3 != 0) goto L_0x0041\n r0.m14716a(r10, r2, r11)\n goto L_0x005e\n L_0x0041:\n int r4 = r2.f10973d\n int r5 = r0.f10966u\n int r9 = r4 / r5\n int r4 = r2.f10971b\n int r7 = r4 / r5\n int r4 = r2.f10972c\n int r8 = r4 / r5\n int r2 = r2.f10970a\n int r6 = r2 / r5\n int r5 = r0.f10968w\n int r2 = r7 * r5\n int r4 = r2 + r6\n r2 = r3\n r3 = r10\n r2.getPixels(r3, r4, r5, r6, r7, r8, r9)\n L_0x005e:\n r17.m14715a(r18)\n int r2 = r1.f10973d\n int r3 = r0.f10966u\n int r2 = r2 / r3\n int r4 = r1.f10971b\n int r4 = r4 / r3\n int r5 = r1.f10972c\n int r5 = r5 / r3\n int r6 = r1.f10970a\n int r6 = r6 / r3\n r3 = 8\n int r7 = r0.f10959n\n if (r7 != 0) goto L_0x0077\n r7 = 1\n goto L_0x0078\n L_0x0077:\n r7 = 0\n L_0x0078:\n r3 = 0\n r8 = 1\n r9 = 8\n L_0x007c:\n if (r11 >= r2) goto L_0x0100\n boolean r15 = r1.f10974e\n if (r15 == 0) goto L_0x0098\n r15 = 4\n if (r3 < r2) goto L_0x0095\n int r8 = r8 + 1\n if (r8 == r13) goto L_0x0094\n if (r8 == r12) goto L_0x0091\n if (r8 == r15) goto L_0x008e\n goto L_0x0095\n L_0x008e:\n r3 = 1\n r9 = 2\n goto L_0x0095\n L_0x0091:\n r3 = 2\n r9 = 4\n goto L_0x0095\n L_0x0094:\n r3 = 4\n L_0x0095:\n int r15 = r3 + r9\n goto L_0x009a\n L_0x0098:\n r15 = r3\n r3 = r11\n L_0x009a:\n int r3 = r3 + r4\n int r12 = r0.f10967v\n if (r3 >= r12) goto L_0x00f0\n int r12 = r0.f10968w\n int r3 = r3 * r12\n int r16 = r3 + r6\n int r13 = r16 + r5\n int r14 = r3 + r12\n if (r14 >= r13) goto L_0x00ad\n int r13 = r3 + r12\n L_0x00ad:\n int r3 = r0.f10966u\n int r12 = r11 * r3\n int r14 = r1.f10972c\n int r12 = r12 * r14\n int r14 = r13 - r16\n int r14 = r14 * r3\n int r14 = r14 + r12\n r3 = r16\n L_0x00bc:\n if (r3 >= r13) goto L_0x00f0\n r19 = r2\n int r2 = r0.f10966u\n r16 = r4\n r4 = 1\n if (r2 != r4) goto L_0x00d2\n byte[] r2 = r0.f10957l\n byte r2 = r2[r12]\n r2 = r2 & 255(0xff, float:3.57E-43)\n int[] r4 = r0.f10946a\n r2 = r4[r2]\n goto L_0x00d8\n L_0x00d2:\n int r2 = r1.f10972c\n int r2 = r0.m14712a(r12, r14, r2)\n L_0x00d8:\n if (r2 == 0) goto L_0x00dd\n r10[r3] = r2\n goto L_0x00e6\n L_0x00dd:\n boolean r2 = r0.f10969x\n if (r2 != 0) goto L_0x00e6\n if (r7 == 0) goto L_0x00e6\n r2 = 1\n r0.f10969x = r2\n L_0x00e6:\n int r2 = r0.f10966u\n int r12 = r12 + r2\n int r3 = r3 + 1\n r2 = r19\n r4 = r16\n goto L_0x00bc\n L_0x00f0:\n r19 = r2\n r16 = r4\n int r11 = r11 + 1\n r2 = r19\n r3 = r15\n r4 = r16\n r12 = 3\n r13 = 2\n r14 = 1\n goto L_0x007c\n L_0x0100:\n boolean r2 = r0.f10964s\n if (r2 == 0) goto L_0x0123\n int r1 = r1.f10976g\n if (r1 == 0) goto L_0x010b\n r2 = 1\n if (r1 != r2) goto L_0x0123\n L_0x010b:\n android.graphics.Bitmap r1 = r0.f10963r\n if (r1 != 0) goto L_0x0115\n android.graphics.Bitmap r1 = r17.m14718q()\n r0.f10963r = r1\n L_0x0115:\n android.graphics.Bitmap r1 = r0.f10963r\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n L_0x0123:\n android.graphics.Bitmap r9 = r17.m14718q()\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r1 = r9\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n return r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.clevertap.android.sdk.C3068a1.m14713a(com.clevertap.android.sdk.b1, com.clevertap.android.sdk.b1):android.graphics.Bitmap\");\n }", "public void print1T0255(){\n StringBuilder out = new StringBuilder();\n for (int i = 1; i <= 255; i++){\n out.append( i + \" \");\n }\n System.out.println( out.toString());\n }", "public void sizeOfTiles(int size)\n{\n if(m != null )\n {\n m.getOutputImageManager().setTileSize(size);\n //refresh row shift for new size of tiles\n if(m.getOutputImageManager().getMosaic() != null)\n {\n m.getOutputImageManager().setEvenRowShift(m.getOutputImageManager().getEvenRowShift());\n m.getOutputImageManager().setOddRowShift(m.getOutputImageManager().getOddRowShift());\n m.getOutputImageManager().getMosaic().setHoverIndex(0,0);\n //println(m.getOutputImageManager().getMosaic().getFlipH()[0].length);\n }\n m.getOutputImageManager().setToRerender();\n }\n}", "private void traverseBayeredPatternFullSizeRGB() {\n\n for (int x = 0; x < originalImageHeight -1; x++){\n for (int y = 1; y < originalImageWidth -1; y++){\n Point position = new Point(x,y);\n int absolutePosition = getAbsolutPixelPosition(position);\n\n PixelType pixelType = null;\n\n if (x%2 == 0 && y%2 == 0) pixelType = PixelType.GREEN_TOPRED;\n if (x%2 == 0 && y%2 == 1) pixelType = PixelType.BLUE;\n if (x%2 == 1 && y%2 == 0) pixelType = PixelType.RED;\n if (x%2 == 1 && y%2 == 1) pixelType = PixelType.GREEN_TOPBLUE;\n\n fullSizePixRGB[absolutePosition] = getFullSizeRGB(new Point(x,y),pixelType);\n }\n }\n }", "int getWidth() {return width;}", "public static void main(String[] args) {\n\t\tString[] src = null;\n\t\ttry {\n\t\t\tsrc = Files.lines(Paths.get(\"inputs/day20.txt\"))\n\t\t\t\t\t.map(s -> s.replace(\".\", \"0\").replace(\"#\", \"1\"))\n\t\t\t\t\t.collect(Collectors.joining(\"\\n\"))\n\t\t\t\t\t.split(\"\\n\\n\");\n\t\t}catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tList<Tile> tiles = new ArrayList<Tile>();\n\t\tfor(String s : src) {\n\t\t\tString[] tile = s.split(\":\\n\");\n\t\t\tlong id = Long.parseLong(tile[0].substring(5));\n\t\t\tString[] data = tile[1].split(\"\\n\");\n\t\t\ttiles.add(new Tile(id, data));\n\t\t}\n\t\t\n\t\t/* PART 1 */\n\t\t// Compile all hashes and their mirror images, each paired with its frequency\n\t\tHashMap<Integer,Integer> hashes = new HashMap<Integer,Integer>();\n\t\tfor(Tile t : tiles) {\n\t\t\tList<Integer> h = t.getHashes(); List<Integer> hr = t.getReverseHashes();\n\t\t\tfor(int i = 0; i < h.size(); i++) {\n\t\t\t\tputTileHash(hashes, h.get(i));\n\t\t\t\tputTileHash(hashes, hr.get(i));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// The corner tiles are the 4 tiles such that 2 of their edge hashes match no other hashes\n\t\t// Find these tiles and then the product of their IDs\n\t\tList<Integer> uniqueHashes = hashes.keySet().stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.filter(i -> hashes.get(i) == 1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t\tlong ans = tiles.stream()\n\t\t\t\t\t\t.filter(t -> isCornerTile(t, uniqueHashes))\n\t\t\t\t\t\t.mapToLong(Tile::getID)\n\t\t\t\t\t\t.reduce(1, (x,y) -> x*y);\n\t\tSystem.out.println(ans);\n\t\t\n\t\t// Assemble the image.\n\t\t// Start by placing any of the 4 corner pieces in the top left corner.\n\t\t// Build the first row by matching another tile's edge hash with the rightmost tile's right edge hash.\n\t\t// For subsequent rows, match a tile's edge hash with the bottom hash of the tile above it.\n\t\tIMG_DIM = (int)Math.sqrt(tiles.size());\n\t\tTile[][] img = new Tile[IMG_DIM][IMG_DIM];\n\t\timg[0][0] = tiles.stream()\n\t\t\t\t\t\t .filter(t -> isCornerTile(t, uniqueHashes))\n\t\t\t\t\t\t .findAny()\n\t\t\t\t\t\t .get();\n\t\twhile(!(uniqueHashes.contains(img[0][0].getLHash()) && uniqueHashes.contains(img[0][0].getTHash()))) {\n\t\t\timg[0][0].rotate(1);\n\t\t}\n\t\ttiles.remove(img[0][0]);\n\t\t\n\t\t// First row\n\t\tfor(int col = 1; col < IMG_DIM; col++) {\n\t\t\tIterator<Tile> it = tiles.iterator();\n\t\t\tTile target = null;\n\t\t\tint rHash = img[0][col-1].getRHash();\n\t\t\twhile(target == null) {\n\t\t\t\t// If the tile has a matching hash, flip it such that the existing tile's right hash\n\t\t\t\t// equals the new tile's reverse left hash\n\t\t\t\tTile t = it.next();\n\t\t\t\tif(rHash == t.getTHash()) {\n\t\t\t\t\tt.flipVertical();\n\t\t\t\t\tt.rotate(1);\n\t\t\t\t\ttarget = t;\n\t\t\t\t\t\n\t\t\t\t}else if(rHash == reverse(t.getTHash())) {\n\t\t\t\t\tt.rotate(3);\n\t\t\t\t\ttarget = t;\n\t\t\t\t\n\t\t\t\t}else if(rHash == t.getRHash()) {\n\t\t\t\t\tt.flipHorizontal();\n\t\t\t\t\ttarget = t;\n\t\t\t\t\n\t\t\t\t}else if(rHash == reverse(t.getRHash())) {\n\t\t\t\t\tt.rotate(2);\n\t\t\t\t\ttarget = t;\n\t\t\t\t\n\t\t\t\t}else if(rHash == t.getBHash()) {\n\t\t\t\t\tt.flipHorizontal();\n\t\t\t\t\tt.rotate(1);\n\t\t\t\t\ttarget = t;\n\t\t\t\t\n\t\t\t\t}else if(rHash == reverse(t.getBHash())) {\n\t\t\t\t\tt.rotate(1);\n\t\t\t\t\ttarget = t;\n\t\t\t\t\n\t\t\t\t}else if(rHash == t.getLHash()) {\n\t\t\t\t\tt.flipVertical();\n\t\t\t\t\ttarget = t;\n\t\t\t\t\n\t\t\t\t}else if(rHash == reverse(t.getLHash())) {\n\t\t\t\t\t// do nothing\n\t\t\t\t\ttarget = t;\n\t\t\t\t}\t\n\t\t\t}\n\t\t\timg[0][col] = target;\n\t\t\ttiles.remove(target);\n\t\t}\n\t\t\n\t\t// Rest of the picture\n\t\tfor(int row = 1; row < IMG_DIM; row++) {\n\t\t\tfor(int col = 0; col < IMG_DIM; col++) {\n\t\t\t\tIterator<Tile> it = tiles.iterator();\n\t\t\t\tTile target = null;\n\t\t\t\tint bHash = img[row-1][col].getBHash();\n\t\t\t\twhile(target == null) {\n\t\t\t\t\t// If the tile has a matching hash, flip it such that the existing tile's bottom hash\n\t\t\t\t\t// equals the new tile's reverse top hash\n\t\t\t\t\tTile t = it.next();\n\t\t\t\t\tif(bHash == t.getTHash()) {\n\t\t\t\t\t\tt.flipHorizontal();\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t\t\n\t\t\t\t\t}else if(bHash == reverse(t.getTHash())) {\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t\n\t\t\t\t\t}else if(bHash == t.getRHash()) {\n\t\t\t\t\t\tt.flipHorizontal();\n\t\t\t\t\t\tt.rotate(1);\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t\n\t\t\t\t\t}else if(bHash == reverse(t.getRHash())) {\n\t\t\t\t\t\tt.rotate(3);\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t\n\t\t\t\t\t}else if(bHash == t.getBHash()) {\n\t\t\t\t\t\tt.flipVertical();\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t\n\t\t\t\t\t}else if(bHash == reverse(t.getBHash())) {\n\t\t\t\t\t\tt.rotate(2);\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t\n\t\t\t\t\t}else if(bHash == t.getLHash()) {\n\t\t\t\t\t\tt.flipVertical();\n\t\t\t\t\t\tt.rotate(1);\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t\n\t\t\t\t\t}else if(bHash == reverse(t.getLHash())) {\n\t\t\t\t\t\tt.rotate(1);\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\timg[row][col] = target;\n\t\t\t\ttiles.remove(target);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Build image\n\t\tString[] sea = new String[IMG_DIM * (TILE_DIM-2)];\n\t\tfor(int irow = 0; irow < IMG_DIM; irow++) {\n\t\t\tfor(int trow = 1; trow < TILE_DIM-1; trow++) {\n\t\t\t\tfinal int TROW = trow;\n\t\t\t\tsea[irow*(TILE_DIM-2) + (trow-1)] = Arrays.stream(img[irow])\n\t\t\t\t\t\t\t\t\t\t\t\t\t.map(tile -> tile.getData()[TROW].substring(1, TILE_DIM-1))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.collect(Collectors.joining());\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* PART 2 */\n\t\t// Rotate and flip the sea image until at least one monster is found\n\t\tint[][] monsters = new int[sea.length][sea.length];\n\t\tint iter = 1; boolean done = false;\n\t\twhile(iter <= 8 && !done) {\n\t\t\tfor(int row = 1; row < sea.length-1; row++) {\n\t\t\t\tfor(int col = 0; col < sea.length-20; col++) {\n\t\t\t\t\tif(findMonster(sea, row, col)) {\n\t\t\t\t\t\tdone = true;\n\t\t\t\t\t\tmarkMonster(monsters, row, col);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(done) {break;}\n\t\t\t// Iterate\n\t\t\tif(iter == 4) {\n\t\t\t\tsea = flipGridVertical(sea);\n\t\t\t}else {\n\t\t\t\tsea = rotateGrid(sea);\n\t\t\t}\n\t\t\titer++;\n\t\t}\n\n\t\t// Count unused 1's in the original image\n\t\tfinal String[] SEA = sea;\n\t\tlong roughness = IntStream.rangeClosed(0, SEA.length-1)\n\t\t\t\t\t\t\t.flatMap(i -> IntStream.rangeClosed(0, SEA.length-1)\n\t\t\t\t\t\t\t\t\t\t\t\t.filter(j -> SEA[i].charAt(j) == '1' && monsters[i][j] == 0))\n\t\t\t\t\t\t\t.count();\n\t\tSystem.out.println(roughness);\n\t\t\n\t}", "public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// 3. j=rivit, i=merkit yksittäisellä rivillä\n\t\tfor(int j=0; j<boardMap.size();j++){ \t\t//..rivien lkm (boardMap.size) = alkioiden lkm. \n\t\t\tfor(int i=0; i<boardMap.get(j).length(); i++){\t\t//..merkkien lkm rivillä (alkion Stringin pituus .length)\n\t\t\t\tCharacter hexType = boardMap.get(j).charAt(i);\t//tuodaan tietyltä riviltä, yksittäinen MERKKI hexType -muuttujaan\n\t\t\t\tworld.add(new Hex(i, j, hexType.toString()));\t//Luodaan uusi HEXa maailmaan, Character -merkki muutetaan Stringiksi että Hex konstructori hyväksyy sen.\n\t\t\t}\n\t\t}\n\t\tconvertEmptyHex();\n\t}", "public int getIconHeight()\r\n/* 55: */ {\r\n/* 56:100 */ return SIZE;\r\n/* 57: */ }", "public int getHeight() {\n return numRows+65;\n }", "public void showbitmap3() {\n \n \t}", "public int height();", "public int height();", "public int height();", "public int height();", "private static native long createSuperpixelLSC_0(long image_nativeObj, int region_size, float ratio);", "private void addMinigames(){\n Point a = new Point();\n getWindowManager().getDefaultDisplay().getSize(a);\n Log.d(\"XY\", Integer.toString(a.x)+\" \"+Integer.toString(a.y));\n\n\n\n generateMiniGames();\n\n addFlower();\n\n }", "private void layTiles() {\n board = new Tile[height][width];\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width; j++) {\n layTile(new Tile(i, j));\n }\n }\n }", "public static void main(String[] args){\n\t\t/* \n\t\t * Retrieve the variables for width and height of the dungeon\n\t\t */\n\t\tint width;\n\t\tint height;\n\t\ttry{\n\t\t\twidth = Integer.parseInt(args[0]);\n\t\t\theight = Integer.parseInt(args[1]);\n\t\t} catch(NumberFormatException e) { \n\t\t\tSystem.out.println(\"Invalid width and/or height\");\n\t\t\treturn;\n\t\t}\n\t\t\t\n\t\tchar[][] map = genMap(width, height, 3, 10);\n\t\t\n\t\tfor(int i=0; i<height; i++){\n String line = \"\";\n for(int j=0; j<width; j++){\n line += map[i][j];\n }\n System.out.println(line);\n }\n\t}", "private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }", "private static Map<String, String> m36195a(Rect rect) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"x\", String.valueOf(rect.left));\n hashMap.put(\"y\", String.valueOf(rect.top));\n hashMap.put(\"w\", String.valueOf(rect.right - rect.left));\n hashMap.put(\"h\", String.valueOf(rect.bottom - rect.top));\n return hashMap;\n }", "public static void main (String[] args){\n int y = 1;\n for (y = 1; y <= 4; y++){\n // He usat bucles per no duplicar codi i per optimització.\n int x =1;\n // Bucle\n for (x = 1; x <= 4; x++){\n String abc = \"AAAAABCÇDEEEEEFGHIIIIIJKLMNOOOOOPQRSTUUUUUVWXYZ\"; //47\n int lletra = (int) (abc.length() * Math.random());\n char a = abc.charAt(lletra);\n System.out.print(\"\\u001B[36m\"+a); \n } \n System.out.println(\"\");\n }\n }", "private void initializeHeightData() {\n nineHeights[0] = 1f;\n nineHeights[1] = 0f;\n nineHeights[2] = 1f;\n nineHeights[3] = 0f;\n nineHeights[4] = 0.5f;\n nineHeights[5] = 0f;\n nineHeights[6] = 1f;\n nineHeights[7] = 0f;\n nineHeights[8] = 1f;\n }" ]
[ "0.6417507", "0.57589453", "0.5690522", "0.56811005", "0.5623774", "0.56142783", "0.55995584", "0.55870175", "0.55786365", "0.55520576", "0.5526456", "0.5517668", "0.5499597", "0.5498508", "0.5495123", "0.54620856", "0.54592764", "0.5446553", "0.5426358", "0.54262435", "0.541363", "0.54132855", "0.5396671", "0.5387497", "0.5382423", "0.5358172", "0.5356173", "0.52950746", "0.52931154", "0.52840775", "0.5280864", "0.52627987", "0.5249678", "0.523664", "0.5236376", "0.52355134", "0.52218425", "0.52055824", "0.5201197", "0.52004254", "0.5195823", "0.51941717", "0.5190479", "0.5189694", "0.5186182", "0.5183884", "0.51818717", "0.51802635", "0.5178412", "0.51777494", "0.5173998", "0.5172341", "0.5172059", "0.5166467", "0.5162564", "0.51619774", "0.51592124", "0.5152447", "0.5151344", "0.5149084", "0.51467705", "0.514101", "0.5136401", "0.51350796", "0.5135036", "0.51341265", "0.5132752", "0.51309925", "0.512888", "0.51275843", "0.5125221", "0.51141626", "0.5110392", "0.51097494", "0.51062703", "0.51050377", "0.51045597", "0.50930005", "0.5081701", "0.5074019", "0.50718707", "0.50704473", "0.50703067", "0.50686616", "0.50664866", "0.5064703", "0.50646925", "0.50602233", "0.50584775", "0.505746", "0.505746", "0.505746", "0.505746", "0.5055931", "0.50529325", "0.5051289", "0.50508755", "0.5035991", "0.5033423", "0.5026378", "0.5025615" ]
0.0
-1
player vs brown Meteor
private void collision() { for(int i = 0; i < brownMeteors.length; i++) { if( distance(brownMeteors[i].getLayoutX() + ENTITIES_SIZE/2, brownMeteors[i].getLayoutY() - ENTITIES_SIZE/2, player.getLayoutX() + ENTITIES_SIZE/2, player.getLayoutY() - ENTITIES_SIZE/2) <= ENTITIES_SIZE) { setNewElementPosition(brownMeteors[i]); //Update score - sc.score -= 3 * sc.collisionCounter; sc.collisionCounter++; } } //player vs grey Meteor for(int i = 0; i < greyMeteors.length; i++) { if( distance(greyMeteors[i].getLayoutX() + ENTITIES_SIZE/2, greyMeteors[i].getLayoutY() - ENTITIES_SIZE/2, player.getLayoutX() + ENTITIES_SIZE/2, player.getLayoutY() - ENTITIES_SIZE/2) <= ENTITIES_SIZE) { setNewElementPosition(greyMeteors[i]); //Update score - sc.score -= 3 * sc.collisionCounter; sc.collisionCounter++; } } //laser vs brown Meteor for(int i = 0; i < lasers.size(); i++) { for(int j = 0; j < brownMeteors.length; j++) { // 0 - 2 -> 3elem if(lasers.get(i).getBoundsInParent().intersects(brownMeteors[j].getBoundsInParent())) { // bounds of a node in it's parent coordinates setNewElementPosition(brownMeteors[j]); gamePane.getChildren().remove(lasers.get(i)); lasers.remove(i); System.out.println(lasers.size()); //Update score + sc.score += 1; break; //kein fehler mehr durch index out of bounds verletzung } } } for(int i = 0; i < lasers.size(); i++) { for(int j = 0; j < greyMeteors.length; j++) { // 0 - 2 -> 3elem if(lasers.get(i).getBoundsInParent().intersects(greyMeteors[j].getBoundsInParent())) { // bounds of a node in it's parent coordinates setNewElementPosition(greyMeteors[j]); gamePane.getChildren().remove(lasers.get(i)); lasers.remove(i); System.out.println(lasers.size()); //Update score + sc.score += 1; break; //kein fehler mehr durch index out of bounds verletzung } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Player getCurrentPlayer();", "Player getCurrentPlayer();", "Player getPlayer();", "Player getDormantPlayer();", "BPlayer getPlayer(Player player);", "protected Player getPlayer() { return player; }", "Player currentPlayer();", "@Override\n public void landedOn(Player player) {}", "Player createPlayer();", "public void use(Player player) {\n\n\t}", "public Player getPlayer();", "public Player getPlayer();", "public Player getPlayer() { return player;}", "Player() {\r\n setPlayerType(\"HUMAN\");\r\n\t}", "public Player getPlayer() { return player; }", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "BPlayer getPlayer(UUID uuid);", "public Player getPlayer()\r\n {\r\n return player;\r\n }", "public abstract boolean isPlayer();", "String getPlayer();", "Player getSelectedPlayer();", "public abstract void isUsedBy(Player player);", "@Override\n\tpublic void onRun(PlatformPlayer player) {\n\t\t\n\t}", "public Player getPlayer(){\r\n return player;\r\n }", "public void initPlayer();", "public void setAsPlayer(){\n\t\tthis.isPlayer = true;\n\t}", "void createPlayer(Player player);", "private void setPlayer() {\n player = Player.getInstance();\n }", "public void setOwner(Player player) {\n owner = player;\n }", "public Player getPlayer() {\r\n return player;\r\n }", "public Player getPlayer() {\n return player;\n }", "public UUID getPlayerUuid() { return uuid; }", "public void setPlayer(String player) {\r\n this.player = player;\r\n }", "public void welcomePlayer(Player p);", "public void setSinglePlayer(){\n isSinglePlayer = true;\n }", "void play(boolean fromUser);", "public void setPlayer(Player player) {\r\n this.player = player;\r\n }", "public Player getPlayer() {\n return humanPlayer;\n }", "public EpicPlayer getEpicPlayer(){ return epicPlayer; }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public void setPlayer(Player player) {\n this.player = player;\n }", "public void playerWon()\r\n {\r\n \r\n }", "@Override\n public ArrayList<Player> getPlayers() {return steadyPlayers;}", "public void setPlayer(Player player) {\n this.player = player;\n }", "void updatePlayer(Player player);", "@Override\n\tpublic void setPlayer(Player player) {\n\n\t}", "public void turnToPlay(Player opponent) {\n\n }", "boolean hasPlayerBag();", "public String getPlayer() {\r\n return player;\r\n }", "public void OnPlayer(Joueur joueur);", "public Player getPlayer() {\n return player;\n }", "int remoteTp(Player p1, Player p2);", "@Override\n\tpublic void attiva(Player player) {\n\n\t}", "interface Player {\n /**\n * player playing as hare\n */\n int PLAYER_TYPE_HARE = 100;\n\n /**\n * player playing as hound\n */\n int PLAYER_TYPE_HOUND = 101;\n }", "public void playOne(VirtualPet player) {\n\t\tplayer.playPet();\n\t}", "public void presentPlayer( CoinFlipper theHandle, String theName );", "public Player getOwner() {\n return owner;\n }", "void makePlay(int player) {\n }", "public Player getWinner();", "void initializePlayer();", "public Player updatePlayer(Player player);", "void win(Player player);", "@Override\r\n\tpublic void onPlayerHit(Player p) {\n\r\n\t}", "private void createHumanPlayer() {\n humanPlayer = new Player(\"USER\");\n players[0] = humanPlayer;\n }", "public static void set_players(){\n\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\tbat1=PlayBrain1.myteam[0];\n\t\t\tbat2=PlayBrain1.myteam[1];\n\t\t\tStriker=bat1;\n\t\t\tNonStriker=bat2;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tbat1=PlayBrain1.oppteam[0];\n\t\t\t\tbat2=PlayBrain1.oppteam[1];\n\t\t\t\tStriker=bat1;\n\t\t\t\tNonStriker=bat2;\n\n\t\t\t\t}\n\t}", "@Override\n\tpublic void play() {\n\t\t\n\t}", "void subscribe(Player player);", "@Override\r\n\t\tpublic boolean isPlayer() {\n\t\t\treturn state.isPlayer();\r\n\t\t}", "public boolean checkPlays(Player player){\n return true;\n }", "@Override\n\tpublic void play() {\n\n\t}", "@Override\n\tpublic void loadPlayer() {\n\t\t\n\t}", "public Player getPlayer() {\n return me;\n }", "protected abstract boolean isPlayerActivatable(PlayerSimple player);", "public boolean needPlayer() {\n\t\treturn false;\n\t}", "public int getPlayer()\n {\n return this.player;\n }", "@Override\n\tpublic void updatePlayer(Joueur joueur) {\n\t\t\n\t}", "Player(String playerName) {\n this.playerName = playerName;\n }", "public abstract Player getWinner();", "public Player getWhitePlayer() {\n return whitePlayer;\n }", "public void play(){\n\t\t\n\t}", "@Override\n public void run() {\n if (plugin.getGm().getPlayersInGame().size() < plugin.getAm().getMinPlayers()) {\n plugin.getGm().setCheckStart(true);\n plugin.getServer().getOnlinePlayers().forEach(pl -> pl.setLevel(0));\n GameState.state = GameState.LOBBY;\n cancel();\n return;\n }\n \n plugin.getGm().getPlayersInGame().stream().forEach(players -> {\n plugin.getMsg().sendActionBar(players, \"&a&lEl juego empieza en: \" + count);\n });\n\n switch (count){\n case 30:\n plugin.getMsg().sendBroadcast(\"&7El juego empezará en &c30 &7segundos\");\n break;\n case 5:\n GameState.state = GameState.GAME;\n plugin.getGm().getPlayersInGame().forEach(p -> {\n plugin.getAm().teleport(p);\n TntWars.getPlayer(p).setCleanPlayer(GameMode.SURVIVAL);\n });\n break;\n case 4:\n case 3:\n case 2:\n case 1:\n plugin.getMsg().sendBroadcast(\"&7El juego empezará en &c\" + count + \" &7segundos\");\n plugin.getGm().getPlayersInGame().forEach(p -> p.playSound(p.getLocation(), Sound.NOTE_PLING, 1F, 1F));\n break;\n case 0:\n plugin.getGm().setDañoEnCaida(false);\n\n //Iniciar hilo de la fase de esconder (Ja, still nope)\n new GameTask(plugin).runTaskTimer(plugin, 20, 20);\n cancel();\n break;\n }\n --count; \n }", "public static void main( String[] args )\n { \n \t\n \t\n \tString endPoint;\n \tif (args[0].equals(\"H\"))\n \t{\n \t\tplayer = new Hunter(timetoWall,maxWalls);\n \t endPoint = hunterEndpoint;}\n \t\n \telse\n \t{\n \t\tplayer= new Prey();\n \t\t endPoint = preyEndpoint;}\n \t\n \ttimetoWall = Integer.parseInt(args[1]);\n \tmaxWalls = Integer.parseInt(args[2]);\n\t\tSession session;\n try {\n messageLatch = new CountDownLatch(100);\n\n final ClientEndpointConfig cec = ClientEndpointConfig.Builder.create().build();\n\n ClientManager client = ClientManager.createClient();\n ClientManager client2 = ClientManager.createClient();\n \n Endpoint playersocket = new Endpoint() {\n\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onOpen(Session session, EndpointConfig arg1) {\n\t\t\t\t//\ttry {\n session.addMessageHandler(new MessageHandler.Whole<String>() {\n public void onMessage(String message) {\n System.out.println(\"Received message: \"+message);\n process(message);\n \n messageLatch.countDown();\n }\n });\n\n// }\n\t\t\t\t\t\n\t\t\t\t}\n };\n \n \n Endpoint publisher = new Endpoint() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onOpen(Session session, EndpointConfig arg1) {\n\t\t\t\t//\ttry {\n session.addMessageHandler(new MessageHandler.Whole<String>() {\n public void onMessage(String message) {\n System.out.println(\"Received message: \"+message);\n //System.out.println(\"Prey.java pos:\" + getpreypos(message));\n messageLatch.countDown();\n }\n });\n // SENT_MESSAGE = getPositionsCommand();\n // session.getBasicRemote().sendText(SENT_MESSAGE);\n // SENT_MESSAGE = getWallsCommand();\n // session.getBasicRemote().sendText(SENT_MESSAGE);\n // } catch (IOException e) {\n // e.printStackTrace();\n // }\n\n\t\t\t\t}\n };\n\n \n \t session= client.connectToServer(playersocket, cec, new URI(endPoint));\n \n\n\n client2.connectToServer(publisher, cec, new URI(publisherEndpoint));\n messageLatch.await(100, TimeUnit.SECONDS);\n\n\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\tSENT_MESSAGE = getPositionsCommand();\n\t\t\t\ttry {\n\t\t\t\t\tsession.getBasicRemote().sendText(SENT_MESSAGE);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tSENT_MESSAGE = player. makeMove(hunterPos,preyPos);\n\t\t\t\ttry {\n\t\t\t\t\tsession.getBasicRemote().sendText(SENT_MESSAGE);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\n\n\n \n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n\n\n \n }", "public Player getPlayer() {\n return p;\n }", "public void setPlayer(Player player) {\n\t\tthis.player = player;\r\n\t}", "@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}", "int delay(Player player);", "Collection<User> players();", "public Multi_Player()\r\n {\r\n \r\n }", "public void preparePlayer1()\n {\n Player1 p1 = new Player1();\n addObject(p1, 200, 600);\n }", "public void play() {\n\t\t\r\n\t}", "public interface Player {\n\n\n /**\n * Represents the attack result of random strategy.\n *\n * @return an attack result\n */\n AttackResult randomAttack();\n\n /**\n * Represents the attack result of user strategy.\n *\n * @return an attack result\n */\n AttackResult userAttack();\n\n /**\n * Represents the attack result of smart strategy.\n *\n * @return an attack result\n */\n AttackResult smartAttack();\n\n /**\n * Tells if one of the players has win the game.\n *\n * @return true if wins the game and false otherwise\n */\n boolean winGame();\n\n /**\n * Prints the fleet map.\n *\n * @param printer the printer to print the map\n */\n void printFleet(ConsolePrinter printer);\n\n /**\n * Prints the battle map.\n *\n * @param printer the printer to print the map\n */\n void printBattle(ConsolePrinter printer);\n\n /**\n * Creates a user player.\n *\n * @param randPlace true if place the ship randomly and false to place the ship by the player\n * @param fleetMap the fleet map of the player\n * @param battleMap the battle map of the player\n * @return a new user player\n */\n static Player createUserPlayer(boolean randPlace, FleetMap fleetMap, BattleMap battleMap) {\n return new AbstractPlayer(fleetMap, battleMap, randPlace);\n }\n\n /**\n * Creates a robot player.\n *\n * @param fleetMap the fleet map of the player\n * @param battleMap the battle map of the player\n * @return a new robot player\n */\n static Player createRobotPlayer(FleetMap fleetMap, BattleMap battleMap) {\n return new AbstractPlayer(fleetMap, battleMap, true);\n }\n}", "public static void handleDream(Player player) {\n\t\t\n\t}", "protected abstract Player getModPlayer(String name);", "private Collection<Player> getPlayers() {\n\t\treturn players;\n\t}", "void playerAdded();", "Player getPlayer(UUID playerId);" ]
[ "0.676993", "0.676993", "0.6739606", "0.66821676", "0.6640213", "0.6589297", "0.6569083", "0.6547545", "0.65255815", "0.6501808", "0.644881", "0.644881", "0.6432065", "0.6337774", "0.6328057", "0.6295971", "0.62552947", "0.6141513", "0.6135072", "0.61223245", "0.6099933", "0.6091209", "0.6087978", "0.6082278", "0.6053335", "0.60497206", "0.6021595", "0.60117286", "0.6010124", "0.6008268", "0.60005265", "0.59867376", "0.5975666", "0.59594744", "0.5954077", "0.5953731", "0.5946167", "0.59411716", "0.59385306", "0.59276897", "0.59276897", "0.59276897", "0.59276897", "0.59276897", "0.5927629", "0.58966064", "0.5886595", "0.5881123", "0.58811206", "0.58773774", "0.58662117", "0.58637524", "0.5863008", "0.5856731", "0.58451766", "0.5842757", "0.58354133", "0.5823172", "0.58161217", "0.58101624", "0.5805156", "0.5790811", "0.57894534", "0.5786386", "0.57854325", "0.5774366", "0.5752987", "0.57511234", "0.57437944", "0.5743429", "0.5737119", "0.5734786", "0.5734691", "0.57320577", "0.573198", "0.57260126", "0.57238525", "0.5723765", "0.57219374", "0.5718051", "0.5703577", "0.5701585", "0.57013863", "0.5700423", "0.5695485", "0.5692339", "0.56907344", "0.56885034", "0.56874704", "0.56874704", "0.5685474", "0.5685197", "0.5683839", "0.5673552", "0.5664558", "0.5661114", "0.5660292", "0.56597674", "0.56543124", "0.5651325", "0.5648817" ]
0.0
-1
Create an empty list of String objects HashSet colors = new HashSet(); LinkedHashSet colors = new LinkedHashSet();
public static void main(String[] args) { TreeSet<String> colors = new TreeSet<String>(); System.out.printf("Initial size = %d\n", colors.size()); // Add elements to the set (in this case String objects) colors.add("Red"); colors.add("Green"); colors.add("Blue"); colors.add("Blue"); System.out.println("Colors: " + colors); System.out.printf("Size = %d\n", colors.size()); // now add blue again colors.add("Blue"); System.out.println("Colors: " + colors); System.out.printf("Size = %d\n", colors.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SetTest()\r\n {\r\n List< String > list = Arrays.asList( colors );\r\n System.out.printf( \"ArrayList: %s\\n\", list );\r\n printNonDuplicates( list );\r\n }", "public SetTest()\r\n\t{\r\n\t\tList< String > list = Arrays.asList( colors );\r\n\t\tSystem.out.printf( \"ArrayList: %s\\n\", list );\r\n\t\tprintNonDuplicates( list );\r\n\t\tprintSortedNonDuplicates(list);\r\n\t\t}", "public ColorSet()\n {\n }", "public static void main(String[] args) {\n HashSet<String> hashSet = new HashSet<>();\n hashSet.add(\"Orange\");\n hashSet.add(\"Red\");\n hashSet.add(\"Pink\");\n hashSet.add(\"Red\");\n hashSet.add(\"White\");\n System.out.println(hashSet);\n TreeSet<String> treeSet = new TreeSet<>(hashSet);\n for (String color : treeSet) {\n System.out.println(color);\n }\n\n }", "public ArrayList<String> getColorList()\n {\n \treturn colors;\n }", "private ArrayList<Colours> setColour(){\n\t\tArrayList<Colours> list = new ArrayList<Colours>();\n\t\tlist.add(Colours.RED);\n\t\tlist.add(Colours.BLUE);\n\t\tlist.add(Colours.YELLOW);\n\t\tlist.add(Colours.PINK);\n\t\tlist.add(Colours.GREEN);\n\t\tlist.add(Colours.PURPLE);\n\t\treturn list;\n\t}", "public static List<Color> getColorList(){\n EnumSet<Color> allColor = EnumSet.allOf(Color.class);\n //create a List from the Collection \n return new ArrayList<Color>(allColor);\n //the ArrayList takes a Collection as an argument\n }", "void reset() {\n colorSelectedList = new HashSet<>();\n }", "public static void main(String[] args) {\n\t\tSet<String> colorSet = new HashSet<>();\n\t\tString[] colorArray = { \"red\", \"blue\", \"green\", \"orange\", \"gray\", \"red\" };\n\t\tfor (String color : colorArray) {\n\t\t\tSystem.out.println(colorSet.add(color));\n//\t\t\tcolorSet.add(color);\n\n\t\t}\n\t\tSystem.out.println(colorSet);\n\t\tSortedSet<String> tree = new TreeSet<>(colorSet);\n\t\tSystem.out.println(tree);\n\t\t//[blue, gray, green, orange, red]\n\t\tSystem.out.println(tree.headSet(\"green\"));\n\t\tSystem.out.println(tree.tailSet(\"green\"));\n\t\ttree.add(\"pink\");\n\t\tSystem.out.println(tree);\n\t\tSystem.out.println(tree.first());\n\t\tSystem.out.println(tree.last());\n\n\t}", "protected void setColorList(ArrayList<String> colors)\n {\n \tthis.colors = colors;\n }", "public static void main(String[] args) {\n\t\t\n\t\tHashSet<String> colorSet = new HashSet<>();\n\t\t\n\t\tcolorSet.add(\"Red\");\n\t\tcolorSet.add(\"Pink\");\n\t\tcolorSet.add(\"Yellow\");\n\t\tcolorSet.add(\"White\");\n\t\tcolorSet.add(\"Black\");\n\t\t\n\t\tSystem.out.println(\"Original Hash Set: \" + colorSet);\n\t\tSystem.out.println(\"Size of the Hash Set: \" + colorSet.size());\n\t\t\n\n\t}", "public String listOfColors() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Color> it = colors.iterator(); it.hasNext();){\r\n\t\t\t Color c = (Color) it.next();\r\n \t sb.append(c.toString() + NL);\r\n }\r\n return sb.toString();\r\n }", "public Set<CtColor> getColors() {\n\t\tHashSet<CtColor> hs = new HashSet<CtColor>();\n\t\tint colorIndexArr[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };\n\t\tfor (CtColor chip : chips) {\n\t\t\tcolorIndexArr[chip.getColorNum()] = 1;\n\t\t}\n\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tif (colorIndexArr[i] != 0)\n\t\t\t\ths.add(new CtColor(i));\n\t\t}\n\t\treturn hs;\n\t}", "public ColorList () { \n\t\t\n\t}", "public void setColors(List<Color> colors) {\n this.colors = colors;\n }", "protected HashMap<String,Color> addColors() {\n\t\tHashMap<String,Color> colorChoices = new HashMap<String,Color>();\n\t\tcolorChoices.put(\"RED\", Color.RED);\n\t\tcolorChoices.put(\"BLUE\", Color.BLUE);\n\t\tcolorChoices.put(\"BLACK\", Color.BLACK);\n\t\treturn colorChoices;\n\t}", "public static Set<String> createSet() {\n Set<String> set = new HashSet<>();\n set.add(\"lesson\");\n set.add(\"large\");\n set.add(\"link\");\n set.add(\"locale\");\n set.add(\"love\");\n set.add(\"light\");\n set.add(\"limitless\");\n set.add(\"lion\");\n set.add(\"line\");\n set.add(\"lunch\");\n set.add(\"level\");\n set.add(\"lamp\");\n set.add(\"luxurious\");\n set.add(\"loop\");\n set.add(\"last\");\n set.add(\"lie\");\n set.add(\"lose\");\n set.add(\"lecture\");\n set.add(\"little\");\n set.add(\"luck\");\n\n return set;\n }", "public RandomizedSet() {\n list = new HashSet<>();\n\n }", "public Set<Integer> getColors(){\n Set<Integer> colors = new HashSet<Integer>();\n //for(OTEventModel event : events){\n //\tcolors.add(event.getColor());\n //}\n\n return colors;\n }", "public MyHashSet() {\n s = new ArrayList<>();\n }", "public abstract void tellColorList(ArrayList<String> colors);", "public void setColors(Object colors) {\r\n this.colors = colors;\r\n }", "private ArrayList<Color> createColorArray(){\n ArrayList<Color> out = new ArrayList<>();\n out.add(detectColor((String) Objects.requireNonNull(P1color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P2color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P3color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P4color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P5color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P6color.getSelectedItem())));\n return out;\n }", "public static void main(String[] args) {\n\n Set<String> mySetList = new SetC<>();\n Set<String> hashSetList = new HashSet<>();\n\n\n\n mySetList.add(\"Тест1\"); hashSetList.add(\"Тест1\");\n mySetList.add(\"Тест2\"); hashSetList.add(\"Тест2\");\n mySetList.add(\"Тест3\"); hashSetList.add(\"Тест3\");\n\n\n\n System.out.println(\"mySetList:\"+mySetList+\"\\nhashSetList:\"+hashSetList);\n\n\n\n }", "public void setColor(List<String> colors) {\n\t\tthis.colors = colors;\n\t}", "public RandomizedSet() {\n set = new HashMap<>();\n list = new ArrayList<>();\n }", "public Set() {\n\t\tlist = new LinkedList<Object>();\n\t}", "public RandomizedSet() {\n list = new ArrayList<>();\n map = new HashMap<>();\n }", "public RandomizedSet() {\n m = new HashMap<>();\n l = new ArrayList<>();\n }", "public RandomizedSet() {\r\n set = new HashSet<>();\r\n }", "public static ArrayList<String> getColorsDetected() {\n return colorsDetected;\n }", "public LinkedList<Integer> getCopyOfFamilyColorList() {\n\t\tLinkedList<Integer> copyList = new LinkedList<Integer>();\n\t\tfor (Integer i : familyColorList) {\n\t\t\tcopyList.add(i);\n\t\t}\n\t\treturn copyList;\n\t}", "@Override\r\n\tpublic void tellColorList(ArrayList<String> colors) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t\tsuper.setColorList(colors);\r\n\t}", "private static Set<Colour> players(Colour... colours) {\r\n\t\treturn new HashSet<>(asList(colours));\r\n\t}", "public void deleteColors();", "public ArrayList<Color> userColors() {\r\n int colorIndex;\r\n ArrayList<Color> dest = new ArrayList<Color>();\r\n for (colorIndex = 0; colorIndex < this.colors; colorIndex += 1) {\r\n dest.add(Cnst.colorsToChoose.get(colorIndex));\r\n }\r\n return dest;\r\n }", "public List<Color> getColors() {\n return colors;\n }", "private static HashMap<String, TColor> createColors(){\n\t\tHashMap<String, TColor> iconColors = new HashMap<String, TColor>();\n\t\ticonColors.put(\"Arts & Entertainment\", TColor.newHex(\"E62733\"));\n\t\ticonColors.put(\"College & University\", TColor.newHex(\"E0006D\"));\n\t\ticonColors.put(\"Food\", TColor.newHex(\"917A2C\"));\n\t\ticonColors.put(\"Nightlife Spot\", TColor.newHex(\"582583\"));\n\t\ticonColors.put(\"Outdoors & Recreation\", TColor.newHex(\"00A43C\"));\n\t\ticonColors.put(\"Professional & Other Places\", TColor.newHex(\"00A38C\"));\n\t\ticonColors.put(\"Residence\", TColor.newHex(\"FFED00\"));\n\t\ticonColors.put(\"Shop & Service\", TColor.newHex(\"0067B2\"));\n\t\ticonColors.put(\"Travel & Transport\", TColor.newHex(\"F39200\"));\n//\t\tfor(Entry<String, TColor> e: iconColors.entrySet()){\n//\t\t\te.getValue().saturate(0.15f);\n//\t\t}\n\t\treturn iconColors;\n\t}", "public RandomizedSet() {\n data = new ArrayList<>();\n val2Index = new HashMap<>();\n }", "public static void main(String[] args) {\n TreeSet<String> colorsTreeSet = new TreeSet<String>();\n colorsTreeSet.add(\"Red\");\n colorsTreeSet.add(\"White\");\n colorsTreeSet.add(\"Yellow\");\n colorsTreeSet.add(\"Black\");\n colorsTreeSet.add(\"Green\");\n colorsTreeSet.add(\"Pink\");\n\n System.out.println(\"\\n1. Java program to create a new tree set, add some colors (string) and print out the tree set\\n\" + colorsTreeSet);\n\n//2. Write a Java program to iterate through all elements in a tree set.\n System.out.println(\"\\n2. Java program to iterate through all elements in a tree set\");\n for (String element : colorsTreeSet) {\n System.out.print(element + \", \");\n }\n//3. Write a Java program to add all the elements of a specified tree set to another tree set.\n TreeSet<String> colorsTreeSet2 = new TreeSet<String>();\n colorsTreeSet2.addAll(colorsTreeSet);\n System.out.println(\"\\n\\n3. Java program to add all the elements of a specified tree set to another tree set.\\n\" + colorsTreeSet2);\n\n//4. Write a Java program to create a reverse order view of the elements contained in a given tree set.\n Iterator it = colorsTreeSet.descendingIterator();\n System.out.println(\"\\n4. Java program to create a reverse order view of the elements contained in a given tree set.\");\n while (it.hasNext()) {\n System.out.print(it.next() + \", \");\n }\n\n//5. Write a Java program to get the first and last elements in a tree set.\n System.out.println(\"\\n\\n5. Java program to get the first and last elements in a tree set.\");\n Object first_element = colorsTreeSet.first();\n System.out.println(\"The first element is: \" + first_element);\n\n // Find last element of the tree set\n Object last_element = colorsTreeSet.last();\n System.out.println(\"The last element is: \" + last_element);\n\n//6. Write a Java program to clone a tree set list to another tree set.\n TreeSet<String> cloneColors = (TreeSet<String>) colorsTreeSet.clone();\n System.out.println(\"\\nJava program to clone a tree set list to another tree set.\\n\" + cloneColors);\n\n//7. Write a Java program to get the number of elements in a tree set.\n System.out.println(\"\\nJava program to get the number of elements in a tree set.\\n\" + cloneColors.size());\n\n//8. Write a Java program to compare two tree sets.\n System.out.println(\"\\n8. Java program to compare two tree sets.\");\n TreeSet<String> compareColors = new TreeSet<String>();\n for (String element : colorsTreeSet) {\n System.out.println(cloneColors.contains(element) ? \"Yes\" : \"No\");\n }\n\n //9. Write a Java program to find the numbers less than 7 in a tree set.\n System.out.println(\"\\n9. Java program to find the numbers less than 7 in a tree set.\");\n\n TreeSet<Integer> treeSetNum = new TreeSet<Integer>();\n TreeSet<Integer> treeheadset = new TreeSet<Integer>();\n\n // Add numbers in the tree\n treeSetNum.add(1);\n treeSetNum.add(2);\n treeSetNum.add(3);\n treeSetNum.add(5);\n treeSetNum.add(6);\n treeSetNum.add(7);\n treeSetNum.add(8);\n treeSetNum.add(9);\n treeSetNum.add(10);\n\n treeheadset = (TreeSet) treeSetNum.headSet(7);\n\n Iterator iterator;\n iterator = treeheadset.iterator();\n\n while (iterator.hasNext()) {\n System.out.print(iterator.next() + \", \");\n }\n\n//10. Write a Java program to get the element in a tree set which is greater than or equal to the given element.\n System.out.println(\"\\n\\n10. Java program to get the element in a tree set which is greater than or equal to the given element.\");\n int element = 5;\n int i = treeSetNum.ceiling(element);\n\n System.out.println(\"Greater than or equal \" + element + \" is: \" + i);\n\n//11. Write a Java program to get the element in a tree set which is less than or equal to the given element.\n System.out.println(\"\\n11. Java program to get the element in a tree set which is less than or equal to the given element.\");\n int element2 = 6;\n int j = treeSetNum.floor(element2);\n\n System.out.println(\"GLess than or equal to \" + element2 + \" is: \" + j);\n\n//12. Write a Java program to get the element in a tree set which is strictly greater than or equal to the given element.\n System.out.println(\"\\n12. Java program to get the element in a tree set which is strictly greater than or equal to the given element.\");\n int element3 = 4;\n int a = treeSetNum.higher(element3);\n\n System.out.println(\"Strictly greater than \" + element3 + \" is: \" + a);\n\n//13. Write a Java program to get an element in a tree set which is strictly less than the given element.\n System.out.println(\"\\n13. Java program to get an element in a tree set which is strictly less than the given element.\");\n int element4 = 4;\n int b = treeSetNum.lower(element4);\n\n System.out.println(\"Strictly less than \" + element4 + \" is: \" + b);\n\n//14. Write a Java program to retrieve and remove the first element of a tree set.\n System.out.println(\"\\n14. Removes the first element:\\n\" + colorsTreeSet.pollFirst());\n\n//15. Write a Java program to retrieve and remove the last element of a tree set.\n System.out.println(\"\\n15. Removes the last element:\\n\" + colorsTreeSet.pollLast());\n\n//16. Write a Java program to remove a given element from a tree set.\n if (treeSetNum.remove(8)) {\n System.out.println(\"\\n16. Java program to remove a given element from a tree set.\\n\" + treeSetNum);\n } else {\n System.out.println(\"\\n16. Java program to remove a given element from a tree set.\\n\" + \"Element isn't correct\");\n }\n }", "public MyHashSet() {\n \n }", "public TetrisColors() {\n\t\treset();\t\n\t}", "public static void main(String[] args) {\n\t\tHashSet<String> obj = new HashSet<String>();\n\t\t\n\t\tobj.add(\"Apple\");\n\t\tobj.add(\"Mango\");\n\t\tobj.add(\"Grapes\");\n\t\t\n\t\t//adding duplicate elements\n\t\tobj.add(\"Mango\");\n\t\tobj.add(\"Grapes\");\n\t\t\n\t\tobj.add(null);\n\t\tobj.add(null);\n\t\t\n\t\tSystem.out.println(obj);\n\t\t\n\t\t\t\t\n\t}", "public Color[] getColors()\n {\n return colors;\n }", "public List<String> getColor() {\n\t\treturn this.colors;\n\t}", "private void addColors() {\n colors.add(Color.GRAY);\n colors.add(Color.BLUE);\n colors.add(Color.DKGRAY);\n colors.add(Color.CYAN);\n colors.add(Color.MAGENTA);\n //Zijn voorlopig maar 5 kleuren, kan altijd makkelijk meer doen, wil ook liever hex-based kleuren gaan gebruiken.\n }", "public static void main(String[] args) {\n Set<Integer> set = new HashSet<>();\n\n\n // elementy w secie nie są poukładane\n set.add(1);\n set.add(2);\n set.add(3);\n set.add(4);\n set.add(5);\n set.add(5);\n set.add(5);\n set.add(null);\n set.add(null);\n System.out.println(set);// elementów: 6\n\n\n\n Set<String> setString = new HashSet<>();\n\n List<Integer> ar = new ArrayList<>();\n }", "public DesignHashSet() {\n map=new HashMap<>();\n }", "public RandomizedSet() {\n // public RandomizedSet1() {\n lst = new ArrayList<>();\n rand = new Random();\n map = new HashMap<>();\n }", "public static HashSet<Word> createHashSet (Scanner input){\n HashSet<Word> temp = new HashSet<>();\n while (input.hasNext()){\n Word inputWord = new Word(input.next());\n temp.add(inputWord);\n }\n return temp;\n }", "private static void initializeAllGenresList(){\n\t\tfor(int i = 0; i < 13; i ++){\n\t\t\tALL_GENRES.add(new HashSet<String>());\n\t\t}\n\t}", "public Palette() {\n\t\tpaletteOfColorsHex = new ArrayList<>();\n\t\torderedOutputColors = new HashMap<>();\n\t\timgLuminanceIdxs = new HashMap<>();\n\t}", "public RandomizedSet() {\n set = new HashSet<Integer>();\n }", "public void question4(List<String> input){\n Set<String> s = new HashSet<>(input);\n }", "private void initColorAr() {\n\t\tcolorAr = new ArrayList<Color>();\n\t\tcolorAr.add(Color.black);\n\t\tcolorAr.add(Color.green);\n\t\tcolorAr.add(Color.red);\n\t\tcolorAr.add(Color.blue);\n\t\tcolorAr.add(Color.white);\n\t\tcolorAr.add(Color.orange);\n\t\tcolorAr.add(Color.pink);\n\t\tcolorAr.add(Color.cyan);\n\t\tcolorAr.add(Color.darkGray);\n\t\tcolorAr.add(Color.gray);\n\t\tcolorAr.add(Color.magenta);\n\t\tcolorAr.add(Color.yellow);\n\t\tr = new Random();\n\t}", "public Board(String[] colors){\n for(int i = 0; i<156; i++){\n spaces.add(colors[i%6]); //loops through the colors and adds them all to a list\n }\n }", "public void clearColors() {\r\n colors.clear();\r\n }", "private void populatesetlist() {\n\t\tmyset.add(new set(\"Password\", R.drawable.passwordop, \"hello\"));\n\t\tmyset.add(new set(\"Help\", R.drawable.helpso4, \"hello\"));\n\t\tmyset.add(new set(\"About Developers\", R.drawable.aboutusop2, \"hello\"));\n\t\tmyset.add(new set(\"Home\", R.drawable.homefi, \"hello\"));\n\t}", "public void setColors(Color[] colors)\n {\n this.colors = colors;\n }", "public RandomizedSet() {\n this.valueToIndex = new HashMap<>();\n this.values = new ArrayList<>();\n this.random = new Random();\n }", "public ListSet() {\n lists = new TernarySearchTree<>();\n }", "public RandomizedSet() {\n data=new ArrayList<>();\n valueIndex=new HashMap<>();\n random=new Random();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic DesignHashSet() {\n\t\t// Array of ArrayLists.\n\t\tset = (List<Integer>[]) new ArrayList[MAX_LEN];\n\t}", "public static void populateColors() {\n colors.put(0,Color.rgb(238, 228, 218, 0.35)); //empty tile\n colors.put(2, Color.rgb(238, 228, 218));\n colors.put(4, Color.rgb(237, 224, 200));\n colors.put(8,Color.rgb(242, 177, 121));\n colors.put(16, Color.rgb(245, 149, 99));\n colors.put(32,Color.rgb(246, 124, 95));\n colors.put(64,Color.rgb(246, 94, 59));\n colors.put(128,Color.rgb(237, 207, 114));\n colors.put(256,Color.rgb(237, 204, 97));\n colors.put(512,Color.rgb(237, 200, 80));\n colors.put(1024,Color.rgb(237, 197, 63));\n colors.put(2048,Color.rgb(237, 194, 46));\n colors.put(4096,Color.rgb(237, 194, 46));\n colors.put(8192,Color.rgb(237, 194, 46));\n\n }", "public static <T> HashSet<T> createHashSet() {\n \t\treturn new HashSet<T>();\n \t}", "public Color[] getColors();", "public static Set<String> getHashtagList(String tweet) {\n\t\tPattern MY_PATTERN = Pattern.compile(\"#(\\\\S+)\");\n\t\tMatcher mat = MY_PATTERN.matcher(tweet);\n\t\tSet<String> strs = new HashSet<String>();\n\t\twhile (mat.find()) {\n\t\t\tString hashTag = removeSharp(mat.group(1));\n\t\t\tif (validateHashTag(hashTag))\n\t\t\t\tstrs.add(hashTag);\n\t\t}\n\t\treturn strs;\n\t}", "private Colors ingameColor() {\n\t\tList<Colors> colors = new ArrayList<Colors>();\n\t\tIterator<Sphere> it = this.spheres.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tSphere s = it.next();\n\t\t\tif (!colors.contains(s.color())) {\n\t\t\t\tcolors.add(s.color());\n\t\t\t}\n\t\t}\n\t\treturn colors.get(MathUtils.random(colors.size() - 1));\n\t}", "public void fillColours() {\n this.colours = new String[4];\n this.colours[0] = \"diamonds\";\n this.colours[1] = \"hearts\";\n this.colours[2] = \"spades\";\n this.colours[3] = \"clubs\";\n }", "public static <T> Set<T> CreateLinkedHashSet() {\n return new LinkedHashSet<>();\n }", "private static HashSet<String> set(String... s)\r\n {\r\n return new HashSet<>(Arrays.asList(s));\r\n }", "public static void main(String[] args) {\n\t\tSet<String> set=new HashSet<>();\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t\r\nSystem.out.println(set.size());\r\n\t\t/*for(Object o: set){\r\n\t\t\t\r\n\t\t\tSystem.out.println((String)o);\r\n\t\t\tset.add(\"test\");\r\n\t\t}*/\r\n\tIterator it=set.iterator();\r\n\t while(it.hasNext()){\r\n\t\t System.out.println(it.next());\r\n\t\t it.remove();\r\n\t }\r\n\t}", "public Collection(char colour) { /* ... code ... */ }", "private void initPieceColors(){\n\t\tfor(Piece p : this.pieces)\n\t\t\tpieceColors.put(p, Utils.randomColor());\n\t}", "public static void main(String[] args) {\n ArrayList<String>colors= new ArrayList<>();\n colors.add(\"red\");\n colors.add(\"green\");\n colors.add(\"Orange\");\n colors.add(\"white\");\n colors.add(\"black\");\n System.out.println(\"list before shuffling: \" + colors );\n Collections.shuffle(colors);\n System.out.println(\"list after shuffling:\" + colors);\n\n\n\n }", "public static void main(String[] args) {\nString str = \"java,C, Java\";\r\nStringBuffer sf = new StringBuffer();\r\nSet<Character> set = new HashSet<>();\r\nfor(int i=0;i<str.length();i++)\r\n{\r\nchar c=str.charAt(i);\r\nif(!set.contains(c))\r\n{\r\nset.add(c);\r\n//System.out.println(set);\r\n\r\nsf.append(c);\r\n\r\n//Set s = new Set();\r\n}\r\n}\r\nSystem.out.println(set);\r\nSystem.out.println(sf.toString());\r\n}", "@Override\n public int hashCode() {\n return strings.hashCode();\n }", "public static void main(String[] args)\n {\n\n HastTable<String> wordset = new HastTable<>();\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n// wordset.add(\"pink\");\n// wordset.add(\"yellow\");\n// wordset.add(\"purple\");\n// wordset.add(\"red\");\n// wordset.add(\"black\");\n\n System.out.println(\"Before reshash(): \" + wordset.toString());\n\n wordset.add(\"purple\");\n wordset.add(\"orange\");\n\n System.out.println(\" After reshash(): \" + wordset.toString());\n System.out.println(\"remove(red): \" + wordset.remove(\"red\"));\n System.out.println(\"size(): \" + wordset.size());\n\n for (String word: wordset)\n {\n System.out.println(word);\n //wordset.remove(\"pink\");\n }\n\n\n HastTable<Integer> intSet = new HastTable<>();\n intSet.add(13);\n intSet.add(1);\n intSet.add(14);\n intSet.add(18);\n // intSet.add(13);\n intSet.add(59);\n intSet.add(44);\n System.out.println(\"Before reshash(): \" + intSet.toString());\n\n intSet.add(12);\n intSet.add(85);\n // intSet.add(55);\n // intSet.add(78);\n // intSet.add(71);\n // intSet.add(16);\n\n// intSet.add(9);\n// intSet.add(34);\n System.out.println(\"After reshash(): \" + intSet.toString());\n\n\n }", "public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}", "public static void main(String[] args)\r\n\t{\r\n\t\r\n\t\tSet<String> lhs = new LinkedHashSet<>();\r\n\t\tlhs.add(\"Srividhya\");\r\n\t\tlhs.add(\"Srinath\");\r\n\t\tlhs.add(\"Shringesh\");\r\n\t\tlhs.add(\"Srividhya\");\r\n\t\tlhs.add(null);\r\n\t\t\r\n\t\tfor (String lhselement : lhs)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"print the linked hasset elemenet :\"+lhselement);\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "public RandomizedSet() {\n map = new HashMap<>();\n }", "public StringSet() {\r\n\t\tsuper();\r\n\t}", "public InternalWorkingOfHashSet() {\r\n map = new HashMap<>();\r\n }", "public RandomizedSet() {\r\n rehash(16, null);\r\n random = new Random();\r\n }", "public static void main(String[] args) {\n\t\tSet dat=new HashSet();\r\n\t\tdat.add(\"Hello\");\r\n\t\tdat.add(\"hello\");\r\n\t\tdat.add(\"hello\");\r\n\t\tdat.add(7);\r\n\t\tdat.add(null);\r\n\t\tfor(Object o:dat)\r\n\t\t{\r\n\t\t\tSystem.out.println(o);\r\n\t\t}\r\n\t}", "public RandomizedSet() {\n realSet = new HashSet<>();\n allSet = new Integer[10];\n random = new Random();\n }", "public MyHashTableCC(){\n\t\tm_arraylists = new MyArraylist[DIFF_CHARACTERS];\n\n\t\tfor (int i = 0; i < m_arraylists.length; i++){\n\t\t\tm_arraylists[i] = new MyArraylist();\n\t\t}\n\t}", "public RandomizedSet() {\n nums = new ArrayList<Integer>();\n location = new HashMap<Integer, Integer>();\n }", "public HashSet(int c){\n @SuppressWarnings(\"unchecked\")\n LinkedList<E>[] tmp = new LinkedList[c];\n this.data = tmp;\n this.buckets = c;\n this.clear();\n }", "@Override\n public int hashCode() {\n return Objects.hash(color,id);\n }", "void mo30185a(HashSet<zzawj> hashSet);", "public MyHashSet() {\n nodes = new Node[Max_Size];\n }", "public OpenHashSet() {\n super();\n linkedListStrings = new LinkedListString[INITIAL_CAPACITY];\n\n\n }", "public static void main(String[] args) {\n\t\tHashSet set1 = new HashSet();\n\n\t\t/*\n\t\t * It creates empty HS object with specified initial capacity and\n\t\t * default fill ratio 0.75. \n\t\t * HashSet set2 = new HashSet(int initialCapacity);\n\t\t */\n\t\tHashSet set2 = new HashSet(20);\n\n\t\t/*\n\t\t * It creates equivalent HS object for given Collection\n\t\t * HashSet set3 = new HashSet(Collection c);\n\t\t */\n\t\tArrayList list = new ArrayList();\n\t\tlist.add(1);\n\t\tlist.add(1);\n\t\tSystem.out.println(\"List is \" + list);\n\t\tHashSet set3 = new HashSet(list);\n\t\tSystem.out.println(\"equivalent HashSet is \" + set3);\n\n\t}", "StringList createStringList();", "public RandomizedSet() {\n map = new HashMap<Integer, Integer>();\n set = new ArrayList<Integer>();\n int validLength = 0;\n }", "@Override\n public int hashCode() {\n int hash = 5;\n hash = 11 * hash + Objects.hashCode(this.color);\n return hash;\n }", "public void HashsetBasicExanple() {\n\t\t\n\t\tHashSet<String> hs = new HashSet<String>();\n\t\ths.add(\"Sudha\");\n\t\ths.add(\"Yog\");\n\t\ths.add(\"Sathya\");\n\t\ths.add(\"Sadhana\");\n\t\ths.add(null);\n\t\ths.add(\"Aadhav\");\n\t\ths.add(\"Yog\");\n\t\t\n\t\t//Insertion order is not mainted and duplicate value is not allowed.\n\t\tSystem.out.println(hs);//[Yog, null, Sudha, Sathya, Aadhav, Sadhana]\n\t\t\n\t\tSystem.out.println(hs.contains(null));//true\n\t\t\n\t\ths.remove(null);\n\t\tSystem.out.println(hs);//[Yog, Sudha, Sathya, Aadhav, Sadhana]\n\t\t\n\t\tHashSet<String> hs1 = new HashSet<String>();\n\t\ths1.add(\"a\");\n\t\ths1.add(\"b\");\n\t\ths1.add(\"c\");\n\t\ths1.add(\"e\");\n\t\tSystem.out.println(hs1);//[a, b, c, e]\n\t\t\n\t\ths.addAll(hs1);\n\t\tSystem.out.println(hs);//[Yog, a, b, Sudha, c, Sathya, e, Aadhav, Sadhana]\n\t\t\n\t\tSystem.out.println(hs.containsAll(hs1));//true\n\t\t\n\t\t\n\t\t//Iterator using iterator\n\t\t\n\t\tIterator<String> iterator = hs.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\tSystem.out.println(\"Iterate using Iterator \" + iterator.next());\t\n\t\t}\n\t}", "public RandomizedSet() {\n\n\n sub =new ArrayList<Integer>();\n hm=new HashMap<Integer,Integer>();\n rand =new Random();\n\n }", "private static Collection<Point> initializeCenters(int count) {\n\t\tif(count > CLUSTER_COLORS.length){\n\t\t\tthrow new IllegalStateException(\"not enough colors...\");\n\t\t}\n\t\t\n\t\tCollection<Point> result = new HashSet<Point>();\n\t\tRandom r = new Random();\n\t\t\n\t\tfor(int i = 0; i < count; i++){\n\t\t\tPoint p = new Point(r.nextInt(400), r.nextInt(400));\n\t\t\tp.setColor(CLUSTER_COLORS[i]);\n\t\t\tresult.add(p);\n\t\t}\n\t\treturn result;\n\t}" ]
[ "0.7541255", "0.74100065", "0.6552918", "0.6501312", "0.64681625", "0.6448501", "0.64100707", "0.63919663", "0.6358987", "0.6260158", "0.61634624", "0.6162443", "0.61463946", "0.612157", "0.61072135", "0.6095918", "0.6051816", "0.6044916", "0.60364604", "0.6030263", "0.6028364", "0.59801066", "0.5958158", "0.59509885", "0.5944647", "0.5919036", "0.5843975", "0.5836619", "0.58309734", "0.58261746", "0.5754769", "0.5738434", "0.5705436", "0.5696967", "0.56968015", "0.5694115", "0.56690145", "0.56618243", "0.56603044", "0.56407076", "0.5595724", "0.5590242", "0.55517626", "0.55400103", "0.5534451", "0.5528011", "0.5521285", "0.55167603", "0.55152965", "0.55030215", "0.55017716", "0.5497178", "0.549472", "0.5473097", "0.5471978", "0.5469655", "0.5456306", "0.54527724", "0.54522306", "0.54510874", "0.54435056", "0.5424903", "0.5423997", "0.5423083", "0.54211104", "0.5404824", "0.54008377", "0.5382866", "0.53720367", "0.53627366", "0.5361113", "0.53608906", "0.5360375", "0.5354499", "0.53450644", "0.53424406", "0.5331279", "0.5327446", "0.53198427", "0.5317691", "0.5313781", "0.5309763", "0.5305083", "0.53006566", "0.52952224", "0.5294434", "0.5293264", "0.5291207", "0.5291071", "0.52862227", "0.5279345", "0.52667415", "0.52460724", "0.52317905", "0.522859", "0.5228204", "0.52247983", "0.5224143", "0.52141553", "0.52094704" ]
0.59823656
21
Test to see if sentinels are in the list, and that removing items not in the list works. Copy this file and write additional tests as well! NOTE: This means your implementation must have sentinel nodes, with minimum and maximum values at the beginning and end respectively.
public void run() { // Child threads start here to begin testing-- tests are below // We suggest writing a series of zero-sum tests, // i.e. lists should be empty between tests. // The interimBarr enforces this. try { containsOnEmptyListTest(); interimBarr.await(); sentinelsInEmptyListTest(); printResBarr.await(); } catch (Exception e) { System.out.println(e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testRemoveAll_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "@Test\n public void testRemoveAll_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "public static boolean testAlphabetListRemove() {\r\n AlphabetList list1 = new AlphabetList();\r\n AlphabetList list2 = new AlphabetList();\r\n AlphabetList list3 = new AlphabetList();\r\n AlphabetList list4 = new AlphabetList();\r\n AlphabetList list5 = new AlphabetList();\r\n \r\n // Try removing a cart (at position index 0) from a list which contains only one cart;\r\n list1.add(new Cart(\"D\"));\r\n if (list1.size() != 1)\r\n return false;\r\n list1.remove(0);\r\n if (!list1.readForward().equals(\"\"))\r\n return false;\r\n if (!list1.readBackward().equals(\"\"))\r\n return false;\r\n try {\r\n //Try to remove a cart (position index 0) from a list which contains at least 2 carts;\r\n list2.add(new Cart(\"A\"));\r\n if (list2.size() != 1)\r\n return false;\r\n list2.add(new Cart(\"Z\"));\r\n if (list2.size() != 2)\r\n return false;\r\n list2.remove(0);\r\n if (!list2.readForward().equals(\"Z\"))\r\n return false;\r\n if (!list2.readBackward().equals(\"Z\"))\r\n return false;\r\n // Try to remove a cart from the middle of a non-empty list containing at least 3 carts;\r\n list3.add(new Cart(\"C\"));\r\n if (list3.size() != 1)\r\n return false;\r\n list3.add(new Cart(\"F\"));\r\n if (list3.size() != 2)\r\n return false;\r\n list3.add(new Cart(\"G\"));\r\n if (list3.size() != 3)\r\n return false;\r\n list3.remove(1);\r\n if (!list3.readForward().equals(\"CG\"))\r\n return false;\r\n if (!list3.readBackward().equals(\"GC\"))\r\n return false;\r\n // Try to remove the cart at the end of a list containing at least two carts.\r\n list4.add(new Cart(\"C\"));\r\n if (list4.size() != 1)\r\n return false;\r\n list4.add(new Cart(\"F\"));\r\n if (list4.size() != 2)\r\n return false;\r\n list4.remove(list4.size() - 1);\r\n if (!list4.readForward().equals(\"C\"))\r\n return false;\r\n if (!list4.readBackward().equals(\"C\"))\r\n return false;\r\n // Try to remove a cart from a list containing only one cart.\r\n list5.add(new Cart(\"C\"));\r\n if (list5.size() != 1)\r\n return false;\r\n list5.remove(list5.size() - 1);\r\n if (!list5.readForward().equals(\"\"))\r\n return false;\r\n if (!list5.readBackward().equals(\"\"))\r\n return false;\r\n \r\n // Try removing a cart from an empty list or pass a negative index to AlphabetList.remove()\r\n // method;\r\n list1.remove(-1);\r\n } catch (IndexOutOfBoundsException e) {\r\n if (e.getMessage() == \"Invalid index.\")\r\n return true;\r\n } catch (NullPointerException e) {\r\n return true;\r\n }\r\n\r\n return true;\r\n }", "@Test\n public void testRemove_Not_Contains_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Integer item = 2;\n boolean expResult = false;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "@Test\n public void testRemoveAll_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "@Test\n public void testRemove_Contains_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Integer item = 1;\n boolean expResult = true;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "@Test public void testPublic9() {\n Graph<Character> graph= TestGraphs.testGraph3();\n char[] toRemove= {'I', 'H', 'B', 'J', 'C', 'G', 'E', 'F'};\n int i;\n\n for (i= 0; i < toRemove.length; i++) {\n graph.removeVertex(toRemove[i]);\n assertFalse(graph.hasVertex(toRemove[i]));\n }\n }", "@Test\n public void testRemoveAll_Not_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "public void testIsEmpty() {\r\n assertTrue( list.isEmpty());\r\n list.add(\"A\");\r\n assertFalse(list.isEmpty());\r\n }", "@Test\r\n public void removeAll() throws Exception {\r\n\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(4);\r\n l.add(2);\r\n check.removeAll(l);\r\n assertFalse(check.containsAll(l));\r\n assertFalse(check.contains(2));\r\n assertFalse(check.contains(4));\r\n assertTrue(check.contains(1));\r\n assertTrue(check.contains(3));\r\n assertTrue(check.contains(5));\r\n }", "@Test\n public void testRemoveAll() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "public void testPlaysWellWithOthers() {\n final List<String> l = new ArrayList<String>();\n for (int i = 0; i < 100; i++) {\n l.add(String.valueOf(i));\n }\n\n final PrefixTree tree = new PrefixTree();\n tree.addAll(l);\n\n assertTrue(\"Not all elements copied\", tree.size() == l.size());\n testSizeByIterator(tree);\n\n assertTrue(\"Original list does not contain all of the tree\",\n l.containsAll(tree));\n\n assertTrue(\"The tree does not contain the original list\",\n tree.containsAll(l));\n }", "@Test\n public void testContainsAll_Not_Contain_Overflow() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n instance.add(5);\n instance.add(4);\n instance.add(7);\n\n Collection c = Arrays.asList(1, 2, 5, 8);\n\n boolean expResult = false;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "public void testRemoveFromEmpty() {\r\n list.add(\"dance\");\r\n list.add(0, \"safety\");\r\n list.clear();\r\n assertFalse(list.remove(\"safety\"));\r\n Exception exception;\r\n exception = null;\r\n try {\r\n list.remove(0);\r\n } \r\n catch (IndexOutOfBoundsException e) {\r\n exception = e;\r\n }\r\n assertTrue( exception instanceof IndexOutOfBoundsException);\r\n\r\n DLList<String> emptyList = new DLList<String>();\r\n exception = null;\r\n try {\r\n emptyList.remove(0);\r\n } \r\n catch (IndexOutOfBoundsException e) {\r\n exception = e;\r\n }\r\n assertTrue( exception instanceof IndexOutOfBoundsException);\r\n }", "@Test\n public void testContains_Not_Contain_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = false;\n boolean result = instance.contains(7);\n assertEquals(expResult, result);\n }", "@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}", "@Test\n public void testRemove_Not_Contains() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n\n Integer item = 2;\n boolean expResult = false;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "public static void main(String a[]) {\n\t\t\n\t\tDoublyLinkedList list = new DoublyLinkedList();\n\t\tlist.addCharAtEnd('H');\n\t\tlist.addCharAtEnd('e');\n\t\tlist.addCharAtEnd('l');\n\t\tlist.addCharAtEnd('l');\n\t\tlist.addCharAtEnd('o');\n\t\tSystem.out.println(list);\n\t\tSystem.out.println(\"Deleting l\");\n\t\tlist.deleteChar('l');\n\t\tSystem.out.println(list);\n\t\tSystem.out.println(\"Deleting H\");\n\t\tlist.deleteChar('H');\n\t\tSystem.out.println(list);\n\t\tSystem.out.println(\"Deleting o\");\n\t\tlist.deleteChar('o');\n\t\tSystem.out.println(list);\n\t\tSystem.out.println(\"Deleting e\");\n\t\tlist.deleteChar('e');\n\t\tSystem.out.println(list);\n\t\tSystem.out.println(\"Deleting l\");\n\t\tlist.deleteChar('l');\n\t\tlist.deleteChar('k');\n\t\tSystem.out.println(list);\n\t\tlist.addCharAtFront('o');\n\t\tlist.addCharAtFront('l');\n\t\tlist.addCharAtFront('l');\n\t\tlist.addCharAtFront('e');\n\t\tlist.addCharAtFront('H');\n\t\tSystem.out.println(list);\n\t\t\n\t\tSystem.out.println(list.countNodes());\n\t\t\n\t\tSystem.out.println(\"Popping everything\");\n\t\twhile(!list.isEmpty()){\n\t\t\tSystem.out.println(list.removeCharFromFront());\n\t\t}\n\t\t\n\t\tlist.addCharAtFront('o');\n\t\tlist.addCharAtFront('l');\n\t\tlist.addCharAtFront('l');\n\t\tlist.addCharAtFront('e');\n\t\tlist.addCharAtFront('H');\n\t\tSystem.out.println(\"Popping everything from the end\");\n\t\twhile(!list.isEmpty()){\n\t\t\tSystem.out.println(list.removeCharAtEnd());\n\t\t}\n\t\tSystem.out.println(list.countNodes());\n\t\t\n\t\tlist.addCharAtEnd('o');\n\t\tlist.addCharAtEnd('l');\n\t\tlist.addCharAtEnd('l');\n\t\tlist.addCharAtEnd('e');\n\t\tlist.addCharAtEnd('H');\n\t\n\t\tlist.reverse();\n\t\tSystem.out.println(list);\n\t\t\n\t\tlist.reverse();\n\t\tSystem.out.println(list);\n\t\t\n\t}", "@Override\n // delete the node with the element in input\n public boolean delEl (E el){\n if (this.size <= 0 || el == null)\n return false;\n\n // compare to head and tail\n if (el.compareTo(this.head.getValue()) == 0){\n this.delHead();\n return true;\n }\n else if (el.compareTo(this.tail.getValue()) == 0){\n this.delTail();\n return true;\n }\n\n // check to see if there's more then one element\n if((Node2<E>)this.head.getNext() == null)\n return false;\n\n // iterate all the elements of the list\n for (Node2<E> prev = (Node2<E>)this.head, iter = (Node2<E>)this.head.getNext(); iter.getNext() != null; iter = (Node2<E>)iter.getNext(), prev = (Node2<E>)prev.getNext()){\n if (el.compareTo(iter.getValue()) == 0){\n prev.setNext(iter.getNext());\n iter = null;\n this.size--;\n return true;\n }\n }\n\n return false;\n }", "@Test\r\n\tpublic void testRemoveE() {\r\n\t\tll.add(t1);\r\n\t\tll.add(t2);\r\n\t\tll.add(t3);\r\n\t\tll.add(t4);\r\n\t\tll.add(t5);\r\n\t\tassertEquals(5, ll.size());\r\n\t\t// order of list: [0: t1, 1: t2, 2: t3, 3: t4, 4: t5]\r\n\t\t\r\n\t\tassertFalse(ll.remove(null));\r\n\t\tassertFalse(ll.remove(\"not in list\"));\r\n\t\t\r\n\t\tassertTrue(ll.remove(t1));\r\n\t\tassertEquals(4, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4, 3: t5]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t3));\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\tassertEquals(t5, ll.get(2));\r\n\t\t// order of list: [0: t2, 1: t4, 2: t5]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t5));\r\n\t\tassertEquals(2, ll.size());\r\n\t\tassertEquals(t2, ll.get(0));\r\n\t\tassertEquals(t4, ll.get(1));\r\n\t\t// order of list: [0: t2, 1: t4]\r\n\t\t\r\n\t\tassertTrue(ll.remove(t2));\r\n\t\tassertFalse(ll.remove(\"not in list\"));\r\n\t\tassertTrue(ll.remove(t4));\r\n\t\tassertFalse(ll.remove(t1));\r\n\t\t\r\n\t}", "@Test\n public void testRemoveAll_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "public void removeContainingList(DoublyLinkedList<T> lst);", "@Test\n public void addToNonEmptyList() {\n OurLinkedListHW list = new OurLinkedListHW();\n list.add(\"A\");\n list.add(\"C\");\n list.add(\"D\");\n list.add(\"E\");\n list.add(\"F\");\n list.add(\"G\");\n assertEquals(\"[A,C,D,E,F,G,]\", list.toString());\n assertEquals(6, list.size());\n //add to a specific index\n list.add(1, \"B\");\n list.add(5, \"B\");\n assertEquals(\"[A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(8, list.size());\n //add to the first index\n list.add(0, \"B\");\n assertEquals(\"[B,A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(9, list.size());\n //remove if at first index\n list.remove(\"B\");\n assertEquals(\"[A,B,C,D,E,B,F,G,]\", list.toString());\n assertEquals(8, list.size());\n //remove if at last index\n list.remove(\"G\");\n assertEquals(\"[A,B,C,D,E,B,F,]\", list.toString());\n assertEquals(7, list.size());\n //remove if elsewhere\n list.remove(\"C\");\n assertEquals(\"[A,B,D,E,B,F,]\", list.toString());\n assertEquals(6, list.size());\n }", "boolean isListRemainingEmpty();", "@Test\n public void testIsEmpty_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = false;\n boolean result = instance.isEmpty();\n assertEquals(expResult, result);\n }", "@Test\n public void testRemove(){\n FunctionalLinkedList newList = new FunctionalLinkedList();\n for(int i = 1; i < 101; i++){\n if(i%2 == 1){\n newList.add(\"Odd\");\n } else {\n newList.add(\"Even\");\n }\n }\n stack = new ImprovedStackImpl(newList);\n \n // Remove one set of elements & check size.\n stack.remove(\"Odd\");\n assertEquals(\"Size of list is incorrect.\", 50, stack.size());\n String even;\n for(int i = 0; i < stack.size(); i++){\n even = (String) stack.pop().getReturnValue();\n assertEquals(\"'Odd' not removed at loop \"+ i +\".\", \"Even\", even);\n }\n }", "@Test\n public void testRemove_int_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "public boolean supportsEmptyInList() {\n \t\treturn true;\n \t}", "@Test\r\n public void testRemove() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException\r\n {\r\n DoublyLinkedList<Integer> list = new DoublyLinkedList<Integer>();\r\n testLinks(list);\r\n list.insertTail(2);\r\n testLinks(list);\r\n list.insertHead(1);\r\n testLinks(list);\r\n list.insertTail(3);\r\n testLinks(list);\r\n list.insertTail(4);\r\n testLinks(list);\r\n\r\n Iterator<Integer> itr = list.iterator();\r\n assertEquals(4, list.size());\r\n assertEquals(\"[1, 2, 3, 4]\", list.toString());\r\n assertEquals(true, itr.hasNext());\r\n itr.remove();\r\n assertEquals(4, list.size());\r\n assertEquals(\"[1, 2, 3, 4]\", list.toString());\r\n assertEquals(true, itr.hasNext());\r\n testLinks(list);\r\n\r\n assertEquals(1, (int)itr.next());\r\n itr.remove();\r\n assertEquals(3, list.size());\r\n assertEquals(\"[2, 3, 4]\", list.toString());\r\n assertEquals(true, itr.hasNext());\r\n testLinks(list);\r\n itr.remove();\r\n assertEquals(3, list.size());\r\n assertEquals(\"[2, 3, 4]\", list.toString());\r\n assertEquals(true, itr.hasNext());\r\n testLinks(list);\r\n\r\n assertEquals(2, (int)itr.next());\r\n itr.remove();\r\n assertEquals(2, list.size());\r\n assertEquals(\"[3, 4]\", list.toString());\r\n assertEquals(true, itr.hasNext());\r\n testLinks(list);\r\n\r\n assertEquals(3, (int)itr.next());\r\n itr.remove();\r\n assertEquals(1, list.size());\r\n assertEquals(\"[4]\", list.toString());\r\n assertEquals(true, itr.hasNext());\r\n testLinks(list);\r\n\r\n assertEquals(4, (int)itr.next());\r\n itr.remove();\r\n assertEquals(0, list.size());\r\n assertEquals(\"[]\", list.toString());\r\n testLinks(list);\r\n itr.remove();\r\n assertEquals(0, list.size());\r\n assertEquals(\"[]\", list.toString());\r\n assertEquals(false, itr.hasNext());\r\n testLinks(list);\r\n }", "@Test\n public void testRemove_Contains_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n instance.remove(new Integer(1));\n\n int expResult = 5;\n int result = instance.size();\n assertEquals(expResult, result);\n }", "public void testEmptyList() {\n SortedLinkedList s = new SortedLinkedList();\n assertEquals(s.getName(0), null);\n assertEquals(s.getQuantity(0), -1);\n assertEquals(s.length(), 0);\n assertTrue(s.isMember(null)); \n }", "@Test\n public void testIsEmpty_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n instance.clear();\n\n boolean expResult = true;\n boolean result = instance.isEmpty();\n assertEquals(expResult, result);\n }", "@Test\r\n public void removeAndContains() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n s.remove(2);\r\n assertFalse(s.contains(2));\r\n }", "@Test\n public void testContainsAll_Not_Contain() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n\n Collection c = Arrays.asList(1, 2, 5);\n\n boolean expResult = false;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "@Test\n\tpublic void testListOperations() {\n\t\tassertFalse(streetAddresses.contains(s1PlusNine));\n\t\tassertTrue(streetAddresses.stream().anyMatch(s -> comparator.compare(s1PlusNine, s) == 0));\n\t}", "@Test\r\n\tpublic void testIsEmpty() {\r\n\t\tAssert.assertFalse(list.isEmpty());\r\n\t\tlist.clear();\r\n\t\tAssert.assertTrue(list.isEmpty());\r\n\t}", "@Test public void testPublic10() {\n Graph<Character> graph= TestGraphs.testGraph3();\n char[] toRemove= {'I', 'H', 'B', 'J', 'C', 'G', 'E', 'F'};\n String[] results= {\"O\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"K\",\n \"A L N\", \"P\", \"K\", \"D\"};\n int i;\n\n for (i= 0; i < toRemove.length; i++)\n graph.removeVertex(toRemove[i]);\n\n for (Character ch : graph.getVertices())\n assertEquals(results[ch - 'A'],\n TestGraphs.collToString(graph.getNeighbors(ch)));\n }", "@Test\n public void testRemove_After_Next() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.remove();\n\n assertFalse(baseList.contains(2));\n }", "@Test\n public void ensureCannotRemoveAnAllergenIfListEmptyUnit() {\n System.out.println(\"Ensure Cannot remove an Allergen if list is empty Unit Test\");\n\n Allergen allergen = new Allergen(\"al1\", \"allergen 1\");\n\n assertTrue(allergensSet.isEmpty() && !profile_unit.removeAllergen(allergen));\n }", "public void visiualizeSkipList(){\r\n\t\tint number=0;\r\n\t\tNode dummy = sl.getFrom(0,0);\r\n\t\t\r\n\t\tNode next;\r\n\t\tfor(int i=sl.height(); i>=0; i--){\r\n\t\t\t\r\n\t\t\tnext = sl.getFrom(i,0);\r\n\t\t\t\r\n\t\t\tfor(int j=0; j<(sl.size()+2); j++){\r\n\r\n\t\t\t\tnumber = next.getKey();\r\n\t\t\t\t//F.p(number);\r\n\t\t\t\tif(number==dummy.getKey()){\r\n\r\n\t\t\t\t\tif(number==minf)\r\n\t\t\t\t\t\tSystem.out.print(\"-inf\");\r\n\t\t\t\t\telse if(number==inf)\r\n\t\t\t\t\t\tSystem.out.print(\"---inf\");\r\n\t\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(repeatStr(\"-\",2)+number);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(repeatStr(\"-\",4));\r\n\t\t\t\t\r\n\t\t\t\tif(dummy.getKey()==number)\r\n\t\t\t\t\tnext = next.getRight();\r\n\t\t\t\t\r\n\t\t\t\tdummy = dummy.getRight();\r\n\t\t\t}\r\n\t\t\tdummy = sl.getFrom(0,0);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public static List<String> noVowel(List<String> in) {\n return in.stream()\n .distinct() // Ensure elements are unique\n .filter(i -> !i.matches(\"[aeiou]\")) // Keep elements that don't contain a vowel\n .collect(Collectors.toList()); // Collect result\n }", "@Test\n public void testWithNonEmptyList() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(Arrays.asList(\"test\"));\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "@Test\n public void testContainsAll_Contains_Overflow() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n instance.add(5);\n instance.add(4);\n instance.add(7);\n\n Collection c = Arrays.asList(3, 4, 5, 7);\n\n boolean expResult = true;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "@Test\r\n public void testIsEmpty()\r\n {\r\n \tDoublyLinkedList<Integer> testDLL = new DoublyLinkedList<Integer>();\r\n \tassertTrue(testDLL.isEmpty());\r\n \ttestDLL.push(5);\r\n \tassertFalse(testDLL.isEmpty());\r\n }", "public void testRemoveIndex() {\r\n list.add(\"A\");\r\n list.add(\"B\");\r\n assertTrue(list.remove(0));\r\n assertEquals(1, list.size());\r\n list.add(\"B\");\r\n assertTrue(list.remove(0));\r\n assertEquals(1, list.size());\r\n }", "@Test\n public void testRemove_Contains() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n\n Integer item = 1;\n boolean expResult = true;\n boolean result = instance.remove(item);\n assertEquals(expResult, result);\n }", "public void removeItemBetween(LLNode startNode, LLNode endNode)\r\n {\r\n int numRemoved = 0;\r\n if (startNode == null) startNode = head;\r\n if (endNode == null) endNode = tail;\r\n\r\n for (LLNode temp = startNode;\r\n temp != null && temp != endNode;\r\n temp = temp.next, numRemoved++);\r\n\r\n LLNode prev = startNode.prev;\r\n LLNode next = endNode.next;\r\n\r\n if (prev != null) prev.next = next;\r\n else head = next;\r\n\r\n if (next != null) next.prev = prev;\r\n else tail = prev;\r\n\r\n nItems -= numRemoved;\r\n synchronized (nodeMutex)\r\n {\r\n for (LLNode node = startNode;\r\n node != endNode.next;node = node.next)\r\n {\r\n nodePool.addElement(node);\r\n }\r\n }\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic boolean removeDummy() {\n\t\tint length = children.length - 1;\n\t\tNode<U>[] newChildren = (Node<U>[]) Array.newInstance(Node.class, length);\n\t\t\n\t\tSystem.arraycopy(children, 0, newChildren, 0, length);\n\t\t\n\t\tchildren = newChildren;\n\t\t\n\t\treturn this.maxUBChild == length; /// if true then the UB has been removed and a new UB must be calculated\n\t}", "public void remove(String s)\n {\n if (find(s) == null) //If the string is not in the linked list, do nothing\n {\n System.out.println(s + \" is not in the list!\");\n return;\n }\n if (s.length() == 1) //If trying to delete a letter node, disallow that.\n {\n System.out.println(\"Cannot delete letter node!\");\n return;\n }\n Node n = find(s);\n Node letter = find(s.substring(0, 1).toUpperCase());\n if (letter.next == n && (n.next == null || n.next.data.length() == 1)) //If it's the last string in the letter\n {\n if (head == letter) //If the letter node is the first letter node in the linked list\n {\n head = n.next;\n if (tail == n) //If the list consists only of this letter node and the string\n tail = n.next;\n }\n else //If not first letter node in list\n {\n Node prev = head; //Get the node before the letter\n while (prev.next != letter)\n prev = prev.next;\n if (tail == n) //Reset the tail if it needs to be moved\n tail = prev;\n prev.next = prev.next.next.next; //remove the letter node and string\n }\n size--;\n size--;\n }\n else //If not the last string in letter\n {\n Node prev = letter;\n while (prev.next != n) //Get the node before the string\n prev = prev.next;\n prev.next = prev.next.next; //remove the node with the string\n if (tail == n)\n tail = prev;\n size--;\n }\n }", "public native VertexList removeSubList(VertexNode a, VertexNode b);", "@Test\n public void testContains_Contain_Overflow_Boundary() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = true;\n boolean result = instance.contains(6);\n assertEquals(expResult, result);\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}", "public void isPalindromeListStackMethod() {\n\n\t\tStack<Integer> stk = new Stack<Integer>();\n\n\t\tNode temp = head;\n\t\twhile(temp != null) {\n\t\t\tstk.push(temp.data);\n\t\t\ttemp = temp.next;\n\t\t}\n\n\t\ttemp = head;\n\t\twhile(temp != null && stk.empty() == false) {\n\t\t\tif(temp.data == stk.peek()) {\n\t\t\t\ttemp = temp.next;\n\t\t\t\tstk.pop();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(stk.empty() == true) {\n\t\t\tSystem.out.println(\"List is Palindrome\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"List is not Palindrome\");\n\t\t}\n\n\t}", "@Test\n\tpublic void testRemove1() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\n\t\tint notremove = 10;\n\n\t\t// test remove\n\n\t\tlistObj2.remove(notremove);\n\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t}", "@Test \r\n\t\tpublic void testIsEmpty() {\n\t\ttestingSet= new IntegerSet();\r\n\t\tassertTrue(testingSet.isEmpty()); // empty list = true \r\n\t\tassertFalse(!testingSet.isEmpty());// !empty list = false\r\n\t\t}", "static public boolean isList (String listString, String startToken, String endToken,\n String delimiter)\n{\n String s = listString.trim ();\n Vector list = new Vector ();\n\n if (s.startsWith (startToken) && s.endsWith (endToken)) \n return true;\n else\n return false;\n\n\n}", "private static ListNode removeElements(ListNode head, int val) {\n ListNode dummy = new ListNode(0);\n dummy.next = head;\n ListNode curr = dummy;\n // Iterate till current.next is null. Keep checking next with value\n while (curr.next != null) {\n // next element is a match so skip pointing to next element.\n if (curr.next.value == val) {\n curr.next = curr.next.next;\n } else {\n curr = curr.next; // else keep moving ahead.\n }\n }\n return dummy.next; \n }", "public void removePoeple(T nodeData) {\n\t Node previous = firstNode;\r\n\t Node current = firstNode.next;\r\n \r\n\t while (current.nodeData != nodeData) { // set the previous to be the one before the person removed and the current to the person remvoed \r\n\t \tprevious = current; \r\n\t \tcurrent = current.next;\r\n\t } \r\n\r\n\t if (nodeCount == 1) { // if we have only one left we have an empty list \r\n\t \tisEmpty(); \r\n\t } else if (current == firstNode) { // When the current is equal to the first we are back at the start of the list, \r\n\t \tprevious.next = current.next;\r\n\t firstNode = current.next; // set new first node of the list \r\n\t } else { // if not then we are just going to the next node \r\n\t \tprevious.next = current.next;\t \t\r\n\t }\r\n\t nodeCount--; // we removed someone , remove them from the count . \r\n\r\n\t }", "@Test\n public void testRemove_Contains_First_Ocurrence_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(3);\n\n instance.remove(new Integer(3));\n\n int expResult = 2;\n int result = instance.get(0);\n assertEquals(expResult, result);\n }", "@SuppressWarnings(\"unchecked\") // stops Java complaining about the call to compare\n public boolean remove(Object item) {\n E itm = (E) item; //this here is cast statment, which allows an object of anytype to be cast as a generic element, which means multiple types of elements can be use in this program\n if (itm == null) { //if the item is null it sends but null, if the item at index is null rerun false, and if the item does not equal the item at the position it returns null\n return false;\n }\n int indexValue = findIndexOf(itm);\n if (data[indexValue] == null) return false;\n if (!data[indexValue].equals(item))\n return false;\n\n for (int i = indexValue; i < count; i++) { //iterates through the list, moving all the elements to the on in front,\n data[i] = data[i + 1];\n }\n count--; //the decrments the count to show an item has been remove, it has not been removed but instead moved to the end, from there the item is overwritten when something is added.\n return true; //the count prevents the item from being seen.\n }", "public boolean determineTermination(ListNode head) {\r\n\t\tHashSet<ListNode> hashSet = new HashSet<ListNode>();\r\n\t\tListNode node = head;\r\n\t\twhile (node != null) {\r\n\t\t\tif (hashSet.contains(node)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\thashSet.add(node);\r\n\t\t\tnode = node.next;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Test\n\tpublic void NotExamtestListToString() {\n\t\t\n\t\tassertEquals(\"[a,b,c]\",listToString(list));\n\t\tassertEquals(\"[a,b,c,aaa,a,a,d,a]\",listToString(list2));\n\t\tassertEquals(\"[]\",listToString(empty));\n\t\tassertEquals(\"[hello]\",listToString(onlyOne));\n\n\t}", "@Test\n public void testContains_Not_Contain() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n\n boolean expResult = false;\n boolean result = instance.contains(3);\n assertEquals(expResult, result);\n }", "public boolean empty() {\n \tint size = s.size();\n \tfor(int i = 0; i < size; i++) {\n \t\ts2.push(s.pop());\n \t}\n return s2.isEmpty();\n }", "@Test(expected = IllegalStateException.class)\n public void testRemove_After_Remove() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.remove();\n\n instance.remove();\n\n }", "public void sortCheckAndRemove(List oldlist, List newlist){\n \n List removenode = new ArrayList();\n List addnode = new ArrayList();\n \n for (int i=0;i < newlist.size() ; i++){\n if (!oldlist.contains((String) newlist.get(i))){\n addnode.add((String) newlist.get(i));\n }\n }\n \n for (int i=0;i < oldlist.size() ; i++){\n \n if (!newlist.contains((String)oldlist.get(i))){\n removenode.add((String)oldlist.get(i));\n }\n }\n for (int k=0; k < removenode.size() ; k++){\n //System.out.println(toremove[k]);\n System.out.println(\"Deleting \"+(String) removenode.get(k));\n removeMaster((String) removenode.get(k));\n }\n \n for (int k=0; k < addnode.size() ; k++){\n //System.out.println(toadd[k]);\n System.out.println(\"adding slave \"+(String)addnode.get(k));\n addMaster((String)addnode.get(k),getQueue());\n }\n \n try {\n FileUtils.copyFile(new File(\"/tmp/newmaster\"), new File(\"/tmp/oldmaster\"));\n } catch (IOException ex) {\n System.out.println(\"Could not copy file\");\n }\n }", "public void testRemoveAllVertices() {\n System.out.println(\"removeAllVertices\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n Assert.assertTrue(graph.removeAllVertices());\n Assert.assertEquals(graph.verticesSet().size(), 0);\n }", "@Test\n void testRemoveDeletesElement() {\n MyList l = new MyList();\n l.put(\"key\", \"value\");\n l.remove(\"key\");\n\n assertEquals(false, l.contains(\"key\"));\n }", "public boolean isInList();", "public boolean remove(E data) {\n DoublyLinkedNode<E> iter = head.getNext();\n\n if (this.isEmpty() || data == null) {\n return false;\n }\n\n if (head.getNext().getData().equals(data)) {\n head.linkWith(head.getNext().getNext());\n size--;\n return true;\n }\n\n for (int i = 0; i < size; i++) {\n if (iter.getData().equals(data)) {\n this.getNodeAt(i - 1).linkWith(this.getNodeAt(i + 1));\n size--;\n return true;\n }\n iter = iter.getNext();\n }\n\n return false;\n }", "@Test(expected = VendingMachineException.class)\r\n\tpublic void testRemoveItem_empty_slot() {\r\n\t\tvendMachine.removeItem(\"D\");\r\n\t}", "public void removeAll() {\n\t\thead = new DoublyNode(null);\r\n\t\thead.setPrev(head);\r\n\t\thead.setNext(head);\r\n\t\tnumItems = 0;\r\n\t}", "@Override\r\n\t\t\tpublic boolean hasNext() {\n\t\t\t\tnodo<T> sig = sentinel;\r\n\t\t\t\tsentinel = sentinel.getNext();\r\n\t\t\t\treturn (sentinel != null) ? true : false;\r\n\t\t\t}", "@Test\n\tpublic void testIncluye() {\n\t\tassertFalse(l.incluye(0));\n\t\t\n\t\t//Test de busqueda sobre el primer elemento\n\t\tl.agregar(0, 0);\n\t\tassertTrue(l.incluye(0));\n\t\tassertFalse(l.incluye(1));\n\t\t\n\t\t//Test con mas elementos\n\t\tl.agregar(1, 1);\n\t\tl.agregar(2, 2);\n\t\tassertTrue(l.incluye(1));\n\t\tassertFalse(l.incluye(4));\n\t\t\n\t}", "@Test\r\n\tvoid testRemove5() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\ttest.add(1);\r\n\t\ttest.remove(1);\r\n\t\tassertNotEquals(0, test.list.length);\r\n\t}", "private void removeEmptyTokens(ArrayList<String> tokens) {\n Iterator<String> it = tokens.iterator();\n while (it.hasNext()) {\n if (it.next().equals(\"\")) {\n it.remove();\n }\n }\n }", "public void delete(T data)\r\n { \r\n Node<T> tmp = head; //The traversal node ptr that we follow through the list. \r\n Node<T> Growtmp = head;\r\n \r\n ArrayDeque<Node<T>> droplvl = new ArrayDeque<>(); // Stores all the nodes that we drop at.\r\n\r\n Node<T> node = new Node<T>(data,1); //Create the new node used to traverse the list with dummy height 1. \r\n \r\n for(int i=tmp.height - 1; i >= 0; i--) //Loop through the heights of the head node. \r\n {\r\n //If the pointed to nodes data is greater than the newly created node or were pointing to null\r\n //drop down a level of height and repeat search process.\r\n //Checks to see if inserted node is less than current node\r\n if(tmp.pointers.get(i) == null || tmp.pointers.get(i).data.compareTo(node.data) > 0 || tmp.pointers.get(i).data.compareTo(node.data) == 0) \r\n {\r\n droplvl.push(tmp); //Store our drop nodes into a stack.\r\n continue; //This is essentially how we are dropping levels. \r\n }\r\n \r\n //If the pointed to nodes data is less than the inserting node move to that node. \r\n if(tmp.pointers.get(i).data.compareTo(node.data) < 0) \r\n {\r\n if(tmp.next(i) != null)\r\n tmp = tmp.next(i);\r\n \r\n if(tmp.pointers.get(i) != null)\r\n { \r\n while(tmp.pointers.get(i) != null && tmp.pointers.get(i).data.compareTo(node.data) < 0)\r\n {\r\n if(tmp.next(i) != null)\r\n tmp = tmp.next(i);\r\n \r\n else \r\n break;\r\n }\r\n }\r\n \r\n droplvl.push(tmp); //Store the drop \r\n continue; //Continue down our list\r\n }\r\n }\r\n\r\n //Once here our temp has traversed the list and is currently where our node needs to be inserted. \r\n //We now need to pop the stack node height number of times. \r\n \r\n Node<T> Delptr = tmp.next(0); //Points to the node to be deleted. \r\n \r\n if(Delptr != null && Delptr.data.compareTo(data) == 0) //Checks that Delptr is not null and that it is in our list. \r\n if(containsData.contains(Delptr.data) == true) //Checks to see that the element to be deleted is actually in our list. \r\n {\r\n \r\n \r\n for(int z = 0; z < Delptr.height; z++) //This is where we delete our node. \r\n {\r\n droplvl.pop().pointers.set(z, Delptr.pointers.get(z));\r\n Delptr.pointers.set(z, null);\r\n }\r\n Delptr.height = 0; //The deleted node should have no height.\r\n \r\n //Once here our desired node has been deleted. \r\n \r\n numNodes--;\r\n containsData.remove(Delptr.data); //Stores all the inserted <T>Data. \r\n \r\n //Now we need to check if our list must be trimmed.\r\n \r\n double logHeight = Math.log(numNodes)/Math.log(2);\r\n logHeight = Math.ceil(logHeight); //Takes the ceiling of log base 2 of n ie rounds up. \r\n int NewHeight = (int)logHeight; //The new height of our skiplist after inserting \r\n \r\n if(NewHeight <= 0) // If our list contains 1 element it should be of height 1 not 0; \r\n NewHeight = 1;\r\n \r\n if(NewHeight < Growtmp.height) //If this is the case we need to trim our skiplist!\r\n { \r\n ArrayList<Node<T>> NodesThatTrim = new ArrayList<>(); //This will hold the nodes that will shrink. \r\n \r\n int p = NewHeight; //Variable which we will use to traverse the maxheight of our list. \r\n \r\n Growtmp = head;\r\n \r\n Growtmp = Growtmp.next(p);// Point Growtmp to the first node of maxheight \r\n \r\n while(Growtmp != null)\r\n { \r\n NodesThatTrim.add(Growtmp);\r\n Growtmp = Growtmp.next(p);\r\n }\r\n \r\n Growtmp = head;\r\n \r\n Growtmp.pointers.add(p,null); //Setting our heads pervious maxheight to null. \r\n \r\n head.height = NewHeight; //We need to update the height of our head node. \r\n \r\n for(int j=0; j < NodesThatTrim.size();j++)\r\n {\r\n NodesThatTrim.get(j).pointers.set(p, null);\r\n NodesThatTrim.get(j).height = NewHeight; //Setting the heights of our nodes after being trimmed. \r\n }\r\n }\r\n }\r\n }", "@Test(expected = IllegalStateException.class)\n public void testRemove_After_Set() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.set(2);\n\n instance.remove();\n\n }", "@Test\n public void testWithEmptyList() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(new ArrayList<String>());\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "public List<Integer> findMultipleMissingNumbers(Integer min, Integer max, List<Integer> list) {\n\n List<Integer> answerList = new ArrayList<>();\n\n for(int i = min; i <= max; i++){\n if(!list.contains(i)){\n answerList.add(i);\n }\n }\n return answerList;\n }", "@Test\n public void testCompactFast_Sgement_Removed_Item_Order() throws Exception {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 1);\n\n // 1 persisted segment counts\n List c = Arrays.asList(1, 1, 2, 3, 4, 5);\n List expected = c.subList(2, c.size());\n instance.addAll(c);\n\n // remove 2 items form memory before compacting fast\n instance.remove(0);\n instance.remove(0);\n\n instance.compactFast();\n\n assertEquals(expected, instance.subList(0, instance.size()));\n\n }", "@Test\n public void testRemove_int_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n Integer expResult = 6;\n Integer result = instance.size();\n\n assertEquals(expResult, result);\n\n }", "public void sletMedlem() {\n System.out.print(\"Skriv det fulde navn på den bruger, som skal slettes: \");\n Scanner scan = new Scanner(System.in);\n String sletNavn = scan.nextLine();\n\n for (int i = 0; i < medlemmer.size(); i++) {\n if (sletNavn.equals(medlemmer.get(i).getFuldeNavn())) ;\n medlemmer.remove(i);\n }\n System.out.println(sletNavn + \" er blevet slettet fra medlemmerlisten.\");\n }", "public static boolean testAlphabetListConstructorIsEmpty() {\r\n AlphabetList list1 = new AlphabetList();\r\n AlphabetList list2 = new AlphabetList(2);\r\n if (list1.isEmpty() == false || list2.isEmpty() == false)\r\n return false;\r\n list1.add(new Cart(\"A\"));\r\n if (list1.isEmpty() == true || list2.isEmpty() == false)\r\n return false;\r\n return true;\r\n }", "public ListNode removeElements(ListNode head, int val) {\n ListNode dummyNode = new ListNode(-1);\n dummyNode.next = head;\n ListNode pre = dummyNode;\n ListNode cur = pre.next;\n while(cur != null){\n if(cur.val == val){\n cur = cur.next;\n pre.next = cur;\n }else{\n pre = pre.next;\n cur = cur.next;\n }\n }\n return dummyNode.next;\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public boolean remove(Object o) {\n final Node<E>[] update = new Node[MAX_LEVEL];\n final E element = (E) o;\n Node<E> curr = head;\n for (int i = level - 1; i >= 0; i--) {\n while (curr.next[i] != head && comparator.compare(curr.next[i].element, element) < 0)\n curr = curr.next[i];\n update[i] = curr;\n }\n curr = curr.next();\n if (curr == head || comparator.compare(curr.element, element) != 0)\n return false;\n delete(curr, update);\n return true;\n }", "public boolean removeNode(Node<E> node){\n Node<E> current = head.getNext();\n while (current != tail) {\n if (current.equals(node)) {\n current.getPrevious().setNext(current.getNext());\n current.getNext().setPrevious(current.getPrevious());\n current.setNext(null);\n current.setPrevious(null);\n size--;\n return true;\n }\n current = current.getNext();\n }\n return false;\n }", "public void EliminarTodosLosEnemigos() {\n\t\tlistaDeEnemigos.removeAll(listaDeEnemigos);\n\t}", "@Test\n public void testContains_Contain_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = true;\n boolean result = instance.contains(4);\n assertEquals(expResult, result);\n }", "public static void removeSample() {\n Node ll1 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll2 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll3 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll4 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll5 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll6 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n\n System.out.println(\"remove 1==\");\n Node r1 = ll1.remove(0);\n r1.printList();\n System.out.println(\"remove 2==\");\n Node r2 = ll2.remove(1);\n r2.printList();\n System.out.println(\"remove 3==\");\n Node r3 = ll3.remove(2);\n r3.printList();\n System.out.println(\"remove 4==\");\n Node r4 = ll4.remove(3);\n r4.printList();\n System.out.println(\"remove 5==\");\n Node r5 = ll5.remove(4);\n r5.printList();\n System.out.println(\"remove 6==\");\n Node r6 = ll6.remove(5);\n r6.printList();\n\n }", "private static void removeEmptyTicks(List<Tick> ticks) {\r\n\t\tfor (int i = ticks.size() - 1; i >= 0; i--) {\r\n\t\t\tif (ticks.get(i).getTrades() == 0) {\r\n\t\t\t\tticks.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void testListIterator_Overflow() {\n OasisList<Integer> baseList = new SegmentedOasisList<>(2, 2);\n baseList.addAll(Arrays.asList(1, 2, 6, 8, 4, 9, 67, 87));\n\n ListIterator<Integer> instance = baseList.listIterator();\n assertTrue(isEqual(instance, baseList));\n\n }", "@Override\n\tpublic boolean supprimer(List<EmploieType> entites) {\n\t\treturn false;\n\t}", "private List<Graph> possRemove(Graph pag, Map<Edge, Boolean> necEdges) {\n // list of edges that can be removed\n List<Edge> remEdges = new ArrayList<>();\n for (Edge remEdge : necEdges.keySet()) {\n if (!necEdges.get(remEdge))\n remEdges.add(remEdge);\n }\n // powerset of edges that can be removed\n PowerSet<Edge> pset = new PowerSet<>(remEdges);\n List<Graph> possRemove = new ArrayList<>();\n // for each set of edges in the powerset remove edges from graph and add to PossRemove\n for (Set<Edge> set : pset) {\n Graph newPag = new EdgeListGraph(pag);\n for (Edge edge : set) {\n newPag.removeEdge(edge);\n }\n possRemove.add(newPag);\n }\n return possRemove;\n }", "@Test\r\n public void test_containEmpty_False2() {\r\n List<Object> list = new ArrayList<Object>();\r\n list.add(new Object());\r\n Map<Object, Object> map = new HashMap<Object, Object>();\r\n map.put(new Object(), new Object());\r\n Collection<?> collection = Arrays.asList(new Object[] {1, list, map});\r\n boolean trimStrings = true;\r\n\r\n boolean res = Helper.containEmpty(collection, trimStrings);\r\n\r\n assertFalse(\"'containEmpty' should be correct.\", res);\r\n }", "@Test\n public void remove1() {\n RBTree<Integer> tree = new RBTree<>();\n List<Integer> add = new ArrayList<>(List.of(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10));\n List<Integer> rem = new ArrayList<>(List.of(4, 7, 9, 5));\n for (int i : add) {\n tree.add(i);\n }\n int err = 0;\n Set<Integer> remSet = new HashSet<>();\n for (int i : rem) {\n remSet.add(i);\n boolean removed = tree.remove(i);\n if (!removed && add.contains(i)) {\n System.err.println(\"Could not remove element \" + i + \"!\");\n err++;\n }\n if (removed && !add.contains(i)) {\n System.err.println(\"Removed the non-existing element \" + i + \"!\");\n err++;\n }\n for (int a : add) {\n if (!tree.contains(a) && !remSet.contains(a)) {\n System.err.println(\"Removed element \" + a + \" after removing \" + i + \"!\");\n err++;\n }\n }\n }\n for (int i : rem) {\n if (tree.remove(i)) {\n System.err.println(\"Removed a already remove element \" + i + \"!\");\n err++;\n }\n }\n for (int i : rem) {\n if (tree.contains(i)) {\n System.out.println(\"The element \" + i + \" was not removed!\");\n err++;\n }\n }\n \n assertEquals(\"There were \" + err + \" errors!\", 0, err);\n rem.retainAll(add);\n assertEquals(\"Incorrect tree size!\", add.size() - rem.size(), tree.size());\n }", "@Test\n public void testRemove_After_Previous() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n instance.previous();\n\n instance.remove();\n\n assertFalse(baseList.contains(2));\n }", "@Override\n\tpublic boolean isEmpty()\n\t{\n if (list.isEmpty())\n {\n return true;\n } \n else\n {\n return false;\n }\n\t}", "@Override\n public boolean isEmpty()\n {\n return list.size()<1;\n }", "@Test\n public void testIsEmpty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.clear();\n\n boolean expResult = true;\n boolean result = instance.isEmpty();\n assertEquals(expResult, result);\n }", "@Test\n public void testRemove_int_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n Integer expResult = 7;\n Integer result = instance.remove(2);\n\n assertEquals(expResult, result);\n\n }" ]
[ "0.5720395", "0.57140225", "0.55764174", "0.55759233", "0.5495599", "0.5415558", "0.53647834", "0.5351662", "0.5284001", "0.5267843", "0.52497077", "0.5241449", "0.52354676", "0.5233724", "0.5197976", "0.51852244", "0.50998163", "0.5084645", "0.5062653", "0.50584346", "0.5052065", "0.5034194", "0.50035745", "0.50006944", "0.49810714", "0.4979076", "0.4963852", "0.49592087", "0.49488908", "0.4938831", "0.49387658", "0.49287662", "0.49270263", "0.49234712", "0.4918379", "0.48919517", "0.4869184", "0.48440713", "0.48239666", "0.48158833", "0.4790703", "0.47877312", "0.4785715", "0.4767866", "0.47646624", "0.4762851", "0.475724", "0.4751887", "0.47404665", "0.47180593", "0.47147346", "0.47029406", "0.47000253", "0.46840897", "0.46727931", "0.46723208", "0.4663119", "0.46620277", "0.46607324", "0.4657234", "0.46567914", "0.46564898", "0.4656287", "0.46547148", "0.46484682", "0.4643453", "0.46395308", "0.46367744", "0.4635455", "0.46335727", "0.46264777", "0.46243674", "0.46240816", "0.46159565", "0.46155387", "0.46143255", "0.46136513", "0.4609593", "0.46075782", "0.4606524", "0.4599737", "0.45994803", "0.45990857", "0.45983118", "0.4597768", "0.45972788", "0.4596242", "0.45958734", "0.45939636", "0.45902544", "0.4588292", "0.45874593", "0.4584229", "0.4583319", "0.4575253", "0.45749304", "0.45731366", "0.45654044", "0.4563282", "0.45622393", "0.45600024" ]
0.0
-1
Gets the icon descriptor.
public static IIconDescriptor getIconDescriptor() { if (iconDescriptor == null) iconDescriptor = new NodeIconDescriptor("parameter-report"); //$NON-NLS-1$ return iconDescriptor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new NodeIconDescriptor(\"dataAdapters\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}", "public ImageDescriptor getIcon();", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public Icon getIcon();", "public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new ServerIconDescriptor(\"servers\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}", "java.lang.String getIcon();", "java.lang.String getIcon();", "public String getAccessibleIconDescription();", "Icon getIcon();", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\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 icon_ = s;\n }\n return s;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\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 icon_ = s;\n }\n return s;\n }\n }", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String getIcon();", "String getIcon();", "public byte[] getIcon()\r\n {\r\n return icon;\r\n }", "public FSIcon getIcon() {\n return icon;\n }", "public abstract ImageDescriptor getIcon();", "public ResourceLocation getIcon() {\n return icon;\n }", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "public String getIconString() {\n return theIconStr;\n }", "public EntityIcon getIcon() {\r\n return icon;\r\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getIconId(){\n return mIconId;\n }", "@Override\n public ImageDescriptor getFlagImageDescriptor() {\n ImageDescriptor descriptor = AwsToolkitCore.getDefault().getImageRegistry()\n .getDescriptor(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( descriptor == null ) {\n descriptor = AwsToolkitCore.getDefault().getImageRegistry().getDescriptor(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return descriptor;\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\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 icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\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 icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public URL getIcon()\r\n {\r\n\treturn icon;\r\n }", "com.google.protobuf.ByteString\n getIconBytes();", "com.google.protobuf.ByteString\n getIconBytes();", "public Icon getIcon()\n {\n return getComponent().getIcon();\n }", "@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }", "protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }", "public AwesomeIcon icon() {\n\t\treturn icon;\n\t}", "public URI getIconUri() {\n return this.iconUri;\n }", "public char getIcon() {\n return this.icon;\n }", "public Bitmap getIcon() {\n return mBundle.getParcelable(KEY_ICON);\n }", "public Icon getIcon() {\n \t\treturn null;\n \t}", "public Icon getIcon() {\n\t\treturn null;\n\t}", "@NotNull\n SVGResource getIcon();", "public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }", "public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}", "public String getXpeIcon() {\n return (String) getAttributeInternal(XPEICON);\n }", "public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}", "public Icon getIcon() {\r\n\r\n if (icon == null && this.getIconString() != null) {\r\n InputStream in = this.getClass().getResourceAsStream(this.getIconString());\r\n BufferedImage img = null;\r\n Image scaledImg = null;\r\n try {\r\n img = ImageIO.read(in);\r\n scaledImg = img.getScaledInstance(this.useToolIconSize ? PirolPlugInSettings.StandardToolIconWidth : PirolPlugInSettings.StandardPlugInIconWidth, this.useToolIconSize ? PirolPlugInSettings.StandardToolIconHeight : PirolPlugInSettings.StandardPlugInIconHeight, img.getType());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n img = null;\r\n icon = null;\r\n }\r\n if (scaledImg != null) {\r\n icon = new ImageIcon(scaledImg);\r\n }\r\n }\r\n return icon;\r\n }", "@Nullable\n // Safe as we want to provide all getters being public for POJOs\n @SuppressWarnings({\"unused\", \"WeakerAccess\"})\n public final String getIconId() {\n return iconId;\n }", "public AppIcon getAppIcon () ;", "public byte[] getIcon()\n {\n return Resources.getImage(Resources.DICT_LOGO);\n }", "String getIconFile();", "@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}", "public String getIconUrl() {\r\n return iconUrl;\r\n }", "public String getSummaryIcon() {\n\treturn this.icon;\n }", "public String getIconUrl() {\n return iconUrl;\n }", "public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}", "public int getIconIndex() {\n return iconIndex;\n }", "public Icon getIcon()\n {\n return this.blockIcon;\n }", "@Nullable\n public Drawable getIcon() {\n return mPrimaryIcon;\n }", "public static IIcon method_2666() {\r\n return class_1192.field_6027.field_2131;\r\n }", "public abstract String typeIcon();", "public abstract String getIconPath();", "public abstract Drawable getIcon();", "public ImageDescriptor getImageDescriptor();", "public Icon getImageIcon() {\r\n\t\treturn lblImageViewer.getIcon();\r\n\t}", "public String getIconCls() {\n\t\tif (null != this.iconCls) {\n\t\t\treturn this.iconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"iconCls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public String getIconHandler()\n {\n return iconHandler;\n }", "public abstract String getIconString();", "@Override\n\tpublic ToolIconURL getIconURL() {\n\t\treturn iconURL;\n\t}", "protected String getIconUri() {\n return getResourceUrl(ComponentConstants.ICON_RESOURCE);\n }", "public Icon getIcon(@NotNull DartComponent component) {\n return getIcon();\n }", "public Icon getIcon(Object object);", "Icon getMenuIcon();", "public char getCurrentIcon(){\n\t\treturn icon;\r\n\t}", "public int getIconImageNumber(){return iconImageNumber;}", "Icon getIcon(URI activityType);", "public String getIconFileName() {\n return null;\n }", "public String getMessageIcon() {\n return messageIcon;\n }", "private BitmapDescriptor getMarkerIconFromDrawableForAdministration() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_administration);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "public String getUserIcon() {\n return userIcon;\n }", "public Icon getTabIcon();", "public Image getIcon(int type) {\n if ((type == BeanInfo.ICON_COLOR_16x16) || (type == BeanInfo.ICON_MONO_16x16))\n return defaultIcon;\n else\n return defaultIcon32;\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"images/icon.png\"));\n return retValue;\n }", "public @Nullable IIconData getIcon(@Nullable URL url);", "public String getIconFileName() {\n\tif (this.isSuccess()) {\n\t return this.icon;\n\t} else {\n\t return null;\n\t}\n }", "public IIcon method_2681() {\r\n return this.field_2146;\r\n }", "public Image getSourceIcon() {\n return impl.getSourceIcon();\n }", "private BitmapDescriptor getMarkerIconFromDrawableForFood() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_food);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "private static Image getIcon()\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + icon));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}", "public javax.accessibility.AccessibleIcon[] getAccessibleIcon() {\n try {\n XAccessibleImage unoAccessibleImage = (XAccessibleImage) \n UnoRuntime.queryInterface(XAccessibleImage.class, unoAccessibleContext);\n if (unoAccessibleImage != null) {\n javax.accessibility.AccessibleIcon[] icons = { new AccessibleIconImpl(unoAccessibleImage) };\n return icons;\n } \n } catch (com.sun.star.uno.RuntimeException e) {\n }\n return null;\n }", "@Override\n public Image getFlagImage() {\n Image image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( image == null ) {\n image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return image;\n }", "@SideOnly(Side.CLIENT)\n\tpublic IIcon getIconFromDamage(int meta)\n\t{\n\t\treturn icon;\n\t}", "public String getIconURL()\n {\n return null; \n }", "public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Cagliero.png\"));\n return retValue;\n }", "public ImageIcon getIcon() {\n\t\treturn null;\n\t}", "public ImageIcon getIcon() {\n\t\treturn null;\n\t}", "private BitmapDescriptor getMarkerIconFromDrawableForEducation() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_education);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }" ]
[ "0.81128603", "0.8085548", "0.7980067", "0.7980067", "0.7980067", "0.7980067", "0.79379094", "0.7897252", "0.7853982", "0.7853982", "0.7825744", "0.78004336", "0.7793424", "0.7793424", "0.7765124", "0.7736915", "0.7736915", "0.7672993", "0.7672993", "0.76714903", "0.7624512", "0.7617717", "0.75385594", "0.74841046", "0.7474963", "0.7459716", "0.7447785", "0.7447785", "0.7423855", "0.7398714", "0.7392375", "0.7392375", "0.737972", "0.73351765", "0.73351765", "0.7313764", "0.7291203", "0.7236262", "0.72221196", "0.7222092", "0.72190493", "0.7204111", "0.719852", "0.71839964", "0.7175796", "0.71432674", "0.7113694", "0.70958304", "0.7088516", "0.70373976", "0.69890404", "0.69555753", "0.6951724", "0.69428253", "0.6927088", "0.69262373", "0.6926021", "0.69119847", "0.6904497", "0.6900449", "0.6868565", "0.68591017", "0.68588704", "0.6836141", "0.68268067", "0.6812834", "0.67929894", "0.67561597", "0.67368525", "0.67349064", "0.6723176", "0.6710295", "0.6708487", "0.67003334", "0.667591", "0.6651328", "0.6637535", "0.66290754", "0.66038924", "0.66021454", "0.65939283", "0.6574653", "0.65534586", "0.6553126", "0.6551865", "0.65511787", "0.6523375", "0.6513947", "0.6509116", "0.65016454", "0.64819044", "0.6475305", "0.64678764", "0.64493334", "0.64485514", "0.64341927", "0.64102554", "0.6404876", "0.6404876", "0.6401629" ]
0.80146515
2
Instantiates a new m parameter system.
public MParameterSystem() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SystemParamModel createSystemParamModel();", "MatrixParameter createMatrixParameter();", "public System(String implClassName, Params param) {\n\t\tSimLogger.log(Level.INFO, \"New System Created.\");\n\t\tthis.param = param;\n\t\tthis.param.system = this;\n\t\ttry {\n\t\t\tClass implClass = Class.forName(implClassName);\n\t\t\timpl = (Implementation) implClass.newInstance();\n\t\t\t// Set the implementation's system so init() can set it in workload!!!\n\t\t\timpl.sys = this;\n\t\t\timpl.init(param.starter.build());\n\t\t\tSimLogger.log(Level.FINE, \"Implementation \" + implClassName + \" was created successfully.\");\n\n\t\t\ttry {\n\t\t\t\tfor(String s : param.measures) {\n\t\t\t\t\tSimLogger.log(Level.FINE, \"Adding measure \" + s + \" to system.\");\n\t\t\t\t\tClass measureClass = Class.forName(s);\n\t\t\t\t\tMeasure measure = (Measure) measureClass.newInstance();\n\t\t\t\t\tmeasures.add(measure);\n\t\t\t\t}\n\t\t\t\tCollections.sort(measures);\n\t\t\t} catch(ClassNotFoundException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} catch(InstantiationException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} catch(IllegalAccessException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\n\t\t\t//init actors\n\t\t\tHashMap<String, Integer> actorMachineInstances = param.starter.buildActorMachine();\n\t\t\tfor(String aType : actorMachineInstances.keySet()) {\n\t\t\t\tint numActors = actorMachineInstances.get(aType);\n\t\t\t\tSimLogger.log(Level.FINE, \"Creating \" + numActors + \" many of actor type \" + aType);\n\t\t\t\tfor(int i = 0; i < numActors; i++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tClass actorClass = Class.forName(aType);\n\t\t\t\t\t\tActorMachine am = (ActorMachine) actorClass.newInstance();\n\t\t\t\t\t\tString actorName = am.getPrefix() + i;\n\t\t\t\t\t\tam.actor = actorName;\n\t\t\t\t\t\tam.actorType = aType;\n\t\t\t\t\t\tam.sys = this;\n\t\t\t\t\t\tactors.put(actorName, am);\n\t\t\t\t\t} catch(ClassNotFoundException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch(InstantiationException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch(IllegalAccessException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSimLogger.log(Level.FINE, \"Actors init was successful.\");\n\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void parametersInstantiation_EM() {\n }", "public LightParameter()\r\n\t{\r\n\t}", "public ModuleParams()\n\t{\n\t}", "public void setParameters(MaterialParams mp);", "public Parameters() {\n\t}", "public ModuleParams() {\n }", "Param createParam();", "Param createParam();", "Param createParam();", "Parameter createParameter();", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public void init(\n @ParamInfo(name=\"gBar_K in mS/mm^2\", options=\"value=0.36D\") double gBarK, \n @ParamInfo(name=\"E_K in mV\", options=\"value=-77.00D\")double eK, \n @ParamInfo(name=\"gBar_Na in mS/mm^2\", options=\"value=1.2D\") double gBarNa, \n @ParamInfo(name=\"E_Na in mV\", options=\"value=50.00D\") double eNa, \n @ParamInfo(name=\"gBar_L in mS/mm^2\", options=\"value=0.003D\") double gBarL, \n @ParamInfo(name=\"E_L in mV\", options=\"value=-54.387D\") double eL, \n @ParamInfo(name=\"Membrane capacity in uF/mm^2\", options=\"value=0.01D\") double cm) {\n this.gBarK = gBarK;\n this.eK = eK;\n this.gBarNa = gBarNa;\n this.eNa = eNa;\n this.gBarL = gBarL;\n this.eL = eL;\n this.cm = cm; \n \n }", "public MMAge(){\n\t\t\n\t}", "public void setParameters(double m, double s){\n\t\tif (s <= 0) s = 1;\n\t\tlocation = m; scale = s;\n\t\tdouble upper = getMean() + 3 * getSD();\n\t\tsetDomain(0, upper, 0.01 * upper, CONTINUOUS);\n\t}", "public LSystemBuilderImpl() {\n\t\tthis.commands = new Dictionary();\n\t\tthis.productions = new Dictionary();\n\t\tunitLength = 0.1;\n\t\tunitLengthDegreeScaler = 1;\n\t\torigin = new Vector2D(0, 0);\n\t\tangle = 0;\n\t\taxiom = \"\";\n\t}", "public MMTMeasurement(){\n }", "public CMN() {\n\t}", "public StratmasParameterFactory() \n {\n this.typeMapping = createTypeMapping();\n }", "public AndroidModelParameterManager(IInstantiationBehavior behaviour) {\n this.behaviour = behaviour;\n this.description = \" based on behaviours of \" + behaviour;\n// this.forMethod = null; // XXX\n }", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "public System(String systemMake, String systemModel, int processorSpeed)\n\t{\n\t\tmake = systemMake;\n\t\tmodel = systemModel;\n\t\tspeed = processorSpeed;\n\t}", "public BaseParameters(){\r\n\t}", "public M create(P model);", "public static Model make(Map<SolverVariable, Term> m) {\n\t\treturn new Model(m);\n\t}", "public MgtFactoryImpl()\n {\n super();\n }", "public CMObject newInstance();", "public ParamToolGui(ParameterSet mms_params) {\n initComponents();\n jTable1.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n jTable1.setRowSelectionAllowed(false);\n jTable1.setCellSelectionEnabled(true);\n ExcelAdapter myAd = new ExcelAdapter(jTable1);\n\n paramTree.setModel(null);\n loadParameterSet(mms_params);\n \n persistentSplitterTracker = new PersistentSplitterTracker(this, jSplitPane1);\n }", "public MonteCarloVSmp()\r\n\t{\r\n\t}", "public Parameter(Parameter p) {\n\t\tnumPts = p.numPts;\n\t\tvelocityScale = p.velocityScale;\n\t\tinitVel = p.initVel;\n\t\tinitMass = p.initMass;\n\t\tinitDensity = p.initDensity;\n\t\tinitPressure = p.initPressure;\n\t\tinitPtSpacing = p.initPtSpacing;\n\t\th = p.h;\n\t\tc = p.c;\n\t\tmachNum = p.machNum;\n\t\tbetaMax = p.betaMax;\n\t\tnu = p.nu;\n\t\tbodyFX = p.bodyFX;\n\t\tbodyFY = p.bodyFY;\n\t\tdensityVariation = p.densityVariation;\n\t\tlengthScale = p.lengthScale;\n\t\tfirstOutput = p.firstOutput;\n\t\toutputEvery = p.outputEvery;\n\t\tnumSteps = p.numSteps;\n\t\tdeltaT = p.deltaT;\n\t}", "private Mgr(){\r\n\t}", "PARAM createPARAM();", "private EntityManager initSystems() {\n CameraSystem cameraSystem = new CameraSystem(Constants.WINDOW_WIDTH, Constants.WINDOW_HEIGHT);\n addSystem(cameraSystem);\n addSystem(new ZoomSystem());\n //Physics System\n addSystem(new PhysicsSystem());\n //Player movement system\n addSystem(new PlayerMovementSystem());\n\n addSystem(new CannonFiringSystem());\n addSystem(new CollisionSystem());\n addSystem(new KillSystem());\n addSystem(new HealthSystem());\n addSystem(new StatisticSystem());\n addSystem(new EnemySpawningSystem());\n addSystem(new InventorySystem());\n addSystem(new CurrencySystem());\n\n GUISystem guiSystem = new GUISystem();\n InputSystem inputSystem = new InputSystem(guiSystem);\n\n //Input System\n addSystem(inputSystem);\n //Entity Render System\n addSystem(new EntityRenderSystem());\n //Particle System\n addSystem(new ParticleSystem());\n addSystem(new PlayerActionSystem(guiSystem));\n addSystem(new MapRenderSystem());\n addSystem(new HUDSystem());\n //Debug Render System\n addSystem(new DebugRendererSystem());\n //GUI System\n addSystem(guiSystem);\n\n return this;\n }", "protected void initSupportedIntensityMeasureParams() {\n\n\t\t// Create saParam:\n\t\tDoubleDiscreteConstraint periodConstraint = new DoubleDiscreteConstraint();\n\t\tTreeSet set = new TreeSet();\n\t\tEnumeration keys = coefficientsBJF.keys();\n\t\twhile (keys.hasMoreElements()) {\n\t\t\tBJF_1997_AttenRelCoefficients coeff = (BJF_1997_AttenRelCoefficients)\n\t\t\tcoefficientsBJF.get(keys.nextElement());\n\t\t\tif (coeff.period >= 0) {\n\t\t\t\tset.add(new Double(coeff.period));\n\t\t\t}\n\t\t}\n\t\tIterator it = set.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tperiodConstraint.addDouble( (Double) it.next());\n\t\t}\n\t\tperiodConstraint.setNonEditable();\n\t\tsaPeriodParam = new PeriodParam(periodConstraint);\n\t\tsaDampingParam = new DampingParam();\n\t\tsaParam = new SA_Param(saPeriodParam, saDampingParam);\n\t\tsaParam.setNonEditable();\n\n\t\t// Create PGA Parameter (pgaParam):\n\t\tpgaParam = new PGA_Param();\n\t\tpgaParam.setNonEditable();\n\n\t\t// Create PGV Parameter (pgvParam):\n\t\tpgvParam = new PGV_Param();\n\t\tpgvParam.setNonEditable();\n\n\t\t// The MMI parameter\n\t\tmmiParam = new MMI_Param();\n\n\t\t// Add the warning listeners:\n\t\tsaParam.addParameterChangeWarningListener(listener);\n\t\tpgaParam.addParameterChangeWarningListener(listener);\n\t\tpgvParam.addParameterChangeWarningListener(listener);\n\n\t\t// create supported list\n\t\tsupportedIMParams.clear();\n\t\tsupportedIMParams.addParameter(saParam);\n\t\tsupportedIMParams.addParameter(pgaParam);\n\t\tsupportedIMParams.addParameter(pgvParam);\n\t\tsupportedIMParams.addParameter(mmiParam);\n\n\t}", "public MultivariateGaussianDM() {\n\t}", "public BareMetalMachinePowerOffParameters() {\n }", "public ParamPanel() {\n this.paramService = new ParamService();\n initComponents();\n doQuery();\n }", "public PnuematicSubsystem() {\n\n }", "public Pacman() {\n int life = 50;\n int repro = 20;\n int maxCal = 500;\n int burn = 5;\n int strength = 50;\n myInfo = BasicMatrixModel.createCritterInfoInstance(this,life,repro,maxCal,burn,strength);\n }", "public MetaParameter() {\n m_aParams = new ArrayList();\n }", "public MPaciente() {\r\n\t}", "private LocalParameters() {\n\n\t}", "public void modelNew(Model m)\n {\n\tmodelStop();\n\tmanim = new GenerationsAnimator(m.generations());\n\tmanim.scale(width,height);\n\tclearToBack();\n\tmodelStep();\n\t//modelStart();\n\tStatusBar.setStatus(\"Ready\");\n\n\tif (cListener != null)\n\t cListener.setButtonState(true);\n }", "private PoliticalSystem(String name) {\n\t\tthis.name = name;\n\t}", "public OpenGLModel() {\n\n\n\t}", "public void setParameters(int m, int r, int n){\n\t\t//Correct for invalid parameters\n\t\tif (m < 1) m = 1;\n\t\tif (r < 0) r = 0; else if (r > m) r = m;\n\t\tif (n < 0) n = 0; else if (n > m) n = m;\n\t\t//Assign parameter values\n\t\tpopulationSize = m;\n\t\ttype1Size = r;\n\t\tsampleSize = n;\n\t\tc = Functions.comb(populationSize, sampleSize);\n\t\tsetDomain(Math.max(0, sampleSize - populationSize + type1Size), Math.min(type1Size, sampleSize), 1, DISCRETE);\n\t}", "public SingleSystem(MaltipsSystem maltipsSystem) {\n this.maltipsSystem = maltipsSystem;\n }", "Thing(PVector a, PVector v, PVector l, float m_) {\n acc = a.get();\n vel = v.get();\n loc = l.get();\n mass = m_;\n max_vel = 20.0f;\n }", "public GeneralParameters instantiate() {\n return instantiate(null);\n }", "public Manager() {\n\t\tthis(\"Nom par defaut\", \"Prenom par defaut\", 0);\n\t}", "public Manager(String nom, String prenom) {\n\t\tthis(nom, prenom, 0);\n\t}", "public DriveSystem() {\n \t\n \tsuper(\"DriveSystem\", 0.5, 0.3, 1.0);//Must be first line of constructor!\n \tultraRangeFinder.setAutomaticMode(true);\n \tultraRangeFinder.setEnabled(true);\n \tultraRangeFinderBack.setAutomaticMode(true);\n \tultraRangeFinderBack.setEnabled(true);\n //double kp = 0.0001;\n \t//double ki = 0.001;\n \t//double kd = 0.01;\n \t//getPIDController().setPID(kp,ki,kd);//Set the PID controller gains.\n this.setInputRange(-180.0, 180.0);//Sets the MIN and MAX values expected from the input and setPoint!\n this.setOutputRange(-1.0, 1.0);//Sets the the MIN and MAX values to write to output\n //this.setAbsoluteTolerance(5.0);//Set the absolute error which is considered tolerable for use with OnTarget()\n //this.setPercentTolerance(10);//Set the percentage error which is considered tolerable for use with OnTarget()\n //this.setSetpoint(45);//Set the where to go to, clears GetAvgError()\n getPIDController().setContinuous(true);//True=input is continuous, calculates shortest route to setPoint()\n //this.enable();//Begin running the PID Controller.\n \n LiveWindow.addActuator(\"DriveSystem\", \"PID DriveSystem\", getPIDController());\n \n // getPIDController().startLiveWindowMode();//Start having this object automatically respond to value changes.\n }", "private PlanManager spawnMission(MissionPlanSpecification mSpec, final ArrayList<Token> startingTokens) {\n UUID missionId = UUID.randomUUID();\r\n String planInstanceName = getUniquePlanName(mSpec.getName());\r\n MissionPlanSpecification mSpecInstance = mSpec.deepClone();\r\n final PlanManager pm = new PlanManager(mSpecInstance, missionId, planInstanceName, startingTokens);\r\n plans.add(pm);\r\n missionIdToPlanManager.put(missionId, pm);\r\n\r\n ArrayList<PlanManagerListenerInt> listenersCopy;\r\n synchronized (lock) {\r\n listenersCopy = (ArrayList<PlanManagerListenerInt>) planManagerListeners.clone();\r\n }\r\n for (PlanManagerListenerInt listener : listenersCopy) {\r\n listener.planCreated(pm, mSpecInstance);\r\n }\r\n\r\n (new Thread() {\r\n public void run() {\r\n pm.start();\r\n }\r\n }).start();\r\n return pm;\r\n }", "protected void initIndependentParamLists() {\n\n\t\t// params that the mean depends upon\n\t\tmeanIndependentParams.clear();\n\t\tmeanIndependentParams.addParameter(distanceJBParam);\n\t\tmeanIndependentParams.addParameter(willsSiteParam);\n\t\tmeanIndependentParams.addParameter(magParam);\n\t\tmeanIndependentParams.addParameter(fltTypeParam);\n\t\tmeanIndependentParams.addParameter(componentParam);\n\n\t\t// params that the stdDev depends upon\n\t\tstdDevIndependentParams.clear();\n\t\tstdDevIndependentParams.addParameter(stdDevTypeParam);\n\t\tstdDevIndependentParams.addParameter(componentParam);\n\t\tstdDevIndependentParams.addParameter(magParam);\n\n\t\t// params that the exceed. prob. depends upon\n\t\texceedProbIndependentParams.clear();\n\t\texceedProbIndependentParams.addParameter(distanceJBParam);\n\t\texceedProbIndependentParams.addParameter(willsSiteParam);\n\t\texceedProbIndependentParams.addParameter(magParam);\n\t\texceedProbIndependentParams.addParameter(fltTypeParam);\n\t\texceedProbIndependentParams.addParameter(componentParam);\n\t\texceedProbIndependentParams.addParameter(stdDevTypeParam);\n\t\texceedProbIndependentParams.addParameter(this.sigmaTruncTypeParam);\n\t\texceedProbIndependentParams.addParameter(this.sigmaTruncLevelParam);\n\n\t\t// params that the IML at exceed. prob. depends upon\n\t\timlAtExceedProbIndependentParams.addParameterList(\n\t\t\t\texceedProbIndependentParams);\n\t\timlAtExceedProbIndependentParams.addParameter(exceedProbParam);\n\n\t}", "protected ModelParameter newParameter(boolean isIn, String name, ModelType type) {\n\t\tModelParameter p = new ModelParameter();\n\t\tp.setName(name);\n\t\tp.setIn(isIn);\n\t\tp.setType(type);\n\t\treturn p;\n\t}", "protected CreateMachineNodeModel() {\r\n super(0,1);\r\n }", "public HandicapParameterSet() {\n }", "@objid (\"fbd51d94-815e-4e48-b896-6fe4c2eb26de\")\n MExpert createMExpert(SmMetamodel mm);", "public static void init(){\t\t\n\t\tParameters p = RunEnvironment.getInstance().getParameters();\n\n\t\tSIM_RANDOM_SEED = (Integer)p.getValue(\"randomSeed\");\n\t\tSIM_NUM_AGENTS = (Integer)p.getValue(\"maxAgents\");\n\t\tSIM_NORM_VIOLATION_RATE = (Float) p.getValue(\"Norm Violation Rate\");\n\t\tNUM_TICKS_TO_CONVERGE = (Long)p.getValue(\"NumTicksToConverge\");\n\t\tCONTENTS_QUEUE_SIZE = (Long)p.getValue(\"ContentsQueueSize\");\n\t\t\n\t\tNORM_GEN_EFF_THRESHOLD = (Double)p.getValue(\"NormsGenEffThreshold\");\n\t\tNORM_GEN_NEC_THRESHOLD = (Double)p.getValue(\"NormsGenNecThreshold\");\n\t\tNORM_SPEC_EFF_THRESHOLD = (Double)p.getValue(\"NormsSpecEffThreshold\");\n\t\tNORM_SPEC_NEC_THRESHOLD = (Double)p.getValue(\"NormsSpecNecThreshold\");\n\t\tNORM_UTILITY_WINDOW_SIZE = (Integer)p.getValue(\"NormsPerfRangeSize\");\n\t\tNORM_DEFAULT_UTILITY = (Double)p.getValue(\"NormsDefaultUtility\");\n\n\t\tNORM_SYNTHESIS_STRATEGY = (Integer)p.getValue(\"NormSynthesisStrategy\");\n\t\tNORM_GENERATION_REACTIVE = (Boolean)p.getValue(\"NormGenerationReactive\");\n\t\tNORM_GENERALISATION_MODE = (Integer)p.getValue(\"NormGeneralisationMode\");\n\t\tNORM_GENERALISATION_STEP = (Integer)p.getValue(\"NormGeneralisationStep\");\n\t\tNORM_SPEC_THRESHOLD_EPSILON = (Double)p.getValue(\"NormsSpecThresholdEpsilon\");\n\t\tNORMS_MIN_EVALS_CLASSIFY = (Integer)p.getValue(\"NormsMinEvaluationsToClassify\");\n\t\tNORMS_WITH_USER_ID = (Boolean)p.getValue(\"NormsWithUserId\");\n\n\t\t\n\t\t\n\t\t// System goals and their constants\n\t\tsystemGoals = new ArrayList<Goal>();\n\t\tsystemGoals.add(new GComplaints());\n\n\t\t//\t\tdouble tMinusEpsilon = NORM_SPEC_NEC_THRESHOLD - NORM_SPEC_THRESHOLD_EPSILON;\n\t\t//\t\t\n\t\t//\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\t//\t\tif(NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) {\n\t\t//\t\t\tNORM_DEFAULT_UTILITY = (float)(tMinusEpsilon * (NORM_MIN_EVALS+1)); \n\t\t//\t\t}\n\n\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\tif((NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) &&\n\t\t\t\t!NORM_GENERATION_REACTIVE) \n\t\t{\n\t\t\tNORM_DEFAULT_UTILITY = 0f; \n\t\t\tSystem.out.println(\"Norm generation is set as Deliberative\");\n\t\t}\n\t}", "public Parallelogramm(Point a, Point b, Point c, Point d){\r\n\t\tsuper(a,b,c,d);\r\n\t}", "public ListParameter()\r\n\t{\r\n\t}", "public Momentum() {\r\n m1 = m2 = v1 = v2 = p1 = p2 = comx = cv = 0.0;\r\n xp1 = 0.0;\r\n xp2 = 900.0;\r\n m1 = 2.0;\r\n m2 = 1.0;\r\n v1 = 1.0;\r\n v2 = -1.0;\r\n\r\n //m1 = m2 = 1.0;\r\n //v1 = 2.0;\r\n //v2 = -4.0;\r\n d = dc = 8.0;\r\n }", "public MixedInitiativeManager(IndividualDesignManager idm, int[] chosenFF, int[] chosenBMPs, int UserId, int[] regionSubbasinId, int[] tenure_regionSubbasinId) { \n this.idm = idm;\n this.dbm = idm.dbm;\n this.UserId = UserId;\n this.chosenFF = chosenFF;\n this.chosenBMPs = chosenBMPs;\n this.tenure_regionSubbasinId = tenure_regionSubbasinId;\n this.regionSubbasinId = regionSubbasinId;\n im = new IntrospectionManager(idm);\n om = new OptimizationManager(idm);\n setLocalPreferences();//set the local BMP ids\n sdmm = new SDMManager(idm, statm, chosenFF, localSubbasinLoc, useLocalPreference, chosenBMPs, useANFIS);\n this.statm = new StatisticsManager(dbm);\n //sdmm.createNewSDM(type_optimize);\n kendall = new MannKendall();\n }", "public Parameter multiplyParameter(Parameter otherPram);", "public Manusia() {}", "public LightSystem(Vector3f position, Vector3f default_position, Vector3f colour, Vector3f attenuation) {\n super(position, colour, attenuation);\n this.default_position = default_position;\n\t}", "public simulation() {\n\n }", "ParameterRefinement createParameterRefinement();", "public GeneratedTypeInitializer( ManagerEJB manager, Map params )\n\t{\n\t\tsuper( manager, params );\n\t}", "public GeneratedTypeInitializer( ManagerEJB manager, Map params )\n\t{\n\t\tsuper( manager, params );\n\t}", "public LibvirtManager(final Machine m) {\n super(m);\n }", "public VMProcess() \n\t{\n\t\tsuper();\n\t}", "ComponentParameterInstance createComponentParameterInstance();", "public WorldModel(){\t\n\t}", "protected ParameterList(){\n //title = t;\n //cellWorld = cw;\n }", "public EstimateParameter(String name, String units, double min, double max) throws\n\tConstraintException {\n\t\tthis(name, units, min, max, null);\n\t}", "public MLetter(Parameters parametersObj) {\r\n\t\tsuper(parametersObj);\r\n\t}", "public Math2()\r\n {\r\n \r\n }", "public ModelManagerImpl() {\n this( null );\n }", "public HelloMIDlet() {\n }", "public VMKernel() {\n }", "public ModemPMParser()\n\t{\n\t\tsuper();\n\t}", "private SIModule(){}", "public Gaussian() {\r\n this(1, 0, 1);\r\n }", "private Params()\n {\n }", "@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}", "Vehicle(int p, int f, int m) {\n\t\tpassengers = p;\n\t\tfuelcap = f;\n\t\tmpg = m;\n\t}", "public Planet(double xP, double yP, double xV,\n\t\tdouble yV, double m, String img){\n\t\txxPos=xP;\n\t\tyyPos=yP;\n\t\txxVel=xV;\n\t\tyyVel=yV;\n\t\tmass=m;\n\t\timgFileName=img;\n\t}", "public VMProcess() {\n\t\tsuper();\n\t}", "public Manager(String nom) {\n\t\tthis(nom, \"Prenom par defaut\", 0);\n\t}", "public BusSystem(){\n\t\tmar = new MAR((short)0, this);\n\t\tmdr = new MDR((short)0, this);\n\t\tpc = new PC((short)0);\n\t\tA = new Register((short)0);\n\t\tB = new Register((short)0);\n\t\tstack = new MemStack();\n\t\tprogramMemory = new Memory();\n\t\tMemory.setMemSize((short)1024);\n\t}", "public Prism(){//consturctor for Cube class with h initialzed to 10.0.\r\n super();//constructor of superclass called.\r\n h = 10.0;\r\n }", "public Universe(int n, int dim, boolean system)\n\t{\n\t\tthis.dimension = dim;\n\t\tthis.particles = new ArrayList<Particle>();\n\t\tthis.timebase = DEF_TIMEBASE;\n\t\t\t\n\t\tif(system == true){\n\t\t\t\n\t\t\tdouble velocity = Math.sqrt(100*GRAV_CONST);\n\t\t\tdouble[] x = {0,0,0};\n\t\t\tdouble[] pos1 = {0.25,0.5,0.5};\n\t\t\tdouble[] pos2 = {0.75, 0.5, 0.5};\n\t\t\tdouble[] veloc1 = {0, velocity, 0};\n\t\t\tdouble[] veloc2 = {0, -velocity, 0};\n\t\t\t\n\t\t\tParticle A = new Particle(new Vector(3, pos1), new Vector(3, veloc1), new Vector(3, x), 100);\n\t\t\tParticle B = new Particle(new Vector(3, pos2), new Vector(3, veloc2), new Vector(3, x), 100);\n\t\t\t\n\t\t\tparticles.add(A);\n\t\t\tparticles.add(B);\n\t\t}\n\t\telse{\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tthis.particles.add(new Particle( new Vector(dim).randomiseSphere(), Math.random()*5 ));\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "ParameterStructInstance createParameterStructInstance();", "public MComplex() {\r\n\t\ta = b = r = phi = 0;\r\n\t\tcartesian = polar = true;\r\n\t}", "public Plato(){\n\t\t\n\t}", "public HMM(int N, int M) {\n\t\tthis.N = N;\n\t\tthis.M = M;\n\t\tpi = new double[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tpi[i] = 0;\n\t\t}\n\t\tA = new double[N][];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = new double[N];\n\t\t\tfor (int j = 0; j < N; j++)\n\t\t\t\tA[i][j] = 0;\n\t\t}\n\t\tB = new double[N][];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tB[i] = new double[M];\n\t\t\tfor (int k = 0; k < M; k++)\n\t\t\t\tB[i][k] = 0;\n\t\t}\n\t\tOs = null;\n\t\tQs = null;\n\n\t\tepsilon = 1e-6;\n\t\tmaxIter = 1000;\n\t}", "public TParametrosVOImpl() {\r\n }" ]
[ "0.6596964", "0.62775075", "0.62095386", "0.61748576", "0.59461874", "0.59139264", "0.58826023", "0.5874628", "0.58517665", "0.57482255", "0.57482255", "0.57482255", "0.569543", "0.56345415", "0.56336236", "0.55971897", "0.5578524", "0.556755", "0.5553467", "0.5542369", "0.55343485", "0.5526778", "0.5525962", "0.5502145", "0.55008364", "0.5499943", "0.5492018", "0.5485087", "0.54762304", "0.5461341", "0.5438664", "0.5409045", "0.53908116", "0.53592855", "0.53556883", "0.534808", "0.5339418", "0.5328591", "0.53279984", "0.5326564", "0.5265365", "0.526482", "0.5253864", "0.52532214", "0.5245386", "0.5241529", "0.52375454", "0.52362674", "0.522478", "0.5209486", "0.5194486", "0.51911974", "0.51884264", "0.5185757", "0.5175648", "0.5161198", "0.5158883", "0.5133619", "0.513303", "0.51295274", "0.51212454", "0.51104766", "0.51033103", "0.51026505", "0.5097359", "0.50901365", "0.5090034", "0.50859225", "0.50852084", "0.5084729", "0.5080998", "0.5080998", "0.5077824", "0.5073934", "0.5072895", "0.50719005", "0.5059459", "0.505469", "0.50538677", "0.50503224", "0.50387293", "0.50369996", "0.5035871", "0.50302905", "0.50298", "0.50279063", "0.5023931", "0.5019168", "0.5016983", "0.5013239", "0.5012907", "0.50113595", "0.5010827", "0.5007911", "0.50039965", "0.49947438", "0.49925992", "0.49892348", "0.49868053", "0.49861443" ]
0.767972
0
Instantiates a new m parameter system.
public MParameterSystem(ANode parent, JRDesignParameter jrParameter, int newIndex) { super(parent, newIndex); setValue(jrParameter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MParameterSystem() {\n\t\tsuper();\n\t}", "SystemParamModel createSystemParamModel();", "MatrixParameter createMatrixParameter();", "public System(String implClassName, Params param) {\n\t\tSimLogger.log(Level.INFO, \"New System Created.\");\n\t\tthis.param = param;\n\t\tthis.param.system = this;\n\t\ttry {\n\t\t\tClass implClass = Class.forName(implClassName);\n\t\t\timpl = (Implementation) implClass.newInstance();\n\t\t\t// Set the implementation's system so init() can set it in workload!!!\n\t\t\timpl.sys = this;\n\t\t\timpl.init(param.starter.build());\n\t\t\tSimLogger.log(Level.FINE, \"Implementation \" + implClassName + \" was created successfully.\");\n\n\t\t\ttry {\n\t\t\t\tfor(String s : param.measures) {\n\t\t\t\t\tSimLogger.log(Level.FINE, \"Adding measure \" + s + \" to system.\");\n\t\t\t\t\tClass measureClass = Class.forName(s);\n\t\t\t\t\tMeasure measure = (Measure) measureClass.newInstance();\n\t\t\t\t\tmeasures.add(measure);\n\t\t\t\t}\n\t\t\t\tCollections.sort(measures);\n\t\t\t} catch(ClassNotFoundException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} catch(InstantiationException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} catch(IllegalAccessException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\n\t\t\t//init actors\n\t\t\tHashMap<String, Integer> actorMachineInstances = param.starter.buildActorMachine();\n\t\t\tfor(String aType : actorMachineInstances.keySet()) {\n\t\t\t\tint numActors = actorMachineInstances.get(aType);\n\t\t\t\tSimLogger.log(Level.FINE, \"Creating \" + numActors + \" many of actor type \" + aType);\n\t\t\t\tfor(int i = 0; i < numActors; i++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tClass actorClass = Class.forName(aType);\n\t\t\t\t\t\tActorMachine am = (ActorMachine) actorClass.newInstance();\n\t\t\t\t\t\tString actorName = am.getPrefix() + i;\n\t\t\t\t\t\tam.actor = actorName;\n\t\t\t\t\t\tam.actorType = aType;\n\t\t\t\t\t\tam.sys = this;\n\t\t\t\t\t\tactors.put(actorName, am);\n\t\t\t\t\t} catch(ClassNotFoundException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch(InstantiationException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch(IllegalAccessException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSimLogger.log(Level.FINE, \"Actors init was successful.\");\n\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void parametersInstantiation_EM() {\n }", "public LightParameter()\r\n\t{\r\n\t}", "public ModuleParams()\n\t{\n\t}", "public void setParameters(MaterialParams mp);", "public Parameters() {\n\t}", "public ModuleParams() {\n }", "Param createParam();", "Param createParam();", "Param createParam();", "Parameter createParameter();", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public void init(\n @ParamInfo(name=\"gBar_K in mS/mm^2\", options=\"value=0.36D\") double gBarK, \n @ParamInfo(name=\"E_K in mV\", options=\"value=-77.00D\")double eK, \n @ParamInfo(name=\"gBar_Na in mS/mm^2\", options=\"value=1.2D\") double gBarNa, \n @ParamInfo(name=\"E_Na in mV\", options=\"value=50.00D\") double eNa, \n @ParamInfo(name=\"gBar_L in mS/mm^2\", options=\"value=0.003D\") double gBarL, \n @ParamInfo(name=\"E_L in mV\", options=\"value=-54.387D\") double eL, \n @ParamInfo(name=\"Membrane capacity in uF/mm^2\", options=\"value=0.01D\") double cm) {\n this.gBarK = gBarK;\n this.eK = eK;\n this.gBarNa = gBarNa;\n this.eNa = eNa;\n this.gBarL = gBarL;\n this.eL = eL;\n this.cm = cm; \n \n }", "public MMAge(){\n\t\t\n\t}", "public void setParameters(double m, double s){\n\t\tif (s <= 0) s = 1;\n\t\tlocation = m; scale = s;\n\t\tdouble upper = getMean() + 3 * getSD();\n\t\tsetDomain(0, upper, 0.01 * upper, CONTINUOUS);\n\t}", "public LSystemBuilderImpl() {\n\t\tthis.commands = new Dictionary();\n\t\tthis.productions = new Dictionary();\n\t\tunitLength = 0.1;\n\t\tunitLengthDegreeScaler = 1;\n\t\torigin = new Vector2D(0, 0);\n\t\tangle = 0;\n\t\taxiom = \"\";\n\t}", "public MMTMeasurement(){\n }", "public CMN() {\n\t}", "public StratmasParameterFactory() \n {\n this.typeMapping = createTypeMapping();\n }", "public AndroidModelParameterManager(IInstantiationBehavior behaviour) {\n this.behaviour = behaviour;\n this.description = \" based on behaviours of \" + behaviour;\n// this.forMethod = null; // XXX\n }", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "public System(String systemMake, String systemModel, int processorSpeed)\n\t{\n\t\tmake = systemMake;\n\t\tmodel = systemModel;\n\t\tspeed = processorSpeed;\n\t}", "public BaseParameters(){\r\n\t}", "public M create(P model);", "public static Model make(Map<SolverVariable, Term> m) {\n\t\treturn new Model(m);\n\t}", "public MgtFactoryImpl()\n {\n super();\n }", "public CMObject newInstance();", "public ParamToolGui(ParameterSet mms_params) {\n initComponents();\n jTable1.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n jTable1.setRowSelectionAllowed(false);\n jTable1.setCellSelectionEnabled(true);\n ExcelAdapter myAd = new ExcelAdapter(jTable1);\n\n paramTree.setModel(null);\n loadParameterSet(mms_params);\n \n persistentSplitterTracker = new PersistentSplitterTracker(this, jSplitPane1);\n }", "public MonteCarloVSmp()\r\n\t{\r\n\t}", "public Parameter(Parameter p) {\n\t\tnumPts = p.numPts;\n\t\tvelocityScale = p.velocityScale;\n\t\tinitVel = p.initVel;\n\t\tinitMass = p.initMass;\n\t\tinitDensity = p.initDensity;\n\t\tinitPressure = p.initPressure;\n\t\tinitPtSpacing = p.initPtSpacing;\n\t\th = p.h;\n\t\tc = p.c;\n\t\tmachNum = p.machNum;\n\t\tbetaMax = p.betaMax;\n\t\tnu = p.nu;\n\t\tbodyFX = p.bodyFX;\n\t\tbodyFY = p.bodyFY;\n\t\tdensityVariation = p.densityVariation;\n\t\tlengthScale = p.lengthScale;\n\t\tfirstOutput = p.firstOutput;\n\t\toutputEvery = p.outputEvery;\n\t\tnumSteps = p.numSteps;\n\t\tdeltaT = p.deltaT;\n\t}", "private Mgr(){\r\n\t}", "PARAM createPARAM();", "private EntityManager initSystems() {\n CameraSystem cameraSystem = new CameraSystem(Constants.WINDOW_WIDTH, Constants.WINDOW_HEIGHT);\n addSystem(cameraSystem);\n addSystem(new ZoomSystem());\n //Physics System\n addSystem(new PhysicsSystem());\n //Player movement system\n addSystem(new PlayerMovementSystem());\n\n addSystem(new CannonFiringSystem());\n addSystem(new CollisionSystem());\n addSystem(new KillSystem());\n addSystem(new HealthSystem());\n addSystem(new StatisticSystem());\n addSystem(new EnemySpawningSystem());\n addSystem(new InventorySystem());\n addSystem(new CurrencySystem());\n\n GUISystem guiSystem = new GUISystem();\n InputSystem inputSystem = new InputSystem(guiSystem);\n\n //Input System\n addSystem(inputSystem);\n //Entity Render System\n addSystem(new EntityRenderSystem());\n //Particle System\n addSystem(new ParticleSystem());\n addSystem(new PlayerActionSystem(guiSystem));\n addSystem(new MapRenderSystem());\n addSystem(new HUDSystem());\n //Debug Render System\n addSystem(new DebugRendererSystem());\n //GUI System\n addSystem(guiSystem);\n\n return this;\n }", "protected void initSupportedIntensityMeasureParams() {\n\n\t\t// Create saParam:\n\t\tDoubleDiscreteConstraint periodConstraint = new DoubleDiscreteConstraint();\n\t\tTreeSet set = new TreeSet();\n\t\tEnumeration keys = coefficientsBJF.keys();\n\t\twhile (keys.hasMoreElements()) {\n\t\t\tBJF_1997_AttenRelCoefficients coeff = (BJF_1997_AttenRelCoefficients)\n\t\t\tcoefficientsBJF.get(keys.nextElement());\n\t\t\tif (coeff.period >= 0) {\n\t\t\t\tset.add(new Double(coeff.period));\n\t\t\t}\n\t\t}\n\t\tIterator it = set.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tperiodConstraint.addDouble( (Double) it.next());\n\t\t}\n\t\tperiodConstraint.setNonEditable();\n\t\tsaPeriodParam = new PeriodParam(periodConstraint);\n\t\tsaDampingParam = new DampingParam();\n\t\tsaParam = new SA_Param(saPeriodParam, saDampingParam);\n\t\tsaParam.setNonEditable();\n\n\t\t// Create PGA Parameter (pgaParam):\n\t\tpgaParam = new PGA_Param();\n\t\tpgaParam.setNonEditable();\n\n\t\t// Create PGV Parameter (pgvParam):\n\t\tpgvParam = new PGV_Param();\n\t\tpgvParam.setNonEditable();\n\n\t\t// The MMI parameter\n\t\tmmiParam = new MMI_Param();\n\n\t\t// Add the warning listeners:\n\t\tsaParam.addParameterChangeWarningListener(listener);\n\t\tpgaParam.addParameterChangeWarningListener(listener);\n\t\tpgvParam.addParameterChangeWarningListener(listener);\n\n\t\t// create supported list\n\t\tsupportedIMParams.clear();\n\t\tsupportedIMParams.addParameter(saParam);\n\t\tsupportedIMParams.addParameter(pgaParam);\n\t\tsupportedIMParams.addParameter(pgvParam);\n\t\tsupportedIMParams.addParameter(mmiParam);\n\n\t}", "public MultivariateGaussianDM() {\n\t}", "public BareMetalMachinePowerOffParameters() {\n }", "public ParamPanel() {\n this.paramService = new ParamService();\n initComponents();\n doQuery();\n }", "public PnuematicSubsystem() {\n\n }", "public Pacman() {\n int life = 50;\n int repro = 20;\n int maxCal = 500;\n int burn = 5;\n int strength = 50;\n myInfo = BasicMatrixModel.createCritterInfoInstance(this,life,repro,maxCal,burn,strength);\n }", "public MetaParameter() {\n m_aParams = new ArrayList();\n }", "public MPaciente() {\r\n\t}", "private LocalParameters() {\n\n\t}", "public void modelNew(Model m)\n {\n\tmodelStop();\n\tmanim = new GenerationsAnimator(m.generations());\n\tmanim.scale(width,height);\n\tclearToBack();\n\tmodelStep();\n\t//modelStart();\n\tStatusBar.setStatus(\"Ready\");\n\n\tif (cListener != null)\n\t cListener.setButtonState(true);\n }", "private PoliticalSystem(String name) {\n\t\tthis.name = name;\n\t}", "public OpenGLModel() {\n\n\n\t}", "public void setParameters(int m, int r, int n){\n\t\t//Correct for invalid parameters\n\t\tif (m < 1) m = 1;\n\t\tif (r < 0) r = 0; else if (r > m) r = m;\n\t\tif (n < 0) n = 0; else if (n > m) n = m;\n\t\t//Assign parameter values\n\t\tpopulationSize = m;\n\t\ttype1Size = r;\n\t\tsampleSize = n;\n\t\tc = Functions.comb(populationSize, sampleSize);\n\t\tsetDomain(Math.max(0, sampleSize - populationSize + type1Size), Math.min(type1Size, sampleSize), 1, DISCRETE);\n\t}", "public SingleSystem(MaltipsSystem maltipsSystem) {\n this.maltipsSystem = maltipsSystem;\n }", "Thing(PVector a, PVector v, PVector l, float m_) {\n acc = a.get();\n vel = v.get();\n loc = l.get();\n mass = m_;\n max_vel = 20.0f;\n }", "public GeneralParameters instantiate() {\n return instantiate(null);\n }", "public Manager() {\n\t\tthis(\"Nom par defaut\", \"Prenom par defaut\", 0);\n\t}", "public Manager(String nom, String prenom) {\n\t\tthis(nom, prenom, 0);\n\t}", "public DriveSystem() {\n \t\n \tsuper(\"DriveSystem\", 0.5, 0.3, 1.0);//Must be first line of constructor!\n \tultraRangeFinder.setAutomaticMode(true);\n \tultraRangeFinder.setEnabled(true);\n \tultraRangeFinderBack.setAutomaticMode(true);\n \tultraRangeFinderBack.setEnabled(true);\n //double kp = 0.0001;\n \t//double ki = 0.001;\n \t//double kd = 0.01;\n \t//getPIDController().setPID(kp,ki,kd);//Set the PID controller gains.\n this.setInputRange(-180.0, 180.0);//Sets the MIN and MAX values expected from the input and setPoint!\n this.setOutputRange(-1.0, 1.0);//Sets the the MIN and MAX values to write to output\n //this.setAbsoluteTolerance(5.0);//Set the absolute error which is considered tolerable for use with OnTarget()\n //this.setPercentTolerance(10);//Set the percentage error which is considered tolerable for use with OnTarget()\n //this.setSetpoint(45);//Set the where to go to, clears GetAvgError()\n getPIDController().setContinuous(true);//True=input is continuous, calculates shortest route to setPoint()\n //this.enable();//Begin running the PID Controller.\n \n LiveWindow.addActuator(\"DriveSystem\", \"PID DriveSystem\", getPIDController());\n \n // getPIDController().startLiveWindowMode();//Start having this object automatically respond to value changes.\n }", "private PlanManager spawnMission(MissionPlanSpecification mSpec, final ArrayList<Token> startingTokens) {\n UUID missionId = UUID.randomUUID();\r\n String planInstanceName = getUniquePlanName(mSpec.getName());\r\n MissionPlanSpecification mSpecInstance = mSpec.deepClone();\r\n final PlanManager pm = new PlanManager(mSpecInstance, missionId, planInstanceName, startingTokens);\r\n plans.add(pm);\r\n missionIdToPlanManager.put(missionId, pm);\r\n\r\n ArrayList<PlanManagerListenerInt> listenersCopy;\r\n synchronized (lock) {\r\n listenersCopy = (ArrayList<PlanManagerListenerInt>) planManagerListeners.clone();\r\n }\r\n for (PlanManagerListenerInt listener : listenersCopy) {\r\n listener.planCreated(pm, mSpecInstance);\r\n }\r\n\r\n (new Thread() {\r\n public void run() {\r\n pm.start();\r\n }\r\n }).start();\r\n return pm;\r\n }", "protected void initIndependentParamLists() {\n\n\t\t// params that the mean depends upon\n\t\tmeanIndependentParams.clear();\n\t\tmeanIndependentParams.addParameter(distanceJBParam);\n\t\tmeanIndependentParams.addParameter(willsSiteParam);\n\t\tmeanIndependentParams.addParameter(magParam);\n\t\tmeanIndependentParams.addParameter(fltTypeParam);\n\t\tmeanIndependentParams.addParameter(componentParam);\n\n\t\t// params that the stdDev depends upon\n\t\tstdDevIndependentParams.clear();\n\t\tstdDevIndependentParams.addParameter(stdDevTypeParam);\n\t\tstdDevIndependentParams.addParameter(componentParam);\n\t\tstdDevIndependentParams.addParameter(magParam);\n\n\t\t// params that the exceed. prob. depends upon\n\t\texceedProbIndependentParams.clear();\n\t\texceedProbIndependentParams.addParameter(distanceJBParam);\n\t\texceedProbIndependentParams.addParameter(willsSiteParam);\n\t\texceedProbIndependentParams.addParameter(magParam);\n\t\texceedProbIndependentParams.addParameter(fltTypeParam);\n\t\texceedProbIndependentParams.addParameter(componentParam);\n\t\texceedProbIndependentParams.addParameter(stdDevTypeParam);\n\t\texceedProbIndependentParams.addParameter(this.sigmaTruncTypeParam);\n\t\texceedProbIndependentParams.addParameter(this.sigmaTruncLevelParam);\n\n\t\t// params that the IML at exceed. prob. depends upon\n\t\timlAtExceedProbIndependentParams.addParameterList(\n\t\t\t\texceedProbIndependentParams);\n\t\timlAtExceedProbIndependentParams.addParameter(exceedProbParam);\n\n\t}", "protected ModelParameter newParameter(boolean isIn, String name, ModelType type) {\n\t\tModelParameter p = new ModelParameter();\n\t\tp.setName(name);\n\t\tp.setIn(isIn);\n\t\tp.setType(type);\n\t\treturn p;\n\t}", "protected CreateMachineNodeModel() {\r\n super(0,1);\r\n }", "public HandicapParameterSet() {\n }", "@objid (\"fbd51d94-815e-4e48-b896-6fe4c2eb26de\")\n MExpert createMExpert(SmMetamodel mm);", "public static void init(){\t\t\n\t\tParameters p = RunEnvironment.getInstance().getParameters();\n\n\t\tSIM_RANDOM_SEED = (Integer)p.getValue(\"randomSeed\");\n\t\tSIM_NUM_AGENTS = (Integer)p.getValue(\"maxAgents\");\n\t\tSIM_NORM_VIOLATION_RATE = (Float) p.getValue(\"Norm Violation Rate\");\n\t\tNUM_TICKS_TO_CONVERGE = (Long)p.getValue(\"NumTicksToConverge\");\n\t\tCONTENTS_QUEUE_SIZE = (Long)p.getValue(\"ContentsQueueSize\");\n\t\t\n\t\tNORM_GEN_EFF_THRESHOLD = (Double)p.getValue(\"NormsGenEffThreshold\");\n\t\tNORM_GEN_NEC_THRESHOLD = (Double)p.getValue(\"NormsGenNecThreshold\");\n\t\tNORM_SPEC_EFF_THRESHOLD = (Double)p.getValue(\"NormsSpecEffThreshold\");\n\t\tNORM_SPEC_NEC_THRESHOLD = (Double)p.getValue(\"NormsSpecNecThreshold\");\n\t\tNORM_UTILITY_WINDOW_SIZE = (Integer)p.getValue(\"NormsPerfRangeSize\");\n\t\tNORM_DEFAULT_UTILITY = (Double)p.getValue(\"NormsDefaultUtility\");\n\n\t\tNORM_SYNTHESIS_STRATEGY = (Integer)p.getValue(\"NormSynthesisStrategy\");\n\t\tNORM_GENERATION_REACTIVE = (Boolean)p.getValue(\"NormGenerationReactive\");\n\t\tNORM_GENERALISATION_MODE = (Integer)p.getValue(\"NormGeneralisationMode\");\n\t\tNORM_GENERALISATION_STEP = (Integer)p.getValue(\"NormGeneralisationStep\");\n\t\tNORM_SPEC_THRESHOLD_EPSILON = (Double)p.getValue(\"NormsSpecThresholdEpsilon\");\n\t\tNORMS_MIN_EVALS_CLASSIFY = (Integer)p.getValue(\"NormsMinEvaluationsToClassify\");\n\t\tNORMS_WITH_USER_ID = (Boolean)p.getValue(\"NormsWithUserId\");\n\n\t\t\n\t\t\n\t\t// System goals and their constants\n\t\tsystemGoals = new ArrayList<Goal>();\n\t\tsystemGoals.add(new GComplaints());\n\n\t\t//\t\tdouble tMinusEpsilon = NORM_SPEC_NEC_THRESHOLD - NORM_SPEC_THRESHOLD_EPSILON;\n\t\t//\t\t\n\t\t//\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\t//\t\tif(NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) {\n\t\t//\t\t\tNORM_DEFAULT_UTILITY = (float)(tMinusEpsilon * (NORM_MIN_EVALS+1)); \n\t\t//\t\t}\n\n\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\tif((NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) &&\n\t\t\t\t!NORM_GENERATION_REACTIVE) \n\t\t{\n\t\t\tNORM_DEFAULT_UTILITY = 0f; \n\t\t\tSystem.out.println(\"Norm generation is set as Deliberative\");\n\t\t}\n\t}", "public Parallelogramm(Point a, Point b, Point c, Point d){\r\n\t\tsuper(a,b,c,d);\r\n\t}", "public ListParameter()\r\n\t{\r\n\t}", "public Momentum() {\r\n m1 = m2 = v1 = v2 = p1 = p2 = comx = cv = 0.0;\r\n xp1 = 0.0;\r\n xp2 = 900.0;\r\n m1 = 2.0;\r\n m2 = 1.0;\r\n v1 = 1.0;\r\n v2 = -1.0;\r\n\r\n //m1 = m2 = 1.0;\r\n //v1 = 2.0;\r\n //v2 = -4.0;\r\n d = dc = 8.0;\r\n }", "public MixedInitiativeManager(IndividualDesignManager idm, int[] chosenFF, int[] chosenBMPs, int UserId, int[] regionSubbasinId, int[] tenure_regionSubbasinId) { \n this.idm = idm;\n this.dbm = idm.dbm;\n this.UserId = UserId;\n this.chosenFF = chosenFF;\n this.chosenBMPs = chosenBMPs;\n this.tenure_regionSubbasinId = tenure_regionSubbasinId;\n this.regionSubbasinId = regionSubbasinId;\n im = new IntrospectionManager(idm);\n om = new OptimizationManager(idm);\n setLocalPreferences();//set the local BMP ids\n sdmm = new SDMManager(idm, statm, chosenFF, localSubbasinLoc, useLocalPreference, chosenBMPs, useANFIS);\n this.statm = new StatisticsManager(dbm);\n //sdmm.createNewSDM(type_optimize);\n kendall = new MannKendall();\n }", "public Parameter multiplyParameter(Parameter otherPram);", "public Manusia() {}", "public LightSystem(Vector3f position, Vector3f default_position, Vector3f colour, Vector3f attenuation) {\n super(position, colour, attenuation);\n this.default_position = default_position;\n\t}", "public simulation() {\n\n }", "ParameterRefinement createParameterRefinement();", "public GeneratedTypeInitializer( ManagerEJB manager, Map params )\n\t{\n\t\tsuper( manager, params );\n\t}", "public GeneratedTypeInitializer( ManagerEJB manager, Map params )\n\t{\n\t\tsuper( manager, params );\n\t}", "public LibvirtManager(final Machine m) {\n super(m);\n }", "public VMProcess() \n\t{\n\t\tsuper();\n\t}", "ComponentParameterInstance createComponentParameterInstance();", "public WorldModel(){\t\n\t}", "protected ParameterList(){\n //title = t;\n //cellWorld = cw;\n }", "public EstimateParameter(String name, String units, double min, double max) throws\n\tConstraintException {\n\t\tthis(name, units, min, max, null);\n\t}", "public MLetter(Parameters parametersObj) {\r\n\t\tsuper(parametersObj);\r\n\t}", "public Math2()\r\n {\r\n \r\n }", "public ModelManagerImpl() {\n this( null );\n }", "public HelloMIDlet() {\n }", "public VMKernel() {\n }", "public ModemPMParser()\n\t{\n\t\tsuper();\n\t}", "private SIModule(){}", "public Gaussian() {\r\n this(1, 0, 1);\r\n }", "private Params()\n {\n }", "@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}", "Vehicle(int p, int f, int m) {\n\t\tpassengers = p;\n\t\tfuelcap = f;\n\t\tmpg = m;\n\t}", "public Planet(double xP, double yP, double xV,\n\t\tdouble yV, double m, String img){\n\t\txxPos=xP;\n\t\tyyPos=yP;\n\t\txxVel=xV;\n\t\tyyVel=yV;\n\t\tmass=m;\n\t\timgFileName=img;\n\t}", "public VMProcess() {\n\t\tsuper();\n\t}", "public Manager(String nom) {\n\t\tthis(nom, \"Prenom par defaut\", 0);\n\t}", "public BusSystem(){\n\t\tmar = new MAR((short)0, this);\n\t\tmdr = new MDR((short)0, this);\n\t\tpc = new PC((short)0);\n\t\tA = new Register((short)0);\n\t\tB = new Register((short)0);\n\t\tstack = new MemStack();\n\t\tprogramMemory = new Memory();\n\t\tMemory.setMemSize((short)1024);\n\t}", "public Prism(){//consturctor for Cube class with h initialzed to 10.0.\r\n super();//constructor of superclass called.\r\n h = 10.0;\r\n }", "public Universe(int n, int dim, boolean system)\n\t{\n\t\tthis.dimension = dim;\n\t\tthis.particles = new ArrayList<Particle>();\n\t\tthis.timebase = DEF_TIMEBASE;\n\t\t\t\n\t\tif(system == true){\n\t\t\t\n\t\t\tdouble velocity = Math.sqrt(100*GRAV_CONST);\n\t\t\tdouble[] x = {0,0,0};\n\t\t\tdouble[] pos1 = {0.25,0.5,0.5};\n\t\t\tdouble[] pos2 = {0.75, 0.5, 0.5};\n\t\t\tdouble[] veloc1 = {0, velocity, 0};\n\t\t\tdouble[] veloc2 = {0, -velocity, 0};\n\t\t\t\n\t\t\tParticle A = new Particle(new Vector(3, pos1), new Vector(3, veloc1), new Vector(3, x), 100);\n\t\t\tParticle B = new Particle(new Vector(3, pos2), new Vector(3, veloc2), new Vector(3, x), 100);\n\t\t\t\n\t\t\tparticles.add(A);\n\t\t\tparticles.add(B);\n\t\t}\n\t\telse{\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tthis.particles.add(new Particle( new Vector(dim).randomiseSphere(), Math.random()*5 ));\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "ParameterStructInstance createParameterStructInstance();", "public MComplex() {\r\n\t\ta = b = r = phi = 0;\r\n\t\tcartesian = polar = true;\r\n\t}", "public Plato(){\n\t\t\n\t}", "public HMM(int N, int M) {\n\t\tthis.N = N;\n\t\tthis.M = M;\n\t\tpi = new double[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tpi[i] = 0;\n\t\t}\n\t\tA = new double[N][];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tA[i] = new double[N];\n\t\t\tfor (int j = 0; j < N; j++)\n\t\t\t\tA[i][j] = 0;\n\t\t}\n\t\tB = new double[N][];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tB[i] = new double[M];\n\t\t\tfor (int k = 0; k < M; k++)\n\t\t\t\tB[i][k] = 0;\n\t\t}\n\t\tOs = null;\n\t\tQs = null;\n\n\t\tepsilon = 1e-6;\n\t\tmaxIter = 1000;\n\t}", "public TParametrosVOImpl() {\r\n }" ]
[ "0.767972", "0.6596964", "0.62775075", "0.62095386", "0.61748576", "0.59461874", "0.59139264", "0.58826023", "0.5874628", "0.58517665", "0.57482255", "0.57482255", "0.57482255", "0.569543", "0.56345415", "0.56336236", "0.55971897", "0.5578524", "0.556755", "0.5553467", "0.5542369", "0.55343485", "0.5526778", "0.5525962", "0.5502145", "0.55008364", "0.5499943", "0.5492018", "0.5485087", "0.54762304", "0.5461341", "0.5438664", "0.5409045", "0.53908116", "0.53592855", "0.53556883", "0.534808", "0.5339418", "0.5328591", "0.53279984", "0.5326564", "0.5265365", "0.526482", "0.5253864", "0.52532214", "0.5245386", "0.5241529", "0.52375454", "0.52362674", "0.522478", "0.5209486", "0.5194486", "0.51911974", "0.51884264", "0.5185757", "0.5175648", "0.5161198", "0.5158883", "0.5133619", "0.513303", "0.51295274", "0.51212454", "0.51104766", "0.51033103", "0.51026505", "0.5097359", "0.50901365", "0.5090034", "0.50859225", "0.50852084", "0.5084729", "0.5080998", "0.5080998", "0.5077824", "0.5073934", "0.5072895", "0.50719005", "0.5059459", "0.505469", "0.50538677", "0.50503224", "0.50387293", "0.50369996", "0.5035871", "0.50302905", "0.50298", "0.50279063", "0.5023931", "0.5019168", "0.5016983", "0.5013239", "0.5012907", "0.50113595", "0.5010827", "0.5007911", "0.50039965", "0.49947438", "0.49925992", "0.49892348", "0.49868053", "0.49861443" ]
0.0
-1
Creates the property descriptors.
@Override public void createPropertyDescriptors(List<IPropertyDescriptor> desc) { validator = new ParameterNameValidator(); validator.setTargetNode(this); JSSValidatedTextPropertyDescriptor nameD = new JSSValidatedTextPropertyDescriptor(JRDesignParameter.PROPERTY_NAME, Messages.common_name, validator); nameD.setDescription(Messages.MParameterSystem_name_description); desc.add(nameD); NClassTypePropertyDescriptor classD = new NClassTypePropertyDescriptor(JRDesignParameter.PROPERTY_VALUE_CLASS_NAME, Messages.common_class, ClassTypeComboCellEditor.DEFAULT_ITEMS) { @Override public ASPropertyWidget<RWComboBoxPropertyDescriptor> createWidget(Composite parent, AbstractSection section) { SPClassTypeCombo<RWComboBoxPropertyDescriptor> classNameWidget = new SPClassTypeCombo<RWComboBoxPropertyDescriptor>( parent, section, this); classNameWidget.setClassesOfType(classes); classNameWidget.setReadOnly(readOnly); return classNameWidget; } }; classD.setDescription(Messages.MParameterSystem_class_description); desc.add(classD); classD.setHelpRefBuilder( new HelpReferenceBuilder("net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#parameter_class")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }", "private void addProperties() {\n\t\tfor (PropertyGenerator pg : this.getPropertyGenerators()) {\n\t\t\tpg.generate();\n\t\t\tthis.enqueuePropertyTypeIfNeeded(pg);\n\t\t\tthis.addToSubBindingsIfNeeded(pg);\n\t\t}\n\t}", "public PropertyDescriptor[] getPropertyDescriptors () {\n return desc;\n }", "private static PropertyDescriptor[] getPdescriptor() {\n PropertyDescriptor[] properties = new PropertyDescriptor[4];\n\n try {\n properties[PROPERTY_length] = new PropertyDescriptor(\"length\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getLength\", \"setLength\"); // NOI18N\n properties[PROPERTY_name] = new PropertyDescriptor(\"name\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getName\", \"setName\"); // NOI18N\n properties[PROPERTY_nullable] = new PropertyDescriptor(\"nullable\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getNullable\", \"setNullable\"); // NOI18N\n properties[PROPERTY_type] = new PropertyDescriptor(\"type\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getType\", \"setType\"); // NOI18N\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }//GEN-HEADEREND:Properties\n\n // Here you can add code for customizing the properties array.\n\n return properties;\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void setDescriptors() {\n\t\tdescriptors.clear();\n\n\t\tRangePropertyDescriptor numRabbits = new RangePropertyDescriptor(\"NumRabbits\", 0, MAX_NUM_RABBITS,\n\t\t\t\tMAX_NUM_RABBITS / 5);\n\t\tdescriptors.put(\"NumRabbits\", numRabbits);\n\n\t\tRangePropertyDescriptor xSize = new RangePropertyDescriptor(\"XSize\", 1, MAX_X_SIZE, MAX_X_SIZE / 5);\n\t\tdescriptors.put(\"XSize\", xSize);\n\n\t\tRangePropertyDescriptor ySize = new RangePropertyDescriptor(\"YSize\", 1, MAX_Y_SIZE, MAX_Y_SIZE / 5);\n\t\tdescriptors.put(\"YSize\", ySize);\n\n\t\tRangePropertyDescriptor growthRateGrass = new RangePropertyDescriptor(\"GrowthRateGrass\", 0,\n\t\t\t\tMAX_GROWTH_RATE_GRASS, MAX_GROWTH_RATE_GRASS / 5);\n\t\tdescriptors.put(\"GrowthRateGrass\", growthRateGrass);\n\n\t\tRangePropertyDescriptor birthThreshold = new RangePropertyDescriptor(\"BirthThreshold\", 0, MAX_BIRTH_THRESHOLD,\n\t\t\t\tMAX_BIRTH_THRESHOLD / 5);\n\t\tdescriptors.put(\"BirthThreshold\", birthThreshold);\n\n\t\tRangePropertyDescriptor initGrass = new RangePropertyDescriptor(\"InitGrass\", 0, MAX_INIT_GRASS,\n\t\t\t\tMAX_INIT_GRASS / 4);\n\t\tdescriptors.put(\"InitGrass\", initGrass);\n\n\t\tRangePropertyDescriptor lossRateEnergy = new RangePropertyDescriptor(\"LossRateEnergy\", 0, MAX_LOSS_RATE_ENERGY,\n\t\t\t\tMAX_LOSS_RATE_ENERGY / 5);\n\t\tdescriptors.put(\"LossRateEnergy\", lossRateEnergy);\n\n\t\tRangePropertyDescriptor lossReproductionEnergy = new RangePropertyDescriptor(\"LossReproductionEnergy\", 0,\n\t\t\t\tMAX_LOSS_REPRODUCTION_ENERGY, MAX_LOSS_REPRODUCTION_ENERGY / 5);\n\t\tdescriptors.put(\"LossReproductionEnergy\", lossReproductionEnergy);\n\t}", "public PropertyDefList createDependings()\n throws MatrixException\n {\n for (final PropertyDef prop : this.properties) {\n if (prop.getTo() != null) {\n prop.getTo().create();\n }\n }\n\n return this;\n }", "public void setProperties(List<IPropertyDescriptor<T>> propSchema);", "public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }", "private static PropertyDescriptor[] getPdescriptor(){\n PropertyDescriptor[] properties = new PropertyDescriptor[19];\n \n try {\n properties[PROPERTY_board] = new PropertyDescriptor ( \"board\", org.yccheok.jstock.gui.MutableStock.class, \"getBoard\", null ); // NOI18N\n properties[PROPERTY_buyPrice] = new PropertyDescriptor ( \"buyPrice\", org.yccheok.jstock.gui.MutableStock.class, \"getBuyPrice\", \"setBuyPrice\" ); // NOI18N\n properties[PROPERTY_buyQuantity] = new PropertyDescriptor ( \"buyQuantity\", org.yccheok.jstock.gui.MutableStock.class, \"getBuyQuantity\", \"setBuyQuantity\" ); // NOI18N\n properties[PROPERTY_changePrice] = new PropertyDescriptor ( \"changePrice\", org.yccheok.jstock.gui.MutableStock.class, \"getChangePrice\", \"setChangePrice\" ); // NOI18N\n properties[PROPERTY_changePricePercentage] = new PropertyDescriptor ( \"changePricePercentage\", org.yccheok.jstock.gui.MutableStock.class, \"getChangePricePercentage\", \"setChangePricePercentage\" ); // NOI18N\n properties[PROPERTY_code] = new PropertyDescriptor ( \"code\", org.yccheok.jstock.gui.MutableStock.class, \"getCode\", null ); // NOI18N\n properties[PROPERTY_highPrice] = new PropertyDescriptor ( \"highPrice\", org.yccheok.jstock.gui.MutableStock.class, \"getHighPrice\", \"setHighPrice\" ); // NOI18N\n properties[PROPERTY_industry] = new PropertyDescriptor ( \"industry\", org.yccheok.jstock.gui.MutableStock.class, \"getIndustry\", null ); // NOI18N\n properties[PROPERTY_lastPrice] = new PropertyDescriptor ( \"lastPrice\", org.yccheok.jstock.gui.MutableStock.class, \"getLastPrice\", \"setLastPrice\" ); // NOI18N\n properties[PROPERTY_lastVolume] = new PropertyDescriptor ( \"lastVolume\", org.yccheok.jstock.gui.MutableStock.class, \"getLastVolume\", \"setLastVolume\" ); // NOI18N\n properties[PROPERTY_lowPrice] = new PropertyDescriptor ( \"lowPrice\", org.yccheok.jstock.gui.MutableStock.class, \"getLowPrice\", \"setLowPrice\" ); // NOI18N\n properties[PROPERTY_name] = new PropertyDescriptor ( \"name\", org.yccheok.jstock.gui.MutableStock.class, \"getName\", null ); // NOI18N\n properties[PROPERTY_openPrice] = new PropertyDescriptor ( \"openPrice\", org.yccheok.jstock.gui.MutableStock.class, \"getOpenPrice\", \"setOpenPrice\" ); // NOI18N\n properties[PROPERTY_prevPrice] = new PropertyDescriptor ( \"prevPrice\", org.yccheok.jstock.gui.MutableStock.class, \"getPrevPrice\", \"setPrevPrice\" ); // NOI18N\n properties[PROPERTY_sellPrice] = new PropertyDescriptor ( \"sellPrice\", org.yccheok.jstock.gui.MutableStock.class, \"getSellPrice\", \"setSellPrice\" ); // NOI18N\n properties[PROPERTY_sellQuantity] = new PropertyDescriptor ( \"sellQuantity\", org.yccheok.jstock.gui.MutableStock.class, \"getSellQuantity\", \"setSellQuantity\" ); // NOI18N\n properties[PROPERTY_stock] = new PropertyDescriptor ( \"stock\", org.yccheok.jstock.gui.MutableStock.class, \"getStock\", null ); // NOI18N\n properties[PROPERTY_symbol] = new PropertyDescriptor ( \"symbol\", org.yccheok.jstock.gui.MutableStock.class, \"getSymbol\", null ); // NOI18N\n properties[PROPERTY_volume] = new PropertyDescriptor ( \"volume\", org.yccheok.jstock.gui.MutableStock.class, \"getVolume\", \"setVolume\" ); // NOI18N\n }\n catch(IntrospectionException e) {\n e.printStackTrace();\n }//GEN-HEADEREND:Properties\n // Here you can add code for customizing the properties array.\n\n return properties; }", "public java.beans.PropertyDescriptor[] getPropertyDescriptors()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfinal java.beans.PropertyDescriptor[] res =\n\t\t\t\t{ prop(\"TargetType\", \"the type of vessel this model is evading\"),\n\t\t\t\t\t\tprop(\"Name\", \"the name of this detonation model\"),\n\t\t\t\t\t\tprop(\"DetectionLevel\", \"the name of this detonation model\"), };\n\t\t\t\tres[2]\n\t\t\t\t\t\t.setPropertyEditorClass(DetectionEvent.DetectionStatePropertyEditor.class);\n\t\t\t\treturn res;\n\t\t\t}\n\t\t\tcatch (java.beans.IntrospectionException e)\n\t\t\t{\n\t\t\t\treturn super.getPropertyDescriptors();\n\t\t\t}\n\t\t}", "private static HashMap<String, DefinedProperty> initDefinedProperties() {\n\t\tHashMap<String, DefinedProperty> newList = new HashMap<String, DefinedProperty>();\n\t\t// common properties\n\t\taddProperty(newList, \"name\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"desc\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\t// implicit default properties\n\t\taddProperty(newList, \"donttest\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"dontcompare\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\t// interface properties\n\t\taddProperty(newList, \"use_interface\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"use_new_interface\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\t// reg + regset properties\n\t\taddProperty(newList, \"js_superset_check\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"external\", DefinedPropertyType.SPECIAL, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"repcount\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t// regset only properties\n\t\taddProperty(newList, \"js_macro_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_macro_mode\", DefinedPropertyType.STRING, \"STANDARD\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_namespace\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_typedef_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_repeat\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET, false, false);\n\t\t// reg only properties\n\t\taddProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"aliasedId\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, true, false); // hidden\n\t\taddProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_is_mem\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"cppmod_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\t// signal properties\n\t\taddProperty(newList, \"cpuif_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"field_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activehigh\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activelow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"signalwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.SIGNAL, false, false);\n\t\t// fieldset only properties\n\t\taddProperty(newList, \"fieldstructwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.FIELDSET, false, false);\n\t\t// field properties\n\t\taddProperty(newList, \"rset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"we\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"wel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwe\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swmod\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swacc\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sticky\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"stickybit\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"intr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"anded\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"ored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"xored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"counter\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"overflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"fieldwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"singlepulse\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"underflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"saturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"threshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"precedence\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"encode\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"resetsignal\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"mask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"enable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltmask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltenable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"halt\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"next\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextposedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextnegedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"maskintrbits\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false); \n\t\taddProperty(newList, \"satoutput\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sub_category\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rtl_coverage\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\t\n\t\t// override allowed property set if input type is jspec\n\t\tif (Ordt.hasInputType(Ordt.InputType.JSPEC)) {\n\t\t\tputProperty(newList, \"sub_category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG | DefinedProperty.FIELDSET | DefinedProperty.FIELD, false, false);\n\t\t\tputProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"address\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"arrayidx1\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t\tputProperty(newList, \"addrinc\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t}\t\t\n\n\t\treturn newList;\n\t}", "public PropertyDescriptor[] getPropertyDescriptors() {\n\tPropertyDescriptor[] pd = new PropertyDescriptor[3];\n\ttry {\n\t\tpd [0] = new PropertyDescriptor(\"name\", RateTypeAccessBean.class);\n\t\tpd [1] = new PropertyDescriptor(\"ratetype\", RateTypeAccessBean.class);\n\t\tpd [2] = new PropertyDescriptor(\"basecurrency\", RateTypeAccessBean.class, \"getBasecurrency\", null);\n\t\treturn pd;\n\t} catch (IntrospectionException ex) {\n\t\tex.printStackTrace(System.out);\n\t}\n\treturn null;\n}", "public ComponentDescriptor() {\r\n\t\t// initialize empty collections\r\n\t\tconstructorParametersTypes = new LinkedList<List<Class<?>>>();\r\n//\t\trequiredProperties = new HashMap<String, MetaProperty>();\r\n//\t\toptionalProperties = new HashMap<String, MetaProperty>();\r\n\t}", "public final PropertyDescriptor[] getPropertyDescriptors()\n {\n try{\n final PropertyDescriptor[] res={\n prop(\"Color\", \"Color to paint highlight\"),\n prop(\"Size\", \"size to paint highlight (pixels\"),\n };\n return res;\n }\n catch(Exception e)\n {\n MWC.Utilities.Errors.Trace.trace(e);\n return super.getPropertyDescriptors();\n }\n\n }", "public void setupProperties() {\n // left empty for subclass to override\n }", "public DataModelDescriptorBuilder property(PropertyDescriptor descriptor) {\n this.properties.add(descriptor);\n return this;\n }", "void initProperties()\n\t{\n\t\tpropertyPut(LIST_SIZE, 10);\n\t\tpropertyPut(LIST_LINE, 1);\n\t\tpropertyPut(LIST_MODULE, 1); // default to module #1\n\t\tpropertyPut(COLUMN_WIDTH, 70);\n\t\tpropertyPut(UPDATE_DELAY, 25);\n\t\tpropertyPut(HALT_TIMEOUT, 7000);\n\t\tpropertyPut(BPNUM, 0);\t\t\t\t// set current breakpoint number as something bad\n\t\tpropertyPut(LAST_FRAME_DEPTH, 0);\t\t// used to determine how much context information should be displayed\n\t\tpropertyPut(CURRENT_FRAME_DEPTH, 0); // used to determine how much context information should be displayed\n\t\tpropertyPut(DISPLAY_FRAME_NUMBER, 0); // houses the current frame we are viewing\n\t\tpropertyPut(FILE_LIST_WRAP, 999999); // default 1 file name per line\n\t\tpropertyPut(NO_WAITING, 0);\n\t\tpropertyPut(INFO_STACK_SHOW_THIS, 1); // show this pointer for info stack\n\t}", "public List<IPropertyDescriptor<T>> getProperties();", "PropertyDesc[] getPropertyDesc()\r\n\t{\r\n\t\tPropertyDesc[] p = new PropertyDesc[properties.size()];\r\n\t\tint i = 0;\r\n\t\tfor (Variable v : properties)\r\n\t\t{\r\n\t\t\tp[i++] = new PropertyDesc(v.name, v.varType, v.classID);\r\n\t\t}\r\n\t\treturn p;\r\n\t}", "public void _addDeserializerFactoryMethods(DeserializationContext ctxt, BeanDescription beanDesc, VisibilityChecker<?> vchecker, AnnotationIntrospector intr, CreatorCollector creators, Map<AnnotatedWithParams, BeanPropertyDefinition[]> creatorParams) throws JsonMappingException {\n BeanPropertyDefinition argDef;\n DeserializationConfig config = ctxt.getConfig();\n for (AnnotatedMethod factory : beanDesc.getFactoryMethods()) {\n boolean isCreator = intr.hasCreatorAnnotation(factory);\n int argCount = factory.getParameterCount();\n if (argCount != 0) {\n BeanPropertyDefinition[] propDefs = (BeanPropertyDefinition[]) creatorParams.get(factory);\n if (argCount == 1) {\n if (propDefs == null) {\n argDef = null;\n } else {\n argDef = propDefs[0];\n }\n if (!_checkIfCreatorPropertyBased(intr, factory, argDef)) {\n _handleSingleArgumentFactory(config, beanDesc, vchecker, intr, creators, factory, isCreator);\n if (argDef != null) {\n ((POJOPropertyBuilder) argDef).removeConstructors();\n }\n }\n } else if (!isCreator) {\n continue;\n }\n AnnotatedParameter nonAnnotatedParam = null;\n SettableBeanProperty[] properties = new SettableBeanProperty[argCount];\n int implicitNameCount = 0;\n int explicitNameCount = 0;\n int injectCount = 0;\n int i = 0;\n while (i < argCount) {\n AnnotatedParameter param = factory.getParameter(i);\n BeanPropertyDefinition propDef = propDefs == null ? null : propDefs[i];\n Object injectId = intr.findInjectableValueId(param);\n PropertyName name = propDef == null ? null : propDef.getFullName();\n if (propDef != null && propDef.isExplicitlyNamed()) {\n explicitNameCount++;\n properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);\n } else if (injectId != null) {\n injectCount++;\n properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);\n } else if (intr.findUnwrappingNameTransformer(param) != null) {\n properties[i] = constructCreatorProperty(ctxt, beanDesc, UNWRAPPED_CREATOR_PARAM_NAME, i, param, null);\n implicitNameCount++;\n } else if (isCreator && name != null && !name.isEmpty()) {\n implicitNameCount++;\n properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);\n } else if (nonAnnotatedParam == null) {\n nonAnnotatedParam = param;\n }\n i++;\n }\n int namedCount = explicitNameCount + implicitNameCount;\n if (isCreator || explicitNameCount > 0 || injectCount > 0) {\n if (namedCount + injectCount == argCount) {\n creators.addPropertyCreator(factory, isCreator, properties);\n } else if (explicitNameCount == 0 && injectCount + 1 == argCount) {\n creators.addDelegatingCreator(factory, isCreator, properties);\n } else {\n throw new IllegalArgumentException(\"Argument #\" + nonAnnotatedParam.getIndex() + \" of factory method \" + factory + \" has no property name annotation; must have name when multiple-parameter constructor annotated as Creator\");\n }\n }\n } else if (isCreator) {\n creators.setDefaultCreator(factory);\n }\n }\n }", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddCalleePropertyDescriptor(object);\r\n\t\t\taddParameterAssignmentsPropertyDescriptor(object);\r\n\t\t\taddCallerPropertyDescriptor(object);\r\n\t\t\taddNamePropertyDescriptor(object);\r\n\t\t\taddPreCallStateDefinitionsPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddDefaultAutowirePropertyDescriptor(object);\r\n\t\t\taddDefaultInitMethodPropertyDescriptor(object);\r\n\t\t\taddDefaultAutowireCandidatesPropertyDescriptor(object);\r\n\t\t\taddDefaultDestroyMethodPropertyDescriptor(object);\r\n\t\t\taddDefaultLazyInitPropertyDescriptor(object);\r\n\t\t\taddDefaultMergePropertyDescriptor(object);\r\n\t\t\taddProfilePropertyDescriptor(object);\r\n\t\t\taddDescriptionPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "private List<PropertyGenerator> getPropertyGenerators() {\n\t\tList<PropertyGenerator.GeneratorFactory> factories = new ArrayList<PropertyGenerator.GeneratorFactory>();\n\t\t// these bindings will not mangle their property names\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.NONE));\n\t\tfactories.add(new MethodCallableGenerator.Factory());\n\t\t// these bindings will try to drop their prefix and use a shorter name\n\t\t// (e.g. getFoo -> foo)\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.GET));\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.HAS));\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.IS));\n\t\t// the field binding will use its name or append Field if it was already\n\t\t// taken by get/has/is\n\t\tfactories.add(new FieldPropertyGenerator.Factory());\n\n\t\tSet<String> namesTaken = new HashSet<String>();\n\t\tnamesTaken.add(\"getName\");\n\t\tnamesTaken.add(\"getPath\");\n\t\tnamesTaken.add(\"getType\");\n\t\tnamesTaken.add(\"getParentBinding\");\n\t\tnamesTaken.add(\"getChildBindings\");\n\n\t\tList<Element> elements = this.getAccessibleElements();\n\t\tList<PropertyGenerator> generators = new ArrayList<PropertyGenerator>();\n\n\t\tfor (PropertyGenerator.GeneratorFactory f : factories) {\n\t\t\tfor (Iterator<Element> i = elements.iterator(); i.hasNext();) {\n\t\t\t\tElement enclosed = i.next();\n\t\t\t\ttry {\n\t\t\t\t\tPropertyGenerator pg = f.newGenerator(this.pathBindingClass, this.name, this.element, enclosed,\n\t\t\t\t\t\t\tnamesTaken);\n\t\t\t\t\tif (namesTaken.contains(pg.getPropertyName())) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnamesTaken.add(pg.getPropertyName());\n\t\t\t\t\t}\n\t\t\t\t\ti.remove(); // element is handled, skip any further\n\t\t\t\t\t\t\t\t// generators\n\t\t\t\t\tgenerators.add(pg);\n\t\t\t\t\tthis.sourceElements.add(enclosed);\n\t\t\t\t} catch (WrongGeneratorException e) {\n\t\t\t\t\t// try next\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn generators;\n\t}", "public Result testGetPropertyDescriptors() {\n beanInfo.getPropertyDescriptors();\n PropertyDescriptor[] propertyDescriptors = beanInfo\n .getPropertyDescriptors();\n assertTrue(findProperty(\"property8\", propertyDescriptors));\n assertTrue(findProperty(\"class\", propertyDescriptors));\n assertEquals(propertyDescriptors.length, 2);\n return passed();\n }", "@Override\n public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n if (itemPropertyDescriptors == null) {\n super.getPropertyDescriptors(object);\n\n addOppositePropertyDescriptor(object);\n addRefsToPropertyDescriptor(object);\n addOriginalTypePropertyDescriptor(object);\n addFeaturesPropertyDescriptor(object);\n }\n return itemPropertyDescriptors;\n }", "public java.beans.PropertyDescriptor[] getPropertyDescriptors() {\n\ttry {\n\t\tjava.beans.PropertyDescriptor aDescriptorList[] = {\n\t\t\tcomponentOrientationPropertyDescriptor()\n\t\t};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddValidationPatternPropertyDescriptor(object);\n\t\t\taddInputClassPropertyDescriptor(object);\n\t\t\taddHiddenPropertyDescriptor(object);\n\t\t\taddContainerUniquePropertyDescriptor(object);\n\t\t\taddPersistentTypePropertyDescriptor(object);\n\t\t\taddOrmTypePropertyDescriptor(object);\n\t\t\taddInterfaceTypePropertyDescriptor(object);\n\t\t\taddSlugFieldsPropertyDescriptor(object);\n\t\t\taddUniquePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "protected void addPropNames()\n{\n addPropNames(\"Visible\", \"X\", \"Y\", \"Width\", \"Height\", \"Roll\", \"ScaleX\", \"ScaleY\",\n \"Font\", \"TextColor\", \"FillColor\", \"StrokeColor\", \"URL\");\n}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddWidgetTypePropertyDescriptor(object);\n\t\t\taddWidgetHintPropertyDescriptor(object);\n\t\t\taddReadOnlyPropertyDescriptor(object);\n\t\t\taddRequiredPropertyDescriptor(object);\n\t\t\taddIgnorePropertyDescriptor(object);\n\t\t\taddMenuActionsPropertyDescriptor(object);\n\t\t\taddElementFormNamePropertyDescriptor(object);\n\t\t\taddMultiLinePropertyDescriptor(object);\n\t\t\taddMultiChoicePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddIdentifierPropertyDescriptor(object);\n\t\t\taddDescriptionPropertyDescriptor(object);\n\t\t\taddProgressPropertyDescriptor(object);\n\t\t\taddTypePropertyDescriptor(object);\n\t\t\taddDecompositionPropertyDescriptor(object);\n\t\t\taddParentDecompositionPropertyDescriptor(object);\n\t\t\taddTeamMembersPropertyDescriptor(object);\n\t\t\taddTestCasesPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddShapePropertyDescriptor(object);\n\t\t\taddColorPropertyDescriptor(object);\n\t\t\taddWidthPropertyDescriptor(object);\n\t\t\taddStylePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "abstract ChildListPropertyDescriptor internalThenDeclarationsProperty();", "public List getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddConcurrentResourcesPropertyDescriptor(object);\r\n\t\t\taddMemorySpacesPropertyDescriptor(object);\r\n\t\t\taddForkPropertyDescriptor(object);\r\n\t\t\taddExitPropertyDescriptor(object);\r\n\t\t\taddBase_NamespacePropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddActionPropertyDescriptor(object);\n\t\t\taddSourcePropertyDescriptor(object);\n\t\t\taddTargetPropertyDescriptor(object);\n\t\t\taddTypePropertyDescriptor(object);\n\t\t\taddIndexPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object)\n\t{\n\t\tif (itemPropertyDescriptors == null)\n\t\t{\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddFrequencyPropertyDescriptor(object);\n\t\t\taddPrintUPSPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "private void refreshProperties() {\n\t\tInspectableProperty[][] inspectableProperties = new InspectableProperty[propertiesRowCount][];\n InspectableProperty[] creatorProperties = new InspectableProperty[propertiesRowCount];\n for (int i = 0; i < propertiesRowCount; i++) {\n \tinspectableProperties[i] = inspectables[i].getProperties(columnOrder, true);\n\t\t\tfor (int j = 0; j < inspectableProperties[i].length; j++) {\n\t\t\t\tInspectableProperty property = inspectableProperties[i][j];\n\t\t\t\tif (property instanceof CreatorProperty && creatorProperties[i] == null) {\n\t\t\t\t\tcreatorProperties[i] = property;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n }\n\t\t\t\n\t\t// Count the number of columns required by matching the properties by their names.\n \t\tnameToPropertiesColumnIndex = new HashMap();\n Vector propStrings = new Vector();\n // Add the starting fixed columns.\n propStrings.add(\"\");\n propStrings.add(propertiesNamesColumn);\n\t\tnameToPropertiesColumnIndex.put(propertiesNamesColumn, new Integer(1));\n propStrings.add(propertiesCommentsColumn);\n\t\tnameToPropertiesColumnIndex.put(propertiesCommentsColumn, new Integer(2));\n propertiesColumnCount = 3;\n for (int i = 0; i < propertiesRowCount; i++) {\n\t\t\tfor (int j = 0; j < inspectableProperties[i].length; j++) {\n\t\t\t\tInspectableProperty property = inspectableProperties[i][j];\n\t\t\t\tif (!(property instanceof CreatorProperty)) {\n\t\t\t\t\tString name = property.getName();\n\t\t\t\t\tif (nameToPropertiesColumnIndex.get(name) == null) {\n\t\t\t\t\t\tnameToPropertiesColumnIndex.put(name, Integer.valueOf(String.valueOf(propertiesColumnCount)));\n\t\t\t\t\t\tpropStrings.add(name);\n\t\t\t\t\t\tpropertiesColumnCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpropertiesColumnNames = new String[propertiesColumnCount];\n\t\tpropStrings.copyInto(propertiesColumnNames);\n\n\t\t// Copy the properties into a rectangle shaped table. Empty spaces are filled with creator properties.\n\t\tproperties = new InspectableProperty[propertiesRowCount][];\n\t\tfor (int i = 0; i < propertiesRowCount; i++) {\n\t\t\tproperties[i] = new InspectableProperty[propertiesColumnCount];\n\n\t\t\tVisibilityProperty visibilityProperty = new VisibilityProperty(true);\n\t\t\tfor (int j = 0; j < propertiesColumnCount; j++) {\n\t\t\t\tif (j == 0) {\n\t\t\t\t properties[i][j] = visibilityProperty;\n\t\t\t\t} else if (propertiesColumnNames[j].equals(propertiesCommentsColumn)) {\n\t\t\t\t properties[i][j] = inspectables[i].getCommentProperty();\n\t\t\t\t} else {\n\t\t\t\t properties[i][j] = creatorProperties[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor (int j = 0; j < inspectableProperties[i].length; j++) {\n\t\t\t\tInspectableProperty property = inspectableProperties[i][j];\n\t\t\t\tif (!(property instanceof CreatorProperty)) {\n\t\t\t\t\tint col = ((Integer)nameToPropertiesColumnIndex.get(property.getName())).intValue();\n\t\t\t\t\tproperties[i][col] = property; \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n \t\t// Create a name to row translation table.\n\t\tnameToPropertiesRowIndex = new HashMap();\n\t\tint nameColumn = nameToPropertiesColumnIndex(propertiesNamesColumn);\n\t\tif (nameColumn >= 0) {\n\t\t\tfor (int i = 0; i < propertiesRowCount; i++) {\n\t\t\t\tnameToPropertiesRowIndex.put(properties[i][nameColumn].getValue(), new Integer(i));\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddDescriptionPropertyDescriptor(object);\n\t\t\taddDeprecatedPropertyDescriptor(object);\n\t\t\taddExtendsPropertyDescriptor(object);\n\t\t\taddTypePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddC1PropertyDescriptor(object);\r\n\t\t\taddC2PropertyDescriptor(object);\r\n\t\t\taddPointReversePropertyDescriptor(object);\r\n\t\t\taddPointNormalPropertyDescriptor(object);\r\n\t\t\taddCrossing2PropertyDescriptor(object);\r\n\t\t\taddCrossing1PropertyDescriptor(object);\r\n\t\t\taddSignalsPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddTypePropertyDescriptor(object);\n\t\t\taddDescriptionPropertyDescriptor(object);\n\t\t\taddNamePropertyDescriptor(object);\n\t\t\taddLocationPropertyDescriptor(object);\n\t\t\taddFlowPropertyDescriptor(object);\n\t\t\taddAuthorizationUrlPropertyDescriptor(object);\n\t\t\taddTokenUrlPropertyDescriptor(object);\n\t\t\taddGlobalNamePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "Property createProperty();", "@Override\n public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n if (itemPropertyDescriptors == null) {\n super.getPropertyDescriptors(object);\n\n addEditorPropertyDescriptor(object);\n addTitlePropertyDescriptor(object);\n addYearPropertyDescriptor(object);\n addVolumePropertyDescriptor(object);\n addNumberPropertyDescriptor(object);\n addSeriesPropertyDescriptor(object);\n addAddressPropertyDescriptor(object);\n addMonthPropertyDescriptor(object);\n addOrganizationPropertyDescriptor(object);\n addPublisherPropertyDescriptor(object);\n addNotePropertyDescriptor(object);\n addKeyPropertyDescriptor(object);\n addCrossrefPropertyDescriptor(object);\n addDoiPropertyDescriptor(object);\n addUrlPropertyDescriptor(object);\n }\n return itemPropertyDescriptors;\n }", "public interface PropertyConsumer {\n\n /**\n * Key in the associated propertyInfo object. Holds a list of\n * property names, which should be displayed and editable when\n * configuring a PropertyConsumer object interatively. List is\n * space seperated and the order is the order in which the\n * properties will appear (initProperties).\n */\n public static final String initPropertiesProperty = \"initProperties\";\n\n /**\n * Keyword for PropertyEditor class from PropertyInfo Property\n * object (editor).\n */\n public static final String EditorProperty = \"editor\";\n /**\n * Scoped keyword for PropertyEditor class from PropertyInfo\n * Property object, same as EditorProperty with a period in front\n * (.editor).\n */\n public static final String ScopedEditorProperty = \".editor\";\n /**\n * Scoped keyword for PropertyEditor class from PropertyInfo\n * Property object, to scope the label for the property as\n * displayed in the Inspector (label).\n */\n public static final String LabelEditorProperty = \".label\";\n\n /**\n * Method to set the properties in the PropertyConsumer. It is\n * assumed that the properties do not have a prefix associated\n * with them, or that the prefix has already been set.\n * \n * @param setList a properties object that the PropertyConsumer\n * can use to retrieve expected properties it can use for\n * configuration.\n */\n public void setProperties(Properties setList);\n\n /**\n * Method to set the properties in the PropertyConsumer. The\n * prefix is a string that should be prepended to each property\n * key (in addition to a separating '.') in order for the\n * PropertyConsumer to uniquely identify properties meant for it,\n * in the midst of of Properties meant for several objects.\n * \n * @param prefix a String used by the PropertyConsumer to prepend\n * to each property value it wants to look up -\n * setList.getProperty(prefix.propertyKey). If the prefix\n * had already been set, then the prefix passed in should\n * replace that previous value.\n * @param setList a Properties object that the PropertyConsumer\n * can use to retrieve expected properties it can use for\n * configuration.\n */\n public void setProperties(String prefix, Properties setList);\n\n /**\n * Method to fill in a Properties object, reflecting the current\n * values of the PropertyConsumer. If the PropertyConsumer has a\n * prefix set, the property keys should have that prefix plus a\n * separating '.' prepended to each property key it uses for\n * configuration.\n * \n * @param getList a Properties object to load the PropertyConsumer\n * properties into. If getList equals null, then a new\n * Properties object should be created.\n * @return Properties object containing PropertyConsumer property\n * values. If getList was not null, this should equal\n * getList. Otherwise, it should be the Properties object\n * created by the PropertyConsumer.\n */\n public Properties getProperties(Properties getList);\n\n /**\n * Method to fill in a Properties object with values reflecting\n * the properties able to be set on this PropertyConsumer. The key\n * for each property should be the raw property name (without a\n * prefix) with a value that is a String that describes what the\n * property key represents, along with any other information about\n * the property that would be helpful (range, default value,\n * etc.).\n * \n * @param list a Properties object to load the PropertyConsumer\n * properties into. If getList equals null, then a new\n * Properties object should be created.\n * @return Properties object containing PropertyConsumer property\n * values. If getList was not null, this should equal\n * getList. Otherwise, it should be the Properties object\n * created by the PropertyConsumer.\n */\n public Properties getPropertyInfo(Properties list);\n\n /**\n * Set the property key prefix that should be used by the\n * PropertyConsumer. The prefix, along with a '.', should be\n * prepended to the property keys known by the PropertyConsumer.\n * \n * @param prefix the prefix String.\n */\n public void setPropertyPrefix(String prefix);\n\n /**\n * Get the property key prefix that is being used to prepend to\n * the property keys for Properties lookups.\n * \n * @return the prefix string\n */\n public String getPropertyPrefix();\n\n}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddDisplayLabelPropertyDescriptor(object);\n\t\t\taddDisplayedOnPropertyDescriptor(object);\n\t\t\taddRequiresRolePropertyDescriptor(object);\n\t\t\taddTitlePropertyDescriptor(object);\n\t\t\taddCollectionDisplayOptionPropertyDescriptor(object);\n\t\t\taddMaximumDisplaySizePropertyDescriptor(object);\n\t\t\taddTruncatePropertyDescriptor(object);\n\t\t\taddDateFormatPropertyDescriptor(object);\n\t\t\taddDisableInputPropertyDescriptor(object);\n\t\t\taddRequiredPropertyDescriptor(object);\n\t\t\taddMustMatchPropertyDescriptor(object);\n\t\t\taddInterfaceTypePropertyDescriptor(object);\n\t\t\taddPlaceholderPropertyDescriptor(object);\n\t\t\taddValidationPatternPropertyDescriptor(object);\n\t\t\taddInputClassPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddCommentPropertyDescriptor(object);\n\t\t\taddRdatePropertyDescriptor(object);\n\t\t\taddTznamePropertyDescriptor(object);\n\t\t\taddX_propPropertyDescriptor(object);\n\t\t\taddIana_propPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\n public List<IItemPropertyDescriptor> getPropertyDescriptors ( Object object )\n {\n if ( itemPropertyDescriptors == null )\n {\n super.getPropertyDescriptors ( object );\n\n addIdPropertyDescriptor ( object );\n addConnectionDaPropertyDescriptor ( object );\n addConnectionAePropertyDescriptor ( object );\n addSiteOutputDirPropertyDescriptor ( object );\n addHierarchyPropertyDescriptor ( object );\n addAknPatternPropertyDescriptor ( object );\n }\n return itemPropertyDescriptors;\n }", "public PropertyDescription[] getPropertiesDescriptions() {\n\t\tPropertyDescription[] pds = new PropertyDescription[3];\n\t\tpds[0] =\n\t\t\tnew PropertyDescription(\n\t\t\t\t\"binMethod\",\n\t\t\t\t\"Discretization Method\",\n\t\t\t\t\"The method to use for discretization. Select 1 to create bins\"\n\t\t\t\t\t+ \" by weight. This will create bins with an equal number of items in \"\n\t\t\t\t\t+ \"each slot. Select 0 to do uniform discretization by specifying the number of bins. \"\n\t\t\t\t\t+ \"This will result in equally spaced bins between the minimum and maximum for \"\n\t\t\t\t\t+ \"each scalar column.\");\n\t\tpds[1] =\n\t\t\tnew PropertyDescription(\n\t\t\t\t\"binWeight\",\n\t\t\t\t\"Number of Items per Bin\",\n\t\t\t\t\"When binning by weight, this is the number of items\"\n\t\t\t\t\t+ \" that will go in each bin. However, the bins may contain more or fewer values than \"\n\t\t\t\t\t+ \"weight values, depending on how many items equal the bin limits. Typically \"\n\t\t\t\t\t+ \"the last bin will contain less or equal to weight values and the rest of the \"\n\t\t\t\t\t+ \"bins will contain a number that is equal or greater to weight values.\");\n\t\tpds[2] =\n\t\t\tnew PropertyDescription(\n\t\t\t\t\"numberOfBins\",\n\t\t\t\t\"Number of Bins\",\n\t\t\t\t\"Define the number of bins absolutely. \"\n\t\t\t\t\t+ \"This will give equally spaced bins between \"\n\t\t\t\t\t+ \"the minimum and maximum for each scalar \"\n\t\t\t\t\t+ \"column.\");\n\t\treturn pds;\n\t}", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddKindPropertyDescriptor(object);\r\n\t\t\taddValuePropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "private PropertySetFactory() {}", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddAuditingPropertyDescriptor(object);\r\n\t\t\taddBranchingPropertyDescriptor(object);\r\n\t\t\taddWithRangesPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "private PropertyPagePropertyDescriptor getPropertyDescriptor() {\n \t\treturn propertyDescriptor;\n \t}", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddPropietarioPropertyDescriptor(object);\r\n\t\t\taddMarcaPropertyDescriptor(object);\r\n\t\t\taddReferenciaPropertyDescriptor(object);\r\n\t\t\taddModeloPropertyDescriptor(object);\r\n\t\t\taddTipovehiculoPropertyDescriptor(object);\r\n\t\t\taddPlacaPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddAfterColumnPropertyDescriptor(object);\n\t\t\taddBeforeColumnPropertyDescriptor(object);\n\t\t\taddPositionPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "private List<PropertyDescriptor> getProperties(Control control) {\n \t\tfinal Class<? extends Control> controlClass = control.getClass();\n \t\tList<PropertyDescriptor> propertyDescriptors = CONTROL_PROPERTIES.get(controlClass);\n \t\tif (propertyDescriptors == null) {\n \t\t\tpropertyDescriptors = new ArrayList<PropertyDescriptor>();\n \t\t\ttry {\n \t\t\t\tPropertyDescriptor[] descriptors = Introspector.getBeanInfo(controlClass).getPropertyDescriptors();\n \t\t\t\tfor (PropertyDescriptor pd : descriptors) {\n \t\t\t\t\tpropertyDescriptors.add(pd);\n \t\t\t\t}\n \t\t\t} catch (IntrospectionException e) {\n \t\t\t\tNop.reason(\"ignore\"); //$NON-NLS-1$\n \t\t\t}\n \t\t\tCONTROL_PROPERTIES.put(controlClass, propertyDescriptors);\n \t\t}\n \n \t\treturn propertyDescriptors;\n \t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddDependant1PropertyDescriptor(object);\n\t\t\taddDependant2PropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "protected PropertyList createPropertyList(PropertyList parent, \n FOEventHandler foEventHandler) throws FOPException {\n return foEventHandler.getPropertyListMaker().make(this, parent);\n }", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddPersonPropertyDescriptor(object);\n\t\t\taddOrganizationPropertyDescriptor(object);\n\t\t\taddWishApparatusPropertyDescriptor(object);\n\t\t\taddLicensePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddCellIDPropertyDescriptor(object);\n\t\t\taddVisitIDPropertyDescriptor(object);\n\t\t\taddNamePropertyDescriptor(object);\n\t\t\taddEmailPropertyDescriptor(object);\n\t\t\taddStartDatePropertyDescriptor(object);\n\t\t\taddEndDatePropertyDescriptor(object);\n\t\t\taddEnableAutoEmailPropertyDescriptor(object);\n\t\t\taddCalibrantPropertyDescriptor(object);\n\t\t\taddCalibrant_xPropertyDescriptor(object);\n\t\t\taddCalibrant_yPropertyDescriptor(object);\n\t\t\taddCalibrant_exposurePropertyDescriptor(object);\n\t\t\taddEnvSamplingIntervalsPropertyDescriptor(object);\n\t\t\taddEnvScannableNamesPropertyDescriptor(object);\n\t\t\taddNumberOfSamplesPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "public List getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddMp3EntryReferenceParameterPropertyDescriptor(object);\r\n\t\t\taddLinkTextParameterPropertyDescriptor(object);\r\n\t\t\taddLinkDescriptionParameterPropertyDescriptor(object);\r\n\t\t\taddCommentParameterPropertyDescriptor(object);\r\n\t\t\taddPodcastTitleParameterPropertyDescriptor(object);\r\n\t\t\taddPodcastSubtitleParameterPropertyDescriptor(object);\r\n\t\t\taddPodcastSummaryParameterPropertyDescriptor(object);\r\n\t\t\taddPodcastPublishingDateParameterPropertyDescriptor(object);\r\n\t\t\taddPublishedMp3EntryReferenceResultPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddPeersPropertyDescriptor(object);\n\t\t\taddMessagesPropertyDescriptor(object);\n\t\t\taddInitialStatePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddBaseServerNamePropertyDescriptor(object);\n\t\t\taddProfilePathPropertyDescriptor(object);\n\t\t\taddProfileNamePropertyDescriptor(object);\n\t\t\taddBootstrapPortPropertyDescriptor(object);\n\t\t\taddIcpPortPropertyDescriptor(object);\n\t\t\taddSoapPortPropertyDescriptor(object);\n\t\t\taddRemoteOsUserPropertyDescriptor(object);\n\t\t\taddRemoteOsPasswordPropertyDescriptor(object);\n\t\t\taddServerVersionPropertyDescriptor(object);\n\t\t\taddSecurityUserIdPropertyDescriptor(object);\n\t\t\taddSecurityUserPasswordPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "public PropertyRefs(Properties p) {\n props = p;\n }", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddBasisCurvePropertyDescriptor(object);\n\t\t\taddDistancePropertyDescriptor(object);\n\t\t\taddDistanceAsStringPropertyDescriptor(object);\n\t\t\taddSelfIntersectPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddFoldersPropertyDescriptor(object);\r\n\t\t\taddParentPropertyDescriptor(object);\r\n\t\t\taddWorkspacePropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddCdobjPropertyDescriptor(object);\r\n\t\t\taddRec_idPropertyDescriptor(object);\r\n\t\t\taddRec_cdPropertyDescriptor(object);\r\n\t\t\taddRec_valPropertyDescriptor(object);\r\n\t\t\taddPy_cdPropertyDescriptor(object);\r\n\t\t\taddCust_val1PropertyDescriptor(object);\r\n\t\t\taddCust_val2PropertyDescriptor(object);\r\n\t\t\taddCust_val3PropertyDescriptor(object);\r\n\t\t\taddCust_val4PropertyDescriptor(object);\r\n\t\t\taddCust_val5PropertyDescriptor(object);\r\n\t\t\taddCust_val6PropertyDescriptor(object);\r\n\t\t\taddCust_val7PropertyDescriptor(object);\r\n\t\t\taddCust_val8PropertyDescriptor(object);\r\n\t\t\taddCust_val9PropertyDescriptor(object);\r\n\t\t\taddCdobj_idPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "public interface PropertiesFactory {\n\n\t/**\n\t * Creates properties list.\n\t * @param app properties for app\n\t * @param localization localization for properties\n\t * @param onLanguageSetCallback callback when language is set\n\t * @return a list of properties\n\t */\n\tList<PropertiesArray> createProperties(App app, Localization localization,\n\t\t\tLanguageProperty.OnLanguageSetCallback onLanguageSetCallback);\n}", "public EJCoreFrameworkExtensionPropertyListEntry()\n {\n _propertyEntries = new HashMap<String, String>();\n }", "public void createProperties(String nameClass) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException {\n Object myInstanceBundle = Class.forName(\"utils2BundleConverter.\" + nameClass).newInstance();\n if (myInstanceBundle instanceof ListResourceBundle) {\n Method m = myInstanceBundle.getClass().getDeclaredMethod(\"getContents\");\n File file = new File(\"src\\\\utils2BundleConverter\\\\\" + nameClass + \".properties\");\n setFile(file);\n Object tmp = m.invoke(myInstanceBundle);\n Object[][] contents = (Object[][])tmp;\n for (Object[] content : contents) {\n writeCompareOutputFile(content[0] + \"=\" + content[1]);\n }\n }\n }", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddChildrenPropertyDescriptor(object);\n\t\t\taddLookaheadLeafNodesPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "public void initProperties() {\n propAssetClass = addProperty(AssetComponent.PROP_CLASS, \"MilitaryOrganization\");\n propAssetClass.setToolTip(PROP_CLASS_DESC);\n propUniqueID = addProperty(AssetComponent.PROP_UID, \"UTC/RTOrg\");\n propUniqueID.setToolTip(PROP_UID_DESC);\n propUnitName = addProperty(AssetComponent.PROP_UNITNAME, \"\");\n propUnitName.setToolTip(PROP_UNITNAME_DESC);\n propUIC = addProperty(PROP_UIC, \"\");\n propUIC.setToolTip(PROP_UIC_DESC);\n }", "static final ChildListPropertyDescriptor internalThenDeclarationsPropertyFactory(Class nodeClass) {\r\n\t\treturn new ChildListPropertyDescriptor(nodeClass, \"thenDeclarations\", Declaration.class, CYCLE_RISK); //$NON-NLS-1$\r\n\t}", "public static CollectionPOJODescriptor generateDescriptor (List<MongoElement> elements) {\n CollectionPOJODescriptorGenerator generator = new CollectionPOJODescriptorGenerator(elements);\n CollectionPOJODescriptor descriptor = new CollectionPOJODescriptor();\n\n elements.forEach(consumer -> {\n ++descriptor.totalPropertyCounter;\n // init the root properties\n if (consumer.parent.equals(\"root\")) {\n descriptor.rootElementNames.add(consumer);\n ++descriptor.rootPropertyCounter;\n }\n\n // init he the nested documents\n if (consumer.type == DocumentTypes.NESTED_DOCUMENT) {\n descriptor.nestedDocuments.put(consumer, generator.elementsUnder(consumer.parent+\".\"+consumer.name));\n } else if (consumer.type == DocumentTypes.DOC_ARRAY) {\n descriptor.nestedArrays.put(consumer, generator.arraysUnder(consumer.parent+\".\"+consumer.name));\n }\n\n\n });\n\n return descriptor;\n }", "public Map<AnnotatedWithParams, BeanPropertyDefinition[]> _findCreatorsFromProperties(DeserializationContext ctxt, BeanDescription beanDesc) throws JsonMappingException {\n Map<AnnotatedWithParams, BeanPropertyDefinition[]> result = Collections.emptyMap();\n for (BeanPropertyDefinition propDef : beanDesc.findProperties()) {\n Iterator<AnnotatedParameter> it = propDef.getConstructorParameters();\n while (true) {\n if (it.hasNext()) {\n AnnotatedParameter param = (AnnotatedParameter) it.next();\n AnnotatedWithParams owner = param.getOwner();\n BeanPropertyDefinition[] defs = (BeanPropertyDefinition[]) result.get(owner);\n int index = param.getIndex();\n if (defs == null) {\n if (result.isEmpty()) {\n result = new LinkedHashMap<>();\n }\n defs = new BeanPropertyDefinition[owner.getParameterCount()];\n result.put(owner, defs);\n } else if (defs[index] != null) {\n throw new IllegalStateException(\"Conflict: parameter #\" + index + \" of \" + owner + \" bound to more than one property; \" + defs[index] + \" vs \" + propDef);\n }\n defs[index] = propDef;\n }\n }\n }\n return result;\n }", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddOtherIdentifyingInfoPropertyDescriptor(object);\r\n\t\t\taddIdentifyingDescriptionsPropertyDescriptor(object);\r\n\t\t\taddDedicatedPropertyDescriptor(object);\r\n\t\t\taddOtherDedicatedDescriptionsPropertyDescriptor(object);\r\n\t\t\taddResetCapabilityPropertyDescriptor(object);\r\n\t\t\taddHostedRoutingServicesPropertyDescriptor(object);\r\n\t\t\taddHostedForwardingServicesPropertyDescriptor(object);\r\n\t\t\taddHostedRoutingPolicyPropertyDescriptor(object);\r\n\t\t\taddHostedFilterListPropertyDescriptor(object);\r\n\t\t\taddRunningOSPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "protected void addPy_cdPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_py_cd_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_py_cd_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__PY_CD,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "InjectProperty create(ContextManagerFactory contextManagerFactory, Method property);", "private static void initObjectProperties() {\n OntModel ontologie = ModelFactory.createOntologyModel();\n OntologyFactory.readOntology(ontologyPath, ontologie);\n objectProperties.addAll(ontologie.listObjectProperties().toList());\n }", "private static Map<String, String> createPropertiesAttrib() {\r\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"Property1\", \"Value1SA\");\r\n map.put(\"Property3\", \"Value3SA\");\r\n return map;\r\n }", "public void init() {\n entityPropertyBuilders.add(new DefaultEntityComponentBuilder(environment));\n entityPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n entityPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n entityPropertyBuilders.add(new PrimaryKeyComponentBuilder(environment));\n\n // Field meta property builders\n fieldPropertyBuilders.add(new FilterPrimaryKeyComponentBuilder(environment));\n fieldPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n fieldPropertyBuilders.add(new TtlFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new CompositeParentComponentBuilder(environment));\n fieldPropertyBuilders.add(new CollectionFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MapFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new SimpleFieldComponentBuilder(environment));\n }", "protected void addFeaturesPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_Reference_features_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_Reference_features_feature\", \"_UI_Reference_type\"),\n NoSQLSchemaPackage.Literals.REFERENCE__FEATURES,\n true,\n false,\n true,\n null,\n null,\n null));\n }", "protected ProjectCreationDescriptor() {\n\t}", "public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "PropertyType createPropertyType();", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "public PropertiesQDoxPropertyExpander() {\n super();\n }", "protected void addSlugFieldsPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\tgetResourceLocator(),\n\t\t\tgetString(\"_UI_EntityAttribute_slugFields_feature\"),\n\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_EntityAttribute_slugFields_feature\", \"_UI_EntityAttribute_type\"),\n\t\t\tPersistencePackage.Literals.ENTITY_ATTRIBUTE__SLUG_FIELDS,\n\t\t\ttrue, false, true, null,\n\t\t\tnull,\n\t\t\tnull));\n//\t\titemPropertyDescriptors.add(new ItemPropertyDescriptor(\n//\t\t\t((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n//\t\t\tgetResourceLocator(),\n//\t\t\tgetString(\"_UI_EntityAttribute_slugFields_feature\"),\n//\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_EntityAttribute_slugFields_feature\", \"_UI_EntityAttribute_type\"),\n//\t\t\tPersistencePackage.Literals.ENTITY_ATTRIBUTE__SLUG_FIELDS,\n//\t\t\ttrue, false, true, null,\n//\t\t\tgetString(\"_UI_ModelPropertyCategory\"),\n//\t\t\tnull) {\n//\t\t\t\t@Override\n//\t\t\t\tpublic Collection<?> getChoiceOfValues(Object object) {\n//\t\t\t\t\tif (object instanceof EntityAttribute) {\n//\t\t\t\t\t\tfinal EntityAttribute attribute = (EntityAttribute) object;\n//\t\t\t\t\t\treturn attribute.getPartOf().getAllFeatures();\n//\t\t\t\t\t}\n//\n//\t\t\t\t\treturn Collections.emptySet();\n//\t\t\t\t}\n//\t\t\t});\n\t}", "public abstract List<BeanPropertyDefinition> findProperties();", "public void genProperties(PropertiesModel propModel) {\n\t\tpropModel.addProp(\"X\", position.x());\n\t\tpropModel.addProp(\"Y\", position.y());\n\t\tpropModel.addProp(\"Collision Radius\", collisionRadius);\n\t}", "protected void addRefsToPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_Reference_refsTo_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_Reference_refsTo_feature\", \"_UI_Reference_type\"),\n NoSQLSchemaPackage.Literals.REFERENCE__REFS_TO,\n true,\n false,\n true,\n null,\n null,\n null));\n }", "public void generate() {\n\t\tthis.initializePathBindingClass();\n\t\t// managed at abstract level ; name provided at binding generation time\n\t\t// this.addGetName();\n\t\t// this.addGetType();\n\n\t\t// add all properties methods\n\t\tthis.addProperties();\n\t\t// add getter that provides property list\n\t\tthis.addGetChildBindings();\n\n\t\t// initialize class declaration (*Binding)\n\t\tthis.initializeRootBindingClass();\n\t\t// add constructors\n\t\tthis.addConstructors();\n\t\t// add getWithRoot method\n\t\tthis.addGetWithRoot();\n\t\t// add getSafelyWithRoot method\n\t\tthis.addGetSafelyWithRoot();\n\n\t\tthis.addGeneratedTimestamp();\n\t\tthis.addSerialVersionUID();\n\t\tthis.saveCode(this.pathBindingClass);\n\t\tthis.saveCode(this.rootBindingClass);\n\t}", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "protected XMLClassDescriptorImpl() {\n attributeDescriptors = new List(7);\n elementDescriptors = new List(7);\n }", "@Override\n public ICMakeBuildElement createBuildProperties(Path path) {\n return CMakeBuildProperties.make();\n }", "PropertyRule createPropertyRule();", "public PSBeanProperties()\n {\n loadProperties();\n }", "Property[] getProperties();", "@Override\n public ICMakeBuildElement createBuildProperties(Path path) {\n return CMakeBuildProperties.make(path);\n }", "public void _addDeserializerConstructors(DeserializationContext ctxt, BeanDescription beanDesc, VisibilityChecker<?> vchecker, AnnotationIntrospector intr, CreatorCollector creators, Map<AnnotatedWithParams, BeanPropertyDefinition[]> creatorParams) throws JsonMappingException {\n AnnotatedConstructor defaultCtor = beanDesc.findDefaultConstructor();\n if (defaultCtor != null && (!creators.hasDefaultCreator() || intr.hasCreatorAnnotation(defaultCtor))) {\n creators.setDefaultCreator(defaultCtor);\n }\n if (!beanDesc.isNonStaticInnerClass()) {\n LinkedList linkedList = null;\n for (AnnotatedConstructor ctor : beanDesc.getConstructors()) {\n boolean isCreator = intr.hasCreatorAnnotation(ctor);\n BeanPropertyDefinition[] propDefs = (BeanPropertyDefinition[]) creatorParams.get(ctor);\n int argCount = ctor.getParameterCount();\n if (argCount == 1) {\n BeanPropertyDefinition argDef = propDefs == null ? null : propDefs[0];\n if (_checkIfCreatorPropertyBased(intr, ctor, argDef)) {\n SettableBeanProperty[] properties = new SettableBeanProperty[1];\n PropertyName name = argDef == null ? null : argDef.getFullName();\n AnnotatedParameter arg = ctor.getParameter(0);\n properties[0] = constructCreatorProperty(ctxt, beanDesc, name, 0, arg, intr.findInjectableValueId(arg));\n creators.addPropertyCreator(ctor, isCreator, properties);\n } else {\n _handleSingleArgumentConstructor(ctxt, beanDesc, vchecker, intr, creators, ctor, isCreator, vchecker.isCreatorVisible(ctor));\n if (argDef != null) {\n ((POJOPropertyBuilder) argDef).removeConstructors();\n }\n }\n } else {\n AnnotatedParameter nonAnnotatedParam = null;\n SettableBeanProperty[] properties2 = new SettableBeanProperty[argCount];\n int explicitNameCount = 0;\n int implicitWithCreatorCount = 0;\n int injectCount = 0;\n int i = 0;\n while (i < argCount) {\n AnnotatedParameter param = ctor.getParameter(i);\n BeanPropertyDefinition propDef = propDefs == null ? null : propDefs[i];\n Object injectId = intr.findInjectableValueId(param);\n PropertyName name2 = propDef == null ? null : propDef.getFullName();\n if (propDef != null && propDef.isExplicitlyNamed()) {\n explicitNameCount++;\n properties2[i] = constructCreatorProperty(ctxt, beanDesc, name2, i, param, injectId);\n } else if (injectId != null) {\n injectCount++;\n properties2[i] = constructCreatorProperty(ctxt, beanDesc, name2, i, param, injectId);\n } else if (intr.findUnwrappingNameTransformer(param) != null) {\n properties2[i] = constructCreatorProperty(ctxt, beanDesc, UNWRAPPED_CREATOR_PARAM_NAME, i, param, null);\n explicitNameCount++;\n } else if (isCreator && name2 != null && !name2.isEmpty()) {\n implicitWithCreatorCount++;\n properties2[i] = constructCreatorProperty(ctxt, beanDesc, name2, i, param, injectId);\n } else if (nonAnnotatedParam == null) {\n nonAnnotatedParam = param;\n }\n i++;\n }\n int namedCount = explicitNameCount + implicitWithCreatorCount;\n if (isCreator || explicitNameCount > 0 || injectCount > 0) {\n if (namedCount + injectCount == argCount) {\n creators.addPropertyCreator(ctor, isCreator, properties2);\n } else if (explicitNameCount == 0 && injectCount + 1 == argCount) {\n creators.addDelegatingCreator(ctor, isCreator, properties2);\n } else {\n PropertyName impl = _findImplicitParamName(nonAnnotatedParam, intr);\n if (impl == null || impl.isEmpty()) {\n throw new IllegalArgumentException(\"Argument #\" + nonAnnotatedParam.getIndex() + \" of constructor \" + ctor + \" has no property name annotation; must have name when multiple-parameter constructor annotated as Creator\");\n }\n }\n }\n if (!creators.hasDefaultCreator()) {\n if (linkedList == null) {\n linkedList = new LinkedList();\n }\n linkedList.add(ctor);\n }\n }\n }\n if (linkedList != null && !creators.hasDelegatingCreator() && !creators.hasPropertyBasedCreator()) {\n _checkImplicitlyNamedConstructors(ctxt, beanDesc, vchecker, intr, creators, linkedList);\n }\n }\n }", "@Override\n protected PropertiesHandler<Person> getPropertiesHandler() {\n final PropertiesHandler<Address.Builder> addressHandler = new MappedPropertiesHandler<Address.Builder>() {\n @Override\n public Address.Builder getTarget() {\n return Address.builder();\n }\n }\n .map(\"street\", (Address.Builder t, String value) -> t.setStreet(value))\n .map(\"zip\", (Address.Builder t, String value) -> t.setZip(value))\n .map(\"city\", (Address.Builder t, String value) -> t.setCity(value));\n\n /*\n * Map Person to properties\n */\n final PropertiesHandler<Person> personHandler = new MappedPropertiesHandler<Person>() {\n @Override\n public Person getTarget() {\n return new Person();\n }\n }\n .map(\"first-name\", (Person p, String value) -> p.setFirstName(value))\n .map(\"last-name\", (Person p, String value) -> p.setLastName(value))\n .map(\"home-address\", addressHandler, (Person p, Address.Builder a) -> p.setHomeAddress(a.build()))\n .map(\"work-address\", addressHandler, (Person p, Address.Builder a) -> p.setWorkAddress(a.build()));\n\n return personHandler;\n }" ]
[ "0.64916843", "0.6370317", "0.63369066", "0.62886256", "0.6228032", "0.615435", "0.6134669", "0.6093812", "0.590407", "0.58867276", "0.58739257", "0.58152956", "0.5806781", "0.5755382", "0.5721542", "0.5719501", "0.5707856", "0.56941044", "0.56458235", "0.5639245", "0.56279695", "0.56112933", "0.5572216", "0.55715066", "0.5559225", "0.55558354", "0.55244714", "0.55172086", "0.5513401", "0.5494395", "0.5493143", "0.5487071", "0.5475903", "0.5473111", "0.5471948", "0.5466851", "0.54542387", "0.5430185", "0.54159504", "0.54100585", "0.5390072", "0.5379608", "0.53673065", "0.536433", "0.53513414", "0.5338814", "0.53316903", "0.5316381", "0.52922577", "0.52805746", "0.5280371", "0.52655417", "0.5264585", "0.52576077", "0.52502114", "0.5227137", "0.52250516", "0.52140117", "0.52130437", "0.5200297", "0.51858896", "0.5184277", "0.5177019", "0.5163973", "0.5150096", "0.514557", "0.5134569", "0.5125071", "0.5109488", "0.5107489", "0.50972754", "0.5097039", "0.50916606", "0.50876355", "0.50799", "0.5059564", "0.5024549", "0.50236344", "0.50223804", "0.50163543", "0.5004156", "0.49842682", "0.49818644", "0.4981216", "0.4981216", "0.49623778", "0.49558613", "0.49516776", "0.4949658", "0.494539", "0.49409118", "0.49403423", "0.49184626", "0.48994046", "0.48848778", "0.48812988", "0.48785096", "0.48675123", "0.48672062", "0.48630625" ]
0.57663643
13
Creates the jr parameter.
public static JRDesignParameter createJRParameter(JRDesignDataset jrDataset) { JRDesignParameter jrDesignParameter = new JRDesignParameter(); jrDesignParameter.setSystemDefined(true); jrDesignParameter.setName(ModelUtils.getDefaultName(jrDataset.getParametersMap(), "Parameter")); //$NON-NLS-1$ return jrDesignParameter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "JRParameter createJRParameter();", "Param createParam();", "Param createParam();", "Param createParam();", "Parameter createParameter();", "public JParameterRecord() {\n super(JParameter.PARAMETER);\n }", "PARAM createPARAM();", "private ConfigurationObject createParamReference(int num, String name) throws Exception {\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param\" + num);\r\n param.setPropertyValue(PROPERTY_NAME, name);\r\n\r\n return param;\r\n }", "private ConfigurationObject createParam(int num, String type, String value) throws Exception {\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param\" + num);\r\n param.setPropertyValue(PROPERTY_TYPE, type);\r\n param.setPropertyValue(PROPERTY_VALUE, value);\r\n\r\n return param;\r\n }", "public final EObject ruleJRParameterObj() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n Token lv_bracedIdentifier_2_0=null;\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1234:28: ( ( () otherlv_1= '$P' ( (lv_bracedIdentifier_2_0= RULE_BRACED_IDENTIFIER ) ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1235:1: ( () otherlv_1= '$P' ( (lv_bracedIdentifier_2_0= RULE_BRACED_IDENTIFIER ) ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1235:1: ( () otherlv_1= '$P' ( (lv_bracedIdentifier_2_0= RULE_BRACED_IDENTIFIER ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1235:2: () otherlv_1= '$P' ( (lv_bracedIdentifier_2_0= RULE_BRACED_IDENTIFIER ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1235:2: ()\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1236:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getJRParameterObjAccess().getJRParameterObjAction_0(),\n current);\n \n }\n\n }\n\n otherlv_1=(Token)match(input,42,FOLLOW_42_in_ruleJRParameterObj3018); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getJRParameterObjAccess().getPKeyword_1());\n \n }\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1245:1: ( (lv_bracedIdentifier_2_0= RULE_BRACED_IDENTIFIER ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1246:1: (lv_bracedIdentifier_2_0= RULE_BRACED_IDENTIFIER )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1246:1: (lv_bracedIdentifier_2_0= RULE_BRACED_IDENTIFIER )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1247:3: lv_bracedIdentifier_2_0= RULE_BRACED_IDENTIFIER\n {\n lv_bracedIdentifier_2_0=(Token)match(input,RULE_BRACED_IDENTIFIER,FOLLOW_RULE_BRACED_IDENTIFIER_in_ruleJRParameterObj3035); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_bracedIdentifier_2_0, grammarAccess.getJRParameterObjAccess().getBracedIdentifierBRACED_IDENTIFIERTerminalRuleCall_2_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getJRParameterObjRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"bracedIdentifier\",\n \t\tlv_bracedIdentifier_2_0, \n \t\t\"BRACED_IDENTIFIER\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "IFMLParameter createIFMLParameter();", "public ModelRunParameterValueRecord() {\n super(ModelRunParameterValue.MODEL_RUN_PARAMETER_VALUE);\n }", "@Override\n\tpublic RptParams getCustomCondition() {\n\t\tRptParams params = new RptParams();\n\n\t\tDate sd = (Date) this.pkStartDate.getValue();\n\t\tDate ed = (Date) this.pkEndDate.getValue();\n\n\t\tparams.setObject(\"startDate\", sd);\n\t\tparams.setObject(\"endDate\", ed);\n\n\t\treturn params;\n\t}", "public MParameterSystem(ANode parent, JRDesignParameter jrParameter, int newIndex) {\n\t\tsuper(parent, newIndex);\n\t\tsetValue(jrParameter);\n\t}", "Report addParameter(String parameter, Object value);", "SystemParamModel createSystemParamModel();", "public void writeParameterToR(String parameterName);", "public Name(String firstName, String lastName, String von, String jr) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.von = von;\n this.jr = jr;\n }", "public final EObject entryRuleJRParameterObj() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleJRParameterObj = null;\n\n\n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1223:2: (iv_ruleJRParameterObj= ruleJRParameterObj EOF )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1224:2: iv_ruleJRParameterObj= ruleJRParameterObj EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getJRParameterObjRule()); \n }\n pushFollow(FOLLOW_ruleJRParameterObj_in_entryRuleJRParameterObj2962);\n iv_ruleJRParameterObj=ruleJRParameterObj();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleJRParameterObj; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleJRParameterObj2972); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Override\n\tpublic void setCustomCondition(RptParams params) {\n\t\tif (params.getObject(\"startDate\") != null) {\n Date sd = (Date)params.getObject(\"startDate\");\n this.pkStartDate.setValue(sd);\n\t\t}\n\n\t\tif (params.getObject(\"endDate\") != null) {\n\t\t\tDate ed = (Date) params.getObject(\"endDate\");\n\t\t\tthis.pkEndDate.setValue(ed);\n\t\t}\n\t}", "HxParameter createParameter(final String className);", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "protected abstract JRAbstractExporter<?, ?, ?, ?> createExporter(JasperReportsConfiguration jContext, JRExportProgressMonitor monitor, File file);", "ParameterIdentification createParameterIdentification();", "public DefaultExecuterParameters() {\n\t\tnumAuthorsAtStart = 5;\n\t\tnumPublicationsAtStart = 20;\n\t\tnumCreationAuthors = 0;\n\t\tnumCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t}", "interface WithPriority {\n /**\n * Specifies priority.\n * @param priority Priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0\n * @return the next definition stage\n */\n WithCreate withPriority(Integer priority);\n }", "public interface IPortletDefinitionParameter {\n \n // Getter methods\n \n /**\n * Get the name of the channel parameter.\n * @return the name of the channel parameter.\n */\n public String getName();\n \n /**\n * Get the default value of the channel parameter.\n * @return the default value for this channel parameter.\n */\n public String getValue();\n \n /**\n * Get a description of this channel parameter.\n * @return a description of this channel parameter.\n */\n public String getDescription();\n\n \n // Setter methods\n \n /**\n * Set the default value for this channel parameter.\n * @param value the default value for this channel parameter.\n */\n public void setValue(String value);\n \n /**\n * Set the description of this channel parameter.\n * @param descr description of this channel parameter.\n */\n public void setDescription(String descr);\n\n}", "public JavaJRExpressionFactoryImpl()\n {\n super();\n }", "@Override\n\tpublic String createJiraConfig(JiraParametersDTO jiraParametersDTO) {\n\t\treturn null;\n\t}", "public Builder() {\n this.obj = new RwjlTmTjmx();\n }", "private static void addParameters(final ResourceAllocation bean, final DataSource dataSource) {\n dataSource.addParameter(\"buildingId\", bean.getBlId(), DataSource.DATA_TYPE_TEXT);\n dataSource.addParameter(\"floorId\", bean.getFlId(), DataSource.DATA_TYPE_TEXT);\n dataSource.addParameter(\"roomId\", bean.getRmId(), DataSource.DATA_TYPE_TEXT);\n dataSource.addParameter(\"startDate\", bean.getStartDate(), DataSource.DATA_TYPE_DATE);\n dataSource.addParameter(\"startTime\", bean.getStartTime(), DataSource.DATA_TYPE_TIME);\n dataSource.addParameter(\"endTime\", bean.getEndTime(), DataSource.DATA_TYPE_TIME);\n }", "public final EObject ruleBaseJRExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_JRFieldObj_0 = null;\n\n EObject this_JRParameterObj_1 = null;\n\n EObject this_JRVariableObj_2 = null;\n\n EObject this_JRResourceBundleKeyObj_3 = null;\n\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1125:28: ( (this_JRFieldObj_0= ruleJRFieldObj | this_JRParameterObj_1= ruleJRParameterObj | this_JRVariableObj_2= ruleJRVariableObj | this_JRResourceBundleKeyObj_3= ruleJRResourceBundleKeyObj ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1126:1: (this_JRFieldObj_0= ruleJRFieldObj | this_JRParameterObj_1= ruleJRParameterObj | this_JRVariableObj_2= ruleJRVariableObj | this_JRResourceBundleKeyObj_3= ruleJRResourceBundleKeyObj )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1126:1: (this_JRFieldObj_0= ruleJRFieldObj | this_JRParameterObj_1= ruleJRParameterObj | this_JRVariableObj_2= ruleJRVariableObj | this_JRResourceBundleKeyObj_3= ruleJRResourceBundleKeyObj )\n int alt17=4;\n switch ( input.LA(1) ) {\n case 41:\n {\n alt17=1;\n }\n break;\n case 42:\n {\n alt17=2;\n }\n break;\n case 43:\n {\n alt17=3;\n }\n break;\n case 44:\n {\n alt17=4;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 17, 0, input);\n\n throw nvae;\n }\n\n switch (alt17) {\n case 1 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1127:5: this_JRFieldObj_0= ruleJRFieldObj\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getBaseJRExpressionAccess().getJRFieldObjParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleJRFieldObj_in_ruleBaseJRExpression2732);\n this_JRFieldObj_0=ruleJRFieldObj();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_JRFieldObj_0; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 2 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1137:5: this_JRParameterObj_1= ruleJRParameterObj\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getBaseJRExpressionAccess().getJRParameterObjParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleJRParameterObj_in_ruleBaseJRExpression2759);\n this_JRParameterObj_1=ruleJRParameterObj();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_JRParameterObj_1; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 3 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1147:5: this_JRVariableObj_2= ruleJRVariableObj\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getBaseJRExpressionAccess().getJRVariableObjParserRuleCall_2()); \n \n }\n pushFollow(FOLLOW_ruleJRVariableObj_in_ruleBaseJRExpression2786);\n this_JRVariableObj_2=ruleJRVariableObj();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_JRVariableObj_2; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 4 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1157:5: this_JRResourceBundleKeyObj_3= ruleJRResourceBundleKeyObj\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getBaseJRExpressionAccess().getJRResourceBundleKeyObjParserRuleCall_3()); \n \n }\n pushFollow(FOLLOW_ruleJRResourceBundleKeyObj_in_ruleBaseJRExpression2813);\n this_JRResourceBundleKeyObj_3=ruleJRResourceBundleKeyObj();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_JRResourceBundleKeyObj_3; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "String toParameter();", "String createParameterJsonSchema();", "protected ModelParameter newParameter(boolean isIn, String name, ModelType type) {\n\t\tModelParameter p = new ModelParameter();\n\t\tp.setName(name);\n\t\tp.setIn(isIn);\n\t\tp.setType(type);\n\t\treturn p;\n\t}", "@Override\n\tpublic void onInit(RptParams params) throws Exception {\n\t}", "public void generarReporteGanancia(String destino,String fechainicial,String fechafinal)\n {\n \n if(destino.equals(\"Todos\"))\n {\n try\n {\n //File miDir = new File (Crear.class.getResource(\"/Reportes/ticket.jasper\").getFile());\n //File miDir=new File(\"/Reportes/ticket.jasper\");\n URL entrada=this.getClass().getResource(\"/Reportes/GananciaVentasGeneral.jasper\");\n JasperReport jasperReport;\n jasperReport=(JasperReport)JRLoader.loadObject(entrada);\n \n HashMap parametros = new HashMap<>();\n\n \n \n parametros.put(\"destino\", destino);\n parametros.put(\"fechainicial\", fechainicial);\n parametros.put(\"fechafinal\", fechafinal);\n \n \n \t\tJasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, parametros, Conexion.obtenerConexion());\n\t\t JasperViewer viewer = new JasperViewer(jasperPrint,false);\n viewer.setTitle(\"Movimientos de Ventas Credito/Contado\");\n viewer.setVisible(true);\n \n }\n catch(Exception er)\n {\n JOptionPane.showMessageDialog(null,\"Error al generar reporte\"+er.getCause()+\"\"+er.getLocalizedMessage());\n }\n }\n else\n { \n \n try\n {\n //File miDir = new File (Crear.class.getResource(\"/Reportes/ticket.jasper\").getFile());\n //File miDir=new File(\"/Reportes/ticket.jasper\");\n URL entrada=this.getClass().getResource(\"/Reportes/GananciaVentas.jasper\");\n JasperReport jasperReport;\n jasperReport=(JasperReport)JRLoader.loadObject(entrada);\n \n HashMap parametros = new HashMap<>();\n\n \n \n parametros.put(\"destino\", destino);\n parametros.put(\"fechainicial\", fechainicial);\n parametros.put(\"fechafinal\", fechafinal);\n \n \n \t\tJasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, parametros, Conexion.obtenerConexion());\n\t\t JasperViewer viewer = new JasperViewer(jasperPrint,false);\n viewer.setTitle(\"Movimientos de Insumos\");\n viewer.setVisible(true);\n \n }\n catch(Exception er)\n {\n JOptionPane.showMessageDialog(null,\"Error al generar reporte\"+er.getCause()+\"\"+er.getLocalizedMessage());\n }\n } \n }", "private static String createDriver() {\n\t\tBFLogger.logDebug(\"Creating new \" + RuntimeParameters.PARAM_1.toString() + \" driver.\");\n\t\t\n\t\tString driver = \"created driver\";\n\t\treturn driver;\n\t}", "public void setGEM1ERFParams(GEM1ERF erf) {\n // set minimum magnitude\n /*\n * xxr: TODO: !!!type safety!!! apache's Configuration interface handles\n * a similar problem this way: Instead of defining one single method\n * like public void setParameter(String key, Object value) {...} there\n * is one method per type defined: setString(), setDouble(), setInt(),\n * ...\n */\n erf.setParameter(GEM1ERF.MIN_MAG_NAME, config\n .getDouble(ConfigItems.MINIMUM_MAGNITUDE.name()));\n // set time span\n TimeSpan timeSpan = new TimeSpan(TimeSpan.NONE, TimeSpan.YEARS);\n timeSpan.setDuration(config.getDouble(ConfigItems.INVESTIGATION_TIME\n .name()));\n erf.setTimeSpan(timeSpan);\n\n // params for area source\n // set inclusion of area sources in the calculation\n erf.setParameter(GEM1ERF.INCLUDE_AREA_SRC_PARAM_NAME, config\n .getBoolean(ConfigItems.INCLUDE_AREA_SOURCES.name()));\n // set rupture type (\"area source rupture model /\n // area_source_rupture_model / AreaSourceRuptureModel)\n erf.setParameter(GEM1ERF.AREA_SRC_RUP_TYPE_NAME, config\n .getString(ConfigItems.TREAT_AREA_SOURCE_AS.name()));\n // set area discretization\n erf.setParameter(GEM1ERF.AREA_SRC_DISCR_PARAM_NAME, config\n .getDouble(ConfigItems.AREA_SOURCE_DISCRETIZATION.name()));\n // set mag-scaling relationship\n erf\n .setParameter(\n GEM1ERF.AREA_SRC_MAG_SCALING_REL_PARAM_NAME,\n config\n .getString(ConfigItems.AREA_SOURCE_MAGNITUDE_SCALING_RELATIONSHIP\n .name()));\n // params for grid source\n // inclusion of grid sources in the calculation\n erf.setParameter(GEM1ERF.INCLUDE_GRIDDED_SEIS_PARAM_NAME, config\n .getBoolean(ConfigItems.INCLUDE_GRID_SOURCES.name()));\n // rupture model\n erf.setParameter(GEM1ERF.GRIDDED_SEIS_RUP_TYPE_NAME, config\n .getString(ConfigItems.TREAT_GRID_SOURCE_AS.name()));\n // mag-scaling relationship\n erf\n .setParameter(\n GEM1ERF.GRIDDED_SEIS_MAG_SCALING_REL_PARAM_NAME,\n config\n .getString(ConfigItems.AREA_SOURCE_MAGNITUDE_SCALING_RELATIONSHIP\n .name()));\n\n // params for fault source\n // inclusion of fault sources in the calculation\n erf.setParameter(GEM1ERF.INCLUDE_FAULT_SOURCES_PARAM_NAME, config\n .getBoolean(ConfigItems.INCLUDE_FAULT_SOURCE.name()));\n // rupture offset\n erf.setParameter(GEM1ERF.FAULT_RUP_OFFSET_PARAM_NAME, config\n .getDouble(ConfigItems.FAULT_RUPTURE_OFFSET.name()));\n // surface discretization\n erf.setParameter(GEM1ERF.FAULT_DISCR_PARAM_NAME, config\n .getDouble(ConfigItems.FAULT_SURFACE_DISCRETIZATION.name()));\n // mag-scaling relationship\n erf.setParameter(GEM1ERF.FAULT_MAG_SCALING_REL_PARAM_NAME, config\n .getString(ConfigItems.FAULT_MAGNITUDE_SCALING_RELATIONSHIP\n .name()));\n\n // mag-scaling sigma\n erf.setParameter(GEM1ERF.FAULT_SCALING_SIGMA_PARAM_NAME, config\n .getDouble(ConfigItems.FAULT_MAGNITUDE_SCALING_SIGMA.name()));\n // rupture aspect ratio\n erf.setParameter(GEM1ERF.FAULT_RUP_ASPECT_RATIO_PARAM_NAME, config\n .getDouble(ConfigItems.RUPTURE_ASPECT_RATIO.name()));\n // rupture floating type\n erf.setParameter(GEM1ERF.FAULT_FLOATER_TYPE_PARAM_NAME, config\n .getString(ConfigItems.RUPTURE_FLOATING_TYPE.name()));\n\n // params for subduction fault\n // inclusion of fault sources in the calculation\n erf\n .setParameter(\n GEM1ERF.INCLUDE_SUBDUCTION_SOURCES_PARAM_NAME,\n config\n .getBoolean(ConfigItems.INCLUDE_SUBDUCTION_FAULT_SOURCE\n .name()));\n // rupture offset\n erf.setParameter(GEM1ERF.SUB_RUP_OFFSET_PARAM_NAME, config\n .getDouble(ConfigItems.SUBDUCTION_FAULT_RUPTURE_OFFSET.name()));\n // surface discretization\n erf.setParameter(GEM1ERF.SUB_DISCR_PARAM_NAME, config\n .getDouble(ConfigItems.SUBDUCTION_FAULT_SURFACE_DISCRETIZATION\n .name()));\n // mag-scaling relationship\n erf\n .setParameter(\n GEM1ERF.SUB_MAG_SCALING_REL_PARAM_NAME,\n config\n .getString(ConfigItems.SUBDUCTION_FAULT_MAGNITUDE_SCALING_RELATIONSHIP\n .name()));\n // mag-scaling sigma\n erf.setParameter(GEM1ERF.SUB_SCALING_SIGMA_PARAM_NAME, config\n .getDouble(ConfigItems.SUBDUCTION_FAULT_MAGNITUDE_SCALING_SIGMA\n .name()));\n // rupture aspect ratio\n erf.setParameter(GEM1ERF.SUB_RUP_ASPECT_RATIO_PARAM_NAME, config\n .getDouble(ConfigItems.SUBDUCTION_RUPTURE_ASPECT_RATIO.name()));\n // rupture floating type\n erf\n .setParameter(GEM1ERF.SUB_FLOATER_TYPE_PARAM_NAME, config\n .getString(ConfigItems.SUBDUCTION_RUPTURE_FLOATING_TYPE\n .name()));\n\n // update\n erf.updateForecast();\n }", "java.lang.String getParameterValue();", "public void setTjr(String tjr) {\n this.tjr = tjr;\n }", "ComponentParameterInstance createComponentParameterInstance();", "private void crearReporte() {\n medirTiempoDeEnvio();\n SimpleDateFormat variableFecha = new SimpleDateFormat(\"dd-MM-yyyy\");\n Calendar cal = Calendar.getInstance();\n String dia = String.valueOf(cal.get(cal.DATE));\n String mes = String.valueOf(cal.get(cal.MONTH) + 1);\n String año = String.valueOf(cal.get(cal.YEAR));\n String fechainicio;\n String fechafin;\n Map parametro = new HashMap();\n cargando.setVisible(true);\n try {\n JasperViewer v;\n switch (listaTipoReporte.getSelectedIndex()) {\n case 0:\n if (rb_diario.isSelected() || this.reporte.getSelectedIndex() == 1) {\n if (this.reporte.getSelectedIndex() == 1) {\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n parametro.put(\"fecha\",fechainicio+\" al \"+fechafin);\n } else {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.dia.getDate()));\n fechafin = fechainicio;\n parametro.put(\"fecha\",\" dia \"+fechainicio);\n }\n \n String p = \"('\" + fechainicio + \"','\" + fechafin + \"')\";\n if (u.ejecutarSP(p, \"ordenes_procesadas_diarias\")) {\n v = u.runReporte(\"reporte_ordenes_procesadas_diario\", parametro);\n v.setTitle(\"Reporte de ordenes procesadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n int mess = cb_mes.getSelectedIndex();\n mess = mess + 1;\n if (rb_mensual.isSelected()) {\n int dia2 = u.numero(mess);\n String fechanueva1 = año + \"-\" + mess + \"-\" + \"01\";\n String fechai1 = año + \"-\" + mess + \"-\" + \"15\";\n String fechai2 = año + \"-\" + mess + \"-\" + \"16\";\n String fechaf1 = año + \"-\" + mess + \"-\" + dia2;\n //----------------------------- ojo son 4 fechas finico-ffinal1 y fechafinal2 -a fechafinal2\n // String fechainicio = u.fechaCorrecta(variableFecha.format(jDateChooser1.getDate()));\n // String f = u.fechaCorrecta(variableFecha.format(jDateChooser2.getDate()));\n // String fechafin =fechainicio;\n String p = \"('\" + fechanueva1 + \"','\" + fechai1 + \"','\" + fechai2 + \"','\" + fechaf1 + \"')\";\n if (u.ejecutarSP(p, \"ordenes_procesadas_mensual\")) {\n v = u.runReporte(\"reporte_ordenes_procesadas_mensual\", parametro);\n v.setTitle(\"Reporte mensual de ordenes procesadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n Reporte r = new Reporte();\n String nombreReporte = \"\";\n if (this.primera.isSelected()) {\n r.reporteQuincena(Integer.toString(mess), \"2014\", 1);\n parametro.put(\"periodo\", \"De la primera quincena del mes de \" + u.obtenerMes(mess));\n nombreReporte = \"procesadasQuincena\";\n } else {\n if (this.segunda.isSelected()) {\n r.reporteQuincena(Integer.toString(mess), \"2014\", 2);\n parametro.put(\"periodo\", \"De la segunda quincena del mes de \" + u.obtenerMes(mess));\n nombreReporte = \"procesadasQuincenaSegunda\";\n }\n }\n v = u.runReporte(nombreReporte, parametro);\n v.setTitle(\"Reporte quincenal de ordenes procesadas\");\n v.setVisible(true);\n u.ejecutarSQL(\"DROP TABLE IF EXISTS temporal1\");\n }\n }\n break;\n case 1:\n //RordeAuditada\n if (rb_mensual.isSelected()) {\n int mess = cb_mes.getSelectedIndex();\n mess = mess + 1;\n int dia2 = u.numero(mess);\n String fechanueva = año + \"-\" + mess + \"-\" + \"01\"; //calcular el anho\n String fechai = año + \"-\" + mess + \"-\" + \"15\";\n String fechaf = año + \"-\" + mess + \"-\" + dia2;\n String p1 = \"('\" + fechanueva + \"','\" + fechai + \"','\" + fechaf + \"')\";\n if (u.ejecutarSP(p1, \"Raudita_mensual\")) {\n parametro.put(\"fecha\", fechanueva);\n parametro.put(\"fecha_p\", fechai);\n parametro.put(\"fecha_s\", fechaf);\n parametro.put(\"año\", año);\n parametro.put(\"mes\", mes);\n v = u.runReporte(\"report7\", parametro);\n v.setTitle(\"Reporte mensual de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n\n }\n if (rb_diario.isSelected() || this.reporte.getSelectedIndex() == 1) {\n if (this.reporte.getSelectedIndex() == 1) {\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n } else {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.dia.getDate()));\n fechafin = fechainicio;\n parametro.put(\"fecha1\", \"Del dia \" + fechainicio);\n }\n String p = \"('\" + fechainicio + \"','\" + fechafin + \"')\";\n if (u.ejecutarSP(p, \"reporteJoel\")) {\n v = u.runReporte(\"RordeAuditada\", parametro);\n v.setTitle(\"Reporte diario de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n }\n if (rb_quincenal.isSelected()) {\n int mess = cb_mes.getSelectedIndex();\n mess = mess + 1;\n String ms = u.obtenerMes(mess);\n if (this.primera.isSelected()) {\n q = \"Primera\";\n String p = \"('\" + (año + \"-\" + mess + \"-\" + \"01\") + \"','\" + (año + \"-\" + mess + \"-\" + \"02\") + \"','\" + (año + \"-\" + mess + \"-\" + \"03\") + \"','\" + (año + \"-\" + mess + \"-\" + \"04\") + \"','\" + (año + \"-\" + mess + \"-\" + \"05\") + \"','\" + (año + \"-\" + mess + \"-\" + \"06\") + \"','\" + (año + \"-\" + mess + \"-\" + \"07\") + \"','\" + (año + \"-\" + mess + \"-\" + \"08\") + \"','\" + (año + \"-\" + mess + \"-\" + \"09\") + \"','\" + (año + \"-\" + mess + \"-\" + \"10\") + \"','\" + (año + \"-\" + mess + \"-\" + \"01\") + \"','\" + (año + \"-\" + mess + \"-\" + \"11\") + \"','\" + (año + \"-\" + mess + \"-\" + \"12\") + \"','\" + (año + \"-\" + mess + \"-\" + \"13\") + \"','\" + (año + \"-\" + mess + \"-\" + \"14\") + \"','\" + (año + \"-\" + mess + \"-\" + \"15\") + \"')\";\n if (u.ejecutarSP(p, \"Rauditada_quincenal\")) {\n parametro.put(\"d1\", ms);\n parametro.put(\"d2\", año);\n parametro.put(\"q\", q);\n v = u.runReporte(\"Raudita_quincenal\", parametro);\n v.setTitle(\"Reporte quincenal de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n if (this.segunda.isSelected()) {\n q = \"Segunda\";\n if (mess == 2) {\n String p = \"('\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"17\") + \"','\" + (año + \"-\" + mess + \"-\" + \"18\") + \"','\" + (año + \"-\" + mess + \"-\" + \"19\") + \"','\" + (año + \"-\" + mess + \"-\" + \"20\") + \"','\" + (año + \"-\" + mess + \"-\" + \"21\") + \"','\" + (año + \"-\" + mess + \"-\" + \"22\") + \"','\" + (año + \"-\" + mess + \"-\" + \"23\") + \"','\" + (año + \"-\" + mess + \"-\" + \"24\") + \"','\" + (año + \"-\" + mess + \"-\" + \"25\") + \"','\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"26\") + \"','\" + (año + \"-\" + mess + \"-\" + \"27\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"')\";\n if (u.ejecutarSP(p, \"Rauditada_quincenal\")) {\n\n parametro.put(\"d1\", ms);\n parametro.put(\"d2\", año);\n\n parametro.put(\"q\", q);\n v = u.runReporte(\"Raudita_quincenal\", parametro);\n v.setTitle(\"Reporte quincenal de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n String p = \"('\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"17\") + \"','\" + (año + \"-\" + mess + \"-\" + \"18\") + \"','\" + (año + \"-\" + mess + \"-\" + \"19\") + \"','\" + (año + \"-\" + mess + \"-\" + \"20\") + \"','\" + (año + \"-\" + mess + \"-\" + \"21\") + \"','\" + (año + \"-\" + mess + \"-\" + \"22\") + \"','\" + (año + \"-\" + mess + \"-\" + \"23\") + \"','\" + (año + \"-\" + mess + \"-\" + \"24\") + \"','\" + (año + \"-\" + mess + \"-\" + \"25\") + \"','\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"26\") + \"','\" + (año + \"-\" + mess + \"-\" + \"27\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"','\" + (año + \"-\" + mess + \"-\" + \"29\") + \"','\" + (año + \"-\" + mess + \"-\" + \"30\") + \"')\";\n if (u.ejecutarSP(p, \"Rauditada_quincenal\")) {\n parametro.put(\"d1\", ms);\n parametro.put(\"d2\", año);\n parametro.put(\"q\", q);\n v = u.runReporte(\"Raudita_quincenal\", parametro);\n v.setTitle(\"Reporte quincenal de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n\n }\n }\n }\n }\n break;\n case 2:\n try {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n parametro.put(\"fechaInicio\", fechainicio);\n parametro.put(\"fechaFin\", fechafin);\n v = u.runReporte(\"reporte_errores_diarios\", parametro);\n v.setTitle(\"Reporte de Errores\");\n v.setVisible(true);\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"No se pudo generar el reporte\", \"Reporte\", JOptionPane.ERROR_MESSAGE);\n ErroresSiapo.agregar(ex, \"codigo 39\");\n }\n break;\n case 3:\n \n if (this.reporte.getSelectedIndex() == 1) {\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n parametro.put(\"PERIODO\", \"Del \" + u.fechaReves(fechainicio) + \" al \" + u.fechaReves(fechafin));\n } else {\n String m = Integer.toString(this.cb_mes.getSelectedIndex() + 1);\n fechafin = año + \"-\" + m + \"-\" + u.numero(this.cb_mes.getSelectedIndex() + 1);\n fechainicio = año + \"-\" + m + \"-01\";\n parametro.put(\"PERIODO\", \"Del mes de \" + u.obtenerMes(this.cb_mes.getSelectedIndex() + 1) + \" del año \" + año);\n }\n String p = \"('\" + fechainicio + \"','\" + fechafin + \"')\";\n if (u.ejecutarSP(p, \"ERRORES\")) {\n v = u.runReporte(\"analisisDeEficiencia\", parametro);\n v.setTitle(\"Reporte de Analisis de Eficiencia\");\n v.setVisible(true);\n } else {\n ErroresSiapo.agregar(null, \"codigo 39\");\n System.out.println(\"mal\");\n }\n break;\n case 4: \n try {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n parametro.put(\"fecha\", fechainicio);\n parametro.put(\"fechaFin\", fechafin);\n v = u.runReporte(\"reporteDiarioOrdenesRegreso\", parametro);\n v.setTitle(\"Reporte de Razones\");\n v.setVisible(true);\n } catch (Exception e) {\n ErroresSiapo.agregar(e, \"codigo 38\");\n JOptionPane.showMessageDialog(null, \"No se pudo generar el reporte\", \"Reporte\", JOptionPane.ERROR_MESSAGE);\n }\n break;\n }\n } catch (Exception e) {\n }\n\n }", "public static ExPar create(String n) {\r\n\t\t// System.out.println(\"ExPar.create(): Trying to create parameter \" + n\r\n\t\t// + \" for the runtime table. \");\r\n\t\tExPar p = null;\r\n\t\tif (get(n, false) == null) {\r\n\t\t\tp = new ExPar(UNKNOWN, new ExParValueUndefined(), null);\r\n\t\t\truntimePars.put(n, p);\r\n\t\t}\r\n\t\t// System.out.println(\"ExPar.create(): Runtime Parameter \" + n +\r\n\t\t// \" created. \");\r\n\t\treturn (p);\r\n\t}", "public boolean create(List loads, Faculties instructor, Integer overload){\n try {\n /* User home directory location */\n String userHomeDirectory = System.getProperty(\"user.home\");\n /* Output file location */\n Date date = new Date();\n\n // *** same for the format String below\n SimpleDateFormat dt1 = new SimpleDateFormat(\"yyyy_MM_dd\");\n String f = dt1.format(date)+\"_\"+date.getTime();\n String outputFile = userHomeDirectory + File.separatorChar + f+\"_FacultyLoadReport.pdf\";\n List<LoadItem> loadData = new ArrayList<LoadItem>();\n \n for(int i = 0 ; i < loads.size(); i++){\n TeachersLoadings load = (TeachersLoadings) loads.get(i);\n LoadItem item = new LoadItem();\n Subjects subject = load.getSubjects();\n Integer unitLoad = subject.getLabHours() + ( subject.getLecHours() /3);\n unitLoad = unitLoad * load.getTimes();\n item.setLabHrs(subject.getLabHours() * load.getTimes());\n item.setLecHrs(subject.getLecHours() * load.getTimes());\n item.setLoad(unitLoad);\n item.setSubject(subject.getCode());\n loadData.add(item);\n \n }\n \n \n \n\n \n /* Convert List to JRBeanCollectionDataSource */\n JRBeanCollectionDataSource itemsJRBean = new JRBeanCollectionDataSource(loadData);\n\n /* Map to hold Jasper report Parameters */\n Map<String, Object> parameters = new HashMap<String, Object>();\n parameters.put(\"LoadDataList\", itemsJRBean);\n parameters.put(\"Instructor\", \"\" + instructor.getFullname());\n parameters.put(\"Overload\", \"\"+overload);\n parameters.put(\"RegularLoad\", \"\"+instructor.getRegularLoad());\n\n\n\n /* Using compiled version(.jasper) of Jasper report to generate PDF */\n JasperPrint jasperPrint = JasperFillManager.fillReport(\"C:\\\\Users\\\\ANGGIE\\\\Documents\\\\NetBeansProjects\\\\scheduler\\\\scheduler\\\\src\\\\main\\\\java\\\\com\\\\bisu\\\\report\\\\FacultyLoad.jasper\", parameters, new JREmptyDataSource());\n\n /* outputStream to create PDF */\n OutputStream outputStream = new FileOutputStream(new File(outputFile));\n /* Write content to PDF file */\n JasperExportManager.exportReportToPdfStream(jasperPrint, outputStream);\n\n if (Desktop.isDesktopSupported()) {\n File myFile = new File(outputFile);\n Desktop.getDesktop().open(myFile);\n\n }\n } catch (JRException ex) {\n ex.printStackTrace();\n } catch (FileNotFoundException ex) {\n ex.printStackTrace();\n } catch (IOException ex) {\n // no application registered for PDFs\n }\n return true;\n\n \n }", "public JParameterRecord(Long itemId, String key, String value) {\n super(JParameter.PARAMETER);\n\n set(0, itemId);\n set(1, key);\n set(2, value);\n }", "private JButton getParamjButton() {\r\n\t\tif (ParamjButton == null) {\r\n\t\t\tParamjButton = new JButton();\r\n\t\t\tParamjButton.setLocation(new Point(348, 33));\r\n\t\t\tParamjButton.setIcon(new ImageIcon(getClass().getResource(\"/parametres.png\")));\r\n\t\t\tParamjButton.setActionCommand(\"Fen_Param\");\r\n\t\t\tParamjButton.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\r\n\t\t\tParamjButton.setSize(new Dimension(120, 120));\r\n\t\t\tParamjButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\t//System.out.println(\"actionPerformed()\"); // TODO Auto-generated Event stub actionPerformed()\r\n\t\t\t\t\tif (e.getActionCommand().equals(\"Fen_Param\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnew FEN_Param();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn ParamjButton;\r\n\t}", "protected static ParameterDef createRwParameter(final String param) {\n return new ParameterDef(new Variable(param), ParameterType.READ_WRITE);\n }", "@Override\n public ParamSet getParamSet(PioFactory factory, String name) {\n ParamSet params = interval.getParamSet(factory, name);\n Pio.addIntParam(factory, params, \"firstStep\", firstStep);\n Pio.addIntParam(factory, params, \"lastStep\", lastStep);\n Pio.addParam(factory, params, \"obs\", getObs().getObsId());\n Pio.addParam(factory, params, \"comment\", getComment());\n Pio.addEnumParam(factory, params, \"setupType\", setupType);\n return params;\n }", "private Parameter formalParameter()\r\n {\r\n Parameter x = new Parameter();\r\n\r\n x.modify = 0;\r\n if (nextSymbol == Keyword.FINALSY)\r\n {\r\n x.modify = nextSymbol.value;\r\n lookAhead();\r\n }\r\n\r\n x.type = type();\r\n variableDeclaratorId(x);\r\n\r\n return x;\r\n }", "Report createReport();", "public final com.francetelecom.admindm.model.Parameter createPriority()\n\t\t\tthrows Fault {\n\t\tcom.francetelecom.admindm.model.Parameter param;\n\t\tparam = data.createOrRetrieveParameter(basePath + \"Priority\");\n\t\tparam.setNotification(0);\n\t\tparam.setStorageMode(StorageMode.DM_ONLY);\n\t\tparam.setType(ParameterType.UINT);\n\t\tparam.addCheck(new CheckMinimum(0));\n\t\tparam.addCheck(new CheckMaximum(4294967295L));\n\t\tparam.setValue(new Long(0));\n\t\tparam.addCheck(new CheckMaximum(99));\n\t\tparam.setWritable(false);\n\t\treturn param;\n\t}", "protected JRDataSource getJRDataSource()\r\n/* 82: */ {\r\n/* 83:106 */ JRDataSource ds = null;\r\n/* 84:107 */ List<Object[]> listaDatosReporte = new ArrayList();\r\n/* 85:108 */ listaDatosReporte = this.servicioReportePresupuesto.getReportePresupuesto(getEjercicio(), getMesSeleccionado(), this.cantDigitos, this.dimensionContable, \r\n/* 86:109 */ getListaDimensionContable(), this.tipoReporte.ordinal(), AppUtil.getUsuarioEnSesion().getIdUsuario(), AppUtil.getOrganizacion()\r\n/* 87:110 */ .getIdOrganizacion());\r\n/* 88: */ String[] fields;\r\n/* 89: */ String[] fields;\r\n/* 90:112 */ if ((this.tipoReporte.ordinal() == 1) && (this.mesSeleccionado != null)) {\r\n/* 91:113 */ fields = new String[] { \"f_ejercicioNombre\", \"f_dimensionCodigo\", \"f_dimensionNombre\", \"f_cuentaContableCodigo\", \"f_cuentaContableNombre\", \"f_valorMes\", \"f_transferenciasIngreso\", \"f_transferenciasEgreso\", \"f_incrementos\", \"f_decrementos\" };\r\n/* 92: */ } else {\r\n/* 93:117 */ fields = new String[] { \"f_ejercicioNombre\", \"f_dimensionCodigo\", \"f_dimensionNombre\", \"f_cuentaContableCodigo\", \"f_cuentaContableNombre\", \"f_valorEnero\", \"f_valorFebrero\", \"f_valorMarzo\", \"f_valorAbril\", \"f_valorMayo\", \"f_valorJunio\", \"f_valorJulio\", \"f_valorAgosto\", \"f_valorSeptiembre\", \"f_valorOctubre\", \"f_valorNoviembre\", \"f_valorDiciembre\", \"f_transfereciasIngresosEnero\", \"f_transfereciasEgresosEnero\", \"f_incrementosEnero\", \"f_decrementosEnero\", \"f_transfereciasIngresosFebrero\", \"f_transfereciasEgresosFebrero\", \"f_incrementosFebrero\", \"f_decrementosFebrero\", \"f_transfereciasIngresosMarzo\", \"f_transfereciasEgresosMarzo\", \"f_incrementosMarzo\", \"f_decrementosMarzo\", \"f_transfereciasIngresosAbril\", \"f_transfereciasEgresosAbril\", \"f_incrementosAbril\", \"f_decrementosAbril\", \"f_transfereciasIngresosMayo\", \"f_transfereciasEgresosMayo\", \"f_incrementosMayo\", \"f_decrementosMayo\", \"f_transfereciasIngresosJunio\", \"f_transfereciasEgresosJunio\", \"f_incrementosJunio\", \"f_decrementosJunio\", \"f_transfereciasIngresosJulio\", \"f_transfereciasEgresosJulio\", \"f_incrementosJulio\", \"f_decrementosJulio\", \"f_transfereciasIngresosAgosto\", \"f_transfereciasEgresosAgosto\", \"f_incrementosAgosto\", \"f_decrementosAgosto\", \"f_transfereciasIngresosSeptiembre\", \"f_transfereciasEgresosSeptiembre\", \"f_incrementosSeptiembre\", \"f_decrementosSeptiembre\", \"f_transfereciasIngresosOctubre\", \"f_transfereciasEgresosOctubre\", \"f_incrementosOctubre\", \"f_decrementosOctubre\", \"f_transfereciasIngresosNoviembre\", \"f_transfereciasEgresosNoviembre\", \"f_incrementosNoviembre\", \"f_decrementosNoviembre\", \"f_transfereciasIngresosDiciembre\", \"f_transfereciasEgresosDiciembre\", \"f_incrementosDiciembre\", \"f_decrementosDiciembre\" };\r\n/* 94: */ }\r\n/* 95:133 */ ds = new QueryResultDataSource(listaDatosReporte, fields);\r\n/* 96: */ \r\n/* 97:135 */ return ds;\r\n/* 98: */ }", "protected JSerialPort createJSerialPort(CommPortIdentifier portIdentifier) {\n\t\treturn new JSerialPort(portIdentifier);\n\t}", "ParameterRefinement createParameterRefinement();", "public static JasperReportBuilder generateReport(ExportData metaData,HttpServletRequest request){\n session = request.getSession(false);\n report = report(); // Creer le rapport\n \n //Logo\n// logoImg = cmp.image(inImg).setStyle(DynamicReports.stl.style().setHorizontalAlignment(HorizontalAlignment.LEFT)); \n //logoImg.setDimension(80,80); \n \n //Definit le style des colonnes d'entàte\n report.setColumnTitleStyle(getHeaderStyle(metaData));\n \n \n \n LinkedHashMap <String,String> criteria = metaData.getCriteria(); \n //Ajout la date d'àdition au critere d'impression\n String valDateProperty = getDateTxt(metaData.getLang()) ;\n String keyDateProperty = \"\" ;\n if ( session.getAttribute(\"activedLocale\").equals(\"fr\") ) {\n keyDateProperty = \"Edité le \" ;\n }\n else {\n keyDateProperty = \"Printed on \" ;\n }\n criteria.put(keyDateProperty,valDateProperty);\n \n StyleBuilder titleStyle = stl.style(boldStyle).setFontSize(16).setForegroundColor(new Color(0, 0, 0)).setHorizontalAlignment(HorizontalAlignment.RIGHT).setRightIndent(20);\n ComponentBuilder<?, ?> logoComponent = cmp.horizontalList(\n //cmp.image(Templates.class.getResource(\"/logopalm.png\")).setFixedDimension(150, 50).setStyle(stl.style().setLeftIndent(20)),\n cmp.verticalList(\n cmp.text(metaData.getTitle()).setStyle(titleStyle)\n )\n ).newRow()\n .add(cmp.horizontalList().add(cmp.hListCell(createCriteriaComponent(criteria,metaData)).heightFixedOnTop()))\n .newRow(); \n \n report.noData(logoComponent, cmp.text(\"Aucun enregistrement trouvà\").setStyle(stl.style().setHorizontalAlignment(HorizontalAlignment.CENTER).setTopPadding(30)));\n\n \n \n lblStyle = stl.style(Templates.columnStyle).setForegroundColor(new Color(60, 91, 31)); // Couleur du text \n colStyle = stl.style(Templates.columnStyle).setHorizontalAlignment(HorizontalAlignment.CENTER);\n \n groupStyle = stl.style().setForegroundColor(new Color(60, 91, 31)) \n .setBold(Boolean.TRUE)\n .setPadding(5)\n .setFontSize(13)\n .setHorizontalAlignment(HorizontalAlignment.CENTER); \n \n\n \n if(metaData.getTitle().equals(ITitle.PARCEL)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PARCEL_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SECTOR)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SECTOR_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BLOCK)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BLOCK_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ATTACK_PHYTO)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TREATMENT)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TREATMENT_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVEST)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVEST_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SERVICING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SERVICING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_PLANTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_PLANTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.FERTILIZATION_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_FOLDING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_FOLDING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.MORTALITY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.MORTALITY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVESTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVESTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BUDGET)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.REPLACEMENT)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.REPLACEMENT_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.METEOROLOGY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.METEOROLOGY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_MATERIAL)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_MATERIAL_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLUVIOMETRY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLUVIOMETRY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ETP)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ETP_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HYGROMETRY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HYGROMETRY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TEMPERATURE)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TEMPERATURE_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.INSULATION)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.INSULATION_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.WORK)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.WORK_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }\n \n \n drColumns = new HashMap<String, TextColumnBuilder>(); \n groups = new ArrayList<String>();\n subtotals = new ArrayList<String>();\n \n //Definit la liste des colonnes du rapport\n ExportGenerator.getColumns(metaData); \n //Definit la liste des sous-totaux du rapport\n ExportGenerator.getSubTotals(metaData);\n \n \n //Genration des sous totaux\n for (String group : groups) {\n ColumnGroupBuilder group2 = grp.group(drColumns.get(group));\n report.groupBy(group2);\n for (String subtotal : subtotals) {\n report.subtotalsAtGroupFooter(group2,sbt.sum(drColumns.get(subtotal)));\n }\n }\n\n for (String subtotal : subtotals) {\n report.subtotalsAtSummary(sbt.sum(drColumns.get(subtotal))); \n }\n \n /*if(ExportGenerator.getColumnByNameField(\"plantingName\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL \"), ExportGenerator.getColumnByNameField(\"plantingName\"), Calculation.NOTHING));\n }*//*else if(ExportGenerator.getColumnByNameField(\"invoiceCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"invoiceCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"planterCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL\"), ExportGenerator.getColumnByNameField(\"planterCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"transportTicket\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"transportTicket\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"deliveryDate\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"deliveryDate\"), Calculation.NOTHING));\n }\n else if(ExportGenerator.getColumnByNameField(\"arroundPlantingTicketNumber\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"arroundPlantingTicketNumber\"), Calculation.NOTHING));\n }\n else if(ExportGenerator.getColumnByNameField(\"planterNumber\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"planterNumber\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"startPaymentDate\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"startPaymentDate\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"sectorCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"sectorCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"month\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL \"), ExportGenerator.getColumnByNameField(\"month\"), Calculation.NOTHING));\n }*/\n \n\n \n \n //Genere la source de donnàes du rapport\n report.setDataSource(metaData.getData());\n \n report.highlightDetailEvenRows(); \n \n \n // Definition de l'entete : valable uniquement pour la 1ere page\n HorizontalListBuilder hlb= null;\n \n hlb = cmp.horizontalList().add(\n cmp.hListCell(createCriteriaComponent(criteria,metaData)).heightFixedOnTop()\n );\n\n \n report.title(\n createCustomTitleComponent(metaData.getTitle()), // Titre\n hlb,// Liste Horizontal des Critàres \n cmp.verticalGap(12) // Marge de 12 px entre chaque critàre\n ); \n \n \n \n report.setPageMargin(DynamicReports.margin().setLeft(15).setTop(30).setRight(15).setBottom(30));\n report.setPageFormat(PageType.A3, PageOrientation.LANDSCAPE);\n report.pageFooter(DynamicReports.cmp.pageXslashY());\n return report;\n \n }", "MatrixParameter createMatrixParameter();", "@Override\n public ParameterDefinition newInstance(StaplerRequest req, JSONObject formData) throws hudson.model.Descriptor.FormException {\n if (req != null) {\n List<Ancestor> ancestors = req.getAncestors();\n AbstractProject<?, ?> project = null;\n for (Ancestor ancestor : ancestors) {\n Object object = ancestor.getObject();\n if (object instanceof AbstractProject<?, ?>) {\n project = (AbstractProject<?, ?>) object;\n break;\n }\n }\n this.project = project;\n }\n return super.newInstance(req, formData);\n }", "void createReport(Report report);", "public Builder(android.renderscript.RenderScript rs) { throw new RuntimeException(\"Stub!\"); }", "protected static ParameterDef createParameter(final String param) {\n return new ParameterDef(new Variable(param), ParameterType.READ_ONLY);\n }", "private ParametersResolved getParameters(WBData wbData, Parameters parameters) {\n \tParametersResolved ret = new ParametersResolved();\n // Start Date is the first day of the week.\n \t// Returns the date with the time set to 00:00.\n String startDay = Registry.getVarString(RPARAM_DAY_WEEK_STARTS);\n ret.firstDayOfWeek = DateHelper.nextDay(DateHelper.addDays(wbData.getWrksWorkDate(), -7), startDay);\n\n // Calculate the start time of the beginning of the week.\n ret.startTimeBeginWeek = new Date(ret.firstDayOfWeek.getTime());\n\n ret.mustWorkedMinutes = parameters.getIntegerParameter(PARAM_MUST_WORKED_MINUTES, 0);\n ret.premiumTimeCode = parameters.getParameter(PARAM_PREMIUM_TIMECODE, null);\n ret.premiumHourType = parameters.getParameter(PARAM_PREMIUM_HOURTYPE, null);\n ret.flsaHoursTimeCodes = parameters.getParameter(PARAM_FLSA_HOURS_TIMECODES, null);\n ret.flsaHoursHourTypes = parameters.getParameter(PARAM_FLSA_HOURS_HOURTYPES, null);\n ret.flsaDollarsTimeCodes = parameters.getParameter(PARAM_FLSA_DOLLARS_TIMECODES, null);\n ret.flsaDollarsHourTypes = parameters.getParameter(PARAM_FLSA_DOLLARS_HOURTYPES, null);\n ret.otEarnedTimeCodes = parameters.getParameter(PARAM_OT_EARNED_TIMECODES, null);\n ret.otEarnedHourTypes = parameters.getParameter(PARAM_OT_EARNED_HOURTYPES, null);\n ret.detailsCalculated = parameters.getParameter(PARAM_DETAILS_CALCULATED, null);\n\n return ret;\n }", "private static final List<ParameterImpl> createParameters() {\n\t\tParameterImpl initialize = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Initialize\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"INITIALIZE\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl run = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Run\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"RUN\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl duration = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Duration (minutes)\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"DURATION\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"number\")\n\t\t\t\t.setDefaultValue(\"0\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl retrieveData = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Retrieve Data\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"RETRIEVE_DATA\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl cleanup = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Cleanup\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"CLEANUP\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl cancel = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Cancel\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"CANCEL\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"false\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\treturn Arrays.asList(initialize, run, duration, retrieveData, cleanup, cancel);\n\t}", "public com.isat.catalist.oms.order.OOSOrderLineItemParamType addNewRParameters()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.isat.catalist.oms.order.OOSOrderLineItemParamType target = null;\n target = (com.isat.catalist.oms.order.OOSOrderLineItemParamType)get_store().add_element_user(RPARAMETERS$20);\n return target;\n }\n }", "public static jn J(Context param0) {\n }", "public void setSjr(String sjr) {\r\n\t\tthis.sjr = sjr;\r\n\t}", "private void initParameters() {\n jobParameters.setSessionSource(getSession(\"source\"));\n jobParameters.setSessionTarget(getSession(\"target\"));\n jobParameters.setAccessDetailsSource(getAccessDetails(\"source\"));\n jobParameters.setAccessDetailsTarget(getAccessDetails(\"target\"));\n jobParameters.setPageSize(Integer.parseInt(MigrationProperties.get(MigrationProperties.PROP_SOURCE_PAGE_SIZE)));\n jobParameters.setQuery(MigrationProperties.get(MigrationProperties.PROP_SOURCE_QUERY));\n jobParameters.setItemList(getFolderStructureItemList());\n jobParameters.setPropertyFilter(getPropertyFilter());\n jobParameters.setReplaceStringInDestinationPath(getReplaceStringArray());\n jobParameters.setNamespacePrefixMap(getNamespacePrefixList());\n jobParameters.setBatchId(getBatchId());\n jobParameters.getStopWatchTotal().start();\n jobParameters.setSuccessAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_ACTION));\n jobParameters.setErrorAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_ACTION));\n jobParameters.setSuccessFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setErrorFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setCurrentFolder(getRootFolder());\n jobParameters.setSkipDocuments(Boolean.valueOf(MigrationProperties.get(MigrationProperties.PROP_MIGRATION_COPY_FOLDERS_ONLY)));\n \n }", "public int createParameter(String name, String value){\n Parameter newParameter = new Parameter(nextParamKey, name, value);\n nextParamKey++;\n\n parameters.add(newParameter);\n\n return newParameter.getKey();\n }", "public void saveSelf() {\n\t\tCRFileIOHelper.stringToFile(this.toString(), controller.getReportController().getCurrentFilePath() + \"parameters\");\n\t}", "private OperatorParameter getParameter(LauncherOperations oOperation) {\r\n\t\tUtils.debugLog(\"ProcessingResources.OperatorParameter( LauncherOperations )\");\r\n\t\tswitch (oOperation) {\r\n\t\tcase APPLYORBIT:\r\n\t\t\treturn new ApplyOrbitParameter();\r\n\t\tcase CALIBRATE:\r\n\t\t\treturn new CalibratorParameter();\r\n\t\tcase MULTILOOKING:\r\n\t\t\treturn new MultilookingParameter();\r\n\t\tcase TERRAIN:\r\n\t\t\treturn new RangeDopplerGeocodingParameter();\r\n\t\tcase NDVI:\r\n\t\t\treturn new NDVIParameter();\r\n\t\tcase GRAPH:\r\n\t\t\treturn new GraphParameter();\r\n\t\tcase MOSAIC:\r\n\t\t\treturn new MosaicParameter();\r\n\t\tcase SUBSET:\r\n\t\t\treturn new SubsetParameter();\r\n\t\tcase MULTISUBSET:\r\n\t\t\treturn new MultiSubsetParameter();\r\n\t\tcase REGRID:\r\n\t\t\treturn new RegridParameter();\r\n\t\tdefault:\r\n\t\t\treturn null;\r\n\r\n\t\t}\r\n\t}", "@Override\n public DateParameter toReportingParameter(LocalDate date) {\n\n final TemporalField temporalField = WeekFields.of(DayOfWeek.MONDAY, 7).dayOfWeek();\n final LocalDateTime firstDayOfWeek = date.with(temporalField, 1).atStartOfDay();\n final LocalDateTime lastDayOfWeek = date.with(temporalField, 7).atTime(23, 59, 59);\n\n return new DateParameter(firstDayOfWeek, lastDayOfWeek);\n }", "public void setParameters(Map<String, String> param) {\n\n // check the occurrence of required parameters\n if(!(param.containsKey(\"Indri:mu\") && param.containsKey(\"Indri:lambda\"))){\n throw new IllegalArgumentException\n (\"Required parameters for IndriExpansion model were missing from the parameter file.\");\n }\n\n this.mu = Double.parseDouble(param.get(\"Indri:mu\"));\n if(this.mu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:mu\") + \", mu is a real number >= 0\");\n\n this.lambda = Double.parseDouble(param.get(\"Indri:lambda\"));\n if(this.lambda < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:lambda\") + \", lambda is a real number between 0.0 and 1.0\");\n\n if((param.containsKey(\"fb\") && param.get(\"fb\").equals(\"true\"))) {\n this.fb = \"true\";\n\n this.fbDocs = Integer.parseInt(param.get(\"fbDocs\"));\n if (this.fbDocs <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbDocs\") + \", fbDocs is an integer > 0\");\n\n this.fbTerms = Integer.parseInt(param.get(\"fbTerms\"));\n if (this.fbTerms <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbTerms\") + \", fbTerms is an integer > 0\");\n\n this.fbMu = Integer.parseInt(param.get(\"fbMu\"));\n if (this.fbMu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbMu\") + \", fbMu is an integer >= 0\");\n\n this.fbOrigWeight = Double.parseDouble(param.get(\"fbOrigWeight\"));\n if (this.fbOrigWeight < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbOrigWeight\") + \", fbOrigWeight is a real number between 0.0 and 1.0\");\n\n if (param.containsKey(\"fbInitialRankingFile\") && param.get(\"fbInitialRankingFile\") != \"\") {\n this.fbInitialRankingFile = param.get(\"fbInitialRankingFile\");\n try{\n this.initialRanking = readRanking();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n\n if (param.containsKey(\"fbExpansionQueryFile\") && param.get(\"fbExpansionQueryFile\") != \"\")\n this.fbExpansionQueryFile = param.get(\"fbExpansionQueryFile\");\n }\n }", "void setParameters() {\n\t\t\n\t}", "public Parameter(String name, DataSheet dataSheet) {\n\t\tthis.name = name;\n\t\tthis.dataSheet = dataSheet;\n\t}", "public String gerarRelatorio(List<?> listaDataBeanColletion, HashMap parametrosRelatorio, String nomeRelatorioJasper, \r\n\t\t\tString nomeRelatorioSaida, ServletContext servletContext) throws Exception {\n\t\tJRBeanCollectionDataSource jrbcds = new JRBeanCollectionDataSource(listaDataBeanColletion);\r\n\t\t\r\n\t\t//Fornece o caminho fisico até a pasta que contem os relatórios .jasper\r\n\t\tString caminhoRelatorio = servletContext.getRealPath(FOLDER_RELATORIOS);\r\n\t\t\r\n\t\tFile file = new File(caminhoRelatorio + SEPARATOR + nomeRelatorioJasper + \".jasper\");\r\n\t\t\r\n\t\tif (caminhoRelatorio == null\r\n\t\t\t\t|| (caminhoRelatorio != null && caminhoRelatorio.isEmpty())\r\n\t\t\t\t|| !file.exists()) {\r\n\t\t\tcaminhoRelatorio = this.getClass().getResource(FOLDER_RELATORIOS).getPath();\r\n\t\t\tSEPARATOR = \"\";\r\n\t\t}\r\n\t\t\r\n\t\t//Caminho para imagens\r\n\t\tparametrosRelatorio.put(\"REPORT_PARAMETERS_IMG\", caminhoRelatorio);\r\n\t\t\r\n\t\t//Caminho completo até o relatório compilado indicado\r\n\t\tString caminhoArquivosJasper = caminhoRelatorio + SEPARATOR + nomeRelatorioJasper + \".jasper\";\r\n\t\t\r\n\t\t//Faz o carregamento do relatório\r\n\t\tJasperReport relatorioJasper = (JasperReport) JRLoader.loadObjectFromFile(caminhoArquivosJasper);\r\n\t\t\r\n\t\t//Seta parâmetros SUBREPORT_DIR com o caminho fisico para subreport\r\n\t\tcaminhoSubReport_Dir = caminhoRelatorio + SEPARATOR;\r\n\t\tparametrosRelatorio.put(SUBREPORT_DIR, caminhoSubReport_Dir);\r\n\t\t\r\n\t\t//Carrega o arquivo\r\n\t\tJasperPrint impressoraJasper = JasperFillManager.fillReport(relatorioJasper , parametrosRelatorio, jrbcds) ;\r\n\t\t\r\n\t\t//Definindo o tipo de exportação\r\n\t\texporter = new JRPdfExporter();\r\n\t\t\r\n\t\t//Caminho do relatório exportado\r\n\t\tcaminhoArquivoRelatorio = caminhoRelatorio + SEPARATOR + nomeRelatorioSaida + \".pdf\" ;\r\n\t\t\r\n\t\t//Criar novo arquivo exportado\r\n\t\tarquivoGerado = new File (caminhoArquivoRelatorio);\r\n\t\t\r\n\t\t//prepara a impressão\r\n\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, impressoraJasper);\r\n\t\t\r\n\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE, arquivoGerado);\r\n\t\t\r\n\t\t//Executa a exportação\r\n\t\texporter.exportReport();\r\n\t\t\r\n\t\t//Remove o arquivo do servidor após ser realizado o download\r\n\t\tarquivoGerado.deleteOnExit();\r\n\t\t\r\n\t\treturn caminhoArquivoRelatorio;\r\n\t}", "public abstract String toFORMParam();", "Para createPara();", "protected void parametersInstantiation_EM() {\n }", "ProjetoRN createProjetoRN();", "private GameSetParameters createCustomGameSetParameters() {\n GameSetParameters gameSetParameters = new GameSetParameters();\n gameSetParameters.setPriseBasePoints(20);\n gameSetParameters.setPriseRate(2);\n gameSetParameters.setGardeBasePoints(40);\n gameSetParameters.setGardeRate(4);\n gameSetParameters.setGardeSansBasePoints(80);\n gameSetParameters.setGardeSansRate(8);\n gameSetParameters.setGardeContreBasePoints(160);\n gameSetParameters.setGardeContreRate(16);\n gameSetParameters.setPoigneePoints(10);\n gameSetParameters.setDoublePoigneePoints(20);\n gameSetParameters.setTriplePoigneePoints(30);\n gameSetParameters.setMiseryPoints(10);\n gameSetParameters.setKidAtTheEndPoints(10);\n gameSetParameters.setAnnouncedAndSucceededChelemPoints(400);\n gameSetParameters.setAnnouncedAndFailedChelemPoints(-200);\n gameSetParameters.setNotAnnouncedButSucceededChelemPoints(200);\n gameSetParameters.setBelgianBaseStepPoints(100);\n return gameSetParameters;\n }", "@Override\n\tpublic void initParams() {\n\t\tSearchNewResult searchNewResult=Action.getSearchNewResult();\n\t\tint productNum=searchNewResult.Data.ProductList.size();\n\t\tGetCombinedProductPriceCalendarParamModel getCombinedProductPriceCalendarParamModel=new GetCombinedProductPriceCalendarParamModel();\n\t\tgetCombinedProductPriceCalendarParamModel.productID=searchNewResult.Data.ProductList.get(0).ProductID;\n\t\tgetCombinedProductPriceCalendarParamModel.isClubmed=searchNewResult.Data.ProductList.get(0).IsClubmed;\n\t\tgetCombinedProductPriceCalendarParamModel.isCombined=searchNewResult.Data.ProductList.get(0).IsCombined;\n\t\tfor(int i=0;i<productNum;i++){\n\t\t\t//getCombinedProductPriceCalendarParamModel=new GetCombinedProductPriceCalendarParamModel();\t\t\n\t\t\tif(searchNewResult.Data.ProductList.get(i).IsCombined==true){\n\t\t\t\tgetCombinedProductPriceCalendarParamModel.productID=searchNewResult.Data.ProductList.get(i).ProductID;\n\t\t\t\tgetCombinedProductPriceCalendarParamModel.isClubmed=searchNewResult.Data.ProductList.get(i).IsClubmed;\n\t\t\t\tgetCombinedProductPriceCalendarParamModel.isCombined=searchNewResult.Data.ProductList.get(i).IsCombined;\n\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t}\n\t\tthis.paramModel=getCombinedProductPriceCalendarParamModel;\n\t}", "public StratmasParameterFactory() \n {\n this.typeMapping = createTypeMapping();\n }", "boolean createReport(String lang, String reportId, String fileName, Object... params) throws Exception;", "private String generate_parameter(int Index, StringBuffer Code, DataType ParamType, String Input)\n {\n String Desc = ParamType.getBaseName();\n String ret = \"\";\n\n if (ParamType.getDimension() == 0)\n {\n // Just a scalar value, simply initialize it at declaration (long integers need an 'L' tagged on)\n if (Desc.equals(\"long\") || Desc.equals(\"Long\"))\n Code.append(\"\\t\\t\\t\" + ParamType.getDescriptor(m_Language) + \" Arg\" + Index + \" = \" + Input + \"LL;\\n\");\n else\n Code.append(\"\\t\\t\\t\" + ParamType.getDescriptor(m_Language) + \" Arg\" + Index + \" = \" + Input + \";\\n\");\n // end if\n }\n else\n {\n // Arrays need to be converted to vector<type> before passing\n if (Input.equals(\"{}\"))\n {\n Code.append(\"\\t\\t\\t// \" + ParamType.getBaseName().toLowerCase() + \" Arr\" + Index + \"[] = \" + Input + \";\\n\");\n ret += \"\\t\\t\\t\" + ParamType.getDescriptor(m_Language) + \" Arg\" + Index + \";\\n\";\n }\n else\n {\n Code.append(\"\\t\\t\\t\" + ParamType.getBaseName().toLowerCase() + \" Arr\" + Index + \"[] = \" + Input + \";\\n\");\n ret += \"\\t\\t\\t\" + ParamType.getDescriptor(m_Language) + \" Arg\" + Index + \"(Arr\" + Index + \", Arr\" + Index + \" + (sizeof(Arr\" + Index + \") / sizeof(Arr\" + Index + \"[0])));\\n\";\n }\n }\n // end if\n\n return ret;\n }", "public String createReseracher(Researcher res);", "public MParameterSystem() {\n\t\tsuper();\n\t}", "default HxParameter createParameter(final HxType parameterType) {\n return createParameter(parameterType.getName());\n }", "public Object run(Object parameter) throws Exception {\n ZsrdApplyDynamic model = (ZsrdApplyDynamic) parameter;String ss = \"\";String uname = UserUtil.getKMSSUser().getUserName();\n lbpmProcessCoreService.initModelSetting(model,\"zsrdApplyDynamicDoc\", null,\n \"zsrdApplyDynamicDoc\");\n return null;\n }", "public void getRetreivalParameter() {\n \n \tretModelName = prop.getProperty(\"retModel\");\n \t\n \tswitch(retModelName) \n \t{\n \tcase \"lmjm\":\n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tbreak;\n \tcase \"lmdir\":\n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tbreak;\n \tcase \"bm25\":\n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tretModelParam2 = prop.getProperty(\"param2\");\n \t\tbreak;\n \tcase \"dfr\": \n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tretModelParam2 = prop.getProperty(\"param2\");\n \t\tretModelParam3 = prop.getProperty(\"param3\");\n \t\tbreak;\n \tdefault :\n \t\tSystem.err.println(\"Sorry! No such retrieval models found.\");\n \t\treturn;\n \t}\n }", "public Map<String, AccessPoint> createParameters() {\r\n\t\tMap<String, AccessPoint> pm = new TreeMap<String, AccessPoint>();\r\n\t\tpm.put(\"vcNumber\", new MutableFieldAccessPoint(\"vcNumber\", this));\r\n\t\treturn pm;\r\n\t}", "public NetworkDevicePatchParameters() {\n }", "public Parameter(\n BernoulliDistribution conditional,\n BetaDistribution prior )\n {\n super( conditional, NAME, prior );\n }", "protected void saveWithParameters(JasperTemplate jasperTemplate) {\n jasperTemplateRepository.save(jasperTemplate);\n }", "ParamValueRelation createParamValueRelation();", "public void createTemplate(ReportContent reportContent, String fileName) {\n\n ArrayList<Detail> detailList = reportContent.getDetails();\n\n // create Test Data\n HashMap<String, Object> parameter = createBasicParameters(reportContent);\n\n // read and modify file\n \n \n File file = Main_Gui.openFile(\"report_template.jrxml\", \"report template\", \".jrxml\");\n\n try {\n // define namespace of the jrxml-file and document\n Namespace ns = Namespace\n .getNamespace(\"http://jasperreports.sourceforge.net/jasperreports\");\n Document doc = new SAXBuilder(false).build(file);\n\n // set Color of the result conistency ratio (red, if Cr is higher than\n // the critical CR --> else: black)\n @SuppressWarnings(\"unchecked\")\n List<Element> list = doc.getRootElement().getChild(\"detail\", ns)\n .getChild(\"band\", ns).getChildren();\n\n \n for (Element element : list) {\n\n if (element.getName().equals(\"textField\")\n && element.getChild(\"textFieldExpression\", ns)\n .getText()\n .equals(\"$P{RESULT_CONSISTENCY_RATIO}\")) {\n\n setConsistencyRatioColor(\n reportContent.getResultConsistencyRatio(), element,\n ns);\n }\n }\n\n // addDetail band(s)\n for (Detail detail : detailList) {\n this.addDetailFrame(doc, ns, parameter, detail);\n\n }\n\n // remove detail pattern band (last band under \"detail\" in \"report_template.jrxml\")\n doc.getRootElement().getChild(\"detail\", ns).getChildren().remove(4);\n\n // create output of the modified template \n XMLOutputter out = new XMLOutputter();\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n out.output(doc, baos);\n\n ByteArrayInputStream bais = new ByteArrayInputStream(\n baos.toByteArray());\n\n // -----------\n // --JASPER\n // ----------\n \n // compile, fill and export the report as PDF-file to the given path\n JasperReport jasperReport = JasperCompileManager\n .compileReport(bais);\n\n JasperPrint jasperPrint = JasperFillManager.fillReport(\n jasperReport, parameter,\n new net.sf.jasperreports.engine.JREmptyDataSource(1));\n\n JasperExportManager.exportReportToPdfFile(jasperPrint, fileName);\n\n } catch (JRException e) {\n // print out standard exception\n e.printStackTrace();\n } catch (JDOMException e1) {\n // print out standard exception\n e1.printStackTrace();\n } catch (IOException e1) {\n // print out standard exception\n \n //!!NOT YET IMPLEMENTED!!:\n //show user dialog, if file which shall be overwritten is still opened.\n \n e1.printStackTrace();\n }\n\n }", "public Map<String, String> execute(DvnRJobRequest sro) {\n \n // set the return object\n Map<String, String> result = new HashMap<String, String>();\n \n try {\n // Set up an Rserve connection\n dbgLog.fine(\"sro dump:\\n\"+ToStringBuilder.reflectionToString(sro, ToStringStyle.MULTI_LINE_STYLE));\n RConnection c = new RConnection(RSERVE_HOST, RSERVE_PORT);\n dbgLog.fine(\"hostname=\"+RSERVE_HOST);\n \n c.login(RSERVE_USER, RSERVE_PWD);\n dbgLog.fine(\">\" + c.eval(\"R.version$version.string\").asString() + \"<\");\n \n \n // save the data file at the Rserve side\n String infile = sro.getSubsetFileName();\n InputStream inb = new BufferedInputStream(\n new FileInputStream(infile));\n \n int bufsize;\n byte[] bffr = new byte[1024];\n \n RFileOutputStream os = \n c.createFile(tempFileName);\n while ((bufsize = inb.read(bffr)) != -1) {\n os.write(bffr, 0, bufsize);\n }\n os.close();\n inb.close();\n // Rserve code starts here\n dbgLog.fine(\"wrkdir=\"+wrkdir);\n historyEntry.add(librarySetup);\n c.voidEval(librarySetup);\n \n // variable type\n /* \n vartyp <-c(1,1,1)\n */\n // java side\n // int [] jvartyp = {1,1,1};// = mp.get(\"vartyp\").toArray()\n int [] jvartyp = sro.getVariableTypes();\n StringBuilder sb = new StringBuilder();\n for (int i = 0 ; i< jvartyp.length; i++){\n if (i == (jvartyp.length -1)){\n sb.append(String.valueOf(jvartyp[i]));\n } else {\n sb.append(String.valueOf(jvartyp[i])+\", \");\n }\n }\n \n // R side\n historyEntry.add(\"vartyp<-c(\" + sb.toString()+\")\");\n c.assign(\"vartyp\", new REXPInteger(jvartyp));\n String [] tmpt = c.eval(\"vartyp\").asStrings();\n dbgLog.fine(\"vartyp length=\"+ tmpt.length + \"\\t \" +\n StringUtils.join(tmpt,\",\"));\n \n // variable format (date/time)\n /* \n varFmt<-list();\n c.voidEval(\"varFmt<-list()\");\n */\n \n Map<String, String> tmpFmt = sro.getVariableFormats();\n if (tmpFmt != null){\n Set<String> vfkeys = tmpFmt.keySet();\n String[] tmpfk = (String[]) vfkeys.toArray(new String[vfkeys.size()]);\n String[] tmpfv = getValueSet(tmpFmt, tmpfk);\n historyEntry.add(\"tmpfk<-c(\" + StringUtils.join(tmpfk,\", \")+\")\");\n c.assign(\"tmpfk\", new REXPString(tmpfk));\n historyEntry.add(\"tmpfv<-c(\" + StringUtils.join(tmpfv,\", \")+\")\");\n c.assign(\"tmpfv\", new REXPString(tmpfv));\n String fmtNamesLine = \"names(tmpfv)<- tmpfk\";\n historyEntry.add(fmtNamesLine);\n c.voidEval(fmtNamesLine);\n String fmtValuesLine =\"varFmt<- as.list(tmpfv)\";\n historyEntry.add(fmtValuesLine);\n c.voidEval(fmtValuesLine);\n } else {\n String [] varFmtN ={};\n List<String> varFmtV = new ArrayList<String>();\n historyEntry.add(\"varFmt <- list()\");\n c.assign(\"varFmt\", new REXPList(new RList(varFmtV, varFmtN)));\n }\n /*\n vnames<-c(\"race\",\"age\",\"vote\")\n */\n \n // variable names\n // String [] jvnames = {\"race\",\"age\",\"vote\"};\n \n String [] jvnamesRaw = sro.getVariableNames();\n String [] jvnames = null;\n \n //VariableNameFilterForR nf = new VariableNameFilterForR(jvnamesRaw);\n \n if (sro.hasUnsafedVariableNames){\n // create list\n jvnames = sro.safeVarNames;\n dbgLog.fine(\"renamed=\"+StringUtils.join(jvnames,\",\"));\n } else {\n jvnames = jvnamesRaw;\n }\n //historyEntry.add(\"vnamnes<-c(\"+ StringUtils.join(jvnames, \", \")+\")\");\n String vnQList = DvnDSButil.joinNelementsPerLine(jvnames,true);\n historyEntry.add(\"vnames<-c(\"+ vnQList+\")\");\n \n \n c.assign(\"vnames\", new REXPString(jvnames));\n \n // confirmation\n String [] tmpjvnames = c.eval(\"vnames\").asStrings();\n dbgLog.fine(\"vnames:\"+ StringUtils.join(tmpjvnames, \",\"));\n \n \n /*\n x<-read.table141vdc(file=\"/tmp/VDC/t.28948.1.tab\", \n col.names=vnames, colClassesx=vartyp, varFormat=varFmt)\n */\n \n //String datafilename = \"/nfs/home/A/asone/java/rcode/t.28948.1.tab\";\n \n // tab-delimited file name = tempFileName\n String readtableline = \"x<-read.table141vdc(file='\"+tempFileName+\n \"', col.names=vnames, colClassesx=vartyp, varFormat=varFmt )\";\n historyEntry.add(readtableline);\n dbgLog.fine(\"readtable=\"+readtableline);\n c.voidEval(readtableline);\n \n // safe-to-raw variable name\n /* \n attr(x, \"Rsafe2raw\")<-list();\n */\n //if (nf.hasRenamedVariables()){\n if (sro.hasUnsafedVariableNames){\n dbgLog.fine(\"unsafeVariableNames exist\");\n // create list\n //jvnames = nf.getFilteredVarNames();\n jvnames = sro.safeVarNames;\n String[] rawNameSet = sro.renamedVariableArray;\n String[] safeNameSet = sro.renamedResultArray;\n \n historyEntry.add(\"tmpRN<-c(\"+StringUtils.join(rawNameSet,\", \")+\")\");\n c.assign(\"tmpRN\", new REXPString(rawNameSet));\n historyEntry.add(\"tmpSN<-c(\"+StringUtils.join(safeNameSet,\", \")+\")\");\n c.assign(\"tmpSN\", new REXPString(safeNameSet));\n \n String raw2safevarNameTableLine = \"names(tmpRN)<- tmpSN\";\n historyEntry.add(raw2safevarNameTableLine);\n c.voidEval(raw2safevarNameTableLine);\n String attrRsafe2rawLine = \"attr(x, 'Rsafe2raw')<- as.list(tmpRN)\";\n historyEntry.add(attrRsafe2rawLine);\n c.voidEval(attrRsafe2rawLine);\n } else {\n String attrRsafe2rawLine = \"attr(x, 'Rsafe2raw')<-list();\";\n historyEntry.add(attrRsafe2rawLine);\n c.voidEval(attrRsafe2rawLine);\n }\n \n //Map<String, String> Rsafe2raw = sro.getRaw2SafeVarNameTable();\n \n // asIs\n /* \n for (i in 1:dim(x)[2]){if (attr(x,\"var.type\")[i] == 0) {\n x[[i]]<-I(x[[i]]); x[[i]][ x[[i]] == '' ]<-NA }}\n */\n String asIsline = \"for (i in 1:dim(x)[2]){ \"+\n \"if (attr(x,'var.type')[i] == 0) {\" +\n \"x[[i]]<-I(x[[i]]); x[[i]][ x[[i]] == '' ]<-NA }}\";\n historyEntry.add(asIsline);\n c.voidEval(asIsline);\n \n // variable Id\n /* \n attr(x, \"var.nmbr\")<-c(\"v198057\",\"v198059\",\"v198060\")\n */\n \n // String[] jvarnmbr = {\"v198057\",\"v198059\",\"v198060\"};\n String[] jvarnmbr = sro.getVariableIds();\n String viQList = DvnDSButil.joinNelementsPerLine(jvarnmbr,true);\n historyEntry.add(\"varnmbr <-c(\"+viQList +\")\");\n c.assign(\"varnmbr\",new REXPString(jvarnmbr));\n \n String attrVarNmbrLine = \"attr(x, 'var.nmbr')<-varnmbr\";\n historyEntry.add(attrVarNmbrLine);\n c.voidEval(attrVarNmbrLine);\n \n // confrimation\n String [] vno = c.eval(\"attr(x, 'var.nmbr')\").asStrings();\n dbgLog.fine(\"varNo=\"+StringUtils.join(vno, \",\"));\n \n \n // variable labels\n /* \n attr(x, \"var.labels\")<-c(\"race\",\"age\",\"vote\")\n */\n \n // String[] jvarlabels = {\"race\",\"age\",\"vote\"};\n String[] jvarlabels = sro.getVariableLabels();\n String vlQList = DvnDSButil.joinNelementsPerLine(jvarlabels,true);\n \n historyEntry.add(\"varlabels <-c(\"+ vlQList +\")\");\n c.assign(\"varlabels\", new REXPString(jvarlabels));\n \n String attrVarLabelsLine = \"attr(x, 'var.labels')<-varlabels\";\n historyEntry.add(attrVarLabelsLine);\n c.voidEval(attrVarLabelsLine);\n \n // confirmation\n String [] vlbl = c.eval(\"attr(x, 'var.labels')\").asStrings();\n dbgLog.fine(\"varlabels=\"+StringUtils.join(vlbl, \",\"));\n \n \n \n // --------- block to be used for the production code\n // value-label table\n /* \n VALTABLE<-list()\n VALTABLE[[\"1\"]]<-list(\n \"2\"=\"white\",\n \"1\"=\"others\")\n attr(x, 'val.table')<-VALTABLE\n */\n \n // create the VALTABLE\n String vtFirstLine = \"VALTABLE<-list()\";\n historyEntry.add(vtFirstLine);\n c.voidEval(vtFirstLine);\n Map<String, Map<String, String>> vltbl = sro.getValueTable();\n Map<String, String> rnm2vi = sro.getRawVarNameToVarIdTable();\n for (int j=0;j<jvnamesRaw.length;j++){\n // if this variable has its value-label table,\n // pass its key and value arrays to the Rserve\n // and finalize a value-table at the Rserve\n String varId = rnm2vi.get(jvnamesRaw[j]);\n if (vltbl.containsKey(varId)){\n \n Map<String, String> tmp = (HashMap<String, String>)vltbl.get(varId);\n Set<String> vlkeys = tmp.keySet();\n String[] tmpk = (String[]) vlkeys.toArray(new String[vlkeys.size()]);\n String[] tmpv = getValueSet(tmp, tmpk);\n // debug\n dbgLog.fine(\"tmp:k=\"+ StringUtils.join(tmpk,\",\"));\n dbgLog.fine(\"tmp:v=\"+ StringUtils.join(tmpv,\",\"));\n \n // index number starts from 1(not 0)\n int indx = j +1;\n dbgLog.fine(\"index=\"+indx);\n \n if (tmpv.length > 0){\n \n historyEntry.add(\"tmpk<-c(\"+ DvnDSButil.joinNelementsPerLine(tmpk, true) +\")\");\n c.assign(\"tmpk\", new REXPString(tmpk));\n \n historyEntry.add(\"tmpv<-c(\"+ DvnDSButil.joinNelementsPerLine(tmpv, true) +\")\");\n c.assign(\"tmpv\", new REXPString(tmpv));\n \n String namesValueLine = \"names(tmpv)<- tmpk\";\n historyEntry.add(namesValueLine);\n c.voidEval(namesValueLine);\n \n \n String sbvl = \"VALTABLE[['\"+ Integer.toString(indx)+\"']]\" + \"<- as.list(tmpv)\";\n dbgLog.fine(\"frag=\"+sbvl);\n historyEntry.add(sbvl);\n c.voidEval(sbvl);\n \n // confirmation test for j-th variable name\n REXP jl = c.parseAndEval(sbvl);\n dbgLog.fine(\"jl(\"+j+\") = \"+jl);\n }\n }\n }\n \n // debug: confirmation test for value-table\n dbgLog.fine(\"length of vl=\"+ c.eval(\"length(VALTABLE)\").asInteger());\n String attrValTableLine = \"attr(x, 'val.table')<-VALTABLE\";\n historyEntry.add(attrValTableLine);\n c.voidEval(attrValTableLine);\n \n // --------- block to be used for the production code\n \n \n // missing-value list: TO DO\n /*\n MSVLTBL<-list(); attr(x, 'missval.table')<-MSVLTBL\n */\n String msvStartLine = \"MSVLTBL<-list();\";\n historyEntry.add(msvStartLine);\n c.voidEval(msvStartLine);\n // data structure\n String attrMissvalLine = \"attr(x, 'missval.table')<-MSVLTBL\";\n historyEntry.add(attrMissvalLine);\n c.voidEval(attrMissvalLine);\n \n // attach attributes(tables) to the data.frame\n /*\n x<-createvalindex(dtfrm=x, attrname='val.index')\n x<-createvalindex(dtfrm=x, attrname='missval.index')\n */\n String createVIndexLine = \"x<-createvalindex(dtfrm=x, attrname='val.index');\";\n historyEntry.add(createVIndexLine);\n c.voidEval(createVIndexLine);\n String createMVIndexLine = \"x<-createvalindex(dtfrm=x, attrname='missval.index');\";\n historyEntry.add(createMVIndexLine);\n c.voidEval(createMVIndexLine);\n \n // reflection block: start ------------------------------------------>\n \n \n String requestTypeToken = sro.getRequestType();// (Download|EDA|Xtab|Zelig)\n dbgLog.fine(\"requestTypeToken=\"+requestTypeToken);\n historyEntry.add(\"#### The Request is \"+ requestTypeToken +\" ####\");\n // get a test method\n Method mthd = runMethods.get(requestTypeToken);\n dbgLog.fine(\"method=\"+mthd);\n \n try {\n // invoke this method\n result = (Map<String, String>) mthd.invoke(this, sro, c);\n } catch (InvocationTargetException e) {\n //Throwable cause = e.getCause();\n //err.format(cause.getMessage());\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n \n // add the variable list\n result.put(\"variableList\", joinNelementsPerLine(jvnamesRaw, 5,\n null, false, null, null));\n \n //result.put(\"variableList\",StringUtils.join(jvnamesRaw, \", \"));\n \n // calculate the file-leve UNF\n \n String fileUNFline = \"fileUNF <- paste(summary(unf(x, version=3)))\";\n c.voidEval(fileUNFline);\n String fileUNF = c.eval(\"fileUNF\").asString();\n if (fileUNF == null){\n fileUNF = \"NA\";\n }\n String RversionLine = \"R.Version()$version.string\";\n String Rversion = c.eval(RversionLine).asString();\n \n String zeligVersionLine = \"packageDescription('Zelig')$Version\";\n String zeligVersion = c.eval(zeligVersionLine).asString();\n \n String RexecDate = c.eval(\"date()\").asString();\n /*\n if (result.containsKey(\"option\")){\n result.put(\"R_run_status\", \"T\");\n } else {\n result.put(\"option\", requestTypeToken.toLowerCase()); //download zelig eda xtab\n result.put(\"R_run_status\", \"F\");\n }\n */\n if (sro.hasRecodedVariables()){\n // TODO\n result.put(\"subsettingCriteria\", \"\");\n } else {\n result.put(\"subsettingCriteria\", \"\");\n }\n result.put(\"fileUNF\",fileUNF);\n result.put(\"dsbHost\", RSERVE_HOST);\n result.put(\"dsbPort\", DSB_HOST_PORT);\n result.put(\"dsbContextRootDir\", DSB_CTXT_DIR );\n result.put(\"PID\", PID);\n result.put(\"Rversion\", Rversion);\n result.put(\"zeligVersion\", zeligVersion);\n result.put(\"RexecDate\", RexecDate);\n result.put(\"RCommandHistory\", StringUtils.join(historyEntry,\"\\n\"));\n dbgLog.fine(\"result object (before closing the Rserve):\\n\"+result);\n \n \n // reflection block: end\n \n // close the Rserve connection\n c.close();\n \n } catch (RserveException rse) {\n // RserveException (Rserve is not running)\n rse.printStackTrace();\n \n result.put(\"dsbContextRootDir\", DSB_CTXT_DIR );\n result.put(\"PID\", PID);\n result.put(\"RCommandHistory\", StringUtils.join(historyEntry,\"\\n\"));\n result.put(\"option\",sro.getRequestType().toLowerCase());\n \n result.put(\"RexecError\", \"true\");\n return result;\n \n } catch (REXPMismatchException mme) {\n \n // REXP mismatch exception (what we got differs from what we expected)\n mme.printStackTrace();\n \n result.put(\"dsbContextRootDir\", DSB_CTXT_DIR );\n result.put(\"PID\", PID);\n result.put(\"RCommandHistory\", StringUtils.join(historyEntry,\"\\n\"));\n result.put(\"option\",sro.getRequestType().toLowerCase());\n \n result.put(\"RexecError\", \"true\");\n return result;\n \n } catch (IOException ie){\n ie.printStackTrace();\n \n result.put(\"dsbContextRootDir\", DSB_CTXT_DIR );\n result.put(\"PID\", PID);\n result.put(\"RCommandHistory\", StringUtils.join(historyEntry,\"\\n\"));\n result.put(\"option\",sro.getRequestType().toLowerCase());\n \n result.put(\"RexecError\", \"true\");\n return result;\n \n } catch (Exception ex){\n ex.printStackTrace();\n \n result.put(\"dsbContextRootDir\", DSB_CTXT_DIR );\n result.put(\"PID\", PID);\n \n result.put(\"RCommandHistory\", StringUtils.join(historyEntry,\"\\n\"));\n result.put(\"option\",sro.getRequestType().toLowerCase());\n \n result.put(\"RexecError\", \"true\");\n return result;\n }\n \n return result;\n \n }", "public interface Parameter extends Serializable {\n\n /**\n * Getter fot property 'type'.\n *\n * @return a String with the CVTerm name for the parameter type in the PSI-MI ontology\n */\n public String getType();\n\n /**\n * Setter for property 'type'.\n *\n * @param type a String with the CVTerm name for the parameter type in the PSI-MI ontology\n */\n public void setType(String type);\n\n /**\n * Getter fot property 'factor'.\n *\n * @return a double with the factor of the value in scientific notation.\n */\n public Double getFactor();\n\n /**\n * Setter for property 'factor'.\n *\n * @param factor a double with the factor of the value in scientific notation.\n */\n public void setFactor(Double factor);\n\n /**\n * Getter fot property 'base'.\n *\n * @return a integer with the base in scientific notation.\n */\n public Integer getBase();\n\n /**\n * Setter for property 'base'.\n *\n * @param base a integer with the base in scientific notation.\n */\n public void setBase(Integer base);\n\n /**\n * Getter fot property 'exponent'.\n *\n * @returna integer with exponent of the value in scientific notation.\n */\n public Integer getExponent();\n\n /**\n * Setter for property 'exponent'.\n *\n * @param exponent a integer with the exponent of the value in scientific notation.\n */\n public void setExponent(Integer exponent);\n\n /**\n * Getter fot property 'value'.\n *\n * @return a String with the representation of the parameter in scientific notation.\n */\n public String getValue();\n\n /**\n * Setter for property 'value'.\n *\n * @param value a String with the representation of the parameter in scientific notation.\n */\n public void setValue(String value);\n\n /**\n * Getter fot property 'unit'.\n *\n * @return a String with the unit of the parameter.\n */\n public String getUnit();\n\n /**\n * Setter for property 'unit'.\n *\n * @param unit a String with the unit of the parameter.\n */\n public void setUnit(String unit);\n\n /**\n * Getter fot property 'uncertainty'.\n *\n * @return a double with the uncertainty.\n */\n public Double getUncertainty();\n\n /**\n * Setter for property 'uncertainty'.\n *\n * @param uncertainty a double with the uncertainty\n */\n public void setUncertainty(Double uncertainty);\n}", "@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }", "public PathologyReportReviewParameter createClone(PathologyReportReviewParameter t)\r\n\t{\n\t\treturn null;\r\n\t}", "public String getParameterFromR();" ]
[ "0.76741475", "0.58768165", "0.58768165", "0.58768165", "0.58140826", "0.5608513", "0.5411809", "0.53524137", "0.5323511", "0.5290171", "0.5182306", "0.51300263", "0.51282865", "0.5092471", "0.5079053", "0.4990795", "0.4969788", "0.49628475", "0.49561423", "0.4955516", "0.4935566", "0.49163198", "0.49094525", "0.49065414", "0.48997477", "0.48905984", "0.488929", "0.48808336", "0.4879208", "0.48738006", "0.48724473", "0.4796794", "0.47960353", "0.47881958", "0.47875696", "0.47790942", "0.47702497", "0.47638878", "0.47493434", "0.4735759", "0.4733075", "0.47232154", "0.47189635", "0.47143346", "0.46788818", "0.46769956", "0.46675858", "0.46562946", "0.46383455", "0.46382457", "0.46378857", "0.46320248", "0.4622631", "0.46185994", "0.4614791", "0.46092784", "0.45991552", "0.4598683", "0.45849377", "0.45804852", "0.45726395", "0.45525184", "0.45507243", "0.45403102", "0.45402136", "0.45400953", "0.45392525", "0.45388195", "0.4528247", "0.45272824", "0.45265934", "0.4521711", "0.4519885", "0.45195058", "0.45139802", "0.45132372", "0.45101663", "0.45075864", "0.45011738", "0.45000586", "0.44905376", "0.44829607", "0.4478015", "0.44716415", "0.4466128", "0.44616142", "0.44590262", "0.44579738", "0.4452681", "0.44517174", "0.44456315", "0.4445227", "0.44451076", "0.4425182", "0.44249555", "0.4420953", "0.4418528", "0.4414635", "0.44122723", "0.44092092" ]
0.6812517
1
Test of setFila method, of class Asiento.
@Test public void testSetFila() { System.out.println("setFila"); try { asientoTested.setFila('A'); } catch (IllegalArgumentException e) { fail("Caracter 'A' deberia ser valido"); } try { asientoTested.setFila('a'); } catch (IllegalArgumentException e) { fail("Caracter 'a' deberia ser valido"); } try { asientoTested.setFila(Character.MIN_VALUE); fail(); } catch (IllegalArgumentException e) { assertTrue("Character.MIN_VALUE no deberia ser valido", true); } try { asientoTested.setFila('ñ'); fail(); } catch (IllegalArgumentException e) { assertTrue("Caracter ñ no deberia ser valido", true); } // TODO review the generated test code and remove the default call to fail. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFila(int fila) {\r\n\t\tthis.fila = fila;\r\n\t}", "@Test\r\n public void testSetFuncaoSecundaria() {\r\n System.out.println(\"setFuncaoSecundaria\");\r\n FuncaoIntegrante funcaoSecundaria = null;\r\n Integrante instance = new Integrante();\r\n instance.setFuncaoSecundaria(funcaoSecundaria);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void testFilaInferiorLlena( )\n {\n setupEscenario1( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 7, marcaJugador1 );\n triqui.marcarCasilla( 8, marcaJugador1 );\n triqui.marcarCasilla( 9, marcaJugador1 );\n assertTrue( triqui.filaInferiorLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }", "@Test\r\n public void testSetFuncaoPrimaria() {\r\n System.out.println(\"setFuncaoPrimaria\");\r\n FuncaoIntegrante funcaoPrimaria = null;\r\n Integrante instance = new Integrante();\r\n instance.setFuncaoPrimaria(funcaoPrimaria);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void testSetAnalizar() {\r\n System.out.println(\"setAnalizar\");\r\n String analizar = \"3+(\";\r\n RevisorParentesis instance = null;\r\n instance.setAnalizar(analizar);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void testSetFakturaId() {\r\n System.out.println(\"setFakturaId\");\r\n Short fakturaId = null;\r\n Faktura instance = new Faktura();\r\n instance.setFakturaId(fakturaId);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void testSetPracownik() {\r\n System.out.println(\"setPracownik\");\r\n Pracownik pracownik = null;\r\n Faktura instance = new Faktura();\r\n instance.setPracownik(pracownik);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void testSetLisrFournisseur() {\r\n System.out.println(\"setLisrFournisseur\");\r\n List<Fournisseur> lisrFournisseur = null;\r\n \r\n chequeBeans instance = new chequeBeans();\r\n instance.setLisrFournisseur(lisrFournisseur);\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testSetMatricula() {\n System.out.println(\"setMatricula\");\n String matricula = \"\";\n Usuario instance = null;\n instance.setMatricula(matricula);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testSetNota() {\n System.out.println(\"setNota\");\n ArrayList<Notas> nota = null;\n Alumno instance = null;\n instance.setNota(nota);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testSetValor() {\r\n \r\n }", "public void testFilaSuperiorLlena( )\n {\n setupEscenario2( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 1, marcaJugador1 );\n triqui.marcarCasilla( 2, marcaJugador1 );\n triqui.marcarCasilla( 3, marcaJugador1 );\n assertTrue( triqui.filaSuperiorLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }", "@Test\n public void testSetQuant_livros_locados() {\n System.out.println(\"setQuant_livros_locados\");\n int quant_livros_locados = 0;\n Usuario instance = null;\n instance.setQuant_livros_locados(quant_livros_locados);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testSetSiirSuunta() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n try {\n k.setSiirSuunta(-1);\n } catch (Exception e) {\n assertTrue(\"Sirtymissuunnan muutos aiheuttaa virheen\", true);\n }\n }", "void setFmla(java.lang.String fmla);", "private void setupSpalteFaz() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteFaz.setCellValueFactory(new PropertyValueFactory<>(\"faz\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteFaz.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteFaz.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setFaz(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "public void setFilial(int filial);", "@Test\n public void testSetNombre() {\n System.out.println(\"setNombre\");\n String nombre = \"\";\n Funcionario instance = new Funcionario();\n instance.setNombre(nombre);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n\tpublic void testFineTurno() {\r\n\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\tthis.giocatori.add(new Giocatore());\r\n\t\t\tfor (int j = 0; j < 4; j++) {\r\n\t\t\t\tthis.giocatori.get(i).getFamigliare(j).setPosizionato(true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.giocatoreDiTurno = this.giocatori.get(1);\r\n\t\tassertTrue(this.giocatoreDelTurnoSuccessivo(giocatoreDiTurno) == null);\r\n\t}", "public void setFlores(int avenida, int calle, int cant);", "public int getFila() {\n\t\treturn fila;\n\t}", "public int getFila() {\r\n\t\treturn fila;\r\n\t}", "public int getFila() {\r\n\t\treturn fila;\r\n\t}", "@Test\n public void testSetLugarNac() {\n System.out.println(\"setLugarNac\");\n String lugarNac = \"\";\n Paciente instance = new Paciente();\n instance.setLugarNac(lugarNac);\n \n }", "@Test\r\n public void testSetSamochod() {\r\n System.out.println(\"setSamochod\");\r\n Samochod samochod = null;\r\n Faktura instance = new Faktura();\r\n instance.setSamochod(samochod);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void testSetDataSprzedazy() {\r\n System.out.println(\"setDataSprzedazy\");\r\n Date dataSprzedazy = null;\r\n Faktura instance = new Faktura();\r\n instance.setDataSprzedazy(dataSprzedazy);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testSetCodigo() {\n System.out.println(\"setCodigo\");\n int codigo = 0;\n DetalleAhorro instance = new DetalleAhorro();\n instance.setCodigo(codigo);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testSetSaldo() {\n System.out.println(\"setSaldo\");\n double saldo = 0.0;\n DetalleAhorro instance = new DetalleAhorro();\n instance.setSaldo(saldo);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testSetTelefoneCelular() {\r\n System.out.println(\"setTelefoneCelular\");\r\n String telefoneCelular = \"\";\r\n Integrante instance = new Integrante();\r\n instance.setTelefoneCelular(telefoneCelular);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public int obtenerFila() {\n\t\treturn fila;\n\t}", "@Test\r\n public void testSetId_fournisseur() {\r\n System.out.println(\"setId_fournisseur\");\r\n int id_fournisseur = 0;\r\n chequeBeans instance = new chequeBeans();\r\n instance.setId_fournisseur(id_fournisseur);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testSetEtnia() {\n System.out.println(\"setEtnia\");\n String etnia = \"\";\n Paciente instance = new Paciente();\n instance.setEtnia(etnia);\n\n }", "public int getFila(){\n\t\treturn fila;\n\t}", "@Test\r\n public void testSetTipoDPolarizacao() {\r\n System.out.println(\"setTipoDPolarizacao\");\r\n TipoDPolarizacao tipoDPolarizacao = TipoDPolarizacao.REFLEXAO;\r\n Simulacao instance = new Simulacao(TipoDPolarizacao.ABSORCAO);\r\n instance.setTipoDPolarizacao(tipoDPolarizacao);\r\n }", "@Test\n public void testSetTipoSangre() {\n System.out.println(\"setTipoSangre\");\n String tipoSangre = \"\";\n Paciente instance = new Paciente();\n instance.setTipoSangre(tipoSangre);\n \n }", "@Test\n\tpublic void testVisualizzaFondo() {\n\t\tFondo.inserisciFondo(nome, importo);\n\t\tidFondo = Utils.lastInsertID();\n\t\tfondo = Fondo.visualizzaFondo(nome);\n\t\tassertTrue(\"visualizzaFondo() non funziona correttamente\", \n\t\t\t\tfondo.getNome().equals(nome) &&\n\t\t\t\tfondo.getImporto() == importo &&\n\t\t\t\tfondo.getId_Fondo() == idFondo\n\t\t);\n\t}", "@Test\r\n public void testSetListeFacture() {\r\n System.out.println(\"setListeFacture\");\r\n List<Facture> listeFacture = null;\r\n chequeBeans instance = new chequeBeans();\r\n instance.setListeFacture(listeFacture);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void setFA(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localFATracker = true;\r\n } else {\r\n localFATracker = false;\r\n \r\n }\r\n \r\n this.localFA=param;\r\n \r\n\r\n }", "public void setIndicadorFactura(Boolean indicadorFactura)\r\n/* 702: */ {\r\n/* 703:769 */ this.indicadorFactura = indicadorFactura;\r\n/* 704: */ }", "@Test\n\tpublic void testSetFecha8(){\n\t\tPlataforma.closePlataforma();\n\t\t\n\t\tfile = new File(\"./data/plataforma\");\n\t\tfile.delete();\n\t\tPlataforma.openPlataforma();\n\t\tPlataforma.login(\"1\", \"contraseniaprofe\");\n\t\t\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(5));\n\t\tej1.enPlazo();\n\t\t\n\t\tassertEquals(ej1.getEstado(), EstadoEjercicio.TERMINADO);\n\t\t\t\t\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(6);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(10);\n\t\tassertFalse(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}", "public void testFilaMediaLlena( )\n {\n setupEscenario3( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 4, marcaJugador1 );\n triqui.marcarCasilla( 5, marcaJugador1 );\n triqui.marcarCasilla( 6, marcaJugador1 );\n assertTrue( triqui.filaMediaLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }", "@Test\n public void testSetNumero() {\n System.out.println(\"setNumero\");\n try {\n asientoTested.setNumero(0);\n fail();\n } catch (IllegalArgumentException e) {\n assertTrue(\"0 no es un valor valido\", true);\n }\n try {\n asientoTested.setNumero(-1);\n fail();\n } catch (IllegalArgumentException e) {\n assertTrue(\"-1 no es un valor valido\", true);\n }\n try {\n asientoTested.setNumero(30);\n } catch (IllegalArgumentException e) {\n fail(\"30 es un valor valido\");\n }\n try {\n asientoTested.setNumero(31);\n fail();\n } catch (IllegalArgumentException e) {\n assertTrue(\"31 no es un valor valido\", true);\n }\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testSetInteres() {\n System.out.println(\"setInteres\");\n double interes = 0.0;\n DetalleAhorro instance = new DetalleAhorro();\n instance.setInteres(interes);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "@Test\n public void testSetPersonaPaciente() {\n System.out.println(\"setPersonaPaciente\");\n Persona personaPaciente = null;\n Paciente instance = new Paciente();\n instance.setPersonaPaciente(personaPaciente);\n\n }", "@Test\n public void testSetFechaPago() {\n System.out.println(\"setFechaPago\");\n Date fechaPago = null;\n DetalleAhorro instance = new DetalleAhorro();\n instance.setFechaPago(fechaPago);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testSetSexo() {\r\n System.out.println(\"setSexo\");\r\n Sexo sexo = null;\r\n Integrante instance = new Integrante();\r\n instance.setSexo(sexo);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void konstruktoriAsettaaSateenOikein() {\n assertEquals(3.0, lierio.getSade(), 1);\n }", "public void setFiMaHoso(String fiMaHoso) {\n this.fiMaHoso = fiMaHoso;\n }", "public void setFiMaHoso(String fiMaHoso) {\n this.fiMaHoso = fiMaHoso;\n }", "private boolean esFilaValida(int fila) {\n return (fila>=0 && fila<=casillas.length);\n }", "@Test\r\n public void testSetApellido() {\r\n System.out.println(\"setApellido\");\r\n String apellido = \"\";\r\n Usuario instance = new Usuario();\r\n instance.setApellido(apellido);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Test\r\n public void testSetTelefoneComercial() {\r\n System.out.println(\"setTelefoneComercial\");\r\n String telefoneComercial = \"\";\r\n Integrante instance = new Integrante();\r\n instance.setTelefoneComercial(telefoneComercial);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testSetOrcamento() throws Exception {\n System.out.println(\"setOrcamento\");\n Orcamento orc = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n Orcamento expResult = null;\n Orcamento result = instance.setOrcamento(orc);\n assertEquals(expResult, result);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "private void almacenarFallos() {\n BaseDatos bd = new BaseDatos(this);\n// Log.i(\"FALLOS\",\"Nmero de fallos final: \"+fallos);\n bd.updatePalabra(palabraActual.getId(),fallos);\n\n bd.close();\n }", "@Then(\"^o aplicativo carrega a tela Faturas$\")\n\tpublic void verificaSeTelaFaturas() throws Throwable {\n\t\tAssert.assertTrue(menu.verificaTextoNaTela(\"Faturas\"));\n\n\t}", "@Test\n public void testAvaaRuutu() {\n int x = 0;\n int y = 0;\n Peli pjeli = new Peli(new Alue(3, 0));\n pjeli.avaaRuutu(x, y);\n ArrayList[] lista = pjeli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isAvattu());\n assertEquals(false, pjeli.isLahetetty());\n }", "@Test\n public void testSetFecha() {\n System.out.println(\"setFecha\");\n Date fecha = null;\n Reserva instance = new Reserva();\n instance.setFecha(fecha);\n \n }", "@Test\r\n public void testLisaakaari() {\r\n System.out.println(\"lisaakaari\");\r\n Kaari kaari = null;\r\n Pala instance = null;\r\n instance.lisaakaari(kaari);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Setteri\n public void asetaLiite(Tiedosto liite){\n this.liite = liite;\n }", "private void testSet() {\n init();\n assertTrue(\"l2.set(l2, 0, 39)\", \n FListInteger.get(l2.set(l2, 0, 39), 0) == 39);\n assertTrue(\"l2.set(l2, 0, 51)\", \n FListInteger.get(l2.set(l2, 0, 51), 0) == 51);\n assertTrue(\"l1.set(l1, 0, 10101)\",\n FListInteger.get(l1.set(l1, 0, 10101), 0) == 10101);\n }", "public void setIdfilial(int idfilial){\r\n this.idfilial = idfilial;\r\n }", "@Test\n\tpublic void testSet() {\n\t}", "@Test\n public void testSetUsuarioPaciente() {\n System.out.println(\"setUsuarioPaciente\");\n Usuario usuarioPaciente = null;\n Paciente instance = new Paciente();\n instance.setUsuarioPaciente(usuarioPaciente);\n\n }", "@Test\n\tpublic void testaAdicionaFalta() throws Exception {\n\n\t\tminitElimBai_1.adicionaFalta();\n\t\ttry {\n\t\t\tminitElimBai_1.adicionaFalta();\n\t\t\tAssert.fail(\"Deveria ter retornado excessao.\");\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro no adicionaFalta()\",\n\t\t\t\t\t\"Numero de faltas excedido.\", e.getMessage());\n\t\t}\n\n\t\ttry {\n\t\t\tminitElimBai_1.adicionaFalta();\n\t\t\tAssert.fail(\"Deveria ter retornado excessao.\");\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro no adicionaFalta()\",\n\t\t\t\t\t\"Numero de faltas excedido.\", e.getMessage());\n\t\t}\n\n\t\tAssert.assertEquals(\"Erro no adicionaFalta()\", 2, minitElimBai_1\n\t\t\t\t.getNotas().size());\n\t\tAssert.assertEquals(\"Erro no adicionaFalta()\", 1,\n\t\t\t\tminitElimBai_1.getQtdFaltas());\n\t\tAssert.assertEquals(\"Erro no adicionaFalta()\", 0.0, minitElimBai_1\n\t\t\t\t.getNotas().get(0), 0.05);\n\t\tAssert.assertEquals(\"Erro no adicionaFalta()\", 0.0, minitElimBai_1\n\t\t\t\t.getNotas().get(1), 0.05);\n\n\t\tminitElimBai_2.adicionaFalta();\n\t\tminitElimBai_2.adicionaFalta();\n\t\ttry {\n\t\t\tminitElimBai_2.adicionaFalta();\n\t\t\tAssert.fail(\"Deveria ter retornado excessao.\");\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro no adicionaFalta()\",\n\t\t\t\t\t\"Numero de faltas excedido.\", e.getMessage());\n\t\t}\n\n\t\ttry {\n\t\t\tminitElimBai_2.adicionaFalta();\n\t\t\tAssert.fail(\"Deveria ter retornado excessao.\");\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro no adicionaFalta()\",\n\t\t\t\t\t\"Numero de faltas excedido.\", e.getMessage());\n\t\t}\n\n\t\tAssert.assertEquals(\"Erro no adicionaFalta()\", 2, minitElimBai_2\n\t\t\t\t.getNotas().size());\n\t\tAssert.assertEquals(\"Erro no adicionaFalta()\", 2,\n\t\t\t\tminitElimBai_2.getQtdFaltas());\n\t\tAssert.assertEquals(\"Erro no adicionaFalta()\", 0.0, minitElimBai_2\n\t\t\t\t.getNotas().get(0), 0.05);\n\t\tAssert.assertEquals(\"Erro no adicionaFalta()\", 0.0, minitElimBai_2\n\t\t\t\t.getNotas().get(1), 0.05);\n\t}", "@Test\n\tpublic void testeLocacao_UsuarioVazio() throws Exception {\n\t\tList<Filme> filme = Arrays.asList(new Filme(\"Filme 1\", 2, 5.0));\n\t\t\n\t\ttry {\n\t\t\tservice.alugarFilme(null, filme);\n\t\t\tAssert.fail();\n\t\t} catch (LocadoraException e) {\n\t\t\tassertThat(e.getMessage(), CoreMatchers.is(\"Usuario vazio!\"));\n\t\t}\n\t}", "@Test\n public void testSetHasTemperaturaVariation() {\n System.out.println(\"setHasTemperaturaVariation\");\n boolean value = true;\n Simulacao simulacao = new Simulacao();\n simulacao.setSala(sala);\n AlterarTemperaturasMeioController instance = new AlterarTemperaturasMeioController(simulacao);\n instance.setHasTemperaturaVariation(value);\n }", "@Test\n\tpublic void testVisualizzaFondi() {\n\t\tfondi = Fondo.visualizzaFondi();\n\t\tdimensione = fondi.size();\n\t\tnome = randomString.nextString();\n\t\t\n\t\tFondo.inserisciFondo(nome, importo);\n\t\t\n\t\tfondi = Fondo.visualizzaFondi();\n\t\tassertEquals(\"visualizzaFondi() non funziona correttamente\", dimensione + 1, fondi.size());\n\t}", "@Test\n public void testSalaire() {\n Assert.assertTrue(e.calculSalaire() == 15 * 20 + e.getSalaire());\n }", "@Test\n\tpublic void testVisualizzaFondoInt() {\n\t\tFondo.inserisciFondo(nome, importo);\n\t\tidFondo = Utils.lastInsertID();\n\t\tfondo = Fondo.visualizzaFondo(idFondo);\n\t\tassertTrue(\"visualizzaFondoInt() non funziona correttamente\", \n\t\t\t\tfondo.getNome().equals(nome) &&\n\t\t\t\tfondo.getImporto() == importo &&\n\t\t\t\tfondo.getId_Fondo() == idFondo\n\t\t);\n\t}", "@Test\r\n public void testSetContrasenia() {\r\n System.out.println(\"setContrasenia\");\r\n String contrasenia = \"\";\r\n Usuario instance = new Usuario();\r\n instance.setContrasenia(contrasenia);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "public Automato(TabelaDeTransicao _tabela) {\n tabela = _tabela;\n estadosDeterminizados = (Vector) _tabela.getEstados().clone();\n }", "@Test\r\n public void testSetDataEntrada() {\r\n System.out.println(\"setDataEntrada\");\r\n Date dataEntrada = null;\r\n Integrante instance = new Integrante();\r\n instance.setDataEntrada(dataEntrada);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void testSetOrigen() {\r\n String expResult = \"pruebaorigen\";\r\n articuloPrueba.setOrigen(expResult);\r\n assertEquals(expResult, articuloPrueba.getOrigen());\r\n }", "@Test\n\tpublic void testCambiaImporto() {\n\t\tfloat nuovoImporto = 15.678f;\n\t\tFondo.inserisciFondo(nome, importo);\n\t\tidFondo = Utils.lastInsertID();\n\t\t\n\t\tFondo.cambiaImporto(idFondo, nuovoImporto);\n\t\tfondo = Fondo.visualizzaFondo(idFondo);\n\t\tassertTrue(\"cambiaImporto() non funziona correttamente\", \n\t\t\t\tfondo.getNome().equals(nome) &&\n\t\t\t\tfondo.getImporto() == nuovoImporto &&\n\t\t\t\tfondo.getId_Fondo() == idFondo\n\t\t);\n\t}", "public int dameFila() {\n return this.fila;\n }", "@Test\n public void testSetTipoFinal() {\n System.out.println(\"setTipoFinal\");\n String tipoFinal = \"\";\n Reserva instance = new Reserva();\n instance.setTipoFinal(tipoFinal);\n \n }", "@Test\n public void testTarkistaVastaus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n\n\n assertEquals(\"Sanan tarkastus ei toimi\", true, k.tarkistaVastaus(\"vastine\"));\n }", "private void factura(Date fecha, Double abono, Double pendiente, String flag, Double mora) {\n Date fechaFact = fecha;\n Double montoAbonado = abono;\n Double pendActual = pendiente;\n String proxPago = flag;\n String cliente = datosC.getCliente();\n String productos = datosC.getProducto();\n String factura = this.factura;\n Double cambio = Double.parseDouble(lblCambio.getText());\n Double monto = montoAbonado + cambio;\n Double moraa = mora;\n FacturaAbono fact = new FacturaAbono(fechaFact, montoAbonado, pendActual, proxPago, cliente,\n productos, factura, cambio, monto, moraa);\n fact.setVisible(true);\n }", "@Test\r\n public void testSetAnnee() {\r\n System.out.println(\"*****************\");\r\n System.out.println(\"Test : setAnnee\");\r\n int annee = 1994;\r\n Cours_Reservation instance = new Cours_Reservation();\r\n instance.setAnnee(annee);\r\n assertEquals(instance.getAnnee(), annee);\r\n }", "@Test\n public void testSetInstrucciones() {\n System.out.println(\"setInstrucciones\");\n Receta instance = new Receta();\n instance.setInstrucciones(\"inst1\");\n String expResult = \"inst1\";\n String result = instance.getInstrucciones();\n assertEquals(expResult, result);\n }", "@Test\r\n public void testOnkoSama() {\r\n System.out.println(\"onkoSama\");\r\n Pala toinenpala = null;\r\n Pala instance = null;\r\n boolean expResult = false;\r\n boolean result = instance.onkoSama(toinenpala);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n\tpublic void testSetFecha7(){\n\t\tPlataforma.closePlataforma();\n\t\t\n\t\tfile = new File(\"./data/plataforma\");\n\t\tfile.delete();\n\t\tPlataforma.openPlataforma();\n\t\tPlataforma.login(\"1\", \"contraseniaprofe\");\n\t\t\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(2));\n\t\tej1.responderEjercicio(nacho, array);\n\t\t\t\t\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(10);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(3);\n\t\tassertTrue(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}", "public void testAuta()\n\t{\n\t\tNakladak nakl = new Nakladak(Simulator.getCas());\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\t//cesta po prekladistich\n\t\tfor(int i=4001;i<4009;i++)\n\t\t{\n\t\t\tnakl.cesta.add(i);\n\t\t}\n\t\tnakl.kDispozici = false;\n\t\tnakl.jede = true;\n\t\tsim.addObserver(nakl);\n\t\t\n\t\tthis.vozy.add(nakl);\n\t\t\n\t}", "@Test\r\n public void testSetRaty() {\r\n System.out.println(\"setRaty\");\r\n String raty = \"\";\r\n Faktura instance = new Faktura();\r\n instance.setRaty(raty);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testSetEmf() {\n System.out.println(\"setEmf\");\n EntityManagerFactory emf = null;\n DaftarPengguna instance = new DaftarPengguna();\n instance.setEmf(emf);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testSetPassword() {\n System.out.println(\"setPassword\");\n String password = \"\";\n Funcionario instance = new Funcionario();\n instance.setPassword(password);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testSetEstado() {\n System.out.println(\"setEstado\");\n String estado = \"\";\n Reserva instance = new Reserva();\n instance.setEstado(estado);\n \n }", "@Test\n\tpublic void testCancellaFondo() {\n\t\tFondo.inserisciFondo(nome, importo);\n\t\tidFondo = Utils.lastInsertID();\n\t\tFondo.cancellaFondo(nome);\n\t\tassertNull(\"cancellaFondo() non funziona correttamente\", Fondo.visualizzaFondo(nome));\n\t}", "public FilialeVerkaufenEntscheidung(Unternehmenskette kette, Filiale filiale) {\r\n\t\tsuper(kette);\r\n\t\tthis.filiale = filiale;\r\n\t\tnew MitarbeiterEntlassenEntscheidung(kette, filiale, filiale.holeMitarbeiter());\r\n\t}", "public void testBirikimliIstatistikCercevesiEkle() {\n System.out.println(\"birikimliIstatistikCercevesiEkle\");\n IstatistikAlici istatistikAlici = null;\n Yakalayici instance = new Yakalayici();\n instance.birikimliIstatistikCercevesiEkle(istatistikAlici);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testSetEndereco() {\r\n System.out.println(\"setEndereco\");\r\n String endereco = \"\";\r\n Integrante instance = new Integrante();\r\n instance.setEndereco(endereco);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testSetUsername() {\n System.out.println(\"setUsername\");\n String username = \"\";\n Funcionario instance = new Funcionario();\n instance.setUsername(username);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testSetPrecio() {\r\n int expResult = 3;\r\n articuloPrueba.setPrecio(expResult);\r\n assertEquals(expResult, articuloPrueba.getPrecio());\r\n }", "@Test\n public void testSetIdPaciente() {\n System.out.println(\"setIdPaciente\");\n Integer idPaciente = null;\n Paciente instance = new Paciente();\n instance.setIdPaciente(idPaciente);\n \n }", "public void VaciarPila()\n {\n this.tope = 0;\n }", "@Test\n public void testSetFechaFin() {\n System.out.println(\"setFechaFin\");\n Date fechaFin = null;\n Reserva instance = new Reserva();\n instance.setFechaFin(fechaFin);\n \n }", "private void actualizarFondo() {\n actualizaEstadoMapa();\n if (modificacionFondoBase == true && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE){\n moverFondo();\n } else if (modificacionFondoBase == false && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE ){\n texturaFondoBase= texturaFondo1_1;\n texturaFondoApoyo= texturaFondo1_2;\n moverFondo();\n }\n }", "@Test\n public void testGetTemperaturaInteriorAlvo() {\n System.out.println(\"getSetTemperaturaInteriorAlvo\");\n double expResult = 20.0;\n Simulacao simulacao = new Simulacao();\n simulacao.setSala(sala);\n AlterarTemperaturasMeioController instance = new AlterarTemperaturasMeioController(simulacao);\n instance.setTemperaturaInteriorAlvo(expResult);\n double result = instance.getTemperaturaInteriorAlvo();\n assertEquals(expResult, result, 0.0);\n }", "@Test\n public void pruebaCalculCamiseta() {\n System.out.println(\"prueba Calcul Camiseta\");\n Camiseta camisetaTest = new Camiseta(1);\n assertEquals(190, (camisetaTest.calculCamiseta(1)),0) ;\n \n Camiseta camisetaTestDos = new Camiseta(2);\n assertEquals(1481.2, (camisetaTestDos.calculCamiseta(7)),0) ;\n \n Camiseta camisetaTestTres = new Camiseta(3);\n assertEquals(1178, (camisetaTestTres.calculCamiseta(4)),0) ;\n \n \n }", "@Test\n public void testAlterarSala() {\n System.out.println(\"alterarSala\");\n Simulacao simulacao = new Simulacao();\n simulacao.setSala(sala);\n AlterarTemperaturasMeioController instance = new AlterarTemperaturasMeioController(simulacao);\n instance.alterarSala();\n }" ]
[ "0.7426121", "0.6825713", "0.66691786", "0.65226144", "0.64980775", "0.64818347", "0.64737976", "0.64666915", "0.6390476", "0.6361321", "0.63435715", "0.632536", "0.6292852", "0.62194616", "0.62139034", "0.6213397", "0.621191", "0.61813504", "0.61646456", "0.6157884", "0.6116221", "0.61157894", "0.61157894", "0.61092585", "0.6071384", "0.6042716", "0.6041946", "0.60142106", "0.6010998", "0.60050184", "0.59971356", "0.59875154", "0.5984612", "0.5980682", "0.5965613", "0.59547716", "0.59330755", "0.5916133", "0.59052354", "0.5895103", "0.5894216", "0.5883015", "0.58825207", "0.5872102", "0.5848012", "0.58428913", "0.58372164", "0.5835575", "0.5835575", "0.5825683", "0.5814641", "0.5804097", "0.5803563", "0.5802448", "0.575818", "0.5747444", "0.5741005", "0.5739764", "0.5733695", "0.5719188", "0.57123065", "0.57121605", "0.57004625", "0.56898767", "0.56873125", "0.56782234", "0.567693", "0.5675498", "0.56739753", "0.5672607", "0.5671888", "0.5669331", "0.5667184", "0.5663902", "0.5662926", "0.56625664", "0.56594825", "0.5653004", "0.5645129", "0.563405", "0.5633888", "0.5632266", "0.5623756", "0.5616747", "0.5611411", "0.5610223", "0.5604118", "0.5594287", "0.5593584", "0.55899894", "0.55896765", "0.55874145", "0.55859286", "0.55756336", "0.55711794", "0.5569799", "0.5555862", "0.5547396", "0.5538422", "0.5536297" ]
0.7861053
0
Test of setNumero method, of class Asiento.
@Test public void testSetNumero() { System.out.println("setNumero"); try { asientoTested.setNumero(0); fail(); } catch (IllegalArgumentException e) { assertTrue("0 no es un valor valido", true); } try { asientoTested.setNumero(-1); fail(); } catch (IllegalArgumentException e) { assertTrue("-1 no es un valor valido", true); } try { asientoTested.setNumero(30); } catch (IllegalArgumentException e) { fail("30 es un valor valido"); } try { asientoTested.setNumero(31); fail(); } catch (IllegalArgumentException e) { assertTrue("31 no es un valor valido", true); } // TODO review the generated test code and remove the default call to fail. //fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNumero(int numero) { this.numero = numero; }", "public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }", "public void setNumero(int numero) {\n this.dado1 = numero;\n }", "public void setNumero(int numero) {\n\t\tthis.numero = numero;\n\t}", "public void setNumero(int numero) {\n\t\tthis.numero = numero;\n\t}", "public void setNumero(int index, int value){\r\n\t\tnumeros.set(index, value);\r\n\t}", "@Test\n public void deve_aceitar_tamanho_com_9_numeros() {\n telefone.setTamanho(9);\n assertTrue(isValid(telefone, String.valueOf(telefone.getTamanho()), Find.class));\n }", "@Override\n\tpublic void teclaNumericaDigitada(String numTecla) {\n\t\t\n\t}", "@Test\n public void deve_aceitar_tamanho_com_8_numeros() {\n telefone.setTamanho(8);\n assertTrue(isValid(telefone, String.valueOf(telefone.getTamanho()), Find.class));\n }", "public void setAno( int ano ){\n this.ano = ano;\n }", "@Test\n public void testSetNumSoin() {\n \n assertNull(soin3.getNumSoin());\n soin3.setNumSoin(\"200\");\n assertNotNull(soin3.getNumSoin());\n assertEquals(\"200\", soin3.getNumSoin());\n \n }", "public void setNumeroInicial(int numeroInicial)\r\n/* 185: */ {\r\n/* 186:198 */ this.numeroInicial = numeroInicial;\r\n/* 187: */ }", "@Test\n public void nao_deve_aceitar_tamanho_telefone_fixo_com_mais_de_9_numeros() {\n telefone.setTamanho(10);\n assertFalse(isValid(telefone, \"O tamanho do telefone não pode ser maior que 9.\", Find.class));\n }", "public void setTelefono(Integer telefono) {\r\n this.telefono = telefono;\r\n }", "public void setAnio(int anio){\r\n \r\n \r\n this.anio = anio;\r\n \r\n }", "@Test\r\n public void testSetValor() {\r\n \r\n }", "@Test\r\n public void testSetTelefoneCelular() {\r\n System.out.println(\"setTelefoneCelular\");\r\n String telefoneCelular = \"\";\r\n Integrante instance = new Integrante();\r\n instance.setTelefoneCelular(telefoneCelular);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void nao_deve_aceitar_tamanho_telefone_fixo_com_menos_de_8_numeros() {\n telefone.setTamanho(7);\n assertFalse(isValid(telefone, \"O tamanho do telefone não pode ser menor que 8.\", Find.class));\n }", "@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}", "@Test\r\n public void testSetCodigo() {\r\n int expResult = 4;\r\n articuloPrueba.setCodigo(expResult);\r\n assertEquals(expResult, articuloPrueba.getCodigo());\r\n }", "public void ingresarNumero() {\n do {\r\n System.out.print(\"\\nIngrese un numero entre 0 y 100000: \");\r\n numero = teclado.nextInt();\r\n if (numero < 0 || numero > 100000){\r\n System.out.println(\"Error, rango invalido. Intentelo de nuevo.\");\r\n }\r\n } while(numero < 0 || numero > 100000);\r\n contarDigitos(numero); //el numero ingresado se manda como parametro al metodo\r\n menu();\r\n }", "public void setNumeroDeAlunos(int valor)\n\t{\n\t\tnumAlunos = valor;\n\t\tSystem.out.printf(\"Modificado o Número de alunos %s\\n\", inicioCurso.getHoraAtual());\n\t}", "public void setCodTienda(Integer codTienda);", "public void setNUMARGEO(int value) {\n this.numargeo = value;\n }", "public void setAnio(int p) { this.anio = p; }", "@Test\r\n public void testSetTelefoneComercial() {\r\n System.out.println(\"setTelefoneComercial\");\r\n String telefoneComercial = \"\";\r\n Integrante instance = new Integrante();\r\n instance.setTelefoneComercial(telefoneComercial);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void alterarDadosCadastraisNumeroInvalido() {\n\t\tAlterarDadosCadastraisPage alterarDadosCadastraisPage = new AlterarDadosCadastraisPage(driver);\n\t\talterarDadosCadastraisPage.getInputCel().clear();\n\t\talterarDadosCadastraisPage.getButtonSalvar().click();\n\t}", "@Test\n public void testSetEtnia() {\n System.out.println(\"setEtnia\");\n String etnia = \"\";\n Paciente instance = new Paciente();\n instance.setEtnia(etnia);\n\n }", "@Test(expected = NullPointerException.class)\n\tpublic void criaContatoNumeroNulo() {\n\t\tcontato = new Contato(\"Jardely\", \"Maris\", null);\n\t}", "@Test\r\n public void testSetAnnee() {\r\n System.out.println(\"*****************\");\r\n System.out.println(\"Test : setAnnee\");\r\n int annee = 1994;\r\n Cours_Reservation instance = new Cours_Reservation();\r\n instance.setAnnee(annee);\r\n assertEquals(instance.getAnnee(), annee);\r\n }", "@Test\r\n public void testSetAnalizar() {\r\n System.out.println(\"setAnalizar\");\r\n String analizar = \"3+(\";\r\n RevisorParentesis instance = null;\r\n instance.setAnalizar(analizar);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void setNumeroAnterior(int numeroAnterior)\r\n/* 205: */ {\r\n/* 206:214 */ this.numeroAnterior = numeroAnterior;\r\n/* 207: */ }", "private void setNums(double altura, double lado2, double lado3){\r\n \r\n this.altura = altura;\r\n this.lado2 = lado2;\r\n this.lado3 = lado3;\r\n \r\n \r\n }", "void setTitolo(String titolo);", "@Test\r\n public void testSetCantidadVendidos() {\r\n int expResult = 5;\r\n articuloPrueba.setCantidadVendidos(expResult);\r\n assertEquals(expResult, articuloPrueba.getCantidadVendidos());\r\n }", "@Test\n public void nao_deve_aceitar_descricao_com_numeros() {\n telefone.setDescricao(random(10, true, true));\n assertFalse(isValid(telefone, \"A descrição não pode conter acentos, caracteres especiais e números.\", Find.class));\n }", "@Test\n public void testSetLugarNac() {\n System.out.println(\"setLugarNac\");\n String lugarNac = \"\";\n Paciente instance = new Paciente();\n instance.setLugarNac(lugarNac);\n \n }", "@Test\n public void testSetRuedas() {\n System.out.println(\"setRuedas\");\n int ruedas = 3;\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n instance.setRuedas(ruedas);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "@Test\n public void testSetSiirSuunta() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n try {\n k.setSiirSuunta(-1);\n } catch (Exception e) {\n assertTrue(\"Sirtymissuunnan muutos aiheuttaa virheen\", true);\n }\n }", "@Test\n public void testSetQuant_livros_locados() {\n System.out.println(\"setQuant_livros_locados\");\n int quant_livros_locados = 0;\n Usuario instance = null;\n instance.setQuant_livros_locados(quant_livros_locados);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public static void NumeroCapicua(){\n\t\tint numero,resto,falta,invertido;\n\t\tString tomar;\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese un numero\");\n\t\tnumero=reader.nextInt();\n\t\tfalta=numero;\n\t\tinvertido=0;\n\t\tresto=0;\n\t\twhile(falta!=0){\n\t\t\tresto=(falta%10);\n\t\t\tinvertido=(invertido*10)+resto;\n\t\t\tfalta=(int)(falta/10);\n\t\t}\n\t\tif(invertido==numero){\n\t\t\tSystem.out.println(\"Es Capicua\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No es Capicua\");\n\t\t}\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}", "@Test\n public void testSetTipoSangre() {\n System.out.println(\"setTipoSangre\");\n String tipoSangre = \"\";\n Paciente instance = new Paciente();\n instance.setTipoSangre(tipoSangre);\n \n }", "public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this, \"Digite somente números, por favor. \", \"Atenção !!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "@Test\r\n public void testSetOrigen() {\r\n String expResult = \"pruebaorigen\";\r\n articuloPrueba.setOrigen(expResult);\r\n assertEquals(expResult, articuloPrueba.getOrigen());\r\n }", "@Test\n public void testSetUsuarioId() {\n System.out.println(\"setUsuarioId\");\n long usuarioId = 0L;\n Reserva instance = new Reserva();\n instance.setUsuarioId(usuarioId);\n \n }", "public void setNumeroId(String NumeroId) {\r\n this.NumeroId = NumeroId;\r\n }", "public void setObstaculo(int avenida, int calle);", "public void setTelefono(String aTelefono) {\n telefono = aTelefono;\n }", "public abstract void setCntPoa(int cntPoa);", "public void setNumeroPiso(String numeroPiso) {\r\n this.numeroPiso = numeroPiso;\r\n }", "@Test\n public void testValiderNumeroSoin() {\n \n assertTrue(soin1.validerNumeroSoin());\n assertFalse(soin4.validerNumeroSoin());\n assertTrue(soin2.validerNumeroSoin());\n }", "@Test\n public void testSetLibroId() {\n System.out.println(\"setLibroId\");\n long libroId = 0L;\n Reserva instance = new Reserva();\n instance.setLibroId(libroId);\n \n }", "public void setTelefono(String telefono) {\r\n\t\tif(telefono.length() == 9){\r\n\t\tthis.telefono = telefono;\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Error telefono\");\r\n\t\t}\r\n\t}", "@Test\n public void testIsTelefono() {\n System.out.println(\"isTelefono\");\n int tel = 123456789;\n Entradas instance = new Entradas();\n boolean expResult = false;\n boolean result = instance.isTelefono(tel);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "private boolean esNumero(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException nfe) {\n return false;\n }\n }", "@Test\n public void testSetNombre() {\n System.out.println(\"setNombre\");\n String nombre = \"T-3\";\n DboEdificio instance = new DboEdificio(1, \"T-3\");\n instance.setNombre(nombre);\n \n }", "public void setPeso(int peso) {\r\n\t\tif(peso < 0){\r\n\t\t\tSystem.out.println(\"Error peso\");\r\n\t\t}else{\r\n\t\tthis.peso = peso;\r\n\t\t}\r\n\t}", "@Test\r\n public void testSetFuncaoPrimaria() {\r\n System.out.println(\"setFuncaoPrimaria\");\r\n FuncaoIntegrante funcaoPrimaria = null;\r\n Integrante instance = new Integrante();\r\n instance.setFuncaoPrimaria(funcaoPrimaria);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void testSetTelefoneResidencial() {\r\n System.out.println(\"setTelefoneResidencial\");\r\n String telefoneResidencial = \"\";\r\n Integrante instance = new Integrante();\r\n instance.setTelefoneResidencial(telefoneResidencial);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void setTelefono(long value) {\r\n this.telefono = value;\r\n }", "public void setTelefono(String telefono);", "@Test\n public void testSetCodigo() {\n System.out.println(\"setCodigo\");\n int codigo = 0;\n DetalleAhorro instance = new DetalleAhorro();\n instance.setCodigo(codigo);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testGetValorValido() {\r\n PapelMoeda instance = new PapelMoeda(100, 100);\r\n int expResult = 100;\r\n int result = instance.getValor();\r\n assertEquals(expResult, result);\r\n }", "private void setNumeros(Set<Integer> numeros) {\n\t\tthis.numeros = new Vector<Integer>(numeros);\n\t}", "public void setValor(int valor) {\n this.valor = valor;\n }", "@Test\n public void testSetInteres() {\n System.out.println(\"setInteres\");\n double interes = 0.0;\n DetalleAhorro instance = new DetalleAhorro();\n instance.setInteres(interes);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testSetPrecio() {\r\n int expResult = 3;\r\n articuloPrueba.setPrecio(expResult);\r\n assertEquals(expResult, articuloPrueba.getPrecio());\r\n }", "public void setNulo(boolean nulo) {\n if (autoIncrement && nulo) {\n try {\n throw new ExcepcionPersonalizada(\n \"El campo esta definido como autoincrement y no puede ser nulo.\",\n this,\n \"isNulo\");\n } catch (ExcepcionPersonalizada ex) {\n Logger.getLogger(ParametrosDeCampo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n this.nulo = nulo;\n }", "private int getNumero() {\n\t\treturn numero;\n\t}", "@Test\n public void testSetNumber() {\n factory.setNumber(1).setCurrency(\"CHF\");\n assertEquals(Geldbetrag.valueOf(\"1 CHF\"), factory.create());\n }", "@Test\r\n public void testSetEndereco() {\r\n System.out.println(\"setEndereco\");\r\n String endereco = \"\";\r\n Integrante instance = new Integrante();\r\n instance.setEndereco(endereco);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void setNOficina (Integer pNOficina)\r\n {\r\n this.nOficina=pNOficina;\r\n }", "public void setCodigo(int Codigo)\r\n {\r\n try\r\n {\r\n this.Codigo = Codigo;\r\n }catch(NumberFormatException e)\r\n {\r\n JOptionPane.showMessageDialog(null, e.toString());\r\n }\r\n \r\n \r\n }", "public static void NumeroAmigo(){\n\t\tint a;\n\t\tint b;\n\t\tString tomar;\n\t\tint resultado;\n\t\tScanner reader= new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese dos numeros\");\n\t\ta=reader.nextInt();\n\t\tb=reader.nextInt();\n\t\tif(a>=0 && b>=0){\n\t\t\tresultado=RepetidorFor(a);\n\t\t\t\tif(resultado==b){\n\t\t\t\tresultado=RepetidorFor(b);\n\t\t\t\tif(resultado==a){\n\t\t\t\t\tSystem.out.println(\"Son numeros amigos\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"No son numeros amigos\");\n\t\t\t}\n\t\t}else{\n\t\t\tSystem.out.println(\"Ingrese numeros positivos\");\n\t\t}\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}", "public int getNumero()\r\n/* 190: */ {\r\n/* 191:202 */ return this.numero;\r\n/* 192: */ }", "public void setBunga(int tipeBunga){\n }", "@Test\n public void testSetMatricula() {\n System.out.println(\"setMatricula\");\n String matricula = \"\";\n Usuario instance = null;\n instance.setMatricula(matricula);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void setPeti_numero(java.lang.Long newPeti_numero);", "public void setPeti_numero(java.lang.Long newPeti_numero);", "public void setNumeroExtremo()\r\n\t{\r\n\t\tthis.setFont(new Font(\"Arial\", Font.BOLD, 22));\r\n\t\tthis.setBorder(BorderFactory.createRaisedBevelBorder());\r\n\t}", "public void setNossoNumero(java.lang.String nossoNumero) {\n this.nossoNumero = nossoNumero;\n }", "public void setNumeroAsientosPorFila(int nuevoNumAsientosFila) {\n\t\tnumeroDeAsientosPorFila = nuevoNumAsientosFila;\n\t}", "@Test\n public void testGetCidadaoPorNumero() {\n System.out.println(\"getCidadaoPorNumero\");\n Cidadao cid = new Cidadao(\"teste\", 999999999, \"@\", \"4490-479\", 1111);\n Reparticao instance = new Reparticao(\"porto\", 1111, 4490, new ArrayList<>());\n instance.addCidadao(cid);\n\n Cidadao expResult = cid;\n Cidadao result = instance.getListaCidadao().getCidadaoPorNumero(999999999);\n assertEquals(expResult, result);\n }", "public static void OrdenarNumeros(){\n\t\t//Variables\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tString tomar;\n\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese tres numeros numero\");\n\t\ta=reader.nextInt();\n\t\tb=reader.nextInt();\n\t\tc=reader.nextInt();\n\t\tif(a>b && b>c){\n\t\t\tTexto=a+\",\"+b+\",\"+c;\n\t\t}else if(a>c && c>b){\n\t\t\tTexto=a+\",\"+c+\",\"+b;\n\t\t}else if(b>a && a>c){\n\t\t\tTexto=b+\",\"+a+\",\"+c;\n\t\t}else if(b>c && c>a){\n\t\t\tTexto=b+\",\"+c+\",\"+a;\n\t\t}else if(c>a && a>b){\n\t\t\tTexto=c+\",\"+a+\",\"+b;\n\t\t}else if(c>b && b>a ){\n\t\t\tTexto=c+\",\"+b+\",\"+a;\n\t\t}\n\t\tSystem.out.println(Texto);\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}", "@Test(expected = BusinessLogicException.class)\n public void updateTarjetaPrepagoConNumeroInvalidoTest() throws BusinessLogicException \n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity pojoEntity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n pojoEntity.setNumTarjetaPrepago(null);\n pojoEntity.setId(entity.getId());\n tarjetaPrepagoLogic.updateTarjetaPrepago(pojoEntity.getId(), pojoEntity);\n }", "@Test\n public void testSetIdPaciente() {\n System.out.println(\"setIdPaciente\");\n Integer idPaciente = null;\n Paciente instance = new Paciente();\n instance.setIdPaciente(idPaciente);\n \n }", "public void setNumeroSerie(double numeroSerie) {\n this.numeroSerie = numeroSerie;\n }", "public void setNumber(int num) throws IllegalPizza {\n if(num < 1 || num > 100)\n throw new IllegalPizza(\"Invalid number of pizzas!\");\n this.numPizzas = num;\n }", "public void setPesoA(int pesoA) \r\n\t\t{\r\n\t\t\tPesoA = pesoA;\r\n\t\t}", "public void setValor(int Valor) {\n this.Valor = Valor;\n }", "public void setCantidad(int value) {\n this.cantidad = value;\n }", "public void setTelefono(String telefono)\r\n {\r\n this.telefono = telefono;\r\n }", "@Test\n public void testSetTipoFinal() {\n System.out.println(\"setTipoFinal\");\n String tipoFinal = \"\";\n Reserva instance = new Reserva();\n instance.setTipoFinal(tipoFinal);\n \n }", "public void setPeso(int peso) {\r\n this.peso = peso;\r\n }", "public void leerNumero() {\r\n\t\tdo {\r\n\t\t\tnumeroDNI=Integer.parseInt(JOptionPane.showInputDialog(\"Numero de DNI: \"));\r\n\t\t\tSystem.out.println(\"Numero de 8 digitos...\");\r\n\t\t}while(numeroDNI<9999999||numeroDNI>99999999);\r\n\t\tletra=hallarLetra();\r\n\t}", "@Test\r\n public void testSetNombre() {\r\n String nombre = \"Prueba\";\r\n articuloPrueba.setNombre(nombre);\r\n assertEquals(nombre, articuloPrueba.getNombre());\r\n }", "@Test\n public void obtenerTipoRespuesta_NB(){\n NumberBoxRecrea nbRecrea=new NumberBoxRecrea();\n String texto=Util.RESPUESTA_TIPO_NUMERO;\n assertEquals(texto,contCons.ObtenerTipoRespuesta(nbRecrea));\n }", "@Test\r\n public void testSetMicentro() {\r\n System.out.println(\"setMicentro\");\r\n CentroEcu_Observado micentro = new CentroEcu_Observado();\r\n micentro.setCiudad(\"Loja\");\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n instance.setMicentro(micentro);\r\n assertEquals(instance.getMicentro().ciudad, \"Loja\");\r\n }", "@Test\r\n public void testSetTipoDPolarizacao() {\r\n System.out.println(\"setTipoDPolarizacao\");\r\n TipoDPolarizacao tipoDPolarizacao = TipoDPolarizacao.REFLEXAO;\r\n Simulacao instance = new Simulacao(TipoDPolarizacao.ABSORCAO);\r\n instance.setTipoDPolarizacao(tipoDPolarizacao);\r\n }", "@Test\n public void testSetId_edificio() {\n System.out.println(\"setId_edificio\");\n int id_edificio = 1;\n DboEdificio instance = new DboEdificio(1, \"T-3\");\n instance.setId_edificio(id_edificio);\n \n }" ]
[ "0.7302857", "0.7136741", "0.6980688", "0.68794996", "0.68794996", "0.68311334", "0.6803143", "0.6722796", "0.6673083", "0.6663627", "0.65541416", "0.6547152", "0.65382725", "0.6439635", "0.63969064", "0.63904846", "0.638284", "0.6377692", "0.6364901", "0.6350316", "0.63332313", "0.6288485", "0.6277668", "0.62327814", "0.62239194", "0.62043387", "0.6188956", "0.6185224", "0.61807877", "0.6155815", "0.61555207", "0.614831", "0.611876", "0.6113103", "0.60923034", "0.6089169", "0.6064991", "0.605631", "0.6048252", "0.60422665", "0.60413224", "0.602051", "0.60197467", "0.60180444", "0.6017298", "0.6008317", "0.60013145", "0.59875375", "0.5977555", "0.59671736", "0.5965951", "0.59503454", "0.5946797", "0.59430355", "0.5939906", "0.5932477", "0.59226155", "0.59189785", "0.5909029", "0.59018093", "0.5886715", "0.5886518", "0.5882534", "0.587361", "0.587291", "0.58678997", "0.5864322", "0.5861462", "0.5860469", "0.58575714", "0.58568144", "0.5846399", "0.5837569", "0.5828098", "0.58171797", "0.5812668", "0.58106256", "0.5808843", "0.5808843", "0.5798388", "0.57945275", "0.5790396", "0.5789578", "0.57842934", "0.5771202", "0.5767298", "0.5766648", "0.5765889", "0.5764469", "0.57564074", "0.5751225", "0.5745834", "0.57436633", "0.57404435", "0.57395977", "0.5737333", "0.5733891", "0.5730376", "0.5712229", "0.57101136" ]
0.79542655
0
/ RULESET CONTAINS RULES WITH THE SAME PRECONDITION. WHEN CREATED, A UNIQUE ID IS GENERATED BY ATOMIC INTEGER. WHEN CREATED, TOTALPROB = 1, IT IS WHEN ADDING RULES TO RULESETS THAT THE PROB IS CALCULATED.
public RuleSet (RuleList rulelist, SensorList sList) { this.references = new ArrayList(); this.rulelist = rulelist; this.totalProb = -1.0; this.id = counter.incrementAndGet(); this.indexesOfPrec = new ArrayList(); this.precedences = new ArrayList (); this.sList = sList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IRuleset add(IRuleset rule);", "StatementRule createStatementRule();", "Rule createRule();", "Rule createRule();", "Rule createRule();", "@Override\n\tprotected boolean rulesGeneration() {\n\t\tGlobal.logger.finer(\"--------------------- S101 rulesGeneration() ----------------- \");\n\t\t//Global.logger.finer(this.toString());\t\t\n\t\tif(activationGuards()){\n\t\t\ttry {\n\t\t\t\tthis.categories.beforeFirst();\n\t\t\t\t\n\t\t\t\twhile (!this.categories.isClosed() && this.categories.next()) {\n\t\t\t\t\tgroupName = this.categories.getString(\"name\");\n\t\t\t\t\tGlobal.logger.fine(\"Creating new S102 [\" + groupName + \", \" + 1 +\"] \");\n\t\t\t\t\tcreateRule(new S102(course_ID, groupName, 1));\n\t\t\t\t\t\n\t\t\t\t\tGlobal.logger.fine(\"Creating new S103 [\" + groupName + \", study ]\");\n\t\t\t\t\tcreateRule(new S103(course_ID, groupName, \"study\"));\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse \n\t\t\treturn false;\n\t\treturn true;\n\t}", "public RuleSet (RuleSet RS1, RuleSet RS2, SensorList sList, SensorMap sMap, RuleMap rMap) {\n \n // CREATING COMBINATION RULESET FROM RS1 & RS2\n \n this.references = new ArrayList();\n this.sList = sList;\n this.rulelist = RS1.rulelist;\n this.totalProb = 0.0;\n this.id = counter.incrementAndGet();\n this.precedences = new ArrayList ();\n Sensor precondition = RS1.getPrecursorWithID().merge(RS2.getPrecursorWithID());\n\n \n ArrayList <Integer> common_non_wildcarded_indexes = RS1.getSuccessor().detectCommonNonWilcardedIndexes(RS2.getSuccessor());\n\n Sensor root = new Sensor(RS1.getPrecursorWithID().tokenMap);\n \n int number = common_non_wildcarded_indexes.size();\n \n boolean insert;\n \n // THERE IS A CONFLICT ONLY IF SOME COMMON NON WILDCARDED INDEXES EXIST\n if (number >= 1) {\n SensorList conflicted_indexes_list = root.expand(common_non_wildcarded_indexes.get(0));\n \n if (number >= 2) { \n \n // Expanding the conflicted indexes in ArrayList\n for (int h = 2; h<=number; h++) {\n \n conflicted_indexes_list.expandListAt(common_non_wildcarded_indexes.get(h-1));\n }\n }\n \n for (int j = 0; j < conflicted_indexes_list.size(); j++) {\n \n // We only need to insert the Rules with postcondition corresponding to either RS1 or RS2\n //\n // So we check for post. matches in the first and then second RuleSet\n insert = false;\n\n // SEARCHING FOR MATCH IN FIRST RULESET\n for (int h1 = 0; h1 < RS1.size(); h1++) {\n ///\n if (RS1.getSuccessor(h1).sensorMatch(conflicted_indexes_list.getSensor(j+1))) {\n insert = true;\n \n break;\n }\n }\n \n // SEARCHING FOR MATCH IN SECOND RULESET\n if (!insert) {\n \n for (int h2 = 0; h2 < RS2.size(); h2++) {\n \n \n if (RS2.getSuccessor(h2).sensorMatch(conflicted_indexes_list.getSensor(j+1))) {\n insert = true;\n \n break;\n }\n \n\n }\n }\n \n // If the Rule postcondition was found in RS1 or RS2, we shall create it\n if (insert) {\n \n Rule rule = new Rule(precondition, conflicted_indexes_list.getSensor(j+1));\n \n rule.ruleset_id = this.id;\n \n int aa = sMap.getMatchingOccurencies(precondition);\n \n int tt = rMap.getMatchingOccurencies(rule);\n \n \n rule.prec_occurrencies = aa;\n rule.occurrencies = tt;\n \n this.rulelist.addRule(rule);\n this.add(rule);\n \n }\n \n }\n \n }\n \n \n // UPDATING RULESET PROBABILITY\n if (this.size() > 0) {\n for (int i = 0; i < this.size(); i++) {\n\n totalProb = totalProb + this.getRule(i).getProb();\n totalProb = Math.round(totalProb * 1000);\n totalProb = totalProb/1000;\n \n }\n }\n \n }", "@Test\r\n\tpublic void testRuleSets2() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0L, testAdminCon.size());\r\n\t\ttestAdminCon.add(micah, lname, micahlname, dirgraph1);\r\n\t\ttestAdminCon.add(micah, fname, micahfname, dirgraph1);\r\n\t\ttestAdminCon.add(micah, developPrototypeOf, semantics, dirgraph1);\r\n\t\ttestAdminCon.add(micah, type, sEngineer, dirgraph1);\r\n\t\ttestAdminCon.add(micah, worksFor, ml, dirgraph1);\r\n\t\t\r\n\t\ttestAdminCon.add(john, fname, johnfname,dirgraph);\r\n\t\ttestAdminCon.add(john, lname, johnlname,dirgraph);\r\n\t\ttestAdminCon.add(john, writeFuncSpecOf, inference, dirgraph);\r\n\t\ttestAdminCon.add(john, type, lEngineer, dirgraph);\r\n\t\ttestAdminCon.add(john, worksFor, ml, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(writeFuncSpecOf, subProperty, design, dirgraph1);\r\n\t\ttestAdminCon.add(developPrototypeOf, subProperty, design, dirgraph1);\r\n\t\ttestAdminCon.add(design, subProperty, develop, dirgraph1);\r\n\t\t\r\n\t\ttestAdminCon.add(lEngineer, subClass, engineer, dirgraph1);\r\n\t\ttestAdminCon.add(sEngineer, subClass, engineer, dirgraph1);\r\n\t\ttestAdminCon.add(engineer, subClass, employee, dirgraph1);\r\n\t\t\r\n\t\tString query = \"select (count (?s) as ?totalcount) where {?s ?p ?o .} \";\r\n\t\tTupleQuery tupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS_PLUS_FULL);\r\n\t\tTupleQueryResult result\t= tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(374, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\r\n\t\tRepositoryResult<Statement> resultg = testAdminCon.getStatements(null, null, null, true, dirgraph, dirgraph1);\r\n\t\t\r\n\t\tassertNotNull(\"Iterator should not be null\", resultg);\r\n\t\tassertTrue(\"Iterator should not be empty\", resultg.hasNext());\r\n\t\t\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.EQUIVALENT_CLASS);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(18, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS,SPARQLRuleset.INVERSE_OF);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(86, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(null,SPARQLRuleset.INVERSE_OF);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(18, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets((SPARQLRuleset)null, null);\r\n\t\ttupleQuery.setIncludeInferred(false);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(16, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t}", "private void generateRules(TreeNode tn)\n{\n if (!tn.isLeaf()) {\n generateRules(tn.getPassTree());\n generateRules(tn.getFailTree());\n return;\n }\n RuleInstance ri = tn.getRules().get(0);\n if (ri.getBaseRule() != null) return;\t// rule already in set\n\n Condition c = tn.getCondition();\n List<UpodCondition> cset = new ArrayList<UpodCondition>();\n if (c != null) {\n UpodCondition cond = c.getConditionTest(for_program);\n if (cond != null) cset.add(cond);\n }\n for (TreeNode pn = tn.getParent(); pn != null; pn = pn.getParent()) {\n Condition pc = pn.getCondition();\n if (pc == null) continue;\n UpodCondition pcond = pc.getConditionTest(for_program);\n if (pcond != null) cset.add(pcond);\n }\n\n UpodCondition rcond = null;\n if (cset.isEmpty()) return;\n if (cset.size() == 1) rcond = cset.get(0);\n else {\n UpodCondition [] conds = new UpodCondition[cset.size()];\n conds = cset.toArray(conds);\n rcond = new BasisConditionLogical.And(conds);\n }\n List<UpodAction> racts = ri.getActions();\n if (rcond == null || racts == null) return;\n\n BasisRule rule = new BasisRule(rcond,racts,null,100);\n for_program.addRule(rule);\n}", "private static Collection<? extends Rule> getRules(ObjectFactory objFactory, Value cwe, Repository repository, Value segment)\n {\n HashMap<String, Rule> ruleSet = new HashMap<String, CWECoverageClaimType.Claims.Claim.RuleSet.Rule>();\n RepositoryConnection con = null;\n try\n {\n con = getRepositoryConnection(repository);\n \n String adaptorQuery = \"SELECT ?descriptionText WHERE {<\"+segment+\"> <http://toif/contains> ?finding. ?finding <http://toif/toif:FindingHasCWEIdentifier> <\" + cwe + \"> . \"\n + \"?finding <http://toif/toif:FindingIsDescribedByWeaknessDescription> ?description . \"\n + \"?description <http://toif/description> ?descriptionText . }\";\n \n TupleQuery adaptorTupleQuery = con.prepareTupleQuery(QueryLanguage.SPARQL, adaptorQuery);\n \n TupleQueryResult queryResult = adaptorTupleQuery.evaluate();\n \n while (queryResult.hasNext())\n {\n BindingSet adaptorSet = queryResult.next();\n Value name = adaptorSet.getValue(\"descriptionText\");\n \n String nameString = name.stringValue();\n \n String[] descArray = nameString.split(\":\");\n \n String ident = descArray[0];\n String description = descArray[1];\n \n if (!ruleSet.containsKey(ident))\n {\n Rule rule = objFactory.createCWECoverageClaimTypeClaimsClaimRuleSetRule();\n ruleSet.put(ident, rule);\n }\n \n Rule rule = ruleSet.get(ident);\n rule.setRuleID(ident);\n rule.setRuleName(ident);\n rule.setRuleComments(description);\n \n }\n \n queryResult.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n catch (MalformedQueryException e)\n {\n e.printStackTrace();\n }\n catch (QueryEvaluationException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n con.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n }\n return ruleSet.values();\n \n }", "private Collection<Rule> getRelevantRules(List<Expr> goals, Collection<Expr> edbList, Collection<Rule> idbList) {\n Set<Rule> relevant = new HashSet<Rule>();\n goals = new LinkedList<Expr>(goals);\n while (!goals.isEmpty()) {\n Expr expr = goals.remove(0);\n for (Rule rule : idbList) {\n if (rule.head.predicate.equals(expr.predicate) && !relevant.contains(rule)) {\n relevant.add(rule);\n goals.addAll(rule.body);\n }\n }\n }\n return relevant;\n }", "AssignmentRule createAssignmentRule();", "private void applyTheRule() throws Exception {\n System.out.println();\n System.out.println();\n System.out.println();\n System.out.println(\"IM APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n System.out.println();\n if (parameter.rule.equals(\"1\")) {\n Rule1.apply(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"2\")) {\n Rule2.apply(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"3\")) {\n Rule3.all(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"3a\")) {\n Rule3.a(resultingModel);\n\n }\n\n if (parameter.rule.equals(\"3b\")) {\n Rule3.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"3c\")) {\n Rule3.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"4\")) {\n Rule4.all(resultingModel);\n }\n\n if (parameter.rule.equals(\"4a\")) {\n Rule4.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"4b\")) {\n Rule4.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"4c\")) {\n Rule4.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"r1\")) {\n Reverse1.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r2\")) {\n Reverse2.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r3\")) {\n Reverse3.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r3a\")) {\n Reverse3.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"r3b\")) {\n Reverse3.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"r3c\")) {\n Reverse3.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4\")) {\n Reverse4.all(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4a\")) {\n Reverse4.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4b\")) {\n Reverse4.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4c\")) {\n Reverse4.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"5\")){\n Rule5.apply(resultingModel);\n }\n\n System.out.println(\"IM DONE APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n\n this.resultingModel.addRule(parameter);\n //System.out.println(this.resultingModel.name);\n this.resultingModel.addOutputInPath();\n }", "IRuleset add(IRuleset...rules);", "public void test_ck_03() {\n // part A - surprising reification\n OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null);\n OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null);\n \n Individual sub = model1.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n OntProperty pred = model1.createOntProperty(\"http://mytest#\");\n Individual obj = model1.createIndividual(\"http://mytest#i2\", model1.getProfile().CLASS());\n OntProperty probabilityP = model1.createOntProperty(\"http://mytest#prob\");\n \n Statement st = model1.createStatement(sub, pred, obj);\n model1.add(st);\n st.createReifiedStatement().addProperty(probabilityP, 0.9);\n assertTrue(\"st should be reified\", st.isReified());\n \n Statement st2 = model2.createStatement(sub, pred, obj);\n model2.add(st2);\n st2.createReifiedStatement().addProperty(probabilityP, 0.3);\n assertTrue(\"st2 should be reified\", st2.isReified());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP).addProperty(probabilityP, 0.3); //!!!\n // exception\n \n // Part B - exception in remove All\n Individual sub2 = model2.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP); //!!! exception\n \n sub2.addProperty(probabilityP, 0.3);\n sub2.removeAll(probabilityP); //!!! exception\n \n }", "ModelRule createModelRule();", "E1Rule createE1Rule();", "public static int createExpPL (int nFeat, ArrayList<String[]> delA, ArrayList<String[]> addA) {\r\n\t\tint size = 0;\r\n\r\n\t\t// Call processRule with unique fname nFeat times\r\n\t\tfor (int i = 0; i < nFeat; i++) {\r\n\t\t\t// Normally distribute the number of features per rule\r\n\t\t Random randGauss = new Random();\r\n\t\t int nRules = (int)(Math.round(randGauss.nextGaussian() + 13.5));\r\n\t\t String pname, cname, ptype, ctype, aname, a_mode;\r\n\r\n\t\t // Call processRule with the same fname nRules times.\r\n\t\t for (int j = 0; j < nRules; j++) {\r\n\t\t\t\t// Randomly select between add or delete rule\r\n\t\t\t\tRandom rand = new Random();\r\n\t\t\t\tString mode;\r\n\t\t\t int randomMode = rand.nextInt(2);\r\n\t\t\t \r\n\t\t\t //Add\r\n\t\t\t if ((randomMode == 0) && (addA.size() != 0)) {\r\n\t\t\t \t// Set parameters\r\n\t\t\t \tmode = \"a\";\r\n\t\t\t \tsize = addA.size();\r\n\t\t\t \tpname = addA.get(size - 1)[0];\r\n\t\t\t \tcname = addA.get(size - 1)[1];\r\n\t\t\t \tptype = addA.get(size - 1)[2];\r\n\t\t\t \tctype = addA.get(size - 1)[3];\r\n\t\t\t \taname = addA.get(size - 1)[4];\r\n\t\t\t \ta_mode = addA.get(size - 1)[5];\r\n\t\t\t \taddA.remove(size - 1);\r\n\r\n\t\t\t \t// Generate and execute create rule\r\n\t\t\t \tString create_args[] = {\"c\", pname, cname, ptype, ctype, aname, \"bCMS\", \"Model\", \"anyname\", a_mode};\r\n\t\t\t \t//genRule.main(create_args);\r\n\t\t\t \t// Process the rule\r\n\t\t\t \tprocessRule(mode, cname, ctype, \"_F\" + i);\r\n\t\t\t }\r\n\t\t\t // Delete\r\n\t\t\t else {\r\n\t\t\t\t if (delA.size() != 0) {\r\n\t\t\t\t \t// Set parameters\r\n\t\t\t\t \tmode = \"d\";\r\n\t\t\t\t \tsize = delA.size();\r\n\t\t\t\t \tcname = delA.get(size - 1)[0];\r\n\t\t\t\t \tctype = delA.get(size - 1)[1];\r\n\t\t\t\t \tdelA.remove(size - 1);\r\n\r\n\t\t\t\t \t// Process the rule - no need to execute\r\n\t\t\t\t \tSystem.out.println(\"NAME: \" + cname);\r\n\t\t\t\t \tSystem.out.println(\"TYPE: \" + ctype);\r\n\t\t\t\t \tprocessRule(mode, cname, ctype, \"_F\" + i);\r\n\t\t\t\t }\r\n\t\t\t\t else if (addA.size() != 0) {\r\n\t\t\t\t \t// Set parameters\r\n\t\t\t\t \tmode = \"a\";\r\n\t\t\t\t \tsize = addA.size();\r\n\t\t\t\t \tpname = addA.get(size - 1)[0];\r\n\t\t\t\t \tcname = addA.get(size - 1)[1];\r\n\t\t\t\t \tptype = addA.get(size - 1)[2];\r\n\t\t\t\t \tctype = addA.get(size - 1)[3];\r\n\t\t\t\t \taname = addA.get(size - 1)[4];\r\n\t\t\t\t \ta_mode = addA.get(size - 1)[5];\r\n\t\t\t\t \taddA.remove(size - 1);\r\n\r\n\t\t\t\t \t// Generate and execute create rule\r\n\t\t\t\t \tString create_args[] = {\"c\", pname, cname, ptype, ctype, aname, \"bCMS\", \"Model\", \"anyname\", a_mode};\r\n\t\t\t\t \t//genRule.main(create_args);\r\n\t\t\t\t \t// Process the rule\r\n\t\t\t\t \tprocessRule(mode, cname, ctype, \"_F\" + i);\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t }\r\n\t\t}\r\n\r\n\t\treturn 0;\r\n\t}", "public int consolidate (RuleList closedList, RuleMap rMap) {\n \n int steps = 0;\n boolean insert;\n // IF THE RULESET IS ALREADY COMPLETE, NO NEED TO FIND RULES\n if (this.totalProb < 0.999) {\n //System.out.println(\"Incomplete RuleSet : \" ); this.printRules();\n for (int l = 0 ; l < this.references.size(); l++) {\n RuleList r = closedList.getRuleByID(this.references.get(l)).getSameRuleSetRules(sList, closedList, rMap);\n\n for (int i = 0; i < r.size(); i++) {\n\n insert = true;\n // CHECK FOR MATCHES\n for (int h = 0; h < this.references.size(); h++) {\n if ( r.getRule(i).ruleMatch_exact(closedList.getRuleByID(this.references.get(h)))) {\n insert = false;\n }\n } \n if (insert) { \n r.getRule(i).prec_occurrencies = closedList.getRuleByID(this.references.get(0)).prec_occurrencies;\n closedList.addRule(r.getRule(i));\n this.references.add(r.getRule(i).id);\n this.totalProb = this.totalProb + r.getRule(i).getProb();\n this.totalProb = Math.round(this.totalProb * 1000);\n this.totalProb = this.totalProb/1000;\n\n steps++;\n }\n }\n }\n\n }\n \n return steps;\n }", "public Vector<Rule> learn(Vector<Rule> knowledgebase, Commitment selectedCommitment)\n {\n Situation situation3movementsAgo;\n Commitment firstCommitment;\n Commitment secondCommitment;\n Commitment lastCommitment;\n Commitment newCommitment;\n Condition newCondition;\n String predicate;\n Vector<Condition> conditions;\n Vector<Commitment> commitments;\n StringTokenizer tokenizer;\n String predicateHead;\n int i,j;\n int x, y;\n int x1,x2,x3;\n int y1,y2, y3;\n String direction1, direction2, direction3;\n Rule newRule;\n boolean found;\n boolean ruleAlreadyExists;\n String milestoneID;\n //-------------------------------\n\n if(Blackboard.history.size()>3)\n {\n situation3movementsAgo = Blackboard.history.get(Blackboard.history.size()-4);\n milestoneID = getMilestoneId();\n if(!milestoneID.equals(\"ninguna\"))\n {\n firstCommitment = Blackboard.history.get(Blackboard.history.size()-3).cause;\n secondCommitment = Blackboard.history.get(Blackboard.history.size()-2).cause;\n lastCommitment = selectedCommitment;\n conditions = new Vector<Condition>();\n\n // checa si hay que poner un predicado primero\n // referente a una milestone\n predicate = newRuleFirstCondition(situation3movementsAgo);\n\n if(!predicate.equals(\"ninguno\"))\n {\n // condicion de una milestone\n newCondition = new Condition(predicate);\n conditions.add(newCondition);\n }//end if\n\n if(predicate.equals(\"ninguno\"))\n {\n i= 0;\n while(i < 5)\n {\n x=getXOfAToken(situation3movementsAgo, i);\n y=getYOfAToken(situation3movementsAgo, i);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + i + \")\");\n conditions.add(newCondition);\n i = i + 1;\n }//end while\n }//end if\n else\n {\n if(predicate.equals(\"primeraLineaLista\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n i= 5;\n while(i < 9)\n {\n x=getXOfAToken(situation3movementsAgo, i);\n y=getYOfAToken(situation3movementsAgo, i);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + i + \")\");\n conditions.add(newCondition);\n i = i + 1;\n }//end while\n }//end if\n else\n {\n if(predicate.equals(\"dosLineasListas\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n\n x=getXOfAToken(situation3movementsAgo, 9);\n y=getYOfAToken(situation3movementsAgo, 9);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 9 + \")\");\n conditions.add(newCondition);\n\n x=getXOfAToken(situation3movementsAgo, 13);\n y=getYOfAToken(situation3movementsAgo, 13);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 13 + \")\");\n conditions.add(newCondition);\n\n }//end if\n else\n {\n if(predicate.equals(\"dosLineasYColumna\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 10);\n y=getYOfAToken(situation3movementsAgo, 10);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 10 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 11);\n y=getYOfAToken(situation3movementsAgo, 11);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 11 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 12);\n y=getYOfAToken(situation3movementsAgo, 12);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 12 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 14);\n y=getYOfAToken(situation3movementsAgo, 14);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 14 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 15);\n y=getYOfAToken(situation3movementsAgo, 15);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 15 + \")\");\n conditions.add(newCondition);\n\n\n }//end if\n }//end else\n }//end else\n }//end else\n\n\n // now constructs the rule conclusion\n // as a sequence of moves\n predicate = firstCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x1 = Integer.valueOf(tokenizer.nextToken());\n y1 = Integer.valueOf(tokenizer.nextToken());\n direction1 = tokenizer.nextToken();\n\n predicate = secondCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x2 = Integer.valueOf(tokenizer.nextToken());\n y2 = Integer.valueOf(tokenizer.nextToken());\n direction2 = tokenizer.nextToken();\n\n predicate = lastCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x3 = Integer.valueOf(tokenizer.nextToken());\n y3 = Integer.valueOf(tokenizer.nextToken());\n direction3 = tokenizer.nextToken();\n\n predicate = \"secuencia(\"+\n x1 + \",\" + y1 + \",\" + direction1 + \",\"+\n x2 + \",\" + y2 + \",\" + direction2 + \",\"+\n x3 + \",\" + y3 + \",\" + direction3 + \")\";\n newCommitment = new Commitment(predicate);\n commitments = new Vector<Commitment>();\n commitments.add(newCommitment);\n\n // includes the new rule into the knowledge base\n newRule = new Rule(knowledgeBase.size(), conditions, commitments);\n ruleAlreadyExists = false;\n i = 0;\n while(i < knowledgeBase.size())\n {\n if(knowledgeBase.get(i).equals(newRule))\n {\n ruleAlreadyExists = true;\n break;\n }//end if\n i = i + 1;\n }//end while\n if(!ruleAlreadyExists)\n {\n knowledgeBase.add(newRule);\n }//end if\n }//end if\n }//end if\n return knowledgeBase;\n }", "public Rule chooseRandomRule () {\n \n double a = Math.random();\n \n double c = 0.0;\n \n for (int i = 0; i < this.size(); i++) {\n \n c = c + this.getRule(i).getProb();\n \n if (c > a) {\n \n return this.getRule(i);\n }\n }\n \n return this.getRule(this.size()-1);\n \n }", "protected IGrid applyRules(IRuleset ruleset, IGrid nextGeneration) {\n\t\tfor(int col = 0; col < this.gridConfiguration.getCols(); col++) {\n\t\t\tfor(int row = 0; row < this.gridConfiguration.getRows(); row++) {\n\t\t\t\tnextGeneration.setState(col, row, ruleset.getNextGenerationState(\n\t\t\t\t\t\tthis.getState(col, row),\n\t\t\t\t\t\tthis.getGridConfiguration().getNeighborhood().countNeighborsAlive(col, row, this),\n\t\t\t\t\t\tthis.getGridConfiguration().getNeighborhood().getNeighbors().size()));\n\t\t\t}\n\t\t}\n\n\t\treturn nextGeneration;\n\t}", "public static void genRule(final PLFormula psi, final RuleSet rules) {\n\t\tPLFormula[] children = ((OR) psi).getChildren();\n\t\tAND and = (AND) children[(int) (Math.random() * children.length)];\n\t\tArrayList<Integer> left = new ArrayList<>();\n\t\tleft.addAll(and.asLitSet());\n\t\tdouble changes = (left.size() / 2) - 4 + Math.random() * 3;\n\t\t\n\t\tfor(int c = 0; c < changes || left.size() > 4; c++) {\n\t\t\tif(left.size() > 1)\n\t\t\t\tleft.remove((int) (Math.random() * left.size()));\n\t\t}\n\t\t\n\t\tLitSet right = new LitSet(li);\n\t\tright.addAll(left);\n\t\tchanges = 1 + Math.random() * (left.size() * 0.9);\n\t\tInteger definitive_removal = 0;\n\t\t\n\t\tfor(int c = 0; c < changes; c++) {\n\t\t\tif(right.size() > 0) {\n\t\t\t\tdefinitive_removal = left.get((int) (Math.random() * left.size()));\n\t\t\t\tright.remove(definitive_removal);\n\t\t\t}\n\t\t}\n\t\t\n\t\tchanges = 1 + Math.random() * (right.size() / 2);\n\t\t\n\t\tfor(int c = 0; c < changes; c++) {\n\t\t\tInteger literal = (int) (Math.random() * li.getVarCount());\n\t\t\t\n\t\t\twhile(literal == definitive_removal || literal == 0 || literal == 1 || literal == -1) {\n\t\t\t\tliteral = (int) (Math.random() * li.getVarCount());\n\t\t\t}\n\t\t\t\n\t\t\tif(!right.contains(literal)) {\n\t\t\t\tright.add(literal);\n\t\t\t}\n\t\t}\n\t\t\n\t\tLitSet ls_left = new LitSet(li);\n\t\tLitSet ls_right = new LitSet(li);\n\t\tLitSet ls_context = new LitSet(li);\n\t\tls_left.addAll(left);\n\t\tls_right.addAll(right);\n\t\t\n\t\tfor(Integer l : ls_right) {\n\t\t\tif(ls_left.contains(l)) {\n\t\t\t\tls_context.add(l);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Integer l : ls_context) {\n\t\t\tls_left.remove(l);\n\t\t\tls_right.remove(l);\n\t\t}\n\t\t\n\t\trules.addRule(new AND(li, ls_context), new AND(li, ls_left), new AND(li, ls_right), RULE_COSTS);\n\t}", "public Vector<Rule> StemBase(){\r\n\t\t//Vector <Rule> rule=new Vector <Rule>();\r\n\t\tConceptLattice cp=new ConceptLattice(context);\r\n\t\tApproximationSimple ap=new ApproximationSimple(cp);\r\n\r\n\t\tBasicSet A=new BasicSet();\r\n\t\tBasicSet cnt=new BasicSet();\r\n\t\tBasicSet b=new BasicSet();\r\n\t\tcnt.addAll(context.getAttributes());\r\n\t\twhile(!A.equals(cnt)){\r\n\r\n\t\t\tif(A.isEmpty()){\r\n\t\t\t\tb =ap.CalculYsecondeNull(A, context);\r\n\t\t\t}else{\r\n\t\t\t\tb=ap.CalculYseconde(A, context);\r\n\t\t\t}\r\n\t\t\tif(!A.equals(b)){\r\n\t\t\t\tBasicSet diff=b.difference(A);\r\n\t\t\t\tBasicSet ant=(BasicSet) A.clone();\r\n\t\t\t\tdouble lift = 1;\r\n\t\t\t\tdouble confidence = 1;\r\n\t\t\t\tRule r=new Rule(ant,diff,context.support(ant.clone().union(diff)), confidence, lift );\r\n\t\t\t\t//int i=0;\r\n\t\t\t\tgetImp().add( r);\t\t\t\t\r\n\t\t\t}\r\n\t\t\tA=this.NextLClosure(cnt, A);\r\n\t\t}\r\n\r\n\t\treturn getImp();\r\n\r\n\t}", "public void add_rule(Rule rule) throws Exception;", "ExprRule createExprRule();", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "public String newRuleFirstCondition(Situation threeSituationsAgo)\n {\n String firstPredicate;\n //---------------\n firstPredicate = \"ninguno\";\n\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4) &&\n (threeSituationsAgo.puzzle[1][0] == 5) &&\n (threeSituationsAgo.puzzle[1][1] == 6) &&\n (threeSituationsAgo.puzzle[1][2] == 7) &&\n (threeSituationsAgo.puzzle[1][3] == 8) &&\n (threeSituationsAgo.puzzle[2][0] == 9) &&\n (threeSituationsAgo.puzzle[3][0] == 13)\n )\n {\n firstPredicate = \"dosLineasYColumna\";\n }//end if\n else\n {\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4) &&\n (threeSituationsAgo.puzzle[1][0] == 5) &&\n (threeSituationsAgo.puzzle[1][1] == 6) &&\n (threeSituationsAgo.puzzle[1][2] == 7) &&\n (threeSituationsAgo.puzzle[1][3] == 8)\n )\n {\n firstPredicate = \"dosLineasListas\";\n }//end if\n else\n {\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4)\n )\n {\n firstPredicate = \"primeraLineaLista\";\n }//end if\n }//end else\n }//end else\n\n return firstPredicate;\n }", "RuleCatalog createRuleCatalog();", "Rule getRule();", "@Test\r\n public void testAddRule() throws Exception{\r\n System.out.println(\"addRule\");\r\n RuleSetImpl instance = new RuleSetImpl(\"Test\", true);\r\n instance.addRule(new RegExRule(\".*\", \"string\"));\r\n instance.addRule(new RegExRule(\"a.*\", \"aString\"));\r\n List<Rule> rules = instance.getRules();\r\n assertTrue(rules.size()==2);\r\n }", "private void getTimeConditions(List<RuleInstance> rules,Set<Condition> conds)\n{\n for (RuleInstance ri : rules) {\n getTimeConditions(ri,rules,conds);\n }\n}", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n public static void main(String[] args) throws ConfigurationException,\n RuleExecutionSetCreateException, IOException,\n RuleSessionTypeUnsupportedException, RuleSessionCreateException,\n RuleExecutionSetNotFoundException, InvalidRuleSessionException,\n ClassNotFoundException, RuleExecutionSetRegisterException {\n\n String ruleEngineServiceUri = UriConstants.RULE_ENGINE_SERVICE_URI;\n\n Class.forName(UriConstants.RULE_SERVICE_PROVIDER_CLASS_NAME);\n\n RuleServiceProvider serviceProvider = RuleServiceProviderManager\n .getRuleServiceProvider(ruleEngineServiceUri);\n\n RuleAdministrator ruleAdministrator = serviceProvider\n .getRuleAdministrator();\n\n RuleEngineLog.debug(ruleAdministrator.toString());\n\n Map params = null;\n // InputStream stream = null;\n\n String bindUri = null;\n\n LogisticsRule logisticsRule = buildLogisticsRule();\n\n FlavorRule flavorRule = buildFlavorRule();\n\n RuleSet ruleSet = new RuleSet(\"multi-logisitic--ruleset\");\n\n ruleSet.addRule(logisticsRule);\n ruleSet.addRule(flavorRule);\n // ruleSet.add(logisticsRule1);\n\n RuleExecutionSet ruleExecutionSet = ruleAdministrator\n .getLocalRuleExecutionSetProvider(params).createRuleExecutionSet(\n ruleSet, null);\n\n bindUri = ruleExecutionSet.getName();\n\n ruleAdministrator.registerRuleExecutionSet(bindUri, ruleExecutionSet, null);\n\n RuleEngineLog.debug(ruleExecutionSet);\n //\n RuleRuntime ruleRunTime = serviceProvider.getRuleRuntime();\n\n StatelessRuleSession srs = (StatelessRuleSession) ruleRunTime\n .createRuleSession(bindUri, params, RuleRuntime.STATELESS_SESSION_TYPE);\n\n List inputList = new LinkedList();\n\n String productReview1 = \"一直在你们家购买,感觉奶粉是保真的。就是发货速度稍微再快一些就好了。先谢谢了\";\n\n String productReview2 = \"说什么原装进口的 但是和我原本进口的奶粉还是有区别 奶很甜 宝宝吃了这个奶粉后胃口很差 都不爱吃其他东西 本来每天定时有吃两顿饭的 现在吃了这个奶粉后 饭也不要吃了 现在一个没有开 另一罐开了放着没有喝\";\n\n ProductReview pr1 = new ProductReview(\"uid1\", productReview1);\n\n ProductReview pr2 = new ProductReview(\"uid2\", productReview2);\n\n inputList.add(pr1);\n inputList.add(pr2);\n\n // inputList.add(new String(\"Bar\"));\n // inputList.add(new Integer(5));\n // inputList.add(new Float(6));\n List resultList = srs.executeRules(inputList);\n\n // release the session\n srs.release();\n\n // System.out.println(\"executeRules: \" + resultList);\n for (Object o : resultList) {\n System.out.println(o);\n }\n\n }", "RequireExprsRule createRequireExprsRule();", "public TypeCheckerProofRule getRule ( ) ;", "ExprListRule createExprListRule();", "java.lang.String getRule();", "TRule createTRule();", "public Taboo(List<T> rules) {\n\t\trule = new HashMap<>();\n\t\tfor(int i = 0; i < rules.size() - 1; i++) {\n\t\t\tif(rules.get(i) == null || rules.get(i+1) == null) continue;\n\t\t\tint hash = rules.get(i).hashCode();\n\t\t\tif(rule.containsKey(hash)) {\n\t\t\t\trule.get(hash).add(rules.get(i+1));\n\t\t\t}else {\n\t\t\t\tSet<T> val = new HashSet<>();\n\t\t\t\tval.add(rules.get(i+1));\n\t\t\t\trule.put(hash, val); \t\n\t\t\t}\n\t\t}\n\t}", "IdListRule createIdListRule();", "private void createQoSRules() {\n JsonObject settings = new JsonObject();\n JsonObject config = new JsonObject();\n JsonObject sentinels = new JsonObject();\n JsonObject rules = new JsonObject();\n\n // config\n config.put(\"percentile\", 75);\n config.put(\"quorum\", 40);\n config.put(\"period\", 3);\n config.put(\"minSampleCount\", 1000);\n config.put(\"minSentinelCount\", 5);\n settings.put(\"config\", config);\n\n // sentinels\n JsonObject sentinel1 = new JsonObject();\n sentinel1.put(\"percentile\", 50);\n JsonObject sentinel2 = new JsonObject();\n JsonObject sentinel3 = new JsonObject();\n JsonObject sentinel4 = new JsonObject();\n JsonObject sentinel5 = new JsonObject();\n sentinels.put(\"sentinelA\", sentinel1);\n sentinels.put(\"sentinelB\", sentinel2);\n sentinels.put(\"sentinelC\", sentinel3);\n sentinels.put(\"sentinelD\", sentinel4);\n sentinels.put(\"sentinelE\", sentinel5);\n settings.put(\"sentinels\", sentinels);\n\n // rules\n JsonObject rule1 = new JsonObject();\n rule1.put(\"reject\", 1.3);\n rule1.put(\"warn\", 1.1);\n rules.put(\"/playground/myapi1/v1/.*\", rule1);\n\n JsonObject rule2 = new JsonObject();\n rule2.put(\"reject\", 1.7);\n rules.put(\"/playground/myapi2/v1/.*\", rule2);\n\n settings.put(\"rules\", rules);\n\n // PUT the QoS rules\n given().body(settings.toString()).put(\"server/admin/v1/qos\").then().assertThat().statusCode(200);\n }", "public void printRules_RVLR () {\n \n System.out.println(\"PRINTING RULESET ID : \" + this.id + \" (\" + this.size() + \") entries.\");\n for (int i = 0; i < this.size(); i++) {\n \n System.out.println(\"Rule \" + (i+1) + \" (ID \" + references.get(i) + \") : \" + this.rulelist.getRuleByID(references.get(i)) + \" Prob : \" + this.rulelist.getRuleByID(references.get(i)).getProb() + \" TIMES \" + this.rulelist.getRuleByID(references.get(i)).occurrencies + \" PREC \" + this.rulelist.getRuleByID(references.get(i)).prec_occurrencies + \" Value : \" + this.rulelist.getRuleByID(references.get(i)).get_RVRL());\n }\n System.out.println(\"Total Prob : \" + this.totalProb);\n //System.out.println(\"Precedences : \" + this.precedences);\n }", "private static void applyRules(Instances itemsets, Instances predictions) {\n\t\tfor (int i=0; i<predictions.numInstances(); ++i) {\n\t\t\tInstance instance = predictions.instance(i);\n\t\t\tboolean covered = true;\n\t\t\tfor (int j= 0; j<itemsets.numInstances(); ++j) {\n\t\t\t\tInstance rule = itemsets.instance(j);\n\t\t\t\tcovered = true;\n\t\t\t\tfor (int k=0; k< itemsets.numAttributes() -1 ; ++k) {\n\t\t\t\t\tif (rule.value(k)==1) {\n\t\t\t\t\t\tcovered = instance.value(k)==1;\n\t\t\t\t\t\tif(!covered){\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\t\n\t\t\t\t}\n\t\t\t\tif (covered) {\n\t\t\t\t\t\n\t\t\t\t\tinstance.setClassValue(rule.classValue());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static ArrayList<Rule> getRulesFromItemset(ArrayList<String> itemSet, DataSet dataSet, double minConfidence) {\n\t\tArrayList<Rule> rules = new ArrayList<Rule>();\n\t\t\n\t\tArrayList<ArrayList<String>> subsets = allSubsets(itemSet);\n\t\t\n\t\tfor(ArrayList<String> subset : subsets) {\n\t\t\tRule r = new Rule();\n\t\t\tr.LHS = subset;\n\t\t\tr.RHS = complement(itemSet, subset);\n\t\t\t\n\t\t\tArrayList<String> allItems = new ArrayList<String>();\n\t\t\tallItems.addAll(r.LHS);\n\t\t\tallItems.addAll(r.RHS);\n\t\t\tr.supportFound = dataSet.findSupport(allItems);\n\t\t\tr.confidenceFound = dataSet.findConfidence(r);\n\t\t\t\n\t\t\tif(r.confidenceFound >= minConfidence) {\n\t\t\t\trules.add(r);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn rules;\n\t}", "public static List<ExtendRule> removeRedundantExtendedRules_transactionBased(List<ExtendRule> rules) {\n LOGGER.info(\"STARTED removeRedundantExtendedRules - transaction based\");\n LOGGER.info(\"Rules on start:\" + rules.size());\n ExtendRule defRule = rules.get(rules.size()-1);\n if (defRule.getAntecedent().getItems().size()>0)\n {\n LOGGER.warning(\"Default rule is not last rule. Returning null. Last rule:\" + defRule.toString() );\n \n return null;\n }\n Consequent defClass = defRule.getConsequent(); \n for (Iterator<ExtendRule> it = rules.iterator(); it.hasNext();) { \n ExtendRule PRCandidate = it.next();\n // PRCandidate = go through all rules with default class in the consequent\n if (!PRCandidate.getConsequent().toString().equals(defClass.toString()))\n {\n\n }\n // skip default rule\n else if (PRCandidate.equals(defRule))\n {\n \n } \n else{\n Set<Transaction> suppTran = PRCandidate.getAntecedent().getSupportingTransactions();\n // get transactions only CORRECTLY classified by the candidate rule\n Set<Transaction> consTran = PRCandidate.getConsequent().getSupportingTransactions();\n suppTran.retainAll(consTran);\n\n // Check if transactions correctly classified by pruning candidate intersect with transactions covered by those rules below prunCand in the rule list that assign to different than default class. If there are no such transactions PRCandidate can be removed\n boolean nonEmptyIntersection=false;\n boolean positionBelowPRCand = false;\n for (Iterator<ExtendRule> innerIt = rules.iterator(); innerIt.hasNext();) {\n ExtendRule candidateClash = innerIt.next();\n // candidateClash is PRCandidate, which would always evaluate to overlap!\n if (candidateClash.equals(PRCandidate))\n {\n positionBelowPRCand = true;\n continue;\n }\n if (!positionBelowPRCand) continue;\n // candidateClash = go through all rules with OTHER than default class in consequent \n if (candidateClash.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n\n // check if transactions covered by PRCandidate intersect with transactions covered by candidateClash \n\n for (Transaction t : candidateClash.getAntecedent().getSupportingTransactions())\n {\n\n if (suppTran.contains(t))\n {\n nonEmptyIntersection=true;\n }\n break;\n } \n if (nonEmptyIntersection)\n {\n //go to next PRCandidate \n break;\n } \n }\n if (nonEmptyIntersection == false)\n {\n //no other rule with different consequent covering at least one shared transaction was found\n //this rule can be removed\n LOGGER.fine(\"Removing rule:\" + PRCandidate.toString());\n it.remove();\n } \n }\n \n }\n LOGGER.info(\"Rules on finish:\" + rules.size());\n LOGGER.info(\"FINISHED removeRedundantExtendedRules - transaction based\");\n return rules;\n }", "private Formula (Clause c, ImList<Clause> r) {\n\t\t//System.out.println(\"Test1\"+r.toString());\n\t\t//System.out.println(\"Test1\"+c);\n\t\tclauses=r.add(c);\n\t\t//System.out.println(\"Test2\"+clauses.toString());\n\t\tcheckRep();\n\t}", "public void printRules () {\n \n System.out.println(\"PRINTING RULESET ID : \" + this.id + \" (\" + this.size() + \") entries.\");\n for (int i = 0; i < this.size(); i++) {\n \n System.out.println(\"Rule \" + (i+1) + \" (ID \" + references.get(i) + \") : \" + this.rulelist.getRuleByID(references.get(i)) + \" Prob : \" + this.rulelist.getRuleByID(references.get(i)).getProb() + \" TIMES \" + this.rulelist.getRuleByID(references.get(i)).occurrencies + \" PREC \" + this.rulelist.getRuleByID(references.get(i)).prec_occurrencies);\n }\n System.out.println(\"Total Prob : \" + this.totalProb);\n System.out.println(\"Precedences : \" + this.precedences);\n }", "public void InstantiateAllRelevantsInRule (Rule rule, boolean forIntersection, boolean online)\n\t{\n\t\t//List<Rule> instRuleVector = new CopyOnWriteArrayList<Rule>();\n\t\tSet<Rule> instRuleVector = Collections.newSetFromMap(new ConcurrentHashMap<Rule, Boolean>());\n\t\t//long startTime = System.currentTimeMillis();\n\t\tif (false == forIntersection && false == rule.isFullyInst()) \n\t\t{\n\t\t\tfor (Atom bodyAtom : rule.getBody().getAtoms()) \n\t\t\t{\n\t\t\t\tfor (Atom instAtom : this.addedInstAtomsInLastIteration) \n\t\t\t\t{\n\t\t\t\t\tif (instAtom.getName().equals(bodyAtom.getName()))\n\t\t\t\t\t{\n\t\t\t\t\t\tAtom copyOfinstAtom = new Atom (instAtom);\n\t\t\t\t\t\tRule temp = new Rule (rule);\n\t\t\t\t\t\ttemp.SwapToInstAtomAndPartiallyInst(bodyAtom, copyOfinstAtom);\n\t\t\t\t\t\tif (true == temp.getIsFullyInst())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Provenance.getInstance().AddRuleToProv(temp, this.level);\n\t\t\t\t\t\t\t//KeyMap.getInstance().UpdateRule(temp);\n\t\t\t\t\t\t\ttemp.getBody().setRuleUsed(rule);//added for the top-k\n\t\t\t\t\t\t\ttemp.getHead().setRuleUsed(rule);\n\t\t\t\t\t\t\t//for top-1!\n\t\t\t\t\t\t\tif (false == online) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t/*KeyMap.getInstance().UpdateFactBody(temp.getBody());\n\t\t\t\t\t\t\t\tBody pointerBody = KeyMap.getInstance().GetPointerBodyForTop1(temp.getBody());\n\t\t\t\t\t\t\t\tif (true == pointerBody.LegalDerivation())\n\t\t\t\t\t\t\t\t{*/\n\t\t\t\t\t\t\t\tKeyMap.getInstance().Update(temp.getHead());\n\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\t//AtomsDerived.getInstance().Update(temp.getHead());\n\t\t\t\t\t\t\t\tProvenance.getInstance().AddRuleToProv(temp, this.level);\n\t\t\t\t\t\t\t\t//addedFullProv.add(KeyMap.getInstance().Get(temp.getHead()));\n\t\t\t\t\t\t\t\t//System.out.println(temp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tHandleTop1Scenario(temp, online);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\telse //if (false == online || temp.getRestricted() == null || false == temp.getBody().Uninstantiatated())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinstRuleVector.add(temp);\n\t\t\t\t\t\t\t//DeriveRule(temp, online);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (true == this.addedInstAtomsInLastIteration.isEmpty() || false == instRuleVector.isEmpty())\n\t\t\t{\n\t\t\t\tDeriveByRuleBottomUp ruleDeriver = new DeriveByRuleBottomUp(rule, this.p, this.topk, this.treesWaiting, this.previouslyFoundRelevants);\n\t\t\t\truleDeriver.FindDerivationsForRuleBottomUp(instRuleVector, forIntersection, level);\n\t\t\t}\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\tif (false == online || true == rule.getBody().AllAtomsInDb()) \n\t\t\t{\n\t\t\t\trule.getHead().setRuleUsed(rule);\n\t\t\t\trule.getBody().setRuleUsed(rule);//added for the top-k\n\t\t\t\tProvenance.getInstance().AddRuleToProv(rule, this.level);\n\t\t\t\t//for top-1!\n\t\t\t\tif (false == online) KeyMap.getInstance().Update(rule.getHead());\n\t\t\t\telse HandleTop1Scenario(rule, online);\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*long endTime = System.currentTimeMillis();\n\t\tif ((endTime-startTime) > 200)\n\t\t{\n\t\t\tSystem.out.println(\"DeriveByProgramBottomUp::InstantiateAllRelevantsInRule:: iteration time: \" + (endTime-startTime));\n\t\t\tSystem.out.println(\"DeriveByProgramBottomUp::InstantiateAllRelevantsInRule:: rule derived: \" + rule);\n\t\t\tSystem.out.println(\"DeriveByProgramBottomUp::InstantiateAllRelevantsInRule:: num of atoms last iter: \" + this.addedInstAtomsInLastIteration.size());\n\t\t}*/\n\t}", "protected Map<String, Object> initRuleset(long tm, Map ph, long[] ruleInfo){\n Object o;\n Map<String, Object> rule;\n Iterator iter;\n List list;\n String key, str, ruleName, preferredOutName;\n long[] outInfo;\n int i, k, n, id;\n\n if (ph == null || ph.size() <= 0)\n throw(new IllegalArgumentException(\"Empty property for a rule\"));\n if (ruleInfo == null || ruleInfo.length <= RULE_TIME)\n throw(new IllegalArgumentException(\"ruleInfo is not well defined\"));\n ruleName = (String) ph.get(\"Name\");\n if (ruleName == null || ruleName.length() == 0)\n throw(new IllegalArgumentException(\"ruleName is not defined\"));\n\n rule = new HashMap<String, Object>();\n rule.put(\"Name\", ruleName);\n preferredOutName = (String) ph.get(\"PreferredOutLink\");\n if(preferredOutName !=null && (i=assetList.getID(preferredOutName))<=0){\n preferredOutName = assetList.getKey(outLinkMap[NOHIT_OUT]);\n new Event(Event.WARNING, name + \": OutLink for \" +\n ruleName + \" not well defined, use the default: \"+\n preferredOutName).send();\n }\n\n rule.put(\"Filter\", new MessageFilter(ph));\n if ((o = rule.get(\"Filter\")) == null)\n throw(new IllegalArgumentException(ruleName +\n \": Filter is not well defined\"));\n\n for (i=0; i<=RULE_TIME; i++)\n ruleInfo[i] = 0;\n\n ruleInfo[RULE_STATUS] = NODE_RUNNING;\n ruleInfo[RULE_TIME] = tm;\n\n // store TimeToLive into RULE_TTL field\n if ((o = ph.get(\"TimeToLive\")) != null && o instanceof String)\n ruleInfo[RULE_TTL] = 1000 * Integer.parseInt((String) o);\n else\n ruleInfo[RULE_TTL] = 0;\n\n // store Heartbeat into RULE_MODE field\n if ((o = ph.get(\"Heartbeat\")) != null && o instanceof String)\n ruleInfo[RULE_MODE] = 1000 * Integer.parseInt((String) o);\n else\n ruleInfo[RULE_MODE] = defaultHeartbeat;\n\n if ((o = ph.get(\"DisplayMask\")) != null && o instanceof String) {\n ruleInfo[RULE_DMASK] = Integer.parseInt((String) o);\n rule.put(\"DisplayMask\", o);\n }\n else\n ruleInfo[RULE_DMASK] = 0;\n\n if (preferredOutName != null) {\n ruleInfo[RULE_PID] = TYPE_BYPASS;\n ruleInfo[RULE_OID] = assetList.getID(preferredOutName);\n }\n else if ((o = ph.get(\"Monitor\")) != null && o instanceof Map) {\n str = \"<Monitor>\" + JSON2Map.toXML((Map) o) +\n \"</Monitor>\";\n rule.put(\"Template\", new Template(str));\n // store on-wait Option into RULE_OPTION field\n if ((o = ph.get(\"Option\")) != null)\n ruleInfo[RULE_OPTION] = Integer.parseInt((String) o);\n // store Capacity into RULE_EXTRA field\n if ((o = ph.get(\"Capacity\")) != null)\n ruleInfo[RULE_EXTRA] = Integer.parseInt((String) o);\n else\n ruleInfo[RULE_EXTRA] = 64;\n // store MaxRetry into RULE_GID field\n if ((o = ph.get(\"MaxRetry\")) != null)\n ruleInfo[RULE_GID] = Integer.parseInt((String) o);\n else\n ruleInfo[RULE_GID] = 2;\n rule.put(\"TaskList\", new AssetList(ruleName,\n (int) ruleInfo[RULE_EXTRA]));\n\n if (ph.containsKey(\"EventPattern\"))\n rule.put(\"Selector\", new EventSelector(ph));\n ruleInfo[RULE_PID] = TYPE_ACTION;\n ruleInfo[RULE_OID] = outLinkMap[POOL_OUT];\n }\n else {\n ruleInfo[RULE_PID] = TYPE_BYPASS;\n ruleInfo[RULE_OID] = outLinkMap[NOHIT_OUT];\n }\n outInfo = assetList.getMetaData((int) ruleInfo[RULE_OID]);\n outInfo[OUT_NRULE] ++;\n outInfo[OUT_ORULE] ++;\n\n // copy selected properties\n if ((o = ph.get(\"StringProperty\")) != null && o instanceof Map) {\n iter = ((Map) o).keySet().iterator();\n k = ((Map) o).size();\n String[] pn = new String[k];\n k = 0;\n while (iter.hasNext()) {\n key = (String) iter.next();\n if ((pn[k] = MessageUtils.getPropertyID(key)) == null)\n pn[k] = key;\n k ++;\n }\n rule.put(\"PropertyName\", pn);\n }\n else { // copy all properties\n rule.put(\"PropertyName\", new String[0]);\n }\n\n return rule;\n }", "Restriction generate(ValueStoreReader entityInstReader, String rule) throws UnifyException;", "@Override\n public StreamRule<ItemCollection> defineRule() {\n return s -> s.peek(p -> {\n if (p.getPrecio() > ((Integer) this.getParameters().get(\"precio\")).intValue()) {\n p.setPrecio(DiscountedPriceRule.PRICE_99);\n }\n });\n }", "CmdRule createCmdRule();", "public interface RuleAlgorithm {\n\n /**\n * init\n *\n * @param\n */\n void init();\n\n /**\n * return sharding nodes's id\n * columnValue is column's value\n * @return never null\n */\n Integer calculate(String columnValue);\n\n Integer[] calculateRange(String beginValue,String endValue);\n}", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "protected void addRule(BinaryRule rule) {\n\t\tif (rule.getPurity() >= mMinimumPurity)\n\t\t\tthis.mBinaryRules.add(rule);\n\t}", "private Set<Condition> getConditions(List<RuleInstance> rules)\n{\n Set<Condition> conds = new HashSet<Condition>();\n\n getTimeConditions(rules,conds);\n getSensorConditions(rules,conds);\n getCalendarConditions(rules,conds);\n\n return null;\n}", "public SesToolDatabaseJobPropertyruleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "ExchangePlanSelectionRule createExchangePlanSelectionRule();", "public List<Rule> defaultRuleList(TacticTypeEnum tacticType) {\n List<Rule> ruleList = new ArrayList<>();\n List<RangeCondition> rangeConditions = rangeConditionTemplate.conditionsFromBaseAndIntervalWithMaxValue(0, 10,\n 4, 10, ConditionUnitEnum.PERCENT);\n Collections.reverse(rangeConditions);\n List<Operation> operations = operationTemplate.operationsFromBaseAndInterval(1000, 200, 10, 2,\n TradeUnitEnum.YUAN);\n operations.add(operationTemplate.ignore());\n operations.add(operationTemplate.sell30Pct());\n operations.add(operationTemplate.sellAll());\n operations.sort(Comparators.OPERATION_TRADE_VALUE_COMPARATOR);\n for (int i = 0; i < rangeConditions.size(); i++) {\n ruleList.add(of(tacticType, rangeConditions.get(i), null, operations.get(i)));\n }\n return ruleList;\n }", "GoalSpecification createGoalSpecification();", "private void createRules(List<PatternToken> elemList,\n List<PatternToken> tmpPatternTokens, int numElement) {\n String shortMessage = \"\";\n if (this.shortMessage != null && this.shortMessage.length() > 0) {\n shortMessage = this.shortMessage.toString();\n } else if (shortMessageForRuleGroup != null && shortMessageForRuleGroup.length() > 0) {\n shortMessage = this.shortMessageForRuleGroup.toString();\n }\n if (numElement >= elemList.size()) {\n AbstractPatternRule rule;\n if (tmpPatternTokens.size() > 0) {\n rule = new PatternRule(id, language, tmpPatternTokens, name,\n message.toString(), shortMessage,\n suggestionsOutMsg.toString(), phrasePatternTokens.size() > 1, interpretPosTagsPreDisambiguation);\n rule.addTags(ruleTags);\n rule.addTags(ruleGroupTags);\n rule.addTags(categoryTags);\n rule.setSourceFile(sourceFile);\n } else if (regex.length() > 0) {\n int flags = regexCaseSensitive ? 0 : Pattern.CASE_INSENSITIVE|Pattern.UNICODE_CASE;\n String regexStr = regex.toString();\n if (regexMode == RegexpMode.SMART) {\n // Note: it's not that easy to add \\b because the regex might look like '(foo)' or '\\d' so we cannot just look at the last character\n regexStr = replaceSpacesInRegex(regexStr);\n }\n if (ruleAntiPatterns.size() > 0 || rulegroupAntiPatterns.size() > 0) {\n throw new RuntimeException(\"<regexp> rules currently cannot be used together with <antipattern>. Rule id: \" + id + \"[\" + subId + \"]\");\n }\n rule = new RegexPatternRule(id, name, message.toString(), shortMessage, suggestionsOutMsg.toString(), language, Pattern.compile(regexStr, flags), regexpMark);\n rule.setSourceFile(sourceFile);\n } else {\n throw new IllegalStateException(\"Neither '<pattern>' tokens nor '<regex>' is set in rule '\" + id + \"'\");\n }\n setRuleFilter(filterClassName, filterArgs, rule);\n prepareRule(rule);\n rules.add(rule);\n } else {\n PatternToken patternToken = elemList.get(numElement);\n if (patternToken.hasOrGroup()) {\n // When creating a new rule, we finally clear the backed-up variables. All the elements in\n // the OR group should share the values of backed-up variables. That's why these variables\n // are backed-up.\n List<Match> suggestionMatchesBackup = new ArrayList<>(suggestionMatches);\n List<Match> suggestionMatchesOutMsgBackup = new ArrayList<>(suggestionMatchesOutMsg);\n int startPosBackup = startPos;\n int endPosBackup = endPos;\n List<DisambiguationPatternRule> ruleAntiPatternsBackup = new ArrayList<>(ruleAntiPatterns);\n for (PatternToken patternTokenOfOrGroup : patternToken.getOrGroup()) {\n List<PatternToken> tmpElements2 = new ArrayList<>();\n tmpElements2.addAll(tmpPatternTokens);\n tmpElements2.add(ObjectUtils.clone(patternTokenOfOrGroup));\n createRules(elemList, tmpElements2, numElement + 1);\n startPos = startPosBackup;\n endPos = endPosBackup;\n suggestionMatches = suggestionMatchesBackup;\n suggestionMatchesOutMsg = suggestionMatchesOutMsgBackup;\n ruleAntiPatterns.addAll(ruleAntiPatternsBackup);\n }\n }\n tmpPatternTokens.add(ObjectUtils.clone(patternToken));\n createRules(elemList, tmpPatternTokens, numElement + 1);\n }\n }", "PropertyRule createPropertyRule();", "void setRule(Rule rule);", "private PrismRule addRule(PrismRule lastRule, PrismRule newRule) {\n\n if (lastRule == null) {\n m_rules = newRule;\n } else {\n lastRule.m_next = newRule;\n }\n return newRule;\n }", "int getRulesCount();", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "@Test\n public void rulesetIdTest() {\n // TODO: test rulesetId\n }", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "E9Rule createE9Rule();", "void addRuleDefinition(RuleDefinition rd) throws ResultException, DmcValueException, DmcNameClashException {\n \t// Again, some trickiness, we have to resolve the rule so that we can access and use the must/may\n \t// attributes that are defined for it and add them to the class definition we create\n try {\n\t\t\trd.resolveReferences(this,currentResolver);\n\t\t} catch (DmcValueExceptionSet e) {\t\t\t\n\t\t\tResultException ex = new ResultException();\n\t\t\tex.addError(\"Unresolved references in RuleDefinition: \" + rd.getName());\n\t\t\t\n\t\t\tfor(DmcValueException dve : e.getExceptions()){\n\t\t\t\tex.moreMessages(dve.getMessage());\n\t\t\t}\n\t\t\tthrow(ex);\n\t\t}\n \t\n \tDefinitionName ruleClassName = new DefinitionName(rd.getName().getNameString() + \"Data\");\n \t\n if (checkAndAdd(rd.getObjectName(),rd,ruleDefs) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsg(rd.getObjectName(),rd,ruleDefs,\"rule definitions\"));\n \tthrow(ex);\n }\n \n // dot name is current schema.ruledef.RuleDefinition. We want just schema.ruledef\n ruleDefsByDot.put((DotName) rd.getDotName().getParentName(), rd);\n \n if (checkAndAddDOT(rd.getDotName(),rd,globallyUniqueMAP,null) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(rd.getObjectName(),rd,globallyUniqueMAP,\"definition names\"));\n throw(ex);\n }\n\n // We hold on to this because we'll reuse it for the class we craete\n int originalRefDefID = rd.getDmdID();\n \n if (performIDChecks){\n\t // Bump up the DMD ID by the amount of schemaBaseID\n\t int base = rd.getDefinedIn().getSchemaBaseID();\n\t int range = rd.getDefinedIn().getSchemaIDRange();\n\t int current = base + rd.getDmdID();\n\t \n\t if (current > (base+range)){\n\t \tResultException ex = new ResultException(\"Number of rules exceeds schema ID range: \" + rd.getName());\n\t \tex.moreMessages(\"The dmdID must be less than \" + range);\n\t \tex.setLocationInfo(rd.getFile(), rd.getLineNumber());\n\t \tthrow(ex); \t\n\t }\t \t\n\t \n\t rd.setDmdID(base + current);\n }\n \n// ClassDefinition existing = classDefs.get(ruleClassName);\n ClassDefinition existing = classDefinitions.getDefinition(ruleClassName.getNameString());\n if (existing != null){\n \t// We have the class for this rule, just check that it's auto generated\n \tif (existing.getInternallyGenerated()){\n \t\treturn;\n \t}\n \telse{\n \t\t// We have some kind of clash\n \t}\n }\n \n // We check that the ID of the rule doesn't clash with the class definitions, since we're\n // going to create a class for this rule with the rule's ID.\n if (classesByID.get(rd.getDmdID()) != null){\n \tResultException ex = new ResultException();\n \tex.addError(clashingIDsMsg(rd.getDmdID(),rd,classesByID,\"dmdID\"));\n \tthrow(ex);\n }\n \n ///////////////////////////////////////////////////////////////////////\n \n ClassDefinition cd = new ClassDefinition();\n cd.setName(ruleClassName);\n if (rd.getIsExtensible())\n \tcd.setClassType(ClassTypeEnum.EXTENSIBLE);\n else\n \tcd.setClassType(ClassTypeEnum.STRUCTURAL);\n // Note: we don't use the dmdID in the rule definition because it has already been bumped\n cd.setDmdID(originalRefDefID);\n cd.setDerivedFrom(MetaSchemaAG._RuleData);\n cd.setInternallyGenerated(true);\n cd.setRuleDefinition(rd);\n cd.setIsNamedBy(MetaSchemaAG._ruleName);\n \n // The name of a rule definition is schema.ruledef.RuleDefinition\n // For the associated class, it will be schema.ruledefData.ClassDefinition\n DotName className = new DotName(((DotName) rd.getDotName().getParentName()).getNameString() + \"Data.ClassDefinition\");\n// DotName nameAndTypeName = new DotName(cd.getName() + \"Data.ClassDefinition\");\n cd.setDotName(className);\n// cd.setNameAndTypeName(nameAndTypeName);\n\n cd.addMust(MetaSchemaAG._ruleName);\n cd.addMust(MetaSchemaAG._ruleTitle);\n cd.addMay(MetaSchemaAG._description);\n \n\t\tif (rd.getRuleType() == RuleTypeEnum.ATTRIBUTE)\n\t\t\tcd.addMust(MetaSchemaAG._applyToAttribute);\n\n cd.setFile(rd.getFile());\n cd.setLineNumber(rd.getLineNumber());\n cd.setDefinedIn(rd.getDefinedIn());\n \n if (rd.getDescription() != null){\n \tIterator<String> it = rd.getDescription();\n \twhile(it.hasNext()){\n \t\tcd.addDescription(it.next());\n \t}\n }\n \n for(AttributeDefinition ad: rd.getMay()){\n \tcd.addMay(ad);\n }\n \n for(AttributeDefinition ad: rd.getMust()){\n \tcd.addMust(ad);\n }\n \n addClass(cd);\n \n // We add the new class to the schema's list of classes\n rd.getDefinedIn().addClassDefList(cd);\n }", "@Test\n public void createRule() {\n // BEGIN: com.azure.messaging.servicebus.servicebusrulemanagerclient.createRule\n RuleFilter trueRuleFilter = new TrueRuleFilter();\n CreateRuleOptions options = new CreateRuleOptions(trueRuleFilter);\n ruleManager.createRule(\"new-rule\", options);\n // END: com.azure.messaging.servicebus.servicebusrulemanagerclient.createRule\n\n ruleManager.close();\n }", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}", "public static List<ExtendRule> removeRedundantExtendedRules_rangeBased(List<ExtendRule> rules) {\n LOGGER.info(\"STARTED removeRedundantExtendedRules - range based\");\n LOGGER.info(\"Rules on start:\" + rules.size());\n ExtendRule defRule = rules.get(rules.size()-1);\n Consequent defClass = defRule.getConsequent(); \n for (Iterator<ExtendRule> it = rules.iterator(); it.hasNext();) { \n ExtendRule PRCandidate = it.next();\n // PRCandidate = go through all rules with default class in the consequent\n if (!PRCandidate.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n // skip default rule\n if (PRCandidate.equals(defRule))\n {\n continue;\n } \n ArrayList<RuleMultiItem> PR_items = PRCandidate.getAntecedent().getItems();\n //create hashmap for fast access\n HashMap<Attribute,RuleMultiItem> PR_itemsMap = new HashMap();\n for (RuleMultiItem rmi : PR_items)\n {\n PR_itemsMap.put(rmi.getAttribute(), rmi);\n }\n \n // check if there is no other rule classifying to different class that shares part of the region\n // matched by the antecedent of PRCandidate \n boolean clashingRuleFound=false;\n boolean positionBelowPRCand = false;\n for (Iterator<ExtendRule> innerIt = rules.iterator(); innerIt.hasNext();) {\n ExtendRule candidateClash = innerIt.next();\n // candidateClash is PRCandidate, which would always evaluate to overlap!\n\n if (candidateClash.equals(PRCandidate))\n {\n positionBelowPRCand=true;\n continue;\n }\n // candidateClash = go through all rules with OTHER than default class in consequent \n if (candidateClash.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n if (!positionBelowPRCand) continue;\n \n // check if at leat one literal in PRCandidate has empty intersection with Clash on shared attribute\n \n //in case there is no shared attribute, the intersection is non empty\n ArrayList<RuleMultiItem> literalsInClashOnSharedAtt = new ArrayList();\n for (RuleMultiItem clash_rmi : candidateClash.getAntecedent().getItems())\n {\n if (PR_itemsMap.containsKey(clash_rmi.getAttribute()))\n {\n literalsInClashOnSharedAtt.add(clash_rmi);\n }\n } \n if (literalsInClashOnSharedAtt.isEmpty())\n {\n clashingRuleFound =true;\n break;\n }\n // if there is NO intersection on at leat one of the shared attributes => no CLASH\n // ELSE => CLASH\n boolean attLeastOneAttDisjunct=true;\n for (RuleMultiItem clash_rmi : literalsInClashOnSharedAtt)\n {\n //PRCandidate has a literal created over the same attribute\n RuleMultiItem machingPR_RMI = PR_itemsMap.get(clash_rmi.getAttribute());\n\n //do values in the candidate clash intersect with values in PRCandidate?\n \n for (AttributeValue v : machingPR_RMI.getAttributeValues())\n {\n if (clash_rmi.getAttributeValues().contains(v))\n {\n attLeastOneAttDisjunct=false;\n }\n }\n if (attLeastOneAttDisjunct) // if we have non-empty intersection on one att we do not have to test the other ones, rule matches different part of the data space\n {\n //go to next PRCandidate \n break;\n } \n } \n if (!attLeastOneAttDisjunct)\n {\n //go to next PRCandidate \n clashingRuleFound=true;\n break;\n } \n }\n if (clashingRuleFound == false)\n {\n //no other rule with different consequent covering at least one shared value was found\n //this rule can be removed\n LOGGER.fine(\"Removing rule:\" + PRCandidate.toString());\n it.remove();\n } \n }\n LOGGER.info(\"Rules on finish:\" + rules.size());\n LOGGER.info(\"FINISHED removeRedundantExtendedRules - range based\");\n return rules;\n }", "public Rule selectRule(Vector ruleSet) {\r\n Enumeration enum2 = ruleSet.elements() ;\r\n long numClauses ;\r\n Rule nextRule ;\r\n\r\n Rule bestRule = (Rule)enum2.nextElement() ;\r\n long max = bestRule.numAntecedents() ;\r\n while (enum2.hasMoreElements()) {\r\n nextRule = (Rule)enum2.nextElement() ;\r\n if ((numClauses = nextRule.numAntecedents()) > max) {\r\n max = numClauses ;\r\n bestRule = nextRule ;\r\n }\r\n }\r\n return bestRule ;\r\n }", "public abstract List<NARule> getRules(Context context);", "public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:11: ( '^' )?\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0=='^') ) {\n alt7=1;\n }\n switch (alt7) {\n case 1 :\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop8:\n do {\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( ((LA8_0>='0' && LA8_0<='9')||(LA8_0>='A' && LA8_0<='Z')||LA8_0=='_'||(LA8_0>='a' && LA8_0<='z')) ) {\n alt8=1;\n }\n\n\n switch (alt8) {\n \tcase 1 :\n \t // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop8;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "CaseStmtRule createCaseStmtRule();", "@Test\n public void example10 () throws Exception {\n ValueFactory f = repo.getValueFactory();\n String exns = \"http://example.org/people/\";\n URI alice = f.createURI(exns, \"alice\");\n URI bob = f.createURI(exns, \"bob\");\n URI ted = f.createURI(exns, \"ted\"); \n URI person = f.createURI(\"http://example.org/ontology/Person\");\n URI name = f.createURI(\"http://example.org/ontology/name\");\n Literal alicesName = f.createLiteral(\"Alice\");\n Literal bobsName = f.createLiteral(\"Bob\");\n Literal tedsName = f.createLiteral(\"Ted\"); \n URI context1 = f.createURI(exns, \"cxt1\"); \n URI context2 = f.createURI(exns, \"cxt2\"); \n conn.add(alice, RDF.TYPE, person, context1);\n conn.add(alice, name, alicesName, context1);\n conn.add(bob, RDF.TYPE, person, context2);\n conn.add(bob, name, bobsName, context2);\n conn.add(ted, RDF.TYPE, person);\n conn.add(ted, name, tedsName);\n \n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(conn.getStatements(null, null, null, false, context1, context2)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false, null, context2)));\n \n // testing named graph query\n DatasetImpl ds = new DatasetImpl();\n ds.addNamedGraph(context1);\n ds.addNamedGraph(context2);\n TupleQuery tupleQuery = conn.prepareTupleQuery(\n QueryLanguage.SPARQL, \"SELECT ?s ?p ?o ?g WHERE { GRAPH ?g {?s ?p ?o . } }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(tupleQuery.evaluate()));\n \n ds = new DatasetImpl();\n ds.addDefaultGraph(null);\n tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, \"SELECT ?s ?p ?o WHERE {?s ?p ?o . }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(tupleQuery.evaluate()));\n }", "@Override\n public boolean rewritePre(Mutable<ILogicalOperator> opRef, IOptimizationContext context)\n throws AlgebricksException {\n\n boolean cboMode = this.getCBOMode(context);\n boolean cboTestMode = this.getCBOTestMode(context);\n\n if (!(cboMode || cboTestMode)) {\n return false;\n }\n\n // If we reach here, then either cboMode or cboTestMode is true.\n // If cboTestMode is true, then we use predefined cardinalities for datasets for asterixdb regression tests.\n // If cboMode is true, then all datasets need to have samples, otherwise the check in doAllDataSourcesHaveSamples()\n // further below will return false.\n ILogicalOperator op = opRef.getValue();\n if (!(joinClause(op) || ((op.getOperatorTag() == LogicalOperatorTag.DISTRIBUTE_RESULT)))) {\n return false;\n }\n\n // if this join has already been seen before, no need to apply the rule again\n if (context.checkIfInDontApplySet(this, op)) {\n return false;\n }\n\n //joinOps = new ArrayList<>();\n allJoinOps = new ArrayList<>();\n newJoinOps = new ArrayList<>();\n leafInputs = new ArrayList<>();\n varLeafInputIds = new HashMap<>();\n outerJoinsDependencyList = new ArrayList<>();\n assignOps = new ArrayList<>();\n assignJoinExprs = new ArrayList<>();\n buildSets = new ArrayList<>();\n\n IPlanPrettyPrinter pp = context.getPrettyPrinter();\n printPlan(pp, (AbstractLogicalOperator) op, \"Original Whole plan1\");\n leafInputNumber = 0;\n boolean canTransform = getJoinOpsAndLeafInputs(op);\n\n if (!canTransform) {\n return false;\n }\n\n convertOuterJoinstoJoinsIfPossible(outerJoinsDependencyList);\n\n printPlan(pp, (AbstractLogicalOperator) op, \"Original Whole plan2\");\n int numberOfFromTerms = leafInputs.size();\n\n if (LOGGER.isTraceEnabled()) {\n String viewInPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewInPlan\");\n LOGGER.trace(viewInPlan);\n }\n\n if (buildSets.size() > 1) {\n buildSets.sort(Comparator.comparingDouble(o -> o.second)); // sort on the number of tables in each set\n // we need to build the smaller sets first. So we need to find these first.\n }\n joinEnum.initEnum((AbstractLogicalOperator) op, cboMode, cboTestMode, numberOfFromTerms, leafInputs, allJoinOps,\n assignOps, outerJoinsDependencyList, buildSets, varLeafInputIds, context);\n\n if (cboMode) {\n if (!doAllDataSourcesHaveSamples(leafInputs, context)) {\n return false;\n }\n }\n\n printLeafPlans(pp, leafInputs, \"Inputs1\");\n\n if (assignOps.size() > 0) {\n pushAssignsIntoLeafInputs(pp, leafInputs, assignOps, assignJoinExprs);\n }\n\n printLeafPlans(pp, leafInputs, \"Inputs2\");\n\n int cheapestPlan = joinEnum.enumerateJoins(); // MAIN CALL INTO CBO\n if (cheapestPlan == PlanNode.NO_PLAN) {\n return false;\n }\n\n PlanNode cheapestPlanNode = joinEnum.allPlans.get(cheapestPlan);\n\n generateHintWarnings();\n\n if (numberOfFromTerms > 1) {\n getNewJoinOps(cheapestPlanNode, allJoinOps);\n if (allJoinOps.size() != newJoinOps.size()) {\n return false; // there are some cases such as R OJ S on true. Here there is an OJ predicate but the code in findJoinConditions\n // in JoinEnum does not capture this. Will fix later. Just bail for now.\n }\n buildNewTree(cheapestPlanNode, newJoinOps, new MutableInt(0));\n opRef.setValue(newJoinOps.get(0));\n\n if (assignOps.size() > 0) {\n for (int i = assignOps.size() - 1; i >= 0; i--) {\n MutableBoolean removed = new MutableBoolean(false);\n removed.setFalse();\n pushAssignsAboveJoins(newJoinOps.get(0), assignOps.get(i), assignJoinExprs.get(i), removed);\n if (removed.isTrue()) {\n assignOps.remove(i);\n }\n }\n }\n\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan after buildNewTree 1\");\n ILogicalOperator root = addRemainingAssignsAtTheTop(newJoinOps.get(0), assignOps);\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan after buildNewTree 2\");\n printPlan(pp, (AbstractLogicalOperator) root, \"New Whole Plan after buildNewTree\");\n\n // this will be the new root\n opRef.setValue(root);\n\n if (LOGGER.isTraceEnabled()) {\n String viewInPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewInPlanAgain\");\n LOGGER.trace(viewInPlan);\n String viewOutPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewOutPlan\");\n LOGGER.trace(viewOutPlan);\n }\n\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(\"---------------------------- Printing Leaf Inputs\");\n printLeafPlans(pp, leafInputs, \"Inputs\");\n // print joins starting from the bottom\n for (int i = newJoinOps.size() - 1; i >= 0; i--) {\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(i), \"join \" + i);\n }\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan\");\n printPlan(pp, (AbstractLogicalOperator) root, \"New Whole Plan\");\n }\n\n // turn of this rule for all joins in this set (subtree)\n for (ILogicalOperator joinOp : newJoinOps) {\n context.addToDontApplySet(this, joinOp);\n }\n\n } else {\n buildNewTree(cheapestPlanNode);\n }\n\n return true;\n }", "E4Rule createE4Rule();", "public AccrualRule(){}", "public CNF(int numOfClauses, List<Set<Integer>> li){\n this.li = li;\n this.num = numOfClauses;\n }", "public List<Rule> positionProfitTakingRuleList(TacticTypeEnum tacticType) {\n List<Rule> ruleList = new ArrayList<>();\n SuppressCondition suppressMonth = suppressConditionTemplate.month();\n RangeCondition pctGT40 = rangeConditionTemplate.pct(40, Double.MAX_VALUE);\n Operation sellAll = operationTemplate.sellAll();\n ruleList.add(of(tacticType, pctGT40, suppressMonth, sellAll));\n RangeCondition pct30To40 = rangeConditionTemplate.pct(30, 40);\n Operation sell50 = operationTemplate.sell50Pct();\n ruleList.add(of(tacticType, pct30To40, suppressMonth, sell50));\n RangeCondition pct20To30 = rangeConditionTemplate.pct(20, 30);\n Operation sell30 = operationTemplate.sell30Pct();\n ruleList.add(of(tacticType, pct20To30, suppressMonth, sell30));\n return ruleList;\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void setRules() {\n\t\tthis.result = Result.START;\n\t\t// Create all initial rule executors, and shuffle them if needed.\n\t\tthis.rules = new LinkedList<>();\n\t\tModule module = getModule();\n\t\tfor (Rule rule : module.getRules()) {\n\t\t\tRuleStackExecutor executor = (RuleStackExecutor) getExecutor(rule, getSubstitution());\n\t\t\texecutor.setContext(module);\n\t\t\tthis.rules.add(executor);\n\t\t}\n\t\tif (getRuleOrder() == RuleEvaluationOrder.RANDOM || getRuleOrder() == RuleEvaluationOrder.RANDOMALL) {\n\t\t\tCollections.shuffle((List<RuleStackExecutor>) this.rules);\n\t\t}\n\t}", "public static List<Rule> fromRDF(final Iterable<Statement> model) {\n\n // Load namespaces from model metadata, reusing default prefix/ns mappings\n final Map<String, String> namespaces = new HashMap<>(Namespaces.DEFAULT.uriMap());\n if (model instanceof Model) {\n for (final Namespace namespace : ((Model) model).getNamespaces()) {\n namespaces.put(namespace.getPrefix(), namespace.getName());\n }\n }\n for (final Statement stmt : model) {\n if (stmt.getSubject() instanceof URI && stmt.getObject() instanceof Literal\n && stmt.getPredicate().equals(RR.PREFIX_PROPERTY)) {\n namespaces.put(stmt.getObject().stringValue(), stmt.getSubject().stringValue());\n }\n }\n\n // Use a 5-fields Object[] record to collect the attributes of each rule.\n // fields: 0 = fixpoint, 1 = phase, 2 = delete expr, 3 = insert expr, 4 = where expr\n final Map<URI, Object[]> records = new HashMap<>();\n\n // Scan the statements, extracting rule properties and populating the records map\n for (final Statement stmt : model) {\n try {\n if (stmt.getSubject() instanceof URI) {\n\n // Extract relevant statement components\n final URI subj = (URI) stmt.getSubject();\n final URI pred = stmt.getPredicate();\n final Value obj = stmt.getObject();\n\n // Identify field and value (if any) of corresponding Object[] record\n int field = -1;\n Object value = null;\n if (pred.equals(RDF.TYPE)) {\n field = 0;\n if (obj.equals(RR.FIXPOINT_RULE)) {\n value = true;\n } else if (obj.equals(RR.NON_FIXPOINT_RULE)) {\n value = false;\n }\n } else if (pred.equals(RR.PHASE)) {\n field = 1;\n value = ((Literal) obj).intValue();\n } else if (pred.equals(RR.DELETE)) {\n field = 2;\n } else if (pred.equals(RR.INSERT) || pred.equals(RR.HEAD)) {\n field = 3;\n } else if (pred.equals(RR.WHERE) || pred.equals(RR.BODY)) {\n field = 4;\n }\n if (field == 2 || field == 3 || field == 4) {\n value = Algebra.parseTupleExpr(stmt.getObject().stringValue(), null,\n namespaces);\n }\n\n // Update Object[] records if the statement is about a rule\n if (value != null) {\n Object[] record = records.get(subj);\n if (record == null) {\n record = new Object[] { true, 0, null, null, null };\n records.put(subj, record);\n }\n record[field] = value;\n }\n }\n } catch (final Throwable ex) {\n throw new IllegalArgumentException(\"Invalid rule attribute in statement: \" + stmt,\n ex);\n }\n }\n\n // Generate the rules from parsed heads and bodies\n final List<Rule> rules = new ArrayList<>();\n for (final Map.Entry<URI, Object[]> entry : records.entrySet()) {\n final URI id = entry.getKey();\n final Object[] record = entry.getValue();\n rules.add(new Rule(id, (Boolean) record[0], (Integer) record[1],\n (TupleExpr) record[2], (TupleExpr) record[3], (TupleExpr) record[4]));\n }\n return rules;\n }", "@Test\n public void testRuleDescription() throws Exception {\n\n HepProgramBuilder programBuilder = HepProgram.builder();\n programBuilder.addRuleByDescription( \"FilterToCalcRule\" );\n\n HepPlanner planner = new HepPlanner( programBuilder.build() );\n\n planner.addRule( FilterToCalcRule.INSTANCE );\n\n checkPlanning( planner, \"select name from sales.dept where deptno=12\" );\n }", "protected PmdRuleset createPmdRuleset(List<ActiveRule> activeRules, String profileName) {\n PmdRuleset ruleset = new PmdRuleset(profileName);\n\n for (ActiveRule activeRule : activeRules) {\n if (activeRule.getRule().getRepositoryKey().equals(PhpmdRuleRepository.PHPMD_REPOSITORY_KEY)) {\n String configKey = activeRule.getRule().getConfigKey();\n PmdRule rule = new PmdRule(configKey, mapper.to(activeRule.getSeverity()));\n List<ActiveRuleParam> activeRuleParams = activeRule.getActiveRuleParams();\n if (activeRuleParams != null && !activeRuleParams.isEmpty()) {\n List<PmdProperty> properties = new ArrayList<PmdProperty>();\n for (ActiveRuleParam activeRuleParam : activeRuleParams) {\n properties.add(new PmdProperty(activeRuleParam.getRuleParam().getKey(), activeRuleParam.getValue()));\n }\n rule.setProperties(properties);\n }\n ruleset.addRule(rule);\n processXPathRule(activeRule.getRuleKey(), rule);\n }\n }\n return ruleset;\n }", "E13Rule createE13Rule();", "private void CreateSimpleDataBaseRules(String database) throws isisicatclient.IcatException_Exception {\n Grouping publishedDataAdmins = new Grouping();\r\n publishedDataAdmins.name = \"Disordered Materials Published Data Admins\";\r\n publishedDataAdmins.id = port.create(sessionId, publishedDataAdmins);\r\n\r\n //Add Frazer to that group\r\n /*UserGroup frazerToPdas = new UserGroup();\r\n frazerToPdas.grouping = publishedDataAdmins;\r\n frazerToPdas.user = frazer;\r\n frazerToPdas.id = port.create(sessionId, frazerToPdas);*/\r\n String databaseName = \" = '\" + database + \"'\";\r\n\r\n //Create on ParameterType\r\n Rule pdaCreateParamType = new Rule();\r\n pdaCreateParamType.grouping = publishedDataAdmins;\r\n pdaCreateParamType.crudFlags = \"CU\";\r\n pdaCreateParamType.what = \"ParameterType\";\r\n port.create(sessionId, pdaCreateParamType);\r\n String count;\r\n if (test) {\r\n count = port.search(sessionId, \"SELECT COUNT(i) FROM Investigation i JOIN i.type it WHERE it.name\" + databaseName).get(0).toString();\r\n System.out.println(\"DMPD - Investigation - OK - \" + count);\r\n }\r\n\r\n //Rules for Investigation\r\n Rule pdaInvestigation = new Rule();\r\n pdaInvestigation.grouping = publishedDataAdmins;\r\n pdaInvestigation.crudFlags = \"CRUD\";\r\n pdaInvestigation.what = \"SELECT i FROM Investigation i JOIN i.type it WHERE it.name \" + databaseName;\r\n port.create(sessionId, pdaInvestigation);\r\n\r\n if (test) {\r\n count = port.search(sessionId, \"SELECT COUNT(i) FROM Investigation i JOIN i.type it WHERE it.name\" + databaseName).get(0).toString();\r\n System.out.println(\"DMPD - Investigation - OK - \" + count);\r\n }\r\n\r\n //Rules for InvestigationParameter\r\n Rule pdaInvParam = new Rule();\r\n pdaInvParam.grouping = publishedDataAdmins;\r\n pdaInvParam.crudFlags = \"CRUD\";\r\n pdaInvParam.what = \"SELECT ip FROM InvestigationParameter ip JOIN ip.investigation i JOIN i.type it WHERE it.name \" + databaseName;\r\n port.create(sessionId, pdaInvParam);\r\n\r\n if (test) {\r\n count = port.search(sessionId, \"SELECT COUNT(ip) FROM InvestigationParameter ip JOIN ip.investigation i JOIN i.type it WHERE it.name\" + databaseName).get(0).toString();\r\n System.out.println(\"DMPD - InvestigationParameter - OK - \" + count);\r\n }\r\n\r\n //Rules for Dataset\r\n Rule pdaDs = new Rule();\r\n pdaDs.grouping = publishedDataAdmins;\r\n pdaDs.crudFlags = \"CRUD\";\r\n pdaDs.what = \"SELECT ds FROM Dataset ds JOIN ds.investigation i JOIN i.type it WHERE it.name \" + databaseName;\r\n port.create(sessionId, pdaDs);\r\n\r\n if (test) {\r\n count = port.search(sessionId, \"SELECT COUNT(ds) FROM Dataset ds JOIN ds.investigation i JOIN i.type it WHERE it.name\" + databaseName).get(0).toString();\r\n System.out.println(\"DMPD - Dataset - OK - \" + count);\r\n }\r\n\r\n //Rules for DatasetParameter\r\n Rule pdaDsParam = new Rule();\r\n pdaDsParam.grouping = publishedDataAdmins;\r\n pdaDsParam.crudFlags = \"CRUD\";\r\n pdaDsParam.what = \"SELECT dsp FROM DatasetParameter dsp JOIN dsp.dataset ds JOIN ds.investigation i JOIN i.type it WHERE it.name \" + databaseName;\r\n port.create(sessionId, pdaDsParam);\r\n\r\n if (test) {\r\n count = port.search(sessionId, \"SELECT COUNT(dsp) FROM DatasetParameter dsp JOIN dsp.dataset ds JOIN ds.investigation i JOIN i.type it WHERE it.name\" + databaseName).get(0).toString();\r\n System.out.println(\"DMPD - DatasetParameter - OK - \" + count);\r\n }\r\n\r\n //Rules for Datafile\r\n Rule pdaDf = new Rule();\r\n pdaDf.grouping = publishedDataAdmins;\r\n pdaDf.crudFlags = \"CRUD\";\r\n pdaDf.what = \"SELECT df FROM Datafile df JOIN df.dataset ds JOIN ds.investigation i JOIN i.type it WHERE it.name \" + databaseName;\r\n port.create(sessionId, pdaDf);\r\n\r\n if (test) {\r\n count = port.search(sessionId, \"SELECT COUNT(df) FROM Datafile df JOIN df.dataset ds JOIN ds.investigation i JOIN i.type it WHERE it.name\" + databaseName).get(0).toString();\r\n System.out.println(\"DMPD - Datafile - OK - \" + count);\r\n }\r\n\r\n //Rules for DatasetParameter\r\n Rule pdaDfParam = new Rule();\r\n pdaDfParam.grouping = publishedDataAdmins;\r\n pdaDfParam.crudFlags = \"CRUD\";\r\n pdaDfParam.what = \"SELECT dfp FROM DatafileParameter dfp JOIN dfp.datafile df JOIN df.dataset ds JOIN ds.investigation i JOIN i.type it WHERE it.name \" + databaseName;\r\n port.create(sessionId, pdaDfParam);\r\n\r\n if (test) {\r\n count = port.search(sessionId, \"SELECT COUNT(dfp) FROM DatafileParameter dfp JOIN dfp.datafile df JOIN df.dataset ds JOIN ds.investigation i JOIN i.type it WHERE it.name\" + databaseName).get(0).toString();\r\n System.out.println(\"DMPD - DatafileParameter - OK - \" + count);\r\n }\r\n //Rules for Sample via Investigation\r\n Rule pdaSampleViaInv = new Rule();\r\n pdaSampleViaInv.grouping = publishedDataAdmins;\r\n pdaSampleViaInv.crudFlags = \"CRUD\";\r\n pdaSampleViaInv.what = \"SELECT s FROM Sample s JOIN s.investigation i JOIN i.type it WHERE it.name \" + databaseName;\r\n port.create(sessionId, pdaSampleViaInv);\r\n\r\n if (test) {\r\n count = port.search(sessionId, \"SELECT COUNT(s) FROM Sample s JOIN s.investigation i JOIN i.type it WHERE it.name\" + databaseName).get(0).toString();\r\n System.out.println(\"DMPD - Sample via Investigation - OK - \" + count);\r\n }\r\n\r\n //Rules for Sample Via Dataset\r\n Rule pdaSampleViaDs = new Rule();\r\n pdaSampleViaDs.grouping = publishedDataAdmins;\r\n pdaSampleViaDs.crudFlags = \"CRUD\";\r\n pdaSampleViaDs.what = \"SELECT s FROM Sample s JOIN s.datasets ds JOIN ds.investigation i JOIN i.type it WHERE it.name \" + databaseName;\r\n port.create(sessionId, pdaSampleViaDs);\r\n\r\n if (test) {\r\n count = port.search(sessionId, \"SELECT COUNT(s) FROM Sample s JOIN s.datasets ds JOIN ds.investigation i JOIN i.type it WHERE it.name\" + databaseName).get(0).toString();\r\n System.out.println(\"DMPD - Sample via Dataset - OK - \" + count);\r\n }\r\n\r\n //Rules for SampleParameter via Investigation\r\n Rule pdaSampleParamViaInv = new Rule();\r\n pdaSampleParamViaInv.grouping = publishedDataAdmins;\r\n pdaSampleParamViaInv.crudFlags = \"CRUD\";\r\n pdaSampleParamViaInv.what = \"SELECT sp FROM SampleParameter sp JOIN sp.sample s JOIN s.investigation i JOIN i.type it WHERE it.name \" + databaseName;\r\n port.create(sessionId, pdaSampleParamViaInv);\r\n\r\n if (test) {\r\n count = port.search(sessionId, \"SELECT COUNT(sp) FROM SampleParameter sp JOIN sp.sample s JOIN s.investigation i JOIN i.type it WHERE it.name\" + databaseName).get(0).toString();\r\n System.out.println(\"DMPD - SampleParameter via Investigation - OK - \" + count);\r\n }\r\n\r\n //Rules for SampleParameter Via Dataset\r\n Rule pdaSampleParamViaDs = new Rule();\r\n pdaSampleParamViaDs.grouping = publishedDataAdmins;\r\n pdaSampleParamViaDs.crudFlags = \"CRUD\";\r\n pdaSampleParamViaDs.what = \"SELECT sp FROM SampleParameter sp JOIN sp.sample s JOIN s.datasets ds JOIN ds.investigation i JOIN i.type it WHERE it.name \" + databaseName;\r\n port.create(sessionId, pdaSampleParamViaDs);\r\n\r\n if (test) {\r\n count = port.search(sessionId, \"SELECT COUNT(sp) FROM SampleParameter sp JOIN sp.sample s JOIN s.datasets ds JOIN ds.investigation i JOIN i.type it WHERE it.name\" + databaseName).get(0).toString();\r\n System.out.println(\"DMPD - SampleParameter via Dataset - OK - \" + count);\r\n }\r\n\r\n //SampleType - create is independant, so need 'direct' 'C' access, and then to read their own?\r\n Rule pdaCreateSampleType = new Rule();\r\n pdaCreateSampleType.grouping = publishedDataAdmins;\r\n pdaCreateSampleType.crudFlags = \"CR\";\r\n pdaCreateSampleType.what = \"SampleType\";\r\n port.create(sessionId, pdaCreateSampleType);\r\n\r\n //Rules for SampleType via Investigation\r\n Rule pdaSampleTypeViaInv = new Rule();\r\n pdaSampleTypeViaInv.grouping = publishedDataAdmins;\r\n pdaSampleTypeViaInv.crudFlags = \"CRUD\";\r\n pdaSampleTypeViaInv.what = \"SELECT st FROM SampleType st JOIN st.samples s JOIN s.investigation i JOIN i.type it WHERE it.name \" + databaseName;\r\n port.create(sessionId, pdaSampleTypeViaInv);\r\n\r\n if (test) {\r\n count = port.search(sessionId, \"SELECT COUNT(st) FROM SampleType st JOIN st.samples s JOIN s.investigation i JOIN i.type it WHERE it.name\" + databaseName).get(0).toString();\r\n System.out.println(\"DMPD - SampleType via Investigation - OK - \" + count);\r\n }\r\n\r\n //Rules for SampleType Via Dataset\r\n Rule pdaSampleTypeViaDs = new Rule();\r\n pdaSampleTypeViaDs.grouping = publishedDataAdmins;\r\n pdaSampleTypeViaDs.crudFlags = \"CRUD\";\r\n pdaSampleTypeViaDs.what = \"SELECT st FROM SampleType st JOIN st.samples s JOIN s.datasets ds JOIN ds.investigation i JOIN i.type it WHERE it.name \" + databaseName;\r\n port.create(sessionId, pdaSampleTypeViaDs);\r\n\r\n if (test) {\r\n count = port.search(sessionId, \"SELECT COUNT(st) FROM SampleType st JOIN st.samples s JOIN s.datasets ds JOIN ds.investigation i JOIN i.type it WHERE it.name\" + databaseName).get(0).toString();\r\n System.out.println(\"DMPD - SampleType via Dataset - OK - \" + count);\r\n }\r\n }", "private void addBeforeRule(AroundProcesser<AggMaschineVO> processer)\r\n {\n\t\t\r\n\t processer.addBeforeRule(new BDPKLockSuperVORule());\r\n\t processer.addBeforeRule(new BizLockRule());\r\n\t processer.addBeforeRule(new VersionValidateRule());\r\n\t processer.addBeforeRule(new BDReferenceCheckerRule());\r\n\t processer.addBeforeRule(new FireEventRule(\"1005\"));\r\n\t processer.addBeforeRule(new NotifyVersionChangeWhenDataDeletedRule());\r\n }", "public BNFrule()\n {\n lhs = \"\";\n rhsSymbols = new ArrayList<String>();\n }", "protected abstract FlowRule.Builder setDefaultTableIdForFlowObjective(Builder ruleBuilder);", "E3Rule createE3Rule();", "public Rule_in_State get_unprocessed_rule();", "public interface FwRules {\r\n \r\n\tboolean generateQuery();\r\n\t\r\n IntrospectedTable getIntrospectedTable();\r\n}", "public ArrayList<Predicate> expandInConjunctiveFormula(){\n\t\tArrayList<Predicate> formula = new ArrayList<Predicate>();\n\t\t\n\t\t// (x, (0,2)) (y,1) \n\t\t//holds positions of the vars\n\t\tHashtable<String,ArrayList<String>> pos = new Hashtable<String,ArrayList<String>>();\n\t\t//(const3, \"10\")\n\t\t//holds vars that have constants assigned\n\t\tHashtable<String,String> constants = new Hashtable<String,String>();\n\t\t\n\t\tRelationPredicate p = this.clone();\n\t\t//rename each term to a unique name\n\t\tfor(int i=0; i<p.terms.size(); i++){\n\t\t\tTerm t = p.terms.get(i);\n\t\t\tt.changeVarName(i);\n\n\t\t}\n\t\tformula.add(p);\n\n\t\tArrayList<String> attrsOld = getVarsAndConst();\n\t\tArrayList<String> attrsNew = p.getVarsAndConst();\n\n\t\t\n\t\tfor(int i=0; i<attrsOld.size(); i++){\n\t\t\tTerm t = terms.get(i);\n\t\t\tif(t instanceof ConstTerm){\n\t\t\t\t//get the constant value\n\t\t\t\tconstants.put(attrsNew.get(i),t.getVal());\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<String> posVals = pos.get(attrsOld.get(i));\n\t\t\tif(posVals==null){\n\t\t\t\tposVals=new ArrayList<String>();\n\t\t\t\tpos.put(attrsOld.get(i),posVals);\n\t\t\t}\n\t\t\tposVals.add(String.valueOf(i));\n\n\t\t}\n\t\t\n\t\t//System.out.println(\"Position of attrs=\" + pos + \" Constants= \" + constants);\n\t\n\t\t//deal with var equality x0=x2\n\t\tIterator<String> it = pos.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tArrayList<String> vals = pos.get(key);\n\t\t\tif(vals.size()>1){\n\t\t\t\t//add x0=x2 & x2=x9, etc\n\t\t\t\tfor(int i=1; i<vals.size(); i++){\n\t\t\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i)));\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i+1)));\n\t\t\t\t\tVarTerm v1 = new VarTerm(key);\n\t\t\t\t\tv1.changeVarName(Integer.valueOf(vals.get(i-1)).intValue());\n\t\t\t\t\tp1.addTerm(v1);\n\t\t\t\t\tVarTerm v2 = new VarTerm(key);\n\t\t\t\t\tv2.changeVarName(Integer.valueOf(vals.get(i)).intValue());\n\t\t\t\t\tp1.addTerm(v2);\n\t\t\t\t\tformula.add(p1);\n\t\t\t\t\t//i=i+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//deal with constants\n\t\tit = constants.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tString val = constants.get(key);\n\t\t\t//it's a constant\n\t\t\t//add const3=\"10\"\n\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\tp1.addTerm(new VarTerm(key));\n\t\t\tp1.addTerm(new ConstTerm(val));\n\t\t\tformula.add(p1);\n\t\t}\n\t\treturn formula;\n\t}", "public abstract CellProfile getRules();", "@Test\n public void subsetValidatorsHasMatchingEnabledListEntry() {\n DroolsRulesServiceFactoryFromFile reader = buildDefaultReader();\n\n EngineConfigDTO engine = new EngineConfigDTO();\n List<String> enabledFactsValidators = new ArrayList<>();\n enabledFactsValidators.add(DEFAULT_IFACTS_PREPROCESSOR1.getName());\n engine.setEnabledPreProcessors(enabledFactsValidators);\n List<IFactsPreProcessor> validators = reader.configurePreProcessors(engine, new ArrayList<String>());\n\n assertEquals(1, validators.size());\n IFactsPreProcessor validator = validators.get(0);\n assertEquals(validator.getName(), DEFAULT_IFACTS_PREPROCESSOR1.getName());\n }", "@Test\n public void testDecisionRule2() throws IOException {\n \n Data data = getDataObject(\"./data/adult.csv\");\n DataHandle handle = data.getHandle();\n \n RiskModelPopulationUniqueness model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.1d)).getPopulationBasedUniquenessRisk();\n double sampleUniqueness = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.1d)).getSampleBasedUniquenessRisk().getFractionOfUniqueRecords();\n double populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n \n if (model.getPopulationUniquenessModel() == PopulationUniquenessModel.PITMAN) {\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.27684993883653597) == 0);\n } else if (model.getPopulationUniquenessModel() == PopulationUniquenessModel.ZAYATZ) {\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.3207402393466189) == 0);\n } else {\n fail(\"Unexpected convergence of SNB\");\n }\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.2d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.3577099234829125d) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.01d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.1446083531167384) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 1d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.5142895033485844) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) == 0);\n }" ]
[ "0.61042315", "0.60545963", "0.5770894", "0.5770894", "0.5770894", "0.5722579", "0.5709911", "0.5643319", "0.5614909", "0.56124735", "0.5582043", "0.5504872", "0.5471132", "0.54673016", "0.54473954", "0.5444323", "0.5428705", "0.5370524", "0.5353227", "0.53356504", "0.53118235", "0.52953315", "0.5288669", "0.5274381", "0.5271907", "0.5246549", "0.52104497", "0.5208818", "0.519437", "0.5187955", "0.5148318", "0.51436335", "0.5119463", "0.50934213", "0.5084141", "0.50830674", "0.50737214", "0.50414485", "0.5035877", "0.50261045", "0.5026091", "0.50178486", "0.50136214", "0.5000605", "0.4997848", "0.49959874", "0.49931884", "0.4991434", "0.4986452", "0.49838504", "0.49791834", "0.49717247", "0.49636698", "0.49601948", "0.49521193", "0.49232346", "0.49208552", "0.49162424", "0.49017608", "0.4901456", "0.4900542", "0.48919654", "0.48916575", "0.48914462", "0.48904857", "0.48873258", "0.48858526", "0.48828527", "0.48818427", "0.48801887", "0.48608646", "0.48525223", "0.48470005", "0.4843405", "0.4843233", "0.48385936", "0.48325142", "0.4819721", "0.4813526", "0.48058623", "0.4798574", "0.47946134", "0.47919577", "0.47902843", "0.47825682", "0.47820893", "0.47785166", "0.47751123", "0.47736427", "0.4773057", "0.4764987", "0.47635558", "0.47617865", "0.47599182", "0.47561622", "0.4731741", "0.47123984", "0.47122374", "0.47116745", "0.47101557" ]
0.5883627
2
BUILDS A RULESET FROM TWO RULESETS, IN ORDER TO MEASURE THE ERROR, AND SET PRECEDENCE FROM ONE OVER ANOTHER
public RuleSet (RuleSet RS1, RuleSet RS2, SensorList sList, SensorMap sMap, RuleMap rMap) { // CREATING COMBINATION RULESET FROM RS1 & RS2 this.references = new ArrayList(); this.sList = sList; this.rulelist = RS1.rulelist; this.totalProb = 0.0; this.id = counter.incrementAndGet(); this.precedences = new ArrayList (); Sensor precondition = RS1.getPrecursorWithID().merge(RS2.getPrecursorWithID()); ArrayList <Integer> common_non_wildcarded_indexes = RS1.getSuccessor().detectCommonNonWilcardedIndexes(RS2.getSuccessor()); Sensor root = new Sensor(RS1.getPrecursorWithID().tokenMap); int number = common_non_wildcarded_indexes.size(); boolean insert; // THERE IS A CONFLICT ONLY IF SOME COMMON NON WILDCARDED INDEXES EXIST if (number >= 1) { SensorList conflicted_indexes_list = root.expand(common_non_wildcarded_indexes.get(0)); if (number >= 2) { // Expanding the conflicted indexes in ArrayList for (int h = 2; h<=number; h++) { conflicted_indexes_list.expandListAt(common_non_wildcarded_indexes.get(h-1)); } } for (int j = 0; j < conflicted_indexes_list.size(); j++) { // We only need to insert the Rules with postcondition corresponding to either RS1 or RS2 // // So we check for post. matches in the first and then second RuleSet insert = false; // SEARCHING FOR MATCH IN FIRST RULESET for (int h1 = 0; h1 < RS1.size(); h1++) { /// if (RS1.getSuccessor(h1).sensorMatch(conflicted_indexes_list.getSensor(j+1))) { insert = true; break; } } // SEARCHING FOR MATCH IN SECOND RULESET if (!insert) { for (int h2 = 0; h2 < RS2.size(); h2++) { if (RS2.getSuccessor(h2).sensorMatch(conflicted_indexes_list.getSensor(j+1))) { insert = true; break; } } } // If the Rule postcondition was found in RS1 or RS2, we shall create it if (insert) { Rule rule = new Rule(precondition, conflicted_indexes_list.getSensor(j+1)); rule.ruleset_id = this.id; int aa = sMap.getMatchingOccurencies(precondition); int tt = rMap.getMatchingOccurencies(rule); rule.prec_occurrencies = aa; rule.occurrencies = tt; this.rulelist.addRule(rule); this.add(rule); } } } // UPDATING RULESET PROBABILITY if (this.size() > 0) { for (int i = 0; i < this.size(); i++) { totalProb = totalProb + this.getRule(i).getProb(); totalProb = Math.round(totalProb * 1000); totalProb = totalProb/1000; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testRuleSets2() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0L, testAdminCon.size());\r\n\t\ttestAdminCon.add(micah, lname, micahlname, dirgraph1);\r\n\t\ttestAdminCon.add(micah, fname, micahfname, dirgraph1);\r\n\t\ttestAdminCon.add(micah, developPrototypeOf, semantics, dirgraph1);\r\n\t\ttestAdminCon.add(micah, type, sEngineer, dirgraph1);\r\n\t\ttestAdminCon.add(micah, worksFor, ml, dirgraph1);\r\n\t\t\r\n\t\ttestAdminCon.add(john, fname, johnfname,dirgraph);\r\n\t\ttestAdminCon.add(john, lname, johnlname,dirgraph);\r\n\t\ttestAdminCon.add(john, writeFuncSpecOf, inference, dirgraph);\r\n\t\ttestAdminCon.add(john, type, lEngineer, dirgraph);\r\n\t\ttestAdminCon.add(john, worksFor, ml, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(writeFuncSpecOf, subProperty, design, dirgraph1);\r\n\t\ttestAdminCon.add(developPrototypeOf, subProperty, design, dirgraph1);\r\n\t\ttestAdminCon.add(design, subProperty, develop, dirgraph1);\r\n\t\t\r\n\t\ttestAdminCon.add(lEngineer, subClass, engineer, dirgraph1);\r\n\t\ttestAdminCon.add(sEngineer, subClass, engineer, dirgraph1);\r\n\t\ttestAdminCon.add(engineer, subClass, employee, dirgraph1);\r\n\t\t\r\n\t\tString query = \"select (count (?s) as ?totalcount) where {?s ?p ?o .} \";\r\n\t\tTupleQuery tupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS_PLUS_FULL);\r\n\t\tTupleQueryResult result\t= tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(374, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\r\n\t\tRepositoryResult<Statement> resultg = testAdminCon.getStatements(null, null, null, true, dirgraph, dirgraph1);\r\n\t\t\r\n\t\tassertNotNull(\"Iterator should not be null\", resultg);\r\n\t\tassertTrue(\"Iterator should not be empty\", resultg.hasNext());\r\n\t\t\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.EQUIVALENT_CLASS);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(18, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS,SPARQLRuleset.INVERSE_OF);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(86, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(null,SPARQLRuleset.INVERSE_OF);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(18, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets((SPARQLRuleset)null, null);\r\n\t\ttupleQuery.setIncludeInferred(false);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(16, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t}", "public interface ValidatingRule extends NormalisationRule\n{\n /**\n * Performs validation for the given stage by validating the input object using the criteria\n * defined for this rule.\n * \n * @param stage\n * A URI denoting the stage to use. This stage must be a valid stage for this type of\n * rule based on the result of validForStage(stage)\n * @param input\n * The input object to be validated by this rule.\n * @return True if the validation succeeded, or false otherwise.\n * @throws InvalidStageException\n * If the given stage was not valid.\n * @throws ValidationFailedException\n * If the validation failed.\n * @throws QueryAllException\n * If the validation process did not complete.\n */\n boolean normaliseByStage(URI stage, Object input) throws InvalidStageException, ValidationFailedException,\n QueryAllException;\n \n /**\n * Validates the given input object in the stage after query creation, but before query parsing.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterQueryCreation(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after query parsing, but before query\n * submission to the provider.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterQueryParsing(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after the RDF results have been imported from\n * the results for a provider, but before they have been merged into a pool with results from\n * other providers.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterResultsImport(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after the combined RDF statements in the pool\n * have been serialised to the results document.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterResultsToDocument(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after the RDF results have been merged into a\n * pool of RDF statements, but before they have been serialised to the results document.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterResultsToPool(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after results have been returned from a\n * provider, but before they have been parsed into RDF statements.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageBeforeResultsImport(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage where query variables are being normalised\n * based on the context of the provider.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageQueryVariables(Object input) throws ValidationFailedException;\n}", "private void applyTheRule() throws Exception {\n System.out.println();\n System.out.println();\n System.out.println();\n System.out.println(\"IM APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n System.out.println();\n if (parameter.rule.equals(\"1\")) {\n Rule1.apply(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"2\")) {\n Rule2.apply(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"3\")) {\n Rule3.all(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"3a\")) {\n Rule3.a(resultingModel);\n\n }\n\n if (parameter.rule.equals(\"3b\")) {\n Rule3.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"3c\")) {\n Rule3.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"4\")) {\n Rule4.all(resultingModel);\n }\n\n if (parameter.rule.equals(\"4a\")) {\n Rule4.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"4b\")) {\n Rule4.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"4c\")) {\n Rule4.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"r1\")) {\n Reverse1.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r2\")) {\n Reverse2.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r3\")) {\n Reverse3.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r3a\")) {\n Reverse3.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"r3b\")) {\n Reverse3.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"r3c\")) {\n Reverse3.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4\")) {\n Reverse4.all(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4a\")) {\n Reverse4.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4b\")) {\n Reverse4.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4c\")) {\n Reverse4.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"5\")){\n Rule5.apply(resultingModel);\n }\n\n System.out.println(\"IM DONE APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n\n this.resultingModel.addRule(parameter);\n //System.out.println(this.resultingModel.name);\n this.resultingModel.addOutputInPath();\n }", "public boolean precedingOver (RuleSet RS1, RuleSet RS2) {\n \n return (this.getError(RS1) < this.getError(RS2));\n }", "private void getTimeConditions(List<RuleInstance> rules,Set<Condition> conds)\n{\n for (RuleInstance ri : rules) {\n getTimeConditions(ri,rules,conds);\n }\n}", "@Test\n public void testSubsequentRunsWithPenalizingConstraint() {\n System.out.println(\" - test subsequent runs with penalizing constraint\");\n // set constraint\n problem.addPenalizingConstraint(constraint);\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform 3 times as many runs as usual for this harder problem (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchLowTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchLowTemp.getBestSolution(), data).getPenalty());\n }\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchMedTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchMedTemp.getBestSolution(), data).getPenalty());\n }\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchHighTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchHighTemp.getBestSolution(), data).getPenalty());\n }\n }", "private boolean purelySequentialDependent(\r\n\t\t\tfinal Rule r1, \r\n\t\t\tint indx_r1,\r\n\t\t\tfinal Rule r2,\r\n\t\t\tint indx_r2,\r\n\t\t\tGraph g) {\n\t\t\r\n\t\tfinal Match embedding = BaseFactory.theFactory().createMatch(r2, r1.getRight());\t\t\r\n\t\tembedding.setCompletionStrategy(this.strategy, true);\r\n\t\tboolean result = false;\r\n\t\twhile (embedding.nextCompletionWithConstantsChecking() && !result) {\r\n\t\t\tEnumeration<GraphObject> codom = embedding.getCodomain();\t\t\t\t\t\t\r\n\t\t\t// exist l21 : L2 -> R1\r\n\t\t\twhile (codom.hasMoreElements()) {\r\n\t\t\t\tGraphObject obj = codom.nextElement();\r\n\t\t\t\t// rule r1 produce at least one object which is used in LHS of r2\r\n\t\t\t\tif (!r1.getInverseImage(obj).hasMoreElements()) {\r\n\t\t\t\t\tresult = true;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (this.ruleSequence.isObjFlowActive()) {\r\n\t\t\t\t\t\tfinal ObjectFlow objFlow = this.ruleSequence.getObjFlowForRules(r1, indx_r1, r2, indx_r2);\r\n\t\t\t\t\t\tif (objFlow != null && !objFlow.isEmpty()) \r\n\t\t\t\t\t\t\tresult = pureEnablingAlongObjectFlow(embedding, objFlow);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// add match to matchSequence\r\n\t\t\t\t\tif (result)\r\n\t\t\t\t\t\tthis.ruleSequence.getMatchSequence().addTotalPureEnablingSourceMatch(r2, r1, embedding, indx_r2, indx_r1);\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak; \r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif (result) {\r\n\t\t\t\tboolean attrCondUsesIP = attrConditionUsesInputParameterRight(r2, r1, embedding);\r\n\t\t\t\t\t\r\n\t\t\t\tif (attrCondUsesIP) {\r\n\t\t\t\t\tsetRuleResult(indx_r2, r2.getName(), false, ApplicabilityConstants.PURE_ENABLING_PREDECESSOR, r1.getName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetRuleResult(indx_r2, r2.getName(), true, ApplicabilityConstants.PURE_ENABLING_PREDECESSOR, r1.getName());\t\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// TODO: apply r1, then r2 along the comatch of r2 to check NACs of r2\r\n//\t\t\tresult = isPurelyEnabledRuleApplicable(r1, r2, embedding, g);\r\n//\t\t\tif (result) {\r\n//\t\t\t\t// to test : add match to matchSequence\r\n//\t\t\t\tthis.ruleSequence.getMatchSequence().addTotalPureEnablingSourceOfMatch(r2, r1, embedding, indx_r2, indx_r1);\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tembedding.dispose();\r\n\t\tBaseFactory.theFactory().unsetAllTransientAttrValuesOfRule(r1);\r\n//\t\tr1.getRight().setNotificationRequired(true);\r\n\t\t\r\n\t\treturn result;\r\n\t}", "@Test\n public void testRuleClass() throws Exception {\n\n HepProgramBuilder programBuilder = HepProgram.builder();\n programBuilder.addRuleClass( CoerceInputsRule.class );\n\n HepPlanner planner = new HepPlanner( programBuilder.build() );\n\n planner.addRule( new CoerceInputsRule( LogicalUnion.class, false, AlgFactories.LOGICAL_BUILDER ) );\n planner.addRule( new CoerceInputsRule( LogicalIntersect.class, false, AlgFactories.LOGICAL_BUILDER ) );\n\n checkPlanning( planner, \"(select name from dept union select ename from emp) intersect (select fname from customer.contact)\" );\n }", "@Test\n void testGrammarBasics() {\n Production<NT, T> prod1 = new Production<>(NT.A, List.of(\n left(NT.B), right(T.E)\n ));\n\n Production<NT, T> prod2 = new Production<>(NT.B, List.of(\n right(T.F)\n ));\n\n Production<NT, T> prod3 = prod1.withSource(NT.C).withRule(List.of(\n left(NT.B), right(T.F), left(NT.C), left(NT.A)\n ));\n\n assertThrows(IllegalArgumentException.class, () -> new CFGrammar<>(NT.C, List.of(prod1, prod2)));\n assertThrows(IllegalArgumentException.class, () -> new CFGrammar<>(NT.C, List.of(prod3, prod2)));\n\n Production<NT, T> prod4 = new Production<>(NT.A, List.of(\n left(NT.B), right(T.E)\n ));\n\n Production<NT, T> prod5 = new Production<>(NT.B, List.of(\n left(NT.A), right(T.E)\n ));\n\n assertThrows(IllegalArgumentException.class, () -> new CFGrammar<>(NT.A, List.of(prod4)));\n\n CFGrammar<NT, T, Production<NT, T>> g = new CFGrammar<>(NT.A, List.of(prod4, prod5));\n assertEquals(HashSet.of(NT.B, NT.A), g.getNonTerminalsUsed());\n assertEquals(HashSet.of(T.E), g.getTerminalsUsed());\n }", "IRuleset add(IRuleset...rules);", "@Override\n public boolean rewritePre(Mutable<ILogicalOperator> opRef, IOptimizationContext context)\n throws AlgebricksException {\n\n boolean cboMode = this.getCBOMode(context);\n boolean cboTestMode = this.getCBOTestMode(context);\n\n if (!(cboMode || cboTestMode)) {\n return false;\n }\n\n // If we reach here, then either cboMode or cboTestMode is true.\n // If cboTestMode is true, then we use predefined cardinalities for datasets for asterixdb regression tests.\n // If cboMode is true, then all datasets need to have samples, otherwise the check in doAllDataSourcesHaveSamples()\n // further below will return false.\n ILogicalOperator op = opRef.getValue();\n if (!(joinClause(op) || ((op.getOperatorTag() == LogicalOperatorTag.DISTRIBUTE_RESULT)))) {\n return false;\n }\n\n // if this join has already been seen before, no need to apply the rule again\n if (context.checkIfInDontApplySet(this, op)) {\n return false;\n }\n\n //joinOps = new ArrayList<>();\n allJoinOps = new ArrayList<>();\n newJoinOps = new ArrayList<>();\n leafInputs = new ArrayList<>();\n varLeafInputIds = new HashMap<>();\n outerJoinsDependencyList = new ArrayList<>();\n assignOps = new ArrayList<>();\n assignJoinExprs = new ArrayList<>();\n buildSets = new ArrayList<>();\n\n IPlanPrettyPrinter pp = context.getPrettyPrinter();\n printPlan(pp, (AbstractLogicalOperator) op, \"Original Whole plan1\");\n leafInputNumber = 0;\n boolean canTransform = getJoinOpsAndLeafInputs(op);\n\n if (!canTransform) {\n return false;\n }\n\n convertOuterJoinstoJoinsIfPossible(outerJoinsDependencyList);\n\n printPlan(pp, (AbstractLogicalOperator) op, \"Original Whole plan2\");\n int numberOfFromTerms = leafInputs.size();\n\n if (LOGGER.isTraceEnabled()) {\n String viewInPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewInPlan\");\n LOGGER.trace(viewInPlan);\n }\n\n if (buildSets.size() > 1) {\n buildSets.sort(Comparator.comparingDouble(o -> o.second)); // sort on the number of tables in each set\n // we need to build the smaller sets first. So we need to find these first.\n }\n joinEnum.initEnum((AbstractLogicalOperator) op, cboMode, cboTestMode, numberOfFromTerms, leafInputs, allJoinOps,\n assignOps, outerJoinsDependencyList, buildSets, varLeafInputIds, context);\n\n if (cboMode) {\n if (!doAllDataSourcesHaveSamples(leafInputs, context)) {\n return false;\n }\n }\n\n printLeafPlans(pp, leafInputs, \"Inputs1\");\n\n if (assignOps.size() > 0) {\n pushAssignsIntoLeafInputs(pp, leafInputs, assignOps, assignJoinExprs);\n }\n\n printLeafPlans(pp, leafInputs, \"Inputs2\");\n\n int cheapestPlan = joinEnum.enumerateJoins(); // MAIN CALL INTO CBO\n if (cheapestPlan == PlanNode.NO_PLAN) {\n return false;\n }\n\n PlanNode cheapestPlanNode = joinEnum.allPlans.get(cheapestPlan);\n\n generateHintWarnings();\n\n if (numberOfFromTerms > 1) {\n getNewJoinOps(cheapestPlanNode, allJoinOps);\n if (allJoinOps.size() != newJoinOps.size()) {\n return false; // there are some cases such as R OJ S on true. Here there is an OJ predicate but the code in findJoinConditions\n // in JoinEnum does not capture this. Will fix later. Just bail for now.\n }\n buildNewTree(cheapestPlanNode, newJoinOps, new MutableInt(0));\n opRef.setValue(newJoinOps.get(0));\n\n if (assignOps.size() > 0) {\n for (int i = assignOps.size() - 1; i >= 0; i--) {\n MutableBoolean removed = new MutableBoolean(false);\n removed.setFalse();\n pushAssignsAboveJoins(newJoinOps.get(0), assignOps.get(i), assignJoinExprs.get(i), removed);\n if (removed.isTrue()) {\n assignOps.remove(i);\n }\n }\n }\n\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan after buildNewTree 1\");\n ILogicalOperator root = addRemainingAssignsAtTheTop(newJoinOps.get(0), assignOps);\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan after buildNewTree 2\");\n printPlan(pp, (AbstractLogicalOperator) root, \"New Whole Plan after buildNewTree\");\n\n // this will be the new root\n opRef.setValue(root);\n\n if (LOGGER.isTraceEnabled()) {\n String viewInPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewInPlanAgain\");\n LOGGER.trace(viewInPlan);\n String viewOutPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewOutPlan\");\n LOGGER.trace(viewOutPlan);\n }\n\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(\"---------------------------- Printing Leaf Inputs\");\n printLeafPlans(pp, leafInputs, \"Inputs\");\n // print joins starting from the bottom\n for (int i = newJoinOps.size() - 1; i >= 0; i--) {\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(i), \"join \" + i);\n }\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan\");\n printPlan(pp, (AbstractLogicalOperator) root, \"New Whole Plan\");\n }\n\n // turn of this rule for all joins in this set (subtree)\n for (ILogicalOperator joinOp : newJoinOps) {\n context.addToDontApplySet(this, joinOp);\n }\n\n } else {\n buildNewTree(cheapestPlanNode);\n }\n\n return true;\n }", "@Test\n void shouldExpandDifferentSeverities() {\n WorkflowJob job = createPipelineWithWorkspaceFilesWithSuffix(\"all-severities.xml\");\n\n job.setDefinition(new CpsFlowDefinition(\"node {\\n\"\n + \" stage ('Integration Test') {\\n\"\n + \" recordIssues tool: checkStyle(pattern: '**/\" + \"all-severities\" + \"*')\\n\"\n + \" def total = tm('${ANALYSIS_ISSUES_COUNT}')\\n\"\n + \" def error = tm('${ANALYSIS_ISSUES_COUNT, type=\\\"TOTAL_ERROR\\\"}')\\n\"\n + \" def high = tm('${ANALYSIS_ISSUES_COUNT, type=\\\"TOTAL_HIGH\\\"}')\\n\"\n + \" def normal = tm('${ANALYSIS_ISSUES_COUNT, type=\\\"TOTAL_NORMAL\\\"}')\\n\"\n + \" def low = tm('${ANALYSIS_ISSUES_COUNT, type=\\\"TOTAL_LOW\\\"}')\\n\"\n + \" echo '[total=' + total + ']' \\n\"\n + \" echo '[error=' + error + ']' \\n\"\n + \" echo '[high=' + high + ']' \\n\"\n + \" echo '[normal=' + normal + ']' \\n\"\n + \" echo '[low=' + low + ']' \\n\"\n + \" }\\n\"\n + \"}\", true));\n\n AnalysisResult baseline = scheduleBuildAndAssertStatus(job, Result.SUCCESS);\n\n assertThat(baseline).hasTotalSize(3);\n\n assertThat(baseline).hasTotalHighPrioritySize(0);\n assertThat(baseline).hasTotalErrorsSize(1);\n assertThat(baseline).hasTotalNormalPrioritySize(1);\n assertThat(baseline).hasTotalLowPrioritySize(1);\n\n assertThat(getConsoleLog(baseline)).contains(\"[total=\" + 3 + \"]\");\n\n assertThat(getConsoleLog(baseline)).contains(\"[error=\" + 1 + \"]\");\n assertThat(getConsoleLog(baseline)).contains(\"[high=\" + 0 + \"]\");\n assertThat(getConsoleLog(baseline)).contains(\"[normal=\" + 1 + \"]\");\n assertThat(getConsoleLog(baseline)).contains(\"[low=\" + 1 + \"]\");\n }", "private void applyRules () throws DataNormalizationException {\n\t\tapplyRules(null);\n\t}", "IRuleset add(IRuleset rule);", "private void filterAllRuleSetsForConfAndLift()\n\t{\n\t\truleCollection.forEach(lastRules->{\n\t\t\t\n\t\t\tif(!ListHelper.isNullOrEmpty(lastRules))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Current Filter Rule Size:\"+lastRules.get(0).getRuleSize());\n\t\t\t}\n\t\t\t\n\t\t\tIterator<RuleCompartment<T>> iter = lastRules.iterator();\n\t\t\t\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tRuleCompartment<T> eachRule = iter.next();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint ruleLength = eachRule.getRuleSize();\n\t\t\t\t\t\t\t\n\t\t\t\tif(ruleLength<config.getMinRuleLength())\n\t\t\t\t{\n\t\t\t\t\titer.remove();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble conf = eachRule.calculateConfidence(storage, evaluation);\n\t\t\t\t\n\t\t\t\tif(conf < config.minConf())\n\t\t\t\t{\n\t\t\t\t\titer.remove();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif(config.minLift()>0)\n\t\t\t\t{\n\t\t\t\t\tdouble lift = eachRule.calculateLift(storage, evaluation);\n\t\t\t\t\t\n\t\t\t\t\tif(lift < config.minLift())\n\t\t\t\t\t{\n\t\t\t\t\t\titer.remove();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Test\n public void testRun_DecisionOtherwise_IN_A1_D_A3_FN() {\n // Final node creation\n final Node fn = NodeFactory.createNode(\"#6\", NodeType.FINAL);\n\n // Action node 3 (id #5) creation and flow to final node\n final String A3_ID = \"#5\";\n final Node an3 = NodeFactory.createNode(A3_ID, NodeType.ACTION);\n final ExecutableActionMock objAn3 = ExecutableActionMock.create(KEY, A3_ID);\n ((ContextExecutable) an3).setObject(objAn3);\n ((ContextExecutable) an3).setMethod(objAn3.getPutIdInContextMethod());\n ((SingleControlFlowNode) an3).setFlow(fn);\n\n // Action node 2 (id #4) creation and flow to final node\n final String A2_ID = \"#4\";\n final Node an2 = NodeFactory.createNode(A2_ID, NodeType.ACTION);\n final ExecutableActionMock objAn2 = ExecutableActionMock.create(KEY, A2_ID);\n ((ContextExecutable) an2).setObject(objAn2);\n ((ContextExecutable) an2).setMethod(objAn2.getPutIdInContextMethod());\n ((SingleControlFlowNode) an2).setFlow(fn);\n\n final String A1_KEY = \"a1_key\";\n final String A1_ID = \"#2\";\n\n // Decision node (id #3) creation\n final Node dNode = NodeFactory.createNode(\"#3\", NodeType.DECISION);\n // Flow control from decision to action node 2 (if KEY == #2 goto A2)\n Map<FlowCondition, Node> flows = new HashMap<>(1);\n final FlowCondition fc2a2 = new FlowCondition(A1_KEY, ConditionType.EQ, \"ANYTHING WRONG\");\n flows.put(fc2a2, an2);\n // Otherwise, goto A3\n ((ConditionalControlFlowNode) dNode).setFlows(flows, an3);\n\n // Action node 1 (id #2) creation. Sets the context to be used by the decision\n final Node an1 = NodeFactory.createNode(A1_ID, NodeType.ACTION);\n final ExecutableActionMock objAn1 = ExecutableActionMock.create(A1_KEY, A1_ID);\n ((ContextExecutable) an1).setObject(objAn1);\n ((ContextExecutable) an1).setMethod(objAn1.getPutIdInContextMethod());\n ((SingleControlFlowNode) an1).setFlow(dNode);\n\n // Initial node (id #1) creation and flow to action node 1\n final Node iNode = NodeFactory.createNode(\"#1\", NodeType.INITIAL);\n ((SingleControlFlowNode) iNode).setFlow(an1);\n\n final Jk4flowWorkflow wf = Jk4flowWorkflow.create(iNode);\n\n ENGINE.run(wf);\n\n Assert.assertEquals(A3_ID, wf.getContext().get(KEY));\n }", "private static Instances pruneRule(Instances data, Instances predOr, Instances itemsets) {\n\t\tInstances bestCopy = itemsets;\n\t\tInstances workingData = new Instances(predOr);\n\t\tdouble bestError = calcError(data, predOr);\n\t\tfor(int i = itemsets.numInstances() - 2; i > 0 ; i--){\n\t\t\tInstances itemsetCopy = new Instances(itemsets);\n\t\t\titemsetCopy.delete(i);\n\t\t\tapplyRules(itemsetCopy, workingData);\n\t\t\tdouble error = calcError(data, workingData);\n\t\t\tif( calcNewError(error) < bestError ){ \n\t\t\t\tbestError = calcNewError(error);\n\t\t\t\tbestCopy = itemsetCopy;\n\t\t\t}\n\t\t}\n\t\treturn bestCopy;\n\t}", "public static void cross(LogicProblem logicProblem, boolean applyChanges) \r\n throws RelationshipConflictException {\r\n// System.out.println(\"cross invoked\");\r\n HashMap<ItemPair,Relationship> relationshipTable = logicProblem.getRelationshipTable();\r\n\r\n HashSet<CategoryPair> categoryPairs = logicProblem.getCategoryPairs();\r\n \r\n for (CategoryPair categoryPair : categoryPairs) {\r\n //for (Category cat1 : logicProblem.getCategories()){\r\n // for (Category cat2 : logicProblem.getCategories()){\r\n // if (cat1!=cat2) {\r\n Category cat1 = categoryPair.first();\r\n Category cat2 = categoryPair.last();\r\n\r\n \r\n //for (Category cat1 : logicProblem.getCategories()){\r\n // for (Category cat2 : logicProblem.getCategories()){\r\n // if (cat1!=cat2) {\r\n for (Item item1 : cat1.getItems()){\r\n for (Item item2 : cat2.getItems()){\r\n Relationship sourceRelationship = relationshipTable.get(new ItemPair(item1,item2));\r\n if (sourceRelationship.getValue()==Relationship.ValueType.VALUE_YES) {\r\n// System.out.println(\"discovered VALUE_YES, setting up the cross\");\r\n for (Item itemA : cat1.getItems()){\r\n if (itemA != item1) {\r\n Relationship rel = relationshipTable.get(new ItemPair(itemA,item2));\r\n // could track superfluous and conflicts here\r\n if (rel.getValue() == Relationship.ValueType.VALUE_UNKNOWN) {\r\n Processor.setRelationship(logicProblem, applyChanges, rel, \r\n Relationship.ValueType.VALUE_NO,\r\n Relationship.LogicType.CROSS, sourceRelationship);\r\n// rel.setValue(Relationship.ValueType.VALUE_NO,Relationship.LogicType.CROSS,sourceRelationship);\r\n// System.out.println(\"created VALUE_NO relationship between \"+itemA.getName()+\" and \"+item2.getName()+ \" (CROSS)\");\r\n }\r\n }\r\n }\r\n for (Item itemB : cat2.getItems()){\r\n if (itemB != item2) {\r\n Relationship rel = relationshipTable.get(new ItemPair(item1,itemB));\r\n // could track superfluous and conflicts here\r\n if (rel.getValue() == Relationship.ValueType.VALUE_UNKNOWN) {\r\n Processor.setRelationship(logicProblem, applyChanges, rel, \r\n Relationship.ValueType.VALUE_NO,\r\n Relationship.LogicType.CROSS, sourceRelationship);\r\n// rel.setValue(Relationship.ValueType.VALUE_NO,Relationship.LogicType.CROSS,sourceRelationship);\r\n// System.out.println(\"created VALUE_NO relationship between \"+item1.getName()+\" and \"+itemB.getName()+ \" (CROSS)\");\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "public ValidationResult validateMerge(Concept concept1,\n Concept concept2);", "@Test\n public void preDefine_TestB()\n {\n //list of prerequisites,i.e. source accounts and destination accounts\n //source accounts created and added to db\n Account Deposit_High_Risk_srcAccount = new Account(3123, \"Deposit_High_Risk_srcAccount\", 10000);\n Account Deposit_Low_Risk_srcAccount = new Account(8665, \"Deposit_Low_Risk_srcAccount\", 10000);\n Account Main_High_Risk_srcAccount = new Account(3143, \"Main_High_Risk_srcAccount\", 10000);\n Account Main_Low_Risk_srcAccount = new Account(3133, \"Main_Low_Risk_srcAccount\", 10000);\n Account Commission_High_Risk_srcAccount = new Account(6565, \"Commission_High_Risk_srcAccount\", 10000);\n Account Commission_Low_Risk_srcAccount = new Account(6588, \"Commission_Low_Risk_srcAccount\", 10000);\n acc_db.addAccount(Deposit_High_Risk_srcAccount);\n acc_db.addAccount(Deposit_Low_Risk_srcAccount);\n acc_db.addAccount(Main_High_Risk_srcAccount);\n acc_db.addAccount(Main_Low_Risk_srcAccount);\n acc_db.addAccount(Commission_High_Risk_srcAccount);\n acc_db.addAccount(Commission_Low_Risk_srcAccount);\n\n //create and add destination accounts\n Account Commission_High_Risk_destAccount = new Account(4444, \"Commission_High_Risk_destAccount\", 10000);\n Account Commission_Low_Risk_destAccount = new Account(4445, \"Commission_Low_Risk_destAccount\", 10000);\n acc_db.addAccount(Commission_High_Risk_destAccount);\n acc_db.addAccount(Commission_Low_Risk_destAccount);\n\n //adding Main Transaction Destination Accounts to database\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n CompoundTransaction ct = new CompoundTransaction(\"Low Risk Preset\");\n\n List<Account> mainDests = new ArrayList<Account>();\n mainDests.add(acc);\n mainDests.add(acc2);\n\n List<Long> mainAmounts = new ArrayList<Long>();\n long main_amount1 = 130;\n long main_amount2=70;\n mainAmounts.add(main_amount1);\n mainAmounts.add(main_amount2);\n\n //Creating and Adding Deposit Destination Account to Database\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n long depAmount = 20;\n acc_db.addAccount(acc3);\n\n RiskPresets preset = new RiskPresets(\"low\");\n\n Assert.assertEquals(true,ct.preDefine(preset,acc3,depAmount,mainDests,mainAmounts,acc_db));\n }", "private void setUp() {\r\n Calendar calendar1 = Calendar.getInstance();\r\n calendar1.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n calendar1.roll(Calendar.DAY_OF_YEAR, -6);\r\n \r\n Calendar calendar2 = Calendar.getInstance();\r\n calendar2.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n \r\n acceptedDatesRange[0] = calendar1.get(Calendar.DAY_OF_YEAR);\r\n acceptedDatesRange[1] = calendar2.get(Calendar.DAY_OF_YEAR); \r\n \r\n if(acceptedDatesRange[1] < 7) {\r\n acceptedDatesRange[0] = 1; \r\n }\r\n \r\n //MiscStuff.writeToLog(\"Ranges set \" + calendar1.get\r\n // (Calendar.DAY_OF_YEAR) + \" \" + calendar2.get(Calendar.DAY_OF_YEAR));\r\n }", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "public static List<ExtendRule> removeRedundantExtendedRules_rangeBased(List<ExtendRule> rules) {\n LOGGER.info(\"STARTED removeRedundantExtendedRules - range based\");\n LOGGER.info(\"Rules on start:\" + rules.size());\n ExtendRule defRule = rules.get(rules.size()-1);\n Consequent defClass = defRule.getConsequent(); \n for (Iterator<ExtendRule> it = rules.iterator(); it.hasNext();) { \n ExtendRule PRCandidate = it.next();\n // PRCandidate = go through all rules with default class in the consequent\n if (!PRCandidate.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n // skip default rule\n if (PRCandidate.equals(defRule))\n {\n continue;\n } \n ArrayList<RuleMultiItem> PR_items = PRCandidate.getAntecedent().getItems();\n //create hashmap for fast access\n HashMap<Attribute,RuleMultiItem> PR_itemsMap = new HashMap();\n for (RuleMultiItem rmi : PR_items)\n {\n PR_itemsMap.put(rmi.getAttribute(), rmi);\n }\n \n // check if there is no other rule classifying to different class that shares part of the region\n // matched by the antecedent of PRCandidate \n boolean clashingRuleFound=false;\n boolean positionBelowPRCand = false;\n for (Iterator<ExtendRule> innerIt = rules.iterator(); innerIt.hasNext();) {\n ExtendRule candidateClash = innerIt.next();\n // candidateClash is PRCandidate, which would always evaluate to overlap!\n\n if (candidateClash.equals(PRCandidate))\n {\n positionBelowPRCand=true;\n continue;\n }\n // candidateClash = go through all rules with OTHER than default class in consequent \n if (candidateClash.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n if (!positionBelowPRCand) continue;\n \n // check if at leat one literal in PRCandidate has empty intersection with Clash on shared attribute\n \n //in case there is no shared attribute, the intersection is non empty\n ArrayList<RuleMultiItem> literalsInClashOnSharedAtt = new ArrayList();\n for (RuleMultiItem clash_rmi : candidateClash.getAntecedent().getItems())\n {\n if (PR_itemsMap.containsKey(clash_rmi.getAttribute()))\n {\n literalsInClashOnSharedAtt.add(clash_rmi);\n }\n } \n if (literalsInClashOnSharedAtt.isEmpty())\n {\n clashingRuleFound =true;\n break;\n }\n // if there is NO intersection on at leat one of the shared attributes => no CLASH\n // ELSE => CLASH\n boolean attLeastOneAttDisjunct=true;\n for (RuleMultiItem clash_rmi : literalsInClashOnSharedAtt)\n {\n //PRCandidate has a literal created over the same attribute\n RuleMultiItem machingPR_RMI = PR_itemsMap.get(clash_rmi.getAttribute());\n\n //do values in the candidate clash intersect with values in PRCandidate?\n \n for (AttributeValue v : machingPR_RMI.getAttributeValues())\n {\n if (clash_rmi.getAttributeValues().contains(v))\n {\n attLeastOneAttDisjunct=false;\n }\n }\n if (attLeastOneAttDisjunct) // if we have non-empty intersection on one att we do not have to test the other ones, rule matches different part of the data space\n {\n //go to next PRCandidate \n break;\n } \n } \n if (!attLeastOneAttDisjunct)\n {\n //go to next PRCandidate \n clashingRuleFound=true;\n break;\n } \n }\n if (clashingRuleFound == false)\n {\n //no other rule with different consequent covering at least one shared value was found\n //this rule can be removed\n LOGGER.fine(\"Removing rule:\" + PRCandidate.toString());\n it.remove();\n } \n }\n LOGGER.info(\"Rules on finish:\" + rules.size());\n LOGGER.info(\"FINISHED removeRedundantExtendedRules - range based\");\n return rules;\n }", "@Test\n\tpublic void testResourcesForChainedOperators() throws Exception {\n\t\tResourceSpec resource1 = new ResourceSpec(0.1, 100);\n\t\tResourceSpec resource2 = new ResourceSpec(0.2, 200);\n\t\tResourceSpec resource3 = new ResourceSpec(0.3, 300);\n\t\tResourceSpec resource4 = new ResourceSpec(0.4, 400);\n\t\tResourceSpec resource5 = new ResourceSpec(0.5, 500);\n\t\tResourceSpec resource6 = new ResourceSpec(0.6, 600);\n\t\tResourceSpec resource7 = new ResourceSpec(0.7, 700);\n\n\t\tMethod opMethod = Operator.class.getDeclaredMethod(\"setResources\", ResourceSpec.class);\n\t\topMethod.setAccessible(true);\n\n\t\tMethod sinkMethod = DataSink.class.getDeclaredMethod(\"setResources\", ResourceSpec.class);\n\t\tsinkMethod.setAccessible(true);\n\n\t\tMapFunction<Long, Long> mapFunction = new MapFunction<Long, Long>() {\n\t\t\t@Override\n\t\t\tpublic Long map(Long value) throws Exception {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t};\n\n\t\tFilterFunction<Long> filterFunction = new FilterFunction<Long>() {\n\t\t\t@Override\n\t\t\tpublic boolean filter(Long value) throws Exception {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\tExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n\t\tDataSet<Long> input = env.fromElements(1L, 2L, 3L);\n\t\topMethod.invoke(input, resource1);\n\n\t\tDataSet<Long> map1 = input.map(mapFunction);\n\t\topMethod.invoke(map1, resource2);\n\n\t\t// CHAIN(Source -> Map -> Filter)\n\t\tDataSet<Long> filter1 = map1.filter(filterFunction);\n\t\topMethod.invoke(filter1, resource3);\n\n\t\tIterativeDataSet<Long> startOfIteration = filter1.iterate(10);\n\t\topMethod.invoke(startOfIteration, resource4);\n\n\t\tDataSet<Long> map2 = startOfIteration.map(mapFunction);\n\t\topMethod.invoke(map2, resource5);\n\n\t\t// CHAIN(Map -> Filter)\n\t\tDataSet<Long> feedback = map2.filter(filterFunction);\n\t\topMethod.invoke(feedback, resource6);\n\n\t\tDataSink<Long> sink = startOfIteration.closeWith(feedback).output(new DiscardingOutputFormat<Long>());\n\t\tsinkMethod.invoke(sink, resource7);\n\n\t\tPlan plan = env.createProgramPlan();\n\t\tOptimizer pc = new Optimizer(new Configuration());\n\t\tOptimizedPlan op = pc.compile(plan);\n\n\t\tJobGraphGenerator jgg = new JobGraphGenerator();\n\t\tJobGraph jobGraph = jgg.compileJobGraph(op);\n\n\t\tJobVertex sourceMapFilterVertex = jobGraph.getVerticesSortedTopologicallyFromSources().get(0);\n\t\tJobVertex iterationHeadVertex = jobGraph.getVerticesSortedTopologicallyFromSources().get(1);\n\t\tJobVertex feedbackVertex = jobGraph.getVerticesSortedTopologicallyFromSources().get(2);\n\t\tJobVertex sinkVertex = jobGraph.getVerticesSortedTopologicallyFromSources().get(3);\n\t\tJobVertex iterationSyncVertex = jobGraph.getVerticesSortedTopologicallyFromSources().get(4);\n\n\t\tassertTrue(sourceMapFilterVertex.getMinResources().equals(resource1.merge(resource2).merge(resource3)));\n\t\tassertTrue(iterationHeadVertex.getPreferredResources().equals(resource4));\n\t\tassertTrue(feedbackVertex.getMinResources().equals(resource5.merge(resource6)));\n\t\tassertTrue(sinkVertex.getPreferredResources().equals(resource7));\n\t\tassertTrue(iterationSyncVertex.getMinResources().equals(resource4));\n\t}", "@Test\n public void testRun_DecisionWithEquals_IN_A1_D_A2_FN() {\n // Final node creation\n final Node fn = NodeFactory.createNode(\"#6\", NodeType.FINAL);\n\n // Action node 3 (id #5) creation and flow set to final node\n final String A3_ID = \"#5\";\n final Node an3 = NodeFactory.createNode(A3_ID, NodeType.ACTION);\n final ExecutableActionMock objAn3 = ExecutableActionMock.create(KEY, A3_ID);\n ((ContextExecutable) an3).setObject(objAn3);\n ((ContextExecutable) an3).setMethod(objAn3.getPutIdInContextMethod());\n ((SingleControlFlowNode) an3).setFlow(fn);\n\n // Action node 2 (id #4) creation and flow set to final node\n final String A2_ID = \"#4\";\n final Node an2 = NodeFactory.createNode(A2_ID, NodeType.ACTION);\n final ExecutableActionMock objAn2 = ExecutableActionMock.create(KEY, A2_ID);\n ((ContextExecutable) an2).setObject(objAn2);\n ((ContextExecutable) an2).setMethod(objAn2.getPutIdInContextMethod());\n ((SingleControlFlowNode) an2).setFlow(fn);\n\n final String A1_KEY = \"a1_key\";\n final String A1_ID = \"#2\";\n\n // Decision node (id #3) creation\n final Node dn = NodeFactory.createNode(\"#3\", NodeType.DECISION);\n // Flow control from decision to action node 2 (if KEY == #2 goto A2)\n Map<FlowCondition, Node> flows = new HashMap<>(1);\n final FlowCondition fc2a2 = new FlowCondition(A1_KEY, ConditionType.EQ, A1_ID);\n flows.put(fc2a2, an2);\n // Otherwise, goto A3\n ((ConditionalControlFlowNode) dn).setFlows(flows, an3);\n\n // Action node 1 (id #2) creation. Sets the context to be used by the decision\n final Node an1 = NodeFactory.createNode(A1_ID, NodeType.ACTION);\n final ExecutableActionMock objAn1 = ExecutableActionMock.create(A1_KEY, A1_ID);\n ((ContextExecutable) an1).setObject(objAn1);\n ((ContextExecutable) an1).setMethod(objAn1.getPutIdInContextMethod());\n ((SingleControlFlowNode) an1).setFlow(dn);\n\n // Initial node (id #1) creation and flow set to action node 1\n final Node iNode = NodeFactory.createNode(\"#1\", NodeType.INITIAL);\n ((SingleControlFlowNode) iNode).setFlow(an1);\n\n final Jk4flowWorkflow wf = Jk4flowWorkflow.create(iNode);\n\n ENGINE.run(wf);\n\n Assert.assertEquals(A2_ID, wf.getContext().get(KEY));\n }", "private List<ConcurrentRule> makeConcurrentRulesDuetoDependency(\r\n\t\t\tfinal ConcurrentRule cr1, \r\n\t\t\tfinal Rule r2,\r\n\t\t\tfinal Hashtable<?, ?> matchmap) {\n\t\tfinal DependencyPairContainer \r\n\t\tdependencyContainer = this.makeDependencyPairContainer();\r\n\t\tdependencyContainer.enableProduceConcurrentRule(true);\r\n\t\t// if this.completeConcurrency Is false, only max overlapping above nodes will be considered\r\n\t\t// otherwise use all overlappings to create concurrent rules\r\n\t\tdependencyContainer.setCompleteConcurrency(this.completeConcurrency);\r\n\t\t\r\n\t\tList<ConcurrentRule> list = null; \r\n\t\ttry {\r\n\t\t\tVector<Pair<Pair<OrdinaryMorphism, OrdinaryMorphism>, Pair<OrdinaryMorphism, OrdinaryMorphism>>>\r\n\t\t\tcriticalPairs = dependencyContainer.getCriticalPair(cr1.getRule(), r2, CriticalPair.EXCLUDE, true);\r\n\t\t\tif (criticalPairs != null) {\r\n\t\t\t\tlist = dependencyContainer.getConcurrentRules();\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {}\r\n\t\t\r\n\t\tif (list == null) \r\n\t\t\tlist = new Vector<ConcurrentRule>(1);\t\t\r\n\t\r\n\t\tif (this.completeConcurrency) {\r\n\t\t\t// make concurrent rule with disjoint (RHS1+LHS2) of (r1, r2)\t\r\n\t\t\tfinal ConcurrentRule cr = new ConcurrentRule(cr1, r2);\r\n\t\t\tif (cr.getRule() != null) {\r\n\t\t\t\tlist.add(cr);\r\n\t\t\t}\r\n\t\t} \r\n\t\t\r\n\t\tfor (int c=0; c<list.size(); c++) {\r\n\t\t\tif (this.completeConcurRuleBackward)\r\n\t\t\t\tlist.get(c).setSecondSourceConcurrentRule(cr1);\r\n\t\t\telse\r\n\t\t\t\tlist.get(c).setFirstSourceConcurrentRule(cr1);\r\n\t\t}\r\n\t\r\n\t\textendRuleNameByIndex(list);\r\n//\t\tSystem.out.println(\"---> ApplicabilityChecker.makeConcurrentRulessDuetoDependency: count: \"+list.size());\r\n\t\treturn list;\r\n\t}", "public void testConjoinedVariablesPropagateAccrossConjunction() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), h(x), (f(X, Y) :- g(X), h(Y))], (?- f(X, X)), [[X <-- x]]]\");\n }", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "private static void applyRules(Instances itemsets, Instances predictions) {\n\t\tfor (int i=0; i<predictions.numInstances(); ++i) {\n\t\t\tInstance instance = predictions.instance(i);\n\t\t\tboolean covered = true;\n\t\t\tfor (int j= 0; j<itemsets.numInstances(); ++j) {\n\t\t\t\tInstance rule = itemsets.instance(j);\n\t\t\t\tcovered = true;\n\t\t\t\tfor (int k=0; k< itemsets.numAttributes() -1 ; ++k) {\n\t\t\t\t\tif (rule.value(k)==1) {\n\t\t\t\t\t\tcovered = instance.value(k)==1;\n\t\t\t\t\t\tif(!covered){\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\t\n\t\t\t\t}\n\t\t\t\tif (covered) {\n\t\t\t\t\t\n\t\t\t\t\tinstance.setClassValue(rule.classValue());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testSubsequentRunsWithUnsatisfiableConstraint() {\n System.out.println(\" - test subsequent runs with unsatisfiable constraint\");\n // set constraint\n problem.addMandatoryConstraint(new NeverSatisfiedConstraintStub());\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform multiple runs (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n // verify\n assertNull(searchLowTemp.getBestSolution());\n assertNull(searchMedTemp.getBestSolution());\n assertNull(searchHighTemp.getBestSolution());\n }", "@Test\n public void preDefine_TestA()\n {\n //list of prerequisites,i.e. source accounts and destination accounts\n //source accounts created and added to db\n Account Deposit_High_Risk_srcAccount = new Account(3123, \"Deposit_High_Risk_srcAccount\", 10000);\n Account Deposit_Low_Risk_srcAccount = new Account(8665, \"Deposit_Low_Risk_srcAccount\", 10000);\n Account Main_High_Risk_srcAccount = new Account(3143, \"Main_High_Risk_srcAccount\", 10000);\n Account Main_Low_Risk_srcAccount = new Account(3133, \"Main_Low_Risk_srcAccount\", 10000);\n Account Commission_High_Risk_srcAccount = new Account(6565, \"Commission_High_Risk_srcAccount\", 10000);\n Account Commission_Low_Risk_srcAccount = new Account(6588, \"Commission_Low_Risk_srcAccount\", 10000);\n acc_db.addAccount(Deposit_High_Risk_srcAccount);\n acc_db.addAccount(Deposit_Low_Risk_srcAccount);\n acc_db.addAccount(Main_High_Risk_srcAccount);\n acc_db.addAccount(Main_Low_Risk_srcAccount);\n acc_db.addAccount(Commission_High_Risk_srcAccount);\n acc_db.addAccount(Commission_Low_Risk_srcAccount);\n\n //create and add destination accounts\n Account Commission_High_Risk_destAccount = new Account(4444, \"Commission_High_Risk_destAccount\", 10000);\n Account Commission_Low_Risk_destAccount = new Account(4445, \"Commission_Low_Risk_destAccount\", 10000);\n acc_db.addAccount(Commission_High_Risk_destAccount);\n acc_db.addAccount(Commission_Low_Risk_destAccount);\n\n\n\n //adding Main Transaction Destination Accounts to database\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n CompoundTransaction ct = new CompoundTransaction(\"High Risk Preset\");\n\n List<Account> mainDests = new ArrayList<Account>();\n mainDests.add(acc);\n mainDests.add(acc2);\n\n List<Long> mainAmounts = new ArrayList<Long>();\n long main_amount1 = 130;\n long main_amount2=70;\n mainAmounts.add(main_amount1);\n mainAmounts.add(main_amount2);\n\n //Creating and Adding Deposit Destination Account to Database\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n long depAmount = 20;\n acc_db.addAccount(acc3);\n\n RiskPresets preset = new RiskPresets(\"high\");\n\n Assert.assertEquals(true,ct.preDefine(preset,acc3,depAmount,mainDests,mainAmounts,acc_db));\n }", "E1Rule createE1Rule();", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n public static void main(String[] args) throws ConfigurationException,\n RuleExecutionSetCreateException, IOException,\n RuleSessionTypeUnsupportedException, RuleSessionCreateException,\n RuleExecutionSetNotFoundException, InvalidRuleSessionException,\n ClassNotFoundException, RuleExecutionSetRegisterException {\n\n String ruleEngineServiceUri = UriConstants.RULE_ENGINE_SERVICE_URI;\n\n Class.forName(UriConstants.RULE_SERVICE_PROVIDER_CLASS_NAME);\n\n RuleServiceProvider serviceProvider = RuleServiceProviderManager\n .getRuleServiceProvider(ruleEngineServiceUri);\n\n RuleAdministrator ruleAdministrator = serviceProvider\n .getRuleAdministrator();\n\n RuleEngineLog.debug(ruleAdministrator.toString());\n\n Map params = null;\n // InputStream stream = null;\n\n String bindUri = null;\n\n LogisticsRule logisticsRule = buildLogisticsRule();\n\n FlavorRule flavorRule = buildFlavorRule();\n\n RuleSet ruleSet = new RuleSet(\"multi-logisitic--ruleset\");\n\n ruleSet.addRule(logisticsRule);\n ruleSet.addRule(flavorRule);\n // ruleSet.add(logisticsRule1);\n\n RuleExecutionSet ruleExecutionSet = ruleAdministrator\n .getLocalRuleExecutionSetProvider(params).createRuleExecutionSet(\n ruleSet, null);\n\n bindUri = ruleExecutionSet.getName();\n\n ruleAdministrator.registerRuleExecutionSet(bindUri, ruleExecutionSet, null);\n\n RuleEngineLog.debug(ruleExecutionSet);\n //\n RuleRuntime ruleRunTime = serviceProvider.getRuleRuntime();\n\n StatelessRuleSession srs = (StatelessRuleSession) ruleRunTime\n .createRuleSession(bindUri, params, RuleRuntime.STATELESS_SESSION_TYPE);\n\n List inputList = new LinkedList();\n\n String productReview1 = \"一直在你们家购买,感觉奶粉是保真的。就是发货速度稍微再快一些就好了。先谢谢了\";\n\n String productReview2 = \"说什么原装进口的 但是和我原本进口的奶粉还是有区别 奶很甜 宝宝吃了这个奶粉后胃口很差 都不爱吃其他东西 本来每天定时有吃两顿饭的 现在吃了这个奶粉后 饭也不要吃了 现在一个没有开 另一罐开了放着没有喝\";\n\n ProductReview pr1 = new ProductReview(\"uid1\", productReview1);\n\n ProductReview pr2 = new ProductReview(\"uid2\", productReview2);\n\n inputList.add(pr1);\n inputList.add(pr2);\n\n // inputList.add(new String(\"Bar\"));\n // inputList.add(new Integer(5));\n // inputList.add(new Float(6));\n List resultList = srs.executeRules(inputList);\n\n // release the session\n srs.release();\n\n // System.out.println(\"executeRules: \" + resultList);\n for (Object o : resultList) {\n System.out.println(o);\n }\n\n }", "@Test\n public void testAccept() throws IOException {\n Predicate<GraphElementWithStatistics> predicate = new TimeWindowPredicate(new Date(0L), new Date(100L));\n RawGraphElementWithStatisticsPredicate rawPredicate = new RawGraphElementWithStatisticsPredicate(predicate);\n GraphElementWithStatistics gews1 = new GraphElementWithStatistics(new GraphElement(\n new Entity(\"type\", \"value\", \"summaryType\", \"summarySubType\", \"\", new Date(10L), new Date(90L))),\n new SetOfStatistics(\"count\", new Count(1)));\n assertTrue(predicate.accept(gews1));\n RawGraphElementWithStatistics rawGews1 = new RawGraphElementWithStatistics(ConversionUtils.getKeysFromGraphElement(gews1.getGraphElement()).getFirst(),\n ConversionUtils.getValueFromSetOfStatistics(gews1.getSetOfStatistics()));\n assertTrue(rawPredicate.accept(rawGews1));\n GraphElementWithStatistics gews2 = new GraphElementWithStatistics(new GraphElement(\n new Entity(\"type\", \"value\", \"summaryType\", \"summarySubType\", \"\", new Date(1000L), new Date(10000L))),\n new SetOfStatistics(\"count\", new Count(1)));\n assertFalse(predicate.accept(gews2));\n RawGraphElementWithStatistics rawGews2 = new RawGraphElementWithStatistics(ConversionUtils.getKeysFromGraphElement(gews2.getGraphElement()).getFirst(),\n ConversionUtils.getValueFromSetOfStatistics(gews2.getSetOfStatistics()));\n assertFalse(rawPredicate.accept(rawGews2));\n\n // Composite RawGraphElementWithStatisticsPredicate\n SummaryTypePredicate summaryTypePredicate = new SummaryTypeInSetPredicate(Collections.singleton(\"abc\"));\n Predicate<GraphElementWithStatistics> predicate2 = new CombinedPredicates(predicate, summaryTypePredicate, CombinedPredicates.Combine.OR);\n rawPredicate = new RawGraphElementWithStatisticsPredicate(predicate2);\n GraphElementWithStatistics gews3 = new GraphElementWithStatistics(new GraphElement(\n new Entity(\"type\", \"value\", \"abc\", \"summarySubType\", \"\", new Date(10L), new Date(90L))),\n new SetOfStatistics(\"count\", new Count(1)));\n assertTrue(predicate2.accept(gews1));\n assertTrue(predicate2.accept(gews3));\n rawGews1 = new RawGraphElementWithStatistics(ConversionUtils.getKeysFromGraphElement(gews3.getGraphElement()).getFirst(),\n ConversionUtils.getValueFromSetOfStatistics(gews3.getSetOfStatistics()));\n assertTrue(rawPredicate.accept(rawGews1));\n GraphElementWithStatistics gews4 = new GraphElementWithStatistics(new GraphElement(\n new Entity(\"type\", \"value\", \"summaryType\", \"summarySubType\", \"\", new Date(1000L), new Date(10000L))),\n new SetOfStatistics(\"count\", new Count(1)));\n assertFalse(predicate.accept(gews4));\n RawGraphElementWithStatistics rawGews4 = new RawGraphElementWithStatistics(ConversionUtils.getKeysFromGraphElement(gews4.getGraphElement()).getFirst(),\n ConversionUtils.getValueFromSetOfStatistics(gews4.getSetOfStatistics()));\n assertFalse(rawPredicate.accept(rawGews4));\n }", "public String newRuleFirstCondition(Situation threeSituationsAgo)\n {\n String firstPredicate;\n //---------------\n firstPredicate = \"ninguno\";\n\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4) &&\n (threeSituationsAgo.puzzle[1][0] == 5) &&\n (threeSituationsAgo.puzzle[1][1] == 6) &&\n (threeSituationsAgo.puzzle[1][2] == 7) &&\n (threeSituationsAgo.puzzle[1][3] == 8) &&\n (threeSituationsAgo.puzzle[2][0] == 9) &&\n (threeSituationsAgo.puzzle[3][0] == 13)\n )\n {\n firstPredicate = \"dosLineasYColumna\";\n }//end if\n else\n {\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4) &&\n (threeSituationsAgo.puzzle[1][0] == 5) &&\n (threeSituationsAgo.puzzle[1][1] == 6) &&\n (threeSituationsAgo.puzzle[1][2] == 7) &&\n (threeSituationsAgo.puzzle[1][3] == 8)\n )\n {\n firstPredicate = \"dosLineasListas\";\n }//end if\n else\n {\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4)\n )\n {\n firstPredicate = \"primeraLineaLista\";\n }//end if\n }//end else\n }//end else\n\n return firstPredicate;\n }", "private void generateRules(TreeNode tn)\n{\n if (!tn.isLeaf()) {\n generateRules(tn.getPassTree());\n generateRules(tn.getFailTree());\n return;\n }\n RuleInstance ri = tn.getRules().get(0);\n if (ri.getBaseRule() != null) return;\t// rule already in set\n\n Condition c = tn.getCondition();\n List<UpodCondition> cset = new ArrayList<UpodCondition>();\n if (c != null) {\n UpodCondition cond = c.getConditionTest(for_program);\n if (cond != null) cset.add(cond);\n }\n for (TreeNode pn = tn.getParent(); pn != null; pn = pn.getParent()) {\n Condition pc = pn.getCondition();\n if (pc == null) continue;\n UpodCondition pcond = pc.getConditionTest(for_program);\n if (pcond != null) cset.add(pcond);\n }\n\n UpodCondition rcond = null;\n if (cset.isEmpty()) return;\n if (cset.size() == 1) rcond = cset.get(0);\n else {\n UpodCondition [] conds = new UpodCondition[cset.size()];\n conds = cset.toArray(conds);\n rcond = new BasisConditionLogical.And(conds);\n }\n List<UpodAction> racts = ri.getActions();\n if (rcond == null || racts == null) return;\n\n BasisRule rule = new BasisRule(rcond,racts,null,100);\n for_program.addRule(rule);\n}", "public SensorList outputsFromRuleSets (RuleSet ruleset2) {\n \n SensorList res = new SensorList (); \n\n for (int i = 0; i < this.size(); i++) {\n \n \n for (int j = 0; j < ruleset2.size(); j++) {\n \n Sensor a = this.getSuccessor(i).merge(ruleset2.getSuccessor(j));\n res.addSensor(a);\n }\n }\n \n return res;\n }", "private void performRule(DataNormalizationRule rule, GraphModification modifications) throws DataNormalizationException, DatabaseException, SQLException {\n\t\tif (inputGraph.getGraphName().length() == 0) {\n\t\t\tthrow new DataNormalizationException(\"Empty Graph Name is not allowed.\");\n\t\t}\n\n\t\tif (modifications == null) {\n\t\t\t/**\n\t\t\t * In case there is no interest in what was changed just perform all the components in the correct order\n\t\t\t */\n\t\t\tperformComponents(rule, inputGraph.getGraphName());\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tgetDirtyConnection().execute(markTemporaryGraph, original);\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, backupQueryFormat, original, inputGraph.getGraphName()));\n\n\t\t\t\tperformComponents(rule, inputGraph.getGraphName());\n\n\t\t\t\tgetDirtyConnection().execute(markTemporaryGraph, modified);\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, backupQueryFormat, modified, inputGraph.getGraphName()));\n\n\t\t\t\t/**\n\t\t\t\t * Unfortunatelly \"SELECT ?s ?p ?o WHERE {{GRAPH <%s> {?s ?p ?o}} MINUS {GRAPH <%s> {?s ?p ?o}}}\"\n\t\t\t\t * throws \"Internal error: 'output:valmode' declaration conflicts with 'output:format'\"\n\t\t\t\t *\n\t\t\t\t * Therefore it is necessary to first create graphs with differences.\n\t\t\t\t */\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, diffQueryFormat, modified, original));\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, diffQueryFormat, original, inputGraph.getGraphName()));\n\n\t\t\t\tWrappedResultSet inserted = getDirtyConnection().executeSelect(String.format(Locale.ROOT, selectQueryFormat, modified));\n\n\t\t\t\t/**\n\t\t\t\t * All that is new to the transformed graph are insertions done by this rule (one of its components)\n\t\t\t\t */\n\t\t\t\twhile (inserted.next()) {\n\t\t\t\t\tmodifications.addInsertion(rule,\n\t\t\t\t\t\t\tinserted.getString(\"s\"),\n\t\t\t\t\t\t\tinserted.getString(\"p\"),\n\t\t\t\t\t\t\tinserted.getString(\"o\"));\n\t\t\t\t}\n\n\t\t\t\tWrappedResultSet deleted = getDirtyConnection().executeSelect(String.format(Locale.ROOT, selectQueryFormat, original));\n\n\t\t\t\t/**\n\t\t\t\t * All that is missing from the transformed graph are deletions done by this rule (one of its components)\n\t\t\t\t */\n\t\t\t\twhile (deleted.next()) {\n\t\t\t\t\tmodifications.addDeletion(rule,\n\t\t\t\t\t\t\tdeleted.getString(\"s\"),\n\t\t\t\t\t\t\tdeleted.getString(\"p\"),\n\t\t\t\t\t\t\tdeleted.getString(\"o\"));\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, dropBackupQueryFormat, original));\n\t\t\t\t} finally {}\n\t\t\t\ttry {\n\t\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, dropBackupQueryFormat, modified));\n\t\t\t\t} finally {}\n\t\t\t\tgetDirtyConnection().execute(unmarkTemporaryGraph, original);\n\t\t\t\tgetDirtyConnection().execute(unmarkTemporaryGraph, modified);\n\t\t\t}\n\t\t}\n\t\tLOG.info(String.format(Locale.ROOT, \"Data Normalization rule %d applied: %s\", rule.getId(), rule.getLabel() != null ? rule.getLabel() : \"\"));\n\t}", "public RuleSet (RuleList rulelist, SensorList sList) {\n \n this.references = new ArrayList();\n this.rulelist = rulelist;\n this.totalProb = -1.0;\n this.id = counter.incrementAndGet();\n this.indexesOfPrec = new ArrayList();\n this.precedences = new ArrayList ();\n this.sList = sList;\n }", "private void applyRules(GraphModification modifications) throws DataNormalizationException {\n\t\ttry {\n\t\t\tgetDirtyConnection();\n\n\t\t\tIterator<DataNormalizationRule> i = rules.iterator();\n\n\t\t\t/**\n\t\t\t * Ensure that the graph is either transformed completely or not at all\n\t\t\t */\n\t\t\t//getDirtyConnection().adjustTransactionLevel(EnumLogLevel.TRANSACTION_LEVEL);\n\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tDataNormalizationRule rule = i.next();\n\n\t\t\t\ttry {\n\t\t\t\t\tperformRule(rule, modifications);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLOG.error(String.format(Locale.ROOT, \"Debugging of rule %d failed: %s\", rule.getId(), e.getMessage()));\n\t\t\t\t\tthrow new DataNormalizationException(e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//getDirtyConnection().commit();\n\t\t} catch (DatabaseException e) {\n\t\t\tthrow new DataNormalizationException(e);\n\t\t//} catch (SQLException e) {\n\t\t//\tthrow new DataNormalizationException(e);\n\t\t}\n\t}", "@Test\n\tpublic void deleteA_useAwithB_danglingEdgeTest() {\n\t\tHenshinResourceSet resourceSet = new HenshinResourceSet(PATH);\n\n\t\t// Load the module:\n\t\tModule module = resourceSet.getModule(\"simpleTgRules.henshin\", false);\n\n\t\tUnit deleteAUnit = module.getUnit(\"deleteA\");\n\t\tRule deleteARule = (Rule) deleteAUnit;\n\n\t\tUnit useAwithBUnit = module.getUnit(\"useAwithB\");\n\t\tRule useAwithBRule = (Rule) useAwithBUnit;\n\n\t\tConflictAnalysis atomicCoreCPA = new ConflictAnalysis(deleteARule, useAwithBRule);\n\t\tList<ConflictAtom> computedConflictAtoms = atomicCoreCPA.computeConflictAtoms();\n\t\t// should be 0 due to dangling edge condition. First rule deletes a node\n\t\t// and second rule requires to have an edge on that node!\n\t\tAssert.assertEquals(0, computedConflictAtoms.size());\n\t\t// System.out.println(\"number of conflict atoms:\n\t\t// \"+computedConflictAtoms.size());\n\t\t// for(ConflictAtom conflictAtom : computedConflictAtoms){\n\t\t// System.out.println(conflictAtom);\n\t\t// }\n\n\t\tAtomCandidateComputation candComp = new AtomCandidateComputation(deleteARule, useAwithBRule);\n\t\tList<Span> conflictAtomCandidates = candComp.computeAtomCandidates();\n\n\t\tSet<MinimalConflictReason> reasons = new HashSet<>();//\n\t\tfor (Span candidate : conflictAtomCandidates) {\n\t\t\tnew MinimalReasonComputation(deleteARule, useAwithBRule).computeMinimalConflictReasons(candidate, reasons);\n\t\t}\n\t\t// should be 0 due to dangling edge condition. First rule deletes a node\n\t\t// and second rule requires to have an edge on that node!\n\t\tAssert.assertEquals(0, reasons.size());\n\n\t\t// Set<Span> minimalConflictReasons = reasons;\n\t\t// System.out.println(\"number of minimal conflict reasons:\n\t\t// \"+minimalConflictReasons.size());\n\t\t// for(Span minimalConflictReason : minimalConflictReasons){\n\t\t// System.out.println(minimalConflictReason);\n\t\t// }\n\t}", "public static List<ExtendRule> removeRedundantExtendedRules_transactionBased(List<ExtendRule> rules) {\n LOGGER.info(\"STARTED removeRedundantExtendedRules - transaction based\");\n LOGGER.info(\"Rules on start:\" + rules.size());\n ExtendRule defRule = rules.get(rules.size()-1);\n if (defRule.getAntecedent().getItems().size()>0)\n {\n LOGGER.warning(\"Default rule is not last rule. Returning null. Last rule:\" + defRule.toString() );\n \n return null;\n }\n Consequent defClass = defRule.getConsequent(); \n for (Iterator<ExtendRule> it = rules.iterator(); it.hasNext();) { \n ExtendRule PRCandidate = it.next();\n // PRCandidate = go through all rules with default class in the consequent\n if (!PRCandidate.getConsequent().toString().equals(defClass.toString()))\n {\n\n }\n // skip default rule\n else if (PRCandidate.equals(defRule))\n {\n \n } \n else{\n Set<Transaction> suppTran = PRCandidate.getAntecedent().getSupportingTransactions();\n // get transactions only CORRECTLY classified by the candidate rule\n Set<Transaction> consTran = PRCandidate.getConsequent().getSupportingTransactions();\n suppTran.retainAll(consTran);\n\n // Check if transactions correctly classified by pruning candidate intersect with transactions covered by those rules below prunCand in the rule list that assign to different than default class. If there are no such transactions PRCandidate can be removed\n boolean nonEmptyIntersection=false;\n boolean positionBelowPRCand = false;\n for (Iterator<ExtendRule> innerIt = rules.iterator(); innerIt.hasNext();) {\n ExtendRule candidateClash = innerIt.next();\n // candidateClash is PRCandidate, which would always evaluate to overlap!\n if (candidateClash.equals(PRCandidate))\n {\n positionBelowPRCand = true;\n continue;\n }\n if (!positionBelowPRCand) continue;\n // candidateClash = go through all rules with OTHER than default class in consequent \n if (candidateClash.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n\n // check if transactions covered by PRCandidate intersect with transactions covered by candidateClash \n\n for (Transaction t : candidateClash.getAntecedent().getSupportingTransactions())\n {\n\n if (suppTran.contains(t))\n {\n nonEmptyIntersection=true;\n }\n break;\n } \n if (nonEmptyIntersection)\n {\n //go to next PRCandidate \n break;\n } \n }\n if (nonEmptyIntersection == false)\n {\n //no other rule with different consequent covering at least one shared transaction was found\n //this rule can be removed\n LOGGER.fine(\"Removing rule:\" + PRCandidate.toString());\n it.remove();\n } \n }\n \n }\n LOGGER.info(\"Rules on finish:\" + rules.size());\n LOGGER.info(\"FINISHED removeRedundantExtendedRules - transaction based\");\n return rules;\n }", "public void test_ck_03() {\n // part A - surprising reification\n OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null);\n OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null);\n \n Individual sub = model1.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n OntProperty pred = model1.createOntProperty(\"http://mytest#\");\n Individual obj = model1.createIndividual(\"http://mytest#i2\", model1.getProfile().CLASS());\n OntProperty probabilityP = model1.createOntProperty(\"http://mytest#prob\");\n \n Statement st = model1.createStatement(sub, pred, obj);\n model1.add(st);\n st.createReifiedStatement().addProperty(probabilityP, 0.9);\n assertTrue(\"st should be reified\", st.isReified());\n \n Statement st2 = model2.createStatement(sub, pred, obj);\n model2.add(st2);\n st2.createReifiedStatement().addProperty(probabilityP, 0.3);\n assertTrue(\"st2 should be reified\", st2.isReified());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP).addProperty(probabilityP, 0.3); //!!!\n // exception\n \n // Part B - exception in remove All\n Individual sub2 = model2.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP); //!!! exception\n \n sub2.addProperty(probabilityP, 0.3);\n sub2.removeAll(probabilityP); //!!! exception\n \n }", "public Vector<Rule> learn(Vector<Rule> knowledgebase, Commitment selectedCommitment)\n {\n Situation situation3movementsAgo;\n Commitment firstCommitment;\n Commitment secondCommitment;\n Commitment lastCommitment;\n Commitment newCommitment;\n Condition newCondition;\n String predicate;\n Vector<Condition> conditions;\n Vector<Commitment> commitments;\n StringTokenizer tokenizer;\n String predicateHead;\n int i,j;\n int x, y;\n int x1,x2,x3;\n int y1,y2, y3;\n String direction1, direction2, direction3;\n Rule newRule;\n boolean found;\n boolean ruleAlreadyExists;\n String milestoneID;\n //-------------------------------\n\n if(Blackboard.history.size()>3)\n {\n situation3movementsAgo = Blackboard.history.get(Blackboard.history.size()-4);\n milestoneID = getMilestoneId();\n if(!milestoneID.equals(\"ninguna\"))\n {\n firstCommitment = Blackboard.history.get(Blackboard.history.size()-3).cause;\n secondCommitment = Blackboard.history.get(Blackboard.history.size()-2).cause;\n lastCommitment = selectedCommitment;\n conditions = new Vector<Condition>();\n\n // checa si hay que poner un predicado primero\n // referente a una milestone\n predicate = newRuleFirstCondition(situation3movementsAgo);\n\n if(!predicate.equals(\"ninguno\"))\n {\n // condicion de una milestone\n newCondition = new Condition(predicate);\n conditions.add(newCondition);\n }//end if\n\n if(predicate.equals(\"ninguno\"))\n {\n i= 0;\n while(i < 5)\n {\n x=getXOfAToken(situation3movementsAgo, i);\n y=getYOfAToken(situation3movementsAgo, i);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + i + \")\");\n conditions.add(newCondition);\n i = i + 1;\n }//end while\n }//end if\n else\n {\n if(predicate.equals(\"primeraLineaLista\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n i= 5;\n while(i < 9)\n {\n x=getXOfAToken(situation3movementsAgo, i);\n y=getYOfAToken(situation3movementsAgo, i);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + i + \")\");\n conditions.add(newCondition);\n i = i + 1;\n }//end while\n }//end if\n else\n {\n if(predicate.equals(\"dosLineasListas\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n\n x=getXOfAToken(situation3movementsAgo, 9);\n y=getYOfAToken(situation3movementsAgo, 9);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 9 + \")\");\n conditions.add(newCondition);\n\n x=getXOfAToken(situation3movementsAgo, 13);\n y=getYOfAToken(situation3movementsAgo, 13);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 13 + \")\");\n conditions.add(newCondition);\n\n }//end if\n else\n {\n if(predicate.equals(\"dosLineasYColumna\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 10);\n y=getYOfAToken(situation3movementsAgo, 10);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 10 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 11);\n y=getYOfAToken(situation3movementsAgo, 11);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 11 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 12);\n y=getYOfAToken(situation3movementsAgo, 12);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 12 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 14);\n y=getYOfAToken(situation3movementsAgo, 14);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 14 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 15);\n y=getYOfAToken(situation3movementsAgo, 15);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 15 + \")\");\n conditions.add(newCondition);\n\n\n }//end if\n }//end else\n }//end else\n }//end else\n\n\n // now constructs the rule conclusion\n // as a sequence of moves\n predicate = firstCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x1 = Integer.valueOf(tokenizer.nextToken());\n y1 = Integer.valueOf(tokenizer.nextToken());\n direction1 = tokenizer.nextToken();\n\n predicate = secondCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x2 = Integer.valueOf(tokenizer.nextToken());\n y2 = Integer.valueOf(tokenizer.nextToken());\n direction2 = tokenizer.nextToken();\n\n predicate = lastCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x3 = Integer.valueOf(tokenizer.nextToken());\n y3 = Integer.valueOf(tokenizer.nextToken());\n direction3 = tokenizer.nextToken();\n\n predicate = \"secuencia(\"+\n x1 + \",\" + y1 + \",\" + direction1 + \",\"+\n x2 + \",\" + y2 + \",\" + direction2 + \",\"+\n x3 + \",\" + y3 + \",\" + direction3 + \")\";\n newCommitment = new Commitment(predicate);\n commitments = new Vector<Commitment>();\n commitments.add(newCommitment);\n\n // includes the new rule into the knowledge base\n newRule = new Rule(knowledgeBase.size(), conditions, commitments);\n ruleAlreadyExists = false;\n i = 0;\n while(i < knowledgeBase.size())\n {\n if(knowledgeBase.get(i).equals(newRule))\n {\n ruleAlreadyExists = true;\n break;\n }//end if\n i = i + 1;\n }//end while\n if(!ruleAlreadyExists)\n {\n knowledgeBase.add(newRule);\n }//end if\n }//end if\n }//end if\n return knowledgeBase;\n }", "public void testRunnableWithOtherRule() {\n \t\tISchedulingRule rule = new ISchedulingRule() {\n \t\t\tpublic boolean contains(ISchedulingRule rule) {\n \t\t\t\treturn rule == this;\n \t\t\t}\n \t\t\tpublic boolean isConflicting(ISchedulingRule rule) {\n \t\t\t\treturn rule == this;\n \t\t\t}\n \t\t};\n \t\ttry {\n \t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) {\n \t\t\t\t\t//noop\n \t\t\t\t}\n \t\t\t}, rule, IResource.NONE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"1.99\", e);\n \t\t}\n \t}", "@Test\n public void testUserAndFlowGroupQuotaMultipleUsersAdd() throws Exception {\n Dag<JobExecutionPlan> dag1 = DagManagerTest.buildDag(\"1\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user5\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n Dag<JobExecutionPlan> dag2 = DagManagerTest.buildDag(\"2\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user6\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n Dag<JobExecutionPlan> dag3 = DagManagerTest.buildDag(\"3\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user6\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group3\")));\n Dag<JobExecutionPlan> dag4 = DagManagerTest.buildDag(\"4\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user5\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n // Ensure that the current attempt is 1, normally done by DagManager\n dag1.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag2.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag3.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag4.getNodes().get(0).getValue().setCurrentAttempts(1);\n\n this._quotaManager.checkQuota(Collections.singleton(dag1.getNodes().get(0)));\n this._quotaManager.checkQuota(Collections.singleton(dag2.getNodes().get(0)));\n\n // Should fail due to user quota\n Assert.assertThrows(IOException.class, () -> {\n this._quotaManager.checkQuota(Collections.singleton(dag3.getNodes().get(0)));\n });\n // Should fail due to flowgroup quota\n Assert.assertThrows(IOException.class, () -> {\n this._quotaManager.checkQuota(Collections.singleton(dag4.getNodes().get(0)));\n });\n // should pass due to quota being released\n this._quotaManager.releaseQuota(dag2.getNodes().get(0));\n this._quotaManager.checkQuota(Collections.singleton(dag3.getNodes().get(0)));\n this._quotaManager.checkQuota(Collections.singleton(dag4.getNodes().get(0)));\n }", "private void resolveConflicts( Grammar grammar, State state, List<Action> tshifts, List<Action> ntshifts)\n {\n List<State> splits = new ArrayList<State>();\n\n Collections.sort( tshifts);\n Collections.sort( ntshifts);\n \n State currSplit = null;\n State prevSplit = null;\n for( int i=1, k=1; i<tshifts.size(); i++, k++)\n {\n prevSplit = currSplit;\n currSplit = null;\n \n Action prev = tshifts.get( i-1);\n Action curr = tshifts.get( i);\n \n if ( isOverlapping( prev.symbols, curr.symbols))\n {\n boolean conflict =\n (curr.type == Action.Type.tshift && prev.type == Action.Type.reduce) || \n (curr.type == Action.Type.reduce && prev.type == Action.Type.tshift) ||\n (curr.type == Action.Type.reduce && prev.type == Action.Type.reduce) ||\n (curr.type == Action.Type.tshift && prev.type == Action.Type.tshift);\n\n if ( conflict)\n {\n long prevPriority = prev.getPriority();\n long currPriority = curr.getPriority();\n if ( prevPriority < currPriority)\n {\n log.debugf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n log.debug( \"Conflict resolved: second rule(s) have higher priority\");\n deleteStackOp( state, k-1); k--;\n }\n else if ( prevPriority > currPriority)\n {\n log.debugf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n log.debug( \"Conflict resolved: first rule(s) have higher priority\");\n deleteStackOp( state, k); k--;\n }\n else\n {\n log.warnf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n log.warn( \"Conflict resolved by splitting state\");\n splitState( state, k, prevSplit, splits);\n currSplit = splits.get( splits.size() - 1);\n conflicts++;\n }\n }\n }\n }\n \n for( int i=1; i<ntshifts.size(); i++)\n {\n prevSplit = currSplit;\n currSplit = null;\n \n Action prev = ntshifts.get( i-1);\n Action curr = ntshifts.get( i);\n \n if ( curr.symbols[ 0] <= prev.symbols[ 0])\n {\n if ( curr.type == Action.Type.ntshift && prev.type == Action.Type.ntshift && curr.itemSet.equals( prev.itemSet))\n {\n log.warnf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n conflicts++;\n }\n }\n }\n \n if ( splits.size() > 0)\n {\n for( State split: splits) \n {\n log.debugf( \"Created new state %d to resolve conflict.\", split.index);\n removeNulls( split);\n \n for( StackOp shift: split.stackOps)\n {\n if ( shift == nullShift)\n throw new IllegalStateException();\n }\n }\n\n state.splits = splits.toArray( new State[ 0]);\n state.stackOps = null;\n state.gotos = null;\n }\n }", "@Test\n\tpublic void testResourcesForDeltaIteration() throws Exception{\n\t\tResourceSpec resource1 = new ResourceSpec(0.1, 100);\n\t\tResourceSpec resource2 = new ResourceSpec(0.2, 200);\n\t\tResourceSpec resource3 = new ResourceSpec(0.3, 300);\n\t\tResourceSpec resource4 = new ResourceSpec(0.4, 400);\n\t\tResourceSpec resource5 = new ResourceSpec(0.5, 500);\n\t\tResourceSpec resource6 = new ResourceSpec(0.6, 600);\n\n\t\tMethod opMethod = Operator.class.getDeclaredMethod(\"setResources\", ResourceSpec.class);\n\t\topMethod.setAccessible(true);\n\n\t\tMethod deltaMethod = DeltaIteration.class.getDeclaredMethod(\"setResources\", ResourceSpec.class);\n\t\tdeltaMethod.setAccessible(true);\n\n\t\tMethod sinkMethod = DataSink.class.getDeclaredMethod(\"setResources\", ResourceSpec.class);\n\t\tsinkMethod.setAccessible(true);\n\n\t\tMapFunction<Tuple2<Long, Long>, Tuple2<Long, Long>> mapFunction = new MapFunction<Tuple2<Long, Long>, Tuple2<Long, Long>>() {\n\t\t\t@Override\n\t\t\tpublic Tuple2<Long, Long> map(Tuple2<Long, Long> value) throws Exception {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t};\n\n\t\tFilterFunction<Tuple2<Long, Long>> filterFunction = new FilterFunction<Tuple2<Long, Long>>() {\n\t\t\t@Override\n\t\t\tpublic boolean filter(Tuple2<Long, Long> value) throws Exception {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\tExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n\t\tDataSet<Tuple2<Long, Long>> input = env.fromElements(new Tuple2<>(1L, 2L));\n\t\topMethod.invoke(input, resource1);\n\n\t\t// CHAIN(Map -> Filter)\n\t\tDataSet<Tuple2<Long, Long>> map = input.map(mapFunction);\n\t\topMethod.invoke(map, resource2);\n\n\t\tDeltaIteration<Tuple2<Long, Long>, Tuple2<Long, Long>> iteration = map.iterateDelta(map, 100, 0).\n\t\t\t\tregisterAggregator(\"test\", new LongSumAggregator());\n\t\tdeltaMethod.invoke(iteration, resource3);\n\n\t\tDataSet<Tuple2<Long, Long>> delta = iteration.getWorkset().map(mapFunction);\n\t\topMethod.invoke(delta, resource4);\n\n\t\tDataSet<Tuple2<Long, Long>> feedback = delta.filter(filterFunction);\n\t\topMethod.invoke(feedback, resource5);\n\n\t\tDataSink<Tuple2<Long, Long>> sink = iteration.closeWith(delta, feedback).\n\t\t\t\toutput(new DiscardingOutputFormat<Tuple2<Long, Long>>());\n\t\tsinkMethod.invoke(sink, resource6);\n\n\t\tPlan plan = env.createProgramPlan();\n\t\tOptimizer pc = new Optimizer(new Configuration());\n\t\tOptimizedPlan op = pc.compile(plan);\n\n\t\tJobGraphGenerator jgg = new JobGraphGenerator();\n\t\tJobGraph jobGraph = jgg.compileJobGraph(op);\n\n\t\tJobVertex sourceMapVertex = jobGraph.getVerticesSortedTopologicallyFromSources().get(0);\n\t\tJobVertex iterationHeadVertex = jobGraph.getVerticesSortedTopologicallyFromSources().get(1);\n\t\tJobVertex deltaVertex = jobGraph.getVerticesSortedTopologicallyFromSources().get(2);\n\t\tJobVertex iterationTailVertex = jobGraph.getVerticesSortedTopologicallyFromSources().get(3);\n\t\tJobVertex feedbackVertex = jobGraph.getVerticesSortedTopologicallyFromSources().get(4);\n\t\tJobVertex sinkVertex = jobGraph.getVerticesSortedTopologicallyFromSources().get(5);\n\t\tJobVertex iterationSyncVertex = jobGraph.getVerticesSortedTopologicallyFromSources().get(6);\n\n\t\tassertTrue(sourceMapVertex.getMinResources().equals(resource1.merge(resource2)));\n\t\tassertTrue(iterationHeadVertex.getPreferredResources().equals(resource3));\n\t\tassertTrue(deltaVertex.getMinResources().equals(resource4));\n\t\t// the iteration tail task will be scheduled in the same instance with iteration head, and currently not set resources.\n\t\tassertTrue(iterationTailVertex.getPreferredResources().equals(ResourceSpec.DEFAULT));\n\t\tassertTrue(feedbackVertex.getMinResources().equals(resource5));\n\t\tassertTrue(sinkVertex.getPreferredResources().equals(resource6));\n\t\tassertTrue(iterationSyncVertex.getMinResources().equals(resource3));\n\t}", "public void pruneRules_greedy() {\n LOGGER.info(\"STARTED Postpruning\");\n AttributeValue defClass = getDefaultRuleClass();\n int defError = getDefaultRuleError(defClass);\n boolean removeTail=false;\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"#Rule {0}\", rule.toString());\n }\n \n if (removeTail)\n {\n it.remove();\n }\n else if (rule.getAntecedentLength() == 0) {\n it.remove();\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n it.remove();\n }\n else\n {\n int supportingTransactions = rule.removeTransactionsCoveredByAntecedent(true);\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n if (defError<=newDefError)\n {\n //adding the current rule did not decrease the errors compared to a default rule\n it.remove();\n removeTail=true;\n }\n else{\n LOGGER.log(Level.FINE, \"{0} transactions, RULE {1} KEPT\", new Object[]{supportingTransactions, rule.getRID()});\n defClass = newDefClass;\n defError = newDefError;\n } \n }\n \n \n\n\n }\n LOGGER.fine(\"Creating new Extend rule within narrow rule procedure\");\n extendedRules.add(createNewDefaultRule(defClass));\n LOGGER.info(\"FINISHED Postpruning\");\n }", "private void getSensorConditions(List<RuleInstance> rules,Set<Condition> conds)\n{\n for (int i = 0; i < rules.size(); ++i) {\n RuleInstance ri1 = rules.get(i);\n for (int j = i+1; j < rules.size(); ++j) {\n\t RuleInstance ri2 = rules.get(j);\n\t if (ri1.getStateId() == ri2.getStateId()) continue;\n\t addSensorConditions(ri1,ri2,conds);\n }\n }\n}", "public static void main(String[] args)\n {\n /*\n * Create a new loader with default factory.\n * \n * A factory will create all rule components when loader requires them\n * Default engine is used that creates all the default constructs in:\n * org.achacha.rules.compare\n * org.achacha.rules.condition\n * org.achacha.rules.action\n * \n * RulesEngineFactoryExtension can be used to extend a default factory while keeping existing constructs\n * for basic rules the default factory provides a wide variety of comparators and action elements\n * \n * The loader uses the factory to resolve where the rule parts are loaded from\n * There are several load types (file system, in-memory string, in-memory XML)\n * Here we will configure a simple in-memory string based loader and add the\n * conditions and actions from constants\n */\n RulesEngineLoaderImplMappedString loader = new RulesEngineLoaderImplMappedString(new RulesEngineFactory());\n \n // Add a simple rule and call it 'alwaysTrue', we will execute this rule using this name\n loader.addRule(\"alwaysTrue\", SIMPLE_RULE);\n \n /*\n * Create a rules engine that uses the loader and factory we just created\n * Normally these 3 objects would be someone retained so we don't have to re-parse the rules every execution\n * However this is a tutorial example\n */\n RulesEngine engine = new RulesEngine(loader);\n \n /////////////////////////// Everything above is initialization ///////////////////////////////////////\n \n /////////////////////////// Everything below is rule execution ///////////////////////////////////////\n /*\n * Now we need to have some input for the rule to process but since were are using constants in comparison we can just pass\n * an empty input model\n * \n * We use dom4j XML Element for input\n * \n * <request>\n * <input />\n * </request>\n */\n Element request = DocumentHelper.createElement(\"request\");\n request.addElement(\"input\");\n \n /*\n * RuleContext is an object that holds the input, output, event log, etc for a given rule execution\n * The engine can create a new context for us if we specify the input for the rule\n */\n RuleContext ruleContext = engine.createContext(request);\n \n /*\n * Now that we have set up our context we can execute the rule\n * Since we used addRule above and called this rule 'alwaysTrue', this is how we invoke this rule\n * \n * NOTE:\n * you can run multiple rules sequentially against the same context\n * some actions can modify input context and some conditions can check output context\n * so rules can depend on other rules\n */\n engine.execute(ruleContext, \"alwaysTrue\");\n \n /*\n * Display the output model\n * \n * Since the action we used is:\n * \n * <Action Operator='OutputValueSet'>\"\n * <Path>/result</Path>\"\n * <Value Source='Constant'><Data>yes</Data></Value>\"\n * </Action>\"\n * \n * We get the following output model:\n * <output><result>yes</result></output>\n * \n * NOTE: The path on the output action is always relative to the output element\n */\n System.out.println(\"Output Model\\n------------\");\n System.out.println(ruleContext.getOutputModel().asXML());\n }", "@Test\n public void testDecisionRule2() throws IOException {\n \n Data data = getDataObject(\"./data/adult.csv\");\n DataHandle handle = data.getHandle();\n \n RiskModelPopulationUniqueness model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.1d)).getPopulationBasedUniquenessRisk();\n double sampleUniqueness = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.1d)).getSampleBasedUniquenessRisk().getFractionOfUniqueRecords();\n double populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n \n if (model.getPopulationUniquenessModel() == PopulationUniquenessModel.PITMAN) {\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.27684993883653597) == 0);\n } else if (model.getPopulationUniquenessModel() == PopulationUniquenessModel.ZAYATZ) {\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.3207402393466189) == 0);\n } else {\n fail(\"Unexpected convergence of SNB\");\n }\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.2d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.3577099234829125d) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.01d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.1446083531167384) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 1d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.5142895033485844) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) == 0);\n }", "@Override\n AbstractConstraints<X> reconcile(X context, Meta<X> other, Conjunction<X> cs) {\n return cs;\n }", "protected void processTemporalRule(){\n RuleThread currntThrd;\n Thread currntThrdParent; // the parent of the current thread;\n int currntOperatingMode;\n int currntThrdPriority ;\n\n if( temporalRuleQueue.getHead()!= null){\n\n //If the rule thread is the top level, trigger the rule.\n currntThrd=temporalRuleQueue.getHead();\n while(currntThrd!= null){\n currntThrdPriority = currntThrd.getPriority ();\n currntThrdParent = currntThrd.getParent();\n\n if (currntThrd.getOperatingMode() == RuleOperatingMode.READY\n && !(currntThrd.getParent() == applThrd ||\n currntThrd.getParent().getClass().getName().equals(\"EventDispatchThread\")||\n currntThrd.getParent().getName ().equals (Constant.LEDReceiverThreadName)\n )){\n if(ruleSchedulerDebug)\n\t\t \t\t System.out.println(\"Changing mode of \"+currntThrd.getName()+\"from READY to EXE\");\n\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n\t\t\t\t currntThrd.setScheduler(this);\n currntThrd.start();\n int rulePriority = 0;\n currntThrdParent = currntThrd;\n if(currntThrdParent instanceof RuleThread){\n rulePriority = currntThrd.getRulePriority();\n }\n currntThrd = currntThrd.next;\n while(currntThrd != null && currntThrd instanceof RuleThread &&\n currntThrd.getRulePriority() == rulePriority\n \t\t\t\t\t\t\t && currntThrd.getParent() == currntThrdParent ){\n if(ruleSchedulerDebug)\n \t\t\t System.out.print(\" start child thread =>\");\n\n currntThrd.print();\n currntThrd.setScheduler(this);\n if(\tcurrntThrd.getOperatingMode()== RuleOperatingMode.READY ){\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n currntThrd.start();\n }\n \t\t\t\t\tcurrntThrd = currntThrd.next;\n }\n }\n // case 1.2:\n else if (currntThrd != null &&\tcurrntThrd.getOperatingMode() == RuleOperatingMode.EXE){\n \t\t\t\tcurrntThrd = currntThrd.next;\n\n }\n // case 1.3:\n\t\t\t\telse if (currntThrd != null && currntThrd.getOperatingMode() == RuleOperatingMode.WAIT){\n\t\t\t\t if(currntThrd.next == null){\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n\n// ;\n // All its childs has been completed.\n // This currntThread's operating mode will be changed to FINISHED.\n }\n\t\t\t\t\telse{\n // check whether its neighbor is its child\n\t\t\t\t\t\tif(currntThrd.next.getParent() == currntThrdParent){\n if(ruleSchedulerDebug){\n\t \t\t\t\t\t System.out.println(\"\\n\"+currntThrd.getName()+\" call childRecurse \"+currntThrd.next.getName());\n\t\t \t\t\t\t\tcurrntThrd.print();\n }\n\n childRecurse(currntThrd, temporalRuleQueue);\n }\n }\n currntThrd = currntThrd.next;\n }\n // case 1.4:\n\t\t\t\telse if (currntThrd != null && currntThrd.getOperatingMode() == RuleOperatingMode.FINISHED){\n if(ruleSchedulerDebug){\n\t\t\t\t\t System.out.println(\"delete \"+currntThrd.getName() +\" rule thread from rule queue.\");\n\t\t\t\t\t\tcurrntThrd.print();\n }\n processRuleList.deleteRuleThread(currntThrd,temporalRuleQueue);\n \tcurrntThrd = currntThrd.next;\n }\n else{\n \t\t\t\tcurrntThrd = currntThrd.next;\n }\n }\n }\n }", "@Test\n public void verifyAllRules() throws EdgeRuleNotFoundException {\n for (SchemaVersion v : schemaVersions.getVersions()) {\n Multimap<String, EdgeRule> all = edgeIngestor.getAllRules(schemaVersions.getDefaultVersion());\n\n // this part verifies the default properties\n // 1) can have only at most 1 containment edge between same node type pair\n // 2) if there is at least 1 cousin edge, there must be exactly 1 cousin edge with default=true\n for (String key : all.keySet()) {\n\n Collection<EdgeRule> edgeRuleCollection = all.get(key);\n\n boolean foundContainment = false; // can have at most 1 containment rel btwn same pair of node types\n boolean foundCousin = false;\n boolean cousinDefault = false; // if there is a cousin edge there must be at least 1 default cousin\n // defined\n Set<String> labels = new HashSet<>(); // all edges between the same pair must have different labels\n int cousinCount = 0;\n\n for (EdgeRule rule : edgeRuleCollection) {\n EdgeRule match = rule;\n // check containment\n if (!(\"NONE\".equals(match.getContains()))) {\n if (foundContainment) {\n fail(\"more than one containment edge defined for \" + v.toString() + \" \" + key);\n } else {\n foundContainment = true;\n }\n } else { // check cousin stuff\n foundCousin = true;\n cousinCount++;\n if (match.isDefault()) {\n if (!cousinDefault) {\n cousinDefault = true;\n } else {\n fail(\"more than one cousin edge defined as default for \" + v.toString() + \" \" + key);\n }\n }\n }\n\n // check labels\n String label = match.getLabel();\n if (labels.contains(label)) {\n fail(\"same label found for multiple edges for \" + v.toString() + \" \" + key);\n } else {\n labels.add(label);\n }\n }\n if (foundCousin && !cousinDefault && cousinCount > 1) {\n fail(\"there is at least one cousin edge but none are designated the default for \" + v.toString()\n + \" \" + key);\n }\n }\n }\n }", "private void addBeforeRule(AroundProcesser<AggMaschineVO> processer)\r\n {\n\t\t\r\n\t processer.addBeforeRule(new BDPKLockSuperVORule());\r\n\t processer.addBeforeRule(new BizLockRule());\r\n\t processer.addBeforeRule(new VersionValidateRule());\r\n\t processer.addBeforeRule(new BDReferenceCheckerRule());\r\n\t processer.addBeforeRule(new FireEventRule(\"1005\"));\r\n\t processer.addBeforeRule(new NotifyVersionChangeWhenDataDeletedRule());\r\n }", "public boolean isConflicting (RuleSet ruleset) {\n \n if (this.id == ruleset.id)\n return false; \n \n if (!this.getPrecursorWithID().sensorMatch(ruleset.getPrecursorWithID()))\n return false;\n \n \n for (int i = 0; i < this.getSuccessor().size(); i++) {\n \n if ((this.getSuccessor().getToken(i).isNotWildcard()) && (ruleset.getSuccessor().getToken(i).isNotWildcard())) {\n \n //if (this.getPrecursorOccurrencies() <= ruleset.getPrecursorOccurrencies())\n return true; \n }\n }\n \n \n return false;\n }", "@Test\n\tvoid getEndTransitionsAfterMinimisation_LegalCase() throws Exception {\n\t\tmaxScore += 10;\n\t\tRegEx.regEx = \"a|bc*\";\n\t\ttry {\n\t\t\tRegExTree ret = RegEx.parse();\n\t\t\tAutomaton a = RegEx.RegExTreeToAutomaton(ret);\n\t\t\ta.toTable();\n\t\t\ta.eliminateEpsilonTransitions();\n\t\t\ta.minimize();\n\t\t\tArrayList<Integer> endStates = new ArrayList<Integer>();\n\t\t\tendStates.add(1);\n\t\t\tendStates.add(2);\n\t\t\tassertEquals(endStates, a.getEnd());\n\t\t} catch (Exception e) {\n\t\t\tfail();\n\t\t}\n\t\tactualScore += 10;\n\t}", "private static Set<Relation> cutRelationDifferences(Wmm targetWmm, Wmm baselineWmm) {\n // TODO: Add support to move flagged axioms to the baselineWmm\n Set<Relation> cutRelations = new HashSet<>();\n Set<Relation> cutCandidates = new HashSet<>();\n int cutCounter = 0;\n targetWmm.getAxioms().stream().filter(ax -> !ax.isFlagged())\n .forEach(ax -> collectDependencies(ax.getRelation(), cutCandidates));\n for (Relation rel : cutCandidates) {\n if (rel.getDefinition() instanceof Difference) {\n Relation sec = ((Difference) rel.getDefinition()).complement;\n if (!sec.getDependencies().isEmpty() || sec.getDefinition() instanceof Identity\n || sec.getDefinition() instanceof CartesianProduct) {\n // NOTE: The check for RelSetIdentity/RelCartesian is needed because they appear\n // non-derived in our Wmm but for CAAT they are derived from unary predicates!\n logger.info(\"Found difference {}. Cutting rhs relation {}\", rel, sec);\n cutRelations.add(sec);\n Relation baselineCopy = getCopyOfRelation(sec, baselineWmm);\n baselineWmm.addConstraint(new ForceEncodeAxiom(baselineCopy));\n // We give the cut relations new aliases in the original and the baseline wmm\n // so that we can match them later by name.\n targetWmm.addAlias(\"cut#\" + cutCounter, sec);\n baselineWmm.addAlias(\"cut#\" + cutCounter, baselineCopy);\n cutCounter++;\n }\n }\n }\n return cutRelations;\n }", "@Test\n public void preDefine_TestC()\n {\n //list of prerequisites,i.e. source accounts and destination accounts\n //source accounts created and added to db\n Account Deposit_High_Risk_srcAccount = new Account(3123, \"Deposit_High_Risk_srcAccount\", 10000);\n Account Deposit_Low_Risk_srcAccount = new Account(8665, \"Deposit_Low_Risk_srcAccount\", 10000);\n Account Main_High_Risk_srcAccount = new Account(3143, \"Main_High_Risk_srcAccount\", 10000);\n Account Main_Low_Risk_srcAccount = new Account(3133, \"Main_Low_Risk_srcAccount\", 10000);\n Account Commission_High_Risk_srcAccount = new Account(6565, \"Commission_High_Risk_srcAccount\", 10000);\n Account Commission_Low_Risk_srcAccount = new Account(6588, \"Commission_Low_Risk_srcAccount\", 10000);\n acc_db.addAccount(Deposit_High_Risk_srcAccount);\n acc_db.addAccount(Deposit_Low_Risk_srcAccount);\n acc_db.addAccount(Main_High_Risk_srcAccount);\n acc_db.addAccount(Main_Low_Risk_srcAccount);\n acc_db.addAccount(Commission_High_Risk_srcAccount);\n acc_db.addAccount(Commission_Low_Risk_srcAccount);\n\n //create and add destination accounts\n Account Commission_High_Risk_destAccount = new Account(4444, \"Commission_High_Risk_destAccount\", 10000);\n Account Commission_Low_Risk_destAccount = new Account(4445, \"Commission_Low_Risk_destAccount\", 10000);\n acc_db.addAccount(Commission_High_Risk_destAccount);\n acc_db.addAccount(Commission_Low_Risk_destAccount);\n\n //adding Main Transaction Destination Accounts to database\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n CompoundTransaction ct = new CompoundTransaction(\"No such Risk Preset\");\n\n List<Account> mainDests = new ArrayList<Account>();\n mainDests.add(acc);\n mainDests.add(acc2);\n\n List<Long> mainAmounts = new ArrayList<Long>();\n long main_amount1 = 130;\n long main_amount2=70;\n mainAmounts.add(main_amount1);\n mainAmounts.add(main_amount2);\n\n //Creating and Adding Deposit Destination Account to Database\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n long depAmount = 20;\n acc_db.addAccount(acc3);\n\n RiskPresets preset = new RiskPresets(\"Important\");\n\n Assert.assertEquals(false,ct.preDefine(preset,acc3,depAmount,mainDests,mainAmounts,acc_db));\n }", "@Test\r\n\tpublic void calculLostPointsByOneRuleSameMaxAndMinTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 1f), new Integer(1)),\r\n\t\t\t\tnew Float(0.5));\r\n\t}", "private Set<Condition> getConditions(List<RuleInstance> rules)\n{\n Set<Condition> conds = new HashSet<Condition>();\n\n getTimeConditions(rules,conds);\n getSensorConditions(rules,conds);\n getCalendarConditions(rules,conds);\n\n return null;\n}", "@Test\n public void testStrategyDifference() {\n RangeTree splittable = ranges(\"12[3-5]xx\", \"12[3-9]x\");\n assertThat(factor(splittable, REQUIRE_EQUAL_EDGES))\n .containsExactly(ranges(\"12[3-5]xx\"), ranges(\"12[3-9]x\"))\n .inOrder();\n assertThat(factor(splittable, ALLOW_EDGE_SPLITTING))\n .containsExactly(ranges(\"12[3-5]xx\", \"12[3-9]x\"));\n\n // In this case, the [3-5] edge in the first factor in only a partial overlap with the [4-9]\n // edge we are trying to merge in. Now both strategies will prefer to treat the shorter path\n // as a separate factor, since there's no clean way to merge into the existing edge.\n RangeTree unsplittable = ranges(\"12[3-5]xx\", \"12[4-9]x\");\n assertThat(factor(unsplittable, REQUIRE_EQUAL_EDGES))\n .containsExactly(ranges(\"12[3-5]xx\"), ranges(\"12[4-9]x\"))\n .inOrder();\n assertThat(factor(unsplittable, ALLOW_EDGE_SPLITTING))\n .containsExactly(ranges(\"12[3-5]xx\"), ranges(\"12[4-9]x\"))\n .inOrder();\n\n // TODO: Find a non-complex example where REQUIRE_EQUAL_EDGES yeilds smaller regex.\n // Approximately 50 out of the 1000+ regex's in the XML get smaller with REQUIRE_EQUAL_EDGES.\n }", "@Test\r\n\tpublic void calculLostPointsByOneRuleBetweenMaxMinTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 4f), new Integer(3)),\r\n\t\t\t\tnew Float(1.5));\r\n\t}", "Rule createRule();", "Rule createRule();", "Rule createRule();", "void setupInvalidators() {\n mergeResults(exprResult);\n }", "public void boundsLex(int [] a , IntDomainVar [] x , int [] b,int j) throws ContradictionException{\n\n int i =0;\n\n\n while( i< n && a[i]==b[i]){\n\n\n if((x[i].getInf()==a[i] || x[i].updateInf(a[i], this, false)) &&\n (x[i].getSup()==b[i] || x[i].updateSup(b[i], this, false))){\n i++;\n }else{\n this.fail();\n }\n\n }\n\n\n if(i<n )\n if ((x[i].getInf()==a[i] || x[i].updateInf(a[i], this, false)) &&\n (x[i].getSup()==b[i] || x[i].updateSup(b[i], this, false))){\n }else{\n this.fail();\n }\n\n\n if(i==n || x[i].getNextDomainValue(a[i])<b[i]){\n return ;\n }\n\n i+=1;\n\n while(i<n && (b[i]+1 <= a[i]-1) && x[i].getInf()==b[i] && x[i].getSup()==a[i]){\n if(x[i].removeInterval(b[i]+1,a[i]-1, this, false)){\n i++;\n }else{\n this.fail();\n\n }\n }\n\n if(i<n) {\n if (b[i] + 1 <= a[i] - 1 && x[i].getInf() <= b[i] &&\n b[i] <= x[i].getSup() && x[i].getSup() >= a[i] && a[i] >= x[i].getInf()) {\n if (!x[i].removeInterval(b[i] + 1, a[i] - 1, this, false)) {\n this.fail();\n }\n }\n }\n\n }", "public void testApply() {\n \t\tCalendar dateTime = new GregorianCalendar();\n \t\tdateTime.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);\t\t// Monday\n \t\tSystem.out.println(dateTime.toString());\n\t\tForecastData data = new ForecastData(dateTime, 35.0, 0.0, 0.0, 0.0, 0.0, 0.0, 37.0, 0.0, 0.0);\n \t\t\n \t\tFilter shouldPass = new Filter(\"pass\");\n \t\tFilter shouldFail = new Filter(\"fail\");\n \t\tFilter emptyFilter = new Filter(\"empty\");\n \t\tFilter multipleDays = new Filter(\"multipleDays\");\n \t\tFilter wrongDay = new Filter(\"wrongDay\");\n \t\tFilter noConditions = new Filter(\"noConditions\");\n \t\tFilter noTimes = new Filter(\"noTimes\");\n \t\t\n \t\tConditionRule cR = new ConditionRule(ConditionRule.conditions[0], 30, 45);\t\t// Temperature 30 -> 45\n \t\tTimeRule tR = new TimeRule(TimeRule.days[0]);\t\t\t// Monday\n \t\tTimeRule tR2 = new TimeRule(TimeRule.days[1]);\t\t\t// Tuesday\n \t\tConditionRule cR2 = new ConditionRule(ConditionRule.conditions[4], 35, 45);\t\t// Cloud Cover 35 -> 45\n \t\tConditionRule bad = new ConditionRule(ConditionRule.conditions[0], 0, 5);\t\t// Temperature 0 -> 5\n \t\t\n \t\tshouldPass.addRule(cR);\n \t\tshouldPass.addRule(cR2);\n \t\tshouldPass.addRule(tR);\n \t\t\n \t\tshouldFail.addRule(cR2);\n \t\tshouldFail.addRule(bad);\n \t\tshouldFail.addRule(tR2);\n \t\t\n \t\tmultipleDays.addRule(cR);\n \t\tmultipleDays.addRule(tR);\n \t\tmultipleDays.addRule(tR2);\n \t\t\n \t\twrongDay.addRule(cR);\n \t\twrongDay.addRule(cR2);\n \t\twrongDay.addRule(tR2);\n \t\t\n \t\tnoConditions.addRule(tR);\n \t\tnoConditions.addRule(tR2);\n \t\t\n \t\tnoTimes.addRule(cR);\n \t\tnoTimes.addRule(cR2);\n \t\t\n \t\tassertTrue(shouldPass.apply(data));\n \t\tassertFalse(emptyFilter.apply(data));\n \t\tassertFalse(shouldFail.apply(data));\n \t\tassertTrue(multipleDays.apply(data));\n \t\tassertFalse(wrongDay.apply(data));\n \t\tassertFalse(noConditions.apply(data));\n \t\tassertFalse(noTimes.apply(data));\t\n \t}", "public void testConjunctionFailsToResolveWhenSecondPathFails() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"g\", \"f :- g, h\" }, \"?- f\");\n }", "@Test\n public void solveTest5() throws ContradictionException {\n\n Set<ConstraintInfo> constraints = new HashSet<>();\n Set<Position> vars = new HashSet<>();\n Position[] varArr = new Position[]{\n this.grid.getVariable(0, 6),\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(3, 6),\n this.grid.getVariable(4, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(6, 6),\n this.grid.getVariable(7, 6),\n this.grid.getVariable(7, 5),\n this.grid.getVariable(7, 4),\n this.grid.getVariable(7, 3),\n this.grid.getVariable(7, 2),\n this.grid.getVariable(6, 2),\n this.grid.getVariable(5, 2),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 0)\n };\n vars.addAll(Arrays.asList(varArr));\n ArrayList<Set<Position>> cArr = new ArrayList<>();\n for (int i = 0; i < 14; i++) cArr.add(new HashSet<>());\n add(cArr.get(0), varArr[0], varArr[1]);\n add(cArr.get(1), varArr[0], varArr[1], varArr[2]);\n add(cArr.get(2), varArr[3], varArr[1], varArr[2]);\n add(cArr.get(3), varArr[3], varArr[4], varArr[2]);\n add(cArr.get(4), varArr[3], varArr[4], varArr[5]);\n add(cArr.get(5), varArr[6], varArr[4], varArr[5]);\n add(cArr.get(6), varArr[6], varArr[7], varArr[5], varArr[8], varArr[9]);\n add(cArr.get(7), varArr[8], varArr[9], varArr[10]);\n add(cArr.get(8), varArr[9], varArr[10], varArr[11], varArr[12], varArr[13]);\n add(cArr.get(9), varArr[12], varArr[13]);\n add(cArr.get(10), varArr[13]);\n add(cArr.get(11), varArr[13], varArr[14]);\n add(cArr.get(12), varArr[13], varArr[14], varArr[15]);\n add(cArr.get(13), varArr[14], varArr[15]);\n\n int[] cVal = new int[] { 1,2,2,1,1,1,2,1,2,1,1,2,3,2 };\n for (int i = 0; i < 14; i++) {\n constraints.add(new ConstraintInfo(cArr.get(i), cVal[i]));\n }\n\n MSModel model = new MSModel(constraints, vars);\n\n Set<Position> expectedBombs = new HashSet<>();\n expectedBombs.addAll(Arrays.asList(\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(5, 0),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 2)\n ));\n Set<Position> expectedNoBombs = new HashSet<>();\n expectedNoBombs.addAll(Arrays.asList(\n this.grid.getVariable(6,2),\n this.grid.getVariable(0,6),\n this.grid.getVariable(3,6),\n this.grid.getVariable(4,6),\n this.grid.getVariable(6,6)\n ));\n\n for (Position pos : vars) {\n if (expectedBombs.contains(pos)) {\n assertTrue(model.hasBomb(pos));\n } else {\n assertFalse(model.hasBomb(pos));\n }\n\n if (expectedNoBombs.contains(pos)) {\n assertTrue(model.hasNoBombs(pos));\n } else {\n assertFalse(model.hasNoBombs(pos));\n }\n }\n\n /*\n 00002x???\n 00003x???\n 00002xxx?\n 0000112x?\n 0000001x?\n 1221112x?\n xxxxxxxx?\n ?????????\n */\n }", "public ExplanationPipeline<I, F>\n addRuleSetOptimizerWithTest(Optimizer<RuleExplanationSet, RuleExplanationSetFactory, ?, ?> toAdd) {\n return addRuleSetOptimizerWithTest(toAdd, false);\n }", "@Test\n public void testLast3DayAll() {\n long t1 = new DateTime(\"2020-10-10T10:10:00\").getMillis();\n long t2 = new DateTime(\"2020-10-11T10:10:00\").getMillis();\n long t3 = new DateTime(\"2020-10-12T10:10:00\").getMillis();\n long t4 = new DateTime(\"2020-10-13T10:10:00\").getMillis();\n long taskAId1 = taskService.createTaskByJobId(jobAId, t1, t1, TaskType.SCHEDULE);\n long taskAId2 = taskService.createTaskByJobId(jobAId, t2, t2, TaskType.SCHEDULE);\n long taskAId3 = taskService.createTaskByJobId(jobAId, t3, t3, TaskType.SCHEDULE);\n long taskBId1 = taskService.createTaskByJobId(jobBId, t1, t1, TaskType.SCHEDULE);\n long taskBId2 = taskService.createTaskByJobId(jobBId, t2, t2, TaskType.SCHEDULE);\n long taskBId3 = taskService.createTaskByJobId(jobBId, t3, t3, TaskType.SCHEDULE);\n\n DAGDependChecker checker = new DAGDependChecker(jobCId);\n Map<Long, JobDependStatus> jobDependMap = Maps.newHashMap();\n DependencyExpression dependencyExpression = new TimeOffsetExpression(\"d(3)\");\n DependencyStrategyExpression dependencyStrategy = new DefaultDependencyStrategyExpression(CommonStrategy.ALL.getExpression());\n JobDependStatus statusC2A = new JobDependStatus(jobCId, jobAId, dependencyExpression, dependencyStrategy);\n JobDependStatus statusC2B = new JobDependStatus(jobCId, jobBId, dependencyExpression, dependencyStrategy);\n jobDependMap.put(jobAId, statusC2A);\n jobDependMap.put(jobBId, statusC2B);\n checker.setJobDependMap(jobDependMap);\n\n Assert.assertEquals(false, checker.checkDependency(Sets.newHashSet(jobAId, jobBId), t4));\n\n taskService.updateStatus(taskAId1, TaskStatus.SUCCESS);\n Assert.assertEquals(false, checker.checkDependency(Sets.newHashSet(jobAId, jobBId), t4));\n taskService.updateStatus(taskAId2, TaskStatus.SUCCESS);\n Assert.assertEquals(false, checker.checkDependency(Sets.newHashSet(jobAId, jobBId), t4));\n taskService.updateStatus(taskAId3, TaskStatus.SUCCESS);\n Assert.assertEquals(false, checker.checkDependency(Sets.newHashSet(jobAId, jobBId), t4));\n\n taskService.updateStatus(taskBId1, TaskStatus.SUCCESS);\n Assert.assertEquals(false, checker.checkDependency(Sets.newHashSet(jobAId, jobBId), t4));\n taskService.updateStatus(taskBId2, TaskStatus.SUCCESS);\n Assert.assertEquals(false, checker.checkDependency(Sets.newHashSet(jobAId, jobBId), t4));\n taskService.updateStatus(taskBId3, TaskStatus.SUCCESS);\n Assert.assertEquals(true, checker.checkDependency(Sets.newHashSet(jobAId, jobBId), t4));\n\n taskService.deleteTaskAndRelation(taskAId1);\n taskService.deleteTaskAndRelation(taskAId2);\n taskService.deleteTaskAndRelation(taskAId3);\n taskService.deleteTaskAndRelation(taskBId1);\n taskService.deleteTaskAndRelation(taskBId2);\n taskService.deleteTaskAndRelation(taskBId3);\n }", "private void actOnRules() {\r\n\r\n\t\tfor(String key: myRuleBook.keySet())\r\n\t\t{\r\n\r\n\t\t\tRule rule = myRuleBook.get(key);\r\n\t\t\tSpriteGroup[] obedients = myRuleMap.get(rule);\r\n\r\n\t\t\tif(rule.isSatisfied(obedients))\r\n\t\t\t{\r\n\t\t\t\trule.enforce(obedients);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void testConjoinedVariablesPropagateAccrossConjunctionFailingOnNonUnification() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"g(x)\", \"h(y)\", \"f(X, Y) :- g(X), h(Y)\" }, \"?- f(X, X)\");\n }", "private void ruleR1(Node a, Node b, Node c, Graph graph) {\n if (graph.isAdjacentTo(a, c)) {\n return;\n }\n\n if (graph.getEndpoint(a, b) == Endpoint.ARROW && graph.getEndpoint(c, b) == Endpoint.CIRCLE) {\n if (!isArrowpointAllowed(graph, b, c)) {\n return;\n }\n\n graph.setEndpoint(c, b, Endpoint.TAIL);\n graph.setEndpoint(b, c, Endpoint.ARROW);\n }\n }", "public static native void OpenMM_AmoebaVdwForce_setEpsilonCombiningRule(PointerByReference target, Pointer epsilonCombiningRule);", "private void updateSingles(Hierarchy con, ViolatedCandidate lCandidate, ViolatedCandidate tCandidate,\n double delta) {\n Multiset<Constraint> targetPreferringView = UpdateUtils.getViolatedByLearner(lCandidate, tCandidate);\n Multiset<Constraint> learnerPreferringView = UpdateUtils.getViolatedByTarget(lCandidate, tCandidate);\n Multiset<Constraint> learnerPreferringHigh = HashMultiset.create(learnerPreferringView.size());\n double promoteWeightedDelta = delta / targetPreferringView.size();\n double maxTPreferringRanking = Double.MIN_VALUE;\n for (Constraint constraint : targetPreferringView.elementSet()) {\n maxTPreferringRanking = Math.max(maxTPreferringRanking, con.getRanking(constraint));\n double multipliedDelta = (targetPreferringView.count(constraint) * promoteWeightedDelta);\n con.changeConstraintRanking(constraint, multipliedDelta);\n }\n\n for (Constraint constraint : learnerPreferringView.elementSet()) {\n double thisRanking = con.getRanking(constraint);\n if (thisRanking > maxTPreferringRanking) {\n int count = learnerPreferringView.count(constraint);\n learnerPreferringHigh.add(constraint, count);\n }\n }\n // If 'higher' set is empty, just add argMax to it\n if (learnerPreferringHigh.isEmpty()) {\n Constraint argMax = UpdateUtils.getMax(learnerPreferringView, con);\n learnerPreferringHigh.add(argMax);\n }\n\n Multiset<Constraint> toIterateOver = learnerPreferringHigh;\n\n double demoteWeightedDelta = -(delta / toIterateOver.size());\n for (Constraint constraint : toIterateOver.elementSet()) {\n double multipliedDelta = toIterateOver.count(constraint) * demoteWeightedDelta;\n con.changeConstraintRanking(constraint, multipliedDelta);\n // System.out.println(\"↓ Updating \" + constraint +\" by \" +\n // multipliedDelta);\n }\n }", "@Test\n void testSemanticGrammarErrors() {\n assertThrows(IllegalArgumentException.class, () -> A_G1.withProduction(A_PROD2));\n }", "private static void writeFinalRuleBase (boolean printStdOut) throws IllegalArgumentException, IOException{\n \t\n \tFileSystem fs = FileSystem.get(Mediator.getConfiguration());\n \tPath textPath = new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_text.txt\");\n BufferedWriter bwText = new BufferedWriter(new OutputStreamWriter(fs.create(textPath,true)));\n FileStatus[] status = fs.listStatus(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_TMP\"));\n \tWriter writer = SequenceFile.createWriter(Mediator.getConfiguration(), \n \t\t\tWriter.file(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath())), \n \t\t\tWriter.keyClass(ByteArrayWritable.class), Writer.valueClass(FloatWritable.class));\n Reader reader;\n\t\tByteArrayWritable rule = new ByteArrayWritable();\n\t\tFloatWritable ruleWeight = new FloatWritable();\n\t\tint id = 0;\n \n bwText.write(\"\\nRULE BASE:\\n\\n\");\n if (printStdOut)\n \tSystem.out.println(\"\\nRULE BASE:\\n\");\n \t\n \t// Read all sequence files from stage 2\n \tfor (FileStatus fileStatus:status){\n \t\t\n \t\tif (!fileStatus.getPath().getName().contains(\"_SUCCESS\")){\n \t\t\n\t \t\t// Open sequence file\n\t \t\treader = new Reader(Mediator.getConfiguration(), Reader.file(fileStatus.getPath()));\n\t \n\t // Read all rules\n\t while (reader.next(rule, ruleWeight)) {\n\t \t\n\t \t// Write rule in the output sequence file\n\t \twriter.append(rule, ruleWeight);\n\t \t\n\t \tbwText.write(\"Rule (\"+id+\"): IF \");\n\t \tif (printStdOut)\n\t \t\tSystem.out.print(\"Rule (\"+id+\"): IF \");\n\t \t\n\t \t// Write antecedents\n\t \tfor (int i = 0; i < rule.getBytes().length - 2; i++){\n\t \t\t\n\t \t\tbwText.write(Mediator.getVariables()[i].getName()+\" IS \");\n\t \t\tif (printStdOut)\n\t \t\tSystem.out.print(Mediator.getVariables()[i].getName()+\" IS \");\n\t \t\tif (Mediator.getVariables()[i] instanceof NominalVariable){\n\t \t\t\tbwText.write(((NominalVariable)Mediator.getVariables()[i]).getNominalValue(rule.getBytes()[i])+\" AND \");\n\t \t\t\tif (printStdOut)\n\t \t\tSystem.out.print(((NominalVariable)Mediator.getVariables()[i]).getNominalValue(rule.getBytes()[i])+\" AND \");\n\t \t\t}\n\t \t\t\telse {\n\t \t\t\t\tbwText.write(\"L_\"+rule.getBytes()[i]+\" AND \");\n\t \t\t\t\tif (printStdOut)\n\t \t\tSystem.out.print(\"L_\"+rule.getBytes()[i]+\" AND \");\n\t \t\t\t}\n\t \t\t\n\t \t}\n\t \t\n\t \t// Write the last antecedent\n\t \tbwText.write(Mediator.getVariables()[rule.getBytes().length-2].getName()+\" IS \");\n\t \tif (printStdOut)\n\t \t\tSystem.out.print(Mediator.getVariables()[rule.getBytes().length-2].getName()+\" IS \");\n\t \tif (Mediator.getVariables()[rule.getBytes().length-2] instanceof NominalVariable){\n\t \t\tbwText.write(((NominalVariable)Mediator.getVariables()[rule.getBytes().length-2]).getNominalValue(rule.getBytes()[rule.getBytes().length-2]));\n\t \t\tif (printStdOut)\n\t \t\tSystem.out.print(((NominalVariable)Mediator.getVariables()[rule.getBytes().length-2]).getNominalValue(rule.getBytes()[rule.getBytes().length-2]));\n\t \t}\n\t \t\telse {\n\t \t\t\tbwText.write(\"L_\"+rule.getBytes()[rule.getBytes().length-2]);\n\t \t\t\tif (printStdOut)\n\t \t\tSystem.out.print(\"L_\"+rule.getBytes()[rule.getBytes().length-2]);\n\t \t\t}\n\t \t\n\t \t// Write the class and rule weight\n\t \tbwText.write(\" THEN CLASS = \"+Mediator.getClassLabel(rule.getBytes()[rule.getBytes().length-1]));\n\t \tbwText.write(\" WITH RW = \"+ruleWeight.get()+\"\\n\\n\");\n\t \tif (printStdOut){\n\t \t\tSystem.out.print(\" THEN CLASS = \"+Mediator.getClassLabel(rule.getBytes()[rule.getBytes().length-1]));\n\t \t\tSystem.out.print(\" WITH RW = \"+ruleWeight.get()+\"\\n\\n\");\n\t \t}\n\t\n\t \tid++;\n\t \t\n\t }\n\t \n\t reader.close();\n \n \t\t}\n \t\t\n \t}\n \t\n \tbwText.close();\n writer.close();\n \t\n \t// Remove temporary rule base\n \tfs.delete(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_TMP\"),true);\n \t\n }", "@Test\n public void preDefine_TestD()\n {\n //list of prerequisites,i.e. source accounts and destination accounts\n //source accounts created and added to db\n Account Deposit_High_Risk_srcAccount = new Account(3123, \"Deposit_High_Risk_srcAccount\", 10000);\n Account Deposit_Low_Risk_srcAccount = new Account(8665, \"Deposit_Low_Risk_srcAccount\", 10000);\n Account Main_High_Risk_srcAccount = new Account(3143, \"Main_High_Risk_srcAccount\", 10000);\n Account Main_Low_Risk_srcAccount = new Account(3133, \"Main_Low_Risk_srcAccount\", 10000);\n Account Commission_High_Risk_srcAccount = new Account(6565, \"Commission_High_Risk_srcAccount\", 10000);\n Account Commission_Low_Risk_srcAccount = new Account(6588, \"Commission_Low_Risk_srcAccount\", 10000);\n acc_db.addAccount(Deposit_High_Risk_srcAccount);\n acc_db.addAccount(Deposit_Low_Risk_srcAccount);\n acc_db.addAccount(Main_High_Risk_srcAccount);\n acc_db.addAccount(Main_Low_Risk_srcAccount);\n acc_db.addAccount(Commission_High_Risk_srcAccount);\n acc_db.addAccount(Commission_Low_Risk_srcAccount);\n\n //create and add destination accounts\n Account Commission_High_Risk_destAccount = new Account(4444, \"Commission_High_Risk_destAccount\", 10000);\n Account Commission_Low_Risk_destAccount = new Account(4445, \"Commission_Low_Risk_destAccount\", 10000);\n acc_db.addAccount(Commission_High_Risk_destAccount);\n acc_db.addAccount(Commission_Low_Risk_destAccount);\n\n //adding Main Transaction Destination Accounts to database\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n CompoundTransaction ct = new CompoundTransaction(\"High Risk Preset\");\n\n List<Account> mainDests = new ArrayList<Account>();\n mainDests.add(acc);\n mainDests.add(acc2);\n\n //Purposely Adding a Single amount to fail the preDefine Method\n List<Long> mainAmounts = new ArrayList<Long>();\n long main_amount1 = 130;\n mainAmounts.add(main_amount1);\n\n //Creating and Adding Deposit Destination Account to Database\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n long depAmount = 20;\n acc_db.addAccount(acc3);\n\n RiskPresets preset = new RiskPresets(\"high\");\n\n Assert.assertEquals(false,ct.preDefine(preset,acc3,depAmount,mainDests,mainAmounts,acc_db));\n }", "protected IGrid applyRules(IRuleset ruleset, IGrid nextGeneration) {\n\t\tfor(int col = 0; col < this.gridConfiguration.getCols(); col++) {\n\t\t\tfor(int row = 0; row < this.gridConfiguration.getRows(); row++) {\n\t\t\t\tnextGeneration.setState(col, row, ruleset.getNextGenerationState(\n\t\t\t\t\t\tthis.getState(col, row),\n\t\t\t\t\t\tthis.getGridConfiguration().getNeighborhood().countNeighborsAlive(col, row, this),\n\t\t\t\t\t\tthis.getGridConfiguration().getNeighborhood().getNeighbors().size()));\n\t\t\t}\n\t\t}\n\n\t\treturn nextGeneration;\n\t}", "@Test\n public void testProcessProtocolResearchAreaBusinessRules() throws Exception {\n ProtocolDocument document = getNewProtocolDocument();\n setProtocolRequiredFields(document);\n // check case 1\n assertTrue(rule.processProtocolResearchAreaBusinessRules(document));\n \n // check case 2\n ProtocolResearchArea dummyPRA0 = new ProtocolResearchArea();\n ResearchArea dummyRA0 = new ResearchArea();\n dummyRA0.setActive(true);\n dummyPRA0.setResearchAreas(dummyRA0);\n \n ProtocolResearchArea dummyPRA1 = new ProtocolResearchArea();\n ResearchArea dummyRA1 = new ResearchArea();\n dummyRA1.setActive(true);\n dummyPRA1.setResearchAreas(dummyRA1);\n \n ProtocolResearchArea dummyPRA2 = new ProtocolResearchArea();\n ResearchArea dummyRA2 = new ResearchArea();\n dummyRA2.setActive(true);\n dummyPRA2.setResearchAreas(dummyRA2);\n \n ProtocolResearchArea dummyPRA3 = new ProtocolResearchArea();\n ResearchArea dummyRA3 = new ResearchArea();\n dummyRA3.setActive(true);\n dummyPRA3.setResearchAreas(dummyRA3);\n \n List<ProtocolResearchAreaBase> pras = new ArrayList<ProtocolResearchAreaBase>();\n pras.add(dummyPRA0);\n pras.add(dummyPRA1);\n pras.add(dummyPRA2);\n pras.add(dummyPRA3);\n \n document.getProtocol().setProtocolResearchAreas(pras);\n \n assertTrue(document.getProtocol().getProtocolResearchAreas(0).getResearchAreas().isActive());\n assertTrue(document.getProtocol().getProtocolResearchAreas(1).getResearchAreas().isActive());\n assertTrue(document.getProtocol().getProtocolResearchAreas(2).getResearchAreas().isActive());\n assertTrue(document.getProtocol().getProtocolResearchAreas(3).getResearchAreas().isActive());\n \n assertTrue(rule.processProtocolResearchAreaBusinessRules(document));\n \n // check case 3\n assertTrue(document.getProtocol().getProtocolResearchAreas(0).getResearchAreas().isActive());\n \n dummyRA1.setActive(false);\n assertFalse(document.getProtocol().getProtocolResearchAreas(1).getResearchAreas().isActive());\n \n assertTrue(document.getProtocol().getProtocolResearchAreas(2).getResearchAreas().isActive());\n \n dummyRA3.setActive(false);\n assertFalse(document.getProtocol().getProtocolResearchAreas(3).getResearchAreas().isActive());\n \n assertFalse(rule.processProtocolResearchAreaBusinessRules(document));\n String errorPropertyKey = INACTIVE_RESEARCH_AREAS_PREFIX + SEPERATOR + \"1.3.\";\n assertError(errorPropertyKey, KeyConstants.ERROR_PROTOCOL_RESEARCH_AREA_INACTIVE);\n }", "public ValidatorStandardSubsetBroad() {\n super();\n addErrorKey(ERROR_KEY1);\n addValidatorErrorListener(new DefaultErrorListener(), ERROR_KEY1);\n addErrorKey(ERROR_KEY2);\n addValidatorErrorListener(new DefaultErrorListener(), ERROR_KEY2); \n }", "@Before\n public void setUp() {\n\n events = new ArrayList<Event>();\n\n for (Integer i = 0; i < 10; i++) {\n events.add(new Event(i, i.toString(), \"\"));\n }\n Set<Conflict> conflicts = new HashSet<Conflict>();\n conflicts.add(new Conflict(events.get(0), events.get(1), 3));\n conflicts.add(new Conflict(events.get(0), events.get(3), 5));\n conflicts.add(new Conflict(events.get(1), events.get(3), 6));\n conflicts.add(new Conflict(events.get(1), events.get(2), 1));\n conflicts.add(new Conflict(events.get(3), events.get(2), 1));\n\n conflicts.add(new Conflict(events.get(1), events.get(0), 3));\n conflicts.add(new Conflict(events.get(3), events.get(0), 5));\n conflicts.add(new Conflict(events.get(3), events.get(1), 6));\n conflicts.add(new Conflict(events.get(2), events.get(1), 1));\n conflicts.add(new Conflict(events.get(2), events.get(3), 1));\n int CL = 10;\n int md = 4;\n int TS = 5;\n graph = new UndirectedWeightedGraph<>(events, CL, md, TS);\n graph.addAllEdges(conflicts);\n }", "@Test\n public void TestBeforeWithTooStrongAfter() {\n try {\n new RuleBasedCollator(\"&[before 2]x<<q<p\");\n errln(\"should forbid before-2-reset followed by primary relation\");\n } catch(Exception expected) {\n }\n try {\n new RuleBasedCollator(\"&[before 3]x<<<q<<s<p\");\n errln(\"should forbid before-3-reset followed by primary or secondary relation\");\n } catch(Exception expected) {\n }\n }", "public static void genRule(final PLFormula psi, final RuleSet rules) {\n\t\tPLFormula[] children = ((OR) psi).getChildren();\n\t\tAND and = (AND) children[(int) (Math.random() * children.length)];\n\t\tArrayList<Integer> left = new ArrayList<>();\n\t\tleft.addAll(and.asLitSet());\n\t\tdouble changes = (left.size() / 2) - 4 + Math.random() * 3;\n\t\t\n\t\tfor(int c = 0; c < changes || left.size() > 4; c++) {\n\t\t\tif(left.size() > 1)\n\t\t\t\tleft.remove((int) (Math.random() * left.size()));\n\t\t}\n\t\t\n\t\tLitSet right = new LitSet(li);\n\t\tright.addAll(left);\n\t\tchanges = 1 + Math.random() * (left.size() * 0.9);\n\t\tInteger definitive_removal = 0;\n\t\t\n\t\tfor(int c = 0; c < changes; c++) {\n\t\t\tif(right.size() > 0) {\n\t\t\t\tdefinitive_removal = left.get((int) (Math.random() * left.size()));\n\t\t\t\tright.remove(definitive_removal);\n\t\t\t}\n\t\t}\n\t\t\n\t\tchanges = 1 + Math.random() * (right.size() / 2);\n\t\t\n\t\tfor(int c = 0; c < changes; c++) {\n\t\t\tInteger literal = (int) (Math.random() * li.getVarCount());\n\t\t\t\n\t\t\twhile(literal == definitive_removal || literal == 0 || literal == 1 || literal == -1) {\n\t\t\t\tliteral = (int) (Math.random() * li.getVarCount());\n\t\t\t}\n\t\t\t\n\t\t\tif(!right.contains(literal)) {\n\t\t\t\tright.add(literal);\n\t\t\t}\n\t\t}\n\t\t\n\t\tLitSet ls_left = new LitSet(li);\n\t\tLitSet ls_right = new LitSet(li);\n\t\tLitSet ls_context = new LitSet(li);\n\t\tls_left.addAll(left);\n\t\tls_right.addAll(right);\n\t\t\n\t\tfor(Integer l : ls_right) {\n\t\t\tif(ls_left.contains(l)) {\n\t\t\t\tls_context.add(l);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Integer l : ls_context) {\n\t\t\tls_left.remove(l);\n\t\t\tls_right.remove(l);\n\t\t}\n\t\t\n\t\trules.addRule(new AND(li, ls_context), new AND(li, ls_left), new AND(li, ls_right), RULE_COSTS);\n\t}", "@Test\n public void testCommonSubExpression() {\n // In the following,\n // (select 1 from dept where abs(-1)=20)\n // occurs twice, but it's a common sub-expression, so the rule should only apply once.\n HepProgramBuilder programBuilder = HepProgram.builder();\n programBuilder.addRuleInstance( FilterToCalcRule.INSTANCE );\n\n final HepTestListener listener = new HepTestListener( 0 );\n HepPlanner planner = new HepPlanner( programBuilder.build() );\n planner.addListener( listener );\n\n final String sql = \"(select 1 from dept where abs(-1)=20)\\n\" + \"union all\\n\" + \"(select 1 from dept where abs(-1)=20)\";\n planner.setRoot( tester.convertSqlToRel( sql ).alg );\n AlgNode bestRel = planner.findBestExp();\n\n assertThat( bestRel.getInput( 0 ).equals( bestRel.getInput( 1 ) ), is( true ) );\n assertThat( listener.getApplyTimes() == 1, is( true ) );\n }", "@Test\r\n\tpublic void testGetCondition35() {\n\r\n\t\tCancerHistory h1 = new CancerHistory(\"NHI123\", \"eref1\",\r\n\t\t\t\t(short) Util.FATHER, \"\", true, (short) 50, false, false,\r\n\t\t\t\t(short) -1, false, (short) -1, \"\");\r\n\r\n\t\tCancerHistory[] td1 = { h1 };\r\n\t\tmanager.setHistories(td1);\r\n\r\n\t\tassertEquals(\"# condition 3-5 (run 1) \", false,\r\n\t\t\t\triskCalculator.getCondition35());\r\n\r\n\t\t// run 2.\r\n\t\t// father with CC, diagnosed at 49 ==> true\r\n\r\n\t\tCancerHistory h2 = new CancerHistory(\"NHI123\", \"eref1\",\r\n\t\t\t\t(short) Util.FATHER, \"\", true, (short) 49, false, false,\r\n\t\t\t\t(short) -1, false, (short) -1, \"\");\r\n\r\n\t\tCancerHistory[] td2 = { h2 };\r\n\t\tmanager.setHistories(td2);\r\n\r\n\t\tassertEquals(\"# condition 3-5 (run 2) \", true,\r\n\t\t\t\triskCalculator.getCondition35());\r\n\t\t// risk category is 2, because condition 35 has been removed.\r\n\t\tassertEquals(\" run 2\",\r\n\t\t\t\t2 , riskCalculator.calculateRisk());\r\n\r\n\t\t// run 3.\r\n\t\t// grandfather with CC, diagnosed at 49 ==> false, because\r\n\t\t// it is a secondary relative\r\n\r\n\t\tCancerHistory h3 = new CancerHistory(\"NHI123\", \"eref1\",\r\n\t\t\t\t(short) Util.PAT_GRANDFATHER, \"\", true, (short) 49, false,\r\n\t\t\t\tfalse, (short) -1, false, (short) -1, \"\");\r\n\r\n\t\tCancerHistory[] td3 = { h3 };\r\n\t\tmanager.setHistories(td3);\r\n\r\n\t\tassertEquals(\"# condition 3-5 (run 3) \", false,\r\n\t\t\t\triskCalculator.getCondition35());\r\n\r\n\t\t\r\n\t\t// run 4.\r\n\t\t// father and grandfather with CC, diagnosed at 49 ==> true\r\n\r\n\t\tCancerHistory h4 = new CancerHistory(\"NHI123\", \"eref1\",\r\n\t\t\t\t(short) Util.PAT_GRANDFATHER, \"\", true, (short) 49, false,\r\n\t\t\t\tfalse, (short) -1, false, (short) -1, \"\");\r\n\t\tCancerHistory h5 = new CancerHistory(\"NHI123\", \"eref1\",\r\n\t\t\t\t(short) Util.FATHER, \"\", true, (short) 49, false,\r\n\t\t\t\tfalse, (short) -1, false, (short) -1, \"\");\r\n\r\n\t\t\r\n\t\tCancerHistory[] td4 = { h4, h5 };\r\n\t\tmanager.setHistories(td4);\r\n\r\n\t\tassertEquals(\"# condition 3-5 (run 4) \", true,\r\n\t\t\t\triskCalculator.getCondition35());\r\n\t\tassertEquals(\" run 4 \",\r\n\t\t\t\t3 , riskCalculator.calculateRisk());\r\n\t}", "public void testAltScoring() throws Exception {\n \n String [] runsData = {\n \"1,1,A,1,No\", // 20\n \"2,1,A,3,Yes\", // 3 (Minute points for 1st Yes count)\n \"3,1,A,5,No\", // 20 (a No on a solved problem)\n \"4,1,A,7,Yes\", // zero (only \"No's\" count)\n \"5,1,A,9,No\", // 20 (another No on the solved problem)\n \n \"6,1,B,11,No\", // zero (problem has not been solved)\n \"7,1,B,13,No\", // zero (problem has not been solved)\n \n \"8,2,A,30,Yes\", // 30 (Minute points for 1st Yes)\n \n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n\n // Rank TeamId Solved Penalty\n \n // alt1: 0 0 200\n \n String[] alt1rankData = {\n \"1,team1,1,200\",\n \"2,team2,1,200\", // tie-breaker causes rank 2\n };\n \n scoreboardTest (2, runsData, alt1rankData, alt1);\n // alt2: 30 5 0\n String[] alt2rankData = {\n \"1,team1,1,45\", // 1 no@30 each + 3 min * 5\n \"2,team2,1,150\", // 5*30\n };\n \n scoreboardTest (2, runsData, alt2rankData, alt2);\n \n // alt3: 0 10 0\n String[] alt3rankData = {\n \"1,team1,1,30\", // 3 min * 10\n \"2,team2,1,300\", // 30 min * 10\n };\n \n scoreboardTest (2, runsData, alt3rankData, alt3);\n \n // alt4: 5 0 20\n String[] alt4rankData = {\n \"1,team2,1,20\", // base yes\n \"2,team1,1,25\", // base yes + 1 no\n };\n \n scoreboardTest (2, runsData, alt4rankData, alt4);\n\n }", "@Override\n protected DataSet<GraphHead> computeNewGraphHeads() {\n return firstCollection.getGraphHeads()\n .union(secondCollection.getGraphHeads())\n .groupBy(new Id<GraphHead>())\n .reduceGroup(new GroupCountEquals<GraphHead>(2));\n }", "void addRuleDefinition(RuleDefinition rd) throws ResultException, DmcValueException, DmcNameClashException {\n \t// Again, some trickiness, we have to resolve the rule so that we can access and use the must/may\n \t// attributes that are defined for it and add them to the class definition we create\n try {\n\t\t\trd.resolveReferences(this,currentResolver);\n\t\t} catch (DmcValueExceptionSet e) {\t\t\t\n\t\t\tResultException ex = new ResultException();\n\t\t\tex.addError(\"Unresolved references in RuleDefinition: \" + rd.getName());\n\t\t\t\n\t\t\tfor(DmcValueException dve : e.getExceptions()){\n\t\t\t\tex.moreMessages(dve.getMessage());\n\t\t\t}\n\t\t\tthrow(ex);\n\t\t}\n \t\n \tDefinitionName ruleClassName = new DefinitionName(rd.getName().getNameString() + \"Data\");\n \t\n if (checkAndAdd(rd.getObjectName(),rd,ruleDefs) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsg(rd.getObjectName(),rd,ruleDefs,\"rule definitions\"));\n \tthrow(ex);\n }\n \n // dot name is current schema.ruledef.RuleDefinition. We want just schema.ruledef\n ruleDefsByDot.put((DotName) rd.getDotName().getParentName(), rd);\n \n if (checkAndAddDOT(rd.getDotName(),rd,globallyUniqueMAP,null) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(rd.getObjectName(),rd,globallyUniqueMAP,\"definition names\"));\n throw(ex);\n }\n\n // We hold on to this because we'll reuse it for the class we craete\n int originalRefDefID = rd.getDmdID();\n \n if (performIDChecks){\n\t // Bump up the DMD ID by the amount of schemaBaseID\n\t int base = rd.getDefinedIn().getSchemaBaseID();\n\t int range = rd.getDefinedIn().getSchemaIDRange();\n\t int current = base + rd.getDmdID();\n\t \n\t if (current > (base+range)){\n\t \tResultException ex = new ResultException(\"Number of rules exceeds schema ID range: \" + rd.getName());\n\t \tex.moreMessages(\"The dmdID must be less than \" + range);\n\t \tex.setLocationInfo(rd.getFile(), rd.getLineNumber());\n\t \tthrow(ex); \t\n\t }\t \t\n\t \n\t rd.setDmdID(base + current);\n }\n \n// ClassDefinition existing = classDefs.get(ruleClassName);\n ClassDefinition existing = classDefinitions.getDefinition(ruleClassName.getNameString());\n if (existing != null){\n \t// We have the class for this rule, just check that it's auto generated\n \tif (existing.getInternallyGenerated()){\n \t\treturn;\n \t}\n \telse{\n \t\t// We have some kind of clash\n \t}\n }\n \n // We check that the ID of the rule doesn't clash with the class definitions, since we're\n // going to create a class for this rule with the rule's ID.\n if (classesByID.get(rd.getDmdID()) != null){\n \tResultException ex = new ResultException();\n \tex.addError(clashingIDsMsg(rd.getDmdID(),rd,classesByID,\"dmdID\"));\n \tthrow(ex);\n }\n \n ///////////////////////////////////////////////////////////////////////\n \n ClassDefinition cd = new ClassDefinition();\n cd.setName(ruleClassName);\n if (rd.getIsExtensible())\n \tcd.setClassType(ClassTypeEnum.EXTENSIBLE);\n else\n \tcd.setClassType(ClassTypeEnum.STRUCTURAL);\n // Note: we don't use the dmdID in the rule definition because it has already been bumped\n cd.setDmdID(originalRefDefID);\n cd.setDerivedFrom(MetaSchemaAG._RuleData);\n cd.setInternallyGenerated(true);\n cd.setRuleDefinition(rd);\n cd.setIsNamedBy(MetaSchemaAG._ruleName);\n \n // The name of a rule definition is schema.ruledef.RuleDefinition\n // For the associated class, it will be schema.ruledefData.ClassDefinition\n DotName className = new DotName(((DotName) rd.getDotName().getParentName()).getNameString() + \"Data.ClassDefinition\");\n// DotName nameAndTypeName = new DotName(cd.getName() + \"Data.ClassDefinition\");\n cd.setDotName(className);\n// cd.setNameAndTypeName(nameAndTypeName);\n\n cd.addMust(MetaSchemaAG._ruleName);\n cd.addMust(MetaSchemaAG._ruleTitle);\n cd.addMay(MetaSchemaAG._description);\n \n\t\tif (rd.getRuleType() == RuleTypeEnum.ATTRIBUTE)\n\t\t\tcd.addMust(MetaSchemaAG._applyToAttribute);\n\n cd.setFile(rd.getFile());\n cd.setLineNumber(rd.getLineNumber());\n cd.setDefinedIn(rd.getDefinedIn());\n \n if (rd.getDescription() != null){\n \tIterator<String> it = rd.getDescription();\n \twhile(it.hasNext()){\n \t\tcd.addDescription(it.next());\n \t}\n }\n \n for(AttributeDefinition ad: rd.getMay()){\n \tcd.addMay(ad);\n }\n \n for(AttributeDefinition ad: rd.getMust()){\n \tcd.addMust(ad);\n }\n \n addClass(cd);\n \n // We add the new class to the schema's list of classes\n rd.getDefinedIn().addClassDefList(cd);\n }", "public void InstantiateAllRelevantsInRule (Rule rule, boolean forIntersection, boolean online)\n\t{\n\t\t//List<Rule> instRuleVector = new CopyOnWriteArrayList<Rule>();\n\t\tSet<Rule> instRuleVector = Collections.newSetFromMap(new ConcurrentHashMap<Rule, Boolean>());\n\t\t//long startTime = System.currentTimeMillis();\n\t\tif (false == forIntersection && false == rule.isFullyInst()) \n\t\t{\n\t\t\tfor (Atom bodyAtom : rule.getBody().getAtoms()) \n\t\t\t{\n\t\t\t\tfor (Atom instAtom : this.addedInstAtomsInLastIteration) \n\t\t\t\t{\n\t\t\t\t\tif (instAtom.getName().equals(bodyAtom.getName()))\n\t\t\t\t\t{\n\t\t\t\t\t\tAtom copyOfinstAtom = new Atom (instAtom);\n\t\t\t\t\t\tRule temp = new Rule (rule);\n\t\t\t\t\t\ttemp.SwapToInstAtomAndPartiallyInst(bodyAtom, copyOfinstAtom);\n\t\t\t\t\t\tif (true == temp.getIsFullyInst())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Provenance.getInstance().AddRuleToProv(temp, this.level);\n\t\t\t\t\t\t\t//KeyMap.getInstance().UpdateRule(temp);\n\t\t\t\t\t\t\ttemp.getBody().setRuleUsed(rule);//added for the top-k\n\t\t\t\t\t\t\ttemp.getHead().setRuleUsed(rule);\n\t\t\t\t\t\t\t//for top-1!\n\t\t\t\t\t\t\tif (false == online) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t/*KeyMap.getInstance().UpdateFactBody(temp.getBody());\n\t\t\t\t\t\t\t\tBody pointerBody = KeyMap.getInstance().GetPointerBodyForTop1(temp.getBody());\n\t\t\t\t\t\t\t\tif (true == pointerBody.LegalDerivation())\n\t\t\t\t\t\t\t\t{*/\n\t\t\t\t\t\t\t\tKeyMap.getInstance().Update(temp.getHead());\n\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\t//AtomsDerived.getInstance().Update(temp.getHead());\n\t\t\t\t\t\t\t\tProvenance.getInstance().AddRuleToProv(temp, this.level);\n\t\t\t\t\t\t\t\t//addedFullProv.add(KeyMap.getInstance().Get(temp.getHead()));\n\t\t\t\t\t\t\t\t//System.out.println(temp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tHandleTop1Scenario(temp, online);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\telse //if (false == online || temp.getRestricted() == null || false == temp.getBody().Uninstantiatated())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinstRuleVector.add(temp);\n\t\t\t\t\t\t\t//DeriveRule(temp, online);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (true == this.addedInstAtomsInLastIteration.isEmpty() || false == instRuleVector.isEmpty())\n\t\t\t{\n\t\t\t\tDeriveByRuleBottomUp ruleDeriver = new DeriveByRuleBottomUp(rule, this.p, this.topk, this.treesWaiting, this.previouslyFoundRelevants);\n\t\t\t\truleDeriver.FindDerivationsForRuleBottomUp(instRuleVector, forIntersection, level);\n\t\t\t}\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\tif (false == online || true == rule.getBody().AllAtomsInDb()) \n\t\t\t{\n\t\t\t\trule.getHead().setRuleUsed(rule);\n\t\t\t\trule.getBody().setRuleUsed(rule);//added for the top-k\n\t\t\t\tProvenance.getInstance().AddRuleToProv(rule, this.level);\n\t\t\t\t//for top-1!\n\t\t\t\tif (false == online) KeyMap.getInstance().Update(rule.getHead());\n\t\t\t\telse HandleTop1Scenario(rule, online);\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*long endTime = System.currentTimeMillis();\n\t\tif ((endTime-startTime) > 200)\n\t\t{\n\t\t\tSystem.out.println(\"DeriveByProgramBottomUp::InstantiateAllRelevantsInRule:: iteration time: \" + (endTime-startTime));\n\t\t\tSystem.out.println(\"DeriveByProgramBottomUp::InstantiateAllRelevantsInRule:: rule derived: \" + rule);\n\t\t\tSystem.out.println(\"DeriveByProgramBottomUp::InstantiateAllRelevantsInRule:: num of atoms last iter: \" + this.addedInstAtomsInLastIteration.size());\n\t\t}*/\n\t}", "private void ruleR2(Node a, Node b, Node c, Graph graph) {\n if (!graph.isAdjacentTo(a, c)) {\n return;\n }\n\n if (graph.getEndpoint(b, a) == Endpoint.TAIL && graph.getEndpoint(a, b) == Endpoint.ARROW\n && graph.getEndpoint(b, c) == Endpoint.ARROW && graph.getEndpoint(a, c) == Endpoint.CIRCLE) {\n if (!isArrowpointAllowed(graph, a, c)) {\n return;\n }\n\n graph.setEndpoint(a, c, Endpoint.ARROW);\n } else if (graph.getEndpoint(a, b) == Endpoint.ARROW && graph.getEndpoint(c, b) == Endpoint.TAIL\n && graph.getEndpoint(b, c) == Endpoint.ARROW && graph.getEndpoint(a, c) == Endpoint.CIRCLE\n ) {\n if (!isArrowpointAllowed(graph, a, c)) {\n return;\n }\n\n graph.setEndpoint(a, c, Endpoint.ARROW);\n }\n }", "@Test\n void _correctThenCaseTest() {\n\n actionApply();\n\n for (ReceiverPair receiverPair : dependedReceiverPairs) {\n for (AssingablePair assingablePair : incompatibleAssignablePairs) {\n verify(model).arithm(receiverPair.getVariableDependentReceiver(), \"!=\", assingablePair.getIndexdependentAssignable());\n }\n }\n }", "@Override\n\tpublic void deleteRuleAfterFirstMvt() {\n\t\t\n\t}", "@Test\n public void testPolicyEvalCacheInvalidationWhenSubjectParentChanges() throws Exception {\n BaseSubject fbi = new BaseSubject(this.FBI);\n\n BaseSubject specialAgentsGroup = new BaseSubject(this.SPECIAL_AGENTS_GROUP);\n specialAgentsGroup\n .setParents(new HashSet<>(Arrays.asList(new Parent[] { new Parent(fbi.getSubjectIdentifier()) })));\n\n BaseSubject agentMulder = new BaseSubject(this.AGENT_MULDER);\n agentMulder.setParents(\n new HashSet<>(Arrays.asList(new Parent[] { new Parent(specialAgentsGroup.getSubjectIdentifier()) })));\n\n BaseSubject agentScully = new BaseSubject(this.AGENT_SCULLY);\n agentScully.setParents(\n new HashSet<>(Arrays.asList(new Parent[] { new Parent(specialAgentsGroup.getSubjectIdentifier()) })));\n\n BaseResource scullysTestimony = new BaseResource(EVIDENCE_SCULLYS_TESTIMONY_ID);\n\n PolicyEvaluationRequestV1 mulderPolicyEvaluationRequest = this.policyHelper\n .createEvalRequest(\"GET\", agentMulder.getSubjectIdentifier(), EVIDENCE_SCULLYS_TESTIMONY_ID, null);\n PolicyEvaluationRequestV1 scullyPolicyEvaluationRequest = this.policyHelper\n .createEvalRequest(\"GET\", agentScully.getSubjectIdentifier(), EVIDENCE_SCULLYS_TESTIMONY_ID, null);\n\n String endpoint = this.acsUrl;\n\n // Set up fbi <-- specialAgentsGroup <-- (agentMulder, agentScully) subject hierarchy\n this.privilegeHelper.putSubject(this.acsAdminRestTemplate, fbi, endpoint, this.acsZone1Headers);\n this.privilegeHelper.putSubject(this.acsAdminRestTemplate, specialAgentsGroup, endpoint, this.acsZone1Headers,\n this.SPECIAL_AGENTS_GROUP_ATTRIBUTE);\n this.privilegeHelper.putSubject(this.acsAdminRestTemplate, agentMulder, endpoint, this.acsZone1Headers);\n this.privilegeHelper.putSubject(this.acsAdminRestTemplate, agentScully, endpoint, this.acsZone1Headers);\n\n // Set up resource\n this.privilegeHelper.putResource(this.acsAdminRestTemplate, scullysTestimony, endpoint, this.acsZone1Headers,\n this.SPECIAL_AGENTS_GROUP_ATTRIBUTE, this.TOP_SECRET_CLASSIFICATION);\n\n // Set up policy\n String policyFile = \"src/test/resources/policies/complete-sample-policy-set-2.json\";\n this.policyHelper.setTestPolicy(this.acsAdminRestTemplate, this.acsZone1Headers, endpoint, policyFile);\n\n // Verify that policy is evaluated to DENY since top secret classification is not set\n ResponseEntity<PolicyEvaluationResult> postForEntity = this.acsAdminRestTemplate\n .postForEntity(endpoint + PolicyHelper.ACS_POLICY_EVAL_API_PATH,\n new HttpEntity<>(mulderPolicyEvaluationRequest, this.acsZone1Headers),\n PolicyEvaluationResult.class);\n Assert.assertEquals(postForEntity.getStatusCode(), HttpStatus.OK);\n PolicyEvaluationResult responseBody = postForEntity.getBody();\n Assert.assertEquals(responseBody.getEffect(), Effect.DENY);\n\n postForEntity = this.acsAdminRestTemplate.postForEntity(endpoint + PolicyHelper.ACS_POLICY_EVAL_API_PATH,\n new HttpEntity<>(scullyPolicyEvaluationRequest, this.acsZone1Headers), PolicyEvaluationResult.class);\n Assert.assertEquals(postForEntity.getStatusCode(), HttpStatus.OK);\n responseBody = postForEntity.getBody();\n Assert.assertEquals(responseBody.getEffect(), Effect.DENY);\n\n // Change parent subject to add top secret classification\n this.privilegeHelper.putSubject(this.acsAdminRestTemplate, specialAgentsGroup, endpoint, this.acsZone1Headers,\n this.SPECIAL_AGENTS_GROUP_ATTRIBUTE, this.TOP_SECRET_CLASSIFICATION);\n\n // Verify that policy is evaluated to PERMIT since top secret classification is now propogated from the parent\n postForEntity = this.acsAdminRestTemplate.postForEntity(endpoint + PolicyHelper.ACS_POLICY_EVAL_API_PATH,\n new HttpEntity<>(mulderPolicyEvaluationRequest, this.acsZone1Headers), PolicyEvaluationResult.class);\n Assert.assertEquals(postForEntity.getStatusCode(), HttpStatus.OK);\n responseBody = postForEntity.getBody();\n Assert.assertEquals(responseBody.getEffect(), Effect.PERMIT);\n\n postForEntity = this.acsAdminRestTemplate.postForEntity(endpoint + PolicyHelper.ACS_POLICY_EVAL_API_PATH,\n new HttpEntity<>(scullyPolicyEvaluationRequest, this.acsZone1Headers), PolicyEvaluationResult.class);\n Assert.assertEquals(postForEntity.getStatusCode(), HttpStatus.OK);\n responseBody = postForEntity.getBody();\n Assert.assertEquals(responseBody.getEffect(), Effect.PERMIT);\n }", "public void test4_b_parametric() { // Schedule found: (m + 1)i + j + (-m - 2)\n\t\t/* RelTrafo1: (i, j) - (i, j - 1) = (0, 1)\n\t\t * RelTrafo2: (i, j) - (i - 1, j + m) = (1, -m)\n\t\t * (m + 1) - m + (-m - 2) = -m - 1\n\t\t *//*\n\t\tGDGraph gdGraph = new GDGraph();\n\t\tGDGVertex gdVertex = gdGraph.addVertex();\n\t\tGDGEdge gdEdge1 = gdGraph.addEdge(gdVertex, gdVertex);\n\t\tGDGEdge gdEdge2 = gdGraph.addEdge(gdVertex, gdVertex);\n\n\t\tgdEdge1.dataDependence = convertIntTableToAffineTrafoRational(new int[][]{ // (i, j - 1) \n\t\t\t\t{ 1, 0, 0, 0},\n\t\t\t\t{ 0, 1, 0, -1},\n\t\t\t\t{ 0, 0, 0, 1}\n });\n\t\tgdEdge1.producedDomain = convertIntTableToPIPDRational(new int[][]{ // (0..+inf, 1..+inf)\n\t\t\t\t{ 1, 0, 0, 0},\n\t\t\t\t{ 0, 1, 0, -1}\n\t\t}, new int[][]{\n\t\t\t\t{ 1, 0}\n\t\t});\n\n\t\tgdEdge2.dataDependence = convertIntTableToAffineTrafoRational(new int[][]{ // (i - 1, j + m) \n\t\t\t\t{ 1, 0, 0, -1},\n\t\t\t\t{ 0, 1, 1, 0},\n\t\t\t\t{ 0, 0, 0, 1}\n });\t\t\n\t\tgdEdge2.producedDomain = convertIntTableToPIPDRational(new int[][]{ // (1..+inf, 0..+inf)\n\t\t\t\t{ 1, 0, 0, -1},\n\t\t\t\t{ 0, 1, 0, 0}\n\t\t}, new int[][]{\n\t\t\t\t{ 1, 0}\n\t\t});\n\n\t\tgdVertex.computationDomain = convertIntTableToPIPDRational(new int[][]{ // (1..+inf, 1..+inf)\n\t\t\t\t{ 1, 0, 0, -1},\n\t\t\t\t{ 0, 1, 0, -1}\n\t\t}, new int[][]{\n\t\t\t\t{ 1, 0}\n\t\t});\n\t\t\n\t\tgdGraph.calculateFeautrierSchedule(true, true);\n\t\n\t\tgdGraph.<Rational>codeGeneration(Rational.ZERO, Rational.ONE);\n\t*/}", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}" ]
[ "0.57174206", "0.54141134", "0.5374719", "0.53349215", "0.52286065", "0.521769", "0.5151397", "0.5120674", "0.50771695", "0.50573367", "0.5056563", "0.5030197", "0.5008285", "0.500487", "0.49922222", "0.49789876", "0.49435818", "0.49398714", "0.4907807", "0.49055427", "0.48954415", "0.48546016", "0.48360655", "0.48316407", "0.48220608", "0.48135126", "0.4798478", "0.47829744", "0.4751387", "0.473493", "0.47303697", "0.47279674", "0.472295", "0.47181028", "0.4713685", "0.46866313", "0.46856362", "0.46747115", "0.46530455", "0.46481788", "0.46387488", "0.4634861", "0.46348116", "0.4623376", "0.46151283", "0.460712", "0.4606362", "0.45827985", "0.45798853", "0.4572247", "0.45719293", "0.4568387", "0.45600548", "0.45527261", "0.4548735", "0.4541738", "0.4537418", "0.45347342", "0.45341268", "0.45296404", "0.4528049", "0.451162", "0.45059308", "0.450377", "0.44978923", "0.44978923", "0.44978923", "0.4497591", "0.44975725", "0.4495692", "0.44911397", "0.44856006", "0.44819468", "0.44818506", "0.4477543", "0.4476048", "0.44760028", "0.44743586", "0.44717774", "0.44676894", "0.4466827", "0.44594255", "0.4456944", "0.4450103", "0.4448856", "0.44345754", "0.4431155", "0.44302866", "0.4429951", "0.4417878", "0.44163424", "0.44152427", "0.44123816", "0.44123724", "0.44111308", "0.44086117", "0.4405161", "0.4403477", "0.4401075", "0.43978587" ]
0.618017
0
Returns true if RS1 precedes over RS2, false otherwise
public boolean precedingOver (RuleSet RS1, RuleSet RS2) { return (this.getError(RS1) < this.getError(RS2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean connects(R r1, R r2) {\n\t\t\treturn getPreviousOrSame(getLower(r1)).compareTo(getUpper(r2)) <= 0 ||\n\t\t\t\tgetPreviousOrSame(getLower(r2)).compareTo(getUpper(r1)) <= 0;\n\t\t}", "@Override\r\n\tprotected boolean prerequisites() {\n\t\treturn _player1.getClient().getPlayer().getWrappedObject().getPosition()\r\n\t\t\t\t.equals(_player2.getClient().getPlayer().getWrappedObject().getPosition());\r\n\t}", "public boolean isBefore(Book b1, Book b2);", "private boolean expandsBefore(\n RolapCalculation calc1,\n RolapCalculation calc2)\n {\n final int solveOrder1 = calc1.getSolveOrder();\n final int solveOrder2 = calc2.getSolveOrder();\n if (solveOrder1 > solveOrder2) {\n return true;\n } else {\n return solveOrder1 == solveOrder2\n && calc1.getHierarchyOrdinal()\n < calc2.getHierarchyOrdinal();\n }\n }", "public boolean hasNext() {\n if (nextRecord != null) {\n return true;\n }\n\n try {\n while (true) {\n if (leftRecord == null) {\n if (LBIter.hasNext()) {\n // If left page still has records to give, then just get the\n // next one and restart right block iter.\n\n leftRecord = LBIter.next();\n RBIter = getBlockIterator(getRightTableName(),\n new Page[]{currentRightPage});\n } else {\n // Current left page is exhausted. Restart it with the next\n // right page (if there is one).\n\n if (!RPIter.hasNext()) {\n // Right page relation is exhausted. Need to restart it with\n // LPIter on the next page (if there is one).\n\n currentLeftPages = new Page[numBuffers];\n for (int i = 0; i < numBuffers; i++) {\n currentLeftPages[i] = LPIter.hasNext() ? LPIter.next() : null;\n }\n\n // Remove null values from currentLeftPages\n currentLeftPages = Arrays.stream(currentLeftPages)\n .filter(x -> x != null)\n .toArray(Page[]::new);\n\n LBIter = getBlockIterator(getLeftTableName(), currentLeftPages);\n if (!LBIter.hasNext()) {\n return false;\n }\n\n leftRecord = LBIter.next();\n RPIter = getPageIterator(getRightTableName()); // Restart RP\n RPIter.next(); // Consume header page\n } else {\n LBIter = getBlockIterator(getLeftTableName(), currentLeftPages);\n assert LBIter.hasNext() : \"LBIter degenerate\";\n leftRecord = LBIter.next();\n }\n\n currentRightPage = RPIter.next();\n RBIter = getBlockIterator(getRightTableName(),\n new Page[]{currentRightPage});\n }\n }\n while (RBIter.hasNext()) {\n Record rightRecord = RBIter.next();\n DataBox leftJoinValue = leftRecord.getValues().get(getLeftColumnIndex());\n DataBox rightJoinValue = rightRecord.getValues().get(getRightColumnIndex());\n if (leftJoinValue.equals(rightJoinValue)) {\n List<DataBox> leftValues = new ArrayList<>(leftRecord.getValues());\n List<DataBox> rightValues = new ArrayList<>(rightRecord.getValues());\n leftValues.addAll(rightValues);\n nextRecord = new Record(leftValues);\n return true;\n }\n }\n leftRecord = null;\n }\n } catch (DatabaseException e) {\n System.err.println(\"Caught database error \" + e.getMessage());\n return false;\n }\n //throw new UnsupportedOperationException(\"hw3: TODO\");\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "private boolean overlappingGateways(BpmnShape s1, BpmnShape s2) {\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX() + firstWidth;\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\tdouble firstApothem = (s1.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\tdouble secondApothem = (s2.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY - firstApothem < secondY + secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY + firstApothem > secondY - secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif ((firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX + firstApothem > secondX - secondApothem || firstY - firstApothem < secondY + secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY + firstApothem > secondY - secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }" ]
[ "0.63905185", "0.5965537", "0.584294", "0.56329584", "0.55249304", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54951024", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.54942", "0.5486563", "0.5464628", "0.5464628", "0.5464628", "0.5464628", "0.5464628", "0.5464628", "0.5464628", "0.5464628", "0.5464628", "0.5464628", "0.5464628", "0.5464628", "0.5464628", "0.5464628", "0.5464628", "0.5464628", "0.5464628", "0.5464628" ]
0.7691146
0
Returns the Precursor of a Rule using IDS
public Sensor getPrecursorWithID () { return this.rulelist.getRuleByID(this.references.get(0)).precondition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Rule getPredecessor() {\n //ELM: in again\n//\t\treturn null; // TODO by m.zopf: because of performance reasons return here just null\n return m_pred;\n }", "public Rule findById(int id);", "public TerminalRule getIDRule() {\r\n\t\treturn gaXtype.getIDRule();\r\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaXtype.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaXtype.getIDRule();\n\t}", "public Rule idExpr()\n \t{\n \t\treturn firstOf(idExprReq(), id());\n \t}", "public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}", "public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}", "public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}", "public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public int getRuleId() {\n\t\treturn ruleId;\n\t}", "IdListRule createIdListRule();", "DrpCommissionRule selectByPrimaryKey(Long id);", "public String getRuleId() {\n return this.RuleId;\n }", "public Integer getRuleId() {\n return (Integer) getAttributeInternal(RULEID);\n }", "public String getRuleId() {\n return ruleId;\n }", "OrgIntegralDeductRule selectByPrimaryKey(Long id);", "public Rule idExprReq()\n \t{\n \t\treturn firstOf(field(), call());\n \t}", "public int getRuleID()\n {\n return schema.getRuleID();\n }", "public int getPrecursorOccurrencies () {\n \n return this.rulelist.getRuleByID(this.references.get(0)).prec_occurrencies;\n }", "Rule getRule();", "private int[] getLHSIntFromString(String token) {\n\n if (token == null) {\n return null;\n }\n\n if (token.length() < 1) {\n return null;\n }\n\n Vector<String> lhsInt = new Vector<>();\n\n try (Scanner colonScanner = new Scanner(token)) {\n colonScanner.useDelimiter(\";\");\n\n while (colonScanner.hasNext()) {\n String next = colonScanner.next();\n if (next.equals(\"0\")) {\n return null;\n }\n\n lhsInt.add(next);\n }\n }\n\n //Convert to array of int\n int[] lhsIntArr = new int[lhsInt.size()];\n for(int i = 0; i < lhsIntArr.length; ++i) {\n lhsIntArr[i] = Integer.parseInt(lhsInt.get(i));\n }\n\n //If these rules are being reloaded, the LHS int values need to be adjusted\n if (this.ruleIdOffset > 0) {\n for(int i = 0; i < lhsIntArr.length; ++i) {\n lhsIntArr[i] += this.ruleIdOffset;\n }\n }\n\n return lhsIntArr;\n }", "public final void mRULE_ID() throws RecognitionException {\r\n try {\r\n int _type = RULE_ID;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n {\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:11: ( '^' )?\r\n int alt2=2;\r\n int LA2_0 = input.LA(1);\r\n\r\n if ( (LA2_0=='^') ) {\r\n alt2=1;\r\n }\r\n switch (alt2) {\r\n case 1 :\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:11: '^'\r\n {\r\n match('^'); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n input.consume();\r\n\r\n }\r\n else {\r\n MismatchedSetException mse = new MismatchedSetException(null,input);\r\n recover(mse);\r\n throw mse;}\r\n\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n loop3:\r\n do {\r\n int alt3=2;\r\n int LA3_0 = input.LA(1);\r\n\r\n if ( ((LA3_0>='0' && LA3_0<='9')||(LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) {\r\n alt3=1;\r\n }\r\n\r\n\r\n switch (alt3) {\r\n \tcase 1 :\r\n \t // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:\r\n \t {\r\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n \t input.consume();\r\n\r\n \t }\r\n \t else {\r\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\r\n \t recover(mse);\r\n \t throw mse;}\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop3;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "@Override\n public ResponseEntity<Rule> getRule(Integer id) {\n String apiKeyId = (String) servletRequest.getAttribute(\"Application\");\n\n RuleEntity existingRuleEntity =\n ruleRepository.findByApiKeyEntityValue_AndId(apiKeyId, Long.valueOf(id))\n .orElseThrow(() -> new ResponseStatusException(HttpStatus.NOT_FOUND));\n\n return ResponseEntity.ok(toRule(existingRuleEntity));\n }", "public Long getRuleID() {\n return this.RuleID;\n }", "public final void mRULE_ID() throws RecognitionException {\r\n try {\r\n int _type = RULE_ID;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19810:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19810:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19810:11: ( '^' )?\r\n int alt14=2;\r\n int LA14_0 = input.LA(1);\r\n\r\n if ( (LA14_0=='^') ) {\r\n alt14=1;\r\n }\r\n switch (alt14) {\r\n case 1 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19810:11: '^'\r\n {\r\n match('^'); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n input.consume();\r\n\r\n }\r\n else {\r\n MismatchedSetException mse = new MismatchedSetException(null,input);\r\n recover(mse);\r\n throw mse;}\r\n\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19810:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n loop15:\r\n do {\r\n int alt15=2;\r\n int LA15_0 = input.LA(1);\r\n\r\n if ( ((LA15_0>='0' && LA15_0<='9')||(LA15_0>='A' && LA15_0<='Z')||LA15_0=='_'||(LA15_0>='a' && LA15_0<='z')) ) {\r\n alt15=1;\r\n }\r\n\r\n\r\n switch (alt15) {\r\n \tcase 1 :\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:\r\n \t {\r\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n \t input.consume();\r\n\r\n \t }\r\n \t else {\r\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\r\n \t recover(mse);\r\n \t throw mse;}\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop15;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "@DISPID(123)\r\n\t// = 0x7b. The runtime will prefer the VTID if present\r\n\t@VTID(118)\r\n\tint predecessorID();", "public String getRuleID() {\n\t\treturn adaptee.getConstraint().getDescriptor().getId();\n\t}", "public String getActionPreId() {\n\t\treturn actionPreId;\n\t}", "public Node findPredecessor(int id) {\n\t\tNode n = this;\n\t\twhile (id <= n.getId() || id > n.getSuccessor().getId()) {\n\t\t\tn = n.closestPrecedingFinger(id);\n\t\t}\n\t\treturn n;\n\t}", "public String getRuleId() {\r\n return (String) getAttributeInternal(RULEID);\r\n }", "public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:2134:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:2134:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:2134:11: ( '^' )?\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0=='^') ) {\n alt1=1;\n }\n switch (alt1) {\n case 1 :\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:2134:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:2134:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop2:\n do {\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) {\n alt2=1;\n }\n\n\n switch (alt2) {\n \tcase 1 :\n \t // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop2;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:93:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:93:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:93:11: ( '^' )?\n int alt22=2;\n int LA22_0 = input.LA(1);\n\n if ( (LA22_0=='^') ) {\n alt22=1;\n }\n switch (alt22) {\n case 1 :\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:93:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:93:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop23:\n do {\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( ((LA23_0>='0' && LA23_0<='9')||(LA23_0>='A' && LA23_0<='Z')||LA23_0=='_'||(LA23_0>='a' && LA23_0<='z')) ) {\n alt23=1;\n }\n\n\n switch (alt23) {\n \tcase 1 :\n \t // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop23;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:40359:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:40359:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:40359:11: ( '^' )?\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0=='^') ) {\n alt1=1;\n }\n switch (alt1) {\n case 1 :\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:40359:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:40359:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop2:\n do {\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) {\n alt2=1;\n }\n\n\n switch (alt2) {\n \tcase 1 :\n \t // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop2;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:11: ( '^' )?\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0=='^') ) {\n alt7=1;\n }\n switch (alt7) {\n case 1 :\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop8:\n do {\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( ((LA8_0>='0' && LA8_0<='9')||(LA8_0>='A' && LA8_0<='Z')||LA8_0=='_'||(LA8_0>='a' && LA8_0<='z')) ) {\n alt8=1;\n }\n\n\n switch (alt8) {\n \tcase 1 :\n \t // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop8;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void mRULE_ID() throws RecognitionException {\r\n try {\r\n int _type = RULE_ID;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3473:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3473:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n {\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3473:11: ( '^' )?\r\n int alt3=2;\r\n int LA3_0 = input.LA(1);\r\n\r\n if ( (LA3_0=='^') ) {\r\n alt3=1;\r\n }\r\n switch (alt3) {\r\n case 1 :\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3473:11: '^'\r\n {\r\n match('^'); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n input.consume();\r\n\r\n }\r\n else {\r\n MismatchedSetException mse = new MismatchedSetException(null,input);\r\n recover(mse);\r\n throw mse;}\r\n\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3473:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n loop4:\r\n do {\r\n int alt4=2;\r\n int LA4_0 = input.LA(1);\r\n\r\n if ( ((LA4_0>='0' && LA4_0<='9')||(LA4_0>='A' && LA4_0<='Z')||LA4_0=='_'||(LA4_0>='a' && LA4_0<='z')) ) {\r\n alt4=1;\r\n }\r\n\r\n\r\n switch (alt4) {\r\n \tcase 1 :\r\n \t // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:\r\n \t {\r\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n \t input.consume();\r\n\r\n \t }\r\n \t else {\r\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\r\n \t recover(mse);\r\n \t throw mse;}\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop4;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "public Integer getPromotionsRuleId() {\n return promotionsRuleId;\n }", "public TerminalRule getINTRule() {\r\n\t\treturn gaXbase.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaXbase.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaXbase.getINTRule();\n\t}", "public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:663:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:663:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:663:11: ( '^' )?\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0=='^') ) {\n alt6=1;\n }\n switch (alt6) {\n case 1 :\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:663:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:663:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop7:\n do {\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( ((LA7_0>='0' && LA7_0<='9')||(LA7_0>='A' && LA7_0<='Z')||LA7_0=='_'||(LA7_0>='a' && LA7_0<='z')) ) {\n alt7=1;\n }\n\n\n switch (alt7) {\n \tcase 1 :\n \t // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop7;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Override\r\n\tpublic IPredicateRule getSingleHdlRule(IToken tok) {\n\t\treturn null;\r\n\t}", "java.lang.String getRule();", "private Set<Long> getLineIdsFromFlowRules(Iterable<? extends FlowRule> rules) {\n return StreamSupport.stream(rules.spliterator(), true)\n .map(f -> (PiCriterion) f.selector().getCriterion(Criterion.Type.PROTOCOL_INDEPENDENT))\n .filter(Objects::nonNull)\n .map(c -> c.fieldMatch(FabricConstants.HDR_LINE_ID))\n .filter(Optional::isPresent)\n .map(Optional::get)\n .filter(m -> m.type() == PiMatchType.EXACT)\n .map(m -> ((PiExactFieldMatch) m).value())\n .map(b -> {\n try {\n return b.fit(Long.BYTES * 8);\n } catch (ImmutableByteSequence.ByteSequenceTrimException e) {\n log.error(\"Invalid line ID found in flow rule: {} is bigger than a long! BUG?\", b);\n return null;\n }\n })\n .filter(Objects::nonNull)\n .map(b -> b.asReadOnlyBuffer().getLong())\n .collect(Collectors.toSet());\n }", "public Rule_in_State get_unprocessed_rule();", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}", "public int getC_Decoris_PreSalesLine_ID();", "public R getRule() {\n return this.rule;\n }", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public Node closestPrecedingNode(int id);", "public int getIdPrestatario() {\n return idPrestatario;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The ID of a precheck created with `/income/verification/precheck`. Will be used to improve conversion of the income verification flow by streamlining the Link interface presented to the end user.\")\n\n public String getPrecheckId() {\n return precheckId;\n }", "public void start(int rule) {\n\n if (rule > 255 || rule < 0) {\n throw new IllegalArgumentException(\"Ruleset must be between 0 and 255!\");\n }\n\n reset();\n ruleset = intToBinaryReverse(rule);\n draw();\n }", "@Path(\"rules/{id}\")\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n public Trigger getRule(@PathParam(\"id\") String id) {\n return ContextManager.getInstance().getRuleById(id);\n }", "priorizedListObject find( int id ) throws DAOException;", "RuleInfo getRuleInfo(long ruleID) throws IOException;", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "public IRule getRule()\n\t{\n\t\treturn this.rule;\n\t}", "public Instruction getInstructionBefore(Address addr);", "public void setRuleId(String ruleId) {\n this.ruleId = ruleId;\n }", "PRE createPRE();", "private static int getStartID(HashMap<Integer, ActivityPrediction> model) {\n int startID = 0;\n for (ActivityPrediction predictionNode : model.values()) {\n if (predictionNode.isStart()) {\n startID = predictionNode.getActivityID();\n }\n }\n return startID;\n }", "String getTopTrailClause(int top);", "Rule createRule();", "Rule createRule();", "Rule createRule();", "public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalSpeADL.g:23486:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )* )\n // InternalSpeADL.g:23486:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )*\n {\n // InternalSpeADL.g:23486:11: ( '^' )?\n int alt9=2;\n int LA9_0 = input.LA(1);\n\n if ( (LA9_0=='^') ) {\n alt9=1;\n }\n switch (alt9) {\n case 1 :\n // InternalSpeADL.g:23486:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( input.LA(1)=='$'||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // InternalSpeADL.g:23486:44: ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )*\n loop10:\n do {\n int alt10=2;\n int LA10_0 = input.LA(1);\n\n if ( (LA10_0=='$'||(LA10_0>='0' && LA10_0<='9')||(LA10_0>='A' && LA10_0<='Z')||LA10_0=='_'||(LA10_0>='a' && LA10_0<='z')) ) {\n alt10=1;\n }\n\n\n switch (alt10) {\n \tcase 1 :\n \t // InternalSpeADL.g:\n \t {\n \t if ( input.LA(1)=='$'||(input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop10;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalIotLuaXtext.g:7228:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // InternalIotLuaXtext.g:7228:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // InternalIotLuaXtext.g:7228:11: ( '^' )?\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0=='^') ) {\n alt1=1;\n }\n switch (alt1) {\n case 1 :\n // InternalIotLuaXtext.g:7228:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // InternalIotLuaXtext.g:7228:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop2:\n do {\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) {\n alt2=1;\n }\n\n\n switch (alt2) {\n \tcase 1 :\n \t // InternalIotLuaXtext.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop2;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public ParserRule getRule() { return rule; }" ]
[ "0.58228177", "0.5663042", "0.5526704", "0.548656", "0.548656", "0.54214156", "0.53992605", "0.53992605", "0.53992605", "0.53992605", "0.5368109", "0.5368109", "0.5368109", "0.5368109", "0.5368109", "0.5368109", "0.5368109", "0.5368109", "0.5368109", "0.5368109", "0.5368109", "0.5368109", "0.5368109", "0.5368109", "0.53186065", "0.53132445", "0.5297462", "0.52605677", "0.52241117", "0.5212712", "0.5207578", "0.51759773", "0.51611114", "0.5141621", "0.5113871", "0.5110675", "0.50855017", "0.49967062", "0.49966538", "0.49735478", "0.4959309", "0.4947244", "0.49299812", "0.49204424", "0.48395658", "0.4833367", "0.47785482", "0.4774847", "0.47643074", "0.4752179", "0.47518402", "0.4745393", "0.47437978", "0.47437978", "0.47329515", "0.47020316", "0.46992052", "0.46975285", "0.46669865", "0.46341377", "0.46171796", "0.45772183", "0.45714158", "0.45714158", "0.45714158", "0.45714158", "0.45714158", "0.45714158", "0.45714158", "0.45714158", "0.45714158", "0.45714158", "0.45714158", "0.45714158", "0.45714158", "0.45714158", "0.4569012", "0.4569012", "0.4569012", "0.4569012", "0.4568065", "0.45541716", "0.45404637", "0.4539563", "0.45207348", "0.45156726", "0.450174", "0.4496122", "0.44951063", "0.44948828", "0.4490906", "0.4490338", "0.4488809", "0.44738021", "0.4464999", "0.4464999", "0.4464999", "0.44285977", "0.44174275", "0.44121385" ]
0.72480285
0
Returns the Precursor Occurrencies of a Rule using IDS
public int getPrecursorOccurrencies () { return this.rulelist.getRuleByID(this.references.get(0)).prec_occurrencies; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Sensor getPrecursorWithID () {\n \n return this.rulelist.getRuleByID(this.references.get(0)).precondition;\n }", "private int[] getLHSIntFromString(String token) {\n\n if (token == null) {\n return null;\n }\n\n if (token.length() < 1) {\n return null;\n }\n\n Vector<String> lhsInt = new Vector<>();\n\n try (Scanner colonScanner = new Scanner(token)) {\n colonScanner.useDelimiter(\";\");\n\n while (colonScanner.hasNext()) {\n String next = colonScanner.next();\n if (next.equals(\"0\")) {\n return null;\n }\n\n lhsInt.add(next);\n }\n }\n\n //Convert to array of int\n int[] lhsIntArr = new int[lhsInt.size()];\n for(int i = 0; i < lhsIntArr.length; ++i) {\n lhsIntArr[i] = Integer.parseInt(lhsInt.get(i));\n }\n\n //If these rules are being reloaded, the LHS int values need to be adjusted\n if (this.ruleIdOffset > 0) {\n for(int i = 0; i < lhsIntArr.length; ++i) {\n lhsIntArr[i] += this.ruleIdOffset;\n }\n }\n\n return lhsIntArr;\n }", "public IndicatorCriteria getIndicatorCriteriaByOid(Long oid);", "IdListRule createIdListRule();", "OrgIntegralDeductRule selectByPrimaryKey(Long id);", "private Set<Long> getLineIdsFromFlowRules(Iterable<? extends FlowRule> rules) {\n return StreamSupport.stream(rules.spliterator(), true)\n .map(f -> (PiCriterion) f.selector().getCriterion(Criterion.Type.PROTOCOL_INDEPENDENT))\n .filter(Objects::nonNull)\n .map(c -> c.fieldMatch(FabricConstants.HDR_LINE_ID))\n .filter(Optional::isPresent)\n .map(Optional::get)\n .filter(m -> m.type() == PiMatchType.EXACT)\n .map(m -> ((PiExactFieldMatch) m).value())\n .map(b -> {\n try {\n return b.fit(Long.BYTES * 8);\n } catch (ImmutableByteSequence.ByteSequenceTrimException e) {\n log.error(\"Invalid line ID found in flow rule: {} is bigger than a long! BUG?\", b);\n return null;\n }\n })\n .filter(Objects::nonNull)\n .map(b -> b.asReadOnlyBuffer().getLong())\n .collect(Collectors.toSet());\n }", "public ArrayList <Integer> getIntersection (RuleSet RS) {\n \n ArrayList <Integer> a = new ArrayList ();\n HashSet<Integer> map1 = new HashSet<>(this.indexesOfPrec);\n HashSet<Integer> map2 = new HashSet<>(RS.indexesOfPrec);\n \n map1.retainAll(map2);\n\n a.addAll(map1);\n return a;\n }", "public List<IndicatorCriteria> getIndicatorCriterias();", "public int getC_Decoris_PreSalesLine_ID();", "java.util.List<java.lang.Integer> getRareIdList();", "java.util.List<java.lang.Integer> getRareIdList();", "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 abstract Collection<Integer> getActiveTurtlesByID();", "DrpCommissionRule selectByPrimaryKey(Long id);", "private List<Integer> getPreservationActionPlanIds(Document doc) {\n // Get data elements that have data and a number as content\n XPath xpath = doc.createXPath(\"//plato:preservationActionPlan[number(.) = number(.)]\");\n\n Map<String, String> namespaceMap = new HashMap<String, String>();\n namespaceMap.put(\"plato\", PlanXMLConstants.PLATO_NS);\n xpath.setNamespaceURIs(namespaceMap);\n\n @SuppressWarnings(\"unchecked\")\n List<Element> elements = xpath.selectNodes(doc);\n\n List<Integer> objectIds = new ArrayList<Integer>(elements.size());\n for (Element element : elements) {\n objectIds.add(Integer.parseInt(element.getStringValue()));\n }\n return objectIds;\n }", "public static Integer [] getPositiveResultConceptIds() {\r\n \tSet<Concept> positiveConcepts = getPositiveResultConcepts();\r\n \tInteger [] positiveResultIds = new Integer[positiveConcepts.size()];\r\n \t\r\n \tint i = 0;\r\n \tfor (Concept positiveConcept : positiveConcepts) {\r\n \t\tpositiveResultIds[i] = positiveConcept.getConceptId();\r\n \t\ti++;\r\n \t}\r\n \t\r\n \treturn positiveResultIds;\r\n }", "public Rule findById(int id);", "public TerminalRule getIDRule() {\r\n\t\treturn gaXtype.getIDRule();\r\n\t}", "private Map<S, List<Node<S>>> getAllOccurrences() {\n List<P> productions = slp.getOrderedProductions();\n Map<S, List<Node<S>>> predecessorMap = new HashMap<>();\n slp.getProductions().stream().map(p -> p.getLeft()).forEach(symbol -> predecessorMap.put(symbol, new ArrayList<>()));\n\n // gather all occurrence\n productions.stream()\n .map(rule -> rule.getRight())\n .flatMap(word -> word.nodeStream())\n .filter(node -> !node.getElement().isTerminal())\n .forEach(node -> predecessorMap.get(node.getElement()).add(node));\n\n return predecessorMap;\n }", "ArrayList<Integer>getCatalog_IDs(int acc_no);", "public TerminalRule getIDRule() {\n\t\treturn gaXtype.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaXtype.getIDRule();\n\t}", "public abstract MyIntList getCoors(MyIntList coors);", "public static JwComparator<AcPost> getInternationalInvoiceItemInclusionRuleComparator()\n {\n return AcPostTools.instance.getInternationalInvoiceItemInclusionRuleComparator();\n }", "public List<Integer> findAllPaintersId();", "public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}", "public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}", "public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}", "public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}", "private List<PricingRule> orderPricingRules(Set<PricingRule> pricingRules) {\n \tList<PricingRule> pricingRulesList = pricingRules.stream().collect(Collectors.toList());\n \tCollections.sort(pricingRulesList, new Comparator<PricingRule>() {\n\t\t\tpublic int compare(PricingRule o1, PricingRule o2) {\n\t\t\t\treturn ((o2.getClass().getAnnotation(PricingRuleOrder.class).value()) - (o1.getClass().getAnnotation(PricingRuleOrder.class).value()));\n\t\t\t}\n\t\t});\n\t\treturn pricingRulesList;\n }", "public List<ICase> searchCases(String CPR, int id) {\n List<ICase> cases = new ArrayList<>();\n for (ICase aCase : allCases) {\n if (aCase.getCPR().equals(CPR) && aCase.getCaseNumber() == id) {\n cases.add(aCase);\n }\n }\n\n return cases;\n }", "public static ArrayList<Integer> getPrimaryColorArray(Context context) {\n\n ArrayList<Integer> arrylst_prmrycolor = new ArrayList<Integer>();\n try {\n arrylst_prmrycolor.add(ContextCompat.getColor(context, R.color.colorPrimaryTeal));\n arrylst_prmrycolor.add(ContextCompat.getColor(context, R.color.colorPrimaryBlue));\n arrylst_prmrycolor.add(ContextCompat.getColor(context, R.color.colorPrimaryRed));\n arrylst_prmrycolor.add(ContextCompat.getColor(context, R.color.colorPrimaryPink));\n arrylst_prmrycolor.add(ContextCompat.getColor(context, R.color.colorPrimaryPurple));\n arrylst_prmrycolor.add(ContextCompat.getColor(context, R.color.colorPrimaryIndigo));\n arrylst_prmrycolor.add(ContextCompat.getColor(context, R.color.colorPrimaryDarkAmber));\n arrylst_prmrycolor.add(ContextCompat.getColor(context, R.color.colorPrimaryBlueGrey));\n } catch (Resources.NotFoundException e) {\n e.printStackTrace();\n }\n\n return arrylst_prmrycolor;\n }", "public List<Integer> pred(int n) {\n // Compute this once, then cache it.\n if (this.preds == null) {\n this.buildPred();\n }\n return this.preds.get(n);\n }", "public abstract List<NARule> getRules(Context context);", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}", "public List<Policy> getReferencedPolicies(Rule rule) {\n return getReferencedPolicies(rule, null);\n }", "public synchronized PidCoefficients getPidCoefficients()\n {\n final String funcName = \"getPidCoefficients\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=(%f,%f,%f,%f)\", pidCoefficients.kP,\n pidCoefficients.kI, pidCoefficients.kD, pidCoefficients.kF);\n }\n\n return pidCoefficients;\n }", "private static Collection<? extends Rule> getRules(ObjectFactory objFactory, Value cwe, Repository repository, Value segment)\n {\n HashMap<String, Rule> ruleSet = new HashMap<String, CWECoverageClaimType.Claims.Claim.RuleSet.Rule>();\n RepositoryConnection con = null;\n try\n {\n con = getRepositoryConnection(repository);\n \n String adaptorQuery = \"SELECT ?descriptionText WHERE {<\"+segment+\"> <http://toif/contains> ?finding. ?finding <http://toif/toif:FindingHasCWEIdentifier> <\" + cwe + \"> . \"\n + \"?finding <http://toif/toif:FindingIsDescribedByWeaknessDescription> ?description . \"\n + \"?description <http://toif/description> ?descriptionText . }\";\n \n TupleQuery adaptorTupleQuery = con.prepareTupleQuery(QueryLanguage.SPARQL, adaptorQuery);\n \n TupleQueryResult queryResult = adaptorTupleQuery.evaluate();\n \n while (queryResult.hasNext())\n {\n BindingSet adaptorSet = queryResult.next();\n Value name = adaptorSet.getValue(\"descriptionText\");\n \n String nameString = name.stringValue();\n \n String[] descArray = nameString.split(\":\");\n \n String ident = descArray[0];\n String description = descArray[1];\n \n if (!ruleSet.containsKey(ident))\n {\n Rule rule = objFactory.createCWECoverageClaimTypeClaimsClaimRuleSetRule();\n ruleSet.put(ident, rule);\n }\n \n Rule rule = ruleSet.get(ident);\n rule.setRuleID(ident);\n rule.setRuleName(ident);\n rule.setRuleComments(description);\n \n }\n \n queryResult.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n catch (MalformedQueryException e)\n {\n e.printStackTrace();\n }\n catch (QueryEvaluationException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n con.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n }\n return ruleSet.values();\n \n }", "private List<String> getToIds(Collection<XRef> xrefs){\n List<String> toIds = new ArrayList<String>();\n for (XRef xRef : xrefs) {\n toIds.add(xRef.getToEntry().getEntryId());\n }\n return toIds;\n }", "public Rule idExpr()\n \t{\n \t\treturn firstOf(idExprReq(), id());\n \t}", "public abstract int getPrecedence();", "private int getPrecidence(String s) {\n\t\tif(s.equals(\"+\") || s.equals(\"-\")) return 1;\n\t\telse if(s.equals(\"*\") || s.equals(\"/\")) return 2;\n\t\telse if(s.equals(\"^\")) return 3;\n\t\telse return 0;\n\t}", "public void codifRLC()\n\t{\n\t\tList<Integer> result= new ArrayList<Integer>();\n\t\tint rgb=0;\n\t\tColor color;\n\t\tint r=0;\n\t\tint ant=-1;\n\t\tint acum=0;\n\t\tfor(int i=this.inicalto;i<=this.alto;i++) {\n\t\t\tfor(int j=this.inicancho;j<=this.ancho;j++)\n\t\t\t{\n\t\t\t\trgb = this.img.getRGB(j, i);\n\t\t\t\tcolor = new Color(rgb, true);\n\t\t\t\tr = color.getRed();\n\t\t\t\t\tif(ant==-1) {\n\t\t\t\t\t\tant=r;\n\t\t\t\t\t\tacum=1;\n\t\t\t\t\t}\n\t\t\t\t\t\tif(r==ant && acum<256)\n\t\t\t\t\t\t\tacum++;\n\t\t\t\t\t\t\tif(r!=ant){\n\t\t\t\t\t\t\t\tresult.add(ant);\n\t\t\t\t\t\t\t\tresult.add(acum);\n\t\t\t\t\t\t\t\tacum=1;\n\t\t\t\t\t\t\t\tant=r;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(acum==255){\n\t\t\t\t\t\t\t\t\tresult.add(ant);\n\t\t\t\t\t\t\t\t\tresult.add(acum);\n\t\t\t\t\t\t\t\t\tacum=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tresult.add(ant);\n\t\tresult.add(acum);\n\t\t\n\t\tthis.CR=new CabeceraRLC(this.inicancho,this.inicalto,this.ancho,this.alto,img.TYPE_INT_RGB);\n\t\tthis.codResultRLC=result;\n\t\tthis.generarArchivoRLC(result);\n\t}", "java.util.List<java.lang.Integer> getListSnIdList();", "public int[] getDependLineIDArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEPENDLINEID$26, targetList);\n int[] result = new int[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getIntValue();\n return result;\n }\n }", "public CliGol[] getClis(String ids){\n \n List<CliGol> l = sesion.createQuery(\"from CliGol where cliGolId in \" + ids).list();\n return l.toArray(new CliGol[]{}); \n }", "public int findLHS(int[] nums) {\n\t Map<Integer, Integer> count = new HashMap<>();\n\t for (int n : nums) {\n\t count.put(n, count.getOrDefault(n, 0)+1);\n\t }\n\t int res = 0;\n\t \n\t for (int n : count.keySet()) {\n\t int min = n-1;\n\t if (count.containsKey(min)) {\n\t res = Math.max(res, count.get(n) + count.get(min));\n\t }\n\t int max = n+1;\n\t if (count.containsKey(max)) {\n\t res = Math.max(res, count.get(n) + count.get(max));\n\t }\n\t }\n\t \n\t return res;\n\t }", "@Override\n List<RefCertificationLevel> getItemsFromIds( List<Integer> listIds )\n {\n List<RefCertificationLevel> listRefCertificationLevel = RefCertificationLevelHome.getRefCertificationLevelsListByIds( listIds );\n\n // keep original order\n return listRefCertificationLevel.stream( ).sorted( Comparator.comparingInt( notif -> listIds.indexOf( notif.getId( ) ) ) )\n .collect( Collectors.toList( ) );\n }", "private Map<S, Integer> getAppearances() {\n List<P> productions = slp.getOrderedProductions();\n Map<S, Integer> appearences = new HashMap<>(productions.size());\n\n for(S axiom : slp.getAxioms()) {\n appearences.put(axiom, 1);\n }\n\n for(P production : productions) {\n if(!appearences.containsKey(production.getLeft())) {\n appearences.put(production.getLeft(), 1);\n }\n\n for(S terminal : production.getRight().findAll(s -> !s.isTerminal())) {\n if(!appearences.containsKey(terminal)) {\n appearences.put(terminal, 0);\n }\n\n appearences.put(terminal, appearences.get(terminal) + appearences.get(production.getLeft()));\n }\n }\n return appearences;\n }", "public List<Integer> getIds(int conId, int type, int state) throws AppException;", "public int getLBR_DocLine_ICMS_ID();", "Set<II> getIds();", "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 ItineraryCancellationRules getItineraryCancellationRules(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.itinerarycancellationrules.v1.ItineraryCancellationRules res){\n\t\t\n\t\tItineraryCancellationRules rules = new ItineraryCancellationRules();\n\t\trules.setSkedInfoRules( res.getSkedInfoRules() );\n\t\t\n\t\treturn rules;\n\t}", "public void rouleTest(Iterator<String> it,HashMap<String,Integer> mapIssuesProject, String idRule) {\r\n\t\t\twhile (it.hasNext()){\r\n\t\t\t\tidRule = it.next();\r\n\t\t\t\tif (mapIssuesProject.containsKey(idRule)){\r\n\t\t\t\t\tmapIssuesProject.put(idRule, mapIssuesProject.get(idRule)+1);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmapIssuesProject.put(idRule, new Integer(1));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t }", "public int getActivePendingCARRulesCount(Integer vendorId);", "@Override\n\tpublic List<Polyvalence> getPolyvalencesByCriteria(String matriculeOp, String refArticle, Integer firstRow,\n\t\t\tInteger numRows) {\n\t\treturn null;\n\t}", "java.util.List<Integer> getSrcIdList();", "int[] findDiscountsByStatus(List<Discount> discounts) throws ServiceException;", "public int getBSCA_PriceChangePrev_ID();", "int getOtherIds(int index);", "int[] getGivenByOrder();", "public Integer getPromotionsRuleId() {\n return promotionsRuleId;\n }", "public Collection getRefAlertRuleListByRuleID(String serviceProviderCode, Long ruleID) throws AAException,\r\n\t\t\tRemoteException;", "abstract public int getPrecedence();", "public static int[] makeBeforeInterval(ArrayList<Firm> list)\n\t{\n\t\tint dis = 1;\n\t\tint first = 0;\n\t\t\n\t\tint dis2 = 120;\t\t\n\t\tint last = 0;\n\t\t\n\t\tint years = (int)((float)(2*366));\n\t\tint quarter = 92; // # days in a qtr\n\t\t\n\t\tInteger filed = (Integer)(utils.qM2.get(list.get(0).getBankrupcy().get(0).filedIndex - quarter));\n\t\tInteger beforeFiled = (Integer)(utils.qM2.get(list.get(0).getBankrupcy().get(0).filedIndex - years));\n\n\t\tif(filed != null &&\n\t\t beforeFiled != null){\n\t\t\tlast = filed;\n\t\t\tfirst = beforeFiled;\n\t\t} else {\n\t\t\tlast = dis2;\n\t\t\tfirst = dis2 - years;\n\t\t}\t\t\n\t\t\n\t\tint mid = (first+last)/2;\n\t\tint[] x = new int[3];\n\t\tx[0]=first;\n\t\tx[1]=mid;\n\t\tx[2]=last;\t\t\n\t\treturn x;\t\n\t}", "public List<DecisionCoverage> getRuleCoverages() {\r\n\t\tif ((executionTrace != null) && (ruleCoverages == null)) {\r\n\t\t\tcomputeRuleCountTuples();\r\n\t\t}\r\n\t\treturn ruleCoverages;\r\n\t}", "public int[] getPkOffsetsInRequired() {\n final List<String> fieldNames = requiredRowType.getFieldNames();\n return Arrays.stream(pkFields)\n .map(fieldNames::indexOf)\n .mapToInt(i -> i)\n .toArray();\n }", "public int getCineplexID() {\n return cineplexID;\n }", "public List<Rule> findAll();", "java.util.List<java.lang.Integer> getOtherIdsList();", "public static com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders> getRelationsOrderss_for_Relations(java.lang.Long surrogateKey, int skip, int take)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.getRelationsOrderss_for_Relations\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \" x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x.\\\"_rf\\\"\"\n + \",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" from \\\"mvideo5_1_0_orders\\\" x where (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"relationsFK\\\"=?)\";\n _selectSQL = \"select \" + _selectSQL;\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"long?\"),\n };\n Object[] values = new Object[] { \n surrogateKey,\n };\n com.sybase.collections.GenericList<Object> res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, skip, take, ru.terralink.mvideo.sap.Orders.class);\n return (com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders>)(Object)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }", "public org.apache.xmlbeans.XmlInt[] xgetDependLineIDArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEPENDLINEID$26, targetList);\n org.apache.xmlbeans.XmlInt[] result = new org.apache.xmlbeans.XmlInt[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "int[] getProjectionSeparators() {\r\n int[] src = new int[10];\r\n Criteria root = this.root;\r\n int i = 0;\r\n int sum = 0;\r\n while (root != null) {\r\n if (root.resultColumn) {\r\n sum += root.projections.size();\r\n src[i++] = sum;\r\n }\r\n root = root.child;\r\n }\r\n int[] dst = new int[i];\r\n System.arraycopy(src, 0, dst, 0, i);\r\n return dst;\r\n }", "public final void mRULE_ID() throws RecognitionException {\r\n try {\r\n int _type = RULE_ID;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n {\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:11: ( '^' )?\r\n int alt2=2;\r\n int LA2_0 = input.LA(1);\r\n\r\n if ( (LA2_0=='^') ) {\r\n alt2=1;\r\n }\r\n switch (alt2) {\r\n case 1 :\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:11: '^'\r\n {\r\n match('^'); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n input.consume();\r\n\r\n }\r\n else {\r\n MismatchedSetException mse = new MismatchedSetException(null,input);\r\n recover(mse);\r\n throw mse;}\r\n\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n loop3:\r\n do {\r\n int alt3=2;\r\n int LA3_0 = input.LA(1);\r\n\r\n if ( ((LA3_0>='0' && LA3_0<='9')||(LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) {\r\n alt3=1;\r\n }\r\n\r\n\r\n switch (alt3) {\r\n \tcase 1 :\r\n \t // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:\r\n \t {\r\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n \t input.consume();\r\n\r\n \t }\r\n \t else {\r\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\r\n \t recover(mse);\r\n \t throw mse;}\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop3;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "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 }", "public abstract Collection<Integer> getAllTurtlesByID();", "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 Integer getCedula() {return cedula;}", "public static int[] getIDs() {\n int[] res = new int[crossbows.length];\n for (int i = 0; i < crossbows.length; i++) {\n res[i] = (int)crossbows[i][0];\n }\n return res;\n }", "private int[] consensusIds(MessageContext[] ctxs) {\n int[] cids = new int[ctxs.length];\n for (int i = 0; i < ctxs.length; i++) {\n cids[i] = ctxs[i].getConsensusId();\n }\n return cids;\n }", "List<Integer> findPrimaryIdPersonsByFirstLastMiddle(String first, String last, String middle, String indSealed);", "public List<Integer> getConIds(ConProcess conProcess) throws AppException;", "public List<Integer> getPredecessors(int v);", "public int[] getArticulationVertices() {\n int[] xs = new int[set.cardinality()];\n for (int x = set.nextSetBit(0), i = 0;\n x >= 0;\n x = set.nextSetBit(x + 1), i++) {\n xs[i] = x;\n }\n return xs;\n }", "public List<WebRecommendation> findAllOrderBySequence();", "private RateoRisconto getRateoRiscontoPrecedente() {\n\t\tfor(RateoRisconto rateoRisconto : primaNota.getListaRateoRisconto()){\n\t\t\tif(req.getRateo().getUid() == rateoRisconto.getUid()){\n\t\t\t\treturn rateoRisconto;\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new IllegalStateException(\"Impossibile trovare il Rateo con uid: \"+req.getRateo().getUid());\n\t}" ]
[ "0.59696263", "0.51412696", "0.5075532", "0.49838728", "0.47736067", "0.4730029", "0.4669552", "0.46513253", "0.46307248", "0.46094882", "0.46094882", "0.45484382", "0.45482704", "0.4541019", "0.45358884", "0.4534004", "0.45303652", "0.45220634", "0.448613", "0.44736665", "0.44733593", "0.44733593", "0.44696268", "0.44638085", "0.44365963", "0.44266397", "0.44266397", "0.44266397", "0.44266397", "0.4422888", "0.44200468", "0.44083905", "0.44062898", "0.43987417", "0.438394", "0.438394", "0.438394", "0.438394", "0.438394", "0.438394", "0.438394", "0.438394", "0.438394", "0.438394", "0.438394", "0.438394", "0.438394", "0.438394", "0.4369752", "0.4349687", "0.43342027", "0.43266976", "0.43188718", "0.4308063", "0.42884973", "0.42809907", "0.428029", "0.42791846", "0.4278084", "0.4272953", "0.4268322", "0.42682022", "0.4262578", "0.42486545", "0.42478186", "0.42446095", "0.42423755", "0.42414144", "0.4239898", "0.42370877", "0.42364824", "0.42360887", "0.42357048", "0.4224411", "0.4223414", "0.42209756", "0.42204022", "0.42070922", "0.42039666", "0.4202065", "0.41961142", "0.41885945", "0.4188503", "0.41814405", "0.41808498", "0.41737196", "0.41681254", "0.416698", "0.41659293", "0.41565382", "0.41545513", "0.41503057", "0.4147341", "0.41439617", "0.41370624", "0.41300237", "0.41285712", "0.41123173", "0.41055804", "0.41001028" ]
0.6921308
0
Returns the NonWildcarded Indexes of the Successor
public ArrayList <Integer> detectNonWildcardedSpots () { ArrayList <Integer> res = new ArrayList (); for (int i = 0; i < this.getSuccessor().size(); i++) { if (this.getSuccessor().getToken(i).isNotWildcard()) res.add(i); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IndexList[] successors() {\r\n SortedMap<String,Integer> labelMap = new TreeMap<String,Integer>(); \r\n for (int i = 0; i < code.length; i++) {\r\n\tInst c = code[i];\r\n\tif (c instanceof LabelDec)\r\n\t labelMap.put(((LabelDec) c).name, i);\r\n }\r\n IndexList[] allSuccs = new IndexList[code.length]; \r\n for (int i = 0; i < code.length-1; i++) { // there's always a label at the end\r\n\tInst inst = code[i];\r\n\tIndexList succs = new IndexList();\r\n\tif (inst instanceof CJump) {\r\n\t succs.add(labelMap.get(((CJump) inst).lab.name));\r\n\t succs.add(i+1); // safe because there's always a label at the end\r\n\t} else if (inst instanceof Jump) \r\n\t succs.add(labelMap.get(((Jump) inst).lab.name));\r\n\telse\r\n\t succs.add(i+1); \r\n\tallSuccs[i] = succs;\r\n }\r\n allSuccs[code.length-1] = new IndexList(); // label at the end has no successors\r\n return allSuccs;\r\n }", "public boolean getNoIndex() {\n return noIndex;\n }", "private int[] blankFinder(){\n for(int x = 0; x < n; x++){\n for(int y = 0; y < n; y++){\n if(tiles[x][y] == 0){\n return new int[]{x, y};\n }\n }\n }\n return null;\n }", "public void setNoIndex() {\n noIndex= true;\n }", "java.lang.String getUnreachable(int index);", "public String[] getExcludedPatterns()\n/* */ {\n/* 122 */ return this.excludedPatterns;\n/* */ }", "default List<ValidatorIndex> get_unslashed_attesting_indices(BeaconState state, List<PendingAttestation> attestations) {\n return attestations.stream()\n .flatMap(a -> get_attesting_indices(state, a.getData(), a.getAggregationBitfield()).stream())\n .distinct()\n .filter(i -> !state.getValidatorRegistry().get(i).getSlashed())\n .sorted()\n .collect(Collectors.toList());\n }", "float getNotIn(int index);", "@Test\n\tpublic void notWordGrepTest() throws Exception{\n\t\t// word is 'unconstitutional'\n\t\tHashSet<String> grepFound = loadGrepResults(\"unconstitutional\");\n\t\tCollection<Page> index = queryTest.query(\"!unconstitutional\");\n\t\tHashSet<String> indexFound = new HashSet<String>();\n\n\t\tfor (Page p : index)\n\t\t\tindexFound.add(p.getURL().getPath().toLowerCase());\n\t\t\n\t\t// 9359 valid files in RHF\n\t\tassertEquals(indexFound.size(), 9359 - grepFound.size());\n\t\t\n\t\t// check that the sets are disjoint\n\t\tfor (String s : indexFound)\n\t\t\tassertFalse(grepFound.contains(s));\n\t\tfor (String s : grepFound)\n\t\t\tassertFalse(indexFound.contains(s));\n\t}", "protected abstract List<String> getSecondaryIndexExcludeList();", "@JsonProperty(PROP_NOT_FRAGMENT_OFFSETS)\n public SortedSet<SubRange> getNotFragmentOffsets() {\n return _notFragmentOffsets;\n }", "java.util.List<java.lang.String> getUnreachableList();", "public static String[] discard(String[] list, int index) {\n\t\treturn list;\n\t}", "private List<String> generateDropStatementsForNonDomainIndexes() throws SQLException {\n List<String> dropStatements = new ArrayList<String>();\n\n List<String> objectNames = jdbcTemplate.queryForStringList(\n \"SELECT INDEX_NAME FROM ALL_INDEXES WHERE OWNER = ? AND INDEX_TYPE NOT LIKE '%DOMAIN%'\", name);\n\n for (String objectName : objectNames) {\n dropStatements.add(generateDefaultDropStatement(\"INDEX\", objectName, \"\"));\n }\n return dropStatements;\n }", "public Map<String, List<ExprNodeDesc>> getNonFinalCandidates() {\n return nonFinalPreds;\n }", "int missingWatchpointIndexOf(Watch[] a)\n\t{\n\t\tint size = watchpointCount();\n\t\tint at = -1;\n\t\tfor(int i=0; i<size && at<0; i++)\n\t\t{\n\t\t\tWatchAction action = watchpointAt(i);\n\t\t\tWatch w = action.getWatch();\n\t\t\t\n\t\t\t// now scan the list of watches looking for a hit\n\t\t\tint hit = -1;\n\t\t\tfor(int j=0; j<a.length && hit<0; j++)\n\t\t\t{\n\t\t\t\tif (w == a[j])\n\t\t\t\t\thit = j;\n\t\t\t}\n\n\t\t\t// can't find the watch object corresponding to our\n\t\t\t// watchpoint in list of session watches.\n\t\t\tif (hit < 0)\n\t\t\t\tat = i;\n\t\t}\n\n\t\treturn at;\n\t}", "public List<Mask> getDontCareMasks() {\n return Collections.unmodifiableList(dontCareMasks);\n }", "public Instances notCoveredBy(Instances data) {\n\n Instances r = new Instances(data, data.numInstances());\n Enumeration enu = data.enumerateInstances();\n while (enu.hasMoreElements()) {\n\tInstance i = (Instance) enu.nextElement();\n\tif (resultRule(i) == -1) {\n\t r.add(i);\n\t}\n }\n r.compactify();\n return r;\n }", "org.landxml.schema.landXML11.NoPassingZoneDocument.NoPassingZone getNoPassingZoneArray(int i);", "@Override\n\tpublic Object visit(ASTFilterNot node, Object data) {\n\t\tSystem.out.print(\"not \");\n\t\tnode.childrenAccept(this, data);\n\t\treturn null;\n\t}", "public Set<String> getWordsNotFoundByUser(){\n\n Set<String> validWordsOnBoardCopy = new HashSet<String>();\n validWordsOnBoardCopy.addAll(validWordsOnBoard);\n validWordsOnBoardCopy.removeAll(validWordsFoundByUser);\n\n return validWordsOnBoardCopy;\n }", "void startIndexing();", "public int[] findAnyPairIndexesCoprime() {\n return findAnyPairIndexesCoprime(seq);\n }", "private List<CSSParser.Selector> nextPseudoNotParam() throws CSSParseException\n {\n if (empty())\n return null;\n\n int start = position;\n\n if (!consume('('))\n return null;\n skipWhitespace();\n\n // Parse the parameter contents\n List<CSSParser.Selector> result = nextSelectorGroup();\n\n if (result == null) {\n position = start;\n return null;\n }\n\n if (!consume(')')) {\n position = start;\n return null;\n }\n\n // Nesting a :not() pseudo class within a :not() is not allowed.\n for (CSSParser.Selector selector: result) {\n if (selector.simpleSelectors == null)\n break;\n for (CSSParser.SimpleSelector simpleSelector: selector.simpleSelectors) {\n if (simpleSelector.pseudos == null)\n break;\n for (CSSParser.PseudoClass pseudo: simpleSelector.pseudos) {\n if (pseudo instanceof CSSParser.PseudoClassNot)\n return null;\n }\n }\n }\n\n return result;\n }", "Set<Integer> getIgnoreStatusCodes();", "public void assertNotSelectedIndex(final String selectLocator, final String indexPattern);", "public List<String> getIfNoneMatch()\r\n/* 263: */ {\r\n/* 264:397 */ List<String> result = new ArrayList();\r\n/* 265: */ \r\n/* 266:399 */ String value = getFirst(\"If-None-Match\");\r\n/* 267:400 */ if (value != null)\r\n/* 268: */ {\r\n/* 269:401 */ String[] tokens = value.split(\",\\\\s*\");\r\n/* 270:402 */ for (String token : tokens) {\r\n/* 271:403 */ result.add(token);\r\n/* 272: */ }\r\n/* 273: */ }\r\n/* 274:406 */ return result;\r\n/* 275: */ }", "public abstract void deselectAllIndexes();", "public ListIterator getUnrecognizedHeaders() {\n return this.unrecognizedHeaders.listIterator();\n }", "protected int findNonEmptyPosition() {\n\t\t\twhile (!set.bv[++indice]) {\n\t\t\t}\n\t\t\treturn indice;\n\t\t}", "private List<Integer> getPropertiesThatFailed(String queryResult) {\r\n List<Integer> indexes = new ArrayList<Integer>();\r\n\r\n // Uses REGEX to correctly detect the indexes\r\n Pattern pattern = Pattern.compile(\"(\\\\d)(?=(\\\\s)*false)\");\r\n Matcher matcher = pattern.matcher(queryResult);\r\n\r\n while (matcher.find()){\r\n indexes.add(Integer.parseInt(matcher.group()));\r\n\r\n }\r\n return indexes;\r\n }", "protected HashSet getNotTraversable(){\n tester.removeTraversedComponents();\n return tester.traversableComponents;\n }", "private ArrayList<Integer> getOutsideFaceIndicesBeforeAllInfoHasBeenInferred()\n\t{\n\t\t// go through all the simplices and count how often each face is referenced;\n\t\t// inside faces are referenced twice, outside faces once\n\t\t\n\t\t// set up an array that will contain the reference counts for each face\n\t\tint[] faceRefs = new int[faces.size()];\n\t\tfor(int i=0; i<faceRefs.length; i++) faceRefs[i] = 0;\n\t\t\n\t\t// now go through all the simplices...\n\t\tfor(Simplex simplex : simplices)\n\t\t{\n\t\t\t// ... and increase the reference count of all the faces in the simplex\n\t\t\tint[] simplexFaceIndices = simplex.getFaceIndices();\t// should be of length 4\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t{\n\t\t\t\t// increase the reference count of the <i>th face of the simplex\n\t\t\t\tfaceRefs[simplexFaceIndices[i]]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// now collect the indices of all faces that are referenced only once, i.e. the outside faces\n\t\tArrayList<Integer> outsideFaceIndices = new ArrayList<Integer>();\n\t\tfor(int i=0; i<faceRefs.length; i++)\n\t\t\t// is there exactly one reference to the face with index i?\n\t\t\tif(faceRefs[i] == 1)\n\t\t\t\t// yes; add i to the list of outside-face indices\n\t\t\t\toutsideFaceIndices.add(i);\n\t\t\n\t\t// return the list of outside-face indices\n\t\treturn outsideFaceIndices;\n\t}", "public String[] getAlternateIndexNames() \n {\n if (!this.hasAlternateIndexes()) {\n return null;\n } else {\n return this.altIndexMap.keyArray(String.class);\n }\n }", "com.google.protobuf.ByteString getUnreachableBytes(int index);", "public Object[] getFilteredSuccessorNodes (Object node) throws InvalidComponentException;", "@Test public void doesntIndexCoreOrNonStringAnnotations() throws IOException {\n accept(storage.spanConsumer(), TestObjects.CLIENT_SPAN);\n\n assertThat(\n storage.session()\n .execute(\"SELECT blobastext(annotation) from annotations_index\")\n .all())\n .extracting(r -> r.getString(0))\n .containsExactlyInAnyOrder(\n \"frontend:http.path\",\n \"frontend:http.path:/api\",\n \"frontend:clnt/finagle.version:6.45.0\",\n \"frontend:foo\",\n \"frontend:clnt/finagle.version\");\n }", "org.landxml.schema.landXML11.NoPassingZoneDocument.NoPassingZone[] getNoPassingZoneArray();", "int getNotInCount();", "Index getIndices(int index);", "public Rule nonFunctionTypes()\n \t{\n \t\treturn sequence(\n \t\t\t\t// Don't allow simpleMap starting with '|' as this confuses with closinf Function.\n \t\t\t\tfirstOf(sequence(testNot(SP_PIPE), simpleMapType()), mapType(), simpleType()),\n \t\t\t\toptional(\n \t\t\t\tsequence(noNl(), optional(SP_QMARK), noNl(), enforcedSequence(\n \t\t\t\tSQ_BRACKET_L, SQ_BRACKET_R))), // list of '?[]'\n \t\t\t\toptional(sequence(noNl(), SP_QMARK))); // nullable\n \t}", "boolean getMissingResults();", "private List<IndexExpression> getIndexExpressions() throws IOException\n {\n UDFContext context = UDFContext.getUDFContext();\n Properties property = context.getUDFProperties(CassandraStorage.class);\n if (property.getProperty(StorageHelper.PARTITION_FILTER_SIGNATURE) != null)\n return indexExpressionsFromString(property.getProperty(StorageHelper.PARTITION_FILTER_SIGNATURE));\n else\n return null;\n }", "public List<Predicate> usedNegativeBodyPredicates() {\n\t\tArrayList<Predicate> usedPredicates = new ArrayList<>(bodyAtomsNegative.size());\n\t\tfor (Atom basicAtom : bodyAtomsNegative) {\n\t\t\tusedPredicates.add(basicAtom.getPredicate());\n\t\t}\n\t\treturn usedPredicates;\n\t}", "boolean hasIndex();", "boolean hasIndex();", "boolean hasIndex();", "boolean hasIndex();", "boolean hasIndex();", "boolean hasIndex();", "public java.lang.Short getSkipNotMatch() {\r\n return skipNotMatch;\r\n }", "public String[] getNotIncludedFiles()\n throws TaskException\n {\n slowScan();\n int count = filesNotIncluded.size();\n String[] files = new String[ count ];\n for( int i = 0; i < count; i++ )\n {\n files[ i ] = (String)filesNotIncluded.get( i );\n }\n return files;\n }", "public java.lang.String getNonResourceUrls(int index) {\n return nonResourceUrls_.get(index);\n }", "public java.lang.String getNonResourceUrls(int index) {\n return nonResourceUrls_.get(index);\n }", "public List<CatchClause> getCatchClausesNoTransform() {\n return getCatchClauseListNoTransform();\n }", "boolean isIndex();", "@Override\r\n public ParaMap index(ParaMap inMap) throws Exception {\n return null;\r\n }", "public ArrayList<Integer> getOutsideFaceIndices()\n\t{\n\t\t// now collect the indices of all faces that are referenced only once, i.e. the outside faces\n\t\tArrayList<Integer> outsideFaceIndices = new ArrayList<Integer>();\n\t\tfor(int i=0; i<faces.size(); i++)\n\t\t\t// is there exactly one reference to the face with index i?\n\t\t\tif(getFace(i).getNoOfFacesToOutside() == 0)\n\t\t\t\t// yes; add i to the list of outside-face indices\n\t\t\t\toutsideFaceIndices.add(i);\n\t\t\n\t\t// return the list of outside-face indices\n\t\treturn outsideFaceIndices;\n\t}", "protected void noMatch() {\n Token[] tokens = m_errorHandler.noMatch(m_current, m_prev);\n m_current = tokens[0];\n m_prev = tokens[1];\n }", "public Set<String> getNeverVisited() {\n Set<String> neverVisited = new TreeSet<String>();\n this.getNeverVisited(this, neverVisited, null);\n return neverVisited;\n }", "private List<PairOfNodeIndexIntervals> getListOfSuspiciousNodeIndexIntervalPairs() {\n\n\t\tList<PairOfNodeIndexIntervals> listOfPairs = new ArrayList<PairOfNodeIndexIntervals>();\n\n\t\t// compare the two node list by Greedy String Tilling algorithm\n\t\tSet<Match> matchedSubstrings = compareTwoNodeLists(programANodeList, programBNodeList);\n\t\tIterator<Match> it = matchedSubstrings.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tMatch match = it.next();\n\t\t\t\n\t\t\t// Given the node is represented by abbreviation of its type with fixed length: 2\n\t\t\t// not all results that are returned from GST are valid, we need to find out \n\t\t\t// valid block pairs\n\t\t\tPairOfNodeIndexIntervals validIntervalPair = getValidNodeIndexIntervalPair(match);\n\n\t\t\t// if the current match does not produce a valid block pair, the validIntervalPair will be null\n\t\t\t// otherwise, add it to the list of pairs\n\t\t\tif (validIntervalPair != null) {\n\t\t\t\tlistOfPairs.add(validIntervalPair);\n\t\t\t}\n\t\t}\n\n\t\treturn listOfPairs;\n\t}", "protected void scanNoSkip() throws TableFunctionMalformedException {\r\n\t\t\t\r\n\t\tint kw;\r\n\t\t\r\n\t\tgetName();\r\n\t\t\r\n\t\tkw = lookup(value);\r\n\t\tif (kw == -1)\r\n\t\t\ttoken = 'x';\r\n\t\telse\r\n\t\t\ttoken = kwcode[kw];\r\n\t\t// Debug.println(\"\\n!!!Value = \" + value);\r\n\t}", "int[][] unsatisfiedArrays(State[][] satisfactionMatrix, int nNotSatisfied) {\n int[][] unsArrays = new int[nNotSatisfied][2];\n int n = 0;\n for (int i = 0; i < world.length; i++) {\n for (int j = 0; j < world.length; j++) {\n State stateCell = satisfactionMatrix[i][j];\n if (stateCell == State.UNSATISFIED) {\n unsArrays[n][0] = i;\n unsArrays[n][1] = j;\n n++;\n }\n }\n }\n return unsArrays;\n }", "void stopIndexing();", "Collection<String> getExcludeExceptions();", "private FieldPosition[] getNegativePrefixFieldPositions() {\n if (negativePrefixFieldPositions == null) {\n if (negPrefixPattern != null) {\n negativePrefixFieldPositions = expandAffix(negPrefixPattern);\n } else {\n negativePrefixFieldPositions = EmptyFieldPositionArray;\n }\n }\n return negativePrefixFieldPositions;\n }", "boolean getIsIndexOnValues();", "boolean getSearchNodeCharacteristicIdsNull();", "public Collection<TopComponent> getUnchangedDocumentsForNB81() {\n\t\tfinal WindowManager wm = WindowManager.getDefault();\n\t\tfinal LinkedHashSet<TopComponent> result = new LinkedHashSet<TopComponent>();\n\t\tfor (TopComponent tc : getCurrentEditors()) {\n\t\t\tif (!wm.isEditorTopComponent(tc)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//check for the format of an unsaved file\n\t\t\tboolean isUnsaved = null != tc.getLookup().lookup(SaveCookie.class);\n\t\t\tif (isUnsaved) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tDataObject dob = tc.getLookup().lookup(DataObject.class);\n\t\t\tif (dob != null) {\n\t\t\t\tfinal FileObject file = dob.getPrimaryFile();\n\t\t\t\tObject attribute = file.getAttribute(\"ProvidedExtensions.VCSIsModified\");\n\t\t\t\tif (null != attribute) {\n\t\t\t\t\tif (Boolean.FALSE.equals(attribute)) {\n\t\t\t\t\t\tresult.add(tc);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t//could not determine status, keep this document\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t//close diff windows too\n\t\t\t\tresult.add(tc);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "int getOtherIds(int index);", "public int getFilteredIndex()\n\t{\n\t\treturn this.filteredIndex;\n\t}", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "public int getNonMovers();", "public String getUnreachableNodes()\n {\n return ssProxy.getUnreachableNodes();\n }", "@Override\n public Collection<? extends DBSTableIndex> getIndexes(DBRProgressMonitor monitor) throws DBException {\n return Collections.emptyList();\n }", "public static Object[] nonRepeats(String seq, String C) {\n\t\t//String[] results = {\"\",\"\"};\n\t\tStringBuffer sb = new StringBuffer(seq);\n\t\tStringBuffer matches = new StringBuffer();\n\t\tint ind=0;\n\t\t//System.out.println(\"seq \" + seq + \" C \" + C);\n\t\tint total = 0;\n\t\tint ip = 0;\n\t\twhile (sb.indexOf(C, ind) > -1 && ind < sb.length()) {\n\t\t\ttotal++;\n\t\t\tint i = sb.indexOf(C, ind);\n\t\t\tsb.replace(i, i+C.length(), \"\");\n\t\t\tif (i>0) matches.append(sb.substring(ip, i)).append(\" \");\n\t\t\tmatches.append(\"[\").append(C).append(\"] \");\n\t\t\tind=i;\n\t\t\tip=i;\n\t\t}\n\t\tmatches.append(sb.substring(ind));\n\t\t//System.out.println(sb+\",\"+matches);\n\t\treturn new Object[] {sb.toString(), matches.toString(), total};\n\t}", "public interface SearchIndexExcluderList {\n\n\t/**\n\t * Do any required setup on the individual Excluders.\n\t */\n\tvoid startIndexing();\n\n\t/**\n\t * Do any required teardown on the individual Excluders.\n\t */\n\tvoid stopIndexing();\n\n\t/**\n\t * Poll the list of excluders regarding this individual.\n\t *\n\t * If any returns non-null, the individual is excluded. If all return null,\n\t * the individual is not excluded.\n\t */\n\tboolean isExcluded(Individual ind);\n\n}", "private int getUnusedDependencyIndex(ArrayList<String> output, String startingPoint) {\n int index = 0;\n int counter = 0;\n for (String start : output) {\n if (start.equals(startingPoint)) {\n index = counter;\n break;\n }\n counter++;\n }\n return index;\n }", "public List<String> getNotExportedSearchableFields() {\n return Collections.unmodifiableList(notExportedSearchableFields);\n }", "public Set<String> getIgnoredReferences() {\n\t\treturn ignoredReferences.keySet();\n\t}", "boolean getIsIndexOnKeys();", "@Test\n public void testNoPrefixMatch(){\n List<String> items = getCompletions(\"noPrefixMatch.py\", \"json/noPrefixMatch.json\", CompletionType.BASIC);\n\n assertEquals(\"expected 2 Kite items + 2 IDE items\", 4, items.size());\n assertEquals(\"[]int {}\", items.get(0));\n assertEquals(\"values, []int\", items.get(1));\n }", "public Set<String> getSingleIndices() {\n Set<String> singleIndices = new HashSet<>();\n for (String index : indices) {\n if (index.contains(\",\")) {\n Collections.addAll(singleIndices, index.split(\",\"));\n } else {\n singleIndices.add(index);\n }\n }\n return singleIndices;\n }", "public NotSearch not()\n\t\t{\n\t\t\treturn new NotSearch();\n\t\t}", "Mapper<T, T2> ignoring(Ignorable ignorable);", "public abstract Iterator getNonMatchingMimeHeaders(String names[]);", "public List<Artist> getArtistsWhichHaveNoReleases();", "public String[] getExcludedFiles()\n throws TaskException\n {\n slowScan();\n int count = filesExcluded.size();\n String[] files = new String[ count ];\n for( int i = 0; i < count; i++ )\n {\n files[ i ] = (String)filesExcluded.get( i );\n }\n return files;\n }", "public void not() {\n\t\tfinal EWAHIterator i =\n\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\tif (!i.hasNext())\n\t\t\treturn;\n\t\twhile (true) {\n\t\t\tfinal RunningLengthWord rlw1 = i.next();\n\t\t\tif (rlw1.getRunningLength() > 0)\n\t\t\t\trlw1.setRunningBit(!rlw1.getRunningBit());\n\t\t\tfor (int j = 0; j < rlw1.getNumberOfLiteralWords(); ++j) {\n\t\t\t\ti.buffer()[i.dirtyWords() + j] =\n\t\t\t\t\t\t~i.buffer()[i.dirtyWords() + j];\n\t\t\t}\n\t\t\tif (!i.hasNext()) {// must potentially adjust the last dirty word\n\t\t\t\tif (rlw1.getNumberOfLiteralWords() == 0)\n\t\t\t\t\treturn;\n\t\t\t\tint usedbitsinlast = this.sizeinbits % wordinbits;\n\t\t\t\tif (usedbitsinlast == 0)\n\t\t\t\t\treturn;\n\t\t\t\ti.buffer()[i.dirtyWords() + rlw1.getNumberOfLiteralWords() - 1] &=\n\t\t\t\t\t\t((oneMask) >>> (wordinbits - usedbitsinlast));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public void processWildcards() {\n ws = new WildcardSegment();\n WildcardSegment next;\n int sw,mw; //Single Wildcard, Multi-Wildcard\n currIndex = 0;\n int ci = -1;\n Highlighter h = jta.getHighlighter();\n h.removeAllHighlights();\n String text = jtfFind.getText();\n \n String jText = jta.getText();\n if (text.equals(\"\")) {\n jtfFind.setBackground(Color.WHITE);\n }\n else {\n if (hasWildcards(text)) {\n int index = 0;\n int currIndex_w = currIndex;\n boolean tryAgain = false;\n text = processEscapeChars_w(text);\n text = validateWildcards(text);\n \n ws.setStart(0);\n next = ws.next;\n \n text = text.replace(\"^^\",\"~!~\");\n \n do {\n sw = text.indexOf(\"^#\");\n mw = text.indexOf(\"^*\");\n \n if ((sw != -1) && (mw != -1)) {\n if (sw < mw) {\n text = text.replaceFirst(\"\\\\Q^#\\\\E\",\"`#\");\n if (sw == 0) {\n ws.type = 1;\n }\n else {\n next.setStart(sw,1);\n index = next.start;\n next = next.next;\n }\n }\n else {\n text = text.replaceFirst(\"\\\\Q^*\\\\E\",\"`*\");\n if (mw == 0) {\n ws.type = 2;\n }\n else {\n next.setStart(mw,2);\n index = next.start;\n next = next.next;\n }\n }\n }\n else if (sw != -1) {\n text = text.replaceFirst(\"\\\\Q^#\\\\E\",\"`#\");\n if (sw == 0) {\n ws.type = 1;\n }\n else {\n next.setStart(sw,1);\n index = next.start;\n next = next.next;\n }\n }\n else {\n text = text.replaceFirst(\"\\\\Q^*\\\\E\",\"`*\");\n if (mw == 0) {\n ws.type = 2;\n }\n else {\n next.setStart(mw,2);\n index = next.start;\n next = next.next;\n }\n }\n \n sw = text.indexOf(\"^#\");\n mw = text.indexOf(\"^*\");\n if ((index != text.length() - 2) && (sw != (index + 2)) && (mw != (index + 2))) {\n next.setStart(index+2);\n index = next.start;\n next = next.next;\n }\n }\n while ((sw != -1) || (mw != -1));\n \n next = ws;\n while(next.start != -1) {\n switch (next.type) {\n case 0:\n if (next.next.type == -1) {\n next.seg = text.substring(next.start);\n }\n else {\n next.seg = text.substring(next.start,next.next.start);\n }\n break;\n case 1:\n next.seg = \"~`~\";\n break;\n case 2:\n next.seg = \"`~`\";\n break;\n default:\n //Do nothing\n break;\n }\n next = next.next;\n }\n //text = text.replace(\"~!~\",\"^\");\n next = ws;\n boolean keepLooking = true;\n int bSpace,bTab,bNewline,bIndex;\n while(next.start != -1) {\n switch (next.type) {\n case 0:\n index = jText.toLowerCase().indexOf(next.seg.toLowerCase(),currIndex_w);\n if (index == -1) {\n keepLooking = false;\n }\n else {\n if (next.start == 0) {\n //currIndex = index + 1;\n if (ci == -1) {\n ci = index + 1;\n }\n }\n if (ci == -1) {\n ci = index + 1;\n }\n if (next.next.start != -1) {\n currIndex_w = index + next.seg.length();\n }\n else {\n currIndex_w = index + 1;\n }\n }\n break;\n case 1:\n //index = jText.toLowerCase().indexOf(next.seg.toLowerCase(),currIndex_w);\n if (currIndex_w != jText.length()) {\n index = currIndex_w;\n }\n else {\n index = -1;\n }\n if (index == -1) {\n keepLooking = false;\n }\n else {\n if (next.start == 0) {\n //currIndex = index + 1;\n if (ci == -1) {\n ci = index + 1;\n }\n }\n if (ci == -1) {\n ci = index + 1;\n }\n if (next.next.start != -1) {\n next.seg = String.valueOf(jText.charAt(currIndex_w));\n currIndex_w = index + next.seg.length();\n }\n else {\n next.seg = String.valueOf(jText.charAt(currIndex_w));\n currIndex_w = index + 1;\n }\n }\n break;\n case 2:\n \n if (next.next.start != -1) {\n bIndex = jText.toLowerCase().indexOf(next.next.seg.toLowerCase(),currIndex_w);\n bSpace = jText.toLowerCase().indexOf(StringUtil.ASPACE,currIndex_w);\n bTab = jText.toLowerCase().indexOf(StringUtil.ATAB,currIndex_w);\n bNewline = jText.toLowerCase().indexOf(\"\\n\",currIndex_w);\n if ((bSpace != -1) && ((bSpace < bIndex) || (bIndex == -1))) {\n bIndex = -1;\n }\n \n if ((bTab != -1) && ((bTab < bIndex) || (bIndex == -1))) {\n bIndex = -1;\n }\n if ((bNewline != -1) && ((bNewline < bIndex) || (bIndex == -1))) {\n bIndex = -1;\n }\n index = bIndex;\n if ((currIndex_w != jText.length()) && (index == -1)) {\n tryAgain = true;\n }\n }\n else {\n bSpace = jText.toLowerCase().indexOf(StringUtil.ASPACE,currIndex_w);\n bTab = jText.toLowerCase().indexOf(StringUtil.ATAB,currIndex_w);\n bNewline = jText.toLowerCase().indexOf(\"\\n\",currIndex_w);\n \n bIndex = bSpace;\n if ((bTab != -1) && ((bTab < bIndex) || (bIndex == -1))) {\n bIndex = bTab;\n }\n if ((bNewline != -1) && ((bNewline < bIndex) || (bIndex == -1))) {\n bIndex = bNewline;\n }\n index = bIndex;\n if ((currIndex_w != jText.length()) && (index == -1)) {\n index = jText.length();\n }\n }\n \n if (index == -1) {\n keepLooking = false;\n }\n else {\n next.seg = jText.substring(currIndex_w,index);\n if (next.start == 0) {\n //currIndex = index + 1;\n if (ci == -1) {\n ci = index + 1;\n }\n }\n if (ci == -1) {\n ci = index + 1;\n }\n if (next.next.start != -1) {\n currIndex_w = index + next.seg.length();\n }\n else {\n currIndex_w = index + next.seg.length();\n }\n }\n break;\n default:\n //Do nothing\n break;\n }\n if (keepLooking) {\n next = next.next;\n }\n else {\n if (tryAgain) {\n next = ws;\n tryAgain = false;\n keepLooking = true;\n }\n else {\n break;\n }\n }\n }\n /*\n TestInfo.testWriteLn(\"Find String: \" + ws.makeFindString());\n TestInfo.testWriteLn(\"Find Type: \" + ws.makeFindType());\n TestInfo.testWriteLn(\"Find Start: \" + ws.makeFindStart());\n */\n if (keepLooking) {\n TestInfo.testWriteLn(\"String Found!\");\n }\n else {\n TestInfo.testWriteLn(\"String Not Found!\");\n }\n \n //Do search\n text = ws.makeFindString();\n index = jText.toLowerCase().indexOf(text.toLowerCase(),currIndex);\n if (index == -1) {\n jtfFind.setBackground(Color.RED);\n }\n else {\n try {\n currIndex = ci;\n // An instance of the private subclass of the default highlight painter\n Highlighter.HighlightPainter myHighlightPainter = new MyHighlightPainter(Color.YELLOW);\n oldHighlightPainter = myHighlightPainter;\n h.addHighlight(index,index+text.length(),myHighlightPainter);\n jtfFind.setBackground(Color.WHITE);\n jta.setSelectionColor(Color.CYAN);\n //jta.selectAll();\n jta.select(index,index+text.length());\n lastHighlight[0] = index;\n lastHighlight[1] = index + text.length();\n //jta.setSelectionEnd(index + text.length());\n }\n catch (BadLocationException e) {\n //Do nothing\n }\n }\n }\n else {\n text = processEscapeChars(text);\n \n int index = jText.toLowerCase().indexOf(text.toLowerCase());\n if (index == -1) {\n jtfFind.setBackground(Color.RED);\n }\n else {\n try {\n currIndex = index + 1;\n // An instance of the private subclass of the default highlight painter\n Highlighter.HighlightPainter myHighlightPainter = new MyHighlightPainter(Color.YELLOW);\n oldHighlightPainter = myHighlightPainter;\n h.addHighlight(index,index+text.length(),myHighlightPainter);\n jtfFind.setBackground(Color.WHITE);\n jta.setSelectionColor(Color.CYAN);\n //jta.selectAll();\n jta.select(index,index+text.length());\n lastHighlight[0] = index;\n lastHighlight[1] = index + text.length();\n //jta.setSelectionEnd(index + text.length());\n }\n catch (BadLocationException e) {\n //Do nothing\n }\n }\n }\n }\n }", "java.lang.String getExceptions(int index);", "private Instances removeIgnoreCols(Instances inst) {\n\t\tif (m_EnableClassesToClusters.isSelected()) {\r\n\t\t\tint classIndex = m_ClassCombo.getSelectedIndex();\r\n\t\t\tif (m_ignoreKeyList.isSelectedIndex(classIndex)) {\r\n\t\t\t\tm_ignoreKeyList.removeSelectionInterval(classIndex, classIndex);\r\n\t\t\t}\r\n\t\t}\r\n\t\tint[] selected = m_ignoreKeyList.getSelectedIndices();\r\n\t\tRemove af = new Remove();\r\n\t\tInstances retI = null;\r\n\r\n\t\ttry {\r\n\t\t\taf.setAttributeIndicesArray(selected);\r\n\t\t\taf.setInvertSelection(false);\r\n\t\t\taf.setInputFormat(inst);\r\n\t\t\tretI = Filter.useFilter(inst, af);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn retI;\r\n\t}", "public List<Index> getIndexes();", "@Override\n\tpublic String[] getRequestFilterIgnoreUrlPatterns() {\n\t\treturn aryIgnoreUrl;\n\t}", "private Future<List<String>> findMissingSubs(List<String> subPerms, Conn connection) {\n Map<String, Future<Boolean>> futureMap = new HashMap<>();\n List<String> notFoundList = new ArrayList<>();\n for (String permName : subPerms) {\n Future<Boolean> permCheckFuture = checkPermExists(permName, connection);\n futureMap.put(permName, permCheckFuture);\n }\n CompositeFuture compositeFuture = CompositeFuture.all(new ArrayList<>(futureMap.values()));\n return compositeFuture.compose(res -> {\n futureMap.forEach((permName, existsCheckFuture) -> {\n if (Boolean.FALSE.equals(existsCheckFuture.result())) {\n notFoundList.add(permName);\n }\n });\n return Future.succeededFuture(notFoundList);\n });\n }", "public boolean indexAllowed() {\r\n return true;\r\n }", "public LinkedList<Node> getNonTargets(){\n\t\treturn nonTargetNodes;\n\t}", "public Set<Entry<String, String>> getIgnoredReferencesWithReasons() {\n\t\treturn ignoredReferences.entrySet();\n\t}", "@Override\n\tpublic List<Nature> findNaturesNotIn() {\n\t\treturn natureRepository.findNaturesNotIn();\n\t}" ]
[ "0.53855497", "0.5142132", "0.50601053", "0.49610332", "0.49430382", "0.4901847", "0.48974395", "0.48475328", "0.48215237", "0.4799894", "0.47780514", "0.4776627", "0.47713885", "0.47217366", "0.4702517", "0.4693043", "0.46911767", "0.46793345", "0.4675234", "0.46602663", "0.4657666", "0.46508935", "0.46501562", "0.463054", "0.462559", "0.46195468", "0.46186045", "0.46145856", "0.46140066", "0.46069527", "0.46057427", "0.46003836", "0.45893916", "0.45834076", "0.4580254", "0.45708412", "0.4564713", "0.4562443", "0.45610848", "0.45587718", "0.45549914", "0.45452172", "0.45304427", "0.4519225", "0.45011464", "0.45011464", "0.45011464", "0.45011464", "0.45011464", "0.45011464", "0.44939852", "0.44768852", "0.44714624", "0.44693714", "0.44612628", "0.44572762", "0.4456699", "0.44558415", "0.44526258", "0.44485602", "0.44469324", "0.44469297", "0.44459432", "0.44422507", "0.44363594", "0.44348508", "0.44333827", "0.44266018", "0.4412797", "0.4402978", "0.43817186", "0.43811134", "0.43811134", "0.4379023", "0.43778348", "0.43773377", "0.43683288", "0.43668026", "0.43629813", "0.43526345", "0.43526095", "0.43518236", "0.43501863", "0.43498328", "0.43473983", "0.43381372", "0.43368658", "0.43340856", "0.43338093", "0.43265638", "0.43254527", "0.4325342", "0.43205324", "0.43086097", "0.4307371", "0.4307101", "0.43045872", "0.430246", "0.4296924", "0.42910895" ]
0.70365983
0
MORE DETAILED WAY TO PRINT A RULESET, PRINTING RULES CONTENT INSTEAD OF IDS
public void printRules () { System.out.println("PRINTING RULESET ID : " + this.id + " (" + this.size() + ") entries."); for (int i = 0; i < this.size(); i++) { System.out.println("Rule " + (i+1) + " (ID " + references.get(i) + ") : " + this.rulelist.getRuleByID(references.get(i)) + " Prob : " + this.rulelist.getRuleByID(references.get(i)).getProb() + " TIMES " + this.rulelist.getRuleByID(references.get(i)).occurrencies + " PREC " + this.rulelist.getRuleByID(references.get(i)).prec_occurrencies); } System.out.println("Total Prob : " + this.totalProb); System.out.println("Precedences : " + this.precedences); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printRules_RVLR () {\n \n System.out.println(\"PRINTING RULESET ID : \" + this.id + \" (\" + this.size() + \") entries.\");\n for (int i = 0; i < this.size(); i++) {\n \n System.out.println(\"Rule \" + (i+1) + \" (ID \" + references.get(i) + \") : \" + this.rulelist.getRuleByID(references.get(i)) + \" Prob : \" + this.rulelist.getRuleByID(references.get(i)).getProb() + \" TIMES \" + this.rulelist.getRuleByID(references.get(i)).occurrencies + \" PREC \" + this.rulelist.getRuleByID(references.get(i)).prec_occurrencies + \" Value : \" + this.rulelist.getRuleByID(references.get(i)).get_RVRL());\n }\n System.out.println(\"Total Prob : \" + this.totalProb);\n //System.out.println(\"Precedences : \" + this.precedences);\n }", "public void printRule()\n {\n System.out.print(lhs + \" ::= \");\n for( String s : rhsSymbols)\n System.out.print(s + \" \");\n System.out.println();\n }", "public String toDebugString(RuleSet rs){\n\t\tString res = \"\";\n\t\tif(body != null)\n\t\t\tfor(Integer e : body){\n\t\t\t\tres = res + (res.equals(\"\") ? \"\" : \" & \") + OWLPrinter.getString(rs.debugLookup(e));\n\t\t\t}\n\n\t\tres += \" -> \";\n\t\tif(head != null) res += OWLPrinter.getString(rs.debugLookup(head));\n\t\telse{\n\t\t\tres += OWLPrinter.getString(rs.debugLookup(axiom));\n\t\t\tif(define != null){\n\t\t\t\tres += \" def \" + OWLPrinter.getString(rs.debugLookup(define));\n\t\t\t}\n\t\t}\n\n\t\t//if(head instanceof OWLAxiom) \tres += \" -> \" + ClassPrinter.printAxiom((OWLAxiom) head);\n\t\t//else \t\t\t\t\t\t\tres += \" -> \" + ClassPrinter.printClass(head);\n\t\treturn res;\n\t}", "public static void printRules(Rule[] rules) {\n System.out.println(\"\\nRulebase generated\\n------------------\");\n int i =1;\n for (Rule rule : rules) {\n String cond = \"\";\n for (int j = 0; j < rule.cond.length; j++) {\n cond = cond + rule.cond[j];\n }\n String output = rule.output;\n System.out.println(\"Rule\" + i + \" : \" + cond + \" = \" + output);\n i++;\n }\n System.out.println(\"\\n\");\n }", "public void dumpRules()\n\t{\n\t\tif(chain == null)\n\t\t\treturn;\n\t\t\n\t\tIterator it = chain.keySet().iterator();\n\t\tIterator subIt = null;\n\t\t\n\t\tString key = null;\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tkey = (String)it.next();\n\t\t\tSystem.out.print(key + \" --> \");\n\t\t\t\n\t\t\tsubIt = (chain.get(key)).iterator();\n\t\t\t\n\t\t\twhile(subIt.hasNext())\n\t\t\t\tSystem.out.print(subIt.next() + \", \");\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public String toString()\n/* */ {\n/* 885 */ StringBuilder result = new StringBuilder();\n/* 886 */ for (int i = 0; i < this.ruleSets.length; i++) {\n/* 887 */ result.append(this.ruleSets[i].toString());\n/* */ }\n/* 889 */ return result.toString();\n/* */ }", "public void print()\n/* */ {\n/* 226 */ boolean emptyTarget = true;\n/* 227 */ Iterator it; if ((this.subjects != null) && (this.subjects.size() > 0)) {\n/* 228 */ System.out.println(\"\\nSubjects ---->\");\n/* 229 */ emptyTarget = false;\n/* 230 */ for (it = this.subjects.iterator(); it.hasNext();)\n/* 231 */ ((MatchList)it.next()).print();\n/* */ }\n/* 234 */ if ((this.resources != null) && (this.resources.size() > 0)) {\n/* 235 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Resources ---->\");\n/* 236 */ emptyTarget = false;\n/* 237 */ for (it = this.resources.iterator(); it.hasNext();)\n/* 238 */ ((MatchList)it.next()).print();\n/* */ }\n/* 241 */ if ((this.actions != null) && (this.actions.size() > 0)) {\n/* 242 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Actions ---->\");\n/* 243 */ emptyTarget = false;\n/* 244 */ for (it = this.actions.iterator(); it.hasNext();)\n/* 245 */ ((MatchList)it.next()).print();\n/* */ }\n/* 248 */ if ((this.environments != null) && (this.environments.size() > 0)) {\n/* 249 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Environments ---->\");\n/* 250 */ emptyTarget = false;\n/* 251 */ for (it = this.environments.iterator(); it.hasNext();) {\n/* 252 */ ((MatchList)it.next()).print();\n/* */ }\n/* */ }\n/* 255 */ if (emptyTarget) System.out.print(\"EMPTY\");\n/* */ }", "public void showRules(Application app){\n System.out.println(\"Here are your rules: \\n • GPA >= \" + app.getStand().getReqGPA() + \"\\n • SAT >= \" + app.getStand().getReqSAT() + \"\\n • A valid intended major, either aligned towards STEM or Humanities.\" + \"\\n • Three valid extracurriculars. \\n \\t • A valid extracurricular is defined as a productive use of time and/or a standout accomplishment. \\n \\t • It must align with the student's STEM or Humanities focus. \\n \\t • All three extracurriculars must be valid. \\n • A statement of purpose without spelling errors.\");\n System.out.println(\" • Students admitted to Harvard must have a passion for Humanities. Students admitted to MIT must have a passion for STEM. This can be determined through their intended major and extracurriculars, assuming both are valid.\");\n System.out.println(\" • All students with errors in their applications should be admitted to Greendale Community College.\");\n System.out.println();\n System.out.println(\"Good luck!\");\n }", "String rulesAsText();", "public abstract void printConstraint();", "private void printModel(Model model) {\n\t\tStmtIterator iter = model.listStatements();\n\n\t\t// print out the predicate, subject and object of each statement\n\t\twhile (iter.hasNext()) {\n\t\t\tStatement stmt = iter.nextStatement(); // get next statement\n\t\t\tResource subject = stmt.getSubject(); // get the subject\n\t\t\tProperty predicate = stmt.getPredicate(); // get the predicate\n\t\t\tRDFNode object = stmt.getObject(); // get the object\n\n\t\t\tSystem.out.print(\"SUBJECT: \" + subject.toString());\n\t\t\tSystem.out.print(\"\\tPREDICATE: \" + predicate.toString() + \" \");\n\t\t\tif (object instanceof Resource) {\n\t\t\t\tSystem.out.print(\"\\tOBJECT: \" + object.toString());\n\t\t\t} else {\n\t\t\t\t// object is a literal\n\t\t\t\tSystem.out.print(\"\\tOBJECT: \\\"\" + object.toString() + \"\\\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\" .\");\n\t\t}\n\t}", "public void print() {\n System.out.println(\"Scheme print:\");\n System.out.println(\" Blocks:\");\n for (Block block : this.blocks) {\n // System.out.println(\" \" + block.getName() + \" (\" + block.getID() + \")\");\n for (Integer id : block.getConnections()) {\n System.out.println(\" \" + id);\n }\n //System.out.println(\" \" + block.outputs.getFirst().getDstID());\n }\n /*System.out.println(\" Connections:\");\n for (Con connection : this.connections) {\n System.out.println(\" [\" + connection.src + \"]---[\" + connection.dst + \"]\");\n }*/\n if(this.queue_set){\n System.out.println(\" Queue: \" + this.queue);\n }\n else{\n System.out.println(\" Queue not loaded\");\n }\n }", "private void print( org.antlr.v4.tool.Grammar grammar, ParseTree tree, String indentStep, String indent )\n {\n if ( tree != null )\n {\n Object payload = tree.getPayload();\n if ( payload instanceof InterpreterRuleContext )\n {\n String ruleName = grammar.getRule( ((InterpreterRuleContext) payload).getRuleIndex() ).name;\n System.out.println( indent + ruleName );\n }\n else\n {\n System.out.println( indent + \"\\\"\" + tree.getText() + \"\\\"\" );\n }\n for ( int i = 0; i <= tree.getChildCount(); i++ )\n {\n print( grammar, tree.getChild( i ), indentStep, indent + indentStep );\n }\n }\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getRuleVariables() != null)\n sb.append(\"RuleVariables: \").append(getRuleVariables());\n sb.append(\"}\");\n return sb.toString();\n }", "public void showAssignments(){\n\t\tIterator it = this.clauses.iterator();\n\t\tint numVar = this.getVocabulary().getMaxVariableId();\n\t\tint[] assign = new int[numVar*2+1]; \n\n\t\twhile (it.hasNext()) {\n\t\t\tSystem.out.println(\"___________________________\");\n IClause cl = (IClause) it.next();\n Iterator litIterator = cl.literalIterator();\n while (litIterator.hasNext()){\n \tILiteral lit = (ILiteral) litIterator.next();\n \tint idx = lit.getId();\n \tif (idx<0) \n \t\tidx = numVar - idx;\n \tassign[idx] = lit.value();\n }\n }\n\t\t\n\t\tfor (int i=1;i<assign.length;i++){\n\t\t\tint k = i;\n\t\t\tif (i>numVar)\n\t\t\t\tk = numVar - i;\n\t\t\tSystem.out.print(k + \"|\" + assign[i] + \";\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void print() {\n \n for (int i=0 ; i< getNumberOfCases() ; i++) {\n Configuration conf = get(i);\n conf.print();\n System.out.print(\"\\n\");\n }\n}", "public String toString() {\n\n if (m_rules == null) {\n return \"Prism: No model built yet.\";\n }\n return \"Prism rules\\n----------\\n\" + m_rules.toString();\n }", "private void explore(RuleContext ctx) {\n if (ctx.getChildCount() != 1) {\n String ruleName = Python3Parser.ruleNames[ctx.getRuleIndex()];\n astRepresenation.append(ruleName);\n astRepresenation.append(\": \");\n astRepresenation.append(ctx.getText());\n astRepresenation.append(\"\\n\");\n }\n for (int i = 0; i < ctx.getChildCount(); i++) {\n ParseTree element = ctx.getChild(i);\n if (element instanceof RuleContext) {\n explore((RuleContext) element);\n }\n }\n }", "public void displayRules(TextArea textArea) {\r\n textArea.appendText(\"\\n\" + name + \" Rule Base: \" + \"\\n\");\r\n Enumeration enum2 = ruleList.elements() ;\r\n while(enum2.hasMoreElements()) {\r\n Rule temp = (Rule)enum2.nextElement() ;\r\n temp.display(textArea) ;\r\n }\r\n }", "public String toString() {\n return this.grammarRules.keySet() + \"\";\n\t}", "public static void printRule() {\n int counter = 0;\n\n System.out.print(\" Welcome to Tic Tac Toe Number\");\n\n System.out.println(\n \"\\n\\t -------------\"\n + \"\\n\\t | T | T | T |\"\n + \"\\n\\t -------------\"\n + \"\\n\\t | N | U | M |\"\n + \"\\n\\t -------------\"\n + \"\\n\\t | B | E | R |\"\n + \"\\n\\t -------------\");\n\n System.out.println(\"Rules: \"\n + \"\\n\" + ++counter + \". Enter an amount of players, 1 or 2.\"\n + \"\\n\" + ++counter + \". If you play with the Computer, enter 1 player, it will always play Odd number.\"\n + \"\\n\" + ++counter + \". The players, Odd and Even, take turn filling a cell with their numbers.\"\n + \"\\n\" + ++counter + \". The ODD number player goes FIRST by selecting a row and a column [1, 2, or 3],\"\n + \"\\n\" + \" then an odd number [1, 3, 5, 7, or 9].\"\n + \"\\n\" + ++counter + \". Follow by the EVEN number player doing the same thing,\"\n + \"\\n\" + \" except the set of even numbers is [2, 4, 6, and 8].\"\n + \"\\n\" + ++counter + \". Who reach the sum of \\\"\" + BINGO + \"\\\" in a row,\"\n + \"\\n\" + \" may be Vertical, Horizontal, or Diagonal, first will be a WINNER!\");\n }", "public void printAllConstraints() {\n\t\tSystem.out.println(\"Printing all constraints\");\n\t\tfor (int row = 0; row < Sudoku.ROWS; row++ ) {\n\t\t\tfor (int col = 0; col < Sudoku.COLUMNS; col++) {\n\t\t\t\tSystem.out.printf(\"Constraints of (%d, %d): {\", row, col);\n\t\t\t\tSudoku.grid[row][col].printVariableConstraints();\n\t\t\t\tSystem.out.print(\"}\\n\");\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public String toString() {\r\n return this.bnfRuleMap.keySet().toString();\r\n }", "String getRules();", "static void printN3(Model m) {\n StmtIterator iter = m.listStatements();\n\n // print out the predicate, subject and object of each statement\n while (iter.hasNext()) {\n Statement stmt = iter.nextStatement(); // get next statement\n Resource subject = stmt.getSubject(); // get the subject\n Property predicate = stmt.getPredicate(); // get the predicate\n RDFNode object = stmt.getObject(); // get the object\n\n System.out.print(subject.toString());\n System.out.print(\" \" + predicate.toString() + \" \");\n if (object instanceof Resource) {\n System.out.print(object.toString());\n } else {\n // object is a literal\n System.out.print(\" \\\"\" + object.toString() + \"\\\"\");\n }\n\n System.out.println(\" .\");\n }\n }", "public static void printIDTable () {\n System.out.println(); \n System.out.println(\"Identifier Cross Reference Table\");\n System.out.println(\"--------------------------------\"); \n for(String key : idCRT.keySet()) {\n // if id string length is > 30,\n // replace excess characters with a '+' character\n if(key.length() > 30) {\n String temp = key.substring(0, 30);\n temp += \"+\";\n System.out.printf(\"%-30s\",temp); \n } else {\n System.out.printf(\"%-30s\",key);\n }\n // prints the line numbers, creating a new line\n // if number of line numbers exceeds 7\n int count = 0;\n for(Integer lno : idCRT.get(key)) {\n if(count == 7) {\n System.out.printf(\"\\n%30s\", \" \");\n count = 0;\n }\n System.out.printf(\"%6d\",lno);\n count++;\n }\n System.out.println();\n }\n }", "public void printConstraint() {\n\t\tSystem.out.println(this.object + \" \" + this.closeObject + \" \" + this.farObject);\r\n\t}", "public void printByResource() {\r\n TUseStatus useStatus;\r\n\t for (int b=0; b < m_current_users_count; b++)\r\n\t for (int a=0; a < m_current_resources_count; a++) {\r\n\t useStatus = m_associations[a][b];\r\n\t if (useStatus!=null) System.out.println(useStatus.toString()); \r\n\t } \r\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.ruleController.toString();\n\t}", "public void displayConflictSet(Vector ruleSet) {\r\n textArea1.appendText(\"\\n\\n\" + \" -- Rules in conflict set:\\n\\n\");\r\n Enumeration enum2 = ruleSet.elements() ;\r\n while(enum2.hasMoreElements()) {\r\n Rule temp = (Rule)enum2.nextElement() ;\r\n textArea1.appendText(temp.name + \"(\" + temp.numAntecedents()+ \"), \" ) ;\r\n }\r\n }", "void dump() {\n\t\tSystem.out.print(\"I am: \" + (territoryID));\n\t\tSystem.out.print(\"\\tNeighbour of:\");\n\n\t}", "void printSpecification(PrintStream ps);", "java.lang.String getRule();", "public void printOWLModel(){\n\t\tmodel.write(System.out, \"RDF/XML\");\t\t\n\t}", "public String toString(){\r\n\t\treturn \"This email passes \"+rulesPassed+\" rules\";\r\n\t}", "@Override\r\n\tpublic void rule1() {\n\t\tSystem.out.println(\"인터페이스 ISports1메소드 --> rule()\");\r\n\t}", "void printSubgraphs() {\n StringBuilder sb = new StringBuilder();\n for(int sgKey: listOfSolutions.keySet()) {\n HashMap<Integer, Long> soln = listOfSolutions.get(sgKey);\n // inside a soln\n //sb.append(\"S:8:\");\n for(int key: soln.keySet()) {\n sb.append(key + \",\" + soln.get(key) + \";\");\n\n }\n sb.setLength(sb.length() - 1);\n sb.append(\"\\n\");\n }\n System.out.println(\"\\n\" + sb.toString());\n }", "public synchronized void outputRule() throws IOException\n{\n File f1 = for_program.getUniverse().getBaseDirectory();\n File f2 = new File(f1,RULE_FILE);\n FileWriter fw = new FileWriter(f2,true);\n IvyXmlWriter xw = new IvyXmlWriter(fw);\n\n xw.begin(\"RULE\");\n xw.field(\"WHEN\",at_time);\n xw.field(\"WHENS\",new Date(at_time).toString());\n\n xw.begin(\"WORLD\");\n for (Map.Entry<UpodParameter,Object> ent : from_world.getParameters().entrySet()) {\n UpodParameter pnm = ent.getKey();\n Object pvl = ent.getValue();\n if (pvl == null) continue;\n xw.begin(\"PARAM\");\n xw.field(\"NAME\",pnm.getName());\n xw.field(\"TYPE\",pvl.getClass().toString());\n xw.cdata(pvl.toString());\n xw.end(\"PARAM\");\n }\n xw.end(\"WORLD\");\n\n for (Map.Entry<UpodDevice,Map<UpodParameter,Object>> ent : sensor_values.entrySet()) {\n UpodDevice us = ent.getKey();\n xw.begin(\"SENSOR\");\n xw.field(\"NAME\",us.getName());\n xw.field(\"ID\",us.getUID());\n for (Map.Entry<UpodParameter,Object> pent : ent.getValue().entrySet()) {\n\t xw.begin(\"PARAM\");\n\t xw.field(\"NAME\",pent.getKey().getName());\n\t xw.cdata(pent.getValue().toString());\n\t xw.end(\"PARAM\");\n }\n xw.end(\"SENSOR\");\n }\n for (Map.Entry<UpodDevice,Map<UpodParameter,Object>> ent : entity_values.entrySet()) {\n UpodDevice ue = ent.getKey();\n xw.begin(\"ENTITY\");\n xw.field(\"NAME\",ue.getName());\n xw.field(\"ID\",ue.getUID());\n for (Map.Entry<UpodParameter,Object> pent : ent.getValue().entrySet()) {\n\t xw.begin(\"PARAM\");\n\t xw.field(\"NAME\",pent.getKey().getName());\n\t xw.cdata(pent.getValue().toString());\n\t xw.end(\"PARAM\");\n }\n xw.end(\"ENTITY\");\n }\n\n for (CalendarEvent ce : calendar_events) {\n if (ce.getStartTime() > at_time + 5*T_MINUTE) continue;\n if (ce.getEndTime() < at_time - 5*T_MINUTE) continue;\n xw.begin(\"CALENDAR\");\n xw.field(\"START\",ce.getStartTime());\n xw.field(\"STARTS\",new Date(ce.getStartTime()).toString());\n xw.field(\"END\",ce.getEndTime());\n xw.field(\"ENDS\",new Date(ce.getEndTime()).toString());\n for (Map.Entry<String,String> ent : ce.getProperties().entrySet()) {\n\t xw.begin(\"FIELD\");\n\t xw.field(\"NAME\",ent.getKey());\n\t xw.field(\"VALUE\",ent.getValue());\n\t xw.end(\"FIELD\");\n }\n xw.end(\"CALENDAR\");\n }\n xw.end(\"RULE\");\n xw.close();\n}", "public String[] getRuleSetDisplayNames()\n/* */ {\n/* 1015 */ return getRuleSetDisplayNames(ULocale.getDefault(ULocale.Category.DISPLAY));\n/* */ }", "public abstract List<NARule> getRules(Context context);", "public String printFormat(){\n return \"The workout: \" + getName() + \" should be done for \" + getSets() + \" sets and in each set should be \"\n + getReps() + \" reps.\";\n }", "public String print()\n\t{\n\t\tString s = \"\";\n\t\t\n\t\ts = \"<explanation text=\\\"\" + text + \"\\\">\";\n\t\ts = s + commentContainer.printComments();\n\t\tif (expression != null)\n\t\t{\n\t\t\ts = s + expression.print(); \n\t\t}\n\t\ts = s + \"</explanation>\";\n\t\t\n\t\treturn s;\n\t}", "public String getRulesRep(){\r\n return RulesRep;\r\n }", "private static void exportRules(GraknClient.Session session, Path schemaRoot) throws IOException {\n File outputFile = schemaRoot.resolve(\"rule\").toFile();\n Writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outputFile), StandardCharsets.UTF_8));\n GraknClient.Transaction tx = session.transaction().write();\n\n tx.getRule(\"rule\").subs()\n .filter(rule -> !rule.label().toString().equals(\"rule\"))\n .forEach(rule -> {\n String when = rule.when().toString();\n String then = rule.then().toString();\n String label = rule.label().toString();\n try {\n writer.write(label);\n writer.write(\"\\n\");\n writer.write(when);\n writer.write(\"\\n\");\n writer.write(then);\n writer.write(\"\\n\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n\n writer.flush();\n writer.close();\n tx.close();\n }", "public void printResults() {\r\n\t\tif (net.isFlow()) {\r\n\t\t\tSystem.out.println(\"The assignment is a valid flow\");\r\n\t\t\tSystem.out.println(\"A maximum flow has value: \"+net.getValue());\r\n\t\t\tSystem.out.println(\"The flows along the edges are as follows:\");\r\n\t\t\tnet.printFlow();\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"The assignment is not a valid flow\");\r\n\t}", "public void print() {\n\t\tfor(String subj : subjects) {\n\t\t\tSystem.out.println(subj);\n\t\t}\n\t\tSystem.out.println(\"==========\");\n\t\t\n\t\tfor(StudentMarks ssm : studMarks) {\n\t\t\tSystem.out.println(ssm.student);\n\t\t\tfor(Byte m : ssm.marks) {\n\t\t\t\tSystem.out.print(m + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void print() {\n\t\tint l = 0;\n\t\tSystem.out.println();\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tSystem.out.print(vertexList[v].id);\n\t\t\tfor (Neighbor nbr = vertexList[v].adjList; nbr != null; nbr = nbr.next) {\n\t\t\t\tSystem.out.print(\" -> \" + vertexList[nbr.vertexNumber].id + \"(\"\n\t\t\t\t\t\t+ nbr.weight + \")\");\n\t\t\t\tl++;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n\t\tSystem.out.println(\"Number of edges = \" + l / 2);\n\t}", "private String toRules(){\n\n if (numInstances() == 0)\n\treturn \"No Rules (Empty Exemplar)\";\n\n String s = \"\", sep = \"\";\n\t\n for(int i = 0; i < numAttributes(); i++){\n\t \n\tif(i == classIndex())\n\t continue;\n\t \n\tif(attribute(i).isNumeric()){\n\t if(m_MaxBorder[i] != m_MinBorder[i]){\n\t s += sep + m_MinBorder[i] + \"<=\" + attribute(i).name() + \"<=\" + m_MaxBorder[i];\n\t } else {\n\t s += sep + attribute(i).name() + \"=\" + m_MaxBorder[i];\n\t }\n\t sep = \" ^ \";\n\t \n\t} else {\n\t s += sep + attribute(i).name() + \" in {\";\n\t String virg = \"\";\n\t for(int j = 0; j < attribute(i).numValues() + 1; j++){\n\t if(m_Range[i][j]){\n\t s+= virg;\n\t if(j == attribute(i).numValues())\n\t\ts += \"?\";\n\t else\n\t\ts += attribute(i).value(j);\n\t virg = \",\";\n\t }\n\t }\n\t s+=\"}\";\n\t sep = \" ^ \";\n\t}\t \n }\n s += \" (\"+numInstances() +\")\";\n return s;\n }", "public void dump() {\n\t\tfor(Symbol s: assignments.keySet()) {\n\t\t\tSystem.out.println(s.toString() + \" = \" + assignments.get(s));\n\t\t}\t\n\t}", "public void printAst(){\n explore(ctx);\n }", "public void printOut() {\n System.out.println(\"\\t\" + result + \" = icmp \" + cond.toLowerCase() + \" \" + type + \" \" + op1 + \", \" + op2 );\n\n // System.out.println(\"\\t\" + result + \" = bitcast i1 \" + temp + \" to i32\");\n }", "public void print() {\n print$$dsl$guidsl$guigs();\n System.out.print( \" eqn =\" + eqn );\n }", "public String toString(){\n\t\tStringBuffer buffer = new StringBuffer();\n\t\t\n\t\tbuffer.append(lhs);\n\t\tbuffer.append(\" -> \");\n\t\t\n\t\t// if this is a lexical rule, prefix it with the lexical symbol\n\t\tif( lexical ){\n\t\t\tbuffer.append(LEXICAL_PREFIX);\n\t\t}\n\t\t\n\t\tfor( String s: rhs ){\n\t\t\tbuffer.append(s + \" \");\n\t\t}\n\t\t\n\t\t// delete the trailing whitespace\n\t\tbuffer.deleteCharAt(buffer.length()-1);\n\t\t\n\t\tbuffer.append(\"\\t\\t\" + weight);\n\t\t\n\t\treturn buffer.toString();\n\t}", "private void printModel(Model model) {\n\t\tIterator<Statement> statements = model.listStatements();\n\t\twhile(statements.hasNext()) {\n\t\t\tSystem.out.println(statements.next().toString());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"------\");\n\t}", "public void printPatch() {\r\n\t\t\tfor(int i =0; i <numOfPathes; i++)\r\n\t\t\t{\r\n\t\t\t\tfor(int j =0; j <numOfPathes; j++)\r\n\t\t\t\t{\t\t\t\t\r\n\t\t\t\t\tif (patches[i][j].getPerson().size() > 0) {\r\n\t\t\t\t\t\tif (patches[i][j].isCop()) {\r\n\t\t\t\t\t\t\tSystem.out.print(\"\\t*\");\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t} else if (patches[i][j].isActiveAgent()) {\r\n\t\t\t\t\t\t\tSystem.out.print(\"\\tA\");\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tint jail = ((Agent)patches[i][j].getPerson().get(0))\r\n\t\t\t\t\t\t\t\t\t.returnJailTerm();\r\n\t\t\t\t\t\tSystem.out.print(\"\\t\" + jail);\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.print(\"\\t \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"------------------------------------\");\r\n\t\t}", "public void print() {\n if (this.tuples == null || this.tuples.isEmpty()) return; \n\n // Initialize number of attributes.\n int attributesNumber = attributes.size();\n\n // An array storing the max length of Strings per column.\n // The Strings per column are tuple Values and attributes.\n int[] maxColumnLengthOfStrings = new int[attributesNumber];\n\n // Loop all the attributes and fill the max length array\n for (int index = 0; index < attributesNumber; index++) {\n\n // Initialize the array with the attributes name length.\n maxColumnLengthOfStrings[index] = attributes.get(index).getName().length();\n\n // Loop the values and find the longest value toString().\n for (int rowIndex = 0; rowIndex < this.tuples.size(); rowIndex++) { // Loop the rows\n String value = this.tuples.get(rowIndex).getValues().get(index).toString();\n if (value.length() > maxColumnLengthOfStrings[index]){\n maxColumnLengthOfStrings[index] = value.length();\n }\n }\n }\n\n // A set of tables whose columns are in the attributes list.\n Set<SQLTable> tablesSet = new HashSet<>();\n // The list of attributes to String format.\n String attributesList = new String();\n // A line used to separate the attributes from the data.\n String separationLine = new String();\n // Create the separation line and the attributes line.\n for (int index = 0; index < attributesNumber; index++) {\n\n // The score column has a null table. Dont search it.\n if (!this.attributes.get(index).getName().equals(\"score\"))\n tablesSet.add((this.attributes.get(index).getTable()) );\n\n\n attributesList += \"|\" + PrintingUtils.addStringWithLeadingChars(maxColumnLengthOfStrings[index],\n this.attributes.get(index).getName(), \" \");\n separationLine += \"+\" + PrintingUtils.addStringWithLeadingChars(maxColumnLengthOfStrings[index], \"\", \"-\");\n }\n attributesList += \"|\"; // Add the last \"|\".\n separationLine += \"+\"; // Add the last \"+\".\n\n // Print the tables which contain this tuples (HACK WAY). \n String tablesInString = new String (\"Tables joined : \");\n for (SQLTable table: tablesSet) {\n tablesInString += table.toAbbreviation() + \" |><| \";\n }\n System.out.println(tablesInString.substring(0, tablesInString.length()-5));\n\n // Print the attributes between separation lines.\n System.out.println(separationLine);\n System.out.println(attributesList);\n System.out.println(separationLine);\n\n // Print all the rows of Tuple Values.\n for (OverloadedTuple tuple: this.tuples) {\n String rowOfValues = new String();\n for (int index = 0; index < attributesNumber; index++) {\n rowOfValues += \"|\" + PrintingUtils.addStringWithLeadingChars( maxColumnLengthOfStrings[index],\n tuple.getValues().get(index).toString(), \" \");\n }\n rowOfValues += \"|\";\n System.out.println(rowOfValues);\n }\n\n // Print a separation line.\n System.out.println(separationLine);\n }", "List<RuleInfo> listRulesInfo() throws IOException;", "void print() {\r\n\t\tOperations.print(lexemes, tokens);\r\n\t}", "public void deduceRules()\n{\n List<RuleInstance> allrules = loadRules();\n\n List<UpodRule> rules = new ArrayList<UpodRule>();\n for (UpodRule ur : for_program.getRules()) {\n if (ur.isExplicit()) {\n\t rules.add(ur);\n\t RuleInstance ri = new RuleInstance(ur,from_world.getUniverse());\n\t allrules.add(ri);\n }\n }\n\n Set<Condition> allconds = getConditions(allrules);\n\n tree_root = new TreeNode(allrules,null);\n\n expandTree(tree_root,allconds);\n\n generateRules(tree_root);\n}", "public void print() {\n\t// Skriv ut en grafisk representation av kösituationen\n\t// med hjälp av klassernas toString-metoder\n System.out.println(\"A -> B\");\n System.out.println(r0);\n System.out.println(\"B -> C\");\n System.out.println(r1);\n System.out.println(\"turn\");\n System.out.println(r2);\n //System.out.println(\"light 1\");\n System.out.println(s1);\n //System.out.println(\"light 2\");\n System.out.println(s2);\n }", "protected List<DumpRule> ruleList(){\n\t\tList<DumpRule> drList = new ArrayList<DumpRule>();\n\t\tString lineStrs = ruleText.getText();\n\t\ttry{\n\t\t\tString[] lines = lineStrs.split(\"\\n\");\n\t\t\tDumpRule currentDr = null;\n\t\t\tfor(int index=0,size=lines.length; index<size; index++){\n\t\t\t\tString line=lines[index];\n\t\t\t\tif(line.indexOf(TB_COL_SPlit)!=-1){\n\t\t\t\t\tcurrentDr = addTbColRule(line);\n\t\t\t\t\tdrList.add(currentDr);\n\t\t\t\t}else if(line.indexOf(RULE_COL_SPlit)!=-1){\n\t\t\t\t\tString[] kvs = line.split(RULE_COL_SPlit);\n\t\t\t\t\tif(kvs!=null && kvs.length==2){\n\t\t\t\t\t\tcurrentDr.addRule(kvs[0].trim(), kvs[1].trim());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tapp.log(\"规则输入错误..\");\n\t\t}\n\t\treturn drList;\n\t}", "public String printRoute()\r\n {\r\n String res = this.getRoute().stream()\r\n .map(entry -> entry.getKey().getId()\r\n + \":\"\r\n + entry.getValue()\r\n + \";\")\r\n .collect(Collectors.joining());\r\n System.out.println(res);\r\n return res;\r\n }", "private void printProofAssert(String decl, Proofs lv) {\n\t\tif (lv == null)\n\t\t\treturn;\n\t\tfor (int i = lv.nbLemmas() - 1; i >= 0; i--) {\n\t\t\tTheorem t = lv.getTheorem(i);\n\t\t\tSimpleLemma l = lv.getLemma(i);\n\t\t\tprintProofAssert(decl, t, l);\n\t\t}\n\t}", "public String toString() {\r\n\t\tStringBuilder s = new StringBuilder(\"\");\r\n\t\tif (objective != null) {\r\n\t\t\ts.append(\"Objective: \").append(objective.getName())\r\n\t\t\t .append('=').append(objective.getDomain())\r\n\t\t\t .append('\\n');\r\n\t\t}\r\n\t\tfor (Variable v : variables) {\r\n\t\t\ts.append(v.getName()).append('=').append(v.getDomain())\r\n\t\t\t .append('\\n');\r\n\t\t}\r\n\t\tfor (Constraint c : constraints) {\r\n\t\t\ts.append(c.toString()).append('\\n');\r\n\t\t}\r\n\t\treturn s.toString();\r\n\t}", "private static void writeFinalRuleBase (boolean printStdOut) throws IllegalArgumentException, IOException{\n \t\n \tFileSystem fs = FileSystem.get(Mediator.getConfiguration());\n \tPath textPath = new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_text.txt\");\n BufferedWriter bwText = new BufferedWriter(new OutputStreamWriter(fs.create(textPath,true)));\n FileStatus[] status = fs.listStatus(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_TMP\"));\n \tWriter writer = SequenceFile.createWriter(Mediator.getConfiguration(), \n \t\t\tWriter.file(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath())), \n \t\t\tWriter.keyClass(ByteArrayWritable.class), Writer.valueClass(FloatWritable.class));\n Reader reader;\n\t\tByteArrayWritable rule = new ByteArrayWritable();\n\t\tFloatWritable ruleWeight = new FloatWritable();\n\t\tint id = 0;\n \n bwText.write(\"\\nRULE BASE:\\n\\n\");\n if (printStdOut)\n \tSystem.out.println(\"\\nRULE BASE:\\n\");\n \t\n \t// Read all sequence files from stage 2\n \tfor (FileStatus fileStatus:status){\n \t\t\n \t\tif (!fileStatus.getPath().getName().contains(\"_SUCCESS\")){\n \t\t\n\t \t\t// Open sequence file\n\t \t\treader = new Reader(Mediator.getConfiguration(), Reader.file(fileStatus.getPath()));\n\t \n\t // Read all rules\n\t while (reader.next(rule, ruleWeight)) {\n\t \t\n\t \t// Write rule in the output sequence file\n\t \twriter.append(rule, ruleWeight);\n\t \t\n\t \tbwText.write(\"Rule (\"+id+\"): IF \");\n\t \tif (printStdOut)\n\t \t\tSystem.out.print(\"Rule (\"+id+\"): IF \");\n\t \t\n\t \t// Write antecedents\n\t \tfor (int i = 0; i < rule.getBytes().length - 2; i++){\n\t \t\t\n\t \t\tbwText.write(Mediator.getVariables()[i].getName()+\" IS \");\n\t \t\tif (printStdOut)\n\t \t\tSystem.out.print(Mediator.getVariables()[i].getName()+\" IS \");\n\t \t\tif (Mediator.getVariables()[i] instanceof NominalVariable){\n\t \t\t\tbwText.write(((NominalVariable)Mediator.getVariables()[i]).getNominalValue(rule.getBytes()[i])+\" AND \");\n\t \t\t\tif (printStdOut)\n\t \t\tSystem.out.print(((NominalVariable)Mediator.getVariables()[i]).getNominalValue(rule.getBytes()[i])+\" AND \");\n\t \t\t}\n\t \t\t\telse {\n\t \t\t\t\tbwText.write(\"L_\"+rule.getBytes()[i]+\" AND \");\n\t \t\t\t\tif (printStdOut)\n\t \t\tSystem.out.print(\"L_\"+rule.getBytes()[i]+\" AND \");\n\t \t\t\t}\n\t \t\t\n\t \t}\n\t \t\n\t \t// Write the last antecedent\n\t \tbwText.write(Mediator.getVariables()[rule.getBytes().length-2].getName()+\" IS \");\n\t \tif (printStdOut)\n\t \t\tSystem.out.print(Mediator.getVariables()[rule.getBytes().length-2].getName()+\" IS \");\n\t \tif (Mediator.getVariables()[rule.getBytes().length-2] instanceof NominalVariable){\n\t \t\tbwText.write(((NominalVariable)Mediator.getVariables()[rule.getBytes().length-2]).getNominalValue(rule.getBytes()[rule.getBytes().length-2]));\n\t \t\tif (printStdOut)\n\t \t\tSystem.out.print(((NominalVariable)Mediator.getVariables()[rule.getBytes().length-2]).getNominalValue(rule.getBytes()[rule.getBytes().length-2]));\n\t \t}\n\t \t\telse {\n\t \t\t\tbwText.write(\"L_\"+rule.getBytes()[rule.getBytes().length-2]);\n\t \t\t\tif (printStdOut)\n\t \t\tSystem.out.print(\"L_\"+rule.getBytes()[rule.getBytes().length-2]);\n\t \t\t}\n\t \t\n\t \t// Write the class and rule weight\n\t \tbwText.write(\" THEN CLASS = \"+Mediator.getClassLabel(rule.getBytes()[rule.getBytes().length-1]));\n\t \tbwText.write(\" WITH RW = \"+ruleWeight.get()+\"\\n\\n\");\n\t \tif (printStdOut){\n\t \t\tSystem.out.print(\" THEN CLASS = \"+Mediator.getClassLabel(rule.getBytes()[rule.getBytes().length-1]));\n\t \t\tSystem.out.print(\" WITH RW = \"+ruleWeight.get()+\"\\n\\n\");\n\t \t}\n\t\n\t \tid++;\n\t \t\n\t }\n\t \n\t reader.close();\n \n \t\t}\n \t\t\n \t}\n \t\n \tbwText.close();\n writer.close();\n \t\n \t// Remove temporary rule base\n \tfs.delete(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_TMP\"),true);\n \t\n }", "public void cleanPrintSetOutWithDontCares(int formula){\n\t\t\n\t\t\n\t\tif(formula ==1){\n\t\t\tSystem.out.println(\"TRUE\");\n\t\t\treturn;\n\t\t}\n\t\t\n\n\t\tArrayList<String> minterms = BDDWrapper.mintermsWithDontCares(bdd, formula, variables);\n\t\tif(minterms == null){\n\t\t\tSystem.out.println(\"FALSE\");\n\t\t\treturn;\n\t\t}\n\t\tfor(String minterm : minterms ){\n//\t\t\tSystem.out.println(\"mintrem is \"+minterm);\n\t\t\tint index = 0;\n\t\t\t//print density vars\n\t\t\tSystem.out.print(\"densityVars: \");\n\t\t\tfor(int i=0; i<coordinationGameStructure.densityVars.size(); i++){\n\t\t\t\tString value = minterm.substring(index, index+coordinationGameStructure.densityVars.get(i).length);\n\t\t\t\tindex+=coordinationGameStructure.densityVars.get(i).length;\n\t\t\t\tSystem.out.print(value+\" \");\n\t\t\t}\n\t\t\t//tasks\n\t\t\tSystem.out.print(\"Tasks: \");\n\t\t\tString value = minterm.substring(index, index+coordinationGameStructure.taskVars.length);\n\t\t\tindex+= coordinationGameStructure.taskVars.length;\n\t\t\tSystem.out.print(value);\n\t\t\tSystem.out.print(\" Signals: \");\n\t\t\tString successSignalsValues = minterm.substring(index, index+coordinationGameStructure.successSignals.length);\n\t\t\tindex+=coordinationGameStructure.successSignals.length;\n\t\t\tSystem.out.print(successSignalsValues);\n\t\t\tSystem.out.print(\" Counter: \");\n\t\t\tString counterValue = minterm.substring(index);\n\t\t\tSystem.out.print(counterValue);\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void print() {\n\t\t\n\t\tfor(Solution sol : population) {\n\t\t\tSystem.out.println(sol.getPossibleSolution() + \" \" + sol.getPath());\n\t\t}\n\t}", "public String toString() {\r\n\t\tString schemeTable=new String();\r\n\t\tint i;\r\n\t\tfor(i=0;i<explanatorySet.size();i++)\r\n\t\t\t schemeTable=schemeTable+((Attribute) explanatorySet.get(i)).getName()+\",\";\r\n\t\tfor(i=0;i<data.size();i++) {\r\n\t\t\tschemeTable=schemeTable+\"\\n\"+(i+1)+\":\";\r\n\t\t\tfor(int j=0;j<explanatorySet.size();j++) {\r\n\t\t\t\tschemeTable=schemeTable+getValue(i,j)+\",\";\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn schemeTable;\r\n\t}", "public void printStats() {\n\t\tSystem.out.println(\"============= RULEGROWTH - STATS ========\");\n\t\tSystem.out.println(\"Sequential rules count: \" + ruleCount);\n\t\tSystem.out.println(\"Total time: \" + (timeEnd - timeStart) + \" ms\");\n\t\tSystem.out.println(\"Max memory: \" + MemoryLogger.getInstance().getMaxMemory());\n\t\tSystem.out.println(\"==========================================\");\n\t}", "private void printContrib() {\n \t\tSystem.out.println(\"-- Current Contributions --\");\n \t\tfor (int y = 0; y < contrib.length; y++) {\n \t\t\tfor (int x = 0; x < contrib[y].length; x++) {\n \t\t\t\tString s = contrib[y][x] == null ? \"-\" : (\"\" + contrib[y][x].current);\n \t\t\t\twhile (s.length() < 4)\n \t\t\t\t\ts = \" \" + s;\n \t\t\t\tSystem.out.print(s);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tSystem.out.println();\n \t\tSystem.out.println(\"-- Target Contributions --\");\n \t\tfor (int y = 0; y < contrib.length; y++) {\n \t\t\tfor (int x = 0; x < contrib[y].length; x++) {\n \t\t\t\tString s = contrib[y][x] == null ? \"-\" : (\"\" + contrib[y][x].target);\n \t\t\t\twhile (s.length() < 4)\n \t\t\t\t\ts = \" \" + s;\n \t\t\t\tSystem.out.print(s);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t}", "public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}", "public String toString() \n {\n String outString = \"\\nCourse Id: \" + courseId;\n outString += \"\\nClass Name: \" + className;\n outString += \"\\nAssignments: \\n\";\n for (Assignment assignment : assignments) \n {\n outString += assignment.toString();\n }\n return outString;\n }", "public void printTable() {\n\t\tString s = String.format(\"Routing table (%.3f)\\n\"\n\t\t\t\t+ \"%10s %10s %8s %5s %10s \\t path\\n\", now, \"prefix\", \n\t\t\t\t\"timestamp\", \"cost\",\"link\", \"VLD/INVLD\");\n\t\tfor (Route rte : rteTbl) {\n\t\t\ts += String.format(\"%10s %10.3f %8.3f\",\n\t\t\t\t\trte.pfx.toString(), rte.timestamp, rte.cost);\n\n\t\t\ts += String.format(\" %5d\", rte.outLink);\n\n\t\t\tif (rte.valid == true)\n\t\t\t\ts+= String.format(\" %10s\", \"valid\");\n\t\t\telse\n\t\t\t\ts+= String.format(\" %10s \\t\", \"invalid\");\n\n\t\t\tfor (int r :rte.path)\n\t\t\t\ts += String.format (\" %s\",Util.ip2string(r));\n\n\t\t\tif (lnkVec.get(rte.outLink).helloState == 0)\n\t\t\t\ts += String.format(\"\\t ** disabled link\");\n\t\t\ts += \"\\n\";\n\t\t}\n\t\tSystem.out.println(s);\n\t}", "private List<String> print() throws EQException\n\t{\n\t\t// Retrieve the layout\n\t\tLayout layout = screenSetPrint.getLayout();\n\n\t\t// Setup the array list\n\t\tlines.clear();\n\n\t\t// LINE 1: function title\n\t\tif (printHeader)\n\t\t{\n\t\t\tprinterFormatter.printFieldTitle(screenSetPrint.getLayout().rtvLabel(fhd.getEquationUser()));\n\t\t\taddLine();\n\t\t\taddLine();\n\t\t}\n\n\t\t// LINE 2: before and after image column header\n\t\tif (functionDataBef != null)\n\t\t{\n\t\t\tprinterFormatter.printColumnHeader(true, true);\n\t\t}\n\t\telse if (functionDataBef == null && beforeImage)\n\t\t{\n\t\t\tprinterFormatter.printColumnHeader(false, true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprinterFormatter.printColumnHeader(true, false);\n\t\t}\n\t\taddLine();\n\n\t\t// LINE 3 and onwards\n\n\t\t// get all the output fieldSets\n\t\tList<InputFieldSet> fieldSets = screenSetPrint.getFunction().getInputFieldSets();\n\t\tfor (int i = 0; i < fieldSets.size(); i++)\n\t\t{\n\t\t\t// Retrieve the field set\n\t\t\tInputFieldSet fieldSet = fieldSets.get(i);\n\n\t\t\t// Print the record name\n\t\t\tif (printHeader)\n\t\t\t{\n\t\t\t\taddLine();\n\t\t\t\tprinterFormatter.printRecordName(fieldSet.getId(), fieldSet.rtvLabel(fhd.getEquationUser()));\n\t\t\t\taddLine();\n\t\t\t}\n\n\t\t\t// Retrieve the layout for this screen set\n\t\t\tDisplayAttributesSet displayAttributeSet = layout.getDisplayAttributesSet(fieldSet.getId());\n\t\t\tprint(fieldSet, displayAttributeSet, displayAttributeSet.getDisplayItems());\n\t\t}\n\n\t\treturn (getLines());\n\t}", "public void print(){\n String res = \"\" + this.number;\n for(Edge edge: edges){\n res += \" \" + edge.toString() + \" \";\n }\n System.out.println(res.trim());\n }", "public void flush() {\n\t\t\n\t\tif (Verbose.DEFAULT.equals(VERBOSE_LEVEL)) {\n\t\t\treturn;\t//no output\n\t\t}\n\t\t\n\t\t/* Verbose.VERBOSE | Verbose.ALL */\n\t\t\t\t\n\t\t/* Each constructor/ method to be crashed = non-private, non-abstract */\n\t\tStringBuffer sb = new StringBuffer(\"*** Methods and constructors under testclasses:\");\n\t\tfor (ClassUnderTest cPlan: plans.values()) {\n\t\t\tsb.append(LS+LS+cPlan.getWrappedClass().getCanonicalName()); //qualified class name\n\t\t\t\n\t\t\tfor (PlanSpaceNode pNode: cPlan.getChildren()) {\n\t\t\t\tFunctionNode fNode = (FunctionNode) pNode;\n\t\t\t\tsb.append(LS+\"\\t\"+fNode.toString());\t//method or constructor under testclasses\n\t\t\t}\t\t\t\t\n \t}\n \t\t\n\t\t\n\t /*\n\t * 2. Each value and public, non-abstract constructing function \n\t * of each needed instance and all of their children.\n\t */\n sb.append(LS+LS+LS+\"*** Rules to create needed values:\");\n\t\tsb.append(flushRules(true));\t\t\n\t\t\n \tif (Verbose.ALL.equals(VERBOSE_LEVEL)) {\n sb.append(LS+LS+LS+\"*** Rules that were not needed:\");\n \t\tsb.append(flushRules(false));\n \t}\n\n sb.append(LS+LS);\n System.out.println(sb);\n\t}", "public void printRoute() {\n\t\tString route = new String(\"[ROUTE INFO] - Cost: \");\n\t\tif(cost == 0) {\n\t\t\troute += \" Not Yet Calculated, \";\n\t\t}\n\t\telse {\n\t\t\troute += (\"\" + this.cost + \", \");\n\t\t}\n\t\troute += (\"Route Length: \" + solutionLength + \", Route: \");\n\t\troute += \"(\" + solutionRepresentation.get(0).getX() + \",\" + solutionRepresentation.get(0).getY() + \")\";\n\t\tfor(int i = 1; i < solutionLength; i++) {\n\t\t\troute+= \" -> (\" + solutionRepresentation.get(i).getX() + \",\" + solutionRepresentation.get(i).getY() + \")\";\n\t\t}\n\t\tSystem.out.println(route);\n\t}", "public void showRules() {\r\n data.rulesFlag = true;\r\n setChanged();\r\n notifyObservers(data);\r\n data.rulesFlag = false;\r\n }", "public static void printGraph(Model aGraph) {\r\n\t\tStmtIterator triples;\t\t\t\t\t//To loop through the triples\r\n\t\tStatement triple;\t\t\t\t\t\t//One of the triples\r\n\r\n\t\ttriples = aGraph.listStatements();\r\n\t\twhile (triples.hasNext()) {\r\n\t\t\ttriple = triples.next();\r\n//\t\t\tSystem.out.print(\"\\t\");\r\n\t\t\tprintTriple(triple);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public void printAll() {\n\t\tfor(int i = 0; i<r.length; i++)\n\t\t\tprintReg(i);\n\t\tprintReg(\"hi\");\n\t\tprintReg(\"lo\");\n\t\tprintReg(\"pc\");\n\t}", "@Override\n public String toString() {\n if (tree != null) {\n\n String s = tree.render();\n\n s += \"\\n\\nNumber of positive rules: \"\n + getMeasure(\"measureNumPositiveRules\") + \"\\n\";\n s += \"Number of conditions in positive rules: \"\n + getMeasure(\"measureNumConditionsInPositiveRules\") + \"\\n\";\n\n return s;\n } else {\n return \"No model built yet!\";\n }\n }", "@Override\n\tpublic List<DisplayCriterion> displayDoc(List<Paragraph> ps) {\n\t\tList<DisplayCriterion> displaycriteria = new ArrayList<DisplayCriterion>();\n\t\tint i = 1;\n\t\tfor (Paragraph p : ps) {\n\t\t\tboolean ehrstatus = false;\n\t\t\tDisplayCriterion d = new DisplayCriterion();\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (Sentence s : p.getSents()) {\n\t\t\t\tsb.append(s.getDisplay());\n\t\t\t\tfor (Term t : s.getTerms()) {\n\t\t\t\t\tif (Arrays.asList(GlobalSetting.primaryEntities).contains(t.getCategorey())) {\n\t\t\t\t\t\tehrstatus = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\td.setCriterion(sb.toString());\n\t\t\td.setId(i++);\n\t\t\td.setEhrstatus(ehrstatus);\n\t\t\tdisplaycriteria.add(d);\n\t\t}\n\t\treturn displaycriteria;\n\t}", "public void print() {\r\n System.out.print(\"[id: <\" + this.id + \"> \");\r\n if (this.dimension > 0) {\r\n System.out.print(this.data[0]);\r\n }\r\n for (int i = 1; i < this.dimension * 2; i++) {\r\n System.out.print(\" \" + this.data[i]);\r\n }\r\n System.out.println(\"]\");\r\n }", "public void print() {\r\n for (final Map.Entry<State, StatePolicyProperties> mapping : mStateMap.entrySet()) {\r\n final StatePolicyProperties properties = mapping.getValue();\r\n\r\n // Print the state\r\n mapping.getKey().print();\r\n System.out.println(\" State value = \" + properties.getValue());\r\n\r\n // Print the actions with their probability\r\n for (Map.Entry<Action, Double> actionProbability : properties.getActionProbabilities().entrySet()) {\r\n System.out.println(\" Action probability \" + actionProbability.getKey() + \" = \"\r\n + actionProbability.getValue());\r\n }\r\n // Print the actions with their value\r\n for (Map.Entry<Action, Double> actionValue : properties.getActionValues().entrySet()) {\r\n System.out.println(\" Action value \" + actionValue.getKey() + \" = \" + actionValue.getValue());\r\n }\r\n }\r\n System.out.println();\r\n }", "@Override\n\tpublic void print() {\n\t\tsuper.print();\n\t\tSystem.out.println(subjects);\n\t}", "public String toString() {\n StringBuilder out = new StringBuilder(\"Requirements:\\n\");\n for (Fact fact: requiredFacts) {\n out.append(fact.toString());\n if (requiredFacts.indexOf(fact) < requiredFacts.size() - 1) out.append(reqIsAnd ? \"AND\\n\" : \"OR\\n\");\n }\n return out.toString();\n }", "private void output(FileWriter outputFile, Map<Query, List<Evaluation>> evalData, FactDatabase source, FactDatabase target) {\n\t\tPrintWriter out = new PrintWriter(outputFile, true);\n\t\tif(source != null && target != null){\n\t\t\tfor(Query rule: evalData.keySet()){\n\t\t\t\tfor(Evaluation eval: evalData.get(rule)){\n\t\t\t\t\tout.print(rule.getRuleString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.first);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.second);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.third);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tdetermineSource(eval, source, target);\n\t\t\t\t\tout.print(eval.source.toString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.println(eval.result.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\tfor(Query rule: evalData.keySet()){\n\t\t\t\tfor(Evaluation eval: evalData.get(rule)){\n\t\t\t\t\tout.print(rule.getRuleString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.first);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.second);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.println(eval.fact.third);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tout.close();\n\t}", "public void outputDeclarative ()\n\t{\n\t\toutput (\"\\n> (dm)\\n\");\n\t\tif (model!=null) model.outputDeclarative();\n\t}", "public static void printBreakdown(Schedule s) {\n\t\tString pen = \"\";\n\t\tif (s.getCourseMinPenalty() != 1)\n\t\t\tpen = \" (pen_coursemin = \"+s.getCourseMinPenalty()+\")\";\n\t\tSystem.out.println(\"Cmin = \"+getCourseMinEval(s, 1)+\" * \"\n\t\t\t\t+s.getMinWeight()+\" = \"+getCourseMinEval(s, s.getMinWeight())+pen);\n\t\t\n\t\tpen = \"\";\n\t\tif (s.getLabMinPenalty() != 1)\n\t\t\tpen = \" (pen_labmin = \"+s.getLabMinPenalty()+\")\";\n\t\tSystem.out.println(\"Lmin = \"+getLabMinEval(s, 1)+\" * \"\n\t\t\t\t+s.getMinWeight()+\" = \"+getLabMinEval(s, s.getMinWeight())+pen);\n\t\t\n\t\tSystem.out.println(\"Pref = \"+getPrefEval(s, 1)+\" * \"\n\t\t\t\t+s.getPrefWeight()+\" = \"+getPrefEval(s, s.getPrefWeight()));\n\t\t\n\t\tpen = \"\";\n\t\tif (s.getPairPenalty() != 1)\n\t\t\tpen = \" (pen_notpaired = \"+s.getPairPenalty()+\")\";\n\t\tSystem.out.println(\"Pair = \"+getPairEval(s, 1)+\" * \"\n\t\t\t\t+s.getPairWeight()+\" = \"+getPairEval(s, s.getPairWeight())+pen);\n\t\t\n\t\tpen = \"\";\n\t\tif (s.getSecDiffPenalty() != 1)\n\t\t\tpen = \" (pen_section = \"+s.getSecDiffPenalty()+\")\";\n\t\tSystem.out.println(\"Sect = \"+getSecDiffEval(s, 1)+\" * \"\n\t\t\t\t+s.getSecDiffWeight()+\" = \"+getSecDiffEval(s, s.getSecDiffWeight())+pen);\n\t\t\n\t\tSystem.out.println(\"EVAL = \"+getEval(s));\n\t}", "public void printStatement() {\n\t\t\n\t}", "private void printProofAssert(String decl, Theorem t, SimpleLemma l) {\n\t\tfor (int i = l.nbPo() - 1; i >= 0; i--) {\n\t\t\tNonObviousGoal g = (NonObviousGoal) l.getGoal(i);\n\t\t\tif (printer.firstItem)\n\t\t\t\tprinter.firstItem = false;\n\t\t\telse\n\t\t\t\tstream.println(\";\");\n\t\t\tif (!decl.equals(\"\"))\n\t\t\t\tstream.print(\"!(\" + decl + \").\");\n\t\t\tstream.print(\"(\");\n\t\t\tEnumeration e = t.getHyp().elements();\n\t\t\tboolean first = true;\n\t\t\twhile (e.hasMoreElements()) {\n\t\t\t\tVirtualFormula vf = (VirtualFormula) e.nextElement();\n\t\t\t\tFormula f = vf.getFormula();\n\t\t\t\tif (printer.formulaRank.containsKey(f)) {\n\t\t\t\t\tif (!first)\n\t\t\t\t\t\tstream.print(\" &\");\n\t\t\t\t\telse\n\t\t\t\t\t\tfirst = false;\n\n\t\t\t\t\tstream.print(\" f_\" + printer.formulaRank.get(f).toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!first)\n\t\t\t\tstream.print(\" =>\");\n\t\t\tstream.print(\n\t\t\t\t\"f_\"\n\t\t\t\t\t+ printer.formulaRank.get(g.getFormula()).toString()\n\t\t\t\t\t+ \")\");\n\t\t}\n\t}", "private void outputGrammarRuleClass(PrintWriter out) {\n\t\t\n\t\tout.println(\" private class GrammarRule {\");\n\t\tout.println(\" String name;\");\n\t\tout.println(\" boolean multi_child, subrule;\");\n\t\tout.println(\" GrammarState[] graph;\");\n\t\tout.println();\n\t\tout.println(\" public GrammarRule(String n, boolean m, boolean s, GrammarState[] g) {\");\n\t\tout.println(\" name = n; multi_child = m; subrule = s; graph = g;\");\n\t\tout.println(\" }\");\n\t\tout.println(\" } // end GrammarRule\");\n\t\t\n\t}", "public void displaySchema() {\n for (String s : attributes)\n System.out.print(s + \"\");\n }", "public String printList() {\n\n\t\treturn plan.toString();\n\t}", "public void explain(PhysicalPlan pp, PigContext pc, PrintStream ps, String format)\n throws PlanException, VisitorException, IOException {\n if (\"xml\".equals(format)) {\n ps.println(\"<mapReducePlan>No MR jobs. Fetch only</mapReducePlan>\");\n }\n else {\n ps.println(\"#--------------------------------------------------\");\n ps.println(\"# Map Reduce Plan \");\n ps.println(\"#--------------------------------------------------\");\n ps.println(\"No MR jobs. Fetch only.\");\n }\n return;\n }", "public String toString(){\n\t\tStringBuffer r = new StringBuffer();\n\t\tr.append(\"{\");\n\t\tr.append(indexPatternSet+\"(\"+indexPattern+\")\"+type);\n\t\tr.append(\"}\");\n\t\treturn r.toString();\n\t}", "public void print() {\n\t\tfor (int count = 0; count < adjacencyList.length; count++) {\n\t\t\tLinkedList<Integer> edges = adjacencyList[count];\n\t\t\tSystem.out.println(\"Adjacency list for \" + count);\n\n\t\t\tSystem.out.print(\"head\");\n\t\t\tfor (Integer edge : edges) {\n\t\t\t\tSystem.out.print(\" -> \" + edge);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public String toString()\n\t\t{\n\t\t\tsynchronized(ExecutionPolicy.class)\n\t\t\t{\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\ttoStringIndent++;\n\t\t\t\tif (rules == null) sb.append(indent()).append(\"null\\n\");\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfor (ExecutionPolicy ep: rules) sb.append(ep.toString());\n\t\t\t\t}\n\t\t\t\ttoStringIndent--;\n\t\t\t\treturn sb.toString();\n\t\t\t}\n\t\t}", "private String getRulesOfBestSolutionAsHumanReadableString() {\n\t\t// TODO change this to actually save the text in a file, and maybe in a cleaner format...\n\t\tIndividual bestSolution = this.controller.getBestSolution();\n\t\t\n\t\tVector<Rule> bestSolutionRules = bestSolution.getRules();\n\n\t\tString humanReadableRulesOfBestSolution = \"Add element to summary if (\";\n\t\tfor (int i = 0; i < bestSolutionRules.size(); i++) {\n\t\t\thumanReadableRulesOfBestSolution += \" ( \"; \n\t\t\tint j = 0;\n\t\t\tfor (Entry<String, Integer> entry : bestSolutionRules.get(i).getThresholds().entrySet()) {\n\t\t\t\t\n\t\t\t\thumanReadableRulesOfBestSolution += entry.getKey() + \" > \" + entry.getValue();\n\t\t\t\tString logicalConnector = ( j < bestSolutionRules.get(i).getAndBetweens().size() ? (bestSolutionRules.get(i).getAndBetweens().get(j) ? \" && \" : \" OR \") : (\"\"));\n\t\t\t\thumanReadableRulesOfBestSolution += logicalConnector;\n\t\t\t\tj++;\n\t\t\t}\n\t\t\thumanReadableRulesOfBestSolution += \" )\";\n\t\t\tif ( bestSolutionRules.size() - 1 > i ) {\n\t\t\t\thumanReadableRulesOfBestSolution += \" || \"; \n\t\t\t}\n\t\t}\n\t\thumanReadableRulesOfBestSolution += \")\\n\";\n\t\t\n\t\treturn humanReadableRulesOfBestSolution;\n\t}", "public void printAdjacencyMatrix();" ]
[ "0.7344764", "0.67101175", "0.65835136", "0.6488875", "0.64422226", "0.6358614", "0.62953854", "0.6250387", "0.61348426", "0.6072847", "0.5884622", "0.5845393", "0.5748547", "0.5728641", "0.5684805", "0.56599516", "0.56507814", "0.5650241", "0.55987227", "0.5596144", "0.5579179", "0.5566631", "0.55183643", "0.5509504", "0.5485684", "0.5478373", "0.54575723", "0.5410755", "0.53864074", "0.53784007", "0.53774226", "0.5371252", "0.532954", "0.5320963", "0.5286555", "0.5282052", "0.52592725", "0.52480584", "0.52475864", "0.52389705", "0.52364224", "0.52335835", "0.5232633", "0.52270716", "0.5210194", "0.52086264", "0.5203172", "0.51981777", "0.5195973", "0.5176935", "0.5172841", "0.5167119", "0.51645446", "0.516374", "0.5156633", "0.5151364", "0.5113675", "0.5112135", "0.5089311", "0.50891095", "0.5082529", "0.5079962", "0.50762784", "0.50748825", "0.50740665", "0.5068321", "0.50621045", "0.50544685", "0.50514704", "0.5035652", "0.50276655", "0.5021938", "0.50210035", "0.50186527", "0.5011922", "0.49996534", "0.49983698", "0.49975982", "0.49923176", "0.49875352", "0.4979393", "0.4978243", "0.49779472", "0.49735245", "0.4954147", "0.49525392", "0.4950659", "0.4944793", "0.49384564", "0.49336463", "0.49334133", "0.49288127", "0.49256837", "0.49237967", "0.4922737", "0.49189028", "0.4917906", "0.49124274", "0.49003685", "0.48956257" ]
0.7970195
0
MORE DETAILED WAY TO PRINT A RULESET, PRINTING RULES CONTENT INSTEAD OF IDS
public void printRules_RVLR () { System.out.println("PRINTING RULESET ID : " + this.id + " (" + this.size() + ") entries."); for (int i = 0; i < this.size(); i++) { System.out.println("Rule " + (i+1) + " (ID " + references.get(i) + ") : " + this.rulelist.getRuleByID(references.get(i)) + " Prob : " + this.rulelist.getRuleByID(references.get(i)).getProb() + " TIMES " + this.rulelist.getRuleByID(references.get(i)).occurrencies + " PREC " + this.rulelist.getRuleByID(references.get(i)).prec_occurrencies + " Value : " + this.rulelist.getRuleByID(references.get(i)).get_RVRL()); } System.out.println("Total Prob : " + this.totalProb); //System.out.println("Precedences : " + this.precedences); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printRules () {\n \n System.out.println(\"PRINTING RULESET ID : \" + this.id + \" (\" + this.size() + \") entries.\");\n for (int i = 0; i < this.size(); i++) {\n \n System.out.println(\"Rule \" + (i+1) + \" (ID \" + references.get(i) + \") : \" + this.rulelist.getRuleByID(references.get(i)) + \" Prob : \" + this.rulelist.getRuleByID(references.get(i)).getProb() + \" TIMES \" + this.rulelist.getRuleByID(references.get(i)).occurrencies + \" PREC \" + this.rulelist.getRuleByID(references.get(i)).prec_occurrencies);\n }\n System.out.println(\"Total Prob : \" + this.totalProb);\n System.out.println(\"Precedences : \" + this.precedences);\n }", "public void printRule()\n {\n System.out.print(lhs + \" ::= \");\n for( String s : rhsSymbols)\n System.out.print(s + \" \");\n System.out.println();\n }", "public String toDebugString(RuleSet rs){\n\t\tString res = \"\";\n\t\tif(body != null)\n\t\t\tfor(Integer e : body){\n\t\t\t\tres = res + (res.equals(\"\") ? \"\" : \" & \") + OWLPrinter.getString(rs.debugLookup(e));\n\t\t\t}\n\n\t\tres += \" -> \";\n\t\tif(head != null) res += OWLPrinter.getString(rs.debugLookup(head));\n\t\telse{\n\t\t\tres += OWLPrinter.getString(rs.debugLookup(axiom));\n\t\t\tif(define != null){\n\t\t\t\tres += \" def \" + OWLPrinter.getString(rs.debugLookup(define));\n\t\t\t}\n\t\t}\n\n\t\t//if(head instanceof OWLAxiom) \tres += \" -> \" + ClassPrinter.printAxiom((OWLAxiom) head);\n\t\t//else \t\t\t\t\t\t\tres += \" -> \" + ClassPrinter.printClass(head);\n\t\treturn res;\n\t}", "public static void printRules(Rule[] rules) {\n System.out.println(\"\\nRulebase generated\\n------------------\");\n int i =1;\n for (Rule rule : rules) {\n String cond = \"\";\n for (int j = 0; j < rule.cond.length; j++) {\n cond = cond + rule.cond[j];\n }\n String output = rule.output;\n System.out.println(\"Rule\" + i + \" : \" + cond + \" = \" + output);\n i++;\n }\n System.out.println(\"\\n\");\n }", "public void dumpRules()\n\t{\n\t\tif(chain == null)\n\t\t\treturn;\n\t\t\n\t\tIterator it = chain.keySet().iterator();\n\t\tIterator subIt = null;\n\t\t\n\t\tString key = null;\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tkey = (String)it.next();\n\t\t\tSystem.out.print(key + \" --> \");\n\t\t\t\n\t\t\tsubIt = (chain.get(key)).iterator();\n\t\t\t\n\t\t\twhile(subIt.hasNext())\n\t\t\t\tSystem.out.print(subIt.next() + \", \");\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public String toString()\n/* */ {\n/* 885 */ StringBuilder result = new StringBuilder();\n/* 886 */ for (int i = 0; i < this.ruleSets.length; i++) {\n/* 887 */ result.append(this.ruleSets[i].toString());\n/* */ }\n/* 889 */ return result.toString();\n/* */ }", "public void print()\n/* */ {\n/* 226 */ boolean emptyTarget = true;\n/* 227 */ Iterator it; if ((this.subjects != null) && (this.subjects.size() > 0)) {\n/* 228 */ System.out.println(\"\\nSubjects ---->\");\n/* 229 */ emptyTarget = false;\n/* 230 */ for (it = this.subjects.iterator(); it.hasNext();)\n/* 231 */ ((MatchList)it.next()).print();\n/* */ }\n/* 234 */ if ((this.resources != null) && (this.resources.size() > 0)) {\n/* 235 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Resources ---->\");\n/* 236 */ emptyTarget = false;\n/* 237 */ for (it = this.resources.iterator(); it.hasNext();)\n/* 238 */ ((MatchList)it.next()).print();\n/* */ }\n/* 241 */ if ((this.actions != null) && (this.actions.size() > 0)) {\n/* 242 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Actions ---->\");\n/* 243 */ emptyTarget = false;\n/* 244 */ for (it = this.actions.iterator(); it.hasNext();)\n/* 245 */ ((MatchList)it.next()).print();\n/* */ }\n/* 248 */ if ((this.environments != null) && (this.environments.size() > 0)) {\n/* 249 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Environments ---->\");\n/* 250 */ emptyTarget = false;\n/* 251 */ for (it = this.environments.iterator(); it.hasNext();) {\n/* 252 */ ((MatchList)it.next()).print();\n/* */ }\n/* */ }\n/* 255 */ if (emptyTarget) System.out.print(\"EMPTY\");\n/* */ }", "public void showRules(Application app){\n System.out.println(\"Here are your rules: \\n • GPA >= \" + app.getStand().getReqGPA() + \"\\n • SAT >= \" + app.getStand().getReqSAT() + \"\\n • A valid intended major, either aligned towards STEM or Humanities.\" + \"\\n • Three valid extracurriculars. \\n \\t • A valid extracurricular is defined as a productive use of time and/or a standout accomplishment. \\n \\t • It must align with the student's STEM or Humanities focus. \\n \\t • All three extracurriculars must be valid. \\n • A statement of purpose without spelling errors.\");\n System.out.println(\" • Students admitted to Harvard must have a passion for Humanities. Students admitted to MIT must have a passion for STEM. This can be determined through their intended major and extracurriculars, assuming both are valid.\");\n System.out.println(\" • All students with errors in their applications should be admitted to Greendale Community College.\");\n System.out.println();\n System.out.println(\"Good luck!\");\n }", "String rulesAsText();", "public abstract void printConstraint();", "private void printModel(Model model) {\n\t\tStmtIterator iter = model.listStatements();\n\n\t\t// print out the predicate, subject and object of each statement\n\t\twhile (iter.hasNext()) {\n\t\t\tStatement stmt = iter.nextStatement(); // get next statement\n\t\t\tResource subject = stmt.getSubject(); // get the subject\n\t\t\tProperty predicate = stmt.getPredicate(); // get the predicate\n\t\t\tRDFNode object = stmt.getObject(); // get the object\n\n\t\t\tSystem.out.print(\"SUBJECT: \" + subject.toString());\n\t\t\tSystem.out.print(\"\\tPREDICATE: \" + predicate.toString() + \" \");\n\t\t\tif (object instanceof Resource) {\n\t\t\t\tSystem.out.print(\"\\tOBJECT: \" + object.toString());\n\t\t\t} else {\n\t\t\t\t// object is a literal\n\t\t\t\tSystem.out.print(\"\\tOBJECT: \\\"\" + object.toString() + \"\\\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\" .\");\n\t\t}\n\t}", "public void print() {\n System.out.println(\"Scheme print:\");\n System.out.println(\" Blocks:\");\n for (Block block : this.blocks) {\n // System.out.println(\" \" + block.getName() + \" (\" + block.getID() + \")\");\n for (Integer id : block.getConnections()) {\n System.out.println(\" \" + id);\n }\n //System.out.println(\" \" + block.outputs.getFirst().getDstID());\n }\n /*System.out.println(\" Connections:\");\n for (Con connection : this.connections) {\n System.out.println(\" [\" + connection.src + \"]---[\" + connection.dst + \"]\");\n }*/\n if(this.queue_set){\n System.out.println(\" Queue: \" + this.queue);\n }\n else{\n System.out.println(\" Queue not loaded\");\n }\n }", "private void print( org.antlr.v4.tool.Grammar grammar, ParseTree tree, String indentStep, String indent )\n {\n if ( tree != null )\n {\n Object payload = tree.getPayload();\n if ( payload instanceof InterpreterRuleContext )\n {\n String ruleName = grammar.getRule( ((InterpreterRuleContext) payload).getRuleIndex() ).name;\n System.out.println( indent + ruleName );\n }\n else\n {\n System.out.println( indent + \"\\\"\" + tree.getText() + \"\\\"\" );\n }\n for ( int i = 0; i <= tree.getChildCount(); i++ )\n {\n print( grammar, tree.getChild( i ), indentStep, indent + indentStep );\n }\n }\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getRuleVariables() != null)\n sb.append(\"RuleVariables: \").append(getRuleVariables());\n sb.append(\"}\");\n return sb.toString();\n }", "public void showAssignments(){\n\t\tIterator it = this.clauses.iterator();\n\t\tint numVar = this.getVocabulary().getMaxVariableId();\n\t\tint[] assign = new int[numVar*2+1]; \n\n\t\twhile (it.hasNext()) {\n\t\t\tSystem.out.println(\"___________________________\");\n IClause cl = (IClause) it.next();\n Iterator litIterator = cl.literalIterator();\n while (litIterator.hasNext()){\n \tILiteral lit = (ILiteral) litIterator.next();\n \tint idx = lit.getId();\n \tif (idx<0) \n \t\tidx = numVar - idx;\n \tassign[idx] = lit.value();\n }\n }\n\t\t\n\t\tfor (int i=1;i<assign.length;i++){\n\t\t\tint k = i;\n\t\t\tif (i>numVar)\n\t\t\t\tk = numVar - i;\n\t\t\tSystem.out.print(k + \"|\" + assign[i] + \";\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void print() {\n \n for (int i=0 ; i< getNumberOfCases() ; i++) {\n Configuration conf = get(i);\n conf.print();\n System.out.print(\"\\n\");\n }\n}", "public String toString() {\n\n if (m_rules == null) {\n return \"Prism: No model built yet.\";\n }\n return \"Prism rules\\n----------\\n\" + m_rules.toString();\n }", "private void explore(RuleContext ctx) {\n if (ctx.getChildCount() != 1) {\n String ruleName = Python3Parser.ruleNames[ctx.getRuleIndex()];\n astRepresenation.append(ruleName);\n astRepresenation.append(\": \");\n astRepresenation.append(ctx.getText());\n astRepresenation.append(\"\\n\");\n }\n for (int i = 0; i < ctx.getChildCount(); i++) {\n ParseTree element = ctx.getChild(i);\n if (element instanceof RuleContext) {\n explore((RuleContext) element);\n }\n }\n }", "public void displayRules(TextArea textArea) {\r\n textArea.appendText(\"\\n\" + name + \" Rule Base: \" + \"\\n\");\r\n Enumeration enum2 = ruleList.elements() ;\r\n while(enum2.hasMoreElements()) {\r\n Rule temp = (Rule)enum2.nextElement() ;\r\n temp.display(textArea) ;\r\n }\r\n }", "public String toString() {\n return this.grammarRules.keySet() + \"\";\n\t}", "public static void printRule() {\n int counter = 0;\n\n System.out.print(\" Welcome to Tic Tac Toe Number\");\n\n System.out.println(\n \"\\n\\t -------------\"\n + \"\\n\\t | T | T | T |\"\n + \"\\n\\t -------------\"\n + \"\\n\\t | N | U | M |\"\n + \"\\n\\t -------------\"\n + \"\\n\\t | B | E | R |\"\n + \"\\n\\t -------------\");\n\n System.out.println(\"Rules: \"\n + \"\\n\" + ++counter + \". Enter an amount of players, 1 or 2.\"\n + \"\\n\" + ++counter + \". If you play with the Computer, enter 1 player, it will always play Odd number.\"\n + \"\\n\" + ++counter + \". The players, Odd and Even, take turn filling a cell with their numbers.\"\n + \"\\n\" + ++counter + \". The ODD number player goes FIRST by selecting a row and a column [1, 2, or 3],\"\n + \"\\n\" + \" then an odd number [1, 3, 5, 7, or 9].\"\n + \"\\n\" + ++counter + \". Follow by the EVEN number player doing the same thing,\"\n + \"\\n\" + \" except the set of even numbers is [2, 4, 6, and 8].\"\n + \"\\n\" + ++counter + \". Who reach the sum of \\\"\" + BINGO + \"\\\" in a row,\"\n + \"\\n\" + \" may be Vertical, Horizontal, or Diagonal, first will be a WINNER!\");\n }", "public void printAllConstraints() {\n\t\tSystem.out.println(\"Printing all constraints\");\n\t\tfor (int row = 0; row < Sudoku.ROWS; row++ ) {\n\t\t\tfor (int col = 0; col < Sudoku.COLUMNS; col++) {\n\t\t\t\tSystem.out.printf(\"Constraints of (%d, %d): {\", row, col);\n\t\t\t\tSudoku.grid[row][col].printVariableConstraints();\n\t\t\t\tSystem.out.print(\"}\\n\");\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public String toString() {\r\n return this.bnfRuleMap.keySet().toString();\r\n }", "String getRules();", "static void printN3(Model m) {\n StmtIterator iter = m.listStatements();\n\n // print out the predicate, subject and object of each statement\n while (iter.hasNext()) {\n Statement stmt = iter.nextStatement(); // get next statement\n Resource subject = stmt.getSubject(); // get the subject\n Property predicate = stmt.getPredicate(); // get the predicate\n RDFNode object = stmt.getObject(); // get the object\n\n System.out.print(subject.toString());\n System.out.print(\" \" + predicate.toString() + \" \");\n if (object instanceof Resource) {\n System.out.print(object.toString());\n } else {\n // object is a literal\n System.out.print(\" \\\"\" + object.toString() + \"\\\"\");\n }\n\n System.out.println(\" .\");\n }\n }", "public static void printIDTable () {\n System.out.println(); \n System.out.println(\"Identifier Cross Reference Table\");\n System.out.println(\"--------------------------------\"); \n for(String key : idCRT.keySet()) {\n // if id string length is > 30,\n // replace excess characters with a '+' character\n if(key.length() > 30) {\n String temp = key.substring(0, 30);\n temp += \"+\";\n System.out.printf(\"%-30s\",temp); \n } else {\n System.out.printf(\"%-30s\",key);\n }\n // prints the line numbers, creating a new line\n // if number of line numbers exceeds 7\n int count = 0;\n for(Integer lno : idCRT.get(key)) {\n if(count == 7) {\n System.out.printf(\"\\n%30s\", \" \");\n count = 0;\n }\n System.out.printf(\"%6d\",lno);\n count++;\n }\n System.out.println();\n }\n }", "public void printConstraint() {\n\t\tSystem.out.println(this.object + \" \" + this.closeObject + \" \" + this.farObject);\r\n\t}", "public void printByResource() {\r\n TUseStatus useStatus;\r\n\t for (int b=0; b < m_current_users_count; b++)\r\n\t for (int a=0; a < m_current_resources_count; a++) {\r\n\t useStatus = m_associations[a][b];\r\n\t if (useStatus!=null) System.out.println(useStatus.toString()); \r\n\t } \r\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.ruleController.toString();\n\t}", "public void displayConflictSet(Vector ruleSet) {\r\n textArea1.appendText(\"\\n\\n\" + \" -- Rules in conflict set:\\n\\n\");\r\n Enumeration enum2 = ruleSet.elements() ;\r\n while(enum2.hasMoreElements()) {\r\n Rule temp = (Rule)enum2.nextElement() ;\r\n textArea1.appendText(temp.name + \"(\" + temp.numAntecedents()+ \"), \" ) ;\r\n }\r\n }", "void dump() {\n\t\tSystem.out.print(\"I am: \" + (territoryID));\n\t\tSystem.out.print(\"\\tNeighbour of:\");\n\n\t}", "void printSpecification(PrintStream ps);", "java.lang.String getRule();", "public void printOWLModel(){\n\t\tmodel.write(System.out, \"RDF/XML\");\t\t\n\t}", "public String toString(){\r\n\t\treturn \"This email passes \"+rulesPassed+\" rules\";\r\n\t}", "@Override\r\n\tpublic void rule1() {\n\t\tSystem.out.println(\"인터페이스 ISports1메소드 --> rule()\");\r\n\t}", "void printSubgraphs() {\n StringBuilder sb = new StringBuilder();\n for(int sgKey: listOfSolutions.keySet()) {\n HashMap<Integer, Long> soln = listOfSolutions.get(sgKey);\n // inside a soln\n //sb.append(\"S:8:\");\n for(int key: soln.keySet()) {\n sb.append(key + \",\" + soln.get(key) + \";\");\n\n }\n sb.setLength(sb.length() - 1);\n sb.append(\"\\n\");\n }\n System.out.println(\"\\n\" + sb.toString());\n }", "public synchronized void outputRule() throws IOException\n{\n File f1 = for_program.getUniverse().getBaseDirectory();\n File f2 = new File(f1,RULE_FILE);\n FileWriter fw = new FileWriter(f2,true);\n IvyXmlWriter xw = new IvyXmlWriter(fw);\n\n xw.begin(\"RULE\");\n xw.field(\"WHEN\",at_time);\n xw.field(\"WHENS\",new Date(at_time).toString());\n\n xw.begin(\"WORLD\");\n for (Map.Entry<UpodParameter,Object> ent : from_world.getParameters().entrySet()) {\n UpodParameter pnm = ent.getKey();\n Object pvl = ent.getValue();\n if (pvl == null) continue;\n xw.begin(\"PARAM\");\n xw.field(\"NAME\",pnm.getName());\n xw.field(\"TYPE\",pvl.getClass().toString());\n xw.cdata(pvl.toString());\n xw.end(\"PARAM\");\n }\n xw.end(\"WORLD\");\n\n for (Map.Entry<UpodDevice,Map<UpodParameter,Object>> ent : sensor_values.entrySet()) {\n UpodDevice us = ent.getKey();\n xw.begin(\"SENSOR\");\n xw.field(\"NAME\",us.getName());\n xw.field(\"ID\",us.getUID());\n for (Map.Entry<UpodParameter,Object> pent : ent.getValue().entrySet()) {\n\t xw.begin(\"PARAM\");\n\t xw.field(\"NAME\",pent.getKey().getName());\n\t xw.cdata(pent.getValue().toString());\n\t xw.end(\"PARAM\");\n }\n xw.end(\"SENSOR\");\n }\n for (Map.Entry<UpodDevice,Map<UpodParameter,Object>> ent : entity_values.entrySet()) {\n UpodDevice ue = ent.getKey();\n xw.begin(\"ENTITY\");\n xw.field(\"NAME\",ue.getName());\n xw.field(\"ID\",ue.getUID());\n for (Map.Entry<UpodParameter,Object> pent : ent.getValue().entrySet()) {\n\t xw.begin(\"PARAM\");\n\t xw.field(\"NAME\",pent.getKey().getName());\n\t xw.cdata(pent.getValue().toString());\n\t xw.end(\"PARAM\");\n }\n xw.end(\"ENTITY\");\n }\n\n for (CalendarEvent ce : calendar_events) {\n if (ce.getStartTime() > at_time + 5*T_MINUTE) continue;\n if (ce.getEndTime() < at_time - 5*T_MINUTE) continue;\n xw.begin(\"CALENDAR\");\n xw.field(\"START\",ce.getStartTime());\n xw.field(\"STARTS\",new Date(ce.getStartTime()).toString());\n xw.field(\"END\",ce.getEndTime());\n xw.field(\"ENDS\",new Date(ce.getEndTime()).toString());\n for (Map.Entry<String,String> ent : ce.getProperties().entrySet()) {\n\t xw.begin(\"FIELD\");\n\t xw.field(\"NAME\",ent.getKey());\n\t xw.field(\"VALUE\",ent.getValue());\n\t xw.end(\"FIELD\");\n }\n xw.end(\"CALENDAR\");\n }\n xw.end(\"RULE\");\n xw.close();\n}", "public String[] getRuleSetDisplayNames()\n/* */ {\n/* 1015 */ return getRuleSetDisplayNames(ULocale.getDefault(ULocale.Category.DISPLAY));\n/* */ }", "public abstract List<NARule> getRules(Context context);", "public String printFormat(){\n return \"The workout: \" + getName() + \" should be done for \" + getSets() + \" sets and in each set should be \"\n + getReps() + \" reps.\";\n }", "public String print()\n\t{\n\t\tString s = \"\";\n\t\t\n\t\ts = \"<explanation text=\\\"\" + text + \"\\\">\";\n\t\ts = s + commentContainer.printComments();\n\t\tif (expression != null)\n\t\t{\n\t\t\ts = s + expression.print(); \n\t\t}\n\t\ts = s + \"</explanation>\";\n\t\t\n\t\treturn s;\n\t}", "public String getRulesRep(){\r\n return RulesRep;\r\n }", "private static void exportRules(GraknClient.Session session, Path schemaRoot) throws IOException {\n File outputFile = schemaRoot.resolve(\"rule\").toFile();\n Writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outputFile), StandardCharsets.UTF_8));\n GraknClient.Transaction tx = session.transaction().write();\n\n tx.getRule(\"rule\").subs()\n .filter(rule -> !rule.label().toString().equals(\"rule\"))\n .forEach(rule -> {\n String when = rule.when().toString();\n String then = rule.then().toString();\n String label = rule.label().toString();\n try {\n writer.write(label);\n writer.write(\"\\n\");\n writer.write(when);\n writer.write(\"\\n\");\n writer.write(then);\n writer.write(\"\\n\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n\n writer.flush();\n writer.close();\n tx.close();\n }", "public void printResults() {\r\n\t\tif (net.isFlow()) {\r\n\t\t\tSystem.out.println(\"The assignment is a valid flow\");\r\n\t\t\tSystem.out.println(\"A maximum flow has value: \"+net.getValue());\r\n\t\t\tSystem.out.println(\"The flows along the edges are as follows:\");\r\n\t\t\tnet.printFlow();\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"The assignment is not a valid flow\");\r\n\t}", "public void print() {\n\t\tfor(String subj : subjects) {\n\t\t\tSystem.out.println(subj);\n\t\t}\n\t\tSystem.out.println(\"==========\");\n\t\t\n\t\tfor(StudentMarks ssm : studMarks) {\n\t\t\tSystem.out.println(ssm.student);\n\t\t\tfor(Byte m : ssm.marks) {\n\t\t\t\tSystem.out.print(m + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void print() {\n\t\tint l = 0;\n\t\tSystem.out.println();\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tSystem.out.print(vertexList[v].id);\n\t\t\tfor (Neighbor nbr = vertexList[v].adjList; nbr != null; nbr = nbr.next) {\n\t\t\t\tSystem.out.print(\" -> \" + vertexList[nbr.vertexNumber].id + \"(\"\n\t\t\t\t\t\t+ nbr.weight + \")\");\n\t\t\t\tl++;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n\t\tSystem.out.println(\"Number of edges = \" + l / 2);\n\t}", "private String toRules(){\n\n if (numInstances() == 0)\n\treturn \"No Rules (Empty Exemplar)\";\n\n String s = \"\", sep = \"\";\n\t\n for(int i = 0; i < numAttributes(); i++){\n\t \n\tif(i == classIndex())\n\t continue;\n\t \n\tif(attribute(i).isNumeric()){\n\t if(m_MaxBorder[i] != m_MinBorder[i]){\n\t s += sep + m_MinBorder[i] + \"<=\" + attribute(i).name() + \"<=\" + m_MaxBorder[i];\n\t } else {\n\t s += sep + attribute(i).name() + \"=\" + m_MaxBorder[i];\n\t }\n\t sep = \" ^ \";\n\t \n\t} else {\n\t s += sep + attribute(i).name() + \" in {\";\n\t String virg = \"\";\n\t for(int j = 0; j < attribute(i).numValues() + 1; j++){\n\t if(m_Range[i][j]){\n\t s+= virg;\n\t if(j == attribute(i).numValues())\n\t\ts += \"?\";\n\t else\n\t\ts += attribute(i).value(j);\n\t virg = \",\";\n\t }\n\t }\n\t s+=\"}\";\n\t sep = \" ^ \";\n\t}\t \n }\n s += \" (\"+numInstances() +\")\";\n return s;\n }", "public void dump() {\n\t\tfor(Symbol s: assignments.keySet()) {\n\t\t\tSystem.out.println(s.toString() + \" = \" + assignments.get(s));\n\t\t}\t\n\t}", "public void printAst(){\n explore(ctx);\n }", "public void printOut() {\n System.out.println(\"\\t\" + result + \" = icmp \" + cond.toLowerCase() + \" \" + type + \" \" + op1 + \", \" + op2 );\n\n // System.out.println(\"\\t\" + result + \" = bitcast i1 \" + temp + \" to i32\");\n }", "public void print() {\n print$$dsl$guidsl$guigs();\n System.out.print( \" eqn =\" + eqn );\n }", "private void printModel(Model model) {\n\t\tIterator<Statement> statements = model.listStatements();\n\t\twhile(statements.hasNext()) {\n\t\t\tSystem.out.println(statements.next().toString());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"------\");\n\t}", "public String toString(){\n\t\tStringBuffer buffer = new StringBuffer();\n\t\t\n\t\tbuffer.append(lhs);\n\t\tbuffer.append(\" -> \");\n\t\t\n\t\t// if this is a lexical rule, prefix it with the lexical symbol\n\t\tif( lexical ){\n\t\t\tbuffer.append(LEXICAL_PREFIX);\n\t\t}\n\t\t\n\t\tfor( String s: rhs ){\n\t\t\tbuffer.append(s + \" \");\n\t\t}\n\t\t\n\t\t// delete the trailing whitespace\n\t\tbuffer.deleteCharAt(buffer.length()-1);\n\t\t\n\t\tbuffer.append(\"\\t\\t\" + weight);\n\t\t\n\t\treturn buffer.toString();\n\t}", "public void printPatch() {\r\n\t\t\tfor(int i =0; i <numOfPathes; i++)\r\n\t\t\t{\r\n\t\t\t\tfor(int j =0; j <numOfPathes; j++)\r\n\t\t\t\t{\t\t\t\t\r\n\t\t\t\t\tif (patches[i][j].getPerson().size() > 0) {\r\n\t\t\t\t\t\tif (patches[i][j].isCop()) {\r\n\t\t\t\t\t\t\tSystem.out.print(\"\\t*\");\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t} else if (patches[i][j].isActiveAgent()) {\r\n\t\t\t\t\t\t\tSystem.out.print(\"\\tA\");\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tint jail = ((Agent)patches[i][j].getPerson().get(0))\r\n\t\t\t\t\t\t\t\t\t.returnJailTerm();\r\n\t\t\t\t\t\tSystem.out.print(\"\\t\" + jail);\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.print(\"\\t \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"------------------------------------\");\r\n\t\t}", "public void print() {\n if (this.tuples == null || this.tuples.isEmpty()) return; \n\n // Initialize number of attributes.\n int attributesNumber = attributes.size();\n\n // An array storing the max length of Strings per column.\n // The Strings per column are tuple Values and attributes.\n int[] maxColumnLengthOfStrings = new int[attributesNumber];\n\n // Loop all the attributes and fill the max length array\n for (int index = 0; index < attributesNumber; index++) {\n\n // Initialize the array with the attributes name length.\n maxColumnLengthOfStrings[index] = attributes.get(index).getName().length();\n\n // Loop the values and find the longest value toString().\n for (int rowIndex = 0; rowIndex < this.tuples.size(); rowIndex++) { // Loop the rows\n String value = this.tuples.get(rowIndex).getValues().get(index).toString();\n if (value.length() > maxColumnLengthOfStrings[index]){\n maxColumnLengthOfStrings[index] = value.length();\n }\n }\n }\n\n // A set of tables whose columns are in the attributes list.\n Set<SQLTable> tablesSet = new HashSet<>();\n // The list of attributes to String format.\n String attributesList = new String();\n // A line used to separate the attributes from the data.\n String separationLine = new String();\n // Create the separation line and the attributes line.\n for (int index = 0; index < attributesNumber; index++) {\n\n // The score column has a null table. Dont search it.\n if (!this.attributes.get(index).getName().equals(\"score\"))\n tablesSet.add((this.attributes.get(index).getTable()) );\n\n\n attributesList += \"|\" + PrintingUtils.addStringWithLeadingChars(maxColumnLengthOfStrings[index],\n this.attributes.get(index).getName(), \" \");\n separationLine += \"+\" + PrintingUtils.addStringWithLeadingChars(maxColumnLengthOfStrings[index], \"\", \"-\");\n }\n attributesList += \"|\"; // Add the last \"|\".\n separationLine += \"+\"; // Add the last \"+\".\n\n // Print the tables which contain this tuples (HACK WAY). \n String tablesInString = new String (\"Tables joined : \");\n for (SQLTable table: tablesSet) {\n tablesInString += table.toAbbreviation() + \" |><| \";\n }\n System.out.println(tablesInString.substring(0, tablesInString.length()-5));\n\n // Print the attributes between separation lines.\n System.out.println(separationLine);\n System.out.println(attributesList);\n System.out.println(separationLine);\n\n // Print all the rows of Tuple Values.\n for (OverloadedTuple tuple: this.tuples) {\n String rowOfValues = new String();\n for (int index = 0; index < attributesNumber; index++) {\n rowOfValues += \"|\" + PrintingUtils.addStringWithLeadingChars( maxColumnLengthOfStrings[index],\n tuple.getValues().get(index).toString(), \" \");\n }\n rowOfValues += \"|\";\n System.out.println(rowOfValues);\n }\n\n // Print a separation line.\n System.out.println(separationLine);\n }", "List<RuleInfo> listRulesInfo() throws IOException;", "void print() {\r\n\t\tOperations.print(lexemes, tokens);\r\n\t}", "public void print() {\n\t// Skriv ut en grafisk representation av kösituationen\n\t// med hjälp av klassernas toString-metoder\n System.out.println(\"A -> B\");\n System.out.println(r0);\n System.out.println(\"B -> C\");\n System.out.println(r1);\n System.out.println(\"turn\");\n System.out.println(r2);\n //System.out.println(\"light 1\");\n System.out.println(s1);\n //System.out.println(\"light 2\");\n System.out.println(s2);\n }", "public void deduceRules()\n{\n List<RuleInstance> allrules = loadRules();\n\n List<UpodRule> rules = new ArrayList<UpodRule>();\n for (UpodRule ur : for_program.getRules()) {\n if (ur.isExplicit()) {\n\t rules.add(ur);\n\t RuleInstance ri = new RuleInstance(ur,from_world.getUniverse());\n\t allrules.add(ri);\n }\n }\n\n Set<Condition> allconds = getConditions(allrules);\n\n tree_root = new TreeNode(allrules,null);\n\n expandTree(tree_root,allconds);\n\n generateRules(tree_root);\n}", "protected List<DumpRule> ruleList(){\n\t\tList<DumpRule> drList = new ArrayList<DumpRule>();\n\t\tString lineStrs = ruleText.getText();\n\t\ttry{\n\t\t\tString[] lines = lineStrs.split(\"\\n\");\n\t\t\tDumpRule currentDr = null;\n\t\t\tfor(int index=0,size=lines.length; index<size; index++){\n\t\t\t\tString line=lines[index];\n\t\t\t\tif(line.indexOf(TB_COL_SPlit)!=-1){\n\t\t\t\t\tcurrentDr = addTbColRule(line);\n\t\t\t\t\tdrList.add(currentDr);\n\t\t\t\t}else if(line.indexOf(RULE_COL_SPlit)!=-1){\n\t\t\t\t\tString[] kvs = line.split(RULE_COL_SPlit);\n\t\t\t\t\tif(kvs!=null && kvs.length==2){\n\t\t\t\t\t\tcurrentDr.addRule(kvs[0].trim(), kvs[1].trim());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tapp.log(\"规则输入错误..\");\n\t\t}\n\t\treturn drList;\n\t}", "public String printRoute()\r\n {\r\n String res = this.getRoute().stream()\r\n .map(entry -> entry.getKey().getId()\r\n + \":\"\r\n + entry.getValue()\r\n + \";\")\r\n .collect(Collectors.joining());\r\n System.out.println(res);\r\n return res;\r\n }", "private void printProofAssert(String decl, Proofs lv) {\n\t\tif (lv == null)\n\t\t\treturn;\n\t\tfor (int i = lv.nbLemmas() - 1; i >= 0; i--) {\n\t\t\tTheorem t = lv.getTheorem(i);\n\t\t\tSimpleLemma l = lv.getLemma(i);\n\t\t\tprintProofAssert(decl, t, l);\n\t\t}\n\t}", "private static void writeFinalRuleBase (boolean printStdOut) throws IllegalArgumentException, IOException{\n \t\n \tFileSystem fs = FileSystem.get(Mediator.getConfiguration());\n \tPath textPath = new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_text.txt\");\n BufferedWriter bwText = new BufferedWriter(new OutputStreamWriter(fs.create(textPath,true)));\n FileStatus[] status = fs.listStatus(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_TMP\"));\n \tWriter writer = SequenceFile.createWriter(Mediator.getConfiguration(), \n \t\t\tWriter.file(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath())), \n \t\t\tWriter.keyClass(ByteArrayWritable.class), Writer.valueClass(FloatWritable.class));\n Reader reader;\n\t\tByteArrayWritable rule = new ByteArrayWritable();\n\t\tFloatWritable ruleWeight = new FloatWritable();\n\t\tint id = 0;\n \n bwText.write(\"\\nRULE BASE:\\n\\n\");\n if (printStdOut)\n \tSystem.out.println(\"\\nRULE BASE:\\n\");\n \t\n \t// Read all sequence files from stage 2\n \tfor (FileStatus fileStatus:status){\n \t\t\n \t\tif (!fileStatus.getPath().getName().contains(\"_SUCCESS\")){\n \t\t\n\t \t\t// Open sequence file\n\t \t\treader = new Reader(Mediator.getConfiguration(), Reader.file(fileStatus.getPath()));\n\t \n\t // Read all rules\n\t while (reader.next(rule, ruleWeight)) {\n\t \t\n\t \t// Write rule in the output sequence file\n\t \twriter.append(rule, ruleWeight);\n\t \t\n\t \tbwText.write(\"Rule (\"+id+\"): IF \");\n\t \tif (printStdOut)\n\t \t\tSystem.out.print(\"Rule (\"+id+\"): IF \");\n\t \t\n\t \t// Write antecedents\n\t \tfor (int i = 0; i < rule.getBytes().length - 2; i++){\n\t \t\t\n\t \t\tbwText.write(Mediator.getVariables()[i].getName()+\" IS \");\n\t \t\tif (printStdOut)\n\t \t\tSystem.out.print(Mediator.getVariables()[i].getName()+\" IS \");\n\t \t\tif (Mediator.getVariables()[i] instanceof NominalVariable){\n\t \t\t\tbwText.write(((NominalVariable)Mediator.getVariables()[i]).getNominalValue(rule.getBytes()[i])+\" AND \");\n\t \t\t\tif (printStdOut)\n\t \t\tSystem.out.print(((NominalVariable)Mediator.getVariables()[i]).getNominalValue(rule.getBytes()[i])+\" AND \");\n\t \t\t}\n\t \t\t\telse {\n\t \t\t\t\tbwText.write(\"L_\"+rule.getBytes()[i]+\" AND \");\n\t \t\t\t\tif (printStdOut)\n\t \t\tSystem.out.print(\"L_\"+rule.getBytes()[i]+\" AND \");\n\t \t\t\t}\n\t \t\t\n\t \t}\n\t \t\n\t \t// Write the last antecedent\n\t \tbwText.write(Mediator.getVariables()[rule.getBytes().length-2].getName()+\" IS \");\n\t \tif (printStdOut)\n\t \t\tSystem.out.print(Mediator.getVariables()[rule.getBytes().length-2].getName()+\" IS \");\n\t \tif (Mediator.getVariables()[rule.getBytes().length-2] instanceof NominalVariable){\n\t \t\tbwText.write(((NominalVariable)Mediator.getVariables()[rule.getBytes().length-2]).getNominalValue(rule.getBytes()[rule.getBytes().length-2]));\n\t \t\tif (printStdOut)\n\t \t\tSystem.out.print(((NominalVariable)Mediator.getVariables()[rule.getBytes().length-2]).getNominalValue(rule.getBytes()[rule.getBytes().length-2]));\n\t \t}\n\t \t\telse {\n\t \t\t\tbwText.write(\"L_\"+rule.getBytes()[rule.getBytes().length-2]);\n\t \t\t\tif (printStdOut)\n\t \t\tSystem.out.print(\"L_\"+rule.getBytes()[rule.getBytes().length-2]);\n\t \t\t}\n\t \t\n\t \t// Write the class and rule weight\n\t \tbwText.write(\" THEN CLASS = \"+Mediator.getClassLabel(rule.getBytes()[rule.getBytes().length-1]));\n\t \tbwText.write(\" WITH RW = \"+ruleWeight.get()+\"\\n\\n\");\n\t \tif (printStdOut){\n\t \t\tSystem.out.print(\" THEN CLASS = \"+Mediator.getClassLabel(rule.getBytes()[rule.getBytes().length-1]));\n\t \t\tSystem.out.print(\" WITH RW = \"+ruleWeight.get()+\"\\n\\n\");\n\t \t}\n\t\n\t \tid++;\n\t \t\n\t }\n\t \n\t reader.close();\n \n \t\t}\n \t\t\n \t}\n \t\n \tbwText.close();\n writer.close();\n \t\n \t// Remove temporary rule base\n \tfs.delete(new Path(Mediator.getHDFSLocation()+Mediator.getLearnerRuleBasePath()+\"_TMP\"),true);\n \t\n }", "public String toString() {\r\n\t\tStringBuilder s = new StringBuilder(\"\");\r\n\t\tif (objective != null) {\r\n\t\t\ts.append(\"Objective: \").append(objective.getName())\r\n\t\t\t .append('=').append(objective.getDomain())\r\n\t\t\t .append('\\n');\r\n\t\t}\r\n\t\tfor (Variable v : variables) {\r\n\t\t\ts.append(v.getName()).append('=').append(v.getDomain())\r\n\t\t\t .append('\\n');\r\n\t\t}\r\n\t\tfor (Constraint c : constraints) {\r\n\t\t\ts.append(c.toString()).append('\\n');\r\n\t\t}\r\n\t\treturn s.toString();\r\n\t}", "public void cleanPrintSetOutWithDontCares(int formula){\n\t\t\n\t\t\n\t\tif(formula ==1){\n\t\t\tSystem.out.println(\"TRUE\");\n\t\t\treturn;\n\t\t}\n\t\t\n\n\t\tArrayList<String> minterms = BDDWrapper.mintermsWithDontCares(bdd, formula, variables);\n\t\tif(minterms == null){\n\t\t\tSystem.out.println(\"FALSE\");\n\t\t\treturn;\n\t\t}\n\t\tfor(String minterm : minterms ){\n//\t\t\tSystem.out.println(\"mintrem is \"+minterm);\n\t\t\tint index = 0;\n\t\t\t//print density vars\n\t\t\tSystem.out.print(\"densityVars: \");\n\t\t\tfor(int i=0; i<coordinationGameStructure.densityVars.size(); i++){\n\t\t\t\tString value = minterm.substring(index, index+coordinationGameStructure.densityVars.get(i).length);\n\t\t\t\tindex+=coordinationGameStructure.densityVars.get(i).length;\n\t\t\t\tSystem.out.print(value+\" \");\n\t\t\t}\n\t\t\t//tasks\n\t\t\tSystem.out.print(\"Tasks: \");\n\t\t\tString value = minterm.substring(index, index+coordinationGameStructure.taskVars.length);\n\t\t\tindex+= coordinationGameStructure.taskVars.length;\n\t\t\tSystem.out.print(value);\n\t\t\tSystem.out.print(\" Signals: \");\n\t\t\tString successSignalsValues = minterm.substring(index, index+coordinationGameStructure.successSignals.length);\n\t\t\tindex+=coordinationGameStructure.successSignals.length;\n\t\t\tSystem.out.print(successSignalsValues);\n\t\t\tSystem.out.print(\" Counter: \");\n\t\t\tString counterValue = minterm.substring(index);\n\t\t\tSystem.out.print(counterValue);\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void print() {\n\t\t\n\t\tfor(Solution sol : population) {\n\t\t\tSystem.out.println(sol.getPossibleSolution() + \" \" + sol.getPath());\n\t\t}\n\t}", "public String toString() {\r\n\t\tString schemeTable=new String();\r\n\t\tint i;\r\n\t\tfor(i=0;i<explanatorySet.size();i++)\r\n\t\t\t schemeTable=schemeTable+((Attribute) explanatorySet.get(i)).getName()+\",\";\r\n\t\tfor(i=0;i<data.size();i++) {\r\n\t\t\tschemeTable=schemeTable+\"\\n\"+(i+1)+\":\";\r\n\t\t\tfor(int j=0;j<explanatorySet.size();j++) {\r\n\t\t\t\tschemeTable=schemeTable+getValue(i,j)+\",\";\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn schemeTable;\r\n\t}", "public void printStats() {\n\t\tSystem.out.println(\"============= RULEGROWTH - STATS ========\");\n\t\tSystem.out.println(\"Sequential rules count: \" + ruleCount);\n\t\tSystem.out.println(\"Total time: \" + (timeEnd - timeStart) + \" ms\");\n\t\tSystem.out.println(\"Max memory: \" + MemoryLogger.getInstance().getMaxMemory());\n\t\tSystem.out.println(\"==========================================\");\n\t}", "private void printContrib() {\n \t\tSystem.out.println(\"-- Current Contributions --\");\n \t\tfor (int y = 0; y < contrib.length; y++) {\n \t\t\tfor (int x = 0; x < contrib[y].length; x++) {\n \t\t\t\tString s = contrib[y][x] == null ? \"-\" : (\"\" + contrib[y][x].current);\n \t\t\t\twhile (s.length() < 4)\n \t\t\t\t\ts = \" \" + s;\n \t\t\t\tSystem.out.print(s);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t\tSystem.out.println();\n \t\tSystem.out.println(\"-- Target Contributions --\");\n \t\tfor (int y = 0; y < contrib.length; y++) {\n \t\t\tfor (int x = 0; x < contrib[y].length; x++) {\n \t\t\t\tString s = contrib[y][x] == null ? \"-\" : (\"\" + contrib[y][x].target);\n \t\t\t\twhile (s.length() < 4)\n \t\t\t\t\ts = \" \" + s;\n \t\t\t\tSystem.out.print(s);\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t}\n \t}", "public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}", "public String toString() \n {\n String outString = \"\\nCourse Id: \" + courseId;\n outString += \"\\nClass Name: \" + className;\n outString += \"\\nAssignments: \\n\";\n for (Assignment assignment : assignments) \n {\n outString += assignment.toString();\n }\n return outString;\n }", "public void printTable() {\n\t\tString s = String.format(\"Routing table (%.3f)\\n\"\n\t\t\t\t+ \"%10s %10s %8s %5s %10s \\t path\\n\", now, \"prefix\", \n\t\t\t\t\"timestamp\", \"cost\",\"link\", \"VLD/INVLD\");\n\t\tfor (Route rte : rteTbl) {\n\t\t\ts += String.format(\"%10s %10.3f %8.3f\",\n\t\t\t\t\trte.pfx.toString(), rte.timestamp, rte.cost);\n\n\t\t\ts += String.format(\" %5d\", rte.outLink);\n\n\t\t\tif (rte.valid == true)\n\t\t\t\ts+= String.format(\" %10s\", \"valid\");\n\t\t\telse\n\t\t\t\ts+= String.format(\" %10s \\t\", \"invalid\");\n\n\t\t\tfor (int r :rte.path)\n\t\t\t\ts += String.format (\" %s\",Util.ip2string(r));\n\n\t\t\tif (lnkVec.get(rte.outLink).helloState == 0)\n\t\t\t\ts += String.format(\"\\t ** disabled link\");\n\t\t\ts += \"\\n\";\n\t\t}\n\t\tSystem.out.println(s);\n\t}", "private List<String> print() throws EQException\n\t{\n\t\t// Retrieve the layout\n\t\tLayout layout = screenSetPrint.getLayout();\n\n\t\t// Setup the array list\n\t\tlines.clear();\n\n\t\t// LINE 1: function title\n\t\tif (printHeader)\n\t\t{\n\t\t\tprinterFormatter.printFieldTitle(screenSetPrint.getLayout().rtvLabel(fhd.getEquationUser()));\n\t\t\taddLine();\n\t\t\taddLine();\n\t\t}\n\n\t\t// LINE 2: before and after image column header\n\t\tif (functionDataBef != null)\n\t\t{\n\t\t\tprinterFormatter.printColumnHeader(true, true);\n\t\t}\n\t\telse if (functionDataBef == null && beforeImage)\n\t\t{\n\t\t\tprinterFormatter.printColumnHeader(false, true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprinterFormatter.printColumnHeader(true, false);\n\t\t}\n\t\taddLine();\n\n\t\t// LINE 3 and onwards\n\n\t\t// get all the output fieldSets\n\t\tList<InputFieldSet> fieldSets = screenSetPrint.getFunction().getInputFieldSets();\n\t\tfor (int i = 0; i < fieldSets.size(); i++)\n\t\t{\n\t\t\t// Retrieve the field set\n\t\t\tInputFieldSet fieldSet = fieldSets.get(i);\n\n\t\t\t// Print the record name\n\t\t\tif (printHeader)\n\t\t\t{\n\t\t\t\taddLine();\n\t\t\t\tprinterFormatter.printRecordName(fieldSet.getId(), fieldSet.rtvLabel(fhd.getEquationUser()));\n\t\t\t\taddLine();\n\t\t\t}\n\n\t\t\t// Retrieve the layout for this screen set\n\t\t\tDisplayAttributesSet displayAttributeSet = layout.getDisplayAttributesSet(fieldSet.getId());\n\t\t\tprint(fieldSet, displayAttributeSet, displayAttributeSet.getDisplayItems());\n\t\t}\n\n\t\treturn (getLines());\n\t}", "public void print(){\n String res = \"\" + this.number;\n for(Edge edge: edges){\n res += \" \" + edge.toString() + \" \";\n }\n System.out.println(res.trim());\n }", "public void flush() {\n\t\t\n\t\tif (Verbose.DEFAULT.equals(VERBOSE_LEVEL)) {\n\t\t\treturn;\t//no output\n\t\t}\n\t\t\n\t\t/* Verbose.VERBOSE | Verbose.ALL */\n\t\t\t\t\n\t\t/* Each constructor/ method to be crashed = non-private, non-abstract */\n\t\tStringBuffer sb = new StringBuffer(\"*** Methods and constructors under testclasses:\");\n\t\tfor (ClassUnderTest cPlan: plans.values()) {\n\t\t\tsb.append(LS+LS+cPlan.getWrappedClass().getCanonicalName()); //qualified class name\n\t\t\t\n\t\t\tfor (PlanSpaceNode pNode: cPlan.getChildren()) {\n\t\t\t\tFunctionNode fNode = (FunctionNode) pNode;\n\t\t\t\tsb.append(LS+\"\\t\"+fNode.toString());\t//method or constructor under testclasses\n\t\t\t}\t\t\t\t\n \t}\n \t\t\n\t\t\n\t /*\n\t * 2. Each value and public, non-abstract constructing function \n\t * of each needed instance and all of their children.\n\t */\n sb.append(LS+LS+LS+\"*** Rules to create needed values:\");\n\t\tsb.append(flushRules(true));\t\t\n\t\t\n \tif (Verbose.ALL.equals(VERBOSE_LEVEL)) {\n sb.append(LS+LS+LS+\"*** Rules that were not needed:\");\n \t\tsb.append(flushRules(false));\n \t}\n\n sb.append(LS+LS);\n System.out.println(sb);\n\t}", "public void printRoute() {\n\t\tString route = new String(\"[ROUTE INFO] - Cost: \");\n\t\tif(cost == 0) {\n\t\t\troute += \" Not Yet Calculated, \";\n\t\t}\n\t\telse {\n\t\t\troute += (\"\" + this.cost + \", \");\n\t\t}\n\t\troute += (\"Route Length: \" + solutionLength + \", Route: \");\n\t\troute += \"(\" + solutionRepresentation.get(0).getX() + \",\" + solutionRepresentation.get(0).getY() + \")\";\n\t\tfor(int i = 1; i < solutionLength; i++) {\n\t\t\troute+= \" -> (\" + solutionRepresentation.get(i).getX() + \",\" + solutionRepresentation.get(i).getY() + \")\";\n\t\t}\n\t\tSystem.out.println(route);\n\t}", "public void showRules() {\r\n data.rulesFlag = true;\r\n setChanged();\r\n notifyObservers(data);\r\n data.rulesFlag = false;\r\n }", "public static void printGraph(Model aGraph) {\r\n\t\tStmtIterator triples;\t\t\t\t\t//To loop through the triples\r\n\t\tStatement triple;\t\t\t\t\t\t//One of the triples\r\n\r\n\t\ttriples = aGraph.listStatements();\r\n\t\twhile (triples.hasNext()) {\r\n\t\t\ttriple = triples.next();\r\n//\t\t\tSystem.out.print(\"\\t\");\r\n\t\t\tprintTriple(triple);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public void printAll() {\n\t\tfor(int i = 0; i<r.length; i++)\n\t\t\tprintReg(i);\n\t\tprintReg(\"hi\");\n\t\tprintReg(\"lo\");\n\t\tprintReg(\"pc\");\n\t}", "@Override\n public String toString() {\n if (tree != null) {\n\n String s = tree.render();\n\n s += \"\\n\\nNumber of positive rules: \"\n + getMeasure(\"measureNumPositiveRules\") + \"\\n\";\n s += \"Number of conditions in positive rules: \"\n + getMeasure(\"measureNumConditionsInPositiveRules\") + \"\\n\";\n\n return s;\n } else {\n return \"No model built yet!\";\n }\n }", "public void print() {\r\n System.out.print(\"[id: <\" + this.id + \"> \");\r\n if (this.dimension > 0) {\r\n System.out.print(this.data[0]);\r\n }\r\n for (int i = 1; i < this.dimension * 2; i++) {\r\n System.out.print(\" \" + this.data[i]);\r\n }\r\n System.out.println(\"]\");\r\n }", "@Override\n\tpublic List<DisplayCriterion> displayDoc(List<Paragraph> ps) {\n\t\tList<DisplayCriterion> displaycriteria = new ArrayList<DisplayCriterion>();\n\t\tint i = 1;\n\t\tfor (Paragraph p : ps) {\n\t\t\tboolean ehrstatus = false;\n\t\t\tDisplayCriterion d = new DisplayCriterion();\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (Sentence s : p.getSents()) {\n\t\t\t\tsb.append(s.getDisplay());\n\t\t\t\tfor (Term t : s.getTerms()) {\n\t\t\t\t\tif (Arrays.asList(GlobalSetting.primaryEntities).contains(t.getCategorey())) {\n\t\t\t\t\t\tehrstatus = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\td.setCriterion(sb.toString());\n\t\t\td.setId(i++);\n\t\t\td.setEhrstatus(ehrstatus);\n\t\t\tdisplaycriteria.add(d);\n\t\t}\n\t\treturn displaycriteria;\n\t}", "public void print() {\r\n for (final Map.Entry<State, StatePolicyProperties> mapping : mStateMap.entrySet()) {\r\n final StatePolicyProperties properties = mapping.getValue();\r\n\r\n // Print the state\r\n mapping.getKey().print();\r\n System.out.println(\" State value = \" + properties.getValue());\r\n\r\n // Print the actions with their probability\r\n for (Map.Entry<Action, Double> actionProbability : properties.getActionProbabilities().entrySet()) {\r\n System.out.println(\" Action probability \" + actionProbability.getKey() + \" = \"\r\n + actionProbability.getValue());\r\n }\r\n // Print the actions with their value\r\n for (Map.Entry<Action, Double> actionValue : properties.getActionValues().entrySet()) {\r\n System.out.println(\" Action value \" + actionValue.getKey() + \" = \" + actionValue.getValue());\r\n }\r\n }\r\n System.out.println();\r\n }", "@Override\n\tpublic void print() {\n\t\tsuper.print();\n\t\tSystem.out.println(subjects);\n\t}", "private void output(FileWriter outputFile, Map<Query, List<Evaluation>> evalData, FactDatabase source, FactDatabase target) {\n\t\tPrintWriter out = new PrintWriter(outputFile, true);\n\t\tif(source != null && target != null){\n\t\t\tfor(Query rule: evalData.keySet()){\n\t\t\t\tfor(Evaluation eval: evalData.get(rule)){\n\t\t\t\t\tout.print(rule.getRuleString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.first);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.second);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.third);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tdetermineSource(eval, source, target);\n\t\t\t\t\tout.print(eval.source.toString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.println(eval.result.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\tfor(Query rule: evalData.keySet()){\n\t\t\t\tfor(Evaluation eval: evalData.get(rule)){\n\t\t\t\t\tout.print(rule.getRuleString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.first);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.second);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.println(eval.fact.third);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tout.close();\n\t}", "public String toString() {\n StringBuilder out = new StringBuilder(\"Requirements:\\n\");\n for (Fact fact: requiredFacts) {\n out.append(fact.toString());\n if (requiredFacts.indexOf(fact) < requiredFacts.size() - 1) out.append(reqIsAnd ? \"AND\\n\" : \"OR\\n\");\n }\n return out.toString();\n }", "public void outputDeclarative ()\n\t{\n\t\toutput (\"\\n> (dm)\\n\");\n\t\tif (model!=null) model.outputDeclarative();\n\t}", "public static void printBreakdown(Schedule s) {\n\t\tString pen = \"\";\n\t\tif (s.getCourseMinPenalty() != 1)\n\t\t\tpen = \" (pen_coursemin = \"+s.getCourseMinPenalty()+\")\";\n\t\tSystem.out.println(\"Cmin = \"+getCourseMinEval(s, 1)+\" * \"\n\t\t\t\t+s.getMinWeight()+\" = \"+getCourseMinEval(s, s.getMinWeight())+pen);\n\t\t\n\t\tpen = \"\";\n\t\tif (s.getLabMinPenalty() != 1)\n\t\t\tpen = \" (pen_labmin = \"+s.getLabMinPenalty()+\")\";\n\t\tSystem.out.println(\"Lmin = \"+getLabMinEval(s, 1)+\" * \"\n\t\t\t\t+s.getMinWeight()+\" = \"+getLabMinEval(s, s.getMinWeight())+pen);\n\t\t\n\t\tSystem.out.println(\"Pref = \"+getPrefEval(s, 1)+\" * \"\n\t\t\t\t+s.getPrefWeight()+\" = \"+getPrefEval(s, s.getPrefWeight()));\n\t\t\n\t\tpen = \"\";\n\t\tif (s.getPairPenalty() != 1)\n\t\t\tpen = \" (pen_notpaired = \"+s.getPairPenalty()+\")\";\n\t\tSystem.out.println(\"Pair = \"+getPairEval(s, 1)+\" * \"\n\t\t\t\t+s.getPairWeight()+\" = \"+getPairEval(s, s.getPairWeight())+pen);\n\t\t\n\t\tpen = \"\";\n\t\tif (s.getSecDiffPenalty() != 1)\n\t\t\tpen = \" (pen_section = \"+s.getSecDiffPenalty()+\")\";\n\t\tSystem.out.println(\"Sect = \"+getSecDiffEval(s, 1)+\" * \"\n\t\t\t\t+s.getSecDiffWeight()+\" = \"+getSecDiffEval(s, s.getSecDiffWeight())+pen);\n\t\t\n\t\tSystem.out.println(\"EVAL = \"+getEval(s));\n\t}", "public void printStatement() {\n\t\t\n\t}", "private void printProofAssert(String decl, Theorem t, SimpleLemma l) {\n\t\tfor (int i = l.nbPo() - 1; i >= 0; i--) {\n\t\t\tNonObviousGoal g = (NonObviousGoal) l.getGoal(i);\n\t\t\tif (printer.firstItem)\n\t\t\t\tprinter.firstItem = false;\n\t\t\telse\n\t\t\t\tstream.println(\";\");\n\t\t\tif (!decl.equals(\"\"))\n\t\t\t\tstream.print(\"!(\" + decl + \").\");\n\t\t\tstream.print(\"(\");\n\t\t\tEnumeration e = t.getHyp().elements();\n\t\t\tboolean first = true;\n\t\t\twhile (e.hasMoreElements()) {\n\t\t\t\tVirtualFormula vf = (VirtualFormula) e.nextElement();\n\t\t\t\tFormula f = vf.getFormula();\n\t\t\t\tif (printer.formulaRank.containsKey(f)) {\n\t\t\t\t\tif (!first)\n\t\t\t\t\t\tstream.print(\" &\");\n\t\t\t\t\telse\n\t\t\t\t\t\tfirst = false;\n\n\t\t\t\t\tstream.print(\" f_\" + printer.formulaRank.get(f).toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!first)\n\t\t\t\tstream.print(\" =>\");\n\t\t\tstream.print(\n\t\t\t\t\"f_\"\n\t\t\t\t\t+ printer.formulaRank.get(g.getFormula()).toString()\n\t\t\t\t\t+ \")\");\n\t\t}\n\t}", "private void outputGrammarRuleClass(PrintWriter out) {\n\t\t\n\t\tout.println(\" private class GrammarRule {\");\n\t\tout.println(\" String name;\");\n\t\tout.println(\" boolean multi_child, subrule;\");\n\t\tout.println(\" GrammarState[] graph;\");\n\t\tout.println();\n\t\tout.println(\" public GrammarRule(String n, boolean m, boolean s, GrammarState[] g) {\");\n\t\tout.println(\" name = n; multi_child = m; subrule = s; graph = g;\");\n\t\tout.println(\" }\");\n\t\tout.println(\" } // end GrammarRule\");\n\t\t\n\t}", "public String printList() {\n\n\t\treturn plan.toString();\n\t}", "public void displaySchema() {\n for (String s : attributes)\n System.out.print(s + \"\");\n }", "public void explain(PhysicalPlan pp, PigContext pc, PrintStream ps, String format)\n throws PlanException, VisitorException, IOException {\n if (\"xml\".equals(format)) {\n ps.println(\"<mapReducePlan>No MR jobs. Fetch only</mapReducePlan>\");\n }\n else {\n ps.println(\"#--------------------------------------------------\");\n ps.println(\"# Map Reduce Plan \");\n ps.println(\"#--------------------------------------------------\");\n ps.println(\"No MR jobs. Fetch only.\");\n }\n return;\n }", "public String toString(){\n\t\tStringBuffer r = new StringBuffer();\n\t\tr.append(\"{\");\n\t\tr.append(indexPatternSet+\"(\"+indexPattern+\")\"+type);\n\t\tr.append(\"}\");\n\t\treturn r.toString();\n\t}", "public void print() {\n\t\tfor (int count = 0; count < adjacencyList.length; count++) {\n\t\t\tLinkedList<Integer> edges = adjacencyList[count];\n\t\t\tSystem.out.println(\"Adjacency list for \" + count);\n\n\t\t\tSystem.out.print(\"head\");\n\t\t\tfor (Integer edge : edges) {\n\t\t\t\tSystem.out.print(\" -> \" + edge);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public String toString()\n\t\t{\n\t\t\tsynchronized(ExecutionPolicy.class)\n\t\t\t{\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\ttoStringIndent++;\n\t\t\t\tif (rules == null) sb.append(indent()).append(\"null\\n\");\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfor (ExecutionPolicy ep: rules) sb.append(ep.toString());\n\t\t\t\t}\n\t\t\t\ttoStringIndent--;\n\t\t\t\treturn sb.toString();\n\t\t\t}\n\t\t}", "private String getRulesOfBestSolutionAsHumanReadableString() {\n\t\t// TODO change this to actually save the text in a file, and maybe in a cleaner format...\n\t\tIndividual bestSolution = this.controller.getBestSolution();\n\t\t\n\t\tVector<Rule> bestSolutionRules = bestSolution.getRules();\n\n\t\tString humanReadableRulesOfBestSolution = \"Add element to summary if (\";\n\t\tfor (int i = 0; i < bestSolutionRules.size(); i++) {\n\t\t\thumanReadableRulesOfBestSolution += \" ( \"; \n\t\t\tint j = 0;\n\t\t\tfor (Entry<String, Integer> entry : bestSolutionRules.get(i).getThresholds().entrySet()) {\n\t\t\t\t\n\t\t\t\thumanReadableRulesOfBestSolution += entry.getKey() + \" > \" + entry.getValue();\n\t\t\t\tString logicalConnector = ( j < bestSolutionRules.get(i).getAndBetweens().size() ? (bestSolutionRules.get(i).getAndBetweens().get(j) ? \" && \" : \" OR \") : (\"\"));\n\t\t\t\thumanReadableRulesOfBestSolution += logicalConnector;\n\t\t\t\tj++;\n\t\t\t}\n\t\t\thumanReadableRulesOfBestSolution += \" )\";\n\t\t\tif ( bestSolutionRules.size() - 1 > i ) {\n\t\t\t\thumanReadableRulesOfBestSolution += \" || \"; \n\t\t\t}\n\t\t}\n\t\thumanReadableRulesOfBestSolution += \")\\n\";\n\t\t\n\t\treturn humanReadableRulesOfBestSolution;\n\t}", "public void printAdjacencyMatrix();" ]
[ "0.7971216", "0.6709356", "0.65834534", "0.64890873", "0.6442348", "0.635963", "0.6296129", "0.62509173", "0.6134726", "0.6072441", "0.58845973", "0.5846637", "0.57487524", "0.5728359", "0.56843287", "0.56602126", "0.5651356", "0.56500286", "0.559971", "0.55962145", "0.558015", "0.5565514", "0.55178255", "0.5509246", "0.5486098", "0.5477995", "0.5457052", "0.54105395", "0.5386419", "0.5378979", "0.5377392", "0.5370929", "0.5329612", "0.53202456", "0.5285622", "0.5282649", "0.5259764", "0.52487385", "0.5247369", "0.5238472", "0.52370447", "0.52329314", "0.5232373", "0.5228198", "0.5209943", "0.5208599", "0.5202843", "0.5199162", "0.51952344", "0.5176475", "0.51715136", "0.51670873", "0.51643944", "0.5164141", "0.5157823", "0.51525474", "0.51141775", "0.5112678", "0.50902766", "0.5089613", "0.508437", "0.50807434", "0.50764614", "0.5076304", "0.50740415", "0.507051", "0.5061851", "0.5054575", "0.50524294", "0.50360423", "0.5026847", "0.50218064", "0.5021439", "0.50205505", "0.50127", "0.50015354", "0.49988726", "0.4997206", "0.49925476", "0.4986956", "0.4979528", "0.49776095", "0.49766913", "0.49724385", "0.49541917", "0.49514094", "0.4951027", "0.4945657", "0.49389416", "0.4934219", "0.49332473", "0.4930403", "0.49244738", "0.49244663", "0.49238518", "0.49186307", "0.49174172", "0.4912262", "0.49006355", "0.4895271" ]
0.7345546
1
CHECKS IF A RULESET IS CONFLICTING WITH ANOTHER ONE BY CHECKING SUCCESSORS OUTPUT
public boolean isConflicting (RuleSet ruleset) { if (this.id == ruleset.id) return false; if (!this.getPrecursorWithID().sensorMatch(ruleset.getPrecursorWithID())) return false; for (int i = 0; i < this.getSuccessor().size(); i++) { if ((this.getSuccessor().getToken(i).isNotWildcard()) && (ruleset.getSuccessor().getToken(i).isNotWildcard())) { //if (this.getPrecursorOccurrencies() <= ruleset.getPrecursorOccurrencies()) return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RuleSet (RuleSet RS1, RuleSet RS2, SensorList sList, SensorMap sMap, RuleMap rMap) {\n \n // CREATING COMBINATION RULESET FROM RS1 & RS2\n \n this.references = new ArrayList();\n this.sList = sList;\n this.rulelist = RS1.rulelist;\n this.totalProb = 0.0;\n this.id = counter.incrementAndGet();\n this.precedences = new ArrayList ();\n Sensor precondition = RS1.getPrecursorWithID().merge(RS2.getPrecursorWithID());\n\n \n ArrayList <Integer> common_non_wildcarded_indexes = RS1.getSuccessor().detectCommonNonWilcardedIndexes(RS2.getSuccessor());\n\n Sensor root = new Sensor(RS1.getPrecursorWithID().tokenMap);\n \n int number = common_non_wildcarded_indexes.size();\n \n boolean insert;\n \n // THERE IS A CONFLICT ONLY IF SOME COMMON NON WILDCARDED INDEXES EXIST\n if (number >= 1) {\n SensorList conflicted_indexes_list = root.expand(common_non_wildcarded_indexes.get(0));\n \n if (number >= 2) { \n \n // Expanding the conflicted indexes in ArrayList\n for (int h = 2; h<=number; h++) {\n \n conflicted_indexes_list.expandListAt(common_non_wildcarded_indexes.get(h-1));\n }\n }\n \n for (int j = 0; j < conflicted_indexes_list.size(); j++) {\n \n // We only need to insert the Rules with postcondition corresponding to either RS1 or RS2\n //\n // So we check for post. matches in the first and then second RuleSet\n insert = false;\n\n // SEARCHING FOR MATCH IN FIRST RULESET\n for (int h1 = 0; h1 < RS1.size(); h1++) {\n ///\n if (RS1.getSuccessor(h1).sensorMatch(conflicted_indexes_list.getSensor(j+1))) {\n insert = true;\n \n break;\n }\n }\n \n // SEARCHING FOR MATCH IN SECOND RULESET\n if (!insert) {\n \n for (int h2 = 0; h2 < RS2.size(); h2++) {\n \n \n if (RS2.getSuccessor(h2).sensorMatch(conflicted_indexes_list.getSensor(j+1))) {\n insert = true;\n \n break;\n }\n \n\n }\n }\n \n // If the Rule postcondition was found in RS1 or RS2, we shall create it\n if (insert) {\n \n Rule rule = new Rule(precondition, conflicted_indexes_list.getSensor(j+1));\n \n rule.ruleset_id = this.id;\n \n int aa = sMap.getMatchingOccurencies(precondition);\n \n int tt = rMap.getMatchingOccurencies(rule);\n \n \n rule.prec_occurrencies = aa;\n rule.occurrencies = tt;\n \n this.rulelist.addRule(rule);\n this.add(rule);\n \n }\n \n }\n \n }\n \n \n // UPDATING RULESET PROBABILITY\n if (this.size() > 0) {\n for (int i = 0; i < this.size(); i++) {\n\n totalProb = totalProb + this.getRule(i).getProb();\n totalProb = Math.round(totalProb * 1000);\n totalProb = totalProb/1000;\n \n }\n }\n \n }", "@Test\n public void verifyAllRules() throws EdgeRuleNotFoundException {\n for (SchemaVersion v : schemaVersions.getVersions()) {\n Multimap<String, EdgeRule> all = edgeIngestor.getAllRules(schemaVersions.getDefaultVersion());\n\n // this part verifies the default properties\n // 1) can have only at most 1 containment edge between same node type pair\n // 2) if there is at least 1 cousin edge, there must be exactly 1 cousin edge with default=true\n for (String key : all.keySet()) {\n\n Collection<EdgeRule> edgeRuleCollection = all.get(key);\n\n boolean foundContainment = false; // can have at most 1 containment rel btwn same pair of node types\n boolean foundCousin = false;\n boolean cousinDefault = false; // if there is a cousin edge there must be at least 1 default cousin\n // defined\n Set<String> labels = new HashSet<>(); // all edges between the same pair must have different labels\n int cousinCount = 0;\n\n for (EdgeRule rule : edgeRuleCollection) {\n EdgeRule match = rule;\n // check containment\n if (!(\"NONE\".equals(match.getContains()))) {\n if (foundContainment) {\n fail(\"more than one containment edge defined for \" + v.toString() + \" \" + key);\n } else {\n foundContainment = true;\n }\n } else { // check cousin stuff\n foundCousin = true;\n cousinCount++;\n if (match.isDefault()) {\n if (!cousinDefault) {\n cousinDefault = true;\n } else {\n fail(\"more than one cousin edge defined as default for \" + v.toString() + \" \" + key);\n }\n }\n }\n\n // check labels\n String label = match.getLabel();\n if (labels.contains(label)) {\n fail(\"same label found for multiple edges for \" + v.toString() + \" \" + key);\n } else {\n labels.add(label);\n }\n }\n if (foundCousin && !cousinDefault && cousinCount > 1) {\n fail(\"there is at least one cousin edge but none are designated the default for \" + v.toString()\n + \" \" + key);\n }\n }\n }\n }", "public static List<ExtendRule> removeRedundantExtendedRules_transactionBased(List<ExtendRule> rules) {\n LOGGER.info(\"STARTED removeRedundantExtendedRules - transaction based\");\n LOGGER.info(\"Rules on start:\" + rules.size());\n ExtendRule defRule = rules.get(rules.size()-1);\n if (defRule.getAntecedent().getItems().size()>0)\n {\n LOGGER.warning(\"Default rule is not last rule. Returning null. Last rule:\" + defRule.toString() );\n \n return null;\n }\n Consequent defClass = defRule.getConsequent(); \n for (Iterator<ExtendRule> it = rules.iterator(); it.hasNext();) { \n ExtendRule PRCandidate = it.next();\n // PRCandidate = go through all rules with default class in the consequent\n if (!PRCandidate.getConsequent().toString().equals(defClass.toString()))\n {\n\n }\n // skip default rule\n else if (PRCandidate.equals(defRule))\n {\n \n } \n else{\n Set<Transaction> suppTran = PRCandidate.getAntecedent().getSupportingTransactions();\n // get transactions only CORRECTLY classified by the candidate rule\n Set<Transaction> consTran = PRCandidate.getConsequent().getSupportingTransactions();\n suppTran.retainAll(consTran);\n\n // Check if transactions correctly classified by pruning candidate intersect with transactions covered by those rules below prunCand in the rule list that assign to different than default class. If there are no such transactions PRCandidate can be removed\n boolean nonEmptyIntersection=false;\n boolean positionBelowPRCand = false;\n for (Iterator<ExtendRule> innerIt = rules.iterator(); innerIt.hasNext();) {\n ExtendRule candidateClash = innerIt.next();\n // candidateClash is PRCandidate, which would always evaluate to overlap!\n if (candidateClash.equals(PRCandidate))\n {\n positionBelowPRCand = true;\n continue;\n }\n if (!positionBelowPRCand) continue;\n // candidateClash = go through all rules with OTHER than default class in consequent \n if (candidateClash.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n\n // check if transactions covered by PRCandidate intersect with transactions covered by candidateClash \n\n for (Transaction t : candidateClash.getAntecedent().getSupportingTransactions())\n {\n\n if (suppTran.contains(t))\n {\n nonEmptyIntersection=true;\n }\n break;\n } \n if (nonEmptyIntersection)\n {\n //go to next PRCandidate \n break;\n } \n }\n if (nonEmptyIntersection == false)\n {\n //no other rule with different consequent covering at least one shared transaction was found\n //this rule can be removed\n LOGGER.fine(\"Removing rule:\" + PRCandidate.toString());\n it.remove();\n } \n }\n \n }\n LOGGER.info(\"Rules on finish:\" + rules.size());\n LOGGER.info(\"FINISHED removeRedundantExtendedRules - transaction based\");\n return rules;\n }", "public ValidationResult validateMerge(Concept concept1,\n Concept concept2);", "private void checkTaintOverwrite(Set<FlowAbstraction> in, Unit d, Set<FlowAbstraction> out) {\n // we are interested in assignments only \n if (d instanceof AbstractDefinitionStmt) {\n AbstractDefinitionStmt def = (AbstractDefinitionStmt) d;\n Value leftSide = def.getLeftOp();\n Value rightSide = def.getRightOp();\n // only check assignments, where the left side is a Local and the right side is a Constant\n if (leftSide instanceof Local && rightSide instanceof Constant) {\n d.removeTag(Tainted.NAME);\n Local untainted = (Local) leftSide;\n // now check, if the Local was tainted previously and remove it from the out set\n FlowAbstraction taint = isInTaintedSet(untainted, in);\n if(taint != null) {\n in.remove(taint);\n }\n }\n }\n }", "public void checkConsistency(List inconsistencies);", "@Override\r\n public boolean isSatisfied(Configuration cfg) {\r\n Set<Node> firstNodes = new HashSet<Node>();\r\n Set<Node> secondNodes = new HashSet<Node>();\r\n if (getFirstSet().size() == 0 || getSecondSet().size() == 0) {\r\n //FIXME debug log VJob.logger.error(this.toString() + \": Some sets of virtual machines are empty\");\r\n return false;\r\n }\r\n\r\n for (VirtualMachine vm : getFirstSet()) {\r\n if (cfg.isRunning(vm)) {\r\n firstNodes.add(cfg.getLocation(vm));\r\n }\r\n }\r\n for (VirtualMachine vm : getSecondSet()) {\r\n if (cfg.isRunning(vm)) {\r\n secondNodes.add(cfg.getLocation(vm));\r\n }\r\n }\r\n\r\n for (Node n : firstNodes) {\r\n if (secondNodes.contains(n)) {\r\n \tManagedElementList<Node> ns = new SimpleManagedElementList<Node>();\r\n ns.addAll(firstNodes);\r\n ns.retainAll(secondNodes);\r\n //FIXME debug log VJob.logger.error(this.toString() + \": Nodes host VMs of the two groups: \" + ns);\r\n return false;\r\n }\r\n }\r\n for (Node n : secondNodes) {\r\n if (firstNodes.contains(n)) {\r\n \tManagedElementList<Node> ns = new SimpleManagedElementList<Node>();\r\n ns.addAll(secondNodes);\r\n ns.retainAll(firstNodes);\r\n //FIXME debug log VJob.logger.error(this.toString() + \": Nodes host VMs of the two groups: \" + ns);\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public static List<ExtendRule> removeRedundantExtendedRules_rangeBased(List<ExtendRule> rules) {\n LOGGER.info(\"STARTED removeRedundantExtendedRules - range based\");\n LOGGER.info(\"Rules on start:\" + rules.size());\n ExtendRule defRule = rules.get(rules.size()-1);\n Consequent defClass = defRule.getConsequent(); \n for (Iterator<ExtendRule> it = rules.iterator(); it.hasNext();) { \n ExtendRule PRCandidate = it.next();\n // PRCandidate = go through all rules with default class in the consequent\n if (!PRCandidate.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n // skip default rule\n if (PRCandidate.equals(defRule))\n {\n continue;\n } \n ArrayList<RuleMultiItem> PR_items = PRCandidate.getAntecedent().getItems();\n //create hashmap for fast access\n HashMap<Attribute,RuleMultiItem> PR_itemsMap = new HashMap();\n for (RuleMultiItem rmi : PR_items)\n {\n PR_itemsMap.put(rmi.getAttribute(), rmi);\n }\n \n // check if there is no other rule classifying to different class that shares part of the region\n // matched by the antecedent of PRCandidate \n boolean clashingRuleFound=false;\n boolean positionBelowPRCand = false;\n for (Iterator<ExtendRule> innerIt = rules.iterator(); innerIt.hasNext();) {\n ExtendRule candidateClash = innerIt.next();\n // candidateClash is PRCandidate, which would always evaluate to overlap!\n\n if (candidateClash.equals(PRCandidate))\n {\n positionBelowPRCand=true;\n continue;\n }\n // candidateClash = go through all rules with OTHER than default class in consequent \n if (candidateClash.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n if (!positionBelowPRCand) continue;\n \n // check if at leat one literal in PRCandidate has empty intersection with Clash on shared attribute\n \n //in case there is no shared attribute, the intersection is non empty\n ArrayList<RuleMultiItem> literalsInClashOnSharedAtt = new ArrayList();\n for (RuleMultiItem clash_rmi : candidateClash.getAntecedent().getItems())\n {\n if (PR_itemsMap.containsKey(clash_rmi.getAttribute()))\n {\n literalsInClashOnSharedAtt.add(clash_rmi);\n }\n } \n if (literalsInClashOnSharedAtt.isEmpty())\n {\n clashingRuleFound =true;\n break;\n }\n // if there is NO intersection on at leat one of the shared attributes => no CLASH\n // ELSE => CLASH\n boolean attLeastOneAttDisjunct=true;\n for (RuleMultiItem clash_rmi : literalsInClashOnSharedAtt)\n {\n //PRCandidate has a literal created over the same attribute\n RuleMultiItem machingPR_RMI = PR_itemsMap.get(clash_rmi.getAttribute());\n\n //do values in the candidate clash intersect with values in PRCandidate?\n \n for (AttributeValue v : machingPR_RMI.getAttributeValues())\n {\n if (clash_rmi.getAttributeValues().contains(v))\n {\n attLeastOneAttDisjunct=false;\n }\n }\n if (attLeastOneAttDisjunct) // if we have non-empty intersection on one att we do not have to test the other ones, rule matches different part of the data space\n {\n //go to next PRCandidate \n break;\n } \n } \n if (!attLeastOneAttDisjunct)\n {\n //go to next PRCandidate \n clashingRuleFound=true;\n break;\n } \n }\n if (clashingRuleFound == false)\n {\n //no other rule with different consequent covering at least one shared value was found\n //this rule can be removed\n LOGGER.fine(\"Removing rule:\" + PRCandidate.toString());\n it.remove();\n } \n }\n LOGGER.info(\"Rules on finish:\" + rules.size());\n LOGGER.info(\"FINISHED removeRedundantExtendedRules - range based\");\n return rules;\n }", "@Test\r\n\tpublic void testRuleSets2() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0L, testAdminCon.size());\r\n\t\ttestAdminCon.add(micah, lname, micahlname, dirgraph1);\r\n\t\ttestAdminCon.add(micah, fname, micahfname, dirgraph1);\r\n\t\ttestAdminCon.add(micah, developPrototypeOf, semantics, dirgraph1);\r\n\t\ttestAdminCon.add(micah, type, sEngineer, dirgraph1);\r\n\t\ttestAdminCon.add(micah, worksFor, ml, dirgraph1);\r\n\t\t\r\n\t\ttestAdminCon.add(john, fname, johnfname,dirgraph);\r\n\t\ttestAdminCon.add(john, lname, johnlname,dirgraph);\r\n\t\ttestAdminCon.add(john, writeFuncSpecOf, inference, dirgraph);\r\n\t\ttestAdminCon.add(john, type, lEngineer, dirgraph);\r\n\t\ttestAdminCon.add(john, worksFor, ml, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(writeFuncSpecOf, subProperty, design, dirgraph1);\r\n\t\ttestAdminCon.add(developPrototypeOf, subProperty, design, dirgraph1);\r\n\t\ttestAdminCon.add(design, subProperty, develop, dirgraph1);\r\n\t\t\r\n\t\ttestAdminCon.add(lEngineer, subClass, engineer, dirgraph1);\r\n\t\ttestAdminCon.add(sEngineer, subClass, engineer, dirgraph1);\r\n\t\ttestAdminCon.add(engineer, subClass, employee, dirgraph1);\r\n\t\t\r\n\t\tString query = \"select (count (?s) as ?totalcount) where {?s ?p ?o .} \";\r\n\t\tTupleQuery tupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS_PLUS_FULL);\r\n\t\tTupleQueryResult result\t= tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(374, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\r\n\t\tRepositoryResult<Statement> resultg = testAdminCon.getStatements(null, null, null, true, dirgraph, dirgraph1);\r\n\t\t\r\n\t\tassertNotNull(\"Iterator should not be null\", resultg);\r\n\t\tassertTrue(\"Iterator should not be empty\", resultg.hasNext());\r\n\t\t\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.EQUIVALENT_CLASS);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(18, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS,SPARQLRuleset.INVERSE_OF);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(86, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(null,SPARQLRuleset.INVERSE_OF);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(18, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets((SPARQLRuleset)null, null);\r\n\t\ttupleQuery.setIncludeInferred(false);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(16, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t}", "private Collection<Rule> getRelevantRules(List<Expr> goals, Collection<Expr> edbList, Collection<Rule> idbList) {\n Set<Rule> relevant = new HashSet<Rule>();\n goals = new LinkedList<Expr>(goals);\n while (!goals.isEmpty()) {\n Expr expr = goals.remove(0);\n for (Rule rule : idbList) {\n if (rule.head.predicate.equals(expr.predicate) && !relevant.contains(rule)) {\n relevant.add(rule);\n goals.addAll(rule.body);\n }\n }\n }\n return relevant;\n }", "public static void cross(LogicProblem logicProblem, boolean applyChanges) \r\n throws RelationshipConflictException {\r\n// System.out.println(\"cross invoked\");\r\n HashMap<ItemPair,Relationship> relationshipTable = logicProblem.getRelationshipTable();\r\n\r\n HashSet<CategoryPair> categoryPairs = logicProblem.getCategoryPairs();\r\n \r\n for (CategoryPair categoryPair : categoryPairs) {\r\n //for (Category cat1 : logicProblem.getCategories()){\r\n // for (Category cat2 : logicProblem.getCategories()){\r\n // if (cat1!=cat2) {\r\n Category cat1 = categoryPair.first();\r\n Category cat2 = categoryPair.last();\r\n\r\n \r\n //for (Category cat1 : logicProblem.getCategories()){\r\n // for (Category cat2 : logicProblem.getCategories()){\r\n // if (cat1!=cat2) {\r\n for (Item item1 : cat1.getItems()){\r\n for (Item item2 : cat2.getItems()){\r\n Relationship sourceRelationship = relationshipTable.get(new ItemPair(item1,item2));\r\n if (sourceRelationship.getValue()==Relationship.ValueType.VALUE_YES) {\r\n// System.out.println(\"discovered VALUE_YES, setting up the cross\");\r\n for (Item itemA : cat1.getItems()){\r\n if (itemA != item1) {\r\n Relationship rel = relationshipTable.get(new ItemPair(itemA,item2));\r\n // could track superfluous and conflicts here\r\n if (rel.getValue() == Relationship.ValueType.VALUE_UNKNOWN) {\r\n Processor.setRelationship(logicProblem, applyChanges, rel, \r\n Relationship.ValueType.VALUE_NO,\r\n Relationship.LogicType.CROSS, sourceRelationship);\r\n// rel.setValue(Relationship.ValueType.VALUE_NO,Relationship.LogicType.CROSS,sourceRelationship);\r\n// System.out.println(\"created VALUE_NO relationship between \"+itemA.getName()+\" and \"+item2.getName()+ \" (CROSS)\");\r\n }\r\n }\r\n }\r\n for (Item itemB : cat2.getItems()){\r\n if (itemB != item2) {\r\n Relationship rel = relationshipTable.get(new ItemPair(item1,itemB));\r\n // could track superfluous and conflicts here\r\n if (rel.getValue() == Relationship.ValueType.VALUE_UNKNOWN) {\r\n Processor.setRelationship(logicProblem, applyChanges, rel, \r\n Relationship.ValueType.VALUE_NO,\r\n Relationship.LogicType.CROSS, sourceRelationship);\r\n// rel.setValue(Relationship.ValueType.VALUE_NO,Relationship.LogicType.CROSS,sourceRelationship);\r\n// System.out.println(\"created VALUE_NO relationship between \"+item1.getName()+\" and \"+itemB.getName()+ \" (CROSS)\");\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "public void displayConflictSet(Vector ruleSet) {\r\n textArea1.appendText(\"\\n\\n\" + \" -- Rules in conflict set:\\n\\n\");\r\n Enumeration enum2 = ruleSet.elements() ;\r\n while(enum2.hasMoreElements()) {\r\n Rule temp = (Rule)enum2.nextElement() ;\r\n textArea1.appendText(temp.name + \"(\" + temp.numAntecedents()+ \"), \" ) ;\r\n }\r\n }", "private void actOnRules() {\r\n\r\n\t\tfor(String key: myRuleBook.keySet())\r\n\t\t{\r\n\r\n\t\t\tRule rule = myRuleBook.get(key);\r\n\t\t\tSpriteGroup[] obedients = myRuleMap.get(rule);\r\n\r\n\t\t\tif(rule.isSatisfied(obedients))\r\n\t\t\t{\r\n\t\t\t\trule.enforce(obedients);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void pseudoTrueTuples(LogicProblem logicProblem, boolean applyChanges)\r\n throws RelationshipConflictException {\n \r\n HashMap<ItemPair,Relationship> relationshipTable = logicProblem.getRelationshipTable();\r\n HashSet<CategoryPair> categoryPairs = logicProblem.getCategoryPairs();\r\n \r\n// System.out.println(\"searching...\");\r\n //within a subgrid\r\n for (CategoryPair categoryPair : categoryPairs) {\r\n// System.out.println(\"Category pair:\" + categoryPair);\r\n //vertical and horizontal search\r\n for (final boolean verticalOrientation : new boolean[] { false, true } ) {\r\n\r\n Category subrowCategory = verticalOrientation?categoryPair.first():categoryPair.last();\r\n Category subcolumnCategory = verticalOrientation?categoryPair.last():categoryPair.first();\r\n\r\n //commenting \"vertical search\" \r\n //(subrows match first category's items\r\n // subcolumns match second category's items)\r\n\r\n //i (2 to floor(n/2)) is the number of elements in the combination tuple\r\n // i=2 in pseudoTrue pairs\r\n //(for subgrids of 5x5 items, looking for both pairs and triplets becomes redundant\r\n for (int i=2; i<=floor(logicProblem.getNumCategories()/2);i++) {\r\n\r\n //https://github.com/dpaukov/combinatoricslib3/wiki/v3.3.0#1-simple-combinations\r\n List<List<Item>> columnCombinations = Generator.combination(subcolumnCategory.getItems())\r\n .simple(i) //for pseudo true pairs, i=2\r\n .stream()\r\n .collect(Collectors.<List<Item>>toList());\r\n //for i=2, this would contain \r\n //Bethany, Donovan\r\n //Bethany, Elizabeth\r\n //...\r\n //Frederick, Peyton\r\n// columnCombinations.stream().forEach(l -> System.out.println(\r\n// (verticalOrientation?\"vertical\":\"horizontal\")+ \" combo: \"+l.toString()));\r\n\r\n //create the sets\r\n //for each combination, start over\r\n \r\n //columnTuple contains i items with which we will compute set intersections\r\n for (List<Item> columnItemTuple : columnCombinations) {\r\n //Bethany, Donovan\r\n \r\n //similarly, valueNoSets contains i sets of VALUE_NO relationships\r\n List<Set<Item>> valueNoSets = new ArrayList<>(); //size=i\r\n //build a set for each i item of columnTuple\r\n for (Item columnItem : columnItemTuple) {\r\n //Bethany\r\n Set<Item> valueNoSet = new HashSet<>(); //size = n\r\n for (Item rowItem : subrowCategory.getItems()) {\r\n //Haley's Comet ....\r\n if (relationshipTable.get(new ItemPair(rowItem, columnItem)).getValue() == Relationship.ValueType.VALUE_NO)\r\n //stacking all VALUE_NO relationship into vertical set\r\n valueNoSet.add(rowItem); //store into single subcolumn set \r\n }\r\n //adding each vertical set into list of sets\r\n if (valueNoSet.size() >= logicProblem.getNumItems() - i //for pairs, we need three VALUE_NO in the set\r\n && valueNoSet.size() < logicProblem.getNumItems()-1) //uniqueness will take or n-1 cases\r\n valueNoSets.add(valueNoSet); //store single subcolumn into multi-set\r\n }\r\n //magic!\r\n Set<Item> intersectionSet = new HashSet<>(); //avoid NPE when the next call is made\r\n if (valueNoSets.size()>=2) //don't compute intersections otherwise\r\n intersectionSet = Processor.multiSetIntersection(valueNoSets);\r\n\r\n if (intersectionSet.size()==logicProblem.getNumItems()-i) {\r\n \r\n// System.out.println(\"----> found candidates for pseudo true pairs!\");\r\n// intersectionSet.stream().forEach(l -> System.out.println(\"\\t\" + l.toString()));\r\n// System.out.println(\"\\t\\tvs.\");\r\n// columnItemTuple.stream().forEach(l -> System.out.println(\"\\t\" + l.toString()));\r\n \r\n //create predecessor list\r\n //we can only add the intersection output as predecessors\r\n ArrayList<Dependable> predecessors = new ArrayList<Dependable>();\r\n for (Item intersectionColumn : intersectionSet) {\r\n for (Item rowItem : columnItemTuple) {\r\n predecessors.add(relationshipTable.get(new ItemPair(rowItem, intersectionColumn)));\r\n }\r\n }\r\n\r\n\r\n //we have a bunch of work to do\r\n for (Item everyRowItem : subrowCategory.getItems()) {\r\n //for every row item not in the intersectionSet\r\n if (!intersectionSet.contains(everyRowItem)) {\r\n for (Item everyColumnItem : subcolumnCategory.getItems()) {\r\n //for every column item not in any of the columnTuple list\r\n if (!columnItemTuple.contains(everyColumnItem)) {\r\n Relationship rel = relationshipTable.get(new ItemPair(everyRowItem,everyColumnItem));\r\n if (rel.getValue()!=Relationship.ValueType.VALUE_NO)\r\n Processor.setRelationship(logicProblem, applyChanges, rel, \r\n Relationship.ValueType.VALUE_NO, Relationship.LogicType.PSEUDOTRUE,\r\n predecessors.toArray(new Relationship[predecessors.size()])); \r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "public interface ValidatingRule extends NormalisationRule\n{\n /**\n * Performs validation for the given stage by validating the input object using the criteria\n * defined for this rule.\n * \n * @param stage\n * A URI denoting the stage to use. This stage must be a valid stage for this type of\n * rule based on the result of validForStage(stage)\n * @param input\n * The input object to be validated by this rule.\n * @return True if the validation succeeded, or false otherwise.\n * @throws InvalidStageException\n * If the given stage was not valid.\n * @throws ValidationFailedException\n * If the validation failed.\n * @throws QueryAllException\n * If the validation process did not complete.\n */\n boolean normaliseByStage(URI stage, Object input) throws InvalidStageException, ValidationFailedException,\n QueryAllException;\n \n /**\n * Validates the given input object in the stage after query creation, but before query parsing.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterQueryCreation(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after query parsing, but before query\n * submission to the provider.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterQueryParsing(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after the RDF results have been imported from\n * the results for a provider, but before they have been merged into a pool with results from\n * other providers.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterResultsImport(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after the combined RDF statements in the pool\n * have been serialised to the results document.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterResultsToDocument(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after the RDF results have been merged into a\n * pool of RDF statements, but before they have been serialised to the results document.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterResultsToPool(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after results have been returned from a\n * provider, but before they have been parsed into RDF statements.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageBeforeResultsImport(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage where query variables are being normalised\n * based on the context of the provider.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageQueryVariables(Object input) throws ValidationFailedException;\n}", "private void resolveConflicts( Grammar grammar, State state, List<Action> tshifts, List<Action> ntshifts)\n {\n List<State> splits = new ArrayList<State>();\n\n Collections.sort( tshifts);\n Collections.sort( ntshifts);\n \n State currSplit = null;\n State prevSplit = null;\n for( int i=1, k=1; i<tshifts.size(); i++, k++)\n {\n prevSplit = currSplit;\n currSplit = null;\n \n Action prev = tshifts.get( i-1);\n Action curr = tshifts.get( i);\n \n if ( isOverlapping( prev.symbols, curr.symbols))\n {\n boolean conflict =\n (curr.type == Action.Type.tshift && prev.type == Action.Type.reduce) || \n (curr.type == Action.Type.reduce && prev.type == Action.Type.tshift) ||\n (curr.type == Action.Type.reduce && prev.type == Action.Type.reduce) ||\n (curr.type == Action.Type.tshift && prev.type == Action.Type.tshift);\n\n if ( conflict)\n {\n long prevPriority = prev.getPriority();\n long currPriority = curr.getPriority();\n if ( prevPriority < currPriority)\n {\n log.debugf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n log.debug( \"Conflict resolved: second rule(s) have higher priority\");\n deleteStackOp( state, k-1); k--;\n }\n else if ( prevPriority > currPriority)\n {\n log.debugf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n log.debug( \"Conflict resolved: first rule(s) have higher priority\");\n deleteStackOp( state, k); k--;\n }\n else\n {\n log.warnf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n log.warn( \"Conflict resolved by splitting state\");\n splitState( state, k, prevSplit, splits);\n currSplit = splits.get( splits.size() - 1);\n conflicts++;\n }\n }\n }\n }\n \n for( int i=1; i<ntshifts.size(); i++)\n {\n prevSplit = currSplit;\n currSplit = null;\n \n Action prev = ntshifts.get( i-1);\n Action curr = ntshifts.get( i);\n \n if ( curr.symbols[ 0] <= prev.symbols[ 0])\n {\n if ( curr.type == Action.Type.ntshift && prev.type == Action.Type.ntshift && curr.itemSet.equals( prev.itemSet))\n {\n log.warnf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n conflicts++;\n }\n }\n }\n \n if ( splits.size() > 0)\n {\n for( State split: splits) \n {\n log.debugf( \"Created new state %d to resolve conflict.\", split.index);\n removeNulls( split);\n \n for( StackOp shift: split.stackOps)\n {\n if ( shift == nullShift)\n throw new IllegalStateException();\n }\n }\n\n state.splits = splits.toArray( new State[ 0]);\n state.stackOps = null;\n state.gotos = null;\n }\n }", "private static void applyRules(Instances itemsets, Instances predictions) {\n\t\tfor (int i=0; i<predictions.numInstances(); ++i) {\n\t\t\tInstance instance = predictions.instance(i);\n\t\t\tboolean covered = true;\n\t\t\tfor (int j= 0; j<itemsets.numInstances(); ++j) {\n\t\t\t\tInstance rule = itemsets.instance(j);\n\t\t\t\tcovered = true;\n\t\t\t\tfor (int k=0; k< itemsets.numAttributes() -1 ; ++k) {\n\t\t\t\t\tif (rule.value(k)==1) {\n\t\t\t\t\t\tcovered = instance.value(k)==1;\n\t\t\t\t\t\tif(!covered){\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\t\n\t\t\t\t}\n\t\t\t\tif (covered) {\n\t\t\t\t\t\n\t\t\t\t\tinstance.setClassValue(rule.classValue());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void getSensorConditions(List<RuleInstance> rules,Set<Condition> conds)\n{\n for (int i = 0; i < rules.size(); ++i) {\n RuleInstance ri1 = rules.get(i);\n for (int j = i+1; j < rules.size(); ++j) {\n\t RuleInstance ri2 = rules.get(j);\n\t if (ri1.getStateId() == ri2.getStateId()) continue;\n\t addSensorConditions(ri1,ri2,conds);\n }\n }\n}", "private void validate() {\n mergeTransplantOpBase\n .mergeKeyBehaviors()\n .forEach(\n (key, mergeKeyBehavior) -> {\n switch (mergeKeyBehavior.getMergeBehavior()) {\n case NORMAL:\n if (mergeKeyBehavior.getResolvedContent() != null) {\n checkArgument(\n mergeKeyBehavior.getExpectedTargetContent() != null,\n \"MergeKeyBehavior.resolvedContent requires setting MergeKeyBehavior.expectedTarget as well for key %s\",\n key);\n }\n break;\n case DROP:\n case FORCE:\n checkArgument(\n mergeKeyBehavior.getResolvedContent() == null,\n \"MergeKeyBehavior.resolvedContent must be null for MergeBehavior.%s for %s\",\n mergeKeyBehavior.getMergeBehavior(),\n key);\n break;\n default:\n throw new IllegalArgumentException(\n \"Unknown MergeBehavior \" + mergeKeyBehavior.getMergeBehavior());\n }\n });\n }", "@Override\n AbstractConstraints<X> reconcile(X context, Meta<X> other, Conjunction<X> cs) {\n return cs;\n }", "void checkRule(String rule) throws IOException;", "public boolean has_unprocessed_rules();", "private void performRule(DataNormalizationRule rule, GraphModification modifications) throws DataNormalizationException, DatabaseException, SQLException {\n\t\tif (inputGraph.getGraphName().length() == 0) {\n\t\t\tthrow new DataNormalizationException(\"Empty Graph Name is not allowed.\");\n\t\t}\n\n\t\tif (modifications == null) {\n\t\t\t/**\n\t\t\t * In case there is no interest in what was changed just perform all the components in the correct order\n\t\t\t */\n\t\t\tperformComponents(rule, inputGraph.getGraphName());\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tgetDirtyConnection().execute(markTemporaryGraph, original);\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, backupQueryFormat, original, inputGraph.getGraphName()));\n\n\t\t\t\tperformComponents(rule, inputGraph.getGraphName());\n\n\t\t\t\tgetDirtyConnection().execute(markTemporaryGraph, modified);\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, backupQueryFormat, modified, inputGraph.getGraphName()));\n\n\t\t\t\t/**\n\t\t\t\t * Unfortunatelly \"SELECT ?s ?p ?o WHERE {{GRAPH <%s> {?s ?p ?o}} MINUS {GRAPH <%s> {?s ?p ?o}}}\"\n\t\t\t\t * throws \"Internal error: 'output:valmode' declaration conflicts with 'output:format'\"\n\t\t\t\t *\n\t\t\t\t * Therefore it is necessary to first create graphs with differences.\n\t\t\t\t */\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, diffQueryFormat, modified, original));\n\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, diffQueryFormat, original, inputGraph.getGraphName()));\n\n\t\t\t\tWrappedResultSet inserted = getDirtyConnection().executeSelect(String.format(Locale.ROOT, selectQueryFormat, modified));\n\n\t\t\t\t/**\n\t\t\t\t * All that is new to the transformed graph are insertions done by this rule (one of its components)\n\t\t\t\t */\n\t\t\t\twhile (inserted.next()) {\n\t\t\t\t\tmodifications.addInsertion(rule,\n\t\t\t\t\t\t\tinserted.getString(\"s\"),\n\t\t\t\t\t\t\tinserted.getString(\"p\"),\n\t\t\t\t\t\t\tinserted.getString(\"o\"));\n\t\t\t\t}\n\n\t\t\t\tWrappedResultSet deleted = getDirtyConnection().executeSelect(String.format(Locale.ROOT, selectQueryFormat, original));\n\n\t\t\t\t/**\n\t\t\t\t * All that is missing from the transformed graph are deletions done by this rule (one of its components)\n\t\t\t\t */\n\t\t\t\twhile (deleted.next()) {\n\t\t\t\t\tmodifications.addDeletion(rule,\n\t\t\t\t\t\t\tdeleted.getString(\"s\"),\n\t\t\t\t\t\t\tdeleted.getString(\"p\"),\n\t\t\t\t\t\t\tdeleted.getString(\"o\"));\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, dropBackupQueryFormat, original));\n\t\t\t\t} finally {}\n\t\t\t\ttry {\n\t\t\t\t\tgetDirtyConnection().execute(String.format(Locale.ROOT, dropBackupQueryFormat, modified));\n\t\t\t\t} finally {}\n\t\t\t\tgetDirtyConnection().execute(unmarkTemporaryGraph, original);\n\t\t\t\tgetDirtyConnection().execute(unmarkTemporaryGraph, modified);\n\t\t\t}\n\t\t}\n\t\tLOG.info(String.format(Locale.ROOT, \"Data Normalization rule %d applied: %s\", rule.getId(), rule.getLabel() != null ? rule.getLabel() : \"\"));\n\t}", "private int checkStatus(Concept concept_1, Concept concept_2) throws\n Exception {\n int reviewed = 0;\n\n if (JekyllKit.getCoreDataClient().getRelationshipCount(concept_1) > 1000) {\n MEMEToolkit.notifyUser(\"There are more than 1000 relationships\"\n + \"\\nfor the cluster of concepts:\"\n + concept_1.getIdentifier().toString()\n + \" and \"\n +\n ( (concept_2 == null) ? \"0\" :\n concept_2.getIdentifier().toString())\n + \"\\nThe check whether cluster has been reviewed\"\n + \"\\nbefore will not be performed.\");\n return reviewed;\n }\n\n JekyllKit.getCoreDataClient().populateRelationships(concept_1);\n Relationship[] rels = concept_1.getRestrictedRelationships(new\n BySourceRestrictor(RelSemantics.getCurrentSAB_SL()));\n\n for (int i = 0; i < rels.length; i++) {\n if (rels[i].getRelatedConcept().equals(concept_2)) {\n if (rels[i].getTimestamp().after(worklist_creation_date)) {\n reviewed = 1;\n }\n }\n }\n\n return reviewed;\n }", "private boolean purelySequentialDependent(\r\n\t\t\tfinal Rule r1, \r\n\t\t\tint indx_r1,\r\n\t\t\tfinal Rule r2,\r\n\t\t\tint indx_r2,\r\n\t\t\tGraph g) {\n\t\t\r\n\t\tfinal Match embedding = BaseFactory.theFactory().createMatch(r2, r1.getRight());\t\t\r\n\t\tembedding.setCompletionStrategy(this.strategy, true);\r\n\t\tboolean result = false;\r\n\t\twhile (embedding.nextCompletionWithConstantsChecking() && !result) {\r\n\t\t\tEnumeration<GraphObject> codom = embedding.getCodomain();\t\t\t\t\t\t\r\n\t\t\t// exist l21 : L2 -> R1\r\n\t\t\twhile (codom.hasMoreElements()) {\r\n\t\t\t\tGraphObject obj = codom.nextElement();\r\n\t\t\t\t// rule r1 produce at least one object which is used in LHS of r2\r\n\t\t\t\tif (!r1.getInverseImage(obj).hasMoreElements()) {\r\n\t\t\t\t\tresult = true;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (this.ruleSequence.isObjFlowActive()) {\r\n\t\t\t\t\t\tfinal ObjectFlow objFlow = this.ruleSequence.getObjFlowForRules(r1, indx_r1, r2, indx_r2);\r\n\t\t\t\t\t\tif (objFlow != null && !objFlow.isEmpty()) \r\n\t\t\t\t\t\t\tresult = pureEnablingAlongObjectFlow(embedding, objFlow);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// add match to matchSequence\r\n\t\t\t\t\tif (result)\r\n\t\t\t\t\t\tthis.ruleSequence.getMatchSequence().addTotalPureEnablingSourceMatch(r2, r1, embedding, indx_r2, indx_r1);\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak; \r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif (result) {\r\n\t\t\t\tboolean attrCondUsesIP = attrConditionUsesInputParameterRight(r2, r1, embedding);\r\n\t\t\t\t\t\r\n\t\t\t\tif (attrCondUsesIP) {\r\n\t\t\t\t\tsetRuleResult(indx_r2, r2.getName(), false, ApplicabilityConstants.PURE_ENABLING_PREDECESSOR, r1.getName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetRuleResult(indx_r2, r2.getName(), true, ApplicabilityConstants.PURE_ENABLING_PREDECESSOR, r1.getName());\t\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// TODO: apply r1, then r2 along the comatch of r2 to check NACs of r2\r\n//\t\t\tresult = isPurelyEnabledRuleApplicable(r1, r2, embedding, g);\r\n//\t\t\tif (result) {\r\n//\t\t\t\t// to test : add match to matchSequence\r\n//\t\t\t\tthis.ruleSequence.getMatchSequence().addTotalPureEnablingSourceOfMatch(r2, r1, embedding, indx_r2, indx_r1);\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tembedding.dispose();\r\n\t\tBaseFactory.theFactory().unsetAllTransientAttrValuesOfRule(r1);\r\n//\t\tr1.getRight().setNotificationRequired(true);\r\n\t\t\r\n\t\treturn result;\r\n\t}", "private void checkAtLeastOneRuleIsSelected() {\n\t\tsufficientRulesSelected = false;\n\t\tint checked = 0;\n\t\tControl[] controlArray = rulesGroup.getChildren();\n\n\t\tfor (Control elem : controlArray) {\n\t\t\tif (elem instanceof Button) {\n\t\t\t\tif (((Button) elem).getSelection()) {\n\t\t\t\t\tchecked++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (checked >= 1)\n\t\t\tsufficientRulesSelected = true;\n\t\tupdateFinishButton();\n\t}", "@Override\n\tprotected boolean rulesGeneration() {\n\t\tGlobal.logger.finer(\"--------------------- S101 rulesGeneration() ----------------- \");\n\t\t//Global.logger.finer(this.toString());\t\t\n\t\tif(activationGuards()){\n\t\t\ttry {\n\t\t\t\tthis.categories.beforeFirst();\n\t\t\t\t\n\t\t\t\twhile (!this.categories.isClosed() && this.categories.next()) {\n\t\t\t\t\tgroupName = this.categories.getString(\"name\");\n\t\t\t\t\tGlobal.logger.fine(\"Creating new S102 [\" + groupName + \", \" + 1 +\"] \");\n\t\t\t\t\tcreateRule(new S102(course_ID, groupName, 1));\n\t\t\t\t\t\n\t\t\t\t\tGlobal.logger.fine(\"Creating new S103 [\" + groupName + \", study ]\");\n\t\t\t\t\tcreateRule(new S103(course_ID, groupName, \"study\"));\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse \n\t\t\treturn false;\n\t\treturn true;\n\t}", "private void checkBinaryOperation(Set<FlowAbstraction> in, Unit d, Set<FlowAbstraction> out) {\n if (d instanceof AbstractDefinitionStmt) {\n AbstractDefinitionStmt def = (AbstractDefinitionStmt) d;\n Value leftSide = def.getLeftOp();\n Value rightSide = def.getRightOp();\n if(leftSide instanceof Local && rightSide instanceof AbstractBinopExpr) {\n AbstractBinopExpr expr = (AbstractBinopExpr) rightSide;\n FlowAbstraction taint1 = isInTaintedSet(expr.getOp1(), in);\n FlowAbstraction taint2 = isInTaintedSet(expr.getOp2(), in);\n if(taint1 != null || taint2 != null) {\n taint(leftSide, d, out);\n }\n }\n }\n }", "public boolean checkRules() {\n for (Rule rule: rules) {\n if (! rule.checkRegel(board)) { //problem with a rule\n return false;\n }\n }\n return true;\n }", "@Override\n public boolean rewritePre(Mutable<ILogicalOperator> opRef, IOptimizationContext context)\n throws AlgebricksException {\n\n boolean cboMode = this.getCBOMode(context);\n boolean cboTestMode = this.getCBOTestMode(context);\n\n if (!(cboMode || cboTestMode)) {\n return false;\n }\n\n // If we reach here, then either cboMode or cboTestMode is true.\n // If cboTestMode is true, then we use predefined cardinalities for datasets for asterixdb regression tests.\n // If cboMode is true, then all datasets need to have samples, otherwise the check in doAllDataSourcesHaveSamples()\n // further below will return false.\n ILogicalOperator op = opRef.getValue();\n if (!(joinClause(op) || ((op.getOperatorTag() == LogicalOperatorTag.DISTRIBUTE_RESULT)))) {\n return false;\n }\n\n // if this join has already been seen before, no need to apply the rule again\n if (context.checkIfInDontApplySet(this, op)) {\n return false;\n }\n\n //joinOps = new ArrayList<>();\n allJoinOps = new ArrayList<>();\n newJoinOps = new ArrayList<>();\n leafInputs = new ArrayList<>();\n varLeafInputIds = new HashMap<>();\n outerJoinsDependencyList = new ArrayList<>();\n assignOps = new ArrayList<>();\n assignJoinExprs = new ArrayList<>();\n buildSets = new ArrayList<>();\n\n IPlanPrettyPrinter pp = context.getPrettyPrinter();\n printPlan(pp, (AbstractLogicalOperator) op, \"Original Whole plan1\");\n leafInputNumber = 0;\n boolean canTransform = getJoinOpsAndLeafInputs(op);\n\n if (!canTransform) {\n return false;\n }\n\n convertOuterJoinstoJoinsIfPossible(outerJoinsDependencyList);\n\n printPlan(pp, (AbstractLogicalOperator) op, \"Original Whole plan2\");\n int numberOfFromTerms = leafInputs.size();\n\n if (LOGGER.isTraceEnabled()) {\n String viewInPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewInPlan\");\n LOGGER.trace(viewInPlan);\n }\n\n if (buildSets.size() > 1) {\n buildSets.sort(Comparator.comparingDouble(o -> o.second)); // sort on the number of tables in each set\n // we need to build the smaller sets first. So we need to find these first.\n }\n joinEnum.initEnum((AbstractLogicalOperator) op, cboMode, cboTestMode, numberOfFromTerms, leafInputs, allJoinOps,\n assignOps, outerJoinsDependencyList, buildSets, varLeafInputIds, context);\n\n if (cboMode) {\n if (!doAllDataSourcesHaveSamples(leafInputs, context)) {\n return false;\n }\n }\n\n printLeafPlans(pp, leafInputs, \"Inputs1\");\n\n if (assignOps.size() > 0) {\n pushAssignsIntoLeafInputs(pp, leafInputs, assignOps, assignJoinExprs);\n }\n\n printLeafPlans(pp, leafInputs, \"Inputs2\");\n\n int cheapestPlan = joinEnum.enumerateJoins(); // MAIN CALL INTO CBO\n if (cheapestPlan == PlanNode.NO_PLAN) {\n return false;\n }\n\n PlanNode cheapestPlanNode = joinEnum.allPlans.get(cheapestPlan);\n\n generateHintWarnings();\n\n if (numberOfFromTerms > 1) {\n getNewJoinOps(cheapestPlanNode, allJoinOps);\n if (allJoinOps.size() != newJoinOps.size()) {\n return false; // there are some cases such as R OJ S on true. Here there is an OJ predicate but the code in findJoinConditions\n // in JoinEnum does not capture this. Will fix later. Just bail for now.\n }\n buildNewTree(cheapestPlanNode, newJoinOps, new MutableInt(0));\n opRef.setValue(newJoinOps.get(0));\n\n if (assignOps.size() > 0) {\n for (int i = assignOps.size() - 1; i >= 0; i--) {\n MutableBoolean removed = new MutableBoolean(false);\n removed.setFalse();\n pushAssignsAboveJoins(newJoinOps.get(0), assignOps.get(i), assignJoinExprs.get(i), removed);\n if (removed.isTrue()) {\n assignOps.remove(i);\n }\n }\n }\n\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan after buildNewTree 1\");\n ILogicalOperator root = addRemainingAssignsAtTheTop(newJoinOps.get(0), assignOps);\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan after buildNewTree 2\");\n printPlan(pp, (AbstractLogicalOperator) root, \"New Whole Plan after buildNewTree\");\n\n // this will be the new root\n opRef.setValue(root);\n\n if (LOGGER.isTraceEnabled()) {\n String viewInPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewInPlanAgain\");\n LOGGER.trace(viewInPlan);\n String viewOutPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewOutPlan\");\n LOGGER.trace(viewOutPlan);\n }\n\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(\"---------------------------- Printing Leaf Inputs\");\n printLeafPlans(pp, leafInputs, \"Inputs\");\n // print joins starting from the bottom\n for (int i = newJoinOps.size() - 1; i >= 0; i--) {\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(i), \"join \" + i);\n }\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan\");\n printPlan(pp, (AbstractLogicalOperator) root, \"New Whole Plan\");\n }\n\n // turn of this rule for all joins in this set (subtree)\n for (ILogicalOperator joinOp : newJoinOps) {\n context.addToDontApplySet(this, joinOp);\n }\n\n } else {\n buildNewTree(cheapestPlanNode);\n }\n\n return true;\n }", "public void testCanApply() {\n\t\tthis.recordReturn(this.one, this.one.canApply(), true);\n\t\tthis.recordReturn(this.two, this.two.canApply(), true);\n\t\tthis.replayMockObjects();\n\t\tassertTrue(\"Should be able to apply if all changes can apply\", this.aggregate.canApply());\n\t\tthis.verifyMockObjects();\n\t}", "public void test_ck_03() {\n // part A - surprising reification\n OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null);\n OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null);\n \n Individual sub = model1.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n OntProperty pred = model1.createOntProperty(\"http://mytest#\");\n Individual obj = model1.createIndividual(\"http://mytest#i2\", model1.getProfile().CLASS());\n OntProperty probabilityP = model1.createOntProperty(\"http://mytest#prob\");\n \n Statement st = model1.createStatement(sub, pred, obj);\n model1.add(st);\n st.createReifiedStatement().addProperty(probabilityP, 0.9);\n assertTrue(\"st should be reified\", st.isReified());\n \n Statement st2 = model2.createStatement(sub, pred, obj);\n model2.add(st2);\n st2.createReifiedStatement().addProperty(probabilityP, 0.3);\n assertTrue(\"st2 should be reified\", st2.isReified());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP).addProperty(probabilityP, 0.3); //!!!\n // exception\n \n // Part B - exception in remove All\n Individual sub2 = model2.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP); //!!! exception\n \n sub2.addProperty(probabilityP, 0.3);\n sub2.removeAll(probabilityP); //!!! exception\n \n }", "@Override public boolean isValidated()\n{\n if (location_set.size() == 0 || !have_join) return false;\n\n return true;\n}", "private boolean checkAllMapsTo(\n Set<BooleanFormula> from,\n SSAMap startSSA,\n Set<BooleanFormula> to,\n SSAMap finishSSA,\n BooleanFormula transition\n ) throws SolverException, InterruptedException {\n return solver.isUnsat(bfmgr.and(\n fmgr.instantiate(bfmgr.and(from), startSSA),\n transition,\n fmgr.instantiate(bfmgr.not(bfmgr.and(to)), finishSSA)\n ));\n }", "private void checkInstanceOf(Set<FlowAbstraction> in, Unit d, Set<FlowAbstraction> out) {\n if (d instanceof AbstractDefinitionStmt) {\n AbstractDefinitionStmt def = (AbstractDefinitionStmt) d;\n Value leftSide = def.getLeftOp();\n Value rightSide = def.getRightOp();\n if(leftSide instanceof Local && rightSide instanceof AbstractInstanceOfExpr) {\n AbstractInstanceOfExpr expr = (AbstractInstanceOfExpr) rightSide;\n FlowAbstraction taint = isInTaintedSet(expr.getOp(), in);\n if(taint != null) {\n \t\n taint(leftSide, d, out);\n \n }\n }\n }\n }", "private boolean checkConflicts(DymonPatchRequest r,Collection<DymonPatchRequest> active)\n{\n if (active_requests.isEmpty()) return false;\n if (r.getPatchOverlap() == PatchOverlap.ANY) return false;\n\n for (DymonPatchRequest ar : active) {\n if (ar.getDuration() == 0 || ar.getPatchOverlap() == PatchOverlap.ANY) continue;\n if (r.excludeOverlap(ar.getRequestName())) return true;\n if (r.getPatchOverlap() == PatchOverlap.NONE) return true;\n if (ar.excludeOverlap(r.getRequestName())) return true;\n if (ar.getPatchOverlap() == PatchOverlap.NONE) return true;\n if (ar.getPatchOverlap() == PatchOverlap.CLASS ||\n\t r.getPatchOverlap() == PatchOverlap.CLASS) {\n\t for (String s1 : r.getClasses()) {\n\t for (String s2 : ar.getClasses()) {\n\t if (s1.equals(s2)) return true;\n\t }\n\t }\n }\n }\n\n return false;\n}", "private void enforce(PhysicalProperties outputProperty, List<PhysicalProperties> inputProperties) {\n putProperty(groupExpression, outputProperty, outputProperty, inputProperties);\n // groupExpression can satisfy the ANY type output property\n putProperty(groupExpression, outputProperty, new PhysicalProperties(), inputProperties);\n\n EnforceMissingPropertiesHelper enforceMissingPropertiesHelper = new EnforceMissingPropertiesHelper(context,\n groupExpression, curTotalCost);\n\n PhysicalProperties requiredProperties = context.getRequiredProperties();\n if (outputProperty.meet(requiredProperties)) {\n Pair<PhysicalProperties, Double> pair = enforceMissingPropertiesHelper.enforceProperty(outputProperty,\n requiredProperties);\n PhysicalProperties addEnforcedProperty = pair.first;\n curTotalCost = pair.second;\n\n // enforcedProperty is superset of requiredProperty\n if (!addEnforcedProperty.equals(requiredProperties)) {\n putProperty(groupExpression.getParent().getBestExpression(addEnforcedProperty),\n requiredProperties, requiredProperties, Lists.newArrayList(outputProperty));\n }\n } else {\n if (!outputProperty.equals(requiredProperties)) {\n putProperty(groupExpression, outputProperty, requiredProperties, inputProperties);\n }\n }\n\n if (curTotalCost < context.getCostUpperBound()) {\n context.setCostUpperBound(curTotalCost);\n }\n }", "private static boolean condenseConditional2_type1(Op03SimpleStatement ifStatement, List<Op03SimpleStatement> allStatements) {\n if (!(ifStatement.getStatement() instanceof IfStatement)) return false;\n\n final Op03SimpleStatement taken1 = ifStatement.getTargets().get(1);\n final Op03SimpleStatement nottaken1 = ifStatement.getTargets().get(0);\n if (!(nottaken1.getStatement() instanceof IfStatement)) return false;\n Op03SimpleStatement ifStatement2 = nottaken1;\n Op03SimpleStatement taken2 = ifStatement2.getTargets().get(1);\n Op03SimpleStatement nottaken2 = ifStatement2.getTargets().get(0);\n final Op03SimpleStatement nottaken2Immed = nottaken2;\n if (nottaken2Immed.getSources().size() != 1) return false;\n nottaken2 = Misc.followNopGotoChain(nottaken2, true, false);\n do {\n Op03SimpleStatement nontaken2rewrite = Misc.followNopGoto(nottaken2, true, false);\n if (nontaken2rewrite == nottaken2) break;\n nottaken2 = nontaken2rewrite;\n } while (true);\n if (!(taken1.getStatement() instanceof IfStatement)) return false;\n if (taken1.getSources().size() != 1) return false;\n Op03SimpleStatement ifStatement3 = taken1;\n Op03SimpleStatement taken3 = ifStatement3.getTargets().get(1);\n Op03SimpleStatement nottaken3 = ifStatement3.getTargets().get(0);\n Op03SimpleStatement notTaken3Source = ifStatement3;\n do {\n Op03SimpleStatement nontaken3rewrite = Misc.followNopGoto(nottaken3, true, false);\n if (nontaken3rewrite == nottaken3) break;\n notTaken3Source = nottaken3;\n nottaken3 = nontaken3rewrite;\n } while (true);\n\n // nottaken2 = nottaken3 = c\n if (nottaken2 != nottaken3) {\n // There's one final thing we can get away with - if these are both returns, and they are IDENTICAL\n // (i.e. same, AND for any variables accessed, ssa-same), then we can assume nottaken2 is a rewritten branch\n // to nottaken3.\n if (nottaken2.getStatement() instanceof ReturnStatement) {\n if (!nottaken2.getStatement().equivalentUnder(nottaken3.getStatement(), new StatementEquivalenceConstraint(nottaken2, nottaken3))) {\n return false;\n }\n } else {\n return false;\n }\n }\n if (taken2 != taken3) return false; // taken2 = taken3 = b;\n /*\n * rewrite as if ((w && z) || x)\n *\n *\n */\n IfStatement if1 = (IfStatement) ifStatement.getStatement();\n IfStatement if2 = (IfStatement) ifStatement2.getStatement();\n IfStatement if3 = (IfStatement) ifStatement3.getStatement();\n\n ConditionalExpression newCond = new BooleanExpression(\n new TernaryExpression(BytecodeLoc.combineShallow(if1, if2, if3),\n if1.getCondition().getNegated().simplify(),\n if2.getCondition().getNegated().simplify(),\n if3.getCondition().getNegated().simplify())).getNegated();\n// TernaryExpression\n// ConditionalExpression newCond =\n// new BooleanOperation(\n// new BooleanOperation(if1.getCondition(), if2.getCondition(), BoolOp.OR),\n// if3.getCondition(), BoolOp.AND);\n\n ifStatement.replaceTarget(taken1, taken3);\n taken3.addSource(ifStatement);\n taken3.removeSource(ifStatement2);\n taken3.removeSource(ifStatement3);\n\n nottaken1.getSources().remove(ifStatement);\n nottaken2Immed.replaceSource(ifStatement2, ifStatement);\n ifStatement.replaceTarget(nottaken1, nottaken2Immed);\n\n// nottaken3.removeSource(notTaken3Source);\n nottaken3.removeSource(notTaken3Source);\n\n ifStatement2.replaceStatement(new Nop());\n ifStatement3.replaceStatement(new Nop());\n ifStatement2.removeTarget(taken3);\n ifStatement3.removeTarget(taken3);\n\n ifStatement.replaceStatement(new IfStatement(BytecodeLoc.NONE, newCond));\n\n /*\n * Now we're cleared up, see if nottaken2immed actually jumps straight to its target.\n */\n if (nottaken2Immed.getSources().size() == 1) {\n if (nottaken2Immed.getSources().get(0).getIndex().isBackJumpFrom(nottaken2Immed)) {\n if (nottaken2Immed.getStatement().getClass() == GotoStatement.class) {\n Op03SimpleStatement nottaken2ImmedTgt = nottaken2Immed.getTargets().get(0);\n int idx = allStatements.indexOf(nottaken2Immed);\n int idx2 = idx + 1;\n do {\n Op03SimpleStatement next = allStatements.get(idx2);\n if (next.getStatement() instanceof Nop) {\n idx2++;\n continue;\n }\n if (next == nottaken2ImmedTgt) {\n // Replace nottaken2 with nottaken2ImmedTgt.\n nottaken2ImmedTgt.replaceSource(nottaken2Immed, ifStatement);\n ifStatement.replaceTarget(nottaken2Immed, nottaken2ImmedTgt);\n }\n break;\n } while (true);\n }\n }\n }\n\n return true;\n\n }", "boolean isRollbackOnConstraintViolation();", "private void applyTheRule() throws Exception {\n System.out.println();\n System.out.println();\n System.out.println();\n System.out.println(\"IM APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n System.out.println();\n if (parameter.rule.equals(\"1\")) {\n Rule1.apply(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"2\")) {\n Rule2.apply(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"3\")) {\n Rule3.all(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"3a\")) {\n Rule3.a(resultingModel);\n\n }\n\n if (parameter.rule.equals(\"3b\")) {\n Rule3.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"3c\")) {\n Rule3.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"4\")) {\n Rule4.all(resultingModel);\n }\n\n if (parameter.rule.equals(\"4a\")) {\n Rule4.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"4b\")) {\n Rule4.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"4c\")) {\n Rule4.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"r1\")) {\n Reverse1.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r2\")) {\n Reverse2.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r3\")) {\n Reverse3.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r3a\")) {\n Reverse3.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"r3b\")) {\n Reverse3.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"r3c\")) {\n Reverse3.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4\")) {\n Reverse4.all(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4a\")) {\n Reverse4.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4b\")) {\n Reverse4.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4c\")) {\n Reverse4.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"5\")){\n Rule5.apply(resultingModel);\n }\n\n System.out.println(\"IM DONE APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n\n this.resultingModel.addRule(parameter);\n //System.out.println(this.resultingModel.name);\n this.resultingModel.addOutputInPath();\n }", "private Set<String> crossCheckDependenciesAndResolve(Map<String, List<Dependency>> dependencies) throws MojoFailureException {\n Map<String, Map<String, Dependency>> lookupTable = new HashMap<>();\n for (String bom : dependencies.keySet()) {\n Map<String, Dependency> bomLookup = new HashMap<>();\n lookupTable.put(bom, bomLookup);\n\n for (Dependency dependency : dependencies.get(bom)) {\n String key = dependencyKey(dependency);\n bomLookup.put(key, dependency);\n }\n }\n\n Map<String, Set<VersionInfo>> inconsistencies = new TreeMap<>();\n Set<String> trueInconsistencies = new TreeSet<>();\n\n // Cross-check all dependencies\n for (String bom1 : dependencies.keySet()) {\n for (Dependency dependency1 : dependencies.get(bom1)) {\n String key = dependencyKey(dependency1);\n String version1 = dependency1.getArtifact().getVersion();\n\n for (String bom2 : dependencies.keySet()) {\n // Some boms have conflicts with themselves\n\n Dependency dependency2 = lookupTable.get(bom2).get(key);\n String version2 = dependency2 != null ? dependency2.getArtifact().getVersion() : null;\n if (version2 != null) {\n Set<VersionInfo> inconsistency = inconsistencies.get(key);\n if (inconsistency == null) {\n inconsistency = new TreeSet<>();\n inconsistencies.put(key, inconsistency);\n }\n\n inconsistency.add(new VersionInfo(dependency1, bom1));\n inconsistency.add(new VersionInfo(dependency2, bom2));\n\n if (!version2.equals(version1)) {\n trueInconsistencies.add(key);\n }\n }\n }\n }\n }\n\n // Try to solve with preferences\n Set<String> resolvedInconsistencies = new TreeSet<>();\n DependencyMatcher preferencesMatcher = new DependencyMatcher(this.preferences);\n for (String key : trueInconsistencies) {\n int preferred = 0;\n for (VersionInfo nfo : inconsistencies.get(key)) {\n if (preferencesMatcher.matches(nfo.getDependency())) {\n preferred++;\n }\n }\n\n if (preferred == 1) {\n resolvedInconsistencies.add(key);\n }\n }\n\n trueInconsistencies.removeAll(resolvedInconsistencies);\n\n if (trueInconsistencies.size() > 0) {\n StringBuilder message = new StringBuilder();\n message.append(\"Found \" + trueInconsistencies.size() + \" inconsistencies in the generated BOM.\\n\");\n\n for (String key : trueInconsistencies) {\n message.append(key);\n message.append(\" has different versions:\\n\");\n for (VersionInfo nfo : inconsistencies.get(key)) {\n message.append(\" - \");\n message.append(nfo);\n message.append(\"\\n\");\n }\n }\n\n throw new MojoFailureException(message.toString());\n }\n\n return resolvedInconsistencies;\n }", "@Test\n public void testProcessProtocolResearchAreaBusinessRules() throws Exception {\n ProtocolDocument document = getNewProtocolDocument();\n setProtocolRequiredFields(document);\n // check case 1\n assertTrue(rule.processProtocolResearchAreaBusinessRules(document));\n \n // check case 2\n ProtocolResearchArea dummyPRA0 = new ProtocolResearchArea();\n ResearchArea dummyRA0 = new ResearchArea();\n dummyRA0.setActive(true);\n dummyPRA0.setResearchAreas(dummyRA0);\n \n ProtocolResearchArea dummyPRA1 = new ProtocolResearchArea();\n ResearchArea dummyRA1 = new ResearchArea();\n dummyRA1.setActive(true);\n dummyPRA1.setResearchAreas(dummyRA1);\n \n ProtocolResearchArea dummyPRA2 = new ProtocolResearchArea();\n ResearchArea dummyRA2 = new ResearchArea();\n dummyRA2.setActive(true);\n dummyPRA2.setResearchAreas(dummyRA2);\n \n ProtocolResearchArea dummyPRA3 = new ProtocolResearchArea();\n ResearchArea dummyRA3 = new ResearchArea();\n dummyRA3.setActive(true);\n dummyPRA3.setResearchAreas(dummyRA3);\n \n List<ProtocolResearchAreaBase> pras = new ArrayList<ProtocolResearchAreaBase>();\n pras.add(dummyPRA0);\n pras.add(dummyPRA1);\n pras.add(dummyPRA2);\n pras.add(dummyPRA3);\n \n document.getProtocol().setProtocolResearchAreas(pras);\n \n assertTrue(document.getProtocol().getProtocolResearchAreas(0).getResearchAreas().isActive());\n assertTrue(document.getProtocol().getProtocolResearchAreas(1).getResearchAreas().isActive());\n assertTrue(document.getProtocol().getProtocolResearchAreas(2).getResearchAreas().isActive());\n assertTrue(document.getProtocol().getProtocolResearchAreas(3).getResearchAreas().isActive());\n \n assertTrue(rule.processProtocolResearchAreaBusinessRules(document));\n \n // check case 3\n assertTrue(document.getProtocol().getProtocolResearchAreas(0).getResearchAreas().isActive());\n \n dummyRA1.setActive(false);\n assertFalse(document.getProtocol().getProtocolResearchAreas(1).getResearchAreas().isActive());\n \n assertTrue(document.getProtocol().getProtocolResearchAreas(2).getResearchAreas().isActive());\n \n dummyRA3.setActive(false);\n assertFalse(document.getProtocol().getProtocolResearchAreas(3).getResearchAreas().isActive());\n \n assertFalse(rule.processProtocolResearchAreaBusinessRules(document));\n String errorPropertyKey = INACTIVE_RESEARCH_AREAS_PREFIX + SEPERATOR + \"1.3.\";\n assertError(errorPropertyKey, KeyConstants.ERROR_PROTOCOL_RESEARCH_AREA_INACTIVE);\n }", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "private void validateRights() {\n\n aRightsMapperUpdated = new ArrayList<>();\n aRightsMapperUpdated.clear();\n if (processName != null && processName.equalsIgnoreCase(getResources().getString(R.string.tor_creation))) {\n for (int i = 0; i < aRightsMapper.size(); i++) {\n if (aRightsMapper.get(i).getSectionName().contains(GenericConstant.PNC)) {\n\n aRightsMapperUpdated.add(aRightsMapper.get(i));\n\n } else if (aRightsMapper.get(i).getSectionName().contains(GenericConstant.POLE)) {\n\n aRightsMapperUpdated.add(aRightsMapper.get(i));\n }\n }\n } else if ((processName != null && processName.equalsIgnoreCase(getResources().getString(R.string.stop_process)))\n || (processName != null && processName.equalsIgnoreCase(getResources().getString(R.string.crime)))) {\n for (int i = 0; i < aRightsMapper.size(); i++) {\n if (aRightsMapper.get(i).getSectionName().contains(GenericConstant.POLE)) {\n\n aRightsMapperUpdated.add(aRightsMapper.get(i));\n }\n }\n } else {\n for (int i = 0; i < aRightsMapper.size(); i++) {\n if (aRightsMapper.get(i).getSectionName().contains(GenericConstant.PNC)) {\n aRightsMapperUpdated.add(aRightsMapper.get(i));\n } else if (aRightsMapper.get(i).getSectionName().contains(GenericConstant.ATHENA)) {\n aRightsMapperUpdated.add(aRightsMapper.get(i));\n } else if (aRightsMapper.get(i).getSectionName().contains(GenericConstant.STOPS)) {\n aRightsMapperUpdated.add(aRightsMapper.get(i));\n } else if (aRightsMapper.get(i).getSectionName().contains(GenericConstant.POLE)) {\n aRightsMapperUpdated.add(aRightsMapper.get(i));\n }\n }\n }\n }", "@Override\n public boolean isDirty() {\n return !conflicts.isEmpty() || super.isDirty();\n }", "boolean exactMatch(FlowRule rule);", "public boolean checkChangeDetection() throws Exception{\n\t\t\tint length = -1 ;\n\t\t\tFuzzyRule ruleRemove = null ;\n\t\t\tfor (FuzzyRule rule: rs){\n\t\t\t\tif (rule.getChangeStatus()){\n\t\t\t\t\tif (rule.getHistory().size()>length){\n\t\t\t\t\t\tlength = rule.getHistory().size() ;\n\t\t\t\t\t\tif (rule!=defaultRule)\n\t\t\t\t\t\t\truleRemove = rule ;\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tboolean drift = false ;\n\t\t\tif (ruleRemove!=null && rs.size()>1){\n\t\t\t\tif (chooseSingleRuleOption.isSet()) {\n\t\t\t\t\trs.remove(ruleRemove) ;\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tfor (FuzzyRule rule: rs){ \n\t\t\t\t\t\tif (rule!=ruleRemove){\n\t\t\t\t\t\t\tboolean tempDrift = rule.mergeWithSibling(ruleRemove) ;\n\t\t\t\t\t\t\tif (tempDrift){\n\t\t\t\t\t\t\t\trule.clearExtendedCandidates();\n\t\t\t\t\t\t\t\trule.clearStats();\n\t\t\t\t\t\t\t\trule.buildExtendedCandidates();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t drift = drift || tempDrift ;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\trs.remove(ruleRemove) ;\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn drift ;\n\t\t}", "private boolean isValid(){\n\n Set<ResourceSingle> checkSet = new HashSet<>();\n return shelves.stream()\n .map(Shelf::getCurrentType)\n .filter(Objects::nonNull)\n .allMatch(checkSet::add);\n }", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}", "boolean isOptionsConsistentIncludingAllRequired(Integer optionId1,\n Integer optionId2);", "@Test\n void _correctIfCaseTest() {\n\n actionApply();\n\n for (ReceiverPair receiverPair : dependedReceiverPairs) {\n for (AssingablePair assingablePair : incompatibleAssignablePairs) {\n verify(model).arithm(receiverPair.getVariableReceiver(), \"=\", assingablePair.getIndexAssignable());\n }\n }\n }", "private boolean completeConcurrentRules(\r\n\t\t\tfinal Rule r,\r\n\t\t\tfinal int rIndx,\r\n\t\t\tfinal List<List<ConcurrentRule>> crsOfRule,\r\n\t\t\tfinal int listIndx,\r\n\t\t\tfinal Hashtable<?, ?> matchmap) {\n \t\t\r\n\t\tboolean res = false;\r\n\t\tif (listIndx >= crsOfRule.size()) {\r\n\t\t\tint x = listIndx;\r\n\t\t\tint preIndx = rIndx-1;\r\n\t\t\tRule preRule = this.ruleSequence.getRule(preIndx);\r\n\t\t\tif (x == 0) {\r\n\t\t\t\tList<ConcurrentRule> list = this.makeConcurrentRulesDuetoDependency(preRule, preIndx, r, rIndx, matchmap);\t\t\t\t\r\n\t\t\t\tcrsOfRule.add(list);\r\n\t\t\t\tres = true;\r\n\t\t\t} else {\r\n\t\t\t\tList<ConcurrentRule>\r\n\t\t\t\tcrListOfPreRule = this.getConcurrentRulesOfRule(preRule, preIndx, x-1);\r\n\t\t\t\tif (crListOfPreRule == null || crListOfPreRule.isEmpty()) {\r\n\t\t\t\t\t// create a new list of lists to fill\r\n\t\t\t\t\tfinal List<List<ConcurrentRule>> \r\n\t\t\t\t\tconRuleListsOfPreRule = this.getListsOfConcurrentRulesOfRule(preRule, preIndx);\t\r\n\t\t\t\t\t// put this list to fill\r\n\t\t\t\t\tthis.completeConcurrentRules(preRule, rIndx-1, conRuleListsOfPreRule, x-1, matchmap);\r\n\t\t\t\t\t// get the (x-1) list\r\n\t\t\t\t\tcrListOfPreRule = this.getConcurrentRulesOfRule(preRule, preIndx, x-1);\r\n\t\t\t\t} \r\n\t\t\t\t\t\r\n\t\t\t\tif (crListOfPreRule != null) {\r\n\t\t\t\t\tfinal List<ConcurrentRule> list = new Vector<ConcurrentRule>();\r\n\t\t\t\t\tfor (int c=0; c<crListOfPreRule.size(); c++) {\r\n\t\t\t\t\t\tfinal ConcurrentRule cr = crListOfPreRule.get(c);\r\n\t\t\t\t\t\tlist.addAll(this.makeConcurrentRulesDuetoDependency(cr, r, matchmap));\r\n\t\t\t\t\t}\r\n\t\t\t\t\twhile (crsOfRule.size() < x) {\r\n\t\t\t\t\t\tcrsOfRule.add(new Vector<ConcurrentRule>());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcrsOfRule.add(list);\r\n\t\t\t\t\tres = true;\r\n\t\t\t\t}\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn res;\r\n\t}", "void setViolations(Set<ConstraintViolation<T>> violations);", "private void filterAllRuleSetsForConfAndLift()\n\t{\n\t\truleCollection.forEach(lastRules->{\n\t\t\t\n\t\t\tif(!ListHelper.isNullOrEmpty(lastRules))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Current Filter Rule Size:\"+lastRules.get(0).getRuleSize());\n\t\t\t}\n\t\t\t\n\t\t\tIterator<RuleCompartment<T>> iter = lastRules.iterator();\n\t\t\t\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tRuleCompartment<T> eachRule = iter.next();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint ruleLength = eachRule.getRuleSize();\n\t\t\t\t\t\t\t\n\t\t\t\tif(ruleLength<config.getMinRuleLength())\n\t\t\t\t{\n\t\t\t\t\titer.remove();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble conf = eachRule.calculateConfidence(storage, evaluation);\n\t\t\t\t\n\t\t\t\tif(conf < config.minConf())\n\t\t\t\t{\n\t\t\t\t\titer.remove();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif(config.minLift()>0)\n\t\t\t\t{\n\t\t\t\t\tdouble lift = eachRule.calculateLift(storage, evaluation);\n\t\t\t\t\t\n\t\t\t\t\tif(lift < config.minLift())\n\t\t\t\t\t{\n\t\t\t\t\t\titer.remove();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "boolean isExecuteMisfired(Collection<Integer> shardingItems);", "public ReportResult validateStages() {\n\t\tReportResult report = new ReportResult(scriptName + \" Script Report\");\n\n\t\tLocation lastApplicableLocation; // The last location that the entity was moved to\n\t\tif (getActionsForStage(1).containsKey(StageAction.START)) {\n\t\t\treport.addCheckMessage(\"Stage 1 contains a starting point for the entity\", ResultType.SUCCESS);\n\t\t\tlastApplicableLocation = ((LocationComponent) getActionsForStage(1).get(StageAction.START)).getValue();\n\t\t} else {\n\t\t\treport.addCheckMessage(\"Stage 1 does NOT contain a starting point for the entity\", ResultType.ERROR);\n\t\t\treturn report; // Further validation requires a starting position as reference\n\t\t}\n\n\t\tfor (int i = 1; i <= amountOfStages; i++) {\n\t\t\tMap<StageAction, StageComponent> actions = getActionsForStage(i);\n\n\t\t\tif (actions.isEmpty()) {\n\t\t\t\treport.addCheckMessage(\"Stage \" + i + \" is redundant: Has no actions\", ResultType.WARN);\n\t\t\t\tcontinue; // Without any actions, there is nothing more to validate here\n\t\t\t}\n\n\t\t\tint stopActionOccurrences = 0;\n\t\t\tfor (StageAction action : actions.keySet()) {\n\t\t\t\tif (action.equals(StageAction.WALK_TO)) {\n\t\t\t\t\tLocation location = ((LocationComponent) actions.get(action)).getValue();\n\t\t\t\t\tif (location.distance(lastApplicableLocation) > 20) {\n\t\t\t\t\t\treport.addCheckMessage(\"A \" + StageAction.WALK_TO.name()\n\t\t\t\t\t\t\t\t\t\t+ \" (Stage \" + i + \") action is more than 20 blocks from the last location, \"\n\t\t\t\t\t\t\t\t\t\t+ \"which will cause an execution error\",\n\t\t\t\t\t\t\t\tResultType.ERROR);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treport.addCheckMessage(\n\t\t\t\t\t\t\t\t\"The entity at Stage \" + i + \" walks no more than 20 blocks from the last location\",\n\t\t\t\t\t\t\t\tResultType.SUCCESS);\n\t\t\t\t\t}\n\n\t\t\t\t\tlastApplicableLocation = location;\n\t\t\t\t} else if (action.equals(StageAction.STOP)) {\n\t\t\t\t\tstopActionOccurrences++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (stopActionOccurrences == 0) {\n\t\t\t\treport.addCheckMessage(\"The script has no stop action meaning the entity won't despawn\",\n\t\t\t\t\t\tResultType.WARN);\n\t\t\t} else if (stopActionOccurrences > 1) {\n\t\t\t\treport.addCheckMessage(\"The script has a redundant stop action: More than 1 stop action found\",\n\t\t\t\t\t\tResultType.WARN);\n\t\t\t} else {\n\t\t\t\treport.addCheckMessage(\"There is a single stop action to end the script properly\", ResultType.SUCCESS);\n\t\t\t}\n\t\t}\n\n\t\treturn report;\n\t}", "private boolean runMultiSampleCase() {\n\t\tArrayList<Candidate> candidates = collectTrioCandidates();\n\n\t\t// Then, check the candidates for all trios around affected individuals.\n\t\tfor (Candidate c : candidates)\n\t\t\tif (isCompatibleWithTriosAroundAffected(c))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "@Override\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "public interface RMLMappingValidator {\n RMLValidatorResult validationResult = new RMLValidatorResult();\n\n /**\n *\n * @param triplesMapResources\n */\n public void checkTriplesMapResources(\n Map<Resource, TriplesMap> triplesMapResources);\n \n /**\n *\n * @param subjMap\n */\n public void checkSubjectMap(SubjectMap subjMap);\n\n /**\n *\n * @param triplesMap\n * @param statements\n * @param p\n * @param resource\n */\n public void checkEmptyStatements(TriplesMap triplesMap, \n List<Statement> statements, URI p, Resource resource);\n\n /**\n *\n * @param triplesMap\n * @param statements\n * @param p\n * @param termType\n */\n public void checkMultipleStatements(TriplesMap triplesMap, \n List<Statement> statements, URI p, String termType);\n\n /**\n *\n * @param constantValue\n * @param stringTemplate\n * @param referenceValue\n * @param stringValue\n * @param term\n */\n public void checkTermMap(\n Value constantValue, String stringTemplate, \n ReferenceMap referenceValue, Resource stringValue, Term term);\n\n /**\n *\n * @param resource\n * @param statements\n * @param p\n */\n public void checkStatements(\n Resource resource, List<Statement> statements, Term p);\n\n /**\n *\n * @param triplesMapSubject\n * @param iterators\n * @param referenceFormulation\n */\n public void checkIterator(\n Resource triplesMapSubject, List<Statement> iterators, \n QLVocabulary.QLTerm referenceFormulation);\n\n /**\n *\n * @param triplesMapSubject\n * @param sourceStatements\n */\n public void checkSource(\n Resource triplesMapSubject, List<Statement> sourceStatements);\n\n /**\n *\n * @param triplesMapSubject\n * @param logicalSourceStatements\n * @param triplesMap\n */\n public void checkLogicalSource(\n Resource triplesMapSubject, List<Statement> logicalSourceStatements, \n TriplesMap triplesMap);\n\n /**\n *\n * @param triplesMapSubject\n * @param statements\n */\n public void checkReferenceFormulation(Resource triplesMapSubject, \n List<Statement> statements);\n}", "@Override\n protected void flowThrough(Set<FlowAbstraction> in, Unit d, Set<FlowAbstraction> out) {\n Set<FlowAbstraction> taintsOfThisIteration = new HashSet<FlowAbstraction>();\n // several different checks for taints\n checkGetSecret(in, d, taintsOfThisIteration);\n checkTaintOverwrite(in, d, taintsOfThisIteration);\n checkAssignmentOfTaintedLocal(in, d, taintsOfThisIteration);\n checkAssignmentOfTaintedClassField(in, d, taintsOfThisIteration);\n checkLeak(in, d, taintsOfThisIteration);\n checkTaintedOperand(in, d, taintsOfThisIteration);\n\n // merge previously found taints with the taints of the current iteration\n merge(in, taintsOfThisIteration, out);\n flowThroughCount++;\n }", "private boolean constraintChecker(Norm norm1, Norm norm2) {\n\t\tif (norm1.getActivationConstraint() == null || norm1.getDeactivationConstraint() == null ||\n\t\t\tnorm2.getActivationConstraint() == null || norm2.getDeactivationConstraint() == null) {\n\t\t\t\n\t\t\tnorm1.setActivationConstraint(null);\n\t\t\tnorm2.setActivationConstraint(null);\n\t\t\tnorm1.setDeactivationConstraint(null);\n\t\t\tnorm2.setDeactivationConstraint(null);\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tConstraintType na1 = norm1.getActivationConstraint().getConstraintType();\n\t\tConstraintType nd1 = norm1.getDeactivationConstraint().getConstraintType();\n\t\t\n\t\tConstraintType na2 = norm2.getActivationConstraint().getConstraintType();\n\t\tConstraintType nd2 = norm2.getDeactivationConstraint().getConstraintType();\n\t\t\n\t\t//it is necessary only 3 tests\n\t\tif (!na1.equals(nd1) || !na2.equals(nd2) || !na1.equals(na2)) {\n\t\t\tnorm1.setActivationConstraint(null);\n\t\t\tnorm2.setActivationConstraint(null);\n\t\t\tnorm1.setDeactivationConstraint(null);\n\t\t\tnorm2.setDeactivationConstraint(null);\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// If the activation conditions are actions\n\t\tif (norm1.getActivationConstraint().getConstraintType().equals(ConstraintType.ACTIONTYPE)\n\t\t\t\t&& norm1.getActivationConstraint().getConstraintType().equals(ConstraintType.ACTIONTYPE)) {\n\n\t\t\t//todo...o tratamento vai ser realizado no futuro, caso necessário\n\t\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t//\n\t\t//at this moment the constrainttype are both DATETYPE, so it is not necessary more comparisons\n\t\t//\n\t\t\n\t\tDateTime d1Begin = ((ConstraintDate) norm1.getActivationConstraint()).getDate();\n\t\tDateTime d1End = ((ConstraintDate) norm1.getDeactivationConstraint()).getDate();\n\t\tDateTime d2Begin = ((ConstraintDate) norm2.getActivationConstraint()).getDate();\n\t\tDateTime d2End = ((ConstraintDate) norm2.getDeactivationConstraint()).getDate();\n\t\t\n\t\tboolean r = this.compareDateIntervals(d1Begin, d1End, d2Begin, d2End);\n\t\treturn r;\n\t}", "private boolean checksetunions(Set<String> set, HashMap<String, ArrayList<String>> c) {\n\t\tObject[] ckeys = c.keySet().toArray();\r\n\t\tfor (int i = 0; i < c.keySet().size(); i++) {\r\n\t\t\tif (c.get(ckeys[i]).containsAll(set)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean executeCommand() { remember the current state of 'my' way\n //\n super.executeCommand();\n\n // replace the list of nodes of 'my' way by the list of merged\n // nodes\n //\n for (Node n:mergedNodeList) {\n if (! getLayer().data.getNodes().contains(n)) {\n logger.warning(tr(\"Main dataset does not include node {0}\", n.toString()));\n }\n }\n conflict.getMy().setNodes(mergedNodeList);\n rememberConflict(conflict);\n return true;\n }", "public void testAllowDeterminedByRuleOrder()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\"})));\n \n _ruleSet.grant(1, \"usera\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"aclgroup\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }", "private static boolean checkForDifferentStatement(Pair<ForStmt, ForStmt> pair) {\n return checkEmptyAndNotLists(retrieveForInitialization(pair.getKey()), retrieveForInitialization(pair.getValue())) ||\n checkEmptyAndNotLists(retrieveForInitialization(pair.getValue()), retrieveForInitialization(pair.getKey())) ||\n checkIsPresentAndNotForCompare(pair.getKey(), pair.getValue()) || checkIsPresentAndNotForCompare(pair.getValue(), pair.getKey()) ||\n checkEmptyAndNotLists(retrieveForUpdate(pair.getKey()), retrieveForUpdate(pair.getValue())) ||\n checkEmptyAndNotLists(retrieveForUpdate(pair.getValue()), retrieveForUpdate(pair.getKey()));\n }", "boolean isSetFurtherRelations();", "private void checkConstructOfUniqueness(Set<Construct> constructs, Map<Construct, Set<ValidationResult>> invalidConstructs) throws TMCLValidatorException{\n\t\t\n\t\tMap<String, Construct> checkMap = new HashMap<String, Construct>();\n\t\tMap<String,Set<Construct>> invalidConstructMap = new HashMap<String, Set<Construct>>();\n\t\t\n\t\tfor(Construct construct:constructs){\n\t\t\t\n\t\t\tString value;\n\t\t\t\n\t\t\tif(construct instanceof Occurrence)\n\t\t\t\tvalue = ((Occurrence)construct).getValue();\n\t\t\telse value = ((Name)construct).getValue();\n\t\t\t\n\t\t\tConstruct prevConstruct = null;\n\t\t\t\n\t\t\tif((prevConstruct = checkMap.put(value, construct)) != null){\n\t\t\t\t// value is not unique\n\t\t\t\t\n\t\t\t\tSet<Construct> ununiqeConstructs = null;\n\t\t\t\t\n\t\t\t\tif((ununiqeConstructs = invalidConstructMap.get(value)) == null){\n\t\t\t\t\tununiqeConstructs = new HashSet<Construct>();\n\t\t\t\t\tununiqeConstructs.add(prevConstruct);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tununiqeConstructs.add(construct);\n\t\t\t\tinvalidConstructMap.put(value, ununiqeConstructs);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Map.Entry<String, Set<Construct>>entry:invalidConstructMap.entrySet()){\n\n\t\t\tfor(Construct invalidConstruct:entry.getValue()){\n\t\t\t\t\n\t\t\t\tif(invalidConstruct instanceof Occurrence){\n\t\t\t\t\taddInvalidConstruct(invalidConstruct, \"The value '\" + entry.getKey() + \"' of the occurrence violates the unique value constraint.\", invalidConstructs);\n\t\t\t\t}else{\n\t\t\t\t\taddInvalidConstruct(invalidConstruct, \"The value '\" + entry.getKey() + \"' of the name construct violates the unique value constraint.\", invalidConstructs);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "private SingleConstraintMatch mergeConstraints(final RuntimeMatch currentMatch) {\n if (currentMatch.uncovered && denyUncoveredHttpMethods) {\n return new SingleConstraintMatch(SecurityInfo.EmptyRoleSemantic.DENY, Collections.<String>emptySet());\n }\n final Set<String> allowedRoles = new HashSet<>();\n for (SingleConstraintMatch match : currentMatch.constraints) {\n if (match.getRequiredRoles().isEmpty()) {\n return new SingleConstraintMatch(match.getEmptyRoleSemantic(), Collections.<String>emptySet());\n } else {\n allowedRoles.addAll(match.getRequiredRoles());\n }\n }\n return new SingleConstraintMatch(SecurityInfo.EmptyRoleSemantic.PERMIT, allowedRoles);\n }", "private boolean checkForAction(){\n IndividualAction thisAction = checkTriggers();\n if(thisAction.getTriggers() == null){\n return false;\n }\n if(!checkSubjects(thisAction.getSubjects())){\n return false;\n }\n doConsumed(thisAction.getConsumed());\n doProduce(thisAction.getProduced());\n results.add(thisAction.getNarration());\n\n return true;\n }", "public int consolidate (RuleList closedList, RuleMap rMap) {\n \n int steps = 0;\n boolean insert;\n // IF THE RULESET IS ALREADY COMPLETE, NO NEED TO FIND RULES\n if (this.totalProb < 0.999) {\n //System.out.println(\"Incomplete RuleSet : \" ); this.printRules();\n for (int l = 0 ; l < this.references.size(); l++) {\n RuleList r = closedList.getRuleByID(this.references.get(l)).getSameRuleSetRules(sList, closedList, rMap);\n\n for (int i = 0; i < r.size(); i++) {\n\n insert = true;\n // CHECK FOR MATCHES\n for (int h = 0; h < this.references.size(); h++) {\n if ( r.getRule(i).ruleMatch_exact(closedList.getRuleByID(this.references.get(h)))) {\n insert = false;\n }\n } \n if (insert) { \n r.getRule(i).prec_occurrencies = closedList.getRuleByID(this.references.get(0)).prec_occurrencies;\n closedList.addRule(r.getRule(i));\n this.references.add(r.getRule(i).id);\n this.totalProb = this.totalProb + r.getRule(i).getProb();\n this.totalProb = Math.round(this.totalProb * 1000);\n this.totalProb = this.totalProb/1000;\n\n steps++;\n }\n }\n }\n\n }\n \n return steps;\n }", "protected Set<Norm> regulateConflict(Conflict conflict, Goal goal) {\n\t\tSet<Norm> createdNorms = new HashSet<Norm>();\n\t\tList<Long> blamedAgents = new ArrayList<Long>();\n\t\tView sourceView = conflict.getConflictSource().getView(-1);\n\t\tList<EnvironmentAgentAction> agActions;\n\t\tEnvironmentAgentContext agContext;\n\t\tEnvironmentAgentAction agAction;\n\n\t\t/* Get a list of those agents that are considered as responsible \n\t\t * for the conflict (requires domain knowledge) */\n\t\tblamedAgents = this.cbrMachine.getConflictSource(conflict);\n\n\t\t/* Create a norm that regulates the behavior of each agent\n\t\t * blamed for the conflict in the context previous to the conflict */\n\t\tfor(Long blamedAgentId : blamedAgents) {\n\n\t\t\t/* Get agent's context and action */\n\t\t\tagContext = this.dmFunctions.agentContext(blamedAgentId, sourceView);\n\t\t\tagActions = this.dmFunctions.agentAction(blamedAgentId, \n\t\t\t\t\tconflict.getConflictSource());\n\t\t\tagAction = agActions.get(random.nextInt(agActions.size()));\n\n\t\t\t/* Check that the agent has a valid context */\n\t\t\tif(agContext == null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t/* Check that no norms applied to the agent in the state\n\t\t\t * previous to the state containing the conflict */\n\t\t\tif(this.normsAppliedToAgentContext(agContext)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t/* Create a new norm prohibiting that action in that context */\n\t\t\tSetOfPredicatesWithTerms precondition = agContext.getDescription();\n\t\t\tif(!precondition.isEmpty()) {\n\t\t\t\tNorm norm = new Norm(precondition, NormModality.Prohibition, \n\t\t\t\t\t\tagAction, goal);\n\t\t\t\t\n\t\t\t\tcreatedNorms.add(norm);\n\t\t\t\t\n\t\t\t\t/* Update metrics */\n\t\t\t\tthis.nsMetrics.newNonRegulatedConflictsSolvedThisTick();\n\t\t\t}\n\t\t}\n\t\treturn createdNorms;\n\t}", "@Test\n\tpublic void testcheckConflict() {\n\t\tActivity a1 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"MW\", 1330, 1445);\n\t\tActivity a2 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"TH\", 1330, 1445);\n\t\t try {\n\t\t a1.checkConflict(a2);\n\t\t assertEquals(\"Incorrect meeting string for this Activity.\", \"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"Incorrect meeting string for possibleConflictingActivity.\", \"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t a2.checkConflict(a1);\n\t\t assertEquals(\"Incorrect meeting string for this Activity.\", \"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"Incorrect meeting string for possibleConflictingActivity.\", \"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t } catch (ConflictException e) {\n\t\t fail(\"A ConflictException was thrown when two Activities at the same time on completely distinct days were compared.\");\n\t\t }\n\t\t a1.setMeetingDays(\"TH\");\n\t\t a1.setActivityTime(1445, 1530);\n\t\t try {\n\t\t a1.checkConflict(a2);\n\t\t fail(); //ConflictException should have been thrown, but was not.\n\t\t } catch (ConflictException e) {\n\t\t //Check that the internal state didn't change during method call.\n\t\t assertEquals(\"TH 2:45PM-3:30PM\", a1.getMeetingString());\n\t\t assertEquals(\"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t }\n\t}", "private Collection<ReplayState<C>> executeEnabledMismatches(ReplayState<C> state, Collection<Transition> transitions) {\r\n\t\tCollection<ReplayState<C>> states = new ArrayList<ReplayState<C>>();\r\n\t\tif (!state.trace.isEmpty()) {\r\n\t\t\tfor (Transition transition : transitions) {\r\n\t\t\t\tif (transition.isInvisible() || !map.containsKey(transition)) {\r\n\t\t\t\t} else if (!map.get(transition).equals(state.trace.get(0))) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Determine new marking.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tMarking newMarking;\r\n\t\t\t\t\t\tsynchronized (semantics) {\r\n\t\t\t\t\t\t\tsemantics.setCurrentState(state.marking);\r\n\t\t\t\t\t\t\tsemantics.executeExecutableTransition(transition);\r\n\t\t\t\t\t\t\tnewMarking = semantics.getCurrentState();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Determine new cost.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tC newCost = addOperator.add(state.cost, ReplayAction.INSERT_ENABLED_MISMATCH, transition, null);\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Add new state.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\taddState(states, state, newMarking, transition, newCost, state.trace);\r\n\t\t\t\t\t} catch (IllegalTransitionException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn states;\r\n\t}", "@Override\n\tpublic boolean canApply() {\n\t\tif ((this.alignment.getFlowA().getName().toLowerCase().contains(\"basic flow\") \n\t\t\t&& this.alignment.getFlowB().getName().toLowerCase().contains(\"basic flow\"))\n\t\t\t&& (this.alignment.getSimilarBlocksFromA().size()>1\n\t\t\t&& this.alignment.getSimilarBlocksFromB().size()>1)){\n\t\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n\tpublic void deleteA_useAwithB_danglingEdgeTest() {\n\t\tHenshinResourceSet resourceSet = new HenshinResourceSet(PATH);\n\n\t\t// Load the module:\n\t\tModule module = resourceSet.getModule(\"simpleTgRules.henshin\", false);\n\n\t\tUnit deleteAUnit = module.getUnit(\"deleteA\");\n\t\tRule deleteARule = (Rule) deleteAUnit;\n\n\t\tUnit useAwithBUnit = module.getUnit(\"useAwithB\");\n\t\tRule useAwithBRule = (Rule) useAwithBUnit;\n\n\t\tConflictAnalysis atomicCoreCPA = new ConflictAnalysis(deleteARule, useAwithBRule);\n\t\tList<ConflictAtom> computedConflictAtoms = atomicCoreCPA.computeConflictAtoms();\n\t\t// should be 0 due to dangling edge condition. First rule deletes a node\n\t\t// and second rule requires to have an edge on that node!\n\t\tAssert.assertEquals(0, computedConflictAtoms.size());\n\t\t// System.out.println(\"number of conflict atoms:\n\t\t// \"+computedConflictAtoms.size());\n\t\t// for(ConflictAtom conflictAtom : computedConflictAtoms){\n\t\t// System.out.println(conflictAtom);\n\t\t// }\n\n\t\tAtomCandidateComputation candComp = new AtomCandidateComputation(deleteARule, useAwithBRule);\n\t\tList<Span> conflictAtomCandidates = candComp.computeAtomCandidates();\n\n\t\tSet<MinimalConflictReason> reasons = new HashSet<>();//\n\t\tfor (Span candidate : conflictAtomCandidates) {\n\t\t\tnew MinimalReasonComputation(deleteARule, useAwithBRule).computeMinimalConflictReasons(candidate, reasons);\n\t\t}\n\t\t// should be 0 due to dangling edge condition. First rule deletes a node\n\t\t// and second rule requires to have an edge on that node!\n\t\tAssert.assertEquals(0, reasons.size());\n\n\t\t// Set<Span> minimalConflictReasons = reasons;\n\t\t// System.out.println(\"number of minimal conflict reasons:\n\t\t// \"+minimalConflictReasons.size());\n\t\t// for(Span minimalConflictReason : minimalConflictReasons){\n\t\t// System.out.println(minimalConflictReason);\n\t\t// }\n\t}", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "@Test\n public void testRun_DecisionOtherwise_IN_A1_D_A3_FN() {\n // Final node creation\n final Node fn = NodeFactory.createNode(\"#6\", NodeType.FINAL);\n\n // Action node 3 (id #5) creation and flow to final node\n final String A3_ID = \"#5\";\n final Node an3 = NodeFactory.createNode(A3_ID, NodeType.ACTION);\n final ExecutableActionMock objAn3 = ExecutableActionMock.create(KEY, A3_ID);\n ((ContextExecutable) an3).setObject(objAn3);\n ((ContextExecutable) an3).setMethod(objAn3.getPutIdInContextMethod());\n ((SingleControlFlowNode) an3).setFlow(fn);\n\n // Action node 2 (id #4) creation and flow to final node\n final String A2_ID = \"#4\";\n final Node an2 = NodeFactory.createNode(A2_ID, NodeType.ACTION);\n final ExecutableActionMock objAn2 = ExecutableActionMock.create(KEY, A2_ID);\n ((ContextExecutable) an2).setObject(objAn2);\n ((ContextExecutable) an2).setMethod(objAn2.getPutIdInContextMethod());\n ((SingleControlFlowNode) an2).setFlow(fn);\n\n final String A1_KEY = \"a1_key\";\n final String A1_ID = \"#2\";\n\n // Decision node (id #3) creation\n final Node dNode = NodeFactory.createNode(\"#3\", NodeType.DECISION);\n // Flow control from decision to action node 2 (if KEY == #2 goto A2)\n Map<FlowCondition, Node> flows = new HashMap<>(1);\n final FlowCondition fc2a2 = new FlowCondition(A1_KEY, ConditionType.EQ, \"ANYTHING WRONG\");\n flows.put(fc2a2, an2);\n // Otherwise, goto A3\n ((ConditionalControlFlowNode) dNode).setFlows(flows, an3);\n\n // Action node 1 (id #2) creation. Sets the context to be used by the decision\n final Node an1 = NodeFactory.createNode(A1_ID, NodeType.ACTION);\n final ExecutableActionMock objAn1 = ExecutableActionMock.create(A1_KEY, A1_ID);\n ((ContextExecutable) an1).setObject(objAn1);\n ((ContextExecutable) an1).setMethod(objAn1.getPutIdInContextMethod());\n ((SingleControlFlowNode) an1).setFlow(dNode);\n\n // Initial node (id #1) creation and flow to action node 1\n final Node iNode = NodeFactory.createNode(\"#1\", NodeType.INITIAL);\n ((SingleControlFlowNode) iNode).setFlow(an1);\n\n final Jk4flowWorkflow wf = Jk4flowWorkflow.create(iNode);\n\n ENGINE.run(wf);\n\n Assert.assertEquals(A3_ID, wf.getContext().get(KEY));\n }", "private void deleteUnwantedFsnAcceptability(Concept c) throws TermServerScriptException {\n\t\tList<Description> fsns = c.getDescriptions(Acceptability.BOTH, DescriptionType.FSN, ActiveState.ACTIVE);\n\t\tif (fsns.size() != 1) {\n\t\t\tString msg = \"Concept has \" + fsns.size() + \" active fsns\";\n\t\t\treport(c, c.getFSNDescription(), Severity.HIGH, ReportActionType.VALIDATION_CHECK, msg);\n\t\t} else {\n\t\t\tString msg = \"[\" + fsns.get(0).getDescriptionId() + \"]: \";\n\t\t\tList<LangRefsetEntry> langRefEntries = fsns.get(0).getLangRefsetEntries(ActiveState.BOTH, US_ENG_LANG_REFSET);\n\t\t\tif (langRefEntries.size() != 1) {\n\t\t\t\tif (langRefEntries.size() == 2) {\n\t\t\t\t\tList<LangRefsetEntry> uslangRefEntries = fsns.get(0).getLangRefsetEntries(ActiveState.BOTH, refsets, SCTID_US_MODULE);\n\t\t\t\t\tList<LangRefsetEntry> corelangRefEntries = fsns.get(0).getLangRefsetEntries(ActiveState.BOTH, refsets, SCTID_CORE_MODULE);\n\t\t\t\t\tif (uslangRefEntries.size() > 1 || corelangRefEntries.size() >1) {\n\t\t\t\t\t\tmsg += \"Two acceptabilities in the same module\";\n\t\t\t\t\t\treport(c, c.getFSNDescription(), Severity.HIGH, ReportActionType.VALIDATION_CHECK, msg);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!uslangRefEntries.get(0).isActive() && corelangRefEntries.get(0).isActive() ) {\n\t\t\t\t\t\t\tlong usET = Long.parseLong(uslangRefEntries.get(0).getEffectiveTime());\n\t\t\t\t\t\t\tlong coreET = Long.parseLong(corelangRefEntries.get(0).getEffectiveTime());\n\t\t\t\t\t\t\tmsg += \"US langrefset entry inactivated \" + (usET > coreET ? \"after\":\"before\") + \" core row activated - \" + usET;\n\t\t\t\t\t\t\treport(c, c.getFSNDescription(), Severity.HIGH, ReportActionType.VALIDATION_CHECK, msg);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If the US inactivated AFTER the core activated, then this is the case we need to fix\n\t\t\t\t\t\t\tuslangRefEntries.get(0).delete(deletionEffectiveTime);\n\t\t\t\t\t\t\tString action = \"Deleted US FSN LangRefset entry\";\n\t\t\t\t\t\t\treport(c, c.getFSNDescription(), Severity.MEDIUM, ReportActionType.DESCRIPTION_CHANGE_MADE, action);\n\t\t\t\t\t\t\tc.setModified();\n\t\t\t\t\t\t} if (uslangRefEntries.get(0).isActive() && corelangRefEntries.get(0).isActive() ) {\n\t\t\t\t\t\t\tmsg += \"Both US and Core module lang refset entries are inactive\";\n\t\t\t\t\t\t\treport(c, c.getFSNDescription(), Severity.LOW, ReportActionType.VALIDATION_CHECK, msg);\n\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tmsg += \"Unexpected configuration of us and core lang refset entries\";\n\t\t\t\t\t\t\treport(c, c.getFSNDescription(), Severity.HIGH, ReportActionType.VALIDATION_CHECK, msg);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tmsg += \"FSN has \" + langRefEntries.size() + \" US acceptability values.\";\n\t\t\t\t\treport(c, c.getFSNDescription(), Severity.HIGH, ReportActionType.VALIDATION_CHECK, msg);\n\t\t\t\t}\n\t\t\t} else if (!langRefEntries.get(0).getAcceptabilityId().equals(SCTID_PREFERRED_TERM)) {\n\t\t\t\tmsg += \"FSN has an acceptability that is not Preferred.\";\n\t\t\t\treport(c, c.getFSNDescription(), Severity.HIGH, ReportActionType.VALIDATION_CHECK, msg);\n\t\t\t} else if (!langRefEntries.get(0).isActive()) {\n\t\t\t\tmsg += \"FSN's US acceptability is inactive.\";\n\t\t\t\treport(c, c.getFSNDescription(), Severity.HIGH, ReportActionType.VALIDATION_CHECK, msg);\n\t\t\t}\n\t\t}\n\t}", "public Map<OperationKey, List<Policy>> enforceOn(SourceBundle sourceBundle) {\n\t\tMap<OperationKey, List<Policy>> conflicts = new HashMap<OperationKey, List<Policy>>();\n\n\t\tSortedSet<Operation> operations = getAllOperations(sourceBundle, conflicts);\n\n\t\tif (operations.size() == 0) {\n\t\t\treturn conflicts;\n\t\t}\n\n\t\t// organize operations into a tree based on their nesting relationship\n\t\toperations = nestOperations(operations);\n\n\t\t// carry out the operations\n\t\texecuteOperations(sourceBundle, operations);\n\n\t\t// add the definition JS file to the beginning of web page\n\t\tsourceBundle.addTreatmentDefinitions(treatmentFactory.BASE_OBJECT_NAME + \".js\", treatmentFactory.getDefinitions());\n\n\t\treturn conflicts;\n\t}", "@Override\n\tpublic boolean CheckFacts(){\n\t\tqueries.add( query );\n\t\t\n\t\t// while there are still queries to be proven\n\t\twhile ( queries.size() > 0 )\n\t\t{\n\t\t\t// take the first query off of queries to be checked \n\t\t\tString currentQuery = queries.remove(0);\n\n\t\t\t// add it to the list of queries that will be used to output (if true)\n\t\t\toutputFacts.add( currentQuery );\n\n\t\t\t// Compare currentQuery with every fact in Facts:\n\t\t\t// if it matches a fact then the current loop can end\n\t\t\tif( ! CompareToFacts( currentQuery ) )\n\t\t\t{\n\t\t\t\t// if not, compare currentQuery with every entailed literal\n\t\t\t\t// if it matches, add the literal(s) from the left\n\t\t\t\t// of the entailment onto queries\n\t\t\t\tif( ! CompareToClauses( currentQuery ) )\n\t\t\t\t{\n\t\t\t\t\t// if currentQuery still didn’t find a match then \n\t\t\t\t\t// the search has failed \n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// when queries is empty, it means there are no more queries to prove,\n\t\t// so the search was a success\n\t\treturn true;\n\t}", "private ConflictCause propagateWeakly(final Assignment.Entry entry) {\n\t\t// If assignment is for TRUE, previous MBT exists, and this is no reassignment, nothing changes for weak propagation.\n\t\tif (entry.getPrevious() != null && !entry.isReassignAtLowerDecisionLevel()) {\n\t\t\treturn null;\n\t\t}\n\n\t\tWatches<BinaryWatch, WatchedNoGood> watchesOfAssignedAtom = watches(entry.getAtom());\n\n\t\t// Process binary watches.\n\t\tfor (BinaryWatch binaryWatch : watchesOfAssignedAtom.binary.getOrdinary(entry.getTruth().toBoolean())) {\n\t\t\tConflictCause conflictCause = assignWeakComplement(binaryWatch.getOtherLiteralIndex(), binaryWatch.getNoGood(), entry.getDecisionLevel());\n\t\t\tif (conflictCause != null) {\n\t\t\t\treturn conflictCause;\n\t\t\t}\n\t\t}\n\n\t\tint assignedDecisionLevel = entry.getWeakDecisionLevel();\n\n\t\t// Check all watched multi-ary NoGoods.\n\t\tIterator<WatchedNoGood> watchIterator = watchesOfAssignedAtom.multary.getOrdinary(entry.getTruth().toBoolean()).iterator();\n\t\twhile (watchIterator.hasNext()) {\n\t\t\tfinal WatchedNoGood watchedNoGood = watchIterator.next();\n\n\t\t\tfinal int assignedPointer = watchedNoGood.getLiteralAtPointer(0) == entry.getLiteral() ? 0 : 1;\n\t\t\tfinal int otherPointer = 1 - assignedPointer;\n\n\t\t\tfinal int assignedIndex = watchedNoGood.getPointer(assignedPointer);\n\t\t\tfinal int otherIndex = watchedNoGood.getPointer(otherPointer);\n\n\t\t\tboolean isNoGoodSatisfiedByOtherWatch = false;\n\t\t\tAssignment.Entry otherEntry = assignment.get(atomOf(watchedNoGood.getLiteral(otherIndex)));\n\t\t\t// Check if the other watch already satisfies the noGood.\n\t\t\tif (otherEntry != null && otherEntry.getTruth().toBoolean() != isPositive(watchedNoGood.getLiteral(otherIndex))) {\n\t\t\t\tisNoGoodSatisfiedByOtherWatch = true;\n\t\t\t}\n\n\t\t\tint highestDecisionLevel = assignedDecisionLevel;\n\t\t\tint pointerCandidateIndex = assignedIndex;\n\t\t\tboolean foundPointerCandidate = false;\n\n\t\t\t// Find new literal to watch.\n\t\t\tfor (int i = 0; i < watchedNoGood.size(); i++) {\n\t\t\t\tif (i == assignedIndex || i == otherIndex) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tint currentLiteral = watchedNoGood.getLiteral(i);\n\t\t\t\tAssignment.Entry currentEntry = assignment.get(atomOf(currentLiteral));\n\n\t\t\t\t// Break if: 1) current literal is unassigned, 2) satisfies the nogood, or\n\t\t\t\t// 3) the nogood is satisfied by the other watch and the current literal has decision level greater than the satisfying literal.\n\t\t\t\tif (currentEntry == null\n\t\t\t\t\t|| currentEntry.getTruth().toBoolean() != isPositive(currentLiteral)\n\t\t\t\t\t|| (isNoGoodSatisfiedByOtherWatch && currentEntry.getWeakDecisionLevel() >= otherEntry.getWeakDecisionLevel())\n\t\t\t\t\t) {\n\t\t\t\t\tfoundPointerCandidate = true;\n\t\t\t\t\tpointerCandidateIndex = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// Record literal if it has highest decision level so far.\n\t\t\t\tint currentDecisionLevel = currentEntry.getWeakDecisionLevel();\n\t\t\t\tif (currentDecisionLevel > highestDecisionLevel) {\n\t\t\t\t\thighestDecisionLevel = currentDecisionLevel;\n\t\t\t\t\tpointerCandidateIndex = i;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (foundPointerCandidate) {\n\t\t\t\t// Move pointer to new literal.\n\t\t\t\twatchedNoGood.setPointer(assignedPointer, pointerCandidateIndex);\n\t\t\t\twatchIterator.remove();\n\t\t\t\taddOrdinaryWatch(watchedNoGood, assignedPointer);\n\t\t\t} else {\n\t\t\t\t// NoGood is unit, propagate (on potentially lower decision level).\n\t\t\t\t// Note: Violation is detected by Assignment.\n\t\t\t\tConflictCause conflictCause = assignWeakComplement(otherIndex, watchedNoGood, highestDecisionLevel);\n\n\t\t\t\tif (conflictCause != null) {\n\t\t\t\t\treturn conflictCause;\n\t\t\t\t}\n\n\t\t\t\t// Move assigned watch to now-highest position (if it changed).\n\t\t\t\tif (pointerCandidateIndex != assignedIndex) {\n\t\t\t\t\twatchedNoGood.setPointer(assignedPointer, pointerCandidateIndex);\n\t\t\t\t\twatchIterator.remove();\n\t\t\t\t\taddOrdinaryWatch(watchedNoGood, assignedPointer);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Test\n void _correctThenCaseTest() {\n\n actionApply();\n\n for (ReceiverPair receiverPair : dependedReceiverPairs) {\n for (AssingablePair assingablePair : incompatibleAssignablePairs) {\n verify(model).arithm(receiverPair.getVariableDependentReceiver(), \"!=\", assingablePair.getIndexdependentAssignable());\n }\n }\n }", "@Test\n void testCreateAndUpdateOnlyReportErrorsIfItAddsNewInformation() {\n\n Setup setup =\n new Setup.Builder()\n .trackedEntity(\"xK7H53f4Hc2\")\n .isNotValid()\n .enrollment(\"t1zaUjKgT3p\")\n .isNotValid()\n .relationship(\"Te3IC6TpnBB\", trackedEntity(\"xK7H53f4Hc2\"), enrollment(\"t1zaUjKgT3p\"))\n .isNotValid()\n .build();\n\n PersistablesFilter.Result persistable =\n filter(setup.bundle, setup.invalidEntities, TrackerImportStrategy.CREATE_AND_UPDATE);\n\n assertAll(\n () -> assertIsEmpty(persistable.get(TrackedEntity.class)),\n () -> assertIsEmpty(persistable.get(Enrollment.class)),\n () -> assertIsEmpty(persistable.get(Relationship.class)),\n () -> assertIsEmpty(persistable.getErrors()));\n }", "public boolean detectConflicts(ArrayList<Course> selectedCourses) {\n\n\t\tCourse first = selectedCourses.get(0), \n\t\t\t\tsecond = selectedCourses.get(1), third = selectedCourses.get(2);\n\n\t\tboolean b1 = false, b2 = false, b3 = false;\n\t\t\n\t\tstrBuilder = new StringBuilder();\n\t\t\n\t\tif(checkConflict(first, second)) {\n\t\t\tstrBuilder.append(\"[First] conflicts [Second]\\n\");\n\t\t\tb1 = true;\n\t\t}\n\t\t\n\t\tif(checkConflict(first, third)) {\n\t\t\tstrBuilder.append(\"[First] conflicts [Third]\\n\");\n\t\t\tb2 = true;\n\t\t}\n\t\t\n\t\tif(checkConflict(second, third)) {\n\t\t\tstrBuilder.append(\"[Second] conflicts [Third]\");\n\t\t\tb3 = true;\n\t\t}\n\t\t\n\t\tsetConflictsStr(strBuilder.toString());\n\t\t\n\t\treturn b1 || b2 || b3;\n\t}", "private void generateRules(TreeNode tn)\n{\n if (!tn.isLeaf()) {\n generateRules(tn.getPassTree());\n generateRules(tn.getFailTree());\n return;\n }\n RuleInstance ri = tn.getRules().get(0);\n if (ri.getBaseRule() != null) return;\t// rule already in set\n\n Condition c = tn.getCondition();\n List<UpodCondition> cset = new ArrayList<UpodCondition>();\n if (c != null) {\n UpodCondition cond = c.getConditionTest(for_program);\n if (cond != null) cset.add(cond);\n }\n for (TreeNode pn = tn.getParent(); pn != null; pn = pn.getParent()) {\n Condition pc = pn.getCondition();\n if (pc == null) continue;\n UpodCondition pcond = pc.getConditionTest(for_program);\n if (pcond != null) cset.add(pcond);\n }\n\n UpodCondition rcond = null;\n if (cset.isEmpty()) return;\n if (cset.size() == 1) rcond = cset.get(0);\n else {\n UpodCondition [] conds = new UpodCondition[cset.size()];\n conds = cset.toArray(conds);\n rcond = new BasisConditionLogical.And(conds);\n }\n List<UpodAction> racts = ri.getActions();\n if (rcond == null || racts == null) return;\n\n BasisRule rule = new BasisRule(rcond,racts,null,100);\n for_program.addRule(rule);\n}", "@Test\n\tpublic void testSimpleOneRuleFailExecution() {\n\n\t\tSkRuleBase rule = buildThings(ONE_RULE_FAIL_FILE_NAME, SkRuleBase.class, \"rule\");\n\n\t\tSkRuleMaster master = new SkRuleMaster.Builder().addRule(rule)\n\t\t\t\t.build();\n\t\tSkRuleRunner runner = master.getRuleRunner();\n\n\t\ttry {\n\t\t\trunner.setValue(\"THIS_MACRO_DOES_NOT_EXIST\", \"X\");\n\t\t\trule.run(runner);\n\t\t\tAssert.fail(\"We should have thrown an error.\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(String.format(\"We expected this error : '%s'\", e.toString()));\n\t\t}\n\t\trunner.setValue(\"MILK.QTY\", 2);\n\t\trule.run(runner);\n\t}", "private boolean areTransitionsForSchemaEqual(Set<foreignkeyshistory.SchemaTransition> schemaTransitions, Map<String,Integer> otherTransitions)\n\t{\n\t\t\n\t\tfor (foreignkeyshistory.SchemaTransition schemaTransition : schemaTransitions)\n\t\t{\n\t\t\tif (!transitionExists(schemaTransition, otherTransitions)){ return false; }\n\t\t}\n\t\t\n\t\tfor (Map.Entry<String, Integer> entry : otherTransitions.entrySet())\n\t\t{\n\t\t\tif (!transitionExists(entry.getKey(), entry.getValue(), schemaTransitions)){ return false; }\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "@Override\n \tpublic void checkSemantics() throws Exception {\n\t\tgetSet().checkSemantics();\n\t\tquestion.checkSemantics();\n \t\t\n \t\tif (! getSet().getType().equals(\"set\"))\n \t\t{\n \t\t\tthrow new Exception(\"Line \" + this.getYyline() + \":\" + this.getYycolumn() + \" \"\n \t\t\t\t\t+ \" insert operator << left operand must be a set, found: \" + getSet().getType());\n \t\t}\n\n\t\tif (! question.getType().equals(\"question\"))\n\t\t{\n\t\t\tthrow new Exception(\"Line \" + this.getYyline() + \":\" + this.getYycolumn() + \" \"\n\t\t\t\t\t+ \" insert operator << right operand must be a question, found: \" + question.getType());\n \t\t}\n\t\t\n \t\tthis.setType(\"set\");\n \t\t\n \n \n \t}", "private void getTimeConditions(List<RuleInstance> rules,Set<Condition> conds)\n{\n for (RuleInstance ri : rules) {\n getTimeConditions(ri,rules,conds);\n }\n}", "void checkPrerequisite() throws ActionNotPossibleException;", "private void resolveOutcomeWithChecks(FileValidationReport fileValRep) {\n\t\tif (fileValRep.hasFailedChecks()) {\n\t\t\tfileValRep.setValidationOutcome(ValidationOutcome.NOT_VALID);\n\t\t} else {\n\t\t\tfileValRep.setValidationOutcome(ValidationOutcome.VALID);\n\t\t}\n\t}", "private boolean consistencyCheckC2Constraints(double[][] xResults, double[][] yResults, double[] alpha) {\n\t\tint n = mExplicitMDP.getNumStates();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble outxValue = GRBSolverUtils.getOutValue(i, xResults, mExplicitMDP);\n\t\t\tdouble outyValue = GRBSolverUtils.getOutValue(i, yResults, mExplicitMDP);\n\t\t\tdouble inyValue = GRBSolverUtils.getInValue(i, yResults, mExplicitMDP);\n\t\t\tboolean satisfied = GRBSolverUtils.approximatelyEqual(outxValue + outyValue - inyValue, alpha[i],\n\t\t\t\t\tmSettings.getFeasibilityTolerance());\n\n\t\t\tif (!satisfied) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private void applyRules () throws DataNormalizationException {\n\t\tapplyRules(null);\n\t}", "private boolean concurrentRuleAsymParallelIndependent(\r\n\t\t\tfinal int i,\r\n\t\t\tfinal Rule ri,\r\n\t\t\tfinal ConcurrentRule cr,\r\n\t\t\tfinal List<Rule> sequence,\r\n\t\t\tfinal int concurdepth,\r\n\t\t\tString criterion) {\n\r\n\t\tboolean result = true; \t\t\r\n\t\tint concurrrentRuleDepth = cr.getDepth();\r\n\t\t\t\r\n\t\tVector<Rule> remainList = new Vector<Rule>();\r\n\t\tfor (int l=i+1; l<sequence.size(); l++) {\r\n\t\t\tremainList.add(sequence.get(l));\r\n\t\t}\r\n\t\t\r\n\t\tVector<Rule> crSourceList = new Vector<Rule>();\r\n\t\tint start = i-concurrrentRuleDepth;\r\n\t\tfor (int l=start; l<=i; l++) {\r\n\t\t\tcrSourceList.add(sequence.get(l));\r\n\t\t}\r\n\t\t\r\n\t\t// find conflicts of concurrent rule with rules before\r\n\t\tfor (int l = 0; l<crSourceList.size(); l++) {\r\n\t\t\tRule r = crSourceList.get(l);\r\n\t\t\tint indx = start + l;\r\n\t\t\tPair<Boolean, List<String>> \r\n\t\t\truleRes = this.ruleSequence.getRuleResult(indx, r.getName(), ApplicabilityConstants.NO_IMPEDING_PREDECESSORS);\r\n\t\t\tif (ruleRes != null && !ruleRes.first.booleanValue()) {\r\n\t\t\t\tresult = false;\t\r\n//\t\t\t\tString otherRule = ruleRes.second.isEmpty()? \"\": ruleRes.second.get(0);\r\n//\t\t\t\tSystem.out.println(\"---> Concurrent rule: \"+cr.getRule().getName()+\": its base rule: \"+r.getName()+\" has conflict with \" +otherRule);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (result) {\r\n\t\t\t// find conflicts of concurrent rule with successor rules \r\n\t\t\tfor (int l = 0; l<crSourceList.size(); l++) {\r\n\t\t\t\tRule r1 = crSourceList.get(l);\r\n\t\t\t\tfor (int k=0; k<remainList.size(); k++) {\r\n\t\t\t\t\tRule r2 = remainList.get(k);\r\n\t\t\t\t\tSimpleExcludePair excludePair = this.makeExcludePair();\r\n\t\t\t\t\tif (!asymParallelIndependentByCPA(excludePair, r1, -1, r2, -1)) {\r\n\t\t\t\t\t\tresult = false;\t\r\n//\t\t\t\t\t\tSystem.out.println(\"---> Concurrent rule: \"+cr.getRule().getName()+\": its base rule: \"+r1.getName()+\" has conflict with \" +r2.getName());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} \r\n\t\t\t\t\texcludePair.dispose();\r\n\t\t\t\t}\r\n\t\t\t\tif (!result) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.info = this.getConcurrentRuleNameInfo(cr.getRule(), ri);\t\t\t\r\n\t\tsetRuleResult(i, ri.getName(), result, criterion, this.info);\t\t\t\r\n\r\n\t\tremainList.clear();\r\n\t\tcrSourceList.clear();\r\n\t\t\r\n\t\treturn result;\r\n\t}", "private Set<Condition> getConditions(List<RuleInstance> rules)\n{\n Set<Condition> conds = new HashSet<Condition>();\n\n getTimeConditions(rules,conds);\n getSensorConditions(rules,conds);\n getCalendarConditions(rules,conds);\n\n return null;\n}", "private void updateFringeAndConflicts(List<String> changed) {\n //update fringe\n for (Clause ci : fringe) {\n for (CLiteral l : ci.getCLiterals()) {\n if (changed.contains(l.getName())) {\n ci.updateClause(labels);\n if ( ci.numOfNegative>0)\n // else if (c.numUnknownLiterals==0 && c.numOfNegative==c.numUnknownLiterals)\n if (!conflicts.contains(ci)) {\n if (conflicts.size()+1<=maxConflicts)\n conflicts.add(ci);\n\n break;\n }\n }\n }\n }\n\n // check rest of clauses which not in fringe or conflicts.\n for (Clause c : clauses) {\n if (!fringe.contains(c) && !conflicts.contains(c)) {\n for (CLiteral l : c.getCLiterals()) {\n if (changed.contains(l.getName())) {\n c.updateClause(labels);\n\n if (c.getNumUnknownLiterals() == 1 && c.getNumOfNegative() == c.getNumOfLiterals() - c.getNumUnknownLiterals()) {\n fringe.push(c);\n break;\n } else if (c.numOfNegative >0) {\n // else if (c.numUnknownLiterals==0 && c.numOfNegative==c.numUnknownLiterals)\n if (!conflicts.contains(c)) {\n if (conflicts.size()+1<=maxConflicts)\n conflicts.add(c);\n\n break;\n }\n }\n }\n }\n }\n }\n }", "private void checkAssignmentOfTaintedLocal(Set<FlowAbstraction> in, Unit d, Set<FlowAbstraction> out) {\n if (d instanceof AbstractDefinitionStmt) {\n AbstractDefinitionStmt def = (AbstractDefinitionStmt) d;\n Value leftSide = def.getLeftOp();\n Value rightSide = def.getRightOp();\n if ((leftSide instanceof Local || leftSide instanceof FieldRef) && rightSide instanceof Local) {\n for (Iterator<FlowAbstraction> iterator = in.iterator(); iterator.hasNext();) {\n FlowAbstraction taint = iterator.next();\n if(taint.getLocal().equals(rightSide)) {\n d.addTag(new Tainted(\"assignment of tainted local\"));\n taint(leftSide, d, out);\n }\n }\n }\n }\n }", "public boolean isValid() {\n return hops.size() >= 2;\n }" ]
[ "0.57421935", "0.5466818", "0.51219285", "0.5101567", "0.50992817", "0.5084423", "0.50754935", "0.50307655", "0.5018059", "0.4998896", "0.49974403", "0.49916843", "0.49912545", "0.49699068", "0.495366", "0.49506783", "0.49108955", "0.48914382", "0.48881078", "0.48816288", "0.48808464", "0.4876823", "0.48634803", "0.4845833", "0.48339665", "0.4821132", "0.48101223", "0.48099595", "0.48071387", "0.48042405", "0.4800845", "0.47960258", "0.47833434", "0.47698605", "0.47639608", "0.47590396", "0.47428977", "0.4729094", "0.47250998", "0.47237492", "0.47171763", "0.47107756", "0.47043934", "0.47032592", "0.46996894", "0.46900427", "0.46847504", "0.46833342", "0.46781105", "0.46695992", "0.46521705", "0.46516687", "0.46487615", "0.46398547", "0.4626297", "0.46193656", "0.4614146", "0.4613017", "0.4612754", "0.46070388", "0.46045163", "0.45938185", "0.45933712", "0.4590289", "0.45865288", "0.45801502", "0.45758525", "0.4571851", "0.4563484", "0.4552097", "0.45417243", "0.45385242", "0.45330465", "0.45322", "0.4525887", "0.45246875", "0.45246875", "0.45246875", "0.4523478", "0.45230475", "0.45226002", "0.45200178", "0.45162204", "0.45151395", "0.45149502", "0.45117843", "0.4510855", "0.45103222", "0.4509865", "0.45016304", "0.44971985", "0.44896606", "0.4489502", "0.44885716", "0.44820797", "0.44802228", "0.4477502", "0.4475928", "0.44755968", "0.44752836" ]
0.6434098
0
MERGING SENSORS FROM RULESETS IN ORDER TO GET ALL THE POSSIBLE COMBINATIONS. NO CLEANING OR PRUNING IS DONE HERE, WHICH MEANS SOME "IMPOSSIBLE" RULES CAN OCCUR.
public SensorList outputsFromRuleSets (RuleSet ruleset2) { SensorList res = new SensorList (); for (int i = 0; i < this.size(); i++) { for (int j = 0; j < ruleset2.size(); j++) { Sensor a = this.getSuccessor(i).merge(ruleset2.getSuccessor(j)); res.addSensor(a); } } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RuleSet (RuleSet RS1, RuleSet RS2, SensorList sList, SensorMap sMap, RuleMap rMap) {\n \n // CREATING COMBINATION RULESET FROM RS1 & RS2\n \n this.references = new ArrayList();\n this.sList = sList;\n this.rulelist = RS1.rulelist;\n this.totalProb = 0.0;\n this.id = counter.incrementAndGet();\n this.precedences = new ArrayList ();\n Sensor precondition = RS1.getPrecursorWithID().merge(RS2.getPrecursorWithID());\n\n \n ArrayList <Integer> common_non_wildcarded_indexes = RS1.getSuccessor().detectCommonNonWilcardedIndexes(RS2.getSuccessor());\n\n Sensor root = new Sensor(RS1.getPrecursorWithID().tokenMap);\n \n int number = common_non_wildcarded_indexes.size();\n \n boolean insert;\n \n // THERE IS A CONFLICT ONLY IF SOME COMMON NON WILDCARDED INDEXES EXIST\n if (number >= 1) {\n SensorList conflicted_indexes_list = root.expand(common_non_wildcarded_indexes.get(0));\n \n if (number >= 2) { \n \n // Expanding the conflicted indexes in ArrayList\n for (int h = 2; h<=number; h++) {\n \n conflicted_indexes_list.expandListAt(common_non_wildcarded_indexes.get(h-1));\n }\n }\n \n for (int j = 0; j < conflicted_indexes_list.size(); j++) {\n \n // We only need to insert the Rules with postcondition corresponding to either RS1 or RS2\n //\n // So we check for post. matches in the first and then second RuleSet\n insert = false;\n\n // SEARCHING FOR MATCH IN FIRST RULESET\n for (int h1 = 0; h1 < RS1.size(); h1++) {\n ///\n if (RS1.getSuccessor(h1).sensorMatch(conflicted_indexes_list.getSensor(j+1))) {\n insert = true;\n \n break;\n }\n }\n \n // SEARCHING FOR MATCH IN SECOND RULESET\n if (!insert) {\n \n for (int h2 = 0; h2 < RS2.size(); h2++) {\n \n \n if (RS2.getSuccessor(h2).sensorMatch(conflicted_indexes_list.getSensor(j+1))) {\n insert = true;\n \n break;\n }\n \n\n }\n }\n \n // If the Rule postcondition was found in RS1 or RS2, we shall create it\n if (insert) {\n \n Rule rule = new Rule(precondition, conflicted_indexes_list.getSensor(j+1));\n \n rule.ruleset_id = this.id;\n \n int aa = sMap.getMatchingOccurencies(precondition);\n \n int tt = rMap.getMatchingOccurencies(rule);\n \n \n rule.prec_occurrencies = aa;\n rule.occurrencies = tt;\n \n this.rulelist.addRule(rule);\n this.add(rule);\n \n }\n \n }\n \n }\n \n \n // UPDATING RULESET PROBABILITY\n if (this.size() > 0) {\n for (int i = 0; i < this.size(); i++) {\n\n totalProb = totalProb + this.getRule(i).getProb();\n totalProb = Math.round(totalProb * 1000);\n totalProb = totalProb/1000;\n \n }\n }\n \n }", "private void filterAllRuleSetsForConfAndLift()\n\t{\n\t\truleCollection.forEach(lastRules->{\n\t\t\t\n\t\t\tif(!ListHelper.isNullOrEmpty(lastRules))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Current Filter Rule Size:\"+lastRules.get(0).getRuleSize());\n\t\t\t}\n\t\t\t\n\t\t\tIterator<RuleCompartment<T>> iter = lastRules.iterator();\n\t\t\t\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tRuleCompartment<T> eachRule = iter.next();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint ruleLength = eachRule.getRuleSize();\n\t\t\t\t\t\t\t\n\t\t\t\tif(ruleLength<config.getMinRuleLength())\n\t\t\t\t{\n\t\t\t\t\titer.remove();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble conf = eachRule.calculateConfidence(storage, evaluation);\n\t\t\t\t\n\t\t\t\tif(conf < config.minConf())\n\t\t\t\t{\n\t\t\t\t\titer.remove();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif(config.minLift()>0)\n\t\t\t\t{\n\t\t\t\t\tdouble lift = eachRule.calculateLift(storage, evaluation);\n\t\t\t\t\t\n\t\t\t\t\tif(lift < config.minLift())\n\t\t\t\t\t{\n\t\t\t\t\t\titer.remove();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void deduceRules()\n{\n List<RuleInstance> allrules = loadRules();\n\n List<UpodRule> rules = new ArrayList<UpodRule>();\n for (UpodRule ur : for_program.getRules()) {\n if (ur.isExplicit()) {\n\t rules.add(ur);\n\t RuleInstance ri = new RuleInstance(ur,from_world.getUniverse());\n\t allrules.add(ri);\n }\n }\n\n Set<Condition> allconds = getConditions(allrules);\n\n tree_root = new TreeNode(allrules,null);\n\n expandTree(tree_root,allconds);\n\n generateRules(tree_root);\n}", "@Override\n public void applyTo(\n List<Statement> statements, AristaConfiguration cc, Configuration c, Warnings w) {\n for (String communityListName : _communityLists) {\n if (!cc.getExpandedCommunityLists().containsKey(communityListName)\n && !cc.getStandardCommunityLists().containsKey(communityListName)) {\n // TODO: verify behavior of single undefined reference\n return;\n }\n StandardCommunityList scl = cc.getStandardCommunityLists().get(communityListName);\n if (scl != null) {\n if (scl.getLines().stream().anyMatch(line -> line.getAction() != LineAction.PERMIT)) {\n w.redFlag(\n String.format(\n \"route-map set community community-list ignores deny lines in standard\"\n + \" community-list: '%s'\",\n communityListName));\n }\n } else {\n w.redFlag(\n String.format(\n \"route-map set community community-list is ignored for expanded community list:\"\n + \" '%s'\",\n communityListName));\n }\n }\n CommunitySetExpr retainedCommunities =\n _additive\n ? InputCommunities.instance()\n : new CommunitySetDifference(\n InputCommunities.instance(), AllStandardCommunities.instance());\n CommunitySetExpr communitiesToSet =\n CommunitySetUnion.of(\n _communityLists.stream()\n .map(CommunitySetReference::new)\n .collect(ImmutableList.toImmutableList()));\n statements.add(new SetCommunities(CommunitySetUnion.of(retainedCommunities, communitiesToSet)));\n }", "private void applyBestRepairPlan(){\n\t\t\n\t\tSet<OWLAxiom> best_repair=null;\n\t\t\t\t\n\t\tdouble min_conf = 10000;\n\t\tdouble conf;\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(false);//used in confidence\n\t\t\n\t\tfor (Set<OWLAxiom> repair : repair_plans){\n\t\t\t\n\t\t\tconf = getConfidence4Plan(repair);\n\t\t\t\n\t\t\tif (min_conf > conf){\n\t\t\t\tmin_conf = conf;\n\t\t\t\tbest_repair = repair;\n\t\t\t}\n\t\t}\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(true);\n\t\t\n\t\tfor (OWLAxiom ax : best_repair){\t\t\t\n\t\t\tax.accept(mappingVisitor);\n\t\t\t//It also deletes axiom from structures\n\t\t\t//TODO add to conflicts\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void cleanAfterMatch() {\n\t\t// clean all consumables from all calculators\n\t\tfor (AggregationCalculator calc : calculators.values()) {\n\t\t\tcalc.cleanConsumables();\n\t\t}\n\t}", "private void mergeServices(JsonObject originService, JsonObject targetService, JsonObject tree) {\n mergeAnnotations(originService, targetService, tree);\n List<JsonObject> targetServices = new ArrayList<>();\n\n for (JsonElement targetItem : targetService.getAsJsonArray(\"resources\")) {\n JsonObject targetResource = targetItem.getAsJsonObject();\n boolean matched = false;\n for (JsonElement originItem : originService.getAsJsonArray(\"resources\")) {\n JsonObject originResource = originItem.getAsJsonObject();\n if (matchResource(originResource, targetResource)) {\n matched = true;\n mergeAnnotations(originResource, targetResource, tree);\n }\n }\n\n if (!matched) {\n targetResource.getAsJsonObject(\"body\").add(\"statements\", new JsonArray());\n targetServices.add(targetResource);\n }\n }\n\n targetServices.forEach(resource -> {\n int startIndex = FormattingSourceGen.getStartPosition(originService, \"resources\", -1);\n FormattingSourceGen.reconcileWS(resource, originService.getAsJsonArray(\"resources\"), tree,\n startIndex);\n originService.getAsJsonArray(\"resources\").add(resource);\n });\n }", "private static Collection<? extends Rule> getRules(ObjectFactory objFactory, Value cwe, Repository repository, Value segment)\n {\n HashMap<String, Rule> ruleSet = new HashMap<String, CWECoverageClaimType.Claims.Claim.RuleSet.Rule>();\n RepositoryConnection con = null;\n try\n {\n con = getRepositoryConnection(repository);\n \n String adaptorQuery = \"SELECT ?descriptionText WHERE {<\"+segment+\"> <http://toif/contains> ?finding. ?finding <http://toif/toif:FindingHasCWEIdentifier> <\" + cwe + \"> . \"\n + \"?finding <http://toif/toif:FindingIsDescribedByWeaknessDescription> ?description . \"\n + \"?description <http://toif/description> ?descriptionText . }\";\n \n TupleQuery adaptorTupleQuery = con.prepareTupleQuery(QueryLanguage.SPARQL, adaptorQuery);\n \n TupleQueryResult queryResult = adaptorTupleQuery.evaluate();\n \n while (queryResult.hasNext())\n {\n BindingSet adaptorSet = queryResult.next();\n Value name = adaptorSet.getValue(\"descriptionText\");\n \n String nameString = name.stringValue();\n \n String[] descArray = nameString.split(\":\");\n \n String ident = descArray[0];\n String description = descArray[1];\n \n if (!ruleSet.containsKey(ident))\n {\n Rule rule = objFactory.createCWECoverageClaimTypeClaimsClaimRuleSetRule();\n ruleSet.put(ident, rule);\n }\n \n Rule rule = ruleSet.get(ident);\n rule.setRuleID(ident);\n rule.setRuleName(ident);\n rule.setRuleComments(description);\n \n }\n \n queryResult.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n catch (MalformedQueryException e)\n {\n e.printStackTrace();\n }\n catch (QueryEvaluationException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n con.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n }\n return ruleSet.values();\n \n }", "public static List<ExtendRule> removeRedundantExtendedRules_rangeBased(List<ExtendRule> rules) {\n LOGGER.info(\"STARTED removeRedundantExtendedRules - range based\");\n LOGGER.info(\"Rules on start:\" + rules.size());\n ExtendRule defRule = rules.get(rules.size()-1);\n Consequent defClass = defRule.getConsequent(); \n for (Iterator<ExtendRule> it = rules.iterator(); it.hasNext();) { \n ExtendRule PRCandidate = it.next();\n // PRCandidate = go through all rules with default class in the consequent\n if (!PRCandidate.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n // skip default rule\n if (PRCandidate.equals(defRule))\n {\n continue;\n } \n ArrayList<RuleMultiItem> PR_items = PRCandidate.getAntecedent().getItems();\n //create hashmap for fast access\n HashMap<Attribute,RuleMultiItem> PR_itemsMap = new HashMap();\n for (RuleMultiItem rmi : PR_items)\n {\n PR_itemsMap.put(rmi.getAttribute(), rmi);\n }\n \n // check if there is no other rule classifying to different class that shares part of the region\n // matched by the antecedent of PRCandidate \n boolean clashingRuleFound=false;\n boolean positionBelowPRCand = false;\n for (Iterator<ExtendRule> innerIt = rules.iterator(); innerIt.hasNext();) {\n ExtendRule candidateClash = innerIt.next();\n // candidateClash is PRCandidate, which would always evaluate to overlap!\n\n if (candidateClash.equals(PRCandidate))\n {\n positionBelowPRCand=true;\n continue;\n }\n // candidateClash = go through all rules with OTHER than default class in consequent \n if (candidateClash.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n if (!positionBelowPRCand) continue;\n \n // check if at leat one literal in PRCandidate has empty intersection with Clash on shared attribute\n \n //in case there is no shared attribute, the intersection is non empty\n ArrayList<RuleMultiItem> literalsInClashOnSharedAtt = new ArrayList();\n for (RuleMultiItem clash_rmi : candidateClash.getAntecedent().getItems())\n {\n if (PR_itemsMap.containsKey(clash_rmi.getAttribute()))\n {\n literalsInClashOnSharedAtt.add(clash_rmi);\n }\n } \n if (literalsInClashOnSharedAtt.isEmpty())\n {\n clashingRuleFound =true;\n break;\n }\n // if there is NO intersection on at leat one of the shared attributes => no CLASH\n // ELSE => CLASH\n boolean attLeastOneAttDisjunct=true;\n for (RuleMultiItem clash_rmi : literalsInClashOnSharedAtt)\n {\n //PRCandidate has a literal created over the same attribute\n RuleMultiItem machingPR_RMI = PR_itemsMap.get(clash_rmi.getAttribute());\n\n //do values in the candidate clash intersect with values in PRCandidate?\n \n for (AttributeValue v : machingPR_RMI.getAttributeValues())\n {\n if (clash_rmi.getAttributeValues().contains(v))\n {\n attLeastOneAttDisjunct=false;\n }\n }\n if (attLeastOneAttDisjunct) // if we have non-empty intersection on one att we do not have to test the other ones, rule matches different part of the data space\n {\n //go to next PRCandidate \n break;\n } \n } \n if (!attLeastOneAttDisjunct)\n {\n //go to next PRCandidate \n clashingRuleFound=true;\n break;\n } \n }\n if (clashingRuleFound == false)\n {\n //no other rule with different consequent covering at least one shared value was found\n //this rule can be removed\n LOGGER.fine(\"Removing rule:\" + PRCandidate.toString());\n it.remove();\n } \n }\n LOGGER.info(\"Rules on finish:\" + rules.size());\n LOGGER.info(\"FINISHED removeRedundantExtendedRules - range based\");\n return rules;\n }", "private void generalizeCSACriteria(){\n\t\tArrayList<ServiceTemplate> comps = new ArrayList<ServiceTemplate>() ;\n\t\tArrayList<Criterion> crit = new ArrayList<Criterion>() ;\n\t\t\n\t\tcomps = this.data.getServiceTemplates();\n\t\tcrit = this.data.getCriteria();\n\t\t\n\t\tfor(ServiceTemplate c : comps){\n\t\t\tfor(Criterion cr : crit){\n\t\t\t\ttry {\n\t\t\t\t\tCriterion temp = (Criterion) BeanUtils.cloneBean(cr);\n\t\t\t\t\tc.addCrit(temp);\n\t\t\t\t} catch (IllegalAccessException | InstantiationException | InvocationTargetException | NoSuchMethodException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public List<Configuration> solve(){\n int group = 0;\n for(List<Configuration> set : input){\n minimize(set);\n\n for(Configuration root : set) {\n root.setGroup(group);\n }\n group++;\n\n }\n\n // Step 2: Preprocess\n sortBySize(input);\n\n // Step 5: Initialize set of partial solutions\n List<Configuration> partialSolutions;\n if(input.size()==0){\n return null;\n }\n else {\n partialSolutions = input.get(0);\n input.remove(partialSolutions);\n }\n\n // Step 6: The compositional computations\n for(List<Configuration> set : input) {\n filter(partialSolutions, setCutoff);\n filter(set, setCutoff);\n partialSolutions = combine(partialSolutions, set, constraints);\n }\n\n // Step 7: Postprocessing\n //greedyPostProcessing(partialSolutions);\n\n return partialSolutions;\n }", "private void loadRules2() {\n\t\t\r\n\t\tint type = Integer.valueOf(env.getProperty(\"sentinel.server.type\")) ;\r\n\t\t\r\n String appId = \"sentinel-demo\";\r\n String apolloMetaServerAddress = \"http://10.1.77.106:8080\";\r\n System.setProperty(\"app.id\", appId);\r\n System.setProperty(\"apollo.meta\", apolloMetaServerAddress);\r\n\r\n String namespaceName = \"application\";\r\n String flowRuleKey = \"flowRules\";\r\n // It's better to provide a meaningful default value.\r\n String defaultFlowRules = \"[]\";\r\n\r\n ReadableDataSource<String, List<FlowRule>> flowRuleDataSource = new ApolloDataSource<>(namespaceName,\r\n flowRuleKey, defaultFlowRules, source -> JSON.parseObject(source, new TypeReference<List<FlowRule>>() {\r\n }));\r\n FlowRuleManager.register2Property(flowRuleDataSource.getProperty());\r\n ClusterFlowRuleManager.setPropertySupplier(namespace ->flowRuleDataSource.getProperty());\r\n \r\n\r\n\t\tif (ClusterStateManager.CLUSTER_SERVER == type) \r\n\t\t{\r\n\t\t\tClusterStateManager.applyState(ClusterStateManager.CLUSTER_SERVER);\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tClusterStateManager.applyState(ClusterStateManager.CLUSTER_CLIENT);\r\n\t\t\tinitClientConfigProperty(namespaceName);\r\n\t\t\tinitClientServerAssignProperty(namespaceName);\r\n\t\t}\r\n \r\n \r\n \r\n \r\n }", "public int consolidate (RuleList closedList, RuleMap rMap) {\n \n int steps = 0;\n boolean insert;\n // IF THE RULESET IS ALREADY COMPLETE, NO NEED TO FIND RULES\n if (this.totalProb < 0.999) {\n //System.out.println(\"Incomplete RuleSet : \" ); this.printRules();\n for (int l = 0 ; l < this.references.size(); l++) {\n RuleList r = closedList.getRuleByID(this.references.get(l)).getSameRuleSetRules(sList, closedList, rMap);\n\n for (int i = 0; i < r.size(); i++) {\n\n insert = true;\n // CHECK FOR MATCHES\n for (int h = 0; h < this.references.size(); h++) {\n if ( r.getRule(i).ruleMatch_exact(closedList.getRuleByID(this.references.get(h)))) {\n insert = false;\n }\n } \n if (insert) { \n r.getRule(i).prec_occurrencies = closedList.getRuleByID(this.references.get(0)).prec_occurrencies;\n closedList.addRule(r.getRule(i));\n this.references.add(r.getRule(i).id);\n this.totalProb = this.totalProb + r.getRule(i).getProb();\n this.totalProb = Math.round(this.totalProb * 1000);\n this.totalProb = this.totalProb/1000;\n\n steps++;\n }\n }\n }\n\n }\n \n return steps;\n }", "private void fillDistinctRules(){\n\tint totRules =0;\n\tfor(int i=1;i<ConditionTree.length;i++){\n\t\tif((!ConditionTree[i][1].equals(ConditionTree[i-1][1])) && ConditionTree[i][4].equals(\"String\")){\n\t\t\ttotRules++;\n\t\t}\n\t}\n\n\tdistinctRules = new String[totRules][2];\n\n\t//filling distinct rules array first column i-e rules names only\n\tint disRulIndex = 0;\n\tfor(int i=1;i<ConditionTree.length;i++){\n\t\tif((!ConditionTree[i][1].equals(ConditionTree[i-1][1])) && ConditionTree[i][4].equals(\"String\")){\n\t\t\tdistinctRules[disRulIndex][0] = ConditionTree[i][1];\n\t\t\tdisRulIndex++;\n\t\t}\n\t}\n\t\n\t\n\t\n\tfor(int a=0;a<distinctRules.length;a++){\n\t\tdistinctRules[a][1] = \"\";\n\t\tfor(int i=0;i<ConditionTree.length;i++){\n\t\t\tif(distinctRules[a][0].equals(ConditionTree[i][1])){\n\t\t\t\tdistinctRules[a][1] += ConditionTree[i][3] + \",\";\n\t\t\t}\n\t\t}\n\t\t//removing the last comma\n\t\tdistinctRules[a][1] = distinctRules[a][1].substring(0, distinctRules[a][1].length()-1);\n//\t\tSystem.out.println(distinctRules[a][0] + \" : \" + distinctRules[a][1]);\n\t}\n}", "@Test\r\n\tpublic void testRuleSets2() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0L, testAdminCon.size());\r\n\t\ttestAdminCon.add(micah, lname, micahlname, dirgraph1);\r\n\t\ttestAdminCon.add(micah, fname, micahfname, dirgraph1);\r\n\t\ttestAdminCon.add(micah, developPrototypeOf, semantics, dirgraph1);\r\n\t\ttestAdminCon.add(micah, type, sEngineer, dirgraph1);\r\n\t\ttestAdminCon.add(micah, worksFor, ml, dirgraph1);\r\n\t\t\r\n\t\ttestAdminCon.add(john, fname, johnfname,dirgraph);\r\n\t\ttestAdminCon.add(john, lname, johnlname,dirgraph);\r\n\t\ttestAdminCon.add(john, writeFuncSpecOf, inference, dirgraph);\r\n\t\ttestAdminCon.add(john, type, lEngineer, dirgraph);\r\n\t\ttestAdminCon.add(john, worksFor, ml, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(writeFuncSpecOf, subProperty, design, dirgraph1);\r\n\t\ttestAdminCon.add(developPrototypeOf, subProperty, design, dirgraph1);\r\n\t\ttestAdminCon.add(design, subProperty, develop, dirgraph1);\r\n\t\t\r\n\t\ttestAdminCon.add(lEngineer, subClass, engineer, dirgraph1);\r\n\t\ttestAdminCon.add(sEngineer, subClass, engineer, dirgraph1);\r\n\t\ttestAdminCon.add(engineer, subClass, employee, dirgraph1);\r\n\t\t\r\n\t\tString query = \"select (count (?s) as ?totalcount) where {?s ?p ?o .} \";\r\n\t\tTupleQuery tupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS_PLUS_FULL);\r\n\t\tTupleQueryResult result\t= tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(374, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\r\n\t\tRepositoryResult<Statement> resultg = testAdminCon.getStatements(null, null, null, true, dirgraph, dirgraph1);\r\n\t\t\r\n\t\tassertNotNull(\"Iterator should not be null\", resultg);\r\n\t\tassertTrue(\"Iterator should not be empty\", resultg.hasNext());\r\n\t\t\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.EQUIVALENT_CLASS);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(18, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS,SPARQLRuleset.INVERSE_OF);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(86, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(null,SPARQLRuleset.INVERSE_OF);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(18, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets((SPARQLRuleset)null, null);\r\n\t\ttupleQuery.setIncludeInferred(false);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(16, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t}", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "NFRuleSet getDefaultRuleSet()\n/* */ {\n/* 1381 */ return this.defaultRuleSet;\n/* */ }", "private Grammar createCombinedGrammar(List<ClassDSLInformation> classesInfos) {\n\n\tLinkedList<GrammarCollectionBox> collectionCollector = new LinkedList<GrammarCollectionBox>();\n\n\tfor (ClassDSLInformation classInfo : classesInfos) {\n\n\t List<MethodDSLInformation> validMinfs = filterOnlyValidMethodInformations(classInfo);\n\n\t for (MethodDSLInformation methodInfo : validMinfs) {\n\n\t\tGrammarCollectionBox box = new GrammarCollectionBox(methodInfo);\n\n\t\tDslMethodType dslType = methodInfo.getDSLType();\n\t\tswitch (dslType) {\n\n\t\tcase Literal:\n\t\t // this.handleLiteral(methodInfo, box,\n\t\t // getTypeHandlerConfigurationOnGrammar(classesInfos, box));\n\t\t // this.handleNonLiteral(methodInfo, box,\n\t\t // getTypeHandlerConfigurationOnGrammar(classesInfos, box));\n\t\t // break;\n\t\t //$FALL-THROUGH$\n\t\tcase Operation:\n\t\t this.handleNonLiteral(methodInfo, box, getTypeHandlerConfigurationOnGrammar(classesInfos, box));\n\t\t break;\n\n\t\tcase AbstractionOperator:\n\t\t throw new UnsupportedOperationException(\"Functionality not yet implemented for \" + dslType);\n\t\tdefault:\n\t\t throw illegalForArg(dslType);\n\t\t}\n\t\tcollectionCollector.add(box);\n\t }\n\t}\n\n\t/* Add rule annotations where necessary */\n\n\t// build lookup list for relative priorization lookup\n\tMap<String, GrammarCollectionBox> uidLookupList = new HashMap<String, GrammarCollectionBox>();\n\tfor (GrammarCollectionBox box : collectionCollector) {\n\t uidLookupList.put(box.methodInfo.getUniqueIdentifier(), box);\n\t}\n\tuidLookupList = Collections.unmodifiableMap(uidLookupList);\n\tfor (GrammarCollectionBox grammarCollectionBox : collectionCollector) {\n\t addRuleAnnotations(grammarCollectionBox, uidLookupList);\n\t}\n\n\t/*\n\t * Assemble actual grammar from collected and configured rules and\n\t * categories\n\t */\n\tGrammar grammar = new Grammar();\n\tthis.setupGeneralGrammar(grammar);\n\n\tboolean waterSupported = isWaterSupported(classesInfos);\n\tif (waterSupported) {\n\t this.setWaterEnabled(waterSupported, grammar);\n\t}\n\n\tfor (ClassDSLInformation classInfo : classesInfos) {\n\t this.setupHostLanguageRules(classInfo.getHostLanguageRules(), grammar);\n\t}\n\n\tfor (GrammarCollectionBox box : collectionCollector) {\n\t addBoxContentToGrammar(box, grammar);\n\t}\n\n\treturn grammar;\n }", "private void applyRules () throws DataNormalizationException {\n\t\tapplyRules(null);\n\t}", "private void processStylers(final FeatureCollection features,\n final FeatureTypeStyle[] featureStylers) {\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"processing \" + featureStylers.length + \" stylers\");\n }\n \n for (int i = 0; i < featureStylers.length; i++) {\n FeatureTypeStyle fts = featureStylers[i];\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"about to draw \" + features.size() + \" feature\");\n }\n \n // get rules\n Rule[] rules = fts.getRules();\n \n for (Iterator it = features.iterator(); it.hasNext();) {\n Feature feature = (Feature) it.next();\n \n for (int k = 0; k < rules.length; k++) {\n // if this rule applies\n if (isWithInScale(rules[k]) && !rules[k].hasElseFilter()) {\n Filter filter = rules[k].getFilter();\n Symbolizer[] symbolizers = rules[k].getSymbolizers();\n \n String typeName = feature.getFeatureType().getTypeName();\n \n if (((typeName != null)\n && (feature.getFeatureType().isDescendedFrom(null,\n fts.getFeatureTypeName())\n || typeName.equalsIgnoreCase(fts.getFeatureTypeName())))\n && ((filter == null) || filter.contains(feature))) {\n processSymbolizers(feature, symbolizers);\n }\n }\n }\n \n for (int k = 0; k < rules.length; k++) {\n // if this rule applies\n if (isWithInScale(rules[k]) && rules[k].hasElseFilter()) {\n Symbolizer[] symbolizers = rules[k].getSymbolizers();\n processSymbolizers(feature, symbolizers);\n }\n }\n }\n }\n }", "private void getSensorConditions(List<RuleInstance> rules,Set<Condition> conds)\n{\n for (int i = 0; i < rules.size(); ++i) {\n RuleInstance ri1 = rules.get(i);\n for (int j = i+1; j < rules.size(); ++j) {\n\t RuleInstance ri2 = rules.get(j);\n\t if (ri1.getStateId() == ri2.getStateId()) continue;\n\t addSensorConditions(ri1,ri2,conds);\n }\n }\n}", "protected SortedSet<Operation> getAllOperations(SourceBundle sourceBundle, Map<OperationKey, List<Policy>> conflicts) {\n\t\tMap<OperationKey, Operation> operations = new HashMap<OperationKey, Operation>();\n\n\t\tStaticAnalyzer sa = new StaticAnalyzer(sourceBundle);\n\n\t\tfor (Map.Entry<Policy, Treatment> entry : policiesAndTreatments.entrySet()) {\n\t\t\tPolicy policy = entry.getKey();\n\t\t\tTreatment treatment = entry.getValue();\n\t\t\tSet<Set<PolicyTerm>> staticTerms = policy.getStaticTermGroups();\n\t\t\tSet<Set<PolicyTerm>> dynamicTerms = policy.getDynamicTermGroups();\n\n\t\t\t// prepare suspect lists\n\t\t\tSuspectList staticSuspects = filterSuspectList(sa.getAllSuspects(), staticTerms);\n\t\t\tSuspectList dynamicSuspects = filterSuspectList(sa.getAllSuspects(), dynamicTerms);\n\t\t\tdynamicSuspects.removeAll(staticSuspects); // remove overlapping suspects\n\n\t\t\t// add to the operation list\n\t\t\t// clone a new SourcePosition to prevent contaminating suspects when we modify offsets later\n\t\t\tfor (Suspect s : staticSuspects) {\n\t\t\t\tOperation op = new Operation(cloneSourcePosition(s.getPosition()), s.getType(), true, treatment);\n\t\t\t\taddOperationTo(operations, op, conflicts);\n\t\t\t}\n\t\t\tfor (Suspect s : dynamicSuspects) {\n\t\t\t\tOperation op = new Operation(cloneSourcePosition(s.getPosition()), s.getType(), false, treatment);\n\t\t\t\taddOperationTo(operations, op, conflicts);\n\t\t\t}\n\t\t}\n\n\t\t// now there won't be multiple treatments on same site in operations map any more\n\t\tSortedSet<Operation> sortedOperations = new TreeSet<Operation>(SORT_BY_POSITION_AND_SUSPECT_TYPE);\n\t\tsortedOperations.addAll(operations.values());\n\t\treturn sortedOperations;\n\t}", "public SimpleFeatureCollection simplify(SimpleFeatureCollection bus_links) {\r\n\t\t\r\n\t\t//lists hold simplified and split slope segments\r\n\t\tList<SimpleFeature> simpleSlopes = new ArrayList<SimpleFeature>();\r\n\t List<SimpleFeature> segmentsSlopes = new ArrayList<SimpleFeature>();\r\n\t\t\r\n\t\t//list to hold the assigned rids of the segments\r\n\t \tList<Integer> assigned = new ArrayList<Integer>();\r\n\t \t\r\n\t\t//collections to lists\r\n\t\tList<SimpleFeature> intersections = FeatureOperations.featureCollectionToList(this.intersections);\r\n\t\tList<SimpleFeature> slopeLinks = FeatureOperations.featureCollectionToList(this.getSlopeLinks());\r\n\t\tList<SimpleFeature> slopeLiftLinks = FeatureOperations.featureCollectionToList(this.getLinks());\r\n\t\tList<SimpleFeature> busLinks = (bus_links != null) ? FeatureOperations.featureCollectionToList(bus_links) : null;\r\n\t\t\r\n\t\t//INTERSECTIONS USING KDTREE\r\n\t\t//create spatial index to contain all intersections\r\n\t\tfinal KdTree pointIndex = new KdTree();\r\n\t\tfor (SimpleFeature intersection: intersections) {\r\n\t\t\tpointIndex.insert(((Geometry)intersection.getDefaultGeometry()).getCoordinate(), intersection);\r\n\t\t}\r\n\t\tif (pointIndex.isEmpty()) {\r\n\t\t\tLogger.getLogger(SlopeLinkMatching.class.getName()).log(Level.WARNING, \"kdTree is Emtpy. No Intersections loaded while simplifying slopes\");\r\n\t\t\tLogger.getLogger(Logger.GLOBAL_LOGGER_NAME).log(Level.WARNING, \"kdTree is Emtpy. No Intersections loaded while simplifying slopes\");\r\n\t\t}\r\n\t\t\r\n\t\t//SLOPE LINKS, SLOPE LIFT LINKS AND BUS LINKS USING STRTREE\r\n\t\tfinal SpatialIndex lineIndex = new STRtree();\r\n\t\t//insert all slope links\r\n\t\tfor (SimpleFeature link: slopeLinks) {\r\n\t\t\tEnvelope linkEnvelope = new Envelope(((Geometry) link.getDefaultGeometry()).getEnvelopeInternal());\r\n\t\t\tlineIndex.insert(linkEnvelope, link);\r\n\t\t}\r\n\t\t//insert all slopeLift links\r\n\t\tfor (SimpleFeature link: slopeLiftLinks) {\r\n\t\t\tEnvelope linkEnvelope2 = new Envelope(((Geometry) link.getDefaultGeometry()).getEnvelopeInternal());\r\n\t\t\tlineIndex.insert(linkEnvelope2, link);\r\n\t\t}\r\n\t\t//insert all bus links\r\n\t\tif (busLinks!=null) {\r\n\t\t\tfor (SimpleFeature link: busLinks) {\r\n\t\t\t\tEnvelope linkEnvelope3 = new Envelope(((Geometry) link.getDefaultGeometry()).getEnvelopeInternal());\r\n\t\t\t\tlineIndex.insert(linkEnvelope3, link);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//KEEP INTERSECTING LINKS FOR EACH SLOPE\r\n\t\tfor (SimpleFeature slope_original: this.getFeatures_in()) {\r\n\t\t\t\r\n//if (!slope_original.getAttribute(\"DE_GR_L_1\").equals(\"Sportgastein\")) continue;\r\n\r\n\t\t\t//fetch slope geometry as LengthIndexedLine\r\n\t\t\tGeometry slopeGeom = (Geometry) slope_original.getDefaultGeometry();\r\n\t\t\tLengthIndexedLine lengthLine = new LengthIndexedLine(slopeGeom);\r\n\t\t\t\r\n\t\t\t//get envelope and expand by 5.00 meters\r\n\t\t\tEnvelope search = new Envelope(slopeGeom.getEnvelopeInternal()); \r\n\t\t\tsearch.expandBy(5.00);\r\n\r\n\t\t\t//Vertex ordered Map as index on lengthLine and corresponding coordinate\r\n\t\t\tMap<Double, Coordinate> newVertices = new TreeMap<Double, Coordinate>();\r\n\t\t\t//insert start and end-point\r\n\t\t\tnewVertices.put(lengthLine.getStartIndex(), lengthLine.extractPoint(lengthLine.getStartIndex()));\r\n\t\t\tnewVertices.put(lengthLine.getEndIndex(), lengthLine.extractPoint(lengthLine.getEndIndex()));\r\n\r\n\t\t\t/*------------------------ INTERSECTIONS ------------------------*/\r\n\t\t\t//fetch intersections in the slope envelope\r\n\t\t\tList<?> neighbourIntersections = pointIndex.query(search);\r\n\t\t\t\r\n/*\t\t\tSystem.out.println(\"For slope \" + slope.getAttribute(\"XML_GID\") \r\n\t\t\t\t+ \" found following intersections: \");\r\n\t\t\tfor (Object inters: neighbourIntersections) {\r\n\t\t\t\tSystem.out.println(\"\\tintersection: \" + ((SimpleFeature)((KdNode )inters).getData()).getAttribute(\"gid_start\") + \", \" + ((SimpleFeature)((KdNode )inters).getData()).getAttribute(\"gid_end\"));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"----------------------------------\");\r\n*/\r\n\t\t\t\r\n\t\t\t//iterate through intersections and keep only those on line (using distance threshold)\r\n\t\t\tfor (Object inters: neighbourIntersections) {\r\n\t\t\t\t//get geometry and coordinate\r\n\t\t\t\tGeometry geom = (Geometry) ((SimpleFeature)((KdNode )inters).getData()).getDefaultGeometry();\r\n\t\t\t\tCoordinate coord = geom.getCoordinate();\r\n\t\t\t\t//check if intersection is on line (using distance with threshold 1cm)\r\n\t\t\t\tif (slopeGeom.distance(geom) < 0.001) {\r\n\t\t\t\t\tdouble index = lengthLine.indexOf(coord);\r\n\t\t\t\t\t//add it if not already contained\r\n\t\t\t\t\tif(!newVertices.containsKey(index) && !newVertices.containsValue(coord)) {\r\n\t\t\t\t\t\tnewVertices.put(index, coord);\r\n\t\t\t\t\t}\r\n//\t\t\t\t\tSystem.out.println(\"\\tintersection: \" + ((SimpleFeature)((KdNode )inters).getData()).getAttribute(\"gid_start\") + \", \" \r\n//\t\t\t\t\t+ ((SimpleFeature)((KdNode )inters).getData()).getAttribute(\"gid_end\"));\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/*------------------------ LINKS ------------------------*/\r\n\t\t\t//fetch links in the envelope\r\n\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\tList<SimpleFeature> neighbourLinks = lineIndex.query(search);\r\n\r\n/*\t\t\tSystem.out.println(\"For slope \" + slope.getAttribute(\"XML_GID\") \r\n\t\t\t\t+ \" found following links: \");\r\n\t\t\tfor (SimpleFeature link: neighbourLinks) {\r\n\t\t\t\tSystem.out.println(\"\\tlink: \" + link.getAttribute(\"gid_start\") + \", \" + link.getAttribute(\"gid_end\"));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"----------------------------------\");\r\n*/\r\n\t\t\t\r\n\t\t\t//iterate through links and keep only those on line (using distance threshold)\r\n\t\t\tfor (SimpleFeature link : neighbourLinks) {\t\t\t\t\r\n\t\t\t\tGeometry linkGeom = (Geometry) link.getDefaultGeometry();\r\n\t\t\t\t//filter out links not intersecting with slope\r\n\t\t\t\tif(slopeGeom.distance(linkGeom) < 0.05) {\r\n\t\t\t\t\tCoordinate[] linkCoords = linkGeom.getCoordinates();\r\n\t\t\t\t\t//check which link end-point is on line (using distance with threshold 5cm) and add if not already contained\r\n\t\t\t\t\tfor (Coordinate linkCoord: linkCoords) {\r\n\t\t\t\t\t\tif (slopeGeom.distance(FeatureMatching.geomOps.coordinateToPointGeometry(linkCoord)) < 0.05 && !newVertices.containsValue(linkCoord)) {\r\n\t\t\t\t\t\t\tnewVertices.put(lengthLine.indexOf(linkCoord), linkCoord);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t//System.out.println(\"\\tlink: \" + link.getAttribute(\"gid_start\") + \", \" + link.getAttribute(\"gid_end\"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*-------------------------------------------------------*/\r\n\t\t\t\r\n\t\t\t//new coordinate list from kept indices, for the creation of the simplified feature\r\n\t\t\tList<Coordinate> simplifiedCoords = new ArrayList<Coordinate>();\r\n\t\t\tfor (Entry<Double, Coordinate> entry: newVertices.entrySet()){\r\n\t\t\t\tif (!simplifiedCoords.contains(entry.getValue()))\r\n\t\t\t\tsimplifiedCoords.add(entry.getValue());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//use the simplified coordinates to split original bus geometry to its bus segments at topologic nodes\r\n\t\t\t//geometry must be preserved\r\n\t\t\t//semantic attributes must be preserved\r\n\t\t\t// r_id attribute must be added\r\n\t\t\tArrayList<SimpleFeature> splitSegments = FeatureMatching.featOps.splitFeatureAtCoordinates(slope_original, simplifiedCoords);\r\n\t\t\t\r\n\t\t\t//create new feature and add to feature collection\r\n\t\t\tSimpleFeatureType simplifiedType = FeatureOperations.makeLineStringFeatureType(this.getFeatures_in()[0].getFeatureType().getCoordinateReferenceSystem(), \"merged_pivots\");\r\n\t\t\tSimpleFeature simplifiedSlope = FeatureMatching.featOps.getFeatureFromCoordinates(simplifiedType, simplifiedCoords.toArray(new Coordinate[0]));\r\n\t\t \tString deName = slope_original.getAttribute(\"DE_GR_L_0\").toString() + \" \" + slope_original.getAttribute(\"DE_GR_L_1\").toString();\r\n\t\t \t//split feature at remaining vertices to line segments (for each vertex pair)\r\n\t\t \tArrayList<SimpleFeature> simpleSegments = FeatureMatching.featOps.splitFeatureAtVertices(simplifiedSlope);\r\n\t\t \t//rids building\r\n\t\t \tint segmentNumber = 1;\r\n//if(splitSegments.size() != simpleSegments.size()) {\t\t \t\r\n//System.out.println(slope_original.getAttribute(\"XML_GID\").toString() + \": \" +splitSegments.size() + \" / \" + simpleSegments.size());\t\r\n//System.exit(0);\r\n//}\t\t\t\r\n\t\t \tfor (SimpleFeature simpleSegment: simpleSegments) {\r\n\t\t \t\tGeometry segment_geom = (Geometry) simpleSegment.getDefaultGeometry();\r\n\t\t \t\tCoordinate[] segment_coords = segment_geom.getCoordinates(); \r\n\t\t \t\t//indexedLineGeom to getLength\r\n\t\t \t\tdouble length = lengthLine.extractLine(lengthLine.indexOf(segment_coords[0]), lengthLine.indexOf(segment_coords[1])).getLength();\r\n\t\t \t\t//in case segment has zero length ignore it and proceed to the next\r\n\t\t \t\tif (length == 0.0) continue;\t//{System.err.println(length);}\r\n\t\t \t\tdouble cost_1, cost_2, cost_3, r_cost_1, r_cost_2, r_cost_3;\r\n if (Integer.parseInt(slope_original.getAttribute(\"difficulty\").toString()) == 1) {\r\n r_cost_1 = length; r_cost_2 = 10 * length; r_cost_3 = 15 * length;\r\n cost_1 = length; cost_2 = 10 * length; cost_3 = 15 * length;\r\n } else if (Integer.parseInt(slope_original.getAttribute(\"difficulty\").toString()) == 2) {\r\n r_cost_1 = 5 * length; r_cost_2 = length; r_cost_3 = 5 * length;\r\n cost_1 = 5 * length; cost_2 = length; cost_3 = 5 * length;\r\n } else if (Integer.parseInt(slope_original.getAttribute(\"difficulty\").toString()) == 3) {\r\n r_cost_1 = 15 * length; r_cost_2 = 10 * length; r_cost_3 = length;\r\n cost_1 = 15 * length; cost_2 = 10 * length; cost_3 = length;\r\n } else {\r\n r_cost_1 = length; r_cost_2 = length; r_cost_3 = length;\r\n cost_1 = length; cost_2 = length; cost_3 = length;\r\n }\r\n \r\n\t\t \t\t//build unique r_id\r\n int slopeNumber = Integer.parseInt(slope_original.getAttribute(\"XML_GID\").toString());\r\n\t\t \t\tint rid = Integer.parseInt(\"1\"+ digitRectifier(slopeNumber, 5) + digitRectifier(segmentNumber, 3));\r\n\t\t \t\twhile (assigned.contains(rid)) {\r\n\t\t \t\t\trid++;\r\n\t\t \t\t\tsegmentNumber++;\r\n\t\t \t\t}\r\n\t\t \t\tassigned.add(rid);\r\n\t\t \t\tsegmentNumber++;\r\n\t\t \t\t//pass computed r_id to the corresponded split segment\r\n\t\t \t\tsplitSegments.get(simpleSegments.indexOf(simpleSegment)).setAttribute(\"r_id\", rid);\r\n\t\t \t\tsplitSegments.get(simpleSegments.indexOf(simpleSegment)).setAttribute(\"difficulty\", Integer.parseInt(slope_original.getAttribute(\"difficulty\").toString()));\r\n \r\n\t\t\t \tMap <String, Object> attrs = new LinkedHashMap<String, Object>();\r\n\t\t\t \tattrs.put(\"XML_TYPE\", \"slopes\");\r\n\t\t\t \tattrs.put(\"de_name\", deName);\r\n\t\t\t \tattrs.put(\"difficulty\", Integer.parseInt(slope_original.getAttribute(\"difficulty\").toString()));\r\n\t\t\t \tattrs.put(\"source\", String.valueOf(0));\r\n\t\t\t \tattrs.put(\"target\", String.valueOf(0));\r\n\t\t\t \tattrs.put(\"duration\", Double.parseDouble(\"0\")); //duration 0 for slopes\r\n\t\t\t \tattrs.put(\"length\", length); \r\n\t\t\t \tattrs.put(\"r_length\", length); \r\n attrs.put(\"r_rev_c\", (double) -1);\r\n attrs.put(\"rev_c\", (double) -1);\r\n\t\t\t \tattrs.put(\"cost_1\", cost_1);\r\n\t\t\t \tattrs.put(\"cost_2\", cost_2);\r\n\t\t\t \tattrs.put(\"cost_3\", cost_3);\r\n\t\t\t \tattrs.put(\"r_cost_1\", r_cost_1);\r\n\t\t\t \tattrs.put(\"r_cost_2\", r_cost_2);\r\n\t\t\t \tattrs.put(\"r_cost_3\", r_cost_3);\r\n\t\t\t \tattrs.put(\"open\", (int) 0);\r\n\t\t\t \tattrs.put(\"start_z\", segment_coords[0].z/10);\r\n\t\t\t \tattrs.put(\"end_z\", segment_coords[segment_coords.length-1].z/10);\r\n\t\t\t\tattrs.put(\"r_id\", rid);\r\n\t\t\t\t//add attributes\r\n\t\t\t\tfor (Map.Entry<String, Object> attribute : attrs.entrySet()){\r\n\t\t\t\t\tsimpleSegment = FeatureOperations.addAttribute(simpleSegment, attribute.getKey(), attribute.getValue());\r\n\t\t\t\t\tsimpleSegment.setAttribute(attribute.getKey(), attribute.getValue());\r\n\t\t\t\t}\r\n\t\t\t\tsimpleSlopes.add(simpleSegment);\r\n\t\t \t}\r\n\t\t \tsegmentsSlopes.addAll(splitSegments);\r\n\r\n\t\t\t//CONTROL METHOD PRINTS OUT SLOPE WITH NO CONNECTIONS\r\n/*\t\t\tif (neighbourLinks.size() == 0 && neighbourIntersections.size() == 0) {\r\n\t\t\t\tSystem.err.println(\"Slope with 'r_id' \" + slope_original.getAttribute(\"XML_GID\") + \" was found with no links and no intersections\");\r\n\t\t\t} else if (neighbourLinks.size() == 0) {\r\n\t\t\t\tSystem.err.println(\"Slope with 'r_id' \" + slope_original.getAttribute(\"XML_GID\") + \" was found with no links\");\r\n\t\t\t}*/\r\n\t\t\t//TODO:METHOD END PRINT RESULT TO FILE\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//create segments_buses shapeFile\r\n\t\tSimpleFeatureCollection newSlopeSegments = new ListFeatureCollection(segmentsSlopes.get(0).getFeatureType(), segmentsSlopes);\r\n\t\tFileOperations.createShapeFile(newSlopeSegments, StartConfiguration.getInstance().getFolder_out() + \"segments_slopes.shp\");\t\r\n\t\t//return feature collection\r\n\t\tSimpleFeatureCollection simplifiedSlopes = new ListFeatureCollection(simpleSlopes.get(0).getFeatureType(), simpleSlopes);\r\n\t\t\r\n\t\t\r\n\t\treturn simplifiedSlopes;\r\n\t}", "public static List<Rule> mergeSameWhereExpr(final Iterable<Rule> rules) {\n\n // Group together rules with the same fixpoint, phase and WHERE expression\n final Map<List<Object>, List<Rule>> clusters = new HashMap<>();\n for (final Rule rule : rules) {\n final List<Object> key = Arrays.asList(rule.fixpoint, rule.phase, rule.whereExpr);\n List<Rule> cluster = clusters.get(key);\n if (cluster == null) {\n cluster = new ArrayList<>();\n clusters.put(key, cluster);\n }\n cluster.add(rule);\n }\n\n // Create a merged rule for each cluster obtained before\n final List<Rule> mergedRules = new ArrayList<>();\n for (final List<Rule> cluster : clusters.values()) {\n final Rule first = cluster.get(0);\n final String namespace = first.getID().getNamespace();\n final Set<String> names = new TreeSet<>();\n TupleExpr newDeleteExpr = null;\n TupleExpr newInsertExpr = null;\n for (int i = 0; i < cluster.size(); ++i) {\n final Rule rule = cluster.get(i);\n final String s = rule.getID().getLocalName();\n final int index = s.indexOf(\"__\");\n names.add(index < 0 ? s : s.substring(0, index));\n newDeleteExpr = newDeleteExpr == null ? rule.deleteExpr //\n : new Join(newDeleteExpr, rule.deleteExpr);\n newInsertExpr = newInsertExpr == null ? rule.insertExpr //\n : new Join(newInsertExpr, rule.insertExpr);\n }\n final URI id = newID(namespace + String.join(\"_\", names));\n mergedRules.add(new Rule(id, first.fixpoint, first.phase, newDeleteExpr,\n newInsertExpr, first.whereExpr));\n }\n return mergedRules;\n }", "public void automerge() {\n\t\tif (automerge) {\n\t\t\tfor(int i = 0; i<create_modifier+1;i++) {\n\t\t\t\tmerge();\n\t\t\t}\n\t\tif(autoidentify) {\n\t\t\tauto_identify_crystal(autoIdentifyTier); // replace this eventually\n\t\t}\n\t\t\t//collection();\n\t\t}\n\t}", "@Override\n\tpublic List<String> combine() {\n\t\tsuper.prune = false;\n\t\tint iterationCounter = 0;\n\t\tfinal List<Mention> copyContext = Lists.newArrayList(this.context);\n\t\tSystem.out.println(getClass().getName()+\" - Mentions[\"+copyContext+\"]\");\n\t\t// Sorts them for the sake of initialisation picking based on word order\n\t\tCollections.sort(copyContext, Comparators.mentionOffsetComparator);\n\t\t// Computing clusters outside, so we don't have to redo it every time\n\t\tfinal Map<String, List<String>> clusters = computeClusters(copyContext);\n\t\t// Remove entities that do not have an associated embedding\n\t\t// & cluster if they are left w/o entity as a result of it\n\t\tremoveInvalidEmbeddings(clusters);\n\n\t\tfinal Map<String, List<MutablePair<String, Double>>> continuousChoices = new HashMap<>();\n\t\twhile (copyContext.size() > 1 && clusters.size() > 1) {\n\t\t\t// Do the picking logic\n\t\t\tSystem.out.println(\"Displaying (valid) clusters: \"+displayMap(clusters, 10));\n\t\t\tfinal Map<String, Pair<String, Double>> iterationChoices = super.pickItems(clusters);\n\n\t\t\t// If no item has been picked, there is no need to continue... -> jump out\n\t\t\tif (iterationChoices == null || iterationChoices.size() < 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\t// Processes the choices and removes the worst 'cluster of candidates'\n\t\t\t\tprocessIterationResults(continuousChoices, iterationChoices, clusters, copyContext);\n\t\t\t} catch (IllegalArgumentException | NullPointerException exc) {\n\t\t\t\tSystem.err.println(\"###########################################\");\n\t\t\t\tSystem.out.println(\"Clusters:\" + displayMap(clusters));\n\t\t\t\tSystem.err.println(\"###########################################\");\n\t\t\t\tSystem.out.println(\"Iteration Choices:\" + displayMap(iterationChoices));\n\t\t\t\tSystem.err.println(\"###########################################\");\n\t\t\t\tSystem.err.println(\"Copy context:\" + copyContext);\n\t\t\t\tSystem.err.println(\"###########################################\");\n\t\t\t\tSystem.err.println(\"Context: \" + context);\n\t\t\t\tSystem.err.println(\"###########################################\");\n\t\t\t\tthrow exc;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Iteration(#\" + iterationCounter++ + \") Choices:\");\n\t\t\tSystem.out.println(displayMap(iterationChoices));\n\t\t}\n\n\t\t// Now just get the best one for each surface form\n\t\tfinal List<String> retList = Lists.newArrayList();\n\t\tfor (Entry<String, List<MutablePair<String, Double>>> entrySurfaceForm : continuousChoices.entrySet()) {\n\t\t\tDouble maxValue = Double.MIN_VALUE;\n\t\t\tPair<String, Double> maxPair = null;\n\t\t\tString maxKey = null;\n\n\t\t\tfor (MutablePair<String, Double> pair : entrySurfaceForm.getValue()) {\n\t\t\t\tif (pair.getValue() > maxValue) {\n\t\t\t\t\tmaxPair = pair;\n\t\t\t\t\tmaxValue = pair.getValue();\n\t\t\t\t\tmaxKey = pair.getKey();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (maxKey != null) {\n\t\t\t\tretList.add(maxKey);\n\t\t\t}\n\t\t}\n\n\t\tgetLogger().info(\"FINAL CHOICES[\" + retList.size() + \"]: \" + retList);\n\t\treturn retList;\n\t}", "public String[] getRuleSetNames()\n/* */ {\n/* 945 */ return (String[])this.publicRuleSetNames.clone();\n/* */ }", "private static void addAllSynset(ArrayList<String> synsets, String chw, IDictionary dictionary) {\n\t\tWordnetStemmer stemmer = new WordnetStemmer(dictionary);\n\t\tchw = stemmer.findStems(chw, POS.NOUN).size()==0?chw:stemmer.findStems(chw, POS.NOUN).get(0);\n\t\t\n\t\tIIndexWord indexWord = dictionary.getIndexWord(chw, POS.NOUN);\n\t\tList<IWordID> sensesID = indexWord.getWordIDs();\n\t\tList<ISynsetID> relaWordID = new ArrayList<ISynsetID>();\n\t\tList<IWord> words;\n\t\t\n\t\tfor(IWordID set : sensesID) {\n\t\t\tIWord word = dictionary.getWord(set);\n\t\t\t\n\t\t\t//Add Synonym\n\t\t\trelaWordID.add(word.getSynset().getID());\n\n\t\t\t//Add Antonym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.ANTONYM));\n\t\t\t\n\t\t\t//Add Meronym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.MERONYM_MEMBER));\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.MERONYM_PART));\n\t\t\t\n\t\t\t//Add Hypernym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.HYPERNYM));\n\t\t\t\n\t\t\t//Add Hyponym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.HYPONYM));\n\t\t}\n\t\t\n\t\tfor(ISynsetID sid : relaWordID) {\n\t\t\twords = dictionary.getSynset(sid).getWords();\n\t\t\tfor(Iterator<IWord> i = words.iterator(); i.hasNext();) {\n\t\t\t\tsynsets.add(i.next().getLemma());\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tprotected boolean rulesGeneration() {\n\t\tGlobal.logger.finer(\"--------------------- S101 rulesGeneration() ----------------- \");\n\t\t//Global.logger.finer(this.toString());\t\t\n\t\tif(activationGuards()){\n\t\t\ttry {\n\t\t\t\tthis.categories.beforeFirst();\n\t\t\t\t\n\t\t\t\twhile (!this.categories.isClosed() && this.categories.next()) {\n\t\t\t\t\tgroupName = this.categories.getString(\"name\");\n\t\t\t\t\tGlobal.logger.fine(\"Creating new S102 [\" + groupName + \", \" + 1 +\"] \");\n\t\t\t\t\tcreateRule(new S102(course_ID, groupName, 1));\n\t\t\t\t\t\n\t\t\t\t\tGlobal.logger.fine(\"Creating new S103 [\" + groupName + \", study ]\");\n\t\t\t\t\tcreateRule(new S103(course_ID, groupName, \"study\"));\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse \n\t\t\treturn false;\n\t\treturn true;\n\t}", "public static List<ExtendRule> removeRedundantExtendedRules_transactionBased(List<ExtendRule> rules) {\n LOGGER.info(\"STARTED removeRedundantExtendedRules - transaction based\");\n LOGGER.info(\"Rules on start:\" + rules.size());\n ExtendRule defRule = rules.get(rules.size()-1);\n if (defRule.getAntecedent().getItems().size()>0)\n {\n LOGGER.warning(\"Default rule is not last rule. Returning null. Last rule:\" + defRule.toString() );\n \n return null;\n }\n Consequent defClass = defRule.getConsequent(); \n for (Iterator<ExtendRule> it = rules.iterator(); it.hasNext();) { \n ExtendRule PRCandidate = it.next();\n // PRCandidate = go through all rules with default class in the consequent\n if (!PRCandidate.getConsequent().toString().equals(defClass.toString()))\n {\n\n }\n // skip default rule\n else if (PRCandidate.equals(defRule))\n {\n \n } \n else{\n Set<Transaction> suppTran = PRCandidate.getAntecedent().getSupportingTransactions();\n // get transactions only CORRECTLY classified by the candidate rule\n Set<Transaction> consTran = PRCandidate.getConsequent().getSupportingTransactions();\n suppTran.retainAll(consTran);\n\n // Check if transactions correctly classified by pruning candidate intersect with transactions covered by those rules below prunCand in the rule list that assign to different than default class. If there are no such transactions PRCandidate can be removed\n boolean nonEmptyIntersection=false;\n boolean positionBelowPRCand = false;\n for (Iterator<ExtendRule> innerIt = rules.iterator(); innerIt.hasNext();) {\n ExtendRule candidateClash = innerIt.next();\n // candidateClash is PRCandidate, which would always evaluate to overlap!\n if (candidateClash.equals(PRCandidate))\n {\n positionBelowPRCand = true;\n continue;\n }\n if (!positionBelowPRCand) continue;\n // candidateClash = go through all rules with OTHER than default class in consequent \n if (candidateClash.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n\n // check if transactions covered by PRCandidate intersect with transactions covered by candidateClash \n\n for (Transaction t : candidateClash.getAntecedent().getSupportingTransactions())\n {\n\n if (suppTran.contains(t))\n {\n nonEmptyIntersection=true;\n }\n break;\n } \n if (nonEmptyIntersection)\n {\n //go to next PRCandidate \n break;\n } \n }\n if (nonEmptyIntersection == false)\n {\n //no other rule with different consequent covering at least one shared transaction was found\n //this rule can be removed\n LOGGER.fine(\"Removing rule:\" + PRCandidate.toString());\n it.remove();\n } \n }\n \n }\n LOGGER.info(\"Rules on finish:\" + rules.size());\n LOGGER.info(\"FINISHED removeRedundantExtendedRules - transaction based\");\n return rules;\n }", "public void analize() {\n\t\t//clearing dropping rules\n\t\tthis.droppingRules.clear();\n\t\t//analysing new rules\n\t\tanalizeParts();\n\t}", "public Set<OWLLogicalAxiom> canWeDoBetter(){\n\t\tSet<Set<OWLClass>> largeSCCs =\n\t\t\t\ttarj.getStronglyConnectComponents().\n\t\t\t\t\t\tstream().\n\t\t\t\t\t\tfilter(x -> x.size() > 1).\n\t\t\t\t\t\tcollect(Collectors.toSet());\n\n\t\t//Add all those axioms which use their own definition on the RHS\n\t\tSet<OWLLogicalAxiom> cycleCausing = new HashSet<>();\n\t\tcycleCausing.addAll(builder.getSelfDefinedAxioms());\n\n\t\tfor(OWLLogicalAxiom axiom : axioms){\n\t\t\tOWLClass name = (OWLClass) AxiomSplitter.getNameofAxiom(axiom);\n\t\t\t\tfor(Set<OWLClass> component : largeSCCs){\n\t\t\t\t\tif(component.contains(name)){\n\t\t\t\t\t\tOWLClassExpression def = AxiomSplitter.getDefinitionofAxiom(axiom);\n\t\t\t\t\t\tSet<OWLClass> defCls = ModuleUtils.getNamedClassesInSignature(def);\n\t\t\t\t\t\tSet<OWLClass> inter = Sets.intersection(component, defCls);\n\t\t\t\t\t\tif(!inter.isEmpty()){\n\t\t\t\t\t\t\tcycleCausing.add(axiom);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\treturn cycleCausing;\n\t}", "private Set<Norm> regulateConflicts(Map<Goal, List<Conflict>> conflicts) {\n\t\tHashSet<Norm> createdNorms = new HashSet<Norm>();\n\t\tSet<Norm> normsForConflict;\n\t\t\n\t\tfor(Goal goal : conflicts.keySet()) {\n\t\t\tfor(Conflict conflict : conflicts.get(goal)) {\n\t\t\t\tnormsForConflict = this.regulateConflict(conflict, goal);\n\t\t\t\tcreatedNorms.addAll(normsForConflict);\n\t\t\t}\n\t\t}\n\t\treturn createdNorms;\n\t}", "public void combine(SupplyList s){\n Iterator<SupplyNode> it = s.getMap().values().iterator();\n \n while(it.hasNext()){\n SupplyNode r = it.next();\n \n if(t.get(r.getResource().getName()) == null){\n // new resource\n addResourceSpace(r.getResource(),r.getMax());\n } else {\n // adjust resource\n adjustValue(r.getResource().getName(),r.getMax()+getNode(r.getResource().getName()).getCurrent());\n }\n }\n }", "public void cleanse(Set<Bundles> active) {\r\n // Clear the ent_2_i's\r\n ent_2_i.clear(); post_processors = null;\r\n\r\n // Initialize by creating a lookup for the post processors\r\n Map<BundlesDT.DT, Set<PostProc>> pp_lu = new HashMap<BundlesDT.DT, Set<PostProc>>();\r\n String pp_strs[] = BundlesDT.listEnabledPostProcessors();\r\n for (int i=0;i<pp_strs.length;i++) {\r\n PostProc pp = BundlesDT.createPostProcessor(pp_strs[i], this);\r\n BundlesDT.DT dt = pp.type();\r\n if (pp_lu.containsKey(dt) == false) pp_lu.put(dt, new HashSet<PostProc>());\r\n pp_lu.get(dt).add(pp);\r\n }\r\n\r\n // First, accumulate all of the active entities\r\n Set<String> active_entities = new HashSet<String>();\r\n Iterator<Bundles> it_bs = active.iterator();\r\n while (it_bs.hasNext()) {\r\n Bundles bundles = it_bs.next();\r\n Iterator<Tablet> it_tab = bundles.tabletIterator();\r\n while (it_tab.hasNext()) {\r\n Tablet tablet = it_tab.next();\r\n // Figure out which fields are in the tablet\r\n\tList<Integer> fld_is = new ArrayList<Integer>();\r\n\tfor (int fld_i=0;fld_i<bundles.getGlobals().numberOfFields();fld_i++) {\r\n\t if (tablet.hasField(fld_i)) fld_is.add(fld_i);\r\n }\r\n\tint fields[] = new int[fld_is.size()]; for (int i=0;i<fields.length;i++) fields[i] = fld_is.get(i);\r\n\t// Go through the individual bundle elements\r\n\tIterator<Bundle> it = tablet.bundleIterator();\r\n\twhile (it.hasNext()) {\r\n\t Bundle bundle = it.next();\r\n\t for (int i=0;i<fields.length;i++) {\r\n // System.err.println(\"cleanse:fields[\" + i + \"] = \" + fields[i]); // abc DEBUG\r\n\t String ent = bundle.toString(fields[i]);\r\n\t active_entities.add(ent); \r\n addFieldEntity(fields[i], ent);\r\n\t // Add the post processor versions...\r\n BundlesDT.DT datatype = BundlesDT.getEntityDataType(ent);\r\n if (pp_lu.containsKey(datatype)) {\r\n\t Iterator<PostProc> it_pp = pp_lu.get(datatype).iterator();\r\n\t while (it_pp.hasNext()) {\r\n\t String converts[] = it_pp.next().postProcess(ent);\r\n\t\tfor (int j=0;j<converts.length;j++) {\r\n active_entities.add(converts[j]);\r\n }\r\n }\r\n\t }\r\n\t }\r\n\t}\r\n }\r\n }\r\n // Re-add the range values\r\n addRangeIntegers();\r\n // Clear the caches\r\n CacheManager.clearCaches();\r\n // Lastly, clear transforms\r\n resetTransforms();\r\n }", "public void pruneRules_greedy() {\n LOGGER.info(\"STARTED Postpruning\");\n AttributeValue defClass = getDefaultRuleClass();\n int defError = getDefaultRuleError(defClass);\n boolean removeTail=false;\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"#Rule {0}\", rule.toString());\n }\n \n if (removeTail)\n {\n it.remove();\n }\n else if (rule.getAntecedentLength() == 0) {\n it.remove();\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n it.remove();\n }\n else\n {\n int supportingTransactions = rule.removeTransactionsCoveredByAntecedent(true);\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n if (defError<=newDefError)\n {\n //adding the current rule did not decrease the errors compared to a default rule\n it.remove();\n removeTail=true;\n }\n else{\n LOGGER.log(Level.FINE, \"{0} transactions, RULE {1} KEPT\", new Object[]{supportingTransactions, rule.getRID()});\n defClass = newDefClass;\n defError = newDefError;\n } \n }\n \n \n\n\n }\n LOGGER.fine(\"Creating new Extend rule within narrow rule procedure\");\n extendedRules.add(createNewDefaultRule(defClass));\n LOGGER.info(\"FINISHED Postpruning\");\n }", "public List<StatementSource> sourceWiseRankingAndSkipping(StatementPattern sp, List<StatementSource> capableDatasources) {\n if (!sp.getPredicateVar().hasValue()) {\n //System.out.println(\"unbounded predicate\");\n return capableDatasources;\n }\n String predicate = sp.getPredicateVar().getValue().stringValue();\n StatementSource selectedSource = getMaxSizeSource(capableDatasources, sp);\n //System.out.println(\"selectedSource: \"+selectedSource);\n if (selectedSource == null) { // the index does not have information about the capable sources\n //System.out.println(\"index without information about capable source for predicate \"+predicate);\n return capableDatasources;\n }\n EndpointSummary e = summaries.get(endpoints.get(selectedSource.getEndpointID()));\n List<StatementSource> rankedSources = new ArrayList<StatementSource>();\n Capability c = e.getCapability(predicate);\n double unionMIPsSetSize = c.getTotal();\n Vector<Long> unionMIPs = c.getMIPVector();\n rankedSources.add(selectedSource);\n capableDatasources.remove(selectedSource);\n while (!capableDatasources.isEmpty()) {\n selectedSource = null;\n double maxNewTriples = 0;\n \n for (StatementSource ss : capableDatasources) {\n e = summaries.get(endpoints.get(ss.getEndpointID()));\n //System.out.println(\"endpoint: \"+ss.getEndpointID());\n //System.out.println(\"predicate: \"+predicate);\n //System.out.println(\"e: \"+e);\n c = e.getCapability(predicate);\n Vector<Long> MIPs = c.getMIPVector();\n double MIPsSetSize = c.getTotal();\n \n if (sp.getSubjectVar().hasValue()) {\n MIPsSetSize = MIPsSetSize * c.getAverageSubSel();\n } else if (sp.getObjectVar().hasValue()) {\n MIPsSetSize = MIPsSetSize * c.getAverageObjSel();\n }\n //System.out.println(\"unionMIPsSetSize: \"+unionMIPsSetSize+\". MIPsSetSize: \"+MIPsSetSize);\n double overlapSize = getOverlap(unionMIPs,MIPs, unionMIPsSetSize, MIPsSetSize);\n // how many of the triples accessibles through ss are new ? \n double newTriples = MIPsSetSize - overlapSize; \n if (newTriples > maxNewTriples) {\n selectedSource = ss;\n maxNewTriples = newTriples;\n }\n }\n double curThresholdVal = maxNewTriples / unionMIPsSetSize;\n //System.out.println(\"maxNewTriples: \"+maxNewTriples+\". curThresholdVal: \"+curThresholdVal);\n if (curThresholdVal > this.threshold) {\n rankedSources.add(selectedSource);\n e = summaries.get(endpoints.get(selectedSource.getEndpointID()));\n c = e.getCapability(predicate);\n Vector<Long> selectedMIPs = c.getMIPVector();\n double selectedMIPsSize = c.getTotal();\n unionMIPs = makeUnion(unionMIPs, selectedMIPs);\n double r = getResemblance(unionMIPs, selectedMIPs);\n unionMIPsSetSize = Math.ceil((unionMIPsSetSize + selectedMIPsSize) / (r + 1));\n } else { \n break;\n } \n capableDatasources.remove(selectedSource);\n }\n return rankedSources;\n }", "@Override\n\tpublic IPredicate merge(final Collection<IPredicate> states) {\n\n\t\tfinal Set<HcPredicateSymbol> mergedLocations = new HashSet<>();\n\t\tstates.stream().filter(s -> s instanceof HCPredicate)\n\t\t\t\t.forEach(hcp -> mergedLocations.addAll(((HCPredicate) hcp).getHcPredicateSymbols()));\n\n\t\tfinal IPredicate mergedPred = mPredicateFactory.or(true, states);\n\t\tfinal Term mergedFormula = mergedPred.getFormula();\n\n//\t\tTerm mergedFormula = mMgdScript.getScript().term(\"false\");\n\n//\t\tList<TermVariable> varsForHcPred = null;\n\n//\t\tfor (final IPredicate pred : states) {\n//\t\t\tif (mPredicateFactory.isDontCare(pred)) {\n//\t\t\t\treturn pred;\n//\t\t\t}\n\n//\t\t\tif (pred instanceof HCPredicate) {\n//\t\t\t\tmergedLocations.addAll(((HCPredicate) pred).getHcPredicateSymbols());\n//\t\t\t\tassert varsForHcPred == null || varsForHcPred.equals(((HCPredicate) pred).getSignature()) : \"merging \"\n//\t\t\t\t\t\t+ \"predicates with a different signature. Does that make sense??\";\n//\t\t\t\tvarsForHcPred = ((HCPredicate) pred).getSignature();\n//\t\t\t}\n//\t\t\tmergedFormula = mSimplifier.getSimplifiedTerm(\n//\t\t\t\t\tSmtUtils.or(mMgdScript.getScript(), mergedFormula, pred.getFormula()));\n//\t\t}\n\t\tif (mergedLocations.isEmpty()) {\n\t\t\treturn mPredicateFactory.newPredicate(mergedFormula);\n\t\t} else if (mPredicateFactory.isDontCare(mergedFormula)) {\n\t\t\treturn mPredicateFactory.newPredicate(mergedLocations, mergedFormula, Collections.emptyList());\n\t\t} else {\n\t\t\treturn mPredicateFactory.newPredicate(mergedLocations, mergedFormula,\n\t\t\t\t\tArrays.asList(mergedFormula.getFreeVars()));\n\t\t}\n\t}", "@Override\n\tpublic List<DiagnosisCoreRule> generateRules(List<DiagnosisCoreResult> allDataList) {\n\t\treturn null;\n\t}", "private static void getRulesFromFile() {\n File ruleFolder = new File(\"rules\");\n List<String> packageManagersWithRules = Stream.of(ruleFolder.list())\n .filter(f -> f.endsWith(\".rules\"))\n .map(f -> f.substring(0,f.lastIndexOf('.')))\n .sorted()\n .collect(Collectors.toList());\n\n RULES_BY_PACKAGE = new HashMap<>();\n for (String packagemanager : packageManagersWithRules) {\n RULES_BY_PACKAGE.put(packagemanager, parseRules(ruleFolder, packagemanager));\n }\n\n }", "public void rewrite(){\n\t\t//SROEL2DatalogRewriter rewriter = new SROEL2DatalogRewriter();\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\t//Rewriting for global context.\n\t\tRLGlobal2DatalogRewriter globalrewriter = new RLGlobal2DatalogRewriter();\n\t\tdatalogGlobal = globalrewriter.rewrite(inputCKR.getGlobalOntology());\n\t\t//System.out.println(\"Rewriting program for global context complete.\");\n\t\t\n\t\t//Computation of set of contexts and associations to modules\n\t\tcomputeSets(datalogGlobal);\n\t\t//System.out.println(\"Set of contexts and modules associations computed.\");\n\t\t\n\t\t//Computation of local contexts knowledge bases.\n\t\tcomputeLocalKB();\n\t\t\n\t\t//Rewriting for local contexts knowledge bases.\n\t\tRLLocal2DatalogRewriter localrewriter = new RLLocal2DatalogRewriter();\n\t\t\n\t\tdatalogLocal = new LinkedList<DLProgram>();\n\t\tfor (String c : contextsSet) {\n\t\t\t//System.out.println(\"Rewriting program for \" + c.replaceAll(\"\\\"\", \"\"));\n\t\t\tlocalrewriter.setContextID(c.replaceAll(\"\\\"\", \"\"));\n\t\t\tdatalogLocal.add(localrewriter.rewrite(contextsOntologies.get(c)));\n\t\t}\n\t\t\n\t\t//for (OWLOntology o : inputCKR.getLocalOntology()) {\n\t\t//\tlocalrewriter.setLocalID(\"c\");\n\t\t//\t//o.getOWLOntologyManager().addAxioms(o, inputCKR.getGlobalOntology().getAxioms());\n\t\t//\t\n\t\t//\tdatalogLocal.add(localrewriter.rewrite(o));\n\t\t//\t//System.out.println(datalogLocal.getLast().getStatements().size());\n\t\t//}\n\t\t\t\t\n\t\tlong endTime = System.currentTimeMillis();\n\t\trewritingTime = endTime - startTime;\n\n\t\t//System.out.println(\"Rewriting completed in \" + rewritingTime + \" ms.\");\n\t\t//System.out.println(datalogGlobal.getStatements().size());\n\t\t\n\t\t//Compute CKR Program.\n\t\tdatalogCKR = new DLProgram();\n\t\n\t\tdatalogCKR.addAll(datalogGlobal.getStatements());\n\t\tfor (DLProgram dlProgram : datalogLocal) {\n\t\t\tdatalogCKR.addAll(dlProgram.getStatements());\t\n\t\t}\n\t\t//Add local inference rules.\n\t\tdatalogCKR.addAll(DeductionRuleset.getPloc());\n\t\t//Add local propagation rules.\n\t\tdatalogCKR.addAll(DeductionRuleset.getPd());\n\t\t\n\t\t//StringReader reader = new StringReader(\"hasModule(X,Y) :- triple(X, \\\"hasModule\\\", Y, \\\"g\\\").\");\n\t\t//DLProgramParser dlProgramParser = new DLProgramParser(reader);\n\t\t//try {\n\t\t//\tdatalogCKR.addAll(dlProgramParser.program().getStatements());\n\t\t//} catch (ParseException e) {\n\t\t//\te.printStackTrace();\n\t\t//}\n\t}", "public List<Candidates> consolidatedWinner() {\n List<Candidates> winnersFinal = new ArrayList<>();\n winnersFinal.addAll(getWinningSingleCandidates());\n winnersFinal.addAll(getMultiWinnerCandidates());\n return winnersFinal;\n }", "public void updatePlacers() {\r\n\t\tplacers.addAll(rulePlacers);\r\n\t\trulePlacers.clear();\r\n\t}", "private void loadRuleSets() throws CSSException {\n StyleSheet stylesheet = cssCode.getParsedCSS();\n for (RuleBlock block : stylesheet) {\n if (block instanceof RuleSet) {\n\n StringBuilder selectorString = new StringBuilder();\n RuleSet ruleSet = (RuleSet) block;\n\n List<CombinedSelector> selectors = ruleSet.getSelectors();\n Iterator<CombinedSelector> selectorsIterator = selectors.iterator();\n while (selectorsIterator.hasNext()) {\n CombinedSelector selector = selectorsIterator.next();\n selectorString.append(selector.toString());\n if (selectorsIterator.hasNext()) {\n selectorString.append(\", \");\n }\n }\n\n List<CSSRule> cssRules = new ArrayList<>();\n CSSRule cssRule;\n Declaration.Source source;\n DeclarationPosition declarationPosition;\n\n for (Declaration declaration : ruleSet) {\n cssRule = new CSSRule(declaration.getProperty(), \"\");\n\n source = declaration.getSource();\n if (source == null) {\n declarationPosition = null;\n } else {\n declarationPosition = new DeclarationPosition(source.getLine(), source.getPosition());\n }\n cssRule.setDeclarationPosition(declarationPosition);\n\n cssRules.add(cssRule);\n }\n\n CSSRuleSet cssRuleSet = new CSSRuleSet(selectorString.toString(), cssRules);\n\n this.cssRuleBlocks.add(cssRuleSet);\n\n // add record to the position-declaration map\n for (CSSRule iCssRule : cssRuleSet.getCssRules()) {\n this.declarationPositionMap.put(\n iCssRule.getDeclarationPosition(),\n new DeclarationSource(cssRuleSet, iCssRule)\n );\n }\n }\n }\n }", "public Map<OperationKey, List<Policy>> enforceOn(SourceBundle sourceBundle) {\n\t\tMap<OperationKey, List<Policy>> conflicts = new HashMap<OperationKey, List<Policy>>();\n\n\t\tSortedSet<Operation> operations = getAllOperations(sourceBundle, conflicts);\n\n\t\tif (operations.size() == 0) {\n\t\t\treturn conflicts;\n\t\t}\n\n\t\t// organize operations into a tree based on their nesting relationship\n\t\toperations = nestOperations(operations);\n\n\t\t// carry out the operations\n\t\texecuteOperations(sourceBundle, operations);\n\n\t\t// add the definition JS file to the beginning of web page\n\t\tsourceBundle.addTreatmentDefinitions(treatmentFactory.BASE_OBJECT_NAME + \".js\", treatmentFactory.getDefinitions());\n\n\t\treturn conflicts;\n\t}", "private void processConcepts(Collection<ReportConcept> concepts) {\n\t\t// compact concept list until it stops changing size\n\t\tint previousSize = 0;\n\t\twhile (concepts.size() != previousSize) {\n\t\t\tpreviousSize = concepts.size();\n\t\t\tList<ReportConcept> list = new ArrayList<ReportConcept>(concepts);\n\t\t\tReportConcept previous = list.get(0);\n\t\t\tfor(int i=1;i<list.size();i++){\n\t\t\t\tReportConcept entry = list.get(i);\n\t\t\t\tReportConcept next = ((i+1)<list.size())?list.get(i+1):null;\n\t\t\t\t\n\t\t\t\t// see if we can find a common concept for three entries\n\t\t\t\tReportConcept common = null;\n\t\t\t\tif(next != null)\n\t\t\t\t\tcommon = mergeConcepts(previous, entry, next,concepts);\n\t\t\t\t// if no luck try merge 2 \n\t\t\t\tif(common == null)\n\t\t\t\t\tcommon = mergeConcepts(previous, entry,concepts);\n\t\t\t\t\n\t\t\t\t// if common concept found, then make it a previous concept\n\t\t\t\tif (common != null) \n\t\t\t\t\tentry = common;\n\t\t\t\tprevious = entry;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "Map<String, Set<String>> mapSecondaryTablesToPrimaryGroups();", "protected MergeSpellingData()\r\n\t{\r\n\t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n public static void main(String[] args) throws ConfigurationException,\n RuleExecutionSetCreateException, IOException,\n RuleSessionTypeUnsupportedException, RuleSessionCreateException,\n RuleExecutionSetNotFoundException, InvalidRuleSessionException,\n ClassNotFoundException, RuleExecutionSetRegisterException {\n\n String ruleEngineServiceUri = UriConstants.RULE_ENGINE_SERVICE_URI;\n\n Class.forName(UriConstants.RULE_SERVICE_PROVIDER_CLASS_NAME);\n\n RuleServiceProvider serviceProvider = RuleServiceProviderManager\n .getRuleServiceProvider(ruleEngineServiceUri);\n\n RuleAdministrator ruleAdministrator = serviceProvider\n .getRuleAdministrator();\n\n RuleEngineLog.debug(ruleAdministrator.toString());\n\n Map params = null;\n // InputStream stream = null;\n\n String bindUri = null;\n\n LogisticsRule logisticsRule = buildLogisticsRule();\n\n FlavorRule flavorRule = buildFlavorRule();\n\n RuleSet ruleSet = new RuleSet(\"multi-logisitic--ruleset\");\n\n ruleSet.addRule(logisticsRule);\n ruleSet.addRule(flavorRule);\n // ruleSet.add(logisticsRule1);\n\n RuleExecutionSet ruleExecutionSet = ruleAdministrator\n .getLocalRuleExecutionSetProvider(params).createRuleExecutionSet(\n ruleSet, null);\n\n bindUri = ruleExecutionSet.getName();\n\n ruleAdministrator.registerRuleExecutionSet(bindUri, ruleExecutionSet, null);\n\n RuleEngineLog.debug(ruleExecutionSet);\n //\n RuleRuntime ruleRunTime = serviceProvider.getRuleRuntime();\n\n StatelessRuleSession srs = (StatelessRuleSession) ruleRunTime\n .createRuleSession(bindUri, params, RuleRuntime.STATELESS_SESSION_TYPE);\n\n List inputList = new LinkedList();\n\n String productReview1 = \"一直在你们家购买,感觉奶粉是保真的。就是发货速度稍微再快一些就好了。先谢谢了\";\n\n String productReview2 = \"说什么原装进口的 但是和我原本进口的奶粉还是有区别 奶很甜 宝宝吃了这个奶粉后胃口很差 都不爱吃其他东西 本来每天定时有吃两顿饭的 现在吃了这个奶粉后 饭也不要吃了 现在一个没有开 另一罐开了放着没有喝\";\n\n ProductReview pr1 = new ProductReview(\"uid1\", productReview1);\n\n ProductReview pr2 = new ProductReview(\"uid2\", productReview2);\n\n inputList.add(pr1);\n inputList.add(pr2);\n\n // inputList.add(new String(\"Bar\"));\n // inputList.add(new Integer(5));\n // inputList.add(new Float(6));\n List resultList = srs.executeRules(inputList);\n\n // release the session\n srs.release();\n\n // System.out.println(\"executeRules: \" + resultList);\n for (Object o : resultList) {\n System.out.println(o);\n }\n\n }", "private void prepareRuleFiles() {\n\n if (IronSyslog.class.getResource(RULE_FOLDER) == null\n || IronSyslog.class.getResource(RULE_FOLDER + \"service/\") == null\n || IronSyslog.class.getResource(RULE_FOLDER + \"publish/\") == null\n || IronSyslog.class.getResource(RULE_FOLDER + \"other/\") == null) {\n LOGGER.error(\"Error while preparing rule files. Broken file system folder structure. \\n\"\n + \"Make sure that: rules/drools/ and its subfolders service/, publish/ and other/ exist\");\n System.exit(1);\n }\n\n // Prepare Configuration\n Yaml yaml = new Yaml();\n InputStream input = IronSyslog.class.getResourceAsStream(RULE_FOLDER\n + \"config.yml\");\n RulesConfiguration config = yaml\n .loadAs(input, RulesConfiguration.class);\n\n try {\n // Add only the service rules (in the service folder) specified in\n // the configuration\n for (String service : config.getServiceInclude()) {\n String fileName = RULE_FOLDER + \"service/\" + service + \".drl\";\n if (IronSyslog.class.getResource(fileName) != null) {\n LOGGER.debug(\"Adding rule file: \" + fileName);\n mRuleFiles.add(RULE_FOLDER + \"service/\" + service + \".drl\");\n } else {\n LOGGER.warn(\"Failed to add rule file: \" + fileName);\n }\n }\n\n // Add all publish rules (in the \"publish\" folder) excluding the one\n // specified on the\n // configuration\n File publishFolder = new File(IronSyslog.class.getResource(\n RULE_FOLDER + \"publish/\").toURI());\n File[] publishFiles = publishFolder.listFiles();\n for (int i = 0; i < publishFiles.length; i++) {\n String fileName = publishFiles[i].getName();\n if (fileName.endsWith(\".drl\")\n && !config.getPublishExclude().contains(\n fileName.substring(0, fileName.length() - 4))) {\n LOGGER.debug(\"Adding rule file: \" + RULE_FOLDER\n + \"publish/\" + fileName);\n mRuleFiles.add(RULE_FOLDER + \"publish/\" + fileName);\n }\n }\n\n // Add all other rules (\"other\" folder, including subfolders)\n addAllRuleFilesInFolder(RULE_FOLDER + \"other/\");\n } catch (URISyntaxException e) {\n LOGGER.debug(\"Error while searching for rule files. \" + e);\n }\n }", "@SuppressWarnings(\"unchecked\")\r\npublic static void ruleResolvePronouns(AnnotationSet basenp, Document doc)\r\n{\n Annotation[] basenpArray = basenp.toArray();\r\n\r\n // Initialize coreference clusters\r\n int maxID = basenpArray.length;\r\n\r\n // Create an array of pointers\r\n // clust = new UnionFind(maxID);\r\n fvm = new RuleResolvers.FeatureVectorMap();\r\n ptrs = new int[maxID];\r\n clusters = new HashSet[maxID];\r\n for (int i = 0; i < clusters.length; i++) {\r\n ptrs[i] = i;\r\n HashSet<Annotation> cluster = new HashSet<Annotation>();\r\n cluster.add(basenpArray[i]);\r\n clusters[i] = cluster;\r\n }\r\n Annotation zero = new Annotation(-1, -1, -1, \"zero\");\r\n\r\n for (int i = 1; i < basenpArray.length; i++) {\r\n Annotation np2 = basenpArray[i];\r\n if (FeatureUtils.isPronoun(np2, doc)) {\r\n Annotation ant = ruleResolvePronoun(basenpArray, i, doc);\r\n if (ant != null) {\r\n np2.setProperty(Property.PRO_ANTES, ant);\r\n }\r\n else {\r\n np2.setProperty(Property.PRO_ANTES, zero);\r\n }\r\n }\r\n }\r\n}", "private void mergeStates() {\n ArrayList<DFAState> newStates = new ArrayList<DFAState>();\r\n HashSet<Integer> newAcceptStates = new HashSet<Integer>();\r\n HashMap<Integer, Integer> merged = new HashMap<Integer, Integer>();\r\n ArrayList<ArrayList<Integer>> mergeGroups = new ArrayList<ArrayList<Integer>>();\r\n for (int i = 0; i < D.length; i++) {\r\n if (merged.get(i) != null || states[i] == null) {\r\n continue;\r\n }\r\n\r\n DFAState state = states[i];\r\n\r\n ArrayList<Integer> toMerge = new ArrayList<Integer>();\r\n for (int j = i + 1; j < D.length; j++) {\r\n if (!D[i][j]) {\r\n toMerge.add(j);\r\n merged.put(j, i);\r\n }\r\n }\r\n\r\n // renumber existing transitions\r\n for (int j = 0; j < state.transitions.size(); j++) {\r\n Integer transition = state.transitions.get(j);\r\n if (merged.containsKey(transition)) {\r\n state.transitions.set(j, merged.get(transition));\r\n }\r\n }\r\n\r\n if (acceptStates.contains(i)) {\r\n newAcceptStates.add(i);\r\n }\r\n toMerge.add(i);\r\n mergeGroups.add(toMerge);\r\n newStates.add(state);\r\n }\r\n\r\n renumberStates(mergeGroups, newAcceptStates);\r\n\r\n // replace attributes\r\n DFAState[] newStatesArray = new DFAState[newStates.size()];\r\n newStatesArray = newStates.toArray(newStatesArray);\r\n states = newStatesArray;\r\n acceptStates = newAcceptStates;\r\n }", "public List<Atom> mergeComplementaryProvRelAtoms(List<Atom> discarded){\r\n\t\tList<Atom> body = getBody();\r\n\t\t//\t\tboolean someMerged = false;\r\n\t\tList<Atom> ret = new ArrayList<Atom>();\r\n\r\n\t\tfor(int i = 0; i < body.size(); ){ \r\n\t\t\tAtom a = body.get(i);\r\n\t\t\tboolean merged = false;\r\n\t\t\tfor(int j = i+1; j < body.size(); ){\r\n\t\t\t\tAtom b = body.get(j);\r\n\t\t\t\tAtom mergedAtom = mergeProvRelAtoms(a, b);\r\n\t\t\t\tif(mergedAtom != null){\r\n\t\t\t\t\t//\t\t\t\t\tbody.add(mergedAtom);\r\n\t\t\t\t\tdiscarded.add(body.get(i));\r\n\t\t\t\t\tdiscarded.add(body.get(j));\r\n\t\t\t\t\tbody.set(i, mergedAtom);\r\n\t\t\t\t\tbody.remove(j);\r\n\t\t\t\t\tret.add(mergedAtom);\r\n\t\t\t\t\t//\t\t\t\t\tbody.remove(i);\r\n\t\t\t\t\tmerged = true;\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tj++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!merged){\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t//\t\t\tsomeMerged = someMerged || merged;\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "protected HashMap<String,List<MeasurementImpl>> mergeManualObservables(HashMap<String,List<MeasurementImpl>> staticOps, HashMap<String,Vector<String>> ontoOps){\r\n \tHashMap<String,List<MeasurementImpl>> ret = new HashMap<String,List<MeasurementImpl>>();\r\n \t\r\n \t//iterate over all known stages and merge into one List per stage\r\n \tfor(ExperimentStageBean sb : this.getStageBeans()){\r\n \t\t\r\n \t\tString stageName = sb.getName();\r\n \t\t//for every stage add the static Measurements defined by the Workflow\r\n \t\tList<MeasurementImpl> l;\r\n \t\tif((staticOps==null)||(staticOps.get(stageName)==null)){\r\n \t\t\tl = new ArrayList<MeasurementImpl>();\r\n \t\t}else{\r\n \t\t\tl = staticOps.get(stageName);\r\n \t\t}\r\n \t\t\r\n \t\t//as well as the Measurements added from the Ontology (and stored in the Experiment Executable)\r\n \t\tif(ontoOps!=null){\r\n \t\tOntologyHandlerImpl ontohandler = OntologyHandlerImpl.getInstance();\r\n \t\tfor(String propURI : ontoOps.get(stageName)){\r\n \t\t\t//query the authority to get the OntologyProperty by URI\r\n \t\t\tOntologyProperty ontoProp = ontohandler.getProperty(propURI);\r\n \t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tMeasurementImpl m = OntoPropertyUtil.createMeasurementFromOntologyProperty(ontoProp);\r\n\t\t\t\t\t\tl.add(m);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\tlog.error(\"error building Measurement from OntologyProperty: \"+ontoProp + \" :: \" + e);\r\n\t\t\t\t\t}\r\n \t\t}\r\n \t\t\r\n \t}\r\n \t\t\r\n \t\tret.put(stageName, l);\r\n \t}\r\n \r\n \treturn ret;\r\n }", "private void generalizeCSARequirements(){\n\t\tArrayList<ServiceTemplate> comps = new ArrayList<ServiceTemplate>() ;\n\t\tArrayList<Requirement> reqs = new ArrayList<Requirement>() ;\n\t\t\n\t\tcomps = this.data.getServiceTemplates();\n\t\treqs = this.data.getRequirements();\n\t\t\n\t\tfor(ServiceTemplate c : comps){\n\t\t\tfor(Requirement r : reqs){\n\t\t\t\tRequirement temp = new Requirement();\n\t\t\t\ttry {\n\t\t\t\t\tBeanUtils.copyProperties(temp, r);\n\t\t\t\t\t//System.out.println(r.toString());\n\t\t\t\t\t//System.out.println(temp.toString());\n\t\t\t\t\tc.addReq(temp);\n\t\t\t\t} catch (IllegalAccessException | InvocationTargetException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public static DataSet mergeDatasets(DataSet first, DataSet second, List<String> forbiddenAttributes) throws Exception {\n Logger logger = LoggerFactory.getLogger(GSHelper.class);\n Graph mergedGraph = createGraphFromDataSet(first);\n logger.debug(\"creating merged internal graph...\");\n for (CoriaEdge edge : second.getEdges()) {\n try {\n logger.trace(\"Edge: \" + edge);\n /*\n * Since we're using the same edge naming schema here as everywhere else in coria (start_node->destination_node)\n * we cen create a combined graph containing edges from both graphs. This works because GraphStream\n * will only add edges which don't exists already.\n */\n Edge e = mergedGraph.addEdge(edge.getSourceNode() + \"->\" + edge.getDestinationNode(), edge.getSourceNode(), edge.getDestinationNode());\n } catch (Exception ex) {\n logger.error(\"failed creating edge for CoriaEdge {}\", edge);\n logger.error(ex.getMessage());\n return null;\n }\n }\n logger.debug(\"graph successfully created, building merged dataset...\");\n DataSet merged = new DataSet();\n\n logger.debug(\"merging nodes...\");\n\n for(Node node : mergedGraph.getEachNode()){\n CoriaNode cn = new CoriaNode();\n Optional<CoriaNode> optFirstNode = first.getNodes().stream().filter(coriaNode -> coriaNode.getAsid().equals(node.getId())).findFirst();\n CoriaNode fromFirst = null;\n if(optFirstNode.isPresent()){\n fromFirst = optFirstNode.get();\n }\n CoriaNode fromSecond = null;\n Optional<CoriaNode> optSecondNode = second.getNodes().stream().filter(coriaNode -> coriaNode.getAsid().equals(node.getId())).findFirst();\n if(optSecondNode.isPresent()){\n fromSecond = optSecondNode.get();\n }\n\n if(fromFirst != null && fromSecond == null){\n //1. Node is only in first -> take all information from first\n cn.setName(fromFirst.getName());\n cn.setAsid(fromFirst.getAsid());\n// cn.setRiscScore(fromFirst.getRiscScore()); //this value is not valid after merging\n cn.setAttributes(filterAttributes(fromFirst.getAttributes(), forbiddenAttributes));\n }else if(fromSecond != null && fromFirst == null){\n //2. Node is only in second -> take all information from second\n cn.setName(fromSecond.getName());\n cn.setAsid(fromSecond.getAsid());\n// cn.setRiscScore(fromSecond.getRiscScore()); //this value is not valid after merging\n cn.setAttributes(filterAttributes(fromSecond.getAttributes(), forbiddenAttributes));\n }else if(fromFirst != null && fromSecond != null){\n //3. Node is found in both DataSets -> try merging\n cn.setAsid(fromFirst.getAsid()); //this one is the same on both sets\n\n if(fromFirst.getName().equals(fromFirst.getAsid())){\n //first dataset has no name for as -> check the second\n if(fromSecond.getName().equals(fromSecond.getAsid())){\n //the second has also no name for as -> use asid as name\n cn.setName(fromFirst.getAsid());\n }else{\n //the second has a separate name for as -> use this\n cn.setName(fromSecond.getName());\n }\n }else{\n //first has name for as -> use it\n cn.setName(fromFirst.getName());\n }\n\n cn.setAttributes(\n syncAttributes(\n filterAttributes(fromFirst.getAttributes(), forbiddenAttributes),\n filterAttributes(fromSecond.getAttributes(), forbiddenAttributes)));\n\n }else{\n //something is wrong here!\n logger.warn(\"ooops ¯\\\\_(ツ)_/¯\");\n }\n merged.getNodes().add(cn);\n }\n\n logger.debug(\"merging edges...\");\n\n for(Edge edge : mergedGraph.getEachEdge()){\n CoriaEdge ce = new CoriaEdge();\n try {\n CoriaEdge fromFirst = first.getEdges().stream().filter(coriaEdge -> coriaEdge.getName().equals(edge.getId())).findFirst().get();\n CoriaEdge fromSecond = second.getEdges().stream().filter(coriaEdge -> coriaEdge.getName().equals(edge.getId())).findFirst().get();\n\n if(fromFirst != null && fromSecond == null){\n //1. Edge is only in first -> take all information from first\n ce.setName(fromFirst.getName());\n ce.setAttributes(filterAttributes(fromFirst.getAttributes(), forbiddenAttributes));\n }else if(fromSecond != null && fromFirst == null){\n //2. Edge is only in first -> take all information from first\n ce.setName(fromSecond.getName());\n ce.setAttributes(filterAttributes(fromSecond.getAttributes(), forbiddenAttributes));\n }else if(fromFirst != null && fromSecond != null){\n //3. Edge is found in both DataSets -> try merging\n ce.setName(fromSecond.getName());\n\n ce.setAttributes(\n syncAttributes(\n filterAttributes(fromFirst.getAttributes(), forbiddenAttributes),\n filterAttributes(fromSecond.getAttributes(), forbiddenAttributes)));\n }else{\n //something is wrong here!\n }\n }catch(Exception ex){\n String origMessage = ex.getMessage();\n ex = new Exception(\"Error while merging edge \" + edge.getId() + \" because \" + origMessage);\n logger.error(ex.getMessage());\n throw ex;\n }\n merged.getEdges().add(ce);\n }\n logger.debug(\"finished merging\");\n\n return merged;\n }", "public void test_ck_03() {\n // part A - surprising reification\n OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null);\n OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null);\n \n Individual sub = model1.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n OntProperty pred = model1.createOntProperty(\"http://mytest#\");\n Individual obj = model1.createIndividual(\"http://mytest#i2\", model1.getProfile().CLASS());\n OntProperty probabilityP = model1.createOntProperty(\"http://mytest#prob\");\n \n Statement st = model1.createStatement(sub, pred, obj);\n model1.add(st);\n st.createReifiedStatement().addProperty(probabilityP, 0.9);\n assertTrue(\"st should be reified\", st.isReified());\n \n Statement st2 = model2.createStatement(sub, pred, obj);\n model2.add(st2);\n st2.createReifiedStatement().addProperty(probabilityP, 0.3);\n assertTrue(\"st2 should be reified\", st2.isReified());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP).addProperty(probabilityP, 0.3); //!!!\n // exception\n \n // Part B - exception in remove All\n Individual sub2 = model2.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP); //!!! exception\n \n sub2.addProperty(probabilityP, 0.3);\n sub2.removeAll(probabilityP); //!!! exception\n \n }", "private void sortDialects()\n\t{\n\t\tif (dialects.size() > 1)\n\t\t{\n\t\t\tCollections.sort(dialects, new Comparator<RestDynamicSemanticVersion>()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(RestDynamicSemanticVersion o1, RestDynamicSemanticVersion o2)\n\t\t\t\t{\n\t\t\t\t\t//This is a semantic with a single nid column, which represents preferred or acceptable. \n\t\t\t\t\t//The assemblage concept will be something like \"US English Dialect\"\n\t\t\t\t\t\n\t\t\t\t\t//If preferred / acceptable is the same, sort on the dialects...\n\t\t\t\t\tif (((RestDynamicSemanticNid)o1.dataColumns.get(0)).getNid() == ((RestDynamicSemanticNid)o2.dataColumns.get(0)).getNid())\n\t\t\t\t\t{\n\t\t\t\t\t\tif (o1.semanticChronology != null) //If one chronology is here, they both should be here\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (o1.semanticChronology.assemblage.nid.intValue() == MetaData.US_ENGLISH_DIALECT____SOLOR.getNid())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (o2.semanticChronology.assemblage.nid.intValue() == MetaData.US_ENGLISH_DIALECT____SOLOR.getNid())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (o1.semanticChronology.assemblage.nid.intValue() == MetaData.GB_ENGLISH_DIALECT____SOLOR.getNid())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (o2.semanticChronology.assemblage.nid.intValue() == MetaData.GB_ENGLISH_DIALECT____SOLOR.getNid())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//Some other dialect... just sort on the dialect text\n\t\t\t\t\t\t\t\treturn AlphanumComparator.compare(Util.readBestDescription(o1.semanticChronology.assemblage.nid),\n\t\t\t\t\t\t\t\t\t\tUtil.readBestDescription(o2.semanticChronology.assemblage.nid), true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//If chronology isn't populated, I can't sort here\n\t\t\t\t\t\t\treturn 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (((RestDynamicSemanticNid)o1.dataColumns.get(0)).getNid() == MetaData.PREFERRED____SOLOR.getNid())\n\t\t\t\t\t{\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}\n\t\t\t\t\telse if (((RestDynamicSemanticNid)o2.dataColumns.get(0)).getNid() == MetaData.PREFERRED____SOLOR.getNid())\n\t\t\t\t\t{\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t//should be impossible - not the same, and neither is preferred - must be invalid data.\n\t\t\t\t\t\tLogManager.getLogger().warn(\"Unexpected sort case\");\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "private SingleConstraintMatch mergeConstraints(final RuntimeMatch currentMatch) {\n if (currentMatch.uncovered && denyUncoveredHttpMethods) {\n return new SingleConstraintMatch(SecurityInfo.EmptyRoleSemantic.DENY, Collections.<String>emptySet());\n }\n final Set<String> allowedRoles = new HashSet<>();\n for (SingleConstraintMatch match : currentMatch.constraints) {\n if (match.getRequiredRoles().isEmpty()) {\n return new SingleConstraintMatch(match.getEmptyRoleSemantic(), Collections.<String>emptySet());\n } else {\n allowedRoles.addAll(match.getRequiredRoles());\n }\n }\n return new SingleConstraintMatch(SecurityInfo.EmptyRoleSemantic.PERMIT, allowedRoles);\n }", "public void postDeserialize(){\n\t\tif(fittings == null){\n\t\t\treturn;\n\t\t}\n\t\tfor(CutSheetInfo csi : getMainThreadedList()){\n\t\t\tpostDeserializeOne(csi);\n\t\t}\n\t\tfor(BranchInfo bi : getBranchMap().values()){\n\t\t\tfor(EdgeMultiplicity em : bi.getEdgeMultiplicity()){\n\t\t\t\tCutSheetInfo csi = em.getEdgeInfo();\n\t\t\t\tpostDeserializeOne(csi);\n\t\t\t}\n\t\t}\n\t}", "private void applyLocationAlgorithms() {\n List<NodeState> states = new ArrayList<NodeState>();\n List<RemoteNode> nodes = new ArrayList<RemoteNode>(nodeManager.getNodes());\n AlgorithmMatchCriteria criteria;\n\n for (Algorithm la : algorithmManager.getAlgorithms()) {\n if (!la.isEnabled()) continue;\n criteria = algorithmManager.getCriteria(la);\n\n List<Node> filteredNodes = criteria.filter(nodes);\n if (filteredNodes.size() > 0) {\n states.add(la.applyTo(nodeManager.getLocalNode(), filteredNodes));\n }\n }\n for (NodeState s : states) {\n nodeManager.getLocalNode().addPending(s);\n }\n }", "@Override\n public boolean rewritePre(Mutable<ILogicalOperator> opRef, IOptimizationContext context)\n throws AlgebricksException {\n\n boolean cboMode = this.getCBOMode(context);\n boolean cboTestMode = this.getCBOTestMode(context);\n\n if (!(cboMode || cboTestMode)) {\n return false;\n }\n\n // If we reach here, then either cboMode or cboTestMode is true.\n // If cboTestMode is true, then we use predefined cardinalities for datasets for asterixdb regression tests.\n // If cboMode is true, then all datasets need to have samples, otherwise the check in doAllDataSourcesHaveSamples()\n // further below will return false.\n ILogicalOperator op = opRef.getValue();\n if (!(joinClause(op) || ((op.getOperatorTag() == LogicalOperatorTag.DISTRIBUTE_RESULT)))) {\n return false;\n }\n\n // if this join has already been seen before, no need to apply the rule again\n if (context.checkIfInDontApplySet(this, op)) {\n return false;\n }\n\n //joinOps = new ArrayList<>();\n allJoinOps = new ArrayList<>();\n newJoinOps = new ArrayList<>();\n leafInputs = new ArrayList<>();\n varLeafInputIds = new HashMap<>();\n outerJoinsDependencyList = new ArrayList<>();\n assignOps = new ArrayList<>();\n assignJoinExprs = new ArrayList<>();\n buildSets = new ArrayList<>();\n\n IPlanPrettyPrinter pp = context.getPrettyPrinter();\n printPlan(pp, (AbstractLogicalOperator) op, \"Original Whole plan1\");\n leafInputNumber = 0;\n boolean canTransform = getJoinOpsAndLeafInputs(op);\n\n if (!canTransform) {\n return false;\n }\n\n convertOuterJoinstoJoinsIfPossible(outerJoinsDependencyList);\n\n printPlan(pp, (AbstractLogicalOperator) op, \"Original Whole plan2\");\n int numberOfFromTerms = leafInputs.size();\n\n if (LOGGER.isTraceEnabled()) {\n String viewInPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewInPlan\");\n LOGGER.trace(viewInPlan);\n }\n\n if (buildSets.size() > 1) {\n buildSets.sort(Comparator.comparingDouble(o -> o.second)); // sort on the number of tables in each set\n // we need to build the smaller sets first. So we need to find these first.\n }\n joinEnum.initEnum((AbstractLogicalOperator) op, cboMode, cboTestMode, numberOfFromTerms, leafInputs, allJoinOps,\n assignOps, outerJoinsDependencyList, buildSets, varLeafInputIds, context);\n\n if (cboMode) {\n if (!doAllDataSourcesHaveSamples(leafInputs, context)) {\n return false;\n }\n }\n\n printLeafPlans(pp, leafInputs, \"Inputs1\");\n\n if (assignOps.size() > 0) {\n pushAssignsIntoLeafInputs(pp, leafInputs, assignOps, assignJoinExprs);\n }\n\n printLeafPlans(pp, leafInputs, \"Inputs2\");\n\n int cheapestPlan = joinEnum.enumerateJoins(); // MAIN CALL INTO CBO\n if (cheapestPlan == PlanNode.NO_PLAN) {\n return false;\n }\n\n PlanNode cheapestPlanNode = joinEnum.allPlans.get(cheapestPlan);\n\n generateHintWarnings();\n\n if (numberOfFromTerms > 1) {\n getNewJoinOps(cheapestPlanNode, allJoinOps);\n if (allJoinOps.size() != newJoinOps.size()) {\n return false; // there are some cases such as R OJ S on true. Here there is an OJ predicate but the code in findJoinConditions\n // in JoinEnum does not capture this. Will fix later. Just bail for now.\n }\n buildNewTree(cheapestPlanNode, newJoinOps, new MutableInt(0));\n opRef.setValue(newJoinOps.get(0));\n\n if (assignOps.size() > 0) {\n for (int i = assignOps.size() - 1; i >= 0; i--) {\n MutableBoolean removed = new MutableBoolean(false);\n removed.setFalse();\n pushAssignsAboveJoins(newJoinOps.get(0), assignOps.get(i), assignJoinExprs.get(i), removed);\n if (removed.isTrue()) {\n assignOps.remove(i);\n }\n }\n }\n\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan after buildNewTree 1\");\n ILogicalOperator root = addRemainingAssignsAtTheTop(newJoinOps.get(0), assignOps);\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan after buildNewTree 2\");\n printPlan(pp, (AbstractLogicalOperator) root, \"New Whole Plan after buildNewTree\");\n\n // this will be the new root\n opRef.setValue(root);\n\n if (LOGGER.isTraceEnabled()) {\n String viewInPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewInPlanAgain\");\n LOGGER.trace(viewInPlan);\n String viewOutPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewOutPlan\");\n LOGGER.trace(viewOutPlan);\n }\n\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(\"---------------------------- Printing Leaf Inputs\");\n printLeafPlans(pp, leafInputs, \"Inputs\");\n // print joins starting from the bottom\n for (int i = newJoinOps.size() - 1; i >= 0; i--) {\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(i), \"join \" + i);\n }\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan\");\n printPlan(pp, (AbstractLogicalOperator) root, \"New Whole Plan\");\n }\n\n // turn of this rule for all joins in this set (subtree)\n for (ILogicalOperator joinOp : newJoinOps) {\n context.addToDontApplySet(this, joinOp);\n }\n\n } else {\n buildNewTree(cheapestPlanNode);\n }\n\n return true;\n }", "private static void mergeNext() {\n\t\tString ids[] = getMinGeneIds();\n\t\tString minI = ids[0];\n\t\tString minJ = ids[1];\n\t\tString newEntry = createNewEntry(minI, minJ);\n\t\tTreeMap<String, Double> prevI = distanceMatrix.remove(minI);\n\t\tTreeMap<String, Double> prevJ = distanceMatrix.remove(minJ);\n\t\tminMatrix.remove(minI);minMatrix.remove(minJ);\n\t\tallClusters.remove(minI);allClusters.remove(minJ);\n\t\tTreeMap<String, Double> newTemp = new TreeMap<String, Double>(); \n\t\tfor(String c: allClusters) {\n\t\t\tTreeMap<String, Double> temp = distanceMatrix.get(c);\n\t\t\ttemp.remove(minI);temp.remove(minJ);\n\t\t\tdouble dist1 = prevI.get(c);\n\t\t\tdouble dist2 = prevJ.get(c);\n\t\t\tif(dist1 < dist2) {\n\t\t\t\tnewTemp.put(c,dist1);\n\t\t\t\tupdateMinMatrix(newEntry, c, dist1);\n\t\t\t\ttemp.put(newEntry, dist1);\n\t\t\t\tString minData[] = minMatrix.get(c).split(\";\");\n\t\t\t\tif(minData[0].equals(minI) || minData[0].equals(minJ)) {\n\t\t\t\t\tminMatrix.remove(c);\n\t\t\t\t\tcreateMinMatrixAfterRemoval(c);\n\t\t\t\t}\n\t\t\t\tupdateMinMatrix(c, newEntry, dist1);\n\t\t\t} else {\n\t\t\t\tnewTemp.put(c,dist2);\n\t\t\t\tupdateMinMatrix(newEntry, c, dist2);\n\t\t\t\ttemp.put(newEntry, dist2);\n\t\t\t\tString minData[] = minMatrix.get(c).split(\";\");\n\t\t\t\tif(minData[0].equals(minI) || minData[0].equals(minJ)) {\n\t\t\t\t\tminMatrix.remove(c);\n\t\t\t\t\tcreateMinMatrixAfterRemoval(c);\n\t\t\t\t}\n\t\t\t\tupdateMinMatrix(c, newEntry, dist2);\n\t\t\t}\n\t\t\tdistanceMatrix.put(c, temp);\n\t\t}\n\t\tdistanceMatrix.put(newEntry, newTemp);\n\t\tallClusters.add(newEntry);\n\t\ttotalCluster = allClusters.size();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void setRules() {\n\t\tthis.result = Result.START;\n\t\t// Create all initial rule executors, and shuffle them if needed.\n\t\tthis.rules = new LinkedList<>();\n\t\tModule module = getModule();\n\t\tfor (Rule rule : module.getRules()) {\n\t\t\tRuleStackExecutor executor = (RuleStackExecutor) getExecutor(rule, getSubstitution());\n\t\t\texecutor.setContext(module);\n\t\t\tthis.rules.add(executor);\n\t\t}\n\t\tif (getRuleOrder() == RuleEvaluationOrder.RANDOM || getRuleOrder() == RuleEvaluationOrder.RANDOMALL) {\n\t\t\tCollections.shuffle((List<RuleStackExecutor>) this.rules);\n\t\t}\n\t}", "public void applyOverlaysTo(CrawlURI curi) {\n curi.setOverlayMapsSource(this); \n // apply SURT-based overlays\n curi.getOverlayNames().clear(); // clear previous info\n String effectiveSurt = SurtPrefixSet.getCandidateSurt(curi.getPolicyBasisUURI());\n List<String> foundPrefixes = PrefixFinder.findKeys(sheetNamesBySurt, effectiveSurt); \n for(String prefix : foundPrefixes) {\n for(String name : sheetNamesBySurt.get(prefix)) {\n curi.getOverlayNames().add(name);\n }\n }\n // apply deciderule-based overlays\n for(DecideRuledSheetAssociation assoc : ruleAssociations) {\n try {\n if(assoc.getRules().accepts(curi)) {\n curi.getOverlayNames().addAll(assoc.getTargetSheetNames());\n }\n } catch (Exception e) {\n logger.log(Level.SEVERE, \"problem determining whether to apply overlays, so not applying \" + assoc.getTargetSheetNames() + \" to \" + curi, e);\n }\n }\n // even if no overlays set, let creation of empty list signal\n // step has occurred -- helps ensure overlays added once-only\n curi.getOverlayNames();\n }", "private void parseConfig() {\n try {\n synonymAnalyzers = new HashMap<>();\n\n Object xmlSynonymAnalyzers = args.get(\"synonymAnalyzers\");\n\n if (xmlSynonymAnalyzers != null && xmlSynonymAnalyzers instanceof NamedList) {\n NamedList<?> synonymAnalyzersList = (NamedList<?>) xmlSynonymAnalyzers;\n for (Entry<String, ?> entry : synonymAnalyzersList) {\n String analyzerName = entry.getKey();\n if (!(entry.getValue() instanceof NamedList)) {\n continue;\n }\n NamedList<?> analyzerAsNamedList = (NamedList<?>) entry.getValue();\n\n TokenizerFactory tokenizerFactory = null;\n TokenFilterFactory filterFactory;\n List<TokenFilterFactory> filterFactories = new LinkedList<>();\n\n for (Entry<String, ?> analyzerEntry : analyzerAsNamedList) {\n String key = analyzerEntry.getKey();\n if (!(entry.getValue() instanceof NamedList)) {\n continue;\n }\n Map<String, String> params = convertNamedListToMap((NamedList<?>)analyzerEntry.getValue());\n\n String className = params.get(\"class\");\n if (className == null) {\n continue;\n }\n\n params.put(\"luceneMatchVersion\", luceneMatchVersion.toString());\n\n if (key.equals(\"tokenizer\")) {\n try {\n tokenizerFactory = TokenizerFactory.forName(className, params);\n } catch (IllegalArgumentException iae) {\n if (!className.contains(\".\")) {\n iae.printStackTrace();\n }\n // Now try by classname instead of SPI keyword\n tokenizerFactory = loader.newInstance(className, TokenizerFactory.class, new String[]{}, new Class[] { Map.class }, new Object[] { params });\n }\n if (tokenizerFactory instanceof ResourceLoaderAware) {\n ((ResourceLoaderAware)tokenizerFactory).inform(loader);\n }\n } else if (key.equals(\"filter\")) {\n try {\n filterFactory = TokenFilterFactory.forName(className, params);\n } catch (IllegalArgumentException iae) {\n if (!className.contains(\".\")) {\n iae.printStackTrace();\n }\n // Now try by classname instead of SPI keyword\n filterFactory = loader.newInstance(className, TokenFilterFactory.class, new String[]{}, new Class[] { Map.class }, new Object[] { params });\n }\n if (filterFactory instanceof ResourceLoaderAware) {\n ((ResourceLoaderAware)filterFactory).inform(loader);\n }\n filterFactories.add(filterFactory);\n }\n }\n if (tokenizerFactory == null) {\n throw new SolrException(ErrorCode.SERVER_ERROR,\n \"tokenizer must not be null for synonym analyzer: \" + analyzerName);\n } else if (filterFactories.isEmpty()) {\n throw new SolrException(ErrorCode.SERVER_ERROR,\n \"filter factories must be defined for synonym analyzer: \" + analyzerName);\n }\n\n TokenizerChain analyzer = new TokenizerChain(tokenizerFactory,\n filterFactories.toArray(new TokenFilterFactory[filterFactories.size()]));\n\n synonymAnalyzers.put(analyzerName, analyzer);\n }\n }\n } catch (IOException e) {\n throw new SolrException(ErrorCode.SERVER_ERROR, \"Failed to create parser. Check your config.\", e);\n }\n }", "private Set func_177575_g() {\n/* 450 */ HashSet var1 = Sets.newHashSet();\n/* 451 */ ArrayList<?> var2 = Lists.newArrayList(this.variants.keySet());\n/* 452 */ Collections.sort(var2, new Comparator()\n/* */ {\n/* */ private static final String __OBFID = \"CL_00002390\";\n/* */ \n/* */ public int func_177505_a(ModelResourceLocation p_177505_1_, ModelResourceLocation p_177505_2_) {\n/* 457 */ return p_177505_1_.toString().compareTo(p_177505_2_.toString());\n/* */ }\n/* */ \n/* */ public int compare(Object p_compare_1_, Object p_compare_2_) {\n/* 461 */ return func_177505_a((ModelResourceLocation)p_compare_1_, (ModelResourceLocation)p_compare_2_);\n/* */ }\n/* */ });\n/* 464 */ Iterator<?> var3 = var2.iterator();\n/* */ \n/* 466 */ while (var3.hasNext()) {\n/* */ \n/* 468 */ ModelResourceLocation var4 = (ModelResourceLocation)var3.next();\n/* 469 */ ModelBlockDefinition.Variants var5 = (ModelBlockDefinition.Variants)this.variants.get(var4);\n/* 470 */ Iterator<ModelBlockDefinition.Variant> var6 = var5.getVariants().iterator();\n/* */ \n/* 472 */ while (var6.hasNext()) {\n/* */ \n/* 474 */ ModelBlockDefinition.Variant var7 = var6.next();\n/* 475 */ ModelBlock var8 = (ModelBlock)this.models.get(var7.getModelLocation());\n/* */ \n/* 477 */ if (var8 == null) {\n/* */ \n/* 479 */ LOGGER.warn(\"Missing model for: \" + var4);\n/* */ \n/* */ continue;\n/* */ } \n/* 483 */ var1.addAll(func_177585_a(var8));\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 488 */ var1.addAll(field_177602_b);\n/* 489 */ return var1;\n/* */ }", "public void InstantiateAllRelevantsInRule (Rule rule, boolean forIntersection, boolean online)\n\t{\n\t\t//List<Rule> instRuleVector = new CopyOnWriteArrayList<Rule>();\n\t\tSet<Rule> instRuleVector = Collections.newSetFromMap(new ConcurrentHashMap<Rule, Boolean>());\n\t\t//long startTime = System.currentTimeMillis();\n\t\tif (false == forIntersection && false == rule.isFullyInst()) \n\t\t{\n\t\t\tfor (Atom bodyAtom : rule.getBody().getAtoms()) \n\t\t\t{\n\t\t\t\tfor (Atom instAtom : this.addedInstAtomsInLastIteration) \n\t\t\t\t{\n\t\t\t\t\tif (instAtom.getName().equals(bodyAtom.getName()))\n\t\t\t\t\t{\n\t\t\t\t\t\tAtom copyOfinstAtom = new Atom (instAtom);\n\t\t\t\t\t\tRule temp = new Rule (rule);\n\t\t\t\t\t\ttemp.SwapToInstAtomAndPartiallyInst(bodyAtom, copyOfinstAtom);\n\t\t\t\t\t\tif (true == temp.getIsFullyInst())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Provenance.getInstance().AddRuleToProv(temp, this.level);\n\t\t\t\t\t\t\t//KeyMap.getInstance().UpdateRule(temp);\n\t\t\t\t\t\t\ttemp.getBody().setRuleUsed(rule);//added for the top-k\n\t\t\t\t\t\t\ttemp.getHead().setRuleUsed(rule);\n\t\t\t\t\t\t\t//for top-1!\n\t\t\t\t\t\t\tif (false == online) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t/*KeyMap.getInstance().UpdateFactBody(temp.getBody());\n\t\t\t\t\t\t\t\tBody pointerBody = KeyMap.getInstance().GetPointerBodyForTop1(temp.getBody());\n\t\t\t\t\t\t\t\tif (true == pointerBody.LegalDerivation())\n\t\t\t\t\t\t\t\t{*/\n\t\t\t\t\t\t\t\tKeyMap.getInstance().Update(temp.getHead());\n\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\t//AtomsDerived.getInstance().Update(temp.getHead());\n\t\t\t\t\t\t\t\tProvenance.getInstance().AddRuleToProv(temp, this.level);\n\t\t\t\t\t\t\t\t//addedFullProv.add(KeyMap.getInstance().Get(temp.getHead()));\n\t\t\t\t\t\t\t\t//System.out.println(temp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tHandleTop1Scenario(temp, online);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\telse //if (false == online || temp.getRestricted() == null || false == temp.getBody().Uninstantiatated())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinstRuleVector.add(temp);\n\t\t\t\t\t\t\t//DeriveRule(temp, online);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (true == this.addedInstAtomsInLastIteration.isEmpty() || false == instRuleVector.isEmpty())\n\t\t\t{\n\t\t\t\tDeriveByRuleBottomUp ruleDeriver = new DeriveByRuleBottomUp(rule, this.p, this.topk, this.treesWaiting, this.previouslyFoundRelevants);\n\t\t\t\truleDeriver.FindDerivationsForRuleBottomUp(instRuleVector, forIntersection, level);\n\t\t\t}\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\tif (false == online || true == rule.getBody().AllAtomsInDb()) \n\t\t\t{\n\t\t\t\trule.getHead().setRuleUsed(rule);\n\t\t\t\trule.getBody().setRuleUsed(rule);//added for the top-k\n\t\t\t\tProvenance.getInstance().AddRuleToProv(rule, this.level);\n\t\t\t\t//for top-1!\n\t\t\t\tif (false == online) KeyMap.getInstance().Update(rule.getHead());\n\t\t\t\telse HandleTop1Scenario(rule, online);\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*long endTime = System.currentTimeMillis();\n\t\tif ((endTime-startTime) > 200)\n\t\t{\n\t\t\tSystem.out.println(\"DeriveByProgramBottomUp::InstantiateAllRelevantsInRule:: iteration time: \" + (endTime-startTime));\n\t\t\tSystem.out.println(\"DeriveByProgramBottomUp::InstantiateAllRelevantsInRule:: rule derived: \" + rule);\n\t\t\tSystem.out.println(\"DeriveByProgramBottomUp::InstantiateAllRelevantsInRule:: num of atoms last iter: \" + this.addedInstAtomsInLastIteration.size());\n\t\t}*/\n\t}", "@SuppressWarnings(\"rawtypes\")\n\tprivate static void mergeWithNeighbors(MeshCas cas, Set<PrimitiveAnnotation> toMerge,\n\t\t\tSet<Annotation> toRefit) {\n\n\t\tfor (PrimitiveAnnotation pa : toMerge) {\n\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tSet<PrimitiveAnnotation> neighborAnnotations = pa.getNeighborAnnotations(cas,\n\t\t\t\t\tPrimitiveAnnotation.class);\n\t\t\tfloat maxArea = 0;\n\t\t\tPrimitiveAnnotation bestNeighbor = null;\n\t\t\tboolean bestIsSameInstance = false;\n\t\t\t// find the biggest neighbor annotation or one of the same type\n\t\t\tfor (PrimitiveAnnotation a1 : neighborAnnotations) {\n\n\t\t\t\tif (toMerge.contains(a1))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (pa instanceof PlaneAnnotation\n\t\t\t\t\t\t&& a1 instanceof PlaneAnnotation\n\t\t\t\t\t\t&& Math.acos(((PlaneAnnotation) pa).getPlaneNormal().dot(\n\t\t\t\t\t\t\t\t((PlaneAnnotation) a1).getPlaneNormal())) > PLANE_COMBINE_DEGREE\n\t\t\t\t\t\t\t\t* Math.PI / 180.0) {\n\t\t\t\t\t// Two planes, but angle bigger than XX degree\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tboolean sameConvexity = pa.getClass() == a1.getClass();\n\t\t\t\tif (sameConvexity && pa instanceof ConeAnnotation && a1 instanceof ConeAnnotation) {\n\t\t\t\t\tsameConvexity = ((ConeAnnotation) pa).isConcave() == ((ConeAnnotation) a1)\n\t\t\t\t\t\t\t.isConcave();\n\t\t\t\t}\n\t\t\t\tif (sameConvexity && pa instanceof SphereAnnotation\n\t\t\t\t\t\t&& a1 instanceof SphereAnnotation) {\n\t\t\t\t\tsameConvexity = ((SphereAnnotation) pa).isConcave() == ((SphereAnnotation) a1)\n\t\t\t\t\t\t\t.isConcave();\n\t\t\t\t}\n\n\t\t\t\tif (sameConvexity) {\n\t\t\t\t\tbestIsSameInstance = true;\n\t\t\t\t\tif (a1.getArea() > maxArea) {\n\t\t\t\t\t\tbestNeighbor = a1;\n\t\t\t\t\t\tmaxArea = a1.getArea();\n\t\t\t\t\t}\n\t\t\t\t} else if (bestIsSameInstance)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (a1.getArea() > maxArea) {\n\t\t\t\t\tbestNeighbor = a1;\n\t\t\t\t\tmaxArea = a1.getArea();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (bestNeighbor != null) {\n\t\t\t\t// merge\n\t\t\t\tsynchronized (bestNeighbor.getMesh().getTriangles()) {\n\t\t\t\t\tbestNeighbor.getMesh().getTriangles().addAll(pa.getMesh().getTriangles());\n\t\t\t\t}\n\t\t\t\ttoRefit.add(bestNeighbor);\n\t\t\t} else {\n\t\t\t\t// no neighbor found, add as new annotation\n\t\t\t\tsynchronized (cas.getAnnotations()) {\n\t\t\t\t\tcas.getAnnotations().add(pa);\n\t\t\t\t}\n\t\t\t\ttoRefit.add(pa);\n\t\t\t}\n\t\t}\n\t}", "public void createLBPolicy2(){\n\n\t\tIterator<ASServer> itm = manager.getASServers().values().iterator();\n\t\t\n\t\twhile(itm.hasNext()){\n\t\t\t\n\t\t\tASServer as = itm.next();\n\t\t\tAppServerPolicy ap = as.currentPolicy;\n\t\t\tIterator<ObjectKey> ik = ap.policyMap.keySet().iterator();\n\t\t\t\n\t\t\twhile(ik.hasNext()){\n\t\t\t\t\n\t\t\t\tObjectKey ot = ik.next();\n\t\t\t\t\n\t\t\t\tif(ot instanceof ListKey){\n\t\t\t\t\tListKey tlk = (ListKey) ot;\n\t\t\t\t\tString t = tlk.key;\n\t\t\t\t\t//System.out.println(\"Checking for mapping of :\" + t);\n\t\t\t\t\t\n\t\t\t\t\tif(((ResourceToRequestMap) as.getStruct((String)RequestResourceMappingLogProcessor.OBJ_REQ_MAP)).map.get(t) == null){\n\t\t\t\t\t\t//System.out.println(\"Mapping Map is NULL\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tArrayList<String> test = new ArrayList<String>(((ResourceToRequestMap) as.getStruct((String)RequestResourceMappingLogProcessor.OBJ_REQ_MAP)).map.get(t));\n\t\t\t\t\t\n\t\t\t\t\tIterator<String> itemp = test.iterator();\n\t\t\t\t\t\n\t\t\t\t\twhile(itemp.hasNext()){\n\t\t\t\t\t\n\t\t\t\t\t\tString url = itemp.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\tint[] sc = LBPCreatorMap.get(url);\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(sc == null){\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsc = new int[NO_SERVERS];\n\t\t\t\t\t\t\tsc[as.serverNo]++;\n\t\t\t\t\t\t\tLBPCreatorMap.put(url, sc);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tsc[as.serverNo]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tIterator<String> iturl = LBPCreatorMap.keySet().iterator();\n\t\t\n\t\twhile(iturl.hasNext()){\n\t\t\t\n\t\t\tString url = iturl.next();\n\t\t\t\n\t\t\tint[] sc = LBPCreatorMap.get(url);\n\t\t\t\n\t\t\tint size = sc.length;\n\t\t\tint maxtemp=0;\n\t\t\tint maxindex=0;\n\t\t\tint val;\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0; i< size; i++){\n\t\t\t\t\n\t\t\t\tval = sc[i];\n\t\t\t\tif(val > maxtemp)\n\t\t\t\t{\n\t\t\t\t\tmaxtemp = val;\n\t\t\t\t\tmaxindex = i;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tString xyz = manager.getASServer(maxindex).serverId;\n\t\t\tthis.currentLBPolicy.mapUrlToServers(url, Analyser.resolveHost(xyz));\n\t\t\t\n\t\t\t\n//\t\t\tif(mLogger.isInfoEnabled()){\n//\t\t\t\tmLogger.log(Priority.INFO, \":\" + url + \": being assigned to: \" + xyz);\n//\t\t\t}\n\t\t\t\n\t\t\tInteger sId = LBDMap.get(xyz);\n\t\t\t\n\t\t\tif(sId == null){\n\t\t\t\tsId=new Integer(1);\n\t\t\t\tLBDMap.put(xyz, sId);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tsId++;\n\t\t\t\tLBDMap.put(xyz, sId);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"------------URL ServerCounter start---------------\");\n//\t\t\n//\t\tIterator<String> ilbp = LBPCreatorMap.keySet().iterator();\n//\t\t\n//\t\twhile(ilbp.hasNext()){\n//\t\t\t\n//\t\t\tString url = ilbp.next();\n//\t\t\tint[] pi = LBPCreatorMap.get(url);\n//\t\t\tSystem.out.println(\"url is:\" + url);\n//\t\t\tfor(int i=0; i< pi.length; i++){\n//\t\t\t\tSystem.out.print(\"Site:\"+ i + \":\" + pi[i]);\n//\t\t\t}\n//\t\t}\n//\t\t\n////\t\t//System.out.println(\"Number of entries corresponding to LBPolicy for localhost are: \" + currentLBPolicy.policyMap.values().size() );\n//\t\n//\t\tSystem.out.println(\"------------URL ServerCounter end-----------------\");\n\t\t\n\t\tSystem.out.println(\"------------LBPolicy start---------------\");\n//\t\tSystem.out.println(currentLBPolicy);\n//\t\t\n//\t\tSystem.out.println(\"Number of entries in LBPolicy are: \" + currentLBPolicy.policyMap.size() );\n\t\t\n\t\tIterator<String> itlb = LBDMap.keySet().iterator();\n\t\t\n\t\twhile(itlb.hasNext()){\n\t\t\tString serid = itlb.next();\n\t\t\t\n\t\t\tSystem.out.println(\"Server:\" + serid + \" has been allocated: \" + LBDMap.get(serid) + \" objects\");\n\t\t}\n\t\t\n//\t\n\t\tSystem.out.println(\"------------LBPolicy end-----------------\");\n\t\n\n\t\t\n\t}", "public String compressStringifiedRules() {\n StringBuilder ruleBuilder = new StringBuilder();\n for (SecurityGroupRulesCmd.IpPortAndProto ipPandP : getIngressRuleSet()) {\n ruleBuilder.append(\"I:\").append(ipPandP.getProto()).append(\":\").append(ipPandP.getStartPort()).append(\":\").append(ipPandP.getEndPort()).append(\":\");\n for (String cidr : ipPandP.getAllowedCidrs()) {\n ruleBuilder.append(cidr).append(\",\");\n }\n ruleBuilder.append(\"NEXT\");\n ruleBuilder.append(\" \");\n }\n for (SecurityGroupRulesCmd.IpPortAndProto ipPandP : getEgressRuleSet()) {\n ruleBuilder.append(\"E:\").append(ipPandP.getProto()).append(\":\").append(ipPandP.getStartPort()).append(\":\").append(ipPandP.getEndPort()).append(\":\");\n for (String cidr : ipPandP.getAllowedCidrs()) {\n ruleBuilder.append(cidr).append(\",\");\n }\n ruleBuilder.append(\"NEXT\");\n ruleBuilder.append(\" \");\n }\n String stringified = ruleBuilder.toString();\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n try {\n //Note : not using GZipOutputStream since that is for files\n //GZipOutputStream gives a different header, although the compression is the same\n DeflaterOutputStream dzip = new DeflaterOutputStream(out);\n dzip.write(stringified.getBytes());\n dzip.close();\n } catch (IOException e) {\n s_logger.warn(\"Exception while compressing security group rules\");\n return null;\n }\n return Base64.encodeBase64String(out.toByteArray());\n }", "public ArrayList<RuleSet> getRuleSets() {\n return ruleSets;\n }", "@Test\n public void verifyAllRules() throws EdgeRuleNotFoundException {\n for (SchemaVersion v : schemaVersions.getVersions()) {\n Multimap<String, EdgeRule> all = edgeIngestor.getAllRules(schemaVersions.getDefaultVersion());\n\n // this part verifies the default properties\n // 1) can have only at most 1 containment edge between same node type pair\n // 2) if there is at least 1 cousin edge, there must be exactly 1 cousin edge with default=true\n for (String key : all.keySet()) {\n\n Collection<EdgeRule> edgeRuleCollection = all.get(key);\n\n boolean foundContainment = false; // can have at most 1 containment rel btwn same pair of node types\n boolean foundCousin = false;\n boolean cousinDefault = false; // if there is a cousin edge there must be at least 1 default cousin\n // defined\n Set<String> labels = new HashSet<>(); // all edges between the same pair must have different labels\n int cousinCount = 0;\n\n for (EdgeRule rule : edgeRuleCollection) {\n EdgeRule match = rule;\n // check containment\n if (!(\"NONE\".equals(match.getContains()))) {\n if (foundContainment) {\n fail(\"more than one containment edge defined for \" + v.toString() + \" \" + key);\n } else {\n foundContainment = true;\n }\n } else { // check cousin stuff\n foundCousin = true;\n cousinCount++;\n if (match.isDefault()) {\n if (!cousinDefault) {\n cousinDefault = true;\n } else {\n fail(\"more than one cousin edge defined as default for \" + v.toString() + \" \" + key);\n }\n }\n }\n\n // check labels\n String label = match.getLabel();\n if (labels.contains(label)) {\n fail(\"same label found for multiple edges for \" + v.toString() + \" \" + key);\n } else {\n labels.add(label);\n }\n }\n if (foundCousin && !cousinDefault && cousinCount > 1) {\n fail(\"there is at least one cousin edge but none are designated the default for \" + v.toString()\n + \" \" + key);\n }\n }\n }\n }", "private Collection<Rule> getRelevantRules(List<Expr> goals, Collection<Expr> edbList, Collection<Rule> idbList) {\n Set<Rule> relevant = new HashSet<Rule>();\n goals = new LinkedList<Expr>(goals);\n while (!goals.isEmpty()) {\n Expr expr = goals.remove(0);\n for (Rule rule : idbList) {\n if (rule.head.predicate.equals(expr.predicate) && !relevant.contains(rule)) {\n relevant.add(rule);\n goals.addAll(rule.body);\n }\n }\n }\n return relevant;\n }", "public Vector<Rule> StemBase(){\r\n\t\t//Vector <Rule> rule=new Vector <Rule>();\r\n\t\tConceptLattice cp=new ConceptLattice(context);\r\n\t\tApproximationSimple ap=new ApproximationSimple(cp);\r\n\r\n\t\tBasicSet A=new BasicSet();\r\n\t\tBasicSet cnt=new BasicSet();\r\n\t\tBasicSet b=new BasicSet();\r\n\t\tcnt.addAll(context.getAttributes());\r\n\t\twhile(!A.equals(cnt)){\r\n\r\n\t\t\tif(A.isEmpty()){\r\n\t\t\t\tb =ap.CalculYsecondeNull(A, context);\r\n\t\t\t}else{\r\n\t\t\t\tb=ap.CalculYseconde(A, context);\r\n\t\t\t}\r\n\t\t\tif(!A.equals(b)){\r\n\t\t\t\tBasicSet diff=b.difference(A);\r\n\t\t\t\tBasicSet ant=(BasicSet) A.clone();\r\n\t\t\t\tdouble lift = 1;\r\n\t\t\t\tdouble confidence = 1;\r\n\t\t\t\tRule r=new Rule(ant,diff,context.support(ant.clone().union(diff)), confidence, lift );\r\n\t\t\t\t//int i=0;\r\n\t\t\t\tgetImp().add( r);\t\t\t\t\r\n\t\t\t}\r\n\t\t\tA=this.NextLClosure(cnt, A);\r\n\t\t}\r\n\r\n\t\treturn getImp();\r\n\r\n\t}", "private Map<Integer, Integer> fillInSolutionObject(Graph graph, HashSet<Integer> finalEntities, double[][] allCloseness) {\n Map<Integer, Integer> graphMapping = new HashMap<Integer, Integer>();\n for (int mentionNodeId : bestMentionDegrees.keySet()) {\n GraphNode mentionNode = graph.getNode(mentionNodeId);\n Mention mention = (Mention) mentionNode.getNodeData();\n\n ResultMention rm = new ResultMention(mention.getMention(), mention.getCharOffset(), mention.getCharLength());\n\n int mentionOutdegree = graph.getNodeOutdegree(mentionNodeId);\n if (mentionOutdegree == 0) {\n solution.put(rm, ResultEntity.getResultEntityAsList(ResultEntity.getNoMatchingEntity()));\n graphMapping.put(mentionNodeId, -1);\n } else {\n TIntDoubleHashMap successorsMap = mentionNode.getSuccessors();\n TIntDoubleIterator successorsIterator = successorsMap.iterator();\n for (int i = successorsMap.size(); i-- > 0; ) {\n successorsIterator.advance();\n\n int entityNodeId = successorsIterator.key();\n double mentionEntitySimilarity = successorsIterator.value();\n if (finalEntities.contains(entityNodeId)) {\n double confidence = mentionEntitySimilarity;\n double averageCloseness = 0.0;\n\n for (int otherMention : bestMentionDegrees.keySet()) {\n if (otherMention == mentionNodeId || allCloseness[entityNodeId][otherMention] == Double.NEGATIVE_INFINITY) {\n continue;\n }\n averageCloseness += allCloseness[entityNodeId][otherMention];\n }\n\n int numOtherMentions = bestMentionDegrees.keySet().size() - 1;\n if (numOtherMentions > 0) {\n averageCloseness = averageCloseness / numOtherMentions;\n }\n confidence += averageCloseness;\n\n GraphNode entityNode = graph.getNode(entityNodeId);\n int entityInternalId = (int) entityNode.getNodeData();\n Entity entity = allEntities_.getEntityById(entityInternalId);\n List<ResultEntity> res = new ArrayList<ResultEntity>(1);\n res.add(new ResultEntity(entity, confidence));\n\n graphMapping.put(mentionNodeId, entityNodeId);\n solution.put(rm, res);\n }\n }\n }\n }\n return graphMapping;\n }", "public RegexNode ReduceAlternation()\n\t{\n\t\t// Combine adjacent sets/chars\n\n\t\tboolean wasLastSet;\n\t\tboolean lastNodeCannotMerge;\n\t\tRegexOptions optionsLast;\n\t\tRegexOptions optionsAt;\n\t\tint i;\n\t\tint j;\n\t\tRegexNode at;\n\t\tRegexNode prev;\n\n\t\tif (_children == null)\n\t\t{\n\t\t\treturn new RegexNode(RegexNode.Nothing, _options);\n\t\t}\n\n\t\twasLastSet = false;\n\t\tlastNodeCannotMerge = false;\n\t\toptionsLast = RegexOptions.forValue(0);\n\n\t\tfor (i = 0, j = 0; i < _children.size(); i++, j++)\n\t\t{\n\t\t\tat = _children.get(i);\n\n\t\t\tif (j < i)\n\t\t\t{\n\t\t\t\t_children.set(j, at);\n\t\t\t}\n\n\t\t\tfor (;;)\n\t\t\t{\n\t\t\t\tif (at._type == Alternate)\n\t\t\t\t{\n\t\t\t\t\tfor (int k = 0; k < at._children.size(); k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tat._children.get(k)._next = this;\n\t\t\t\t\t}\n\n\t\t\t\t\t//_children.InsertRange(i + 1, at._children);\n\t\t\t\t\t_children.addAll(i + 1, at._children);\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\telse if (at._type == Set || at._type == One)\n\t\t\t\t{\n\t\t\t\t\t// Cannot merge sets if L or I options differ, or if either are negated.\n\t\t\t\t\toptionsAt = RegexOptions.forValue(at._options.getValue() & (RegexOptions.RightToLeft.getValue() | RegexOptions.IgnoreCase.getValue()));\n\n\n\t\t\t\t\tif (at._type == Set)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!wasLastSet || optionsLast != optionsAt || lastNodeCannotMerge || !RegexCharClass.IsMergeable(at._str))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\twasLastSet = true;\n\t\t\t\t\t\t\tlastNodeCannotMerge = !RegexCharClass.IsMergeable(at._str);\n\t\t\t\t\t\t\toptionsLast = optionsAt;\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\telse if (!wasLastSet || optionsLast != optionsAt || lastNodeCannotMerge)\n\t\t\t\t\t{\n\t\t\t\t\t\twasLastSet = true;\n\t\t\t\t\t\tlastNodeCannotMerge = false;\n\t\t\t\t\t\toptionsLast = optionsAt;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\n\t\t\t\t\t// The last node was a Set or a One, we're a Set or One and our options are the same.\n\t\t\t\t\t// Merge the two nodes.\n\t\t\t\t\tj--;\n\t\t\t\t\tprev = _children.get(j);\n\n\t\t\t\t\tRegexCharClass prevCharClass;\n\t\t\t\t\tif (prev._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprevCharClass = new RegexCharClass();\n\t\t\t\t\t\tprevCharClass.AddChar(prev._ch);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprevCharClass = RegexCharClass.Parse(prev._str);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (at._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprevCharClass.AddChar(at._ch);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tRegexCharClass atCharClass = RegexCharClass.Parse(at._str);\n\t\t\t\t\t\tprevCharClass.AddCharClass(atCharClass);\n\t\t\t\t\t}\n\n\t\t\t\t\tprev._type = RegexNode.Set;\n\t\t\t\t\tprev._str = prevCharClass.ToStringClass();\n\n\t\t\t\t}\n\t\t\t\telse if (at._type == RegexNode.Nothing)\n\t\t\t\t{\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\twasLastSet = false;\n\t\t\t\t\tlastNodeCannotMerge = false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (j < i)\n\t\t{\n\t\t\t//_children.removeRange(j, i - j + j);\n\t\t\tArrayExt.removeRange(_children, j, i - j + j);\n\t\t}\n\n\t\treturn StripEnation(RegexNode.Nothing);\n\t}", "private void removeRedundantPatterns() {\n HashSet<String> patternsToRemove = new HashSet<>();\n for (Map.Entry<String, Pattern> entry : patterns.entrySet()) {\n\n Pattern pattern = entry.getValue();\n\n if (!parameters.keepAllPatterns) {\n String suffixStr = getSuffix(pattern);\n PatternsUtils.addSubPatternToRemoveList(patterns, suffixStr, pattern, patternsToRemove);\n }\n\n if (crossStrand) {\n PatternsUtils.removeReverseCompliments(patterns, pattern, patternsToRemove);\n }\n }\n patterns.keySet().removeAll(patternsToRemove);\n }", "public static ArrayList<Rule> getRulesFromItemset(ArrayList<String> itemSet, DataSet dataSet, double minConfidence) {\n\t\tArrayList<Rule> rules = new ArrayList<Rule>();\n\t\t\n\t\tArrayList<ArrayList<String>> subsets = allSubsets(itemSet);\n\t\t\n\t\tfor(ArrayList<String> subset : subsets) {\n\t\t\tRule r = new Rule();\n\t\t\tr.LHS = subset;\n\t\t\tr.RHS = complement(itemSet, subset);\n\t\t\t\n\t\t\tArrayList<String> allItems = new ArrayList<String>();\n\t\t\tallItems.addAll(r.LHS);\n\t\t\tallItems.addAll(r.RHS);\n\t\t\tr.supportFound = dataSet.findSupport(allItems);\n\t\t\tr.confidenceFound = dataSet.findConfidence(r);\n\t\t\t\n\t\t\tif(r.confidenceFound >= minConfidence) {\n\t\t\t\trules.add(r);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn rules;\n\t}", "Set<JflowModel.Node> simplify(ModelState start)\n{\n Set<JflowModel.Node> states = new HashSet<JflowModel.Node>();\n\n updateState(start,states,new HashMap<ModelState,Vector<Set<JflowModel.Node>>>());\n\n if (removeExtraReturns(states)) {\n states = new HashSet<JflowModel.Node>();\n updateState(start,states,new HashMap<ModelState,Vector<Set<JflowModel.Node>>>());\n }\n\n return states;\n}", "public NormalizationRuleSet getNormalizationRuleSet() {\n return _normalizationRuleSet;\n }", "public void cleanUp(){\n for(ShaderProgram sp : shaderlist){\n sp.cleanup();\n }\n }", "private void traverseSets() {\n\t\tArrayList<PayloadBuilderSet> sets = new ArrayList<PayloadBuilderSet>();\n\t\tArrayList<PayloadBuilder> builders = new ArrayList<PayloadBuilder>();\n\n\t\tfor (PayloadSetConfiguration payloadSetConfiguration : workloadConfiguration.getPayloadSetConfigurations()) {\n\t\t\tConcurrentLinkedQueue<PayloadSetConfiguration> queue = new ConcurrentLinkedQueue<PayloadSetConfiguration>();\n\t\t\tqueue.offer(payloadSetConfiguration);\n\n\t\t\twhile (!queue.isEmpty()) {\n\t\t\t\tPayloadSetConfiguration setConfiguration = queue.poll();\n\n\t\t\t\t// If the configuration has payloads, create a new set and add it.\n\t\t\t\tif (setConfiguration.getNumPayloads() > 0) {\n\t\t\t\t\tPayloadBuilderSet set = new PayloadBuilderSet(setConfiguration, this);\n\n\t\t\t\t\tsets.add(set);\n\n\t\t\t\t\tfor (PayloadBuilder builder : set.getBuilders())\n\t\t\t\t\t\tbuilders.add(builder);\n\t\t\t\t}\n\n\t\t\t\t// Enqueue child sets for traversal\n\t\t\t\tfor (PayloadSetConfiguration childSetConfiguration : setConfiguration\n\t\t\t\t\t\t.getChildPayloadSetConfigurations()) {\n\t\t\t\t\tqueue.offer(childSetConfiguration);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.sets = sets.toArray(new PayloadBuilderSet[0]);\n\t\tthis.builders = builders.toArray(new PayloadBuilder[0]);\n\n\t}", "@Override\n public List<SKOSConceptNode> getConceptHierarchy(SKOSConceptScheme conceptScheme, SKOSCollection skosCollection, HierarchyMethod hierarchyMethod) {\n HierarchyMethod hm = hierarchyMethod;\n if (hm == null) hm = HierarchyMethod.DEFAULT_METHOD;\n \n JenaSKOSConceptScheme jConceptScheme = null;\n JenaSKOSCollection jCollection = null;\n \n JenaSKOSResource csRes = this.getSKOSResource(conceptScheme);\n if (csRes!=null && (csRes instanceof JenaSKOSConceptScheme)) jConceptScheme = (JenaSKOSConceptScheme)csRes;\n JenaSKOSResource collRes = this.getSKOSResource(skosCollection);\n if (collRes!=null && (collRes instanceof JenaSKOSCollection)) jCollection = (JenaSKOSCollection)collRes;\n \n List<SKOSConceptNode> conceptHierarchy = new ArrayList<>();\n \n //Make sure that the matched Jena SKOS resources are correct\n if ((conceptScheme==null || jConceptScheme!=null) && (skosCollection==null || jCollection!=null)) {\n \n TreeSet<JenaSKOSConcept> rootConcepts = new TreeSet<>();\n \n CloseableIterator<SKOSConcept> topConcepts;\n List<SKOSConcept> broadestConcepts;\n switch (hm.getRootType()) {\n case BOTH:\n topConcepts = this.listTopConcepts(jConceptScheme, jCollection);\n while (topConcepts.hasNext()) {\n SKOSConcept topConcept = topConcepts.next();\n if (topConcept != null) rootConcepts.add((JenaSKOSConcept) topConcept);\n }\n case BROADEST_CONCEPTS:\n broadestConcepts = this.getBroadestConcepts(jConceptScheme, jCollection);\n for (SKOSConcept broadConcept: broadestConcepts) rootConcepts.add((JenaSKOSConcept) broadConcept);\n break;\n default:\n topConcepts = this.listTopConcepts(jConceptScheme, jCollection);\n while (topConcepts.hasNext()) {\n SKOSConcept topConcept = topConcepts.next();\n if (topConcept != null) rootConcepts.add((JenaSKOSConcept) topConcept);\n }\n break;\n }\n \n for (JenaSKOSConcept concept:rootConcepts) {\n conceptHierarchy.add(this.getHierarchyOfConcept(concept, jConceptScheme, jCollection, hm.getRelationshipType(), hm.getSortLanguage()));\n }\n }\n \n return conceptHierarchy;\n }", "public void minimize() {\n D = new boolean[states.length][states.length];\r\n S = new ArrayList<ArrayList<HashSet<Point>>>(); // lol\r\n\r\n //noinspection ForLoopReplaceableByForEach\r\n for (int i = 0; i < states.length; i++) {\r\n ArrayList<HashSet<Point>> innerList = new ArrayList<HashSet<Point>>();\r\n\r\n //noinspection ForLoopReplaceableByForEach\r\n for (int j = 0; j < states.length; j++) {\r\n Arrays.fill(D[i], false);\r\n innerList.add(new HashSet<Point>());\r\n }\r\n S.add(innerList);\r\n }\r\n\r\n // 2. states with different acceptances are distinguishable\r\n for (int i = 0; i < states.length; i++) {\r\n for (int j = i + 1; j < states.length; j++) {\r\n if (acceptStates.contains(i) != acceptStates.contains(j)) {\r\n D[i][j] = true;\r\n }\r\n }\r\n }\r\n\r\n // 3. mark as possibly indistinguishable, enforce distinguishability\r\n for (int i = 0; i < states.length; i++) {\r\n for (int j = i + 1; j < states.length; j++) {\r\n // only pairs that are as of yet indistinguishable\r\n if (D[i][j]) {\r\n continue;\r\n }\r\n\r\n DFAState qi = states[i];\r\n DFAState qj = states[j];\r\n\r\n // one of the things being compared is unreachable\r\n if (qi == null || qj == null) {\r\n continue;\r\n }\r\n\r\n // helps emulate \"for any\"\r\n boolean distinguished = false;\r\n for (int k = 0; k < qi.transitions.size(); k++) {\r\n int m = qi.transitions.get(k);\r\n int n = qj.transitions.get(k);\r\n\r\n // if on the same letter, qm and qn move to distinguishable states\r\n if (D[m][n] || D[n][m]) {\r\n dist(i, j);\r\n distinguished = true;\r\n break;\r\n }\r\n }\r\n\r\n if (!distinguished) {\r\n // qm and qn are indistinguishable\r\n for (int k = 0; k < qi.transitions.size(); k++) {\r\n int m = qi.transitions.get(k);\r\n int n = qj.transitions.get(k);\r\n\r\n if (m < n && !(i == m && j == n)) {\r\n S.get(m).get(n).add(new Point(i, j));\r\n } else if (m > n && !(i == n && j == m)) {\r\n S.get(n).get(m).add(new Point(i, j));\r\n }\r\n }\r\n }\r\n\r\n }\r\n }\r\n\r\n mergeStates();\r\n }", "public static Ontology mergeTranslateOntologies(Set<OWLOntology> ontologies) {\n\t\t\n\t\t// We will keep track of the loaded ontologies and translate the TBox\n\t\t// part of them into our internal representation\n\t\t\n\t\tlog.debug(\"Load ontologies called. Translating ontologies.\");\n\t\t\n\t\ttry {\n\t\t\tOWLAPI3TranslatorBase translator = factory.newInstance();\n\t\t\tfor (OWLOntology onto : ontologies) \n\t\t\t\ttranslateInto(translator, onto);\n\n\t\t\tlog.debug(\"Ontology loaded: {}\", translator.getOntology());\n\n\t\t\treturn translator.getOntology();\n\t\t} catch (InstantiationException e) {\n\t\t\tlog.debug(\"Failed to instantiate the factory {}.\", e.getMessage());\n\t\t\tthrow new RuntimeException(e.getMessage());\n\t\t} catch (IllegalAccessException e) {\n\t\t\tlog.debug(\"Failed to instantiate the factory {}.\", e.getMessage());\n\t\t\tthrow new RuntimeException(e.getMessage());\n\t\t}\n\t}", "@TestApi\n @NonNull\n public RuleSet getCurrentRuleSet() {\n try {\n ParceledListSlice<Rule> rules = mManager.getCurrentRules();\n String version = mManager.getCurrentRuleSetVersion();\n return new RuleSet.Builder().setVersion(version).addRules(rules.getList()).build();\n } catch (RemoteException e) {\n throw e.rethrowAsRuntimeException();\n }\n }", "@Override\n\tpublic DOMStringList getStyleSheetSets() {\n\t\tif (sheets.needsUpdate()) {\n\t\t\tsheets.update();\n\t\t}\n\t\treturn sheets.getStyleSheetSets();\n\t}", "public String getDefaultRuleSetName()\n/* */ {\n/* 1364 */ if ((this.defaultRuleSet != null) && (this.defaultRuleSet.isPublic())) {\n/* 1365 */ return this.defaultRuleSet.getName();\n/* */ }\n/* 1367 */ return \"\";\n/* */ }", "public void setDefaultRuleSet(String ruleSetName)\n/* */ {\n/* 1326 */ if (ruleSetName == null) {\n/* 1327 */ if (this.publicRuleSetNames.length > 0) {\n/* 1328 */ this.defaultRuleSet = findRuleSet(this.publicRuleSetNames[0]);\n/* */ } else {\n/* 1330 */ this.defaultRuleSet = null;\n/* 1331 */ int n = this.ruleSets.length;\n/* 1332 */ for (;;) { n--; if (n < 0) break;\n/* 1333 */ String currentName = this.ruleSets[n].getName();\n/* 1334 */ if ((currentName.equals(\"%spellout-numbering\")) || (currentName.equals(\"%digits-ordinal\")) || (currentName.equals(\"%duration\")))\n/* */ {\n/* */ \n/* */ \n/* 1338 */ this.defaultRuleSet = this.ruleSets[n];\n/* 1339 */ return;\n/* */ }\n/* */ }\n/* */ \n/* 1343 */ n = this.ruleSets.length;\n/* 1344 */ do { n--; if (n < 0) break;\n/* 1345 */ } while (!this.ruleSets[n].isPublic());\n/* 1346 */ this.defaultRuleSet = this.ruleSets[n];\n/* */ }\n/* */ }\n/* */ else\n/* */ {\n/* 1351 */ if (ruleSetName.startsWith(\"%%\")) {\n/* 1352 */ throw new IllegalArgumentException(\"cannot use private rule set: \" + ruleSetName);\n/* */ }\n/* 1354 */ this.defaultRuleSet = findRuleSet(ruleSetName);\n/* */ }\n/* */ }", "public void rewriteMRCKR(){\n\t\t\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\t//Rewriting for global context.\n\t\tMRGlobal2DatalogRewriter globalrewriter = new MRGlobal2DatalogRewriter();\n\t\tdatalogGlobal = globalrewriter.rewrite(inputCKR.getGlobalOntology());\n\t\t//System.out.println(\"Rewriting program for global context complete.\");\n\t\t\t\t\n\t\t//Get set of contexts and associations to modules from globalrewriter\n\t\tcontextsSet = globalrewriter.getContextsSet();\n\t\thasModuleAssociations = globalrewriter.getHasModuleAssociations();\n\t\t//System.out.println(\"Set of contexts and modules associations computed.\");\n\t\t\n\t\t//Computation of local contexts knowledge bases.\n\t\tcomputeLocalKB();\n\t\t\t\t\n\t\t//Rewriting for local contexts knowledge bases.\n\t\tMRLocal2DatalogRewriter localrewriter = new MRLocal2DatalogRewriter();\n\t\t\t\t\n\t\tdatalogLocal = new LinkedList<DLProgram>();\n\t\tfor (String c : contextsSet) {\n\t\t\t//System.out.println(\"Rewriting program for \" + c.replaceAll(\"\\\"\", \"\"));\n\t\t\tlocalrewriter.setContextID(c.replaceAll(\"\\\"\", \"\"));\n\t\t\t\n\t\t\tdatalogLocal.add(localrewriter.rewrite(contextsOntologies.get(c)));\n\t\t}\n\t\t\t\t\n\t\tlong endTime = System.currentTimeMillis();\n\t\trewritingTime = endTime - startTime;\n \n\t\t//System.out.println(\"Rewriting completed in \" + rewritingTime + \" ms.\");\n\t\t//System.out.println(datalogGlobal.getStatements().size());\n\t\t\n\t\t//Compute CKR Program.\n\t\tdatalogCKR = new DLProgram();\n\t \n\t\tdatalogCKR.addAll(datalogGlobal.getStatements());\n\t\t\n\t\tfor (DLProgram dlProgram : datalogLocal) {\n\t\t\tdatalogCKR.addAll(dlProgram.getStatements());\t\n\t\t}\n\t\t\n\t\t//Add local inference rules.\n\t\tdatalogCKR.addAll(MRDeductionRuleset.getPrl());\n\t\tdatalogCKR.addAll(MRDeductionRuleset.getPeval());\n\t\t\n\t\t//Add local propagation rules.\n\t\tdatalogCKR.addAll(MRDeductionRuleset.getPd());\t\t\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "protected void rebuildSchemas() throws VisitorException, FrontendException {\n SchemaRemover sr = new SchemaRemover(mPlan);\n sr.visit();\n SchemaCalculator sc = new SchemaCalculator(mPlan);\n sc.visit();\n \n }", "public RuleSet (RuleList rulelist, SensorList sList) {\n \n this.references = new ArrayList();\n this.rulelist = rulelist;\n this.totalProb = -1.0;\n this.id = counter.incrementAndGet();\n this.indexesOfPrec = new ArrayList();\n this.precedences = new ArrayList ();\n this.sList = sList;\n }", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "void merge_force_collapse() {\n while (this.n > 1) {\n int localN = this.n - 2;\n if (localN > 0 && this.len[localN-1] < this.len[localN+1])\n --localN;\n merge_at(localN);\n }\n }", "public static List<Synset> getAllMeronymSynset(IndexWord word) throws JWNLException {\n List<Synset> result=new ArrayList<>();\n\n for(Synset wordSynset:word.getSenses()){\n PointerTargetTree hyponyms = PointerUtils.getInstance().getInheritedMeronyms(wordSynset,4,4);\n PointerTargetTreeNode rootnode = hyponyms.getRootNode();\n LinkedList<PointerTargetTreeNode> stack = new LinkedList<>();\n if(rootnode==null){\n return result;\n }\n stack.add(rootnode);\n while(!stack.isEmpty()){\n PointerTargetTreeNode node = stack.pollLast();\n result.add(node.getSynset());\n PointerTargetTreeNodeList childList = node.getChildTreeList();\n if(childList!=null){\n for(int i=0;i<childList.size();i++){\n stack.add((PointerTargetTreeNode)childList.get(i));\n }\n }\n\n }\n\n }\n\n return result;\n }", "private void configureDSE() {\n dse.addMetaModelPackage(metamodel);\n dse.addMetaModelPackage(ScopePackage.eINSTANCE);\n dse.addMetaModelPackage(ModelPackage.eINSTANCE);\n\n dse.setInitialModel(scope);\n dse.setStateCoderFactory(new DSEMergeSerializerFactory(idMapper));\n \n ModelQueriesHardObjective modelQueriesHardObjective = new ModelQueriesHardObjective();\n for (IQuerySpecification<?> objective : objectives) {\n modelQueriesHardObjective.withConstraint(objective);\n }\n dse.addObjective(modelQueriesHardObjective.withType(ModelQueryType.NO_MATCH));\n\n for (DSETransformationRule<?, ?> rule : rules) {\n dse.addTransformationRule(rule);\n }\n\n try {\n dse.addGlobalConstraint(new ModelQueriesGlobalConstraint().withConstraint(ConflictsQuerySpecification.instance()).withType(ModelQueryType.NO_MATCH));\n// dse.addTransformationRule(\n// new DSETransformationRule<ExecutableDeleteChangeMatch, ExecutableDeleteChangeMatcher>(\n// ExecutableDeleteChangeQuerySpecification.instance(),\n// new DefaultMatchProcessor<ExecutableDeleteChangeMatch>()));\n// dse.addTransformationRule(\n// new DSETransformationRule<IPatternMatch, IncQueryMatcher<IPatternMatch>>(\n// id2eobject, \n// new DefaultMatchProcessor<IPatternMatch>()));\n } catch (IncQueryException e) {\n logger.error(e.getMessage(), e);\n }\n dse.setMaxNumberOfThreads(1);\n }", "protected Set<Norm> regulateConflict(Conflict conflict, Goal goal) {\n\t\tSet<Norm> createdNorms = new HashSet<Norm>();\n\t\tList<Long> blamedAgents = new ArrayList<Long>();\n\t\tView sourceView = conflict.getConflictSource().getView(-1);\n\t\tList<EnvironmentAgentAction> agActions;\n\t\tEnvironmentAgentContext agContext;\n\t\tEnvironmentAgentAction agAction;\n\n\t\t/* Get a list of those agents that are considered as responsible \n\t\t * for the conflict (requires domain knowledge) */\n\t\tblamedAgents = this.cbrMachine.getConflictSource(conflict);\n\n\t\t/* Create a norm that regulates the behavior of each agent\n\t\t * blamed for the conflict in the context previous to the conflict */\n\t\tfor(Long blamedAgentId : blamedAgents) {\n\n\t\t\t/* Get agent's context and action */\n\t\t\tagContext = this.dmFunctions.agentContext(blamedAgentId, sourceView);\n\t\t\tagActions = this.dmFunctions.agentAction(blamedAgentId, \n\t\t\t\t\tconflict.getConflictSource());\n\t\t\tagAction = agActions.get(random.nextInt(agActions.size()));\n\n\t\t\t/* Check that the agent has a valid context */\n\t\t\tif(agContext == null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t/* Check that no norms applied to the agent in the state\n\t\t\t * previous to the state containing the conflict */\n\t\t\tif(this.normsAppliedToAgentContext(agContext)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t/* Create a new norm prohibiting that action in that context */\n\t\t\tSetOfPredicatesWithTerms precondition = agContext.getDescription();\n\t\t\tif(!precondition.isEmpty()) {\n\t\t\t\tNorm norm = new Norm(precondition, NormModality.Prohibition, \n\t\t\t\t\t\tagAction, goal);\n\t\t\t\t\n\t\t\t\tcreatedNorms.add(norm);\n\t\t\t\t\n\t\t\t\t/* Update metrics */\n\t\t\t\tthis.nsMetrics.newNonRegulatedConflictsSolvedThisTick();\n\t\t\t}\n\t\t}\n\t\treturn createdNorms;\n\t}", "public void createHSMapping(\n\t\t\tSpatialEntitySet sourceSESet) {\n\t\tthis.shMapping.forEach((se,hrHash)->{\n\t\t\tif (!hrHash.isEmpty()\n\t\t\t\t\t&&sourceSESet.seHash.containsKey(\n\t\t\t\t\t\t\tse.getLeft())) {\n\t\t\t\tfor (int hrIndex: hrHash) {\n\t\t\t\t\tif (!this.hsMapping.containsKey(hrIndex)) {\n\t\t\t\t\t\tthis.hsMapping.put(hrIndex, \n\t\t\t\t\t\t\t\tnew SpatialEntitySet());\n\t\t\t\t\t}\n\t\t\t\t\tthis.hsMapping.get(hrIndex).addSE(\n\t\t\t\t\t\t\tse.getLeft(), se.getRight());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t//process target se next\n\t\tthis.shMapping.forEach((se,hrHash)->{\n\t\t\tif (!hrHash.isEmpty()\n\t\t\t\t\t&&!sourceSESet.seHash.containsKey(\n\t\t\t\t\t\t\tse.getLeft())) {\n\t\t\t\tfor (int hrIndex: hrHash) {\n\t\t\t\t\tif (this.hsMapping.containsKey(hrIndex)) {\n\t\t\t\t\t\tthis.hsMapping.get(hrIndex).addSE(\n\t\t\t\t\t\t\t\tse.getLeft(), se.getRight());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}" ]
[ "0.59921604", "0.58472663", "0.5517825", "0.55141264", "0.524053", "0.5119651", "0.5106547", "0.51036495", "0.50536203", "0.5031655", "0.5002519", "0.49978924", "0.49929923", "0.49842864", "0.49828908", "0.4953697", "0.49397847", "0.4928824", "0.49094138", "0.4905482", "0.49006903", "0.48854092", "0.4865177", "0.48645568", "0.48402476", "0.48219636", "0.48172623", "0.48166022", "0.4814979", "0.48135313", "0.48111778", "0.48076499", "0.47881502", "0.47826654", "0.47799337", "0.47761044", "0.47564903", "0.47528034", "0.4736415", "0.4732447", "0.47320905", "0.4712742", "0.4679931", "0.4669261", "0.46662608", "0.46451598", "0.46436527", "0.46344593", "0.46308535", "0.46301946", "0.46249253", "0.4622558", "0.46219885", "0.461921", "0.46064445", "0.4596745", "0.45898345", "0.45836028", "0.4580139", "0.4578006", "0.4575118", "0.4568085", "0.45644873", "0.45613718", "0.4554145", "0.45421758", "0.45389798", "0.45359448", "0.45235842", "0.4519384", "0.4510948", "0.4506099", "0.45043057", "0.45035562", "0.45000848", "0.44795972", "0.44790837", "0.44755256", "0.44746074", "0.4471684", "0.4467851", "0.44606945", "0.4460205", "0.44507742", "0.44485968", "0.4444016", "0.44389716", "0.44353554", "0.4429449", "0.44270292", "0.44248718", "0.44193402", "0.44187465", "0.44184372", "0.441586", "0.4415019", "0.44104525", "0.44063297", "0.4401824", "0.440146" ]
0.48574224
24
GETS PROBS OF THE OUTPUTSTATES
public ArrayList <Double> outputsProbFromRuleSets (RuleSet ruleset2) { ArrayList <Double> res = new ArrayList <> (); double a; for (int i = 0; i < this.size(); i++) { for (int j = 0; j < ruleset2.size(); j++) { a = this.getRule(i).getProb(); a = a * ruleset2.getRule(j).getProb(); res.add(a); } } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String[] exportState();", "String[] getAllStatus() {\n String[] toReturn = new String[allStates.length];\n for (int i = 0; i < toReturn.length; i++) {\n toReturn[i] = context.getString(allStates[i]);\n }\n return toReturn;\n }", "public List<S> getAvailableStates();", "public String[] getActiveStates() {\r\n String[] states = currentProcessInstance.getActiveStates();\r\n if (states == null)\r\n return new String[0];\r\n \r\n String[] stateLabels = new String[states.length];\r\n for (int i = 0; i < states.length; i++) {\r\n stateLabels[i] = getState(states[i]).getLabel(currentRole, getLanguage());\r\n }\r\n \r\n return stateLabels;\r\n }", "public int getStates() {\n return states;\n }", "String[] getManagedAdditionalStates();", "java.lang.String getState();", "public String[] getStateNames() {\n List<String> st = new ArrayList<>();\n for (AState s : states) {\n st.add(s.getName());\n }\n return st.toArray(new String[st.size()]);\n }", "@Output\n public String getState() {\n return state;\n }", "public MD2_ModelState[] getModelStates(){\n\t\treturn state;\n\t}", "public States states();", "com.google.protobuf.ByteString\n getStateBytes();", "String getState();", "String getState();", "String getState();", "private static List<State<StepStateful>> getStates() {\n List<State<StepStateful>> states = new LinkedList<>();\n states.add(s0);\n states.add(s1);\n states.add(s2);\n states.add(s3);\n states.add(s4);\n states.add(s5);\n states.add(s6);\n return states;\n }", "public List<String> getStates() {\r\n \t\treturn new ArrayList<String>(new TreeSet<String>(states.keySet()));\r\n \t}", "public String[] getDocStates() {\n\t\t\treturn ((String[]) this.statusDocCounts.keySet().toArray(new String[this.statusDocCounts.size()]));\n\t\t}", "Object getState();", "List<WorkflowProcessingState> getStates();", "public ArrayList<State> getStates(){\n\t\treturn this.states;\n\t}", "public void displayStateValues()\n\t{\n\t\tfor (State s : stateSpace)\n\t\t{\n\t\t\tSystem.out.println(s.state + \"\\t\" + this.value.get(s));\n\t\t}\n\t}", "public Map<Integer, Color> getStates(){\n return myStates;\n }", "public AeBpelState getState();", "public long[] getState() {\n return new long[] {(long)Cg0, (long)Cg1, (long)Cg2,\n (long)Cg3, (long)Cg4, (long)Cg5};\n }", "@Override\n public List<List<Integer>> getStateInfo() {\n List<List<Integer>> currStateConfig = getVisualInfoFromPieces(STATE_INFO_IDENTIFIER);\n return Collections.unmodifiableList(currStateConfig);\n }", "public List<String> getStates() {\n\t\treturn states;\n\t}", "@Override\n public String toString ()\n {\n StringBuffer buffer = new StringBuffer();\n for (State value : stateMap.values()) {\n buffer.append(value.toString());\n buffer.append(\"\\n\");\n }\n return buffer.toString();\n }", "private void dumpState() {\r\n\t\tfor (TextChunk location : locationalResult) {\r\n\t\t\tlocation.printDiagnostics();\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "List<Integer> getState()\n\t{\n\t\treturn state;\n\t}", "public String getState() { return state; }", "public String getState()\n {\n \treturn state;\n }", "public String getState() {\n\t\treturn this.state_rep;\n\t}", "public String toString() {\n try {\n StringBuilder sb = new StringBuilder();\n sb.append((\"STATES\") + System.getProperty(\"line.separator\"));\n sb.append((\"-----------\") + System.getProperty(\"line.separator\"));\n sb.append(statesToString());\n sb.append((\"TRANSITIONS\") + System.getProperty(\"line.separator\"));\n sb.append((\"-------------------\") + System.getProperty(\"line.separator\"));\n sb.append(transitionsToString());\n return sb.toString();\n } catch (RuntimeException sbe) {\n throw sbe;\n } catch (Exception sbe) {\n throw new RuntimeException(sbe);\n }\n }", "public MachineState getStateFromBase() {\r\n \tSet<GdlSentence> contents = new HashSet<GdlSentence>();\r\n for (Proposition p : propNet.getBasePropositions().values()) {\r\n if (p.getSingleInputC().propmark()){\r\n contents.add(p.getName());\r\n }\r\n }\r\n return new MachineState(contents);\r\n }", "int getState();", "int getState();", "int getState();", "int getState();", "int getState();", "int getState();", "public int getState() {return state;}", "public int getState() {return state;}", "public List<MclnState> getAvailableStates();", "Collection<ObjectFlowState> getObjectFlowStates();", "List<S> getAllPossibleStates(S state);", "public List<AState> getStates() {\n return states;\n }", "SentenceHMMState getState() {\n\treturn state;\n }", "public String[] getOutputNames()\n\t{\n\t\treturn _outputNames;\n\t}", "public ArrayList genStates2(){\n ArrayList states = new ArrayList(44);\n List<String> notes = new ArrayList<String>(Arrays.asList(\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\"));\n List<String> beat = new ArrayList<String>(Arrays.asList(\"1\",\"2\",\"3\",\"4\"));\n //List<String> dot = new ArrayList<String>(Arrays.asList(\"1\",\"0\"));\n for(String s : notes){\n for(String d : beat){\n //for(int d = 0; d<=1; d++){\n String state = \"\"; \n state += s;\n state += d;\n //state += dot.get(d);\n states.add(state);\n //}\n }\n }\n return states;\n }", "@Override\n public Object getSimulationState()\n {\n if (outputStateVariables == null)\n {\n System.out.println(\"Output State vars is null!!\");\n\n return null;\n }\n\n double[] ret = new double[outputStateVariables.length];\n\n for (int i = 0; i < ret.length; i++)\n {\n YoVariable var = outputStateVariables[i];\n if (var != null)\n ret[i] = outputStateVariables[i].getValueAsDouble();\n else\n ret[i] = 0.0;\n }\n\n return ret;\n }", "private void dumpState() {\n try {\n if (cpeFactory.getCPEConfig() != null\n && cpeFactory.getCPEConfig().getDeployment().equalsIgnoreCase(SINGLE_THREADED_MODE)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_show_cr_state__INFO\",\n new Object[] { Thread.currentThread().getName(), String.valueOf(readerState) });\n\n for (int i = 0; processingUnits != null && i < processingUnits.length; i++) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_show_pu_state__INFO\",\n new Object[] { Thread.currentThread().getName(), String.valueOf(i),\n String.valueOf(processingUnits[i].threadState) });\n }\n if (casConsumerPU != null) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_show_cc_state__INFO\",\n new Object[] { Thread.currentThread().getName(),\n String.valueOf(casConsumerPU.threadState) });\n }\n\n } else {\n if (producer != null) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_show_cr_state__INFO\",\n new Object[] { Thread.currentThread().getName(),\n String.valueOf(producer.threadState) });\n }\n for (int i = 0; processingUnits != null && i < processingUnits.length; i++) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_show_pu_state__INFO\",\n new Object[] { Thread.currentThread().getName(), String.valueOf(i),\n String.valueOf(processingUnits[i].threadState) });\n }\n if (casConsumerPU != null) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_show_cc_state__INFO\",\n new Object[] { Thread.currentThread().getName(),\n String.valueOf(casConsumerPU.threadState) });\n }\n }\n } catch (Exception e) { // ignore. This is called on stop()\n }\n\n }", "public void printMachine(){\n\t\tfor(State s:theStates){\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}", "public String getState() {\r\n\t\treturn state;\t\t\r\n\t}", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public String getState(){\n return state;\n }", "public static ArrayList genStates(){\n ArrayList states = new ArrayList(44);\n List<String> notes = new ArrayList<String>(Arrays.asList(\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\"));\n List<String> beat = new ArrayList<String>(Arrays.asList(\"1\",\"2\",\"3\",\"4\"));\n //List<String> dot = new ArrayList<String>(Arrays.asList(\"1\",\"0\"));\n for(int n = 0; n<=10; n++){\n for(int b = 0; b<=3; b++){\n //for(int d = 0; d<=1; d++){\n String state = \"\"; \n state += notes.get(n);\n state += beat.get(b);\n //state += dot.get(d);\n states.add(state);\n //}\n }\n }\n return states;\n }", "public int getMyNumStates() { return myNumStates; }", "private double[] getCustomState() {\n double[] state = new double[this.stateLength];\n\n // *** YOUR CODE HERE **********************************************************************\n\n // *** END OF YOUR CODE ********************************************************************\n\n return state;\n }", "@Override\n public String getState() {\n StringBuilder builder = new StringBuilder();\n StringBuilder listPitches = listAllPitches(this.getFinalBeat());\n int length = this.getFinalBeat();\n\n builder.append(listPitches);\n\n for (int i = 0; i < length; i++) {\n builder.append(\"\\n\" + padded(i, length) + notesToString(getNotesPlayingAtBeat(i), i));\n }\n return builder.toString();\n }", "public String getState() {\n\t\treturn state.toString();\n\t}", "public java.lang.String getState () {\n\t\treturn state;\n\t}", "public String[][] getGlobalStatesInfo( ) {\r\n\r\n String[][] globalStatesInfo = null;\r\n\r\n // Create the list for the globalStates\r\n globalStatesInfo = new String[ globalStatesList.size( ) ][ 2 ];\r\n\r\n // Fill the array with the info\r\n for( int i = 0; i < globalStatesList.size( ); i++ ) {\r\n GlobalState globalState = globalStatesList.get( i );\r\n globalStatesInfo[i][0] = globalState.getId( );\r\n globalStatesInfo[i][1] = Integer.toString( Controller.getInstance( ).countIdentifierReferences( globalState.getId( ) ) );\r\n }\r\n\r\n return globalStatesInfo;\r\n }", "public int getState();", "public int getState();", "public int getState();", "public int getState();", "public PrinterState getDriverState(){\n\t\treturn thePrinterState;\n\t}", "public String getState() {\n StringBuilder builder = new StringBuilder();\n //builder.append(muteMusic.getBackground().getLevel());\n //builder.append(',');\n builder.append(muteClicked);\n builder.append(',');\n builder.append(gameOver);\n builder.append(',');\n builder.append(wordsDetectedByUser.size());\n builder.append(',');\n for(int i =0;i<wordsDetectedByUser.size();i++)\n { builder.append(wordsDetectedByUser.get(i));\n builder.append(',');}\n builder.append(notValidWord);\n builder.append(',');\n // m1Handler.removeCallbacks(m1Runnable);\n mHandler.removeCallbacks(mRunnable);\n builder.append(phaseTwo);\n builder.append(',');\n builder.append(currentScore); //storing current score\n builder.append(',');\n builder.append(t); //storing timer state\n builder.append(',');\n Object a[] = DoneTiles.toArray();\n builder.append(a.length);\n builder.append(',');\n for(int i=0;i<a.length;i++) {\n builder.append(a[i].toString());\n builder.append(',');\n }\n builder.append(mLastLarge);\n builder.append(',');\n builder.append(mLastSmall);\n builder.append(',');\n for (int large = 0; large < 9; large++) {\n for (int small = 0; small < 9; small++) {\n builder.append(mSmallTiles[large][small].getOwner().name());\n builder.append(',');\n builder.append((((Button)mSmallTiles[large][small].getView()).getText()).toString());\n builder.append(',');\n //Log.d(DoneTiles);\n }\n }\n return builder.toString();\n }", "public String getState() \n\t{\n\t\treturn state;\n\t}", "public String printState(){\n if (this.state.equals(\"unstarted\")) return \"unstarted 0\";\n\n else if (this.state.equals(\"terminated\")) return \"terminated 0\";\n else if (this.state.equals(\"blocked\")) {\n return String.format(\"blocked %d\", ioBurstTime);\n }\n else if (this.state.equals(\"ready\")) {\n if (remainingCPUBurstTime !=null){\n return String.format(\"ready %d\", remainingCPUBurstTime);\n }\n return \"ready 0\";\n }\n\n else if (this.state.equals(\"running\")){\n return String.format(\"running %d\", cpuBurstTime);\n }\n\n else return \"Something went wrong.\";\n }", "public String getState()\r\n\t{\r\n\t\treturn state.getModelObjectAsString();\r\n\t}", "public TSLexerState getState() {\r\n \t\treturn state;\r\n \t}", "@Override\n\tpublic String getState() {\n\t\treturn this.state;\n\t}", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn state.toString();\r\n\t}", "public String getState()\n\t{\n\t\treturn state;\n\t}", "public int [][] getState() {\n return stateArray;\n }", "public List<?> getAllPatientState()\n {\n return _patient.getPatientStates();\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String toString()\n {\n \tint tempIndex;\n \tStringBuilder statesStr = new StringBuilder(\"States: { \");\n \tfor(ComplexState state: states)\n \t\tstatesStr.append(state.getName() + \", \");\n\t\ttempIndex = statesStr.lastIndexOf(\",\");\n \tif(tempIndex != -1)\n \t\tstatesStr.deleteCharAt(statesStr.lastIndexOf(\",\"));\n \tstatesStr.append(\"}\\n\");\n \tStringBuilder initStatesStr = new StringBuilder(\"Initial states: { \");\n \tfor(ComplexState state: initialStates)\n \t\tinitStatesStr.append(state.getName() + \", \");\n \ttempIndex = initStatesStr.lastIndexOf(\",\");\n \tif(tempIndex != -1)\n \t\tinitStatesStr.deleteCharAt(initStatesStr.lastIndexOf(\",\"));\n \tinitStatesStr.append(\"}\\n\");\n \tStringBuilder transitionFuncStr = new StringBuilder(\"Transition relation: { \");\n \tArrayList<ComplexState> destStates = new ArrayList<ComplexState>();\n \tfor(ComplexState srcState: states) \n \t{\n \t\tdestStates = transitionRelation.get(srcState);\n \t\tif(destStates != null)\n\t \t\tfor(ComplexState destState: destStates)\n\t \t\t\ttransitionFuncStr.append(\"( \" + srcState.getName() + \", \" + destState.getName() + \" ), \" );\t\n \t}\n \ttempIndex = transitionFuncStr.lastIndexOf(\",\");\n \tif(tempIndex != -1)\n \t\ttransitionFuncStr.deleteCharAt(transitionFuncStr.lastIndexOf(\",\"));\n \ttransitionFuncStr.append(\"}\\n\");\n \tStringBuilder labelingFuncStr = new StringBuilder(\"Labeling function: { \");\n \tArrayList<AtomicProp> atomicProps = new ArrayList<AtomicProp>();\n \tfor(ComplexState state: states) \n \t{\n \t\tlabelingFuncStr.append(\"( \" + state.getName() + \", { \");\n \t\tatomicProps = state.getLabels();\n \t\tif(atomicProps != null)\n \t\t\tfor(AtomicProp ap: state.getLabels())\n \t\t\t\tlabelingFuncStr.append(ap.getName() + \", \");\n \t\ttempIndex = labelingFuncStr.lastIndexOf(\",\");\n \tif(tempIndex != -1)\n \t\tlabelingFuncStr.deleteCharAt(labelingFuncStr.lastIndexOf(\",\"));\n \t\tlabelingFuncStr.append(\"} ), \");\n \t}\n \ttempIndex = labelingFuncStr.lastIndexOf(\",\");\n \tif(tempIndex != -1)\n \t\tlabelingFuncStr.deleteCharAt(labelingFuncStr.lastIndexOf(\",\"));\n \tlabelingFuncStr.append(\"}\\n\"); \t\n \tString result = statesStr.toString() + initStatesStr.toString() + transitionFuncStr.toString() + labelingFuncStr.toString() + \"Type: \" + type.toString();\n \treturn result;\n }", "public String getAtmState();", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public State getState(){return this.state;}", "Output getOutputs();", "public List getRelevantStateVariables () {\n return relevantStateVariables;\n }", "void printstate()\n\t{\n\t\toperation.printstate();\n\t}", "public void dumpState() {\n\t\tif (_Debug) {\n\t\t\tSystem.out.println(\" :: SeqConditionSet --> BEGIN - dumpState\");\n\n\t\t\tSystem.out.println(\" ::--> Set : \" + mCombination);\n\n\t\t\tif (mConditions != null) {\n\t\t\t\tSystem.out.println(\" ::--> [\" + mConditions.size() + \"]\");\n\t\t\t\tSystem.out.println(\" ::----------------::\");\n\n\t\t\t\tfor (int i = 0; i < mConditions.size(); i++) {\n\t\t\t\t\tSeqCondition cond = mConditions.get(i);\n\n\t\t\t\t\tcond.dumpState();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\" NULL\");\n\t\t\t\tSystem.out.println(\" ::----------------::\");\n\t\t\t}\n\n\t\t\tSystem.out.println(\" :: SeqConditionSet --> END - dumpState\");\n\t\t}\n\t}", "public int[][] getState(){\r\n return this.state;\r\n }", "java.util.List<java.lang.Integer> getStateValuesList();", "@AutoEscape\n\tpublic String getState();", "public String state() {\n return this.state;\n }", "public String state() {\n return this.state;\n }", "public int getState(){\n return state;\n }", "org.landxml.schema.landXML11.StateType.Enum getState();", "public HashMap<String, ArrayList<Tweet>> getStates() {\n return states;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }" ]
[ "0.65103406", "0.63771415", "0.63446903", "0.63029075", "0.626349", "0.62411493", "0.6155745", "0.6133104", "0.61260873", "0.61148244", "0.60730284", "0.6038631", "0.59931135", "0.59931135", "0.59931135", "0.5977737", "0.5965277", "0.5933096", "0.5916084", "0.58965635", "0.58778554", "0.58581144", "0.5855467", "0.5854944", "0.58479655", "0.5837956", "0.5810506", "0.579217", "0.5790249", "0.57842064", "0.57743114", "0.57734406", "0.57728213", "0.57664615", "0.5762687", "0.5761269", "0.5761269", "0.5761269", "0.5761269", "0.5761269", "0.5761269", "0.57572067", "0.57572067", "0.57465255", "0.57182646", "0.5709201", "0.5700658", "0.5696104", "0.56902707", "0.5685115", "0.56835747", "0.56835145", "0.56827015", "0.5680325", "0.56706125", "0.56706125", "0.56700855", "0.5662706", "0.5660673", "0.56536746", "0.5644211", "0.5638492", "0.56378835", "0.562371", "0.5622967", "0.5622967", "0.5622967", "0.5622967", "0.56212014", "0.5610056", "0.5609323", "0.55988926", "0.5596657", "0.5584378", "0.5583005", "0.55806476", "0.55760914", "0.55746263", "0.55733794", "0.5571325", "0.5571325", "0.5563774", "0.55552506", "0.5554982", "0.5554982", "0.5554982", "0.5554666", "0.5553593", "0.5552266", "0.5547773", "0.55475026", "0.55425364", "0.55390346", "0.5528215", "0.5525494", "0.5525494", "0.5522941", "0.55221754", "0.5519742", "0.5517238", "0.5517238" ]
0.0
-1
CONSOLIDATES A RULESET BY ADDING MISSING RULES, IN ORDER TO GET A "COMPLETE" RULESET, I.E. WITH A TOTAL PROB OF 1. THIS PROCESS TOOK A HUGE TIME, WITH A BIT OF OPTIMIZATION WE DRASTICALLY REDUCED THE EXECUTUION THE TIME NEEDED
public int consolidate (RuleList closedList, RuleMap rMap) { int steps = 0; boolean insert; // IF THE RULESET IS ALREADY COMPLETE, NO NEED TO FIND RULES if (this.totalProb < 0.999) { //System.out.println("Incomplete RuleSet : " ); this.printRules(); for (int l = 0 ; l < this.references.size(); l++) { RuleList r = closedList.getRuleByID(this.references.get(l)).getSameRuleSetRules(sList, closedList, rMap); for (int i = 0; i < r.size(); i++) { insert = true; // CHECK FOR MATCHES for (int h = 0; h < this.references.size(); h++) { if ( r.getRule(i).ruleMatch_exact(closedList.getRuleByID(this.references.get(h)))) { insert = false; } } if (insert) { r.getRule(i).prec_occurrencies = closedList.getRuleByID(this.references.get(0)).prec_occurrencies; closedList.addRule(r.getRule(i)); this.references.add(r.getRule(i).id); this.totalProb = this.totalProb + r.getRule(i).getProb(); this.totalProb = Math.round(this.totalProb * 1000); this.totalProb = this.totalProb/1000; steps++; } } } } return steps; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "public void pruneRules_greedy() {\n LOGGER.info(\"STARTED Postpruning\");\n AttributeValue defClass = getDefaultRuleClass();\n int defError = getDefaultRuleError(defClass);\n boolean removeTail=false;\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"#Rule {0}\", rule.toString());\n }\n \n if (removeTail)\n {\n it.remove();\n }\n else if (rule.getAntecedentLength() == 0) {\n it.remove();\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n it.remove();\n }\n else\n {\n int supportingTransactions = rule.removeTransactionsCoveredByAntecedent(true);\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n if (defError<=newDefError)\n {\n //adding the current rule did not decrease the errors compared to a default rule\n it.remove();\n removeTail=true;\n }\n else{\n LOGGER.log(Level.FINE, \"{0} transactions, RULE {1} KEPT\", new Object[]{supportingTransactions, rule.getRID()});\n defClass = newDefClass;\n defError = newDefError;\n } \n }\n \n \n\n\n }\n LOGGER.fine(\"Creating new Extend rule within narrow rule procedure\");\n extendedRules.add(createNewDefaultRule(defClass));\n LOGGER.info(\"FINISHED Postpruning\");\n }", "public static List<ExtendRule> removeRedundantExtendedRules_transactionBased(List<ExtendRule> rules) {\n LOGGER.info(\"STARTED removeRedundantExtendedRules - transaction based\");\n LOGGER.info(\"Rules on start:\" + rules.size());\n ExtendRule defRule = rules.get(rules.size()-1);\n if (defRule.getAntecedent().getItems().size()>0)\n {\n LOGGER.warning(\"Default rule is not last rule. Returning null. Last rule:\" + defRule.toString() );\n \n return null;\n }\n Consequent defClass = defRule.getConsequent(); \n for (Iterator<ExtendRule> it = rules.iterator(); it.hasNext();) { \n ExtendRule PRCandidate = it.next();\n // PRCandidate = go through all rules with default class in the consequent\n if (!PRCandidate.getConsequent().toString().equals(defClass.toString()))\n {\n\n }\n // skip default rule\n else if (PRCandidate.equals(defRule))\n {\n \n } \n else{\n Set<Transaction> suppTran = PRCandidate.getAntecedent().getSupportingTransactions();\n // get transactions only CORRECTLY classified by the candidate rule\n Set<Transaction> consTran = PRCandidate.getConsequent().getSupportingTransactions();\n suppTran.retainAll(consTran);\n\n // Check if transactions correctly classified by pruning candidate intersect with transactions covered by those rules below prunCand in the rule list that assign to different than default class. If there are no such transactions PRCandidate can be removed\n boolean nonEmptyIntersection=false;\n boolean positionBelowPRCand = false;\n for (Iterator<ExtendRule> innerIt = rules.iterator(); innerIt.hasNext();) {\n ExtendRule candidateClash = innerIt.next();\n // candidateClash is PRCandidate, which would always evaluate to overlap!\n if (candidateClash.equals(PRCandidate))\n {\n positionBelowPRCand = true;\n continue;\n }\n if (!positionBelowPRCand) continue;\n // candidateClash = go through all rules with OTHER than default class in consequent \n if (candidateClash.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n\n // check if transactions covered by PRCandidate intersect with transactions covered by candidateClash \n\n for (Transaction t : candidateClash.getAntecedent().getSupportingTransactions())\n {\n\n if (suppTran.contains(t))\n {\n nonEmptyIntersection=true;\n }\n break;\n } \n if (nonEmptyIntersection)\n {\n //go to next PRCandidate \n break;\n } \n }\n if (nonEmptyIntersection == false)\n {\n //no other rule with different consequent covering at least one shared transaction was found\n //this rule can be removed\n LOGGER.fine(\"Removing rule:\" + PRCandidate.toString());\n it.remove();\n } \n }\n \n }\n LOGGER.info(\"Rules on finish:\" + rules.size());\n LOGGER.info(\"FINISHED removeRedundantExtendedRules - transaction based\");\n return rules;\n }", "private void applyTheRule() throws Exception {\n System.out.println();\n System.out.println();\n System.out.println();\n System.out.println(\"IM APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n System.out.println();\n if (parameter.rule.equals(\"1\")) {\n Rule1.apply(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"2\")) {\n Rule2.apply(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"3\")) {\n Rule3.all(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"3a\")) {\n Rule3.a(resultingModel);\n\n }\n\n if (parameter.rule.equals(\"3b\")) {\n Rule3.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"3c\")) {\n Rule3.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"4\")) {\n Rule4.all(resultingModel);\n }\n\n if (parameter.rule.equals(\"4a\")) {\n Rule4.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"4b\")) {\n Rule4.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"4c\")) {\n Rule4.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"r1\")) {\n Reverse1.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r2\")) {\n Reverse2.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r3\")) {\n Reverse3.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r3a\")) {\n Reverse3.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"r3b\")) {\n Reverse3.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"r3c\")) {\n Reverse3.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4\")) {\n Reverse4.all(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4a\")) {\n Reverse4.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4b\")) {\n Reverse4.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4c\")) {\n Reverse4.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"5\")){\n Rule5.apply(resultingModel);\n }\n\n System.out.println(\"IM DONE APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n\n this.resultingModel.addRule(parameter);\n //System.out.println(this.resultingModel.name);\n this.resultingModel.addOutputInPath();\n }", "private void generateRules(TreeNode tn)\n{\n if (!tn.isLeaf()) {\n generateRules(tn.getPassTree());\n generateRules(tn.getFailTree());\n return;\n }\n RuleInstance ri = tn.getRules().get(0);\n if (ri.getBaseRule() != null) return;\t// rule already in set\n\n Condition c = tn.getCondition();\n List<UpodCondition> cset = new ArrayList<UpodCondition>();\n if (c != null) {\n UpodCondition cond = c.getConditionTest(for_program);\n if (cond != null) cset.add(cond);\n }\n for (TreeNode pn = tn.getParent(); pn != null; pn = pn.getParent()) {\n Condition pc = pn.getCondition();\n if (pc == null) continue;\n UpodCondition pcond = pc.getConditionTest(for_program);\n if (pcond != null) cset.add(pcond);\n }\n\n UpodCondition rcond = null;\n if (cset.isEmpty()) return;\n if (cset.size() == 1) rcond = cset.get(0);\n else {\n UpodCondition [] conds = new UpodCondition[cset.size()];\n conds = cset.toArray(conds);\n rcond = new BasisConditionLogical.And(conds);\n }\n List<UpodAction> racts = ri.getActions();\n if (rcond == null || racts == null) return;\n\n BasisRule rule = new BasisRule(rcond,racts,null,100);\n for_program.addRule(rule);\n}", "public void deduceRules()\n{\n List<RuleInstance> allrules = loadRules();\n\n List<UpodRule> rules = new ArrayList<UpodRule>();\n for (UpodRule ur : for_program.getRules()) {\n if (ur.isExplicit()) {\n\t rules.add(ur);\n\t RuleInstance ri = new RuleInstance(ur,from_world.getUniverse());\n\t allrules.add(ri);\n }\n }\n\n Set<Condition> allconds = getConditions(allrules);\n\n tree_root = new TreeNode(allrules,null);\n\n expandTree(tree_root,allconds);\n\n generateRules(tree_root);\n}", "public RuleSet (RuleSet RS1, RuleSet RS2, SensorList sList, SensorMap sMap, RuleMap rMap) {\n \n // CREATING COMBINATION RULESET FROM RS1 & RS2\n \n this.references = new ArrayList();\n this.sList = sList;\n this.rulelist = RS1.rulelist;\n this.totalProb = 0.0;\n this.id = counter.incrementAndGet();\n this.precedences = new ArrayList ();\n Sensor precondition = RS1.getPrecursorWithID().merge(RS2.getPrecursorWithID());\n\n \n ArrayList <Integer> common_non_wildcarded_indexes = RS1.getSuccessor().detectCommonNonWilcardedIndexes(RS2.getSuccessor());\n\n Sensor root = new Sensor(RS1.getPrecursorWithID().tokenMap);\n \n int number = common_non_wildcarded_indexes.size();\n \n boolean insert;\n \n // THERE IS A CONFLICT ONLY IF SOME COMMON NON WILDCARDED INDEXES EXIST\n if (number >= 1) {\n SensorList conflicted_indexes_list = root.expand(common_non_wildcarded_indexes.get(0));\n \n if (number >= 2) { \n \n // Expanding the conflicted indexes in ArrayList\n for (int h = 2; h<=number; h++) {\n \n conflicted_indexes_list.expandListAt(common_non_wildcarded_indexes.get(h-1));\n }\n }\n \n for (int j = 0; j < conflicted_indexes_list.size(); j++) {\n \n // We only need to insert the Rules with postcondition corresponding to either RS1 or RS2\n //\n // So we check for post. matches in the first and then second RuleSet\n insert = false;\n\n // SEARCHING FOR MATCH IN FIRST RULESET\n for (int h1 = 0; h1 < RS1.size(); h1++) {\n ///\n if (RS1.getSuccessor(h1).sensorMatch(conflicted_indexes_list.getSensor(j+1))) {\n insert = true;\n \n break;\n }\n }\n \n // SEARCHING FOR MATCH IN SECOND RULESET\n if (!insert) {\n \n for (int h2 = 0; h2 < RS2.size(); h2++) {\n \n \n if (RS2.getSuccessor(h2).sensorMatch(conflicted_indexes_list.getSensor(j+1))) {\n insert = true;\n \n break;\n }\n \n\n }\n }\n \n // If the Rule postcondition was found in RS1 or RS2, we shall create it\n if (insert) {\n \n Rule rule = new Rule(precondition, conflicted_indexes_list.getSensor(j+1));\n \n rule.ruleset_id = this.id;\n \n int aa = sMap.getMatchingOccurencies(precondition);\n \n int tt = rMap.getMatchingOccurencies(rule);\n \n \n rule.prec_occurrencies = aa;\n rule.occurrencies = tt;\n \n this.rulelist.addRule(rule);\n this.add(rule);\n \n }\n \n }\n \n }\n \n \n // UPDATING RULESET PROBABILITY\n if (this.size() > 0) {\n for (int i = 0; i < this.size(); i++) {\n\n totalProb = totalProb + this.getRule(i).getProb();\n totalProb = Math.round(totalProb * 1000);\n totalProb = totalProb/1000;\n \n }\n }\n \n }", "public static List<ExtendRule> removeRedundantExtendedRules_rangeBased(List<ExtendRule> rules) {\n LOGGER.info(\"STARTED removeRedundantExtendedRules - range based\");\n LOGGER.info(\"Rules on start:\" + rules.size());\n ExtendRule defRule = rules.get(rules.size()-1);\n Consequent defClass = defRule.getConsequent(); \n for (Iterator<ExtendRule> it = rules.iterator(); it.hasNext();) { \n ExtendRule PRCandidate = it.next();\n // PRCandidate = go through all rules with default class in the consequent\n if (!PRCandidate.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n // skip default rule\n if (PRCandidate.equals(defRule))\n {\n continue;\n } \n ArrayList<RuleMultiItem> PR_items = PRCandidate.getAntecedent().getItems();\n //create hashmap for fast access\n HashMap<Attribute,RuleMultiItem> PR_itemsMap = new HashMap();\n for (RuleMultiItem rmi : PR_items)\n {\n PR_itemsMap.put(rmi.getAttribute(), rmi);\n }\n \n // check if there is no other rule classifying to different class that shares part of the region\n // matched by the antecedent of PRCandidate \n boolean clashingRuleFound=false;\n boolean positionBelowPRCand = false;\n for (Iterator<ExtendRule> innerIt = rules.iterator(); innerIt.hasNext();) {\n ExtendRule candidateClash = innerIt.next();\n // candidateClash is PRCandidate, which would always evaluate to overlap!\n\n if (candidateClash.equals(PRCandidate))\n {\n positionBelowPRCand=true;\n continue;\n }\n // candidateClash = go through all rules with OTHER than default class in consequent \n if (candidateClash.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n if (!positionBelowPRCand) continue;\n \n // check if at leat one literal in PRCandidate has empty intersection with Clash on shared attribute\n \n //in case there is no shared attribute, the intersection is non empty\n ArrayList<RuleMultiItem> literalsInClashOnSharedAtt = new ArrayList();\n for (RuleMultiItem clash_rmi : candidateClash.getAntecedent().getItems())\n {\n if (PR_itemsMap.containsKey(clash_rmi.getAttribute()))\n {\n literalsInClashOnSharedAtt.add(clash_rmi);\n }\n } \n if (literalsInClashOnSharedAtt.isEmpty())\n {\n clashingRuleFound =true;\n break;\n }\n // if there is NO intersection on at leat one of the shared attributes => no CLASH\n // ELSE => CLASH\n boolean attLeastOneAttDisjunct=true;\n for (RuleMultiItem clash_rmi : literalsInClashOnSharedAtt)\n {\n //PRCandidate has a literal created over the same attribute\n RuleMultiItem machingPR_RMI = PR_itemsMap.get(clash_rmi.getAttribute());\n\n //do values in the candidate clash intersect with values in PRCandidate?\n \n for (AttributeValue v : machingPR_RMI.getAttributeValues())\n {\n if (clash_rmi.getAttributeValues().contains(v))\n {\n attLeastOneAttDisjunct=false;\n }\n }\n if (attLeastOneAttDisjunct) // if we have non-empty intersection on one att we do not have to test the other ones, rule matches different part of the data space\n {\n //go to next PRCandidate \n break;\n } \n } \n if (!attLeastOneAttDisjunct)\n {\n //go to next PRCandidate \n clashingRuleFound=true;\n break;\n } \n }\n if (clashingRuleFound == false)\n {\n //no other rule with different consequent covering at least one shared value was found\n //this rule can be removed\n LOGGER.fine(\"Removing rule:\" + PRCandidate.toString());\n it.remove();\n } \n }\n LOGGER.info(\"Rules on finish:\" + rules.size());\n LOGGER.info(\"FINISHED removeRedundantExtendedRules - range based\");\n return rules;\n }", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "private void filterAllRuleSetsForConfAndLift()\n\t{\n\t\truleCollection.forEach(lastRules->{\n\t\t\t\n\t\t\tif(!ListHelper.isNullOrEmpty(lastRules))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Current Filter Rule Size:\"+lastRules.get(0).getRuleSize());\n\t\t\t}\n\t\t\t\n\t\t\tIterator<RuleCompartment<T>> iter = lastRules.iterator();\n\t\t\t\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tRuleCompartment<T> eachRule = iter.next();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint ruleLength = eachRule.getRuleSize();\n\t\t\t\t\t\t\t\n\t\t\t\tif(ruleLength<config.getMinRuleLength())\n\t\t\t\t{\n\t\t\t\t\titer.remove();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble conf = eachRule.calculateConfidence(storage, evaluation);\n\t\t\t\t\n\t\t\t\tif(conf < config.minConf())\n\t\t\t\t{\n\t\t\t\t\titer.remove();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif(config.minLift()>0)\n\t\t\t\t{\n\t\t\t\t\tdouble lift = eachRule.calculateLift(storage, evaluation);\n\t\t\t\t\t\n\t\t\t\t\tif(lift < config.minLift())\n\t\t\t\t\t{\n\t\t\t\t\t\titer.remove();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void test_ck_03() {\n // part A - surprising reification\n OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null);\n OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null);\n \n Individual sub = model1.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n OntProperty pred = model1.createOntProperty(\"http://mytest#\");\n Individual obj = model1.createIndividual(\"http://mytest#i2\", model1.getProfile().CLASS());\n OntProperty probabilityP = model1.createOntProperty(\"http://mytest#prob\");\n \n Statement st = model1.createStatement(sub, pred, obj);\n model1.add(st);\n st.createReifiedStatement().addProperty(probabilityP, 0.9);\n assertTrue(\"st should be reified\", st.isReified());\n \n Statement st2 = model2.createStatement(sub, pred, obj);\n model2.add(st2);\n st2.createReifiedStatement().addProperty(probabilityP, 0.3);\n assertTrue(\"st2 should be reified\", st2.isReified());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP).addProperty(probabilityP, 0.3); //!!!\n // exception\n \n // Part B - exception in remove All\n Individual sub2 = model2.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP); //!!! exception\n \n sub2.addProperty(probabilityP, 0.3);\n sub2.removeAll(probabilityP); //!!! exception\n \n }", "@Test\r\n\tpublic void testRuleSets2() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0L, testAdminCon.size());\r\n\t\ttestAdminCon.add(micah, lname, micahlname, dirgraph1);\r\n\t\ttestAdminCon.add(micah, fname, micahfname, dirgraph1);\r\n\t\ttestAdminCon.add(micah, developPrototypeOf, semantics, dirgraph1);\r\n\t\ttestAdminCon.add(micah, type, sEngineer, dirgraph1);\r\n\t\ttestAdminCon.add(micah, worksFor, ml, dirgraph1);\r\n\t\t\r\n\t\ttestAdminCon.add(john, fname, johnfname,dirgraph);\r\n\t\ttestAdminCon.add(john, lname, johnlname,dirgraph);\r\n\t\ttestAdminCon.add(john, writeFuncSpecOf, inference, dirgraph);\r\n\t\ttestAdminCon.add(john, type, lEngineer, dirgraph);\r\n\t\ttestAdminCon.add(john, worksFor, ml, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(writeFuncSpecOf, subProperty, design, dirgraph1);\r\n\t\ttestAdminCon.add(developPrototypeOf, subProperty, design, dirgraph1);\r\n\t\ttestAdminCon.add(design, subProperty, develop, dirgraph1);\r\n\t\t\r\n\t\ttestAdminCon.add(lEngineer, subClass, engineer, dirgraph1);\r\n\t\ttestAdminCon.add(sEngineer, subClass, engineer, dirgraph1);\r\n\t\ttestAdminCon.add(engineer, subClass, employee, dirgraph1);\r\n\t\t\r\n\t\tString query = \"select (count (?s) as ?totalcount) where {?s ?p ?o .} \";\r\n\t\tTupleQuery tupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS_PLUS_FULL);\r\n\t\tTupleQueryResult result\t= tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(374, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\r\n\t\tRepositoryResult<Statement> resultg = testAdminCon.getStatements(null, null, null, true, dirgraph, dirgraph1);\r\n\t\t\r\n\t\tassertNotNull(\"Iterator should not be null\", resultg);\r\n\t\tassertTrue(\"Iterator should not be empty\", resultg.hasNext());\r\n\t\t\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.EQUIVALENT_CLASS);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(18, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS,SPARQLRuleset.INVERSE_OF);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(86, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(null,SPARQLRuleset.INVERSE_OF);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(18, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets((SPARQLRuleset)null, null);\r\n\t\ttupleQuery.setIncludeInferred(false);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(16, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t}", "private void applyRules () throws DataNormalizationException {\n\t\tapplyRules(null);\n\t}", "private Collection<Rule> getRelevantRules(List<Expr> goals, Collection<Expr> edbList, Collection<Rule> idbList) {\n Set<Rule> relevant = new HashSet<Rule>();\n goals = new LinkedList<Expr>(goals);\n while (!goals.isEmpty()) {\n Expr expr = goals.remove(0);\n for (Rule rule : idbList) {\n if (rule.head.predicate.equals(expr.predicate) && !relevant.contains(rule)) {\n relevant.add(rule);\n goals.addAll(rule.body);\n }\n }\n }\n return relevant;\n }", "private void fillDistinctRules(){\n\tint totRules =0;\n\tfor(int i=1;i<ConditionTree.length;i++){\n\t\tif((!ConditionTree[i][1].equals(ConditionTree[i-1][1])) && ConditionTree[i][4].equals(\"String\")){\n\t\t\ttotRules++;\n\t\t}\n\t}\n\n\tdistinctRules = new String[totRules][2];\n\n\t//filling distinct rules array first column i-e rules names only\n\tint disRulIndex = 0;\n\tfor(int i=1;i<ConditionTree.length;i++){\n\t\tif((!ConditionTree[i][1].equals(ConditionTree[i-1][1])) && ConditionTree[i][4].equals(\"String\")){\n\t\t\tdistinctRules[disRulIndex][0] = ConditionTree[i][1];\n\t\t\tdisRulIndex++;\n\t\t}\n\t}\n\t\n\t\n\t\n\tfor(int a=0;a<distinctRules.length;a++){\n\t\tdistinctRules[a][1] = \"\";\n\t\tfor(int i=0;i<ConditionTree.length;i++){\n\t\t\tif(distinctRules[a][0].equals(ConditionTree[i][1])){\n\t\t\t\tdistinctRules[a][1] += ConditionTree[i][3] + \",\";\n\t\t\t}\n\t\t}\n\t\t//removing the last comma\n\t\tdistinctRules[a][1] = distinctRules[a][1].substring(0, distinctRules[a][1].length()-1);\n//\t\tSystem.out.println(distinctRules[a][0] + \" : \" + distinctRules[a][1]);\n\t}\n}", "@Override\n\tprotected boolean rulesGeneration() {\n\t\tGlobal.logger.finer(\"--------------------- S101 rulesGeneration() ----------------- \");\n\t\t//Global.logger.finer(this.toString());\t\t\n\t\tif(activationGuards()){\n\t\t\ttry {\n\t\t\t\tthis.categories.beforeFirst();\n\t\t\t\t\n\t\t\t\twhile (!this.categories.isClosed() && this.categories.next()) {\n\t\t\t\t\tgroupName = this.categories.getString(\"name\");\n\t\t\t\t\tGlobal.logger.fine(\"Creating new S102 [\" + groupName + \", \" + 1 +\"] \");\n\t\t\t\t\tcreateRule(new S102(course_ID, groupName, 1));\n\t\t\t\t\t\n\t\t\t\t\tGlobal.logger.fine(\"Creating new S103 [\" + groupName + \", study ]\");\n\t\t\t\t\tcreateRule(new S103(course_ID, groupName, \"study\"));\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse \n\t\t\treturn false;\n\t\treturn true;\n\t}", "@Test\n void testGrammarBasics() {\n Production<NT, T> prod1 = new Production<>(NT.A, List.of(\n left(NT.B), right(T.E)\n ));\n\n Production<NT, T> prod2 = new Production<>(NT.B, List.of(\n right(T.F)\n ));\n\n Production<NT, T> prod3 = prod1.withSource(NT.C).withRule(List.of(\n left(NT.B), right(T.F), left(NT.C), left(NT.A)\n ));\n\n assertThrows(IllegalArgumentException.class, () -> new CFGrammar<>(NT.C, List.of(prod1, prod2)));\n assertThrows(IllegalArgumentException.class, () -> new CFGrammar<>(NT.C, List.of(prod3, prod2)));\n\n Production<NT, T> prod4 = new Production<>(NT.A, List.of(\n left(NT.B), right(T.E)\n ));\n\n Production<NT, T> prod5 = new Production<>(NT.B, List.of(\n left(NT.A), right(T.E)\n ));\n\n assertThrows(IllegalArgumentException.class, () -> new CFGrammar<>(NT.A, List.of(prod4)));\n\n CFGrammar<NT, T, Production<NT, T>> g = new CFGrammar<>(NT.A, List.of(prod4, prod5));\n assertEquals(HashSet.of(NT.B, NT.A), g.getNonTerminalsUsed());\n assertEquals(HashSet.of(T.E), g.getTerminalsUsed());\n }", "public void testUnfoldingWithNoRulesForResolutions() {\n\t\tDatalogProgram p = fac.getDatalogProgram();\n\t\tFunction body = fac.getFunction(fac.getPredicate(\"T1\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tFunction head = fac.getFunction(fac.getPredicate(\"A\", 1), fac.getVariable(\"x\"));\n\t\tCQIE rule2 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule2);\n\n\t\tDatalogProgram query = fac.getDatalogProgram();\n\t\t// main rule q(x,y) :- LJ(A(x), R(x,y))\n\t\tFunction a = fac.getFunction(fac.getClassPredicate(\"A\"), fac.getVariable(\"x\"));\n\t\tFunction R = fac.getFunction(fac.getObjectPropertyPredicate(\"R\"), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tFunction lj = fac.getSPARQLLeftJoin(a, R);\n\t\thead = fac.getFunction(fac.getPredicate(\"q\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tCQIE rule1 = fac.getCQIE(head, lj);\n\t\tquery.appendRule(rule1);\n\n\t\tDatalogUnfolder unfolder = new DatalogUnfolder(p.getRules());\n\t\tDatalogProgram result = unfolder.unfold(query, \"q\");\n\n\t\t// Only one rule should be returned where y is null\n\t\tSystem.out.println(result);\n\t\tassertEquals(1, result.getRules().size());\n\t\tassertTrue(result.getRules().toString().contains(\"null\"));\n\t\tassertTrue(result.getRules().toString().contains(\"T1(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"A(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"R(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\tassertTrue(result.getRules().get(0).getBody().size() == 1);\n\n\t}", "NFRuleSet getDefaultRuleSet()\n/* */ {\n/* 1381 */ return this.defaultRuleSet;\n/* */ }", "public void analize() {\n\t\t//clearing dropping rules\n\t\tthis.droppingRules.clear();\n\t\t//analysing new rules\n\t\tanalizeParts();\n\t}", "public String newRuleFirstCondition(Situation threeSituationsAgo)\n {\n String firstPredicate;\n //---------------\n firstPredicate = \"ninguno\";\n\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4) &&\n (threeSituationsAgo.puzzle[1][0] == 5) &&\n (threeSituationsAgo.puzzle[1][1] == 6) &&\n (threeSituationsAgo.puzzle[1][2] == 7) &&\n (threeSituationsAgo.puzzle[1][3] == 8) &&\n (threeSituationsAgo.puzzle[2][0] == 9) &&\n (threeSituationsAgo.puzzle[3][0] == 13)\n )\n {\n firstPredicate = \"dosLineasYColumna\";\n }//end if\n else\n {\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4) &&\n (threeSituationsAgo.puzzle[1][0] == 5) &&\n (threeSituationsAgo.puzzle[1][1] == 6) &&\n (threeSituationsAgo.puzzle[1][2] == 7) &&\n (threeSituationsAgo.puzzle[1][3] == 8)\n )\n {\n firstPredicate = \"dosLineasListas\";\n }//end if\n else\n {\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4)\n )\n {\n firstPredicate = \"primeraLineaLista\";\n }//end if\n }//end else\n }//end else\n\n return firstPredicate;\n }", "public List<Configuration> solve(){\n int group = 0;\n for(List<Configuration> set : input){\n minimize(set);\n\n for(Configuration root : set) {\n root.setGroup(group);\n }\n group++;\n\n }\n\n // Step 2: Preprocess\n sortBySize(input);\n\n // Step 5: Initialize set of partial solutions\n List<Configuration> partialSolutions;\n if(input.size()==0){\n return null;\n }\n else {\n partialSolutions = input.get(0);\n input.remove(partialSolutions);\n }\n\n // Step 6: The compositional computations\n for(List<Configuration> set : input) {\n filter(partialSolutions, setCutoff);\n filter(set, setCutoff);\n partialSolutions = combine(partialSolutions, set, constraints);\n }\n\n // Step 7: Postprocessing\n //greedyPostProcessing(partialSolutions);\n\n return partialSolutions;\n }", "public Vector<Rule> StemBase(){\r\n\t\t//Vector <Rule> rule=new Vector <Rule>();\r\n\t\tConceptLattice cp=new ConceptLattice(context);\r\n\t\tApproximationSimple ap=new ApproximationSimple(cp);\r\n\r\n\t\tBasicSet A=new BasicSet();\r\n\t\tBasicSet cnt=new BasicSet();\r\n\t\tBasicSet b=new BasicSet();\r\n\t\tcnt.addAll(context.getAttributes());\r\n\t\twhile(!A.equals(cnt)){\r\n\r\n\t\t\tif(A.isEmpty()){\r\n\t\t\t\tb =ap.CalculYsecondeNull(A, context);\r\n\t\t\t}else{\r\n\t\t\t\tb=ap.CalculYseconde(A, context);\r\n\t\t\t}\r\n\t\t\tif(!A.equals(b)){\r\n\t\t\t\tBasicSet diff=b.difference(A);\r\n\t\t\t\tBasicSet ant=(BasicSet) A.clone();\r\n\t\t\t\tdouble lift = 1;\r\n\t\t\t\tdouble confidence = 1;\r\n\t\t\t\tRule r=new Rule(ant,diff,context.support(ant.clone().union(diff)), confidence, lift );\r\n\t\t\t\t//int i=0;\r\n\t\t\t\tgetImp().add( r);\t\t\t\t\r\n\t\t\t}\r\n\t\t\tA=this.NextLClosure(cnt, A);\r\n\t\t}\r\n\r\n\t\treturn getImp();\r\n\r\n\t}", "@Override\n\tpublic List<DiagnosisCoreRule> generateRules(List<DiagnosisCoreResult> allDataList) {\n\t\treturn null;\n\t}", "private void applyBestRepairPlan(){\n\t\t\n\t\tSet<OWLAxiom> best_repair=null;\n\t\t\t\t\n\t\tdouble min_conf = 10000;\n\t\tdouble conf;\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(false);//used in confidence\n\t\t\n\t\tfor (Set<OWLAxiom> repair : repair_plans){\n\t\t\t\n\t\t\tconf = getConfidence4Plan(repair);\n\t\t\t\n\t\t\tif (min_conf > conf){\n\t\t\t\tmin_conf = conf;\n\t\t\t\tbest_repair = repair;\n\t\t\t}\n\t\t}\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(true);\n\t\t\n\t\tfor (OWLAxiom ax : best_repair){\t\t\t\n\t\t\tax.accept(mappingVisitor);\n\t\t\t//It also deletes axiom from structures\n\t\t\t//TODO add to conflicts\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}", "private static FlatLexerRule flattenLexerRule(Rule rule, Map<String, Rule> rules) {\n // Because some rules were resolved as a dependency of another rule,\n // it might happen that it is already flattened.\n if (rule instanceof FlatLexerRule) {\n return (FlatLexerRule) rule;\n }\n\n if (rule instanceof UnresolvedLexerRule) {\n throw new IngridParserException(\n \"Rule '\" + rule.name + \"' must be resolved before flattening\");\n }\n\n LexerRule lexerRule = (LexerRule) rule;\n\n // If we have only one element, we might be looking at a literal rule..\n // We count all elements of all alternatives:\n if (lexerRule.alternatives.size() == 1 && lexerRule.alternatives.get(0).size() == 1) {\n Rule only = lexerRule.alternatives.get(0).get(0);\n if (only instanceof LiteralRule) {\n return new LiteralRule(rule.name, ((LiteralRule) only).value);\n }\n }\n\n // We can construct one big regex out of sub rules\n List<List<String>> regexs = new ArrayList<>();\n\n // Gather all sub rule contents (or resolve them, if wasn't resolved before)\n for (List<Rule> alternative : lexerRule.alternatives) {\n List<String> subRegex = new ArrayList<>();\n\n for (Rule element : alternative) {\n // Is each sub element already resolved?\n if (!(element instanceof FlatLexerRule)) {\n if (element instanceof QuantifierRule) {\n int lastIndex = subRegex.size() - 1;\n\n if (lastIndex < 0) {\n throw new IngridParserException(\"Quantifier suffix found with no prefix regex\");\n }\n\n // If more characters, we might need braces\n // There are cases where we might not, such as [A-Z] or (foo), so might be improved a little\n // It's tricky though, because of cases such as [A-Z][a-z], so simple heuristics is not enough\n String prevRegex = subRegex.get(lastIndex);\n if (prevRegex.length() > 1) {\n prevRegex = '(' + prevRegex + ')';\n }\n\n // We append it to the previous rule\n String quantifier = ((QuantifierRule) element).quantity.toString();\n\n subRegex.set(lastIndex, prevRegex + quantifier);\n\n } else if(element instanceof BlockStartRule) {\n subRegex.add(\"(\");\n } else if(element instanceof BlockEndRule) {\n subRegex.add(\")\");\n } else if(element instanceof BlockAltRule) {\n subRegex.add(\"|\");\n } else if (element instanceof UnresolvedLexerRule) {\n if (!rules.containsKey(element.name)) {\n throw new UnresolvableRuleException(\"Failed to resolve lexer rule '\" + element.name + \"'\");\n }\n\n try {\n FlatLexerRule flatRule = flattenLexerRule(rules.get(element.name), rules);\n rules.put(element.name, flatRule);\n subRegex.add(flatRule.getContent());\n } catch (StackOverflowError t) {\n throw new IngridParserException(\n \"Lexer rule '\" + rule.name + \"' or some of its subrules is recursive! \" +\n \"Ingrid cannot handle cyclic rules :(\");\n }\n } else {\n throw new IngridParserException(\n \"Rule '\" + element.name + \"' (\" + element.getClass().getSimpleName() + \") failed to be flattened\");\n }\n } else {\n // We need to escape literal rule\n // e.g. <?xml to <\\?xml\n String regex;\n if (element instanceof LiteralRule) {\n regex = escapeLiteral((LiteralRule) element);\n } else {\n regex = ((FlatLexerRule) element).getContent();\n }\n\n subRegex.add(regex);\n }\n }\n\n regexs.add(subRegex);\n }\n\n // Build regex from gathered strings\n return new RegexRule(rule.name, buildLexerRegex(regexs));\n }", "RequireExprsRule createRequireExprsRule();", "public interface ValidatingRule extends NormalisationRule\n{\n /**\n * Performs validation for the given stage by validating the input object using the criteria\n * defined for this rule.\n * \n * @param stage\n * A URI denoting the stage to use. This stage must be a valid stage for this type of\n * rule based on the result of validForStage(stage)\n * @param input\n * The input object to be validated by this rule.\n * @return True if the validation succeeded, or false otherwise.\n * @throws InvalidStageException\n * If the given stage was not valid.\n * @throws ValidationFailedException\n * If the validation failed.\n * @throws QueryAllException\n * If the validation process did not complete.\n */\n boolean normaliseByStage(URI stage, Object input) throws InvalidStageException, ValidationFailedException,\n QueryAllException;\n \n /**\n * Validates the given input object in the stage after query creation, but before query parsing.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterQueryCreation(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after query parsing, but before query\n * submission to the provider.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterQueryParsing(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after the RDF results have been imported from\n * the results for a provider, but before they have been merged into a pool with results from\n * other providers.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterResultsImport(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after the combined RDF statements in the pool\n * have been serialised to the results document.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterResultsToDocument(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after the RDF results have been merged into a\n * pool of RDF statements, but before they have been serialised to the results document.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageAfterResultsToPool(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage after results have been returned from a\n * provider, but before they have been parsed into RDF statements.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageBeforeResultsImport(Object input) throws ValidationFailedException;\n \n /**\n * Validates the given input object in the stage where query variables are being normalised\n * based on the context of the provider.\n * \n * @param input\n * The input object to be validated.\n * @return True if the input object was valid and false otherwise.\n * @throws ValidationFailedException\n * If the validation failed.\n */\n boolean stageQueryVariables(Object input) throws ValidationFailedException;\n}", "public AccrualRule(){}", "public void removeAllRuleRef();", "@Test\n public void verifyAllRules() throws EdgeRuleNotFoundException {\n for (SchemaVersion v : schemaVersions.getVersions()) {\n Multimap<String, EdgeRule> all = edgeIngestor.getAllRules(schemaVersions.getDefaultVersion());\n\n // this part verifies the default properties\n // 1) can have only at most 1 containment edge between same node type pair\n // 2) if there is at least 1 cousin edge, there must be exactly 1 cousin edge with default=true\n for (String key : all.keySet()) {\n\n Collection<EdgeRule> edgeRuleCollection = all.get(key);\n\n boolean foundContainment = false; // can have at most 1 containment rel btwn same pair of node types\n boolean foundCousin = false;\n boolean cousinDefault = false; // if there is a cousin edge there must be at least 1 default cousin\n // defined\n Set<String> labels = new HashSet<>(); // all edges between the same pair must have different labels\n int cousinCount = 0;\n\n for (EdgeRule rule : edgeRuleCollection) {\n EdgeRule match = rule;\n // check containment\n if (!(\"NONE\".equals(match.getContains()))) {\n if (foundContainment) {\n fail(\"more than one containment edge defined for \" + v.toString() + \" \" + key);\n } else {\n foundContainment = true;\n }\n } else { // check cousin stuff\n foundCousin = true;\n cousinCount++;\n if (match.isDefault()) {\n if (!cousinDefault) {\n cousinDefault = true;\n } else {\n fail(\"more than one cousin edge defined as default for \" + v.toString() + \" \" + key);\n }\n }\n }\n\n // check labels\n String label = match.getLabel();\n if (labels.contains(label)) {\n fail(\"same label found for multiple edges for \" + v.toString() + \" \" + key);\n } else {\n labels.add(label);\n }\n }\n if (foundCousin && !cousinDefault && cousinCount > 1) {\n fail(\"there is at least one cousin edge but none are designated the default for \" + v.toString()\n + \" \" + key);\n }\n }\n }\n }", "@Override\n\tpublic void deleteRuleAfterFirstMvt() {\n\t\t\n\t}", "@Test\n public void testRuleClass() throws Exception {\n\n HepProgramBuilder programBuilder = HepProgram.builder();\n programBuilder.addRuleClass( CoerceInputsRule.class );\n\n HepPlanner planner = new HepPlanner( programBuilder.build() );\n\n planner.addRule( new CoerceInputsRule( LogicalUnion.class, false, AlgFactories.LOGICAL_BUILDER ) );\n planner.addRule( new CoerceInputsRule( LogicalIntersect.class, false, AlgFactories.LOGICAL_BUILDER ) );\n\n checkPlanning( planner, \"(select name from dept union select ename from emp) intersect (select fname from customer.contact)\" );\n }", "private static void applyRules(Instances itemsets, Instances predictions) {\n\t\tfor (int i=0; i<predictions.numInstances(); ++i) {\n\t\t\tInstance instance = predictions.instance(i);\n\t\t\tboolean covered = true;\n\t\t\tfor (int j= 0; j<itemsets.numInstances(); ++j) {\n\t\t\t\tInstance rule = itemsets.instance(j);\n\t\t\t\tcovered = true;\n\t\t\t\tfor (int k=0; k< itemsets.numAttributes() -1 ; ++k) {\n\t\t\t\t\tif (rule.value(k)==1) {\n\t\t\t\t\t\tcovered = instance.value(k)==1;\n\t\t\t\t\t\tif(!covered){\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\t\n\t\t\t\t}\n\t\t\t\tif (covered) {\n\t\t\t\t\t\n\t\t\t\t\tinstance.setClassValue(rule.classValue());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "E1Rule createE1Rule();", "public Vector<Rule> learn(Vector<Rule> knowledgebase, Commitment selectedCommitment)\n {\n Situation situation3movementsAgo;\n Commitment firstCommitment;\n Commitment secondCommitment;\n Commitment lastCommitment;\n Commitment newCommitment;\n Condition newCondition;\n String predicate;\n Vector<Condition> conditions;\n Vector<Commitment> commitments;\n StringTokenizer tokenizer;\n String predicateHead;\n int i,j;\n int x, y;\n int x1,x2,x3;\n int y1,y2, y3;\n String direction1, direction2, direction3;\n Rule newRule;\n boolean found;\n boolean ruleAlreadyExists;\n String milestoneID;\n //-------------------------------\n\n if(Blackboard.history.size()>3)\n {\n situation3movementsAgo = Blackboard.history.get(Blackboard.history.size()-4);\n milestoneID = getMilestoneId();\n if(!milestoneID.equals(\"ninguna\"))\n {\n firstCommitment = Blackboard.history.get(Blackboard.history.size()-3).cause;\n secondCommitment = Blackboard.history.get(Blackboard.history.size()-2).cause;\n lastCommitment = selectedCommitment;\n conditions = new Vector<Condition>();\n\n // checa si hay que poner un predicado primero\n // referente a una milestone\n predicate = newRuleFirstCondition(situation3movementsAgo);\n\n if(!predicate.equals(\"ninguno\"))\n {\n // condicion de una milestone\n newCondition = new Condition(predicate);\n conditions.add(newCondition);\n }//end if\n\n if(predicate.equals(\"ninguno\"))\n {\n i= 0;\n while(i < 5)\n {\n x=getXOfAToken(situation3movementsAgo, i);\n y=getYOfAToken(situation3movementsAgo, i);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + i + \")\");\n conditions.add(newCondition);\n i = i + 1;\n }//end while\n }//end if\n else\n {\n if(predicate.equals(\"primeraLineaLista\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n i= 5;\n while(i < 9)\n {\n x=getXOfAToken(situation3movementsAgo, i);\n y=getYOfAToken(situation3movementsAgo, i);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + i + \")\");\n conditions.add(newCondition);\n i = i + 1;\n }//end while\n }//end if\n else\n {\n if(predicate.equals(\"dosLineasListas\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n\n x=getXOfAToken(situation3movementsAgo, 9);\n y=getYOfAToken(situation3movementsAgo, 9);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 9 + \")\");\n conditions.add(newCondition);\n\n x=getXOfAToken(situation3movementsAgo, 13);\n y=getYOfAToken(situation3movementsAgo, 13);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 13 + \")\");\n conditions.add(newCondition);\n\n }//end if\n else\n {\n if(predicate.equals(\"dosLineasYColumna\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 10);\n y=getYOfAToken(situation3movementsAgo, 10);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 10 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 11);\n y=getYOfAToken(situation3movementsAgo, 11);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 11 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 12);\n y=getYOfAToken(situation3movementsAgo, 12);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 12 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 14);\n y=getYOfAToken(situation3movementsAgo, 14);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 14 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 15);\n y=getYOfAToken(situation3movementsAgo, 15);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 15 + \")\");\n conditions.add(newCondition);\n\n\n }//end if\n }//end else\n }//end else\n }//end else\n\n\n // now constructs the rule conclusion\n // as a sequence of moves\n predicate = firstCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x1 = Integer.valueOf(tokenizer.nextToken());\n y1 = Integer.valueOf(tokenizer.nextToken());\n direction1 = tokenizer.nextToken();\n\n predicate = secondCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x2 = Integer.valueOf(tokenizer.nextToken());\n y2 = Integer.valueOf(tokenizer.nextToken());\n direction2 = tokenizer.nextToken();\n\n predicate = lastCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x3 = Integer.valueOf(tokenizer.nextToken());\n y3 = Integer.valueOf(tokenizer.nextToken());\n direction3 = tokenizer.nextToken();\n\n predicate = \"secuencia(\"+\n x1 + \",\" + y1 + \",\" + direction1 + \",\"+\n x2 + \",\" + y2 + \",\" + direction2 + \",\"+\n x3 + \",\" + y3 + \",\" + direction3 + \")\";\n newCommitment = new Commitment(predicate);\n commitments = new Vector<Commitment>();\n commitments.add(newCommitment);\n\n // includes the new rule into the knowledge base\n newRule = new Rule(knowledgeBase.size(), conditions, commitments);\n ruleAlreadyExists = false;\n i = 0;\n while(i < knowledgeBase.size())\n {\n if(knowledgeBase.get(i).equals(newRule))\n {\n ruleAlreadyExists = true;\n break;\n }//end if\n i = i + 1;\n }//end while\n if(!ruleAlreadyExists)\n {\n knowledgeBase.add(newRule);\n }//end if\n }//end if\n }//end if\n return knowledgeBase;\n }", "@Test\n public void solveTest5() throws ContradictionException {\n\n Set<ConstraintInfo> constraints = new HashSet<>();\n Set<Position> vars = new HashSet<>();\n Position[] varArr = new Position[]{\n this.grid.getVariable(0, 6),\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(3, 6),\n this.grid.getVariable(4, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(6, 6),\n this.grid.getVariable(7, 6),\n this.grid.getVariable(7, 5),\n this.grid.getVariable(7, 4),\n this.grid.getVariable(7, 3),\n this.grid.getVariable(7, 2),\n this.grid.getVariable(6, 2),\n this.grid.getVariable(5, 2),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 0)\n };\n vars.addAll(Arrays.asList(varArr));\n ArrayList<Set<Position>> cArr = new ArrayList<>();\n for (int i = 0; i < 14; i++) cArr.add(new HashSet<>());\n add(cArr.get(0), varArr[0], varArr[1]);\n add(cArr.get(1), varArr[0], varArr[1], varArr[2]);\n add(cArr.get(2), varArr[3], varArr[1], varArr[2]);\n add(cArr.get(3), varArr[3], varArr[4], varArr[2]);\n add(cArr.get(4), varArr[3], varArr[4], varArr[5]);\n add(cArr.get(5), varArr[6], varArr[4], varArr[5]);\n add(cArr.get(6), varArr[6], varArr[7], varArr[5], varArr[8], varArr[9]);\n add(cArr.get(7), varArr[8], varArr[9], varArr[10]);\n add(cArr.get(8), varArr[9], varArr[10], varArr[11], varArr[12], varArr[13]);\n add(cArr.get(9), varArr[12], varArr[13]);\n add(cArr.get(10), varArr[13]);\n add(cArr.get(11), varArr[13], varArr[14]);\n add(cArr.get(12), varArr[13], varArr[14], varArr[15]);\n add(cArr.get(13), varArr[14], varArr[15]);\n\n int[] cVal = new int[] { 1,2,2,1,1,1,2,1,2,1,1,2,3,2 };\n for (int i = 0; i < 14; i++) {\n constraints.add(new ConstraintInfo(cArr.get(i), cVal[i]));\n }\n\n MSModel model = new MSModel(constraints, vars);\n\n Set<Position> expectedBombs = new HashSet<>();\n expectedBombs.addAll(Arrays.asList(\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(5, 0),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 2)\n ));\n Set<Position> expectedNoBombs = new HashSet<>();\n expectedNoBombs.addAll(Arrays.asList(\n this.grid.getVariable(6,2),\n this.grid.getVariable(0,6),\n this.grid.getVariable(3,6),\n this.grid.getVariable(4,6),\n this.grid.getVariable(6,6)\n ));\n\n for (Position pos : vars) {\n if (expectedBombs.contains(pos)) {\n assertTrue(model.hasBomb(pos));\n } else {\n assertFalse(model.hasBomb(pos));\n }\n\n if (expectedNoBombs.contains(pos)) {\n assertTrue(model.hasNoBombs(pos));\n } else {\n assertFalse(model.hasNoBombs(pos));\n }\n }\n\n /*\n 00002x???\n 00003x???\n 00002xxx?\n 0000112x?\n 0000001x?\n 1221112x?\n xxxxxxxx?\n ?????????\n */\n }", "public RuleSet (RuleList rulelist, SensorList sList) {\n \n this.references = new ArrayList();\n this.rulelist = rulelist;\n this.totalProb = -1.0;\n this.id = counter.incrementAndGet();\n this.indexesOfPrec = new ArrayList();\n this.precedences = new ArrayList ();\n this.sList = sList;\n }", "private List<LACRule> doExtractRules(List<Integer> featuresCombination)\n\t{\n\t\tList<LACRule> rules = new ArrayList<LACRule>();\n\n\t\tList<Integer> instancesWithFeatures = trainingSet.getInstancesWithFeatures(featuresCombination);\n\t\tint numClasses = trainingSet.getAllClasses().size();\n\t\tint[] count = new int[numClasses];\n\n\t\tint size = instancesWithFeatures.size();\n\n\t\tif (size > 0)\n\t\t{\n\t\t\tfor (int i = 0; i < size; i++)\n\t\t\t{\n\t\t\t\tInteger instanceIndex = instancesWithFeatures.get(i);\n\t\t\t\tLACInstance instance = trainingSet.getInstance(instanceIndex);\n\t\t\t\tint predictedClass = instance.getIndexedClass();\n\t\t\t\tcount[predictedClass] = count[predictedClass] + 1;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < numClasses; i++)\n\t\t\t{\n\t\t\t\tint classCount = count[i];\n\t\t\t\tif (classCount > 0)\n\t\t\t\t{\n\t\t\t\t\tdouble support = (double) classCount / (double) trainingSet.length();\n\t\t\t\t\tdouble confidence = (double) classCount / (double) size;\n\n\t\t\t\t\tif(support > minSupport && confidence > minConfidence)\n\t\t\t\t\t{\n\t\t\t\t\t\tLACRule rule = new LACRule(support, confidence, i);\n\t\t\t\t\t\tif(debug)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\trule.setPattern(trainingSet.indexesToLabels(featuresCombination));\n\t\t\t\t\t\t\trule.setClassLabel(trainingSet.getClassByIndex(i).getLabel());\n\t\t\t\t\t\t\tSystem.out.println(rule);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trules.add(rule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn rules;\n\t}", "@Test\r\n public void testAddRule() throws Exception{\r\n System.out.println(\"addRule\");\r\n RuleSetImpl instance = new RuleSetImpl(\"Test\", true);\r\n instance.addRule(new RegExRule(\".*\", \"string\"));\r\n instance.addRule(new RegExRule(\"a.*\", \"aString\"));\r\n List<Rule> rules = instance.getRules();\r\n assertTrue(rules.size()==2);\r\n }", "private boolean completeConcurrentRules(\r\n\t\t\tfinal Rule r,\r\n\t\t\tfinal int rIndx,\r\n\t\t\tfinal List<List<ConcurrentRule>> crsOfRule,\r\n\t\t\tfinal int listIndx,\r\n\t\t\tfinal Hashtable<?, ?> matchmap) {\n \t\t\r\n\t\tboolean res = false;\r\n\t\tif (listIndx >= crsOfRule.size()) {\r\n\t\t\tint x = listIndx;\r\n\t\t\tint preIndx = rIndx-1;\r\n\t\t\tRule preRule = this.ruleSequence.getRule(preIndx);\r\n\t\t\tif (x == 0) {\r\n\t\t\t\tList<ConcurrentRule> list = this.makeConcurrentRulesDuetoDependency(preRule, preIndx, r, rIndx, matchmap);\t\t\t\t\r\n\t\t\t\tcrsOfRule.add(list);\r\n\t\t\t\tres = true;\r\n\t\t\t} else {\r\n\t\t\t\tList<ConcurrentRule>\r\n\t\t\t\tcrListOfPreRule = this.getConcurrentRulesOfRule(preRule, preIndx, x-1);\r\n\t\t\t\tif (crListOfPreRule == null || crListOfPreRule.isEmpty()) {\r\n\t\t\t\t\t// create a new list of lists to fill\r\n\t\t\t\t\tfinal List<List<ConcurrentRule>> \r\n\t\t\t\t\tconRuleListsOfPreRule = this.getListsOfConcurrentRulesOfRule(preRule, preIndx);\t\r\n\t\t\t\t\t// put this list to fill\r\n\t\t\t\t\tthis.completeConcurrentRules(preRule, rIndx-1, conRuleListsOfPreRule, x-1, matchmap);\r\n\t\t\t\t\t// get the (x-1) list\r\n\t\t\t\t\tcrListOfPreRule = this.getConcurrentRulesOfRule(preRule, preIndx, x-1);\r\n\t\t\t\t} \r\n\t\t\t\t\t\r\n\t\t\t\tif (crListOfPreRule != null) {\r\n\t\t\t\t\tfinal List<ConcurrentRule> list = new Vector<ConcurrentRule>();\r\n\t\t\t\t\tfor (int c=0; c<crListOfPreRule.size(); c++) {\r\n\t\t\t\t\t\tfinal ConcurrentRule cr = crListOfPreRule.get(c);\r\n\t\t\t\t\t\tlist.addAll(this.makeConcurrentRulesDuetoDependency(cr, r, matchmap));\r\n\t\t\t\t\t}\r\n\t\t\t\t\twhile (crsOfRule.size() < x) {\r\n\t\t\t\t\t\tcrsOfRule.add(new Vector<ConcurrentRule>());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcrsOfRule.add(list);\r\n\t\t\t\t\tres = true;\r\n\t\t\t\t}\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn res;\r\n\t}", "private static Collection<? extends Rule> getRules(ObjectFactory objFactory, Value cwe, Repository repository, Value segment)\n {\n HashMap<String, Rule> ruleSet = new HashMap<String, CWECoverageClaimType.Claims.Claim.RuleSet.Rule>();\n RepositoryConnection con = null;\n try\n {\n con = getRepositoryConnection(repository);\n \n String adaptorQuery = \"SELECT ?descriptionText WHERE {<\"+segment+\"> <http://toif/contains> ?finding. ?finding <http://toif/toif:FindingHasCWEIdentifier> <\" + cwe + \"> . \"\n + \"?finding <http://toif/toif:FindingIsDescribedByWeaknessDescription> ?description . \"\n + \"?description <http://toif/description> ?descriptionText . }\";\n \n TupleQuery adaptorTupleQuery = con.prepareTupleQuery(QueryLanguage.SPARQL, adaptorQuery);\n \n TupleQueryResult queryResult = adaptorTupleQuery.evaluate();\n \n while (queryResult.hasNext())\n {\n BindingSet adaptorSet = queryResult.next();\n Value name = adaptorSet.getValue(\"descriptionText\");\n \n String nameString = name.stringValue();\n \n String[] descArray = nameString.split(\":\");\n \n String ident = descArray[0];\n String description = descArray[1];\n \n if (!ruleSet.containsKey(ident))\n {\n Rule rule = objFactory.createCWECoverageClaimTypeClaimsClaimRuleSetRule();\n ruleSet.put(ident, rule);\n }\n \n Rule rule = ruleSet.get(ident);\n rule.setRuleID(ident);\n rule.setRuleName(ident);\n rule.setRuleComments(description);\n \n }\n \n queryResult.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n catch (MalformedQueryException e)\n {\n e.printStackTrace();\n }\n catch (QueryEvaluationException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n con.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n }\n return ruleSet.values();\n \n }", "public void clearRules() {\n this.rules_ = emptyProtobufList();\n }", "public List<Rule> defaultRuleList(TacticTypeEnum tacticType) {\n List<Rule> ruleList = new ArrayList<>();\n List<RangeCondition> rangeConditions = rangeConditionTemplate.conditionsFromBaseAndIntervalWithMaxValue(0, 10,\n 4, 10, ConditionUnitEnum.PERCENT);\n Collections.reverse(rangeConditions);\n List<Operation> operations = operationTemplate.operationsFromBaseAndInterval(1000, 200, 10, 2,\n TradeUnitEnum.YUAN);\n operations.add(operationTemplate.ignore());\n operations.add(operationTemplate.sell30Pct());\n operations.add(operationTemplate.sellAll());\n operations.sort(Comparators.OPERATION_TRADE_VALUE_COMPARATOR);\n for (int i = 0; i < rangeConditions.size(); i++) {\n ruleList.add(of(tacticType, rangeConditions.get(i), null, operations.get(i)));\n }\n return ruleList;\n }", "IRuleset add(IRuleset...rules);", "private void createRules(List<PatternToken> elemList,\n List<PatternToken> tmpPatternTokens, int numElement) {\n String shortMessage = \"\";\n if (this.shortMessage != null && this.shortMessage.length() > 0) {\n shortMessage = this.shortMessage.toString();\n } else if (shortMessageForRuleGroup != null && shortMessageForRuleGroup.length() > 0) {\n shortMessage = this.shortMessageForRuleGroup.toString();\n }\n if (numElement >= elemList.size()) {\n AbstractPatternRule rule;\n if (tmpPatternTokens.size() > 0) {\n rule = new PatternRule(id, language, tmpPatternTokens, name,\n message.toString(), shortMessage,\n suggestionsOutMsg.toString(), phrasePatternTokens.size() > 1, interpretPosTagsPreDisambiguation);\n rule.addTags(ruleTags);\n rule.addTags(ruleGroupTags);\n rule.addTags(categoryTags);\n rule.setSourceFile(sourceFile);\n } else if (regex.length() > 0) {\n int flags = regexCaseSensitive ? 0 : Pattern.CASE_INSENSITIVE|Pattern.UNICODE_CASE;\n String regexStr = regex.toString();\n if (regexMode == RegexpMode.SMART) {\n // Note: it's not that easy to add \\b because the regex might look like '(foo)' or '\\d' so we cannot just look at the last character\n regexStr = replaceSpacesInRegex(regexStr);\n }\n if (ruleAntiPatterns.size() > 0 || rulegroupAntiPatterns.size() > 0) {\n throw new RuntimeException(\"<regexp> rules currently cannot be used together with <antipattern>. Rule id: \" + id + \"[\" + subId + \"]\");\n }\n rule = new RegexPatternRule(id, name, message.toString(), shortMessage, suggestionsOutMsg.toString(), language, Pattern.compile(regexStr, flags), regexpMark);\n rule.setSourceFile(sourceFile);\n } else {\n throw new IllegalStateException(\"Neither '<pattern>' tokens nor '<regex>' is set in rule '\" + id + \"'\");\n }\n setRuleFilter(filterClassName, filterArgs, rule);\n prepareRule(rule);\n rules.add(rule);\n } else {\n PatternToken patternToken = elemList.get(numElement);\n if (patternToken.hasOrGroup()) {\n // When creating a new rule, we finally clear the backed-up variables. All the elements in\n // the OR group should share the values of backed-up variables. That's why these variables\n // are backed-up.\n List<Match> suggestionMatchesBackup = new ArrayList<>(suggestionMatches);\n List<Match> suggestionMatchesOutMsgBackup = new ArrayList<>(suggestionMatchesOutMsg);\n int startPosBackup = startPos;\n int endPosBackup = endPos;\n List<DisambiguationPatternRule> ruleAntiPatternsBackup = new ArrayList<>(ruleAntiPatterns);\n for (PatternToken patternTokenOfOrGroup : patternToken.getOrGroup()) {\n List<PatternToken> tmpElements2 = new ArrayList<>();\n tmpElements2.addAll(tmpPatternTokens);\n tmpElements2.add(ObjectUtils.clone(patternTokenOfOrGroup));\n createRules(elemList, tmpElements2, numElement + 1);\n startPos = startPosBackup;\n endPos = endPosBackup;\n suggestionMatches = suggestionMatchesBackup;\n suggestionMatchesOutMsg = suggestionMatchesOutMsgBackup;\n ruleAntiPatterns.addAll(ruleAntiPatternsBackup);\n }\n }\n tmpPatternTokens.add(ObjectUtils.clone(patternToken));\n createRules(elemList, tmpPatternTokens, numElement + 1);\n }\n }", "public boolean has_unprocessed_rules();", "@Override\r\npublic void initRules(){\r\n\t\r\n}", "@Override\n public boolean rewritePre(Mutable<ILogicalOperator> opRef, IOptimizationContext context)\n throws AlgebricksException {\n\n boolean cboMode = this.getCBOMode(context);\n boolean cboTestMode = this.getCBOTestMode(context);\n\n if (!(cboMode || cboTestMode)) {\n return false;\n }\n\n // If we reach here, then either cboMode or cboTestMode is true.\n // If cboTestMode is true, then we use predefined cardinalities for datasets for asterixdb regression tests.\n // If cboMode is true, then all datasets need to have samples, otherwise the check in doAllDataSourcesHaveSamples()\n // further below will return false.\n ILogicalOperator op = opRef.getValue();\n if (!(joinClause(op) || ((op.getOperatorTag() == LogicalOperatorTag.DISTRIBUTE_RESULT)))) {\n return false;\n }\n\n // if this join has already been seen before, no need to apply the rule again\n if (context.checkIfInDontApplySet(this, op)) {\n return false;\n }\n\n //joinOps = new ArrayList<>();\n allJoinOps = new ArrayList<>();\n newJoinOps = new ArrayList<>();\n leafInputs = new ArrayList<>();\n varLeafInputIds = new HashMap<>();\n outerJoinsDependencyList = new ArrayList<>();\n assignOps = new ArrayList<>();\n assignJoinExprs = new ArrayList<>();\n buildSets = new ArrayList<>();\n\n IPlanPrettyPrinter pp = context.getPrettyPrinter();\n printPlan(pp, (AbstractLogicalOperator) op, \"Original Whole plan1\");\n leafInputNumber = 0;\n boolean canTransform = getJoinOpsAndLeafInputs(op);\n\n if (!canTransform) {\n return false;\n }\n\n convertOuterJoinstoJoinsIfPossible(outerJoinsDependencyList);\n\n printPlan(pp, (AbstractLogicalOperator) op, \"Original Whole plan2\");\n int numberOfFromTerms = leafInputs.size();\n\n if (LOGGER.isTraceEnabled()) {\n String viewInPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewInPlan\");\n LOGGER.trace(viewInPlan);\n }\n\n if (buildSets.size() > 1) {\n buildSets.sort(Comparator.comparingDouble(o -> o.second)); // sort on the number of tables in each set\n // we need to build the smaller sets first. So we need to find these first.\n }\n joinEnum.initEnum((AbstractLogicalOperator) op, cboMode, cboTestMode, numberOfFromTerms, leafInputs, allJoinOps,\n assignOps, outerJoinsDependencyList, buildSets, varLeafInputIds, context);\n\n if (cboMode) {\n if (!doAllDataSourcesHaveSamples(leafInputs, context)) {\n return false;\n }\n }\n\n printLeafPlans(pp, leafInputs, \"Inputs1\");\n\n if (assignOps.size() > 0) {\n pushAssignsIntoLeafInputs(pp, leafInputs, assignOps, assignJoinExprs);\n }\n\n printLeafPlans(pp, leafInputs, \"Inputs2\");\n\n int cheapestPlan = joinEnum.enumerateJoins(); // MAIN CALL INTO CBO\n if (cheapestPlan == PlanNode.NO_PLAN) {\n return false;\n }\n\n PlanNode cheapestPlanNode = joinEnum.allPlans.get(cheapestPlan);\n\n generateHintWarnings();\n\n if (numberOfFromTerms > 1) {\n getNewJoinOps(cheapestPlanNode, allJoinOps);\n if (allJoinOps.size() != newJoinOps.size()) {\n return false; // there are some cases such as R OJ S on true. Here there is an OJ predicate but the code in findJoinConditions\n // in JoinEnum does not capture this. Will fix later. Just bail for now.\n }\n buildNewTree(cheapestPlanNode, newJoinOps, new MutableInt(0));\n opRef.setValue(newJoinOps.get(0));\n\n if (assignOps.size() > 0) {\n for (int i = assignOps.size() - 1; i >= 0; i--) {\n MutableBoolean removed = new MutableBoolean(false);\n removed.setFalse();\n pushAssignsAboveJoins(newJoinOps.get(0), assignOps.get(i), assignJoinExprs.get(i), removed);\n if (removed.isTrue()) {\n assignOps.remove(i);\n }\n }\n }\n\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan after buildNewTree 1\");\n ILogicalOperator root = addRemainingAssignsAtTheTop(newJoinOps.get(0), assignOps);\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan after buildNewTree 2\");\n printPlan(pp, (AbstractLogicalOperator) root, \"New Whole Plan after buildNewTree\");\n\n // this will be the new root\n opRef.setValue(root);\n\n if (LOGGER.isTraceEnabled()) {\n String viewInPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewInPlanAgain\");\n LOGGER.trace(viewInPlan);\n String viewOutPlan = new ALogicalPlanImpl(opRef).toString(); //useful when debugging\n LOGGER.trace(\"viewOutPlan\");\n LOGGER.trace(viewOutPlan);\n }\n\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(\"---------------------------- Printing Leaf Inputs\");\n printLeafPlans(pp, leafInputs, \"Inputs\");\n // print joins starting from the bottom\n for (int i = newJoinOps.size() - 1; i >= 0; i--) {\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(i), \"join \" + i);\n }\n printPlan(pp, (AbstractLogicalOperator) newJoinOps.get(0), \"New Whole Plan\");\n printPlan(pp, (AbstractLogicalOperator) root, \"New Whole Plan\");\n }\n\n // turn of this rule for all joins in this set (subtree)\n for (ILogicalOperator joinOp : newJoinOps) {\n context.addToDontApplySet(this, joinOp);\n }\n\n } else {\n buildNewTree(cheapestPlanNode);\n }\n\n return true;\n }", "IRuleset add(IRuleset rule);", "private void enforce(PhysicalProperties outputProperty, List<PhysicalProperties> inputProperties) {\n putProperty(groupExpression, outputProperty, outputProperty, inputProperties);\n // groupExpression can satisfy the ANY type output property\n putProperty(groupExpression, outputProperty, new PhysicalProperties(), inputProperties);\n\n EnforceMissingPropertiesHelper enforceMissingPropertiesHelper = new EnforceMissingPropertiesHelper(context,\n groupExpression, curTotalCost);\n\n PhysicalProperties requiredProperties = context.getRequiredProperties();\n if (outputProperty.meet(requiredProperties)) {\n Pair<PhysicalProperties, Double> pair = enforceMissingPropertiesHelper.enforceProperty(outputProperty,\n requiredProperties);\n PhysicalProperties addEnforcedProperty = pair.first;\n curTotalCost = pair.second;\n\n // enforcedProperty is superset of requiredProperty\n if (!addEnforcedProperty.equals(requiredProperties)) {\n putProperty(groupExpression.getParent().getBestExpression(addEnforcedProperty),\n requiredProperties, requiredProperties, Lists.newArrayList(outputProperty));\n }\n } else {\n if (!outputProperty.equals(requiredProperties)) {\n putProperty(groupExpression, outputProperty, requiredProperties, inputProperties);\n }\n }\n\n if (curTotalCost < context.getCostUpperBound()) {\n context.setCostUpperBound(curTotalCost);\n }\n }", "private void expandTree(TreeNode tn,Set<Condition> conds)\n{\n List<RuleInstance> rules = tn.getRules();\n double tot = rules.size();\n if (tot <= 1) return;\n if (conds == null || conds.isEmpty()) return;\n\n Condition best = null;\n List<RuleInstance> bestp = null;\n List<RuleInstance> bestf = null;\n double bestv = 0;\n\n for (Condition c : conds) {\n List<RuleInstance> pr = new ArrayList<RuleInstance>();\n List<RuleInstance> fr = new ArrayList<RuleInstance>();\n for (RuleInstance ri : rules) {\n\t if (c.match(ri)) pr.add(ri);\n\t else fr.add(ri);\n }\n if (pr.size() == 0 || fr.size() == 0) continue;\n double vp = pr.size() / tot;\n double vf = fr.size() / tot;\n double e = - vp * Math.log(vp) - vf * Math.log(vf);\n if (e > bestv) {\n\t best = c;\n\t bestp = pr;\n\t bestf = fr;\n }\n }\n\n if (best == null) return;\n\n tn.setCondition(best,bestp,bestf);\n expandTree(tn.getPassTree(),conds);\n expandTree(tn.getFailTree(),conds);\n}", "private void prepareRuleFiles() {\n\n if (IronSyslog.class.getResource(RULE_FOLDER) == null\n || IronSyslog.class.getResource(RULE_FOLDER + \"service/\") == null\n || IronSyslog.class.getResource(RULE_FOLDER + \"publish/\") == null\n || IronSyslog.class.getResource(RULE_FOLDER + \"other/\") == null) {\n LOGGER.error(\"Error while preparing rule files. Broken file system folder structure. \\n\"\n + \"Make sure that: rules/drools/ and its subfolders service/, publish/ and other/ exist\");\n System.exit(1);\n }\n\n // Prepare Configuration\n Yaml yaml = new Yaml();\n InputStream input = IronSyslog.class.getResourceAsStream(RULE_FOLDER\n + \"config.yml\");\n RulesConfiguration config = yaml\n .loadAs(input, RulesConfiguration.class);\n\n try {\n // Add only the service rules (in the service folder) specified in\n // the configuration\n for (String service : config.getServiceInclude()) {\n String fileName = RULE_FOLDER + \"service/\" + service + \".drl\";\n if (IronSyslog.class.getResource(fileName) != null) {\n LOGGER.debug(\"Adding rule file: \" + fileName);\n mRuleFiles.add(RULE_FOLDER + \"service/\" + service + \".drl\");\n } else {\n LOGGER.warn(\"Failed to add rule file: \" + fileName);\n }\n }\n\n // Add all publish rules (in the \"publish\" folder) excluding the one\n // specified on the\n // configuration\n File publishFolder = new File(IronSyslog.class.getResource(\n RULE_FOLDER + \"publish/\").toURI());\n File[] publishFiles = publishFolder.listFiles();\n for (int i = 0; i < publishFiles.length; i++) {\n String fileName = publishFiles[i].getName();\n if (fileName.endsWith(\".drl\")\n && !config.getPublishExclude().contains(\n fileName.substring(0, fileName.length() - 4))) {\n LOGGER.debug(\"Adding rule file: \" + RULE_FOLDER\n + \"publish/\" + fileName);\n mRuleFiles.add(RULE_FOLDER + \"publish/\" + fileName);\n }\n }\n\n // Add all other rules (\"other\" folder, including subfolders)\n addAllRuleFilesInFolder(RULE_FOLDER + \"other/\");\n } catch (URISyntaxException e) {\n LOGGER.debug(\"Error while searching for rule files. \" + e);\n }\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n public static void main(String[] args) throws ConfigurationException,\n RuleExecutionSetCreateException, IOException,\n RuleSessionTypeUnsupportedException, RuleSessionCreateException,\n RuleExecutionSetNotFoundException, InvalidRuleSessionException,\n ClassNotFoundException, RuleExecutionSetRegisterException {\n\n String ruleEngineServiceUri = UriConstants.RULE_ENGINE_SERVICE_URI;\n\n Class.forName(UriConstants.RULE_SERVICE_PROVIDER_CLASS_NAME);\n\n RuleServiceProvider serviceProvider = RuleServiceProviderManager\n .getRuleServiceProvider(ruleEngineServiceUri);\n\n RuleAdministrator ruleAdministrator = serviceProvider\n .getRuleAdministrator();\n\n RuleEngineLog.debug(ruleAdministrator.toString());\n\n Map params = null;\n // InputStream stream = null;\n\n String bindUri = null;\n\n LogisticsRule logisticsRule = buildLogisticsRule();\n\n FlavorRule flavorRule = buildFlavorRule();\n\n RuleSet ruleSet = new RuleSet(\"multi-logisitic--ruleset\");\n\n ruleSet.addRule(logisticsRule);\n ruleSet.addRule(flavorRule);\n // ruleSet.add(logisticsRule1);\n\n RuleExecutionSet ruleExecutionSet = ruleAdministrator\n .getLocalRuleExecutionSetProvider(params).createRuleExecutionSet(\n ruleSet, null);\n\n bindUri = ruleExecutionSet.getName();\n\n ruleAdministrator.registerRuleExecutionSet(bindUri, ruleExecutionSet, null);\n\n RuleEngineLog.debug(ruleExecutionSet);\n //\n RuleRuntime ruleRunTime = serviceProvider.getRuleRuntime();\n\n StatelessRuleSession srs = (StatelessRuleSession) ruleRunTime\n .createRuleSession(bindUri, params, RuleRuntime.STATELESS_SESSION_TYPE);\n\n List inputList = new LinkedList();\n\n String productReview1 = \"一直在你们家购买,感觉奶粉是保真的。就是发货速度稍微再快一些就好了。先谢谢了\";\n\n String productReview2 = \"说什么原装进口的 但是和我原本进口的奶粉还是有区别 奶很甜 宝宝吃了这个奶粉后胃口很差 都不爱吃其他东西 本来每天定时有吃两顿饭的 现在吃了这个奶粉后 饭也不要吃了 现在一个没有开 另一罐开了放着没有喝\";\n\n ProductReview pr1 = new ProductReview(\"uid1\", productReview1);\n\n ProductReview pr2 = new ProductReview(\"uid2\", productReview2);\n\n inputList.add(pr1);\n inputList.add(pr2);\n\n // inputList.add(new String(\"Bar\"));\n // inputList.add(new Integer(5));\n // inputList.add(new Float(6));\n List resultList = srs.executeRules(inputList);\n\n // release the session\n srs.release();\n\n // System.out.println(\"executeRules: \" + resultList);\n for (Object o : resultList) {\n System.out.println(o);\n }\n\n }", "@Override\r\n protected void initializeRules(List<AbstractValidationCheck> rules) {\n\r\n }", "protected IGrid applyRules(IRuleset ruleset, IGrid nextGeneration) {\n\t\tfor(int col = 0; col < this.gridConfiguration.getCols(); col++) {\n\t\t\tfor(int row = 0; row < this.gridConfiguration.getRows(); row++) {\n\t\t\t\tnextGeneration.setState(col, row, ruleset.getNextGenerationState(\n\t\t\t\t\t\tthis.getState(col, row),\n\t\t\t\t\t\tthis.getGridConfiguration().getNeighborhood().countNeighborsAlive(col, row, this),\n\t\t\t\t\t\tthis.getGridConfiguration().getNeighborhood().getNeighbors().size()));\n\t\t\t}\n\t\t}\n\n\t\treturn nextGeneration;\n\t}", "private void getTimeConditions(List<RuleInstance> rules,Set<Condition> conds)\n{\n for (RuleInstance ri : rules) {\n getTimeConditions(ri,rules,conds);\n }\n}", "private static Instances pruneRule(Instances data, Instances predOr, Instances itemsets) {\n\t\tInstances bestCopy = itemsets;\n\t\tInstances workingData = new Instances(predOr);\n\t\tdouble bestError = calcError(data, predOr);\n\t\tfor(int i = itemsets.numInstances() - 2; i > 0 ; i--){\n\t\t\tInstances itemsetCopy = new Instances(itemsets);\n\t\t\titemsetCopy.delete(i);\n\t\t\tapplyRules(itemsetCopy, workingData);\n\t\t\tdouble error = calcError(data, workingData);\n\t\t\tif( calcNewError(error) < bestError ){ \n\t\t\t\tbestError = calcNewError(error);\n\t\t\t\tbestCopy = itemsetCopy;\n\t\t\t}\n\t\t}\n\t\treturn bestCopy;\n\t}", "@SuppressWarnings(\"unchecked\")\r\npublic static void ruleResolvePronouns(AnnotationSet basenp, Document doc)\r\n{\n Annotation[] basenpArray = basenp.toArray();\r\n\r\n // Initialize coreference clusters\r\n int maxID = basenpArray.length;\r\n\r\n // Create an array of pointers\r\n // clust = new UnionFind(maxID);\r\n fvm = new RuleResolvers.FeatureVectorMap();\r\n ptrs = new int[maxID];\r\n clusters = new HashSet[maxID];\r\n for (int i = 0; i < clusters.length; i++) {\r\n ptrs[i] = i;\r\n HashSet<Annotation> cluster = new HashSet<Annotation>();\r\n cluster.add(basenpArray[i]);\r\n clusters[i] = cluster;\r\n }\r\n Annotation zero = new Annotation(-1, -1, -1, \"zero\");\r\n\r\n for (int i = 1; i < basenpArray.length; i++) {\r\n Annotation np2 = basenpArray[i];\r\n if (FeatureUtils.isPronoun(np2, doc)) {\r\n Annotation ant = ruleResolvePronoun(basenpArray, i, doc);\r\n if (ant != null) {\r\n np2.setProperty(Property.PRO_ANTES, ant);\r\n }\r\n else {\r\n np2.setProperty(Property.PRO_ANTES, zero);\r\n }\r\n }\r\n }\r\n}", "private void resolveSudokuByRules() {\n for (int i = 0; i < 9; i++) {\n updateBoardForSingleCandidate();\n }\n updateCandidateMapForPairByCol();\n updateCandidateMapForPairByRow();\n\n for (int i = 0; i < 5; i++) {\n updateBoardForSingleCandidate();\n }\n\n updateBoardForSinglePossibilityByBlock();\n updateBoardForSinglePossibilityByRow();\n updateBoardForSinglePossibilityByCol();\n refreshCandidateMap();\n\n for (int i = 0; i < 5; i++) {\n updateBoardForSingleCandidate();\n }\n\n printBoardAndCandidatesHtmlFile();\n }", "public void InstantiateAllRelevantsInRule (Rule rule, boolean forIntersection, boolean online)\n\t{\n\t\t//List<Rule> instRuleVector = new CopyOnWriteArrayList<Rule>();\n\t\tSet<Rule> instRuleVector = Collections.newSetFromMap(new ConcurrentHashMap<Rule, Boolean>());\n\t\t//long startTime = System.currentTimeMillis();\n\t\tif (false == forIntersection && false == rule.isFullyInst()) \n\t\t{\n\t\t\tfor (Atom bodyAtom : rule.getBody().getAtoms()) \n\t\t\t{\n\t\t\t\tfor (Atom instAtom : this.addedInstAtomsInLastIteration) \n\t\t\t\t{\n\t\t\t\t\tif (instAtom.getName().equals(bodyAtom.getName()))\n\t\t\t\t\t{\n\t\t\t\t\t\tAtom copyOfinstAtom = new Atom (instAtom);\n\t\t\t\t\t\tRule temp = new Rule (rule);\n\t\t\t\t\t\ttemp.SwapToInstAtomAndPartiallyInst(bodyAtom, copyOfinstAtom);\n\t\t\t\t\t\tif (true == temp.getIsFullyInst())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Provenance.getInstance().AddRuleToProv(temp, this.level);\n\t\t\t\t\t\t\t//KeyMap.getInstance().UpdateRule(temp);\n\t\t\t\t\t\t\ttemp.getBody().setRuleUsed(rule);//added for the top-k\n\t\t\t\t\t\t\ttemp.getHead().setRuleUsed(rule);\n\t\t\t\t\t\t\t//for top-1!\n\t\t\t\t\t\t\tif (false == online) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t/*KeyMap.getInstance().UpdateFactBody(temp.getBody());\n\t\t\t\t\t\t\t\tBody pointerBody = KeyMap.getInstance().GetPointerBodyForTop1(temp.getBody());\n\t\t\t\t\t\t\t\tif (true == pointerBody.LegalDerivation())\n\t\t\t\t\t\t\t\t{*/\n\t\t\t\t\t\t\t\tKeyMap.getInstance().Update(temp.getHead());\n\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\t//AtomsDerived.getInstance().Update(temp.getHead());\n\t\t\t\t\t\t\t\tProvenance.getInstance().AddRuleToProv(temp, this.level);\n\t\t\t\t\t\t\t\t//addedFullProv.add(KeyMap.getInstance().Get(temp.getHead()));\n\t\t\t\t\t\t\t\t//System.out.println(temp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tHandleTop1Scenario(temp, online);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\telse //if (false == online || temp.getRestricted() == null || false == temp.getBody().Uninstantiatated())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinstRuleVector.add(temp);\n\t\t\t\t\t\t\t//DeriveRule(temp, online);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (true == this.addedInstAtomsInLastIteration.isEmpty() || false == instRuleVector.isEmpty())\n\t\t\t{\n\t\t\t\tDeriveByRuleBottomUp ruleDeriver = new DeriveByRuleBottomUp(rule, this.p, this.topk, this.treesWaiting, this.previouslyFoundRelevants);\n\t\t\t\truleDeriver.FindDerivationsForRuleBottomUp(instRuleVector, forIntersection, level);\n\t\t\t}\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\tif (false == online || true == rule.getBody().AllAtomsInDb()) \n\t\t\t{\n\t\t\t\trule.getHead().setRuleUsed(rule);\n\t\t\t\trule.getBody().setRuleUsed(rule);//added for the top-k\n\t\t\t\tProvenance.getInstance().AddRuleToProv(rule, this.level);\n\t\t\t\t//for top-1!\n\t\t\t\tif (false == online) KeyMap.getInstance().Update(rule.getHead());\n\t\t\t\telse HandleTop1Scenario(rule, online);\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*long endTime = System.currentTimeMillis();\n\t\tif ((endTime-startTime) > 200)\n\t\t{\n\t\t\tSystem.out.println(\"DeriveByProgramBottomUp::InstantiateAllRelevantsInRule:: iteration time: \" + (endTime-startTime));\n\t\t\tSystem.out.println(\"DeriveByProgramBottomUp::InstantiateAllRelevantsInRule:: rule derived: \" + rule);\n\t\t\tSystem.out.println(\"DeriveByProgramBottomUp::InstantiateAllRelevantsInRule:: num of atoms last iter: \" + this.addedInstAtomsInLastIteration.size());\n\t\t}*/\n\t}", "public static Rule getDefaultRule(JavaRDD<String> data, String filePath){\n\n\t\tRuleGenerator generator = RuleGenerator.getInstance();\n\t\tgenerator.findClassName(filePath);\n\t\tString className = RuleGenerator.getClassName();\n\t\tint classPos = RuleGenerator.getClassPos();\n\t\tArrayList<ArrayList<String>> classValues = RuleGenerator.getClassValues();\n\t\t\n\t\tJavaRDD<String> flattenedLines = data.flatMap(new FlatMapFunction<String, String>(){\n\n\t\t\tpublic Iterable<String> call(String line) throws Exception {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn Arrays.asList(line.split(\",\"));\n\t\t\t}\n\n\t\t});\n\t\t\n\t\t//Create Key/Value pairs with word as key and count as value and then sum them up using reduceByKey\n\t\tJavaPairRDD<String,Integer> classCounts = flattenedLines.mapToPair(\n\t\t\t\tnew PairFunction<String, String, Integer>(){\n\n\t\t\t\t\tpublic Tuple2<String, Integer> call(String x)\n\t\t\t\t\t\t\tthrows Exception {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\treturn new Tuple2(x, 1);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}).reduceByKey(new Function2<Integer, Integer, Integer>(){\n\t\t\t\t\tpublic Integer call(Integer x, Integer y){\n\t\t\t\t\t\treturn x + y;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t/*Confirm Output */\n\t\tArrayList<Tuple2<String, Integer>> holderForClasses = new ArrayList<Tuple2<String, Integer>>();\n\t\tfor(Tuple2<String, Integer> tuple1 : classCounts.take((int) classCounts.count())){\n\t\t\tfor(int i = 0; i < classValues.size(); i++){\n\t\t\t\tArrayList<String> values = classValues.get(i);\n\t\t\t\tfor(String value : values){\n\t\t\t\t\tif(tuple1._1.equals(value)){\n\t\t\t\t\t\tholderForClasses.add(tuple1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t}\n\t\t\n\t\tInteger largestCount = 0;\n\t\tfor(int i = 0; i < holderForClasses.size(); i++){\n\t\t\tTuple2<String, Integer> tuple1 = holderForClasses.get(i);\n\t\t\t\n\t\t\t/*\n\t\t\t * Important: Does not handle situations where there are more than one majority class yet (Last one to be majority class is selected for now).\n\t\t\t * Check which class has the largest count and that class will be the majority class.\n\t\t\t */\n\t\t\tif(tuple1._2 >= largestCount){\n\t\t\t\tlargestCount = tuple1._2;\n\t\t\t\tmajorityClassValue = tuple1._1;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* Debugging and Troubleshooting */\n\t\t/* for(String line : data.take(10)){\n\t\t\tSystem.out.println(line);\n\t\t}*/\n\t\t//System.out.println(data);\n\t\t\n\n\t\t/* System.out.println(className);\n\t\tSystem.out.println(majorityClassValue);\n\t\tSystem.out.println(classPos); */\n\t\treturn new Rule(className ,majorityClassValue, classPos);\n\t\t\n\t}", "public static void main(String[] args)\n {\n /*\n * Create a new loader with default factory.\n * \n * A factory will create all rule components when loader requires them\n * Default engine is used that creates all the default constructs in:\n * org.achacha.rules.compare\n * org.achacha.rules.condition\n * org.achacha.rules.action\n * \n * RulesEngineFactoryExtension can be used to extend a default factory while keeping existing constructs\n * for basic rules the default factory provides a wide variety of comparators and action elements\n * \n * The loader uses the factory to resolve where the rule parts are loaded from\n * There are several load types (file system, in-memory string, in-memory XML)\n * Here we will configure a simple in-memory string based loader and add the\n * conditions and actions from constants\n */\n RulesEngineLoaderImplMappedString loader = new RulesEngineLoaderImplMappedString(new RulesEngineFactory());\n \n // Add a simple rule and call it 'alwaysTrue', we will execute this rule using this name\n loader.addRule(\"alwaysTrue\", SIMPLE_RULE);\n \n /*\n * Create a rules engine that uses the loader and factory we just created\n * Normally these 3 objects would be someone retained so we don't have to re-parse the rules every execution\n * However this is a tutorial example\n */\n RulesEngine engine = new RulesEngine(loader);\n \n /////////////////////////// Everything above is initialization ///////////////////////////////////////\n \n /////////////////////////// Everything below is rule execution ///////////////////////////////////////\n /*\n * Now we need to have some input for the rule to process but since were are using constants in comparison we can just pass\n * an empty input model\n * \n * We use dom4j XML Element for input\n * \n * <request>\n * <input />\n * </request>\n */\n Element request = DocumentHelper.createElement(\"request\");\n request.addElement(\"input\");\n \n /*\n * RuleContext is an object that holds the input, output, event log, etc for a given rule execution\n * The engine can create a new context for us if we specify the input for the rule\n */\n RuleContext ruleContext = engine.createContext(request);\n \n /*\n * Now that we have set up our context we can execute the rule\n * Since we used addRule above and called this rule 'alwaysTrue', this is how we invoke this rule\n * \n * NOTE:\n * you can run multiple rules sequentially against the same context\n * some actions can modify input context and some conditions can check output context\n * so rules can depend on other rules\n */\n engine.execute(ruleContext, \"alwaysTrue\");\n \n /*\n * Display the output model\n * \n * Since the action we used is:\n * \n * <Action Operator='OutputValueSet'>\"\n * <Path>/result</Path>\"\n * <Value Source='Constant'><Data>yes</Data></Value>\"\n * </Action>\"\n * \n * We get the following output model:\n * <output><result>yes</result></output>\n * \n * NOTE: The path on the output action is always relative to the output element\n */\n System.out.println(\"Output Model\\n------------\");\n System.out.println(ruleContext.getOutputModel().asXML());\n }", "public static int createExpPL (int nFeat, ArrayList<String[]> delA, ArrayList<String[]> addA) {\r\n\t\tint size = 0;\r\n\r\n\t\t// Call processRule with unique fname nFeat times\r\n\t\tfor (int i = 0; i < nFeat; i++) {\r\n\t\t\t// Normally distribute the number of features per rule\r\n\t\t Random randGauss = new Random();\r\n\t\t int nRules = (int)(Math.round(randGauss.nextGaussian() + 13.5));\r\n\t\t String pname, cname, ptype, ctype, aname, a_mode;\r\n\r\n\t\t // Call processRule with the same fname nRules times.\r\n\t\t for (int j = 0; j < nRules; j++) {\r\n\t\t\t\t// Randomly select between add or delete rule\r\n\t\t\t\tRandom rand = new Random();\r\n\t\t\t\tString mode;\r\n\t\t\t int randomMode = rand.nextInt(2);\r\n\t\t\t \r\n\t\t\t //Add\r\n\t\t\t if ((randomMode == 0) && (addA.size() != 0)) {\r\n\t\t\t \t// Set parameters\r\n\t\t\t \tmode = \"a\";\r\n\t\t\t \tsize = addA.size();\r\n\t\t\t \tpname = addA.get(size - 1)[0];\r\n\t\t\t \tcname = addA.get(size - 1)[1];\r\n\t\t\t \tptype = addA.get(size - 1)[2];\r\n\t\t\t \tctype = addA.get(size - 1)[3];\r\n\t\t\t \taname = addA.get(size - 1)[4];\r\n\t\t\t \ta_mode = addA.get(size - 1)[5];\r\n\t\t\t \taddA.remove(size - 1);\r\n\r\n\t\t\t \t// Generate and execute create rule\r\n\t\t\t \tString create_args[] = {\"c\", pname, cname, ptype, ctype, aname, \"bCMS\", \"Model\", \"anyname\", a_mode};\r\n\t\t\t \t//genRule.main(create_args);\r\n\t\t\t \t// Process the rule\r\n\t\t\t \tprocessRule(mode, cname, ctype, \"_F\" + i);\r\n\t\t\t }\r\n\t\t\t // Delete\r\n\t\t\t else {\r\n\t\t\t\t if (delA.size() != 0) {\r\n\t\t\t\t \t// Set parameters\r\n\t\t\t\t \tmode = \"d\";\r\n\t\t\t\t \tsize = delA.size();\r\n\t\t\t\t \tcname = delA.get(size - 1)[0];\r\n\t\t\t\t \tctype = delA.get(size - 1)[1];\r\n\t\t\t\t \tdelA.remove(size - 1);\r\n\r\n\t\t\t\t \t// Process the rule - no need to execute\r\n\t\t\t\t \tSystem.out.println(\"NAME: \" + cname);\r\n\t\t\t\t \tSystem.out.println(\"TYPE: \" + ctype);\r\n\t\t\t\t \tprocessRule(mode, cname, ctype, \"_F\" + i);\r\n\t\t\t\t }\r\n\t\t\t\t else if (addA.size() != 0) {\r\n\t\t\t\t \t// Set parameters\r\n\t\t\t\t \tmode = \"a\";\r\n\t\t\t\t \tsize = addA.size();\r\n\t\t\t\t \tpname = addA.get(size - 1)[0];\r\n\t\t\t\t \tcname = addA.get(size - 1)[1];\r\n\t\t\t\t \tptype = addA.get(size - 1)[2];\r\n\t\t\t\t \tctype = addA.get(size - 1)[3];\r\n\t\t\t\t \taname = addA.get(size - 1)[4];\r\n\t\t\t\t \ta_mode = addA.get(size - 1)[5];\r\n\t\t\t\t \taddA.remove(size - 1);\r\n\r\n\t\t\t\t \t// Generate and execute create rule\r\n\t\t\t\t \tString create_args[] = {\"c\", pname, cname, ptype, ctype, aname, \"bCMS\", \"Model\", \"anyname\", a_mode};\r\n\t\t\t\t \t//genRule.main(create_args);\r\n\t\t\t\t \t// Process the rule\r\n\t\t\t\t \tprocessRule(mode, cname, ctype, \"_F\" + i);\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t }\r\n\t\t}\r\n\r\n\t\treturn 0;\r\n\t}", "@Test\n public void testRulesetConways() {\n System.out.println(\"Conways: B3/S23\");\n byte[][] conways = {\n {0,0,0,0,0},\n {0,0,1,0,0},\n {0,0,0,1,0},\n {0,1,1,1,0},\n {0,0,0,0,0},\n }; \n \n byte[][] expResult = { \n {0,0,0,0,0},\n {0,0,0,0,0},\n {0,1,0,1,0},\n {0,0,1,1,0},\n {0,0,1,0,0},\n };\n \n ng.decodeRuleset(\"3\", \"23\");\n byte[][] result = ng.calcNextGen(conways);\n assertArrayEquals(expResult, result);\n }", "@Test\n public void testProcessProtocolResearchAreaBusinessRules() throws Exception {\n ProtocolDocument document = getNewProtocolDocument();\n setProtocolRequiredFields(document);\n // check case 1\n assertTrue(rule.processProtocolResearchAreaBusinessRules(document));\n \n // check case 2\n ProtocolResearchArea dummyPRA0 = new ProtocolResearchArea();\n ResearchArea dummyRA0 = new ResearchArea();\n dummyRA0.setActive(true);\n dummyPRA0.setResearchAreas(dummyRA0);\n \n ProtocolResearchArea dummyPRA1 = new ProtocolResearchArea();\n ResearchArea dummyRA1 = new ResearchArea();\n dummyRA1.setActive(true);\n dummyPRA1.setResearchAreas(dummyRA1);\n \n ProtocolResearchArea dummyPRA2 = new ProtocolResearchArea();\n ResearchArea dummyRA2 = new ResearchArea();\n dummyRA2.setActive(true);\n dummyPRA2.setResearchAreas(dummyRA2);\n \n ProtocolResearchArea dummyPRA3 = new ProtocolResearchArea();\n ResearchArea dummyRA3 = new ResearchArea();\n dummyRA3.setActive(true);\n dummyPRA3.setResearchAreas(dummyRA3);\n \n List<ProtocolResearchAreaBase> pras = new ArrayList<ProtocolResearchAreaBase>();\n pras.add(dummyPRA0);\n pras.add(dummyPRA1);\n pras.add(dummyPRA2);\n pras.add(dummyPRA3);\n \n document.getProtocol().setProtocolResearchAreas(pras);\n \n assertTrue(document.getProtocol().getProtocolResearchAreas(0).getResearchAreas().isActive());\n assertTrue(document.getProtocol().getProtocolResearchAreas(1).getResearchAreas().isActive());\n assertTrue(document.getProtocol().getProtocolResearchAreas(2).getResearchAreas().isActive());\n assertTrue(document.getProtocol().getProtocolResearchAreas(3).getResearchAreas().isActive());\n \n assertTrue(rule.processProtocolResearchAreaBusinessRules(document));\n \n // check case 3\n assertTrue(document.getProtocol().getProtocolResearchAreas(0).getResearchAreas().isActive());\n \n dummyRA1.setActive(false);\n assertFalse(document.getProtocol().getProtocolResearchAreas(1).getResearchAreas().isActive());\n \n assertTrue(document.getProtocol().getProtocolResearchAreas(2).getResearchAreas().isActive());\n \n dummyRA3.setActive(false);\n assertFalse(document.getProtocol().getProtocolResearchAreas(3).getResearchAreas().isActive());\n \n assertFalse(rule.processProtocolResearchAreaBusinessRules(document));\n String errorPropertyKey = INACTIVE_RESEARCH_AREAS_PREFIX + SEPERATOR + \"1.3.\";\n assertError(errorPropertyKey, KeyConstants.ERROR_PROTOCOL_RESEARCH_AREA_INACTIVE);\n }", "private boolean concurrentRuleAsymParallelIndependent(\r\n\t\t\tfinal int i,\r\n\t\t\tfinal Rule ri,\r\n\t\t\tfinal ConcurrentRule cr,\r\n\t\t\tfinal List<Rule> sequence,\r\n\t\t\tfinal int concurdepth,\r\n\t\t\tString criterion) {\n\r\n\t\tboolean result = true; \t\t\r\n\t\tint concurrrentRuleDepth = cr.getDepth();\r\n\t\t\t\r\n\t\tVector<Rule> remainList = new Vector<Rule>();\r\n\t\tfor (int l=i+1; l<sequence.size(); l++) {\r\n\t\t\tremainList.add(sequence.get(l));\r\n\t\t}\r\n\t\t\r\n\t\tVector<Rule> crSourceList = new Vector<Rule>();\r\n\t\tint start = i-concurrrentRuleDepth;\r\n\t\tfor (int l=start; l<=i; l++) {\r\n\t\t\tcrSourceList.add(sequence.get(l));\r\n\t\t}\r\n\t\t\r\n\t\t// find conflicts of concurrent rule with rules before\r\n\t\tfor (int l = 0; l<crSourceList.size(); l++) {\r\n\t\t\tRule r = crSourceList.get(l);\r\n\t\t\tint indx = start + l;\r\n\t\t\tPair<Boolean, List<String>> \r\n\t\t\truleRes = this.ruleSequence.getRuleResult(indx, r.getName(), ApplicabilityConstants.NO_IMPEDING_PREDECESSORS);\r\n\t\t\tif (ruleRes != null && !ruleRes.first.booleanValue()) {\r\n\t\t\t\tresult = false;\t\r\n//\t\t\t\tString otherRule = ruleRes.second.isEmpty()? \"\": ruleRes.second.get(0);\r\n//\t\t\t\tSystem.out.println(\"---> Concurrent rule: \"+cr.getRule().getName()+\": its base rule: \"+r.getName()+\" has conflict with \" +otherRule);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (result) {\r\n\t\t\t// find conflicts of concurrent rule with successor rules \r\n\t\t\tfor (int l = 0; l<crSourceList.size(); l++) {\r\n\t\t\t\tRule r1 = crSourceList.get(l);\r\n\t\t\t\tfor (int k=0; k<remainList.size(); k++) {\r\n\t\t\t\t\tRule r2 = remainList.get(k);\r\n\t\t\t\t\tSimpleExcludePair excludePair = this.makeExcludePair();\r\n\t\t\t\t\tif (!asymParallelIndependentByCPA(excludePair, r1, -1, r2, -1)) {\r\n\t\t\t\t\t\tresult = false;\t\r\n//\t\t\t\t\t\tSystem.out.println(\"---> Concurrent rule: \"+cr.getRule().getName()+\": its base rule: \"+r1.getName()+\" has conflict with \" +r2.getName());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} \r\n\t\t\t\t\texcludePair.dispose();\r\n\t\t\t\t}\r\n\t\t\t\tif (!result) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.info = this.getConcurrentRuleNameInfo(cr.getRule(), ri);\t\t\t\r\n\t\tsetRuleResult(i, ri.getName(), result, criterion, this.info);\t\t\t\r\n\r\n\t\tremainList.clear();\r\n\t\tcrSourceList.clear();\r\n\t\t\r\n\t\treturn result;\r\n\t}", "private void readRules(Hashtable<String, ? extends Number> lexRulesTable, Hashtable<String, ? extends Number> intRulesTable, \n\t\t\tHashtable<String, Double> posCatFreqTable, Hashtable<String, Double> intCatFreqTable) {\t\t\n\t\tlexRules = new int[lexRulesSize][2];\n\t\tlexLogProb = new double[lexRulesSize];\n\t\tintBinaryRules = new int[intBinaryRulesSize][3];\n\t\tintBinaryLogProb = new double[intBinaryRulesSize];\n\t\tintUnaryRules = new int[intUnaryRulesSize][2];\n\t\tintUnaryLogProb = new double[intUnaryRulesSize];\t\t\t\t\n\t\trulesOfWord = new int[lexCount][];\n\t\tbinaryRulesOfLeftChild = new int[catCount][];\n\t\tunaryRulesOfLeftChild = new int[catCount][];\n\t\tint lexRuleCount = 0;\n\t\tfor(Enumeration<String> e = lexRulesTable.keys(); e.hasMoreElements(); ) {\n\t\t\tString rule = (String)e.nextElement();\n\t\t\tdouble count = lexRulesTable.get(rule).doubleValue();\t\n\t\t\tString[] ruleSplit = rule.split(\" \");\n\t\t\tint parentIndex = catIndex.get(ruleSplit[0]);\n\t\t\tint wordIndex = lexIndex.get(ruleSplit[1]);\t\t\t\t\t\t\t\t\t\n\t\t\tdouble parentFreq = posCatFreqTable.get(ruleSplit[0]);\t\t\t\n\t\t\tlexRules[lexRuleCount] = new int[]{parentIndex, wordIndex};\n\t\t\tlexLogProb[lexRuleCount] = Math.log(count / parentFreq);\n\t\t\trulesOfWord[wordIndex] = Utility.appendIntArraySet(rulesOfWord[wordIndex], lexRuleCount);\n\t\t\tlexRuleCount++;\n\t\t}\n\t\tint intBinaryRuleCount=0, intUnaryRuleCount=0;\n\t\tfor(Enumeration<String> e = intRulesTable.keys(); e.hasMoreElements(); ) {\n\t\t\tString rule = (String)e.nextElement();\n\t\t\tdouble count = intRulesTable.get(rule).doubleValue();\t\n\t\t\tString[] ruleSplit = rule.split(\" \");\n\t\t\tint parentIndex = catIndex.get(ruleSplit[0]);\n\t\t\tint leftDaughterIndex = catIndex.get(ruleSplit[1]);\n\t\t\tdouble parentFreq = intCatFreqTable.get(ruleSplit[0]);\n\t\t\tif (ruleSplit.length>2) {\n\t\t\t\tint rightDaughterIndex = catIndex.get(ruleSplit[2]);\t\t\t\t\n\t\t\t\tintBinaryRules[intBinaryRuleCount] = new int[]{parentIndex, leftDaughterIndex, rightDaughterIndex};\t\t\t\t\t\t\n\t\t\t\tintBinaryLogProb[intBinaryRuleCount] = Math.log(count / parentFreq);\n\t\t\t\tbinaryRulesOfLeftChild[leftDaughterIndex] = Utility.appendIntArraySet(binaryRulesOfLeftChild[leftDaughterIndex], intBinaryRuleCount);\n\t\t\t\tintBinaryRuleCount++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tintUnaryRules[intUnaryRuleCount] = new int[]{parentIndex, leftDaughterIndex};\n\t\t\t\tintUnaryLogProb[intUnaryRuleCount] = Math.log(count / parentFreq);\n\t\t\t\tunaryRulesOfLeftChild[leftDaughterIndex] = Utility.appendIntArraySet(unaryRulesOfLeftChild[leftDaughterIndex], intUnaryRuleCount);\n\t\t\t\tintUnaryRuleCount++;\n\t\t\t}\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void setRules() {\n\t\tthis.result = Result.START;\n\t\t// Create all initial rule executors, and shuffle them if needed.\n\t\tthis.rules = new LinkedList<>();\n\t\tModule module = getModule();\n\t\tfor (Rule rule : module.getRules()) {\n\t\t\tRuleStackExecutor executor = (RuleStackExecutor) getExecutor(rule, getSubstitution());\n\t\t\texecutor.setContext(module);\n\t\t\tthis.rules.add(executor);\n\t\t}\n\t\tif (getRuleOrder() == RuleEvaluationOrder.RANDOM || getRuleOrder() == RuleEvaluationOrder.RANDOMALL) {\n\t\t\tCollections.shuffle((List<RuleStackExecutor>) this.rules);\n\t\t}\n\t}", "Rule createRule();", "Rule createRule();", "Rule createRule();", "java.lang.String getRule();", "private Grammar createCombinedGrammar(List<ClassDSLInformation> classesInfos) {\n\n\tLinkedList<GrammarCollectionBox> collectionCollector = new LinkedList<GrammarCollectionBox>();\n\n\tfor (ClassDSLInformation classInfo : classesInfos) {\n\n\t List<MethodDSLInformation> validMinfs = filterOnlyValidMethodInformations(classInfo);\n\n\t for (MethodDSLInformation methodInfo : validMinfs) {\n\n\t\tGrammarCollectionBox box = new GrammarCollectionBox(methodInfo);\n\n\t\tDslMethodType dslType = methodInfo.getDSLType();\n\t\tswitch (dslType) {\n\n\t\tcase Literal:\n\t\t // this.handleLiteral(methodInfo, box,\n\t\t // getTypeHandlerConfigurationOnGrammar(classesInfos, box));\n\t\t // this.handleNonLiteral(methodInfo, box,\n\t\t // getTypeHandlerConfigurationOnGrammar(classesInfos, box));\n\t\t // break;\n\t\t //$FALL-THROUGH$\n\t\tcase Operation:\n\t\t this.handleNonLiteral(methodInfo, box, getTypeHandlerConfigurationOnGrammar(classesInfos, box));\n\t\t break;\n\n\t\tcase AbstractionOperator:\n\t\t throw new UnsupportedOperationException(\"Functionality not yet implemented for \" + dslType);\n\t\tdefault:\n\t\t throw illegalForArg(dslType);\n\t\t}\n\t\tcollectionCollector.add(box);\n\t }\n\t}\n\n\t/* Add rule annotations where necessary */\n\n\t// build lookup list for relative priorization lookup\n\tMap<String, GrammarCollectionBox> uidLookupList = new HashMap<String, GrammarCollectionBox>();\n\tfor (GrammarCollectionBox box : collectionCollector) {\n\t uidLookupList.put(box.methodInfo.getUniqueIdentifier(), box);\n\t}\n\tuidLookupList = Collections.unmodifiableMap(uidLookupList);\n\tfor (GrammarCollectionBox grammarCollectionBox : collectionCollector) {\n\t addRuleAnnotations(grammarCollectionBox, uidLookupList);\n\t}\n\n\t/*\n\t * Assemble actual grammar from collected and configured rules and\n\t * categories\n\t */\n\tGrammar grammar = new Grammar();\n\tthis.setupGeneralGrammar(grammar);\n\n\tboolean waterSupported = isWaterSupported(classesInfos);\n\tif (waterSupported) {\n\t this.setWaterEnabled(waterSupported, grammar);\n\t}\n\n\tfor (ClassDSLInformation classInfo : classesInfos) {\n\t this.setupHostLanguageRules(classInfo.getHostLanguageRules(), grammar);\n\t}\n\n\tfor (GrammarCollectionBox box : collectionCollector) {\n\t addBoxContentToGrammar(box, grammar);\n\t}\n\n\treturn grammar;\n }", "private ConflictCause addAndWatch(final NoGood noGood) {\n\t\tint posWeakUnassigned1 = -1;\n\t\tint posWeakUnassigned2 = -1;\n\t\tint posStrongUnassigned = -1;\n\t\tint posSatisfiedLiteral1 = -1;\n\t\tint posSatisfiedLiteral2 = -1;\n\t\tint posWeakHighestAssigned = -1;\n\t\tint weakDecisionLevelHighestAssigned = -1;\n\t\tint posStrongHighestAssigned = -1;\n\t\tint strongDecisionLevelHighestAssigned = -1;\n\t\tboolean containsPositiveAssignedMBT = false;\n\t\tAssignment.Entry satisfiedLiteralEntry = null;\n\n\t\t// Used to detect always-satisfied NoGoods of form { L, -L, ... }.\n\t\tMap<Integer, Boolean> occurringLiterals = new HashMap<>();\n\n\t\t// Iterate noGood and record satisfying/unassigned/etc positions.\n\t\tfor (int i = 0; i < noGood.size(); i++) {\n\t\t\tint literal = noGood.getLiteral(i);\n\t\t\tAssignment.Entry literalEntry = assignment.get(atomOf(literal));\n\n\t\t\t// Check if NoGood can never be violated (atom occurring positive and negative)\n\t\t\tif (occurringLiterals.containsKey(atomOf(literal))) {\n\t\t\t\tif (occurringLiterals.get(atomOf(literal)) != isNegated(literal)) {\n\t\t\t\t\t// NoGood cannot be violated or propagate, ignore it.\n\t\t\t\t\tLOGGER.debug(\"Added NoGood can never propagate or be violated, ignoring it. NoGood is: \" + noGood);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\toccurringLiterals.put(atomOf(literal), isNegated(literal));\n\t\t\t}\n\n\t\t\t// Check weak unassigned.\n\t\t\tif (literalEntry == null) {\n\t\t\t\tif (posWeakUnassigned1 == -1) {\n\t\t\t\t\tposWeakUnassigned1 = i;\n\t\t\t\t} else {\n\t\t\t\t\tposWeakUnassigned2 = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Check strong unassigned for nogoods with head.\n\t\t\tif (noGood.hasHead() && i != HEAD && (literalEntry == null || literalEntry.getTruth().isMBT())) {\n\t\t\t\tposStrongUnassigned = i;\n\t\t\t}\n\t\t\t// Check satisfaction\n\t\t\tif (literalEntry != null && literalEntry.getTruth().toBoolean() != isPositive(literal)) {\n\t\t\t\tif (posSatisfiedLiteral1 == -1) {\n\t\t\t\t\tposSatisfiedLiteral1 = i;\n\t\t\t\t\tsatisfiedLiteralEntry = literalEntry;\n\t\t\t\t} else {\n\t\t\t\t\tposSatisfiedLiteral2 = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Check violation.\n\t\t\tif (literalEntry != null && literalEntry.getTruth().toBoolean() == isPositive(literal)) {\n\t\t\t\tif (literalEntry.getWeakDecisionLevel() > weakDecisionLevelHighestAssigned) {\n\t\t\t\t\tweakDecisionLevelHighestAssigned = literalEntry.getWeakDecisionLevel();\n\t\t\t\t\tposWeakHighestAssigned = i;\n\t\t\t\t}\n\t\t\t\tif (!literalEntry.getTruth().isMBT()\t// Ensure strong violation.\n\t\t\t\t\t&& literalEntry.getStrongDecisionLevel() > strongDecisionLevelHighestAssigned) {\n\t\t\t\t\tstrongDecisionLevelHighestAssigned = literalEntry.getStrongDecisionLevel();\n\t\t\t\t\tposStrongHighestAssigned = i;\n\t\t\t\t}\n\t\t\t\tif (literalEntry.getTruth().isMBT()) {\n\t\t\t\t\tcontainsPositiveAssignedMBT = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Set ordinary and alpha watches now.\n\t\t// Compute ordinary watches:\n\t\tfinal WatchedNoGood wng;\n\n\t\tif (posWeakUnassigned1 != -1 && posWeakUnassigned2 != -1) {\n\t\t\t// NoGood has two unassigned literals.\n\t\t\twng = new WatchedNoGood(noGood, posWeakUnassigned1, posWeakUnassigned2, -1);\n\t\t} else if (posSatisfiedLiteral1 != -1) {\n\t\t\t// NoGood is satisfied.\n\t\t\tint bestSecondPointer = posSatisfiedLiteral2 != -1 ? posSatisfiedLiteral2\n\t\t\t\t\t\t: posWeakUnassigned1 != -1 ? posWeakUnassigned1\n\t\t\t\t\t\t: posWeakHighestAssigned;\n\t\t\tif (posSatisfiedLiteral2 == -1 && posWeakUnassigned1 == -1) {\n\t\t\t\t// The NoGood has only one satisfied literal and is unit without it.\n\t\t\t\t// If it is unit on lower decision level than it is satisfied, it propagates the satisfying literal on lower decision level.\n\t\t\t\tif (satisfiedLiteralEntry.getWeakDecisionLevel() > weakDecisionLevelHighestAssigned) {\n\t\t\t\t\tConflictCause conflictCause = assignWeakComplement(posSatisfiedLiteral1, noGood, weakDecisionLevelHighestAssigned);\n\t\t\t\t\tif (conflictCause != null) {\n\t\t\t\t\t\treturn conflictCause;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\twng = new WatchedNoGood(noGood, posSatisfiedLiteral1, bestSecondPointer, -1);\n\t\t} else if (posWeakUnassigned1 != -1) {\n\t\t\t// NoGood is weakly unit; propagate.\n\t\t\tConflictCause conflictCause = assignWeakComplement(posWeakUnassigned1, noGood, weakDecisionLevelHighestAssigned);\n\t\t\tif (conflictCause != null) {\n\t\t\t\treturn conflictCause;\n\t\t\t}\n\t\t\twng = new WatchedNoGood(noGood, posWeakUnassigned1, posWeakHighestAssigned, -1);\n\t\t} else {\n\t\t\t// NoGood is violated.\n\t\t\treturn new ConflictCause(noGood);\n\t\t}\n\n\t\t// Compute alpha watch:\n\t\tif (noGood.hasHead()) {\n\t\t\tif (posStrongUnassigned != -1) {\n\t\t\t\t// Unassigned or MBT-assigned positive literal exists\n\t\t\t\twng.setAlphaPointer(posStrongUnassigned);\n\t\t\t} else if (posSatisfiedLiteral1 == -1 && !containsPositiveAssignedMBT) {\n\t\t\t\t// Strongly unit.\n\t\t\t\tConflictCause conflictCause = assignStrongComplement(noGood, strongDecisionLevelHighestAssigned);\n\t\t\t\tif (conflictCause != null) {\n\t\t\t\t\treturn conflictCause;\n\t\t\t\t}\n\t\t\t\twng.setAlphaPointer(posStrongHighestAssigned);\n\t\t\t} else if (posSatisfiedLiteral1 == HEAD && posSatisfiedLiteral2 == -1 && posStrongUnassigned == -1) {\n\t\t\t\t// The head is the only satisfying literal, hence it might propagate on lower decision level.\n\t\t\t\tif (satisfiedLiteralEntry.getStrongDecisionLevel() > strongDecisionLevelHighestAssigned) {\n\t\t\t\t\tConflictCause conflictCause = assignStrongComplement(noGood, strongDecisionLevelHighestAssigned);\n\t\t\t\t\tif (conflictCause != null) {\n\t\t\t\t\t\treturn conflictCause;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Set watches and register at watches structure:\n\t\tif (wng.getAlphaPointer() != -1) {\n\t\t\t// Only look at the alpha pointer if it points at a legal index. It might not\n\t\t\t// in case the noGood has no head or no positive literal.\n\t\t\taddAlphaWatch(wng);\n\t\t}\n\t\t// Set ordinary watches.\n\t\taddOrdinaryWatch(wng, 0);\n\t\taddOrdinaryWatch(wng, 1);\n\t\treturn null;\n\t}", "public AscendingRules() {}", "public static void genRule(final PLFormula psi, final RuleSet rules) {\n\t\tPLFormula[] children = ((OR) psi).getChildren();\n\t\tAND and = (AND) children[(int) (Math.random() * children.length)];\n\t\tArrayList<Integer> left = new ArrayList<>();\n\t\tleft.addAll(and.asLitSet());\n\t\tdouble changes = (left.size() / 2) - 4 + Math.random() * 3;\n\t\t\n\t\tfor(int c = 0; c < changes || left.size() > 4; c++) {\n\t\t\tif(left.size() > 1)\n\t\t\t\tleft.remove((int) (Math.random() * left.size()));\n\t\t}\n\t\t\n\t\tLitSet right = new LitSet(li);\n\t\tright.addAll(left);\n\t\tchanges = 1 + Math.random() * (left.size() * 0.9);\n\t\tInteger definitive_removal = 0;\n\t\t\n\t\tfor(int c = 0; c < changes; c++) {\n\t\t\tif(right.size() > 0) {\n\t\t\t\tdefinitive_removal = left.get((int) (Math.random() * left.size()));\n\t\t\t\tright.remove(definitive_removal);\n\t\t\t}\n\t\t}\n\t\t\n\t\tchanges = 1 + Math.random() * (right.size() / 2);\n\t\t\n\t\tfor(int c = 0; c < changes; c++) {\n\t\t\tInteger literal = (int) (Math.random() * li.getVarCount());\n\t\t\t\n\t\t\twhile(literal == definitive_removal || literal == 0 || literal == 1 || literal == -1) {\n\t\t\t\tliteral = (int) (Math.random() * li.getVarCount());\n\t\t\t}\n\t\t\t\n\t\t\tif(!right.contains(literal)) {\n\t\t\t\tright.add(literal);\n\t\t\t}\n\t\t}\n\t\t\n\t\tLitSet ls_left = new LitSet(li);\n\t\tLitSet ls_right = new LitSet(li);\n\t\tLitSet ls_context = new LitSet(li);\n\t\tls_left.addAll(left);\n\t\tls_right.addAll(right);\n\t\t\n\t\tfor(Integer l : ls_right) {\n\t\t\tif(ls_left.contains(l)) {\n\t\t\t\tls_context.add(l);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Integer l : ls_context) {\n\t\t\tls_left.remove(l);\n\t\t\tls_right.remove(l);\n\t\t}\n\t\t\n\t\trules.addRule(new AND(li, ls_context), new AND(li, ls_left), new AND(li, ls_right), RULE_COSTS);\n\t}", "public static ArrayList<Rule> getRulesFromItemset(ArrayList<String> itemSet, DataSet dataSet, double minConfidence) {\n\t\tArrayList<Rule> rules = new ArrayList<Rule>();\n\t\t\n\t\tArrayList<ArrayList<String>> subsets = allSubsets(itemSet);\n\t\t\n\t\tfor(ArrayList<String> subset : subsets) {\n\t\t\tRule r = new Rule();\n\t\t\tr.LHS = subset;\n\t\t\tr.RHS = complement(itemSet, subset);\n\t\t\t\n\t\t\tArrayList<String> allItems = new ArrayList<String>();\n\t\t\tallItems.addAll(r.LHS);\n\t\t\tallItems.addAll(r.RHS);\n\t\t\tr.supportFound = dataSet.findSupport(allItems);\n\t\t\tr.confidenceFound = dataSet.findConfidence(r);\n\t\t\t\n\t\t\tif(r.confidenceFound >= minConfidence) {\n\t\t\t\trules.add(r);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn rules;\n\t}", "public abstract List<NARule> getRules(Context context);", "public RuleBasedValidator() {\n globalRules = new ArrayList();\n rulesByProperty = new HashMap();\n }", "private void test() throws DroolsParserException, IOException {\n\t\tRuleBase ruleBase = initialiseDrools();\n\t\tWorkingMemory workingMemory = initializeMessageObjects(ruleBase);\n\t\tint expectedNumberOfRulesFired = 1;\n\n\t\tint actualNumberOfRulesFired = workingMemory.fireAllRules();\n\t}", "@Test\n public void testFactsPreProcessorHasUnmatchedEnabledListEntry() {\n DroolsRulesServiceFactoryFromFile reader = buildDefaultReader();\n\n EngineConfigDTO engine = new EngineConfigDTO();\n List<String> enabledPreProcessors = new ArrayList<>();\n enabledPreProcessors.add(\"MISSING_PREPROCESSOR\");\n engine.setEnabledPreProcessors(enabledPreProcessors);\n\n List<IFactsPreProcessor> preProcessors = reader.configurePreProcessors(engine, new ArrayList<String>());\n assertEquals(0, preProcessors.size());\n }", "public interface RuleConstruction extends SelectRule, DeleteRule, UpdateRule {\n\n /**\n * Check whether word is key-word\n *\n * @param word - word\n * @return false - word is not key-word\n * true - word is key-word\n */\n boolean isNotKeyWord(String word);\n\n /**\n * Check whether word is By-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isByCorrect(int currentIndex, List<String> words);\n\n /**\n * Check whether word is And-word or Or-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isAndOrCorrect(int currentIndex, List<String> words);\n\n /**\n * Check whether word is Between-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isBetweenCorrect(int currentIndex, List<String> words);\n}", "private void actOnRules() {\r\n\r\n\t\tfor(String key: myRuleBook.keySet())\r\n\t\t{\r\n\r\n\t\t\tRule rule = myRuleBook.get(key);\r\n\t\t\tSpriteGroup[] obedients = myRuleMap.get(rule);\r\n\r\n\t\t\tif(rule.isSatisfied(obedients))\r\n\t\t\t{\r\n\t\t\t\trule.enforce(obedients);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "List<IRewriteRule> overapproxRewrite(int bound, Set<Integer> emergingSymbols);", "public Rule selectRule(Vector ruleSet) {\r\n Enumeration enum2 = ruleSet.elements() ;\r\n long numClauses ;\r\n Rule nextRule ;\r\n\r\n Rule bestRule = (Rule)enum2.nextElement() ;\r\n long max = bestRule.numAntecedents() ;\r\n while (enum2.hasMoreElements()) {\r\n nextRule = (Rule)enum2.nextElement() ;\r\n if ((numClauses = nextRule.numAntecedents()) > max) {\r\n max = numClauses ;\r\n bestRule = nextRule ;\r\n }\r\n }\r\n return bestRule ;\r\n }", "public void reduce(List<T> list) {\n\t\tfor(int i = 1; i < list.size(); i++) {\n\t\t\tif(list.get(i) == null || list.get(i-1) == null) continue;\n\t\t\tint hash = list.get(i-1).hashCode();\n\t\t\tif(!rule.containsKey(hash)) continue;\n\t\t\tif(rule.get(hash).contains(list.get(i))) {\n\t\t\t\tlist.remove(i);\ti--;\n\t\t\t}\n\t\t}\n\t}", "public void testUnfoldingWithNoSuccessfulResolutions() {\n\t\t\n\t\tDatalogProgram queryProgram = fac.getDatalogProgram();\n\t\tFunction a = fac.getFunction(fac.getClassPredicate(\"A\"), fac.getVariable(\"x\"));\n\t\tFunction R = fac.getFunction(fac.getObjectPropertyPredicate(\"R\"), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tFunction lj = fac.getSPARQLLeftJoin(a, R);\n\t\tFunction head = fac.getFunction(fac.getPredicate(\"q\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tCQIE query = fac.getCQIE(head, lj);\n\t\tqueryProgram.appendRule(query);\n\n\t\t// Mapping program\n\t\tDatalogProgram p = fac.getDatalogProgram();\n\t\t// A rule 1 A(uri(x)) :- T1(x,y)\n\t\tFunction body = fac.getFunction(fac.getPredicate(\"T1\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"A\", 1), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")));\n\t\tCQIE rule1 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule1);\n\n\t\t// A rule 2 R(f(x),y) :- T2(x,y)\n\t\tbody = fac.getFunction(fac.getPredicate(\"T2\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"f\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\tCQIE rule2 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule2);\n\n\t\t// A rule 3 R(g(x),y) :- T3(x,y)\n\t\t\n\t\tbody = fac.getFunction(fac.getPredicate(\"T3\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"g\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\tCQIE rule3 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule3);\n\n\t\tDatalogUnfolder unfolder = new DatalogUnfolder(p.getRules());\n\t\tDatalogProgram result = unfolder.unfold(queryProgram, \"q\");\n\n\t\t// Only one rule should be returned where y is null\n\t\tSystem.out.println(result);\n\t\tassertEquals(1, result.getRules().size());\n\t\tassertTrue(result.getRules().toString().contains(\"null\"));\n\t\tassertTrue(result.getRules().toString().contains(\"T1(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"A(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"R(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\tassertTrue(result.getRules().get(0).getBody().size() == 1);\n\t}", "E9Rule createE9Rule();", "@Test\n\tpublic void testSimpleRuleTest() {\n\t\tSkRuleBase rule = buildThings(ONE_RULE_FILE_NAME, SkRuleBase.class, \"rule\");\n\t}", "public void makeFirstRound() {\n Strategy tactics = null;\n ArrayList<Producer> auxProducerList = new ArrayList<>(listOfProducers.getList());\n for (Distributor dst : listOfDistributors.getList()) {\n if (dst.getSubscribedproducers().isEmpty()) {\n int auxNeededPower = dst.getEnergyNeededKW();\n if (dst.getProducerStrategy().equals(\"GREEN\")) {\n tactics = new GreenStrategy();\n } else if (dst.getProducerStrategy().equals(\"PRICE\")) {\n tactics = new PriceStrategy();\n } else if (dst.getProducerStrategy().equals(\"QUANTITY\")) {\n tactics = new QuantityStrategy();\n }\n tactics.sorter(auxProducerList);\n for (Producer p : auxProducerList) {\n if (!(p.getMaxDistributors() == p.getCurrDistributors())) {\n dst.addSubscribedproducer(p);\n p.addDistIDs(dst.getId());\n p.addObserver(dst);\n p.setCurrDistributors(p.getCurrDistributors() + 1);\n auxNeededPower -= p.getEnergyPerDistributor();\n if (auxNeededPower < 0) {\n break;\n }\n }\n }\n }\n }\n\n Distributor bestDist = listOfDistributors.getBestDistinRound();\n\n for (Consumer auxcons : listOfConsumers.getList()) {\n auxcons.setBudget(auxcons.getInitialBudget() + auxcons.getMonthlyIncome());\n auxcons.setIdofDist(bestDist.getId());\n auxcons.setMonthstoPay(bestDist.getContractLength());\n auxcons.setToPay(bestDist.getContractPrice());\n bestDist.addSubscribedconsumer(auxcons);\n if (auxcons.getBudget() >= auxcons.getToPay()) {\n auxcons.addtoBudget(-auxcons.getToPay());\n auxcons.reduceMonths();\n bestDist.addBudget(auxcons.getToPay());\n } else {\n auxcons.setDuepayment(auxcons.getToPay());\n auxcons.reduceMonths();\n }\n if (auxcons.getMonthstoPay() == 0) {\n auxcons.setIdofDist(-1);\n }\n }\n\n for (Distributor d : listOfDistributors.getList()) {\n if (d.isBankrupt()) {\n continue;\n }\n d.reduceBudget();\n if (d.getBudget() < 0) {\n d.setBankrupt(true);\n }\n }\n }", "@Test\n\t\tpublic void noApplyGoal() {\n\t\t\tassertFailure(\" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3\");\n\t\t}", "public Taboo(List<T> rules) {\n\t\trule = new HashMap<>();\n\t\tfor(int i = 0; i < rules.size() - 1; i++) {\n\t\t\tif(rules.get(i) == null || rules.get(i+1) == null) continue;\n\t\t\tint hash = rules.get(i).hashCode();\n\t\t\tif(rule.containsKey(hash)) {\n\t\t\t\trule.get(hash).add(rules.get(i+1));\n\t\t\t}else {\n\t\t\t\tSet<T> val = new HashSet<>();\n\t\t\t\tval.add(rules.get(i+1));\n\t\t\t\trule.put(hash, val); \t\n\t\t\t}\n\t\t}\n\t}", "public void generatePropositions() {\r\n propositions.clear();\r\n\r\n\t\t// holds alternative options for each constituents (obtained by\r\n // processing coordinated conjunctions and xcomps)\r\n final List<List<Constituent>> constituents = new ArrayList<List<Constituent>>();\r\n\r\n // which of the constituents are required?\r\n final List<Flag> flags = new ArrayList<Flag>();\r\n final List<Boolean> include = new ArrayList<Boolean>();\r\n\r\n\t\t// holds all valid combination of constituents for which a proposition\r\n // is to be generated\r\n final List<List<Boolean>> includeConstituents = new ArrayList<List<Boolean>>();\r\n\r\n // let's start\r\n for (Clause clause : clauses) {\r\n // process coordinating conjunctions\r\n constituents.clear();\r\n for (int i = 0; i < clause.constituents.size(); i++) {\r\n\t\t\t\t// if(xcomp && clause.subject == i) continue; //An xcomp does\r\n // not have an internal subject so should not be processed here\r\n Constituent constituent = clause.constituents.get(i);\r\n List<Constituent> alternatives;\r\n if (!(xcomp && clause.subject == i)\r\n && constituent instanceof IndexedConstituent\r\n // the processing of the xcomps is done in Default\r\n // proposition generator. \r\n // Otherwise we get duplicate propositions.\r\n && !clause.xcomps.contains(i)\r\n && ((i == clause.verb && options.processCcAllVerbs) || (i != clause.verb && options.processCcNonVerbs))) {\r\n alternatives = ProcessConjunctions.processCC(depTree,\r\n clause, constituent, i);\r\n } else if (!(xcomp && clause.subject == i)\r\n && clause.xcomps.contains(i)) {\r\n alternatives = new ArrayList<Constituent>();\r\n ClausIE xclausIE = new ClausIE(options);\r\n xclausIE.semanticGraph = semanticGraph;\r\n xclausIE.depTree = depTree;\r\n xclausIE.xcomp = true;\r\n xclausIE.clauses = ((XcompConstituent) clause.constituents\r\n .get(i)).getClauses();\r\n xclausIE.generatePropositions();\r\n for (Proposition p : xclausIE.propositions) {\r\n StringBuilder sb = new StringBuilder();\r\n String sep = \"\";\r\n for (int j = 0; j < p.constituents.size(); j++) {\r\n if (j == 0) // to avoid including the subjecct, We\r\n {\r\n continue; // could also generate the prop\r\n }\t\t\t\t\t\t\t // without the subject\t\t\t\t\t\t\t\t\t\t\t\r\n sb.append(sep);\r\n sb.append(p.constituents.get(j));\r\n sep = \" \";\r\n }\r\n alternatives.add(new TextConstituent(sb.toString(),\r\n constituent.type));\r\n }\r\n } else {\r\n alternatives = new ArrayList<Constituent>(1);\r\n alternatives.add(constituent);\r\n }\r\n constituents.add(alternatives);\r\n }\r\n\r\n\t\t\t// create a list of all combinations of constituents for which a\r\n // proposition should be generated\r\n includeConstituents.clear();\r\n flags.clear();\r\n include.clear();\r\n for (int i = 0; i < clause.constituents.size(); i++) {\r\n Flag flag = clause.getFlag(i, options);\r\n flags.add(flag);\r\n include.add(!flag.equals(Flag.IGNORE));\r\n }\r\n if (options.nary) {\r\n\t\t\t\t// we always include all constituents for n-ary ouput \r\n // (optional parts marked later)\r\n includeConstituents.add(include);\r\n } else {\r\n // triple mode; determine which parts are required\r\n for (int i = 0; i < clause.constituents.size(); i++) {\r\n include.set(i, flags.get(i).equals(Flag.REQUIRED));\r\n }\r\n\r\n // create combinations of required/optional constituents\r\n new Runnable() {\r\n int noOptional;\r\n\r\n // @Override\r\n public void run() {\r\n noOptional = 0;\r\n for (Flag f : flags) {\r\n if (f.equals(Flag.OPTIONAL)) {\r\n noOptional++;\r\n }\r\n }\r\n run(0, 0, new ArrayList<Boolean>());\r\n }\r\n\r\n private void run(int pos, int selected, List<Boolean> prefix) {\r\n if (pos >= include.size()) {\r\n if (selected >= Math.min(options.minOptionalArgs,\r\n noOptional)\r\n && selected <= options.maxOptionalArgs) {\r\n includeConstituents.add(new ArrayList<Boolean>(\r\n prefix));\r\n }\r\n return;\r\n }\r\n prefix.add(true);\r\n if (include.get(pos)) {\r\n run(pos + 1, selected, prefix);\r\n } else {\r\n if (!flags.get(pos).equals(Flag.IGNORE)) {\r\n run(pos + 1, selected + 1, prefix);\r\n }\r\n prefix.set(prefix.size() - 1, false);\r\n run(pos + 1, selected, prefix);\r\n }\r\n prefix.remove(prefix.size() - 1);\r\n }\r\n }.run();\r\n }\r\n\r\n // create a temporary clause for which to generate a proposition\r\n final Clause tempClause = clause.clone();\r\n\r\n // generate propositions\r\n new Runnable() {\r\n public void run() {\r\n // select which constituents to include\r\n for (List<Boolean> include : includeConstituents) {\r\n // now select an alternative for each constituent\r\n selectConstituent(0, include);\r\n }\r\n }\r\n\r\n void selectConstituent(int i, List<Boolean> include) {\r\n if (i < constituents.size()) {\r\n if (include.get(i)) {\r\n List<Constituent> alternatives = constituents\r\n .get(i);\r\n for (int j = 0; j < alternatives.size(); j++) {\r\n tempClause.constituents.set(i,\r\n alternatives.get(j));\r\n selectConstituent(i + 1, include);\r\n }\r\n } else {\r\n selectConstituent(i + 1, include);\r\n }\r\n } else {\r\n // everything selected; generate\r\n propositionGenerator.generate(propositions, tempClause,\r\n include);\r\n }\r\n }\r\n }.run();\r\n }\r\n }", "@Override\r\n public final int getUselessCount() {\r\n int i;\r\n\r\n i = 0;\r\n for (Rule r : this.m_rules) {\r\n if (r.isUseless())\r\n i++;\r\n }\r\n\r\n return i;\r\n }", "private boolean concurrentRuleAsymParallelIndependentByCPA(\r\n\t\t\tfinal int i,\r\n\t\t\tfinal Rule ri,\r\n\t\t\tfinal ConcurrentRule cr,\r\n\t\t\tfinal List<Rule> sequence,\r\n\t\t\tfinal int concurdepth,\r\n\t\t\tString criterion) {\n\t\t\r\n\t\tboolean result = true; \r\n\t\tVector<Rule> tmp = new Vector<Rule>();\r\n\t\ttmp.addAll(sequence);\r\n\t\tint n = 0;\r\n\t\twhile (concurdepth-n >= 0) {\t\t\t\r\n\t\t\ttmp.remove(i-n);\r\n\t\t\tn++;\r\n\t\t}\r\n\t\tif ((i-n) < 0) {\r\n\t\t\ttmp.add(0, cr.getRule());\r\n\t\t} else {\r\n\t\t\ttmp.add(i-n, cr.getRule());\r\n\t\t}\r\n\t\tint c = tmp.indexOf(cr.getRule());\r\n\t\t\r\n\t\t// find conflicts of concurrent rule with rules before\r\n\t\tfor (int j=0; j<c; j++) {\r\n\t\t\tfinal Rule rj = tmp.get(j);\t\r\n\t\t\tfinal SimpleExcludePair excludePair = this.makeExcludePair();\t\t\t\t\r\n\t\t\tif(!asymParallelIndependentByCPA(excludePair, rj, -1, cr.getRule(), -1)) {\r\n\t\t\t\tresult = false;\t\t\r\n//\t\t\t\tSystem.out.println(\"---> Concurrent rule: \"+cr.getRule().getName()+\" has conflict with \" +rj.getName());\r\n\t\t\t\tbreak;\r\n\t\t\t} \r\n\t\t\texcludePair.dispose();\r\n\t\t}\r\n\t\tif (result) {\r\n\t\t\t// find conflicts of concurrent rule with successor rules\r\n\t\t\tfor (int l=c+1; l<tmp.size(); l++) {\r\n\t\t\t\tfinal Rule rj = tmp.get(l);\t\r\n\t\t\t\tfinal SimpleExcludePair excludePair = this.makeExcludePair();\r\n\t\t\t\tif (!asymParallelIndependentByCPA(excludePair, cr.getRule(), -1, rj, -1)) {\r\n\t\t\t\t\tresult = false;\t\r\n//\t\t\t\t\tSystem.out.println(\"---> Concurrent rule: \"+cr.getRule().getName()+\" has conflict with \" +rj.getName());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} \r\n\t\t\t\texcludePair.dispose();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.info = this.getConcurrentRuleNameInfo(cr.getRule(), ri);\r\n\t\tsetRuleResult(i, ri.getName(), result, criterion, this.info);\r\n//\t\tSystem.out.println(\"=== >>> Concurrent rule: \"+cr.getRule().getName()+\" is applicable without conflicts!\");\r\n\t\t\t\t\r\n\t\ttmp.clear();\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public static void main(String[] args) throws InvalidRuleNumException {\n\t\tCell[] cells = new Cell[5];\n\t\tcells[0] = new Cell(CellState.OFF);\n\t\tcells[1] = new Cell(CellState.OFF);\n\t\tcells[2] = new Cell(CellState.ON);\n\t\tcells[3] = new Cell(CellState.OFF);\n\t\tcells[4] = new Cell(CellState.OFF);\n\n\n\t\t\n\t\tGeneration gen1 = new Generation(cells);\n\t\tSystem.out.println(\"Gen1 CELL: \" + gen1.toString());\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tString stateString = \"..O..\";\n\t\tGeneration gen2 = new Generation(stateString);\n\t\tSystem.out.println(\"Gen2 STRING : \" + gen2.toString());\n\t\t\n\t\t\n\t\t\n//\t\tCellState[] states = new CellState{};\n//\t\tGeneration gen3 = new Generation(states);\n//\t\tSystem.out.println(\"Gen3 CELLSTATES : \" + gen3.toString());\n\n\t\t\n\t\t\n\t\tRule rule1 = new ElementaryRule(30);\n\t\tBoundaryConditions bf = new FixedBoundaryConditions(CellState.OFF, CellState.OFF);\n\t\tAutomaton au1 = new Automaton(rule1 ,gen1, bf);\n\t\tSystem.out.println(\"Gen 1:\" + gen1);\n\t\tSystem.out.println(\"init auto: \" + au1);\n\t\tau1.evolve(7);\n\t\tSystem.out.println(\"test: au1 history: \" + au1.getHistory());\n\t\t\n\t\t\n\t\tSystem.out.println(\"rule1 getNeighborhood: \" + Arrays.deepToString(rule1.getNeighborhood(2, gen1, bf)));\n\t\tSystem.out.println(\"rule 1 to string\");\n\t\trule1.toString();\n\t\t\n\t\tRule rule2 = new ElementaryRule(22);\n\t\tSystem.out.println(\"rule 2 to string\");\n\t\trule2.toString();\n\t\t\n\t\t\n\t\t\n\t\t\n//\t\trule2.toString();\n//\t\tCellState[] state2 = {CellState.OFF, CellState.OFF, CellState.OFF, CellState.ON, CellState.OFF, CellState.OFF, CellState.OFF};\n//\t\tGeneration gen2 = new Generation(state2);\n//\t\tSystem.out.println(gen2);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void populateRules() {\n BeerTemperatureLimitDTO beer1 = new BeerTemperatureLimitDTO();\n beer1.setMinimumThreshold(4.0);\n beer1.setMaximumThreshold(6.0);\n temperatureLimitsMap.put(\"Pilsner\", beer1);\n\n BeerTemperatureLimitDTO beer2 = new BeerTemperatureLimitDTO();\n beer2.setMinimumThreshold(5.0);\n beer2.setMaximumThreshold(6.0);\n temperatureLimitsMap.put(\"IPA\", beer2);\n\n BeerTemperatureLimitDTO beer3 = new BeerTemperatureLimitDTO();\n beer3.setMinimumThreshold(4.0);\n beer3.setMaximumThreshold(7.0);\n temperatureLimitsMap.put(\"Lager\", beer3);\n\n BeerTemperatureLimitDTO beer4 = new BeerTemperatureLimitDTO();\n beer4.setMinimumThreshold(6.0);\n beer4.setMaximumThreshold(8.0);\n temperatureLimitsMap.put(\"Stout\", beer4);\n\n BeerTemperatureLimitDTO beer5 = new BeerTemperatureLimitDTO();\n beer5.setMinimumThreshold(3.0);\n beer5.setMaximumThreshold(5.0);\n temperatureLimitsMap.put(\"Wheat beer\", beer5);\n\n\n BeerTemperatureLimitDTO beer6 = new BeerTemperatureLimitDTO();\n beer6.setMinimumThreshold(4.0);\n beer6.setMaximumThreshold(6.0);\n temperatureLimitsMap.put(\"Pale Ale\", beer6);\n }", "private void extractRules(List<Integer> pattern, List<Integer> testFeatures, List<LACRule> extractedRules, int[] numPatterns)\n\t{\n\t\tnumPatterns[0]++;\n\t\tList<LACRule> rules = getRules(pattern);\n\t\t\t\n\t\tif(rules != null && rules.size() > 0)\n\t\t{\n\t\t\textractedRules.addAll(rules);\n\t\t\t\n\t\t\tif(pattern.size() < maxRuleSize)\n\t\t\t{\n\t\t\t\tList<List<Integer>> combinations = new ArrayList<List<Integer>>();\n\t\t\t\tint size = testFeatures.size();\n\t\t\t\tfor (int i = 0; i < size; i++)\n\t\t\t\t{\n\t\t\t\t\tint element = testFeatures.get(i);\n\t\t\t\t\tif (mustAddElement(element, pattern))\n\t\t\t\t\t{\n\t\t\t\t\t\tList<Integer> newFeatCombination = new ArrayList<Integer>(pattern.size() + 1);\n\t\t\t\t\t\tnewFeatCombination.addAll(pattern);\n\t\t\t\t\t\tnewFeatCombination.add(element);\n\t\t\t\t\t\tcombinations.add(newFeatCombination);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint numCombinations = combinations.size();\n\t\t\t\tfor(int i = 0; i < numCombinations; i++)\n\t\t\t\t{\n\t\t\t\t\textractRules(combinations.get(i), testFeatures, extractedRules, numPatterns);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.6821413", "0.6723344", "0.6339163", "0.6105376", "0.6063929", "0.6014645", "0.6008075", "0.5997898", "0.59496284", "0.5858526", "0.5782401", "0.57792515", "0.56654966", "0.5657176", "0.5651366", "0.56240153", "0.55996233", "0.55950654", "0.5507722", "0.5440441", "0.5371213", "0.5307021", "0.5296558", "0.5288939", "0.5288605", "0.5258876", "0.5257963", "0.52232915", "0.52131665", "0.52074116", "0.5201228", "0.52004063", "0.51886123", "0.5187716", "0.518194", "0.51815706", "0.518057", "0.51772946", "0.5169827", "0.5167135", "0.51589245", "0.51451415", "0.51312476", "0.5127422", "0.5122934", "0.5122749", "0.5115991", "0.51138943", "0.51070225", "0.50925124", "0.5089025", "0.50881356", "0.50857294", "0.50813764", "0.5078229", "0.5068728", "0.5060969", "0.50189877", "0.5010115", "0.50097704", "0.49939114", "0.4984926", "0.4978471", "0.49741873", "0.4967434", "0.49666807", "0.49643812", "0.49632445", "0.49583304", "0.4956901", "0.49511102", "0.49511102", "0.49511102", "0.4950318", "0.49489477", "0.49432296", "0.49431628", "0.4940324", "0.4939694", "0.4939162", "0.4937912", "0.49378476", "0.4936457", "0.49322543", "0.49297094", "0.4923179", "0.49121442", "0.4906987", "0.49062097", "0.49060354", "0.490048", "0.489458", "0.48783416", "0.4869657", "0.48601928", "0.48571578", "0.48523855", "0.48503417", "0.48503193", "0.4849347" ]
0.608175
4
Using HashMaps, we are able to quicly determine where both Rules occur at the same time
public ArrayList <Integer> getIntersection (RuleSet RS) { ArrayList <Integer> a = new ArrayList (); HashSet<Integer> map1 = new HashSet<>(this.indexesOfPrec); HashSet<Integer> map2 = new HashSet<>(RS.indexesOfPrec); map1.retainAll(map2); a.addAll(map1); return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashMap<String,ArrayList<Rule_in_State>> get_rules_of_next_state() throws Exception;", "public HashMap<String,Rule> get_rules_to_action() throws Exception;", "private void getSensorConditions(List<RuleInstance> rules,Set<Condition> conds)\n{\n for (int i = 0; i < rules.size(); ++i) {\n RuleInstance ri1 = rules.get(i);\n for (int j = i+1; j < rules.size(); ++j) {\n\t RuleInstance ri2 = rules.get(j);\n\t if (ri1.getStateId() == ri2.getStateId()) continue;\n\t addSensorConditions(ri1,ri2,conds);\n }\n }\n}", "private static int part2(final Map<Integer, Rule> ruleMap, final List<String> messages) {\n final String rule8String = \"8: 42 | 42 42 | 42 42 42 | 42 42 42 42 | 42 42 42 42 42 | 42 42 42 42 42 42\";\n final String rule11String = \"11: 42 31 | 42 42 31 31 | 42 42 42 31 31 31 | 42 42 42 42 31 31 31 31 | 42 42 42 42 42 31 31 31 31 31\";\n \n Rule.createRule(rule8String, ruleMap);\n Rule.createRule(rule11String, ruleMap);\n \n return part1(ruleMap, messages);\n }", "protected Map<String, Object> initRuleset(long tm, Map ph, long[] ruleInfo){\n Object o;\n Map<String, Object> rule;\n Iterator iter;\n List list;\n String key, str, ruleName, preferredOutName;\n long[] outInfo;\n int i, k, n, id;\n\n if (ph == null || ph.size() <= 0)\n throw(new IllegalArgumentException(\"Empty property for a rule\"));\n if (ruleInfo == null || ruleInfo.length <= RULE_TIME)\n throw(new IllegalArgumentException(\"ruleInfo is not well defined\"));\n ruleName = (String) ph.get(\"Name\");\n if (ruleName == null || ruleName.length() == 0)\n throw(new IllegalArgumentException(\"ruleName is not defined\"));\n\n rule = new HashMap<String, Object>();\n rule.put(\"Name\", ruleName);\n preferredOutName = (String) ph.get(\"PreferredOutLink\");\n if(preferredOutName !=null && (i=assetList.getID(preferredOutName))<=0){\n preferredOutName = assetList.getKey(outLinkMap[NOHIT_OUT]);\n new Event(Event.WARNING, name + \": OutLink for \" +\n ruleName + \" not well defined, use the default: \"+\n preferredOutName).send();\n }\n\n rule.put(\"Filter\", new MessageFilter(ph));\n if ((o = rule.get(\"Filter\")) == null)\n throw(new IllegalArgumentException(ruleName +\n \": Filter is not well defined\"));\n\n for (i=0; i<=RULE_TIME; i++)\n ruleInfo[i] = 0;\n\n ruleInfo[RULE_STATUS] = NODE_RUNNING;\n ruleInfo[RULE_TIME] = tm;\n\n // store TimeToLive into RULE_TTL field\n if ((o = ph.get(\"TimeToLive\")) != null && o instanceof String)\n ruleInfo[RULE_TTL] = 1000 * Integer.parseInt((String) o);\n else\n ruleInfo[RULE_TTL] = 0;\n\n // store Heartbeat into RULE_MODE field\n if ((o = ph.get(\"Heartbeat\")) != null && o instanceof String)\n ruleInfo[RULE_MODE] = 1000 * Integer.parseInt((String) o);\n else\n ruleInfo[RULE_MODE] = defaultHeartbeat;\n\n if ((o = ph.get(\"DisplayMask\")) != null && o instanceof String) {\n ruleInfo[RULE_DMASK] = Integer.parseInt((String) o);\n rule.put(\"DisplayMask\", o);\n }\n else\n ruleInfo[RULE_DMASK] = 0;\n\n if (preferredOutName != null) {\n ruleInfo[RULE_PID] = TYPE_BYPASS;\n ruleInfo[RULE_OID] = assetList.getID(preferredOutName);\n }\n else if ((o = ph.get(\"Monitor\")) != null && o instanceof Map) {\n str = \"<Monitor>\" + JSON2Map.toXML((Map) o) +\n \"</Monitor>\";\n rule.put(\"Template\", new Template(str));\n // store on-wait Option into RULE_OPTION field\n if ((o = ph.get(\"Option\")) != null)\n ruleInfo[RULE_OPTION] = Integer.parseInt((String) o);\n // store Capacity into RULE_EXTRA field\n if ((o = ph.get(\"Capacity\")) != null)\n ruleInfo[RULE_EXTRA] = Integer.parseInt((String) o);\n else\n ruleInfo[RULE_EXTRA] = 64;\n // store MaxRetry into RULE_GID field\n if ((o = ph.get(\"MaxRetry\")) != null)\n ruleInfo[RULE_GID] = Integer.parseInt((String) o);\n else\n ruleInfo[RULE_GID] = 2;\n rule.put(\"TaskList\", new AssetList(ruleName,\n (int) ruleInfo[RULE_EXTRA]));\n\n if (ph.containsKey(\"EventPattern\"))\n rule.put(\"Selector\", new EventSelector(ph));\n ruleInfo[RULE_PID] = TYPE_ACTION;\n ruleInfo[RULE_OID] = outLinkMap[POOL_OUT];\n }\n else {\n ruleInfo[RULE_PID] = TYPE_BYPASS;\n ruleInfo[RULE_OID] = outLinkMap[NOHIT_OUT];\n }\n outInfo = assetList.getMetaData((int) ruleInfo[RULE_OID]);\n outInfo[OUT_NRULE] ++;\n outInfo[OUT_ORULE] ++;\n\n // copy selected properties\n if ((o = ph.get(\"StringProperty\")) != null && o instanceof Map) {\n iter = ((Map) o).keySet().iterator();\n k = ((Map) o).size();\n String[] pn = new String[k];\n k = 0;\n while (iter.hasNext()) {\n key = (String) iter.next();\n if ((pn[k] = MessageUtils.getPropertyID(key)) == null)\n pn[k] = key;\n k ++;\n }\n rule.put(\"PropertyName\", pn);\n }\n else { // copy all properties\n rule.put(\"PropertyName\", new String[0]);\n }\n\n return rule;\n }", "public RuleMap(){\n rules = new HashMap<Character, String>();\n }", "static void prediacteDiffHelper(HashMap<String, ArrayList<String>> first, \n\t\t\t\t\t\t\t\t\t\t\t\t\t HashMap<String, ArrayList<String>> second, Role role,\n\t\t\t\t\t\t\t\t\t\t\t\t\t HashMap<String, ActionRoles> output) {\n\t\tHashMap<String, ArrayList<String>> copy = new HashMap<>();\n\t\tfor (Entry<String, ArrayList<String>> entry : second.entrySet()) {\n\t\t\tcopy.put(entry.getKey(), new ArrayList<String>(entry.getValue()));\n\t\t}\n\t\tSet<String> actions = first.keySet();\n\t\tfor (String action : actions) {\n\t\t\tArrayList<String> firstPredicates = first.get(action);\n\t\t\tArrayList<String> secondPredicates = copy.get(action);\n\t\t\t// find the difference\n\t\t\tsecondPredicates.removeAll(firstPredicates);\n\t\t\t// update the HashMap\n\t\t\tfor (String predicate: secondPredicates) {\n\t\t\t\tif (output.get(predicate) == null) {\n\t\t\t\t\toutput.put(predicate, new ActionRoles());\n\t\t\t\t}\n\t\t\t\toutput.get(predicate).add(action, role);\n\t\t\t}\n\t\t}\n\t}", "public void sensibleMatches1() \n { \n Map<String, Set<String>> clientMap = new HashMap<>();\n Set<String> interests = new HashSet<>();\n\n interests.add(\"Food\");\n interests.add(\"Wine\");\n interests.add(\"Tandems\");\n clientMap.put(\"Hal\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Walking\");\n interests.add(\"Welding\");\n clientMap.put(\"Gemma\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Cinema\");\n interests.add(\"Wine\");\n clientMap.put(\"Caroline\", interests);\n\n Set<String> halsInterests = clientMap.get(\"Hal\");\n String outputString;\n Set<String> eachClientInterests;\n Set<String> intersection ;\n\n Map<String, Set<String>> mapWithoutHal = new HashMap<>(clientMap);\n mapWithoutHal.remove(\"Hal\");\n for (String eachClient : mapWithoutHal.keySet()) \n {\n eachClientInterests = clientMap.get(eachClient);\n intersection = new HashSet<>(halsInterests);\n intersection.retainAll(eachClientInterests);\n outputString = \"Hal and \" + eachClient \n + \" have common interests: \"\n + intersection;\n System.out.println(outputString);\n }\n }", "protected abstract boolean makeDecision (Map<Key, Object> context);", "public int replaceRule(String key, Map ph, XQueue in) {\n int id = ruleList.getID(key);\n if (id == 0) // can not replace the default rule\n return -1;\n else if (id > 0) { // for a normal rule\n if (ph == null || ph.size() <= 0)\n throw(new IllegalArgumentException(\"Empty property for rule\"));\n if (!key.equals((String) ph.get(\"Name\"))) {\n new Event(Event.ERR, name + \": name not match for rule \" + key +\n \": \" + (String) ph.get(\"Name\")).send();\n return -1;\n }\n if (getStatus() == NODE_RUNNING)\n throw(new IllegalStateException(name + \" is in running state\"));\n long tm = System.currentTimeMillis();\n long[] meta = new long[RULE_TIME+1];\n long[] ruleInfo = ruleList.getMetaData(id);\n Map rule = initRuleset(tm, ph, meta);\n if (rule != null && rule.containsKey(\"Name\")) {\n StringBuffer strBuf = ((debug & DEBUG_DIFF) <= 0) ? null :\n new StringBuffer();\n Map h = (Map) ruleList.set(id, rule);\n if (h != null) {\n MessageFilter filter = (MessageFilter) h.remove(\"Filter\");\n if (filter != null)\n filter.clear();\n AssetList list = (AssetList) h.remove(\"TaskList\");\n if (list != null)\n cleanupTasks(list);\n h.clear();\n }\n tm = ruleInfo[RULE_PID];\n for (int i=0; i<RULE_TIME; i++) { // update metadata\n switch (i) {\n case RULE_SIZE:\n break;\n case RULE_COUNT:\n if (tm == meta[RULE_PID]) // same rule type\n break;\n default:\n ruleInfo[i] = meta[i];\n }\n if ((debug & DEBUG_DIFF) > 0)\n strBuf.append(\" \" + ruleInfo[i]);\n }\n if ((debug & DEBUG_DIFF) > 0)\n new Event(Event.DEBUG, name + \"/\" + key + \" ruleInfo:\" +\n strBuf).send();\n return id;\n }\n else\n new Event(Event.ERR, name + \" failed to init rule \"+key).send();\n }\n else if (cfgList != null && cfgList.containsKey(key)) {\n return super.replaceRule(key, ph, in);\n }\n return -1;\n }", "public RuleSet (RuleSet RS1, RuleSet RS2, SensorList sList, SensorMap sMap, RuleMap rMap) {\n \n // CREATING COMBINATION RULESET FROM RS1 & RS2\n \n this.references = new ArrayList();\n this.sList = sList;\n this.rulelist = RS1.rulelist;\n this.totalProb = 0.0;\n this.id = counter.incrementAndGet();\n this.precedences = new ArrayList ();\n Sensor precondition = RS1.getPrecursorWithID().merge(RS2.getPrecursorWithID());\n\n \n ArrayList <Integer> common_non_wildcarded_indexes = RS1.getSuccessor().detectCommonNonWilcardedIndexes(RS2.getSuccessor());\n\n Sensor root = new Sensor(RS1.getPrecursorWithID().tokenMap);\n \n int number = common_non_wildcarded_indexes.size();\n \n boolean insert;\n \n // THERE IS A CONFLICT ONLY IF SOME COMMON NON WILDCARDED INDEXES EXIST\n if (number >= 1) {\n SensorList conflicted_indexes_list = root.expand(common_non_wildcarded_indexes.get(0));\n \n if (number >= 2) { \n \n // Expanding the conflicted indexes in ArrayList\n for (int h = 2; h<=number; h++) {\n \n conflicted_indexes_list.expandListAt(common_non_wildcarded_indexes.get(h-1));\n }\n }\n \n for (int j = 0; j < conflicted_indexes_list.size(); j++) {\n \n // We only need to insert the Rules with postcondition corresponding to either RS1 or RS2\n //\n // So we check for post. matches in the first and then second RuleSet\n insert = false;\n\n // SEARCHING FOR MATCH IN FIRST RULESET\n for (int h1 = 0; h1 < RS1.size(); h1++) {\n ///\n if (RS1.getSuccessor(h1).sensorMatch(conflicted_indexes_list.getSensor(j+1))) {\n insert = true;\n \n break;\n }\n }\n \n // SEARCHING FOR MATCH IN SECOND RULESET\n if (!insert) {\n \n for (int h2 = 0; h2 < RS2.size(); h2++) {\n \n \n if (RS2.getSuccessor(h2).sensorMatch(conflicted_indexes_list.getSensor(j+1))) {\n insert = true;\n \n break;\n }\n \n\n }\n }\n \n // If the Rule postcondition was found in RS1 or RS2, we shall create it\n if (insert) {\n \n Rule rule = new Rule(precondition, conflicted_indexes_list.getSensor(j+1));\n \n rule.ruleset_id = this.id;\n \n int aa = sMap.getMatchingOccurencies(precondition);\n \n int tt = rMap.getMatchingOccurencies(rule);\n \n \n rule.prec_occurrencies = aa;\n rule.occurrencies = tt;\n \n this.rulelist.addRule(rule);\n this.add(rule);\n \n }\n \n }\n \n }\n \n \n // UPDATING RULESET PROBABILITY\n if (this.size() > 0) {\n for (int i = 0; i < this.size(); i++) {\n\n totalProb = totalProb + this.getRule(i).getProb();\n totalProb = Math.round(totalProb * 1000);\n totalProb = totalProb/1000;\n \n }\n }\n \n }", "private HashMap<List<Integer>,List<Integer>> obtainValidActions(){\n\t\tHashMap<List<Integer>,List<Integer>> mapp= new HashMap<List<Integer>,List<Integer>>();\n\t\tfor (int i = 0;i<states.size();i++) {\n\t\t\tList<Integer> act= new ArrayList<Integer>();\n\t\t\tfor (int j = 0; j < actions.size(); j++) {\n\t\t\t\tif (isActionValid(states.get(i), actions.get(j))) \n\t\t\t\t\t//System.out.println(\"Inside Validation if\\n\");\n\t\t\t\t\tact.add(j);\n\t\t\t}\n\t\t\tmapp.put(states.get(i),act);\n\t\t}\n\t\treturn mapp;\n\t}", "public static void main(String[] args) {\n Map<Integer, Integer> map = new HashMap<>();\r\n map.put(1, 1); // first pair\r\n map.put(2, 1); // second pair\r\n map.put(1, 3); // update the value of first pair\r\n\r\n // book - sales\r\n Book b1 = new Book(\"learn js\", 20);\r\n Book b2 = new Book(\"learn java\", 30);\r\n // we want to consider two books with same\r\n // name and same price to be matching\r\n Book b3 = new Book(\"learn css\", 10);\r\n Book b4 = new Book(\"learn css\", 10);\r\n Book b5 = new Book(\"learn csa\", 28);\r\n Map<Book, Integer> bookSales = new HashMap<>();\r\n bookSales.put(b1, 200);\r\n bookSales.put(b2, 400);\r\n bookSales.put(b3, 600);\r\n bookSales.put(b4, 300);\r\n bookSales.put(b5, 900);\r\n // 1. b3 and b4 are consider as different key\r\n // 2. HashMap does not reserve insertion order.(sorted)\r\n System.out.println(bookSales);\r\n\r\n System.out.println(b1.hashCode()); // 1836019240\r\n System.out.println(b2.hashCode()); // 325040804\r\n System.out.println(b3.hashCode() == b4.hashCode()); // false\r\n\r\n System.out.println(calc(b1.hashCode()));\r\n System.out.println(calc(b2.hashCode()));\r\n System.out.println(calc(b3.hashCode()));\r\n System.out.println(calc(b4.hashCode()));\r\n System.out.println(calc(b5.hashCode()));\r\n\r\n System.out.println(hash(b3.hashCode()));\r\n System.out.println(hash(b4.hashCode()));\r\n System.out.println(hash(b5.hashCode()));\r\n\r\n\r\n // keys' hashcode are different, indies may be different or same.\r\n // indies which are calculated are different, keys' hash must be different\r\n\r\n // TreeMap\r\n // sorted map by key\r\n // The key must be Comparable or create map with custom comparator\r\n Comparator<String> comparator = new Comparator<String>() {\r\n @Override\r\n public int compare(String o1, String o2) {\r\n return o2.compareTo(o1);\r\n }\r\n };\r\n Map<String, Integer> scores = new TreeMap<>(comparator);\r\n scores.put(\"bob\", 80);\r\n scores.put(\"alice\", 100);\r\n scores.put(\"zack\", 90);\r\n System.out.println(scores);\r\n\r\n // LinkedHashMap: sorted map by insertion order\r\n\r\n Map<String, Integer> scores1 = new HashMap<>();\r\n scores1.put(\"alice\", 90);\r\n scores1.put(\"bob\", 80);\r\n scores1.put(\"zack\", 100);\r\n // your codes start here\r\n\r\n System.out.println(scores1); // sorted by score1(value)\r\n }", "private int pairContains(HashMap<Integer,HashSet<Integer>> pairs, int k1, int k2){\n\t\t\n\t\t\n\t\t\tif(pairs.containsKey(k1))\n\t\t\t\tif(pairs.get(k1).contains(k2))\n\t\t\t\t\treturn 2;\n\t\t\t\telse\n\t\t\t\t\treturn 1;\n\t\t\n\t\treturn 0;\n\t}", "private static int compareGoListOverlap(HashMap<String, Double> un_GoMap, HashMap<String, Double> wn_GoMap) {\n\t\tint overlap = 0; \n\t\t/* iterate over significant GO Terms in weighted Network, count those found also in unweighted network*/ \n\t\tfor(String GO: wn_GoMap.keySet()) {\n\t\t\tif(un_GoMap.containsKey(GO)) {\n\t\t\t\toverlap += 1;\n\t\t\t}\n\t\t}\n\t\treturn overlap;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tMap<Integer,Employee> map = new HashMap<Integer, Employee>();\n\t\tMap<String, Employee> hashMap = new HashMap();\n\t\tMap<Employee, Integer> hashMap1 = new HashMap();\n\t\tfor (int i =1; i<=10; i++){\n\t\t\t\n\t\t\tmap.put(i, new Employee(i+3, \"Manish\"+(i+3)));\n\t\t}\n\t\tSystem.out.println(map);\n\t\t\n\t\tEmployee emp1 = new Employee(4, \"Manish3\");\n\t\t//Use of Contains\n\t\tSystem.out.println(map.containsValue(emp1)); \n\t\t\n\t\t//Key Set\n\t\tSystem.out.println(map.keySet());\n\t\t\n\t\t//retrieve entry set\n\t\tSystem.out.println(map.entrySet());\n\t\t\n\t\t//map.forEach(action);; TO DO- need to understand this method\n\t\t\n\n\t\t//Returns in sorted order when Key is natural (permitives or String or Enum)\n\t\thashMap.put(\"A\", new Employee(1, \"Manish\"));\n\t\thashMap.put(\"C\", new Employee(3, \"Gaurav\"));\n\t\thashMap.put(\"B\", new Employee(2, \"Vinay\"));\n\t\tSystem.out.println(hashMap);\n\t\t\n\t\t//maintains insertion order when key is Object type(dont have any natural order)\n\t\thashMap1.put(new Employee(1, \"Manish\"),1);\n\t\thashMap1.put(new Employee(3, \"Gaurav\"),3);\n\t\thashMap1.put(new Employee(2, \"Vinay\"),2);\n\t\tSystem.out.println(hashMap1);\n\t\tHashMap<Long, String> masterRoomPoolMapping = new HashMap<Long, String>();\n\t\tmasterRoomPoolMapping.put(new Long(123), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(124), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(125), \"Manish\");\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSet<Long> keySet = masterRoomPoolMapping.keySet();\n\t\tSet<Long> newKeySet = new HashSet<Long>();\n\t\tfor(Long key : keySet){\n\t\t\tnewKeySet.add(new Long(key));\n\t\t}\n\t\tSystem.out.println(\"newKeySet***************************************************\");\n\t\tif(newKeySet.contains(new Long(123)))\n\t\t\tnewKeySet.remove(new Long(123));\n\t\tfor(Long key : newKeySet){\n\t\t\tSystem.out.println(key);\n\t\t}\n\t\tSystem.out.println(\"keySet1***************************************************\");\n\t\tSet<Long> keySet1 = masterRoomPoolMapping.keySet();\n\t\tfor(Long key : keySet1){\n\t\t\tSystem.out.println(masterRoomPoolMapping.get(key));\n\t\t}\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSystem.out.println(masterRoomPoolMapping);\n\t}", "public void sensibleMatches2() \n { \n Map<String, Set<String>> clientMap = new HashMap<>();\n Set<String> interests = new HashSet<>();\n\n interests.add(\"Food\");\n interests.add(\"Wine\");\n interests.add(\"Tandems\");\n clientMap.put(\"Hal\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Walking\");\n interests.add(\"Welding\");\n clientMap.put(\"Gemma\", interests);\n\n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Cinema\");\n interests.add(\"Wine\");\n clientMap.put(\"Caroline\", interests);\n\n Set<String> halsInterests = clientMap.get(\"Hal\");\n String outputString;\n Set<String> eachClientInterests;\n Set<String> intersection ;\n\n for (String eachClient : clientMap.keySet()) \n {\n if (!eachClient.equals(\"Hal\")) \n {\n eachClientInterests = clientMap.get(eachClient);\n intersection = new HashSet<>(halsInterests);\n intersection.retainAll(eachClientInterests);\n outputString = \"Hal and \" + eachClient \n + \" have common interests: \"\n + intersection;\n System.out.println(outputString);\n }\n }\n }", "private void compareDetected() {\n\t\tMap<Integer, Integer> shiftFreq = new HashMap<Integer, Integer>();\n\t\tfor (WordOccurence wordOcc : originalFreq.values()) {\n\t\t\twordOcc.calculateDifferences();\n\t\t\tif (!wordOcc.isValuesSet()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (shiftFreq.containsKey(wordOcc.getPossibleShift())) {\n\t\t\t\tshiftFreq.put(wordOcc.getPossibleShift(),\n\t\t\t\t\t\tshiftFreq.get(wordOcc.getPossibleShift()) + 1);\n\t\t\t} else {\n\t\t\t\tshiftFreq.put(wordOcc.getPossibleShift(), 1);\n\t\t\t}\n\t\t}\n\t\tshift = getMaxValuedKey(shiftFreq);\n\t}", "private void getTimeConditions(List<RuleInstance> rules,Set<Condition> conds)\n{\n for (RuleInstance ri : rules) {\n getTimeConditions(ri,rules,conds);\n }\n}", "public static void main(String[] args) {\n HashMap hmme = new HashMap();\n hmme.put(\"Name\", \"useonlyjava\");\n hmme.put(\"geolocation\", \"ondesk\");\n String[] j= {\"java\", \"etc\"};\n hmme.put(\"interest\", j);\n // so far this describes me\n HashMap hmmekid = new HashMap();\n hmme.put(\"Name\", \"useonlyjava-script\");\n hmme.put(\"geolocation\", \"onplaytable\");\n String[] k= {\"munching\", \"etc\"};\n hmme.put(\"interest\", k);\n HashMap hmmeworld = new HashMap();\n hmmeworld.put(\"Me\", hmme);\n hmmeworld.put(\"Mine\", hmmekid);\n HashMap hmnull = new HashMap();\n hmnull = null;\n \n Object[] a = compare(hmme, hmnull);\n }", "public static void main(String[] args) {\n HashMap<String, Boolean> casesToAction = new HashMap<>();\n casesToAction.put(\"a\", true);\n casesToAction.put(\"b\", true);\n casesToAction.put(\"c\", false);\n casesToAction.put(\"d\", true);\n casesToAction.put(\"e\", false);\n\n int expectedSuccessCount = Collections.frequency(casesToAction.values(), true);\n System.out.println(expectedSuccessCount);\n }", "private Set<Condition> getConditions(List<RuleInstance> rules)\n{\n Set<Condition> conds = new HashSet<Condition>();\n\n getTimeConditions(rules,conds);\n getSensorConditions(rules,conds);\n getCalendarConditions(rules,conds);\n\n return null;\n}", "public Map<AdornedAtom, List<AdornedTgd>> adornedMap() {\n Map<AdornedAtom, List<AdornedTgd>> map = new HashMap<>();\n for(AdornedAtom p: adornedPredicates) {\n ArrayList<AdornedTgd> tgd = new ArrayList<>();\n for(AdornedTgd t : adornedRules) {\n if(t.getHead().equals(p)) {\n tgd.add(t);\n }\n }\n map.put(p, tgd);\n }\n\n return map;\n }", "public void matchesDemo() \n {\n Map<String, Set<String>> clientMap = new HashMap<>();\n Set<String> interests = new HashSet<>();\n\n interests.add(\"Food\");\n interests.add(\"Wine\");\n interests.add(\"Tandems\");\n clientMap.put(\"Hal\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Walking\");\n interests.add(\"Welding\");\n clientMap.put(\"Gemma\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Cinema\");\n interests.add(\"Wine\");\n clientMap.put(\"Caroline\", interests);\n\n Set<String> halsInterests = clientMap.get(\"Hal\");\n String outputString;\n Set<String> eachClientInterests;\n Set<String> intersection;\n\n for (String eachClient : clientMap.keySet()) \n {\n eachClientInterests = clientMap.get(eachClient);\n intersection = new HashSet<>(halsInterests);\n intersection.retainAll(eachClientInterests);\n outputString = \"Hal and \" + eachClient \n + \" have common interests: \"\n + intersection;\n System.out.println(outputString) ;\n }\n }", "private void searchHashMap(String[] searchKey, String callNumber,int startYear, int endYear) {\n\t\t/* Temporarily stores next 'values' for a title keyword */\n\t\tArrayList<Integer> tempStore = new ArrayList<Integer>();\n\t\t/* Stores only the intersection 'values' of title keywords */\n\t\tCollection<Integer> intersection = new ArrayList<Integer>();\n\t\t/* Counts number of keywords found */\n\t\tint foundKeys = 0;\n\n\t\t/* Loop to iterate through title keywords and get key-value pair intersection */\n\t\tfor (String key : searchKey) {\n\t\t\tif (titleHashMap.containsKey(key)) {\n\t\t\t\tfoundKeys = foundKeys + 1;\n\t\t\t\ttempStore.addAll((titleHashMap.get(key))); /* Stores all found values */\n\t\t\t\tif (intersection.size() == 0) {\n\t\t\t\t\tintersection.addAll(titleHashMap.get(key));\n\t\t\t\t}\n\t\t\t\tintersection.retainAll(tempStore); /* Stores only common 'values' */\n\t\t\t\ttempStore.clear(); /* Clears temporary array*/\n\t\t\t}\n\t\t}\n\n\t\t/* Checks if all keywords were found */\n\t\tif(searchKey.length == foundKeys){\n\t\t/* Performs search of other fields via the reduced list of 'values' for matched record */\n\t\tfor (Integer i : intersection) {\n\t\t\tif ((callNumber.equals(\"\") || items.get(i.intValue()).getCallNumber().equalsIgnoreCase(callNumber))\n\t\t\t\t\t&& (items.get(i.intValue()).getYear() >= startYear && items.get(i.intValue()).getYear() <= endYear)) {\n\t\t\t\tSystem.out.println(\"--------------------------------------------\");\n\t\t\t\tSystem.out.println(items.get(i.intValue())); /* Prints found records from master list 'Reference' */\n\t\t\t\tSystem.out.println(\"--------------------------------------------\");\n\t\t\t}\n\t\t}\n\t\t}\n\t}", "private void checkLtContradictions(HashMap<ComparableExpression, HashSet<ComparableExpression>> ltRelation)\n throws QueryContradictoryException {\n for (Map.Entry<ComparableExpression, HashSet<ComparableExpression>> tuple : ltRelation.entrySet()) {\n ComparableExpression key = tuple.getKey();\n for (ComparableExpression value : tuple.getValue()) {\n if (key.equals(value)) {\n throw new QueryContradictoryException();\n }\n }\n }\n }", "private Map<String, String> solutionForCNSHIsFullCNCHHasOnlyOnePlace() {\r\n Map<String, String> map = new HashMap<>();\r\n map.put(this.students[0].getName(), this.schools[2].getName());\r\n map.put(this.students[1].getName(), this.schools[2].getName());\r\n map.put(this.students[2].getName(), this.schools[1].getName());\r\n map.put(this.students[3].getName(), this.schools[2].getName());\r\n return map;\r\n }", "private static int getClusterCorrespondance(Integer cl1, Integer cl2,\n HashMap<Integer, HashMap<Integer, Integer>> clusterCorresp, int nextId)\n{\n HashMap<Integer, Integer> map = clusterCorresp.get(cl1);\n if (map == null) {\n map = new HashMap<Integer, Integer>();\n map.put(cl2, nextId);\n clusterCorresp.put(cl1, map);\n return nextId;\n }\n Integer corresp = map.get(cl2);\n if (corresp == null) {\n map.put(cl2, nextId);\n return nextId;\n }\n return corresp.intValue();\n}", "private void compareFirstPass() {\n this.oldFileNoMatch = new HashMap<String, SubsetElement>();\r\n Iterator<String> iter = this.oldFile.keySet().iterator();\r\n while (iter.hasNext()) {\r\n final String key = iter.next();\r\n if (!this.newFile.containsKey(key)) {\r\n final String newKey = this.oldFile.get(key).getSubsetCode()\r\n + this.oldFile.get(key).getConceptCode();\r\n this.oldFileNoMatch.put(newKey, this.oldFile.get(key));\r\n }\r\n }\r\n\r\n // Now repeat going the other way, pulling all new file no matches into\r\n // newFileNoMatch\r\n this.newFileNoMatch = new HashMap<String, SubsetElement>();\r\n iter = this.newFile.keySet().iterator();\r\n while (iter.hasNext()) {\r\n final String key = iter.next();\r\n if (!this.oldFile.containsKey(key)) {\r\n final String newKey = this.newFile.get(key).getSubsetCode()\r\n + this.newFile.get(key).getConceptCode();\r\n this.newFileNoMatch.put(newKey, this.newFile.get(key));\r\n }\r\n }\r\n\r\n // dump the initial large HashMaps to reclaim some memory\r\n this.oldFile = null;\r\n this.newFile = null;\r\n }", "public HashMap<String, ActionRoles> predicateDiff(Predicates other) {\n\t\t// finds the difference between first and second, returns results\n\t\tHashMap<String, ActionRoles> diff = new HashMap<>();\n\t\tprediacteDiffHelper(this.preconditions, other.preconditions, Role.PRECONDITION, diff);\n\t\tprediacteDiffHelper(this.addEffects, other.addEffects,Role.ADD_EFFECT, diff);\n\t\tprediacteDiffHelper(this.delEffects, other.delEffects, Role.DELETE_EFFECT, diff);\n\t\treturn diff;\n\t}", "void modusponens(){\n\t\tHashMap<String,HashSet<Hypothesis> > temp_lhs_hypo = new HashMap<String,HashSet<Hypothesis> >();\n\t\tHashSet<Hypothesis> new_hypos = new HashSet<Hypothesis>();\n\t\t\n\t\t//Utils.println(\"hypothesis list\");\n\t\tIterator it = hypothesis.entrySet().iterator();\n\t while (it.hasNext()) {\n\t Map.Entry pairs = (Map.Entry)it.next();\n\t String A = (String)pairs.getKey();\n\t //Utils.println(\"hypothesis A : \"+A);\n\t HashSet<Hypothesis> A_B = new_lhs_hypo.get(A);\n\t if(A_B == null) {\n\t \t//Utils.println(\"No match\");\n\t \tcontinue;\n\t \t}\n\t else{\n\t \t//Utils.println(\"Matched: \"+A_B.size());\n\t \tIterator bit = A_B.iterator();\n\t \twhile (bit.hasNext()) {\n\t \t Hypothesis A_B_hypo = (Hypothesis)bit.next();\n\t\t \tHypothesis mp_hypo = makeHypothesis(A_B_hypo.rhs, 1, -1, A, A_B_hypo.expression);\n\t\t \tif(mp_hypo!=null) {\n\t\t \t\tnew_hypos.add(mp_hypo);\n\t\t\t \tif(hypothesis.containsKey(mp_hypo.expression)) {\n\t\t\t \t\t//Utils.println(\"Existing MP result: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t\t \t\t//already existing\n\t\t\t\t }else{// new hypothesis has resulted\n\t\t\t\t \t//Utils.println(\"New MP result: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t\t\t }\n\t\t \t}else{\n\t\t \t\t//Utils.println(\"MP Not Valid: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t \t}\n\t\t }\n\t }\n\t }\n\t \n\t //Utils.println(\"new hypothesis list\");\n\t it = new_lhs_hypo.entrySet().iterator();\n\t while (it.hasNext()) {\n\t Map.Entry pairs = (Map.Entry)it.next();\n\t HashSet<Hypothesis> hypos = (HashSet<Hypothesis>) pairs.getValue();\n\t Iterator<Hypothesis> Ait = hypos.iterator();\n\t while(Ait.hasNext()){\n\t \tString A = ((Hypothesis)Ait.next()).expression;\n\t \t//Utils.println(\"hypothesis A : \"+A);\n\t \tHashSet<String> B_set = lhs_hypo.get(A);\n\t \tif(B_set == null){\n\t \t\t//Utils.println(\"No match\");\n\t \t\tcontinue;\n\t \t\t}\n\t \telse{\n\t \t\t//Utils.println(\"Matched: \"+B_set.size());\n\t \t\tIterator Bit = B_set.iterator();\n\t\t \twhile(Bit.hasNext()){\n\t\t \t\tString B_str = (String) Bit.next();\n\t\t \t\tString A_B_exp = Utils.expression(A, B_str);\n\t\t \t\tHypothesis mp_hypo = makeHypothesis(B_str, 1, -1, A, A_B_exp);\n\t\t \t\tif(mp_hypo!=null) {\n\t\t\t \t\tnew_hypos.add(mp_hypo);\n\t\t\t\t \tif(hypothesis.containsKey(mp_hypo.expression)) {\n\t\t\t\t \t\t//Utils.println(\"Existing MP result: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t\t \t\t//already existing\n\t\t\t\t\t }else{// new hypothesis has resulted\n\t\t\t\t\t \t//Utils.println(\"New MP result: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t\t\t }\n\t\t\t \t}else{\n\t\t\t \t\t//Utils.println(\"MP Not Valid: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t \t}\n\t\t \t}\n\t \t}\n\t \t\n\t }\n\t }\n\t \n\t //Utils.println(\"Size of new_hypos: \"+new_hypos.size());\n\t \n\t Iterator<Hypothesis> hit = new_hypos.iterator();\n\t while(hit.hasNext()){\n\t \tHypothesis mp_hypo = hit.next();\n\t \tboolean b = insertHypothesis(mp_hypo);\n\t \tif(b){\n\t \t\tHashSet<Hypothesis> temp_hypos = temp_lhs_hypo.get(mp_hypo.lhs);\n\t \tif(temp_hypos == null){\n\t \t\ttemp_hypos = new HashSet<Hypothesis>();\n\t \t\ttemp_hypos.add(mp_hypo);\n\t \t\ttemp_lhs_hypo.put(mp_hypo.lhs, temp_hypos);\n\t \t}else{\n\t \t\ttemp_hypos.add(mp_hypo);\n\t \t}\n\t \t//Utils.printHypothesis(mp_hypo);\n\t \t}\n\t }\n\t \n\n\t //Utils.println(\"Size of temp_lhs_hypo: \"+temp_lhs_hypo.size());\n\t \n\t new_lhs_hypo.clear();\n\t new_lhs_hypo = temp_lhs_hypo;\n\t if(new_lhs_hypo.size()!=0) modusponens();\n\t}", "private void actOnRules() {\r\n\r\n\t\tfor(String key: myRuleBook.keySet())\r\n\t\t{\r\n\r\n\t\t\tRule rule = myRuleBook.get(key);\r\n\t\t\tSpriteGroup[] obedients = myRuleMap.get(rule);\r\n\r\n\t\t\tif(rule.isSatisfied(obedients))\r\n\t\t\t{\r\n\t\t\t\trule.enforce(obedients);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void readRules(Hashtable<String, ? extends Number> lexRulesTable, Hashtable<String, ? extends Number> intRulesTable, \n\t\t\tHashtable<String, Double> posCatFreqTable, Hashtable<String, Double> intCatFreqTable) {\t\t\n\t\tlexRules = new int[lexRulesSize][2];\n\t\tlexLogProb = new double[lexRulesSize];\n\t\tintBinaryRules = new int[intBinaryRulesSize][3];\n\t\tintBinaryLogProb = new double[intBinaryRulesSize];\n\t\tintUnaryRules = new int[intUnaryRulesSize][2];\n\t\tintUnaryLogProb = new double[intUnaryRulesSize];\t\t\t\t\n\t\trulesOfWord = new int[lexCount][];\n\t\tbinaryRulesOfLeftChild = new int[catCount][];\n\t\tunaryRulesOfLeftChild = new int[catCount][];\n\t\tint lexRuleCount = 0;\n\t\tfor(Enumeration<String> e = lexRulesTable.keys(); e.hasMoreElements(); ) {\n\t\t\tString rule = (String)e.nextElement();\n\t\t\tdouble count = lexRulesTable.get(rule).doubleValue();\t\n\t\t\tString[] ruleSplit = rule.split(\" \");\n\t\t\tint parentIndex = catIndex.get(ruleSplit[0]);\n\t\t\tint wordIndex = lexIndex.get(ruleSplit[1]);\t\t\t\t\t\t\t\t\t\n\t\t\tdouble parentFreq = posCatFreqTable.get(ruleSplit[0]);\t\t\t\n\t\t\tlexRules[lexRuleCount] = new int[]{parentIndex, wordIndex};\n\t\t\tlexLogProb[lexRuleCount] = Math.log(count / parentFreq);\n\t\t\trulesOfWord[wordIndex] = Utility.appendIntArraySet(rulesOfWord[wordIndex], lexRuleCount);\n\t\t\tlexRuleCount++;\n\t\t}\n\t\tint intBinaryRuleCount=0, intUnaryRuleCount=0;\n\t\tfor(Enumeration<String> e = intRulesTable.keys(); e.hasMoreElements(); ) {\n\t\t\tString rule = (String)e.nextElement();\n\t\t\tdouble count = intRulesTable.get(rule).doubleValue();\t\n\t\t\tString[] ruleSplit = rule.split(\" \");\n\t\t\tint parentIndex = catIndex.get(ruleSplit[0]);\n\t\t\tint leftDaughterIndex = catIndex.get(ruleSplit[1]);\n\t\t\tdouble parentFreq = intCatFreqTable.get(ruleSplit[0]);\n\t\t\tif (ruleSplit.length>2) {\n\t\t\t\tint rightDaughterIndex = catIndex.get(ruleSplit[2]);\t\t\t\t\n\t\t\t\tintBinaryRules[intBinaryRuleCount] = new int[]{parentIndex, leftDaughterIndex, rightDaughterIndex};\t\t\t\t\t\t\n\t\t\t\tintBinaryLogProb[intBinaryRuleCount] = Math.log(count / parentFreq);\n\t\t\t\tbinaryRulesOfLeftChild[leftDaughterIndex] = Utility.appendIntArraySet(binaryRulesOfLeftChild[leftDaughterIndex], intBinaryRuleCount);\n\t\t\t\tintBinaryRuleCount++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tintUnaryRules[intUnaryRuleCount] = new int[]{parentIndex, leftDaughterIndex};\n\t\t\t\tintUnaryLogProb[intUnaryRuleCount] = Math.log(count / parentFreq);\n\t\t\t\tunaryRulesOfLeftChild[leftDaughterIndex] = Utility.appendIntArraySet(unaryRulesOfLeftChild[leftDaughterIndex], intUnaryRuleCount);\n\t\t\t\tintUnaryRuleCount++;\n\t\t\t}\n\t\t}\n\t}", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}", "@Override\n public int hashCode()\n {\n return Objects.hash(startAt, lookingAt);\n }", "private String doesRuleMatch(EC2IpPermission permLeft, EC2IpPermission permRight) {\n int matches = 0;\n\n if (null != permLeft.getIcmpType() && null != permLeft.getIcmpCode()) {\n if (null == permRight.getIcmpType() || null == permRight.getIcmpCode())\n return null;\n\n if (!permLeft.getIcmpType().equalsIgnoreCase(permRight.getIcmpType()))\n return null;\n if (!permLeft.getIcmpCode().equalsIgnoreCase(permRight.getIcmpCode()))\n return null;\n matches++;\n }\n\n // -> \"Valid Values for EC2 security groups: tcp | udp | icmp or the corresponding protocol number (6 | 17 | 1).\"\n if (null != permLeft.getProtocol()) {\n if (null == permRight.getProtocol())\n return null;\n\n String protocol = permLeft.getProtocol();\n if (protocol.equals(\"6\"))\n protocol = \"tcp\";\n else if (protocol.equals(\"17\"))\n protocol = \"udp\";\n else if (protocol.equals(\"1\"))\n protocol = \"icmp\";\n\n if (!protocol.equalsIgnoreCase(permRight.getProtocol()))\n return null;\n matches++;\n }\n\n if (null != permLeft.getCIDR()) {\n if (null == permRight.getCIDR())\n return null;\n\n if (!permLeft.getCIDR().equalsIgnoreCase(permRight.getCIDR()))\n return null;\n matches++;\n }\n\n // -> is the port(s) from the request (left) a match of the rule's port(s)\n if (0 != permLeft.getFromPort()) {\n // -> -1 means all ports match\n if (-1 != permLeft.getFromPort()) {\n if (permLeft.getFromPort().compareTo(permRight.getFromPort()) != 0 || permLeft.getToPort().compareTo(permRight.getToPort()) != 0)\n return null;\n }\n matches++;\n }\n\n // -> was permLeft set up properly with at least one property to match?\n if (0 == matches)\n return null;\n else\n return permRight.getRuleId();\n }", "public Map<String, Match> getReferenceMatches();", "@Override\r\n\tpublic int hashCode()\r\n\t{\r\n\t\tint hash = 1;\r\n\r\n\t\tif (containingExpression != null)\r\n\t\t{\r\n\t\t\thash = hash & Constants.HASH_PRIME + containingExpression.hashCode();\r\n\t\t}\r\n\r\n\t\tif (conditions != null)\r\n\t\t{\r\n\t\t\thash = hash * Constants.HASH_PRIME + new HashSet<ICondition>(conditions).hashCode();\r\n\t\t}\r\n\r\n\t\treturn hash;\r\n\t}", "private static void buildTrainingSet(ArrayList<ArrayList<String>> posTrainSet, HashMap<String, Integer> hashMap1,\r\n\t\t\tHashMap<String, Integer> hashMap2)\r\n\t{\n\tfor (ArrayList<String> currentReview : posTrainSet) \r\n\t{ \t\r\n\t \t\r\n \tint negation = 0;\r\n \t\r\n \tfor(String word : currentReview)\r\n {\r\n \t\t//ADD OTHER NEGATIVE WORDS.ALSO CONSIDER NOT ONLY AND NEITHER NOR\r\n \tif(word.equals(\"not\") || word.equals(\"but\") || word.equals(\"no\") || word.equals(\"never\"))\r\n \t{\r\n \t\tnegation = 1- negation;\r\n \t}\r\n \telse if(word.equals(\".\"))\r\n \t{\r\n \t\tnegation =0;\r\n \t}\r\n \telse if(negation == 0)\r\n \t{\r\n \t\tInteger count = hashMap1.get(word);\r\n \t\t if (count == null) {\r\n \t\t count = 0;\r\n \t\t }\r\n \t\t hashMap1.put(word, count + 1);\r\n \t\t \r\n \t\t //ADD TO NEGATIVE NOT_WORD\r\n \t\t String negForm = \"NOT_\"+ word;\r\n \t\t count = hashMap2.get(negForm);\r\n \t\t if (count == null) {\r\n \t\t count = 0;\r\n \t\t }\r\n \t\t hashMap2.put(negForm, count + 1);\r\n \t\t \r\n \t}\r\n \telse\r\n \t{\r\n \t\tString negForm = \"NOT_\"+ word;\r\n \t\tInteger count = hashMap1.get(negForm);\r\n \t\t if (count == null) {\r\n \t\t count = 0;\r\n \t\t }\r\n \t\t hashMap1.put(negForm, count + 1);\r\n \t}\r\n \t\r\n }\r\n\t\r\n }\r\n\t}", "@Override\n public int hashCode() {\n\tint hash = 7;\n\thash = 67 * hash + Objects.hashCode(this.targetType);\n\thash = 67 * hash + Objects.hashCode(this.unresolvedType);\n\thash = 67 * hash + Objects.hashCode(this.targetName);\n\thash = 67 * hash + Objects.hashCode(this.targetActions);\n\treturn hash;\n }", "public int hashCode() {\n /*\n r7 = this;\n com.unboundid.ldap.matchingrules.CaseIgnoreStringMatchingRule r0 = com.unboundid.ldap.matchingrules.CaseIgnoreStringMatchingRule.getInstance()\n byte r1 = r7.filterType\n r2 = -121(0xffffffffffffff87, float:NaN)\n if (r1 == r2) goto L_0x009a\n r2 = 0\n switch(r1) {\n case -96: goto L_0x008b;\n case -95: goto L_0x008b;\n case -94: goto L_0x0084;\n case -93: goto L_0x006e;\n case -92: goto L_0x0034;\n case -91: goto L_0x006e;\n case -90: goto L_0x006e;\n default: goto L_0x000e;\n }\n L_0x000e:\n switch(r1) {\n case -88: goto L_0x006e;\n case -87: goto L_0x0013;\n default: goto L_0x0011;\n }\n L_0x0011:\n goto L_0x00a5\n L_0x0013:\n java.lang.String r2 = r7.attrName\n if (r2 == 0) goto L_0x0020\n java.lang.String r2 = com.unboundid.util.StaticUtils.toLowerCase(r2)\n int r2 = r2.hashCode()\n int r1 = r1 + r2\n L_0x0020:\n java.lang.String r2 = r7.matchingRuleID\n if (r2 == 0) goto L_0x002d\n java.lang.String r2 = com.unboundid.util.StaticUtils.toLowerCase(r2)\n int r2 = r2.hashCode()\n int r1 = r1 + r2\n L_0x002d:\n boolean r2 = r7.dnAttributes\n if (r2 == 0) goto L_0x0079\n int r1 = r1 + 1\n goto L_0x0079\n L_0x0034:\n java.lang.String r3 = r7.attrName\n java.lang.String r3 = com.unboundid.util.StaticUtils.toLowerCase(r3)\n int r3 = r3.hashCode()\n int r1 = r1 + r3\n com.unboundid.asn1.ASN1OctetString r3 = r7.subInitial\n if (r3 == 0) goto L_0x004e\n r4 = -128(0xffffffffffffff80, float:NaN)\n com.unboundid.asn1.ASN1OctetString r3 = r0.normalizeSubstring(r3, r4)\n int r3 = r3.hashCode()\n int r1 = r1 + r3\n L_0x004e:\n com.unboundid.asn1.ASN1OctetString[] r3 = r7.subAny\n int r4 = r3.length\n L_0x0051:\n if (r2 >= r4) goto L_0x0063\n r5 = r3[r2]\n r6 = -127(0xffffffffffffff81, float:NaN)\n com.unboundid.asn1.ASN1OctetString r5 = r0.normalizeSubstring(r5, r6)\n int r5 = r5.hashCode()\n int r1 = r1 + r5\n int r2 = r2 + 1\n goto L_0x0051\n L_0x0063:\n com.unboundid.asn1.ASN1OctetString r2 = r7.subFinal\n if (r2 == 0) goto L_0x00a5\n r3 = -126(0xffffffffffffff82, float:NaN)\n com.unboundid.asn1.ASN1OctetString r0 = r0.normalizeSubstring(r2, r3)\n goto L_0x007f\n L_0x006e:\n java.lang.String r2 = r7.attrName\n java.lang.String r2 = com.unboundid.util.StaticUtils.toLowerCase(r2)\n int r2 = r2.hashCode()\n int r1 = r1 + r2\n L_0x0079:\n com.unboundid.asn1.ASN1OctetString r2 = r7.assertionValue\n com.unboundid.asn1.ASN1OctetString r0 = r0.normalize(r2)\n L_0x007f:\n int r0 = r0.hashCode()\n goto L_0x00a4\n L_0x0084:\n com.unboundid.ldap.sdk.Filter r0 = r7.notComp\n int r0 = r0.hashCode()\n goto L_0x00a4\n L_0x008b:\n com.unboundid.ldap.sdk.Filter[] r0 = r7.filterComps\n int r3 = r0.length\n L_0x008e:\n if (r2 >= r3) goto L_0x00a5\n r4 = r0[r2]\n int r4 = r4.hashCode()\n int r1 = r1 + r4\n int r2 = r2 + 1\n goto L_0x008e\n L_0x009a:\n java.lang.String r0 = r7.attrName\n java.lang.String r0 = com.unboundid.util.StaticUtils.toLowerCase(r0)\n int r0 = r0.hashCode()\n L_0x00a4:\n int r1 = r1 + r0\n L_0x00a5:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.ldap.sdk.Filter.hashCode():int\");\n }", "static Set<String> determineCommonConcepts(HashMap<String, HashSet<String>> data) {\n HashSet<String> result = new HashSet<>();\n HashSet<String> alreadyProcessed = new HashSet<>();\n for (HashMap.Entry<String, HashSet<String>> entry : data.entrySet()) {\n for (String concept : entry.getValue()) {\n if (!alreadyProcessed.contains(concept)) {\n // now check whether the current concept is contained everywhere\n boolean isCommonConcept = true;\n for (HashMap.Entry<String, HashSet<String>> entry2 : data.entrySet()) {\n if (!entry2.getValue().contains(concept)) {\n // not a common concept -> leave for loop early\n isCommonConcept = false;\n break;\n }\n }\n if (isCommonConcept) {\n result.add(concept);\n }\n alreadyProcessed.add(concept);\n }\n }\n }\n return result;\n }", "public interface RuleConstruction extends SelectRule, DeleteRule, UpdateRule {\n\n /**\n * Check whether word is key-word\n *\n * @param word - word\n * @return false - word is not key-word\n * true - word is key-word\n */\n boolean isNotKeyWord(String word);\n\n /**\n * Check whether word is By-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isByCorrect(int currentIndex, List<String> words);\n\n /**\n * Check whether word is And-word or Or-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isAndOrCorrect(int currentIndex, List<String> words);\n\n /**\n * Check whether word is Between-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isBetweenCorrect(int currentIndex, List<String> words);\n}", "public static void main(String[] args) {\n\n Map<String, Integer> nyt;\n nyt = new HashMap<String, Integer>();\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt(), m = scan.nextInt();\n scan.nextLine();\n int cont = 0;\n seen = new boolean[193];\n g = new ArrayList[193];\n\n for (int i = 0; i < 193; i++) {\n g[i] = new ArrayList<Integer>();\n }\n for (int i = 0; i < n; i++) {\n String[] value = scan.nextLine().split(\" are worse than \");\n if (!nyt.containsKey(value[0])) {\n nyt.put(value[0], cont);\n cont++;\n }\n if (!nyt.containsKey(value[1])) {\n nyt.put(value[1], cont);\n cont++;\n }\n\n int u = nyt.get(value[0]);\n int v = nyt.get(value[1]);\n g[u].add(v);\n }\n boolean ok;\n for (int i = 0; i < m; i++) {\n ok = true;\n String[] trump = scan.nextLine().split(\" are worse than \");\n if (!nyt.containsKey(trump[0]) || !nyt.containsKey(trump[1])) {\n System.out.println(\"Pants on Fire\");\n } else {\n\n dfs(nyt.get(trump[0]));\n if (seen[nyt.get(trump[1])]) {\n System.out.println(\"Fact\");\n ok = false;\n }\n\n if (ok) {\n seen = new boolean[193];\n dfs(nyt.get(trump[1]));\n if (seen[nyt.get(trump[0])]) {\n System.out.println(\"Alternative Fact\");\n } else {\n System.out.println(\"Pants on Fire\");\n }\n\n }\n\n }\n seen = new boolean[193];\n\n }\n\n }", "private List<SimilarNode> astCCImplmentation(HashMap<ASTNode, NodeInfo> fileNodeMap1, HashMap<ASTNode, NodeInfo> fileNodeMap2) {\n TreeMap<Integer, List<NodeInfo>> treeMap1 = convertToTreeMap(fileNodeMap1);\n TreeMap<Integer, List<NodeInfo>> treeMap2 = convertToTreeMap(fileNodeMap2);\n List<SimilarNode> result = new ArrayList<>();\n int[] array1 = getArray(treeMap1.keySet());\n int[] array2 = getArray(treeMap2.keySet());\n int i = 0;\n int j = 0;\n int sum = 0;\n while (i < array1.length && j < array2.length) {\n if (array1[i] == array2[j]) {\n // obtain list of nodeInfos for both and compare them if match found then add it to report\n List<NodeInfo> list1 = treeMap1.get(array1[i]);\n List<NodeInfo> list2 = treeMap2.get(array2[j]);\n for (NodeInfo nodeInfo1 : list1) {\n for (NodeInfo nodeInfo2 : list2) {\n if ((nodeInfo1.hashValue == nodeInfo2.hashValue) && (nodeInfo1.nodeType == nodeInfo2.nodeType)) {\n result.add(new SimilarNode(nodeInfo1, nodeInfo2));\n\n }\n }\n }\n i++;\n j++;\n\n } else if (array1[i] > array2[j]) {\n j++;\n } else if (array1[i] < array2[j]) {\n i++;\n }\n }\n return result;\n }", "@Override\n public int hashCode() {\n return this.analyser.hashCode(this);\n }", "public Schedule Compare(Person user1, Person user2) {\r\n Schedule result = new Schedule();\r\n Schedule schedule1 = user1.getUserSchedule();\r\n Schedule schedule2 = user2.getUserSchedule();\r\n HashMap<Integer, String> monday1 = schedule1.schedule.get(\"Monday\");\r\n HashMap<Integer, String> monday2 = schedule2.schedule.get(\"Monday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> mondayCompare = result.schedule.get(\"Monday\");\r\n if (monday1.get(i) != null || monday2.get(i) != null){\r\n mondayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> tuesday1 = schedule1.schedule.get(\"Tuesday\");\r\n HashMap<Integer, String> tuesday2 = schedule2.schedule.get(\"Tuesday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> tuesdayCompare = result.schedule.get(\"Tuesday\");\r\n if (tuesday1.get(i) != null || tuesday2.get(i) != null){\r\n tuesdayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> wednesday1 = schedule1.schedule.get(\"Wednesday\");\r\n HashMap<Integer, String> wednesday2 = schedule2.schedule.get(\"Wednesday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> wednesdayCompare = result.schedule.get(\"Wednesday\");\r\n if (wednesday1.get(i) != null || wednesday2.get(i) != null){\r\n wednesdayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> thursday1 = schedule1.schedule.get(\"Thursday\");\r\n HashMap<Integer, String> thursday2 = schedule2.schedule.get(\"Thursday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> thursdayCompare = result.schedule.get(\"thursday\");\r\n if (thursday1.get(i) != null || thursday2.get(i) != null){\r\n thursdayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> friday1 = schedule1.schedule.get(\"Friday\");\r\n HashMap<Integer, String> friday2 = schedule2.schedule.get(\"Friday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> fridayCompare = result.schedule.get(\"Friday\");\r\n if (friday1.get(i) != null || friday2.get(i) != null){\r\n fridayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> saturday1 = schedule1.schedule.get(\"Saturday\");\r\n HashMap<Integer, String> saturday2 = schedule2.schedule.get(\"Saturday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> saturdayCompare = result.schedule.get(\"Saturday\");\r\n if (saturday1.get(i) != null || saturday2.get(i) != null){\r\n saturdayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> sunday1 = schedule1.schedule.get(\"Sunday\");\r\n HashMap<Integer, String> sunday2 = schedule2.schedule.get(\"Sunday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> sundayCompare = result.schedule.get(\"Sunday\");\r\n if (sunday1.get(i) != null || sunday2.get(i) != null){\r\n sundayCompare.put(i, \"busy\");\r\n }\r\n }\r\n return result;\r\n }", "public boolean compareXMLMap(Element destinationDataElement, Map<Integer, String> map, List<Check> ck, String messageTitle, String keyName, int keyId)\n\t{\n\t\tboolean result = true;\n\t\ttry{\t\t\t\t\n\t\t\tfor (int j=0; j<ck.size(); j++) \n\t\t\t{\n\t\t\t\tCheck check = ck.get(j);\n\t\t\t\tNode destinationNode = destinationDataElement.selectSingleNode(check.DestinationPath);\n\t\t\t\tString sqlValue = map.get(j+1);\n\t\t\t\tif (destinationNode != null)\n\t\t\t\t{\n\t\t\t\t\tif (!destinationNode.getText().trim().equals(sqlValue)) \n\t\t\t\t\t{\n\t\t\t\t\t\tlogger.error(messageTitle + \"\\t\" + keyName + \":\" + map.get(keyId) + \"\\t\" + check.DestinationPath + \" Actual Value isn't equal with Expected Value: \" + destinationNode.getText().trim() + \",\" + sqlValue);\n\t\t\t\t\t\tresult = false;\n\t\t\t\t\t}\n\t\t\t\t}else if (sqlValue != null )\n\t\t\t\t{\n\t\t\t\t\tif (!sqlValue.trim().equals(\"\")) \n\t\t\t\t\t{\n\t\t\t\t\t\tlogger.error(messageTitle + \"\\t\" + keyName + \":\" + map.get(keyId) + \"\\t\" + \"CUSIP \" + map.get(4) + \"\\t\" + check.DestinationPath + \" Actual Value isn't equal with Expected Value: null, \" + sqlValue);\n\t\t\t\t\t\tresult = false;\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (Exception ex) {\t\t\t\n\t\t\tlogger.error(messageTitle + \"\\t\" + \"CUSIP \" + map.get(4) + \"\\t\" + ex.toString());\n\t\t\tresult = false;\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public int resultRules(Instance inst) {\n\n if (resultRule(inst) != -1) {\n\treturn m_classification;\n } else if (m_next != null) {\n\treturn m_next.resultRules(inst);\n } else {\n\treturn -1;\n }\n }", "private static void compareForIdenticalKeys() {\n Integer[] identical = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};\n\n Insertion insertion = new Insertion();\n insertion.analyzeSort(identical);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(identical);\n selection.getStat().printReport();\n }", "private boolean updateRuleCache(Context context,Map ruleInfoMap) throws Exception\r\n {\r\n \t String strNewExpression = null;\r\n \t boolean bsucceed = true;\r\n\r\n \t String strRuleId = (String)ruleInfoMap.get(SELECT_ID);\r\n \t DomainObject domRuleObj = DomainObject.newInstance(context,strRuleId);\r\n \t String strRuleType = (String) ruleInfoMap.get(DomainConstants.SELECT_TYPE);\r\n \t String strDVAttrVal = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_DESIGNVARIANTS);\r\n \t String strRuleComplexity = (String) ruleInfoMap.get(ConfigurationConstants.SELECT_RULE_COMPLEXITY);\r\n\r\n try{\r\n \t /* Depending upon the Rule Type Left and Right expression\r\n \t * attributes will be computed\r\n \t */\r\n \t StringList sLOfExpAttr = new StringList();\r\n\r\n \t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_BOOLEAN_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_PRODUCT_COMPATIBILITY_RULE)\r\n \t\t\t || strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_LEFT_EXPRESSION);\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n\r\n \t }else if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_QUANTITY_RULE)){\r\n\r\n \t\t sLOfExpAttr.add(ConfigurationConstants.RELATIONSHIP_RIGHT_EXPRESSION);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Rule Info :: \"+ ruleInfoMap + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Type of Rule :: \"+ strRuleType + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Design Variant Attribute Value :: \"+ strDVAttrVal + \"\\n\");\r\n\r\n \t StringList RelationshipSelect = new StringList(ConfigurationConstants.SELECT_ID);\r\n \t RelationshipSelect.addElement(\"torel.id\");\r\n \t RelationshipSelect.addElement(\"to.id\");\r\n \t RelationshipSelect.addElement(\"torel.physicalid\");\r\n \t RelationshipSelect.addElement(\"to.physicalid\");\r\n \t RelationshipSelect.addElement(SELECT_PHYSICALID);\r\n\r\n \t RelationshipSelect.addElement(ConfigurationConstants.SELECT_ATTRIBUTE_SEQUENCE_ORDER);\r\n \t RelationshipSelect.addElement(SELECT_ATTRIBUTE_TOKEN);\r\n\r\n\r\n \t StringList sLRelationshipWhere = new StringList();\r\n \t sLRelationshipWhere.addElement(\"from.id\" + \"==\" + strRuleId);\r\n\r\n\r\n \t //Compute the LE and RE attributes and set attribute values accordingly\r\n \t for(int iCntExpAttr=0;iCntExpAttr<sLOfExpAttr.size() ;iCntExpAttr++){\r\n\r\n\t \t//StringList of RE Rel( delete token AND,OR,NOT specific related rel ids ) to be deleted\r\n\t\t\tStringList sLRERelIdsToBeDeleted = new StringList();\r\n\r\n \t\tString strExpAttr = (String)sLOfExpAttr.get(iCntExpAttr);\r\n\r\n \t\t//Get the LE or RE Rel ids\r\n \t\tStringList sLOfExp = new StringList();\r\n \t String ExpSelect = \"from[\"+ strExpAttr+ \"].id\";\r\n\r\n \t if((StringList)ruleInfoMap.get(ExpSelect)!=null){\r\n \t \tsLOfExp = (StringList)ruleInfoMap.get(ExpSelect);\r\n \t }\r\n\r\n \t mqlLogRequiredInformationWriter(\"Expression is :: \"+ ExpSelect + \"\\n\");\r\n \t mqlLogRequiredInformationWriter(\"Expression Value :: \"+ sLOfExp + \"\\n\");\r\n\r\n\t\t\tMapList mLOfExpToSideRelInfo = new MapList();\r\n\r\n\t\t\tfor(int iCnt=0;iCnt<sLOfExp.size();iCnt++) {\r\n\t\t\t\tString strRelId = (String)sLOfExp.get(iCnt);\r\n\r\n\t\t\t\t//Get the Rel Id info\r\n\t\t\t\tDomainRelationship domRelId = new DomainRelationship(strRelId);\r\n\t\t\t\tMap mRelData = domRelId.getRelationshipData(context,RelationshipSelect);\r\n\t\t\t\t/*\"Sequence Order\" is stored in StringList format...\r\n\t\t\t\t converted to String as this is used further in \"addSortKey\" method*/\r\n\t\t\t\tif(!((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).isEmpty()){\r\n\t\t\t\t\tmRelData.put(\"attribute[\"+ATTRIBUTE_SEQUENCE_ORDER +\"]\",\r\n\t\t\t\t\t\t\t ((StringList)mRelData.get(SELECT_ATTRIBUTE_SEQUENCE_ORDER)).get(0));\r\n \t\t\t }\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.add(mRelData);\r\n\t\t\t}\r\n\r\n \t\t //Need to sort the Map on the basis of \"Sequence Number\" attribute value in ascending order\r\n \t\t\t StringBuffer strBuffer = new StringBuffer(200);\r\n\t\t\t\tstrBuffer = strBuffer.append(STR_ATTRIBUTE)\r\n\t\t\t\t\t\t\t.append(OPEN_BRACE)\r\n\t\t\t\t\t\t\t.append(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER)\r\n\t\t\t\t\t\t\t.append(CLOSE_BRACE);\r\n\r\n\t\t\t\tmLOfExpToSideRelInfo.addSortKey(strBuffer.toString(), \"ascending\", \"integer\");\r\n\t\t\t\tmLOfExpToSideRelInfo.sort();\r\n\r\n \t\t StringBuffer strExpBuffer = new StringBuffer();\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Exp To Side Rel Info :: \"+ mLOfExpToSideRelInfo + \"\\n\");\r\n \t\t for(int m=0;m<mLOfExpToSideRelInfo.size();m++){\r\n\r\n \t\t\t Map mpInfo = new HashMap();\r\n \t\t\t mpInfo = (Map) mLOfExpToSideRelInfo.get(m);\r\n\r\n \t\t\t String strToken =\"\";\r\n \t\t\t String strPhysicalId =\"\";\r\n \t\t\t String strToRelPhyId =\"\";\r\n \t\t\t String strToPhyId =\"\";\r\n \t\t\t String strRERelId =\"\";\r\n\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).isEmpty()){\r\n \t\t\t\t strToken = (String)((StringList)mpInfo.get(SELECT_ATTRIBUTE_TOKEN)).get(0);\r\n \t\t\t\t strRERelId = (String)((StringList)mpInfo.get(\"id\")).get(0);\r\n \t\t\t\t mqlLogRequiredInformationWriter(\"Existing RE Rel to be deleted for this Rule:: \"+ strRERelId + \"\\n\");\r\n \t\t\t\t sLRERelIdsToBeDeleted.add(strRERelId);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"physicalid\")).isEmpty()){\r\n \t\t\t\t strPhysicalId = (String)((StringList)mpInfo.get(\"physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"torel.physicalid\")).isEmpty()){\r\n \t\t\t\tstrToRelPhyId = (String)((StringList)mpInfo.get(\"torel.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t if(!((StringList)mpInfo.get(\"to.physicalid\")).isEmpty()){\r\n \t\t\t\t strToPhyId = (String)((StringList)mpInfo.get(\"to.physicalid\")).get(0);\r\n \t\t\t }\r\n\r\n \t\t\t mqlLogRequiredInformationWriter(\"Token value if any :: \"+ strToken + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Physical Id of LE/RE :: \"+ strPhysicalId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Rel Physical Id of 'To side' of LE/RE Rel :: \"+ strToRelPhyId + \"\\n\");\r\n \t\t\t mqlLogRequiredInformationWriter(\"Obj Physical Id of 'To side' of LE/RE Rel :: \"+ strToPhyId + \"\\n\\n\");\r\n\r\n \t\t\t //Append the AND,OR,(,),NOT\r\n \t\t\t if(strToken!=null && strToken.length()!=0){\r\n \t\t\t\t strExpBuffer = strExpBuffer.append(strToken).append(SYMB_SPACE);\r\n \t\t\t }else{\r\n \t\t\t\t //Add to the String for attribute\r\n \t\t\t\t if(strToRelPhyId!=null && strToRelPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"R\")\r\n \t\t\t\t\t .append(strToRelPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }else if(strToPhyId!=null && strToPhyId.length()!=0) {\r\n \t\t\t\t\t strExpBuffer = strExpBuffer.append(\"B\")\r\n \t\t\t\t\t .append(strToPhyId)\r\n \t\t\t\t\t .append(SYMB_SPACE);\r\n \t\t\t\t }\r\n \t\t\t }\r\n \t\t }\r\n\r\n \t\t strNewExpression = strExpBuffer.toString();\r\n \t\t StringBuffer strBuf= new StringBuffer();\r\n\r\n \t\t if(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_MARKETING_PREFERENCE)\r\n \t\t\t\t && strExpAttr.equalsIgnoreCase(ConfigurationConstants.ATTRIBUTE_RIGHT_EXPRESSION)){\r\n \t\t\t StringList slRtExpTokenised = FrameworkUtil.split(strNewExpression, SYMB_SPACE);\r\n \t\t\t for(int i=0;i<slRtExpTokenised.size();i++){\r\n \t\t\t\t String strElement = (String) slRtExpTokenised.get(i);\r\n \t\t\t\t if(!strElement.trim().isEmpty())\r\n \t\t\t\t strBuf.append(strElement).append(SYMB_SPACE).append(\"AND\").append(SYMB_SPACE);\r\n \t\t\t }\r\n \t\t\t String strMPRRExpressionFinal = strBuf.toString();\r\n\r\n \t\t\t if (strMPRRExpressionFinal.endsWith(\" AND \")) {\r\n \t\t\t\t int i = strMPRRExpressionFinal.lastIndexOf(\" AND \");\r\n \t\t\t\t strNewExpression = strMPRRExpressionFinal.substring(0, i);\r\n \t\t\t }\r\n \t\t }\r\n \t\t mqlLogRequiredInformationWriter(\"Set attribute values on Rule Id start :: \"+\"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Rule Attribute :: \"+ strExpAttr + \"\\n\");\r\n \t\t mqlLogRequiredInformationWriter(\"Value of Attribute :: \"+ strNewExpression + \"\\n\\n\");\r\n \t\t domRuleObj.setAttributeValue(context, strExpAttr, strNewExpression);\r\n \t\t mqlLogRequiredInformationWriter(\"Set Attribute values on Rule Id done :: \"+\"\\n\");\r\n\r\n \t\t //If Rule Type = Inclusion Rule then only update the below Attribute\r\n \t\t\tif(strRuleType.equalsIgnoreCase(ConfigurationConstants.TYPE_INCLUSION_RULE)\r\n \t\t\t\t && strDVAttrVal!=null\r\n \t\t\t\t && !strDVAttrVal.equals(\"\")\r\n \t\t\t\t && !strDVAttrVal.isEmpty()){\r\n\r\n \t\t\t\tif(strRuleComplexity!=null && strRuleComplexity.equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_SIMPLE)){\r\n \t\t\t\t\t mqlLogRequiredInformationWriter(\"Rule Complexity :: \"+ strRuleComplexity + \"\\n\");\r\n \t\t\t\t\t String strDVVal = \"\";\r\n \t \t\t StringBuffer sBDVPhyIds = new StringBuffer();\r\n \t \t\t StringTokenizer newValueTZ = new StringTokenizer(strDVAttrVal, \",\");\r\n \t \t\t\t while(newValueTZ.hasMoreElements()) {\r\n \t \t\t\t\tstrDVVal = newValueTZ.nextToken();\r\n\r\n \t \t\t\t\tDomainObject domDVId = new DomainObject(strDVVal);\r\n \t \t\t\t\tString strDVPhyId =\"\";\r\n \t \t\t\t\tif(domDVId.exists(context)){\r\n \t \t\t\t\t\tstrDVPhyId= domDVId.getInfo(context, SELECT_PHYSICALID);\r\n \t \t\t\t\t\tsBDVPhyIds.append(strDVPhyId);\r\n \t \t\t\t\t\tsBDVPhyIds.append(\",\");\r\n \t \t\t\t\t}else{\r\n \t \t\t\t\t\tmqlLogRequiredInformationWriter(\"\\n\\n\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"This Design Variant doesn't exist now\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+ strDVVal\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\"\r\n \t \t\t\t\t\t\t\t\t\t\t\t\t\t+\"\\n\");\r\n \t \t\t\t\t}\r\n \t \t\t\t}\r\n \t \t\t\t if(sBDVPhyIds!=null && sBDVPhyIds.length()!=0){\r\n \t \t\t\t\t String strDVPhyId = sBDVPhyIds.toString().substring(0,sBDVPhyIds.length()-1);\r\n \t \t\t\t\t mqlLogRequiredInformationWriter(\"Attrubute 'Design Variant' value to be set as :: \"+ strDVPhyId + \"\\n\");\r\n \t \t\t\t\t domRuleObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_DESIGNVARIANTS, strDVPhyId );\r\n \t \t\t\t }\r\n \t\t\t\t}\r\n \t\t }\r\n\r\n \t\t\t//To delete the RE rel\r\n \t\t\tif(!sLRERelIdsToBeDeleted.isEmpty()){\r\n \t\t\t\tmqlLogRequiredInformationWriter(\"List of Rel Ids to be deleted :: \"+ sLRERelIdsToBeDeleted + \"\\n\");\r\n \t \t\t\tdisconnectRel(context, sLRERelIdsToBeDeleted);\r\n \t \t\t mqlLogRequiredInformationWriter(\"Rel id's deletion done.\" + \"\\n\");\r\n \t\t\t}\r\n\r\n \t }\r\n }catch(Exception e)\r\n {\r\n \t e.printStackTrace();\r\n \t bsucceed = false;\r\n \t throw new FrameworkException(\"reCompute Expression Attributes failed \" + e.getMessage());\r\n }\r\n\r\n \t return bsucceed;\r\n }", "public int consolidate (RuleList closedList, RuleMap rMap) {\n \n int steps = 0;\n boolean insert;\n // IF THE RULESET IS ALREADY COMPLETE, NO NEED TO FIND RULES\n if (this.totalProb < 0.999) {\n //System.out.println(\"Incomplete RuleSet : \" ); this.printRules();\n for (int l = 0 ; l < this.references.size(); l++) {\n RuleList r = closedList.getRuleByID(this.references.get(l)).getSameRuleSetRules(sList, closedList, rMap);\n\n for (int i = 0; i < r.size(); i++) {\n\n insert = true;\n // CHECK FOR MATCHES\n for (int h = 0; h < this.references.size(); h++) {\n if ( r.getRule(i).ruleMatch_exact(closedList.getRuleByID(this.references.get(h)))) {\n insert = false;\n }\n } \n if (insert) { \n r.getRule(i).prec_occurrencies = closedList.getRuleByID(this.references.get(0)).prec_occurrencies;\n closedList.addRule(r.getRule(i));\n this.references.add(r.getRule(i).id);\n this.totalProb = this.totalProb + r.getRule(i).getProb();\n this.totalProb = Math.round(this.totalProb * 1000);\n this.totalProb = this.totalProb/1000;\n\n steps++;\n }\n }\n }\n\n }\n \n return steps;\n }", "String getRules();", "public static HashMap check() {\n HashMap<String, Double> distGen = new HashMap<>();\n for (int i = 0; i < hMap.size(); i++) {\n double dist = 0.0;\n\n /**\n * calculating eucledean distance\n * */\n\n for (int j = 0; j < hMap.get(genres[i]).length; j++) {\n dist = dist + (Math.pow((hMap.get(genres[i])[j] - newWordPercentages[j]), 2));\n }\n dist = Math.sqrt(dist);\n dist = Math.abs(dist);\n distGen.put(genres[i], dist);\n }\n\n return distGen;\n }", "public static List<ExtendRule> removeRedundantExtendedRules_rangeBased(List<ExtendRule> rules) {\n LOGGER.info(\"STARTED removeRedundantExtendedRules - range based\");\n LOGGER.info(\"Rules on start:\" + rules.size());\n ExtendRule defRule = rules.get(rules.size()-1);\n Consequent defClass = defRule.getConsequent(); \n for (Iterator<ExtendRule> it = rules.iterator(); it.hasNext();) { \n ExtendRule PRCandidate = it.next();\n // PRCandidate = go through all rules with default class in the consequent\n if (!PRCandidate.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n // skip default rule\n if (PRCandidate.equals(defRule))\n {\n continue;\n } \n ArrayList<RuleMultiItem> PR_items = PRCandidate.getAntecedent().getItems();\n //create hashmap for fast access\n HashMap<Attribute,RuleMultiItem> PR_itemsMap = new HashMap();\n for (RuleMultiItem rmi : PR_items)\n {\n PR_itemsMap.put(rmi.getAttribute(), rmi);\n }\n \n // check if there is no other rule classifying to different class that shares part of the region\n // matched by the antecedent of PRCandidate \n boolean clashingRuleFound=false;\n boolean positionBelowPRCand = false;\n for (Iterator<ExtendRule> innerIt = rules.iterator(); innerIt.hasNext();) {\n ExtendRule candidateClash = innerIt.next();\n // candidateClash is PRCandidate, which would always evaluate to overlap!\n\n if (candidateClash.equals(PRCandidate))\n {\n positionBelowPRCand=true;\n continue;\n }\n // candidateClash = go through all rules with OTHER than default class in consequent \n if (candidateClash.getConsequent().toString().equals(defClass.toString()))\n {\n continue;\n }\n if (!positionBelowPRCand) continue;\n \n // check if at leat one literal in PRCandidate has empty intersection with Clash on shared attribute\n \n //in case there is no shared attribute, the intersection is non empty\n ArrayList<RuleMultiItem> literalsInClashOnSharedAtt = new ArrayList();\n for (RuleMultiItem clash_rmi : candidateClash.getAntecedent().getItems())\n {\n if (PR_itemsMap.containsKey(clash_rmi.getAttribute()))\n {\n literalsInClashOnSharedAtt.add(clash_rmi);\n }\n } \n if (literalsInClashOnSharedAtt.isEmpty())\n {\n clashingRuleFound =true;\n break;\n }\n // if there is NO intersection on at leat one of the shared attributes => no CLASH\n // ELSE => CLASH\n boolean attLeastOneAttDisjunct=true;\n for (RuleMultiItem clash_rmi : literalsInClashOnSharedAtt)\n {\n //PRCandidate has a literal created over the same attribute\n RuleMultiItem machingPR_RMI = PR_itemsMap.get(clash_rmi.getAttribute());\n\n //do values in the candidate clash intersect with values in PRCandidate?\n \n for (AttributeValue v : machingPR_RMI.getAttributeValues())\n {\n if (clash_rmi.getAttributeValues().contains(v))\n {\n attLeastOneAttDisjunct=false;\n }\n }\n if (attLeastOneAttDisjunct) // if we have non-empty intersection on one att we do not have to test the other ones, rule matches different part of the data space\n {\n //go to next PRCandidate \n break;\n } \n } \n if (!attLeastOneAttDisjunct)\n {\n //go to next PRCandidate \n clashingRuleFound=true;\n break;\n } \n }\n if (clashingRuleFound == false)\n {\n //no other rule with different consequent covering at least one shared value was found\n //this rule can be removed\n LOGGER.fine(\"Removing rule:\" + PRCandidate.toString());\n it.remove();\n } \n }\n LOGGER.info(\"Rules on finish:\" + rules.size());\n LOGGER.info(\"FINISHED removeRedundantExtendedRules - range based\");\n return rules;\n }", "public static void main(String[] args) {\n HashMap<Integer, String> map = new HashMap<>();\n map.put(1, \"Red\");\n map.put(2, \"Green\");\n map.put(3, \"Black\");\n map.put(4, \"White\");\n map.put(5, \"Blue\");\n\n\n ///////TOTALLY WRONG SOLUTION/////////// you may use this way with par2\n\n// String value = \"Black\";\n// if (map.containsValue(value)){\n// System.out.println(\"It has black on \" + map.get(value));\n// }else {\n// System.out.println(\"it has not\");\n// }\n\n\n /////////////////////////////////\n String value = \"Black\";\n if (map.containsValue(value)){\n System.out.println(\"It has Black\");\n }else {\n System.out.println(\"it is not working\");\n }\n\n\n System.out.println(\"Part2---------------------------------------------\");\n //part2, try to check it using loop, without .containsValue method\n // print key if you have value in map\n\n for (Map.Entry<Integer, String> entry : map.entrySet()) {\n Integer entryKey = entry.getKey();\n String entryValue = entry.getValue();\n\n if (entryValue.equals(\"White\")) {\n System.out.println(\"key is:\" + entryKey);\n }\n }\n\n //10. Write a Java program to get the\n // value of a specified key in a map.\n System.out.println(\"--------------\");\n\n System.out.println(map.get(3));\n\n //11. Write a Java program to get a set view of the keys contained in this map.\n\n System.out.println(\"__---------------\");\n// for (Map.Entry<Integer, String> entry : map.entrySet()) { // my way right\n// Integer keys = entry.getKey();\n//\n// System.out.println(\"keys is \" + keys + \" \");\n// }\n System.out.println(\"all keys in map \" + map.keySet()); // correct way\n\n HashMap<Character, Boolean> maps = new HashMap<>();\n maps.put('A', true);\n maps.put('B', true);\n maps.put('C', false);\n\n //print => A B C\n //1.way\n Set<Character> characters = maps.keySet();\n System.out.println(characters);\n // 2.way\n for (Character character : characters) {\n System.out.println(character);\n }\n\n\n // 12. to get colection view of the values contained in this map\n\n // 1.way\n\n System.out.println(\"Values are \" + map.values());\n\n //2. way\n\n for (Map.Entry<Integer, String> entry : map.entrySet()) {\n String value4 = entry.getValue();\n\n System.out.println(\"value is \" + value4);\n }\n\n\n }", "private List<ComparisonExpression> comparisons(HashMap<TimeSelector, Long> lowerBounds,\n HashMap<TimeSelector, Long> upperBounds) {\n List<ComparisonExpression> newComparisons = new ArrayList<>();\n // for all selectors, as lowerBounds has the same keys as upperBounds\n for (Map.Entry<TimeSelector, Long> entry : lowerBounds.entrySet()) {\n TimeSelector selector = entry.getKey();\n Long lower = entry.getValue();\n Long upper = upperBounds.get(selector);\n if (lower.equals(upper)) {\n newComparisons.add(new ComparisonExpression(\n new Comparison(selector, EQ, new TimeLiteral(lower)),\n new ComparableTPGMFactory()));\n } else {\n if (lower > TemporalElement.DEFAULT_TIME_FROM) {\n // check if informative: lower bound of from is trivial lower bound of to\n if (selector.getTimeProp().equals(TX_TO)) {\n TimeSelector txFromSel = new TimeSelector(selector.getVariable(), TX_FROM);\n if (lowerBounds.getOrDefault(txFromSel, TemporalElement.DEFAULT_TIME_FROM).equals(lower)) {\n continue;\n }\n } else if (selector.getTimeProp().equals(VAL_TO)) {\n TimeSelector valFromSel = new TimeSelector(selector.getVariable(), VAL_FROM);\n if (lowerBounds.getOrDefault(valFromSel, TemporalElement.DEFAULT_TIME_FROM).equals(lower)) {\n continue;\n }\n }\n // informative => build comparison\n newComparisons.add(new ComparisonExpression(\n new Comparison(new TimeLiteral(lower), LTE, selector),\n new ComparableTPGMFactory()));\n }\n if (upper < TemporalElement.DEFAULT_TIME_TO) {\n // analagously as for lower bounds\n // upper bound of to is trivial upper of from\n if (selector.getTimeProp().equals(TimeSelector.TimeField.TX_FROM)) {\n TimeSelector txToSel = new TimeSelector(selector.getVariable(), TX_TO);\n if (upperBounds.getOrDefault(txToSel, TemporalElement.DEFAULT_TIME_TO).equals(upper)) {\n continue;\n }\n } else if (selector.getTimeProp().equals(TimeSelector.TimeField.VAL_FROM)) {\n TimeSelector valToSel = new TimeSelector(selector.getVariable(), VAL_TO);\n if (upperBounds.getOrDefault(valToSel, TemporalElement.DEFAULT_TIME_TO).equals(upper)) {\n continue;\n }\n }\n // informative => build comparison\n newComparisons.add(new ComparisonExpression(\n new Comparison(selector, LTE, new TimeLiteral(upper)),\n new ComparableTPGMFactory()));\n }\n }\n }\n return newComparisons;\n }", "protected boolean validatePrimaryContractLookupKeys(PrimaryContract primContract,\n DiagnosticChain diagnostics, Map<Object, Object> context)\n {\n ValidityPeriod newPeriod = primContract.getValidityPeriod();\n \n boolean result=true;\n EList<PrimaryContractMapEntryValue> contractMapEntryValues = primContract.getMapEntryValues();\n /*\n * multiple key maps to same contract\n * - verify all VPs are bounded by new VP\n */\n // multiple keys map to the same contract at different VP\n // - all VP of entry values should be bounded by new VP\n for(PrimaryContractMapEntryValue mapEntryValue:contractMapEntryValues){\n ValidityPeriod oldVP = mapEntryValue.getValidityPeriod();\n \n if(mapEntryValue.getPrimaryContract()!=primContract){\n result &= false;\n diagnostics.add\n (new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_PRIMARY_CONTRACT_MAP_ENTRY_VALUE,\n LOOKUP_KEY_ENTRY__VALUE,\n String.format(\"%s [%s] '%s' does not match '%s'\",\n mapEntryValue.getLookupKey().toString(),\n \"Value\", mapEntryValue.getPrimaryContract().getName(),primContract.getName()),\n new Object[]{mapEntryValue}));\n }\n\n if(contractMapEntryValues.size()==1){\n if(!newPeriod.getStart().isEquals(oldVP.getStart())\n ||!newPeriod.getEnd().isEquals(oldVP.getEnd())){\n result &= false;\n diagnostics.add\n (new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_PRIMARY_CONTRACT_MAP_ENTRY_VALUE,\n LOOKUP_KEY__RANGE,\n String.format(\"%s [%s] '%s' does not match '%s'\",\n mapEntryValue.getLookupKey().toString(),\n \"Range\", getDisplayString(oldVP),getDisplayString(newPeriod)),\n new Object[]{mapEntryValue}));\n }\n }else if(!newPeriod.contains(oldVP)){\n result &= false;\n diagnostics.add\n (new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_PRIMARY_CONTRACT_MAP_ENTRY_VALUE,\n LOOKUP_KEY__RANGE,\n String.format(\"%s [%s] '%s' is out of range\",\n mapEntryValue.getLookupKey().toString(),\n \"Range\", getDisplayString(oldVP)),\n new Object[]{mapEntryValue}));\n }\n }\n \n return result;\n }", "public static void main(String[] args) {\n\t\tString a=\"HeyDearHowareyou\"; \n\t\tString b=\"Howareyou\";\n\t\tHashMap<Character,Integer>map1=new HashMap<Character,Integer>();\n\t\tHashMap<Character,Integer>map2=new HashMap<Character,Integer>();\n\t\t\n\t\tmap1=getCharCount(a);\n\t\tmap2=getCharCount(b);\n\t\t\n\t\t//System.out.print(map1);\n\t\t\n\t\tint result=compareMaps(map1,map2);\n\t\t\n\t\t\tSystem.out.println(result);\n\t}", "public static void main(String[] args) {\n\n\t\tHashMap<String,String> hm = new HashMap<String, String>();\n\t\t\n\t\thm.put(\"e\",\"a1\");\n\t\thm.put(\"b\",\"a1\");\n\t\thm.put(\"a\",\"a2\");\n\t\t \n\t\thm.put(\"a\",\"a5\");\n\t\t\n\t\tSet s = hm.entrySet();\n\t\tIterator it = s.iterator();\n\t\t\n\t\tfor(Map.Entry me : hm.entrySet())\n\t\t\tSystem.out.println(me.getKey()+\" \"+me.getValue());\n\t\t\n\t\t\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMap.Entry mentry = (Map.Entry) it.next();\n\t\t\tSystem.out.println(mentry.getKey() +\" \"+mentry.getValue());\n\t\t\t\n\t\t}\n\t\t\n\tMap<String,String> thmp = \tnew TreeMap<String,String> (hm);\n\tSystem.out.println();\n\tfor(Map.Entry g : thmp.entrySet())\n\t\tSystem.out.println(g.getKey()+\" \"+g.getValue());\n\t\n\t\n\tSystem.out.println(hm.containsKey(\"a\")+\" \"+hm.containsValue(\"a5\"));\n\t\n\t\t\n\t\t\n\t\t\n\t}", "boolean JoiningCriteriaMet() {\n\t\tfor(int i = timeService.getCurrentYear()-1; i > timeService.getCurrentYear() - KyotoEntryYears; i--) {\n\t\t\tif (carbonOutputMap.get(i) > emissionsTargetMap.get(i)) {\n\t\t\t\treturn(false);\n\t\t\t}\n\t\t}\n\t\treturn(true); // \n\t}", "boolean exactMatch(FlowRule rule);", "public abstract boolean lookup(Key key);", "public void processMatchVars(HashMap<String, List<String>> mapCandVarToMatchedVals,\n HashMap<String, List<String>> mapCandVarToAllAnsMaps,\n boolean flagSkipCTP, int indxCTP, int srcGraph, List<String> allCTPvals) {\n\n if (indxCTP == 18) {\n\n int araz = 0;\n }\n\n List<String> removeKeys = null;\n List<String> tmpPattern = null;\n List<String> newCandVals = new LinkedList<>();\n List<String> cleanCANDTP = myDedUtils.getCleanTP(DTPCandidates.get(indxCTP));\n\n //Confirm or reject variables based on matching threshold OR/AND best matching choice\n removeKeys = confirmMatchVars(mapCandVarToMatchedVals, mapCandVarToAllAnsMaps, indxCTP);\n\n for (int k = 0; k < removeKeys.size(); k++) {\n\n mapCandVarToMatchedVals.remove(removeKeys.get(k));\n }\n\n //Identify EG as NLEG and combine alternative variables and match variables to corresponding hash maps\n refineDTPmatchVars(mapCandVarToMatchedVals, mapCandVarToAllAnsMaps, indxCTP, srcGraph);\n\n //Match a CTP directly to a DTP, when no vars matched during inverse mapping\n if (mapCandVarToMatchedVals.isEmpty()) {\n\n //If values to match correspond to CTP part of a BoundJoin, that we\n //could not match because of a small Tjoin\n if (allCTPvals == null || (allCTPvals != null && allCTPvals.size() > 3)) {\n\n tmpPattern = myDedUtils.getCleanTP(allCTPs.get(indxCTP));\n if (mapCTPtoQuerySrc.get(tmpPattern) != null) {\n\n if (mapDTPToDeducedID.get(tmpPattern) == null) {\n\n mapDTPToDeducedID.put(tmpPattern, mapDTPToDeducedID.size() + 1);\n }\n\n // System.out.println(mapDTPToDeducedID.get(newDedTP));\n myBasUtils.insertToMap2(mapDTPtoInnerQuery, mapCTPtoQuerySrc.get(tmpPattern), mapDTPToDeducedID.get(tmpPattern));\n }\n\n //If CTP's subject and object are variables, we have already match\n //this as a DTP\n if (!flagSkipCTP) {\n\n myDedUtils.setDTPHashInfo(tmpPattern, indxCTP);\n allCTPvals = myDedUtils.getValuesFromCTP(indxCTP);\n flagSTOPNONPROJECTEDvars = myDedUtils.setDTPtoSrcAns(indxCTP, allCTPvals, tmpPattern, flagSTOPNONPROJECTEDvars);\n }\n\n } //If values to match correspond to singleTPs that surely are not part\n //of a BoundJoin, then match them directly as DTPs\n else if (allCTPvals.size() <= 3) {\n\n for (int i = 0; i < allCTPvals.size(); i++) {\n\n tmpPattern = myDedUtils.getNewRawTP(allCTPs.get(indxCTP), allCTPvals.get(i));\n\n if (mapCTPtoQuerySrc.get(tmpPattern) != null) {\n\n if (mapDTPToDeducedID.get(tmpPattern) == null) {\n\n mapDTPToDeducedID.put(tmpPattern, mapDTPToDeducedID.size() + 1);\n }\n\n // System.out.println(mapDTPToDeducedID.get(newDedTP));\n myBasUtils.insertToMap2(mapDTPtoInnerQuery, mapCTPtoQuerySrc.get(tmpPattern), mapDTPToDeducedID.get(tmpPattern));\n }\n\n if (!flagSkipCTP) {\n\n myDedUtils.setDTPHashInfo(tmpPattern, indxCTP);\n allCTPvals = myDedUtils.getValuesFromCTP(indxCTP);\n newCandVals = new LinkedList<>();\n newCandVals.add(allCTPvals.get(i));\n flagSTOPNONPROJECTEDvars = myDedUtils.setDTPtoSrcAns(indxCTP, allCTPvals, tmpPattern, flagSTOPNONPROJECTEDvars);\n }\n }\n }\n\n }\n\n //In any case, we must capture source endpoints of each source TP of a CTP\n //and if there is no matching variable, save each source TPs as a DTP\n for (int i = 0; i < allCTPvals.size(); i++) {\n\n tmpPattern = myDedUtils.getNewRawTP(allCTPs.get(indxCTP), allCTPvals.get(i));\n myBasUtils.insertToMap3(mapDTPToEndpsSrc, mapCTPToEndpsSrc.get(cleanCANDTP), tmpPattern);\n }\n\n }", "@Test\n public void TestCase2() {\n VariableMap variables = Variables\n .putValue(\"Role\", \"Executive\")\n .putValue(\"BusinessProcess\", \"Merit Increase\")\n .putValue(\"DelegationDateRange\", \"2019-04-31T00:00:00\");\n\n DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables);\n\n // Need to establish rule ordering\n assertThat(result.collectEntries(\"result\"))\n .hasSize(1)\n .contains(\"John M\");\n }", "public static Map<String, String> presToLogicalMap() {\n Map<String, String> rules = new HashMap<>();\n\n // PRESENTATION FORM TO LOGICAL FORM NORMALIZATION (presentation form is rarely used - but some UN documents have it).\n rules.put(\"\\\\ufc5e\", \"\\u0020\\u064c\\u0651\"); // ligature shadda with dammatan isloated\n rules.put(\"\\\\ufc5f\", \"\\u0020\\u064d\\u0651\"); // ligature shadda with kasratan isloated\n rules.put(\"\\\\ufc60\", \"\\u0020\\u064e\\u0651\"); // ligature shadda with fatha isloated\n rules.put(\"\\\\ufc61\", \"\\u0020\\u064f\\u0651\"); // ligature shadda with damma isloated\n rules.put(\"\\\\ufc62\", \"\\u0020\\u0650\\u0651\"); // ligature shadda with kasra isloated\n // Arabic Presentation Form-B to Logical Form\n rules.put(\"\\\\ufe80\", \"\\u0621\"); // isolated hamza\n rules.put(\"[\\\\ufe81\\\\ufe82]\", \"\\u0622\"); // alef with madda\n rules.put(\"[\\\\ufe83\\\\ufe84]\", \"\\u0623\"); // alef with hamza above\n rules.put(\"[\\\\ufe85\\\\ufe86]\", \"\\u0624\"); // waw with hamza above\n rules.put(\"[\\\\ufe87\\\\ufe88]\", \"\\u0625\"); // alef with hamza below\n rules.put(\"[\\\\ufe89\\\\ufe8a\\\\ufe8b\\\\ufe8c]\", \"\\u0626\"); // yeh with hamza above\n rules.put(\"[\\\\ufe8d\\\\ufe8e]\", \"\\u0627\"); // alef\n rules.put(\"[\\\\ufe8f\\\\ufe90\\\\ufe91\\\\ufe92]\", \"\\u0628\"); // beh\n rules.put(\"[\\\\ufe93\\\\ufe94]\", \"\\u0629\"); // teh marbuta\n rules.put(\"[\\\\ufe95\\\\ufe96\\\\ufe97\\\\ufe98]\", \"\\u062a\"); // teh\n rules.put(\"[\\\\ufe99\\\\ufe9a\\\\ufe9b\\\\ufe9c]\", \"\\u062b\"); // theh\n rules.put(\"[\\\\ufe9d\\\\ufe9e\\\\ufe9f\\\\ufea0]\", \"\\u062c\"); // jeem\n rules.put(\"[\\\\ufea1\\\\ufea2\\\\ufea3\\\\ufea4]\", \"\\u062d\"); // haa\n rules.put(\"[\\\\ufea5\\\\ufea6\\\\ufea7\\\\ufea8]\", \"\\u062e\"); // khaa\n rules.put(\"[\\\\ufea9\\\\ufeaa]\", \"\\u062f\"); // dal\n rules.put(\"[\\\\ufeab\\\\ufeac]\", \"\\u0630\"); // dhal\n rules.put(\"[\\\\ufead\\\\ufeae]\", \"\\u0631\"); // reh\n rules.put(\"[\\\\ufeaf\\\\ufeb0]\", \"\\u0632\"); // zain\n rules.put(\"[\\\\ufeb1\\\\ufeb2\\\\ufeb3\\\\ufeb4]\", \"\\u0633\"); // seen\n rules.put(\"[\\\\ufeb5\\\\ufeb6\\\\ufeb7\\\\ufeb8]\", \"\\u0634\"); // sheen\n rules.put(\"[\\\\ufeb9\\\\ufeba\\\\ufebb\\\\ufebc]\", \"\\u0635\"); // sad\n rules.put(\"[\\\\ufebd\\\\ufebe\\\\ufebf\\\\ufec0]\", \"\\u0636\"); // dad\n rules.put(\"[\\\\ufec1\\\\ufec2\\\\ufec3\\\\ufec4]\", \"\\u0637\"); // tah\n rules.put(\"[\\\\ufec5\\\\ufec6\\\\ufec7\\\\ufec8]\", \"\\u0638\"); // zah\n rules.put(\"[\\\\ufec9\\\\ufeca\\\\ufecb\\\\ufecc]\", \"\\u0639\"); // ain\n rules.put(\"[\\\\ufecd\\\\ufece\\\\ufecf\\\\ufed0]\", \"\\u063a\"); // ghain\n rules.put(\"[\\\\ufed1\\\\ufed2\\\\ufed3\\\\ufed4]\", \"\\u0641\"); // feh\n rules.put(\"[\\\\ufed5\\\\ufed6\\\\ufed7\\\\ufed8]\", \"\\u0642\"); // qaf\n rules.put(\"[\\\\ufed9\\\\ufeda\\\\ufedb\\\\ufedc]\", \"\\u0643\"); // kaf\n rules.put(\"[\\\\ufedd\\\\ufede\\\\ufedf\\\\ufee0]\", \"\\u0644\"); // ghain\n rules.put(\"[\\\\ufee1\\\\ufee2\\\\ufee3\\\\ufee4]\", \"\\u0645\"); // meem\n rules.put(\"[\\\\ufee5\\\\ufee6\\\\ufee7\\\\ufee8]\", \"\\u0646\"); // noon\n rules.put(\"[\\\\ufee9\\\\ufeea\\\\ufeeb\\\\ufeec]\", \"\\u0647\"); // heh\n rules.put(\"[\\\\ufeed\\\\ufeee]\", \"\\u0648\"); // waw\n rules.put(\"[\\\\ufeef\\\\ufef0]\", \"\\u0649\"); // alef maksura\n rules.put(\"[\\\\ufef1\\\\ufef2\\\\ufef3\\\\ufef4]\", \"\\u064a\"); // yeh\n rules.put(\"[\\\\ufef5\\\\ufef6]\", \"\\u0644\\u0622\"); // ligature: lam and alef with madda above\n rules.put(\"[\\\\ufef7\\\\ufef8]\", \"\\u0644\\u0623\"); // ligature: lam and alef with hamza above\n rules.put(\"[\\\\ufef9\\\\ufefa]\", \"\\u0644\\u0625\"); // ligature: lam and alef with hamza below\n rules.put(\"[\\\\ufefb\\\\ufefc]\", \"\\u0644\\u0627\"); // ligature: lam and alef\n\n return rules;\n\n }", "public abstract CellProfile getRules();", "public static void main(String[] args) {\n\n\t\tint[] a = {1,2,3,8,8,9,6,4};\n\t String s = \"hello2java\"; \n\t\tHashMap<Integer,Integer> countMap1 = new HashMap<Integer,Integer>();\n\t\tHashMap<Character,Integer> countMap2 = new HashMap<Character,Integer>();\n \n\t\tchar[] ch = s.toCharArray();\n\t\t\n\t\t\tfor(int i=0;i<a.length;i++){\n\t\t\t\tif(countMap1.containsKey(a[i])){\n\t\t\t\t\tcountMap1.put(a[i], countMap1.get(a[i])+1);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcountMap1.put(a[i],1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t//}\n\t\tSystem.out.println(countMap1);\n\t\t\n\t\tfor(int i=0;i<ch.length;i++){\n\t\t\tif(countMap2.containsKey(ch[i])){\n\t\t\t\tcountMap2.put(ch[i], countMap2.get(ch[i])+1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcountMap2.put(ch[i],1);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(countMap2);\n\t\t\n\t\tSet<Character> ket = countMap2.keySet();\n for(Character c:ket){\n \tif(countMap2.get(c)>1){\n \t\tSystem.out.println(c+\"-->\"+countMap2.get(c));\n \t}\n }\n\t}", "@Override\r\n public String toString() {\r\n return this.bnfRuleMap.keySet().toString();\r\n }", "@Test\n public void testNodeHashTypeMismatch() throws Exception {\n String drl1 = \"import \" + Person.class.getCanonicalName() + \";\\n\" +\n \"rule \\\"rule1\\\"\\n\" +\n \"when\\n\" +\n \" Person( status == 1 )\\n\" +\n \"then\\n\" +\n \"end\\n\" +\n \"rule \\\"rule2\\\"\\n\" +\n \"when\\n\" +\n \" Person( status == 2 )\\n\" +\n \"then\\n\" +\n \"end\\n\";\n\n KieBase kbase1 = KieBaseUtil.getKieBaseFromKieModuleFromDrl(\"test\", kieBaseTestConfiguration, drl1);\n KieSession ksession1 = kbase1.newKieSession();\n\n Person p1 = new Person();\n p1.setStatus( \"1\" );\n ksession1.insert( p1 );\n\n assertThat(ksession1.fireAllRules()).isEqualTo(1);\n ksession1.dispose();\n\n // 3 rules -- Node Hashing\n String drl2 = \"import \" + Person.class.getCanonicalName() + \";\\n\" +\n \"rule \\\"rule1\\\"\\n\" +\n \"when\\n\" +\n \" Person( status == 1 )\\n\" +\n \"then\\n\" +\n \"end\\n\" +\n \"rule \\\"rule2\\\"\\n\" +\n \"when\\n\" +\n \" Person( status == 2 )\\n\" +\n \"then\\n\" +\n \"end\\n\" +\n \"rule \\\"rule3\\\"\\n\" +\n \"when\\n\" +\n \" Person( status == 3 )\\n\" +\n \"then\\n\" +\n \"end\\n\";\n\n KieBase kbase2 = KieBaseUtil.getKieBaseFromKieModuleFromDrl(\"test\", kieBaseTestConfiguration, drl2);\n KieSession ksession2 = kbase2.newKieSession();\n\n Person p2 = new Person();\n p2.setStatus( \"1\" );\n ksession2.insert( p2 );\n\n assertThat(ksession2.fireAllRules()).isEqualTo(1);\n ksession2.dispose();\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn map.hashCode() ^ y() << 16 ^ x();\n\t}", "static Set get_mapping(HashMap callee_to_caller, Node callee_n) {\n Set s = (Set)callee_to_caller.get(callee_n);\n if (s != null) return s;\n s = NodeSet.FACTORY.makeSet(); s.add(callee_n);\n return s;\n }", "@Override\n public int hashCode() {\n int result = table1.hashCode();\n result = 31 * result + table2.hashCode();\n return result;\n }", "@Override\n public int compareTo(MappingKey o) {\n\n Integer thisScopeSetScore = (scopeSet == null) ? 0 : scopeSet.hashCode();\n Integer thatScopeSetScore = (o.getScopeSet() == null) ? 0 : o.getScopeSet().hashCode();\n\n return thisScopeSetScore.compareTo(thatScopeSetScore);\n\n }", "public String match(boolean flags[]) {\n\t\tString bestKey = null;\n\t\tdouble bestScore = Double.NEGATIVE_INFINITY;\n\n\t\tfor (String key : GLOBAL_MAPPING.keySet()) {\n\t\t\tList<Set<Integer>> possible_mappings = GLOBAL_MAPPING.get(key);\n\n\t\t\tdouble score = 0;\n\t\t\tfor (Set<Integer> mapping : possible_mappings) {\n\t\t\t\tscore = Math.max(score, calc_score(flags, mapping));\n\t\t\t}\n\n\t\t\tif (score > bestScore) {\n\t\t\t\tbestKey = key;\n\t\t\t\tbestScore = score;\n\t\t\t}\n\t\t}\n\t\treturn bestKey;\n\t}", "@Override\n public int hashCode() {\n return (first != null ? 41 * first.hashCode() : 0) + (second != null ? second.hashCode() : 0);\n }", "public double matchData() {\n\t\tArrayList<OWLDataProperty> labels1 = getDataProperties(ontology1);\n\t\tArrayList<OWLDataProperty> labels2 = getDataProperties(ontology2);\n\t\tfor (OWLDataProperty lit1 : labels1) {\n\t\t\tfor (OWLDataProperty lit2 : labels2) {\n\t\t\t\tif (LevenshteinDistance.computeLevenshteinDistance(TestAlign.mofidyURI(lit1.toString())\n\t\t\t\t\t\t, TestAlign.mofidyURI(lit2.toString()))>0.8){\n\t\t\t\t\treturn 1.0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0.;\n\n\n\t}", "@Override\n public int hashCode()\n {\n return Objects.hash(super.hashCode(), eventType, principleElement, classificationName, endOneElement, endTwoElement, userId, isPublic,\n pointsTotal, plateau);\n }", "java.lang.String getRule();", "private Map<String, String> solutionForCNSHIsFull() {\r\n Map<String, String> map = new HashMap<>();\r\n map.put(this.students[0].getName(), this.schools[1].getName());\r\n map.put(this.students[1].getName(), this.schools[1].getName());\r\n map.put(this.students[2].getName(), this.schools[1].getName());\r\n map.put(this.students[3].getName(), this.schools[2].getName());\r\n return map;\r\n }", "private Collection<Rule> getRelevantRules(List<Expr> goals, Collection<Expr> edbList, Collection<Rule> idbList) {\n Set<Rule> relevant = new HashSet<Rule>();\n goals = new LinkedList<Expr>(goals);\n while (!goals.isEmpty()) {\n Expr expr = goals.remove(0);\n for (Rule rule : idbList) {\n if (rule.head.predicate.equals(expr.predicate) && !relevant.contains(rule)) {\n relevant.add(rule);\n goals.addAll(rule.body);\n }\n }\n }\n return relevant;\n }", "public int hashCode() {\n\t\treturn (label1 == null) ? end : ((label2 == null) ? end\n\t\t\t\t+ label1.hashCode() : end + label1.hashCode()\n\t\t\t\t+ label2.hashCode());\n\t}", "@Test\n public void TestCase1() {\n VariableMap variables = Variables\n .putValue(\"Role\", \"Executive\")\n .putValue(\"BusinessProcess\", \"PTO Request\")\n .putValue(\"DelegationDateRange\", \"2019-04-31T00:00:00\");\n\n DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables);\n\n // Need to establish rule ordering\n assertThat(result.collectEntries(\"result\"))\n .hasSize(2)\n .contains(\"John M\")\n .contains(\"Kerry\");\n }", "public void checkNLFOJoin() {\n\n String extractedVar = \"\";\n String currQuery = \"\";\n List<Integer> sourceQueries = null;\n List<String> tmpTP = null;\n List<String> extractedVals = null;\n\n for (List<String> key : mapCTPtoQuerySrc.keySet()) {\n\n sourceQueries = mapCTPtoQuerySrc.get(key);\n\n for (int i = 0; i < sourceQueries.size(); i++) {\n\n currQuery = queries.get(sourceQueries.get(i));\n\n //Buuuuuuuuuuuuuug\n if (currQuery.contains(\"mass\")) {\n continue;\n }\n\n if (currQuery.contains(\"filter\") || currQuery.contains(\"FILTER\")) {\n\n extractedVals = myBasUtils.getFILTERvals(currQuery);\n extractedVar = myBasUtils.getFILTERvar(currQuery);\n\n if (extractedVals.size() >= 1) {\n\n if (key.get(0).equalsIgnoreCase(extractedVar) || key.get(2).equalsIgnoreCase(extractedVar)) {\n\n tmpTP = myDedUtils.getCleanTP(key);\n tmpTP.add(extractedVar);\n myBasUtils.insertToMap4(mapDTPtoAnsInverseMap, tmpTP, extractedVals);\n }\n }\n\n }\n\n }\n }\n\n }", "private Map<Square, List<Player>> checkRocketJump()\n {\n Player dummie = new Player(null,null,null,false);\n\n Map<Square, List<Player>> squareColorIdListHashMap = new HashMap<>();\n List<Player> playersSeen = new ArrayList<>();\n List<Player> playersSeenCopy = new ArrayList<>();\n\n List<Square> targetSquares = new ArrayList<>();\n targetSquares.addAll(player.getSquare().getGameBoard().getArena().squareReachableNoWall(player.getSquare().getX() , player.getSquare().getY(),2)); //Obtain all players that can be targets\n targetSquares.remove(player.getSquare());\n\n //i will set a dummie player in all the possible squares at distance 2 and i will check if there is still at least 1 target for the basic mode\n for(Square squareIterate : targetSquares)\n {\n playersSeen = new ArrayList<>();\n playersSeenCopy = new ArrayList<>();\n dummie.setSquare(squareIterate);\n\n playersSeen.addAll(dummie.playerThatSee(player.getSquare().getGameBoard()));\n playersSeen.remove(dummie);\n playersSeen.remove(player);\n\n playersSeenCopy.addAll(playersSeen);\n\n for (Player playerIterate : playersSeen)\n {\n if (playerIterate.getSquare() == dummie.getSquare())\n playersSeenCopy.remove(playerIterate);\n }\n\n if (!playersSeenCopy.isEmpty())\n {\n squareColorIdListHashMap.put(squareIterate, playersSeenCopy);\n }\n }\n\n return squareColorIdListHashMap; //Returns all targets\n\n }", "private int getRuleIndex(String rule){\n\t\tfor(int i=0; i<ConditionTree.length;i++){\n\t\t\tif(rule.equals(ConditionTree[i][0])){\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "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}", "@Override\n public int hashCode(){\n return (String.valueOf(bool) + statement).hashCode();\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn labelTemplate.hashCode() ^ type.hashCode() ^ priority ^ valueTemplate.hashCode();\n\t}", "public Rule type()\n \t{\n \t\treturn firstOf(simpleMapType(), nonSimpleMapTypes());\n \t}", "public void getKeyWords(DefaultActivity schedule) {\n ActivityTypes subType = schedule.getActivityType();\n switch (subType) {\n case SLEEP:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (keyValue.length() >= 3) {\n if (sleepMap.get(keyValue) != null) {\n sleepMap.put(keyValue, sleepMap.get(keyValue) + 1);\n } else {\n sleepMap.put(keyValue, 1.0);\n }\n }\n }\n\n break;\n case MEAL:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (keyValue.length() >= 4) {\n if (mealMap.get(keyValue) != null) {\n mealMap.put(keyValue, mealMap.get(keyValue) + 1);\n }\n } else {\n mealMap.put(keyValue, 1.0);\n }\n }\n break;\n case TESTSTUDY:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (keyValue.length() >= 4) {\n if (testMap.get(keyValue) != null) {\n testMap.put(keyValue, testMap.get(keyValue) + 1);\n }\n } else {\n testMap.put(keyValue, 1.0);\n }\n }\n break;\n case HOMEWORK:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (keyValue.length() >= 4) {\n if (homeWorkMap.get(keyValue) != null) {\n homeWorkMap.put(keyValue, homeWorkMap.get(keyValue) + 1);\n }\n } else {\n homeWorkMap.put(keyValue, 1.0);\n }\n }\n break;\n case SKILLTRAINING:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (keyValue.length() >= 4) {\n if (skillTrainingMap.get(keyValue) != null) {\n skillTrainingMap.put(keyValue, skillTrainingMap.get(keyValue) + 1);\n }\n } else {\n skillTrainingMap.put(keyValue, 1.0);\n }\n }\n break;\n case PROJECTBUILDING:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (projectBuildingMap.get(keyValue) != null) {\n projectBuildingMap.put(keyValue, projectBuildingMap.get(keyValue) + 1);\n } else {\n projectBuildingMap.put(keyValue, 1.0);\n }\n }\n break;\n case ENTERTAINMENT:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (entertainmentMap.get(keyValue) != null) {\n entertainmentMap.put(keyValue, entertainmentMap.get(keyValue) + 1);\n } else {\n entertainmentMap.put(keyValue, 1.0);\n }\n }\n break;\n case GENERALSTUDY:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (generalStudyMap.get(keyValue) != null) {\n generalStudyMap.put(keyValue, generalStudyMap.get(keyValue) + 1);\n } else {\n generalStudyMap.put(keyValue, 1.0);\n }\n }\n break;\n case SOCIALTIME:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (socialTimeMap.get(keyValue) != null) {\n socialTimeMap.put(keyValue, socialTimeMap.get(keyValue) + 1);\n } else {\n socialTimeMap.put(keyValue, 1.0);\n }\n }\n break;\n case ANOMALY:\n for (String keyValue : schedule.getName().split(\" \")) {\n if (anomalyMap.get(keyValue) != null) {\n anomalyMap.put(keyValue, anomalyMap.get(keyValue) + 1);\n } else {\n anomalyMap.put(keyValue, 1.0);\n }\n }\n break;\n default:\n\n }\n }", "private static int matchValue(TrieNode existing, TrieNode toAdd, String[] allWords){\n\t\tSystem.out.println(allWords[existing.substr.wordIndex]);\n\t\tSystem.out.println(allWords[toAdd.substr.wordIndex]);\n\n\t\tString first=allWords[existing.substr.wordIndex].substring(existing.substr.startIndex,existing.substr.endIndex+1);\n\t\tString second=allWords[toAdd.substr.wordIndex].substring(toAdd.substr.startIndex,toAdd.substr.endIndex+1);\n\t\tSystem.out.println(\"Compare: \"+first+ \"\\twith\" +\"\\t\"+ second);\n\t\t\n\t\tint count=1;\n\t\tint matchValue=0;\n\t/*\tif(first.charAt(0)!=second.charAt(0)){\n\t\t\treturn 0;\n\t\t}*/\n\t\t\n\t\t//System.out.println(\"From: \"+ existing.substr.startIndex+\" To: \"+existing.substr.endIndex);\n\t\tif(first.length()<=second.length()){\n\t\t\tint imax=(short)(existing.substr.endIndex-existing.substr.startIndex+1);\n\t\tfor(int i=0;i<imax;i++){\n\t\t\t\n\t\t\t//System.out.println(\"UM WE RUN COUNT: \" );\n\t\t\tif(first.charAt(i)==second.charAt(i)){\n\t\t\t\tmatchValue++;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(first.charAt(i)!=second.charAt(i)){\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t}\n\t\telse{\n\t\t\tint imax=(short)(toAdd.substr.endIndex-toAdd.substr.startIndex+1);\n\t\t\tfor(int i=0;i<imax;i++){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(first.charAt(i)==second.charAt(i)){\n\t\t\t\t\tmatchValue++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(first.charAt(i)!=second.charAt(i)){\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\n\t\t}\t\n\t\t}\n\t\treturn matchValue;\n\t}", "private Map mergeResults(Map first, Map second) {\n/* 216 */ Iterator verb_enum = second.keySet().iterator();\n/* 217 */ Map clonedHash = new HashMap(first);\n/* */ \n/* */ \n/* 220 */ while (verb_enum.hasNext()) {\n/* 221 */ String verb = verb_enum.next();\n/* 222 */ List cmdVector = (List)clonedHash.get(verb);\n/* 223 */ if (cmdVector == null) {\n/* 224 */ clonedHash.put(verb, second.get(verb));\n/* */ continue;\n/* */ } \n/* 227 */ List oldV = (List)second.get(verb);\n/* 228 */ cmdVector = new ArrayList(cmdVector);\n/* 229 */ cmdVector.addAll(oldV);\n/* 230 */ clonedHash.put(verb, cmdVector);\n/* */ } \n/* */ \n/* 233 */ return clonedHash;\n/* */ }", "@Override\n public int hashCode() {\n return values.descriptor.hashCode() ^ values.hashCode();\n }", "private void linkedHashMap() {\n LinkedHashMap lhm = new LinkedHashMap();\n User e = new User(1, \"user\");\n\n lhm.put(e, \"Harshal\");\n lhm.put(new User(1, \"Employee\"), \"Harshal\");\n lhm.put(new User(1, \"user\"), \"Harshal\");\n lhm.put(e, \"Sumit\");\n\n System.out.println(lhm);\n lhm.putIfAbsent(new User(2,\"Harshal\"),\"Added new val\");\n lhm.putIfAbsent(new User(2,\"Harshal\"),\"Added new val\");\n\n lhm.keySet().removeIf(key->((User)key).equals(new User(2,\"Harshal\")));\n System.out.println(lhm);\n }", "public static void main(String[] args) {\n\t\t HashMap<Integer, String> map = new HashMap<Integer, String>();\r\n map.put(1, \"Java\");\r\n map.put(2, \"Python\");\r\n map.put(3, \"Selenium\");\r\n int keyToBeChecked = 5;\r\n System.out.println(\"HashMap: \"+ map);\r\n\t\tIterator<Map.Entry<Integer, String> >\r\n\t\titerator = map.entrySet().iterator();\r\n\t\tboolean isKeyPresent = false;\r\n\t\twhile (iterator.hasNext()) {\r\n\t\tMap.Entry<Integer, String> entry = iterator.next();\r\n\t\tif (keyToBeChecked == entry.getKey()) {\r\n\t\t\r\n\t\t isKeyPresent = true;\r\n\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Does key \"+ keyToBeChecked+ \" exists: \"+ isKeyPresent);\r\n\t}", "private boolean checkRep()\r\n/* 126: */ {\r\n/* 127: */ Iterator localIterator2;\r\n/* 128:217 */ for (Iterator localIterator1 = this.map.keySet().iterator(); localIterator1.hasNext(); localIterator2.hasNext())\r\n/* 129: */ {\r\n/* 130:217 */ N n = (Object)localIterator1.next();\r\n/* 131:218 */ localIterator2 = ((Map)this.map.get(n)).keySet().iterator(); continue;N suc = (Object)localIterator2.next();\r\n/* 132:219 */ if (!((Map)this.map.get(suc)).containsKey(n)) {\r\n/* 133:220 */ return false;\r\n/* 134: */ }\r\n/* 135:223 */ if (!((Map)this.map.get(n)).get(suc).equals(((Map)this.map.get(suc)).get(n))) {\r\n/* 136:224 */ return false;\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139:230 */ return true;\r\n/* 140: */ }", "@Override\n public double score(Map<BasedMining, Map<BasedMining, RateEvent>> preferences,\n BasedMining item1,\n BasedMining item2) {\n var sharedInnerItems = new ArrayList<BasedMining>();\n\n preferences.get(item1).forEach((innerItem, rateEvent) -> {\n if (preferences.get(item2).get(innerItem) != null) {\n sharedInnerItems.add(innerItem);\n }\n });\n\n// If they have no rating in common, return 0\n if (sharedInnerItems.size() > 0)\n return 0;\n\n// Add up the square of all the differences\n var sumOfSquares = preferences.get(item1).entrySet()\n .stream()\n .filter(entry -> preferences.get(item2).get(entry.getKey()) != null)\n .mapToDouble(entry -> Math.pow((entry.getValue().getRating() - preferences.get(item2).get(entry.getKey()).getRating()), 2.0))\n .sum();\n\n return 1 / (1 + sumOfSquares);\n }", "public interface RMLMappingValidator {\n RMLValidatorResult validationResult = new RMLValidatorResult();\n\n /**\n *\n * @param triplesMapResources\n */\n public void checkTriplesMapResources(\n Map<Resource, TriplesMap> triplesMapResources);\n \n /**\n *\n * @param subjMap\n */\n public void checkSubjectMap(SubjectMap subjMap);\n\n /**\n *\n * @param triplesMap\n * @param statements\n * @param p\n * @param resource\n */\n public void checkEmptyStatements(TriplesMap triplesMap, \n List<Statement> statements, URI p, Resource resource);\n\n /**\n *\n * @param triplesMap\n * @param statements\n * @param p\n * @param termType\n */\n public void checkMultipleStatements(TriplesMap triplesMap, \n List<Statement> statements, URI p, String termType);\n\n /**\n *\n * @param constantValue\n * @param stringTemplate\n * @param referenceValue\n * @param stringValue\n * @param term\n */\n public void checkTermMap(\n Value constantValue, String stringTemplate, \n ReferenceMap referenceValue, Resource stringValue, Term term);\n\n /**\n *\n * @param resource\n * @param statements\n * @param p\n */\n public void checkStatements(\n Resource resource, List<Statement> statements, Term p);\n\n /**\n *\n * @param triplesMapSubject\n * @param iterators\n * @param referenceFormulation\n */\n public void checkIterator(\n Resource triplesMapSubject, List<Statement> iterators, \n QLVocabulary.QLTerm referenceFormulation);\n\n /**\n *\n * @param triplesMapSubject\n * @param sourceStatements\n */\n public void checkSource(\n Resource triplesMapSubject, List<Statement> sourceStatements);\n\n /**\n *\n * @param triplesMapSubject\n * @param logicalSourceStatements\n * @param triplesMap\n */\n public void checkLogicalSource(\n Resource triplesMapSubject, List<Statement> logicalSourceStatements, \n TriplesMap triplesMap);\n\n /**\n *\n * @param triplesMapSubject\n * @param statements\n */\n public void checkReferenceFormulation(Resource triplesMapSubject, \n List<Statement> statements);\n}", "@Override\n\tpublic int hashCode() {\n\t\treturn idx1.hashCode() * 811 + idx2.hashCode();\n\t}", "private static Collection<? extends Rule> getRules(ObjectFactory objFactory, Value cwe, Repository repository, Value segment)\n {\n HashMap<String, Rule> ruleSet = new HashMap<String, CWECoverageClaimType.Claims.Claim.RuleSet.Rule>();\n RepositoryConnection con = null;\n try\n {\n con = getRepositoryConnection(repository);\n \n String adaptorQuery = \"SELECT ?descriptionText WHERE {<\"+segment+\"> <http://toif/contains> ?finding. ?finding <http://toif/toif:FindingHasCWEIdentifier> <\" + cwe + \"> . \"\n + \"?finding <http://toif/toif:FindingIsDescribedByWeaknessDescription> ?description . \"\n + \"?description <http://toif/description> ?descriptionText . }\";\n \n TupleQuery adaptorTupleQuery = con.prepareTupleQuery(QueryLanguage.SPARQL, adaptorQuery);\n \n TupleQueryResult queryResult = adaptorTupleQuery.evaluate();\n \n while (queryResult.hasNext())\n {\n BindingSet adaptorSet = queryResult.next();\n Value name = adaptorSet.getValue(\"descriptionText\");\n \n String nameString = name.stringValue();\n \n String[] descArray = nameString.split(\":\");\n \n String ident = descArray[0];\n String description = descArray[1];\n \n if (!ruleSet.containsKey(ident))\n {\n Rule rule = objFactory.createCWECoverageClaimTypeClaimsClaimRuleSetRule();\n ruleSet.put(ident, rule);\n }\n \n Rule rule = ruleSet.get(ident);\n rule.setRuleID(ident);\n rule.setRuleName(ident);\n rule.setRuleComments(description);\n \n }\n \n queryResult.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n catch (MalformedQueryException e)\n {\n e.printStackTrace();\n }\n catch (QueryEvaluationException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n con.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n }\n return ruleSet.values();\n \n }" ]
[ "0.59342545", "0.5877266", "0.56002945", "0.55734205", "0.5393138", "0.5378225", "0.5367721", "0.533089", "0.5275694", "0.52560943", "0.52553725", "0.52535254", "0.5235766", "0.5231981", "0.5218112", "0.5205849", "0.5190658", "0.5164987", "0.51313883", "0.5122781", "0.5117981", "0.5113611", "0.51037407", "0.5098248", "0.50877064", "0.50876987", "0.50766504", "0.50753754", "0.50691414", "0.5068423", "0.506738", "0.5057412", "0.5024189", "0.5001298", "0.49981284", "0.49611235", "0.49446148", "0.49429086", "0.49360383", "0.49310896", "0.49246466", "0.49209496", "0.4909544", "0.48866975", "0.48658717", "0.48543915", "0.48500428", "0.4840782", "0.4838963", "0.48318204", "0.48275608", "0.4826163", "0.48214832", "0.48211852", "0.48195884", "0.47987893", "0.47935516", "0.47908008", "0.47831047", "0.47799793", "0.4771517", "0.47670937", "0.47535884", "0.47516245", "0.4750839", "0.47479567", "0.47406217", "0.4739799", "0.47392344", "0.4735505", "0.47301358", "0.47243014", "0.4721171", "0.47209576", "0.47114775", "0.47102943", "0.47081503", "0.47043878", "0.46998873", "0.46945292", "0.46939906", "0.4691911", "0.46760157", "0.46759266", "0.46747327", "0.46682838", "0.46676606", "0.46664754", "0.46663234", "0.46559498", "0.46532562", "0.46498737", "0.46393797", "0.4631893", "0.46296972", "0.46245936", "0.46235466", "0.4614069", "0.46090806", "0.46069178", "0.46052608" ]
0.0
-1
Chooses a Rule PseudoRandomly according to Probabilities of the RuleSet
public Rule chooseRandomRule () { double a = Math.random(); double c = 0.0; for (int i = 0; i < this.size(); i++) { c = c + this.getRule(i).getProb(); if (c > a) { return this.getRule(i); } } return this.getRule(this.size()-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getRandomTask() {\n double p = rand.nextDouble(); // required probs given in Question\n for (int i = 0; i < 6; i++) {\n if (p <= prob[i])\n return i;\n }\n return 1;\n }", "public Integer randomDecision(List<Integer> options) {\n Random random = new Random();\n return options.get(random.nextInt(options.size()));\n }", "@Override\n\tpublic void makeDecision() {\n\t\tint powerMax = (int)(initPower) / 100;\n\t\tint powerMin = (int)(initPower * 0.3) / 100;\n\n\t\t// The value is calculated randomly from 0 to 10% of the initial power\n\t\tRandom rand = new Random();\n\t\tint actualPower = rand.nextInt((powerMax - powerMin) + 1) + powerMin;\n\t\tanswer.setConsumption(actualPower);\n\t}", "float genChance();", "@Nullable\n public T choose(Predicate<T> predicate, Random random) {\n List<Entry<T>> filteredEntries = entries.stream()\n .filter(t -> predicate.apply(t.getValue()))\n .collect(Collectors.toList());\n if (Iterables.isEmpty(filteredEntries)) {\n return null;\n }\n\n int maximumPriority = Ordering.natural().max(Iterables.transform(filteredEntries, Entry::getPriority));\n filteredEntries = filteredEntries.stream()\n .filter(t -> t.getPriority() == maximumPriority)\n .collect(Collectors.toList());\n\n if(Iterables.isEmpty(filteredEntries)) {\n return null;\n }\n\n double sum = 0;\n for(Entry<T> entry : filteredEntries)\n sum += entry.getWeight();\n\n double selection = random.nextDouble() * sum;\n for(Entry<T> entry : filteredEntries) {\n selection -= entry.getWeight();\n if(selection <= 0)\n return entry.getValue();\n }\n // should not get here.\n throw new IllegalStateException();\n }", "public Action getActionBasedOnProbability(final State state) {\r\n final double decision = Math.random();\r\n double decisionCount = 0;\r\n\r\n for (final Map.Entry<Action, Double> actionProb : getProperties(state).getActionProbabilities().entrySet()) {\r\n decisionCount += actionProb.getValue();\r\n if (decisionCount >= decision) {\r\n return actionProb.getKey();\r\n }\r\n }\r\n\r\n System.err.println(\"Error: cannot choose action!\");\r\n System.err.println(getProperties(state).getActionProbabilities());\r\n return null;\r\n }", "private GrammarRule getRuleForOutput(String output, int level) throws TooLongException {\n double terminationProb = ((double) level) / (double) (3 + level);\n if (Math.random() < terminationProb && output.equals(entryRule.output))\n return entryRule;\n\n if (level > 5)\n throw new TooLongException();\n\n // Random rule pick\n int rand = (int) (Math.random() * this.ruleOutputCount.get(output));\n int i = 0;\n for (Map.Entry<String, GrammarRule> entry : this.rules.entrySet())\n if (entry.getValue().output.equals(output)) {\n if (rand == i)\n return entry.getValue();\n i++;\n }\n return null;\n }", "public ProbabilityDistribution(Random random) {\n\t\trandom_ = random;\n\t\titemProbs_ = new MutableKeyMap<T, Double>();\n\t}", "Randomizer getRandomizer();", "public void rollRandom() {\n\t\tthis.strength = randomWithRange();\r\n\t\tthis.wisdom = randomWithRange();\r\n\t\tthis.dexterity = randomWithRange();\r\n\t\tthis.constitution = randomWithRange();\r\n\t\tthis.intelligence = randomWithRange();\r\n\t\tthis.charisma = randomWithRange();\r\n\t}", "abstract double rightProbability();", "private void evaluateProbabilities()\n\t{\n\t}", "public abstract void randomize();", "private SocialPractice chooseOnIntentions(\n\t\t\tArrayList<SocialPractice> candidateSocialPractices) {\n\t\tSocialPractice chosenAction = null; //temp\n\t\tHashMap<SocialPractice, Double> needs=new HashMap<SocialPractice, Double>();\n\t\tfor(SocialPractice sp: candidateSocialPractices){\n\t\t\tneeds.put(sp, myValues.get(sp.getPurpose()).getNeed(myContext)); \n\t\t}\n\t\tdouble totalNeed = Helper.sumDouble(needs.values()); //satisfaction can get <0, so need as well, so maybe not getting in while loop\n\t\tdouble randomDeterminer = RandomHelper.nextDoubleFromTo(0, totalNeed);\n\t\t//System.out.println(myContext);\n\t\t//System.out.println(\"Needs:\" + needs);\n\t\t\n\t\tIterator it = needs.entrySet().iterator();\n\t\twhile(randomDeterminer > 0) {\n\t\t\tHashMap.Entry pair = (HashMap.Entry) it.next();\n\t\t\tchosenAction = (SocialPractice) pair.getKey();\n\t\t\trandomDeterminer = randomDeterminer - (double) pair.getValue();\n\t\t}\n\t\treturn chosenAction;\n\t}", "public static void genRule(final PLFormula psi, final RuleSet rules) {\n\t\tPLFormula[] children = ((OR) psi).getChildren();\n\t\tAND and = (AND) children[(int) (Math.random() * children.length)];\n\t\tArrayList<Integer> left = new ArrayList<>();\n\t\tleft.addAll(and.asLitSet());\n\t\tdouble changes = (left.size() / 2) - 4 + Math.random() * 3;\n\t\t\n\t\tfor(int c = 0; c < changes || left.size() > 4; c++) {\n\t\t\tif(left.size() > 1)\n\t\t\t\tleft.remove((int) (Math.random() * left.size()));\n\t\t}\n\t\t\n\t\tLitSet right = new LitSet(li);\n\t\tright.addAll(left);\n\t\tchanges = 1 + Math.random() * (left.size() * 0.9);\n\t\tInteger definitive_removal = 0;\n\t\t\n\t\tfor(int c = 0; c < changes; c++) {\n\t\t\tif(right.size() > 0) {\n\t\t\t\tdefinitive_removal = left.get((int) (Math.random() * left.size()));\n\t\t\t\tright.remove(definitive_removal);\n\t\t\t}\n\t\t}\n\t\t\n\t\tchanges = 1 + Math.random() * (right.size() / 2);\n\t\t\n\t\tfor(int c = 0; c < changes; c++) {\n\t\t\tInteger literal = (int) (Math.random() * li.getVarCount());\n\t\t\t\n\t\t\twhile(literal == definitive_removal || literal == 0 || literal == 1 || literal == -1) {\n\t\t\t\tliteral = (int) (Math.random() * li.getVarCount());\n\t\t\t}\n\t\t\t\n\t\t\tif(!right.contains(literal)) {\n\t\t\t\tright.add(literal);\n\t\t\t}\n\t\t}\n\t\t\n\t\tLitSet ls_left = new LitSet(li);\n\t\tLitSet ls_right = new LitSet(li);\n\t\tLitSet ls_context = new LitSet(li);\n\t\tls_left.addAll(left);\n\t\tls_right.addAll(right);\n\t\t\n\t\tfor(Integer l : ls_right) {\n\t\t\tif(ls_left.contains(l)) {\n\t\t\t\tls_context.add(l);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Integer l : ls_context) {\n\t\t\tls_left.remove(l);\n\t\t\tls_right.remove(l);\n\t\t}\n\t\t\n\t\trules.addRule(new AND(li, ls_context), new AND(li, ls_left), new AND(li, ls_right), RULE_COSTS);\n\t}", "Boolean getRandomize();", "public Action getActionBasedOnPolicyOrRandom(final State state, final double epsilon) {\r\n \tfinal double decision = Math.random();\r\n \tif (decision > epsilon) {\r\n \t\t// Random action\r\n \t\treturn Action.values()[(int) Math.floor(Math.random() * Action.values().length)];\r\n \t} else {\r\n \t\t// Policy action\r\n \t\treturn getActionBasedOnProbability(state);\r\n \t}\r\n }", "int tournament() {\r\n \tint ch1,ch2;\r\n\t\tch1 = (int)Math.floor(Math.random()*SIZE);\r\n\t\tdo {\r\n\t\t\tch2 = (int)Math.floor(Math.random()*SIZE);\r\n\t\t} while (ch1==ch2);\r\n\t\tif (fit[ch1]<fit[ch2]) return ch1;\r\n\t\telse return ch2;\r\n }", "RandomizedRarestFirstSelector(Random random) {\n this.random = random;\n }", "public interface Rule<T> {\n\n /**\n * Get random allowed value.\n *\n * @return random allowed value\n */\n T getRandomAllowedValue();\n\n}", "PolicyDecision getDecision();", "private void figureOutProbability() {\n\t\tMysqlDAOFactory mysqlFactory = (MysqlDAOFactory) DAOFactory\n\t\t\t\t.getDAOFactory(DAOFactory.MYSQL);\n\n\t\tstaticPr = new StaticProbability(trialId);\n\t\tstatisticPr = new StatisticProbability(trialId);\n\t\tstaticProbability = staticPr.getProbability();\n\t\tstatisticProbability = statisticPr.getProbability();\n\n\t\tfor (Entry<Integer, BigDecimal> entry : staticProbability.entrySet()) {\n\t\t\ttotalProbability.put(\n\t\t\t\t\tentry.getKey(),\n\t\t\t\t\tentry.getValue().add(statisticProbability.get(entry.getKey())).setScale(2));\n\t\t}\n\n\t\tBigDecimal summaryProbability = BigDecimal.valueOf(0);\n\t\tfor (Entry<Integer, BigDecimal> entry : totalProbability.entrySet()) {\n\t\t\tsummaryProbability = summaryProbability.add(entry.getValue());\n\t\t}\n\t\t\n\t\t// figures out probability\n\t\tfor (Entry<Integer, BigDecimal> entry : totalProbability.entrySet()) {\n\t\t\tentry.setValue(entry.getValue().divide(summaryProbability, 2,\n\t\t\t\t\tBigDecimal.ROUND_HALF_UP));\n\t\t}\n\t\tlog.info(\"Total probability -> \" + totalProbability);\n\t\t\n\t\t// figures out and sets margin\n\t\tfor (Entry<Integer, BigDecimal> entry : totalProbability.entrySet()) {\n\t\t\tBigDecimal probability = entry.getValue();\n\t\t\tBigDecimal winCoefficient = (BigDecimal.valueOf(1.).divide(\n\t\t\t\t\tprobability, 2, BigDecimal.ROUND_HALF_UP))\n\t\t\t\t\t.multiply(BigDecimal.valueOf(1.).subtract(Constants.MARGIN));\n\t\t\tentry.setValue(winCoefficient.setScale(2, BigDecimal.ROUND_HALF_UP));\n\t\t}\n\t\tlog.info(\"Winning coefficient -> \" + totalProbability);\n\t\t\n\t\t// updates info in db\n\t\tTrialHorseDAO trialHorseDAO = mysqlFactory.getTrialHorseDAO();\n\t\tTrialHorseDTO trialHorseDTO = null;\n\t\tfor(Entry<Integer, BigDecimal> entry : totalProbability.entrySet()){\n\t\t\ttrialHorseDTO = trialHorseDAO.findTrialHorseByTrialIdHorseId(trialId, entry.getKey());\n\t\t\ttrialHorseDTO.setWinCoefficient(entry.getValue());\n\t\t\ttrialHorseDAO.updateTrialHorseInfo(trialHorseDTO);\n\t\t}\t\n\t}", "@Override\r\n\tpublic int computeNextVal(boolean prediction) {\n\t\treturn (int) (Math.random()*10)%3;\r\n\t}", "public void randomizeState() {\n\t\t//System.out.print(\"Randomizing State: \");\n\t\tArrayList<Integer> lst = new ArrayList<Integer>();\n\t\tfor(int i = 0; i<9; i++)// adds 0-8 to list\n\t\t\tlst.add(i);\n\t\tCollections.shuffle(lst);//randomizes list\n\t\tString str=\"\";\n\t\tfor(Integer i : lst)\n\t\t\tstr += String.valueOf(i);\n\t\t//System.out.println(str);\n\t\tcurrent = new PuzzleState(str,current.getString(current.getGoalState()));\n\t\t//pathCost++;\n\t}", "private String RandomGoal() {\n\t\tList<String> list = Arrays.asList(\"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"t\", \"t\");\n\t\tRandom rand = new Random();\n\t\tString randomgoal = list.get(rand.nextInt(list.size()));\n\n\t\treturn randomgoal;\n\t}", "private void randomizePuzzle() {\n\t\t// Choose random puzzles, shuffle the options.\n\t\tthis.puzzle = BarrowsPuzzleData.PUZZLES[(int) (Math.random() * BarrowsPuzzleData.PUZZLES.length)];\n\t\tthis.shuffledOptions = shuffleIntArray(puzzle.getOptions());\n\t}", "private void genProb() {\n\t\tint row;\n\t\tint column;\n\t\tint removed1;\n\t\tint removed2;\n\n\t\tfor (int i = 0; i < DIFFICULTY / 2;) {\n\t\t\trow = rand.nextInt(9);\n\t\t\tcolumn = rand.nextInt(9);\n\t\t\twhile (problem[row][column] == 0 || (row == 4 && column == 4)) {\n\t\t\t\trow = rand.nextInt(9);\n\t\t\t\tcolumn = rand.nextInt(9);\n\t\t\t}\n\n\t\t\t// Clearing random boxes.\n\t\t\tremoved1 = problem[row][column];\n\t\t\tremoved2 = problem[8 - row][8 - column];\n\t\t\tproblem[row][column] = 0;\n\t\t\tproblem[8 - row][8 - column] = 0;\n\n\t\t\tcopy(problem, comp);\n\n\t\t\tif (!solve(0, 0, 0, comp)) { // Case of unsolvable.\n\t\t\t\t// Putting back original values.\n\t\t\t\tproblem[row][column] = removed1;\n\t\t\t\tproblem[8 - row][8 - column] = removed2;\n\t\t\t} else {\n\t\t\t\tif (unique()) { // Case of solution is unique.\n\t\t\t\t\ti++;\n\t\t\t\t} else { // Case of solution is not unique.\n\t\t\t\t\t// Putting back original values.\n\t\t\t\t\tproblem[row][column] = removed1;\n\t\t\t\t\tproblem[8 - row][8 - column] = removed2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void getRandomNumber() {\n\t\tRandom generator = new Random();\n\t\trandomNumber = generator.nextInt(POSSIBLE_CHOICE.length);\n\t}", "public int randomizeFirstNumber() {\n a = random.nextInt(100);\n question.setA(a);\n return a;\n }", "public static void main(String[] args) {\n\r\n\t\tRandom rr=new Random();\r\n\t\t\r\n\t\tSystem.out.println(Math.random());//[0,1)\r\n\t\t \r\n\t\t// 第一种情况 int(强转之后最终的值一定是0)\r\n\t\t// 第二种情况 int(强转之后将小数点舍去 1-5)\r\n\t\tSystem.out.println((int)Math.random()*5);//0.99*5永远到不了5\r\n\t\tSystem.out.println((int)(Math.random()*5+1));//[1,5.)\r\n\t\t\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\t\r\n\t\tfor(int i=0;i<=20;i++){\r\n\t\t\tSystem.out.print(i%7+\"-\");\r\n\t\t\t\r\n\t\t}\r\n\t\t//1-M的随机产生\r\n\t\t//(int)(Math.random()*M+1)\r\n\t\t\r\n\t\t\r\n\t\t//产生0 1的概率不同 Math.random()<p?0:1\r\n\t\tSystem.out.println(\"----\"+rr.rand01p());\r\n\t\tSystem.out.println(\"----\"+rr.rand01());\r\n\t\tfor(int i=0;i<=11;i++){\r\n\t\t\tSystem.out.print(i%6+\"-\");\r\n\t\t \t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(rr.rand106());\r\n\t}", "public void calculateProbabilities(){\n\t}", "public ProbabilityDistribution() {\n\t\trandom_ = new Random();\n\t\titemProbs_ = new MutableKeyMap<T, Double>();\n\t}", "public Scenario generate() {\n\n //generate random number of Passenger(all human)\n ArrayList liPsg = new ArrayList();\n int totalNumOfPsg = (int) (rd.nextDouble() * PassengerCountMax + PassengerCountMin); //at least one Psg\n for (int i = 0; i < totalNumOfPsg; i++) {\n liPsg.add(getRandomPerson());\n }\n //System.out.println(\"PassengerNum= \"+totalNumOfPsg);\n\n\n //generate random number of Pedestrians(with Max 5) & allocate person+animal randomly(human+animal)\n ArrayList liPdt = new ArrayList();\n int totalNumOfPdst = (int) (rd.nextDouble() * PedestrianCountMax + PedestrianCountMin);//at least one Pdg\n int NumOfPerson = (int) Math.round(rd.nextDouble() * totalNumOfPdst);//if only 1 pdt,along with randomDouble<0.5 , 0.4x*1 rounded=0, will only an animal\n //so if you are random being in pdt but pdt only an animal, you neither wont be in scenario, so your negative probability in scenario is higher.\n int NumOfAnimal = totalNumOfPdst - NumOfPerson;\n for (int i = 0; i < NumOfPerson; i++) {\n liPdt.add(getRandomPerson());\n }\n for (int i = 0; i < NumOfAnimal; i++) {\n liPdt.add(getRandomAnimal());\n }\n //System.out.println(\"PedestrianNum= \"+totalNumOfPdst+\" with \"+NumOfPerson+\" human and \"+NumOfAnimal+\" animals\");\n\n\n //allocating where you are, 0=you absence & do nothing, 1=you in car, 2=you on road !!!!yeah happy solving\n int allocate_of_user = (int) Math.round(rd.nextDouble() * 2);\n if (allocate_of_user == 1) {\n ((Person) liPsg.get(0)).setAsYou(true); //set the first psg is you. !!!!!important Cast Obj into Person!!!!\n } else if (allocate_of_user == 2) {\n for (int i = 0; i < liPdt.size(); i++) {\n if (liPdt.get(i) instanceof Person) {//check whether a person\n ((Person) liPdt.get(i)).setAsYou(true);\n break; // only set once than break rather than set all of people of pdt is you\n }\n }\n }\n\n //Scenario(ArrayList<Character> passengers, ArrayList<Character> pedestrians, boolean isLegalCrossing)\n S = new Scenario(liPsg, liPdt, rd.nextBoolean()); //isLegalCrossing = red or green light;\n return S;\n }", "private List<Integer> generateProb() {\n Integer[] randArr = new Integer[numCols*numRows];\n\n int start = 0;\n int end;\n for(int i = 0; i < myStateMap.size(); i++) {\n double prob = myStateMap.get(i).getProb();\n end = (int) (prob * numCols * numRows + start);\n for(int j = start; j < end; j++) {\n if(end > randArr.length) {\n break;\n }\n randArr[j] = myStateMap.get(i).getType();\n }\n start = end;\n }\n\n List<Integer> arr = new ArrayList<>(Arrays.asList(randArr));\n Collections.shuffle(arr);\n return arr;\n }", "@Override\n\tpublic String performMove(){\n\t\tRandom random = new Random();\t\t\t\t\n\t\tchoice = random.nextInt(3);\t\t\t\t\t//Randomly generating the choices\n if(choice == 0){\n \treturn \"Rock\";\n }else if(choice == 1){\n \treturn \"Paper\";\n }else{\n \treturn \"Scissor\";\n }\n }", "private int getRandomPiece() {\r\n return new Random().nextInt(Constants.NUM_PIECES);\r\n }", "public StrategyRandom() {\n name = \"Random\";\n }", "public void generatePriority() {\n\t\tpriority = .25 * frequency + .25 * age + .25 * links + .25 * money;\n\t}", "public InputAction makeChoice() {\n int choice = (int) Math.floor(Math.random() * 12);\n if(choice < 6) {\n return new InputAction(player, InputAction.ActionType.WORK, null);\n } else {\n DirectionType direction = directionByNumber.get(choice);\n return new InputAction(player, InputAction.ActionType.EXPLORE, direction);\n }\n }", "public int randomDP() {\n\t\treturn(getRandomInteger(10,250));\n\t}", "public static boolean chance(int prob) {\n Random random = new Random();\n return random.nextInt(prob) == 1;\n // Do I really need to explain this??\n }", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "@Test\n public void testDecisionRule2() throws IOException {\n \n Data data = getDataObject(\"./data/adult.csv\");\n DataHandle handle = data.getHandle();\n \n RiskModelPopulationUniqueness model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.1d)).getPopulationBasedUniquenessRisk();\n double sampleUniqueness = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.1d)).getSampleBasedUniquenessRisk().getFractionOfUniqueRecords();\n double populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n \n if (model.getPopulationUniquenessModel() == PopulationUniquenessModel.PITMAN) {\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.27684993883653597) == 0);\n } else if (model.getPopulationUniquenessModel() == PopulationUniquenessModel.ZAYATZ) {\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.3207402393466189) == 0);\n } else {\n fail(\"Unexpected convergence of SNB\");\n }\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.2d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.3577099234829125d) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.01d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.1446083531167384) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 1d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.5142895033485844) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) == 0);\n }", "private static Option pickRandom() {\n\t\treturn Option.values()[rand.nextInt(3)];\n\t}", "Point getRandomPoint() {\n\t\t\t\t\tdouble val = Math.random() * 3;\n\t\t\t\t\tif (val >=0.0 && val <1.0)\n\t\t\t\t\t\treturn p1;\n\t\t\t\t\telse if (val >=1.0 && val <2.0)\n\t\t\t\t\t\t\treturn p2;\n\t\t\t\t\telse\n\t\t\t\t\t\t\treturn p3;\n\t\t\t\t\t}", "public int getRandom() {\n ListNode pick = null;\n ListNode p = head;\n int count = 1;\n while (p != null) {\n if (rand.nextInt(count) == 0) {\n pick = p;\n }\n p = p.next;\n count++;\n }\n return pick.val;\n }", "public int dmg(){\r\n dmg = rand.nextInt(att);\r\n if(att == 1)\r\n dmg = 1;\r\n return dmg;\r\n }", "private static int addRandomScore() {\n Random ran = new Random();\n return ran.nextInt(201) + 400;\n }", "void CalculateProbabilities()\n\t{\n\t int i;\n\t double maxfit;\n\t maxfit=fitness[0];\n\t for (i=1;i<FoodNumber;i++)\n\t {\n\t if (fitness[i]>maxfit)\n\t maxfit=fitness[i];\n\t }\n\n\t for (i=0;i<FoodNumber;i++)\n\t {\n\t prob[i]=(0.9*(fitness[i]/maxfit))+0.1;\n\t }\n\n\t}", "private int choose(){\n\t\tdouble temp = 10 * Math.random();\n\t\tint i = (int)temp;\n\t\treturn i;\n\t}", "public abstract int getRandomDamage();", "public int getRandom() {\n Random rand = new Random();\n int idx = rand.nextInt(validLength);\n return set.get(idx);\n }", "public double getAbandonmentProbability() {\n return Math.random();\n }", "public void setTFChoices() {\r\n Random randomGenerator = new Random();\r\n int trueFalseAnswer = randomGenerator.nextInt(2);\r\n studentAnswer.add(trueFalseAnswer);\r\n }", "double getCritChance();", "private void chooseSprite()\r\n\t{\r\n\t\t//Ensure pedestrian sprites exist\r\n\t\tif (sprites.isEmpty()) {\r\n\t\t\tSystem.err.println(\"ERROR: No pedestrian sprites have been loaded\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//Select a random sprite\r\n\t\tint index = (int) Math.floor( Math.random()*sprites.size() );\r\n\t\tspriteName = sprites.get(index);\r\n\t\tsetSprite(\"pedestrians/\"+spriteName);\r\n\t}", "@Test\n public void testDecisionRule() {\n DataProvider provider = new DataProvider();\n provider.createDataDefinition();\n DataHandle handle = provider.getData().getHandle();\n \n RiskModelPopulationUniqueness model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.2d)).getPopulationBasedUniquenessRisk();\n double populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n double sampleUniqueness = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.1d)).getSampleBasedUniquenessRisk().getFractionOfUniqueRecords();\n \n // Risk before anonymization\n assertTrue(sampleUniqueness + \" / \" + populationUniqueness, compareUniqueness(populationUniqueness, 1.0d) == 0);\n assertTrue(sampleUniqueness + \" / \" + populationUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n final ARXAnonymizer anonymizer = new ARXAnonymizer();\n final ARXConfiguration config = ARXConfiguration.create();\n config.addPrivacyModel(new KAnonymity(2));\n config.setSuppressionLimit(0d);\n \n ARXResult result = null;\n try {\n result = anonymizer.anonymize(provider.getData(), config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n final DataHandle outHandle = result.getOutput(false);\n \n populationUniqueness = outHandle.getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getPopulationBasedUniquenessRisk().getFractionOfUniqueTuplesDankar();\n assertTrue(\"Is: \" + populationUniqueness, compareUniqueness(populationUniqueness, 0) == 0);\n }", "public Rule selectRule(Vector ruleSet) {\r\n Enumeration enum2 = ruleSet.elements() ;\r\n long numClauses ;\r\n Rule nextRule ;\r\n\r\n Rule bestRule = (Rule)enum2.nextElement() ;\r\n long max = bestRule.numAntecedents() ;\r\n while (enum2.hasMoreElements()) {\r\n nextRule = (Rule)enum2.nextElement() ;\r\n if ((numClauses = nextRule.numAntecedents()) > max) {\r\n max = numClauses ;\r\n bestRule = nextRule ;\r\n }\r\n }\r\n return bestRule ;\r\n }", "public Skills chooseSkill();", "private static int randomHeight(double p)\n {\n\tint h = 1;\n\twhile (r.nextDouble() < p) {\n\t // make it higher!\n\t h++;\n\t}\n\treturn h;\n }", "@Override\n public Proposal propose(Random rand)\n {\n \n savedValue = variable.getIntegerValue();\n double [] incrementIdx = Multinomial.generate(rand, 1, \n uniformDiscreteProbs(NUM_STATES));\n double [] stepsVector = steps(NUM_STATES);\n \n int increment = 0; \n \n for(int i = 0; i < (2 * NUM_STATES); i++)\n increment += (int) incrementIdx[i] * stepsVector[i];\n \n final int newValue = savedValue + increment;\n variable.setValue(newValue);\n return new ProposalRealization();\n }", "public Hazard selectRandom() {\r\n\t\tRandom gen = new Random();\r\n\t\treturn hazards.get(gen.nextInt(hazards.size()));\r\n\t}", "public abstract void initiateRandomCells(double probabilityForEachCell);", "private void random() {\n\n\t}", "public int getRandom() {\n int k = 1;\n ListNode node = this.head;\n int i = 0;\n ArrayList<Integer> reservoir = new ArrayList<Integer>();\n //先把前k个放进水塘\n while (i < k && node != null) {\n reservoir.add(node.val);\n node = node.next;\n i++;\n }\n // i++; // i == k => i == k+1 这样i就代表了现在已经处理过的总共数字个位\n i = 1;\n while (node != null) {\n //更换水塘里的数字的概率要是 k/(现在处理过的数字总数),所以因为i是从0开始,所以概率为从0\n // 到i的数当中选0 到k-1的数字,rand.nextInt(i) < k的概率是k/(现在处理过的数字总数)\n if (rand.nextInt(k+i) == i) {\n reservoir.set(rand.nextInt(k), node.val);\n }\n i++;\n node = node.next;\n }\n return reservoir.get(0);// or return reservoir when k > 1;\n }", "public void playerRand(int sum) {\n\t\tList<int[]> res = getChoices(sum);\n\t\t// check if no sum res\n\t\tif (res.size() == 0) {\n\t\t\t// System.out.println(\"No Sum = \" + sum + \" You Lose!\");\n\t\t\tlose = true;\n\t\t\treturn;\n\t\t}\n\t\t// pick a rand index form res.\n\t\tRandom rand = new Random();\n\t\tint randInd = rand.nextInt(res.size());\n\t\t// System.out.println(\"rand: \" + randInd + \" size \" + res.size());\n\t\tint[] choosed = res.get(randInd);\n\t\t// System.out.println(\"Sum \" + sum);\n\t\t// System.out.println(Arrays.toString(choosed));\n\t\t// flip the choosen\n\t\tfor (int i = 0; i < choosed.length; i++) {\n\t\t\tchoices[choosed[i]] = false;\n\t\t\tsize--;\n\t\t}\n\t\t// check for win\n\t\tif (size == 0) {\n\t\t\t// System.out.println(\"WIN!\");\n\t\t\twin = true;\n\t\t}\n\t}", "private int evaluate() {\n return (int) (Math.random() * 8);\n }", "public int getRandom() {\r\n var list = new ArrayList<>(set);\r\n return list.get(new Random().nextInt(set.size()));\r\n }", "public Predator reproduce() {\n if(eaten < 2) return null;\n else {\n if ((int) (Math.random() * 100) >= 80) {\n predatorsSpawned++;\n return new Predator(((int) ((speed + Math.random()) * 5)), ((int) (maxEnergy + Math.random()\n * 50)), world, true);\n }\n predatorsSpawned++;\n return new Predator(speed, maxEnergy, world);\n }\n }", "public static String RandomSelectMethod(Random random){\n String[] methodArray = new String[] {\"isValid\",\"setDescription\"};// The list of the of methods to be tested in the Appt class\n\n int n = random.nextInt(methodArray.length);// get a random number between 0 (inclusive) and methodArray.length (exclusive)\n\n return methodArray[n] ; // return the method name \n }", "public static Suit randomSuit() {\n int pick = new Random().nextInt(Suit.values().length-1); // w/o Excuse\n return Suit.values()[pick];\n }", "private void randomBehavior() {\n\t\trandom = rand.nextInt(50);\n\t\tif (random == 0) {\n\t\t\trandom = rand.nextInt(4);\n\t\t\tswitch (random) {\n\t\t\t\tcase 0:\n\t\t\t\t\tchangeFacing(ACTION.DOWN);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tchangeFacing(ACTION.RIGHT);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tchangeFacing(ACTION.UP);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tchangeFacing(ACTION.LEFT);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public Direction[] takeDecision() {\n return this.randomDecision();\n }", "private static void choosePattern() {\n if(grade < 3) {\n pattern = patterns[getRandomNumber(0,18)];\n ////system.out.println(\"Pattern:\" + pattern);\n } else if(grade < 6) {\n pattern = patterns[getRandomNumber(0,20)];\n ////system.out.println(\"Pattern:\" + pattern);\n if(pattern.equals(patterns[21])) {\n //system.out.println(\"Sum To Value Chosen\");\n sumValue = getRandomNumber(4,28);\n //system.out.println(\"Sum Value:\" + sumValue);\n }\n }\n// else {\n//\n// //***Temporary --should get pattern from user\n// pattern = patterns[getRandomNumber(0,23)];\n// //system.out.println(\"Pattern:\" + pattern);\n// if(pattern.equals(patterns[23])) {\n// //system.out.println(\"Sum To Value Chosen\");\n// sumValue = getRandomNumber(4,28);\n// //system.out.println(\"Sum Value:\" + sumValue);\n// }\n// //***\n//\n//// getUserPattern();\n// }\n }", "private void randomizePowers(EliteMobProperties eliteMobProperties) {\n\n if (hasCustomPowers) return;\n if (eliteMobTier < 1) return;\n\n int availableDefensivePowers = 0;\n int availableOffensivePowers = 0;\n int availableMiscellaneousPowers = 0;\n int availableMajorPowers = 0;\n\n if (eliteMobTier >= 1) availableDefensivePowers = 1;\n if (eliteMobTier >= 2) availableOffensivePowers = 1;\n if (eliteMobTier >= 3) availableMiscellaneousPowers = 1;\n if (eliteMobTier >= 4) availableMajorPowers = 1;\n if (eliteMobTier >= 5) availableDefensivePowers = 2;\n if (eliteMobTier >= 6) availableOffensivePowers = 2;\n if (eliteMobTier >= 7) availableMiscellaneousPowers = 2;\n if (eliteMobTier >= 8) availableMajorPowers = 2;\n\n //apply defensive powers\n applyPowers((HashSet<ElitePower>) eliteMobProperties.getValidDefensivePowers().clone(), availableDefensivePowers);\n\n //apply offensive powers\n applyPowers((HashSet<ElitePower>) eliteMobProperties.getValidOffensivePowers().clone(), availableOffensivePowers);\n\n //apply miscellaneous powers\n applyPowers((HashSet<ElitePower>) eliteMobProperties.getValidMiscellaneousPowers().clone(), availableMiscellaneousPowers);\n\n //apply major powers\n applyPowers((HashSet<ElitePower>) eliteMobProperties.getValidMajorPowers().clone(), availableMajorPowers);\n\n MinorPowerPowerStance minorPowerStanceMath = new MinorPowerPowerStance(this);\n MajorPowerPowerStance majorPowerPowerStance = new MajorPowerPowerStance(this);\n\n }", "private void tryPermutations(LinkedList<Creature> list) {\n if (NHWBEasy){\n //no runes here\n testFormation(new Formation(list));\n \n }\n else{\n \n PermutationIterator<Creature> permutations = new PermutationIterator(list);\n while(permutations.hasNext()){\n //if(maxCreatures != Formation.MAX_MEMBERS && (hasRunes || containsRandomBoss)){\n if(maxCreatures != Formation.MAX_MEMBERS && (hasRunes || containsRandomBoss)){\n \n LinkedList<Creature> currentPermutation = permutations.next();\n testFormation(maxWithShufflingBlankSpaces(currentPermutation));\n }\n else{\n //System.out.println(\"No Shuffle\");\n Formation f = new Formation(permutations.next());\n \n if (hasRunes){\n Formation runeF = f.getCopy();\n runeF.addRuneSkills(yourRunes);\n testFormation(runeF);\n }\n else{\n testFormation(f);\n }\n }\n //System.out.println(\"testing the long way\" + maxCreatures);\n }\n }\n \n }", "private static int getRandomNumberOfRooms(){\r\n return r.nextInt(50)+1;\r\n }", "public static int getStrategyChoice() {\r\n\t\tint strategy = -1;\r\n\t\tgetStrategyScanner = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Choose the strategy of your opponent:\" +\r\n\t\t\t\t\"\\n\\t(\" + RANDOM + \") - Random player\" +\r\n\t\t\t\t\"\\n\\t(\" + DEFENSIVE + \") - Defensive player\" +\r\n\t\t\t\t\"\\n\\t(\" + SIDES + \") - To-the-Sides player player\");\r\n\t\twhile (strategy != RANDOM & strategy != DEFENSIVE\r\n\t\t\t\t& strategy != SIDES) {\r\n\t\t\tstrategy=getStrategyScanner.nextInt();\r\n\t\t}\r\n\t\treturn strategy;\r\n\t}", "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}", "public int rollResult(){\r\n return rand.nextInt(6) + 1;\r\n }", "public String generateQuestion(){\r\n qType = rand.nextInt(2);\r\n if (qType ==0)\r\n return \"Multiple choice question.\";\r\n else\r\n return \"Single choice question.\";\r\n }", "public static TradeGood getRandom() {\n TradeGood[] options = new TradeGood[] {WATER, FURS, ORE, FOOD, GAMES, FIREARMS,\n MEDICINE, NARCOTICS, ROBOTS, MACHINES};\n int index = GameState.getState().rng.nextInt(10);\n return options[index];\n }", "public static Ally getRandomRep () {\n return republican[(int) (Math.random() * republican.length)];\n }", "private ExtractedItemsCollection selectItemByChance(Collection<ExtractedItemsCollection> itemsCollections) {\n float sumOfChances = calcSumOfChances(itemsCollections);\n float currentSum = 0f;\n float rnd = (float) Rnd.get(0, (int) (sumOfChances - 1) * 1000) / 1000;\n ExtractedItemsCollection selectedCollection = null;\n for (ExtractedItemsCollection collection : itemsCollections) {\n currentSum += collection.getChance();\n if (rnd < currentSum) {\n selectedCollection = collection;\n break;\n }\n }\n return selectedCollection;\n }", "private ExtractedItemsCollection selectItemByChance(Collection<ExtractedItemsCollection> itemsCollections) {\n float sumOfChances = calcSumOfChances(itemsCollections);\n float currentSum = 0f;\n float rnd = (float) Rnd.get(0, (int) (sumOfChances - 1) * 1000) / 1000;\n ExtractedItemsCollection selectedCollection = null;\n for (ExtractedItemsCollection collection : itemsCollections) {\n currentSum += collection.getChance();\n if (rnd < currentSum) {\n selectedCollection = collection;\n break;\n }\n }\n return selectedCollection;\n }", "public int getRandom() {\n int n = set.size();\n if (n == 0) return 0;\n Object[] res = set.toArray();\n Random rand = new Random();\n int result = rand.nextInt(n);\n return (Integer)res[result];\n }", "void setRandomize(Boolean setting);", "public int getRandom() {\r\n\r\n\t\tListNode temp = this.head;\r\n\t\tListNode random = this.head;\r\n\r\n\t\tint c = 1;\r\n\r\n\t\tfor (; temp != null; temp = temp.next) {\r\n\r\n\t\t\tint r = new Random().nextInt(c) + 1;\r\n\r\n\t\t\tc++;\r\n\t\t\tif (r == 1) {\r\n\t\t\t\trandom = temp;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn random.val;\r\n\r\n\t}", "private Direction selectRandomDirection(List<Direction> possibleDirections) {\n\t\tint random = (int) (Math.random() * possibleDirections.size());\n\t\treturn possibleDirections.get(random);\n\t}", "private int randomWeight()\n {\n return dice.nextInt(1000000);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void setRules() {\n\t\tthis.result = Result.START;\n\t\t// Create all initial rule executors, and shuffle them if needed.\n\t\tthis.rules = new LinkedList<>();\n\t\tModule module = getModule();\n\t\tfor (Rule rule : module.getRules()) {\n\t\t\tRuleStackExecutor executor = (RuleStackExecutor) getExecutor(rule, getSubstitution());\n\t\t\texecutor.setContext(module);\n\t\t\tthis.rules.add(executor);\n\t\t}\n\t\tif (getRuleOrder() == RuleEvaluationOrder.RANDOM || getRuleOrder() == RuleEvaluationOrder.RANDOMALL) {\n\t\t\tCollections.shuffle((List<RuleStackExecutor>) this.rules);\n\t\t}\n\t}", "private int createAbilityIndex() {\n if (this.getPokemonInfo().numAbilities() == 2) {\n return RandomUtils.getRandomInt(2);\n } else {\n return RandomUtils.getRandomInt(3);\n }\n }", "private static SpellEntry RandomSpellGeneratorMethod(List<SpellEntry> spells, int UserInputLevel, String UserInputSchoolOfMagic, String UserInputCharacterClass){\n SpellEntry[] spell_arr = new SpellEntry[spells.size()];\n int NumberOfFoundSpells = 0; // used to count how many spells we found\n\n //Iterate over the List and Check for the Matching criteria\n for (int i = 0; i < spells.size(); i++) {\n if ((spells.get(i).getLevel() == UserInputLevel) && ((spells.get(i).hasClass(UserInputCharacterClass) || UserInputCharacterClass.equalsIgnoreCase(\"any\"))) && ((spells.get(i).getSchoolOfMagic().equalsIgnoreCase(UserInputSchoolOfMagic)) || UserInputSchoolOfMagic.equalsIgnoreCase(\"any\"))) {\n spell_arr[i] = spells.get(i);\n NumberOfFoundSpells++;\n }\n }\n\n //No spells could be found, sad\n if (NumberOfFoundSpells == 0) {\n System.out.println(\"No spells could be found\");\n return null;\n }\n\n\n //Put all the found spells in a new Array\n SpellEntry[] finalArr = new SpellEntry[NumberOfFoundSpells];\n NumberOfFoundSpells = 0; //Now we use it to keep track of where in the final array we are\n for (int i = 0; i < spell_arr.length; i++) {\n if (spell_arr[i] != null) {\n finalArr[NumberOfFoundSpells] = spell_arr[i];\n NumberOfFoundSpells++;\n }\n }\n\n\n Random random = new Random();\n //Returns an random Spell Object\n return finalArr[random.nextInt(NumberOfFoundSpells)];\n\n\n\n\n }", "@Override\r\n\tpublic void setNextProbability(double probability) {\n\t\tthis.nextProbability = probability;\r\n\t}", "private double getRandom() {\n return 2*Math.random() - 1;\n }", "public String CPUDepartProb()\r\n\t{\r\n\t\tdouble prob = Math.random();\r\n\t\t//System.out.println(\"prob: \" + prob);\r\n\t\t\r\n\t\tif(prob<=0.5) //0.5 chance\r\n\t\t{\r\n\t\t\treturn (\"Leave system\");\r\n\t\t}\r\n\t\telse if(prob>0.5 && prob<=(0.5+0.1)) //0.1 chance\r\n\t\t{\r\n\t\t\treturn (\"To Disk\");\r\n\t\t}\r\n\t\telse\t//0.4 chance\r\n\t\t{\r\n\t\t\treturn (\"To network\");\r\n\t\t}\r\n\t}", "public void setWhoGoesFirstRandom() {\n Random ran = new Random();\n int i = ran.nextInt(2) + 1;\n if(i == 1) {\n setWhoGoesFirst(humanPlayer);\n } else {\n setWhoGoesFirst(aiPlayer);\n }\n }", "public int throwRandomStrategy(int[] fighter) {\n Random rnd = new Random();\n int defenseLimit = 3;\n//If little life left, he defends 50% of the blows\n if (fighter[LIFE] < 2) {\n defenseLimit = 1;\n }\n int accio = rnd.nextInt(10);\n if ((accio >= 0) && (accio < defenseLimit)) {\n return Combat.ATTACK;\n } else if ((defenseLimit >= 3) && (accio < 6)) {\n return Combat.DEFENSE;\n } else if ((accio >= 6) && (accio < 8)) {\n return Combat.CHEATING;\n } else {\n return Combat.MANEUVER;\n }\n }", "public abstract boolean isRandom();", "private Action selectRandomAction() {\n int fuel;\n String car, driver;\n Tire tire;\n TirePressure pressure;\n\n // Possible tire pressures\n List<TirePressure> tirePressures = Arrays.asList(\n TirePressure.FIFTY_PERCENT,\n TirePressure.SEVENTY_FIVE_PERCENT,\n TirePressure.ONE_HUNDRED_PERCENT\n );\n\n // Possible fuel levels (note that this is an arbitrary discretization)\n List<Integer> fuelLevels = new ArrayList<>();\n int fuelInterval = ProblemSpec.FUEL_MAX / FUEL_DISCRETE_INTERVALS;\n\n for (int i = 0; i < FUEL_DISCRETE_INTERVALS; i++) {\n fuelLevels.add(fuelInterval * i);\n }\n\n List<ActionType> validActionTypes = problemSpec.getLevel().getAvailableActions();\n ActionType actionType = getRandomElement(validActionTypes);\n Action action;\n\n // Pick a random action from A1-A8 and then randomize the parameters\n switch (actionType.getActionNo()) {\n case 1:\n action = new Action(actionType);\n break;\n case 2:\n car = getRandomElement(problemSpec.getCarOrder());\n action = new Action(actionType, car);\n break;\n case 3:\n driver = getRandomElement(problemSpec.getDriverOrder());\n action = new Action(actionType, driver);\n break;\n case 4:\n tire = getRandomElement(problemSpec.getTireOrder());\n action = new Action(actionType, tire);\n break;\n case 5:\n fuel = getRandomElement(fuelLevels);\n action = new Action(actionType, fuel);\n break;\n case 6:\n pressure = getRandomElement(tirePressures);\n action = new Action(actionType, pressure);\n break;\n case 7:\n car = getRandomElement(problemSpec.getCarOrder());\n driver = getRandomElement(problemSpec.getDriverOrder());\n action = new Action(actionType, car, driver);\n break;\n default:\n // A8\n tire = getRandomElement(problemSpec.getTireOrder());\n fuel = getRandomElement(fuelLevels);\n pressure = getRandomElement(tirePressures);\n action = new Action(actionType, tire, fuel, pressure);\n }\n\n return action;\n\n }" ]
[ "0.6056332", "0.6040098", "0.6003508", "0.58705956", "0.5811023", "0.5670237", "0.5627615", "0.5541947", "0.5520074", "0.5507753", "0.54864067", "0.5449122", "0.5446578", "0.5444883", "0.5416543", "0.53840435", "0.53786385", "0.5353573", "0.5346338", "0.533098", "0.53300714", "0.53100485", "0.5282451", "0.5257034", "0.5252867", "0.52509993", "0.523262", "0.52272165", "0.5212517", "0.5207091", "0.51981777", "0.518854", "0.51851684", "0.5177307", "0.5172276", "0.5169404", "0.51645106", "0.51638085", "0.5153459", "0.51496416", "0.514587", "0.51399153", "0.51356417", "0.5122477", "0.5116372", "0.51095325", "0.5108767", "0.5108498", "0.5090261", "0.50848615", "0.5079993", "0.50747967", "0.50728357", "0.5062832", "0.5060726", "0.5058063", "0.5055298", "0.50533676", "0.50410813", "0.5034251", "0.5033189", "0.50322634", "0.5022559", "0.5020254", "0.5005892", "0.49967772", "0.49885944", "0.49862382", "0.49740604", "0.4972109", "0.49645364", "0.4961788", "0.49616948", "0.49603105", "0.49552685", "0.49485368", "0.49439856", "0.49412873", "0.4935429", "0.49335882", "0.4929331", "0.49249363", "0.49248102", "0.49201497", "0.49201497", "0.49149108", "0.49037075", "0.48987028", "0.48986936", "0.48929736", "0.48894757", "0.4885157", "0.48771033", "0.48755893", "0.48695162", "0.48662606", "0.48624656", "0.48615757", "0.48605743", "0.4857182" ]
0.80272484
0
Performance: O(n^2) huge improvement from bottom up
private int recursiveTopDown(int[] price, int n) { if( n== 0) return 0; int ans = Integer.MIN_VALUE; for (int i = 0; i < n; i++) { ans = Math.max(ans, price[i] + recursiveTopDown(price, n - 1 - i)); } return ans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "public int[] squareUp(int n) {\r\n int[]arreglo=new int[(n*n)]; // O(1)\r\n if(n==0){ // O(1)\r\n return arreglo; // O(1)\r\n }\r\n for(int i=n-1;i<arreglo.length;i=i+n){ // O(n)\r\n for (int j=i;j>=i-(i/n);j--){ // O(1)\r\n arreglo[j]=1+(i-j); // O(1)\r\n }\r\n }\r\n return arreglo; // O(1)\r\n}", "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }", "private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }", "private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) {\r\n/* 133 */ return j;\r\n/* */ }\r\n/* 135 */ if (this.b[j] == a) {\r\n/* 136 */ return -1;\r\n/* */ }\r\n/* */ }", "private static void get4ElementsSumCountFastest(String inputLine, int target) {\n String[] arr = inputLine.split(\" \");\n if (arr.length < 3) {\n System.out.println(0);\n return;\n }\n\n Map<Integer, Set<String>> pairSumMap = new HashMap<>();\n List<Integer> list = new ArrayList<>(arr.length);\n for (String s : arr) {\n list.add(Integer.parseInt(s.trim()));\n }\n\n int sum = 0, diff = 0;\n for (int i = 0; i < arr.length; i++) {\n for (int j = i + 1; j < arr.length; j++) {\n sum = list.get(i) + list.get(j);\n if (sum < target) {\n pairSumMap.putIfAbsent(sum, new HashSet<>());\n pairSumMap.get(sum).add(i + \"-\" + j);\n }\n }\n }\n\n for (Map.Entry<Integer, Set<String>> mk : pairSumMap.entrySet()) {\n diff = target - mk.getKey();\n if (pairSumMap.containsKey(diff)) {\n Set<String> indexesList = mk.getValue();\n for (String index : indexesList) {\n int indexOrgX = Integer.parseInt(index.split(\"-\")[0]);\n int indexOrgY = Integer.parseInt(index.split(\"-\")[1]);\n for (String newIdx : pairSumMap.get(diff)) {\n int indexNewX = Integer.parseInt(newIdx.split(\"-\")[0]);\n int indexNewY = Integer.parseInt(newIdx.split(\"-\")[1]);\n if (indexOrgX != indexNewX && indexOrgX != indexNewY && indexOrgY != indexNewX && indexOrgY != indexNewY) {\n System.out.println(1);\n return;\n }\n }\n }\n }\n }\n System.out.println(0);\n }", "public static int example4(int[] arr) { // O(1)\r\n\t\tint n = arr.length, prefix = 0, total = 0; // O(1), O(1), (1)\r\n\t\tfor (int j = 0; j < n; j++) { // loop from 0 to n-1 // O(n)\r\n\t\t\tprefix += arr[j];\r\n\t\t\ttotal += prefix;\r\n\t\t}\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: The method contains a (for) loop and it runs (n) times.This loop\r\n\t\t * dominates the runtime.We always aim for the worse-case and maximum time. The\r\n\t\t * answer is it is linear time of O(n) notation.\r\n\t\t * \r\n\t\t */\r\n\t}", "public int findDuplicate(int[] nums) {\n if(nums == null || nums.length == 0) return 0;\n\n int slow = nums[0];\n int fast = nums[nums[0]];\n\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[nums[fast]];\n }\n\n fast = 0;\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[fast];\n }\n\n return slow;\n}", "static long arrayManipulation(int n, int[][] queries) {\r\n long result = 0, sum = 0;\r\n long[] arr = new long[n];\r\n for(int i = 0; i < queries.length; i++){\r\n int firstIndex = queries[i][0] - 1;\r\n int lastIndex = queries[i][1] - 1;\r\n long numberToAdd = queries[i][2];\r\n arr[firstIndex] += numberToAdd;\r\n if (lastIndex+1 < n)\r\n arr[lastIndex+1] -= numberToAdd;\r\n }\r\n\r\n for(long l : arr){\r\n sum += l;\r\n if(sum > result)\r\n result = sum;\r\n }\r\n\r\n return result;\r\n }", "public static int example3(int[] arr) { // O(n)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n^2)\r\n\t\t\tfor (int k = 0; k <= j; k++) // loop from 0 to j\r\n\t\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Since we have nested for loop which dominates here and it is\r\n\t\t * O(n^2) and we always take the maximum. so the answer is quadratic time O(n^2)\r\n\t\t * \r\n\t\t */\r\n\t}", "public static int example2(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j += 2) // note the increment of 2 // O(1)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Once Again, we have a (for) loop and it runs (n) times and this\r\n\t\t * for loop dominates the runtime.So this is linear time and the answer is O(n).\r\n\t\t * \r\n\t\t */\r\n\t}", "public int[] fix34(int[] nums) {\r\n\tint i=0; // O(1)\r\n while(i<nums.length && nums[i]!=3) // O(n)\r\n i++; // n+1\r\n int j=i; // O(1)\r\n while(j+1<nums.length && nums[j+1]!=4) // O(n)\r\n j++; // n+1\r\n while(i<nums.length){ // O(n)\r\n if(nums[i]==3){ // O(1)\r\n int temp=nums[i+1]; // O(1)\r\n nums[i+1]=nums[j+1]; //O(1)\r\n nums[j+1]=temp; // O(1)\r\n while(j+1<nums.length && nums[j+1] != 4) //O(n)\r\n j++; // n+1\r\n }\r\n i++; // n+1\r\n }\r\n return nums; //O(1)\r\n}", "public List<List<Integer>> threeSum(int[] nums) {\n List<List<Integer>> result = new ArrayList<>(nums.length);\n\n // Prepare\n Arrays.sort(nums);\n// int firstPositiveIndex = 0;\n// int negativeLength = 0;\n// List<Integer> numsFiltered = new ArrayList<>();\n// for (int i = 0; i < nums.length; i++) {\n// if (i == 0 || i == 1 || nums[i] == 0 || (nums[i] != nums[i-2])) {\n// numsFiltered.add(nums[i]);\n// if ((nums[i] >= 0) && (firstPositiveIndex == 0)) {\n// firstPositiveIndex = numsFiltered.size() - 1;\n// }\n// if ((nums[i] <= 0)) {\n// negativeLength = numsFiltered.size();\n// }\n// }\n// }\n// nums = numsFiltered.stream().mapToInt(i->i).toArray();\n\n // Func\n\n for(int i=0; (i < nums.length) && (nums[i] <= 0); i++) {\n if (i != 0 && nums[i] == nums[i-1]) {\n continue;\n }\n for(int j=i+1; j<nums.length; j++) {\n if (j != i+1 && nums[j] == nums[j-1]) {\n continue;\n }\n for(int k=nums.length-1; (k>j) && nums[k] >= 0; k--) {\n if (k != nums.length-1 && nums[k] == nums[k+1]) {\n continue;\n }\n int sum = nums[i]+nums[j]+nums[k];\n if (sum > 0) {\n continue;\n } else if (sum < 0) {\n break;\n }\n\n List<Integer> ok = new ArrayList<>();\n ok.add(nums[i]);\n ok.add(nums[j]);\n ok.add(nums[k]);\n result.add(ok);\n break;\n }\n }\n }\n\n// System.out.println(\"Finish time = \" + (System.nanoTime() - start) / 1_000_000);\n// System.out.println(\"result size = \" + result.size());\n\n return result;\n }", "private void faster() {\n BigInteger[] denoms = new BigInteger[1000];\n BigInteger[] nums = new BigInteger[1000];\n\n nums[0] = BigInteger.valueOf(3);\n denoms[0] = BigInteger.valueOf(2);\n\n for (int i = 1; i < 1000; i++) {\n denoms[i] = nums[i - 1].add(denoms[i - 1]);\n nums[i] = denoms[i].add(denoms[i - 1]);\n }\n\n int count = 0;\n for (int i = 1; i < 1000; i++) {\n if (nums[i].toString().length() > denoms[i].toString().length()) {\n count++;\n }\n }\n this.answer = count;\n }", "private static long calc1()\n {\n final int min = 1000;\n final int max = 10000;\n\n // initialize\n List<List<Integer>> m = new ArrayList<>();\n for (int k = 0; k < end; k++) {\n List<Integer> list = new ArrayList<Integer>();\n int n = 1;\n while (k >= start) {\n int p = pkn(k, n);\n if (p >= max) {\n break;\n }\n if (p >= min) {\n list.add(p);\n }\n n++;\n }\n m.add(list);\n }\n\n boolean[] arr = new boolean[end];\n arr[start] = true;\n\n List<Integer> solutions = new ArrayList<>();\n List<Integer> list = m.get(start);\n for (Integer first : list) {\n LinkedList<Integer> values = new LinkedList<>();\n values.add(first);\n f(m, arr, values, 1, solutions);\n // we stop at the first solution found\n if (!solutions.isEmpty()) {\n break;\n }\n }\n\n // solutions.stream().forEach(System.out::println);\n int res = solutions.stream().reduce(0, Integer::sum);\n return res;\n }", "int minOperations(int[] arr) {\n // Write your code here\n Set<String> set = new HashSet<>();//store visited string\n Queue<String> queue = new LinkedList<>(); // store next strs\n int counter = 0;\n\n queue.offer(getKey(arr));\n set.add(getKey(arr));\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n List<String> curs = new ArrayList<>();\n while (size > 0) {\n curs.add(queue.poll());\n size--;\n }\n\n for(String cur : curs) {\n if (isIncreasing(cur)) {\n return counter;\n }\n\n for(int i = 0; i < cur.length(); i++) {\n String next = reverseString(cur, i);\n if (!set.contains(next)) {\n set.add(next);\n queue.offer(next);\n }\n }\n }\n\n counter++;\n }\n\n return counter;\n }", "public static void main(String[] args){\n int MIN = Integer.parseInt(args[0]);\n MAX = Integer.parseInt(args[1]);\n cutoffs = new int[args.length - 2];\n cache = new ArrayList<IndexedArrayList<SuperSavvyTrieHelper2>>();\n for (int i = 2; i < args.length; i++){\n cutoffs[i - 2] = Integer.parseInt(args[i]);\n cache.add(new IndexedArrayList<SuperSavvyTrieHelper2>());\n }\n for (int i = 0; i < cutoffs.length / 2; i++){\n int temp = cutoffs[i];\n cutoffs[i] = cutoffs[cutoffs.length - 1 - i];\n cutoffs[cutoffs.length - 1 - i] = temp;\n }\n multiplicitiesUsed = new boolean[MAX + 1];\n basesUsed = new DoublyLinkedArray(MAX + 1);\n SuperSavvyTrieHelper2.setCorrespondance(basesUsed);\n /*\n long count1 = lowerRecursion(MAX, 0);\n long count2 = middleRecursion(MAX, 0);\n long count3 = upperRecursion(MAX, 0);\n long total = count1 + count2 + count3;\n System.out.printf(\"%d + %d + %d = %d\\n\", count1, count2, count3, total);\n */\n hitCounts = new long[cutoffs.length];\n missCounts = new long[cutoffs.length];\n statCollector = new StatCollector(cutoffs);\n\n long startTime = System.nanoTime();\n long[] values = new long[MAX - MIN + 1];\n for (int i = MIN; i <= MAX; i++) {\n values[i - MIN] = upperRecursionWrapper(i);\n }\n //long[] testValues = new long[] {1752443,1911046, 2067456,2249444,2429337, 2647532,2852449,3101167,3350292,3632299,3916575};\n for (int i = 0; i < values.length; i++){\n //if (testValues[i] != values[i]){\n System.out.printf(\"%d: %d\\n\", i + MIN, values[i]);\n //}\n }\n long endTime = System.nanoTime();\n System.out.printf(\"%f,\", (double)(endTime - startTime) / 1000000000.0);\n long totalMissCounts = 0;\n long totalMissWeight1 = 0;\n long totalMissWeight2 = 0;\n long totalMissWeight3 = 0;\n /*\n for (int i = 0; i < cutoffs.length; i++){\n long totalCounts = hitCounts[i] + missCounts[i];\n totalMissCounts += missCounts[i];\n totalMissWeight1 += missCounts[i] * cutoffs[i];\n totalMissWeight2 += (hitCounts[i] / missCounts[i]) * cutoffs[i];\n totalMissWeight3 += (hitCounts[i] - missCounts[i]) * cutoffs[i] * cutoffs[i];\n System.out.printf(\"\\tCache %d: %d/%d/%d (%.5f%%)\", cutoffs[i], hitCounts[i], missCounts[i], totalCounts, (double) hitCounts[i] / totalCounts);\n }\n System.out.printf(\"\\t\\tMissCounts: %d, weighted: %d, ratio: %d, diff^2: %d\\n\", totalMissCounts, totalMissWeight1, totalMissWeight2, totalMissWeight3);\n */\n statCollector.printAll();\n }", "public static int[] exe1(int[] arr){ // Solution O(n) in time and constant in Memory\n int nzeros=0;\n\n for (int i=0; i<arr.length; i++) {\n arr[i-nzeros] = arr[i];\n if (arr[i] == 0) {\n nzeros++;\n }\n }\n for (int i=arr.length-1; i>arr.length-nzeros-1; i--) {\n arr[i] = 0;\n }\n\n return arr;\n }", "static long findSum(int N)\n\t{\n\t\tif(N==0) return 0;\n\t\treturn (long)((N+1)>>1)*((N+1)>>1)+findSum((int)N>>1);\n\t\t\n\t}", "static long nPolyNTime(int[] n) {\n int temp = n.length;\n long sum = 0;\n if(n == null || n.length == 0) return -1;\n for(int i = 0; i < n.length; ++i) {\n while(temp --> 0) {\n for(int j = 0; j < n.length; ++j) {\n sum += n[i] + n[j];\n }\n }\n }\n return sum;\n }", "static int getMissingByAvoidingOverflow(int a[], int n)\n\t {\n\t int total = 2;\n\t for (int i = 3; i <= (n + 1); i++)\n\t {\n\t total =total+ i -a[i - 2];\n\t //total =total- a[i - 2];\n\t }\n\t return total;\n\t }", "private static boolean findEqualSumSubsetBottomUp(int[] arr, int n) {\n\t\tint sum=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tsum+=arr[i];\n\t\t}\n\t\tif(sum%2==1) {\n\t\t\treturn false;\n\t\t}\n \t\treturn findEqualSumBottomUp(arr,n,sum/2);\n\t}", "@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }", "void h(List<List<Integer>> r, List<Integer> t, int n, int s){ \n for(int i = s; i*i <= n; i++){\n if(n % i != 0) continue; \n t.add(i);\n t.add(n / i);\n r.add(new ArrayList<>(t));\n t.remove(t.size() - 1);\n h(r, t, n/i, i);\n t.remove(t.size() - 1);\n }\n }", "void solve() throws IOException {\n int[] nk = ril(2);\n int n = nk[0];\n int k = nk[1];\n int[] p = ril(n);\n int[] b = ril(k);\n for (int i = 0; i < n; i++) p[i]--;\n for (int i = 0; i < k; i++) b[i]--;\n\n int[] numToIdx = new int[n];\n for (int i = 0; i < n; i++) numToIdx[p[i]] = i;\n\n boolean[] remove = new boolean[n];\n Arrays.fill(remove, true);\n for (int bi : b) remove[bi] = false;\n List<Integer> toRemove = new ArrayList<>(n - k);\n for (int i = 0; i < n; i++) if (remove[i]) toRemove.add(i);\n Collections.sort(toRemove);\n\n int[] prevSmaller = new int[n];\n prevSmaller[0] = -1;\n int prevIdx = remove[p[0]] ? -1 : 0;\n for (int i = 1; i < n; i++) {\n int j = prevIdx;\n while (j != -1 && p[i] < p[j]) j = prevSmaller[j];\n prevSmaller[i] = j;\n if (!remove[p[i]]) prevIdx = i;\n }\n int[] nextSmaller = new int[n];\n nextSmaller[n-1] = n;\n prevIdx = remove[p[n-1]] ? n : n-1;\n for (int i = n-2; i >= 0; i--) {\n int j = prevIdx;\n while (j != n && p[i] < p[j]) j = nextSmaller[j];\n nextSmaller[i] = j;\n if (!remove[p[i]]) prevIdx = i;\n }\n\n int[] init = new int[n];\n Arrays.fill(init, 1);\n SegmentTree st = new SegmentTree(init);\n long ans = 0;\n for (int x : toRemove) {\n int idx = numToIdx[x];\n int l = prevSmaller[idx] + 1;\n int r = nextSmaller[idx] - 1;\n ans += st.query(l, r+1);\n st.modify(idx, 0);\n }\n pw.println(ans);\n }", "public static int degreeOfArray(List<Integer> arr) { arr.length = n\n // num of Keys = k\n // O(n + k)\n // max value count = m\n //\n PriorityQueue<Node> pq = new PriorityQueue<>((i, j)-> j.count - i.count);\n Map<Integer, NodePosition> posMap = new HashMap<>();\n Map<Integer, Node> countMap = new HashMap<>();\n // [1, 2, 3, 4, 5, 6]\n for (int i = 0; i < arr.size(); i++) {\n int cur = arr.get(i);\n\n if (!countMap.containsKey(cur)) {\n countMap.put(cur, new Node(cur, 1));\n } else {\n Node curNode = countMap.get(cur);\n curNode.count++;\n countMap.put(cur, curNode);\n }\n\n if (!posMap.containsKey(cur)) {\n posMap.put(cur, new NodePosition(i, i));\n } else {\n NodePosition curNodePos = posMap.get(cur);\n curNodePos.endIndex = i;\n posMap.put(cur, curNodePos);\n }\n }\n //Iterator<Map.Entry<Integer, Node> it = new Iterator<>(countMap);\n for (Map.Entry<Integer, Node> e : countMap.entrySet()) {\n pq.add(e.getValue());\n }\n\n // [1, 2, 1, 3 ,2]\n // 1 , 2 , 3\n Node curNode = pq.remove();\n int maxCount = curNode.count;\n\n int minRange = posMap.get(curNode.num).endIndex - posMap.get(curNode.num).startIndex;\n\n while (!pq.isEmpty() && maxCount == pq.peek().count) {\n curNode = pq.remove();\n NodePosition nPos = posMap.get(curNode.num);\n minRange = Math.min(minRange, nPos.endIndex - nPos.startIndex);\n }\n\n return minRange + 1;\n }", "public static int example1(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\t}", "public static int solveEfficient(int n) {\n if (n == 0 || n == 1)\n return 1;\n\n int n1 = 1;\n int n2 = 1;\n int sum = 0;\n\n for (int i = 2; i <= n; i++) {\n sum = n1 + n2;\n n1 = n2;\n n2 = sum;\n }\n return sum;\n }", "static long arrayManipulation(int n, int[][] queries) {\n int len = queries.length;\n long[] arr = new long[n + 2];\n\n for (int i = 0; i < arr.length; i++) {\n arr[i] = 0;\n }\n\n\n for (int i = 0; i < len; i++) {\n int[] query = queries[i];\n int a = query[0];\n int b = query[1];\n int k = query[2];\n arr[a] = arr[a] + k;\n if (b + 1 <= arr.length) {\n arr[b + 1] = arr[b + 1] - k;\n }\n }\n\n long max = arr[0];\n long x = 0;\n\n for (int i = 0; i < arr.length; i++) {\n x = x + arr[i];\n max = Math.max(x, max);\n }\n\n return max;\n }", "public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n if (t < 0) return false;\n long sz = (long)t + 1;\n Map<Long, Long> map = new HashMap<>();\n for (int i = 0; i < nums.length; ++i) {\n long bucket = getBucket(nums[i], sz);\n if (map.containsKey(bucket)) return true;\n if (map.containsKey(bucket + 1) && Math.abs(nums[i] - map.get(bucket + 1)) < sz) return true;\n if (map.containsKey(bucket - 1) && Math.abs(nums[i] - map.get(bucket - 1)) < sz) return true;\n map.put(bucket, (long)nums[i]);\n if (i >= k) map.remove(getBucket(nums[i - k], sz));\n }\n return false;\n}", "static int[] sol1(int[]a, int n){\r\n\t\tMap <Integer,Integer> map= new HashMap();\r\n\t\tfor (int i = 0; i< a.length; i++){\r\n\t\t\tmap.put(a[i],i);\r\n\t\t}\r\n\t\tArrays.sort(a);\r\n\t\tint i = 0; \r\n\t\tint j = a.length -1;\r\n\t\twhile (i <= j){\r\n\t\t\tif(a[i]+a[j]>n) j--;\r\n\t\t\telse if (a[i]+a[j]<n) i++;\r\n\t\t\telse break;\r\n\t\t}\r\n\t\tint[] ans= {map.get(a[i]),map.get(a[j])};\r\n\t\treturn ans;\r\n\t}", "private static int f(int n, int complete, int other, int[] arr) {\n if(n<=0)\n return 0;\n int res=0;\n ArrayList<Integer>list=new ArrayList<Integer>();\n for(int a:arr)\n if(a>0)\n list.add(a);\n int brr[]=new int[list.size()];\n for(int i=0;i<brr.length;i++)\n brr[i]=list.get(i);\n while(brr.length!=0){\n int index=0;\n for(int i=1;i<brr.length;i++)\n if(brr[index]<brr[i])\n index=i;\n for(int i=0;i<brr.length;i++){\n if(index==i)\n brr[i]-=complete;\n else\n brr[i]-=other;\n }\n list=new ArrayList<Integer>();\n for(int a:brr)\n if(a>0)\n list.add(a);\n brr=new int[list.size()];\n for(int i=0;i<brr.length;i++)\n brr[i]=list.get(i);\n res++;\n }\n return res;\n }", "static int[] OnepassSol1(int[]a, int n){\r\n Map<Integer, Integer> map = new HashMap<>();\r\n for (int i = 0; i < a.length; i++) {\r\n int complement = n - a[i];\r\n if (map.containsKey(complement)) {\r\n return new int[] { map.get(complement), i };\r\n }\r\n map.put(a[i], i);\r\n }\r\n int[] ans = {-1,-1};\r\n return ans;\r\n }", "private static int betterSolution(int n) {\n return n*n*n;\n }", "public int[] findAnyPairIndexesWhileLCMMinimized() {\n if (seq.length < 2) {\n return null;\n }\n int size = 0;\n for (int i = 1; i <= m; i++) {\n size += m / i;\n }\n\n IntegerMultiWayDeque deque = new IntegerMultiWayDeque(m + 1, size);\n for (int i = 1; i <= m; i++) {\n for (int j = i; j <= m; j += i) {\n if (!indexesOfSeq.isEmpty(j)) {\n deque.addLast(i, j / i);\n }\n }\n }\n\n long lcm = INF;\n int v1 = 0;\n int v2 = 0;\n\n for (int i = 1; i <= m; i++) {\n if (!indexesOfSeq.isEmpty(i) && indexesOfSeq.peekFirst(i) != indexesOfSeq.peekLast(i)) {\n lcm = v1 = v2 = i;\n break;\n }\n }\n\n IntegerVersionArray iva = new IntegerVersionArray(m + 1);\n IntegerDequeImpl stack = new IntegerDequeImpl(m);\n for (int i = 1; i <= m; i++) {\n iva.clear();\n stack.clear();\n while (!deque.isEmpty(i)) {\n int last = deque.removeFirst(i);\n factorize(last);\n int total = ie(iva, allFactors.size() - 1, 1, 0);\n if (total > 0) {\n int pop = 0;\n while (total > 0) {\n pop = stack.removeLast();\n if (GCDs.gcd(pop, last) == 1) {\n total--;\n }\n add(iva, pop, -1);\n }\n long l = LCMs.lcm(last, pop) * i;\n if (l < lcm) {\n lcm = l;\n v1 = last * i;\n v2 = pop * i;\n }\n }\n add(iva, last, 1);\n stack.addLast(last);\n }\n }\n\n return new int[]{indexesOfSeq.peekFirst(v1), indexesOfSeq.peekLast(v2)};\n }", "private static void dfsBribe(int n, List<Integer>[] ch, long[] w) {\n if (ch[n].size() == 0){\n In[n] = w[n];\n OutD[n] = Long.MAX_VALUE;\n OutU[n] = 0;\n }\n //recurrance case: non.leaf, do dfs for all subordinates then calculate In, OutUp & OutDown.\n else{\n for (int c:ch[n])\n dfsBribe(c, ch, w); //running once for each child thereby O(N)\n In[n] = w[n];\n for (int c:ch[n]){ //O(N) running time\n In[n] += OutU[c];\n OutU[n] += Math.min(In[c], OutD[c]);\n OutD[n] += Math.min(In[c], OutD[c]);\n }\n OutD[n] += delta(n, ch); //add delta for no in Children\n }\n\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint a[] = {2,1,3,-4,-2};\n\t\t//int a[] = {1 ,2, 3, 7, 5};\n\t\tboolean found = false;\n\t\t\n\t\t//this will solve in o n^2\n\t\tfor(int i = 0 ; i < a.length ; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = i ; j< a.length ; j++){\n\t\t\t\tsum += a[j] ;\n\t\t\t\tif(sum == 0){\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(found)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// link : https://www.youtube.com/watch?v=PSpuM9cimxA&list=PLKKfKV1b9e8ps6dD3QA5KFfHdiWj9cB1s&index=49\n\t\tSystem.out.println(found + \" found\");\n\t\tfound = false;\n\t\t//solving with O of N with the help sets\n\t\t// x + 0 = y\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint sum = 0;\n\t\tfor(int element : a){\n\t\t\tset.add(sum);\n\t\t\tsum += element;\n\t\t\tif(set.contains(sum)){\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(set);\n\t\t\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t\tfound = false;\n\t\t// when the sum of subarray is K\n\t\t\n\t\t//solving with O of N with the help sets\n\t\t//x + k = y >>>\n\t\tSet<Integer> set1 = new HashSet<>();\n\t\tint k = 12;\n\t\tint summ = 0;\n\t\tfor(int element : a){\n\t\t\tset1.add(summ);\n\t\t\tsumm += element;\n\t\t\tif(set1.contains(summ - k)){ // y - k = x(alredy presnt or not)\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(set1);\n\t\tSystem.out.println();\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t}", "public static ArrayList<ArrayList<Integer>> fourSum(ArrayList<Integer> a, int k) {\n Collections.sort(a);\n System.out.println(a);\n LinkedHashMap<Integer, List<List<Integer>>> m = new LinkedHashMap<Integer, List<List<Integer>>>();\n for (int i = 0; i <= a.size() - 3; i++) {\n for (int j = i + 1; j <= a.size() - 2; j++) {\n if (m.get(a.get(i) + a.get(j)) == null) {\n ArrayList<List<Integer>> v = new ArrayList<List<Integer>>();\n List<Integer> c = new ArrayList<Integer>();\n c.add(i);\n c.add(j);\n v.add(c);\n m.put(a.get(i) + a.get(j), v);\n } else {\n List<List<Integer>> v = m.get(a.get(i) + a.get(j));\n List<Integer> c = new ArrayList<Integer>();\n c.add(i);\n c.add(j);\n v.add(c);\n m.put(a.get(i) + a.get(j), v);\n }\n\n }\n }\n LinkedHashSet<ArrayList<Integer>> res = new LinkedHashSet<ArrayList<Integer>>();\n for (int i = 2; i <= a.size() - 1; i++) {\n for (int j = i + 1; j < a.size(); j++) {\n List<List<Integer>> v = m.get(k - (a.get(i) + a.get(j)));\n if (v != null && v.size() >= 1) {\n for (List<Integer> l : v) {\n\n if (l.get(0) < l.get(1) && l.get(1) < i && l.get(1) < j) {\n //System.out.println(l.get(0) + \" \" + l.get(1) + \" \" + i + \" \" + j);\n ArrayList<Integer> out = new ArrayList<Integer>();\n out.add(a.get(l.get(0)));\n out.add(a.get(l.get(1)));\n out.add(a.get(i));\n out.add(a.get(j));\n Collections.sort(out);\n //System.out.println(out);\n res.add(out);\n }\n }\n }\n }\n }\n return new ArrayList<ArrayList<Integer>>(res);\n }", "public static long solve(long[] data, long k) {\n int n = data.length;\n\n Buffer<Interval> buffer = new Buffer<>(Interval::new, x -> {}, n * 2);\n\n Randomized.shuffle(data);\n Arrays.sort(data);\n\n List<Interval> lastLevel = new ArrayList<>(n);\n List<Interval> curLevel = new ArrayList<>(n);\n lastLevel.add(newInterval(buffer, 0, n - 1));\n int level = Log2.floorLog(data[n - 1]);\n long mask = 0;\n for (; level >= 0; level--) {\n curLevel.clear();\n for (Interval interval : lastLevel) {\n int l = interval.l;\n int r = interval.r;\n int m = r;\n while (m >= l && Bits.get(data[m], level) == 1) {\n m--;\n }\n interval.m = m;\n }\n long total = 0;\n for (Interval interval : lastLevel) {\n total += (long) (interval.m - interval.l + 1) * (interval.relative.m - interval.relative.l + 1);\n total += (long) (interval.r - interval.m) * (interval.relative.r - interval.relative.m);\n }\n if (total < k) {\n k -= total;\n mask = Bits.set(mask, level, true);\n for (Interval interval : lastLevel) {\n if (interval.relative == interval) {\n if (interval.l <= interval.m && interval.m < interval.r) {\n Interval a = newInterval(buffer, interval.l, interval.m);\n Interval b = newInterval(buffer, interval.m + 1, interval.r);\n a.relative = b;\n b.relative = a;\n curLevel.add(a);\n curLevel.add(b);\n }\n } else if (interval.r >= interval.relative.r) {\n if (interval.l <= interval.m && interval.relative.r > interval.relative.m) {\n Interval a = newInterval(buffer, interval.l, interval.m);\n Interval b = newInterval(buffer, interval.relative.m + 1, interval.relative.r);\n a.relative = b;\n b.relative = a;\n curLevel.add(a);\n curLevel.add(b);\n }\n if (interval.m < interval.r && interval.relative.m >= interval.relative.l) {\n Interval a = newInterval(buffer, interval.m + 1, interval.r);\n Interval b = newInterval(buffer, interval.relative.l, interval.relative.m);\n a.relative = b;\n b.relative = a;\n curLevel.add(a);\n curLevel.add(b);\n }\n }\n }\n } else {\n for (Interval interval : lastLevel) {\n if (interval.relative == interval) {\n if (interval.l <= interval.m) {\n Interval a = newInterval(buffer, interval.l, interval.m);\n a.relative = a;\n curLevel.add(a);\n }\n if (interval.m < interval.r) {\n Interval a = newInterval(buffer, interval.m + 1, interval.r);\n a.relative = a;\n curLevel.add(a);\n }\n } else if (interval.r >= interval.relative.r) {\n if (interval.l <= interval.m && interval.relative.l <= interval.relative.m) {\n Interval a = newInterval(buffer, interval.l, interval.m);\n Interval b = newInterval(buffer, interval.relative.l, interval.relative.m);\n a.relative = b;\n b.relative = a;\n curLevel.add(a);\n curLevel.add(b);\n }\n if (interval.m < interval.r && interval.relative.m < interval.relative.r) {\n Interval a = newInterval(buffer, interval.m + 1, interval.r);\n Interval b = newInterval(buffer, interval.relative.m + 1, interval.relative.r);\n a.relative = b;\n b.relative = a;\n curLevel.add(a);\n curLevel.add(b);\n }\n }\n }\n }\n\n for (Interval interval : lastLevel) {\n buffer.release(interval);\n }\n\n List<Interval> tmp = curLevel;\n curLevel = lastLevel;\n lastLevel = tmp;\n }\n\n return mask;\n }", "public static boolean addUpToFast(int[] array, int n){\n\t\tHashSet<Integer> hs = new HashSet<Integer>();\n\t\tfor(int i = 0; i < array.length; i++){\n\t\t\tif(hs.contains(n-array[i]))\n\t\t\t\treturn true;\n\t\t\ths.add(array[i]);\n\t\t}\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int T = sc.nextInt();\n for(int i = 0 ; i < T; i++) {\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n PriorityQueue<Integer> queue = new PriorityQueue<Integer>();\n int[][] m = new int[n][n];\n //n^2 * log(n)\n for(int row = 0; row < n; row++) {\n for(int col = 0; col < n; col++) {\n if(row == 0 && col == 0 && n != 1) {\n continue;\n }else if(row == 0) {\n m[row][col] = m[row][col - 1] + a;\n }else if(col == 0) {\n m[row][col] = m[row-1][col] + b;\n }else {\n m[row][col] = m[row-1][col-1] + a + b;\n }\n\n if(row + col == (n -1)) {\n pool.add(m[row][col]); //log(n)\n }\n }\n }\n //O(n*log(n))\n for (Integer item:pool) {\n queue.add(item); //O(logn)\n }\n while(!queue.isEmpty()) {\n System.out.print(queue.poll() + \" \"); //O(1)\n }\n System.out.println();\n queue.clear();\n pool.clear();\n }\n }", "public static long journeyToMoon(int n, List<List<Integer>> astronaut) {\n // Write your code here\n Map<Integer, Node<Integer>> countryMap = new HashMap<>();\n for(List<Integer> pairs: astronaut) {\n Node<Integer> node1 = countryMap.computeIfAbsent(pairs.get(0), Node::new);\n Node<Integer> node2 = countryMap.computeIfAbsent(pairs.get(1), Node::new);\n node1.connected.add(node2);\n node2.connected.add(node1);\n }\n\n List<Integer> countryCluster = new ArrayList<>();\n for(Node<Integer> node: countryMap.values()) {\n if(node.connected.size() == 0) {\n countryCluster.add(1);\n } else if(!node.visited){\n countryCluster.add(getNodeCount3(node));\n }\n }\n List<Integer> countryNodes = countryMap.values().stream().map(nn -> nn.value).collect(Collectors.toList());\n List<Integer> missingNodes = new ArrayList<>();\n for(int i=0; i < n; i++) {\n if(!countryNodes.contains(i))\n missingNodes.add(i);\n }\n\n for(int i=0; i < missingNodes.size(); i++) {\n countryCluster.add(1);\n }\n\n long ans = 0;\n //For one country we cannot pair with any other astronauts\n if(countryCluster.size() >= 2) {\n ans = (long) countryCluster.get(0) * countryCluster.get(1);\n if(countryCluster.size() > 2) {\n int sum = countryCluster.get(0) + countryCluster.get(1);\n for(int i=2; i < countryCluster.size(); i++) {\n ans += (long) sum * countryCluster.get(i);\n sum += countryCluster.get(i);\n }\n }\n }\n\n /*\n permutation of two set with size A and B = AxB\n permutation of three set with size A,B,C = AxB + AxC + BxC = AxB + (A+B)xC\n permutation of four set with size A,B,C,D = AxB + AxC + AxD + BxC + BxD + CxD = AxB + (A+B)xC + (A+B+C)xD\n */\n /*\n if(keys.length == 1) {\n ans = keys[0].size();\n } else {\n ans = keys[0].size() * keys[1].size();\n if(keys.length > 2) {\n int sum = keys[0].size() + keys[1].size();\n for (int i = 2; i < keys.length; i++) {\n ans += sum * keys[i].size();\n sum += keys[i].size();\n }\n }\n }\n */\n return ans;\n }", "private static int distance(ArrayList<Integer>[] adj, ArrayList<Integer>[] cost, int s, int t) {\n\n Set<Integer> visited = new HashSet<>(); //option 1\n Map<Integer, Integer> distance = new HashMap<>();\n// Queue<Integer> q = new PriorityQueue<>(11, (o1, o2) -> { //option 0\n// Integer d1 = distance.get(o1); //option 0\n// Integer d2 = distance.get(o2); //option 0\n Queue<Map.Entry<Integer, Integer>> q = new PriorityQueue<>(11, (o1, o2) -> { //option 1\n Integer d1 = o1.getValue(); //option 1\n Integer d2 = o2.getValue(); //option 1\n\n if (Objects.equals(d1, d2)) return 0;\n if (d1 == null) return 1;\n if (d2 == null) return -1;\n\n return d1 - d2;\n });\n\n distance.put(s, 0);\n// q.addAll(IntStream.range(0, adj.length).boxed().collect(Collectors.toList())); //option 0\n q.add(new AbstractMap.SimpleImmutableEntry<>(s, 0)); //option 1\n\n while (!q.isEmpty()) {\n// int u = q.remove(); //option 0\n int u = q.remove().getKey(); //option 1\n\n if (u == t) {\n Integer dist = distance.get(u);\n if (dist == null) return -1;\n return dist;\n }\n\n if (visited.contains(u)) continue; //option 1\n visited.add(u); //option 1\n\n List<Integer> adjList = adj[u];\n List<Integer> costList = cost[u];\n for (int i = 0; i < adjList.size(); i++) {\n int v = adjList.get(i);\n int w = costList.get(i);\n Integer dist = distance.get(v);\n Integer newDist = distance.get(u);\n if (newDist != null) newDist += w;\n\n if (newDist != null && (dist == null || dist > newDist)) {\n //relax\n distance.put(v, newDist);\n// q.remove(v); //option 0\n// q.add(v); //option 0\n q.add(new AbstractMap.SimpleImmutableEntry<>(v, distance.get(v))); //option 1\n }\n }\n }\n\n return -1;\n }", "private int e(amj paramamj)\r\n/* 202: */ {\r\n/* 203:221 */ alq localalq = paramamj.b();\r\n/* 204:222 */ int i = paramamj.b;\r\n/* 205: */ \r\n/* 206:224 */ int j = d(paramamj);\r\n/* 207:225 */ if (j < 0) {\r\n/* 208:226 */ j = j();\r\n/* 209: */ }\r\n/* 210:228 */ if (j < 0) {\r\n/* 211:229 */ return i;\r\n/* 212: */ }\r\n/* 213:231 */ if (this.a[j] == null)\r\n/* 214: */ {\r\n/* 215:232 */ this.a[j] = new amj(localalq, 0, paramamj.i());\r\n/* 216:233 */ if (paramamj.n()) {\r\n/* 217:234 */ this.a[j].d((fn)paramamj.o().b());\r\n/* 218: */ }\r\n/* 219: */ }\r\n/* 220:238 */ int k = i;\r\n/* 221:239 */ if (k > this.a[j].c() - this.a[j].b) {\r\n/* 222:240 */ k = this.a[j].c() - this.a[j].b;\r\n/* 223: */ }\r\n/* 224:242 */ if (k > p_() - this.a[j].b) {\r\n/* 225:243 */ k = p_() - this.a[j].b;\r\n/* 226: */ }\r\n/* 227:246 */ if (k == 0) {\r\n/* 228:247 */ return i;\r\n/* 229: */ }\r\n/* 230:250 */ i -= k;\r\n/* 231:251 */ this.a[j].b += k;\r\n/* 232:252 */ this.a[j].c = 5;\r\n/* 233: */ \r\n/* 234:254 */ return i;\r\n/* 235: */ }", "public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n if (t < 0) return false;\n TreeSet<Long> set = new TreeSet<>();\n for (int i = 0; i < nums.length; ++i) {\n long num = (long)nums[i];\n Long floor = set.floor(num), ceiling = set.ceiling(num);\n if (floor != null && num - floor <= t || ceiling != null && ceiling - num <= t) return true;\n set.add(num);\n if (i >= k) set.remove((long)nums[i - k]);\n }\n return false;\n}", "public boolean linearIn(int[] outer, int[] inner) {\r\n int comp=0; // O(1)\r\n int count=0; // O(1)\r\n if(inner.length==0) // O(1)\r\n return true; // O(1)\r\n for(int i=0; i<outer.length; i++) { // O(n)\r\n if(outer[i]==inner[count]) { // O(1)\r\n comp++; // O(1)\r\n count++; // O(1)\r\n } else if(outer[i]>inner[count]) // O(1)\r\n return false; // O(1)\r\n if (comp==inner.length) // O(1)\r\n return true; // O(1)\r\n }\r\n return false; // O(1)\r\n}", "private int getCondensedIndex(int n, int i, int j) {\n if (i < j) {\n return n * i - (i * (i + 1) / 2) + (j - i - 1);\n }\n else if (i > j) {\n return n * j - (j * (j + 1) / 2) + (i - j - 1);\n }\n else{\n return 0;\n }\n }", "public static long arrayManipulation(int n, List<List<Integer>> queries) {\r\n // Create an array of n+1 elements, all set to 0\r\n long resultArray[] = new long[n+1];\r\n \r\n // Gets number of input queries\r\n int size = queries.size(); \r\n \r\n // Value of the max value\r\n long maxValue = 0;\r\n \r\n // Cycles through all queries\r\n for (int i = 0; i < size; i++) {\r\n List<Integer> query = queries.get(i); // Gets current query\r\n int value = query.get(2); // Gets number to be added to resultArray\r\n \r\n /* Adds number to the right indexes of resultArray: TAKES TOO MUCH TIME!\r\n for (int j = query.get(0)-1; j <= query.get(1)-1; j++) {\r\n resultArray[j] += value;\r\n \r\n // Checks if this is the biggest value\r\n if (resultArray[j] > maxValue) {\r\n maxValue = resultArray[j];\r\n }\r\n } */\r\n \r\n // Adds number to only two indexes of resultArray:\r\n resultArray[query.get(0)-1] += value; // We signal the beginning of the 'positive curve', which spans until query.get(1).\r\n resultArray[query.get(1)] -= value; // We signal the ending of the 'positive curve'.\r\n }\r\n \r\n // Gets the max value\r\n long sum = 0;\r\n for (int i = 0; i < n; i++) {\r\n sum += resultArray[i];\r\n if (sum > maxValue) {\r\n maxValue = sum;\r\n }\r\n }\r\n \r\n return maxValue;\r\n}", "public static int f5(int N) { \n int x = 0;\n // log(n)\n for(int i = N; i > 0; i = i/2)\n // O(n) + O(n/2) + O(n/4)\n x += f1(i);\n \n return x; \n \n }", "public static int ulam(int n) {\n\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n\n int i = 3;\n while (list.size() < n) {\n\n int count = 0;\n for (int j = 0; j < list.size() - 1; j++) {\n\n for (int k = j + 1; k < list.size(); k++) {\n if (list.get(j) + list.get(k) == i)\n count++;\n if (count > 1)\n break;\n }\n if (count > 1)\n break;\n }\n if (count == 1)\n list.add(i);\n i++;\n }\n return list.get(n - 1);\n }", "static long solve(long[] d) {\n int len = d.length;\n long[] dp = new long[len];\n\n Set<Long> set = new HashSet<>();\n\n for (int index1 = len - 1; index1 >= 0; index1--) {\n int count = 0;\n for (int index2 = index1 + 1; index2 < len; index2++) {\n if (d[index2] > d[index1]) {\n if( set.contains(d[index2] ) )continue;\n set.add(d[index2]);\n count++;\n }\n }\n set = new HashSet<>();\n dp[index1] = count;\n }\n\n long res = 0;\n Set<Long> distinct = new HashSet<>();\n for (int index1 = 0; index1 < len; index1++) {\n long curr = d[index1];\n if (distinct.contains(curr)) {\n continue;\n } else distinct.add(curr);\n for (int index2 = index1 + 1; index2 < len; index2++) {\n if (d[index2] > curr) {\n if (set.contains(d[index2])) continue;\n res += dp[index2];\n set.add(d[index2]);\n }\n }\n set = new HashSet<>();\n }\n\n return res;\n\n }", "private static long find_fast(long u)\n {\n long a, b, r;\n long maxUInt = 4294967295L;\n\n u += 0xe91aaa35;\n u = maxUInt % u;\n u ^= u >> 16;\n u = maxUInt % u;\n u += u << 8;\n u = maxUInt % u;\n u ^= u >> 4;\n u = maxUInt % u;\n b = (u >> 8) & 0x1ff;\n b = maxUInt % b;\n a = (u + (u << 2)) >> 19;\n a = maxUInt % a;\n r = a ^ hash_adjust[(int)b];\n r = maxUInt % r;\n return r;\n }", "private int getIndex2(int val){\n return val/bucket;\n }", "public int[] twoSum2(int[] nums, int target) {\n int max = nums[0];\n int min = max;\n // get rank\n for (int e : nums) {\n if (e > max) {\n max = e;\n }\n if (e < min) {\n min = e;\n }\n }\n // show up table\n Integer[] showUpMap = new Integer[max - min + 1];\n LinkedList[] indicesMap = new LinkedList[max - min + 1];\n for (int i = 0; i < nums.length; i++) {\n showUpMap[nums[i] - min] = 1;\n if (indicesMap[nums[i] - min] == null) {\n indicesMap[nums[i] - min] = new LinkedList<Integer>();\n }\n indicesMap[nums[i] - min].add(i);\n }\n System.out.println(Arrays.toString(showUpMap));\n System.out.println(Arrays.toString(indicesMap));\n for (int i = 0; i < showUpMap.length; i++) {\n boolean show = showUpMap[i] != null;\n if (show) {\n int a = i + min;\n int need = target - a;\n if (need - min < showUpMap.length &&\n showUpMap[need - min] != null) {\n int ai = (int) indicesMap[i].get(0);\n int bi = (int) indicesMap[need - min].get(0);\n if (ai == bi) {\n bi = (int) indicesMap[need - min].get(1);\n }\n return new int[]{ai, bi};\n }\n }\n }\n return null;\n }", "public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }", "public ArrayList<Edge> Prim (String s){\n Node Start = nodeMap.get(s);\n mst = new ArrayList<>();\n HashMap<String, String> inserted = new HashMap<String, String>();\n ArrayList<Edge> failed = new ArrayList<Edge>();\n PriorityQueue<Edge> pq = new PriorityQueue<Edge>();\n ArrayList<Edge> ed = new ArrayList<Edge>(edgeMap.values());\n Edge first = ed.get(0);\n mst.add(first);\n inserted.put(first.w, first.w);\n inserted.put(first.v, first.v);\n\n priorityEdgeInsert(pq, first);\n\n while (inserted.size() <= edges() && pq.size() != 0){ //O(E log(V))\n //runs for E checking the possible V, where the number of V is devided each time, or log(V), giving ELog(V)\n Edge e = pq.poll();\n String w = inserted.get(e.w);\n String v = inserted.get(e.v);\n\n if ((w == null) ^ (v == null)){\n priorityEdgeInsert(pq, e);\n for(Edge f : failed){\n if(f.v == e.v || f.v == e.w || f.w == e.v || f.w == e.w){\n\n }\n else{\n pq.add(f);\n }\n }\n failed.clear();\n mst.add(e);\n inserted.put(e.w, e.w); //only puts one, the null one is hashed to a meaningless spot\n inserted.put(e.v, e.v);\n }\n else if ((w == null) && (v == null) ){\n failed.add(e);\n }\n else if (!(w == null) && !(v == null) ){\n failed.remove(e);\n pq.remove(e);\n }\n else if (e == null){\n System.out.println(\"HOW?\"); //should never happen.\n }\n }\n return mst;\n }", "public static void main(String[] args) \n {\n int[] numOfPoints = { 1000, 10000, 7000, 10000, 13000 };\n for(int count = 0; count < numOfPoints.length; count++)\n {\n List<Point> pointsTobeUsed = new ArrayList<Point>();\n int current = numOfPoints[count];\n int inc = 0;\n \n //creating list of points to be used\n for(int x = 0; x <= current; x++)\n {\n \n if(x <= current/2)\n {\n pointsTobeUsed.add(new Point(x,x));\n \n }\n else\n {\n pointsTobeUsed.add(new Point(x, x - (1 + 2*(inc)) ) );\n inc++;\n }\n }\n \n //n logn implementation of Pareto optimal\n long timeStart = System.currentTimeMillis();\n \n // n logn quicksort\n pointsTobeUsed = quickSort(pointsTobeUsed, 0, pointsTobeUsed.size() -1 );\n \n \n \n ParetoOptimal(pointsTobeUsed);\n \n \n long timeEnd = System.currentTimeMillis();\n System.out.println(\"final:\" + \" exper: \" + (timeEnd - timeStart) + \" N: \" + current ); \n }\n }", "static int trappingWater(int arr[], int n) {\r\n\r\n // Your code here\r\n /** *** tle\r\n for(int i=1;i<n-1;i++){\r\n int l=arr[i];\r\n for (int j = 0; j < i; j++) {\r\n l=l < arr[j] ? arr[j] : l;\r\n }\r\n int r=arr[i];\r\n for (int j = i+1; j <n ; j++) {\r\n r=r < arr[j] ? arr[j] : r;\r\n }\r\n\r\n s=s+(l>r? r:l) -arr[i];\r\n }\r\n return s;\r\n\r\n //////////////////////////////////////////////\r\n SC=O(N)\r\n if(n<=2)\r\n return 0;\r\n int[] left=new int[n];\r\n int[] right=new int[n];\r\n left[0]=0;\r\n int leftmax=arr[0];\r\n for (int i = 1; i <n ; ++i) {\r\n left[i]=leftmax;\r\n leftmax=Math.max(leftmax,arr[i]);\r\n }\r\n right[n-1]=0;\r\n int mxright=arr[n-1];\r\n for (int i = n-2; i >=0 ; --i) {\r\n right[i]=mxright;\r\n mxright=Math.max(mxright,arr[i]);\r\n }\r\n int s=0;\r\n for (int i = 1; i < n-1; ++i) {\r\n if(arr[i]<left[i] && arr[i]<right[i]){\r\n s+=Math.min(left[i],right[i])-arr[i];\r\n }\r\n }\r\n return s;\r\n /////////////////////////////////////////////////////\r\n **/\r\n\r\n if(n<=2)\r\n return 0;\r\n\r\n int leftMax = arr[0];\r\n int rightMax = arr[n-1];\r\n\r\n int left = 1;\r\n int right = n-2;\r\n int water = 0;\r\n\r\n while(left <= right) {\r\n if (leftMax < rightMax) {\r\n if (arr[left] >= leftMax) {\r\n leftMax = arr[left];\r\n } else\r\n water = water + (leftMax - arr[left]);\r\n\r\n //leftMax = Math.max(leftMax, arr[left]);\r\n left++;\r\n } else {\r\n if (arr[right] > rightMax) {\r\n rightMax = arr[right];\r\n }\r\n\r\n water = water + (rightMax - arr[right]);\r\n right--;\r\n }\r\n }\r\n return water;\r\n\r\n }", "void merge_hi(int pa, int na, int pb, int nb) {\n getmem(nb);\n int dest = pb + nb - 1;\n int basea = pa;\n System.arraycopy(this.data, pb, this.a, 0, nb);\n \n pb = nb - 1;\n pa += na - 1;\n \n this.data[dest--] = this.data[pa--];\n --na;\n if (na == 0)\n return;\n if (nb == 1) {\n // CopyA;\n dest -= na;\n pa -= na;\n System.arraycopy(this.data, pa+1, this.data, dest+1, na);\n this.data[dest] = this.a[pb];\n nb = 0;\n return;\n }\n \n try {\n for (;;) {\n int acount = 0; /* # of time A won in a row */\n int bcount = 0; /* # of time B won in a row */\n \n /* Do the straightforward thing until (if ever) one run\n * appears to win consistently.\n */\n for (;;) {\n boolean k = iflt(this.a[pb], this.data[pa]);\n if (k) {\n this.data[dest--] = this.data[pa--];\n ++acount;\n bcount = 0;\n --na;\n if (na == 0)\n return;\n if (acount >= MIN_GALLOP)\n break;\n } else {\n this.data[dest--] = this.a[pb--];\n ++bcount;\n acount = 0;\n --nb;\n if (nb == 1) {\n // CopyA\n dest -= na;\n pa -= na;\n System.arraycopy(this.data, pa+1, this.data, dest+1, na);\n this.data[dest] = this.a[pb];\n nb = 0;\n return;\n }\n if (bcount >= MIN_GALLOP)\n break;\n }\n }\n \n /* One run is winning so consistently that galloping may\n * be a huge win. So try that, and continue galloping until\n * (if ever) neither run appears to be winning consistently\n * anymore.\n */\n do {\n int k = gallop_right(this.a[pb], this.data, basea, na, na-1);\n acount = k = na - k;\n if (k != 0) {\n dest -= k;\n pa -= k;\n System.arraycopy(this.data, pa+1, this.data, dest+1, k);\n na -= k;\n if (na == 0)\n return;\n }\n \n this.data[dest--] = this.a[pb--];\n --nb;\n if (nb == 1) {\n // CopyA\n dest -= na;\n pa -= na;\n System.arraycopy(this.data, pa+1, this.data, dest+1, na);\n this.data[dest] = this.a[pb];\n nb = 0;\n return;\n }\n \n k = gallop_left(this.data[pa], this.a, 0, nb, nb-1);\n bcount = k = nb - k;\n if (k != 0) {\n dest -= k;\n pb -= k;\n System.arraycopy(this.a, pb+1, this.data, dest+1, k);\n nb -= k;\n if (nb == 1) {\n // CopyA\n dest -= na;\n pa -= na;\n System.arraycopy(this.data, pa+1, this.data, dest+1, na);\n this.data[dest] = this.a[pb];\n nb = 0;\n return;\n }\n /* nb==0 is impossible now if the comparison\n * function is consistent, but we can't assume\n * that it is.\n */\n if (nb == 0)\n return;\n }\n this.data[dest--] = this.data[pa--];\n --na;\n if (na == 0)\n return;\n } while (acount >= MIN_GALLOP || bcount >= MIN_GALLOP);\n }\n } finally {\n if (nb != 0)\n System.arraycopy(this.a, 0, this.data, dest-(nb-1), nb);\n \n //dump_data(\"result\", origpa, cnt);\n }\n }", "private int first_leaf() { return n/2; }", "private void fastXY(int x, int y){\n ccells.row5bitHash(x,y-2);\n ccells.row5bitHash(x,y-1);\n ccells.row5bitHash(x,y);\n ccells.row5bitHash(x,y+1);\n ccells.row5bitHash(x,y+2);\n // then use some binary math to manipulate this data into hashes for each cell\n // flatten the loop and copy paste yay :)\n // or I could also leave the loop alone and make it loop over array which would be a little more readable\n }", "@Override\r\n public long problem1(int size) {\r\n StringBuilder sb = new StringBuilder();\r\n long start = System.currentTimeMillis();\r\n for (int i=0; i<size; i++) {\r\n sb.append(i);\r\n }\r\n long end = System.currentTimeMillis();\r\n return end - start;\r\n }", "public int[] findAnyPairIndexesWhileLCMMaximized() {\n if (seq.length < 2) {\n return null;\n }\n int size = 0;\n for (int i = 1; i <= m; i++) {\n size += m / i;\n }\n\n IntegerMultiWayDeque deque = new IntegerMultiWayDeque(m + 1, size);\n for (int i = 1; i <= m; i++) {\n for (int j = i; j <= m; j += i) {\n if (!indexesOfSeq.isEmpty(j)) {\n deque.addLast(i, j / i);\n }\n }\n }\n\n long lcm = -1;\n int v1 = 0;\n int v2 = 0;\n\n for (int i = m; i >= 1; i--) {\n if (!indexesOfSeq.isEmpty(i) && indexesOfSeq.peekFirst(i) != indexesOfSeq.peekLast(i)) {\n lcm = v1 = v2 = i;\n break;\n }\n }\n\n IntegerVersionArray iva = new IntegerVersionArray(m + 1);\n IntegerDequeImpl stack = new IntegerDequeImpl(m);\n for (int i = 1; i <= m; i++) {\n iva.clear();\n stack.clear();\n while (!deque.isEmpty(i)) {\n int last = deque.removeLast(i);\n factorize(last);\n int total = ie(iva, allFactors.size() - 1, 1, 0);\n if (total > 0) {\n int pop = 0;\n while (total > 0) {\n pop = stack.removeLast();\n if (GCDs.gcd(pop, last) == 1) {\n total--;\n }\n add(iva, pop, -1);\n }\n long l = LCMs.lcm(last, pop) * i;\n if (l > lcm) {\n lcm = l;\n v1 = last * i;\n v2 = pop * i;\n }\n }\n add(iva, last, 1);\n stack.addLast(last);\n }\n }\n\n return new int[]{indexesOfSeq.peekFirst(v1), indexesOfSeq.peekLast(v2)};\n }", "public List<List<Integer>> fourSum_optimization(int[] nums, int target) {\n int len = nums.length;\n Arrays.sort(nums);\n if (len < 4)\n return Collections.emptyList();\n List<List<Integer>> arr = new ArrayList<>();\n\n for (int i = 0; i < len - 1; i++) {\n for (int j = i + 1; j < len - 1; j++) {\n int Left = j + 1;\n int Right = len - 1;\n int left_target_sum = target - nums[i] + nums[j];\n\n while (Left < Right) {\n int two_sum = nums[Left] + nums[Right];\n if (two_sum < left_target_sum)\n Left++;\n else if (two_sum > left_target_sum)\n Right--;\n else {\n List<Integer> arr2 = new ArrayList<>();\n if (left_target_sum + two_sum == target) {\n arr2.add(nums[i]);\n arr2.add(nums[j]);\n arr2.add(nums[Left]);\n arr2.add(nums[Right]);\n arr.add(arr2);\n }\n while (Left < Right && nums[Left] == arr2.get(2))\n ++Left;\n while (Left < Right && nums[Right] == arr2.get(3))\n --Right;\n }\n }\n while (i + 1 < len && nums[i + 1] == nums[i])\n ++i;\n while (j + 1 < len && nums[j + 1] == nums[j])\n ++j;\n }\n }\n\n return arr;\n }", "private void go(int i) {\n\t\tcol[i] = 1;\r\n\t\tint j = f[i];\r\n\t\tint cnt = 0;\r\n\t\tint delAll = 0;\r\n\t\tint[][] cd = new int[1000][3];\r\n\t\tint sa = 0;\r\n\t\tint sb = 0;\r\n\t\tint m1 = Integer.MAX_VALUE;\r\n\t\tint m2 = Integer.MAX_VALUE;\r\n\t\tint m1a = 0;\r\n\t\tint m2a = 0;\r\n\t\tint m1b = 0;\r\n\t\tint m2b = 0;\r\n\t\twhile (j != -1) {\r\n\t\t\tif (col[e[j]] == 0) {\r\n\t\t\t\tgo(e[j]);\r\n\t\t\t\tdelAll += a[e[j]];\r\n\t\t\t\tint dif = b[e[j]] - a[e[j]];\r\n\t\t\t\tif (dif < m1) {\r\n\t\t\t\t\tm2 = m1;\r\n\t\t\t\t\tm2b = m1b;\r\n\t\t\t\t\tm2a = m1a;\r\n\t\t\t\t\tm1 = dif;\r\n\t\t\t\t\tm1a = a[e[j]];\r\n\t\t\t\t\tm1b = b[e[j]];\r\n\t\t\t\t} else if (dif < m2) {\r\n\t\t\t\t\tm2 = dif;\r\n\t\t\t\t\tm2a = a[e[j]];\r\n\t\t\t\t\tm2b = b[e[j]];\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsa += a[e[j]];\r\n\t\t\t\tsb += a[e[j]];\r\n\t\t\t\tcd[cnt][0] = a[e[j]];\r\n\t\t\t\tcd[cnt][1] = b[e[j]];\r\n\t\t\t\tcd[cnt][2] = b[e[j]] - a[e[j]];\r\n\t\t\t\tcnt++;\r\n\t\t\t}\r\n\t\t\tj = next[j];\r\n\t\t}\r\n\t\tif (cnt == 0) {\r\n\t\t\ta[i] = 1;\r\n\t\t\tb[i] = 0;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tArrays.sort(cd, new Comparator<int[]>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(int[] o1, int[] o2) {\r\n\t\t\t\t// TODO Auto-generated method stub\t\t\t\t\r\n\t\t\t\treturn o1[2] - o2[2];\r\n\t\t\t}\r\n\t\t});\r\n\t\ta[i] = delAll + 1;\r\n\t\t//leave 0 or 2\r\n\t\tint cost1 = 0;\r\n\t\tint cost = 0;\r\n\t\tfor (j = 2; j < cnt; j++)\r\n\t\t\tcost1 += cd[j][0];\r\n\t\tif (cnt >= 2) {\r\n\t\t\tcost += m1b + m2b + sa - m1a - m2a;\r\n\t\t\tcost1 += cd[0][1] + cd[1][1];\r\n\t\t} else {\r\n\t\t\tcost += sa;\r\n\t\t\tcost1 += cd[0][0];\r\n\t\t}\r\n\t\tif (cost1 != cost)\r\n\t\t\tSystem.err.println(\"FUCK\");\r\n\t\tb[i] = cost;\r\n\t}", "private int calcDistanceMemoize(int i, int j, char[] one, char[] two, int [][]table) {\n if (i < 0)\n return j+1;\n\tif (j < 0)\n\t return i+1;\n\n if (table[i][j] == -1) \n table[i][j] = calcDistanceRecursive(i, j, one, two, table);\n\t\n return table[i][j];\n }", "private static int[] p2(int[] ar, int n) {\n int[] p2 = new int[n];\n Arrays.fill(p2, n);\n Stack<Integer> st = new Stack<>();\n for (int i = 0; i < n; i++) {\n while (st.size() != 0 && ar[i] < ar[st.peek()]) {\n p2[st.peek()] = i;\n st.pop();\n }\n st.push(i);\n }\n return p2;\n }", "private void baseAlgorithm() {\n\t\tlong start = System.nanoTime();\n\t\tinitCentroids();\n\t\tint counter = 0;\n\t\twhile (counter < 1000\n\t\t\t\t&& (lastCentroids == null || !SeriesComparator.equalClustering(lastCentroids, centroids))) {\n\t\t\tresetClusters();\n\t\t\tassignPoints();\n\t\t\tlastCentroids = new ArrayList<Point2D>(centroids);\n\t\t\tcalculateNewMean();\n\t\t\tbasicIterations++;\n\t\t\tcounter++;\n\t\t}\n\t\tconvertToClustering();\n\t\tbasicRuntime = System.nanoTime() - start;\n\t}", "private static void task03(int nUMS, AVLTree<Integer> h) {\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Deletion in the table...\" );\n\t\t int count=0;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\tif(h.isEmpty() == false)\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\th.remove(i);\n\t\t\t\t\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tSystem.out.println(\"Is it empty \" + h.isEmpty());\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t\t\n\t}", "static BigInteger findSum(BigInteger n) {\n if (n.equals(BigInteger.ZERO))\n return BigInteger.ZERO;\n BigInteger TWO = BigInteger.valueOf(2);\n\n BigInteger sum = BigInteger.ZERO;\n sum = sum.add(\n n.multiply(n.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n BigInteger flooredN = findFraction(n);\n sum = sum.add(\n n.multiply(flooredN)\n );\n\n sum = sum.subtract(\n flooredN.multiply(flooredN.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n sum = sum.subtract(findSum(flooredN));\n\n return sum;\n }", "public static void main(String[] args) {\n\t\tboolean[] primes = new boolean[1000000];\r\n\t\tArrayList<Integer> consecutivePrimeSums = new ArrayList<>();\r\n\t\tfor (int i = 0; i < primes.length; i++) {\r\n\t\t\tprimes[i] = true;\r\n\t\t}\r\n\t\tprimes[0] = false;//1 is not prime number\r\n\t\tfor (int p = 2; p*p <= 1000000; p++) {\r\n\t\t\tif (primes[p-1] == true) {\r\n\t\t\t\tfor (int q = p*p; q <= 1000000; q += p) {\r\n\t\t\t\t\tprimes[q-1] = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Store the consecutive prime sums as we iterate through the boolean array\r\n\t\tconsecutivePrimeSums.add(0);\r\n\t\tint currentIndex = 1;\r\n\t\tfor (int j = 0; j < primes.length; j++) {\r\n\t\t\tif (primes[j] == true) {\r\n\t\t\t\tconsecutivePrimeSums.add(consecutivePrimeSums.get(currentIndex-1) + (j+1));\r\n\t\t\t\tcurrentIndex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Now we use 2 nested for loops to loop through all possible consecutive prime sums\r\n\t\tint maxLength = 0;\r\n\t\tint ans = 0;\r\n\t\tfor (int k = consecutivePrimeSums.size()-1; k >= 2; k--) {\r\n\t\t\tfor (int m = k-2; m >= 0; m--) {\r\n\t\t\t\tint currentSum = consecutivePrimeSums.get(k) - consecutivePrimeSums.get(m);\r\n\t\t\t\tif (currentSum >= 1000000)\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tif (primes[currentSum-1] == true && (k-m) > maxLength) {\r\n\t\t\t\t\tans = currentSum;\r\n\t\t\t\t\tmaxLength = k-m;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(ans);\r\n\t\t/*long endTime = System.nanoTime();\r\n\t\tlong timeElapsed = endTime - startTime;\r\n\t\tSystem.out.println(timeElapsed/1000000 + \" ms\");*/\r\n\t}", "public static double findMedianSortedArraysBinary(int[] nums1, int[] nums2) {\n int m = nums1.length;\n int n = nums2.length;\n if (n == 0) {\n return getMedian(nums1);\n }\n if (m == 0) {\n return getMedian(nums2);\n }\n if (m > n) {\n // Make sure the first array is the shorter one\n return findMedianSortedArraysBinary(nums2, nums1);\n }\n // Init the start curser with the first and the last point of the shorter array\n int start = 0;\n int end = m;\n\n // Loop until start and end met\n while (start <= end) {\n // The `nums1` index will be the center between `start` and `end`\n int i = (start + end) / 2;\n // The `nums2` index will be the complement of `i` from the total length\n // m+n+1(the amount of gaps)\n int j = (m + n + 1) / 2 - i;\n if (j > 0 && i < m && nums1[i] < nums2[j - 1]) {\n // If the left max of `nums2` is still larger than right min of `nums1`\n // we move start curser to the right position of the middle\n start = i + 1;\n\n } else if (i > 0 && j < n && nums2[j] < nums1[i - 1]) {\n // If the left max of `nums1` is still larger than right min of `nums2`\n // we move end curser to the left position of the middle\n end = i - 1;\n } else {\n // find the max value of left\n int maxLeft = 0;\n if (i == 0) {\n // if i-1 out of index\n maxLeft = nums2[j - 1];\n } else if (j == 0) {\n // if j-1 out of index\n maxLeft = nums1[i - 1];\n } else {\n maxLeft = Math.max(nums1[i - 1], nums2[j - 1]);\n }\n if ((m + n) % 2 == 1) {\n // If total length is odd\n // The max value of left is the median\n return maxLeft;\n }\n // find the min value of right\n int minRight = 0;\n if (i == m) {\n // If i out of index\n minRight = nums2[j];\n } else if (j == n) {\n // If j out of index\n minRight = nums1[i];\n } else {\n minRight = Math.min(nums1[i], nums2[j]);\n }\n // If total length is even\n return (maxLeft + minRight) / 2.0;\n }\n }\n // If no answer found, we give the answer of 0.0\n return 0.0;\n }", "public boolean containsNearbyDuplicate2(int[] nums, int k) {\n\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < nums.length; i++) {\n max=Math.max(max,nums[i]);\n }\n Integer[] map = new Integer[max+1];\n for (int i = 0; i < nums.length; i++) {\n Integer c = map[nums[i]];\n if(c!=null && i-c<=k){\n return true;\n }else {\n map[nums[i]]=i;\n }\n }\n return false;\n }", "public static void getLeastNumbers_2(int[] input, int[] output) {\n int start = 0;\n int end = input.length - 1;\n int k = output.length;\n int index = partition(input, start, end);\n while(index != k - 1) {\n if(index > k - 1) {\n end = index - 1;\n index = partition(input, start, end);\n }\n else {\n start = index + 1;\n index = partition(input, start, end);\n }\n }\n \n for(int i = 0; i < k; ++i)\n output[i] = input[i];\n }", "protected int find_among_b(Among v[])\n {\n\tint i = 0;\n\tint j = v.length;\n\n\tint c = cursor;\n\tint lb = limit_backward;\n\n\tint common_i = 0;\n\tint common_j = 0;\n\n\tboolean first_key_inspected = false;\n\n\twhile (true) {\n\t int k = i + ((j - i) >> 1);\n\t int diff = 0;\n\t int common = common_i < common_j ? common_i : common_j;\n\t Among w = v[k];\n\t int i2;\n\t for (i2 = w.s.length - 1 - common; i2 >= 0; i2--) {\n\t\tif (c - common == lb) {\n\t\t diff = -1;\n\t\t break;\n\t\t}\n\t\tdiff = current.charAt(c - 1 - common) - w.s[i2];\n\t\tif (diff != 0) break;\n\t\tcommon++;\n\t }\n\t if (diff < 0) {\n\t\tj = k;\n\t\tcommon_j = common;\n\t } else {\n\t\ti = k;\n\t\tcommon_i = common;\n\t }\n\t if (j - i <= 1) {\n\t\tif (i > 0) break;\n\t\tif (j == i) break;\n\t\tif (first_key_inspected) break;\n\t\tfirst_key_inspected = true;\n\t }\n\t}\n\twhile (true) {\n\t Among w = v[i];\n\t if (common_i >= w.s.length) {\n\t\tcursor = c - w.s.length;\n\t\tif (w.method == null) return w.result;\n\n\t\tboolean res;\n\t\ttry {\n\t\t Object resobj = w.method.invoke(this);\n\t\t res = resobj.toString().equals(\"true\");\n\t\t} catch (InvocationTargetException e) {\n\t\t res = false;\n\t\t // FIXME - debug message\n\t\t} catch (IllegalAccessException e) {\n\t\t res = false;\n\t\t // FIXME - debug message\n\t\t}\n\t\tcursor = c - w.s.length;\n\t\tif (res) return w.result;\n\t }\n\t i = w.substring_i;\n\t if (i < 0) return 0;\n\t}\n }", "public void sum2(int n){\n int sum =0; //1\n for (int j = 0; j < n; j++) //2n+2\n for (int k = 0; k < n; k++) //2n+2\n sum += k + j; //1\n for (int l = 0; l < n; l++) //2n+2\n sum += l; //1\n }", "static int countWaysUtil(int n, int m) \n\t { \n\t int res[] = new int[n]; \n\t res[0] = 1; res[1] = 1; \n\t for (int i=2; i<n; i++) \n\t { \n\t res[i] = 0; \n\t for (int j=1; j<=m && j<=i; j++) \n\t res[i] += res[i-j]; \n\t } \n\t return res[n-1]; \n\t }", "private static int runBenchmark(int n) {\n int result = 0;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n result = benchmarkedMethod();\n }\n }\n return result;\n }", "public static void process(int n){\n\t\tint right, left, i;\n\n\t\tright = i = 0;\n\t\twhile(i < n){\n\t\t\twhile (right < n && c[i] == c[right]) right++;\n\t\t\tfor(int j = i; j < right; ++j) max_right[j] = right;\n\t\t\ti = right;\n\t\t}\n\n\t\tleft = i = n-1;\n\t\twhile(i >= 0){\n\t\t\twhile (left >= 0 && c[i] == c[left]) left--;\n\t\t\tfor (int j = i; j > left; --j) max_left[j] = left;\n\t\t\ti = left;\n\t\t}\n\t}", "public static double findMedianSortedArraysBrutalForce(int[] nums1, int[] nums2) {\n int m = nums1.length;\n int n = nums2.length;\n if (n == 0) {\n return getMedian(nums1);\n }\n if (m == 0) {\n return getMedian(nums2);\n }\n\n int[] nums = new int[m + n];\n\n int count = 0;\n int i = 0, j = 0;\n while (count != (m + n)) {\n // if nums1 reach the end first\n if (i == m) {\n // push all the rest of the nums2 into result array\n while (j != n) {\n nums[count++] = nums2[j++];\n }\n // then get rid of the while loop\n break;\n }\n // if nums2 reach the end of the while loop\n if (j == n) {\n while (i != m) {\n nums[count++] = nums1[i++];\n }\n break;\n }\n\n // compare current value then only push the small one into result array\n if (nums1[i] < nums2[j]) {\n nums[count++] = nums1[i++];\n } else {\n nums[count++] = nums2[j++];\n }\n }\n\n return getMedian(nums);\n }", "private static int find(int i)\r\n{\n int ind = i;\r\n while (ind != ptrs[ind]) {\r\n ind = ptrs[ind];\r\n }\r\n // fix the link so that it is one hop only\r\n // note: this doesn't implement the full union-find update\r\n\r\n ptrs[i] = ind;\r\n\r\n return ind;\r\n}", "public static int getBetterApproach(int n){\n\t\t\n\t\tint t[] = new int[n+1];\n\t\t\n if(n<=2)\n return n;\n \n\t\tt[0] = 0;\n\t\tt[1] = 1;\n\t\tt[2] = 2;\n\t\tfor(int i = 3;i<=n;i++){\n\t\t\tt[i] = t[i-1] + t[i-2];\n\t\t}\n\t\treturn t[n];\n\t}", "private int helperM(int[] a, int s, int e, Integer[][] memo) {\n if (s == e) return a[s];\n if (memo[s][e] != null) return memo[s][e];\n int c1 = a[s] - helperM(a, s + 1, e, memo);\n int c2 = a[e] - helperM(a, s, e - 1, memo);\n memo[s][e] = Math.max(c1, c2);\n return memo[s][e];\n }", "private int minJumps(int[] arr) {\n int n = arr.length;\n if (n == 1) {\n return 0;\n }\n\n //map to hold the values in the array and the indexes where they are located in\n Map<Integer, List<Integer>> map = new HashMap<>();\n\n for (int i = 0; i < arr.length; i++) {\n /*\n method checks if arr[i] exists in the map, if so, we add the current index to the list of indexes where\n arr[i] is present, otherwise we make a new entry for arr[i]\n */\n map.computeIfAbsent(arr[i], v -> new ArrayList<>()).add(i);\n }\n\n //Queue to hold the indexes j we can jump to starting from 0\n Queue<Integer> queue = new LinkedList<>();\n queue.add(0); //add the first index into the queue\n int steps = 0;\n\n while (!queue.isEmpty()) {\n steps++;\n int size = queue.size();\n\n for (int i = 0; i < size; i++) {\n int j = queue.remove(); //the current index\n\n //jump to j + 1\n if (j + 1 < n && map.containsKey(arr[j + 1])) {\n if (j + 1 == n - 1) {\n return steps;\n }\n queue.add(j + 1);\n }\n\n //jump to j - 1\n if (j - 1 >= 0 && map.containsKey(arr[j - 1])) {\n queue.add(j - 1);\n }\n\n //jump to index k --> arr[j] == arr[k]\n if (map.containsKey(arr[j])) {\n //search through the list of indexes where arr[j] is present\n for (int k : map.get(arr[j])) {\n if (k != j) {\n //if one of the indexes is the last index, we've gotten to the end, otherwise we add the index to the queue\n if (k == n - 1) {\n return steps;\n }\n queue.add(k);\n }\n }\n }\n //remove the value of arr[j] from the map to avoid overlap\n map.remove(arr[j]);\n }\n }\n return steps;\n }", "public static int[] twoSum(int[] numbers, int target) {\n // Start typing your Java solution below\n // DO NOT write main() function\n int[] aux = new int[numbers.length];\n HashMap<Integer, Integer> valueToIndex = new HashMap<Integer, Integer>();\n for (int i = 0; i < numbers.length; i++) {\n valueToIndex.put(numbers[i], i);\n aux[i] = numbers[i];\n }\n \n int i = 0, j = numbers.length - 1;\n boolean found = false;\n \n Arrays.sort(aux);\n \n while (i != j) {\n if (aux[i] + aux[j] < target) i++;\n else if (aux[i] + aux[j] > target) j--;\n else {\n found = true;\n break;\n }\n }\n \n if (!found) return null;\n \n int[] result = new int[2];\n if (aux[i] == aux[j]) { /* Handle duplicates */\n int first = -1, second = -1;\n for (int k = 0; k < numbers.length; k++) {\n if (numbers[k] == aux[i]) {\n if (first == -1) {\n first = k;\n } else if (second == -1) {\n second = k;\n break;\n }\n }\n }\n result[0] = first + 1;\n result[1] = second + 1;\n return result;\n }\n \n \n if (valueToIndex.get(aux[i]) < valueToIndex.get(aux[j])) {\n result[0] = valueToIndex.get(aux[i]) + 1;\n result[1] = valueToIndex.get(aux[j]) + 1;\n } else {\n result[0] = valueToIndex.get(aux[j]) + 1;\n result[1] = valueToIndex.get(aux[i]) + 1;\n }\n return result;\n }", "private int m3423z(int i, int i2) {\n int i3;\n int i4;\n for (int size = this.f4373c.size() - 1; size >= 0; size--) {\n C0933b bVar = this.f4373c.get(size);\n int i5 = bVar.f4379a;\n if (i5 == 8) {\n int i6 = bVar.f4380b;\n int i7 = bVar.f4382d;\n if (i6 < i7) {\n i4 = i6;\n i3 = i7;\n } else {\n i3 = i6;\n i4 = i7;\n }\n if (i < i4 || i > i3) {\n if (i < i6) {\n if (i2 == 1) {\n bVar.f4380b = i6 + 1;\n bVar.f4382d = i7 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i6 - 1;\n bVar.f4382d = i7 - 1;\n }\n }\n } else if (i4 == i6) {\n if (i2 == 1) {\n bVar.f4382d = i7 + 1;\n } else if (i2 == 2) {\n bVar.f4382d = i7 - 1;\n }\n i++;\n } else {\n if (i2 == 1) {\n bVar.f4380b = i6 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i6 - 1;\n }\n i--;\n }\n } else {\n int i8 = bVar.f4380b;\n if (i8 <= i) {\n if (i5 == 1) {\n i -= bVar.f4382d;\n } else if (i5 == 2) {\n i += bVar.f4382d;\n }\n } else if (i2 == 1) {\n bVar.f4380b = i8 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i8 - 1;\n }\n }\n }\n for (int size2 = this.f4373c.size() - 1; size2 >= 0; size2--) {\n C0933b bVar2 = this.f4373c.get(size2);\n if (bVar2.f4379a == 8) {\n int i9 = bVar2.f4382d;\n if (i9 == bVar2.f4380b || i9 < 0) {\n this.f4373c.remove(size2);\n mo7620a(bVar2);\n }\n } else if (bVar2.f4382d <= 0) {\n this.f4373c.remove(size2);\n mo7620a(bVar2);\n }\n }\n return i;\n }", "static int find(int[] arr){\n\t\tif(arr.length==1) return -1;\n\t\tint slow = arr[0] , fast = arr[arr[0]];\n\t\twhile(slow!=fast){\n\t\t\tslow = arr[slow];\n\t\t\tfast = arr[arr[fast]];\n\t\t}\n\t\tslow = 0;\n\t\twhile(slow!=fast){\n\t\t\tslow = arr[slow];\n\t\t\tfast = arr[fast];\n\t\t}\n\t\treturn slow;\n\n\t}", "public static List<Integer> lcs(List<Integer> arr1, List<Integer> arr2) {\r\n ArrayList empty = new ArrayList();\r\n /* BEFORE WE ALLOCATE ANY DATA STORAGE, VALIDATE ARGS */\r\n if (null == arr1 || 0 == arr1.size())\r\n return empty;\r\n if (null == arr2 || 0 == arr2.size())\r\n return empty;\r\n\r\n if (equalLists(arr1, arr2)) {\r\n return arr1;\r\n }\r\n\r\n /* ALLOCATE VARIABLES WE'LL NEED FOR THE ROUTINE */\r\n ArrayList<Integer> bestMatch = new ArrayList<Integer>();\r\n ArrayList<Integer> currentMatch = new ArrayList<Integer>();\r\n ArrayList<List<Integer>> dataSuffixList = new ArrayList<List<Integer>>();\r\n ArrayList<List<Integer>> lineSuffixList = new ArrayList<List<Integer>>();\r\n\r\n /* FIRST, COMPUTE SUFFIX ARRAYS */\r\n for (int i = 0; i < arr1.size(); i++) {\r\n dataSuffixList.add(arr1.subList(i, arr1.size()));\r\n }\r\n for (int i = 0; i < arr2.size(); i++) {\r\n lineSuffixList.add(arr2.subList(i, arr2.size()));\r\n }\r\n\r\n /* STANDARD SORT SUFFIX ARRAYS */\r\n IntegerListComparator comp = new IntegerListComparator();\r\n Collections.sort(dataSuffixList, comp);\r\n Collections.sort(lineSuffixList, comp);\r\n\r\n /* NOW COMPARE ARRAYS MEMBER BY MEMBER */\r\n List<?> d = null;\r\n List<?> l = null;\r\n List<?> shorterTemp = null;\r\n int stopLength = 0;\r\n int k = 0;\r\n boolean match = false;\r\n\r\n bestMatch.retainAll(empty);\r\n bestMatch.addAll(currentMatch);\r\n for (int i = 0; i < dataSuffixList.size(); i++) {\r\n d = (List) dataSuffixList.get(i);\r\n for (int j = 0; j < lineSuffixList.size(); j++) {\r\n l = (List) lineSuffixList.get(j);\r\n if (d.size() < l.size()) {\r\n shorterTemp = d;\r\n } else {\r\n shorterTemp = l;\r\n }\r\n\r\n currentMatch.retainAll(empty);\r\n k = 0;\r\n stopLength = shorterTemp.size();\r\n match = (l.get(k).equals(d.get(k)));\r\n while (k < stopLength && match) {\r\n if (l.get(k).equals(d.get(k))) {\r\n currentMatch.add((Integer) shorterTemp.get(k));\r\n k++;\r\n } else {\r\n match = false;\r\n }\r\n }\r\n if (currentMatch.size() > bestMatch.size()) {\r\n bestMatch.retainAll(empty);\r\n bestMatch.addAll(currentMatch);\r\n }\r\n }\r\n }\r\n return bestMatch;\r\n }", "private static void task222(int nUMS, RedBlackBST<Integer, Integer> i) {\n\t\tSystem.out.println(\"RED BLAST BST Started Search...\");\n\t double search_start = 0, search_end = 0;\n\t int totalkeymatched = 0;\n\n\t search_start = System.nanoTime();\n\t \n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n\t \t\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (i.contains(checker)) {\n\t\n//\t System.out.println(\"Key Matches\");\n\t totalkeymatched++;\n\t \t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each search: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t System.out.println(\"TOTAL MATCHES \" + totalkeymatched);\n\n\t}", "private int find(int p){\n while(p!=id[p]){\n p=id[p];\n eachDoUnionArrayAccessTimes+=2; //遍历读取某个元素算一次,设置值也算一次,所以加2次\n }\n eachDoUnionArrayAccessTimes++; //查询p的时候依然会读取一次\n return p;\n }", "public static void main(String args[] ) throws Exception {\n String l[] = br.readLine().split(\" \");\n long N = Long.parseLong(l[0]);\n long S = Long.parseLong(l[1]);\n long E = Long.parseLong(l[2]);\n TreeMap<Long,Long> t1 = new TreeMap<Long,Long>();\n TreeMap<Long,Long> t2 = new TreeMap<Long,Long>();\n for(int i=0;i<N;i++) {\n String s[] = br.readLine().split(\" \");\n long x = Long.parseLong(s[0]);\n long p = Long.parseLong(s[1]);\n t1.put((x-p),(x+p));\n }\n ArrayList<Long> l1 = new ArrayList<Long>(t1.keySet());\n ArrayList<Long> l2 = new ArrayList<Long>(t1.values());\n long c = l1.get(0);\n long d = l2.get(0);\n for(int i=1;i<t1.size();i++)\n {\n if(l1.get(i)<=d)\n d = Math.max(d,l2.get(i));\n else\n {\n \n t2.put(c,d);\n c = l1.get(i);\n d = l2.get(i);\n }\n \n }\n t2.put(c,d);\n int i;\n long ans = 0;\n l1=new ArrayList<Long>(t2.keySet());\n l2=new ArrayList<Long>(t2.values());\n \n \n for(i=0;i<l1.size();i++)\n {\n if(S>=E)\n {\n S=E;\n break;\n }\n if(l1.get(i)<=S && S<=l2.get(i))\n S = l2.get(i);\n \n else if(S<=l1.get(i) && E>=l2.get(i))\n {\n ans+=l1.get(i)-S;\n S = l2.get(i);\n \n }\n else if(S<=l1.get(i) && E>=l1.get(i) && E<=l2.get(i))\n {\n ans+=l1.get(i)-S;\n S = E;\n }\n else if(S<=l1.get(i) && E<=l1.get(i))\n {\n ans+=E-S;\n S = E;\n }\n }\n if(S<E)\n ans+=E-S;\n pw.println(ans);\n \n pw.close();\n }", "public int R_M(){\n\t\tBigInteger nminus1=n.subtract(BigInteger.ONE);\n\t\tdo{\n\t\t\tif(nminus1.mod(two.pow(a)).equals(BigInteger.ZERO)){\n\t\t\t\ttable.add(a);\n\t\t\t}\n\t\t\titerator++;\n\t\t\ta++;\n\t\t}while(!(two.pow(a).compareTo(n)>0));\n\t\t\n\t\ta=table.get(table.size()-1);\n\t\tBigInteger m=nminus1.divide(two.pow(a));\n\t\tint wlen=n.bitLength();\n\t\tBigInteger b;\n\t\tBigInteger z;\n\t\tfor(int i=0;i<iterations;i++){\n\t\t\tint straznik=0;\n\t\t\tint straznik1=0;\n\t\t\tdo{\n\t\t\t b=new BigInteger(wlen,new Random());\n\t\t\t}while(!(b.compareTo(BigInteger.ONE)>0) && !(b.compareTo(nminus1)<0));\n\t\t\tz=b.modPow(m, n);\n\t\t\tif(z.equals(BigInteger.ONE) || z.equals(nminus1)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int j=0;j<a-1;j++){\n\t\t\t\t\tz=z.pow(2).mod(n);\n\t\t\t\t\tif(z.equals(nminus1)){\n\t\t\t\t\t\tstraznik++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(z.equals(BigInteger.ONE)){\n\t\t\t\t\t\tstraznik1++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(straznik==1){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(straznik1==1){\n\t\t\t\t\tgetComposite();\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\tgetComposite();\n\t\t\treturn 0;\n\t\t}\n\t\tgetProbablyPrime();\n\t\treturn 1;\n\t\t}", "protected static void endPartial(long[] h) {\n h[11] += h[1]; \n h[2] ^= h[11]; \n h[1] = (h[1] << 44) | (h[1] >>> 20);\n h[0] += h[2]; \n h[3] ^= h[0]; \n h[2] = (h[2] << 15) | (h[2] >>> 49);\n h[1] += h[3]; \n h[4] ^= h[1]; \n h[3] = (h[3] << 34) | (h[3] >>> 30);\n h[2] += h[4]; \n h[5] ^= h[2]; \n h[4] = (h[4] << 21) | (h[4] >>> 43);\n h[3] += h[5]; \n h[6] ^= h[3]; \n h[5] = (h[5] << 38) | (h[5] >>> 26);\n h[4] += h[6]; \n h[7] ^= h[4]; \n h[6] = (h[6] << 33) | (h[6] >>> 31);\n h[5] += h[7]; \n h[8] ^= h[5]; \n h[7] = (h[7] << 10) | (h[7] >>> 54);\n h[6] += h[8]; \n h[9] ^= h[6]; \n h[8] = (h[8] << 13) | (h[8] >>> 51);\n h[7] += h[9]; \n h[10] ^= h[7]; \n h[9] = (h[9] << 38) | (h[9] >>> 26);\n h[8] += h[10]; \n h[11] ^= h[8]; \n h[10] = (h[10] << 53) | (h[10] >>> 11);\n h[9] += h[11]; \n h[0] ^= h[9]; \n h[11] = (h[11] << 42) | (h[11] >>> 22);\n h[10] += h[0]; \n h[1] ^= h[10]; \n h[0] = (h[0] << 54) | (h[0] >>> 10);\t\t\n\t}", "private static void task2(int nUMS, BinarySearchTree<Integer> t) {\n\t\tSystem.out.println(\"Binary Search Started...\");\n\t double search_start = 0, search_end = 0;\n\t int totalkeymatched = 0;\n\n\t search_start = System.nanoTime();\n\t \n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n\t \t\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (t.contains(checker)) {\n\t\n//\t System.out.println(\"Key Matches\");\n\t totalkeymatched++;\n\t \t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each search: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t System.out.println(\"TOTAL MATCHES \" + totalkeymatched);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint a[]= {15,3,7,1,9,2};\n\t\tsubarraysum(a,11);//Time complexity O(n^2) space O(1)\n\n\t\tsubarraysum_reducecomplexity(a,11,a.length); //Time complexity O(n) space O(1)\n\n\t}", "static int countCollinearFast(int[] a1, int[] a2, int[] a3)\n {\n //TODO: implement this method\n \tsort(a3);\n \tint count = 0;\n \tint search;\n \t\n \tfor (int i=0; i<a1.length; i++)\n \t\tfor (int j=0; j<a2.length; j++)\n \t\t{\n \t\t\tsearch = 2*a2[j] - a1[i];\n \t\t\tif (binarySearch(a3, search))\n \t\t\t\tcount++;\n \t\t}\n \t\n \treturn count;\n }", "private static void task3(int nUMS, BinarySearchTree<Integer> t) {\n\t\t\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Deletion in the table...\" );\n\t\t int count=0;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\tif(t.isEmpty() == false)\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tt.remove(i);\n\t\t\t\t\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tSystem.out.println(\"Is it empty \" + t.isEmpty());\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t\t \n\t\t }", "public static int[] twoSumBetter(int[] numbers, int target) {\n int[] aux = new int[numbers.length];\n for (int i = 0; i < numbers.length; i++) {\n aux[i] = numbers[i];\n }\n \n int i = 0, j = numbers.length - 1;\n boolean found = false;\n \n Arrays.sort(aux);\n \n while (i != j) {\n if (aux[i] + aux[j] < target) i++;\n else if (aux[i] + aux[j] > target) j--;\n else {\n found = true;\n break;\n }\n }\n \n if (!found) return null;\n int firstTarget = aux[i], secondTarget = aux[j];\n \n int[] result = new int[2];\n boolean foundOne = false;\n int leftOver = -1;\n for (int k = 0; k < numbers.length; k++) {\n \n if (foundOne) {\n if (numbers[k] == leftOver) {\n result[1] = k + 1;\n return result;\n }\n }\n \n if (numbers[k] == firstTarget || numbers[k] == secondTarget) {\n \n foundOne = true;\n leftOver = numbers[k] == firstTarget ? secondTarget : firstTarget;\n result[0] = k + 1;\n }\n }\n \n return result;\n \n }", "void bellford(ArrayList<Integer> nlist){\n\n int stval = nlist.get(0);\n dlist.get(stval).setval(stval);\n dlist.get(stval).setDist(0);\n\n for(int i = 0; i < nlist.size()-1; i++){\n for(int key: nlist){\n LinkedList<Node> alist = grp.getOrDefault(key, null);\n if(alist != null){\n for(Node node: alist){\n int val = node.getval();\n int we = node.getDist();\n int ddist = dlist.get(val).getDist();\n int odist = dlist.get(key).getDist();\n if(odist != Integer.MAX_VALUE && ddist > odist+we){\n dlist.get(val).setval(key);\n dlist.get(val).setDist(odist+we);\n }\n }\n }\n }\n }\n for(int key: dlist.keySet()){\n System.out.println(key+\" dist:\"+dlist.get(key).getDist()+\" prev:\"+dlist.get(key).getval());\n }\n System.out.println(\"Negative cycles at:\");\n //iisue should run n-1 times:\n for(int key: nlist){\n LinkedList<Node> alist = grp.getOrDefault(key, null);\n if(alist != null){\n for(Node node: alist){\n int val = node.getval();\n int we = node.getDist();\n int ddist = dlist.get(val).getDist();\n int odist = dlist.get(key).getDist();\n if(odist != Integer.MAX_VALUE && ddist > odist+we){\n dlist.get(val).setval(-999);\n dlist.get(val).setDist(odist+we);\n System.out.println(val);\n }\n }\n }\n }\n }", "private static void findBigramCountsTuring() {\n\n\t\tbigramCountTI= new HashMap<Integer,Double>();\n\t\tdouble value;\n\t\tfor(int i:bucketCountT.keySet()){\n\t\t\tif(i==0)\n\t\t\t\tcontinue;\n\t\t\tvalue= ((i+1)*bucketCountT.getOrDefault(i+1, 0.0))/bucketCountT.get(i);\n\t\t\tbigramCountTI.put(i,value);\n\t\t}\n\t}" ]
[ "0.6397375", "0.6032711", "0.59074223", "0.58721197", "0.5737443", "0.5708127", "0.5682559", "0.56552225", "0.5555733", "0.5530476", "0.5509694", "0.55035025", "0.54906183", "0.54689556", "0.5446971", "0.5420055", "0.5398729", "0.5388546", "0.53633225", "0.53554726", "0.5349107", "0.53371906", "0.5336828", "0.5331444", "0.53145206", "0.5310473", "0.52916604", "0.5277669", "0.5274638", "0.52682734", "0.52674943", "0.52615714", "0.5258894", "0.5258423", "0.52400863", "0.5236181", "0.52302104", "0.5228298", "0.5228162", "0.5218072", "0.5209743", "0.5208231", "0.5206787", "0.5193946", "0.5192847", "0.51927197", "0.519038", "0.51898414", "0.5189546", "0.51888204", "0.5172655", "0.51549995", "0.5152983", "0.51487595", "0.51431763", "0.5124817", "0.5124445", "0.51201886", "0.51171964", "0.5113563", "0.5112875", "0.5111335", "0.51111597", "0.5111116", "0.5110427", "0.51083726", "0.51022995", "0.5100076", "0.5088404", "0.50757354", "0.50750864", "0.5069743", "0.50655204", "0.50596356", "0.5059555", "0.50545746", "0.50541866", "0.50536734", "0.505126", "0.50498223", "0.50485903", "0.5042337", "0.50387245", "0.50362426", "0.5035432", "0.5027116", "0.50256145", "0.50236195", "0.50218815", "0.50194347", "0.5015208", "0.5014699", "0.50091106", "0.5004139", "0.5003239", "0.50021493", "0.50006664", "0.49992856", "0.49983934", "0.49975204", "0.49933723" ]
0.0
-1
Overwrite to provide additional run listeners.
protected List<RunListener> getRunListeners() { return Collections.emptyList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void installListeners() {\n\n\t}", "protected void installListeners() {\n\t}", "protected void installListeners() {\n }", "protected void installListeners() {\n }", "public static OnRun onRun( Runnable run )\n\t{\n\t\treturn new OnRun( run );\n\t}", "private void subscribeListeners(RunNotifier notifier) {\n for (Listeners ann : getAnnotationsFromClassHierarchy(suiteClass, Listeners.class)) {\n for (Class<? extends RunListener> clazz : ann.value()) {\n try {\n RunListener listener = clazz.newInstance();\n autoListeners.add(listener);\n notifier.addListener(listener);\n } catch (Throwable t) {\n throw new RuntimeException(\"Could not initialize suite class: \"\n + suiteClass.getName() + \" because its @Listener is not instantiable: \"\n + clazz.getName(), t); \n }\n }\n }\n }", "@Override\n protected void runInListenerThread(Runnable runnable) {\n runnable.run();\n }", "public abstract void run(RunNotifier notifier);", "private void setListeners() {\n\n }", "@Override\n public void run(RunNotifier notifier) {\n RunListener listener = new RunListener() {\n \n WarningsCollector warningsCollector;\n \n @Override\n public void testStarted(Description description) throws Exception {\n warningsCollector = new WarningsCollector();\n }\n \n @Override \n public void testFailure(final Failure failure) throws Exception { \n String warnings = warningsCollector.getWarnings();\n new JUnitFailureHacker().appendWarnings(failure, warnings); \n }\n };\n\n notifier.addFirstListener(listener);\n\n runner.run(notifier);\n }", "public interface DefaultUseCase<T> extends Runnable {\n\n public void addListener(T listener);\n\n public void removeListener(T listener);\n\n}", "@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}", "public static void runNotification(Runnable runner)\n {\n getInstance().doRunNotification(runner);\n }", "@Override\r\n\tprotected void setListeners() {\n\t\t\r\n\t}", "protected void registerListener() {\r\n\t\t// do nothing\r\n\t}", "public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlisten();\n\t\t\t\t}", "protected void attachListeners() {\n\t\t\n\t}", "public abstract void registerListeners();", "void registerListeners();", "public interface RunActionRunningListener\n{\n public static RunActionRunningListener[] EMPTY_ARRAY = {};\n public static Class THIS_CLASS = RunActionRunningListener.class;\n\n /**\n * called when test runner availability changes\n * @param isRunning\n */\n public void onRunActionRunnerAvailabilityChange(boolean isRunning);\n}", "protected void uninstallListeners() {\n\t}", "public void startListener(){\n new Thread(() -> this.run()).start();\n }", "public void doRunNotification(Runnable runner)\n {\n m_Executor.submit(runner);\n }", "protected void uninstallListeners() {\n }", "protected void uninstallListeners() {\n }", "protected abstract void startListener();", "private void setListener() {\n\t}", "@Override\n\tpublic void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tpublic void testRunStarted(Description description) {\n\t\tfor(TestListener listener : listeners) {\n\t\t\tlistener.runStarted(session);\n\t\t}\n\t}", "@Override\r\n\tprotected void attachListeners() {\n\t\t\r\n\t}", "public void setOnRunnerStatusUpdateListener(OnApplicationStatusUpdateListener listener) {\n if (listener == null) {\n listener = new DummyApplicationStatusUpdateListener();\n }\n this.listener = listener;\n }", "@Override\n public void addListener(Runnable runnable, Executor executor) {\n checkNotNull(runnable, \"Runnable was null\");\n checkNotNull(executor, \"Executor was null\");\n\n Listener oldHead = listeners.get();\n if (oldHead != Listener.TOMBSTONE) {\n Listener newHead = new Listener(runnable, executor);\n do {\n newHead.next = oldHead;\n if (listeners.compareAndSet(oldHead, newHead)) {\n return;\n }\n oldHead = listeners.get();\n } while (oldHead != Listener.TOMBSTONE);\n }\n\n // Maybe handle RuntimeExceptions eventually.\n executor.execute(runnable);\n }", "public ReqaListener() {\n\t\tthis(new Session(), new ArrayList<TestListener>());\n\t}", "public void listener() {\n\t\tif (this.command.getMode().equals(Command.MODE_TRACK)) {\n\t\t\tFilterQuery filterQuery = new FilterQuery();\n\t\t\tfilterQuery.track(this.command.getKeywords().toArray(new String[this.command.getKeywords().size()]));\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.filter(filterQuery);\n\t\t} else if (this.command.getMode().equals(Command.MODE_SAMPLE)) {\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.sample();\n\t\t} else {\n\t\t\t// do search\n\t\t}\n\t}", "protected void listener(Listener listener) {\n Bukkit.getServer().getPluginManager().registerEvents(listener, RedPractice.getInstance());\n }", "protected Listener(){super();}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "public void run() {/* THE CODE HERE IS A THE @OVERRIDE FOR START() METHOD */\n\t}", "@Override\n protected void beforeExecute(final Thread thread, final Runnable run) {\n mActiveTasks.add(run);\n super.beforeExecute(thread, run);\n }", "@Override\n\tpublic void setup()\n\t{\n\t\tCoreNotifications.get().addListener(this, ICoreContextOperationListener.class);\n\t\tCoreNotifications.get().addListener(this, ICoreProcedureInputListener.class);\n\t\tCoreNotifications.get().addListener(this, ICoreProcedureRuntimeListener.class);\n\t\tCoreNotifications.get().addListener(this, ICoreProcedureOperationListener.class);\n\t}", "@Override\n\tprotected void initListeners() {\n\t\t\n\t}", "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 void onRunActionRunnerAvailabilityChange(boolean isRunning);", "protected interface DispatcherRunnable<LISTENER> {\n void run(LISTENER listener);\n }", "private void postRun() {\n // remove all GPIO listeners\n GpioFactory.getInstance().removeAllListeners();\n this.isRunning = false;\n IoTLogger.getInstance().info(\"Post RUN\");\n }", "private DefaultListener() {\n }", "@Override\r\n\tpublic void initListeners() {\n\t\t\r\n\t}", "private void addListeners() {\n \t\tfHistoryListener= new HistoryListener();\n \t\tfHistory.addOperationHistoryListener(fHistoryListener);\n \t\tlistenToTextChanges(true);\n \t}", "@Override\n\tpublic void run() {\n\t\tregisterTab(\"chat\");\n\t\tregisterListener(\"COMMAND\");\n\t}", "@Override\n\t@CallCounted\n\t@PerfLogged\n\t@RolesAllowed(USER)\n\tpublic String[] getRunListeners(String runName) throws UnknownRunException {\n\t\tTavernaRun w = support.getRun(runName);\n\t\tList<String> result = new ArrayList<>();\n\t\tfor (Listener l : w.getListeners())\n\t\t\tresult.add(l.getName());\n\t\treturn result.toArray(new String[result.size()]);\n\t}", "@Override\n\tpublic void addConsoleOutputListener(IEventHandler listener) {\n\t\t\n\t}", "protected void installListeners() {\n Window topLevelWindows[] = EventQueueMonitor.getTopLevelWindows();\n if (topLevelWindows != null) {\n for (int i = 0; i < topLevelWindows.length; i++) {\n if (topLevelWindows[i] instanceof Accessible) {\n installListeners((Accessible) topLevelWindows[i]);\n }\n }\n }\n }", "default void dispatchConsumers() {\n\t\tthis.getItemListeners().forEach(Runnable::run);\n\t}", "void beforeRun();", "default void run() {\n\t\tSystem.out.println(\"run\");\r\n\t}", "private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}", "public static void main(String[] args) {\n Runnable taskUDP = () -> {\n try {\n RMListener();\n } catch (Exception e) {\n e.printStackTrace();\n }\n };\n new Thread(taskUDP).start();\n System.out.println(\"Replica Manager3 is ready and listening\");\n }", "void afterRun();", "final void fireListeners(){\n /// Fire target edited listeners\n if (editedTarget){\n fire(spanEditedListeners);\n editedTarget = false;\n }\n\n /// Fire child edited listeners\n if (editedChild){\n fire(childEditedListeners);\n editedChild = false;\n }\n\n /// Fire doc edited listeners\n fire(docEditedListeners);\n\n /// Recusive call\n for (Span span: this){\n if (span instanceof SpanNode){\n ((SpanNode<?>)span).fireListeners();\n }\n }\n }", "@Override\r\n public void addNotify() {\r\n super.addNotify();\r\n \r\n // add listener\r\n component.getResults().addLabTestListener(this);\r\n }", "private void newListener() {\n (new Thread(this)).start();\n }", "public void addOnStopped(FXPlatformRunnable stopped)\n {\n onStopped.add(stopped);\n }", "@Override\n public void run(String... args) throws Exception {\n\n //do something\n\n }", "public void run() {\n super.run();\n }", "abstract void doTaskOnRun();", "@Override\n\tprotected void postRun() {\n\n\t}", "private final void fire(HashSet<Consumer<SpanNode<T>>> listeners){\n for (Consumer<SpanNode<T>> listener: listeners) listener.accept(this);\n }", "public void addListener( RemoteFileIOListener passedListener ) {\n if(passedListener != null){\n\n synchronized(theTaskListeners){\n if(!theTaskListeners.contains(passedListener)){\n theTaskListeners.add(passedListener);\n }\n }\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\tif(\tisSupported(getApplicationContext(),Sensor.TYPE_ROTATION_VECTOR))\n\t\t\t{ sensorManager.registerListener(this,\n\t\t sensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR),\n\t\t SensorManager.SENSOR_DELAY_NORMAL);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tLog.d(\"sensor message\", \"sensor is not availabe \");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "abstract public void addListener(Listener listener);", "@Override\n public void run() {\n DownloadListener.getListener().execute();\n }", "protected abstract void preRun();", "@Override\n\tprotected void setListenerAndAdapter() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Turning off all Sprinklers for the Schedule \");\n\t\t\t\tif(SprinklerGroups!=null && SprinklerGroups.size()>0){\n\t\t\t\t\tfor(SprinklerGroup g:SprinklerGroups){\n\t\t\t\t\t\tc.getAllSprinklersForGroup(g).forEach(new Consumer<Sprinkler>() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void accept(Sprinkler t) {\n\t\t\t\t\t\t\t\tt.turnOFF(Schedule.this.getListener());\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(SprinklerIDs!=null && SprinklerIDs.size()>0){\n\t\t\t\t\tSprinklerIDs.forEach(new Consumer<Integer>() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void accept(Integer t) {\n\t\t\t\t\t\t\tc.getSprinkler(t).turnOFF(Schedule.this.getListener());\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}", "public static void main(String[] args) {\n\t\tnew ListenAcross();\n\t}", "public FluoriteListener() {\r\n\t\tidleTimer = new IdleTimer();\r\n\t\tEHEventRecorder eventRecorder = EHEventRecorder.getInstance();\r\n//\t\tEventRecorder eventRecorder = EventRecorder.getInstance();\r\n\r\n//\t\teventRecorder.addCommandExecutionListener(this);\r\n//\t\teventRecorder.addDocumentChangeListener(this);\r\n//\t\teventRecorder.addRecorderListener(this);\r\n\t\teventRecorder.addEclipseEventListener(this);\r\n\t}", "public void resetListeners() {\n\t\tfinal ListenerSupport<AgentShutDownListener> backup = new ListenerSupport<>();\n\n\t\tgetListeners().apply(backup::add);\n\n\t\tbackup.apply(listener -> {\n\t\t\tgetListeners().remove(listener);\n\t\t});\n\t}", "@Override\n\tpublic void run(String... args) {\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t}", "@Override\n public void run(String... args) throws Exception {\n run();\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n }", "@Override\n\tpublic void postRun() {\n\t}", "@Override\n public void preRun() {\n super.preRun();\n }", "@Override\n\tpublic void addToolListener(ToolListener listener) {\n\t\t//do nothing\n\t}", "public void addNPTListener(NPTListener l){}", "public static void run(){}", "@Override\n\tpublic void getListener(){\n\t}", "protected void removeListeners() {\n }", "public void run() {\n try {\n this.initialize();\n Listener ln = new Listener(localDir, port);\n ln.run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "Move listen(IListener ll);", "default void addListener(Runnable listener) {\n\t\tthis.getItemListeners().add(listener);\n\t}", "public ASListener(){\n \t\treload();\n \t}", "@Before\n public void initialize()\n throws Exception\n {\n cronTaskEventListenerRegistry.addListener(this);\n }", "public void run() {\n // no-op.\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tonIntentClass(activity, MainActivity.class, true);\n\t\t\t}", "private void fireOnTweetsReceived(ArrayList<AbstractTweet> arlis) {\n if ( mOnNewTweet != null ){\n mOnNewTweet.onNewTweet(arlis);\n }\n else{\n throw new NullPointerException(\"fireOnTweetsReceived(): WARNING:: we don't have listener registered. Suspicious logic\"); \n }\n }" ]
[ "0.6430104", "0.64063257", "0.63996875", "0.63996875", "0.62847483", "0.61822826", "0.61008537", "0.6097541", "0.59878016", "0.59152764", "0.5854814", "0.58217025", "0.5800272", "0.57991976", "0.5787636", "0.57734555", "0.5760845", "0.57590497", "0.57438236", "0.57274806", "0.56554294", "0.56127715", "0.5578543", "0.5564597", "0.5549555", "0.5549555", "0.5544309", "0.55184513", "0.54903257", "0.5456788", "0.5456788", "0.5449729", "0.54408556", "0.5409074", "0.5396557", "0.53948146", "0.5391863", "0.5387013", "0.5378725", "0.53776026", "0.53776026", "0.53765345", "0.5373454", "0.5361786", "0.53582716", "0.5324506", "0.53180754", "0.5306153", "0.52888525", "0.52605367", "0.5252585", "0.5235086", "0.522421", "0.52078265", "0.52050656", "0.5193075", "0.5184777", "0.51828665", "0.51725", "0.51638013", "0.5162113", "0.51569325", "0.515515", "0.5147471", "0.51437825", "0.51433605", "0.5137006", "0.5130463", "0.51044786", "0.5093726", "0.5093651", "0.5090061", "0.5083254", "0.50818235", "0.5080657", "0.50788456", "0.5078592", "0.5073837", "0.50705665", "0.5068011", "0.50577915", "0.5048549", "0.50401527", "0.5039705", "0.5037805", "0.50371844", "0.5032237", "0.50310767", "0.50287217", "0.50286084", "0.50255895", "0.50227106", "0.5014497", "0.5014089", "0.50024414", "0.4999511", "0.49943322", "0.49940705", "0.49922755", "0.4990959" ]
0.64127815
1
AssumptionViolatedException might not be Serializable. Recreate with only String message.
@Override public void testAssumptionFailure(Failure failure) { exception = new AssumptionViolatedException(failure.getException().getMessage()); exception.setStackTrace(failure.getException().getStackTrace()); ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SerializationException(String msg) {\n super(msg);\n }", "public void testSerializeAndDeserializeWithoutCause() {\n Exception e = new RuntimeException(\"My message\");\n RemoteTestResult original = new RemoteTestResult();\n original.setException(e);\n\n RemoteTestResult recreated = RemoteTestResult.fromXML(original.toXML());\n assertEquals(original.successful(), recreated.successful());\n assertExceptionInfoIsEqual(original.getExceptionInfo(), recreated.getExceptionInfo());\n\n assertStackTracesAreIdentical(e, recreated.recreateException());\n }", "public ByteArrayConversionException(String message) {\n super(message);\n }", "void checkReconstructible() throws InvalidObjectException {\n // subclasses can override\n }", "@Test(expected = UninitializedMessageException.class)\n public void testWriteToNewByteArrayInvalidInput() throws IOException {\n final JunitTestMainObject testObj = JunitTestMainObject.newBuilder().build();\n testObj.toByteArray();\n }", "public ByteArrayConversionException() {\n super();\n }", "public ByteArrayConversionException(String message, Throwable cause) {\n super(message, cause);\n }", "public SerializationException(String msg, Throwable cause) {\n super(msg, cause);\n }", "public PersistenceException(String message) {\n super(message);\n }", "public PreparationException(final String message) {\n\t\tsuper(message);\n\t}", "public void testSimpleSerializableMessage() {\n String handlerId = \"u7p3$\";\n String requestId = \"i0-s@\";\n SimpleSerializableMessage message = new SimpleSerializableMessage(handlerId, requestId);\n\n assertTrue(\"Message is not serialzable.\", message instanceof Serializable);\n\n assertEquals(\"Incorrect handler id.\", handlerId, message.getHandlerId());\n assertEquals(\"Incorrect request id.\", requestId, message.getRequestId());\n\n assertEquals(\"Incorrect serializer type.\", SerializableMessageSerializer.class.getName(), message.getSerializerType());\n }", "public CoderException(String message) {\n super(message);\n }", "WireframeException(String message){\r\n super(message);\r\n }", "public RecoverableException(final String message) {\n super(message);\n }", "private void readObject(java.io.ObjectInputStream in) throws NotSerializableException {\n throw new NotSerializableException(\"Not serializable.\");\n }", "@Test\n public void testSerializationNegative()\n {\n byte[] bytes = StateUtils.getAsByteArray(TEST_DATA, externalContext);\n bytes[1] = (byte) 3;\n try\n {\n Object object = StateUtils.getAsObject(bytes, externalContext);\n Assertions.assertFalse(TEST_DATA.equals(object));\n }\n catch (Exception e)\n {\n // do nothing\n }\n\n }", "public InvalidStateException(String message) {\n\t\tsuper(message);\n\t}", "public DataConversionException(String msg) {\n super(msg);\n }", "public PreparationException() {\n\t\tsuper();\n\t}", "private static Throwable reconstitute(Throwable t) {\n Throwable result = null;\n try(ByteArrayOutputStream bout = new ByteArrayOutputStream();\n ObjectOutputStream out = new ObjectOutputStream(bout)) {\n out.writeObject(t);\n out.flush();\n try(ByteArrayInputStream bin =\n new ByteArrayInputStream(bout.toByteArray());\n ObjectInputStream in = new ObjectInputStream(bin)) {\n result = (Throwable) in.readObject();\n }\n } catch(IOException | ClassNotFoundException e) {\n throw new RuntimeException(e);\n }\n return result;\n }", "public CoderException(String message, Throwable cause) {\n super(message, cause);\n }", "public ObjectDescriptionException() {\r\n super();\r\n }", "public InvalidUserDataException() {\n \n }", "public VerifyException(String message) {\n\t\tsuper(message);\n\t}", "public void testDeserializeMessage() throws Exception {\n String handlerId = \"u7p3$\";\n String requestId = \"i0-s@\";\n AccuracySerializableMessage message = new AccuracySerializableMessage(handlerId, requestId);\n\n long magicNumber = 43265472;\n message.setMagicNumber(magicNumber);\n\n Message message2 = new SerializableMessageSerializer().\n deserializeMessage(new ByteArrayInputStream(serialize(message)));\n\n assertNotNull(\"Message is not deserialized.\", message2);\n assertTrue(\"Incorrect message type.\", message2 instanceof AccuracySerializableMessage);\n\n assertEquals(\"Message data is corrupted.\", magicNumber,\n ((AccuracySerializableMessage) message2).getMagicNumber());\n }", "public void testActivityObjectCloneExceptionStringThrowable() {\n test = new ActivityObjectCloneException(\"test\", new IllegalArgumentException());\n assertNotNull(\"Fails to create exception.\", test);\n assertEquals(\"Wrong message.\", \"test\", test.getMessage().substring(0, 4));\n assertEquals(\"Wrong cause.\", IllegalArgumentException.class, test.getCause().getClass());\n }", "@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }", "public void testActivityObjectCloneExceptionString() {\n test = new ActivityObjectCloneException(\"test\");\n assertNotNull(\"Fails to create exception.\", test);\n assertEquals(\"Wrong message.\", \"test\", test.getMessage());\n }", "public void testPersistenceExceptionStringThrowableAccuracy() {\r\n //Construct PersistenceException with a detail message and a cause\r\n PersistenceException exception = new PersistenceException(DETAIL_MESSAGE, CAUSE);\r\n\r\n //Verify that there is a detail message\r\n assertNotNull(\"Should have message.\", exception.getMessage());\r\n\r\n //altered message is the result of a modification to the BaseException component.\r\n assertEquals(\"Detailed error message with cause should be correct.\", DETAIL_MESSAGE + \", caused by null\",\r\n exception.getMessage());\r\n\r\n //Verify that there is a cause\r\n assertNotNull(\"Should have cause.\", exception.getCause());\r\n assertTrue(\"Cause should be identical.\", CAUSE == exception.getCause());\r\n }", "public IORuntimeException(String message) {\n super(message);\n }", "public SSBDatasetException(String message) {\r\n\t\tsuper(message);\r\n\t}", "public CoderException(Throwable cause) {\n super(cause);\n }", "public IncorrectInputException(String message) {\r\n super(message);\r\n }", "@Test\n public void testConstructionNegative()\n {\n String constructed = StateUtils.construct(TEST_DATA, externalContext);\n constructed = constructed.substring(1);\n try\n {\n Object object = StateUtils.reconstruct(constructed, externalContext);\n Assertions.assertFalse(TEST_DATA.equals(object));\n }\n catch (Exception e)\n {\n // do nothing\n }\n }", "public AbstractCodeGenException(final String message) {\n super(message);\n }", "public TypeConversionException(String message) {\n super(message);\n }", "public RedoException(String message) {\r\n\t\tsuper(message);\r\n\t}", "public InvalidDatumException(String message) {\n \n super(message);\n }", "private void readObject(ObjectInputStream s) throws InvalidObjectException {\n throw new InvalidObjectException(\"Deserialization via serialization delegate\");\n }", "WireframeException(String message, Throwable e){\r\n super(message, e);\r\n }", "public PersistenceException(String message, Throwable cause) {\n super(message, cause);\n }", "public ResourceRuntimeException(String message) {\n super(message);\n }", "@Test\n\tpublic void testStateBackendRestoreFailsIfNewKeySerializerRequiresMigration() throws Exception {\n\t\ttry {\n\t\t\ttestKeySerializerUpgrade(\n\t\t\t\tnew TestType.V1TestTypeSerializer(),\n\t\t\t\tnew TestType.V2TestTypeSerializer());\n\n\t\t\tfail(\"should have failed\");\n\t\t} catch (Exception expected) {\n\t\t\t// the new key serializer requires migration; this should fail the restore\n\t\t\tAssert.assertTrue(ExceptionUtils.findThrowable(expected, StateMigrationException.class).isPresent());\n\t\t}\n\t}", "public ImagingMigratorException(String message) {\n super(message);\n }", "public BadVehicleInformationException(String message) {\n\t\tsuper(message);\n\t}", "public void testInsufficientDataExceptionStringThrowableAccuracy() {\r\n //Construct InsufficientDataException with a detail message and a cause\r\n InsufficientDataException exception = new InsufficientDataException(DETAIL_MESSAGE, CAUSE);\r\n\r\n //Verify that there is a detail message\r\n assertNotNull(\"Should have message.\", exception.getMessage());\r\n\r\n //altered message is the result of a modification to the BaseException component.\r\n assertEquals(\"Detailed error message with cause should be correct.\", DETAIL_MESSAGE + \", caused by null\",\r\n exception.getMessage());\r\n\r\n //Verify that there is a cause\r\n assertNotNull(\"Should have cause.\", exception.getCause());\r\n assertTrue(\"Cause should be identical.\", CAUSE == exception.getCause());\r\n }", "public ConceptPersistException( IDescriptor descriptor, String msg )\r\n {\r\n super( \"[\" + descriptor.toString() + \"]: \" + msg );\r\n this.descriptor = descriptor;\r\n }", "public PreparationException(final String message, final Throwable cause) {\n\t\tsuper(message, cause);\n\t}", "public BadArrayException(String exceptionMsg) \r\n {\r\n super(exceptionMsg); // Pass on to parent exception constructor\r\n }", "public AnimationPlanModificationException(String message)\r\n {\r\n super(message);\r\n }", "public CommunicationException(String message) {\r\n\t\tsuper(message);\r\n\t}", "public RedoException(){\r\n\t\tsuper();\r\n\t}", "public void testSerializeMessage() throws Exception {\n String handlerId = \"u7p3$\";\n String requestId = \"i0-s@\";\n AccuracySerializableMessage message = new AccuracySerializableMessage(handlerId, requestId);\n\n long magicNumber = 43265472;\n message.setMagicNumber(magicNumber);\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n\n new SerializableMessageSerializer().serializeMessage(message, stream);\n\n assertByteArray(serialize(message), stream.toByteArray());\n }", "public notHumanBeingException(String message){// Message parameted created\n super(message);\n \n }", "public BadMessageException(final String message) {\r\n\t\tsuper(message);\r\n\t}", "void assertDeserialized(Serializable initial, Serializable deserialized);", "public void testPersistenceExceptionStringAccuracy() {\r\n //Construct PersistenceException with a detail message\r\n PersistenceException exception = new PersistenceException(DETAIL_MESSAGE);\r\n\r\n //Verify that there is a detail message\r\n assertNotNull(\"Should have message.\", exception.getMessage());\r\n assertEquals(\"Detailed error message should be identical.\", DETAIL_MESSAGE, exception.getMessage());\r\n }", "public DataIntegrityError(String message) {\n super(message);\n }", "public void testPersistenceExceptionAccuracy1() throws Exception {\n PersistenceException pe = new PersistenceException(\"test\");\n assertEquals(\"message is incorrect.\", \"test\", pe.getMessage());\n }", "@Test(timeout = 4000)\n public void test043() throws Throwable {\n StringReader stringReader0 = new StringReader(\"s\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n // Undeclared exception!\n try { \n javaCharStream0.ReInit((Reader) stringReader0, (-1), (-1), (-1));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "public DayPersistenceException( String message ) {\n super(new Exception( message ), message);\n }", "public InstrumenterException(String message) {\r\n super(message);\r\n }", "public ValueConversionException(String message, Throwable cause) {\n/* 52 */ super(message, cause);\n/* */ }", "public void testPersistenceExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n PersistenceException pe = new PersistenceException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", pe.getMessage());\n assertEquals(\"cause is incorrect.\", e, pe.getCause());\n }", "protected MovieStoreException(final String message) {\n\t\tsuper(message);\n\t}", "public DuplicateRecordException(String msg){\n\t\tsuper(msg);\n\t}", "public ConceptPersistException( String msg )\r\n {\r\n super( msg );\r\n }", "public RecordStoreException(String message) {\n\tsuper(message);\n }", "public CassandraDataException(String msg){\r\n\t\tsuper(msg);\r\n\t}", "public CommunicationException() {\r\n\t\tsuper();\r\n\t}", "public TypeConversionException(String message, Throwable cause) {\n super(message, cause);\n }", "public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}", "public InvalidTransitionException(String message) {\r\n super(message);\r\n }", "public SSBDatasetException(String message, Throwable cause) {\r\n\t\tsuper(message, cause);\r\n\t}", "public ConverterException(String message) {\n super(message);\n this.cause = null;\n }", "public ConfigurationRuntimeException(String message) {\n super(message);\n }", "@Test\n public void testConstructorWithMessage()\n {\n final LoaderException e = new LoaderException(\"Custom message\");\n assertEquals(\"Custom message\", e.getMessage());\n }", "public InvalidModelException(String message) {\n super(message);\n }", "public CodecException(String msg) {\n\t\tsuper(msg);\n\t}", "public withdrawException(String msg) {\n super(msg);\n }", "public DimensionalityMismatchException(\n String msg)\n {\n super(msg);\n }", "EnigmaException(String msg) {\n super(msg);\n }", "@Override\r\n protected void invalidMessage(RemoteGENASubscription sub,\r\n UnsupportedDataException ex) {\n }", "public NotValidException(String message) {\r\n super(message);\r\n }", "public TwoDAReadException(String message) { super(message); }", "public OverflowTransactionException(String message) {\n\t\tsuper(message);\n\t}", "public BusinessObjectException() {\r\n super();\r\n }", "public InterfaceException(MessageKey key) {\n super(key);\n }", "public ConceptPersistException( IDescriptor descriptor, String msg, Exception cause )\r\n {\r\n super( descriptor.toString(), \"[\" + descriptor.toString() + \"]: \" + msg, cause );\r\n this.descriptor = descriptor;\r\n }", "public LogIllegalStateException(String message) {\r\n super(message);\r\n }", "public void testCtorWithWrongTransferable() {\n try {\n new PasteAssociationAction(new ClassElementsTransfer(new DependencyImpl()), namespace);\n fail(\"InvalidDataContentException is expected.\");\n } catch (InvalidDataContentException idce) {\n // pass\n }\n }", "public CalcLayoutException(String message) {\n\t\tsuper(message);\n\t}", "public InvalidTransitionException(String message) {\n\t\tsuper(message);\n\t}", "public InvalidTransitionException(String message) {\n\t\tsuper(message);\n\t}", "public UnderflowException(String message) {\n super(message);\n }", "InvalidDeletionException(String message) {\n super(message);\n }", "public TechnicalException() {\r\n }", "private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {\n throw new NotSerializableException();\n }", "public TechnicalException(String message) {\r\n super(message);\r\n }", "protected Serializable eventToMessageObject(CayenneEvent event) throws Exception {\n return event;\n }" ]
[ "0.6149701", "0.6139584", "0.5974221", "0.58620715", "0.58490586", "0.5845879", "0.57081175", "0.5706244", "0.5585667", "0.55542135", "0.5547817", "0.5547697", "0.5523698", "0.55142665", "0.5477055", "0.5460545", "0.5404352", "0.5390197", "0.5381805", "0.5299063", "0.5290893", "0.52619505", "0.5254599", "0.52500314", "0.5237961", "0.5229522", "0.52202433", "0.5203221", "0.5199723", "0.5193118", "0.51846546", "0.51724905", "0.5172377", "0.5166375", "0.5165317", "0.51572084", "0.5157147", "0.51547694", "0.51433134", "0.5136397", "0.51346743", "0.5127039", "0.5125381", "0.5115783", "0.51028925", "0.51026946", "0.5098423", "0.5090139", "0.5084192", "0.50749797", "0.5073316", "0.50728184", "0.50661016", "0.5057672", "0.50547373", "0.50477695", "0.5042917", "0.50345236", "0.5033134", "0.5025959", "0.5023859", "0.50083125", "0.50066936", "0.5005614", "0.49816105", "0.49801895", "0.49770084", "0.49759468", "0.4972531", "0.49719837", "0.49647814", "0.4964665", "0.49581352", "0.4957981", "0.49533513", "0.4933791", "0.49317488", "0.4926842", "0.4925853", "0.49194595", "0.49158427", "0.4907638", "0.49070105", "0.48984298", "0.48936376", "0.48843354", "0.48735946", "0.48712954", "0.48691386", "0.48673007", "0.48646593", "0.48615178", "0.48592356", "0.48592356", "0.4856816", "0.4851422", "0.48506936", "0.48471493", "0.4845968", "0.48453376" ]
0.50793177
49
The persistence interface for the vcms discussion service. Caching information and settings can be found in portal.properties
@ProviderType public interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the vcms discussions where groupId = &#63; and language = &#63;. * * @param groupId the group ID * @param language the language * @return the matching vcms discussions */ public java.util.List<VcmsDiscussion> findByP_L(long groupId, java.lang.String language); /** * Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param language the language * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @return the range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByP_L(long groupId, java.lang.String language, int start, int end); /** * Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param language the language * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByP_L(long groupId, java.lang.String language, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param language the language * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByP_L(long groupId, java.lang.String language, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator, boolean retrieveFromCache); /** * Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;. * * @param groupId the group ID * @param language the language * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching vcms discussion * @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found */ public VcmsDiscussion findByP_L_First(long groupId, java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;. * * @param groupId the group ID * @param language the language * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found */ public VcmsDiscussion fetchByP_L_First(long groupId, java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;. * * @param groupId the group ID * @param language the language * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching vcms discussion * @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found */ public VcmsDiscussion findByP_L_Last(long groupId, java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;. * * @param groupId the group ID * @param language the language * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found */ public VcmsDiscussion fetchByP_L_Last(long groupId, java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;. * * @param discussionId the primary key of the current vcms discussion * @param groupId the group ID * @param language the language * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next vcms discussion * @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found */ public VcmsDiscussion[] findByP_L_PrevAndNext( java.lang.String discussionId, long groupId, java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database. * * @param groupId the group ID * @param language the language */ public void removeByP_L(long groupId, java.lang.String language); /** * Returns the number of vcms discussions where groupId = &#63; and language = &#63;. * * @param groupId the group ID * @param language the language * @return the number of matching vcms discussions */ public int countByP_L(long groupId, java.lang.String language); /** * Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;. * * @param groupId the group ID * @param language the language * @param approved the approved * @return the matching vcms discussions */ public java.util.List<VcmsDiscussion> findByP_L_A(long groupId, java.lang.String language, boolean approved); /** * Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param language the language * @param approved the approved * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @return the range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByP_L_A(long groupId, java.lang.String language, boolean approved, int start, int end); /** * Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param language the language * @param approved the approved * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByP_L_A(long groupId, java.lang.String language, boolean approved, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param language the language * @param approved the approved * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByP_L_A(long groupId, java.lang.String language, boolean approved, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator, boolean retrieveFromCache); /** * Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;. * * @param groupId the group ID * @param language the language * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching vcms discussion * @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found */ public VcmsDiscussion findByP_L_A_First(long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;. * * @param groupId the group ID * @param language the language * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found */ public VcmsDiscussion fetchByP_L_A_First(long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;. * * @param groupId the group ID * @param language the language * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching vcms discussion * @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found */ public VcmsDiscussion findByP_L_A_Last(long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;. * * @param groupId the group ID * @param language the language * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found */ public VcmsDiscussion fetchByP_L_A_Last(long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;. * * @param discussionId the primary key of the current vcms discussion * @param groupId the group ID * @param language the language * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next vcms discussion * @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found */ public VcmsDiscussion[] findByP_L_A_PrevAndNext( java.lang.String discussionId, long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database. * * @param groupId the group ID * @param language the language * @param approved the approved */ public void removeByP_L_A(long groupId, java.lang.String language, boolean approved); /** * Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;. * * @param groupId the group ID * @param language the language * @param approved the approved * @return the number of matching vcms discussions */ public int countByP_L_A(long groupId, java.lang.String language, boolean approved); /** * Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;. * * @param articleId the article ID * @param groupId the group ID * @param language the language * @param approved the approved * @return the matching vcms discussions */ public java.util.List<VcmsDiscussion> findByA_P_L_A( java.lang.String articleId, long groupId, java.lang.String language, boolean approved); /** * Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param articleId the article ID * @param groupId the group ID * @param language the language * @param approved the approved * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @return the range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByA_P_L_A( java.lang.String articleId, long groupId, java.lang.String language, boolean approved, int start, int end); /** * Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param articleId the article ID * @param groupId the group ID * @param language the language * @param approved the approved * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByA_P_L_A( java.lang.String articleId, long groupId, java.lang.String language, boolean approved, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param articleId the article ID * @param groupId the group ID * @param language the language * @param approved the approved * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByA_P_L_A( java.lang.String articleId, long groupId, java.lang.String language, boolean approved, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator, boolean retrieveFromCache); /** * Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;. * * @param articleId the article ID * @param groupId the group ID * @param language the language * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching vcms discussion * @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found */ public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId, long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;. * * @param articleId the article ID * @param groupId the group ID * @param language the language * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found */ public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId, long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;. * * @param articleId the article ID * @param groupId the group ID * @param language the language * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching vcms discussion * @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found */ public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId, long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;. * * @param articleId the article ID * @param groupId the group ID * @param language the language * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found */ public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId, long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;. * * @param discussionId the primary key of the current vcms discussion * @param articleId the article ID * @param groupId the group ID * @param language the language * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next vcms discussion * @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found */ public VcmsDiscussion[] findByA_P_L_A_PrevAndNext( java.lang.String discussionId, java.lang.String articleId, long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database. * * @param articleId the article ID * @param groupId the group ID * @param language the language * @param approved the approved */ public void removeByA_P_L_A(java.lang.String articleId, long groupId, java.lang.String language, boolean approved); /** * Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;. * * @param articleId the article ID * @param groupId the group ID * @param language the language * @param approved the approved * @return the number of matching vcms discussions */ public int countByA_P_L_A(java.lang.String articleId, long groupId, java.lang.String language, boolean approved); /** * Returns all the vcms discussions where articleId = &#63; and approved = &#63;. * * @param articleId the article ID * @param approved the approved * @return the matching vcms discussions */ public java.util.List<VcmsDiscussion> findByA_A( java.lang.String articleId, boolean approved); /** * Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param articleId the article ID * @param approved the approved * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @return the range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByA_A( java.lang.String articleId, boolean approved, int start, int end); /** * Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param articleId the article ID * @param approved the approved * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByA_A( java.lang.String articleId, boolean approved, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param articleId the article ID * @param approved the approved * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByA_A( java.lang.String articleId, boolean approved, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator, boolean retrieveFromCache); /** * Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;. * * @param articleId the article ID * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching vcms discussion * @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found */ public VcmsDiscussion findByA_A_First(java.lang.String articleId, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;. * * @param articleId the article ID * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found */ public VcmsDiscussion fetchByA_A_First(java.lang.String articleId, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;. * * @param articleId the article ID * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching vcms discussion * @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found */ public VcmsDiscussion findByA_A_Last(java.lang.String articleId, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;. * * @param articleId the article ID * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found */ public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;. * * @param discussionId the primary key of the current vcms discussion * @param articleId the article ID * @param approved the approved * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next vcms discussion * @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found */ public VcmsDiscussion[] findByA_A_PrevAndNext( java.lang.String discussionId, java.lang.String articleId, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database. * * @param articleId the article ID * @param approved the approved */ public void removeByA_A(java.lang.String articleId, boolean approved); /** * Returns the number of vcms discussions where articleId = &#63; and approved = &#63;. * * @param articleId the article ID * @param approved the approved * @return the number of matching vcms discussions */ public int countByA_A(java.lang.String articleId, boolean approved); /** * Returns all the vcms discussions where articleId = &#63;. * * @param articleId the article ID * @return the matching vcms discussions */ public java.util.List<VcmsDiscussion> findByArticle( java.lang.String articleId); /** * Returns a range of all the vcms discussions where articleId = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param articleId the article ID * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @return the range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByArticle( java.lang.String articleId, int start, int end); /** * Returns an ordered range of all the vcms discussions where articleId = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param articleId the article ID * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByArticle( java.lang.String articleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns an ordered range of all the vcms discussions where articleId = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param articleId the article ID * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching vcms discussions */ public java.util.List<VcmsDiscussion> findByArticle( java.lang.String articleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator, boolean retrieveFromCache); /** * Returns the first vcms discussion in the ordered set where articleId = &#63;. * * @param articleId the article ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching vcms discussion * @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found */ public VcmsDiscussion findByArticle_First(java.lang.String articleId, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Returns the first vcms discussion in the ordered set where articleId = &#63;. * * @param articleId the article ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found */ public VcmsDiscussion fetchByArticle_First(java.lang.String articleId, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns the last vcms discussion in the ordered set where articleId = &#63;. * * @param articleId the article ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching vcms discussion * @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found */ public VcmsDiscussion findByArticle_Last(java.lang.String articleId, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Returns the last vcms discussion in the ordered set where articleId = &#63;. * * @param articleId the article ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found */ public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;. * * @param discussionId the primary key of the current vcms discussion * @param articleId the article ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next vcms discussion * @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found */ public VcmsDiscussion[] findByArticle_PrevAndNext( java.lang.String discussionId, java.lang.String articleId, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException; /** * Removes all the vcms discussions where articleId = &#63; from the database. * * @param articleId the article ID */ public void removeByArticle(java.lang.String articleId); /** * Returns the number of vcms discussions where articleId = &#63;. * * @param articleId the article ID * @return the number of matching vcms discussions */ public int countByArticle(java.lang.String articleId); /** * Caches the vcms discussion in the entity cache if it is enabled. * * @param vcmsDiscussion the vcms discussion */ public void cacheResult(VcmsDiscussion vcmsDiscussion); /** * Caches the vcms discussions in the entity cache if it is enabled. * * @param vcmsDiscussions the vcms discussions */ public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions); /** * Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database. * * @param discussionId the primary key for the new vcms discussion * @return the new vcms discussion */ public VcmsDiscussion create(java.lang.String discussionId); /** * Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners. * * @param discussionId the primary key of the vcms discussion * @return the vcms discussion that was removed * @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found */ public VcmsDiscussion remove(java.lang.String discussionId) throws NoSuchVcmsDiscussionException; public VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion); /** * Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found. * * @param discussionId the primary key of the vcms discussion * @return the vcms discussion * @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found */ public VcmsDiscussion findByPrimaryKey(java.lang.String discussionId) throws NoSuchVcmsDiscussionException; /** * Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found. * * @param discussionId the primary key of the vcms discussion * @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found */ public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId); @Override public java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys); /** * Returns all the vcms discussions. * * @return the vcms discussions */ public java.util.List<VcmsDiscussion> findAll(); /** * Returns a range of all the vcms discussions. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @return the range of vcms discussions */ public java.util.List<VcmsDiscussion> findAll(int start, int end); /** * Returns an ordered range of all the vcms discussions. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of vcms discussions */ public java.util.List<VcmsDiscussion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator); /** * Returns an ordered range of all the vcms discussions. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of vcms discussions * @param end the upper bound of the range of vcms discussions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of vcms discussions */ public java.util.List<VcmsDiscussion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator, boolean retrieveFromCache); /** * Removes all the vcms discussions from the database. */ public void removeAll(); /** * Returns the number of vcms discussions. * * @return the number of vcms discussions */ public int countAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static PersistenceSession getPersistenceSession() {\n return NakedObjectsContext.getPersistenceSession();\n }", "public interface FAQCommentPersistence extends BasePersistence<FAQComment> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link FAQCommentUtil} to access the f a q comment persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Caches the f a q comment in the entity cache if it is enabled.\n\t*\n\t* @param faqComment the f a q comment\n\t*/\n\tpublic void cacheResult(\n\t\tcom.vportal.portlet.vfaq.model.FAQComment faqComment);\n\n\t/**\n\t* Caches the f a q comments in the entity cache if it is enabled.\n\t*\n\t* @param faqComments the f a q comments\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<com.vportal.portlet.vfaq.model.FAQComment> faqComments);\n\n\t/**\n\t* Creates a new f a q comment with the primary key. Does not add the f a q comment to the database.\n\t*\n\t* @param id the primary key for the new f a q comment\n\t* @return the new f a q comment\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment create(long id);\n\n\t/**\n\t* Removes the f a q comment with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param id the primary key of the f a q comment\n\t* @return the f a q comment that was removed\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment remove(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\tpublic com.vportal.portlet.vfaq.model.FAQComment updateImpl(\n\t\tcom.vportal.portlet.vfaq.model.FAQComment faqComment, boolean merge)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the f a q comment with the primary key or throws a {@link com.vportal.portlet.vfaq.NoSuchFAQCommentException} if it could not be found.\n\t*\n\t* @param id the primary key of the f a q comment\n\t* @return the f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the f a q comment with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param id the primary key of the f a q comment\n\t* @return the f a q comment, or <code>null</code> if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment fetchByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the f a q comments where uuid = &#63;.\n\t*\n\t* @param uuid the uuid\n\t* @return the matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByUuid(\n\t\tjava.lang.String uuid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the f a q comments where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param uuid the uuid\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @return the range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByUuid(\n\t\tjava.lang.String uuid, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the f a q comments where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param uuid the uuid\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByUuid(\n\t\tjava.lang.String uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first f a q comment in the ordered set where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param uuid the uuid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByUuid_First(\n\t\tjava.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the last f a q comment in the ordered set where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param uuid the uuid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByUuid_Last(\n\t\tjava.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the f a q comments before and after the current f a q comment in the ordered set where uuid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param id the primary key of the current f a q comment\n\t* @param uuid the uuid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment[] findByUuid_PrevAndNext(\n\t\tlong id, java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns all the f a q comments where approved = &#63;.\n\t*\n\t* @param approved the approved\n\t* @return the matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the f a q comments where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param approved the approved\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @return the range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the f a q comments where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param approved the approved\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first f a q comment in the ordered set where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByApproved_First(\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the last f a q comment in the ordered set where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByApproved_Last(\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the f a q comments before and after the current f a q comment in the ordered set where approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param id the primary key of the current f a q comment\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment[] findByApproved_PrevAndNext(\n\t\tlong id, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns all the f a q comments where answerid = &#63;.\n\t*\n\t* @param answerid the answerid\n\t* @return the matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByAnswerid(\n\t\tlong answerid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the f a q comments where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param answerid the answerid\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @return the range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByAnswerid(\n\t\tlong answerid, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the f a q comments where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param answerid the answerid\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByAnswerid(\n\t\tlong answerid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first f a q comment in the ordered set where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param answerid the answerid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByAnswerid_First(\n\t\tlong answerid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the last f a q comment in the ordered set where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param answerid the answerid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a matching f a q comment could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment findByAnswerid_Last(\n\t\tlong answerid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns the f a q comments before and after the current f a q comment in the ordered set where answerid = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param id the primary key of the current f a q comment\n\t* @param answerid the answerid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next f a q comment\n\t* @throws com.vportal.portlet.vfaq.NoSuchFAQCommentException if a f a q comment with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.vportal.portlet.vfaq.model.FAQComment[] findByAnswerid_PrevAndNext(\n\t\tlong id, long answerid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vfaq.NoSuchFAQCommentException;\n\n\t/**\n\t* Returns all the f a q comments.\n\t*\n\t* @return the f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the f a q comments.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @return the range of f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the f a q comments.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of f a q comments\n\t* @param end the upper bound of the range of f a q comments (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the f a q comments where uuid = &#63; from the database.\n\t*\n\t* @param uuid the uuid\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByUuid(java.lang.String uuid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the f a q comments where approved = &#63; from the database.\n\t*\n\t* @param approved the approved\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByApproved(boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the f a q comments where answerid = &#63; from the database.\n\t*\n\t* @param answerid the answerid\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByAnswerid(long answerid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the f a q comments from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of f a q comments where uuid = &#63;.\n\t*\n\t* @param uuid the uuid\n\t* @return the number of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByUuid(java.lang.String uuid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of f a q comments where approved = &#63;.\n\t*\n\t* @param approved the approved\n\t* @return the number of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByApproved(boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of f a q comments where answerid = &#63;.\n\t*\n\t* @param answerid the answerid\n\t* @return the number of matching f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByAnswerid(long answerid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of f a q comments.\n\t*\n\t* @return the number of f a q comments\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "protected PersistenceStructureService getPersistenceStructureService() {\r\n return persistenceStructureService;\r\n }", "public abstract FHIRPersistence getPersistenceImpl() throws Exception;", "@JSONWebService\n@Transactional(isolation = Isolation.PORTAL, rollbackFor = {\n\tPortalException.class, SystemException.class})\npublic interface VcmsDiscussionService {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionServiceUtil} to access the vcms discussion remote service. Add custom service methods to {@link com.vportal.portlet.vcms.service.impl.VcmsDiscussionServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.\n\t */\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion addDiscussion(\n\t\tjava.lang.String visitorName, java.lang.String visitorEmail,\n\t\tjava.lang.String visitorPhone, long groupId, long companyId,\n\t\tjava.lang.String articleId, java.lang.String title,\n\t\tjava.lang.String content, boolean hasAttachment,\n\t\tjava.lang.String language, boolean addCommunityPermissions,\n\t\tboolean addGuestPermissions)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion updateDiscussion(\n\t\tjava.lang.String discussionId, java.lang.String visitorName,\n\t\tjava.lang.String visitorEmail, java.lang.String visitorPhone,\n\t\tlong groupId, long companyId, java.lang.String articleId,\n\t\tjava.lang.String title, java.lang.String content,\n\t\tboolean hasAttachment, boolean approved, java.lang.String language)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion updateDiscussion(\n\t\tcom.vportal.portlet.vcms.model.VcmsDiscussion discussion)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussion(java.lang.String discussionId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussions(java.lang.String[] discussionIds)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussions(java.lang.String articleId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic void deleteDiscussions(java.lang.String articleId, boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic com.vportal.portlet.vcms.model.VcmsDiscussion getDiscussion(\n\t\tjava.lang.String discussionId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussions(\n\t\tjava.lang.String articleId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussions(\n\t\tjava.lang.String articleId, boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByP_L(\n\t\tlong groupId, java.lang.String language)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByP_L_A(\n\t\tlong groupId, java.lang.String language, boolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\t@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> searchDiscussionByA_P_L_K(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tjava.lang.String keyword, boolean approved, boolean isTitle,\n\t\tboolean isContent, java.lang.String select)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n\n\tpublic int countByApproval(long groupId, java.lang.String language,\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException,\n\t\t\tjava.rmi.RemoteException;\n}", "public PersistenceStructureService getPersistenceStructureService() {\r\n return persistenceStructureService;\r\n }", "public IPersistence<T> getPersistence();", "public interface PresentationManager extends CleanupableService {\n\n public static final String PRESENTATION_PROPERTIES_FOLDER = \"portfolioPropertyForms\";\n public static final String PRESENTATION_PROPERTIES_FOLDER_DISPNAME = \"portfolioPropertyForms.displayName\";\n public static final String PRESENTATION_PROPERTIES_FOLDER_DESC = \"portfolioPropertyForms.description\";\n public static final String PORTFOLIO_INTERACTION_FOLDER_DISPNAME = \"portfolioInteraction.displayName\";\n public static final String PORTFOLIO_INTERACTION_FOLDER_DESC = \"portfolioInteraction.description\";\n public static final String PRESENTATION_PROPERTIES_FOLDER_PATH = \"/\" + PRESENTATION_PROPERTIES_FOLDER + \"/\";\n public static final String PRESENTATION_MESSAGE_BUNDLE = \"org.theospi.portfolio.presentation.bundle.Messages\";\n \n public static final String PRESENTATION_FORMS_FOLDER = \"portfolioForms\";\n public static final String PRESENTATION_FORMS_FOLDER_DISPNAME = \"portfolioForms.displayName\";\n public static final String PRESENTATION_FORMS_FOLDER_DESC = \"portfolioForms.description\";\n \n public static final String PRESENTATION_VIEW_ALL = \"all\";\n public static final String PRESENTATION_VIEW_HIDDEN = \"hidden\";\n public static final String PRESENTATION_VIEW_VISIBLE = \"visible\"; // not hidden\n\n \n public PresentationTemplate storeTemplate(PresentationTemplate template);\n public PresentationTemplate storeTemplate(PresentationTemplate template, boolean checkAuthz, boolean updateDates);\n \n public boolean deletePresentationTemplate(Id id);\n public void deletePresentationLayout(Id id);\n\n public PresentationTemplate getPresentationTemplate(Id id);\n\n public PresentationItemDefinition getPresentationItemDefinition(Id item);\n\n public void deletePresentationItem(Id item);\n\n public Presentation getPresentation(Id id);\n public Presentation getPresentation(Id id, boolean checkAuth);\n public Presentation getLightweightPresentation(Id id);\n\n public Presentation storePresentation(Presentation presentation);\n public Presentation storePresentation(Presentation presentation, boolean checkAuthz, boolean updateDates);\n \n public void deletePresentation(Id presentation);\n\n public PresentationItem getPresentationItem(Id itemDef);\n\n public void updateItemDefintion(PresentationItemDefinition itemDef);\n\n public void deletePresentationItemDefinition(Id itemDef);\n\n public TemplateFileRef getTemplateFileRef(Id refId);\n public void updateTemplateFileRef(TemplateFileRef ref);\n public void deleteTemplateFileRef(Id refId);\n\n /**\n * returns a list of all presentation templates owned by agent.\n *\n * @param owner\n * @return\n */\n public Collection findTemplatesByOwner(Agent owner);\n\n /**\n * returns a list of all presentation templates owned by agent within the given siteId.\n *\n * @param owner\n * @return\n */\n public Collection findTemplatesByOwner(Agent owner, String siteId);\n\n public Collection findPublishedTemplates(String siteId);\n\n public Collection findGlobalTemplates();\n\n public Collection findPublishedTemplates();\n\n public Collection findPublishedLayouts(String siteId);\n public Collection findLayoutsByOwner(Agent owner, String siteId);\n public Collection findMyGlobalLayouts();\n public Collection findAllGlobalLayouts();\n\n public PresentationLayout storeLayout(PresentationLayout layout);\n public PresentationLayout storeLayout(PresentationLayout layout, boolean checkAuthz);\n \n public PresentationLayout getPresentationLayout(Id layoutId);\n \n public List getPresentationPagesByPresentation(Id presentationId);\n public PresentationPage getPresentationPage(Id id);\n public Document getPresentationLayoutAsXml(Presentation presentation, String pageId);\n \n /**\n * Creates an xml document represenation of the requested page from the \n * presentation passed in.\n * \n * @param presentation\n * @param pageId\n * @return xml representation of the requested page or null\n */\n public Document getPresentationPreviewLayoutAsXml(Presentation presentation, String pageId);\n\n /**\n * Return a list presentation ids of all publicly shared presentations (optionally filtered by site)\n *\n * @param siteId return only from this site if specified (may be null)\n * @return collection of presentations\n */\n public Collection findPublicPresentations(String siteId);\n\n /**\n * Return a list presentation ids of all publicly shared presentations (optionally filtered by toolId)\n *\n * @param owner current user\n * @param toolId current tool (or null to ignore)\n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findPublicPresentations(Agent viewer, String toolId, String showHidden);\n\n /** Return the XML document string corresponding to the specified public portfolio's propertyForm\n ** (portfolio must be publicly viewable).\n **\n ** @param portfolioId public portfolio\n ** @return XML document string or null if error\n **/\n public String getPublicPropertyForm( Presentation presentation );\n\n /**\n * Return a list of all presentations agent can view, optionally filtered by toolId.\n *\n * @param owner current user\n * @param toolId current tool (or null to ignore)\n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findAllPresentations(Agent viewer, String toolId, String showHidden);\n\n /**\n * Return a unrestricted list of presentations for given toolId\n * Portfolios returned may be unpublished/inactive/unshared, but the current user is not the owner\n * User must have permission and portfolio.unrestricted.view must be enabled\n *\n * @param owner current user\n * @param toolId current tool \n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findOtherPresentationsUnrestricted(Agent owner, String toolId, String showHidden);\n \n /**\n * Return a list of presentation shared with agent, optionally filtered by toolId.\n *\n * @param owner current user\n * @param toolId current tool (or null to ignore)\n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findSharedPresentations(Agent viewer, String toolId, String showHidden);\n \n /**\n * Return a list of all presentation owned by agent, optionally filtered by toolId.\n *\n * @param owner current user\n * @param toolId current tool (or null to ignore)\n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findOwnerPresentations(Agent owner, String toolId, String showHidden);\n\n public void createComment(PresentationComment comment);\n public void createComment(PresentationComment comment, boolean checkAuthz, boolean updateDates);\n\n public List getPresentationComments(Id presentationId, Agent viewer);\n\n public PresentationComment getPresentationComment(Id id);\n\n public void deletePresentationComment(PresentationComment comment);\n\n public void updatePresentationComment(PresentationComment oldComment);\n\n /**\n * returns list of comments owned by agent in given tool. Includes comments created by the owner.\n * @param owner\n * @param sortBy\n * @return\n */\n public List getOwnerComments(Agent owner, CommentSortBy sortBy);\n\n /**\n * returns list of comments owned by agent in given tool. Includes comments created by the owner.\n * @param owner\n * @param toolId\n * @param sortBy\n * @param excludeOwner - set to true to exclude comments created by the owner\n * @return\n */\n public List getOwnerComments(Agent owner, String toolId, CommentSortBy sortBy, boolean excludeOwner);\n\n /**\n * returns list of comments owned by agent in given tool. Includes comments created by the owner.\n * @param owner\n * @param toolId\n * @param sortBy\n * @return\n */\n public List getOwnerComments(Agent owner, String toolId, CommentSortBy sortBy);\n\n public List getCreatorComments(Agent creator, CommentSortBy sortBy);\n\n /**\n * returns list of comments created by creator in given tool.\n * @param creator\n * @param toolId\n * @param sortBy\n * @return\n */\n public List getCreatorComments(Agent creator, String toolId, CommentSortBy sortBy);\n\n public PresentationTemplate copyTemplate(Id templateId);\n\n public String packageTemplateForExport(Id templateId, OutputStream os) throws IOException;\n\n public PresentationTemplate uploadTemplate(String templateFileName, String toContext, InputStream zipFileStream) throws IOException;\n\n public void storePresentationLog(PresentationLog log);\n\n public Collection findLogsByPresID(Id presID);\n\t\n public Presentation findPresentationByLogID(Id presID);\n\n public Collection getPresentationItems(Id artifactId);\n\n public Collection getPresentationsBasedOnTemplateFileRef(Id artifactId);\n\n public Collection findPresentationsByTool(Id id);\n \n public Node getNode(Id artifactId);\n\n public Node getNode(Reference ref);\n\n /**\n * Get node within the context of this presentation\n * @param ref\n * @param presentation\n * @return\n */\n public Node getNode(Reference ref, Presentation presentation);\n public Node getNode(Id artifactId, Presentation presentation);\n\n public Node getNode(Id artifactId, PresentationLayout layout);\n\n public ContentResourceArtifact loadArtifactForItem(PresentationItem item);\n public Collection loadArtifactsForItemDef(PresentationItemDefinition itemDef, Agent agent);\n \n public Document createDocument(Presentation presentation);\n\n public Collection getAllPresentationsForWarehouse();\n\n public Collection getAllPresentationLayouts();\n\n public Collection getAllPresentationTemplates();\n\n public Presentation getPresentation(Id id, String secretExportKey);\n \n public boolean isGlobal();\n\n /**\n * Copy an existing presentation,\n * this will duplicate the presentation for the current owner,\n * does not include comments\n * \n * @param presentationId the id for a presentation\n * @return the copy of the presentation\n */\n public Presentation copyPresentation(Id presentationId);\n\n}", "public WFMS_NotificationEnginePersistence getWFMS_NotificationEnginePersistence() {\n\t\treturn wfms_NotificationEnginePersistence;\n\t}", "public interface ContentService {\n\n //前面四个方法都是后台的内容查询\n int add(Content content);\n\n PageInfo<Content> list(int categoryId, int page, int rows);\n\n int edit(Content content);\n\n int delete(String ids);\n\n //商城首页的大广告位查询\n // List<Content> selectByCategoryId(long cid);\n //缓存的写法\n String selectByCategoryId(long cid);\n\n}", "private static PersistenceManager getPersistenceManager() {\n\t\treturn PMF.get().getPersistenceManager();\n\t}", "@Override\n public FileObject getPersistenceXml()\n {\n FileObject location = locationProvider.getLocation();\n if (location == null)\n {\n return null;\n }\n return location.getFileObject(\"persistence.xml\"); // NOI18N\n \n }", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "private PersistenceManager getPersistenceManager() {\n if(pmf==null) {\n getFacetHolder().getServiceInjector().injectServicesInto(this);\n }\n return pmf.getPersistenceManagerFactory().getPersistenceManager();\n }", "public abstract int getPersistence();", "public interface DiscussionDAO {\n void newDiscussion(DiscussionGroup discussionGroup);\n\n void deleteDiscussion(String discussionID);\n\n List<User> listUsers(String discussionID);\n\n List<DiscussionGroup> listDiscussionByGroupID(String groupID);\n\n DiscussionGroup findByID(String id);\n}", "public Database(){\n ItemBox.getLogger().info(\"[Database] protocol version \" + net.mckitsu.itembox.protocol.ItemBoxProtocol.getVersion());\n }", "public java.util.List<VcmsDiscussion> findAll();", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public interface IChannelDao {\n\t/**\n\t * Return the persistent entities returned from a named query.\n\t */\n\tpublic List findByNamedQuery(String queryName);\n\t/**\n\t * Return the persistent entities returned from a named query with named parameters.\n\t */\n\tpublic List findByNamedQuery(String queryName, String[] paramNames, Object[] paramValues);\n\t/**\n\t * Return the persistent entities matching the given example entity.\n\t */\n\tpublic List findByExample(Object example);\n\n\t/**\n\t * Find an entity by its id (primary key).\n\t * @return The found entity instance or null if the entity does not exist.\n\t */\n\tpublic Cvcategory findCvcategoryById(Long id);\n\t/**\n\t * Return all persistent instances of the <code>Cvcategory</code> entity.\n\t */\n\tpublic List<Cvcategory> findAllCvcategories();\n\t/**\n\t * Make the given instance managed and persistent.\n\t */\n\tpublic void persistCvcategory(Cvcategory cvcategory);\n\t/**\n\t * Remove the given persistent instance.\n\t */\n\tpublic void removeCvcategory(Cvcategory cvcategory);\n\n\t/**\n\t * Find an entity by its id (primary key).\n\t * @return The found entity instance or null if the entity does not exist.\n\t */\n\tpublic Cvchannel findCvchannelById(Long id);\n\t/**\n\t * Return all persistent instances of the <code>Cvchannel</code> entity.\n\t */\n\tpublic List<Cvchannel> findAllCvchannels();\n\t\n\tpublic List<CvchannelPack> findAllCvchannelPacksByIdChannel(Long idChannel);\n\t\n\t/**\n\t * Make the given instance managed and persistent.\n\t */\n\tpublic void persistCvchannel(Cvchannel cvchannel);\n\t/**\n\t * Remove the given persistent instance.\n\t */\n\tpublic void removeCvchannel(Cvchannel cvchannel);\n\n\t/**\n\t * Find an entity by its id (primary key).\n\t * @return The found entity instance or null if the entity does not exist.\n\t */\n\tpublic CvchannelPack findCvchannelPackById(com.cablevision.vo.CvchannelPackPK id);\n\t/**\n\t * Return all persistent instances of the <code>CvchannelPack</code> entity.\n\t */\n\tpublic List<CvchannelPack> findAllCvchannelPacks();\n\t\n\tpublic List <Cvpack> findCvpacksByChannelID(Long idChannel);\n\t\n\t/**\n\t * Make the given instance managed and persistent.\n\t */\n\tpublic void persistCvchannelPack(CvchannelPack cvchannelPack);\n\t/**\n\t * Remove the given persistent instance.\n\t */\n\tpublic void removeCvchannelPack(CvchannelPack cvchannelPack);\n\n\t/**\n\t * Find an entity by its id (primary key).\n\t * @return The found entity instance or null if the entity does not exist.\n\t */\n\tpublic Cvpack findCvpackById(Long id);\n\t/**\n\t * Return all persistent instances of the <code>Cvpack</code> entity.\n\t */\n\tpublic List<Cvpack> findAllCvpacks();\n\t/**\n\t * Make the given instance managed and persistent.\n\t */\n\tpublic void persistCvpack(Cvpack cvpack);\n\t/**\n\t * Remove the given persistent instance.\n\t */\n\tpublic void removeCvpack(Cvpack cvpack);\n\t\n\tpublic List<Cvchannel> findCvChannel(Integer sort, String search, List<Long> categoryIdsForFilter);\n}", "public interface BackgroundPersistence extends BasePersistence<Background> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link BackgroundUtil} to access the background persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Caches the background in the entity cache if it is enabled.\n\t*\n\t* @param background the background\n\t*/\n\tpublic void cacheResult(\n\t\torg.politaktiv.map.infrastructure.model.Background background);\n\n\t/**\n\t* Caches the backgrounds in the entity cache if it is enabled.\n\t*\n\t* @param backgrounds the backgrounds\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<org.politaktiv.map.infrastructure.model.Background> backgrounds);\n\n\t/**\n\t* Creates a new background with the primary key. Does not add the background to the database.\n\t*\n\t* @param backgroundId the primary key for the new background\n\t* @return the new background\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background create(\n\t\tlong backgroundId);\n\n\t/**\n\t* Removes the background with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param backgroundId the primary key of the background\n\t* @return the background that was removed\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a background with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background remove(\n\t\tlong backgroundId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\tpublic org.politaktiv.map.infrastructure.model.Background updateImpl(\n\t\torg.politaktiv.map.infrastructure.model.Background background,\n\t\tboolean merge)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the background with the primary key or throws a {@link org.politaktiv.map.infrastructure.NoSuchBackgroundException} if it could not be found.\n\t*\n\t* @param backgroundId the primary key of the background\n\t* @return the background\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a background with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background findByPrimaryKey(\n\t\tlong backgroundId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\t/**\n\t* Returns the background with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param backgroundId the primary key of the background\n\t* @return the background, or <code>null</code> if a background with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background fetchByPrimaryKey(\n\t\tlong backgroundId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the backgrounds where companyId = &#63; and groupId = &#63;.\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @return the matching backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findBycompanyIdAndGroupId(\n\t\tlong companyId, long groupId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the backgrounds where companyId = &#63; and groupId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param start the lower bound of the range of backgrounds\n\t* @param end the upper bound of the range of backgrounds (not inclusive)\n\t* @return the range of matching backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findBycompanyIdAndGroupId(\n\t\tlong companyId, long groupId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the backgrounds where companyId = &#63; and groupId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param start the lower bound of the range of backgrounds\n\t* @param end the upper bound of the range of backgrounds (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findBycompanyIdAndGroupId(\n\t\tlong companyId, long groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first background in the ordered set where companyId = &#63; and groupId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching background\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a matching background could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background findBycompanyIdAndGroupId_First(\n\t\tlong companyId, long groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\t/**\n\t* Returns the last background in the ordered set where companyId = &#63; and groupId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching background\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a matching background could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background findBycompanyIdAndGroupId_Last(\n\t\tlong companyId, long groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\t/**\n\t* Returns the backgrounds before and after the current background in the ordered set where companyId = &#63; and groupId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param backgroundId the primary key of the current background\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next background\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a background with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background[] findBycompanyIdAndGroupId_PrevAndNext(\n\t\tlong backgroundId, long companyId, long groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\t/**\n\t* Returns all the backgrounds.\n\t*\n\t* @return the backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the backgrounds.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of backgrounds\n\t* @param end the upper bound of the range of backgrounds (not inclusive)\n\t* @return the range of backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the backgrounds.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of backgrounds\n\t* @param end the upper bound of the range of backgrounds (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the backgrounds where companyId = &#63; and groupId = &#63; from the database.\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeBycompanyIdAndGroupId(long companyId, long groupId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the backgrounds from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of backgrounds where companyId = &#63; and groupId = &#63;.\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @return the number of matching backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countBycompanyIdAndGroupId(long companyId, long groupId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of backgrounds.\n\t*\n\t* @return the number of backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and interviewId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and status = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and status = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param interviewScheduleId the primary key of the current interview schedule\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Removes all the interview schedules where vacancyCandidateId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the interview schedule in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedule the interview schedule\n\t*/\n\tpublic void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);\n\n\t/**\n\t* Caches the interview schedules in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedules the interview schedules\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);\n\n\t/**\n\t* Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.\n\t*\n\t* @param interviewScheduleId the primary key for the new interview schedule\n\t* @return the new interview schedule\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);\n\n\t/**\n\t* Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule that was removed\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule updateImpl(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule, or <code>null</code> if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules.\n\t*\n\t* @return the interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the interview schedules from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules.\n\t*\n\t* @return the number of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "public Object getCommunicationChannel()\r\n\t\t\tthrows PersistenceMechanismException {\n\t\treturn null;\r\n\t}", "public interface DataBase {\n public void save(BuzzTalkData data);\n\n public ArrayList<OpenCalaisTag> getAllTags();\n\n public ArrayList<Publication> getAllPublications();\n}", "public interface DocumentManager extends Manager {\n\n /* Document related properties */\n public static final String DOCUMENT_THUMBNAIL_PROPERTY = \"dell.document.thumbnail\";\n\n /**\n * Method to retrieve the the Document objects list\n *\n * @return - List of Document's\n */\n Collection<Document> getDocuments();\n\n\n /**\n * Method to retrieve the list of Document's using retailer siteID\n *\n * @param retailerSiteID\n * @return -Return the list of Document's with matching siteID\n * @see com.dell.acs.persistence.domain.RetailerSite\n */\n @Deprecated\n Collection<Document> getDocumentByRetailerSiteID(Long retailerSiteID);\n\n // Library page helper method\n @Deprecated\n Collection<Document> getLatestDocuments(Long retailerSiteID);\n\n public boolean doesDocumentExists(Document document);\n /* Document management related methods */\n\n\n /**\n * Method to persist the Document object\n *\n * @return - Return the document object\n */\n Document saveDocument(Document document) throws EntityExistsException;\n\n /**\n * Method to load the Document by ID\n *\n * @param documentID - Document ID\n * @return - Document object with ID = documentID\n */\n Document getDocument(Long documentID) throws EntityNotFoundException;\n\n /**\n * Method to delete a Document object by ID\n *\n * @param documentID - Document ID\n */\n void deleteDocument(Long documentID) throws EntityNotFoundException;\n\n /**\n * Method to get the BASECDN path for Document\n *\n * @param document\n * @return\n */\n String getBaseCDNPathForDocument(Document document);\n\n /**\n * To get the filtered documents.\n *\n * @param paramsMap\n * @return\n */\n List<Map<String, String>> getFilteredDocuments(Map<String, Object> paramsMap);\n\n\n // <======= New methods introduced in sprint 4 =======>\n\n /**\n Retrieve the published document.\n @param documentId, store the document id.\n @param type , store the document type.\n @return published document name.\n */\n @Deprecated\n String getDocumentNameByID(Long documentId,Integer type);\n\n /**\n Check the name existence , so that duplicate entry not allowed.\n It checks during ajax call.\n @param documentName , store the document name.\n @return boolean status , according to existence status.\n @throws NonUniqueResultException\n */\n @Deprecated\n boolean checkNameExistence(String documentName) throws NonUniqueResultException;\n\n /**\n * Method to load the Document by ID and type.\n *\n * @param documentID - Long - document ID\n * @return - Document object with ID = documentID\n * @throws - EntityNotFoundException - if document with given ID and type is not found.\n */\n Document getDocument(Long documentID, Integer type) throws EntityNotFoundException;\n\n /**\n * retrieve the documents on the basis of RetailerSite and source Type.\n *\n * @param retailerSiteID - Long - retailer site ID\n * @param type - Integer - Refer {@link com.dell.acs.content.EntityConstants}\n * @return Collection of {@link Document}\n */\n Collection<Document> getDocuments(Long retailerSiteID, Integer type, ServiceFilterBean filterBean);\n\n /**\n * retrieve the documents on the basis of RetailerSite Name and source Type.\n *\n * @param retailerSiteName - String - retailer site name\n * @param type - Integer - Refer {@link com.dell.acs.content.EntityConstants}\n * @return Collection of {@link}\n */\n Collection<Document> getDocuments(String retailerSiteName, Integer type, ServiceFilterBean filterBean);\n\n\n}", "public interface CommunityService extends WorkspaceService\r\n{\r\n\r\n static final String COMMUNITY_SERVICE_KEY = \"COMMUNITY_SERVICE_KEY\";\r\n\r\n /**\r\n * Creations of a Community object reference.\r\n * @param name the initial name to asign to the community\r\n * @param user_short_pid storage object short pid representing the owner\r\n * @return Community object reference\r\n * @exception CommunityException\r\n */\r\n Community createCommunity( String name, byte[] user_short_pid ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Creations of a Community storage instance.\r\n * @param name the initial name to asign to the community\r\n * @param user_short_pid storage object short pid representing the owner\r\n * @return CommunityStorage community storage\r\n * @exception CommunityException\r\n */\r\n CommunityStorage createCommunityStorage( String name, byte[] user_short_pid ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Creation of a Community object reference based on a supplied storage object.\r\n * @param store a community storage object\r\n * @return Community a Community object reference\r\n * @exception CommunityException\r\n */\r\n Community getCommunityReference( CommunityStorage store ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Returns a reference to a Community given a persistent storage object identifier.\r\n * @param pid community short persistent identifier\r\n * @return Desktop the corresponding PID\r\n * @exception NotFound if the supplied pid does not matach a know desktop\r\n */\r\n Community getCommunityReference( byte[] pid )\r\n throws NotFound;\r\n\r\n}", "public FooPersistence getFooPersistence() {\n return fooPersistence;\n }", "public void storeDiscussion(Discussion d) throws DAOException;", "public final PersistenceManager getPersistenceManager (){\n//\t\tSystem.out.println (\"returning persistent manager for properties \"+\tthis._dataStoreEnvironment.getDataStoreProperties ());\n\t\treturn this.pm;\n\t}", "public ItemPublicacaoPersistence getItemPublicacaoPersistence() {\n\t\treturn itemPublicacaoPersistence;\n\t}", "public interface DBStorage {\n \n /**\n * Get the name of the storage vendor (DB vendor name)\n *\n * @return name of the storage vendor (DB vendor name)\n */\n String getStorageVendor();\n \n /**\n * Can this storage handle the requested database?\n *\n * @param dbm database meta data\n * @return if storage can handle the requested database\n */\n boolean canHandle(DatabaseMetaData dbm);\n \n /**\n * Get the ContentStorage singleton instance\n *\n * @param mode used storage mode\n * @return ContentStorage singleton instance\n * @throws FxNotFoundException if no implementation was found\n */\n ContentStorage getContentStorage(TypeStorageMode mode) throws FxNotFoundException;\n \n /**\n * Get the EnvironmentLoader singleton instance\n *\n * @return EnvironmentLoader singleton instance\n */\n EnvironmentLoader getEnvironmentLoader();\n \n /**\n * Get the SequencerStorage singleton instance\n *\n * @return SequencerStorage singleton instance\n */\n SequencerStorage getSequencerStorage();\n \n /**\n * Get the TreeStorage singleton instance\n *\n * @return TreeStorage singleton instance\n */\n TreeStorage getTreeStorage();\n \n /**\n * Get the LockStorage singleton instance\n *\n * @return LockStorage singleton instance\n */\n LockStorage getLockStorage();\n \n /**\n * Get a data selector for a sql search\n *\n * @param search current SqlSearch to operate on\n * @return data selector\n * @throws FxSqlSearchException on errors\n */\n DataSelector getDataSelector(SqlSearch search) throws FxSqlSearchException;\n \n /**\n * Get a data filter for a sql search\n *\n * @param con an open and valid connection\n * @param search current SqlSearch to operate on\n * @return DataFilter\n * @throws FxSqlSearchException on errors\n */\n DataFilter getDataFilter(Connection con, SqlSearch search) throws FxSqlSearchException;\n \n /**\n * Get the CMIS SQL Dialect implementation\n *\n * @param environment environment\n * @param contentEngine content engine in use\n * @param query query\n * @param returnPrimitives return primitives?\n * @return CMIS SQL Dialect implementation\n */\n SqlDialect getCmisSqlDialect(FxEnvironment environment, ContentEngine contentEngine, CmisSqlQuery query, boolean returnPrimitives);\n \n /**\n * Get the database vendor specific Boolean expression\n *\n * @param flag the flag to get the expression for\n * @return database vendor specific Boolean expression for <code>flag</code>\n */\n String getBooleanExpression(boolean flag);\n \n /**\n * Get the boolean <code>true</code> expression string for the database vendor\n *\n * @return the boolean <code>true</code> expression string for the database vendor\n */\n String getBooleanTrueExpression();\n \n /**\n * Get the boolean <code>false</code> expression string for the database vendor\n *\n * @return the boolean <code>false</code> expression string for the database vendor\n */\n String getBooleanFalseExpression();\n \n /**\n * Escape reserved words properly if needed\n *\n * @param query the query to escape\n * @return escaped query\n */\n String escapeReservedWords(String query);\n \n /**\n * Get a database vendor specific \"IF\" function\n *\n * @param condition the condition to check\n * @param exprtrue expression if condition is true\n * @param exprfalse expression if condition is false\n * @return database vendor specific \"IF\" function\n */\n String getIfFunction(String condition, String exprtrue, String exprfalse);\n \n /**\n * Get the database vendor specific operator to query regular expressions\n *\n * @param column column to match\n * @param regexp regexp to match the column against\n * @return database vendor specific operator to query regular expressions\n */\n String getRegExpLikeOperator(String column, String regexp);\n \n /**\n * Get the database vendor specific statement to enable or disable referential integrity checks.\n * When in a transaction, be sure to check {@link #isDisableIntegrityTransactional()}\n * since not all databases support this in a transactional context.\n *\n * @param enable enable or disable checks?\n * @return database vendor specific statement to enable or disable referential integrity checks\n */\n String getReferentialIntegrityChecksStatement(boolean enable);\n \n /**\n * Return true if calling {@link #getReferentialIntegrityChecksStatement(boolean)} is possible\n * in a transactional context.\n *\n * @return true if calling {@link #getReferentialIntegrityChecksStatement(boolean)} is possible\n * in a transactional context\n */\n boolean isDisableIntegrityTransactional();\n \n /**\n * Get the sql code of the statement to fix referential integrity when removing selectlist items\n *\n * @return sql code of the statement to fix referential integrity when removing selectlist items\n */\n String getSelectListItemReferenceFixStatement();\n \n /**\n * Get a database vendor specific timestamp of the current time in milliseconds as Long\n *\n * @return database vendor specific timestamp of the current time in milliseconds as Long\n */\n String getTimestampFunction();\n \n /**\n * Get a database vendor specific concat statement\n *\n * @param text array of text to concatenate\n * @return concatenated text statement\n */\n String concat(String... text);\n \n /**\n * Get a database vendor specific concat_ws statement\n *\n * @param delimiter the delimiter to use\n * @param text array of text to concatenate\n * @return concatenated text statement\n */\n String concat_ws(String delimiter, String... text);\n \n /**\n * If a database needs a \" ... from dual\" to generate valid queries, it is returned here\n *\n * @return from dual (or equivalent) if needed\n */\n String getFromDual();\n \n /**\n * Get databas evendor specific limit statement\n *\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @return limit statement\n */\n String getLimit(boolean hasWhereClause, long limit);\n \n /**\n * Get database vendor specific limit/offset statement\n *\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @param offset offset\n * @return limit/offset statement\n */\n String getLimitOffset(boolean hasWhereClause, long limit, long offset);\n \n /**\n * Get database vendor specific limit/offset statement using the specified variable name\n *\n * @param var name of the variable to use\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @param offset offset\n * @return limit/offset statement\n */\n String getLimitOffsetVar(String var, boolean hasWhereClause, long limit, long offset);\n \n /**\n * Get the statement to get the last content change timestamp\n *\n * @param live live version included?\n * @return statement to get the last content change timestamp\n */\n String getLastContentChangeStatement(boolean live);\n \n /**\n * Format a date to be used in a query condition (properly escaped)\n *\n * @param date the date to format\n * @return formatted date\n */\n String formatDateCondition(Date date);\n \n /**\n * Correctly escape a flat storage column if needed\n *\n * @param column name of the column\n * @return escaped column (if needed)\n */\n String escapeFlatStorageColumn(String column);\n \n /**\n * Returns true if the SqlError is a foreign key violation.\n *\n * @param exc the exception\n * @return true if the SqlError is a foreign key violation\n */\n boolean isForeignKeyViolation(Exception exc);\n \n /**\n * Returns true if the given exception was caused by a query timeout.\n *\n * @param e the exception to be examined\n * @return true if the given exception was caused by a query timeout\n * @since 3.1\n */\n boolean isQueryTimeout(Exception e);\n \n /**\n * Does the database rollback a connection if it encounters a constraint violation? (eg Postgres does...)\n *\n * @return database rollbacks a connection if it encounters a constraint violation\n */\n boolean isRollbackOnConstraintViolation();\n \n /**\n * Returns true if the SqlError is a unique constraint violation.\n *\n * @param exc the exception\n * @return true if the SqlError is a unique constraint violation\n */\n boolean isUniqueConstraintViolation(Exception exc);\n \n /**\n * Returns true if the given SqlException indicates a deadlock.\n *\n * @param exc the exception\n * @return true if the given SqlException indicates a deadlock.\n * @since 3.1\n */\n boolean isDeadlock(Exception exc);\n \n /**\n * When accessing the global configuration - does the config table has to be prefixed with the schema?\n * (eg in postgres no schemas are supported for JDBC URL's hence it is not required)\n *\n * @return access to configuration tables require the configuration schema to be prepended\n */\n boolean requiresConfigSchema();\n \n /**\n * Get a connection to the database using provided parameters and (re)create the database and/or schema\n *\n * @param database name of the database\n * @param schema name of the schema\n * @param jdbcURL JDBC connect URL\n * @param jdbcURLParameters optional JDBC URL parameters\n * @param user name of the db user\n * @param password password\n * @param createDB create the database?\n * @param createSchema create the schema?\n * @param dropDBIfExist drop the database if it exists?\n * @return an open connection to the database with the schema set as default\n * @throws Exception on errors\n */\n Connection getConnection(String database, String schema, String jdbcURL, String jdbcURLParameters, String user, String password, boolean createDB, boolean createSchema, boolean dropDBIfExist) throws Exception;\n \n /**\n * Initialize a configuration schema\n *\n * @param con an open and valid connection to the database\n * @param schema the schema to create\n * @param dropIfExist drop the schema if it exists?\n * @return success\n * @throws Exception on errors\n */\n boolean initConfiguration(Connection con, String schema, boolean dropIfExist) throws Exception;\n \n /**\n * Initialize a division\n *\n * @param con an open and valid connection to the database\n * @param schema the schema to create\n * @param dropIfExist drop the schema if it exists?\n * @return success\n * @throws Exception on errors\n */\n boolean initDivision(Connection con, String schema, boolean dropIfExist) throws Exception;\n \n /**\n * Export all data of a division to an OutputStream as ZIP\n *\n * @param con an open and valid connection to the database to be exported\n * @param out OutputStream that will be used to create the zip file\n * @throws Exception on errors\n */\n void exportDivision(Connection con, OutputStream out) throws Exception;\n \n /**\n * Import a complete division from a zip stream\n *\n * @param con an open and valid connection\n * @param zip zip archive that contains an exported divison\n * @throws Exception on errors\n */\n void importDivision(Connection con, ZipFile zip) throws Exception;\n }", "public interface MnemeService\n{\n\t/** The type string for this application: should not change over time as it may be stored in various parts of persistent entities. */\n\tstatic final String APPLICATION_ID = \"sakai:mneme\";\n\n\t/** Event tracking event for deleting an assessment. */\n\tstatic final String ASSESSMENT_DELETE = \"mneme.assessment.delete\";\n\n\t/** Event tracking event for changing an assessment. */\n\tstatic final String ASSESSMENT_EDIT = \"mneme.assessment.edit\";\n\n\t/** Event tracking event for creating an assessment. */\n\tstatic final String ASSESSMENT_NEW = \"mneme.assessment.new\";\n\n\t/** Event tracking event for publishing an assessment. */\n\tstatic final String ASSESSMENT_PUBLISH = \"mneme.assessment.publish\";\n\n\t/** The sub-type for assessment in references (/mneme/assessment/...) */\n\tstatic final String ASSESSMENT_TYPE = \"assessment\";\n\n\t/** Event tracking event for un-publishing an assessment. */\n\tstatic final String ASSESSMENT_UNPUBLISH = \"mneme.assessment.unpublish\";\n\n\t/** The security function used to check if users can setup a formal course evaluation. */\n\tstatic final String COURSE_EVAL_PERMISSION = \"mneme.course.eval\";\n\n\t/** Event tracking event for download submissions for question. */\n\tstatic final String DOWNLOAD_SQ = \"mneme.download.sq\";\n\n\t/** The number of ms we allow answers and completions of submissions after hard deadlines. */\n\tstatic final long GRACE = 2 * 60 * 1000;\n\n\t/** The security function used to check if users can grade tests. */\n\tstatic final String GRADE_PERMISSION = \"mneme.grade\";\n\n\t/** The security function used to check if users have guest access. */\n\tstatic final String GUEST_PERMISSION = \"mneme.guest\";\n\n\t/** The security function used to check if users can manage tests. */\n\tstatic final String MANAGE_PERMISSION = \"mneme.manage\";\n\n\t/** Event tracking event for deleting a pool. */\n\tstatic final String POOL_DELETE = \"mneme.pool.delete\";\n\n\t/** Event tracking event for changing a pool. */\n\tstatic final String POOL_EDIT = \"mneme.pool.edit\";\n\n\t/** Event tracking event for creating a pool. */\n\tstatic final String POOL_NEW = \"mneme.pool.new\";\n\n\t/** The sub-type for pool in references (/mneme/pool/...) */\n\tstatic final String POOL_TYPE = \"pool\";\n\n\t/** Event tracking event for deleting a question. */\n\tstatic final String QUESTION_DELETE = \"mneme.question.delete\";\n\n\t/** Event tracking event for changing a question. */\n\tstatic final String QUESTION_EDIT = \"mneme.question.edit\";\n\n\t/** Event tracking event for creating a question. */\n\tstatic final String QUESTION_NEW = \"mneme.question.new\";\n\n\t/** The sub-type for question in references (/mneme/question/...) */\n\tstatic final String QUESTION_TYPE = \"question\";\n\n\t/** This string starts the references to resources in this service. */\n\tstatic final String REFERENCE_ROOT = \"/mneme\";\n\n\t/** Event tracking event for adding a submission. */\n\tstatic final String SUBMISSION_ADD = \"mneme.submit\";\n\n\t/** Event tracking event for answering a question in a submission. */\n\tstatic final String SUBMISSION_ANSWER = \"mneme.answer\";\n\n\t/** Event tracking event for the system automatically completing a submission. */\n\tstatic final String SUBMISSION_AUTO_COMPLETE = \"mneme.auto_complete\";\n\n\t/** Event tracking event for completing a submission. */\n\tstatic final String SUBMISSION_COMPLETE = \"mneme.complete\";\n\n\t/** Event tracking event for re-entering a submission. */\n\tstatic final String SUBMISSION_CONTINUE = \"mneme.continue\";\n\n\t/** Event tracking event for entering a submission. */\n\tstatic final String SUBMISSION_ENTER = \"mneme.enter\";\n\n\t/** Event tracking event for grading a submission. */\n\tstatic final String SUBMISSION_GRADE = \"mneme.grade\";\n\n\t/** Event tracking event for reviewing a submission. */\n\tstatic final String SUBMISSION_REVIEW = \"mneme.review\";\n\n\t/** The sub-type for submissions in references (/mneme/submission/...) */\n\tstatic final String SUBMISSION_TYPE = \"submission\";\n\n\t/** The security function used to check if users can submit to an assessment. */\n\tstatic final String SUBMIT_PERMISSION = \"mneme.submit\";\n\n\t/**\n\t * Find a question plugin for this question type.\n\t * \n\t * @param type\n\t * The question type.\n\t * @return The question plugin for this question type, or null if none found.\n\t */\n\tQuestionPlugin getQuestionPlugin(String type);\n\n\t/**\n\t * Access all the quesiton plugins, sorted by the (localized) type name.\n\t * \n\t * @return A List of all the quesiton plugins, sorted by the (localized) type name.\n\t */\n\tList<QuestionPlugin> getQuestionPlugins();\n\n\t/**\n\t * Register a question plugin.\n\t * \n\t * @param plugin\n\t * The question plugin.\n\t */\n\tvoid registerQuestionPlugin(QuestionPlugin plugin);\n}", "public String getDiscussion(){\n return discussion;\n }", "javax.management.ObjectName getPersistenceManager();", "public interface PortalModel extends BaseModel {\r\n\t/**\r\n\t * Returns the portal.\r\n\t * @return The portal.\r\n\t */\r\n\tPortal getPortal();\r\n\r\n\t/**\r\n\t * Returns the portal path.\r\n\t * @return The portal path.\r\n\t */\r\n\tPathSegments getPath();\r\n\r\n\t/**\r\n\t * Returns the portal URI Generator.\r\n\t * @return The portal URI Generator.\r\n\t */\r\n\tURIGenerator getURIGenerator();\r\n\r\n\t/**\r\n\t * Returns an started component module.\r\n\t * @param id Component module id.\r\n\t * @return Component module module.\r\n\t */\r\n\tStartedModule<?> getComponent(UUID id);\r\n\r\n\t/**\r\n\t * Returns the device capabilities provider.\r\n\t * @return The device capabilities provider.\r\n\t */\r\n\tDeviceCapabilitiesProvider getDeviceCapabilitiesProvider();\r\n\r\n\t/**\r\n\t * Returns the page resolver.\r\n\t * @return The page resolver.\r\n\t */\r\n\tPageResolver getPageResolver();\r\n\r\n\t/**\r\n\t * Returns a content loader for the portal.\r\n\t * @param context Client request context.\r\n\t * @return A content loader for the portal.\r\n\t */\r\n\tContentLoader getContentLoader(ClientRequestContext context);\r\n\r\n\t/**\r\n\t * Returns the portal pages.\r\n\t * @return The portal pages.\r\n\t */\r\n\tPages getPages();\r\n\r\n\t/**\r\n\t * Returns the cache model.\r\n\t * @return The cache model.\r\n\t */\r\n\tPortalCacheModel getCacheModel();\r\n}", "public interface IContentComponent extends IMPDElement {\n /**\n * @copydoc dash::mpd::IAdaptationSet::GetAccessibility()\n */\n public Vector<Descriptor> GetAccessibility ();\n\n /**\n * @copydoc dash::mpd::IAdaptationSet::GetRole()\n */\n public Vector<Descriptor> GetRole ();\n\n /**\n * @copydoc dash::mpd::IAdaptationSet::GetRating()\n */\n public Vector<Descriptor> GetRating ();\n\n /**\n * @copydoc dash::mpd::IAdaptationSet::GetViewpoint()\n */\n public Vector<Descriptor> GetViewpoint ();\n\n /**\n * Returns an unsigned integer that specifies an identifier for this media component.\n * The attribute shall be unique in the scope of the containing Adaptation Set.\n * @return an unsigned integer\n */\n public int GetId ();\n\n /**\n * @copydoc dash::mpd::IAdaptationSet::GetLang()\n */\n public String GetLang ();\n\n /**\n * @copydoc dash::mpd::IAdaptationSet::GetContentType()\n */\n public String GetContentType ();\n\n /**\n * @copydoc dash::mpd::IAdaptationSet::GetPar()\n */\n public String GetPar ();\n}", "public interface StoreMsgView {\n\tvoid showMsgList(ChatListModule chatList);\n\n\tvoid showDeteleState();\n\n\tLifecycleTransformer<ChatListModule> bindLife();\n\n\tvoid showState(int state);\n}", "@Override\n public URL getPersistenceUnitRootUrl() {\n return HibernatePersistenceProvider.class.getResource(\"/org/hibernate/jpa/persistence_1_0.xsd\");\n }", "public interface PersistenceAdapter extends Service {\n\n /**\n * Returns a set of all the\n * {@link org.apache.activemq.command.ActiveMQDestination} objects that the\n * persistence store is aware exist.\n *\n * @return active destinations\n */\n Set<ActiveMQDestination> getDestinations();\n\n /**\n * Factory method to create a new queue message store with the given\n * destination name\n *\n * @param destination\n * @return the message store\n * @throws IOException\n */\n MessageStore createQueueMessageStore(ActiveMQQueue destination) throws IOException;\n\n /**\n * Factory method to create a new topic message store with the given\n * destination name\n *\n * @param destination\n * @return the topic message store\n * @throws IOException\n */\n TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException;\n\n /**\n * Creates and returns a new Job Scheduler store instance.\n *\n * @return a new JobSchedulerStore instance if this Persistence adapter provides its own.\n *\n * @throws IOException If an error occurs while creating the new JobSchedulerStore.\n * @throws UnsupportedOperationException If this adapter does not provide its own\n * scheduler store implementation.\n */\n JobSchedulerStore createJobSchedulerStore() throws IOException, UnsupportedOperationException;\n\n /**\n * Cleanup method to remove any state associated with the given destination.\n * This method does not stop the message store (it might not be cached).\n *\n * @param destination\n * Destination to forget\n */\n void removeQueueMessageStore(ActiveMQQueue destination);\n\n /**\n * Cleanup method to remove any state associated with the given destination\n * This method does not stop the message store (it might not be cached).\n *\n * @param destination\n * Destination to forget\n */\n void removeTopicMessageStore(ActiveMQTopic destination);\n\n /**\n * Factory method to create a new persistent prepared transaction store for\n * XA recovery\n *\n * @return transaction store\n * @throws IOException\n */\n TransactionStore createTransactionStore() throws IOException;\n\n /**\n * This method starts a transaction on the persistent storage - which is\n * nothing to do with JMS or XA transactions - its purely a mechanism to\n * perform multiple writes to a persistent store in 1 transaction as a\n * performance optimization.\n * <p/>\n * Typically one transaction will require one disk synchronization point and\n * so for real high performance its usually faster to perform many writes\n * within the same transaction to minimize latency caused by disk\n * synchronization. This is especially true when using tools like Berkeley\n * Db or embedded JDBC servers.\n *\n * @param context\n * @throws IOException\n */\n void beginTransaction(ConnectionContext context) throws IOException;\n\n /**\n * Commit a persistence transaction\n *\n * @param context\n * @throws IOException\n *\n * @see PersistenceAdapter#beginTransaction(ConnectionContext context)\n */\n void commitTransaction(ConnectionContext context) throws IOException;\n\n /**\n * Rollback a persistence transaction\n *\n * @param context\n * @throws IOException\n *\n * @see PersistenceAdapter#beginTransaction(ConnectionContext context)\n */\n void rollbackTransaction(ConnectionContext context) throws IOException;\n\n /**\n *\n * @return last broker sequence\n * @throws IOException\n */\n long getLastMessageBrokerSequenceId() throws IOException;\n\n /**\n * Delete's all the messages in the persistent store.\n *\n * @throws IOException\n */\n void deleteAllMessages() throws IOException;\n\n /**\n * @param usageManager\n * The UsageManager that is controlling the broker's memory\n * usage.\n */\n void setUsageManager(SystemUsage usageManager);\n\n /**\n * Set the name of the broker using the adapter\n *\n * @param brokerName\n */\n void setBrokerName(String brokerName);\n\n /**\n * Set the directory where any data files should be created\n *\n * @param dir\n */\n void setDirectory(File dir);\n\n /**\n * @return the directory used by the persistence adaptor\n */\n File getDirectory();\n\n /**\n * checkpoint any\n *\n * @param cleanup\n * @throws IOException\n *\n */\n void checkpoint(boolean cleanup) throws IOException;\n\n /**\n * A hint to return the size of the store on disk\n *\n * @return disk space used in bytes of 0 if not implemented\n */\n long size();\n\n /**\n * return the last stored producer sequenceId for this producer Id used to\n * suppress duplicate sends on failover reconnect at the transport when a\n * reconnect occurs\n *\n * @param id\n * the producerId to find a sequenceId for\n * @return the last stored sequence id or -1 if no suppression needed\n */\n long getLastProducerSequenceId(ProducerId id) throws IOException;\n\n void allowIOResumption();\n}", "private static AdapterManager getAdapterManager() {\r\n return getPersistenceSession().getAdapterManager();\r\n }", "public Persistence() {\n\t\tconn = dbConnection();\n\t}", "public interface CoursePersistence extends BasePersistence<Course> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link CourseUtil} to access the course persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the course where courseId = &#63; or throws a {@link com.ms3.training.services.NoSuchCourseException} if it could not be found.\n\t*\n\t* @param courseId the course ID\n\t* @return the matching course\n\t* @throws com.ms3.training.services.NoSuchCourseException if a matching course could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course findByCourseId(long courseId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.ms3.training.services.NoSuchCourseException;\n\n\t/**\n\t* Returns the course where courseId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param courseId the course ID\n\t* @return the matching course, or <code>null</code> if a matching course could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course fetchByCourseId(long courseId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the course where courseId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param courseId the course ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching course, or <code>null</code> if a matching course could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course fetchByCourseId(\n\t\tlong courseId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the course where courseId = &#63; from the database.\n\t*\n\t* @param courseId the course ID\n\t* @return the course that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course removeByCourseId(\n\t\tlong courseId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.ms3.training.services.NoSuchCourseException;\n\n\t/**\n\t* Returns the number of courses where courseId = &#63;.\n\t*\n\t* @param courseId the course ID\n\t* @return the number of matching courses\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByCourseId(long courseId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the course where title = &#63; or throws a {@link com.ms3.training.services.NoSuchCourseException} if it could not be found.\n\t*\n\t* @param title the title\n\t* @return the matching course\n\t* @throws com.ms3.training.services.NoSuchCourseException if a matching course could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course findByTitle(\n\t\tjava.lang.String title)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.ms3.training.services.NoSuchCourseException;\n\n\t/**\n\t* Returns the course where title = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param title the title\n\t* @return the matching course, or <code>null</code> if a matching course could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course fetchByTitle(\n\t\tjava.lang.String title)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the course where title = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param title the title\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching course, or <code>null</code> if a matching course could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course fetchByTitle(\n\t\tjava.lang.String title, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the course where title = &#63; from the database.\n\t*\n\t* @param title the title\n\t* @return the course that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course removeByTitle(\n\t\tjava.lang.String title)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.ms3.training.services.NoSuchCourseException;\n\n\t/**\n\t* Returns the number of courses where title = &#63;.\n\t*\n\t* @param title the title\n\t* @return the number of matching courses\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByTitle(java.lang.String title)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the course in the entity cache if it is enabled.\n\t*\n\t* @param course the course\n\t*/\n\tpublic void cacheResult(com.ms3.training.services.model.Course course);\n\n\t/**\n\t* Caches the courses in the entity cache if it is enabled.\n\t*\n\t* @param courses the courses\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<com.ms3.training.services.model.Course> courses);\n\n\t/**\n\t* Creates a new course with the primary key. Does not add the course to the database.\n\t*\n\t* @param title the primary key for the new course\n\t* @return the new course\n\t*/\n\tpublic com.ms3.training.services.model.Course create(java.lang.String title);\n\n\t/**\n\t* Removes the course with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param title the primary key of the course\n\t* @return the course that was removed\n\t* @throws com.ms3.training.services.NoSuchCourseException if a course with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course remove(java.lang.String title)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.ms3.training.services.NoSuchCourseException;\n\n\tpublic com.ms3.training.services.model.Course updateImpl(\n\t\tcom.ms3.training.services.model.Course course)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the course with the primary key or throws a {@link com.ms3.training.services.NoSuchCourseException} if it could not be found.\n\t*\n\t* @param title the primary key of the course\n\t* @return the course\n\t* @throws com.ms3.training.services.NoSuchCourseException if a course with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course findByPrimaryKey(\n\t\tjava.lang.String title)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.ms3.training.services.NoSuchCourseException;\n\n\t/**\n\t* Returns the course with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param title the primary key of the course\n\t* @return the course, or <code>null</code> if a course with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course fetchByPrimaryKey(\n\t\tjava.lang.String title)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the courses.\n\t*\n\t* @return the courses\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.ms3.training.services.model.Course> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the courses.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.ms3.training.services.model.impl.CourseModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of courses\n\t* @param end the upper bound of the range of courses (not inclusive)\n\t* @return the range of courses\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.ms3.training.services.model.Course> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the courses.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.ms3.training.services.model.impl.CourseModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of courses\n\t* @param end the upper bound of the range of courses (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of courses\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.ms3.training.services.model.Course> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the courses from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of courses.\n\t*\n\t* @return the number of courses\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "public String getRepositoryPath() \n {\n return \"/atg/portal/gear/discussion/DiscussionRepository\";\n }", "public PersistenceServiceXStream() {\n storageServiceClassName = ConfigurationProperties.getConfiguredStorageService();\n }", "messages.Databaseinterface.DatabaseInterface getDatabase();", "public interface INewsContentModel extends IBaseModel {\n\n void loadData(String channelID, String channelName, String page);\n\n}", "public GroupPersistence getGroupPersistence() {\n return groupPersistence;\n }", "public interface DataCache {\n LiveData<List<News>> getNews();\n LiveData<NewsDetail> getNewsDetail(String id);\n void setNewsList(LiveData<List<News>> newsList);\n void setNewsDetail(String id, LiveData<NewsDetail> detail);\n }", "public WFMS_ConfigPersistence getWFMS_ConfigPersistence() {\n\t\treturn wfms_ConfigPersistence;\n\t}", "@RemoteServiceRelativePath(\"persistence\")\npublic interface PersistenceService extends RemoteService {\n\tvoid save(DTO obj) throws IllegalArgumentException;\n\tvoid delete(DTO obj) throws IllegalArgumentException;\n\tList<DTO> readAll(String className) throws IllegalArgumentException;\n}", "public GroupPersistence getGroupPersistence() {\n\t\treturn groupPersistence;\n\t}", "public boolean isPersistenceCapable(Object object)\n{\n\treturn true;\n}", "public interface MQLEditorService {\n void refreshMetadataDomains( XulServiceCallback<List<MqlDomain>> callback );\n\n void getMetadataDomains( XulServiceCallback<List<MqlDomain>> callback );\n\n void getDomainByName( String name, XulServiceCallback<MqlDomain> callback );\n\n void saveQuery( MqlQuery model, XulServiceCallback<String> callback );\n\n void serializeModel( MqlQuery query, XulServiceCallback<String> callback );\n\n void deserializeModel( String serializedQuery, XulServiceCallback<MqlQuery> callback );\n\n void getPreviewData( MqlQuery query, int page, int limit, XulServiceCallback<String[][]> callback );\n}", "public interface IPersistenceController {\n\n}", "public interface AdsItemPersistence extends BasePersistence<AdsItem> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link AdsItemUtil} to access the ads item persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Caches the ads item in the entity cache if it is enabled.\n\t*\n\t* @param adsItem the ads item\n\t*/\n\tpublic void cacheResult(irestads.model.AdsItem adsItem);\n\n\t/**\n\t* Caches the ads items in the entity cache if it is enabled.\n\t*\n\t* @param adsItems the ads items\n\t*/\n\tpublic void cacheResult(java.util.List<irestads.model.AdsItem> adsItems);\n\n\t/**\n\t* Creates a new ads item with the primary key. Does not add the ads item to the database.\n\t*\n\t* @param adsItemId the primary key for the new ads item\n\t* @return the new ads item\n\t*/\n\tpublic irestads.model.AdsItem create(long adsItemId);\n\n\t/**\n\t* Removes the ads item with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param adsItemId the primary key of the ads item\n\t* @return the ads item that was removed\n\t* @throws irestads.NoSuchItemException if a ads item with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic irestads.model.AdsItem remove(long adsItemId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tirestads.NoSuchItemException;\n\n\tpublic irestads.model.AdsItem updateImpl(irestads.model.AdsItem adsItem,\n\t\tboolean merge)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the ads item with the primary key or throws a {@link irestads.NoSuchItemException} if it could not be found.\n\t*\n\t* @param adsItemId the primary key of the ads item\n\t* @return the ads item\n\t* @throws irestads.NoSuchItemException if a ads item with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic irestads.model.AdsItem findByPrimaryKey(long adsItemId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tirestads.NoSuchItemException;\n\n\t/**\n\t* Returns the ads item with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param adsItemId the primary key of the ads item\n\t* @return the ads item, or <code>null</code> if a ads item with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic irestads.model.AdsItem fetchByPrimaryKey(long adsItemId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the ads items where productName = &#63;.\n\t*\n\t* @param productName the product name\n\t* @return the matching ads items\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<irestads.model.AdsItem> findByProductName(\n\t\tjava.lang.String productName)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the ads items where productName = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param productName the product name\n\t* @param start the lower bound of the range of ads items\n\t* @param end the upper bound of the range of ads items (not inclusive)\n\t* @return the range of matching ads items\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<irestads.model.AdsItem> findByProductName(\n\t\tjava.lang.String productName, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the ads items where productName = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param productName the product name\n\t* @param start the lower bound of the range of ads items\n\t* @param end the upper bound of the range of ads items (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching ads items\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<irestads.model.AdsItem> findByProductName(\n\t\tjava.lang.String productName, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first ads item in the ordered set where productName = &#63;.\n\t*\n\t* @param productName the product name\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching ads item\n\t* @throws irestads.NoSuchItemException if a matching ads item could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic irestads.model.AdsItem findByProductName_First(\n\t\tjava.lang.String productName,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tirestads.NoSuchItemException;\n\n\t/**\n\t* Returns the first ads item in the ordered set where productName = &#63;.\n\t*\n\t* @param productName the product name\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching ads item, or <code>null</code> if a matching ads item could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic irestads.model.AdsItem fetchByProductName_First(\n\t\tjava.lang.String productName,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last ads item in the ordered set where productName = &#63;.\n\t*\n\t* @param productName the product name\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching ads item\n\t* @throws irestads.NoSuchItemException if a matching ads item could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic irestads.model.AdsItem findByProductName_Last(\n\t\tjava.lang.String productName,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tirestads.NoSuchItemException;\n\n\t/**\n\t* Returns the last ads item in the ordered set where productName = &#63;.\n\t*\n\t* @param productName the product name\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching ads item, or <code>null</code> if a matching ads item could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic irestads.model.AdsItem fetchByProductName_Last(\n\t\tjava.lang.String productName,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the ads items before and after the current ads item in the ordered set where productName = &#63;.\n\t*\n\t* @param adsItemId the primary key of the current ads item\n\t* @param productName the product name\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next ads item\n\t* @throws irestads.NoSuchItemException if a ads item with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic irestads.model.AdsItem[] findByProductName_PrevAndNext(\n\t\tlong adsItemId, java.lang.String productName,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tirestads.NoSuchItemException;\n\n\t/**\n\t* Returns all the ads items where timeDuring = &#63;.\n\t*\n\t* @param timeDuring the time during\n\t* @return the matching ads items\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<irestads.model.AdsItem> findByTimeDuring(\n\t\tint timeDuring)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the ads items where timeDuring = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param timeDuring the time during\n\t* @param start the lower bound of the range of ads items\n\t* @param end the upper bound of the range of ads items (not inclusive)\n\t* @return the range of matching ads items\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<irestads.model.AdsItem> findByTimeDuring(\n\t\tint timeDuring, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the ads items where timeDuring = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param timeDuring the time during\n\t* @param start the lower bound of the range of ads items\n\t* @param end the upper bound of the range of ads items (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching ads items\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<irestads.model.AdsItem> findByTimeDuring(\n\t\tint timeDuring, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first ads item in the ordered set where timeDuring = &#63;.\n\t*\n\t* @param timeDuring the time during\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching ads item\n\t* @throws irestads.NoSuchItemException if a matching ads item could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic irestads.model.AdsItem findByTimeDuring_First(int timeDuring,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tirestads.NoSuchItemException;\n\n\t/**\n\t* Returns the first ads item in the ordered set where timeDuring = &#63;.\n\t*\n\t* @param timeDuring the time during\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching ads item, or <code>null</code> if a matching ads item could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic irestads.model.AdsItem fetchByTimeDuring_First(int timeDuring,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last ads item in the ordered set where timeDuring = &#63;.\n\t*\n\t* @param timeDuring the time during\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching ads item\n\t* @throws irestads.NoSuchItemException if a matching ads item could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic irestads.model.AdsItem findByTimeDuring_Last(int timeDuring,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tirestads.NoSuchItemException;\n\n\t/**\n\t* Returns the last ads item in the ordered set where timeDuring = &#63;.\n\t*\n\t* @param timeDuring the time during\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching ads item, or <code>null</code> if a matching ads item could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic irestads.model.AdsItem fetchByTimeDuring_Last(int timeDuring,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the ads items before and after the current ads item in the ordered set where timeDuring = &#63;.\n\t*\n\t* @param adsItemId the primary key of the current ads item\n\t* @param timeDuring the time during\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next ads item\n\t* @throws irestads.NoSuchItemException if a ads item with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic irestads.model.AdsItem[] findByTimeDuring_PrevAndNext(\n\t\tlong adsItemId, int timeDuring,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tirestads.NoSuchItemException;\n\n\t/**\n\t* Returns all the ads items.\n\t*\n\t* @return the ads items\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<irestads.model.AdsItem> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the ads items.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of ads items\n\t* @param end the upper bound of the range of ads items (not inclusive)\n\t* @return the range of ads items\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<irestads.model.AdsItem> findAll(int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the ads items.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of ads items\n\t* @param end the upper bound of the range of ads items (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of ads items\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<irestads.model.AdsItem> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the ads items where productName = &#63; from the database.\n\t*\n\t* @param productName the product name\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByProductName(java.lang.String productName)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the ads items where timeDuring = &#63; from the database.\n\t*\n\t* @param timeDuring the time during\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByTimeDuring(int timeDuring)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the ads items from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of ads items where productName = &#63;.\n\t*\n\t* @param productName the product name\n\t* @return the number of matching ads items\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByProductName(java.lang.String productName)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of ads items where timeDuring = &#63;.\n\t*\n\t* @param timeDuring the time during\n\t* @return the number of matching ads items\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByTimeDuring(int timeDuring)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of ads items.\n\t*\n\t* @return the number of ads items\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "public interface JahiaContentManagementService extends RemoteService {\n void abortWorkflow(String processId, String provider) throws GWTJahiaServiceException;\n\n void activateVersioning(List<String> path) throws GWTJahiaServiceException;\n\n List<GWTJahiaWorkflowComment> addCommentToWorkflow(GWTJahiaWorkflow task, String comment);\n\n void assignAndCompleteTask(GWTJahiaWorkflowTask task, GWTJahiaWorkflowOutcome outcome, List<GWTJahiaNodeProperty> properties) throws GWTJahiaServiceException;\n\n void checkExistence(String path) throws GWTJahiaServiceException;\n\n void checkWriteable(List<String> paths) throws GWTJahiaServiceException;\n\n void cleanReferences(String path) throws GWTJahiaServiceException;\n\n void clearAllLocks(String path, boolean processChildNodes) throws GWTJahiaServiceException;\n\n void closeEditEngine(String nodepath) throws GWTJahiaServiceException;\n\n Set<String> compareAcl(GWTJahiaNodeACL nodeAcl, List<GWTJahiaNode> reference) throws GWTJahiaServiceException;\n\n GWTJahiaNodeACE createDefaultUsersGroupACE(List<String> permissions, boolean grand) throws GWTJahiaServiceException;\n\n GWTJahiaNode createFolder(String parentPath, String name) throws GWTJahiaServiceException;\n\n GWTJahiaNode createGoogleGadgetPortletInstance(String path, String name, String script) throws GWTJahiaServiceException;\n\n GWTJahiaNode createNode(String parentPath, GWTJahiaNode newNode) throws GWTJahiaServiceException;\n\n GWTJahiaNode createNode(String parentPath, String name, String nodeType, List<String> mixin, GWTJahiaNodeACL acl, List<GWTJahiaNodeProperty> props, Map<String, List<GWTJahiaNodeProperty>> langCodeProperties, List<GWTJahiaNode> subNodes, Map<String, String> parentNodes, boolean forceCreation) throws GWTJahiaServiceException;\n\n GWTJahiaNode createNodeAndMoveBefore(String path, String name, String nodeType, List<String> mixin, GWTJahiaNodeACL acl, List<GWTJahiaNodeProperty> properties, Map<String, List<GWTJahiaNodeProperty>> langCodeProperties) throws GWTJahiaServiceException;\n\n GWTJahiaNode createPortletInstance(String path, GWTJahiaNewPortletInstance wiz) throws GWTJahiaServiceException;\n\n GWTJahiaNode createRSSPortletInstance(String path, String name, String url) throws GWTJahiaServiceException;\n\n GWTJahiaNode createModule(String moduleName, String artifactId, String groupId, String siteType, String source) throws GWTJahiaServiceException;\n\n GWTJahiaNode checkoutModule(String moduleId, String scmURI, String scmType, String branchOrTag, String sources) throws GWTJahiaServiceException;\n\n void cropImage(String path, String target, int top, int left, int width, int height, boolean forceReplace) throws GWTJahiaServiceException;\n\n /**\n * Deletes all completed job details.\n *\n * @return the number of deleted jobs\n * @throws GWTJahiaServiceException in case of an error\n */\n Integer deleteAllCompletedJobs() throws GWTJahiaServiceException;\n\n /**\n * Deletes a job either already executed or not yet executed. Don't try to call this on a running job as the\n * behavior will not be determined.\n *\n * @param jobName\n * @param groupName\n * @return\n * @throws GWTJahiaServiceException\n */\n Boolean deleteJob(String jobName, String groupName) throws GWTJahiaServiceException;\n\n GWTJahiaNode deletePaths(List<String> paths) throws GWTJahiaServiceException;\n\n void deployTemplates(String templatesPath, String sitePath) throws GWTJahiaServiceException;\n GWTJahiaPortletOutputBean drawPortletInstanceOutput(String windowID, String entryPointIDStr, String pathInfo, String queryString);\n\n void flush(String path) throws GWTJahiaServiceException;\n\n void flushAll() throws GWTJahiaServiceException;\n\n void flushSite(String siteUUID) throws GWTJahiaServiceException;\n\n GWTJahiaNode generateWar(String moduleId) throws GWTJahiaServiceException;\n\n RpcMap releaseModule(String moduleId, GWTModuleReleaseInfo releaseInfo) throws GWTJahiaServiceException;\n\n /**\n * Returns the information, required for performing a release of the module: distribution server, Jahia Private App Store etc.\n *\n * @param moduleId the Id of the module which will be released\n * @return a map with the release info: distribution server, Jahia Private App Store etc\n * @throws GWTJahiaServiceException\n * in case of an error\n */\n GWTModuleReleaseInfo getInfoForModuleRelease(String moduleId) throws GWTJahiaServiceException;\n\n String getAbsolutePath(String path) throws GWTJahiaServiceException;\n\n /**\n * Retrieves the list of job groups from the scheduler, to be used for example for filtering by group.\n *\n * @return\n * @throws GWTJahiaServiceException\n */\n List<String> getAllJobGroupNames() throws GWTJahiaServiceException;\n\n List<GWTJahiaSite> getAvailableSites ();\n\n List<GWTJahiaChannel> getChannels() throws GWTJahiaServiceException;\n\n /**\n * Retrieves the history of modifications on a content node.\n *\n * @param nodeIdentifier the identifier of the node for which to retrieve the history\n * @param offset the paging offset\n * @param limit the limit of entries to retrieve\n * @return a paging list of history entries for the specified node identifier.\n * @throws GWTJahiaServiceException\n */\n PagingLoadResult<GWTJahiaContentHistoryEntry> getContentHistory(String nodeIdentifier, int offset, int limit) throws GWTJahiaServiceException;\n\n /**\n * Returns a list of node types with name and label populated that are the\n * sub-types of the specified base type.\n *\n *\n * @param baseTypes the node type name to find sub-types\n * @param displayStudioElement\n * @return a list of node types with name and label populated that are the\n * sub-types of the specified base type\n */\n List<GWTJahiaNodeType> getContentTypes(List<String> baseTypes, boolean includeSubTypes, boolean displayStudioElement) throws GWTJahiaServiceException;\n\n List<GWTJahiaNodeType> getContentTypesAsTree(List<String> nodeTypes, List<String> excludedNodeTypes,\n boolean includeSubTypes) throws GWTJahiaServiceException;\n\n GWTEditConfiguration getEditConfiguration(String path, String name, String enforcedWorkspace) throws GWTJahiaServiceException;\n\n String getExportUrl(String path) throws GWTJahiaServiceException;\n\n GWTChoiceListInitializer getFieldInitializerValues(String typeName, String propertyName, String parentPath, Map<String, List<GWTJahiaNodePropertyValue>> dependentValues) throws GWTJahiaServiceException;\n\n List<String> getNamespaces();\n\n GWTJahiaToolbar getGWTToolbars(String toolbarGroup) throws GWTJahiaServiceException;\n\n\n String getHighlighted(String original, String amendment) throws GWTJahiaServiceException;\n\n /**\n * Retrieve job list using pagination and sorting if supported. Also can take an optional groupName list for\n * filtering.\n *\n * @param offset the offset for pagination\n * @param limit the limit for pagination (the size of the page)\n * @param sortField the field on which to sort\n * @param sortDir the direction in which to sort\n * @param groupState\n * @param groupNames normally this should be passed as a Set, but it seems that GWT has trouble serializing a\n * Set, so we use a list instead.\n * @return a Pagination-ready list of job details\n * @throws GWTJahiaServiceException\n */\n PagingLoadResult<GWTJahiaJobDetail> getJobs(int offset, int limit, String sortField, String sortDir, String groupState, List<String> groupNames) throws GWTJahiaServiceException;\n\n GWTManagerConfiguration getManagerConfiguration(String name, String path) throws GWTJahiaServiceException;\n\n GWTJahiaNodeType getNodeType(String names) throws GWTJahiaServiceException;\n\n List<GWTJahiaNodeType> getNodeTypes(List<String> names) throws GWTJahiaServiceException;\n\n String getNodeURL(String servlet, String path, Date versionDate, String versionLabel, String workspace, String locale, boolean findDisplayable) throws GWTJahiaServiceException;\n\n String getNodeURLByIdentifier(String servlet, String identifier, Date versionDate, String versionLabel,\n String workspace, String locale) throws GWTJahiaServiceException;\n List<GWTJahiaNode> getNodes(List<String> path, List<String> fields) throws GWTJahiaServiceException;\n Map<String, List<? extends ModelData>> getNodesAndTypes(List<ModelData> getNodesParams, List<String> types) throws GWTJahiaServiceException;\n PagingLoadResult<GWTJahiaNode> getNodesByCategory(GWTJahiaNode category, int offset, int limit) throws GWTJahiaServiceException;\n\n int getNumberOfTasksForUser() throws GWTJahiaServiceException;\n\n Map<String, Object> getPollData(Set<String> keys) throws GWTJahiaServiceException;\n\n List<GWTJahiaNode> getPortalNodes(String targetAreaName);\n\n GWTJahiaGetPropertiesResult getProperties(String path, String langCode) throws GWTJahiaServiceException;\n\n /**\n * Get the publication status information for multiple nodes by their identifier.\n * Check is done against the current session locale.\n *\n * @param uuids uuids to get publication info from\n * @param allSubTree check on the whole subtree or no.\n * @param checkForUnpublication allow to check for element which have been unpublished\n * @return a List of GWTJahiaPublicationInfo object filled with the right status for the publication state of this path\n * @throws GWTJahiaServiceException\n */\n List<GWTJahiaPublicationInfo> getPublicationInfo(List<String> uuids, boolean allSubTree,\n boolean checkForUnpublication) throws GWTJahiaServiceException;\n\n /**\n * Get the publication status information for multiple nodes by their identifier.\n * Check is done against the set of languages provided.\n *\n * @param uuids uuids to get publication info from\n * @param allSubTree check on the whole subtree or no.\n * @param checkForUnpublication allow to check for element which have been unpublished\n * @param languages Set of languages from which we want information\n * @return a List of GWTJahiaPublicationInfo object filled with the right status for the publication state of this path\n * @throws GWTJahiaServiceException\n */\n List<GWTJahiaPublicationInfo> getPublicationInfo(List<String> uuids, boolean allSubTree, boolean checkForUnpublication, Set<String> languages) throws GWTJahiaServiceException;\n\n GWTRenderResult getRenderedContent(String path, String workspace, String locale, String template, String configuration, Map<String, List<String>> contextParams, boolean editMode,\n String configName, String channelIdentifier, String channelVariant) throws GWTJahiaServiceException;\n\n List<GWTJahiaNode> getRoot(List<String> paths, List<String> nodeTypes, List<String> mimeTypes, List<String> filters, List<String> fields, List<String> selectedNodes, List<String> openPaths, boolean checkSubChild, boolean displayHiddenTypes, List<String> hiddenTypes, String hiddenRegex, boolean useUILocale) throws GWTJahiaServiceException;\n\n List<GWTJahiaNode> getSavedSearch() throws GWTJahiaServiceException;\n\n Map<String, String> getStoredPasswordsProviders() throws GWTJahiaServiceException;\n\n List<GWTJahiaNodeType> getSubNodeTypes(List<String> names) throws GWTJahiaServiceException;\n\n /**\n * Retrieves a list of URL mapping objects for current node and locale.\n *\n * @param node node to retrieve mapping for\n * @param locale current locale\n * @return a list of URL mapping objects for current node and locale\n * @throws GWTJahiaServiceException in case of an error\n */\n List<GWTJahiaUrlMapping> getUrlMappings(GWTJahiaNode node, String locale) throws GWTJahiaServiceException;\n\n List<GWTJahiaNodeUsage> getUsages(List<String> paths) throws GWTJahiaServiceException;\n\n List<GWTJahiaNodeVersion> getVersions(String path) throws GWTJahiaServiceException;\n\n PagingLoadResult<GWTJahiaNodeVersion> getVersions(GWTJahiaNode node, int limit, int offset) throws GWTJahiaServiceException;\n\n ModelData getVisibilityInformation(String path) throws GWTJahiaServiceException;\n\n GWTJahiaNodeType getWFFormForNodeAndNodeType(String formResourceName)\n throws GWTJahiaServiceException;\n\n List<GWTJahiaWorkflowComment> getWorkflowComments(GWTJahiaWorkflow workflow);\n\n Map<String, GWTJahiaWorkflowDefinition> getWorkflowDefinitions(List<String> workflowDefinitionIds) throws GWTJahiaServiceException;\n\n List<GWTJahiaWorkflowHistoryItem> getWorkflowHistoryForUser() throws GWTJahiaServiceException;\n\n List<GWTJahiaWorkflowHistoryItem> getWorkflowHistoryProcesses(String nodeId,\n String locale) throws GWTJahiaServiceException;\n\n List<GWTJahiaWorkflowHistoryItem> getWorkflowHistoryTasks(String provider, String processId) throws GWTJahiaServiceException;\n\n Map<GWTJahiaWorkflowType, List<GWTJahiaWorkflowDefinition>> getWorkflowRules(String path) throws GWTJahiaServiceException;\n\n List<GWTJahiaJobDetail> importContent(String parentPath, String fileKey, Boolean replaceContent) throws GWTJahiaServiceException;\n\n GWTJahiaCreateEngineInitBean initializeCreateEngine(String typeName, String parentPath, String targetName) throws GWTJahiaServiceException;\n\n GWTJahiaCreatePortletInitBean initializeCreatePortletEngine(String typeName, String parentPath) throws GWTJahiaServiceException;\n\n GWTJahiaEditEngineInitBean initializeEditEngine(String nodePath, boolean tryToLockNode) throws GWTJahiaServiceException;\n\n GWTJahiaEditEngineInitBean initializeEditEngine(List<String> paths, boolean tryToLockNode) throws GWTJahiaServiceException;\n\n SessionValidationResult isValidSession() throws GWTJahiaServiceException;\n\n PagingLoadResult<GWTJahiaNode> lsLoad(String parentPath, List<String> nodeTypes, List<String> mimeTypes, List<String> filters, List<String> fields, boolean checkSubChild, int limit, int offset, boolean displayHiddenTypes, List<String> hiddenTypes, String hiddenRegex, boolean showOnlyNodesWithTemplates, boolean useUILocale) throws GWTJahiaServiceException;\n\n void markForDeletion(List<String> paths, String comment) throws GWTJahiaServiceException;\n\n public void move(List<String> sourcePaths, String targetPath) throws GWTJahiaServiceException;\n\n public void moveAtEnd(List<String> sourcePaths, String targetPath) throws GWTJahiaServiceException;\n\n public void moveOnTopOf(List<String> sourcePaths, String targetPath) throws GWTJahiaServiceException;\n\n void paste(List<String> pathsToCopy, String destinationPath, String newName, boolean cut, List<String> childNodeTypesToSkip) throws GWTJahiaServiceException;\n\n void pasteReferences(List<String> pathsToCopy, String destinationPath, String newName) throws GWTJahiaServiceException;\n\n /**\n * Publish the specified uuids.\n *\n * @param uuids the list of node uuids to publish, will not auto publish the parents\n */\n void publish(List<String> uuids, List<GWTJahiaNodeProperty> properties, List<String> comments) throws GWTJahiaServiceException;\n\n void publish(List<String> uuids, List<GWTJahiaNodeProperty> properties, List<String> comments, String language) throws GWTJahiaServiceException;\n\n GWTJahiaNode rename(String path, String newName) throws GWTJahiaServiceException;\n\n void resizeImage(String path, String target, int width, int height, boolean forceReplace) throws GWTJahiaServiceException;\n\n void restoreNode(GWTJahiaNodeVersion gwtJahiaNodeVersion, boolean allSubTree) throws GWTJahiaServiceException;\n\n void restoreNodeByIdentifierAndDate(String identifier, Date versionDate, String versionLabel, boolean allSubTree) throws GWTJahiaServiceException;\n\n void rotateImage(String path, String target, boolean clockwise, boolean forceReplace) throws GWTJahiaServiceException;\n\n GWTJahiaNode sendToSourceControl(String moduleId, String scmURI, String scmType) throws GWTJahiaServiceException;\n\n void saveModule(String moduleId, String message) throws GWTJahiaServiceException;\n\n RpcMap saveNode(GWTJahiaNode node, GWTJahiaNodeACL acl, Map<String, List<GWTJahiaNodeProperty>> langCodeProperties, List<GWTJahiaNodeProperty> sharedProperties, Set<String> removedTypes) throws GWTJahiaServiceException;\n\n void saveOpenPathsForRepository(String repositoryType, List<String> paths) throws GWTJahiaServiceException;\n\n void saveProperties(List<GWTJahiaNode> nodes, List<GWTJahiaNodeProperty> newProps, Set<String> removedTypes) throws GWTJahiaServiceException;\n\n void savePropertiesAndACL(List<GWTJahiaNode> nodes, GWTJahiaNodeACL acl, Map<String, List<GWTJahiaNodeProperty>> langCodeProperties, List<GWTJahiaNodeProperty> sharedProperties, Set<String> removedTypes) throws GWTJahiaServiceException;\n\n void saveSearch(GWTJahiaSearchQuery searchQuery, String path, String name, boolean onTopOf) throws GWTJahiaServiceException;\n\n PagingLoadResult<GWTJahiaNode> search(GWTJahiaSearchQuery search, int limit, int offset, boolean showOnlyNodesWithTemplates) throws GWTJahiaServiceException;\n\n List<GWTJahiaNode> search(String searchString, int limit, List<String> nodeTypes, List<String> mimeTypes, List<String> filters) throws GWTJahiaServiceException;\n\n List<GWTJahiaPortletDefinition> searchPortlets(String match) throws GWTJahiaServiceException;\n\n PagingLoadResult<GWTJahiaNode> searchSQL(String searchString, int limit, int offset, List<String> nodeTypes, List<String> fields, boolean sortOnDisplayName) throws GWTJahiaServiceException;\n\n /**\n * Updates the module's pom.xml file with the specified distribution server details and returns the module release information.\n *\n * @param module\n * the module to update distribution management information\n * @param info\n * the module info containing server ID, server URL or Private App Store URL\n * @return the updated module release info\n * @throws GWTJahiaServiceException\n * in case of an error\n */\n GWTModuleReleaseInfo setDistributionServerForModule(String module, GWTModuleReleaseInfo info)\n throws GWTJahiaServiceException;\n\n void setLock(List<String> paths, boolean locked) throws GWTJahiaServiceException;\n\n void startWorkflow(String path, GWTJahiaWorkflowDefinition workflowDefinition, List<GWTJahiaNodeProperty> properties, List<String> comments) throws GWTJahiaServiceException;\n\n void startWorkflow(List<String> uuids, GWTJahiaWorkflowDefinition def,\n List<GWTJahiaNodeProperty> properties, List<String> comments, Map<String, Object> args, String locale) throws GWTJahiaServiceException;\n\n void storePasswordForProvider(String providerKey, String username, String password) throws GWTJahiaServiceException;\n\n void undeletePaths(List<String> path) throws GWTJahiaServiceException;\n\n /**\n * Unpublish the specified path and its subnodes.\n *\n * @param uuids the list of node uuids to publish, will not auto publish the parents\n */\n void unpublish(List<String> uuids) throws GWTJahiaServiceException;\n\n void unzip(List<String> paths) throws GWTJahiaServiceException;\n\n String updateModule(String moduleId) throws GWTJahiaServiceException;\n\n void addToSourceControl(String moduleId, GWTJahiaNode node) throws GWTJahiaServiceException;\n\n void markConflictAsResolved(String moduleId, GWTJahiaNode node) throws GWTJahiaServiceException;\n\n void compileAndDeploy(String moduleId) throws GWTJahiaServiceException;\n\n void uploadedFile(List<String[]> uploadeds) throws GWTJahiaServiceException;\n\n /**\n * Validates the HTML texts against WCAG rules. This method allows to validate multiple texts at once to be able to check WCAG rules for\n * all rich text fields in the engine.\n *\n * @param richTexts\n * a map of HTML texts to be validated, keyed by field IDs ( {@link CKEditorField#getItemId()})\n * @return the WCAG validation results, keyed by the original field IDs ( {@link CKEditorField#getItemId()})\n */\n Map<String, WCAGValidationResult> validateWCAG(Map<String, String> richTexts);\n\n void zip(List<String> paths, String archiveName) throws GWTJahiaServiceException;\n\n /**\n * Request to an online service the translations for all the values of a list of properties\n *\n * @param properties a list of properties\n * @param definitions the corresponding list of property definitions\n * @param srcLanguage the source language code\n * @param destLanguage the destination language code\n * @param siteUUID the site UUID\n * @return the properties with their values translated\n * @throws GWTJahiaServiceException\n */\n List<GWTJahiaNodeProperty> translate(List<GWTJahiaNodeProperty> properties, List<GWTJahiaItemDefinition> definitions, String srcLanguage, String destLanguage, String siteUUID) throws GWTJahiaServiceException;\n\n /**\n * Request to an online service the translations for the values of a property\n *\n * @param property a property\n * @param definition the corresponding property definition\n * @param srcLanguage the source language code\n * @param destLanguage the destination language code\n * @param siteUUID the site UUID\n * @return the property with its values translated\n * @throws GWTJahiaServiceException\n */\n GWTJahiaNodeProperty translate(GWTJahiaNodeProperty property, GWTJahiaItemDefinition definition, String srcLanguage, String destLanguage, String siteUUID) throws GWTJahiaServiceException;\n\n RpcMap initializeCodeEditor(String path, boolean isNew, String nodeType, String fileType) throws GWTJahiaServiceException;\n\n /**\n * Retrieve tags regarding a given prefix and using the TagSuggester service\n *\n * @param prefix The text used to match the tags to retrieve\n * @param startPath The path used to search the tags\n * @param minCount Minimum usage count for a tag to be return\n * @param limit Limit of tags return\n * @param offset Offset used in the query\n * @param sortByCount Sort tags by count\n * @return the matching tags retrieved\n */\n List<GWTJahiaValueDisplayBean> getTags(String prefix, String startPath, Long minCount, Long limit, Long offset, boolean sortByCount) throws GWTJahiaServiceException;\n\n /**\n * Retrieve all currently available registered permissions.\n *\n * The list of permissions may change during runtime. This can happen for instance after module deployment or when\n * a user's session gets directed to a new server on fail-over. The permissions for a node are held in a BitSet variable,\n * where the bits point to indexes in the permissions list. This makes it very important that on resolving the permissions from\n * the BitSet we use the very same permissions list, which was used when creating the BitSet.\n *\n * As the list is cached on the client and bcause of the possibility that the list changed on the server, we may detect that the\n * list has to be reloaded.\n *\n * @return the permissions retrieved\n */\n List<String> getAvailablePermissions() throws GWTJahiaServiceException;\n\n /**\n * Convert a given tag using the TagHandler service,\n * used to made transformation on the tags before save or display them.\n *\n * @param tag The tag to convert\n * @return the converted tag\n */\n String convertTag(String tag);\n\n /**\n * get the warning messages to display in the admin toolbars\n *\n * @return the warning messages\n */\n String getToolbarWarnings() throws GWTJahiaServiceException;\n\n /**\n * Returns the path of the displayble node for the specified one.\n *\n * @param nodePath the path of the target node\n * @param fallbackToHomePage if true, use the homepage as fallback if no resource found\n * @return the path of the displayble node for the specified one\n * @throws GWTJahiaServiceException in case of a JCR access error\n */\n String getDisplayableNodePath(String nodePath, boolean fallbackToHomePage) throws GWTJahiaServiceException;\n\n public static class App {\n private static JahiaContentManagementServiceAsync app = null;\n private static int windowId = Random.nextInt();\n public static synchronized JahiaContentManagementServiceAsync getInstance() {\n if (app == null) {\n String relativeServiceEntryPoint = createEntryPointUrl();\n String serviceEntryPoint = URL.getAbsoluteURL(relativeServiceEntryPoint);\n app = (JahiaContentManagementServiceAsync) GWT.create(JahiaContentManagementService.class);\n ((ServiceDefTarget) app).setServiceEntryPoint(serviceEntryPoint);\n\n JahiaGWTParameters.addUpdater(new JahiaGWTParameters.UrlUpdater() {\n\n @Override\n public void updateEntryPointUrl() {\n String relativeServiceEntryPoint = createEntryPointUrl();\n String serviceEntryPoint = URL.getAbsoluteURL(relativeServiceEntryPoint);\n ((ServiceDefTarget) app).setServiceEntryPoint(serviceEntryPoint);\n }\n });\n }\n return app;\n }\n\n public static int getWindowId() {\n return windowId;\n }\n\n private static String createEntryPointUrl() {\n if (JahiaGWTParameters.getReactSiteKey() != null && JahiaGWTParameters.getReactLanguage() != null) {\n return JahiaGWTParameters.getServiceEntryPoint() + \"contentManager.gwt?lang=\" + JahiaGWTParameters.getReactLanguage() + \"&site=/sites/\" + JahiaGWTParameters.getReactSiteKey() + \"&workspace=\" + JahiaGWTParameters.getWorkspace() + \"&windowId=\" + windowId;\n } else {\n return JahiaGWTParameters.getServiceEntryPoint() + \"contentManager.gwt?lang=\" + JahiaGWTParameters.getLanguage() + \"&site=\" + JahiaGWTParameters.getSiteUUID() + \"&workspace=\" + JahiaGWTParameters.getWorkspace() + \"&windowId=\" + windowId;\n }\n }\n }\n}", "public interface IConversationView {\n\n //初始化我们的聊天视图\n void initConversationView(List<EMConversation> emConversationList);\n\n}", "@ProviderType\npublic interface VcmsArticleTypePersistence extends BasePersistence<VcmsArticleType> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsArticleTypeUtil} to access the vcms article type persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms article types where typeId = &#63;.\n\t*\n\t* @param typeId the type ID\n\t* @return the matching vcms article types\n\t*/\n\tpublic java.util.List<VcmsArticleType> findByType(long typeId);\n\n\t/**\n\t* Returns a range of all the vcms article types where typeId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsArticleTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param typeId the type ID\n\t* @param start the lower bound of the range of vcms article types\n\t* @param end the upper bound of the range of vcms article types (not inclusive)\n\t* @return the range of matching vcms article types\n\t*/\n\tpublic java.util.List<VcmsArticleType> findByType(long typeId, int start,\n\t\tint end);\n\n\t/**\n\t* Returns an ordered range of all the vcms article types where typeId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsArticleTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param typeId the type ID\n\t* @param start the lower bound of the range of vcms article types\n\t* @param end the upper bound of the range of vcms article types (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms article types\n\t*/\n\tpublic java.util.List<VcmsArticleType> findByType(long typeId, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms article types where typeId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsArticleTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param typeId the type ID\n\t* @param start the lower bound of the range of vcms article types\n\t* @param end the upper bound of the range of vcms article types (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms article types\n\t*/\n\tpublic java.util.List<VcmsArticleType> findByType(long typeId, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms article type in the ordered set where typeId = &#63;.\n\t*\n\t* @param typeId the type ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms article type\n\t* @throws NoSuchVcmsArticleTypeException if a matching vcms article type could not be found\n\t*/\n\tpublic VcmsArticleType findByType_First(long typeId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator)\n\t\tthrows NoSuchVcmsArticleTypeException;\n\n\t/**\n\t* Returns the first vcms article type in the ordered set where typeId = &#63;.\n\t*\n\t* @param typeId the type ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms article type, or <code>null</code> if a matching vcms article type could not be found\n\t*/\n\tpublic VcmsArticleType fetchByType_First(long typeId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);\n\n\t/**\n\t* Returns the last vcms article type in the ordered set where typeId = &#63;.\n\t*\n\t* @param typeId the type ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms article type\n\t* @throws NoSuchVcmsArticleTypeException if a matching vcms article type could not be found\n\t*/\n\tpublic VcmsArticleType findByType_Last(long typeId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator)\n\t\tthrows NoSuchVcmsArticleTypeException;\n\n\t/**\n\t* Returns the last vcms article type in the ordered set where typeId = &#63;.\n\t*\n\t* @param typeId the type ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms article type, or <code>null</code> if a matching vcms article type could not be found\n\t*/\n\tpublic VcmsArticleType fetchByType_Last(long typeId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);\n\n\t/**\n\t* Returns the vcms article types before and after the current vcms article type in the ordered set where typeId = &#63;.\n\t*\n\t* @param vcmsArticleTypePK the primary key of the current vcms article type\n\t* @param typeId the type ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms article type\n\t* @throws NoSuchVcmsArticleTypeException if a vcms article type with the primary key could not be found\n\t*/\n\tpublic VcmsArticleType[] findByType_PrevAndNext(\n\t\tvn.gov.hoabinh.service.persistence.VcmsArticleTypePK vcmsArticleTypePK,\n\t\tlong typeId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator)\n\t\tthrows NoSuchVcmsArticleTypeException;\n\n\t/**\n\t* Removes all the vcms article types where typeId = &#63; from the database.\n\t*\n\t* @param typeId the type ID\n\t*/\n\tpublic void removeByType(long typeId);\n\n\t/**\n\t* Returns the number of vcms article types where typeId = &#63;.\n\t*\n\t* @param typeId the type ID\n\t* @return the number of matching vcms article types\n\t*/\n\tpublic int countByType(long typeId);\n\n\t/**\n\t* Returns all the vcms article types where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms article types\n\t*/\n\tpublic java.util.List<VcmsArticleType> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms article types where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsArticleTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms article types\n\t* @param end the upper bound of the range of vcms article types (not inclusive)\n\t* @return the range of matching vcms article types\n\t*/\n\tpublic java.util.List<VcmsArticleType> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms article types where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsArticleTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms article types\n\t* @param end the upper bound of the range of vcms article types (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms article types\n\t*/\n\tpublic java.util.List<VcmsArticleType> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms article types where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsArticleTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms article types\n\t* @param end the upper bound of the range of vcms article types (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms article types\n\t*/\n\tpublic java.util.List<VcmsArticleType> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms article type in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms article type\n\t* @throws NoSuchVcmsArticleTypeException if a matching vcms article type could not be found\n\t*/\n\tpublic VcmsArticleType findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator)\n\t\tthrows NoSuchVcmsArticleTypeException;\n\n\t/**\n\t* Returns the first vcms article type in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms article type, or <code>null</code> if a matching vcms article type could not be found\n\t*/\n\tpublic VcmsArticleType fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);\n\n\t/**\n\t* Returns the last vcms article type in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms article type\n\t* @throws NoSuchVcmsArticleTypeException if a matching vcms article type could not be found\n\t*/\n\tpublic VcmsArticleType findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator)\n\t\tthrows NoSuchVcmsArticleTypeException;\n\n\t/**\n\t* Returns the last vcms article type in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms article type, or <code>null</code> if a matching vcms article type could not be found\n\t*/\n\tpublic VcmsArticleType fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);\n\n\t/**\n\t* Returns the vcms article types before and after the current vcms article type in the ordered set where articleId = &#63;.\n\t*\n\t* @param vcmsArticleTypePK the primary key of the current vcms article type\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms article type\n\t* @throws NoSuchVcmsArticleTypeException if a vcms article type with the primary key could not be found\n\t*/\n\tpublic VcmsArticleType[] findByArticle_PrevAndNext(\n\t\tvn.gov.hoabinh.service.persistence.VcmsArticleTypePK vcmsArticleTypePK,\n\t\tjava.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator)\n\t\tthrows NoSuchVcmsArticleTypeException;\n\n\t/**\n\t* Removes all the vcms article types where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms article types where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms article types\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the vcms article type where typeId = &#63; and articleId = &#63; or throws a {@link NoSuchVcmsArticleTypeException} if it could not be found.\n\t*\n\t* @param typeId the type ID\n\t* @param articleId the article ID\n\t* @return the matching vcms article type\n\t* @throws NoSuchVcmsArticleTypeException if a matching vcms article type could not be found\n\t*/\n\tpublic VcmsArticleType findByT_A(long typeId, java.lang.String articleId)\n\t\tthrows NoSuchVcmsArticleTypeException;\n\n\t/**\n\t* Returns the vcms article type where typeId = &#63; and articleId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param typeId the type ID\n\t* @param articleId the article ID\n\t* @return the matching vcms article type, or <code>null</code> if a matching vcms article type could not be found\n\t*/\n\tpublic VcmsArticleType fetchByT_A(long typeId, java.lang.String articleId);\n\n\t/**\n\t* Returns the vcms article type where typeId = &#63; and articleId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param typeId the type ID\n\t* @param articleId the article ID\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the matching vcms article type, or <code>null</code> if a matching vcms article type could not be found\n\t*/\n\tpublic VcmsArticleType fetchByT_A(long typeId, java.lang.String articleId,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes the vcms article type where typeId = &#63; and articleId = &#63; from the database.\n\t*\n\t* @param typeId the type ID\n\t* @param articleId the article ID\n\t* @return the vcms article type that was removed\n\t*/\n\tpublic VcmsArticleType removeByT_A(long typeId, java.lang.String articleId)\n\t\tthrows NoSuchVcmsArticleTypeException;\n\n\t/**\n\t* Returns the number of vcms article types where typeId = &#63; and articleId = &#63;.\n\t*\n\t* @param typeId the type ID\n\t* @param articleId the article ID\n\t* @return the number of matching vcms article types\n\t*/\n\tpublic int countByT_A(long typeId, java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms article type in the entity cache if it is enabled.\n\t*\n\t* @param vcmsArticleType the vcms article type\n\t*/\n\tpublic void cacheResult(VcmsArticleType vcmsArticleType);\n\n\t/**\n\t* Caches the vcms article types in the entity cache if it is enabled.\n\t*\n\t* @param vcmsArticleTypes the vcms article types\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsArticleType> vcmsArticleTypes);\n\n\t/**\n\t* Creates a new vcms article type with the primary key. Does not add the vcms article type to the database.\n\t*\n\t* @param vcmsArticleTypePK the primary key for the new vcms article type\n\t* @return the new vcms article type\n\t*/\n\tpublic VcmsArticleType create(\n\t\tvn.gov.hoabinh.service.persistence.VcmsArticleTypePK vcmsArticleTypePK);\n\n\t/**\n\t* Removes the vcms article type with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param vcmsArticleTypePK the primary key of the vcms article type\n\t* @return the vcms article type that was removed\n\t* @throws NoSuchVcmsArticleTypeException if a vcms article type with the primary key could not be found\n\t*/\n\tpublic VcmsArticleType remove(\n\t\tvn.gov.hoabinh.service.persistence.VcmsArticleTypePK vcmsArticleTypePK)\n\t\tthrows NoSuchVcmsArticleTypeException;\n\n\tpublic VcmsArticleType updateImpl(VcmsArticleType vcmsArticleType);\n\n\t/**\n\t* Returns the vcms article type with the primary key or throws a {@link NoSuchVcmsArticleTypeException} if it could not be found.\n\t*\n\t* @param vcmsArticleTypePK the primary key of the vcms article type\n\t* @return the vcms article type\n\t* @throws NoSuchVcmsArticleTypeException if a vcms article type with the primary key could not be found\n\t*/\n\tpublic VcmsArticleType findByPrimaryKey(\n\t\tvn.gov.hoabinh.service.persistence.VcmsArticleTypePK vcmsArticleTypePK)\n\t\tthrows NoSuchVcmsArticleTypeException;\n\n\t/**\n\t* Returns the vcms article type with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param vcmsArticleTypePK the primary key of the vcms article type\n\t* @return the vcms article type, or <code>null</code> if a vcms article type with the primary key could not be found\n\t*/\n\tpublic VcmsArticleType fetchByPrimaryKey(\n\t\tvn.gov.hoabinh.service.persistence.VcmsArticleTypePK vcmsArticleTypePK);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsArticleType> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms article types.\n\t*\n\t* @return the vcms article types\n\t*/\n\tpublic java.util.List<VcmsArticleType> findAll();\n\n\t/**\n\t* Returns a range of all the vcms article types.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsArticleTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms article types\n\t* @param end the upper bound of the range of vcms article types (not inclusive)\n\t* @return the range of vcms article types\n\t*/\n\tpublic java.util.List<VcmsArticleType> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms article types.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsArticleTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms article types\n\t* @param end the upper bound of the range of vcms article types (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms article types\n\t*/\n\tpublic java.util.List<VcmsArticleType> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms article types.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsArticleTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms article types\n\t* @param end the upper bound of the range of vcms article types (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms article types\n\t*/\n\tpublic java.util.List<VcmsArticleType> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsArticleType> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms article types from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms article types.\n\t*\n\t* @return the number of vcms article types\n\t*/\n\tpublic int countAll();\n}", "public interface ArticlesCache {\n}", "public Persistence() {}", "public interface IHibernatePersistenceModule extends IPersistenceModule {\r\n\t/**\r\n\t * Retorna a sessao do hibernate\r\n\t * \r\n\t * @return a sessao\r\n\t */\r\n\tSession getSession();\r\n}", "public JournalArticlePersistence getJournalArticlePersistence() {\n\t\treturn journalArticlePersistence;\n\t}", "@Override\n\t\tpublic GraphDatabaseService getGraphDatabase() {\n\t\t\treturn null;\n\t\t}", "public ProduktRepositoryImpl() {\n this.conn = DatabaseConnectionManager.getDatabaseConnection();\n }", "public interface ContentService {\n HmResult addContent(TbContent tbContent);\n List<TbContent> getContentListByCid(long cid);\n}", "public interface YepDataStore {\n\n Uri BASE_CONTENT_URI = new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT)\n .authority(BuildConfig.APPLICATION_ID).build();\n String TYPE_PRIMARY_KEY = \"INTEGER PRIMARY KEY AUTOINCREMENT\";\n\n interface Messages extends BaseColumns {\n String ACCOUNT_ID = \"account_id\";\n String MESSAGE_ID = \"message_id\";\n String RECIPIENT_ID = \"recipient_id\";\n String TEXT_CONTENT = \"text_content\";\n String CREATED_AT = \"created_at\";\n String SENDER = \"sender\";\n String RECIPIENT_TYPE = \"recipient_type\";\n String CIRCLE = \"circle\";\n String PARENT_ID = \"parent_id\";\n String CONVERSATION_ID = \"conversation_id\";\n String STATE = \"state\";\n String RANDOM_ID = \"random_id\";\n String LATITUDE = \"latitude\";\n String LONGITUDE = \"longitude\";\n String MEDIA_TYPE = \"media_type\";\n String ATTACHMENTS = \"attachments\";\n String LOCAL_METADATA = \"local_metadata\";\n\n String CONTENT_PATH = \"messages\";\n Uri CONTENT_URI = Uri.withAppendedPath(BASE_CONTENT_URI, CONTENT_PATH);\n\n String TABLE_NAME = \"messages\";\n\n interface MessageState {\n String READ = \"read\";\n String UNREAD = \"unread\";\n String SENDING = \"sending\";\n String FAILED = \"failed\";\n }\n }\n\n interface Conversations extends BaseColumns {\n\n String CONTENT_PATH = \"conversations\";\n String CONTENT_PATH_SEARCH = \"conversations/search\";\n String TABLE_NAME = \"conversations\";\n Uri CONTENT_URI = Uri.withAppendedPath(BASE_CONTENT_URI, CONTENT_PATH);\n Uri CONTENT_URI_SEARCH = Uri.withAppendedPath(BASE_CONTENT_URI, CONTENT_PATH_SEARCH);\n\n\n String ACCOUNT_ID = \"account_id\";\n String CONVERSATION_ID = \"conversation_id\";\n String TEXT_CONTENT = \"text_content\";\n String TITLE = \"title\";\n String USER = \"user\";\n String CIRCLE = \"circle\";\n String UPDATED_AT = \"updated_at\";\n String LAST_SEEN_AT = \"last_seen_at\";\n String LAST_READ_AT = \"last_read_at\";\n String RECIPIENT_TYPE = \"recipient_type\";\n String MEDIA_TYPE = \"media_type\";\n String SENDER = \"sender\";\n\n }\n\n interface Friendships extends BaseColumns {\n\n String CONTENT_PATH = \"friendships\";\n Uri CONTENT_URI = Uri.withAppendedPath(BASE_CONTENT_URI, CONTENT_PATH);\n String TABLE_NAME = \"friendships\";\n\n String ACCOUNT_ID = \"account_id\";\n String FRIENDSHIP_ID = \"friendship_id\";\n\n String USER_ID = \"user_id\";\n String FRIEND = \"friend\";\n String NAME = \"name\";\n String REMARKED_NAME = \"remarked_name\";\n String CONTACT_NAME = \"contact_name\";\n\n String USER_UPDATED_AT = \"user_updated_at\";\n }\n\n interface Circles extends BaseColumns {\n\n String ACCOUNT_ID = \"account_id\";\n String CIRCLE_ID = \"circle_id\";\n String NAME = \"name\";\n String TOPIC_ID = \"topic_id\";\n String TOPIC = \"topic\";\n String CREATED_AT = \"created_at\";\n String UPDATED_AT = \"updated_at\";\n String ACTIVE = \"active\";\n String KIND = \"kind\";\n\n String TABLE_NAME = \"circles\";\n String CONTENT_PATH = \"circles\";\n Uri CONTENT_URI = Uri.withAppendedPath(BASE_CONTENT_URI, CONTENT_PATH);\n }\n\n interface Users extends BaseColumns {\n String ACCOUNT_ID = \"account_id\";\n String USER_ID = \"user_id\";\n String FRIEND_ID = \"friend_id\";\n String USERNAME = \"username\";\n String NICKNAME = \"nickname\";\n String INTRODUCTION = \"introduction\";\n String AVATAR_URL = \"avatar_url\";\n String AVATAR_THUMB_URL = \"avatar_thumb_url\";\n String MOBILE = \"mobile\";\n String PHONE_CODE = \"phone_code\";\n String CONTACT_NAME = \"contact_name\";\n String LEARNING_SKILLS = \"learning_skill\";\n String MASTER_SKILLS = \"master_skills\";\n String PROVIDERS = \"providers\";\n String BADGE = \"badge\";\n String CREATED_AT = \"created_at\";\n String UPDATED_AT = \"updated_at\";\n }\n\n}", "public VotingService(DataStoreInterface ds) {\r\n this.dataStore = ds;\r\n }", "public interface PropsViewsContainer {\n\n /**\n * Adds a new properties view configuration. The id must be unique. The\n * configuration must be an string with the namespace of the entity to be\n * loaded at a minimum.\n */\n void addPropsView(String id, String className);\n\n /**\n * Sets the configuration for the properties view. Each value of the map\n * can be an string (full name of an entity) or a map with options to be\n * passed to the builder.<br/>\n * See <b>addPropsView</b> method for details.\n * @param configuration\n */\n void setPropsViews(Map<String, String> propertiesView);\n\n /**\n * Gets the configuration for the properties view\n * @return the map with the configuration\n */\n Map<String, String> getPropsViews();\n}", "public interface IConversationsManagePresenter {\n void setCoversationListView(IConversationListView view);\n void deleteCoversation();\n void deleteChatRecord();\n void showRecentConvs();\n void initReload(boolean toDB);\n void handleMessage(IMMessage message);\n void allRead();\n void markReadById();\n void removeEvent();\n\n\n}", "public DBCollection getEngagementCollection() {\n try {\n //TODO move db config to properties file\n return MongoDBService.getCollection(\"engagements\");\n } catch (Exception e) {\n NXGReports.addStep(\"Can't get Engagements Colection: auvenir-engagements\", LogAs.FAILED, null);\n e.printStackTrace();\n }\n return null;\n }", "public interface ILocalDataSource {\n\n Flowable<List<CategoryDBO>> loadCategoriesFromLocal();\n\n void saveCategoriesToLocal(CategoryDBO categoryDBO);\n}", "@SuppressWarnings(value = \"all\")\npublic interface ContentService {\n /**\n * 参数列表:TbContent content\n * 返回值类型:TaotaoResult\n * @param content\n * @return TaotaoResult\n */\n TaotaoResult addContent(TbContent content);\n\n /**\n * 返回值类型:List<TbContent>\n * 参数列表:long categoryId\n */\n List<TbContent> getContentList(long categoryId);\n\n /**\n * 展示内容\n * @param categoryId\n * @param page\n * @param rows\n * @return EasyUIDataGridResult\n */\n EasyUIDataGridResult showContentList(long categoryId, Integer page, Integer rows);\n\n /**\n * 修改内容\n * @param content\n * @return TaotaoResult\n */\n TaotaoResult editContent(TbContent content);\n\n /**\n * 删除所选内容\n * @param ids\n */\n void deleteContentByIds(long ids);\n}", "public WFMS_WorkflowConfigPersistence getWFMS_WorkflowConfigPersistence() {\n\t\treturn wfms_WorkflowConfigPersistence;\n\t}", "public interface IIndexerDAO {\n\t\n\t/**\n\t * Inizializzazione dell'indicizzatore.\n\t * @param dir La cartella locale contenitore dei dati persistenti.\n\t * @throws ApsSystemException In caso di errori.\n\t */\n\tpublic void init(File dir) throws ApsSystemException;\n\t\n\t/**\n\t * Aggiunge un contenuto nel db del motore di ricerca.\n * @param entity Il contenuto da aggiungere.\n\t * @throws ApsSystemException In caso di errori.\n\t */\n\tpublic void add(IApsEntity entity) throws ApsSystemException;\n\t\n\t/**\n * Cancella un documento indicizzato.\n * @param name Il nome del campo Field da utilizzare per recupero del documento.\n * @param value La chiave mediante il quale è stato indicizzato il documento.\n * @throws ApsSystemException In caso di errori.\n */\n public void delete(String name, String value) throws ApsSystemException;\n \n public void close();\n\t\n\tpublic void setLangManager(ILangManager langManager);\n \n\tpublic static final String FIELD_PREFIX = \"entity:\"; \n public static final String CONTENT_ID_FIELD_NAME = FIELD_PREFIX + \"id\";\n public static final String CONTENT_TYPE_FIELD_NAME = FIELD_PREFIX + \"type\";\n public static final String CONTENT_GROUP_FIELD_NAME = FIELD_PREFIX + \"group\";\n public static final String CONTENT_CATEGORY_FIELD_NAME = FIELD_PREFIX + \"category\";\n\tpublic static final String CONTENT_CATEGORY_SEPARATOR = \"/\";\n\tpublic static final String ATTACHMENT_FIELD_SUFFIX = \"_attachment\";\n\t\n}", "public interface FlowDAO {\n\n\t/**\n\t * Gets all the records of ETL flows stored in the underlying DB for the\n\t * current version of the system.\n\t *\n\t * @param system\n\t * the system\n\t * @param software\n\t * the software version\n\t * @return all the flows\n\t */\n\tpublic List<Flow> getAll(String system, int software);\n\n\t/**\n\t * Insert a new flow into the underlying DB for the current version of the\n\t * system. Idempotent method.\n\t *\n\t * @param flow\n\t * the flow to insert\n\t * @param system\n\t * the system\n\t * @param software\n\t * the software version\n\t * @return true, if successful\n\t */\n\tpublic boolean save(Flow flow, String system, int software);\n}", "public interface IPersistentObject extends IGUIDObject {\n\t\n /**\n * Gets a representation of the object.\n * \n * @return the object's state\n */\n IData reify();\n \n /**\n * Initialises the object.\n * \n * @param data the new state\n * @param pid the new PID\n * @param guid the new GUID\n */\n void initialise( IData data, IPID pid, IGUID guid );\n \n /**\n * Records the object's current state.\n * \n * @throws PersistenceException if the object's state could not be recorded\n */\n void persist() throws PersistenceException;\n \n /**\n * Gets the PID referring to the object's most recently recorded persistent state.\n * \n * @return the PID for the object's most recent persistent state\n */\n IPID getPID();\n}", "@RemoteServiceRelativePath(\"AssessmentTempStore\")\n\tpublic interface AssessmentTempStore extends RemoteService {\n\t\t/**\n\t\t * Store a Message.\n\t\t * @param msg the Message to store\n\t\t */\n\t\tpublic void storeAssessmentTemplate(AssessmentTemplate aT);\n\n\t\t/**\n\t\t * Retrieve Messages.\n\t\t * If minimumID==1, no Messages are excluded on that basis but\n\t\t * the List is limited to the newest INITIAL_LIMIT Messages.\n\t\t * @param minimumID the lowest ID (oldest Message) to include\n\t\t * @return a List from newest (greatest id) to oldest (least id)\n\t\t */\n\t\tList<AssessmentTemplate> getAssessmentTemplates(Long minimumID);\n\n\t\t/**\n\t\t * Limit on how far back into history initial retrievals go.\n\t\t */\n\t\tpublic static final int INITIAL_LIMIT=10;\n\t}", "public interface ContentService {\n /**\n * 添加内容\n * @param content\n * @return\n */\n TaotaoResult addContent(TbContent content);\n\n /**\n * 根据id查询内容\n * @param cid\n * @return\n */\n List<TbContent> getContentListByCid(long cid);\n}", "void setPersistenceManager(javax.management.ObjectName objectName);", "public int getInstanceID()\n {\n return super.getPersistenceID();\n }", "EMInitializer() {\r\n try {\r\n emf = Persistence.createEntityManagerFactory(\"pl.polsl_MatchStatist\"\r\n + \"icsWeb_war_4.0-SNAPSHOTPU\");\r\n em = emf.createEntityManager();\r\n } catch (Exception e) {\r\n em = null;\r\n emf = null;\r\n }\r\n\r\n }", "public interface DispersionDataSource {\n\n}", "boolean isPersistenceContext();", "public interface SiteAdminService {\n /**\n * Sets the site offline or online.\n * \n * @param b\n * the flag to indicate the offline state of the web site\n * @return the current state\n */\n boolean setOffline(boolean b);\n \n /**\n * Creates a guild or clan.\n * \n * @param gameId\n * the id of the game\n * @param title\n * the title of the clan\n * @param clanPrefix\n * a clan prefix, null is allowed\n * @return null, or the created guild\n */\n Guild createGuild(long gameId, String title, String clanPrefix);\n \n /**\n * Updates a guild.\n * \n * @param changeset\n * the guild to update\n * @return TRUE if the update was successful, otherwise FALSE\n */\n boolean updateGuild(Guild changeset);\n \n /**\n * Deletes a guild or clan.\n * \n * @param guildId\n * the id of the clan\n * @return TRUE if delete was successful, othewise FALSE\n */\n boolean deleteGuild(long guildId);\n \n /**\n * Adds a character to a guild.\n * \n * @param characterId\n * the id of the character\n * @param guildId\n * the id of the guild\n * @return TRUE if association was successful, otherwise FALSE\n */\n boolean addCharacterToGuild(long characterId, long guildId);\n \n /**\n * Removes the given character from the guild.\n * \n * @param characterId\n * the id of the character\n * @return TRUE if successful, otherwise FALSE\n */\n boolean leaveGuild(long characterId);\n \n /**\n * Creates a game.\n * \n * @param title\n * the name of the game\n * @param shortCode\n * a shortcode\n * @return null, or the game info\n */\n Game createGame(String title, String shortCode);\n \n /**\n * Returns the game with the given short code.\n * \n * @param shortCode\n * the short code of the game\n * @return null, or the game\n */\n Game getGameByShortcode(String shortCode);\n \n /**\n * Returns the game with the given id.\n * \n * @param id\n * the id of the game\n * @return null, or the game\n */\n Game getGameById(long id);\n \n /**\n * Returns a set of game short codes.\n * \n * @return an empty set, or a set of game short codes\n */\n Set<String> getGameShortcodes();\n \n /**\n * Adds a character type to the game.\n * \n * @param t\n * the type of the character\n * @param gameId\n * the id of the game\n * @return the updated character type, or null\n */\n CharacterType createCharacterType(CharacterType t, long gameId);\n \n /**\n * Updates the given character type.\n * \n * @param t\n * the type to update\n * @return TRUE if update was successful, otherwise FALSE\n */\n boolean updateCharacterType(CharacterType t);\n \n /**\n * Sets some rights for the website management.\n * \n * @param r\n * the right to change\n * @param b\n * the flag to enable or disable the right\n * @return TRUE if right setting was successful, otherwise FALSE\n */\n boolean setSiteRights(SiteAdminRights r, boolean b);\n}", "public interface ETLPersistableMessage {\n\n /**\n * Setter for Parts\n * \n * @param theParts for the container\n */\n public void addPart(String partName, Object partValue);\n\n /**\n * GETs part from name\n * \n * @param partName\n * @return Object\n */\n public Object getPart(String partName);\n\n /**\n * getter for Parts\n * \n * @return theParts for the container\n */\n public Map getParts();\n\n /**\n * Persists (serialize) this message.\n * \n * @param dos The DataOutputStream to which the Java Bean message is persisted.\n * @throws Exception upon error.\n */\n public void persist(DataOutputStream dos) throws Exception;\n\n /**\n * Restore (deserialize) this message.\n * \n * @param version The version of the message read from persistent store.\n * @param dis The DataInputStream from which the Java Bean message is restored.\n * @throws Exception upon error.\n */\n public void restore(DataInputStream dis) throws Exception;\n\n /**\n * Setter for Parts\n * \n * @param theParts for the container\n */\n public void setParts(Map theParts);\n\n}", "public interface EntitlementPersistence extends BasePersistence<Entitlement> {\n /*\n * NOTE FOR DEVELOPERS:\n *\n * Never modify or reference this interface directly. Always use {@link EntitlementUtil} to access the entitlement persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n */\n\n /**\n * Caches the entitlement in the entity cache if it is enabled.\n *\n * @param entitlement the entitlement\n */\n public void cacheResult(\n de.fraunhofer.fokus.movepla.model.Entitlement entitlement);\n\n /**\n * Caches the entitlements in the entity cache if it is enabled.\n *\n * @param entitlements the entitlements\n */\n public void cacheResult(\n java.util.List<de.fraunhofer.fokus.movepla.model.Entitlement> entitlements);\n\n /**\n * Creates a new entitlement with the primary key. Does not add the entitlement to the database.\n *\n * @param entitlementId the primary key for the new entitlement\n * @return the new entitlement\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement create(\n long entitlementId);\n\n /**\n * Removes the entitlement with the primary key from the database. Also notifies the appropriate model listeners.\n *\n * @param entitlementId the primary key of the entitlement\n * @return the entitlement that was removed\n * @throws de.fraunhofer.fokus.movepla.NoSuchEntitlementException if a entitlement with the primary key could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement remove(\n long entitlementId)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.fraunhofer.fokus.movepla.NoSuchEntitlementException;\n\n public de.fraunhofer.fokus.movepla.model.Entitlement updateImpl(\n de.fraunhofer.fokus.movepla.model.Entitlement entitlement, boolean merge)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the entitlement with the primary key or throws a {@link de.fraunhofer.fokus.movepla.NoSuchEntitlementException} if it could not be found.\n *\n * @param entitlementId the primary key of the entitlement\n * @return the entitlement\n * @throws de.fraunhofer.fokus.movepla.NoSuchEntitlementException if a entitlement with the primary key could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement findByPrimaryKey(\n long entitlementId)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.fraunhofer.fokus.movepla.NoSuchEntitlementException;\n\n /**\n * Returns the entitlement with the primary key or returns <code>null</code> if it could not be found.\n *\n * @param entitlementId the primary key of the entitlement\n * @return the entitlement, or <code>null</code> if a entitlement with the primary key could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement fetchByPrimaryKey(\n long entitlementId)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns all the entitlements where companyId = &#63;.\n *\n * @param companyId the company ID\n * @return the matching entitlements\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Entitlement> findByc(\n long companyId)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns a range of all the entitlements where companyId = &#63;.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n * </p>\n *\n * @param companyId the company ID\n * @param start the lower bound of the range of entitlements\n * @param end the upper bound of the range of entitlements (not inclusive)\n * @return the range of matching entitlements\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Entitlement> findByc(\n long companyId, int start, int end)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns an ordered range of all the entitlements where companyId = &#63;.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n * </p>\n *\n * @param companyId the company ID\n * @param start the lower bound of the range of entitlements\n * @param end the upper bound of the range of entitlements (not inclusive)\n * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n * @return the ordered range of matching entitlements\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Entitlement> findByc(\n long companyId, int start, int end,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the first entitlement in the ordered set where companyId = &#63;.\n *\n * @param companyId the company ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the first matching entitlement\n * @throws de.fraunhofer.fokus.movepla.NoSuchEntitlementException if a matching entitlement could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement findByc_First(\n long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.fraunhofer.fokus.movepla.NoSuchEntitlementException;\n\n /**\n * Returns the first entitlement in the ordered set where companyId = &#63;.\n *\n * @param companyId the company ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the first matching entitlement, or <code>null</code> if a matching entitlement could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement fetchByc_First(\n long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the last entitlement in the ordered set where companyId = &#63;.\n *\n * @param companyId the company ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the last matching entitlement\n * @throws de.fraunhofer.fokus.movepla.NoSuchEntitlementException if a matching entitlement could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement findByc_Last(\n long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.fraunhofer.fokus.movepla.NoSuchEntitlementException;\n\n /**\n * Returns the last entitlement in the ordered set where companyId = &#63;.\n *\n * @param companyId the company ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the last matching entitlement, or <code>null</code> if a matching entitlement could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement fetchByc_Last(\n long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the entitlements before and after the current entitlement in the ordered set where companyId = &#63;.\n *\n * @param entitlementId the primary key of the current entitlement\n * @param companyId the company ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the previous, current, and next entitlement\n * @throws de.fraunhofer.fokus.movepla.NoSuchEntitlementException if a entitlement with the primary key could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement[] findByc_PrevAndNext(\n long entitlementId, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.fraunhofer.fokus.movepla.NoSuchEntitlementException;\n\n /**\n * Returns all the entitlements.\n *\n * @return the entitlements\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Entitlement> findAll()\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns a range of all the entitlements.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n * </p>\n *\n * @param start the lower bound of the range of entitlements\n * @param end the upper bound of the range of entitlements (not inclusive)\n * @return the range of entitlements\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Entitlement> findAll(\n int start, int end)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns an ordered range of all the entitlements.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n * </p>\n *\n * @param start the lower bound of the range of entitlements\n * @param end the upper bound of the range of entitlements (not inclusive)\n * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n * @return the ordered range of entitlements\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Entitlement> findAll(\n int start, int end,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Removes all the entitlements where companyId = &#63; from the database.\n *\n * @param companyId the company ID\n * @throws SystemException if a system exception occurred\n */\n public void removeByc(long companyId)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Removes all the entitlements from the database.\n *\n * @throws SystemException if a system exception occurred\n */\n public void removeAll()\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the number of entitlements where companyId = &#63;.\n *\n * @param companyId the company ID\n * @return the number of matching entitlements\n * @throws SystemException if a system exception occurred\n */\n public int countByc(long companyId)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the number of entitlements.\n *\n * @return the number of entitlements\n * @throws SystemException if a system exception occurred\n */\n public int countAll()\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns all the application_ entitlements associated with the entitlement.\n *\n * @param pk the primary key of the entitlement\n * @return the application_ entitlements associated with the entitlement\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Application_Entitlement> getApplication_Entitlements(\n long pk) throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns a range of all the application_ entitlements associated with the entitlement.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n * </p>\n *\n * @param pk the primary key of the entitlement\n * @param start the lower bound of the range of entitlements\n * @param end the upper bound of the range of entitlements (not inclusive)\n * @return the range of application_ entitlements associated with the entitlement\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Application_Entitlement> getApplication_Entitlements(\n long pk, int start, int end)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns an ordered range of all the application_ entitlements associated with the entitlement.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n * </p>\n *\n * @param pk the primary key of the entitlement\n * @param start the lower bound of the range of entitlements\n * @param end the upper bound of the range of entitlements (not inclusive)\n * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n * @return the ordered range of application_ entitlements associated with the entitlement\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Application_Entitlement> getApplication_Entitlements(\n long pk, int start, int end,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the number of application_ entitlements associated with the entitlement.\n *\n * @param pk the primary key of the entitlement\n * @return the number of application_ entitlements associated with the entitlement\n * @throws SystemException if a system exception occurred\n */\n public int getApplication_EntitlementsSize(long pk)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns <code>true</code> if the application_ entitlement is associated with the entitlement.\n *\n * @param pk the primary key of the entitlement\n * @param application_EntitlementPK the primary key of the application_ entitlement\n * @return <code>true</code> if the application_ entitlement is associated with the entitlement; <code>false</code> otherwise\n * @throws SystemException if a system exception occurred\n */\n public boolean containsApplication_Entitlement(long pk,\n long application_EntitlementPK)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns <code>true</code> if the entitlement has any application_ entitlements associated with it.\n *\n * @param pk the primary key of the entitlement to check for associations with application_ entitlements\n * @return <code>true</code> if the entitlement has any application_ entitlements associated with it; <code>false</code> otherwise\n * @throws SystemException if a system exception occurred\n */\n public boolean containsApplication_Entitlements(long pk)\n throws com.liferay.portal.kernel.exception.SystemException;\n}", "public interface CardPersistenceInterface {\n\t\n\t/**\n\t * Save a card.\n\t * @param card\n\t * @return Newly created id.\n\t * @throws PersistenceCoreException\n\t */\n\tlong save(Card card) throws PersistenceCoreException;\n\t\n\t/**\n\t * Update an existing card.\n\t * @param card\n\t * @throws PersistenceCoreException\n\t */\n\tvoid update(Card card) throws PersistenceCoreException;\n\t\n\t/**\n\t * Find a card by its number.\n\t * @param number\n\t * @param userId\n\t * @return null if couldn't find entity.\n\t * @throws PersistenceCoreException\n\t */\n\tCard findByCardData(String number, long userId) throws PersistenceCoreException;\n\t\n\t/**\n\t * Find cards by a search string representing a card number (or part of it).<br>\n\t * Return all cards that match the search string.\n\t * @param searchString\n\t * @return list of found cards.\n\t * @throws PersistenceCoreException\n\t */\n\tList<Card> search(String searchString) throws PersistenceCoreException;\n\t\n\t/**\n\t * Find cards by a search string representing a card number (or part of it).<br>\n\t * Return only the cards that belong to the specified user.\n\t * @param searchString\n\t * @param userId\n\t * @return\n\t * @throws PersistenceCoreException\n\t */\n\tList<Card> search(String searchString, long userId) throws PersistenceCoreException;\n\t\n}", "public interface DanhMucGiayToPersistence extends BasePersistence<DanhMucGiayTo> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link DanhMucGiayToUtil} to access the danh muc giay to persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Caches the danh muc giay to in the entity cache if it is enabled.\n\t*\n\t* @param danhMucGiayTo the danh muc giay to\n\t*/\n\tpublic void cacheResult(\n\t\torg.oep.cmon.dao.tlct.model.DanhMucGiayTo danhMucGiayTo);\n\n\t/**\n\t* Caches the danh muc giay tos in the entity cache if it is enabled.\n\t*\n\t* @param danhMucGiayTos the danh muc giay tos\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<org.oep.cmon.dao.tlct.model.DanhMucGiayTo> danhMucGiayTos);\n\n\t/**\n\t* Creates a new danh muc giay to with the primary key. Does not add the danh muc giay to to the database.\n\t*\n\t* @param id the primary key for the new danh muc giay to\n\t* @return the new danh muc giay to\n\t*/\n\tpublic org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);\n\n\t/**\n\t* Removes the danh muc giay to with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param id the primary key of the danh muc giay to\n\t* @return the danh muc giay to that was removed\n\t* @throws org.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException if a danh muc giay to with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.oep.cmon.dao.tlct.model.DanhMucGiayTo remove(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException;\n\n\tpublic org.oep.cmon.dao.tlct.model.DanhMucGiayTo updateImpl(\n\t\torg.oep.cmon.dao.tlct.model.DanhMucGiayTo danhMucGiayTo, boolean merge)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the danh muc giay to with the primary key or throws a {@link org.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException} if it could not be found.\n\t*\n\t* @param id the primary key of the danh muc giay to\n\t* @return the danh muc giay to\n\t* @throws org.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException if a danh muc giay to with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.oep.cmon.dao.tlct.model.DanhMucGiayTo findByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException;\n\n\t/**\n\t* Returns the danh muc giay to with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param id the primary key of the danh muc giay to\n\t* @return the danh muc giay to, or <code>null</code> if a danh muc giay to with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.oep.cmon.dao.tlct.model.DanhMucGiayTo fetchByPrimaryKey(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the danh muc giay to where ma = &#63; or throws a {@link org.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException} if it could not be found.\n\t*\n\t* @param ma the ma\n\t* @return the matching danh muc giay to\n\t* @throws org.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException if a matching danh muc giay to could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.oep.cmon.dao.tlct.model.DanhMucGiayTo findByMa(\n\t\tjava.lang.String ma)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException;\n\n\t/**\n\t* Returns the danh muc giay to where ma = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param ma the ma\n\t* @return the matching danh muc giay to, or <code>null</code> if a matching danh muc giay to could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.oep.cmon.dao.tlct.model.DanhMucGiayTo fetchByMa(\n\t\tjava.lang.String ma)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the danh muc giay to where ma = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param ma the ma\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching danh muc giay to, or <code>null</code> if a matching danh muc giay to could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.oep.cmon.dao.tlct.model.DanhMucGiayTo fetchByMa(\n\t\tjava.lang.String ma, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the danh muc giay to where ma = &#63; or throws a {@link org.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException} if it could not be found.\n\t*\n\t* @param ma the ma\n\t* @return the matching danh muc giay to\n\t* @throws org.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException if a matching danh muc giay to could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.oep.cmon.dao.tlct.model.DanhMucGiayTo findByByMa(\n\t\tjava.lang.String ma)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException;\n\n\t/**\n\t* Returns the danh muc giay to where ma = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param ma the ma\n\t* @return the matching danh muc giay to, or <code>null</code> if a matching danh muc giay to could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.oep.cmon.dao.tlct.model.DanhMucGiayTo fetchByByMa(\n\t\tjava.lang.String ma)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the danh muc giay to where ma = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param ma the ma\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching danh muc giay to, or <code>null</code> if a matching danh muc giay to could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.oep.cmon.dao.tlct.model.DanhMucGiayTo fetchByByMa(\n\t\tjava.lang.String ma, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the danh muc giay tos where daXoa = &#63;.\n\t*\n\t* @param daXoa the da xoa\n\t* @return the matching danh muc giay tos\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.oep.cmon.dao.tlct.model.DanhMucGiayTo> findByTrangThai(\n\t\tint daXoa) throws com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the danh muc giay tos where daXoa = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param daXoa the da xoa\n\t* @param start the lower bound of the range of danh muc giay tos\n\t* @param end the upper bound of the range of danh muc giay tos (not inclusive)\n\t* @return the range of matching danh muc giay tos\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.oep.cmon.dao.tlct.model.DanhMucGiayTo> findByTrangThai(\n\t\tint daXoa, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the danh muc giay tos where daXoa = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param daXoa the da xoa\n\t* @param start the lower bound of the range of danh muc giay tos\n\t* @param end the upper bound of the range of danh muc giay tos (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching danh muc giay tos\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.oep.cmon.dao.tlct.model.DanhMucGiayTo> findByTrangThai(\n\t\tint daXoa, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first danh muc giay to in the ordered set where daXoa = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param daXoa the da xoa\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching danh muc giay to\n\t* @throws org.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException if a matching danh muc giay to could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.oep.cmon.dao.tlct.model.DanhMucGiayTo findByTrangThai_First(\n\t\tint daXoa,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException;\n\n\t/**\n\t* Returns the last danh muc giay to in the ordered set where daXoa = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param daXoa the da xoa\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching danh muc giay to\n\t* @throws org.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException if a matching danh muc giay to could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.oep.cmon.dao.tlct.model.DanhMucGiayTo findByTrangThai_Last(\n\t\tint daXoa,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException;\n\n\t/**\n\t* Returns the danh muc giay tos before and after the current danh muc giay to in the ordered set where daXoa = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param id the primary key of the current danh muc giay to\n\t* @param daXoa the da xoa\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next danh muc giay to\n\t* @throws org.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException if a danh muc giay to with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.oep.cmon.dao.tlct.model.DanhMucGiayTo[] findByTrangThai_PrevAndNext(\n\t\tlong id, int daXoa,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException;\n\n\t/**\n\t* Returns all the danh muc giay tos.\n\t*\n\t* @return the danh muc giay tos\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.oep.cmon.dao.tlct.model.DanhMucGiayTo> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the danh muc giay tos.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of danh muc giay tos\n\t* @param end the upper bound of the range of danh muc giay tos (not inclusive)\n\t* @return the range of danh muc giay tos\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.oep.cmon.dao.tlct.model.DanhMucGiayTo> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the danh muc giay tos.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of danh muc giay tos\n\t* @param end the upper bound of the range of danh muc giay tos (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of danh muc giay tos\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.oep.cmon.dao.tlct.model.DanhMucGiayTo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the danh muc giay to where ma = &#63; from the database.\n\t*\n\t* @param ma the ma\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByMa(java.lang.String ma)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException;\n\n\t/**\n\t* Removes the danh muc giay to where ma = &#63; from the database.\n\t*\n\t* @param ma the ma\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByByMa(java.lang.String ma)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException;\n\n\t/**\n\t* Removes all the danh muc giay tos where daXoa = &#63; from the database.\n\t*\n\t* @param daXoa the da xoa\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByTrangThai(int daXoa)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the danh muc giay tos from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of danh muc giay tos where ma = &#63;.\n\t*\n\t* @param ma the ma\n\t* @return the number of matching danh muc giay tos\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByMa(java.lang.String ma)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of danh muc giay tos where ma = &#63;.\n\t*\n\t* @param ma the ma\n\t* @return the number of matching danh muc giay tos\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByByMa(java.lang.String ma)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of danh muc giay tos where daXoa = &#63;.\n\t*\n\t* @param daXoa the da xoa\n\t* @return the number of matching danh muc giay tos\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByTrangThai(int daXoa)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of danh muc giay tos.\n\t*\n\t* @return the number of danh muc giay tos\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "public interface QuestionnaireDAO {\r\n /**\r\n * Loads questionnaire data\r\n *\r\n * @return\r\n */\r\n public Questionnaire load();\r\n}", "public interface IInfoContentService {\n public int saveInfoContent(InfoContent infoContent);\n\n public int deleteInfoContent(int id);\n\n public int updateInfoContent(InfoContent infoContent);\n\n public InfoContent getInfoContent(int id);\n\n public PageHolder<InfoContent> queryInfoContentByPage(HashMap<String, Object> paramMap, int pageIndex, int pageSize);\n\n public List<InfoContent> queryInfoContentList(String title, String des, int id, int limit);\n}", "PortalCacheModel getCacheModel();", "public MongoManager()\n\t{\n\t\ttry\n\t\t{\n\t\t/*\tmorphia = new Morphia();\n\t\t\tclient = new MongoClient();\n\t\t\tmorphia.mapPackage(\"com.glenwood.kernai.data.entity\");\n\t\t\tdatastore = morphia.createDatastore(client, \"Kernai\");\n\t\t\tdatastore.ensureIndexes();\n\t\t*/\t\n\t\t}\n\t\tcatch(Exception ex)\n\t\t{\n\t\t\tthrow ex;\n\t\t}\n\t\n\t}", "public interface AutioSettingService {\n /***\n * 语音设置\n * @param pd\n * @return\n * @throws Exception\n */\n PageData saveInfo(PageData pd) throws Exception;\n\n /***\n * 语音设置查询\n * @param pd\n * @return\n * @throws Exception\n */\n PageData queryInfo(PageData pd) throws Exception;\n\n}", "public TeamViewerConnectionDAOImpl(){\n\t\tsuper.type = TeamViewerConnection.class;\n\t}", "public interface IDSManager {\n Boolean addUser(ContentValues user);\n Boolean addBusiness(ContentValues business);\n Boolean addActivity(ContentValues activity);\n Boolean checkChangeInBusinessesAndActivities();\n Cursor getUsers();\n Cursor getBusinesses();\n Cursor getActivities();\n Boolean checkChangeInDataSource();\n Boolean dbChange();\n //Content Provider to check what that means.\n}", "public interface IEngineDAO extends ISpagoBIDao{\n\t\n\t\n\t/**\n\t * Loads all detail information for an engine identified by its <code>engineID</code>. All these information,\n\t * achived by a query to the DB, are stored into an <code>engine</code> object, which is\n\t * returned.\n\t * \n\t * @param engineID The id for the engine to load\n\t * \n\t * @return An <code>engine</code> object containing all loaded information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\tpublic Engine loadEngineByID(Integer engineID) throws EMFUserError;\n\t\n\t\n\t/**\n\t * Loads all detail information for an engine identified by its <code>engineLabel</code>. All these information,\n\t * achived by a query to the DB, are stored into an <code>engine</code> object, which is\n\t * returned.\n\t * \n\t * @param engineLabel The label for the engine to load\n\t * \n\t * @return An <code>engine</code> object containing all loaded information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\tpublic Engine loadEngineByLabel(String engineLabel) throws EMFUserError;\n\t\n\t/**\n\t * Loads all detail information for an engine identified by its <code>driver</code>. All these information,\n\t * achived by a query to the DB, are stored into an <code>engine</code> object, which is\n\t * returned.\n\t * \n\t * @param driver The name for the engine to load\n\t * \n\t * @return An <code>engine</code> object containing all loaded information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\tpublic Engine loadEngineByDriver(String driver) throws EMFUserError;\n\t\n\t\n\t/**\n\t * Loads all detail information for all engines. For each of them, detail\n\t * information is stored into an <code>engine</code> object. After that, all engines\n\t * are stored into a <code>List</code>, which is returned.\n\t * \n\t * @return A list containing all engine objects\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadAllEngines() throws EMFUserError;\n\t\n\t\n\t/**\n\t * Loads all detail information for all engines in paged way. For each of them, detail\n\t * information is stored into an <code>engine</code> object. After that, all engines inside the paging logic\n\t * are stored into a <code>List</code>, which is returned.\n\t * \n\t * @return A list containing all engine objects\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadPagedEnginesList(Integer offset, Integer fetchSize) throws EMFUserError;\n\t\n\t\n\t/**\n\t * Loads all detail information for all engines filtered by tenant. For each of them, detail\n\t * information is stored into an <code>engine</code> object. After that, all engines\n\t * are stored into a <code>List</code>, which is returned.\n\t * \n\t * @return A list containing all engine objects\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadAllEnginesByTenant() throws EMFUserError;\n\t/**\n\t * Loads all detail information for all engines compatible to the BIObject type specified \n\t * at input and the tenant. For each of them, detail information is stored into an <code>engine</code> object.\n\t * After that, all engines are stored into a <code>List</code>, which is returned.\n\t * \n\t * @param biobjectType the biobject type\n\t * \n\t * @return A list containing all engine objects compatible with the BIObject type passed at input\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadAllEnginesForBIObjectTypeAndTenant(String biobjectType) throws EMFUserError;\n\t/**\n\t * Loads all detail information for all engines compatible to the BIObject type specified\n\t * at input. For each of them, detail information is stored into an <code>engine</code> object.\n\t * After that, all engines are stored into a <code>List</code>, which is returned.\n\t * \n\t * @param biobjectType the biobject type\n\t * \n\t * @return A list containing all engine objects compatible with the BIObject type passed at input\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadAllEnginesForBIObjectType(String biobjectType) throws EMFUserError;\n\t/**\n\t * Implements the query to modify an engine. All information needed is stored\n\t * into the input <code>engine</code> object.\n\t * \n\t * @param aEngine The object containing all modify information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic void modifyEngine(Engine aEngine) throws EMFUserError;\n\t\n\t/**\n\t * Implements the query to insert an engine. All information needed is stored\n\t * into the input <code>engine</code> object.\n\t * \n\t * @param aEngine The object containing all insert information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\tpublic void insertEngine(Engine aEngine) throws EMFUserError;\n\t\n\t/**\n\t * Implements the query to erase an engine. All information needed is stored\n\t * into the input <code>engine</code> object.\n\t * \n\t * @param aEngine The object containing all delete information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic void eraseEngine(Engine aEngine) throws EMFUserError;\n\n\t/**\n\t * Tells if an engine is associated to any\n\t * BI Object. It is useful because an engine cannot be deleted\n\t * if it is used by one or more BI Objects.\n\t * \n\t * @param engineId The engine identifier\n\t * \n\t * @return True if the engine is used by one or more\n\t * objects, else false\n\t * \n\t * @throws EMFUserError If any exception occurred\n\t */\n\tpublic boolean hasBIObjAssociated (String engineId) throws EMFUserError;\n\n\n\t/**\n\t * Get all the associated Exporters\n\t * \n\t * @param engineId The engine identifier\n\t * \n\t * @return The list of associated Exporters\n\t * \n\t * @throws EMFUserError If any exception occurred\n\t */\n\tpublic List getAssociatedExporters (Engine engineId) throws EMFUserError;\n\n\t\n\t\n\tpublic Integer countEngines() throws EMFUserError;\n\n}", "public LibroPersistence getLibroPersistence() {\n return libroPersistence;\n }", "public McqOfficialSession(){\n\t\tsuper(); \n\t}" ]
[ "0.5868032", "0.5823404", "0.58056575", "0.57748187", "0.5688005", "0.5681629", "0.5677971", "0.5599643", "0.54987735", "0.54672205", "0.54074496", "0.5370242", "0.5341375", "0.5340563", "0.53223467", "0.53114444", "0.5291204", "0.52525944", "0.52449805", "0.5236293", "0.5208208", "0.51773757", "0.51709944", "0.51703596", "0.5156976", "0.5146984", "0.5133803", "0.5126466", "0.5126447", "0.512561", "0.51239043", "0.51201415", "0.5102239", "0.5087809", "0.50796455", "0.50746983", "0.50694627", "0.50529057", "0.5051375", "0.5047113", "0.50468373", "0.50422627", "0.5041595", "0.5038451", "0.50311166", "0.5023981", "0.5020718", "0.5017284", "0.50129026", "0.5008336", "0.49997082", "0.49981713", "0.49976775", "0.49960944", "0.4995643", "0.4994538", "0.49850303", "0.497399", "0.496614", "0.49633622", "0.49614137", "0.49575865", "0.49502188", "0.4943955", "0.49402976", "0.49302772", "0.49218968", "0.49128622", "0.48992318", "0.48874068", "0.48869577", "0.48779112", "0.48777422", "0.48688182", "0.48637357", "0.4863154", "0.48627627", "0.48594955", "0.48594034", "0.485603", "0.48560178", "0.48438367", "0.48403263", "0.48298544", "0.4827413", "0.4824629", "0.48245746", "0.48179305", "0.4815776", "0.48108718", "0.4809976", "0.48078385", "0.48042336", "0.4803592", "0.4801177", "0.4795954", "0.4790542", "0.47881764", "0.4788096", "0.47853774" ]
0.6670947
0
Returns the first vcms discussion in the ordered set where groupId = &63; and language = &63;.
public VcmsDiscussion findByP_L_First(long groupId, java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "@Override\n\tpublic VcmsPortion fetchByG_L_First(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator) {\n\t\tList<VcmsPortion> list = findByG_L(groupId, language, 0, 1,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic VcmsPortion fetchByG_L_C_First(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator) {\n\t\tList<VcmsPortion> list = findByG_L_C(groupId, language, categorizable,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Discussion getDiscussion(int discussionID) throws DAOException;", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "protected Discussion getDiscussionForName(String name){\n\t\tfor(Discussion discussion : discussions){\n\t\t\tif (discussion.getName().equals(name)){\n\t\t\t\treturn discussion;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "CMSObject getFirstNodeById(String id, Object session) throws RepositoryAccessException;", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "java.lang.String getLegacyDiscussionId();", "Article findLatestArticle();", "protected final T findFirstByQuery(String query, String sort, Object... params) {\n Find find = this.collection.find(query, params);\n if ((sort != null) && !sort.isEmpty()) {\n find.sort(sort);\n }\n Iterable<T> as = find.limit(1).as(this.getEntityClass());\n Iterator<T> iterator = as.iterator();\n if (iterator.hasNext()) {\n return iterator.next();\n }\n return null;\n }", "public VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public String getDiscussion(){\n return discussion;\n }", "CMSObject getFirstNodeById(String id, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "public Partida getFirstPartida(Integer idPartida){\n String consulta = \"SELECT p FROM Partida p WHERE p.id = \" +idPartida;\n return em.createQuery(consulta, Partida.class).setMaxResults(1).getResultList().get(0);\n }", "public java.util.List<VcmsDiscussion> findAll();", "MemberAdvisoryComment selectByPrimaryKey(Long commentId);", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic VcmsPortion findByG_L_First(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator)\n\t\tthrows NoSuchVcmsPortionException {\n\t\tVcmsPortion vcmsPortion = fetchByG_L_First(groupId, language,\n\t\t\t\torderByComparator);\n\n\t\tif (vcmsPortion != null) {\n\t\t\treturn vcmsPortion;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(6);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"groupId=\");\n\t\tmsg.append(groupId);\n\n\t\tmsg.append(\", language=\");\n\t\tmsg.append(language);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchVcmsPortionException(msg.toString());\n\t}", "private static DiscussionParam createSimple() {\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.setLocale(Locale.getDefault()).build();\n\t}", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public VcmsDiscussion create(java.lang.String discussionId);", "CMSObject getFirstNodeByPath(String path, Object session) throws RepositoryAccessException;", "MemberAdvisoryComment selectByPrimaryKeyLock(Long commentId);", "Question getFirstQuestion();", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "KnowledgeComment selectByPrimaryKey(Integer id);", "public Comment getComment(VitalParticipant participant) {\n try {\n\t\t\tLong id = participant.getId();\n\t\t\tIterator iter = this.comments.iterator();\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tComment c = (Comment) iter.next();\n\t\t\t\tif (c.getParticipant().getId() == id) return c;\n\t\t\t}\n } catch(Exception e) {\n\t\t\tlogger.warn(\"getComment for VitalParticipant threw \" + e);\n\t\t}\n\t\treturn null;\n }", "List<Discuss> selectByExample(DiscussExample example);", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }", "CMSObject getFirstNodeByName(String name, Object session) throws RepositoryAccessException;", "public ProcessGroupFlowEntity getLatestProcessGroupFlowEntity(String pgId) {\n Map<String, String> params = new HashMap<String, String>();\n HttpHeaders requestHeaders = security.getAuthorizationHeader();\n HttpEntity<?> requestEntity = new HttpEntity<Object>(requestHeaders);\n String theUrl = trasnsportMode + \"://\" + nifiServerHostnameAndPort + \"/nifi-api/flow/process-groups/\" + pgId + \"?recursive=true\";\n HttpEntity<ProcessGroupFlowEntity> response = restTemplate.exchange(theUrl, HttpMethod.GET, requestEntity,\n ProcessGroupFlowEntity.class, params);\n return response.getBody();\n }", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "public static Question getNextQuestion(Category category) {\n if (GameData.QUESTION_STATUS_LIST == null || GameData.QUESTION_STATUS_LIST.size() == 0) {\n GameData.startNewGame(category);\n }\n for (QuestionStatus q : GameData.QUESTION_STATUS_LIST) {\n if (!q.isVisited()) {\n q.setVisited(true);\n return q.getQuestion();\n }\n }\n return null;\n }", "private final ViewGroup m136462c() {\n View view;\n BaseFragment baseFragment = this.f98814b;\n if (baseFragment == null || (view = baseFragment.getView()) == null) {\n return null;\n }\n return (ViewGroup) view.findViewById(R.id.topic_live_container);\n }", "public GetLatestMovieResponse getLatestMovie(String language) {\n String path = \"/movie/latest\";\n Map<String, Object> requestParams = new HashMap<>();\n requestParams.put(\"language\", language);\n return restClient.get(path, requestParams, new TypeReference<>() {\n\n\n }\n );\n }", "public JTextPane getDiscussion(){\n return discussion;\n }", "default IElementType getContentElementType(@Nonnull Language language) {\n return null;\n }", "public Language getLanguageRelatedByLanguageId() throws TorqueException\n {\n if (aLanguageRelatedByLanguageId == null && (this.languageId != 0))\n {\n aLanguageRelatedByLanguageId = LanguagePeer.retrieveByPK(SimpleKey.keyFor(this.languageId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Language obj = LanguagePeer.retrieveByPK(this.languageId);\n obj.addNewslettersRelatedByLanguageId(this);\n */\n }\n return aLanguageRelatedByLanguageId;\n }", "FeedbackData findFirstByUrl(String url);", "Optional<UserContentComment> findOne(Long id);", "private static DiscussionParam createGetDiscussionList() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_ID)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_DETAIL)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_UNSEEN_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LATEST_MESSAGE)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LAST_CHECK_DATE)\t\n\t\t.setLocale(Locale.getDefault()).build();\n\t\t\n\t}", "List<trackcomment> selectByExample(trackcommentExample example);", "@Override\n\tpublic TvShow fetchByGroupId_First(long groupId,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tList<TvShow> list = findByGroupId(groupId, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "java.lang.String getLinkToDiscussion();", "MessageGroup selectByPrimaryKey(Long id_message_group);", "public Todo fetchByGroupId_First(\n\t\tlong groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "List<MessageGroup> selectByExample(MessageGroupExample example);", "@Override\n\tpublic LinkGroup fetchBygroupId_First(long groupId,\n\t\tOrderByComparator<LinkGroup> orderByComparator) {\n\t\tList<LinkGroup> list = findBygroupId(groupId, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public static IDescribable getFirst( Collection<? extends IDescribable> results )\r\n\t{\r\n\t if(( results == null ) || ( results.size() == 0 ))\r\n\t return null;\r\n\t return results.iterator().next();\r\n\t}", "public Element getSelectedCategoryElement() {\n Element categoryElement = null;\n\n IStructuredSelection categoriesCompositeSelection =\n (IStructuredSelection) getTreeViewer().getSelection();\n\n if (!categoriesCompositeSelection.isEmpty()) {\n Element selectedElement = (Element)\n categoriesCompositeSelection.getFirstElement();\n\n if (selectedElement.getName().\n equals(DeviceRepositorySchemaConstants.\n POLICY_ELEMENT_NAME)) {\n\n StringBuffer xPathBuffer = new StringBuffer();\n xPathBuffer.append(\"ancestor::\").//$NON-NLS-1$\n append(MCSNamespace.DEVICE_DEFINITIONS.getPrefix()).\n append(':').\n append(DeviceRepositorySchemaConstants.\n CATEGORY_ELEMENT_NAME);\n XPath categoryXPath = new XPath(xPathBuffer.toString(),\n new Namespace[]{MCSNamespace.DEVICE_DEFINITIONS});\n try {\n categoryElement =\n categoryXPath.selectSingleElement(selectedElement);\n } catch (XPathException e) {\n EclipseCommonPlugin.handleError(ABPlugin.getDefault(), e);\n }\n } else if (selectedElement.getName().\n equals(DeviceRepositorySchemaConstants.\n CATEGORY_ELEMENT_NAME)) {\n categoryElement = selectedElement;\n }\n }\n return categoryElement;\n }", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "Language findById(String id);", "@Override\n public Ares2ClusterDO selectOneByQuery(Ares2ClusterQuery query) {\n query.setPageNo(1);\n query.setPageSize(1);\n List<Ares2ClusterDO> topList = selectByQuery(query);\n if (topList != null && topList.size() > 0) {\n return topList.get(0);\n }\n return null;\n }", "CMSObject getFirstNodeByPath(String path, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "Language getLanguage(LanguageID languageID, int version) throws LanguageNotFoundException;", "public final void rule__Language__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1413:1: ( ( 'Language' ) )\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1414:1: ( 'Language' )\n {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1414:1: ( 'Language' )\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1415:1: 'Language'\n {\n before(grammarAccess.getLanguageAccess().getLanguageKeyword_1()); \n match(input,24,FollowSets000.FOLLOW_24_in_rule__Language__Group__1__Impl2760); \n after(grammarAccess.getLanguageAccess().getLanguageKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void selectLanguage(String language) {\n\n String xpath = String.format(EST_LANGUAGE, language);\n List<WebElement> elements = languages.findElements(By.xpath(xpath));\n for (WebElement element : elements) {\n if (element.isDisplayed()) {\n element.click();\n break;\n }\n }\n }", "public Pageable first() {\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n\tpublic VcmsPortion findByG_L_C_First(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator)\n\t\tthrows NoSuchVcmsPortionException {\n\t\tVcmsPortion vcmsPortion = fetchByG_L_C_First(groupId, language,\n\t\t\t\tcategorizable, orderByComparator);\n\n\t\tif (vcmsPortion != null) {\n\t\t\treturn vcmsPortion;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(8);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"groupId=\");\n\t\tmsg.append(groupId);\n\n\t\tmsg.append(\", language=\");\n\t\tmsg.append(language);\n\n\t\tmsg.append(\", categorizable=\");\n\t\tmsg.append(categorizable);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchVcmsPortionException(msg.toString());\n\t}", "@Override\n\tpublic LinkGroup fetchByMenu_First(long linkgroupId,\n\t\tOrderByComparator<LinkGroup> orderByComparator) {\n\t\tList<LinkGroup> list = findByMenu(linkgroupId, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "private DiscoursePartItem getSrcDiscoursePart(DiscoursePartItem item) {\r\n if (item == null) { return null; }\r\n\r\n DiscoursePartDao dpDao = DiscourseDbDaoFactory.DEFAULT.getDiscoursePartDao();\r\n DiscoursePartItem result = dpDao.findBySourceId((Long)item.getId());\r\n return result;\r\n }", "CMSObject getFirstNodeByName(String name, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "public E findMin() {\n // TODO: YOUR CODE HERE\n return getElement(1);\n }", "MsgContent selectByPrimaryKey(Integer id);", "Commet selectByPrimaryKey(String commentId);", "public RTContainer container_element(RTContainer a, boolean first){\n\t\tif(a.getDecompGoals().size()>0 && a.getDecompPlans().size()==0){\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompGoals().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompGoals().getLast(); \n\t\t}else{\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompPlans().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompPlans().getLast();\n\t\t}\n\t}", "public Jode first() {\n return children().first();\n }", "@Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void removeByP_L(long groupId, java.lang.String language);", "public Sequencer requestSequencer ( MidiSoundHolder sound ) {\n if ( this.currentMidi != sound )\n return null;\n return this.sequencer;\n }", "ContentIdentifier getParent(ContentIdentifier cid);", "public String getTitile(String language) {\n if (language.startsWith(\"e\")) {\n return enTitle;\n } else {\n return localTitle;\n }\n }", "public Clan findSmallestDefaultClan() {\n\t\tList<Clan> defaultClans = clans.stream().filter(c -> c.getID().equals(DEFAULT_CLAN_ID)).collect(Collectors.toList());\n\n\t\tdefaultClans.sort((c1, c2) -> c1.getMembers().size() - c2.getMembers().size());\n\n\t\treturn defaultClans.get(0);\n\t}", "public Todo fetchByUserIdGroupId_First(\n\t\tlong userId, long groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "@Transactional(readOnly=true)\n\tpublic String getNaturalLanguageForStatement(final String statementId, final String nlUsageTypeKey, final String language)\n\t\t\tthrows DoesNotExistException, InvalidParameterException,\n\t\t\tMissingParameterException, OperationFailedException {\n\n\t\tcheckForNullOrEmptyParameter(statementId, \"statementId\");\n\t\tcheckForNullOrEmptyParameter(nlUsageTypeKey, \"nlUsageTypeKey\");\n\t\tcheckForEmptyParameter(language, \"language\");\n\n\t\tStatement statement = this.statementDao.fetch(Statement.class, statementId);\n\t\tString nl = this.naturalLanguageTranslator.translateStatement(statement, nlUsageTypeKey, language);\n\n\t\tif(logger.isInfoEnabled()) {\n\t\t\tlogger.info(\"statementId=\"+statementId);\n\t\t\tlogger.info(\"nlUsageTypeKey=\"+nlUsageTypeKey);\n\t\t\tlogger.info(\"language=\"+language);\n\t\t\tlogger.info(\"Statement translation=\"+nl);\n\t\t}\n\n\t\treturn nl;\n\t}", "private String getTranslation(String language, String id)\n {\n Iterator<Translation> translations = mTranslationState.iterator();\n \n while (translations.hasNext()) {\n Translation translation = translations.next();\n \n if (translation.getLang().equals(language)) {\n Iterator<TranslationText> texts = translation.texts.iterator();\n \n while (texts.hasNext()) {\n TranslationText text = texts.next();\n \n if (text.getId().equals(id)) {\n text.setUsed(true);\n return text.getValue();\n }\n }\n }\n }\n \n return \"[Translation Not Available]\";\n }" ]
[ "0.74729955", "0.6777574", "0.6649137", "0.6317011", "0.5970771", "0.5955934", "0.5943212", "0.56807804", "0.5617141", "0.54884374", "0.5403034", "0.5380492", "0.51589006", "0.5120856", "0.5104998", "0.50992054", "0.50923246", "0.50864965", "0.50722593", "0.5061062", "0.50534594", "0.50106233", "0.49746242", "0.49712428", "0.49705008", "0.4914046", "0.49005157", "0.48557067", "0.48292127", "0.48012096", "0.47691518", "0.47645175", "0.4734337", "0.47288814", "0.46821487", "0.46484652", "0.46085897", "0.45954093", "0.45499602", "0.45399892", "0.45171168", "0.45137078", "0.447555", "0.44748998", "0.44645882", "0.44546232", "0.44484666", "0.44374445", "0.44362345", "0.44360116", "0.44188464", "0.43951884", "0.43912357", "0.43860206", "0.43822217", "0.43811244", "0.4372722", "0.43453303", "0.4329536", "0.4312662", "0.43076128", "0.42857587", "0.42781818", "0.42714146", "0.42663577", "0.42632112", "0.42621338", "0.42574114", "0.42560443", "0.42534003", "0.42489088", "0.42434907", "0.42429107", "0.42349723", "0.4232864", "0.42293948", "0.4223641", "0.42151687", "0.42131773", "0.4213025", "0.42098826", "0.42097557", "0.4195952", "0.41958576", "0.41700915", "0.41666436", "0.41658399", "0.41620693", "0.41561878", "0.41537076", "0.41393957", "0.41282827", "0.4128222", "0.41147244", "0.4109352", "0.41020715", "0.41018224", "0.40964216", "0.409613", "0.4087197" ]
0.6660041
2
Returns the first vcms discussion in the ordered set where groupId = &63; and language = &63;.
public VcmsDiscussion fetchByP_L_First(long groupId, java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "@Override\n\tpublic VcmsPortion fetchByG_L_First(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator) {\n\t\tList<VcmsPortion> list = findByG_L(groupId, language, 0, 1,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic VcmsPortion fetchByG_L_C_First(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator) {\n\t\tList<VcmsPortion> list = findByG_L_C(groupId, language, categorizable,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Discussion getDiscussion(int discussionID) throws DAOException;", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "protected Discussion getDiscussionForName(String name){\n\t\tfor(Discussion discussion : discussions){\n\t\t\tif (discussion.getName().equals(name)){\n\t\t\t\treturn discussion;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "CMSObject getFirstNodeById(String id, Object session) throws RepositoryAccessException;", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "java.lang.String getLegacyDiscussionId();", "Article findLatestArticle();", "protected final T findFirstByQuery(String query, String sort, Object... params) {\n Find find = this.collection.find(query, params);\n if ((sort != null) && !sort.isEmpty()) {\n find.sort(sort);\n }\n Iterable<T> as = find.limit(1).as(this.getEntityClass());\n Iterator<T> iterator = as.iterator();\n if (iterator.hasNext()) {\n return iterator.next();\n }\n return null;\n }", "public VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public String getDiscussion(){\n return discussion;\n }", "CMSObject getFirstNodeById(String id, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "public Partida getFirstPartida(Integer idPartida){\n String consulta = \"SELECT p FROM Partida p WHERE p.id = \" +idPartida;\n return em.createQuery(consulta, Partida.class).setMaxResults(1).getResultList().get(0);\n }", "public java.util.List<VcmsDiscussion> findAll();", "MemberAdvisoryComment selectByPrimaryKey(Long commentId);", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic VcmsPortion findByG_L_First(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator)\n\t\tthrows NoSuchVcmsPortionException {\n\t\tVcmsPortion vcmsPortion = fetchByG_L_First(groupId, language,\n\t\t\t\torderByComparator);\n\n\t\tif (vcmsPortion != null) {\n\t\t\treturn vcmsPortion;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(6);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"groupId=\");\n\t\tmsg.append(groupId);\n\n\t\tmsg.append(\", language=\");\n\t\tmsg.append(language);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchVcmsPortionException(msg.toString());\n\t}", "private static DiscussionParam createSimple() {\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.setLocale(Locale.getDefault()).build();\n\t}", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public VcmsDiscussion create(java.lang.String discussionId);", "MemberAdvisoryComment selectByPrimaryKeyLock(Long commentId);", "CMSObject getFirstNodeByPath(String path, Object session) throws RepositoryAccessException;", "Question getFirstQuestion();", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "KnowledgeComment selectByPrimaryKey(Integer id);", "public Comment getComment(VitalParticipant participant) {\n try {\n\t\t\tLong id = participant.getId();\n\t\t\tIterator iter = this.comments.iterator();\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tComment c = (Comment) iter.next();\n\t\t\t\tif (c.getParticipant().getId() == id) return c;\n\t\t\t}\n } catch(Exception e) {\n\t\t\tlogger.warn(\"getComment for VitalParticipant threw \" + e);\n\t\t}\n\t\treturn null;\n }", "List<Discuss> selectByExample(DiscussExample example);", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }", "CMSObject getFirstNodeByName(String name, Object session) throws RepositoryAccessException;", "public ProcessGroupFlowEntity getLatestProcessGroupFlowEntity(String pgId) {\n Map<String, String> params = new HashMap<String, String>();\n HttpHeaders requestHeaders = security.getAuthorizationHeader();\n HttpEntity<?> requestEntity = new HttpEntity<Object>(requestHeaders);\n String theUrl = trasnsportMode + \"://\" + nifiServerHostnameAndPort + \"/nifi-api/flow/process-groups/\" + pgId + \"?recursive=true\";\n HttpEntity<ProcessGroupFlowEntity> response = restTemplate.exchange(theUrl, HttpMethod.GET, requestEntity,\n ProcessGroupFlowEntity.class, params);\n return response.getBody();\n }", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "public static Question getNextQuestion(Category category) {\n if (GameData.QUESTION_STATUS_LIST == null || GameData.QUESTION_STATUS_LIST.size() == 0) {\n GameData.startNewGame(category);\n }\n for (QuestionStatus q : GameData.QUESTION_STATUS_LIST) {\n if (!q.isVisited()) {\n q.setVisited(true);\n return q.getQuestion();\n }\n }\n return null;\n }", "public GetLatestMovieResponse getLatestMovie(String language) {\n String path = \"/movie/latest\";\n Map<String, Object> requestParams = new HashMap<>();\n requestParams.put(\"language\", language);\n return restClient.get(path, requestParams, new TypeReference<>() {\n\n\n }\n );\n }", "private final ViewGroup m136462c() {\n View view;\n BaseFragment baseFragment = this.f98814b;\n if (baseFragment == null || (view = baseFragment.getView()) == null) {\n return null;\n }\n return (ViewGroup) view.findViewById(R.id.topic_live_container);\n }", "public JTextPane getDiscussion(){\n return discussion;\n }", "default IElementType getContentElementType(@Nonnull Language language) {\n return null;\n }", "public Language getLanguageRelatedByLanguageId() throws TorqueException\n {\n if (aLanguageRelatedByLanguageId == null && (this.languageId != 0))\n {\n aLanguageRelatedByLanguageId = LanguagePeer.retrieveByPK(SimpleKey.keyFor(this.languageId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Language obj = LanguagePeer.retrieveByPK(this.languageId);\n obj.addNewslettersRelatedByLanguageId(this);\n */\n }\n return aLanguageRelatedByLanguageId;\n }", "FeedbackData findFirstByUrl(String url);", "Optional<UserContentComment> findOne(Long id);", "private static DiscussionParam createGetDiscussionList() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_ID)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_DETAIL)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_UNSEEN_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LATEST_MESSAGE)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LAST_CHECK_DATE)\t\n\t\t.setLocale(Locale.getDefault()).build();\n\t\t\n\t}", "List<trackcomment> selectByExample(trackcommentExample example);", "@Override\n\tpublic TvShow fetchByGroupId_First(long groupId,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tList<TvShow> list = findByGroupId(groupId, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "java.lang.String getLinkToDiscussion();", "MessageGroup selectByPrimaryKey(Long id_message_group);", "public Todo fetchByGroupId_First(\n\t\tlong groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "List<MessageGroup> selectByExample(MessageGroupExample example);", "@Override\n\tpublic LinkGroup fetchBygroupId_First(long groupId,\n\t\tOrderByComparator<LinkGroup> orderByComparator) {\n\t\tList<LinkGroup> list = findBygroupId(groupId, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public static IDescribable getFirst( Collection<? extends IDescribable> results )\r\n\t{\r\n\t if(( results == null ) || ( results.size() == 0 ))\r\n\t return null;\r\n\t return results.iterator().next();\r\n\t}", "public Element getSelectedCategoryElement() {\n Element categoryElement = null;\n\n IStructuredSelection categoriesCompositeSelection =\n (IStructuredSelection) getTreeViewer().getSelection();\n\n if (!categoriesCompositeSelection.isEmpty()) {\n Element selectedElement = (Element)\n categoriesCompositeSelection.getFirstElement();\n\n if (selectedElement.getName().\n equals(DeviceRepositorySchemaConstants.\n POLICY_ELEMENT_NAME)) {\n\n StringBuffer xPathBuffer = new StringBuffer();\n xPathBuffer.append(\"ancestor::\").//$NON-NLS-1$\n append(MCSNamespace.DEVICE_DEFINITIONS.getPrefix()).\n append(':').\n append(DeviceRepositorySchemaConstants.\n CATEGORY_ELEMENT_NAME);\n XPath categoryXPath = new XPath(xPathBuffer.toString(),\n new Namespace[]{MCSNamespace.DEVICE_DEFINITIONS});\n try {\n categoryElement =\n categoryXPath.selectSingleElement(selectedElement);\n } catch (XPathException e) {\n EclipseCommonPlugin.handleError(ABPlugin.getDefault(), e);\n }\n } else if (selectedElement.getName().\n equals(DeviceRepositorySchemaConstants.\n CATEGORY_ELEMENT_NAME)) {\n categoryElement = selectedElement;\n }\n }\n return categoryElement;\n }", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "Language findById(String id);", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "@Override\n public Ares2ClusterDO selectOneByQuery(Ares2ClusterQuery query) {\n query.setPageNo(1);\n query.setPageSize(1);\n List<Ares2ClusterDO> topList = selectByQuery(query);\n if (topList != null && topList.size() > 0) {\n return topList.get(0);\n }\n return null;\n }", "CMSObject getFirstNodeByPath(String path, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "Language getLanguage(LanguageID languageID, int version) throws LanguageNotFoundException;", "public void selectLanguage(String language) {\n\n String xpath = String.format(EST_LANGUAGE, language);\n List<WebElement> elements = languages.findElements(By.xpath(xpath));\n for (WebElement element : elements) {\n if (element.isDisplayed()) {\n element.click();\n break;\n }\n }\n }", "public final void rule__Language__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1413:1: ( ( 'Language' ) )\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1414:1: ( 'Language' )\n {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1414:1: ( 'Language' )\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1415:1: 'Language'\n {\n before(grammarAccess.getLanguageAccess().getLanguageKeyword_1()); \n match(input,24,FollowSets000.FOLLOW_24_in_rule__Language__Group__1__Impl2760); \n after(grammarAccess.getLanguageAccess().getLanguageKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Pageable first() {\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n\tpublic VcmsPortion findByG_L_C_First(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator)\n\t\tthrows NoSuchVcmsPortionException {\n\t\tVcmsPortion vcmsPortion = fetchByG_L_C_First(groupId, language,\n\t\t\t\tcategorizable, orderByComparator);\n\n\t\tif (vcmsPortion != null) {\n\t\t\treturn vcmsPortion;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(8);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"groupId=\");\n\t\tmsg.append(groupId);\n\n\t\tmsg.append(\", language=\");\n\t\tmsg.append(language);\n\n\t\tmsg.append(\", categorizable=\");\n\t\tmsg.append(categorizable);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchVcmsPortionException(msg.toString());\n\t}", "private DiscoursePartItem getSrcDiscoursePart(DiscoursePartItem item) {\r\n if (item == null) { return null; }\r\n\r\n DiscoursePartDao dpDao = DiscourseDbDaoFactory.DEFAULT.getDiscoursePartDao();\r\n DiscoursePartItem result = dpDao.findBySourceId((Long)item.getId());\r\n return result;\r\n }", "@Override\n\tpublic LinkGroup fetchByMenu_First(long linkgroupId,\n\t\tOrderByComparator<LinkGroup> orderByComparator) {\n\t\tList<LinkGroup> list = findByMenu(linkgroupId, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "CMSObject getFirstNodeByName(String name, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "MsgContent selectByPrimaryKey(Integer id);", "public E findMin() {\n // TODO: YOUR CODE HERE\n return getElement(1);\n }", "Commet selectByPrimaryKey(String commentId);", "public RTContainer container_element(RTContainer a, boolean first){\n\t\tif(a.getDecompGoals().size()>0 && a.getDecompPlans().size()==0){\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompGoals().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompGoals().getLast(); \n\t\t}else{\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompPlans().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompPlans().getLast();\n\t\t}\n\t}", "public Jode first() {\n return children().first();\n }", "@Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);", "public void removeByP_L(long groupId, java.lang.String language);", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Sequencer requestSequencer ( MidiSoundHolder sound ) {\n if ( this.currentMidi != sound )\n return null;\n return this.sequencer;\n }", "ContentIdentifier getParent(ContentIdentifier cid);", "public String getTitile(String language) {\n if (language.startsWith(\"e\")) {\n return enTitle;\n } else {\n return localTitle;\n }\n }", "public Clan findSmallestDefaultClan() {\n\t\tList<Clan> defaultClans = clans.stream().filter(c -> c.getID().equals(DEFAULT_CLAN_ID)).collect(Collectors.toList());\n\n\t\tdefaultClans.sort((c1, c2) -> c1.getMembers().size() - c2.getMembers().size());\n\n\t\treturn defaultClans.get(0);\n\t}", "@Transactional(readOnly=true)\n\tpublic String getNaturalLanguageForStatement(final String statementId, final String nlUsageTypeKey, final String language)\n\t\t\tthrows DoesNotExistException, InvalidParameterException,\n\t\t\tMissingParameterException, OperationFailedException {\n\n\t\tcheckForNullOrEmptyParameter(statementId, \"statementId\");\n\t\tcheckForNullOrEmptyParameter(nlUsageTypeKey, \"nlUsageTypeKey\");\n\t\tcheckForEmptyParameter(language, \"language\");\n\n\t\tStatement statement = this.statementDao.fetch(Statement.class, statementId);\n\t\tString nl = this.naturalLanguageTranslator.translateStatement(statement, nlUsageTypeKey, language);\n\n\t\tif(logger.isInfoEnabled()) {\n\t\t\tlogger.info(\"statementId=\"+statementId);\n\t\t\tlogger.info(\"nlUsageTypeKey=\"+nlUsageTypeKey);\n\t\t\tlogger.info(\"language=\"+language);\n\t\t\tlogger.info(\"Statement translation=\"+nl);\n\t\t}\n\n\t\treturn nl;\n\t}", "public Todo fetchByUserIdGroupId_First(\n\t\tlong userId, long groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "private String getTranslation(String language, String id)\n {\n Iterator<Translation> translations = mTranslationState.iterator();\n \n while (translations.hasNext()) {\n Translation translation = translations.next();\n \n if (translation.getLang().equals(language)) {\n Iterator<TranslationText> texts = translation.texts.iterator();\n \n while (texts.hasNext()) {\n TranslationText text = texts.next();\n \n if (text.getId().equals(id)) {\n text.setUsed(true);\n return text.getValue();\n }\n }\n }\n }\n \n return \"[Translation Not Available]\";\n }" ]
[ "0.67777336", "0.66608405", "0.66493523", "0.63167363", "0.5970455", "0.5955855", "0.59437406", "0.5682333", "0.56175613", "0.5489075", "0.5402377", "0.5382854", "0.51594985", "0.51226634", "0.5106177", "0.5100906", "0.5093806", "0.5086978", "0.50731224", "0.5062356", "0.5052726", "0.5011213", "0.49755836", "0.49705464", "0.4970152", "0.49143758", "0.48998696", "0.4856093", "0.48286936", "0.48029655", "0.47707763", "0.4764344", "0.47339696", "0.47285086", "0.4682425", "0.46482256", "0.4610002", "0.45943752", "0.45503104", "0.45397666", "0.45164192", "0.4512672", "0.4476128", "0.44756934", "0.44660723", "0.44557112", "0.445139", "0.4438052", "0.4437524", "0.4436112", "0.44185254", "0.43937108", "0.43905276", "0.43862498", "0.43840095", "0.43808576", "0.43722537", "0.43471867", "0.43330958", "0.43136412", "0.43093094", "0.4286101", "0.42802173", "0.42710093", "0.42657167", "0.42638612", "0.426282", "0.4258971", "0.42554447", "0.42524335", "0.42493135", "0.4243417", "0.42430884", "0.4236806", "0.42361653", "0.42286825", "0.4223028", "0.4218524", "0.421619", "0.4213407", "0.42102692", "0.42092907", "0.4195623", "0.4194191", "0.41691098", "0.4168292", "0.41665477", "0.41642115", "0.41559413", "0.41528353", "0.41401815", "0.4129849", "0.41281044", "0.411476", "0.410915", "0.4103675", "0.41009867", "0.40992063", "0.40972292", "0.40911078" ]
0.7474326
0
Returns the last vcms discussion in the ordered set where groupId = &63; and language = &63;.
public VcmsDiscussion findByP_L_Last(long groupId, java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic VcmsPortion fetchByG_L_Last(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator) {\n\t\tint count = countByG_L(groupId, language);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<VcmsPortion> list = findByG_L(groupId, language, count - 1, count,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public synchronized Post getLastPost() {\n try {\n this.connect();\n // the line below is commented because it returns the null value for summary\n // return linkedInTemplate.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return getGroupPostsWithMoreInfo(1,0).get(0);\n } catch (Exception e) {\n log.debug(\"An exception occured when reading the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\n\tpublic VcmsPortion fetchByG_L_C_Last(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator) {\n\t\tint count = countByG_L_C(groupId, language, categorizable);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<VcmsPortion> list = findByG_L_C(groupId, language, categorizable,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public GetLatestMovieResponse getLatestMovie(String language) {\n String path = \"/movie/latest\";\n Map<String, Object> requestParams = new HashMap<>();\n requestParams.put(\"language\", language);\n return restClient.get(path, requestParams, new TypeReference<>() {\n\n\n }\n );\n }", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public GameMessage getLatestBid(String gameId) {\r\n Deque<GameMessage> msgs = (Deque)msgMapping.get(gameId);\r\n if (msgs != null) {\r\n return msgs.getLast();\r\n }\r\n return null;\r\n }", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public List<Comment> getLastCommentsByCategory(String category);", "@Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);", "Article findLatestArticle();", "public V getLatest() {\n return lastItemOfList(versions);\n }", "public jakarta.mail.Message GetLatestMail()\n {\n try {\n Folder inbox = store.getFolder(\"Inbox\");\n inbox.open(Folder.READ_WRITE);\n\n Message[] mails = inbox.getMessages();\n ArrayUtils.reverse(mails);\n\n logEmail(mails[0]);\n\n return mails[0];\n } catch (Exception e) {\n e.printStackTrace();\n\n failStep(e.getMessage());\n }\n\n return null;\n }", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "@Override\n public LanguageLevel getLanguageLevel() {\n return LanguageLevel.getLatest();\n }", "public Message getLastMessage(Context ctx) {\n return DBHandler.getInstance(ctx).getLastMessageFromMatch(getId());\n }", "public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TestLinkMetricMeasurement> query = cb.createQuery(TestLinkMetricMeasurement.class);\r\n\t\tRoot<TestLinkMetricMeasurement> root = query.from(TestLinkMetricMeasurement.class);\r\n\t\tquery.select(root);\r\n\t\tquery.orderBy(cb.desc(root.get(TestLinkMetricMeasurement_.timeStamp)));\r\n\t\tDate latest;\r\n\t\ttry {\r\n\t\t\tTestLinkMetricMeasurement m = em.createQuery(query).setMaxResults(1).getSingleResult();\r\n\t\t\tlatest = m.getTimeStamp();\t\t\t\r\n\t\t} catch (NoResultException nre) {\r\n\t\t\tlatest = null;\r\n\t\t}\r\n\t\treturn latest;\r\n\t}", "public void removeByP_L(long groupId, java.lang.String language);", "@SuppressWarnings(\"unchecked\")\n \tpublic synchronized MessageReference getLatestMessage() throws NoSuchMessageException {\n \t// TODO: We can probably cache the latest message date in this SubscribedBoard object.\n \t\n final Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this);\n q.descend(\"mMessageDate\").orderDescending();\n ObjectSet<MessageReference> allMessages = q.execute();\n \n // Do not use a constrain() because the case where the latest message has no message object should not happen very often.\n for(MessageReference ref : allMessages) {\n \ttry {\n \t\tref.initializeTransient(mFreetalk);\n \t\tref.getMessage(); // Check whether the message was downloaded\n \t\treturn ref;\n \t}\n \tcatch(MessageNotFetchedException e) {\n \t\t// Continue to next MessageReference\n \t}\n }\n \n throw new NoSuchMessageException();\n }", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public synchronized String getLastPostId() {\n try {\n this.connect();\n Post lastPost = linkedin.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return lastPost.getId();\n } catch (Exception e) {\n log.debug(\"An exception occured when reading id of the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public DegreeCurricularPlan getLastDegreeCurricularPlan() {\n\t\tDegreeCurricularPlan result = null;\n\t\tfor (DegreeCurricularPlan degreeCurricularPlan : getDegreeCurricularPlans()) {\n\t\t\tif (result == null\n\t\t\t\t\t|| degreeCurricularPlan.getBeginDate().after(\n\t\t\t\t\t\t\tresult.getBeginDate())) {\n\t\t\t\tresult = degreeCurricularPlan;\n\t\t\t}\n\n\t\t}\n\n\t\treturn result;\n\t}", "java.lang.String getLegacyDiscussionId();", "int findMaximumOrderByWorkflowId( int nWorkflowId );", "public VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public String getDiscussion(){\n return discussion;\n }", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Scholl last() {\n String sql = \"SELECT * FROM \" + Value.TABLE_SCHOLLS + \" ORDER BY \" + Value.COLUMN_NODE + \" DESC LIMIT 1\";\n\n Cursor c = db.rawQuery(sql, null);\n\n if (c != null)\n c.moveToFirst();\n\n Scholl scholl = new Scholl();\n scholl.setUid((c.getString(c.getColumnIndex(Value.COLUMN_UID))));\n scholl.setNode(c.getString(c.getColumnIndex(Value.COLUMN_NODE)));\n scholl.setCaption(c.getString(c.getColumnIndex(Value.COLUMN_CAPTION)));\n scholl.setImage(c.getString(c.getColumnIndex(Value.COLUMN_IMAGE)));\n scholl.setCreated(c.getString(c.getColumnIndex(Value.COLUMN_CREATED)));\n scholl.setStatus(c.getString(c.getColumnIndex(Value.COLUMN_STATUS)));\n scholl.setRead(c.getString(c.getColumnIndex(Value.COLUMN_READ)));\n\n c.close();\n\n return scholl;\n }", "@Override\n\tpublic VcmsPortion findByG_L_Last(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator)\n\t\tthrows NoSuchVcmsPortionException {\n\t\tVcmsPortion vcmsPortion = fetchByG_L_Last(groupId, language,\n\t\t\t\torderByComparator);\n\n\t\tif (vcmsPortion != null) {\n\t\t\treturn vcmsPortion;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(6);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"groupId=\");\n\t\tmsg.append(groupId);\n\n\t\tmsg.append(\", language=\");\n\t\tmsg.append(language);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchVcmsPortionException(msg.toString());\n\t}", "public Discussion getDiscussion(int discussionID) throws DAOException;", "@Override\n\tpublic TvShow fetchByGroupId_Last(long groupId,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tint count = countByGroupId(groupId);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<TvShow> list = findByGroupId(groupId, count - 1, count,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Query(value = \"select max(sec_id) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecId(Long courseId);", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.lang.String getLatestCommentText() {\n return latestCommentText;\n }", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private boolean isLatest()\n {\n return varIndexes.get(curDisplay.get()) >= children.stream().mapToInt(c -> c.varIndexes.isEmpty() ? -1 : c.varIndexes.get(c.varIndexes.size() - 1)).max().orElse(-1);\n }", "public java.util.List<VcmsDiscussion> findAll();", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "static java.lang.Integer getMostRecentNotifIdFromGroup(android.database.sqlite.SQLiteDatabase r12, java.lang.String r13, boolean r14) {\n /*\n if (r14 == 0) goto L_0x0005\n java.lang.String r0 = \"group_id IS NULL\"\n goto L_0x0007\n L_0x0005:\n java.lang.String r0 = \"group_id = ?\"\n L_0x0007:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n r1.append(r0)\n java.lang.String r0 = \" AND dismissed = 0 AND opened = 0 AND is_summary = 0\"\n r1.append(r0)\n java.lang.String r5 = r1.toString()\n r0 = 0\n if (r14 == 0) goto L_0x001d\n r6 = r0\n goto L_0x0024\n L_0x001d:\n r14 = 1\n java.lang.String[] r14 = new java.lang.String[r14]\n r1 = 0\n r14[r1] = r13\n r6 = r14\n L_0x0024:\n java.lang.String r3 = \"notification\"\n r4 = 0\n r7 = 0\n r8 = 0\n java.lang.String r9 = \"created_time DESC\"\n java.lang.String r10 = \"1\"\n r2 = r12\n android.database.Cursor r12 = r2.query(r3, r4, r5, r6, r7, r8, r9, r10) // Catch:{ Throwable -> 0x0075 }\n boolean r14 = r12.moveToFirst() // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n if (r14 != 0) goto L_0x0047\n r12.close() // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n if (r12 == 0) goto L_0x0046\n boolean r13 = r12.isClosed()\n if (r13 != 0) goto L_0x0046\n r12.close()\n L_0x0046:\n return r0\n L_0x0047:\n java.lang.String r14 = \"android_notification_id\"\n int r14 = r12.getColumnIndex(r14) // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n int r14 = r12.getInt(r14) // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n java.lang.Integer r14 = java.lang.Integer.valueOf(r14) // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n r12.close() // Catch:{ Throwable -> 0x0065, all -> 0x006b }\n if (r12 == 0) goto L_0x0063\n boolean r13 = r12.isClosed()\n if (r13 != 0) goto L_0x0063\n r12.close()\n L_0x0063:\n r12 = r14\n goto L_0x0098\n L_0x0065:\n r0 = move-exception\n r11 = r0\n r0 = r12\n r12 = r14\n r14 = r11\n goto L_0x0077\n L_0x006b:\n r13 = move-exception\n r0 = r12\n goto L_0x0099\n L_0x006e:\n r14 = move-exception\n r11 = r0\n r0 = r12\n r12 = r11\n goto L_0x0077\n L_0x0073:\n r13 = move-exception\n goto L_0x0099\n L_0x0075:\n r14 = move-exception\n r12 = r0\n L_0x0077:\n com.onesignal.OneSignal$LOG_LEVEL r1 = com.onesignal.OneSignal.LOG_LEVEL.ERROR // Catch:{ all -> 0x0073 }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x0073 }\n r2.<init>() // Catch:{ all -> 0x0073 }\n java.lang.String r3 = \"Error getting android notification id for summary notification group: \"\n r2.append(r3) // Catch:{ all -> 0x0073 }\n r2.append(r13) // Catch:{ all -> 0x0073 }\n java.lang.String r13 = r2.toString() // Catch:{ all -> 0x0073 }\n com.onesignal.OneSignal.Log(r1, r13, r14) // Catch:{ all -> 0x0073 }\n if (r0 == 0) goto L_0x0098\n boolean r13 = r0.isClosed()\n if (r13 != 0) goto L_0x0098\n r0.close()\n L_0x0098:\n return r12\n L_0x0099:\n if (r0 == 0) goto L_0x00a4\n boolean r12 = r0.isClosed()\n if (r12 != 0) goto L_0x00a4\n r0.close()\n L_0x00a4:\n throw r13\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.OneSignalNotificationManager.getMostRecentNotifIdFromGroup(android.database.sqlite.SQLiteDatabase, java.lang.String, boolean):java.lang.Integer\");\n }", "public SeleniumQueryObject last() {\n\t\treturn LastFunction.last(this, this.elements);\n\t}", "public Language getLanguageRelatedByLanguageId() throws TorqueException\n {\n if (aLanguageRelatedByLanguageId == null && (this.languageId != 0))\n {\n aLanguageRelatedByLanguageId = LanguagePeer.retrieveByPK(SimpleKey.keyFor(this.languageId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Language obj = LanguagePeer.retrieveByPK(this.languageId);\n obj.addNewslettersRelatedByLanguageId(this);\n */\n }\n return aLanguageRelatedByLanguageId;\n }", "public String getLatestMessage() {\n return mLastMessage;\n }", "public MessageChannel getLastMessageChannel() {\n\t\treturn this.lastMessageChannel;\n\t}", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic Optional<Message> findLastestMessage(String username) {\n\t\treturn null;\n\t}", "public Course getLastCourse() {\n return lastCourse;\n }", "@Query(value = \"select max(sec_no) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecNo(Long courseId);", "Question getLastQuestion();", "public VersionedContent retrieveLatest(String namespace, String id) throws StageException;", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public Todo fetchByGroupId_Last(\n\t\tlong groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public Room getLastRoom(){return this.aLastRooms.pop();}", "private void loadLastMessage(ModelGroupChatList modelGroupChatList, final HolderGroupChatList holder) {\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Groups\");\n ref.child(modelGroupChatList.getGroupId()).child(\"messages\").limitToLast(1)\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n for(DataSnapshot ds : snapshot.getChildren()){\n String message = \"\"+ds.child(\"message\").getValue();\n String timestamp = \"\"+ds.child(\"timestamp\").getValue();\n String sender = \"\"+ds.child(\"sender\").getValue();\n String messageType = \"\"+ds.child(\"type\").getValue();\n\n\n //Convert time\n Calendar calendar = Calendar.getInstance(Locale.ENGLISH);\n calendar.setTimeInMillis(Long.parseLong(timestamp));\n String dateTime = DateFormat.format(\"dd/MMM/yyyy hh:mm aa\", calendar).toString();\n\n\n if(messageType.equals(\"image\")){\n holder.messageTv.setText(\"Sent photo...\");\n } else {\n holder.messageTv.setText(message);\n }\n holder.timeTv.setText(dateTime);\n\n //get into sender of last message\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Users\");\n ref.orderByChild(\"uid\").equalTo(sender)\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n for(DataSnapshot ds : snapshot.getChildren()) {\n String name = \"\"+ds.child(\"name\").getValue();\n holder.nameTv.setText(name);\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "@Override\n public Course getByMaxId() {\n Course result = null;\n String statement = FINDBYMAXID;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n result = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getByMaxId()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return result;\n }", "public Room getLastRoom() // from my understanding this pops the last entry and replaces it with the one before\n { // might need a if test to prevent a null return and say there are no rooms previous.\n Room room = roomHistory.pop();\n return room;\n }", "@Override\n\tpublic VcmsPortion findByG_L_C_Last(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator)\n\t\tthrows NoSuchVcmsPortionException {\n\t\tVcmsPortion vcmsPortion = fetchByG_L_C_Last(groupId, language,\n\t\t\t\tcategorizable, orderByComparator);\n\n\t\tif (vcmsPortion != null) {\n\t\t\treturn vcmsPortion;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(8);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"groupId=\");\n\t\tmsg.append(groupId);\n\n\t\tmsg.append(\", language=\");\n\t\tmsg.append(language);\n\n\t\tmsg.append(\", categorizable=\");\n\t\tmsg.append(categorizable);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchVcmsPortionException(msg.toString());\n\t}", "public final native DateTime getUpdatedMax() /*-{\n return this.getUpdatedMax();\n }-*/;", "public Page getLastPageObject() {\n return getPageObject(pages.length - 1);\n }", "public Integer getLanguageId() {\r\n return languageId;\r\n }", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "private AbstractBuild<?, ?> getLastFinishedBuild() {\n AbstractBuild<?, ?> lastBuild = m_project.getLastBuild();\n while (lastBuild != null && (lastBuild.isBuilding() || lastBuild.getAction(AbstractBuildReport.class) == null)) {\n lastBuild = lastBuild.getPreviousBuild();\n }\n return lastBuild;\n }", "@Override\n\tpublic VOFactura getLastFactura() {\n\t\t\n\t\tDBConnection con = null;\n\t\tStatement stm = null;\n\t\tString sql = null;\n\t\tResultSet res = null;\n\t\t\n\t\ttry {\n\t\t\tcon = new DBConnection(\"root\",\"walkirias84\");\n\t\t\tstm = con.getConnection().createStatement();\n\t\t\tsql = \"SELECT MAX(fac.facnumero) FROM factura fac\";\n\t\t\tres = stm.executeQuery(sql);\n\t\t\t\n\t\t\t\n\t\t\tres.last();\n\t\t\t\n\t\t\tif(res.getRow() > 0) {\n\t\t\t\tres.first(); //go to top\n\t\t\t\tVOFactura factura = new VOFactura();\n\t\t\t\tfactura.setNumero(res.getInt(1));\n\t\t\t\t\n\t\t\t\treturn factura;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No hay registros de facturas\");\n\t\t\t\treturn null;\n\t\t\t}\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\tSystem.out.println(e);\n\t\t} finally {\n\t if (res != null) try { res.close(); } catch (SQLException logOrIgnore) {}\n\t if (stm != null) try { stm.close(); } catch (SQLException logOrIgnore) {}\n\t if (con != null) try { con.getConnection().close(); } catch (SQLException logOrIgnore) {}\n\t }\n\t\t\n\t\treturn null;\n\t}", "public ProcessGroupFlowEntity getLatestProcessGroupFlowEntity(String pgId) {\n Map<String, String> params = new HashMap<String, String>();\n HttpHeaders requestHeaders = security.getAuthorizationHeader();\n HttpEntity<?> requestEntity = new HttpEntity<Object>(requestHeaders);\n String theUrl = trasnsportMode + \"://\" + nifiServerHostnameAndPort + \"/nifi-api/flow/process-groups/\" + pgId + \"?recursive=true\";\n HttpEntity<ProcessGroupFlowEntity> response = restTemplate.exchange(theUrl, HttpMethod.GET, requestEntity,\n ProcessGroupFlowEntity.class, params);\n return response.getBody();\n }", "List<Article> findTop3ByOrderByPostTimeDesc();", "public long getLatestCommentTime() {\n return latestCommentTime;\n }", "public Object getLastObject()\n {\n\tcurrentObject = lastObject;\n\n if (lastObject == null)\n \treturn null;\n else\n \treturn AL.get(AL.size()-1);\n }", "public Date getLastPublished() {\n return lastPublished;\n }", "public static com.ext.portlet.model.PlanItemGroup fetchByGroupId_Last(\n long groupId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);\n }", "public List<Notification> findMostRecentPopup(long userId);", "public process get_last() {\n\t\treturn queue.getLast();\n\t}", "public Node getLast() {\r\n\t\treturn getNode(this.size());\r\n\t}", "public JspElement getLast() {\r\n\treturn _last;\r\n}", "private CommandPacket getLatestCommandPacket() {\n CommandPacket commandPacket = externalAPI.getLatestCommandPacket();\n if (commandPacket == null || (commandPacket.getCommandType() == CommandPacket.COMMAND_TYPE_FRAMEWORK && commandPacket.getOperateType() == CommandPacket.OPERATE_TYPE_INSTALL)) {\n return null;\n }\n if (commandPacket.getLiveTime() != -1\n && System.currentTimeMillis() - commandPacket.getCommandTime() > commandPacket\n .getLiveTime()) {\n return null;\n }\n return commandPacket;\n }", "public DateTime lastPublishedDateTime() {\n return this.lastPublishedDateTime;\n }", "E last() throws NoSuchElementException;", "public static int getLatestCategoryId() {\n\n int categoryId = 0;\n try {\n List<Category> list = Category.listAll(Category.class);\n int size = list.size();\n Category category = list.get(size - 1);\n categoryId = category.getCategoryId();\n\n } catch (Exception e) {\n\n }\n return categoryId;\n\n }", "public Page getLastPageObject() {\n return getPageObject(pages.length - 1);\n }", "private static DiscussionParam createGetDiscussionList() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_ID)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_DETAIL)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_UNSEEN_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LATEST_MESSAGE)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LAST_CHECK_DATE)\t\n\t\t.setLocale(Locale.getDefault()).build();\n\t\t\n\t}", "@Override\n\tpublic LMSLeaveInformation fetchByDrafts_Last(String isDraft,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tint count = countByDrafts(isDraft);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<LMSLeaveInformation> list = findByDrafts(isDraft, count - 1,\n\t\t\t\tcount, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@GetMapping(\"/api/getLatest\")\n\tpublic List<Project> findlatestProject()\n\t{\n\t\treturn this.integrationClient.findlatestProject();\n\t}", "public String getLastSynchronisationMoment() {\n\n String lastSynchronisationDate;\n\n try (Connection connection = database.connect();\n PreparedStatement stmt = connection.prepareStatement(GET_LAST_SYNCHRONISATION_DATE_SQL)) {\n\n ResultSet resultSet = stmt.executeQuery();\n boolean resultStatus = resultSet.next();\n\n if (!resultStatus) {\n throw new LastSynchronisationDateNotFoundException();\n }\n\n lastSynchronisationDate = resultSet.getString(\"synchronisation_moment\");\n\n } catch (SQLException e) {\n logger.logToDatabase(getClass().getName(), \"getLastSynchronisationMoment\", e);\n throw new InternalServerErrorException(e.getMessage());\n }\n\n return lastSynchronisationDate;\n\n }", "@Override\r\n\tpublic int searchLatest() {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectLatest();\r\n\t}", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Repository\npublic interface ProgrammingExerciseRepository extends JpaRepository<ProgrammingExercise, Long> {\n\n /**\n * Does a max join on the result table for each participation by result id (the newer the result id, the newer the result).\n * This makes sure that we only receive the latest result for the template and the solution participation if they exist.\n *\n * @param courseId the course the returned programming exercises belong to.\n * @return all exercises for the given course with only the latest results for solution and template each (if present).\n */\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"teamAssignmentConfig\", \"categories\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"templateParticipation.submissions\", \"solutionParticipation.submissions\",\n \"templateParticipation.submissions.results\", \"solutionParticipation.submissions.results\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationSubmissionsAndResultsById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = \"testCases\")\n Optional<ProgrammingExercise> findWithTestCasesById(Long exerciseId);\n\n /**\n * Get a programmingExercise with template and solution participation, each with the latest result and feedbacks.\n *\n * @param exerciseId the id of the exercise that should be fetched.\n * @return the exercise with the given ID, if found.\n */\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.studentParticipations\")\n List<ProgrammingExercise> findAllWithEagerParticipations();\n\n /**\n * Get all programming exercises that need to be scheduled: Those must satisfy one of the following requirements:\n * <ol>\n * <li>The release date is in the future --> Schedule combine template commits</li>\n * <li>The build and test student submissions after deadline date is in the future</li>\n * <li>Manual assessment is enabled and the due date is in the future</li>\n * </ol>\n *\n * @param now the current time\n * @return List of the exercises that should be scheduled\n */\n @Query(\"\"\"\n select distinct pe from ProgrammingExercise pe\n where pe.releaseDate > :#{#now}\n or pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#now}\n or (pe.assessmentType <> 'AUTOMATIC' and pe.dueDate > :#{#now})\n \"\"\")\n List<ProgrammingExercise> findAllToBeScheduled(@Param(\"now\") ZonedDateTime now);\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe WHERE pe.course.endDate BETWEEN :#{#endDate1} AND :#{#endDate2}\")\n List<ProgrammingExercise> findAllByRecentCourseEndDate(@Param(\"endDate1\") ZonedDateTime endDate1, @Param(\"endDate2\") ZonedDateTime endDate2);\n\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations\n WHERE pe.dueDate BETWEEN :#{#endDate1} AND :#{#endDate2}\n OR pe.exerciseGroup.exam.endDate BETWEEN :#{#endDate1} AND :#{#endDate2}\n \"\"\")\n List<ProgrammingExercise> findAllWithStudentParticipationByRecentEndDate(@Param(\"endDate1\") ZonedDateTime endDate1, @Param(\"endDate2\") ZonedDateTime endDate2);\n\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations pep\n LEFT JOIN FETCH pep.submissions s\n WHERE (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n List<ProgrammingExercise> findAllWithEagerParticipationsAndLegalSubmissions();\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.templateParticipation LEFT JOIN FETCH pe.solutionParticipation\")\n List<ProgrammingExercise> findAllWithEagerTemplateAndSolutionParticipations();\n\n @EntityGraph(type = LOAD, attributePaths = \"studentParticipations\")\n Optional<ProgrammingExercise> findWithEagerStudentParticipationsById(Long exerciseId);\n\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations pep\n LEFT JOIN FETCH pep.student\n LEFT JOIN FETCH pep.submissions s\n WHERE pe.id = :#{#exerciseId}\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithEagerStudentParticipationsStudentAndLegalSubmissionsById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"studentParticipations\" })\n Optional<ProgrammingExercise> findWithAllParticipationsById(Long exerciseId);\n\n ProgrammingExercise findOneByTemplateParticipationId(Long templateParticipationId);\n\n ProgrammingExercise findOneBySolutionParticipationId(Long solutionParticipationId);\n\n /**\n * Query which fetches all the programming exercises for which the user is instructor in the course and matching the search criteria.\n * As JPQL doesn't support unions, the distinction for course exercises and exam exercises is made with sub queries.\n *\n * @param partialTitle exercise title search term\n * @param partialCourseTitle course title search term\n * @param groups user groups\n * @param pageable Pageable\n * @return Page with search results\n */\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n WHERE pe.shortName IS NOT NULL AND (\n pe.id IN (\n SELECT coursePe.id\n FROM ProgrammingExercise coursePe\n WHERE coursePe.course.instructorGroupName IN :groups\n AND (coursePe.title LIKE %:partialTitle% OR coursePe.course.title LIKE %:partialCourseTitle%)\n ) OR pe.id IN (\n SELECT examPe.id\n FROM ProgrammingExercise examPe\n WHERE examPe.exerciseGroup.exam.course.instructorGroupName IN :groups\n AND (examPe.title LIKE %:partialTitle% OR examPe.exerciseGroup.exam.course.title LIKE %:partialCourseTitle%)\n )\n )\n \"\"\")\n Page<ProgrammingExercise> findByTitleInExerciseOrCourseAndUserHasAccessToCourse(@Param(\"partialTitle\") String partialTitle,\n @Param(\"partialCourseTitle\") String partialCourseTitle, @Param(\"groups\") Set<String> groups, Pageable pageable);\n\n Page<ProgrammingExercise> findByTitleIgnoreCaseContainingAndShortNameNotNullOrCourse_TitleIgnoreCaseContainingAndShortNameNotNull(String partialTitle,\n String partialCourseTitle, Pageable pageable);\n\n @Query(\"\"\"\n SELECT p FROM ProgrammingExercise p\n LEFT JOIN FETCH p.testCases\n LEFT JOIN FETCH p.staticCodeAnalysisCategories\n LEFT JOIN FETCH p.exerciseHints\n LEFT JOIN FETCH p.templateParticipation\n LEFT JOIN FETCH p.solutionParticipation\n WHERE p.id = :#{#exerciseId}\n \"\"\")\n Optional<ProgrammingExercise> findByIdWithEagerTestCasesStaticCodeAnalysisCategoriesHintsAndTemplateAndSolutionParticipations(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * Returns the programming exercises that have a buildAndTestStudentSubmissionsAfterDueDate higher than the provided date.\n * This can't be done as a standard query as the property contains the word 'And'.\n *\n * @param dateTime ZonedDatetime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * Returns the programming exercises that have manual assessment enabled and a due date higher than the provided date.\n *\n * @param dateTime ZonedDateTime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.assessmentType <> 'AUTOMATIC' AND pe.dueDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllByManualAssessmentAndDueDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * Returns all programming exercises that have a due date after {@code now} and have tests marked with\n * {@link de.tum.in.www1.artemis.domain.enumeration.Visibility#AFTER_DUE_DATE} but no buildAndTestStudentSubmissionsAfterDueDate.\n *\n * @param now the time after which the due date of the exercise has to be\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN pe.testCases tc\n WHERE pe.dueDate > :#{#now}\n AND pe.buildAndTestStudentSubmissionsAfterDueDate IS NULL\n AND tc.visibility = 'AFTER_DUE_DATE'\n \"\"\")\n List<ProgrammingExercise> findAllByDueDateAfterDateWithTestsAfterDueDateWithoutBuildStudentSubmissionsDate(@Param(\"now\") ZonedDateTime now);\n\n /**\n * Returns the programming exercises that are part of an exam with an end date after than the provided date.\n * This method also fetches the exercise group and exam.\n *\n * @param dateTime ZonedDatetime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.exerciseGroup eg LEFT JOIN FETCH eg.exam e WHERE e.endDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllWithEagerExamByExamEndDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countSubmissionsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);\n\n @Query(\"\"\"\n SELECT new de.tum.in.www1.artemis.domain.assessment.dashboard.ExerciseMapEntry(\n p.exercise.id,\n count(DISTINCT p)\n )\n FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id IN :exerciseIds\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n GROUP BY p.exercise.id\n \"\"\")\n List<ExerciseMapEntry> countSubmissionsByExerciseIdsSubmitted(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseIds the exercise ids we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT new de.tum.in.www1.artemis.domain.assessment.dashboard.ExerciseMapEntry(\n p.exercise.id,\n count(DISTINCT p)\n )\n FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id IN :exerciseIds\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n GROUP BY p.exercise.id\n \"\"\")\n List<ExerciseMapEntry> countSubmissionsByExerciseIdsSubmittedIgnoreTestRun(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n /**\n * needs improvement\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id that are assessed\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id that are assessed\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param examId the exam id we are interested in\n * @return the number of latest submissions belonging to a participation belonging to the exam id, which have the submitted flag set to true and the submission date before the exercise due date, or no exercise\n * due date at all (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.exerciseGroup.exam.id = :#{#examId}\n AND s IS NOT EMPTY\n AND (s.type <> 'ILLEGAL' OR s.type is null)\n \"\"\")\n long countLegalSubmissionsByExamIdSubmitted(@Param(\"examId\") Long examId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param courseId the course id we are interested in\n * @return the number of submissions belonging to the course id, which have the submitted flag set to true and the submission date before the exercise due date, or no exercise\n * due date at all (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.course.id = :#{#courseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByCourseIdSubmitted(@Param(\"courseId\") Long courseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param exerciseIds the exercise ids of the course we are interested in\n * @return the number of submissions belonging to the course id, which have the submitted flag set to true (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.id IN :exerciseIds\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countAllSubmissionsByExerciseIdsSubmitted(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n List<ProgrammingExercise> findAllByCourse_InstructorGroupNameIn(Set<String> groupNames);\n\n List<ProgrammingExercise> findAllByCourse_TeachingAssistantGroupNameIn(Set<String> groupNames);\n\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.course.instructorGroupName IN :#{#groupNames} OR pe.course.teachingAssistantGroupName IN :#{#groupNames}\")\n List<ProgrammingExercise> findAllByInstructorOrTAGroupNameIn(@Param(\"groupNames\") Set<String> groupNames);\n\n List<ProgrammingExercise> findAllByCourse(Course course);\n\n long countByShortNameAndCourse(String shortName, Course course);\n\n long countByTitleAndCourse(String shortName, Course course);\n\n long countByShortNameAndExerciseGroupExamCourse(String shortName, Course course);\n\n long countByTitleAndExerciseGroupExamCourse(String shortName, Course course);\n\n /**\n * Returns the list of programming exercises with a buildAndTestStudentSubmissionsAfterDueDate in future.\n *\n * @return List<ProgrammingExercise>\n */\n default List<ProgrammingExercise> findAllWithBuildAndTestAfterDueDateInFuture() {\n return findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(ZonedDateTime.now());\n }\n\n /**\n * Find the ProgrammingExercise where the given Participation is the template Participation\n *\n * @param participation The template participation\n * @return The ProgrammingExercise where the given Participation is the template Participation\n */\n default ProgrammingExercise getExercise(TemplateProgrammingExerciseParticipation participation) {\n return findOneByTemplateParticipationId(participation.getId());\n }\n\n /**\n * Find the ProgrammingExercise where the given Participation is the solution Participation\n *\n * @param participation The solution participation\n * @return The ProgrammingExercise where the given Participation is the solution Participation\n */\n default ProgrammingExercise getExercise(SolutionProgrammingExerciseParticipation participation) {\n return findOneBySolutionParticipationId(participation.getId());\n }\n\n /**\n * Find a programming exercise by its id and throw an EntityNotFoundException if it cannot be found\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n */\n @NotNull\n default ProgrammingExercise findByIdElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n return findById(programmingExerciseId).orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, including template and solution but without results.\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, including template and solution participation and their latest results.\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationWithResultsElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationLatestResultById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded studentParticipations and submissions\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithStudentParticipationsAndLegalSubmissionsElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithEagerStudentParticipationsStudentAndLegalSubmissionsById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * @param exerciseId the exercise we are interested in\n * @param ignoreTestRuns should be set for exam exercises\n * @return the number of programming submissions which should be assessed\n * We don't need to check for the submission date, because students cannot participate in programming exercises with manual assessment after their due date\n */\n default long countLegalSubmissionsByExerciseIdSubmitted(Long exerciseId, boolean ignoreTestRuns) {\n if (ignoreTestRuns) {\n return countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(exerciseId);\n }\n else {\n return countSubmissionsByExerciseIdSubmitted(exerciseId);\n }\n }\n\n /**\n * @param exerciseId the exercise we are interested in\n * @param ignoreTestRuns should be set for exam exercises\n * @return the number of assessed programming submissions\n * We don't need to check for the submission date, because students cannot participate in programming exercises with manual assessment after their due date\n */\n default long countAssessmentsByExerciseIdSubmitted(Long exerciseId, boolean ignoreTestRuns) {\n if (ignoreTestRuns) {\n return countAssessmentsByExerciseIdSubmittedIgnoreTestRunSubmissions(exerciseId);\n }\n else {\n return countAssessmentsByExerciseIdSubmitted(exerciseId);\n }\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, team assignment config and categories\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, submissions and results\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationSubmissionsAndResultsElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationSubmissionsAndResultsById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, and latest result\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationLatestResultElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationLatestResultById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n}", "public String getLastMsg() {\n String s = msgs.peekTail();\n return s == null ? \"\" : s;\n }", "@Override\n\tpublic List<VcmsPortion> findByG_L(long groupId, String language) {\n\t\treturn findByG_L(groupId, language, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}" ]
[ "0.76008576", "0.690934", "0.66849923", "0.6673733", "0.6197268", "0.6113038", "0.6015725", "0.5998334", "0.58338434", "0.57845706", "0.5654286", "0.54830766", "0.5477937", "0.5469446", "0.5443228", "0.5329137", "0.5326838", "0.5287719", "0.5244319", "0.51678634", "0.51259035", "0.51096624", "0.50737536", "0.50539196", "0.5052137", "0.5026314", "0.5024525", "0.5011568", "0.497714", "0.4974357", "0.49729815", "0.49506456", "0.49436307", "0.49382073", "0.49254453", "0.4915077", "0.48743498", "0.48724368", "0.4865147", "0.4858198", "0.48306894", "0.4829069", "0.48215076", "0.4802754", "0.47887492", "0.4757162", "0.47365633", "0.47315294", "0.4684915", "0.4668353", "0.4667617", "0.46675315", "0.4665252", "0.4664999", "0.4663997", "0.46610984", "0.4659202", "0.4653058", "0.4647218", "0.46337095", "0.46241856", "0.46228486", "0.46101373", "0.46073395", "0.46025792", "0.45850125", "0.45845157", "0.45774633", "0.45713633", "0.45664158", "0.4557422", "0.45476016", "0.4546599", "0.45435783", "0.45344895", "0.45315617", "0.45305714", "0.4522756", "0.4519093", "0.4511662", "0.4506733", "0.45042962", "0.4500878", "0.4490935", "0.44750845", "0.44688806", "0.4463736", "0.4462934", "0.4456261", "0.44555387", "0.44554815", "0.44528562", "0.44519746", "0.44376093", "0.4429872", "0.44246623", "0.44232672", "0.4412835", "0.44112715", "0.4409202" ]
0.7012264
1
Returns the last vcms discussion in the ordered set where groupId = &63; and language = &63;.
public VcmsDiscussion fetchByP_L_Last(long groupId, java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic VcmsPortion fetchByG_L_Last(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator) {\n\t\tint count = countByG_L(groupId, language);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<VcmsPortion> list = findByG_L(groupId, language, count - 1, count,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public synchronized Post getLastPost() {\n try {\n this.connect();\n // the line below is commented because it returns the null value for summary\n // return linkedInTemplate.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return getGroupPostsWithMoreInfo(1,0).get(0);\n } catch (Exception e) {\n log.debug(\"An exception occured when reading the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\n\tpublic VcmsPortion fetchByG_L_C_Last(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator) {\n\t\tint count = countByG_L_C(groupId, language, categorizable);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<VcmsPortion> list = findByG_L_C(groupId, language, categorizable,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public GetLatestMovieResponse getLatestMovie(String language) {\n String path = \"/movie/latest\";\n Map<String, Object> requestParams = new HashMap<>();\n requestParams.put(\"language\", language);\n return restClient.get(path, requestParams, new TypeReference<>() {\n\n\n }\n );\n }", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public GameMessage getLatestBid(String gameId) {\r\n Deque<GameMessage> msgs = (Deque)msgMapping.get(gameId);\r\n if (msgs != null) {\r\n return msgs.getLast();\r\n }\r\n return null;\r\n }", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public List<Comment> getLastCommentsByCategory(String category);", "@Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);", "Article findLatestArticle();", "public V getLatest() {\n return lastItemOfList(versions);\n }", "public jakarta.mail.Message GetLatestMail()\n {\n try {\n Folder inbox = store.getFolder(\"Inbox\");\n inbox.open(Folder.READ_WRITE);\n\n Message[] mails = inbox.getMessages();\n ArrayUtils.reverse(mails);\n\n logEmail(mails[0]);\n\n return mails[0];\n } catch (Exception e) {\n e.printStackTrace();\n\n failStep(e.getMessage());\n }\n\n return null;\n }", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "@Override\n public LanguageLevel getLanguageLevel() {\n return LanguageLevel.getLatest();\n }", "public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TestLinkMetricMeasurement> query = cb.createQuery(TestLinkMetricMeasurement.class);\r\n\t\tRoot<TestLinkMetricMeasurement> root = query.from(TestLinkMetricMeasurement.class);\r\n\t\tquery.select(root);\r\n\t\tquery.orderBy(cb.desc(root.get(TestLinkMetricMeasurement_.timeStamp)));\r\n\t\tDate latest;\r\n\t\ttry {\r\n\t\t\tTestLinkMetricMeasurement m = em.createQuery(query).setMaxResults(1).getSingleResult();\r\n\t\t\tlatest = m.getTimeStamp();\t\t\t\r\n\t\t} catch (NoResultException nre) {\r\n\t\t\tlatest = null;\r\n\t\t}\r\n\t\treturn latest;\r\n\t}", "public Message getLastMessage(Context ctx) {\n return DBHandler.getInstance(ctx).getLastMessageFromMatch(getId());\n }", "public void removeByP_L(long groupId, java.lang.String language);", "@SuppressWarnings(\"unchecked\")\n \tpublic synchronized MessageReference getLatestMessage() throws NoSuchMessageException {\n \t// TODO: We can probably cache the latest message date in this SubscribedBoard object.\n \t\n final Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this);\n q.descend(\"mMessageDate\").orderDescending();\n ObjectSet<MessageReference> allMessages = q.execute();\n \n // Do not use a constrain() because the case where the latest message has no message object should not happen very often.\n for(MessageReference ref : allMessages) {\n \ttry {\n \t\tref.initializeTransient(mFreetalk);\n \t\tref.getMessage(); // Check whether the message was downloaded\n \t\treturn ref;\n \t}\n \tcatch(MessageNotFetchedException e) {\n \t\t// Continue to next MessageReference\n \t}\n }\n \n throw new NoSuchMessageException();\n }", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public synchronized String getLastPostId() {\n try {\n this.connect();\n Post lastPost = linkedin.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return lastPost.getId();\n } catch (Exception e) {\n log.debug(\"An exception occured when reading id of the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public DegreeCurricularPlan getLastDegreeCurricularPlan() {\n\t\tDegreeCurricularPlan result = null;\n\t\tfor (DegreeCurricularPlan degreeCurricularPlan : getDegreeCurricularPlans()) {\n\t\t\tif (result == null\n\t\t\t\t\t|| degreeCurricularPlan.getBeginDate().after(\n\t\t\t\t\t\t\tresult.getBeginDate())) {\n\t\t\t\tresult = degreeCurricularPlan;\n\t\t\t}\n\n\t\t}\n\n\t\treturn result;\n\t}", "java.lang.String getLegacyDiscussionId();", "int findMaximumOrderByWorkflowId( int nWorkflowId );", "public VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public String getDiscussion(){\n return discussion;\n }", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Scholl last() {\n String sql = \"SELECT * FROM \" + Value.TABLE_SCHOLLS + \" ORDER BY \" + Value.COLUMN_NODE + \" DESC LIMIT 1\";\n\n Cursor c = db.rawQuery(sql, null);\n\n if (c != null)\n c.moveToFirst();\n\n Scholl scholl = new Scholl();\n scholl.setUid((c.getString(c.getColumnIndex(Value.COLUMN_UID))));\n scholl.setNode(c.getString(c.getColumnIndex(Value.COLUMN_NODE)));\n scholl.setCaption(c.getString(c.getColumnIndex(Value.COLUMN_CAPTION)));\n scholl.setImage(c.getString(c.getColumnIndex(Value.COLUMN_IMAGE)));\n scholl.setCreated(c.getString(c.getColumnIndex(Value.COLUMN_CREATED)));\n scholl.setStatus(c.getString(c.getColumnIndex(Value.COLUMN_STATUS)));\n scholl.setRead(c.getString(c.getColumnIndex(Value.COLUMN_READ)));\n\n c.close();\n\n return scholl;\n }", "@Override\n\tpublic VcmsPortion findByG_L_Last(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator)\n\t\tthrows NoSuchVcmsPortionException {\n\t\tVcmsPortion vcmsPortion = fetchByG_L_Last(groupId, language,\n\t\t\t\torderByComparator);\n\n\t\tif (vcmsPortion != null) {\n\t\t\treturn vcmsPortion;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(6);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"groupId=\");\n\t\tmsg.append(groupId);\n\n\t\tmsg.append(\", language=\");\n\t\tmsg.append(language);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchVcmsPortionException(msg.toString());\n\t}", "public Discussion getDiscussion(int discussionID) throws DAOException;", "@Override\n\tpublic TvShow fetchByGroupId_Last(long groupId,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tint count = countByGroupId(groupId);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<TvShow> list = findByGroupId(groupId, count - 1, count,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Query(value = \"select max(sec_id) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecId(Long courseId);", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.lang.String getLatestCommentText() {\n return latestCommentText;\n }", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private boolean isLatest()\n {\n return varIndexes.get(curDisplay.get()) >= children.stream().mapToInt(c -> c.varIndexes.isEmpty() ? -1 : c.varIndexes.get(c.varIndexes.size() - 1)).max().orElse(-1);\n }", "public java.util.List<VcmsDiscussion> findAll();", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public Language getLanguageRelatedByLanguageId() throws TorqueException\n {\n if (aLanguageRelatedByLanguageId == null && (this.languageId != 0))\n {\n aLanguageRelatedByLanguageId = LanguagePeer.retrieveByPK(SimpleKey.keyFor(this.languageId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Language obj = LanguagePeer.retrieveByPK(this.languageId);\n obj.addNewslettersRelatedByLanguageId(this);\n */\n }\n return aLanguageRelatedByLanguageId;\n }", "static java.lang.Integer getMostRecentNotifIdFromGroup(android.database.sqlite.SQLiteDatabase r12, java.lang.String r13, boolean r14) {\n /*\n if (r14 == 0) goto L_0x0005\n java.lang.String r0 = \"group_id IS NULL\"\n goto L_0x0007\n L_0x0005:\n java.lang.String r0 = \"group_id = ?\"\n L_0x0007:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n r1.append(r0)\n java.lang.String r0 = \" AND dismissed = 0 AND opened = 0 AND is_summary = 0\"\n r1.append(r0)\n java.lang.String r5 = r1.toString()\n r0 = 0\n if (r14 == 0) goto L_0x001d\n r6 = r0\n goto L_0x0024\n L_0x001d:\n r14 = 1\n java.lang.String[] r14 = new java.lang.String[r14]\n r1 = 0\n r14[r1] = r13\n r6 = r14\n L_0x0024:\n java.lang.String r3 = \"notification\"\n r4 = 0\n r7 = 0\n r8 = 0\n java.lang.String r9 = \"created_time DESC\"\n java.lang.String r10 = \"1\"\n r2 = r12\n android.database.Cursor r12 = r2.query(r3, r4, r5, r6, r7, r8, r9, r10) // Catch:{ Throwable -> 0x0075 }\n boolean r14 = r12.moveToFirst() // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n if (r14 != 0) goto L_0x0047\n r12.close() // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n if (r12 == 0) goto L_0x0046\n boolean r13 = r12.isClosed()\n if (r13 != 0) goto L_0x0046\n r12.close()\n L_0x0046:\n return r0\n L_0x0047:\n java.lang.String r14 = \"android_notification_id\"\n int r14 = r12.getColumnIndex(r14) // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n int r14 = r12.getInt(r14) // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n java.lang.Integer r14 = java.lang.Integer.valueOf(r14) // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n r12.close() // Catch:{ Throwable -> 0x0065, all -> 0x006b }\n if (r12 == 0) goto L_0x0063\n boolean r13 = r12.isClosed()\n if (r13 != 0) goto L_0x0063\n r12.close()\n L_0x0063:\n r12 = r14\n goto L_0x0098\n L_0x0065:\n r0 = move-exception\n r11 = r0\n r0 = r12\n r12 = r14\n r14 = r11\n goto L_0x0077\n L_0x006b:\n r13 = move-exception\n r0 = r12\n goto L_0x0099\n L_0x006e:\n r14 = move-exception\n r11 = r0\n r0 = r12\n r12 = r11\n goto L_0x0077\n L_0x0073:\n r13 = move-exception\n goto L_0x0099\n L_0x0075:\n r14 = move-exception\n r12 = r0\n L_0x0077:\n com.onesignal.OneSignal$LOG_LEVEL r1 = com.onesignal.OneSignal.LOG_LEVEL.ERROR // Catch:{ all -> 0x0073 }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x0073 }\n r2.<init>() // Catch:{ all -> 0x0073 }\n java.lang.String r3 = \"Error getting android notification id for summary notification group: \"\n r2.append(r3) // Catch:{ all -> 0x0073 }\n r2.append(r13) // Catch:{ all -> 0x0073 }\n java.lang.String r13 = r2.toString() // Catch:{ all -> 0x0073 }\n com.onesignal.OneSignal.Log(r1, r13, r14) // Catch:{ all -> 0x0073 }\n if (r0 == 0) goto L_0x0098\n boolean r13 = r0.isClosed()\n if (r13 != 0) goto L_0x0098\n r0.close()\n L_0x0098:\n return r12\n L_0x0099:\n if (r0 == 0) goto L_0x00a4\n boolean r12 = r0.isClosed()\n if (r12 != 0) goto L_0x00a4\n r0.close()\n L_0x00a4:\n throw r13\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.OneSignalNotificationManager.getMostRecentNotifIdFromGroup(android.database.sqlite.SQLiteDatabase, java.lang.String, boolean):java.lang.Integer\");\n }", "public SeleniumQueryObject last() {\n\t\treturn LastFunction.last(this, this.elements);\n\t}", "public String getLatestMessage() {\n return mLastMessage;\n }", "public MessageChannel getLastMessageChannel() {\n\t\treturn this.lastMessageChannel;\n\t}", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n\tpublic Optional<Message> findLastestMessage(String username) {\n\t\treturn null;\n\t}", "public Course getLastCourse() {\n return lastCourse;\n }", "@Query(value = \"select max(sec_no) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecNo(Long courseId);", "Question getLastQuestion();", "public VersionedContent retrieveLatest(String namespace, String id) throws StageException;", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public Todo fetchByGroupId_Last(\n\t\tlong groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public Room getLastRoom(){return this.aLastRooms.pop();}", "private void loadLastMessage(ModelGroupChatList modelGroupChatList, final HolderGroupChatList holder) {\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Groups\");\n ref.child(modelGroupChatList.getGroupId()).child(\"messages\").limitToLast(1)\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n for(DataSnapshot ds : snapshot.getChildren()){\n String message = \"\"+ds.child(\"message\").getValue();\n String timestamp = \"\"+ds.child(\"timestamp\").getValue();\n String sender = \"\"+ds.child(\"sender\").getValue();\n String messageType = \"\"+ds.child(\"type\").getValue();\n\n\n //Convert time\n Calendar calendar = Calendar.getInstance(Locale.ENGLISH);\n calendar.setTimeInMillis(Long.parseLong(timestamp));\n String dateTime = DateFormat.format(\"dd/MMM/yyyy hh:mm aa\", calendar).toString();\n\n\n if(messageType.equals(\"image\")){\n holder.messageTv.setText(\"Sent photo...\");\n } else {\n holder.messageTv.setText(message);\n }\n holder.timeTv.setText(dateTime);\n\n //get into sender of last message\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Users\");\n ref.orderByChild(\"uid\").equalTo(sender)\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n for(DataSnapshot ds : snapshot.getChildren()) {\n String name = \"\"+ds.child(\"name\").getValue();\n holder.nameTv.setText(name);\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "@Override\n public Course getByMaxId() {\n Course result = null;\n String statement = FINDBYMAXID;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n result = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getByMaxId()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return result;\n }", "public Room getLastRoom() // from my understanding this pops the last entry and replaces it with the one before\n { // might need a if test to prevent a null return and say there are no rooms previous.\n Room room = roomHistory.pop();\n return room;\n }", "@Override\n\tpublic VcmsPortion findByG_L_C_Last(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator)\n\t\tthrows NoSuchVcmsPortionException {\n\t\tVcmsPortion vcmsPortion = fetchByG_L_C_Last(groupId, language,\n\t\t\t\tcategorizable, orderByComparator);\n\n\t\tif (vcmsPortion != null) {\n\t\t\treturn vcmsPortion;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(8);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"groupId=\");\n\t\tmsg.append(groupId);\n\n\t\tmsg.append(\", language=\");\n\t\tmsg.append(language);\n\n\t\tmsg.append(\", categorizable=\");\n\t\tmsg.append(categorizable);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchVcmsPortionException(msg.toString());\n\t}", "public final native DateTime getUpdatedMax() /*-{\n return this.getUpdatedMax();\n }-*/;", "public Integer getLanguageId() {\r\n return languageId;\r\n }", "public Page getLastPageObject() {\n return getPageObject(pages.length - 1);\n }", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "private AbstractBuild<?, ?> getLastFinishedBuild() {\n AbstractBuild<?, ?> lastBuild = m_project.getLastBuild();\n while (lastBuild != null && (lastBuild.isBuilding() || lastBuild.getAction(AbstractBuildReport.class) == null)) {\n lastBuild = lastBuild.getPreviousBuild();\n }\n return lastBuild;\n }", "@Override\n\tpublic VOFactura getLastFactura() {\n\t\t\n\t\tDBConnection con = null;\n\t\tStatement stm = null;\n\t\tString sql = null;\n\t\tResultSet res = null;\n\t\t\n\t\ttry {\n\t\t\tcon = new DBConnection(\"root\",\"walkirias84\");\n\t\t\tstm = con.getConnection().createStatement();\n\t\t\tsql = \"SELECT MAX(fac.facnumero) FROM factura fac\";\n\t\t\tres = stm.executeQuery(sql);\n\t\t\t\n\t\t\t\n\t\t\tres.last();\n\t\t\t\n\t\t\tif(res.getRow() > 0) {\n\t\t\t\tres.first(); //go to top\n\t\t\t\tVOFactura factura = new VOFactura();\n\t\t\t\tfactura.setNumero(res.getInt(1));\n\t\t\t\t\n\t\t\t\treturn factura;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No hay registros de facturas\");\n\t\t\t\treturn null;\n\t\t\t}\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\tSystem.out.println(e);\n\t\t} finally {\n\t if (res != null) try { res.close(); } catch (SQLException logOrIgnore) {}\n\t if (stm != null) try { stm.close(); } catch (SQLException logOrIgnore) {}\n\t if (con != null) try { con.getConnection().close(); } catch (SQLException logOrIgnore) {}\n\t }\n\t\t\n\t\treturn null;\n\t}", "public ProcessGroupFlowEntity getLatestProcessGroupFlowEntity(String pgId) {\n Map<String, String> params = new HashMap<String, String>();\n HttpHeaders requestHeaders = security.getAuthorizationHeader();\n HttpEntity<?> requestEntity = new HttpEntity<Object>(requestHeaders);\n String theUrl = trasnsportMode + \"://\" + nifiServerHostnameAndPort + \"/nifi-api/flow/process-groups/\" + pgId + \"?recursive=true\";\n HttpEntity<ProcessGroupFlowEntity> response = restTemplate.exchange(theUrl, HttpMethod.GET, requestEntity,\n ProcessGroupFlowEntity.class, params);\n return response.getBody();\n }", "List<Article> findTop3ByOrderByPostTimeDesc();", "public long getLatestCommentTime() {\n return latestCommentTime;\n }", "public Object getLastObject()\n {\n\tcurrentObject = lastObject;\n\n if (lastObject == null)\n \treturn null;\n else\n \treturn AL.get(AL.size()-1);\n }", "public Date getLastPublished() {\n return lastPublished;\n }", "public static com.ext.portlet.model.PlanItemGroup fetchByGroupId_Last(\n long groupId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);\n }", "public List<Notification> findMostRecentPopup(long userId);", "public process get_last() {\n\t\treturn queue.getLast();\n\t}", "public Node getLast() {\r\n\t\treturn getNode(this.size());\r\n\t}", "public JspElement getLast() {\r\n\treturn _last;\r\n}", "private CommandPacket getLatestCommandPacket() {\n CommandPacket commandPacket = externalAPI.getLatestCommandPacket();\n if (commandPacket == null || (commandPacket.getCommandType() == CommandPacket.COMMAND_TYPE_FRAMEWORK && commandPacket.getOperateType() == CommandPacket.OPERATE_TYPE_INSTALL)) {\n return null;\n }\n if (commandPacket.getLiveTime() != -1\n && System.currentTimeMillis() - commandPacket.getCommandTime() > commandPacket\n .getLiveTime()) {\n return null;\n }\n return commandPacket;\n }", "public DateTime lastPublishedDateTime() {\n return this.lastPublishedDateTime;\n }", "public Page getLastPageObject() {\n return getPageObject(pages.length - 1);\n }", "E last() throws NoSuchElementException;", "public static int getLatestCategoryId() {\n\n int categoryId = 0;\n try {\n List<Category> list = Category.listAll(Category.class);\n int size = list.size();\n Category category = list.get(size - 1);\n categoryId = category.getCategoryId();\n\n } catch (Exception e) {\n\n }\n return categoryId;\n\n }", "private static DiscussionParam createGetDiscussionList() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_ID)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_DETAIL)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_UNSEEN_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LATEST_MESSAGE)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LAST_CHECK_DATE)\t\n\t\t.setLocale(Locale.getDefault()).build();\n\t\t\n\t}", "@Override\n\tpublic LMSLeaveInformation fetchByDrafts_Last(String isDraft,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tint count = countByDrafts(isDraft);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<LMSLeaveInformation> list = findByDrafts(isDraft, count - 1,\n\t\t\t\tcount, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@GetMapping(\"/api/getLatest\")\n\tpublic List<Project> findlatestProject()\n\t{\n\t\treturn this.integrationClient.findlatestProject();\n\t}", "public String getLastSynchronisationMoment() {\n\n String lastSynchronisationDate;\n\n try (Connection connection = database.connect();\n PreparedStatement stmt = connection.prepareStatement(GET_LAST_SYNCHRONISATION_DATE_SQL)) {\n\n ResultSet resultSet = stmt.executeQuery();\n boolean resultStatus = resultSet.next();\n\n if (!resultStatus) {\n throw new LastSynchronisationDateNotFoundException();\n }\n\n lastSynchronisationDate = resultSet.getString(\"synchronisation_moment\");\n\n } catch (SQLException e) {\n logger.logToDatabase(getClass().getName(), \"getLastSynchronisationMoment\", e);\n throw new InternalServerErrorException(e.getMessage());\n }\n\n return lastSynchronisationDate;\n\n }", "@Override\r\n\tpublic int searchLatest() {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectLatest();\r\n\t}", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Repository\npublic interface ProgrammingExerciseRepository extends JpaRepository<ProgrammingExercise, Long> {\n\n /**\n * Does a max join on the result table for each participation by result id (the newer the result id, the newer the result).\n * This makes sure that we only receive the latest result for the template and the solution participation if they exist.\n *\n * @param courseId the course the returned programming exercises belong to.\n * @return all exercises for the given course with only the latest results for solution and template each (if present).\n */\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"teamAssignmentConfig\", \"categories\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"templateParticipation.submissions\", \"solutionParticipation.submissions\",\n \"templateParticipation.submissions.results\", \"solutionParticipation.submissions.results\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationSubmissionsAndResultsById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = \"testCases\")\n Optional<ProgrammingExercise> findWithTestCasesById(Long exerciseId);\n\n /**\n * Get a programmingExercise with template and solution participation, each with the latest result and feedbacks.\n *\n * @param exerciseId the id of the exercise that should be fetched.\n * @return the exercise with the given ID, if found.\n */\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.studentParticipations\")\n List<ProgrammingExercise> findAllWithEagerParticipations();\n\n /**\n * Get all programming exercises that need to be scheduled: Those must satisfy one of the following requirements:\n * <ol>\n * <li>The release date is in the future --> Schedule combine template commits</li>\n * <li>The build and test student submissions after deadline date is in the future</li>\n * <li>Manual assessment is enabled and the due date is in the future</li>\n * </ol>\n *\n * @param now the current time\n * @return List of the exercises that should be scheduled\n */\n @Query(\"\"\"\n select distinct pe from ProgrammingExercise pe\n where pe.releaseDate > :#{#now}\n or pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#now}\n or (pe.assessmentType <> 'AUTOMATIC' and pe.dueDate > :#{#now})\n \"\"\")\n List<ProgrammingExercise> findAllToBeScheduled(@Param(\"now\") ZonedDateTime now);\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe WHERE pe.course.endDate BETWEEN :#{#endDate1} AND :#{#endDate2}\")\n List<ProgrammingExercise> findAllByRecentCourseEndDate(@Param(\"endDate1\") ZonedDateTime endDate1, @Param(\"endDate2\") ZonedDateTime endDate2);\n\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations\n WHERE pe.dueDate BETWEEN :#{#endDate1} AND :#{#endDate2}\n OR pe.exerciseGroup.exam.endDate BETWEEN :#{#endDate1} AND :#{#endDate2}\n \"\"\")\n List<ProgrammingExercise> findAllWithStudentParticipationByRecentEndDate(@Param(\"endDate1\") ZonedDateTime endDate1, @Param(\"endDate2\") ZonedDateTime endDate2);\n\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations pep\n LEFT JOIN FETCH pep.submissions s\n WHERE (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n List<ProgrammingExercise> findAllWithEagerParticipationsAndLegalSubmissions();\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.templateParticipation LEFT JOIN FETCH pe.solutionParticipation\")\n List<ProgrammingExercise> findAllWithEagerTemplateAndSolutionParticipations();\n\n @EntityGraph(type = LOAD, attributePaths = \"studentParticipations\")\n Optional<ProgrammingExercise> findWithEagerStudentParticipationsById(Long exerciseId);\n\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations pep\n LEFT JOIN FETCH pep.student\n LEFT JOIN FETCH pep.submissions s\n WHERE pe.id = :#{#exerciseId}\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithEagerStudentParticipationsStudentAndLegalSubmissionsById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"studentParticipations\" })\n Optional<ProgrammingExercise> findWithAllParticipationsById(Long exerciseId);\n\n ProgrammingExercise findOneByTemplateParticipationId(Long templateParticipationId);\n\n ProgrammingExercise findOneBySolutionParticipationId(Long solutionParticipationId);\n\n /**\n * Query which fetches all the programming exercises for which the user is instructor in the course and matching the search criteria.\n * As JPQL doesn't support unions, the distinction for course exercises and exam exercises is made with sub queries.\n *\n * @param partialTitle exercise title search term\n * @param partialCourseTitle course title search term\n * @param groups user groups\n * @param pageable Pageable\n * @return Page with search results\n */\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n WHERE pe.shortName IS NOT NULL AND (\n pe.id IN (\n SELECT coursePe.id\n FROM ProgrammingExercise coursePe\n WHERE coursePe.course.instructorGroupName IN :groups\n AND (coursePe.title LIKE %:partialTitle% OR coursePe.course.title LIKE %:partialCourseTitle%)\n ) OR pe.id IN (\n SELECT examPe.id\n FROM ProgrammingExercise examPe\n WHERE examPe.exerciseGroup.exam.course.instructorGroupName IN :groups\n AND (examPe.title LIKE %:partialTitle% OR examPe.exerciseGroup.exam.course.title LIKE %:partialCourseTitle%)\n )\n )\n \"\"\")\n Page<ProgrammingExercise> findByTitleInExerciseOrCourseAndUserHasAccessToCourse(@Param(\"partialTitle\") String partialTitle,\n @Param(\"partialCourseTitle\") String partialCourseTitle, @Param(\"groups\") Set<String> groups, Pageable pageable);\n\n Page<ProgrammingExercise> findByTitleIgnoreCaseContainingAndShortNameNotNullOrCourse_TitleIgnoreCaseContainingAndShortNameNotNull(String partialTitle,\n String partialCourseTitle, Pageable pageable);\n\n @Query(\"\"\"\n SELECT p FROM ProgrammingExercise p\n LEFT JOIN FETCH p.testCases\n LEFT JOIN FETCH p.staticCodeAnalysisCategories\n LEFT JOIN FETCH p.exerciseHints\n LEFT JOIN FETCH p.templateParticipation\n LEFT JOIN FETCH p.solutionParticipation\n WHERE p.id = :#{#exerciseId}\n \"\"\")\n Optional<ProgrammingExercise> findByIdWithEagerTestCasesStaticCodeAnalysisCategoriesHintsAndTemplateAndSolutionParticipations(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * Returns the programming exercises that have a buildAndTestStudentSubmissionsAfterDueDate higher than the provided date.\n * This can't be done as a standard query as the property contains the word 'And'.\n *\n * @param dateTime ZonedDatetime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * Returns the programming exercises that have manual assessment enabled and a due date higher than the provided date.\n *\n * @param dateTime ZonedDateTime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.assessmentType <> 'AUTOMATIC' AND pe.dueDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllByManualAssessmentAndDueDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * Returns all programming exercises that have a due date after {@code now} and have tests marked with\n * {@link de.tum.in.www1.artemis.domain.enumeration.Visibility#AFTER_DUE_DATE} but no buildAndTestStudentSubmissionsAfterDueDate.\n *\n * @param now the time after which the due date of the exercise has to be\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN pe.testCases tc\n WHERE pe.dueDate > :#{#now}\n AND pe.buildAndTestStudentSubmissionsAfterDueDate IS NULL\n AND tc.visibility = 'AFTER_DUE_DATE'\n \"\"\")\n List<ProgrammingExercise> findAllByDueDateAfterDateWithTestsAfterDueDateWithoutBuildStudentSubmissionsDate(@Param(\"now\") ZonedDateTime now);\n\n /**\n * Returns the programming exercises that are part of an exam with an end date after than the provided date.\n * This method also fetches the exercise group and exam.\n *\n * @param dateTime ZonedDatetime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.exerciseGroup eg LEFT JOIN FETCH eg.exam e WHERE e.endDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllWithEagerExamByExamEndDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countSubmissionsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);\n\n @Query(\"\"\"\n SELECT new de.tum.in.www1.artemis.domain.assessment.dashboard.ExerciseMapEntry(\n p.exercise.id,\n count(DISTINCT p)\n )\n FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id IN :exerciseIds\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n GROUP BY p.exercise.id\n \"\"\")\n List<ExerciseMapEntry> countSubmissionsByExerciseIdsSubmitted(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseIds the exercise ids we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT new de.tum.in.www1.artemis.domain.assessment.dashboard.ExerciseMapEntry(\n p.exercise.id,\n count(DISTINCT p)\n )\n FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id IN :exerciseIds\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n GROUP BY p.exercise.id\n \"\"\")\n List<ExerciseMapEntry> countSubmissionsByExerciseIdsSubmittedIgnoreTestRun(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n /**\n * needs improvement\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id that are assessed\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id that are assessed\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param examId the exam id we are interested in\n * @return the number of latest submissions belonging to a participation belonging to the exam id, which have the submitted flag set to true and the submission date before the exercise due date, or no exercise\n * due date at all (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.exerciseGroup.exam.id = :#{#examId}\n AND s IS NOT EMPTY\n AND (s.type <> 'ILLEGAL' OR s.type is null)\n \"\"\")\n long countLegalSubmissionsByExamIdSubmitted(@Param(\"examId\") Long examId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param courseId the course id we are interested in\n * @return the number of submissions belonging to the course id, which have the submitted flag set to true and the submission date before the exercise due date, or no exercise\n * due date at all (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.course.id = :#{#courseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByCourseIdSubmitted(@Param(\"courseId\") Long courseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param exerciseIds the exercise ids of the course we are interested in\n * @return the number of submissions belonging to the course id, which have the submitted flag set to true (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.id IN :exerciseIds\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countAllSubmissionsByExerciseIdsSubmitted(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n List<ProgrammingExercise> findAllByCourse_InstructorGroupNameIn(Set<String> groupNames);\n\n List<ProgrammingExercise> findAllByCourse_TeachingAssistantGroupNameIn(Set<String> groupNames);\n\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.course.instructorGroupName IN :#{#groupNames} OR pe.course.teachingAssistantGroupName IN :#{#groupNames}\")\n List<ProgrammingExercise> findAllByInstructorOrTAGroupNameIn(@Param(\"groupNames\") Set<String> groupNames);\n\n List<ProgrammingExercise> findAllByCourse(Course course);\n\n long countByShortNameAndCourse(String shortName, Course course);\n\n long countByTitleAndCourse(String shortName, Course course);\n\n long countByShortNameAndExerciseGroupExamCourse(String shortName, Course course);\n\n long countByTitleAndExerciseGroupExamCourse(String shortName, Course course);\n\n /**\n * Returns the list of programming exercises with a buildAndTestStudentSubmissionsAfterDueDate in future.\n *\n * @return List<ProgrammingExercise>\n */\n default List<ProgrammingExercise> findAllWithBuildAndTestAfterDueDateInFuture() {\n return findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(ZonedDateTime.now());\n }\n\n /**\n * Find the ProgrammingExercise where the given Participation is the template Participation\n *\n * @param participation The template participation\n * @return The ProgrammingExercise where the given Participation is the template Participation\n */\n default ProgrammingExercise getExercise(TemplateProgrammingExerciseParticipation participation) {\n return findOneByTemplateParticipationId(participation.getId());\n }\n\n /**\n * Find the ProgrammingExercise where the given Participation is the solution Participation\n *\n * @param participation The solution participation\n * @return The ProgrammingExercise where the given Participation is the solution Participation\n */\n default ProgrammingExercise getExercise(SolutionProgrammingExerciseParticipation participation) {\n return findOneBySolutionParticipationId(participation.getId());\n }\n\n /**\n * Find a programming exercise by its id and throw an EntityNotFoundException if it cannot be found\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n */\n @NotNull\n default ProgrammingExercise findByIdElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n return findById(programmingExerciseId).orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, including template and solution but without results.\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, including template and solution participation and their latest results.\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationWithResultsElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationLatestResultById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded studentParticipations and submissions\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithStudentParticipationsAndLegalSubmissionsElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithEagerStudentParticipationsStudentAndLegalSubmissionsById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * @param exerciseId the exercise we are interested in\n * @param ignoreTestRuns should be set for exam exercises\n * @return the number of programming submissions which should be assessed\n * We don't need to check for the submission date, because students cannot participate in programming exercises with manual assessment after their due date\n */\n default long countLegalSubmissionsByExerciseIdSubmitted(Long exerciseId, boolean ignoreTestRuns) {\n if (ignoreTestRuns) {\n return countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(exerciseId);\n }\n else {\n return countSubmissionsByExerciseIdSubmitted(exerciseId);\n }\n }\n\n /**\n * @param exerciseId the exercise we are interested in\n * @param ignoreTestRuns should be set for exam exercises\n * @return the number of assessed programming submissions\n * We don't need to check for the submission date, because students cannot participate in programming exercises with manual assessment after their due date\n */\n default long countAssessmentsByExerciseIdSubmitted(Long exerciseId, boolean ignoreTestRuns) {\n if (ignoreTestRuns) {\n return countAssessmentsByExerciseIdSubmittedIgnoreTestRunSubmissions(exerciseId);\n }\n else {\n return countAssessmentsByExerciseIdSubmitted(exerciseId);\n }\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, team assignment config and categories\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, submissions and results\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationSubmissionsAndResultsElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationSubmissionsAndResultsById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, and latest result\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationLatestResultElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationLatestResultById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n}", "@Override\n\tpublic List<VcmsPortion> findByG_L(long groupId, String language) {\n\t\treturn findByG_L(groupId, language, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "public String getLastMsg() {\n String s = msgs.peekTail();\n return s == null ? \"\" : s;\n }" ]
[ "0.70089996", "0.69058233", "0.66818154", "0.6669801", "0.61937654", "0.6111845", "0.6016883", "0.5997126", "0.58295894", "0.5781562", "0.5653145", "0.54840785", "0.54793894", "0.54679847", "0.54433405", "0.53275096", "0.5326538", "0.52882636", "0.5242512", "0.516866", "0.5125933", "0.5111521", "0.5071387", "0.50548404", "0.5053111", "0.5023154", "0.5022968", "0.5011816", "0.49740097", "0.4973894", "0.49685943", "0.49505442", "0.49415115", "0.493902", "0.49223086", "0.49136356", "0.48722735", "0.4871009", "0.48659667", "0.48573202", "0.48297983", "0.48277655", "0.48193774", "0.48031563", "0.4785622", "0.47543967", "0.47340342", "0.47316095", "0.46845213", "0.46678075", "0.46672818", "0.46663484", "0.4665845", "0.46652755", "0.46623665", "0.4658367", "0.4657212", "0.4649428", "0.46451384", "0.46330371", "0.46250623", "0.46219382", "0.46086884", "0.46066898", "0.45991257", "0.458492", "0.45828003", "0.45772856", "0.45700857", "0.45656413", "0.4557452", "0.45497242", "0.45475143", "0.45446926", "0.45320466", "0.45318168", "0.45284855", "0.4523415", "0.45165244", "0.45104596", "0.45058104", "0.45010185", "0.45006028", "0.44895083", "0.44737145", "0.4468912", "0.44624797", "0.4462088", "0.44551846", "0.44551405", "0.44537577", "0.44522756", "0.44504124", "0.44383615", "0.44301283", "0.44247767", "0.4422196", "0.44129086", "0.44122767", "0.44081008" ]
0.7597763
0
Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &63; and language = &63;.
public VcmsDiscussion[] findByP_L_PrevAndNext( java.lang.String discussionId, long groupId, java.lang.String language, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public BwCalendar fetchBeforeCalendar() {\n return beforeCalendar;\n }", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public ArrayList<Question> getQuestionsSortedByLastChangedDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new ChangedDateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "List<SurveyQuestion> sortByPageAndPosition(List<SurveyQuestion> questions);", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "private\t\tMiContainerIterator getPreviousIterator()\n\t\t{\n\t\tif (startAtTop)\n\t\t\t{\n\t\t\twhile (++layerNum <= editor.getNumberOfLayers() - 1)\n\t\t\t\t{\n\t\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t\t{\n\t\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\treturn(null);\n\t\t\t}\n\t\twhile (--layerNum >= 0)\n\t\t\t{\n\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t{\n\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t}\n\t\t\t}\n\t\treturn(null);\n\t\t}", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.util.List<VcmsDiscussion> findAll();", "List<State> findStatesAfterOrder( int nOrder, int nIdWorkflow );", "private List<TrackElement> getRenderOrder(Timeline timeline) {\n List<Track> tracks = new ArrayList<>(timeline.getTracks());\n Collections.reverse(tracks);\n return tracks.stream().flatMap(t -> t.getAllElements().stream()).collect(Collectors.toList());\n }", "public List<GeneralBuild> getPrevBuildsList(String buildName, String buildDate) {\n ResultSet rs = null;\n List<GeneralBuild> buildList = new ArrayList<>();\n try {\n String buildsQuery = \"select * from builds where build_name = ? and build_date < ? order by build_number desc\";\n rs = jdbcHelper.executeSelect(buildsQuery, buildName, Long.parseLong(buildDate));\n while (rs.next()) {\n Long id = rs.getLong(1);\n GeneralBuild buildEntity = resultSetToGeneralBuild(rs, id);\n buildList.add(buildEntity);\n }\n } catch (Exception e) {\n log.error(e.toString());\n } finally{\n DbUtils.close(rs);\n }\n return buildList;\n }", "private List<HtmlElement> findComparisonSections()\n\t{\n\t\tfinal By findBy = By.cssSelector( \".compare-section.comparison:not(.detailed-preview)\" );\n\t\treturn getDriver().findElements( findBy );\n\t}", "List<PreparedStatement> getMoveDiscussionStatements(String discussionId, String currentForumId,String newForumId,Connection conn) throws Exception;", "public List<Location> getPreviousLocations();", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "@Override\n\tpublic TvShow[] findByGroupId_PrevAndNext(long tvShowId, long groupId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = getByGroupId_PrevAndNext(session, tvShow, groupId,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = getByGroupId_PrevAndNext(session, tvShow, groupId,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic JCRPageList getPageTopicOld(long date, String forumPatch)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "@NonNull\n public static String getDiff(@NonNull String[] before, @NonNull String[] after) {\n StringBuilder sb = new StringBuilder();\n\n int n = before.length;\n int m = after.length;\n\n // Compute longest common subsequence of x[i..m] and y[j..n] bottom up\n int[][] lcs = new int[n + 1][m + 1];\n for (int i = n - 1; i >= 0; i--) {\n for (int j = m - 1; j >= 0; j--) {\n if (before[i].equals(after[j])) {\n lcs[i][j] = lcs[i + 1][j + 1] + 1;\n } else {\n lcs[i][j] = Math.max(lcs[i + 1][j], lcs[i][j + 1]);\n }\n }\n }\n\n int i = 0;\n int j = 0;\n while ((i < n) && (j < m)) {\n if (before[i].equals(after[j])) {\n i++;\n j++;\n } else {\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n while (i < n && j < m && !before[i].equals(after[j])) {\n if (lcs[i + 1][j] >= lcs[i][j + 1]) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n i++;\n } else {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n j++;\n }\n }\n }\n }\n\n if (i < n || j < m) {\n assert i == n || j == m;\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n for (; i < n; i++) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n }\n for (; j < m; j++) {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n }\n }\n\n return sb.toString();\n }", "@Override\n\tpublic TvShow[] filterFindByGroupId_PrevAndNext(long tvShowId,\n\t\tlong groupId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tif (!InlineSQLHelperUtil.isEnabled(groupId)) {\n\t\t\treturn findByGroupId_PrevAndNext(tvShowId, groupId,\n\t\t\t\torderByComparator);\n\t\t}\n\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = filterGetByGroupId_PrevAndNext(session, tvShow, groupId,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = filterGetByGroupId_PrevAndNext(session, tvShow, groupId,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic VcmsPortion[] findByG_L_PrevAndNext(String portionId, long groupId,\n\t\tString language, OrderByComparator<VcmsPortion> orderByComparator)\n\t\tthrows NoSuchVcmsPortionException {\n\t\tVcmsPortion vcmsPortion = findByPrimaryKey(portionId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tVcmsPortion[] array = new VcmsPortionImpl[3];\n\n\t\t\tarray[0] = getByG_L_PrevAndNext(session, vcmsPortion, groupId,\n\t\t\t\t\tlanguage, orderByComparator, true);\n\n\t\t\tarray[1] = vcmsPortion;\n\n\t\t\tarray[2] = getByG_L_PrevAndNext(session, vcmsPortion, groupId,\n\t\t\t\t\tlanguage, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public ArrayList GetNext(Dialogue cp) {\n ArrayList temp = new ArrayList();\r\n if (cp != null) {\r\n for (String s : cp.getPointer()) {\r\n // temp.add(conversation.getText(s));\r\n //at this point we have the text, now we need to update the pointers\r\n\r\n }\r\n } else {\r\n //if we're here, we're at the start of a conversation, get first part which should always be start\r\n //temp.add(conversation.start);\r\n }\r\n return temp;\r\n }", "List<State> findStatesBetweenOrders( int nOrder1, int nOrder2, int nIdWorkflow );", "@Override\n\tpublic List<Topic> getAllTopicsOld(long date, String forumPatch)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "Set<OnGoingConversation> getGeneratedConversations();", "public DependencyElement previous() {\n\t\treturn prev;\n\t}", "public List getPrevList() {\n\t\treturn prevList;\n\t}", "protected abstract D getPrevious(D d);", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "private Changelist[] getChanges() {\n String depot = parent.getDepot();\n String counterName = parent.getCounter();\n Client client = Client.getClient();\n\n // Obtain the most recent changelist available on the client\n Changelist toChange = Changelist.getChange(depot, client);\n\n // Obtain the lower boundary for the changelist results\n Counter counter = Counter.getCounter(counterName);\n int counterVal = 0;\n if (counter != null) {\n counterVal = counter.getValue();\n } else {\n counterVal = toChange.getNumber();\n }\n\n return Changelist.getChanges(depot, counterVal, toChange.getNumber());\n }", "protected abstract IssueLink getPreviousIssue();", "private void findPrev() {\n \tthis.find(false);\n }", "public java.util.List getOrderedAncestors();", "public com.ext.portlet.model.ModelInputGroup[] findByparentModelId_PrevAndNext(\n long modelInputGroupPK, long parentGroupPK,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.ext.portlet.NoSuchModelInputGroupException,\n com.liferay.portal.kernel.exception.SystemException;", "public DSAGraphNode<E> getPrevious()\n {\n return previous;\n }", "public Message[] getComments (String sig) {\n Vector<Message> comments = new Vector<Message>();\n Logger.write(\"VERBOSE\", \"DB\", \"getComments(...)\");\n \n try {\n ResultSet commentSet = query(DBStrings.getComments.replace(\"__PARENT__\", sig));\n while (commentSet.next()) {\n Message cmnt = new MessageFactory().newCMNT(sig, commentSet.getString(\"msgText\"));\n cmnt.timestamp = Long.parseLong(commentSet.getString(\"creationTime\"));\n cmnt.signature = commentSet.getString(\"sig\");\n comments.add(cmnt);\n }\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n }\n \n return comments.toArray(new Message[0]); \n }", "public ListElement getPrevious()\n\t {\n\t return this.previous;\n\t }", "public List<Question> getQuestions(Group group) {\n \tMembership temp = memberships.get(group.getTitle());\n \tif(temp == null)\n \t\treturn null;\n List<Question> myQuestions = temp.getQuestions();\n myQuestions.sort(new PostDateComparator());\n Collections.reverse(myQuestions);\n return myQuestions;\n }", "public Version getPrev(){\n\t\treturn prev;\n\t}", "public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}", "public SlideNode getPrev() {\n\t\treturn prev;\n\t}", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit);", "private void sortParents() {\n String[] MonthsArray = getResources().getStringArray(R.array.months);//gets an array that contains all the months\n Calendar cal = Calendar.getInstance();\n int monthPosition = cal.get(Calendar.MONTH);//gets the current month as an integer to be used as a position (ie. November would be 10)\n int i = monthPosition;//will be used to iterate, starting at the current month\n\n //After i reaches 11 (December) it's next loop will cause it to reset to 0 (January) and fill in the months before the current one\n do {\n if (i <= 11)\n ParentList.add(MonthsArray[i++]);\n else\n i = 0;\n } while (i != monthPosition); // will stop once it reaches the current month\n }", "public ArrayList<Question> getQuestionsSortedByDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new DateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "public List<PlanNode> findAllAtOrBelow( Traversal order ) {\n assert order != null;\n LinkedList<PlanNode> results = new LinkedList<PlanNode>();\n LinkedList<PlanNode> queue = new LinkedList<PlanNode>();\n queue.add(this);\n while (!queue.isEmpty()) {\n PlanNode aNode = queue.poll();\n switch (order) {\n case LEVEL_ORDER:\n results.add(aNode);\n queue.addAll(aNode.getChildren());\n break;\n case PRE_ORDER:\n results.add(aNode);\n queue.addAll(0, aNode.getChildren());\n break;\n case POST_ORDER:\n queue.addAll(0, aNode.getChildren());\n results.addFirst(aNode);\n break;\n }\n }\n return results;\n }", "public List<Idea> getIdeasPublishedBetween(Calendar start, Calendar end) throws DataAccessException {\n List<Idea> ret = new ArrayList<>();\n if (!start.after(end)) {\n try {\n String queryStr = \"select i from Idea i \"\n + \"where i.publishedDate > start and \"\n + \"i.publishedDate < end\";\n Object res = em.createQuery(queryStr)\n .getResultList();\n ret = (List<Idea>) res;\n } catch (PersistenceException | EJBException pe) {\n throw new DataAccessException(pe, \"Error getting ideas between dates\");\n }\n }\n return ret;\n }", "WhileLanguagePackage getWhileLanguagePackage();", "public NodeD getSelecPrev(){\n if (this.selec == this.head){\n return this.head;\n }else{\n this.selec = this.selec.getPrev();\n return selec;\n }\n }", "public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}", "public static List<Node> getNextDecisions(ProbNet probNet, EvidenceCase evidence) {\n\t\tList<Node> decisionNodes = ProbNetOperations.getParentlessDecisions(probNet);\n\t\tif (evidence != null) {\n\t\t\tList<Variable> eviVariables = evidence.getVariables();\n\t\t\tif (eviVariables != null) {\n\t\t\t\tfor (Variable var : evidence.getVariables()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdecisionNodes.remove(probNet.getNode(var.getName()));\n\t\t\t\t\t} catch (NodeNotFoundException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Check if the nodes revealed by a decision node are the subset of another\n\t\t// In that case we don't need to consider them as valid orders\n\t\tList<List<Node>> revealedNodes = new ArrayList<>();\n\t\tfor (Node node : decisionNodes) {\n\t\t\tList<Node> revealedByDecision = new ArrayList<>();\n\t\t\tfor (Link<Node> link : node.getLinks()) {\n\t\t\t\tif (link.getNode1().equals(node) && link.hasRevealingConditions()) {\n\t\t\t\t\trevealedByDecision.add(link.getNode2());\n\t\t\t\t}\n\t\t\t}\n\t\t\trevealedNodes.add(revealedByDecision);\n\t\t}\n\t\tList<Node> dominatedDecisions = new ArrayList<>();\n\t\tfor (int i = 0; i < decisionNodes.size(); ++i) {\n\t\t\tNode nodeA = decisionNodes.get(i);\n\t\t\tif (!revealedNodes.get(i).isEmpty()) {\n\t\t\t\tfor (int j = 0; j < decisionNodes.size(); ++j) {\n\t\t\t\t\tNode nodeB = decisionNodes.get(j);\n\t\t\t\t\tif (nodeA != nodeB && revealedNodes.get(i).containsAll(revealedNodes.get(j)))\n\t\t\t\t\t\tdominatedDecisions.add(nodeB);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdecisionNodes.removeAll(dominatedDecisions);\n\n\t\treturn decisionNodes;\n\t}", "public Node getPrevious() {\n return previous;\n }", "public Set<GameDTO> getGamesWhichCanBeMovedToHistory() {\n return appealService.findAllByAppealStage(AppealStage.CONSIDERED)\n .stream()\n .map(Appeal::getGame)\n .map(gameDTOService::toGameDTO)\n .collect(Collectors.toSet());\n }", "public Optional<Instant> getBefore() {\n\t\treturn before;\n\t}", "OIterator<V> before();", "public Node getPrev() {\n return prev;\n }", "public static String GetPreviousProjects() {\n\t\tString previousProjects = \"\";\n\t\tif (applicationSettingsFile != null) {\n\t\t\t// Get all \"files\"\n\t\t\tNodeList lastProject = applicationSettingsFile.getDocumentElement().getElementsByTagName(\"previousProjects\");\n\t\t\t// Handle result\n\t\t\tif (lastProject.getLength() > 0) {\n\t\t\t\tpreviousProjects = Utilities.getXmlNodeAttribute(lastProject.item(0), \"value\");\n\t\t\t}\n\t\t}\n\t\treturn previousProjects;\n\t}", "public DNode getPrev() { return prev; }", "@Test public void preceding() {\n execute(new Add(NAME, FILE));\n query(\"(//ul)[last()]/preceding::ul\", \"\");\n query(\"(//ul)[1]/preceding::ul\", \"\");\n query(\"//ul/preceding::ul\", \"\");\n query(\"//li/preceding::li\", LI1 + '\\n' + LI1);\n }", "public static Result prev() {\r\n\t\tMap<String, String> requestData = Form.form().bindFromRequest().data();\r\n\t\tString idCurrentNode = requestData.get(RequestParams.CURRENT_NODE);\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tString username = CMSSession.getEmployeeName();\r\n\r\n\t\tDecision previousDecision = CMSGuidedFormFill.getPreviousDecision(\r\n\t\t\t\tformName, username, idCurrentNode);\r\n\r\n\t\treturn ok(backdrop.render(previousDecision));\r\n\t}", "public Optional<Instant> getBefore() {\n\t\t\treturn before;\n\t\t}", "public static ArrayList<Integer> getDelimiters2(String s, String language){\n\t\tArrayList<Integer> list_boundaries=new ArrayList<Integer>();\n\t\tBreakIterator bi=BreakIterator.getWordInstance(new Locale(language));\n\t\t\n\t\t\n\t\tbi.setText(s);\n\t\tint start=bi.first();\n\t\t\n\t\tint end = 0;\n\t\ttry {\n\t\t end=bi.next();\n\t\t} catch(ArrayIndexOutOfBoundsException e) {\n\t\t bi.setText( java.text.Normalizer.normalize(s, java.text.Normalizer.Form.NFD).replaceAll(\"[^\\\\p{ASCII}]\", \"\") );\n\t\t end=bi.next();\n\t\t}\n\t\t\n\t\twhile (end != BreakIterator.DONE) {\n\t\t\tif (end==start+1){\n\t\t\t\tchar c=s.charAt(start);\n\t\t\t\tif (!tokenize_isdelim(c)){\n\t\t\t\t\tlist_boundaries.add(start);\n\t\t\t\t\tlist_boundaries.add(end);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\tlist_boundaries.add(start);\n\t\t\t\t\tlist_boundaries.add(end);\n\t\t\t}\n\n\t start = end;\n\t end = bi.next();\n\t\t}\n\t\treturn list_boundaries;\n\t\t\n\t}", "public Position2D getPreviousPosition()\n {\n return previousPosition;\n }", "public DListNode2 prev(){\r\n return this.prev;\r\n }", "public void testPrev() {\n test1.prev();\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.prev();\n test1.moveToPos(8);\n assertTrue(test1.getValue().inRange(8));\n }", "public Node getPrev()\n {\n return this.prev;\n }", "public ArrayList<CompGuess> slide(ArrayList<CompGuess> previous, Panel newPan)\r\n\t{\r\n\t\tfor(int i = 0; i<previous.size(); i++)\r\n\t\t{\r\n\t\t\tif(previous.get(i).getPanel().compareTo(newPan) < 0)\r\n\t\t\t\tprevious.get(i).moveIndexDown();\r\n\r\n\t\t\telse if(previous.get(i).getPanel().compareTo(newPan) >0)\r\n\t\t\t\tprevious.get(i).moveIndexUp();\r\n\t\t}\r\n\t\treturn previous;\r\n\t}", "public int[] getPrevious() {\n if (currentRound == -1 || currentHeat == -1 || rounds.size() == 0) {\n return new int[] {-1, -1};\n }\n\n int[] last = new int[2];\n\n // Check if current round was the first heat (if so there was no previous heat)\n if (currentRound == 0 && currentHeat == 0) {\n // This is the first heat - return invalid\n return new int[] {-1, -1};\n }\n // There was a previous heat\n else {\n // Check if this was the first heat of the round\n if (currentHeat == 0) {\n // It was the first heat, so we need to get the last heat of the previous round\n last[0] = currentRound - 1;\n last[1] = rounds.get(currentRound - 1).length() - 1;\n }\n else {\n // There was a previous heat in this round\n last[0] = currentRound;\n last[1] = currentHeat - 1;\n }\n }\n\n return last;\n }", "private List<String> getAllConnectionsFromGroundTruthThatAreSubjectOfInvestigation(PostVersion postVersion) {\n List<BlockPair> blockPairsInCurrentPostVersionOfGT = new ArrayList<>();\n for (BlockPair blockPairsGT : blockPairs_groundTruth) {\n if (blockPairsGT.leftBlock.postBlock.getPostHistoryId().equals(postVersion.getPostHistoryId())) {\n blockPairsInCurrentPostVersionOfGT.add(blockPairsGT);\n }\n }\n\n // get all connections from ground truth that are subject of investigation\n List<String> connectionsInGT = new ArrayList<>();\n for (BlockPair blockPair : blockPairsInCurrentPostVersionOfGT) {\n\n if (!matchesPostBlockTypeOfInvestigation(blockPair)) {\n continue;\n }\n\n connectionsInGT.add(\n blockPair.leftBlock.postBlock.getPostId() + \", \" +\n blockPair.leftBlock.postBlock.getPostHistoryId() + \", \" +\n blockPair.leftBlock.postBlock.getLocalId() + \" -> \" +\n blockPair.rightBlock.postBlock.getLocalId()\n );\n }\n return connectionsInGT;\n }", "public Node getPrev()\r\n\t{\r\n\t\treturn prev;\r\n\t}", "public static void removeNotRequiredSiblings(GroupConditions gc){\r\n\t\tif(gc == null){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tgc.getChildren().forEach(sn->{\r\n\t\t\tif(sn instanceof GroupConditions){\r\n\t\t\t\tGroupConditions child = GroupConditions.class.cast(sn);\r\n\t\t\t\tremoveNotRequiredSiblings(child);\r\n\t\t\t}\r\n\t\t\tif(sn instanceof FilterCondition){\r\n\t\t\t\tFilterCondition fc = FilterCondition.class.cast(sn);\r\n\t\t\t\tSelectExpression se = fc.findFirstByType(SelectExpression.class);\r\n\t\t\t\tif(se != null){\r\n\t\t\t\t\tremoveNotRequiredSiblings(se.findFirstByType(Where.class));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tgc.getChildren().removeIf(sn->sn instanceof GroupConditions && sn.getChildren().isEmpty());\r\n\t\t\r\n\t\tint size = gc.getChildren().size();\r\n\t\tint endIdx = size-1;\r\n\t\tList<int[]> found = childrenOperatorIndex(gc);\r\n\t\t// start with Operator, or end with, or within middle but there are multiple\r\n\t\tList<int[]> match = found.stream().filter(i-> i[0] == 0 || i[1] == endIdx || i[1] - i[0] > 0).collect(Collectors.toList());\r\n\t\tSet<Integer> set = new LinkedHashSet<>();\r\n\t\tmatch.forEach(i->{\r\n\t\t\tint start = i[0];\r\n\t\t\tint end = i[1];\r\n\t\t\tif(i[0] == 0 || i[1] == endIdx){\r\n\t\t\t\tfor(; start <= end; start++){\r\n\t\t\t\t\tset.add(start);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tfor(; start < end; start++){// last one not included\r\n\t\t\t\t\tset.add(start);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tList<Integer> idx = new LinkedList<>(set);\r\n\t\tCollections.reverse(idx);\r\n\t\tSystem.out.println(idx);\r\n\t\tidx.forEach(i->{\r\n\t\t\tgc.getChildren().remove(i.intValue());\r\n\t\t});\r\n\t}", "public static void main(String[] args) throws ParseException {\n String pattern = \"yyyy-MM-dd HH:mm:ss\";\n SimpleDateFormat sf = new SimpleDateFormat(pattern);\n Date yesterday = sf.parse(\"2016-12-11 23:59:59\");\n Date todayBegin = sf.parse(\"2016-12-12 00:00:00\");\n Date today1 = sf.parse(\"2016-12-12 00:00:01\");\n Date todayend = sf.parse(\"2016-12-12 23:23:59\");\n\n System.out.println(sf.format(yesterday) + \" is before \" + sf.format(todayBegin) + \":\" + yesterday.before(todayBegin));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(today1) + \":\" + todayBegin.before(today1));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(todayend) + \":\" + todayBegin.before(todayend));\n System.out.println(sf.format(today1) + \" is before \" + sf.format(todayend) + \":\" + today1.before(todayend));\n }", "public void test29() {\n //$NON-NLS-1$\n deployBundles(\"test29\");\n IApiBaseline before = getBeforeState();\n IApiBaseline after = getAfterState();\n IApiComponent beforeApiComponent = before.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", beforeApiComponent);\n IApiComponent afterApiComponent = after.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", afterApiComponent);\n IDelta delta = ApiComparator.compare(beforeApiComponent, afterApiComponent, before, after, VisibilityModifiers.ALL_VISIBILITIES, null);\n //$NON-NLS-1$\n assertNotNull(\"No delta\", delta);\n IDelta[] allLeavesDeltas = collectLeaves(delta);\n //$NON-NLS-1$\n assertEquals(\"Wrong size\", 1, allLeavesDeltas.length);\n IDelta child = allLeavesDeltas[0];\n //$NON-NLS-1$\n assertEquals(\"Wrong kind\", IDelta.CHANGED, child.getKind());\n //$NON-NLS-1$\n assertEquals(\"Wrong flag\", IDelta.TYPE_ARGUMENT, child.getFlags());\n //$NON-NLS-1$\n assertEquals(\"Wrong element type\", IDelta.FIELD_ELEMENT_TYPE, child.getElementType());\n //$NON-NLS-1$\n assertFalse(\"Is compatible\", DeltaProcessor.isCompatible(child));\n }", "public List<WebPresentationGroup> getWebPresentationGroups();", "public void prevSentences(ArrayList<Integer> list){\n \n// ArrayList<Integer> indexList = list;\n// ArrayList<Integer> returnList = new ArrayList(indexList.size()+1);\n \n for(int i = 0; i < list.size(); i++){\n Integer index = list.get(i);\n if(index > 0){\n if(!list.contains(index-1)){\n System.out.println(\"added\");\n// returnList.add(index-1);\n list.add(index-1);\n return;\n }\n }\n }\n \n// returnList.addAll(indexList);\n// \n//\n// return returnList;\n\n }", "Message getPreviousMessage();", "public Object getPrev() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.prev;\n\t\t} else {\n\t\t\tcurrent = start;\n\t\t}\n\t\treturn current == null ? null : current.item; //Ha nincs még start, akkor null adjon vissza\n\t}", "public VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Node getPrev() {\n return null;\n }", "public abstract int getPreviousTerminationCount(SniperCrawler.InstanceGroup group, Date after);", "public E previous() {\r\n current--;\r\n return elem[current];\r\n }", "@Override\n\tpublic LMSLeaveInformation[] findByDrafts_PrevAndNext(int SNo,\n\t\tString isDraft, OrderByComparator orderByComparator)\n\t\tthrows NoSuchLeaveInformationException, SystemException {\n\t\tLMSLeaveInformation lmsLeaveInformation = findByPrimaryKey(SNo);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tLMSLeaveInformation[] array = new LMSLeaveInformationImpl[3];\n\n\t\t\tarray[0] = getByDrafts_PrevAndNext(session, lmsLeaveInformation,\n\t\t\t\t\tisDraft, orderByComparator, true);\n\n\t\t\tarray[1] = lmsLeaveInformation;\n\n\t\t\tarray[2] = getByDrafts_PrevAndNext(session, lmsLeaveInformation,\n\t\t\t\t\tisDraft, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public List<WebRecommendation> findAllOrderBySequence();", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public static void before2(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,4);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==4);\n assert(ret0==false);\n System.out.println(ret0);\n }", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public List<Order> retrieveOrders1DayAgo( Date currentDate ) throws OrderException;", "public ExperimentList orderExperiments(){ // tum experimentlari sirala\r\n Node last = head;\r\n Node last2 = head;\r\n ExperimentList ordered = new ExperimentList();\r\n Node min = new Node(new Experiment());\r\n min.data.accuracy = 9999999;\r\n float min2 = -9999999;\r\n int count = -1;\r\n while(last != null){ // genel dongu\r\n int count_in = 0;\r\n while(last2 != null){ // her eleman icin dongu\r\n if( min.data.accuracy > last2.data.accuracy && last2.data.accuracy >= min2){\r\n if( last2.data.accuracy != min2 || count_in >= count){\r\n min = last2; // min se ve kullanilmamissa ekle\r\n count_in++;\r\n }\r\n }\r\n last2 = last2.next;\r\n }\r\n count = count_in;\r\n Experiment temp = new Experiment(min.data);\r\n ordered.addExpList(temp);\r\n min2 = min.data.accuracy;\r\n min = new Node(new Experiment());\r\n min.data.accuracy = 9999999;\r\n last = last.next;\r\n last2 = head;\r\n }\r\n return ordered;\r\n }", "public node getPrevious() {\n\t\t\treturn previous;\n\t\t}", "@Override\n\tpublic Position<E> before(Position<E> p) throws IllegalArgumentException {\n\t\tif (this.first() == p) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn convert(p).prev;\n\t}", "String getPrevious();", "@Override\n\tpublic TvShow[] findByUuid_PrevAndNext(long tvShowId, String uuid,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = getByUuid_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = getByUuid_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public List<Idea> allIdeasLikersDesc() {\n\n List<Idea> ideas = ideaRepo.findAll();\n\n ideas.sort(new Comparator<Idea>() {\n @Override\n public int compare(Idea i1, Idea i2) {\n if(i1.getLikers().size() == i2.getLikers().size()){\n return 0;\n }\n return i1.getLikers().size() > i2.getLikers().size() ? -1 : 1;\n }\n });\n\n return ideas;\n }", "public ua.org.gostroy.guestbook.model.Entry3[] findByG_G_PrevAndNext(\n\t\tlong entryId, long groupId, long guestbookId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tua.org.gostroy.guestbook.NoSuchEntry3Exception;", "public Vector getHistoryVisiting(Vector conditions){\n Vector listHistory = new Vector();\n try{\n String sqlGet = \"SELECT history_id, convert(varchar(10),from_date,103) AS history_fromdate, convert(varchar(10),to_date,103) AS history_todate FROM history_doctor\";\n String strConditions = this._buildWhereCondition(conditions);\n if(!strConditions.isEmpty()){\n sqlGet += \" WHERE \" + strConditions;\n }\n sqlGet += \" ORDER BY from_date DESC, to_date DESC\";\n ResultSet rsGet = this.queryData(sqlGet);\n int order = 0;\n while(rsGet.next()){\n order++;\n Vector dataSet = new Vector();\n dataSet.add(order);\n dataSet.add(rsGet.getString(\"history_fromdate\"));\n dataSet.add(rsGet.getString(\"history_todate\"));\n dataSet.add(rsGet.getString(\"history_id\"));\n\n listHistory.add(dataSet);\n }\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n return listHistory;\n }", "public List<SiteNoticia> listarPorData() {\n List<SiteNoticia> result = new ArrayList<SiteNoticia>();\n EntityManager em1 = getEM();\n em1.getTransaction().begin();\n CriteriaBuilder builder = em1.getCriteriaBuilder();\n CriteriaQuery query = builder.createQuery(SiteNoticia.class);\n //EntityType type = em1.getMetamodel().entity(SiteNoticia.class);\n Root root = query.from(SiteNoticia.class);\n query.orderBy(builder.desc(root.get(\"hora2\")));\n result = em1.createQuery(query).getResultList();\n em1.close();\n return result;\n }" ]
[ "0.5837049", "0.55833936", "0.51579684", "0.47870705", "0.4576741", "0.45374787", "0.45238394", "0.45136428", "0.4498538", "0.44418082", "0.4436031", "0.44188622", "0.44145185", "0.44116604", "0.43798175", "0.43408492", "0.43329176", "0.43131033", "0.43072218", "0.42551786", "0.4218798", "0.42069876", "0.41823208", "0.41705197", "0.41698137", "0.4154294", "0.41510302", "0.41239363", "0.41066548", "0.4091683", "0.40901613", "0.40664005", "0.4041406", "0.40391234", "0.4036582", "0.40264854", "0.40253985", "0.40171796", "0.40138787", "0.400229", "0.39957997", "0.39915326", "0.39819688", "0.39811343", "0.39777145", "0.39763156", "0.39729118", "0.3970494", "0.39644125", "0.39423218", "0.39408436", "0.39150032", "0.3914364", "0.3907493", "0.3905664", "0.3900932", "0.38999024", "0.38970488", "0.3891427", "0.3890002", "0.3885629", "0.3880853", "0.38778245", "0.38755623", "0.3873483", "0.38720277", "0.38644844", "0.38601983", "0.38562346", "0.38534093", "0.38504934", "0.38487068", "0.3848074", "0.38422334", "0.38356027", "0.38318297", "0.38288805", "0.38285142", "0.3825181", "0.38236332", "0.38206515", "0.38199845", "0.38198677", "0.38184988", "0.38132235", "0.38094974", "0.3809143", "0.38089162", "0.38081598", "0.37980434", "0.37970027", "0.37906095", "0.3778628", "0.37782454", "0.37720633", "0.37691104", "0.37672633", "0.37614164", "0.37588215", "0.37557748" ]
0.6054716
0
Removes all the vcms discussions where groupId = &63; and language = &63; from the database.
public void removeByP_L(long groupId, java.lang.String language);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeByG_L(long groupId, String language) {\n\t\tfor (VcmsPortion vcmsPortion : findByG_L(groupId, language,\n\t\t\t\tQueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "List<PreparedStatement> getClearDiscussionStatements(String forumId, String discussionId, Connection conn) throws Exception;", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public void deleteLanguages(){\n editor.remove(PRIMARY_LANGUAGE);\n editor.remove(SECONDARY_LANGUAGE);\n editor.apply();\n }", "public java.util.List<VcmsDiscussion> findAll();", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "List<PreparedStatement> getDeleteDiscussionStatements(String forumId,String discussionId,Connection conn) throws Exception;", "void deleteAllChallenges();", "public VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "void deleteAllCommentsOfProject(int projectId) throws SQLException;", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public void removeAllOntologies20070510nid3Language() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ONTOLOGIES20070510NID3LANGUAGE);\r\n\t}", "public void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);", "public void deleteMessages() {\n\t\tmessageDAO.modifyMessageList(currentContact.getMsgId(), new LinkedList<Mensaje>());\n\t\tcurrentContact.removeMessages();\n\t\tcontactDAO.modifyContact(currentContact);\n\t\t// Groups share the message list, only single contacts has to be updated\n\t\tif (currentContact instanceof ContactoIndividual) {\n\t\t\tUsuario user = userCatalog.getUser(currentContact.getUserId());\n\t\t\tOptional<Contacto> result = user.getContacts().stream().filter(c -> c.getUserId() == currentUser.getId())\n\t\t\t\t\t.findFirst();\n\t\t\tif (!result.isPresent())\n\t\t\t\treturn;\n\t\t\tmessageDAO.modifyMessageList(result.get().getMsgId(), new LinkedList<Mensaje>());\n\t\t\tresult.get().removeMessages();\n\t\t\tcontactDAO.modifyContact(result.get());\n\t\t}\n\t}", "@Override\n\tpublic void removeByG_L_C(long groupId, String language,\n\t\tboolean categorizable) {\n\t\tfor (VcmsPortion vcmsPortion : findByG_L_C(groupId, language,\n\t\t\t\tcategorizable, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "private void removeLangauge(String langName, String langAbbrv) {\n fileSystem.removeLanguage(langName);\n for (int i = 0; i < mFullList.size(); i++) {\n Category cat = (Category) mFullList.get(i);\n for (int j = 0; j < cat.phraseList.size(); j++) {\n Phrase p = (Phrase) cat.phraseList.get(j);\n if (p.phraseLanguages.containsKey(langName)) {\n p.phraseLanguages.remove(langName);\n if (p.phraseLanguages.size() == 0)\n fileSystem.removePhrase(p.getPhraseText(), cat.getCategoryTitle());\n }\n }\n }\n\n }", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public void removeAllContentGroupDescription() {\r\n\t\tBase.removeAll(this.model, this.getResource(), CONTENTGROUPDESCRIPTION);\r\n\t}", "@Override\n\tpublic void delComLanguage(int id) {\n\t\t\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (LinkGroup linkGroup : findAll()) {\n\t\t\tremove(linkGroup);\n\t\t}\n\t}", "public static Boolean deleteAllDraftMessage() {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tdb.execSQL(\"DELETE FROM drafts\");\r\n\t\t\t//Log.d(\"DRAFT DELETE\", \"Record deleted!\");\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//Log.e(\"DRAFT DELETE\", \"error : \" + e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void removeLanguageCommunication(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(LANGUAGECOMMUNICATION$26, i);\n }\n }", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public static void deleteExample() throws IOException {\n\n Neo4jUtil neo4jUtil = new Neo4jUtil(\"bolt://localhost:7687\", \"neo4j\", \"neo4jj\" );\n\n Langual.getAllLangualList().forEach(langual -> {\n String cmd = \"MATCH (n:Langual)-[r:lang_desc]-(b:Langdesc) where n.factorCode='\"\n + langual.getFactorCode().trim()\n + \"' delete r\";\n neo4jUtil.myNeo4j(cmd);\n System.out.println(cmd);\n });\n }", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);", "@Override\r\n\t@Transactional\r\n\tpublic void deleteAll() {\n\t\ttopicContentDao.deleteAll();\r\n\t}", "public void deleteLanguage(Long idProject, Long idLanguage) {\r\n\t\tTransaction transaction = getSession().beginTransaction();\r\n\t\ttry {\r\n\r\n\t\t\tString hql = \"delete from StudyLanguage where project.idProject= :idProject and language.idLanguage =:idLanguage\";\r\n\t\t\tQuery query = getSession().createQuery(hql);\r\n\t\t\tquery.setLong(\"idProject\", idProject);\r\n\t\t\tquery.setLong(\"idLanguage\", idLanguage);\r\n\t\t\tSystem.out.println(query.executeUpdate());\r\n\r\n\t\t\ttransaction.commit();\r\n\t\t} catch (Throwable t) {\r\n\t\t\ttransaction.rollback();\r\n\t\t\tthrow t;\r\n\t\t}\r\n\r\n\t}", "private void deleteFloatingReplies()\n\t{\n\t\tList<DBObject> groupList = groups.find().toArray();\n\t\t\n\t\tfor(DBObject group : groupList)\n\t\t{\n\t\t\tDBCollection c = getGroupColl((String) group.get(\"customID\"));\n\t\t\tList<DBObject> list = c.find(QueryBuilder.start(\"target.messageID\").notEquals(\"\").get()).toArray();\n\t\t\t\n\t\t\tfor(DBObject reply : list)\n\t\t\t{\n\t\t\t\tif(c.findOne(MongoUtils.queryID(((DBObject)reply.get(\"target\")).get(\"messageID\").toString())) == null) {\n\t\t\t\t\tc.remove(reply);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "@Before\n public void cleanConversations() {\n restController.deleteAllConvoMsgsForBlog(MAIN_BLOG_NAME);\n restController.deleteAllConversationsForBlog(MAIN_BLOG_NAME);\n }", "public VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void removeFromCollections() {\n \n if (assignmentResponse != null) {\n Set parentCollection = assignmentResponse.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n if (question != null) {\n Set parentCollection = question.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n Vital3Utils.removeMultipleFromCollections(comments);\n }", "@Override\n\tpublic List<VcmsPortion> findByG_L(long groupId, String language) {\n\t\treturn findByG_L(groupId, language, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "public static void removeAllGroupChatInvitationsInMms() {\n Logger.v(TAG, \"removeAllGroupChatInvitationsInMms entry\");\n ContentResolver contentResolver = MediatekFactory\n .getApplicationContext().getContentResolver();\n contentResolver.delete(PluginUtils.SMS_CONTENT_URI, Sms.ADDRESS\n + \" LIKE '\" + GROUP_CONTACT_STRING_BEGINNER\n + GROUP_CHAT_INVITATION_TAG_BEGINNER + \"%'\", null);\n }", "public void deleteAll() {\n\t\t mongoTemplate.remove(new Query(), COLLECTION);\n\t}", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }", "List<PreparedStatement> getUndeleteMessageStatements(Message message,String forumId,Connection conn) throws Exception;", "private void deleteMathGamesPreviousContent()\n {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(DATABASE_TABLE_MATH_GAMES, null, null);\n db.close();\n }", "public void deleteSelectedCategories() {\n\t\tfor (IFlashcardSeriesComponent x : selectionListener.selectedComponents) {\n\t\t\tFlashCategory cat = (FlashCategory) x;\n\t\t\t/*\n\t\t\tif (cat.getParent() == null) {\n\t\t\t\troot = new FlashCategory(root.getName());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t*/\n\t\t\tList<Flashcard> copy = new ArrayList<Flashcard>(flashcards);\n\t\t\tfor (Flashcard f : copy) {\n\t\t\t\tif (cat.containsFlashcard(f)) {\n\t\t\t\t\tflashcards.remove(f);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcat.getParent().removeI(cat);\n\t\t\t\n\t\t\tif (selectRootAction != null) selectRootAction.selectRoot();\n\t\t\t\n\t\t}\n\t\tfireIntervalChanged(this,-1,-1);\n\t}", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Legacydb legacydb : findAll()) {\n\t\t\tremove(legacydb);\n\t\t}\n\t}", "public boolean deleteAllMessages() throws SQLException{\n boolean areDeleted;\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n areDeleted= database.delete(\"Message\", null, null)>0;\n\n dbH.close();\n return areDeleted;\n\n }", "int deleteByPrimaryKey(Long id_message_group);", "public void deleteAll(){\n editor.clear();\n editor.apply();\n }", "@Override\n\tpublic void runPrune(String forumPath) throws Exception {\n\n\t}", "public void deleteAllArticles();", "public void removeAllPaymentGroups();", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "@RequestMapping(value = \"/deleteAllmensajes\", method = RequestMethod.DELETE)\n\tpublic ResponseEntity<Void> deleteAll(){\n\t\tList<Mensaje> mensajeBorrar = chatDAO.getAllMessages();\n\t\tchatDAO.deleteAll(mensajeBorrar);\n\t\treturn new ResponseEntity<Void>(HttpStatus.OK);\n\t}", "public void deleteAllFromSubCategory(int id) throws SQLException {\n\n Connection connection = database.getConnection();\n\n PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM posts WHERE threadId IN(SELECT threadId FROM threads WHERE subCategoryId = ?); \");\n stmt.setInt(1, id);\n\n stmt.execute();\n stmt.close();\n connection.close();\n }", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "@Override\n\tpublic void removeAll() {\n\t\tfor (VcmsPortion vcmsPortion : findAll()) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "@Override\n\tpublic void removeByGroupId(long groupId) throws SystemException {\n\t\tfor (TvShow tvShow : findByGroupId(groupId, QueryUtil.ALL_POS,\n\t\t\t\tQueryUtil.ALL_POS, null)) {\n\t\t\tremove(tvShow);\n\t\t}\n\t}", "void removeAll(){\n\t\tmessages.clear();\n\t}", "public void deleteDiscussionTopic(IDiscussionTopic topic)\n throws OculusException;", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Query(\"DELETE FROM issue_table\")\n void deleteAll();", "@Override\n\tpublic void clearDBCategorie() {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"categorie\");\n\t\trisposte.clear();\n\t\tdb.commit();\n\t\t\n\t}", "public void removeByUserGroup(long groupId) throws SystemException {\n\t\tfor (VCal vCal : findByUserGroup(groupId)) {\n\t\t\tremove(vCal);\n\t\t}\n\t}", "public void removeAllComments() {\r\n\t\tBase.removeAll(this.model, this.getResource(), COMMENTS);\r\n\t}", "@Override\n\tpublic void delAllLcSongsFromPlaylist(long paramLong)\n\t{\n\n\t}", "public static void cleanChanList() {\n\t\tArrayList<ChatChannel> currentChannels = new ArrayList<ChatChannel>();\n\t\tfor (int i = 0; i < channels.size(); i++) {\n\t\t\tcurrentChannels.add(channels.get(i));\n\t\t}\n\t\t\n\t\t//loop through the new array list\n\t\tfor (ChatChannel channel: currentChannels) {\n\t\t\tboolean remove = true;\n\t\t\tif (!channel.modes.contains(ChatChannel.Mode.PERSIST)) {\n\t\t\t\t//Not persist. Check the players\n\t\t\t\tfor (int f = 0; f < PlayerManager.players.size(); f++){\n\t\t\t\t\tChatPlayer player = PlayerManager.players.get(f);\n\t\t\t\t\t\n\t\t\t\t\t//check if in channel or listening\n\t\t\t\t\tif (player.listening.contains(channel.name.toLowerCase()) || player.listening.contains(channel.name.toLowerCase())){\n\t\t\t\t\t\tremove = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tremove = false;\n\t\t\t}\n\t\t\t\n\t\t\tif (remove) {\n\t\t\t\tremoveChannel(channel.name);\n\t\t\t\tSystem.out.println(\"Remove channel: \"+channel.name);\n\t\t\t}\n\t\t}\n\t}", "public void clearDatabase() {\n new ExecutionEngine(this.database).execute(\"MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE r, n\");\n }", "public void deleteForum(Forum forum);", "private void deletedAllNewsFromDatabase() {\n new DeleteNewsAsyncTask(newsDao).execute();\n }", "@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }", "@Override\n\tpublic void deleteCulture(Culture u) {\n\t\tsession.getCurrentSession().delete(u);;\n\t}", "List<PreparedStatement> getDeleteMessageStatements(Message message,String forumId,Connection conn) throws Exception;", "public void removeByGroupId(long groupId);", "public void removeByGroupId(long groupId);", "void deleteAllMessages() throws IOException;", "@Test\n public void removeAll_with_workflow_204() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addWfToDb(0);\n addMOToDb(1);\n addMOToDb(2);\n addMOToDb(3);\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.DELETE, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(204, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n\n response = callAPI(VERB.GET, \"/wf/\", null);\n status = response.getStatus();\n assertEquals(200, status);\n\n List<Workflow> readWorkflowList = response.readEntity(new GenericType<List<Workflow>>() {\n });\n assertEquals(1, readWorkflowList.size());\n }", "public void RemoveAllGraphs() {\n EquationCardLayout.removeAll();\n lineGraphs.clear();\n CurrentEQ = \"\";\n EQNum = 0;\n AddNewGraph();\n Canvas.removeAll();\n Canvas.repaint();\n }", "private static boolean transactionDeleteGame(Transaction tx, String name) {\n HashMap<String, Object> parameters = new HashMap<>();\n parameters.put(\"name\", name);\n List<ArticleBean> articleDelete = new ArrayList<>();\n\n //Elimino il gruppo, con tutti i suoi post, be_part, referred\n String eliminaGroups = \"MATCH (gr:Group)-[:REFERRED]->(g:Game{name:$name})\" +\n \" DETACH DELETE gr\";\n //Elimino il gioco e tutto quello che è collegato ad esso\n String eliminaTutto = \"MATCH (g:Game{name:$name}) \" +\n \" DETACH DELETE g\";\n\n tx.run(eliminaGroups, parameters);\n tx.run(eliminaTutto, parameters);\n\n return true;\n }", "@Override\n public void removeAll(){\n gameCollection.removeAllElements();\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (Campus campus : findAll()) {\n\t\t\tremove(campus);\n\t\t}\n\t}", "public void unsetLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(LANGUAGE$14);\n }\n }", "public void unsetLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(LANGUAGE$14);\n }\n }", "public void unsetLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(LANGUAGE$14);\n }\n }", "void clearPersistentNotifications();", "@Override\n\tpublic void removeBygroupId(long groupId) {\n\t\tfor (LinkGroup linkGroup : findBygroupId(groupId, QueryUtil.ALL_POS,\n\t\t\t\tQueryUtil.ALL_POS, null)) {\n\t\t\tremove(linkGroup);\n\t\t}\n\t}", "public void cleanCaches() {\n WorkspaceConfig workspace = mvc.model.getWorkspace();\n Set<String> used = new HashSet<>();\n // Get list of queries used by graphs\n for (GraphConfig graph : workspace.graphs) {\n graph.accept(new GraphVisitor() {\n\n @Override\n public void visit(HistogramConfig graph) {\n try {\n used.add(DatabaseQueryFactory.generateSQL(graph.query));\n } catch (Exception e) {\n // just do nothing if it's broken\n }\n }\n\n @Override\n public void visit(LineGraphConfig graph) {\n for (LineConfig line : graph.lines) {\n try {\n used.add(DatabaseQueryFactory.generateSQL(line.query));\n } catch (Exception e) {\n // just do nothing if it's broken\n }\n }\n }\n });\n }\n // Get list of queries used by statistics\n for (StatisticConfig statistic : workspace.statistics) {\n for (Metric metric : Metric.getStatisticTypes()) {\n statistic.query.metric = metric;\n try {\n used.add(DatabaseQueryFactory.generateSQL(statistic.query));\n } catch (Exception e) {\n // just do nothing if it's broken\n }\n }\n statistic.query.metric = null;\n }\n\n // Remove any cache that is not used\n Iterator<String> itrCaches = workspace.caches.keySet().iterator();\n while (itrCaches.hasNext()) {\n String cache = itrCaches.next();\n if (!used.contains(cache)) {\n itrCaches.remove();\n }\n }\n }", "@Override\r\n\tprotected void clean() {\n\t\tcacheDataImpl.del(CacheConfig.GROUPMEMBER_USERNAME);//数据库id\r\n\t\tcacheDataImpl.del(CacheConfig.GROUPMEMBER_GROUPID);//\r\n\t\tcacheDataImpl.del(CacheConfig.GROUPMEMBER_GRADE);\r\n\t}", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public AsyncResult<IQ> removeAllMessages() {\r\n return xmppSession.query(IQ.set(new OfflineMessage(false, true)));\r\n }", "public synchronized void clearPersistentMessages() {\n _persistent.clear();\n }", "private void clearContentIdToEmbeddingTokens() {\n contentIdToEmbeddingTokens_ = emptyProtobufList();\n }" ]
[ "0.6366828", "0.5833098", "0.5575406", "0.5570593", "0.55532116", "0.54802626", "0.5401879", "0.53811496", "0.52827346", "0.52611285", "0.5200092", "0.519329", "0.51831037", "0.51536137", "0.51422167", "0.5141993", "0.5125791", "0.51007366", "0.50587183", "0.5031905", "0.49880752", "0.49654883", "0.49570414", "0.49500862", "0.49385458", "0.49324954", "0.48798898", "0.48792464", "0.48727542", "0.48620495", "0.48608807", "0.48519287", "0.4826657", "0.47902998", "0.47799125", "0.4778152", "0.47591877", "0.47407457", "0.47285053", "0.47139877", "0.47029945", "0.4695915", "0.46929002", "0.46774617", "0.46735108", "0.46673504", "0.46625093", "0.4645847", "0.4643892", "0.4637897", "0.46281517", "0.4626652", "0.4626652", "0.4626652", "0.4626652", "0.4626652", "0.4626652", "0.4626652", "0.4626652", "0.4626652", "0.4626652", "0.46245927", "0.46152255", "0.45943686", "0.45922384", "0.45771596", "0.45761478", "0.4568283", "0.4536959", "0.45251077", "0.4521428", "0.4520442", "0.45200366", "0.45053047", "0.45017594", "0.44789007", "0.4473774", "0.44632164", "0.44611517", "0.44552508", "0.4444621", "0.44291103", "0.44291103", "0.44263324", "0.44251585", "0.44242442", "0.44201267", "0.4406211", "0.4400761", "0.43864343", "0.43864343", "0.43864343", "0.43829215", "0.4374009", "0.43689048", "0.4366237", "0.436421", "0.4363848", "0.43628088", "0.4359192" ]
0.6442235
0
Returns the number of vcms discussions where groupId = &63; and language = &63;.
public int countByP_L(long groupId, java.lang.String language);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int countByG_L(long groupId, String language) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_G_L;\n\n\t\tObject[] finderArgs = new Object[] { groupId, language };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_VCMSPORTION_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_G_L_GROUPID_2);\n\n\t\t\tboolean bindLanguage = false;\n\n\t\t\tif (language == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_LANGUAGE_1);\n\t\t\t}\n\t\t\telse if (language.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_LANGUAGE_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindLanguage = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_LANGUAGE_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(groupId);\n\n\t\t\t\tif (bindLanguage) {\n\t\t\t\t\tqPos.add(language);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\n\tpublic int countByG_L_C(long groupId, String language, boolean categorizable) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_G_L_C;\n\n\t\tObject[] finderArgs = new Object[] { groupId, language, categorizable };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_COUNT_VCMSPORTION_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_G_L_C_GROUPID_2);\n\n\t\t\tboolean bindLanguage = false;\n\n\t\t\tif (language == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_C_LANGUAGE_1);\n\t\t\t}\n\t\t\telse if (language.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_C_LANGUAGE_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindLanguage = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_G_L_C_LANGUAGE_2);\n\t\t\t}\n\n\t\t\tquery.append(_FINDER_COLUMN_G_L_C_CATEGORIZABLE_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(groupId);\n\n\t\t\t\tif (bindLanguage) {\n\t\t\t\t\tqPos.add(language);\n\t\t\t\t}\n\n\t\t\t\tqPos.add(categorizable);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "int getConceptLanguagesCount();", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "long countByExample(DiscussExample example);", "public VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findAll();", "int getMessageCount(@Nullable CompilerMessageCategory category);", "int commentsCount();", "public int getCountForum();", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "@Override\n\tpublic List<VcmsPortion> findByG_L(long groupId, String language) {\n\t\treturn findByG_L(groupId, language, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "public int countByG_UT(long groupId, String urlTitle);", "@Query(value = \"select count(termLang) from TermLang termLang where termLang.value<>'' and termLang.projectLangId in \" +\n \"(select projectLang. id from ProjectLang projectLang where projectLang.projectId = ?1 and projectLang.isDeleted = false \" +\n \"and termLang.term.id in (select term.id from Term term where termLang.term.id = term.id and term.isDeleted = false))\")\n long countNotEmptyTranslation(long projectId);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "int getGroupCountByStructureId(Integer structureId);", "public int countByGroupId(long groupId);", "public int countByGroupId(long groupId);", "@Override\n\tpublic int getVideoCommentCount(long vid) {\n\t\treturn 0;\n\t}", "int countByExample(TopicFragmentExample example);", "@Query(value = \"select count(termLang) from TermLang termLang where termLang.value is not null and termLang.projectLangId in \" +\n \"(select projectLang.id from ProjectLang projectLang where projectLang.projectId = :projectId and projectLang.isDeleted = false \" +\n \"and termLang.term.id in (select term.id from Term term where termLang.term.id = term.id and term.isDeleted = false) )\")\n long countAllTranslation(long projectId);", "long countByExample(CmsChannelCriteria example);", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "int getGroupCount();", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Sql(\"SELECT count(m.id), (SELECT count(um.id) FROM message um WHERE um.topic_id=m.topic_id AND um.`read` = FALSE AND um.forum_id = m.forum_id AND NOT CASEWHEN(um.user_id = 0, FALSE, (SELECT iu.ignored FROM user iu WHERE iu.id = um.user_id))) AS unreadmessages, (SELECT count(m1.id) FROM message m1 WHERE NOT CASEWHEN(m1.user_id = 0, FALSE, (SELECT iu.ignored FROM user iu WHERE iu.id = m1.user_id)) AND tc.ignored = FALSE AND m1.read = FALSE AND m1.parent_user_id <> m1.user_id AND m1.topic_id = m.topic_id AND m1.parent_user_id = ? AND m1.forum_id = m.forum_id), max(m.message_date) FROM topic_cache tc JOIN message m ON (tc.topic_id = m.topic_id AND m.forum_id = tc.forum_id) WHERE m.topic_id=?\")\r\n @ToObjectConverter(ToDiscussionStatisticConverter.class)\r\n DiscussionStatistic getReplaysInThread(int threadId, int userId) throws StorageException;", "public int filterCountByGroupId(long groupId);", "public int filterCountByGroupId(long groupId);", "public boolean hasMoreDiscussions();", "@Query(value = \"select sum(case when termLang.value is not null then 1 else 1 end) from TermLang termLang \" +\n \"inner join ProjectLang projectLang on termLang.projectLangId = projectLang.id and projectLang.isDeleted = false \" +\n \"inner join Project project on projectLang.projectId = project.id and project.isDeleted = false and (project.author.id = :userId or project.id in \" +\n \"(select projectId from ProjectContributor projectContributor where projectContributor.contributor.id = :userId and projectContributor.isDeleted = false )) \" +\n \"where termLang.term.id in (select term.id from Term term where termLang.term.id = term.id and term.isDeleted = false) group by project.id\")\n List<Long> countListAllTranslationByUserId(long userId);", "public int sizeOfLanguageCommunicationArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(LANGUAGECOMMUNICATION$26);\n }\n }", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.course.id = :#{#courseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByCourseIdSubmitted(@Param(\"courseId\") Long courseId);", "@Query(value = \"select sum(case when termLang.value <> '' then 1 else 0 end) from TermLang termLang \" +\n \"inner join ProjectLang projectLang on termLang.projectLangId = projectLang.id and projectLang.isDeleted = false \" +\n \"inner join Project project on projectLang.projectId = project.id and project.isDeleted = false \" +\n \"where (project.author.id = :userId and project.isDeleted = false or project.id in \" +\n \"(select projectId from ProjectContributor projectContributor where projectContributor.contributor.id = :userId and projectContributor.isDeleted = false )) \" +\n \"and termLang.term.id in (select term.id from Term term where termLang.term.id = term.id and term.isDeleted = false) group by project.id\")\n List<Long> countListNotEmptyTranslationByUserId(long userId);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public int getPublishedModulesCounts(String buildName, String date) {\n ResultSet rs = null;\n String buildQuery = \"SELECT count(*) as cnt FROM build_modules\\n\" +\n \"left join builds on builds.build_id=build_modules.build_id \\n\" +\n \"where builds.build_number=? and builds.build_date=?\";\n try {\n rs = jdbcHelper.executeSelect(buildQuery,buildName,date);\n if (rs.next()) {\n return rs.getInt(1);\n }\n } catch (SQLException e) {\n log.error(e.toString());\n } finally {\n DbUtils.close(rs);\n }\n return 0;\n }", "long countByExample(trackcommentExample example);", "@Query(\"select count(r) from Reply r group by r.comment\")\n\tCollection<Double> dashboardRepliesPerComment();", "int countByExample(MessageGroupExample example);", "public int countBycourse_id(long course_id);", "@ApiModelProperty(value = \"Count of programming languages used.\")\n\t@JsonProperty(\"programLanguagesCount\")\n\tpublic Integer getProgramLanguagesCount() {\n\t\treturn programLanguagesCount;\n\t}", "long countByExample(GpPubgPlayerExample example);", "@Query(value = \"select count(termLang) from TermLang termLang where termLang.value<>'' and termLang.projectLangId in \" +\n \"(select projectLang from ProjectLang projectLang where projectLang.id = :projectLangId and projectLang.isDeleted = false) and \" +\n \"termLang.term in (select term from Term term where term.isDeleted = false )\")\n long countAllByProjectLangIdAndValueIsNotEmpty(long projectLangId);", "@Override\n\tpublic void removeByG_L(long groupId, String language) {\n\t\tfor (VcmsPortion vcmsPortion : findByG_L(groupId, language,\n\t\t\t\tQueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "public int countByUserIdGroupId(long userId, long groupId);", "int getDetectionRulesCount();", "@Override\n\tpublic int countByGroupId(long groupId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_GROUPID;\n\n\t\tObject[] finderArgs = new Object[] { groupId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_TVSHOW_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_GROUPID_GROUPID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(groupId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "Integer getProjectCount( String key ){\n return developer.projects.size();\n }", "int getMessageIdCount();", "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "int getContentIdToEmbeddingTokensCount();", "int countByExample(ProjGroupExample example);", "public int getProblemCount();", "@Override\n\tpublic int filterCountByGroupId(long groupId) throws SystemException {\n\t\tif (!InlineSQLHelperUtil.isEnabled(groupId)) {\n\t\t\treturn countByGroupId(groupId);\n\t\t}\n\n\t\tStringBundler query = new StringBundler(2);\n\n\t\tquery.append(_FILTER_SQL_COUNT_TVSHOW_WHERE);\n\n\t\tquery.append(_FINDER_COLUMN_GROUPID_GROUPID_2);\n\n\t\tString sql = InlineSQLHelperUtil.replacePermissionCheck(query.toString(),\n\t\t\t\tTvShow.class.getName(), _FILTER_ENTITY_TABLE_FILTER_PK_COLUMN,\n\t\t\t\tgroupId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tSQLQuery q = session.createSQLQuery(sql);\n\n\t\t\tq.addScalar(COUNT_COLUMN_NAME,\n\t\t\t\tcom.liferay.portal.kernel.dao.orm.Type.LONG);\n\n\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\tqPos.add(groupId);\n\n\t\t\tLong count = (Long)q.uniqueResult();\n\n\t\t\treturn count.intValue();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "int countByExample(WxNewsExample example);", "public static int getAnnouncementsCountByGroupId(long groupId)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().getAnnouncementsCountByGroupId(groupId);\n }", "public void removeByP_L(long groupId, java.lang.String language);", "int countByExample(FeiWenCommentExample example);", "public int getTotalMessageCount(){\n Query query = new Query(\"Message\");\n Query query2 = new Query(\"Question\");\n PreparedQuery results = datastore.prepare(query);\n PreparedQuery results2 = datastore.prepare(query2);\n return results.countEntities(FetchOptions.Builder.withLimit(1000)) + results2.countEntities(FetchOptions.Builder.withLimit(1000));\n}", "public Integer getLanguageId() {\r\n return languageId;\r\n }", "@Override\n\tpublic int countBygroupId(long groupId) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_GROUPID;\n\n\t\tObject[] finderArgs = new Object[] { groupId };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_LINKGROUP_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_GROUPID_GROUPID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(groupId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "Integer countAnswersByQuestionId(String questionId);", "public int filterCountByUserIdGroupId(long userId, long groupId);", "int getChannelStatisticsCount();", "int postsCount();", "int getParticipantsCount();", "int getParticipantsCount();", "long countByExample(PrivateMessageExample example);", "public List<Object> getJournalYVCounts( Journal jrnl, \n String year, String volume,\n int firstRecord,\n int blockSize ){\n \n List<Object> cntall = getJournalYVCounts( jrnl, year, volume );\n\n // note: paging based on unique issue id count\n //--------------------------------------------\n \n // make list of issue IDs\n \n return null;\n }", "public int getUnreadChatMessageCount();", "public int countByUUID_G(java.lang.String uuid, long groupId);", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getVersionsCount();", "@Override\r\n\tpublic int commentCount(Integer userkey) throws Exception {\n\t\treturn session.selectOne(namespace + \".commentMyCount\", userkey);\r\n\t}", "@Sql(\"SELECT count(m.id) FROM message m WHERE NOT CASEWHEN(m.user_id = 0, false, (SELECT iu.ignored FROM user iu WHERE iu.id = m.user_id)) AND (SELECT tc.ignored FROM topic_cache tc WHERE tc.topic_id = CASEWHEN(m.topic_id = 0, m.id, m.topic_id)) = false AND m.user_id <> m.parent_user_id AND m.parent_user_id = ? AND m.forum_id > 0\")\r\n int getUserReplies(int ownId) throws StorageException;", "int countByExample(CmsVoteTitleExample example);", "public AsyncResult<Integer> requestNumberOfMessages() {\r\n ServiceDiscoveryManager serviceDiscoveryManager = xmppSession.getManager(ServiceDiscoveryManager.class);\r\n return serviceDiscoveryManager.discoverInformation(null, OfflineMessage.NAMESPACE).thenApply(infoDiscovery -> {\r\n if (!infoDiscovery.getExtensions().isEmpty()) {\r\n DataForm dataForm = infoDiscovery.getExtensions().get(0);\r\n if (dataForm != null) {\r\n for (DataForm.Field field : dataForm.getFields()) {\r\n if (\"number_of_messages\".equals(field.getVar())) {\r\n String numberOfMessages = field.getValues().get(0);\r\n return Integer.valueOf(numberOfMessages);\r\n }\r\n }\r\n }\r\n }\r\n return 0;\r\n });\r\n }", "@Override\n\tpublic int totalContentCount(String searchVar) {\n\t\treturn template.selectOne(\"board.totalContentCount\",searchVar);\n\t}", "public int getPropsDiffCount(BuildParams buildParams) {\n ResultSet rs = null;\n try {\n String baseQuery;\n Object[] diffParams = {buildParams.getCurrBuildNum(), buildParams.getCurrBuildDate(),\n buildParams.getCurrBuildNum(), buildParams.getCurrBuildDate(),\n buildParams.getComperedBuildNum(), buildParams.getComperedBuildDate()};\n String buildQuery = BuildQueries.BUILD_PROPS_COUNT;\n rs = jdbcHelper.executeSelect(buildQuery, diffParams);\n if (rs.next()) {\n return rs.getInt(1);\n }\n } catch (SQLException e) {\n log.error(e.toString());\n } finally {\n DbUtils.close(rs);\n }\n return 0;\n }", "int getChannelsCount();", "int countByExample(GrpTagExample example);" ]
[ "0.6594806", "0.58827376", "0.5809463", "0.569055", "0.56871986", "0.564342", "0.5630189", "0.55585766", "0.55202377", "0.547579", "0.53944254", "0.53921324", "0.5348118", "0.53322333", "0.5308541", "0.5277534", "0.5254087", "0.52396387", "0.52391493", "0.5237844", "0.5215915", "0.5189618", "0.5180172", "0.5133107", "0.50856847", "0.5071667", "0.50582635", "0.50183314", "0.49816528", "0.49806032", "0.49806032", "0.49625376", "0.49420172", "0.49385715", "0.49299148", "0.49197376", "0.49012634", "0.4873211", "0.48720914", "0.4869042", "0.4869042", "0.4868422", "0.48635682", "0.48587823", "0.48529994", "0.48376852", "0.48218504", "0.48118597", "0.48103106", "0.47852904", "0.47851244", "0.47800893", "0.47431362", "0.47348744", "0.47245958", "0.4720975", "0.4707918", "0.47033757", "0.4696913", "0.46767437", "0.46743554", "0.46722227", "0.46662778", "0.46662778", "0.46662778", "0.46656513", "0.4662128", "0.46616846", "0.46561894", "0.46552724", "0.46418712", "0.46370184", "0.46354848", "0.4630938", "0.46195155", "0.45954022", "0.45930004", "0.4591798", "0.4590527", "0.45870432", "0.45756736", "0.45756736", "0.45731577", "0.45557454", "0.45504647", "0.45487753", "0.4546029", "0.4546029", "0.4546029", "0.4546029", "0.4546029", "0.45356587", "0.45352113", "0.45314127", "0.45309958", "0.45293528", "0.45142037", "0.45062876", "0.4506118", "0.45014185" ]
0.70097
0
Returns all the vcms discussions where groupId = &63; and language = &63; and approved = &63;.
public java.util.List<VcmsDiscussion> findByP_L_A(long groupId, java.lang.String language, boolean approved);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public java.util.List<VcmsDiscussion> findAll();", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public Discussion[] getDiscussions() throws DAOException;", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Discussion[] getDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public List<Forum> getListForumWithStatus(String viewStatus);", "List<KnowledgeComment> selectAll();", "List<Discuss> selectByExample(DiscussExample example);", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "List<Content> getContentListForApproval();", "private static DiscussionParam createGetDiscussionList() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_ID)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGE_GROUP_DETAIL)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_UNSEEN_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.TOTAL_MESSAGES)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LATEST_MESSAGE)\n\t\t.addDiscussionOption(DiscussionOptionEnum.LAST_CHECK_DATE)\t\n\t\t.setLocale(Locale.getDefault()).build();\n\t\t\n\t}", "public Discussion[] getMoreDiscussions(IDAOProgressMonitor progressMonitor)\n\t\t\tthrows DAOException;", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public boolean hasMoreDiscussions();", "@RequestMapping(value = { \"/comment\", \"/komentar\" }, method = RequestMethod.GET)\r\n\tpublic ResponseEntity<Iterable<Comment>> getAllApproved() {\r\n\r\n\t\treturn new ResponseEntity(commentRepository.findByCommentState(CommentState.APPROVED), HttpStatus.OK);\r\n\t}", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "List<Project> getWithNonResolvedMessages();", "List<Comment> getComments(long mediaId);", "List<Project> getWithNonResolvedMessages(User user);", "List<PreparedStatement> getClearDiscussionStatements(String forumId, String discussionId, Connection conn) throws Exception;", "List<Comments> selectAll();", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "List<Comment> getCommentsOfProject(int projectId) throws SQLException;", "public Discussion getDiscussion(int discussionID) throws DAOException;", "List<MessageGroup> selectByExample(MessageGroupExample example);", "List<MemberAdvisoryComment> selectSelective(MemberAdvisoryComment record);", "ImmutableList<SchemaOrgType> getDiscussionUrlList();", "public List<Course> findByTopicId(int topicId);", "private List<String> getAllConnectionsFromGroundTruthThatAreSubjectOfInvestigation(PostVersion postVersion) {\n List<BlockPair> blockPairsInCurrentPostVersionOfGT = new ArrayList<>();\n for (BlockPair blockPairsGT : blockPairs_groundTruth) {\n if (blockPairsGT.leftBlock.postBlock.getPostHistoryId().equals(postVersion.getPostHistoryId())) {\n blockPairsInCurrentPostVersionOfGT.add(blockPairsGT);\n }\n }\n\n // get all connections from ground truth that are subject of investigation\n List<String> connectionsInGT = new ArrayList<>();\n for (BlockPair blockPair : blockPairsInCurrentPostVersionOfGT) {\n\n if (!matchesPostBlockTypeOfInvestigation(blockPair)) {\n continue;\n }\n\n connectionsInGT.add(\n blockPair.leftBlock.postBlock.getPostId() + \", \" +\n blockPair.leftBlock.postBlock.getPostHistoryId() + \", \" +\n blockPair.leftBlock.postBlock.getLocalId() + \" -> \" +\n blockPair.rightBlock.postBlock.getLocalId()\n );\n }\n return connectionsInGT;\n }", "List<CmsChannel> selectByExample(CmsChannelCriteria example);", "List<PreparedStatement> getDeleteDiscussionStatements(String forumId,String discussionId,Connection conn) throws Exception;", "List<UserContent> findContent(@Param(\"contentPath\") String contentPath,\n\t\t\t\t\t\t\t\t @Param(\"contentLang\") UserContentLanguage contentLang,\n\t\t\t\t\t\t\t\t @Param(\"userId\") Integer userId,\n\t\t\t\t\t\t\t\t @Param(\"substituteUserDrafts\") boolean substituteUserDrafts);", "List<PreparedStatement> getMarkDiscussionReadStatements(String userId, String discussionId,String forumId,Connection conn) throws SQLException;", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "public List<Question> getQuestions(Group group) {\n \tMembership temp = memberships.get(group.getTitle());\n \tif(temp == null)\n \t\treturn null;\n List<Question> myQuestions = temp.getQuestions();\n myQuestions.sort(new PostDateComparator());\n Collections.reverse(myQuestions);\n return myQuestions;\n }", "public List<Object> getListForum();", "public String getDiscussion(){\n return discussion;\n }", "List<Bug> getAllBugsByProject(int projectId);", "public java.util.List<Todo> filterFindByGroupId(long groupId);", "public IDiscussionTopicList getAttachedDiscussionTopics(boolean edit)\n throws OculusException;", "public VcmsDiscussion create(java.lang.String discussionId);", "List<Language> getAll();", "@Override\n\tpublic List<VcmsPortion> findByG_L(long groupId, String language) {\n\t\treturn findByG_L(groupId, language, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "List<CommunityInform> selectAll();", "private List<String> getAllConnectionsFromComputedSimilarityThatAreSubjectOfInvestigation(PostVersion postVersion) {\n List<BlockPair> blockPairsInCurrentPostVersionOfCS = new ArrayList<>();\n for (BlockPair blockPairsCS : blockPairs_computedSimilarity) {\n if (blockPairsCS.leftBlock.postBlock.getPostHistoryId().equals(postVersion.getPostHistoryId())) {\n blockPairsInCurrentPostVersionOfCS.add(blockPairsCS);\n }\n }\n\n // get all connections from computed similarity that are subject of investigation\n List<String> connectionsInCS = new ArrayList<>();\n for (BlockPair blockPair : blockPairsInCurrentPostVersionOfCS) {\n\n if (!matchesPostBlockTypeOfInvestigation(blockPair)) {\n continue;\n }\n\n connectionsInCS.add(\n blockPair.leftBlock.postBlock.getPostId() + \", \" +\n blockPair.leftBlock.postBlock.getPostHistoryId() + \", \" +\n blockPair.leftBlock.postBlock.getLocalId() + \" -> \" +\n (blockPair.leftBlock.postBlock.getSucc() != null ? blockPair.leftBlock.postBlock.getSucc().getLocalId() : null)\n );\n }\n return connectionsInCS;\n }", "public IDiscussionTopicList getAttachedDiscussionTopics()\n throws OculusException;", "public String showAnnouncements() {\n String output = \"\";\n\n // Get\n List<Models.Announcement> fromInstitution = em.createNativeQuery(\"select a.* from announcement a, institution i, institutionparticipant ipa, participant p where a.institutioncode = i.institutioncode and i.institutioncode = ipa.institutioncode and ipa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromProgramme = em.createNativeQuery(\"select a.* from announcement a, programme pg, programmeparticipant ppa, participant p where a.programmecode = pg.programmecode and pg.programmecode = ppa.programmecode and ppa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromCourse = em.createNativeQuery(\"select a.* from announcement a, course c, courseparticipant cpa, participant p where a.coursecode = c.coursecode and c.coursecode = cpa.coursecode and cpa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n List<Models.Announcement> fromClass = em.createNativeQuery(\"select a.* from announcement a, class c, classparticipant cpa, participant p where a.classid = c.classid and c.classid = cpa.classid and cpa.participantid = p.participantid and p.userid = ? order by dateannounced desc fetch first 3 rows only\", Models.Announcement.class).setParameter(1, user.getUserid()).getResultList();\n\n return displayAnnouncements(fromInstitution, fromProgramme, fromCourse, fromClass);\n }", "@Override\n\tpublic JCRPageList getPosts(String categoryId, String forumId,\n\t\t\tString topicId, String isApproved, String isHidden,\n\t\t\tString strQuery, String userLogin) throws Exception {\n\t\treturn null;\n\t}", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "public List<TemplateExamQuestion> getQuestions(Group group);", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "List<PrivateMessage> selectByExample(PrivateMessageExample example);", "@Override\r\n\tpublic List<ManageNursingContentVO> selectByExampleAndProject(\r\n\t\t\tString nursingNurseid) throws Exception {\n\t\treturn mContentMapper.selectByExampleAndProject(nursingNurseid);\r\n\t}", "public List<Build> getBuildsForProject(int projectId);", "private void loadConversationList()\n\t{\n\t\tParseQuery<ParseObject> q = ParseQuery.getQuery(discussionTableName);\n\t\tif (messagesList.size() != 0)\n\t\t{\n//\t\t\t// load all messages...\n//\t\t\tArrayList<String> al = new ArrayList<String>();\n//\t\t\tal.add(discussionTopic);\n//\t\t\tal.add(MainActivity.user.getParseID());\n//\t\t\tq.whereContainedIn(\"sender\", al);\n//\t\t}\n//\t\telse {\n\t\t\t// load only newly received message..\n\t\t\tif (lastMsgDate != null)\n\t\t\t\t// Load only new messages, that weren't send by me\n\t\t\t\tq.whereGreaterThan(Const.COL_MESSAGE_CREATED_AT, lastMsgDate);\n\t\t\t\tq.whereNotEqualTo(Const.COL_MESSAGE_SENDER_ID, MainActivity.user.getParseID());\n\t\t}\n\t\tq.orderByDescending(Const.COL_MESSAGE_CREATED_AT);\n\t\tq.setLimit(100);\n\t\tq.findInBackground(new FindCallback<ParseObject>() {\n\n\t\t\t@Override\n\t\t\tpublic void done(List<ParseObject> li, ParseException e) {\n\t\t\t\tif (li != null && li.size() > 0) {\n\t\t\t\t\tfor (int i = li.size() - 1; i >= 0; i--) {\n\t\t\t\t\t\tParseObject po = li.get(i);\n\n\t\t\t\t\t\tMessage message = new Message(po.getString(\n\t\t\t\t\t\t\t\tConst.COL_MESSAGE_CONTENT),\n\t\t\t\t\t\t\t\tpo.getCreatedAt(),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_ID),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_NAME));\n\n\t\t\t\t\t\tmessage.setStatus(MessageStatus.STATUS_SENT);\n\t\t\t\t\t\tmessagesList.add(message);\n\n\t\t\t\t\t\tif (lastMsgDate == null || lastMsgDate.before(message.getDate())) {\n\t\t\t\t\t\t\tlastMsgDate = message.getDate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchatAdapter.notifyDataSetChanged();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thandler.postDelayed(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (isRunning)\n\t\t\t\t\t\t\tloadConversationList();\n\t\t\t\t\t}\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t});\n\n\t}", "public void getCommnentList() {\n String urlData = \"\";\n HashMap<String, String> param = new HashMap<String, String>();\n param.put(\"max\", \"\" + MyApplication.Max_post_per_page);\n param.put(\"page\", \"0\");\n if (PostType.equalsIgnoreCase(\"ads\")) {\n urlData = \"ads/\" + postId + \"/get-comments\";\n } else {\n urlData = \"feeds/\" + postId + \"/get-comments\";\n }\n APIHandler.Instance().POST_BY_AUTHEN(urlData, param, new APIHandler.RequestComplete() {\n @Override\n public void onRequestComplete(final int code, final String response) {\n LiveVideoPlayerActivity.this.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n try {\n JSONObject mJsonObject = new JSONObject(response);\n int codeServer = mJsonObject.getInt(\"code\");\n if (codeServer == 1) {\n JSONArray msg = mJsonObject.getJSONArray(\"msg\");\n for (int index = 0; index < msg.length(); index++) {\n JSONObject mObject = msg.getJSONObject(index);\n CommentList mCategoryList = new CommentList();\n mCategoryList.setID(mObject.getString(\"ID\"));\n mCategoryList.setCreatedAt(mObject.getString(\"CreatedAt\"));\n mCategoryList.setUserId(mObject.getString(\"UserId\"));\n mCategoryList.setPostId(mObject.getString(\"PostId\"));\n mCategoryList.setContent(mObject.getString(\"Content\"));\n mCategoryList.setUserNmae(mObject.getString(\"UserName\"));\n mCategoryList.setUserPic(mObject.getString(\"AvatarUrl\"));\n mCommentslistAdapter.addnewItem(mCategoryList);\n\n }\n }\n\n } catch (Exception e) {\n PopupAPI.make(mContext, \"Error\", \"Can't connect to server\");\n\n }\n\n }\n });\n\n\n }\n });\n\n }", "public List<Cvchannel> findAllCvchannels();", "@RequestMapping(path = \"/controversialLinks\", method = RequestMethod.GET)\n public ArrayList<Link> getControversialYadas() {\n\n ArrayList<Link> allLinks = (ArrayList<Link>) links.findAll();\n generateControveryScore(allLinks);\n\n return links.findAllByOrderByControversyScoreDesc();\n }", "public static List<Project> getProjects(String groupId) {\n try {\n String url = BASE_URL + \"groups/\" + groupId + \"/projects\";\n return extractProjects(sendAuthenticated(new HttpGet(url)));\n } catch (Exception e) {\n e.printStackTrace();\n }\n return new ArrayList<>();\n }", "public List<Comment> getAllComments(long messageId){\n\t\tMap<Long, Comment> comments = messages.get(messageId).getComments();\n\t\treturn new ArrayList<Comment>(comments.values());\n\t\t\n\t}", "public List<Issue> getUserProjectActiveIssue(User user, Project project);", "List<trackcomment> selectByExample(trackcommentExample example);", "public int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.util.List<Todo> filterFindByG_S(long groupId, int status);", "List<Question> getQuestions(String surveyId);", "@Override\r\n\tpublic List<ManageNursingContentVO> selectByExampleAndProjectRuVO(\r\n\t\t\tNursingProjectExample example) throws Exception {\n\t\treturn mContentMapper.selectByExampleAndProjectRuVO(example);\r\n\t}", "public List<Meeting> getMeetings(int projectId);", "List<Bug> getBugsByStatusByProject(int projectId, int status);", "public abstract KenaiProject[] getDashboardProjects(boolean onlyOpened);", "List<Comment> findCommentsToLifeHack(long id) throws DaoException;", "List<UserContentAccess> findContentAccess();", "@Override\n\tpublic List<VcmsPortion> findByG_L_C(long groupId, String language,\n\t\tboolean categorizable) {\n\t\treturn findByG_L_C(groupId, language, categorizable, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "public List<Course> getAllCourses(String topicId){\n\t\t//return courses;\n\t\tArrayList<Course> course = new ArrayList<>();\n\t\tcourseRepository.findByTopicId(topicId).forEach(course::add);\n\t\treturn course;\n\t}", "public List<Forum> searchForumByForumName(String forumName);", "public List<GLJournalApprovalVO> getProject(String OrgId, String ClientId, String projectId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" SELECT C_PROJECT.C_PROJECT_ID AS ID,C_PROJECT.NAME FROM C_PROJECT WHERE AD_ORG_ID IN (\"\n + OrgId + \") \" + \" AND AD_CLIENT_ID IN (\" + ClientId + \") AND C_PROJECT_ID IN (\"\n + projectId + \") \";\n st = conn.prepareStatement(sqlQuery);\n rs = st.executeQuery();\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setId(rs.getString(1));\n VO.setName(rs.getString(2));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }", "public List<Project> getAllProjects();", "@Test\n public void testDiscussionAccessControl() {\n // set permissions\n PermissionData data = new PermissionData(true, false, false, true);\n pms.configureDiscussionPermissions(testUser, category, data);\n\n // test access control\n assertTrue(accessControlService.canViewDiscussions(topic), \"Test user should be able to view discussion in topic!\");\n assertTrue(accessControlService.canAddDiscussion(topic), \"Test user should be able to create discussion in topic!\");\n assertFalse(accessControlService.canEditDiscussion(discussion), \"Test user should not be able to edit discussion in topic!\");\n assertFalse(accessControlService.canRemoveDiscussion(discussion), \"Test user should not be able to remove discussion from topic!\");\n }", "List<Bug> getOpenedBugsByProject(int projectId, int start, int limit);", "java.lang.String getLinkToDiscussion();", "public List<GLJournalApprovalVO> getActivity(String OrgId, String ClientId, String actId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" SELECT C_Activity.C_Activity_ID AS ID,C_Activity.NAME FROM C_Activity WHERE AD_ORG_ID IN (\"\n + OrgId + \") \" + \" AND AD_CLIENT_ID IN (\" + ClientId + \") AND C_Activity_ID IN (\"\n + actId + \") \";\n st = conn.prepareStatement(sqlQuery);\n rs = st.executeQuery();\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setId(rs.getString(1));\n VO.setName(rs.getString(2));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }", "com.google.protobuf.ByteString\n getLinkToDiscussionBytes();" ]
[ "0.7402557", "0.68313456", "0.63267726", "0.63245136", "0.61102796", "0.6013817", "0.5909691", "0.59083265", "0.5832018", "0.5820892", "0.5681827", "0.5561284", "0.5549984", "0.55261815", "0.54880804", "0.5484125", "0.53506124", "0.5272533", "0.5267685", "0.51490426", "0.5148186", "0.50786674", "0.5071264", "0.50593567", "0.5030796", "0.5013506", "0.49849054", "0.49769148", "0.4943777", "0.49383113", "0.48940784", "0.479247", "0.47816965", "0.47438934", "0.47144637", "0.47018307", "0.46778274", "0.46759808", "0.46635255", "0.46545064", "0.46294728", "0.46179855", "0.46057808", "0.45994774", "0.45975178", "0.45825297", "0.4575022", "0.45555297", "0.4549566", "0.45462638", "0.45402536", "0.45356783", "0.4522846", "0.45115772", "0.44831514", "0.4482884", "0.44683647", "0.4465587", "0.44351906", "0.44066095", "0.43995014", "0.43976673", "0.43939015", "0.43873784", "0.43770295", "0.4375915", "0.43700588", "0.43568096", "0.43507677", "0.4344933", "0.4327609", "0.4325647", "0.43202847", "0.43162945", "0.43154418", "0.4305003", "0.43046862", "0.42982137", "0.42955965", "0.42751685", "0.42653814", "0.42653283", "0.42630637", "0.42613748", "0.42564362", "0.4254582", "0.42534596", "0.42504558", "0.42498893", "0.42459977", "0.4245575", "0.42434737", "0.42431927", "0.42369696", "0.42342523", "0.42339304", "0.42329007", "0.42308694", "0.42140678", "0.42040467" ]
0.77024
0
Returns the first vcms discussion in the ordered set where groupId = &63; and language = &63; and approved = &63;.
public VcmsDiscussion findByP_L_A_First(long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\n\tpublic VcmsPortion fetchByG_L_C_First(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator) {\n\t\tList<VcmsPortion> list = findByG_L_C(groupId, language, categorizable,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic VcmsPortion fetchByG_L_First(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator) {\n\t\tList<VcmsPortion> list = findByG_L(groupId, language, 0, 1,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "MemberAdvisoryComment selectByPrimaryKey(Long commentId);", "CMSObject getFirstNodeById(String id, Object session) throws RepositoryAccessException;", "Article findLatestArticle();", "MemberAdvisoryComment selectByPrimaryKeyLock(Long commentId);", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Question getFirstQuestion();", "protected final T findFirstByQuery(String query, String sort, Object... params) {\n Find find = this.collection.find(query, params);\n if ((sort != null) && !sort.isEmpty()) {\n find.sort(sort);\n }\n Iterable<T> as = find.limit(1).as(this.getEntityClass());\n Iterator<T> iterator = as.iterator();\n if (iterator.hasNext()) {\n return iterator.next();\n }\n return null;\n }", "public Discussion getDiscussion(int discussionID) throws DAOException;", "List<Discuss> selectByExample(DiscussExample example);", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "private static DiscussionParam createSimple() {\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.setLocale(Locale.getDefault()).build();\n\t}", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "List<MemberAdvisoryComment> selectSelective(MemberAdvisoryComment record);", "CMSObject getFirstNodeById(String id, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public static IDescribable getFirst( Collection<? extends IDescribable> results )\r\n\t{\r\n\t if(( results == null ) || ( results.size() == 0 ))\r\n\t return null;\r\n\t return results.iterator().next();\r\n\t}", "protected Discussion getDiscussionForName(String name){\n\t\tfor(Discussion discussion : discussions){\n\t\t\tif (discussion.getName().equals(name)){\n\t\t\t\treturn discussion;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public Partida getFirstPartida(Integer idPartida){\n String consulta = \"SELECT p FROM Partida p WHERE p.id = \" +idPartida;\n return em.createQuery(consulta, Partida.class).setMaxResults(1).getResultList().get(0);\n }", "public Comment getComment(VitalParticipant participant) {\n try {\n\t\t\tLong id = participant.getId();\n\t\t\tIterator iter = this.comments.iterator();\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tComment c = (Comment) iter.next();\n\t\t\t\tif (c.getParticipant().getId() == id) return c;\n\t\t\t}\n } catch(Exception e) {\n\t\t\tlogger.warn(\"getComment for VitalParticipant threw \" + e);\n\t\t}\n\t\treturn null;\n }", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n public Ares2ClusterDO selectOneByQuery(Ares2ClusterQuery query) {\n query.setPageNo(1);\n query.setPageSize(1);\n List<Ares2ClusterDO> topList = selectByQuery(query);\n if (topList != null && topList.size() > 0) {\n return topList.get(0);\n }\n return null;\n }", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }", "public Todo fetchByGroupId_First(\n\t\tlong groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "@Override\n\tpublic TvShow fetchByGroupId_First(long groupId,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tList<TvShow> list = findByGroupId(groupId, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Clan findSmallestDefaultClan() {\n\t\tList<Clan> defaultClans = clans.stream().filter(c -> c.getID().equals(DEFAULT_CLAN_ID)).collect(Collectors.toList());\n\n\t\tdefaultClans.sort((c1, c2) -> c1.getMembers().size() - c2.getMembers().size());\n\n\t\treturn defaultClans.get(0);\n\t}", "public SitbMoneyCollection fetchByapproval_status_First(\n\t\tjava.lang.String approval_status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<SitbMoneyCollection> orderByComparator);", "public java.util.List<VcmsDiscussion> findAll();", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "CMSObject getFirstNodeByPath(String path, Object session) throws RepositoryAccessException;", "Optional<UserContentComment> findOne(Long id);", "private Proposal getSelectedProposal() {\n\t\tif (isValid()) {\n\t\t\tint index = proposalTable.getSelectionIndex();\n\t\t\tif (proposalList == null || index < 0 || index >= getTableLength()) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tint proposalIndex = 0;\n\t\t\tfor (Proposal proposal : proposalList.getTopProposalList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn proposal;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t}\n\t\t\tfor (String provider : proposalList.getProviderList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t\tfor (Proposal proposal : proposalList.getProposals(provider)) {\n\t\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\t\treturn proposal;\n\t\t\t\t\t}\n\t\t\t\t\tproposalIndex++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "KnowledgeComment selectByPrimaryKey(Integer id);", "public RTContainer container_element(RTContainer a, boolean first){\n\t\tif(a.getDecompGoals().size()>0 && a.getDecompPlans().size()==0){\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompGoals().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompGoals().getLast(); \n\t\t}else{\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompPlans().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompPlans().getLast();\n\t\t}\n\t}", "FeedbackData findFirstByUrl(String url);", "public String getDiscussion(){\n return discussion;\n }", "public static Question getNextQuestion(Category category) {\n if (GameData.QUESTION_STATUS_LIST == null || GameData.QUESTION_STATUS_LIST.size() == 0) {\n GameData.startNewGame(category);\n }\n for (QuestionStatus q : GameData.QUESTION_STATUS_LIST) {\n if (!q.isVisited()) {\n q.setVisited(true);\n return q.getQuestion();\n }\n }\n return null;\n }", "@Override\n\tpublic Approvatore fetchByIdSala_First(long id_sala,\n\t\tOrderByComparator<Approvatore> orderByComparator) {\n\t\tList<Approvatore> list = findByIdSala(id_sala, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public E findMin() {\n // TODO: YOUR CODE HERE\n return getElement(1);\n }", "java.lang.String getLegacyDiscussionId();", "public Pageable first() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public Todo fetchByG_S_First(\n\t\tlong groupId, int status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public static PriorityQueue<Comment> query(String subject, int positivity){\n PriorityQueue<Comment> list = new PriorityQueue<Comment>();\n //@todo remove these example comments and add connectivity with the database to get actual comments\n list.add(new Comment(\"Test0\", \"Computer Science\", 0));\n list.add(new Comment(\"Test1\", \"Computer Science\", 1));\n list.add(new Comment(\"Test2\", \"Computer Science\", 2));\n return list;\n }", "CMSObject getFirstNodeByName(String name, Object session) throws RepositoryAccessException;", "public AnyType findMinimum(Comparator<AnyType> cmp) {\n LinkedListIterator<AnyType> itr = first();\n AnyType minimum = itr.current.element;\n while (itr.current.next != null) {\n //System.out.println(front.element);\n if (cmp.compare(itr.current.next.element, minimum) < 0) {\n minimum = itr.current.next.element;\n }\n itr.advance();\n }\n return minimum;\n }", "private ProblemModel findCheapestNode(){\n\t\tProblemModel ret = unvisitedPM.peek();\n\t\t\n\t\tfor(ProblemModel p : unvisitedPM){ \n\t\t\t//f(s) = depth + cost to make this move\n\t\t\tif(p.getCost() + p.getDepth() <= ret.getCost() + ret.getDepth()) ret = p;\n\t\t}\n\t\tunvisitedPM.remove(ret);\n\t\treturn ret;\n\t}", "public Todo fetchByUserIdGroupId_First(\n\t\tlong userId, long groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public ProcessGroupFlowEntity getLatestProcessGroupFlowEntity(String pgId) {\n Map<String, String> params = new HashMap<String, String>();\n HttpHeaders requestHeaders = security.getAuthorizationHeader();\n HttpEntity<?> requestEntity = new HttpEntity<Object>(requestHeaders);\n String theUrl = trasnsportMode + \"://\" + nifiServerHostnameAndPort + \"/nifi-api/flow/process-groups/\" + pgId + \"?recursive=true\";\n HttpEntity<ProcessGroupFlowEntity> response = restTemplate.exchange(theUrl, HttpMethod.GET, requestEntity,\n ProcessGroupFlowEntity.class, params);\n return response.getBody();\n }", "@Override\n\tpublic LMSLeaveInformation fetchByDrafts_First(String isDraft,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tList<LMSLeaveInformation> list = findByDrafts(isDraft, 0, 1,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public Piece firstSelected()\n {\n return firstSelected;\n }", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "Commet selectByPrimaryKey(String commentId);", "public VcmsDiscussion create(java.lang.String discussionId);", "List<trackcomment> selectByExample(trackcommentExample example);", "private Node smallest(Node p){\n if(p == null){\n return null;\n }\n Node smallest = p;\n while(smallest.left!=null){\n smallest = smallest.left;\n }\n return smallest;\n }", "List<MessageGroup> selectByExample(MessageGroupExample example);", "public SitbMoneyCollection findByapproval_status_First(\n\t\tjava.lang.String approval_status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<SitbMoneyCollection> orderByComparator)\n\t\tthrows NoSuchSitbMoneyCollectionException;", "public CheckpointSubject getDecision(PBFTCheckpoint c){\n if(!(c != null && c.getSequenceNumber() != null && c.getDigest() != null)){\n return null;\n }\n\n Object lpid = getLocalServerID();\n\n long seqn = c.getSequenceNumber();\n long now = getClockValue();\n String qkey = String.valueOf(seqn);\n\n SoftQuorum q = (SoftQuorum)getStateLog().getQuorum(CHECKPOINTQUORUMSTORE, qkey);\n\n if(q == null){\n int f = getServiceBFTResilience();\n\n q = new SoftQuorum(2 * f + 1);\n\n getStateLog().getQuorumTable(CHECKPOINTQUORUMSTORE).put(qkey, q);\n \n }\n\n q.add(new Vote(c.getReplicaID(), new CheckpointSubject(c)));\n \n JDSUtility.debug(\"[getDecision(checkpoint)] s\" + lpid + \", at time \" + now + \", updated a entry in its log for \" + c);\n\n CheckpointSubject cs = (CheckpointSubject) q.decide();\n\n if(cs != null){ \n JDSUtility.debug(\"[getDecision(checkpoint)] s\" + lpid + \", at time \" + now + \", completed quorum for checkpoint (\" + seqn + \").\");\n }\n\n return cs;\n \n }", "public Version getClosestRelease() {\n\n for (Version version : projectVersions) {\n Date releaseDate = version.getReleaseDate();\n if (releaseDate != null && releaseDate.compareTo(this.getIssue().getCreated()) > 0) {\n return version;\n }\n }\n\n return NO_RELEASE;\n }", "private Node findSmallest(Node curr) {\n Node prev = null;\n while(curr != null && !curr.isNull) {\n prev = curr;\n curr = curr.left;\n }\n return prev != null ? prev : curr;\n }", "public VersionedContent retrieveLatest(String namespace, String id) throws StageException;", "public Optional<Comment> getSingleCommentByAuthor(int postId, int authorId) {\n List<Comment> comments = commentRepository.findByPostId(postId);\n if(comments.size() > 0) {\n Optional<Comment> desiredComment = comments.stream()\n .filter(comment -> {\n int theId = comment.getAuthor().getId();\n return theId == authorId;\n }).findFirst();\n\n return desiredComment;\n }\n\n return null;\n }", "public process get_first() {\n\t\treturn queue.getFirst();\n\t}", "public EclipseEditorTag getSmallestEditorTagAtOffset(final int offset){\r\n \t\tCollection<EclipseEditorTag> tags = getEditorTagsAtOffset(offset, EclipseEditorTag.lengthComparator);\r\n \t\tif(tags.size()==0){\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\treturn tags.iterator().next();\r\n \t}", "public static com.ext.portlet.model.PlanItemGroup fetchByGroupId_First(\n long groupId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().fetchByGroupId_First(groupId, orderByComparator);\n }", "public native VertexNode first();", "@Override\n\tpublic LinkGroup fetchByMenu_First(long linkgroupId,\n\t\tOrderByComparator<LinkGroup> orderByComparator) {\n\t\tList<LinkGroup> list = findByMenu(linkgroupId, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "CMSObject getFirstNodeByPath(String path, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "@Override\n @Transactional(readOnly = true)\n public Optional<Proposal> findOne(Long id) {\n log.debug(\"Request to get Proposal : {}\", id);\n return proposalRepository.findOneWithEagerRelationships(id);\n }", "public Question getFirstQ()\n {\n return questionList.get(0);\n }", "private DiscoursePartItem getSrcDiscoursePart(DiscoursePartItem item) {\r\n if (item == null) { return null; }\r\n\r\n DiscoursePartDao dpDao = DiscourseDbDaoFactory.DEFAULT.getDiscoursePartDao();\r\n DiscoursePartItem result = dpDao.findBySourceId((Long)item.getId());\r\n return result;\r\n }", "protected ValuePosition getMinimum() {\n\t\t// Calcule la position et la durée d'exécution de la requête la plus courte dans le tableau des requêtes\n\t\tValuePosition minimum = new ValuePosition();\n\t\tminimum.position = 0;\n\t\tfor(int pos=0; pos<requests.length; pos++) {\n\t\t\tRequest request = requests[pos];\n\t\t\tif(request == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(minimum.value == null || request.getElapsedTime() < minimum.value) {\n\t\t\t\tminimum.position = pos;\n\t\t\t\tminimum.value = request.getElapsedTime();\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}", "public V getFirst() {\n\t\t\treturn v;\n\t\t}" ]
[ "0.7380542", "0.7303113", "0.65610886", "0.64194584", "0.626574", "0.58180726", "0.56833684", "0.56552786", "0.5607976", "0.56062096", "0.5539121", "0.5462502", "0.54387164", "0.52743906", "0.51806754", "0.51434916", "0.5101429", "0.506175", "0.5027977", "0.5009888", "0.49267083", "0.49086463", "0.48142317", "0.47409272", "0.47405246", "0.47341326", "0.47140834", "0.47029525", "0.46875316", "0.46608225", "0.46351278", "0.46325204", "0.4629694", "0.46081758", "0.45837036", "0.45825124", "0.45490277", "0.45464236", "0.45321333", "0.45263153", "0.45181653", "0.44843146", "0.44791898", "0.44681144", "0.4463934", "0.4425818", "0.4417036", "0.44158095", "0.44135067", "0.4378454", "0.4378305", "0.437161", "0.43707472", "0.43610135", "0.43550667", "0.4345176", "0.4337245", "0.43158105", "0.43131638", "0.43014494", "0.42967746", "0.42881817", "0.42798218", "0.42704874", "0.42642695", "0.42595074", "0.42553914", "0.42509362", "0.42324847", "0.4216446", "0.42150927", "0.42137823", "0.42124748", "0.42084748", "0.4205957", "0.4196729", "0.41961145", "0.41949755", "0.41931802", "0.4189849", "0.4189218", "0.41848212", "0.4172795", "0.41532165", "0.41491356", "0.41450417", "0.41340345", "0.41249114", "0.41238725", "0.41237643", "0.41189355", "0.41153467", "0.41137534", "0.41128916", "0.41117454", "0.41038853", "0.40968716", "0.40958872", "0.4094987", "0.40933767" ]
0.6741095
2
Returns the first vcms discussion in the ordered set where groupId = &63; and language = &63; and approved = &63;.
public VcmsDiscussion fetchByP_L_A_First(long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "@Override\n\tpublic VcmsPortion fetchByG_L_C_First(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator) {\n\t\tList<VcmsPortion> list = findByG_L_C(groupId, language, categorizable,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic VcmsPortion fetchByG_L_First(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator) {\n\t\tList<VcmsPortion> list = findByG_L(groupId, language, 0, 1,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "MemberAdvisoryComment selectByPrimaryKey(Long commentId);", "CMSObject getFirstNodeById(String id, Object session) throws RepositoryAccessException;", "Article findLatestArticle();", "MemberAdvisoryComment selectByPrimaryKeyLock(Long commentId);", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "Question getFirstQuestion();", "protected final T findFirstByQuery(String query, String sort, Object... params) {\n Find find = this.collection.find(query, params);\n if ((sort != null) && !sort.isEmpty()) {\n find.sort(sort);\n }\n Iterable<T> as = find.limit(1).as(this.getEntityClass());\n Iterator<T> iterator = as.iterator();\n if (iterator.hasNext()) {\n return iterator.next();\n }\n return null;\n }", "public Discussion getDiscussion(int discussionID) throws DAOException;", "List<Discuss> selectByExample(DiscussExample example);", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "private static DiscussionParam createSimple() {\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.setLocale(Locale.getDefault()).build();\n\t}", "List<MemberAdvisoryComment> selectSelective(MemberAdvisoryComment record);", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "CMSObject getFirstNodeById(String id, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "public static IDescribable getFirst( Collection<? extends IDescribable> results )\r\n\t{\r\n\t if(( results == null ) || ( results.size() == 0 ))\r\n\t return null;\r\n\t return results.iterator().next();\r\n\t}", "protected Discussion getDiscussionForName(String name){\n\t\tfor(Discussion discussion : discussions){\n\t\t\tif (discussion.getName().equals(name)){\n\t\t\t\treturn discussion;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public Partida getFirstPartida(Integer idPartida){\n String consulta = \"SELECT p FROM Partida p WHERE p.id = \" +idPartida;\n return em.createQuery(consulta, Partida.class).setMaxResults(1).getResultList().get(0);\n }", "public Comment getComment(VitalParticipant participant) {\n try {\n\t\t\tLong id = participant.getId();\n\t\t\tIterator iter = this.comments.iterator();\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tComment c = (Comment) iter.next();\n\t\t\t\tif (c.getParticipant().getId() == id) return c;\n\t\t\t}\n } catch(Exception e) {\n\t\t\tlogger.warn(\"getComment for VitalParticipant threw \" + e);\n\t\t}\n\t\treturn null;\n }", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public java.util.List<com.vportal.portlet.vfaq.model.FAQComment> findByApproved(\n\t\tboolean approved)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n public Ares2ClusterDO selectOneByQuery(Ares2ClusterQuery query) {\n query.setPageNo(1);\n query.setPageSize(1);\n List<Ares2ClusterDO> topList = selectByQuery(query);\n if (topList != null && topList.size() > 0) {\n return topList.get(0);\n }\n return null;\n }", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }", "public Todo fetchByGroupId_First(\n\t\tlong groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "@Override\n\tpublic TvShow fetchByGroupId_First(long groupId,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tList<TvShow> list = findByGroupId(groupId, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Clan findSmallestDefaultClan() {\n\t\tList<Clan> defaultClans = clans.stream().filter(c -> c.getID().equals(DEFAULT_CLAN_ID)).collect(Collectors.toList());\n\n\t\tdefaultClans.sort((c1, c2) -> c1.getMembers().size() - c2.getMembers().size());\n\n\t\treturn defaultClans.get(0);\n\t}", "public SitbMoneyCollection fetchByapproval_status_First(\n\t\tjava.lang.String approval_status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<SitbMoneyCollection> orderByComparator);", "public java.util.List<VcmsDiscussion> findAll();", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "CMSObject getFirstNodeByPath(String path, Object session) throws RepositoryAccessException;", "Optional<UserContentComment> findOne(Long id);", "private Proposal getSelectedProposal() {\n\t\tif (isValid()) {\n\t\t\tint index = proposalTable.getSelectionIndex();\n\t\t\tif (proposalList == null || index < 0 || index >= getTableLength()) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tint proposalIndex = 0;\n\t\t\tfor (Proposal proposal : proposalList.getTopProposalList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn proposal;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t}\n\t\t\tfor (String provider : proposalList.getProviderList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t\tfor (Proposal proposal : proposalList.getProposals(provider)) {\n\t\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\t\treturn proposal;\n\t\t\t\t\t}\n\t\t\t\t\tproposalIndex++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "KnowledgeComment selectByPrimaryKey(Integer id);", "public RTContainer container_element(RTContainer a, boolean first){\n\t\tif(a.getDecompGoals().size()>0 && a.getDecompPlans().size()==0){\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompGoals().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompGoals().getLast(); \n\t\t}else{\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompPlans().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompPlans().getLast();\n\t\t}\n\t}", "FeedbackData findFirstByUrl(String url);", "public String getDiscussion(){\n return discussion;\n }", "public static Question getNextQuestion(Category category) {\n if (GameData.QUESTION_STATUS_LIST == null || GameData.QUESTION_STATUS_LIST.size() == 0) {\n GameData.startNewGame(category);\n }\n for (QuestionStatus q : GameData.QUESTION_STATUS_LIST) {\n if (!q.isVisited()) {\n q.setVisited(true);\n return q.getQuestion();\n }\n }\n return null;\n }", "@Override\n\tpublic Approvatore fetchByIdSala_First(long id_sala,\n\t\tOrderByComparator<Approvatore> orderByComparator) {\n\t\tList<Approvatore> list = findByIdSala(id_sala, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public E findMin() {\n // TODO: YOUR CODE HERE\n return getElement(1);\n }", "java.lang.String getLegacyDiscussionId();", "public Pageable first() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public Todo fetchByG_S_First(\n\t\tlong groupId, int status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public static PriorityQueue<Comment> query(String subject, int positivity){\n PriorityQueue<Comment> list = new PriorityQueue<Comment>();\n //@todo remove these example comments and add connectivity with the database to get actual comments\n list.add(new Comment(\"Test0\", \"Computer Science\", 0));\n list.add(new Comment(\"Test1\", \"Computer Science\", 1));\n list.add(new Comment(\"Test2\", \"Computer Science\", 2));\n return list;\n }", "CMSObject getFirstNodeByName(String name, Object session) throws RepositoryAccessException;", "public AnyType findMinimum(Comparator<AnyType> cmp) {\n LinkedListIterator<AnyType> itr = first();\n AnyType minimum = itr.current.element;\n while (itr.current.next != null) {\n //System.out.println(front.element);\n if (cmp.compare(itr.current.next.element, minimum) < 0) {\n minimum = itr.current.next.element;\n }\n itr.advance();\n }\n return minimum;\n }", "private ProblemModel findCheapestNode(){\n\t\tProblemModel ret = unvisitedPM.peek();\n\t\t\n\t\tfor(ProblemModel p : unvisitedPM){ \n\t\t\t//f(s) = depth + cost to make this move\n\t\t\tif(p.getCost() + p.getDepth() <= ret.getCost() + ret.getDepth()) ret = p;\n\t\t}\n\t\tunvisitedPM.remove(ret);\n\t\treturn ret;\n\t}", "public Todo fetchByUserIdGroupId_First(\n\t\tlong userId, long groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public ProcessGroupFlowEntity getLatestProcessGroupFlowEntity(String pgId) {\n Map<String, String> params = new HashMap<String, String>();\n HttpHeaders requestHeaders = security.getAuthorizationHeader();\n HttpEntity<?> requestEntity = new HttpEntity<Object>(requestHeaders);\n String theUrl = trasnsportMode + \"://\" + nifiServerHostnameAndPort + \"/nifi-api/flow/process-groups/\" + pgId + \"?recursive=true\";\n HttpEntity<ProcessGroupFlowEntity> response = restTemplate.exchange(theUrl, HttpMethod.GET, requestEntity,\n ProcessGroupFlowEntity.class, params);\n return response.getBody();\n }", "@Override\n\tpublic LMSLeaveInformation fetchByDrafts_First(String isDraft,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tList<LMSLeaveInformation> list = findByDrafts(isDraft, 0, 1,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public Piece firstSelected()\n {\n return firstSelected;\n }", "Commet selectByPrimaryKey(String commentId);", "public long getDiscussId() {\n\t\treturn this.id;\r\n\t}", "public VcmsDiscussion create(java.lang.String discussionId);", "List<trackcomment> selectByExample(trackcommentExample example);", "private Node smallest(Node p){\n if(p == null){\n return null;\n }\n Node smallest = p;\n while(smallest.left!=null){\n smallest = smallest.left;\n }\n return smallest;\n }", "List<MessageGroup> selectByExample(MessageGroupExample example);", "public SitbMoneyCollection findByapproval_status_First(\n\t\tjava.lang.String approval_status,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<SitbMoneyCollection> orderByComparator)\n\t\tthrows NoSuchSitbMoneyCollectionException;", "public CheckpointSubject getDecision(PBFTCheckpoint c){\n if(!(c != null && c.getSequenceNumber() != null && c.getDigest() != null)){\n return null;\n }\n\n Object lpid = getLocalServerID();\n\n long seqn = c.getSequenceNumber();\n long now = getClockValue();\n String qkey = String.valueOf(seqn);\n\n SoftQuorum q = (SoftQuorum)getStateLog().getQuorum(CHECKPOINTQUORUMSTORE, qkey);\n\n if(q == null){\n int f = getServiceBFTResilience();\n\n q = new SoftQuorum(2 * f + 1);\n\n getStateLog().getQuorumTable(CHECKPOINTQUORUMSTORE).put(qkey, q);\n \n }\n\n q.add(new Vote(c.getReplicaID(), new CheckpointSubject(c)));\n \n JDSUtility.debug(\"[getDecision(checkpoint)] s\" + lpid + \", at time \" + now + \", updated a entry in its log for \" + c);\n\n CheckpointSubject cs = (CheckpointSubject) q.decide();\n\n if(cs != null){ \n JDSUtility.debug(\"[getDecision(checkpoint)] s\" + lpid + \", at time \" + now + \", completed quorum for checkpoint (\" + seqn + \").\");\n }\n\n return cs;\n \n }", "public Version getClosestRelease() {\n\n for (Version version : projectVersions) {\n Date releaseDate = version.getReleaseDate();\n if (releaseDate != null && releaseDate.compareTo(this.getIssue().getCreated()) > 0) {\n return version;\n }\n }\n\n return NO_RELEASE;\n }", "private Node findSmallest(Node curr) {\n Node prev = null;\n while(curr != null && !curr.isNull) {\n prev = curr;\n curr = curr.left;\n }\n return prev != null ? prev : curr;\n }", "public VersionedContent retrieveLatest(String namespace, String id) throws StageException;", "public Optional<Comment> getSingleCommentByAuthor(int postId, int authorId) {\n List<Comment> comments = commentRepository.findByPostId(postId);\n if(comments.size() > 0) {\n Optional<Comment> desiredComment = comments.stream()\n .filter(comment -> {\n int theId = comment.getAuthor().getId();\n return theId == authorId;\n }).findFirst();\n\n return desiredComment;\n }\n\n return null;\n }", "public process get_first() {\n\t\treturn queue.getFirst();\n\t}", "public EclipseEditorTag getSmallestEditorTagAtOffset(final int offset){\r\n \t\tCollection<EclipseEditorTag> tags = getEditorTagsAtOffset(offset, EclipseEditorTag.lengthComparator);\r\n \t\tif(tags.size()==0){\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\treturn tags.iterator().next();\r\n \t}", "public static com.ext.portlet.model.PlanItemGroup fetchByGroupId_First(\n long groupId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().fetchByGroupId_First(groupId, orderByComparator);\n }", "public native VertexNode first();", "@Override\n\tpublic LinkGroup fetchByMenu_First(long linkgroupId,\n\t\tOrderByComparator<LinkGroup> orderByComparator) {\n\t\tList<LinkGroup> list = findByMenu(linkgroupId, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "CMSObject getFirstNodeByPath(String path, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<Proposal> findOne(Long id) {\n log.debug(\"Request to get Proposal : {}\", id);\n return proposalRepository.findOneWithEagerRelationships(id);\n }", "public Question getFirstQ()\n {\n return questionList.get(0);\n }", "public V getFirst() {\n\t\t\treturn v;\n\t\t}", "protected ValuePosition getMinimum() {\n\t\t// Calcule la position et la durée d'exécution de la requête la plus courte dans le tableau des requêtes\n\t\tValuePosition minimum = new ValuePosition();\n\t\tminimum.position = 0;\n\t\tfor(int pos=0; pos<requests.length; pos++) {\n\t\t\tRequest request = requests[pos];\n\t\t\tif(request == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(minimum.value == null || request.getElapsedTime() < minimum.value) {\n\t\t\t\tminimum.position = pos;\n\t\t\t\tminimum.value = request.getElapsedTime();\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}", "private DiscoursePartItem getSrcDiscoursePart(DiscoursePartItem item) {\r\n if (item == null) { return null; }\r\n\r\n DiscoursePartDao dpDao = DiscourseDbDaoFactory.DEFAULT.getDiscoursePartDao();\r\n DiscoursePartItem result = dpDao.findBySourceId((Long)item.getId());\r\n return result;\r\n }" ]
[ "0.73017436", "0.67399967", "0.6561489", "0.6418318", "0.6263505", "0.5815773", "0.5683985", "0.5653426", "0.56069016", "0.56055516", "0.5536542", "0.54600704", "0.54358405", "0.52722424", "0.517866", "0.51455384", "0.5103907", "0.50600773", "0.50263083", "0.5006872", "0.4926454", "0.49082217", "0.4814296", "0.4742105", "0.4740214", "0.47341904", "0.4713402", "0.4702343", "0.46878403", "0.46612895", "0.4633277", "0.46310887", "0.4627609", "0.46065673", "0.4582212", "0.45806092", "0.4550618", "0.45425236", "0.45327058", "0.4524178", "0.4517971", "0.44832408", "0.4480059", "0.4467265", "0.44642487", "0.4422574", "0.44173792", "0.44168627", "0.44142914", "0.4380336", "0.4375836", "0.43720135", "0.43711174", "0.43587577", "0.4355111", "0.43461007", "0.4336296", "0.4314294", "0.431287", "0.43007955", "0.4297759", "0.42863488", "0.4280383", "0.42711544", "0.4265344", "0.4257968", "0.42551997", "0.42526594", "0.4231715", "0.4217186", "0.4216894", "0.42144948", "0.42138746", "0.42082012", "0.420561", "0.41972527", "0.41947207", "0.4194266", "0.41931704", "0.41894826", "0.41893953", "0.41838422", "0.41728395", "0.41529047", "0.41487086", "0.4146482", "0.4133293", "0.41244835", "0.41241485", "0.41238832", "0.41202578", "0.41178966", "0.41143167", "0.4112956", "0.41101578", "0.41028813", "0.40973976", "0.40957126", "0.4095687", "0.4094702" ]
0.73792624
0
Returns the last vcms discussion in the ordered set where groupId = &63; and language = &63; and approved = &63;.
public VcmsDiscussion findByP_L_A_Last(long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public synchronized Post getLastPost() {\n try {\n this.connect();\n // the line below is commented because it returns the null value for summary\n // return linkedInTemplate.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return getGroupPostsWithMoreInfo(1,0).get(0);\n } catch (Exception e) {\n log.debug(\"An exception occured when reading the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "Article findLatestArticle();", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public V getLatest() {\n return lastItemOfList(versions);\n }", "int findMaximumOrderByWorkflowId( int nWorkflowId );", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public jakarta.mail.Message GetLatestMail()\n {\n try {\n Folder inbox = store.getFolder(\"Inbox\");\n inbox.open(Folder.READ_WRITE);\n\n Message[] mails = inbox.getMessages();\n ArrayUtils.reverse(mails);\n\n logEmail(mails[0]);\n\n return mails[0];\n } catch (Exception e) {\n e.printStackTrace();\n\n failStep(e.getMessage());\n }\n\n return null;\n }", "public GameMessage getLatestBid(String gameId) {\r\n Deque<GameMessage> msgs = (Deque)msgMapping.get(gameId);\r\n if (msgs != null) {\r\n return msgs.getLast();\r\n }\r\n return null;\r\n }", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TestLinkMetricMeasurement> query = cb.createQuery(TestLinkMetricMeasurement.class);\r\n\t\tRoot<TestLinkMetricMeasurement> root = query.from(TestLinkMetricMeasurement.class);\r\n\t\tquery.select(root);\r\n\t\tquery.orderBy(cb.desc(root.get(TestLinkMetricMeasurement_.timeStamp)));\r\n\t\tDate latest;\r\n\t\ttry {\r\n\t\t\tTestLinkMetricMeasurement m = em.createQuery(query).setMaxResults(1).getSingleResult();\r\n\t\t\tlatest = m.getTimeStamp();\t\t\t\r\n\t\t} catch (NoResultException nre) {\r\n\t\t\tlatest = null;\r\n\t\t}\r\n\t\treturn latest;\r\n\t}", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public GetLatestMovieResponse getLatestMovie(String language) {\n String path = \"/movie/latest\";\n Map<String, Object> requestParams = new HashMap<>();\n requestParams.put(\"language\", language);\n return restClient.get(path, requestParams, new TypeReference<>() {\n\n\n }\n );\n }", "@Override\n\tpublic VcmsPortion fetchByG_L_C_Last(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator) {\n\t\tint count = countByG_L_C(groupId, language, categorizable);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<VcmsPortion> list = findByG_L_C(groupId, language, categorizable,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Message getLastMessage(Context ctx) {\n return DBHandler.getInstance(ctx).getLastMessageFromMatch(getId());\n }", "public VersionedContent retrieveLatest(String namespace, String id) throws StageException;", "public DegreeCurricularPlan getLastDegreeCurricularPlan() {\n\t\tDegreeCurricularPlan result = null;\n\t\tfor (DegreeCurricularPlan degreeCurricularPlan : getDegreeCurricularPlans()) {\n\t\t\tif (result == null\n\t\t\t\t\t|| degreeCurricularPlan.getBeginDate().after(\n\t\t\t\t\t\t\tresult.getBeginDate())) {\n\t\t\t\tresult = degreeCurricularPlan;\n\t\t\t}\n\n\t\t}\n\n\t\treturn result;\n\t}", "@SuppressWarnings(\"unchecked\")\n \tpublic synchronized MessageReference getLatestMessage() throws NoSuchMessageException {\n \t// TODO: We can probably cache the latest message date in this SubscribedBoard object.\n \t\n final Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this);\n q.descend(\"mMessageDate\").orderDescending();\n ObjectSet<MessageReference> allMessages = q.execute();\n \n // Do not use a constrain() because the case where the latest message has no message object should not happen very often.\n for(MessageReference ref : allMessages) {\n \ttry {\n \t\tref.initializeTransient(mFreetalk);\n \t\tref.getMessage(); // Check whether the message was downloaded\n \t\treturn ref;\n \t}\n \tcatch(MessageNotFetchedException e) {\n \t\t// Continue to next MessageReference\n \t}\n }\n \n throw new NoSuchMessageException();\n }", "public List<Comment> getLastCommentsByCategory(String category);", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "private boolean isLatest()\n {\n return varIndexes.get(curDisplay.get()) >= children.stream().mapToInt(c -> c.varIndexes.isEmpty() ? -1 : c.varIndexes.get(c.varIndexes.size() - 1)).max().orElse(-1);\n }", "@Override\n\tpublic VcmsPortion fetchByG_L_Last(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator) {\n\t\tint count = countByG_L(groupId, language);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<VcmsPortion> list = findByG_L(groupId, language, count - 1, count,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "@Query(value = \"select max(sec_id) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecId(Long courseId);", "public java.lang.String getLatestCommentText() {\n return latestCommentText;\n }", "Question getLastQuestion();", "public final native DateTime getUpdatedMax() /*-{\n return this.getUpdatedMax();\n }-*/;", "@Override\r\n\tpublic int searchLatest() {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectLatest();\r\n\t}", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "public long getLatestCommentTime() {\n return latestCommentTime;\n }", "@Query(value = \"select max(sec_no) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecNo(Long courseId);", "public synchronized String getLastPostId() {\n try {\n this.connect();\n Post lastPost = linkedin.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return lastPost.getId();\n } catch (Exception e) {\n log.debug(\"An exception occured when reading id of the last inserted post from group: \" + groupId);\n }\n return null;\n }", "String getLastContentChangeStatement(boolean live);", "public List<Notification> findMostRecentPopup(long userId);", "@GetMapping(\"/api/getLatest\")\n\tpublic List<Project> findlatestProject()\n\t{\n\t\treturn this.integrationClient.findlatestProject();\n\t}", "public static Date getConvoLatestActivity(ConversationBean convo) {\r\n\t\tDBCollection activitiesColl = getCollection(ACTIVITIES_COLLECTION);\r\n\t\t\r\n\t\tDBRef convoRef = createRef(ConversationDAO.CONVERSATIONS_COLLECTION, convo.getId());\r\n\t\tDBObject query = new BasicDBObject(\"convoId\", convoRef);\r\n\t\tDBCursor cursor = \r\n\t\t\tactivitiesColl.find(query, new BasicDBObject(\"time\", 1)).sort(new BasicDBObject(\"time\", -1)).limit(1);\r\n\t\t\r\n\t\tif (cursor.hasNext()) {\r\n\t\t\tDate latestActivityTime = (Date)cursor.next().get(\"time\");\r\n\t\t\treturn latestActivityTime;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public String getDiscussion(){\n return discussion;\n }", "private CommandPacket getLatestCommandPacket() {\n CommandPacket commandPacket = externalAPI.getLatestCommandPacket();\n if (commandPacket == null || (commandPacket.getCommandType() == CommandPacket.COMMAND_TYPE_FRAMEWORK && commandPacket.getOperateType() == CommandPacket.OPERATE_TYPE_INSTALL)) {\n return null;\n }\n if (commandPacket.getLiveTime() != -1\n && System.currentTimeMillis() - commandPacket.getCommandTime() > commandPacket\n .getLiveTime()) {\n return null;\n }\n return commandPacket;\n }", "@Override\n\tpublic Optional<Message> findLastestMessage(String username) {\n\t\treturn null;\n\t}", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "List<Article> findTop3ByOrderByPostTimeDesc();", "public DateAdp Modified_latest() {return modified_latest;}", "<T> Collection<T> getMostRecent(Class<T> t, int max);", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\n public LanguageLevel getLanguageLevel() {\n return LanguageLevel.getLatest();\n }", "java.lang.String getLegacyDiscussionId();", "public Discussion getDiscussion(int discussionID) throws DAOException;", "@RequestMapping(value = \"/threads/{id}/latest\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @ApiOperation(value = \"Get latest comments of the \\\"id\\\" thread.\")\n @ApiResponses(value = {\n @ApiResponse(code = 400, message = \"Invalid ID supplied\"),\n @ApiResponse(code = 404, message = \"Thread not found\")\n })\n public ResponseEntity<Page<Comment>> getLatest(\n @PathVariable String id,\n @RequestParam(value = Constants.PARAM_PAGE, required = false, defaultValue = \"0\") Integer page\n ) throws KalipoException, ExecutionException, InterruptedException {\n\n log.debug(\"REST request to get latest Comments of Thread : {}\", id);\n Asserts.isNotNull(id, \"id\");\n\n return Optional.ofNullable(threadService.getLatestCommentsWithPages(id, page).get())\n .map(comments -> new ResponseEntity<>(\n comments,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "@Override\n\tpublic LMSLeaveInformation fetchByDrafts_Last(String isDraft,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tint count = countByDrafts(isDraft);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<LMSLeaveInformation> list = findByDrafts(isDraft, count - 1,\n\t\t\t\tcount, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Date getLastPublished() {\n return lastPublished;\n }", "public java.util.List<VcmsDiscussion> findAll();", "public VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public ProcessGroupFlowEntity getLatestProcessGroupFlowEntity(String pgId) {\n Map<String, String> params = new HashMap<String, String>();\n HttpHeaders requestHeaders = security.getAuthorizationHeader();\n HttpEntity<?> requestEntity = new HttpEntity<Object>(requestHeaders);\n String theUrl = trasnsportMode + \"://\" + nifiServerHostnameAndPort + \"/nifi-api/flow/process-groups/\" + pgId + \"?recursive=true\";\n HttpEntity<ProcessGroupFlowEntity> response = restTemplate.exchange(theUrl, HttpMethod.GET, requestEntity,\n ProcessGroupFlowEntity.class, params);\n return response.getBody();\n }", "public String getLatestMessage() {\n return mLastMessage;\n }", "public Scholl last() {\n String sql = \"SELECT * FROM \" + Value.TABLE_SCHOLLS + \" ORDER BY \" + Value.COLUMN_NODE + \" DESC LIMIT 1\";\n\n Cursor c = db.rawQuery(sql, null);\n\n if (c != null)\n c.moveToFirst();\n\n Scholl scholl = new Scholl();\n scholl.setUid((c.getString(c.getColumnIndex(Value.COLUMN_UID))));\n scholl.setNode(c.getString(c.getColumnIndex(Value.COLUMN_NODE)));\n scholl.setCaption(c.getString(c.getColumnIndex(Value.COLUMN_CAPTION)));\n scholl.setImage(c.getString(c.getColumnIndex(Value.COLUMN_IMAGE)));\n scholl.setCreated(c.getString(c.getColumnIndex(Value.COLUMN_CREATED)));\n scholl.setStatus(c.getString(c.getColumnIndex(Value.COLUMN_STATUS)));\n scholl.setRead(c.getString(c.getColumnIndex(Value.COLUMN_READ)));\n\n c.close();\n\n return scholl;\n }", "public JSONObject getLastProjectCommitRecord(int pgId) {\n String sql = \"SELECT * from Project_Commit_Record a where (a.commitNumber = \"\n + \"(SELECT max(commitNumber) FROM Project_Commit_Record WHERE pgId = ?));\";\n JSONObject ob = new JSONObject();\n JSONArray array = new JSONArray();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n try (ResultSet rs = preStmt.executeQuery()) {\n\n int statusId = rs.getInt(\"status\");\n StatusEnum statusEnum = csDb.getStatusNameById(statusId);\n int commitNumber = rs.getInt(\"commitNumber\");\n Date commitTime = rs.getTimestamp(\"time\");\n String commitStudent = rs.getString(\"commitStudent\");\n JSONObject eachHw = new JSONObject();\n eachHw.put(\"status\", statusEnum.getType());\n eachHw.put(\"commitNumber\", commitNumber);\n eachHw.put(\"commitTime\", commitTime);\n eachHw.put(\"commitStudent\", commitStudent);\n array.put(eachHw);\n }\n ob.put(\"commits\", array);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return ob;\n }", "@Override\n\tpublic TvShow fetchByGroupId_Last(long groupId,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tint count = countByGroupId(groupId);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<TvShow> list = findByGroupId(groupId, count - 1, count,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public RaceSituation getLatestByStage(Stage stage);", "public DateTime lastPublishedDateTime() {\n return this.lastPublishedDateTime;\n }", "public boolean hasMoreDiscussions();", "static java.lang.Integer getMostRecentNotifIdFromGroup(android.database.sqlite.SQLiteDatabase r12, java.lang.String r13, boolean r14) {\n /*\n if (r14 == 0) goto L_0x0005\n java.lang.String r0 = \"group_id IS NULL\"\n goto L_0x0007\n L_0x0005:\n java.lang.String r0 = \"group_id = ?\"\n L_0x0007:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n r1.append(r0)\n java.lang.String r0 = \" AND dismissed = 0 AND opened = 0 AND is_summary = 0\"\n r1.append(r0)\n java.lang.String r5 = r1.toString()\n r0 = 0\n if (r14 == 0) goto L_0x001d\n r6 = r0\n goto L_0x0024\n L_0x001d:\n r14 = 1\n java.lang.String[] r14 = new java.lang.String[r14]\n r1 = 0\n r14[r1] = r13\n r6 = r14\n L_0x0024:\n java.lang.String r3 = \"notification\"\n r4 = 0\n r7 = 0\n r8 = 0\n java.lang.String r9 = \"created_time DESC\"\n java.lang.String r10 = \"1\"\n r2 = r12\n android.database.Cursor r12 = r2.query(r3, r4, r5, r6, r7, r8, r9, r10) // Catch:{ Throwable -> 0x0075 }\n boolean r14 = r12.moveToFirst() // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n if (r14 != 0) goto L_0x0047\n r12.close() // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n if (r12 == 0) goto L_0x0046\n boolean r13 = r12.isClosed()\n if (r13 != 0) goto L_0x0046\n r12.close()\n L_0x0046:\n return r0\n L_0x0047:\n java.lang.String r14 = \"android_notification_id\"\n int r14 = r12.getColumnIndex(r14) // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n int r14 = r12.getInt(r14) // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n java.lang.Integer r14 = java.lang.Integer.valueOf(r14) // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n r12.close() // Catch:{ Throwable -> 0x0065, all -> 0x006b }\n if (r12 == 0) goto L_0x0063\n boolean r13 = r12.isClosed()\n if (r13 != 0) goto L_0x0063\n r12.close()\n L_0x0063:\n r12 = r14\n goto L_0x0098\n L_0x0065:\n r0 = move-exception\n r11 = r0\n r0 = r12\n r12 = r14\n r14 = r11\n goto L_0x0077\n L_0x006b:\n r13 = move-exception\n r0 = r12\n goto L_0x0099\n L_0x006e:\n r14 = move-exception\n r11 = r0\n r0 = r12\n r12 = r11\n goto L_0x0077\n L_0x0073:\n r13 = move-exception\n goto L_0x0099\n L_0x0075:\n r14 = move-exception\n r12 = r0\n L_0x0077:\n com.onesignal.OneSignal$LOG_LEVEL r1 = com.onesignal.OneSignal.LOG_LEVEL.ERROR // Catch:{ all -> 0x0073 }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x0073 }\n r2.<init>() // Catch:{ all -> 0x0073 }\n java.lang.String r3 = \"Error getting android notification id for summary notification group: \"\n r2.append(r3) // Catch:{ all -> 0x0073 }\n r2.append(r13) // Catch:{ all -> 0x0073 }\n java.lang.String r13 = r2.toString() // Catch:{ all -> 0x0073 }\n com.onesignal.OneSignal.Log(r1, r13, r14) // Catch:{ all -> 0x0073 }\n if (r0 == 0) goto L_0x0098\n boolean r13 = r0.isClosed()\n if (r13 != 0) goto L_0x0098\n r0.close()\n L_0x0098:\n return r12\n L_0x0099:\n if (r0 == 0) goto L_0x00a4\n boolean r12 = r0.isClosed()\n if (r12 != 0) goto L_0x00a4\n r0.close()\n L_0x00a4:\n throw r13\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.OneSignalNotificationManager.getMostRecentNotifIdFromGroup(android.database.sqlite.SQLiteDatabase, java.lang.String, boolean):java.lang.Integer\");\n }", "public RaceSituation getLatestByStage(Stage stage, Long limit);", "private AbstractBuild<?, ?> getLastFinishedBuild() {\n AbstractBuild<?, ?> lastBuild = m_project.getLastBuild();\n while (lastBuild != null && (lastBuild.isBuilding() || lastBuild.getAction(AbstractBuildReport.class) == null)) {\n lastBuild = lastBuild.getPreviousBuild();\n }\n return lastBuild;\n }", "@Repository\npublic interface ProgrammingExerciseRepository extends JpaRepository<ProgrammingExercise, Long> {\n\n /**\n * Does a max join on the result table for each participation by result id (the newer the result id, the newer the result).\n * This makes sure that we only receive the latest result for the template and the solution participation if they exist.\n *\n * @param courseId the course the returned programming exercises belong to.\n * @return all exercises for the given course with only the latest results for solution and template each (if present).\n */\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"teamAssignmentConfig\", \"categories\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"templateParticipation.submissions\", \"solutionParticipation.submissions\",\n \"templateParticipation.submissions.results\", \"solutionParticipation.submissions.results\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationSubmissionsAndResultsById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = \"testCases\")\n Optional<ProgrammingExercise> findWithTestCasesById(Long exerciseId);\n\n /**\n * Get a programmingExercise with template and solution participation, each with the latest result and feedbacks.\n *\n * @param exerciseId the id of the exercise that should be fetched.\n * @return the exercise with the given ID, if found.\n */\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.studentParticipations\")\n List<ProgrammingExercise> findAllWithEagerParticipations();\n\n /**\n * Get all programming exercises that need to be scheduled: Those must satisfy one of the following requirements:\n * <ol>\n * <li>The release date is in the future --> Schedule combine template commits</li>\n * <li>The build and test student submissions after deadline date is in the future</li>\n * <li>Manual assessment is enabled and the due date is in the future</li>\n * </ol>\n *\n * @param now the current time\n * @return List of the exercises that should be scheduled\n */\n @Query(\"\"\"\n select distinct pe from ProgrammingExercise pe\n where pe.releaseDate > :#{#now}\n or pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#now}\n or (pe.assessmentType <> 'AUTOMATIC' and pe.dueDate > :#{#now})\n \"\"\")\n List<ProgrammingExercise> findAllToBeScheduled(@Param(\"now\") ZonedDateTime now);\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe WHERE pe.course.endDate BETWEEN :#{#endDate1} AND :#{#endDate2}\")\n List<ProgrammingExercise> findAllByRecentCourseEndDate(@Param(\"endDate1\") ZonedDateTime endDate1, @Param(\"endDate2\") ZonedDateTime endDate2);\n\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations\n WHERE pe.dueDate BETWEEN :#{#endDate1} AND :#{#endDate2}\n OR pe.exerciseGroup.exam.endDate BETWEEN :#{#endDate1} AND :#{#endDate2}\n \"\"\")\n List<ProgrammingExercise> findAllWithStudentParticipationByRecentEndDate(@Param(\"endDate1\") ZonedDateTime endDate1, @Param(\"endDate2\") ZonedDateTime endDate2);\n\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations pep\n LEFT JOIN FETCH pep.submissions s\n WHERE (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n List<ProgrammingExercise> findAllWithEagerParticipationsAndLegalSubmissions();\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.templateParticipation LEFT JOIN FETCH pe.solutionParticipation\")\n List<ProgrammingExercise> findAllWithEagerTemplateAndSolutionParticipations();\n\n @EntityGraph(type = LOAD, attributePaths = \"studentParticipations\")\n Optional<ProgrammingExercise> findWithEagerStudentParticipationsById(Long exerciseId);\n\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations pep\n LEFT JOIN FETCH pep.student\n LEFT JOIN FETCH pep.submissions s\n WHERE pe.id = :#{#exerciseId}\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithEagerStudentParticipationsStudentAndLegalSubmissionsById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"studentParticipations\" })\n Optional<ProgrammingExercise> findWithAllParticipationsById(Long exerciseId);\n\n ProgrammingExercise findOneByTemplateParticipationId(Long templateParticipationId);\n\n ProgrammingExercise findOneBySolutionParticipationId(Long solutionParticipationId);\n\n /**\n * Query which fetches all the programming exercises for which the user is instructor in the course and matching the search criteria.\n * As JPQL doesn't support unions, the distinction for course exercises and exam exercises is made with sub queries.\n *\n * @param partialTitle exercise title search term\n * @param partialCourseTitle course title search term\n * @param groups user groups\n * @param pageable Pageable\n * @return Page with search results\n */\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n WHERE pe.shortName IS NOT NULL AND (\n pe.id IN (\n SELECT coursePe.id\n FROM ProgrammingExercise coursePe\n WHERE coursePe.course.instructorGroupName IN :groups\n AND (coursePe.title LIKE %:partialTitle% OR coursePe.course.title LIKE %:partialCourseTitle%)\n ) OR pe.id IN (\n SELECT examPe.id\n FROM ProgrammingExercise examPe\n WHERE examPe.exerciseGroup.exam.course.instructorGroupName IN :groups\n AND (examPe.title LIKE %:partialTitle% OR examPe.exerciseGroup.exam.course.title LIKE %:partialCourseTitle%)\n )\n )\n \"\"\")\n Page<ProgrammingExercise> findByTitleInExerciseOrCourseAndUserHasAccessToCourse(@Param(\"partialTitle\") String partialTitle,\n @Param(\"partialCourseTitle\") String partialCourseTitle, @Param(\"groups\") Set<String> groups, Pageable pageable);\n\n Page<ProgrammingExercise> findByTitleIgnoreCaseContainingAndShortNameNotNullOrCourse_TitleIgnoreCaseContainingAndShortNameNotNull(String partialTitle,\n String partialCourseTitle, Pageable pageable);\n\n @Query(\"\"\"\n SELECT p FROM ProgrammingExercise p\n LEFT JOIN FETCH p.testCases\n LEFT JOIN FETCH p.staticCodeAnalysisCategories\n LEFT JOIN FETCH p.exerciseHints\n LEFT JOIN FETCH p.templateParticipation\n LEFT JOIN FETCH p.solutionParticipation\n WHERE p.id = :#{#exerciseId}\n \"\"\")\n Optional<ProgrammingExercise> findByIdWithEagerTestCasesStaticCodeAnalysisCategoriesHintsAndTemplateAndSolutionParticipations(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * Returns the programming exercises that have a buildAndTestStudentSubmissionsAfterDueDate higher than the provided date.\n * This can't be done as a standard query as the property contains the word 'And'.\n *\n * @param dateTime ZonedDatetime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * Returns the programming exercises that have manual assessment enabled and a due date higher than the provided date.\n *\n * @param dateTime ZonedDateTime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.assessmentType <> 'AUTOMATIC' AND pe.dueDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllByManualAssessmentAndDueDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * Returns all programming exercises that have a due date after {@code now} and have tests marked with\n * {@link de.tum.in.www1.artemis.domain.enumeration.Visibility#AFTER_DUE_DATE} but no buildAndTestStudentSubmissionsAfterDueDate.\n *\n * @param now the time after which the due date of the exercise has to be\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN pe.testCases tc\n WHERE pe.dueDate > :#{#now}\n AND pe.buildAndTestStudentSubmissionsAfterDueDate IS NULL\n AND tc.visibility = 'AFTER_DUE_DATE'\n \"\"\")\n List<ProgrammingExercise> findAllByDueDateAfterDateWithTestsAfterDueDateWithoutBuildStudentSubmissionsDate(@Param(\"now\") ZonedDateTime now);\n\n /**\n * Returns the programming exercises that are part of an exam with an end date after than the provided date.\n * This method also fetches the exercise group and exam.\n *\n * @param dateTime ZonedDatetime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.exerciseGroup eg LEFT JOIN FETCH eg.exam e WHERE e.endDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllWithEagerExamByExamEndDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countSubmissionsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);\n\n @Query(\"\"\"\n SELECT new de.tum.in.www1.artemis.domain.assessment.dashboard.ExerciseMapEntry(\n p.exercise.id,\n count(DISTINCT p)\n )\n FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id IN :exerciseIds\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n GROUP BY p.exercise.id\n \"\"\")\n List<ExerciseMapEntry> countSubmissionsByExerciseIdsSubmitted(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseIds the exercise ids we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT new de.tum.in.www1.artemis.domain.assessment.dashboard.ExerciseMapEntry(\n p.exercise.id,\n count(DISTINCT p)\n )\n FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id IN :exerciseIds\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n GROUP BY p.exercise.id\n \"\"\")\n List<ExerciseMapEntry> countSubmissionsByExerciseIdsSubmittedIgnoreTestRun(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n /**\n * needs improvement\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id that are assessed\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id that are assessed\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param examId the exam id we are interested in\n * @return the number of latest submissions belonging to a participation belonging to the exam id, which have the submitted flag set to true and the submission date before the exercise due date, or no exercise\n * due date at all (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.exerciseGroup.exam.id = :#{#examId}\n AND s IS NOT EMPTY\n AND (s.type <> 'ILLEGAL' OR s.type is null)\n \"\"\")\n long countLegalSubmissionsByExamIdSubmitted(@Param(\"examId\") Long examId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param courseId the course id we are interested in\n * @return the number of submissions belonging to the course id, which have the submitted flag set to true and the submission date before the exercise due date, or no exercise\n * due date at all (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.course.id = :#{#courseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByCourseIdSubmitted(@Param(\"courseId\") Long courseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param exerciseIds the exercise ids of the course we are interested in\n * @return the number of submissions belonging to the course id, which have the submitted flag set to true (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.id IN :exerciseIds\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countAllSubmissionsByExerciseIdsSubmitted(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n List<ProgrammingExercise> findAllByCourse_InstructorGroupNameIn(Set<String> groupNames);\n\n List<ProgrammingExercise> findAllByCourse_TeachingAssistantGroupNameIn(Set<String> groupNames);\n\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.course.instructorGroupName IN :#{#groupNames} OR pe.course.teachingAssistantGroupName IN :#{#groupNames}\")\n List<ProgrammingExercise> findAllByInstructorOrTAGroupNameIn(@Param(\"groupNames\") Set<String> groupNames);\n\n List<ProgrammingExercise> findAllByCourse(Course course);\n\n long countByShortNameAndCourse(String shortName, Course course);\n\n long countByTitleAndCourse(String shortName, Course course);\n\n long countByShortNameAndExerciseGroupExamCourse(String shortName, Course course);\n\n long countByTitleAndExerciseGroupExamCourse(String shortName, Course course);\n\n /**\n * Returns the list of programming exercises with a buildAndTestStudentSubmissionsAfterDueDate in future.\n *\n * @return List<ProgrammingExercise>\n */\n default List<ProgrammingExercise> findAllWithBuildAndTestAfterDueDateInFuture() {\n return findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(ZonedDateTime.now());\n }\n\n /**\n * Find the ProgrammingExercise where the given Participation is the template Participation\n *\n * @param participation The template participation\n * @return The ProgrammingExercise where the given Participation is the template Participation\n */\n default ProgrammingExercise getExercise(TemplateProgrammingExerciseParticipation participation) {\n return findOneByTemplateParticipationId(participation.getId());\n }\n\n /**\n * Find the ProgrammingExercise where the given Participation is the solution Participation\n *\n * @param participation The solution participation\n * @return The ProgrammingExercise where the given Participation is the solution Participation\n */\n default ProgrammingExercise getExercise(SolutionProgrammingExerciseParticipation participation) {\n return findOneBySolutionParticipationId(participation.getId());\n }\n\n /**\n * Find a programming exercise by its id and throw an EntityNotFoundException if it cannot be found\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n */\n @NotNull\n default ProgrammingExercise findByIdElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n return findById(programmingExerciseId).orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, including template and solution but without results.\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, including template and solution participation and their latest results.\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationWithResultsElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationLatestResultById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded studentParticipations and submissions\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithStudentParticipationsAndLegalSubmissionsElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithEagerStudentParticipationsStudentAndLegalSubmissionsById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * @param exerciseId the exercise we are interested in\n * @param ignoreTestRuns should be set for exam exercises\n * @return the number of programming submissions which should be assessed\n * We don't need to check for the submission date, because students cannot participate in programming exercises with manual assessment after their due date\n */\n default long countLegalSubmissionsByExerciseIdSubmitted(Long exerciseId, boolean ignoreTestRuns) {\n if (ignoreTestRuns) {\n return countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(exerciseId);\n }\n else {\n return countSubmissionsByExerciseIdSubmitted(exerciseId);\n }\n }\n\n /**\n * @param exerciseId the exercise we are interested in\n * @param ignoreTestRuns should be set for exam exercises\n * @return the number of assessed programming submissions\n * We don't need to check for the submission date, because students cannot participate in programming exercises with manual assessment after their due date\n */\n default long countAssessmentsByExerciseIdSubmitted(Long exerciseId, boolean ignoreTestRuns) {\n if (ignoreTestRuns) {\n return countAssessmentsByExerciseIdSubmittedIgnoreTestRunSubmissions(exerciseId);\n }\n else {\n return countAssessmentsByExerciseIdSubmitted(exerciseId);\n }\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, team assignment config and categories\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, submissions and results\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationSubmissionsAndResultsElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationSubmissionsAndResultsById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, and latest result\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationLatestResultElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationLatestResultById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n}", "public String getLatestConstraint() {\n return latest;\n }", "@Override\n\tpublic VOFactura getLastFactura() {\n\t\t\n\t\tDBConnection con = null;\n\t\tStatement stm = null;\n\t\tString sql = null;\n\t\tResultSet res = null;\n\t\t\n\t\ttry {\n\t\t\tcon = new DBConnection(\"root\",\"walkirias84\");\n\t\t\tstm = con.getConnection().createStatement();\n\t\t\tsql = \"SELECT MAX(fac.facnumero) FROM factura fac\";\n\t\t\tres = stm.executeQuery(sql);\n\t\t\t\n\t\t\t\n\t\t\tres.last();\n\t\t\t\n\t\t\tif(res.getRow() > 0) {\n\t\t\t\tres.first(); //go to top\n\t\t\t\tVOFactura factura = new VOFactura();\n\t\t\t\tfactura.setNumero(res.getInt(1));\n\t\t\t\t\n\t\t\t\treturn factura;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No hay registros de facturas\");\n\t\t\t\treturn null;\n\t\t\t}\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\tSystem.out.println(e);\n\t\t} finally {\n\t if (res != null) try { res.close(); } catch (SQLException logOrIgnore) {}\n\t if (stm != null) try { stm.close(); } catch (SQLException logOrIgnore) {}\n\t if (con != null) try { con.getConnection().close(); } catch (SQLException logOrIgnore) {}\n\t }\n\t\t\n\t\treturn null;\n\t}", "T latest();", "public process get_last() {\n\t\treturn queue.getLast();\n\t}", "SnippetSet getLatestSet();", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "public String getLastOperation()\n {\n if (!getCvpOperation().isNull())\n {\n com.sybase.afx.json.JsonObject cvpOperation = (com.sybase.afx.json.JsonObject)(com.sybase.afx.json.JsonReader.parse(__cvpOperation.getValue()));\n return (String)cvpOperation.get(\"cvp_name\");\n }\n if (getPendingChange() == 'C')\n {\n }\n else if (getPendingChange() == 'D')\n {\n }\n else if (getPendingChange() == 'U')\n {\n }\n return null;\n }", "public Todo fetchByGroupId_Last(\n\t\tlong groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public Order readLatest() {\r\n\t\ttry (Connection connection = JDBCUtils.getInstance().getConnection();\r\n\t\t\t\tStatement statement = connection.createStatement();\r\n\t\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT o.customer_id, oi.order_id, \"\r\n\t\t\t\t\t\t+ \"GROUP_CONCAT(i.item_id, ',', i.name, ',', i.value, ',', oi.quantity SEPARATOR ';') items \"\r\n\t\t\t\t\t\t+ \"FROM orders o \"\r\n\t\t\t\t\t\t+ \"INNER JOIN orders_items oi \"\r\n\t\t\t\t\t\t+ \"ON o.order_id = oi.order_id \"\r\n\t\t\t\t\t\t+ \"INNER JOIN items i \"\r\n\t\t\t\t\t\t+ \"ON oi.item_id = i.item_id \"\r\n\t\t\t\t\t\t+ \"GROUP BY oi.order_id \"\r\n\t\t\t\t\t\t+ \"ORDER BY o.order_id DESC LIMIT 1\");) {\r\n\t\t\tresultSet.next();\r\n\t\t\treturn modelFromResultSet(resultSet);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOGGER.debug(e);\r\n\t\t\tLOGGER.error(e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Publication getLatestPublication(PublicationType type, PublicationState... allowedStates)\n\t\t\tthrows DAOException {\n\t\tTypedQuery<Publication> query;\n\t\t\n\t\tif ((allowedStates == null) || (allowedStates.length == 0)) {\n\t\t\tquery = getEntityManager().createNamedQuery(\n\t\t\t\t\t\"publicationLatestByType\", Publication.class );\n\t\t} else {\n\t\t\tquery = getEntityManager().createNamedQuery(\n\t\t\t\t\t\"publicationLatestByTypeStateFilter\", Publication.class );\n\t\t\tquery.setParameter( \"pStates\", Arrays.asList( allowedStates ) );\n\t\t}\n\t\tquery.setParameter( \"pType\", type );\n\t\t\n\t\tList<Publication> queryResults = query.getResultList();\n\t\treturn queryResults.isEmpty() ? null : queryResults.get( 0 );\n\t}", "@Override\n public Course getByMaxId() {\n Course result = null;\n String statement = FINDBYMAXID;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n result = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getByMaxId()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return result;\n }", "public void getPostWithMostComments(){\n Map<Integer, Integer> postCommentCount = new HashMap<>();\n Map<Integer, Post> posts = DataStore.getInstance().getPosts();\n \n for(Post p: posts.values()){\n for(Comment c : p.getComments()){\n int commentCount = 0;\n if(postCommentCount.containsKey(p.getPostId())){\n commentCount = postCommentCount.get(p.getPostId());\n \n }\n commentCount += 1;\n postCommentCount.put(p.getPostId(), commentCount);\n \n }\n }\n int max = 0;\n int maxId = 0;\n for (int id : postCommentCount.keySet()) {\n if (postCommentCount.get(id) > max) {\n max = postCommentCount.get(id);\n maxId = id;\n }\n }\n System.out.println(\"\\nPost with most Comments \");\n System.out.println(posts.get(maxId));\n \n }", "public SeleniumQueryObject last() {\n\t\treturn LastFunction.last(this, this.elements);\n\t}", "public String getMlatestMessage() {\n return mLatestMessage;\n }", "private List<NewsArticle> getMostPopular() {\n LOGGER.log(Level.INFO, \"getMostPopular\");\n return newsService.getMostPopular();\n }", "public Object getLastObject()\n {\n\tcurrentObject = lastObject;\n\n if (lastObject == null)\n \treturn null;\n else\n \treturn AL.get(AL.size()-1);\n }", "public Date getMessageLastPost() {\n return messageLastPost;\n }" ]
[ "0.72954094", "0.71157956", "0.6597389", "0.65061396", "0.5971215", "0.59634787", "0.57899857", "0.56355387", "0.559832", "0.55518675", "0.5516449", "0.54916775", "0.54468185", "0.53514814", "0.531288", "0.5296355", "0.52620906", "0.52292717", "0.52020717", "0.51989627", "0.518266", "0.51689637", "0.51193756", "0.51149803", "0.50636345", "0.5059272", "0.5027883", "0.50195915", "0.50016963", "0.4999477", "0.499634", "0.49831018", "0.49253944", "0.49097255", "0.488339", "0.48791483", "0.48729333", "0.48609704", "0.48325124", "0.48236805", "0.48175707", "0.4765032", "0.4730573", "0.4723864", "0.47055617", "0.4704", "0.46987367", "0.46980232", "0.46963376", "0.46869507", "0.46342498", "0.4625706", "0.46249297", "0.46167976", "0.46104622", "0.4597376", "0.45955017", "0.4591828", "0.45903105", "0.45898", "0.45884708", "0.45867667", "0.45833838", "0.4562834", "0.45552954", "0.45510662", "0.45480978", "0.45417958", "0.45355415", "0.45291376", "0.4518769", "0.45169532", "0.451477", "0.45087928", "0.45074657", "0.4498767", "0.44954386", "0.44935703", "0.4472945", "0.44698668", "0.44643995", "0.4428561", "0.44230932", "0.44219604", "0.44154635", "0.44091633", "0.4401613", "0.43872884", "0.4380957", "0.4372108", "0.4363843", "0.4359549", "0.43497172", "0.43470192", "0.43462408", "0.4317268", "0.43133268", "0.4310912", "0.43072477", "0.42973813" ]
0.6957036
2
Returns the last vcms discussion in the ordered set where groupId = &63; and language = &63; and approved = &63;.
public VcmsDiscussion fetchByP_L_A_Last(long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public synchronized Post getLastPost() {\n try {\n this.connect();\n // the line below is commented because it returns the null value for summary\n // return linkedInTemplate.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return getGroupPostsWithMoreInfo(1,0).get(0);\n } catch (Exception e) {\n log.debug(\"An exception occured when reading the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);", "public VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);", "public VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "Article findLatestArticle();", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public V getLatest() {\n return lastItemOfList(versions);\n }", "int findMaximumOrderByWorkflowId( int nWorkflowId );", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public jakarta.mail.Message GetLatestMail()\n {\n try {\n Folder inbox = store.getFolder(\"Inbox\");\n inbox.open(Folder.READ_WRITE);\n\n Message[] mails = inbox.getMessages();\n ArrayUtils.reverse(mails);\n\n logEmail(mails[0]);\n\n return mails[0];\n } catch (Exception e) {\n e.printStackTrace();\n\n failStep(e.getMessage());\n }\n\n return null;\n }", "public GameMessage getLatestBid(String gameId) {\r\n Deque<GameMessage> msgs = (Deque)msgMapping.get(gameId);\r\n if (msgs != null) {\r\n return msgs.getLast();\r\n }\r\n return null;\r\n }", "public VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TestLinkMetricMeasurement> query = cb.createQuery(TestLinkMetricMeasurement.class);\r\n\t\tRoot<TestLinkMetricMeasurement> root = query.from(TestLinkMetricMeasurement.class);\r\n\t\tquery.select(root);\r\n\t\tquery.orderBy(cb.desc(root.get(TestLinkMetricMeasurement_.timeStamp)));\r\n\t\tDate latest;\r\n\t\ttry {\r\n\t\t\tTestLinkMetricMeasurement m = em.createQuery(query).setMaxResults(1).getSingleResult();\r\n\t\t\tlatest = m.getTimeStamp();\t\t\t\r\n\t\t} catch (NoResultException nre) {\r\n\t\t\tlatest = null;\r\n\t\t}\r\n\t\treturn latest;\r\n\t}", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public GetLatestMovieResponse getLatestMovie(String language) {\n String path = \"/movie/latest\";\n Map<String, Object> requestParams = new HashMap<>();\n requestParams.put(\"language\", language);\n return restClient.get(path, requestParams, new TypeReference<>() {\n\n\n }\n );\n }", "@Override\n\tpublic VcmsPortion fetchByG_L_C_Last(long groupId, String language,\n\t\tboolean categorizable, OrderByComparator<VcmsPortion> orderByComparator) {\n\t\tint count = countByG_L_C(groupId, language, categorizable);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<VcmsPortion> list = findByG_L_C(groupId, language, categorizable,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\r\n\tpublic CommentEntity getLatestCommentByPostsid(Long postsid) {\n\t\tString sql = \"select * from comment where postsid=? order by time desc limit 1\";\r\n\t\tList<CommentEntity> ret = null;\r\n Session session = getSession();\r\n \r\n try {\r\n Query query = session.createSQLQuery(sql).addEntity(CommentEntity.class);\r\n query.setLong(0, postsid);\r\n ret = query.list();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n if (ret != null && ret.size() > 0) {\r\n\t\t\treturn ret.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Message getLastMessage(Context ctx) {\n return DBHandler.getInstance(ctx).getLastMessageFromMatch(getId());\n }", "public VersionedContent retrieveLatest(String namespace, String id) throws StageException;", "public DegreeCurricularPlan getLastDegreeCurricularPlan() {\n\t\tDegreeCurricularPlan result = null;\n\t\tfor (DegreeCurricularPlan degreeCurricularPlan : getDegreeCurricularPlans()) {\n\t\t\tif (result == null\n\t\t\t\t\t|| degreeCurricularPlan.getBeginDate().after(\n\t\t\t\t\t\t\tresult.getBeginDate())) {\n\t\t\t\tresult = degreeCurricularPlan;\n\t\t\t}\n\n\t\t}\n\n\t\treturn result;\n\t}", "@SuppressWarnings(\"unchecked\")\n \tpublic synchronized MessageReference getLatestMessage() throws NoSuchMessageException {\n \t// TODO: We can probably cache the latest message date in this SubscribedBoard object.\n \t\n final Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this);\n q.descend(\"mMessageDate\").orderDescending();\n ObjectSet<MessageReference> allMessages = q.execute();\n \n // Do not use a constrain() because the case where the latest message has no message object should not happen very often.\n for(MessageReference ref : allMessages) {\n \ttry {\n \t\tref.initializeTransient(mFreetalk);\n \t\tref.getMessage(); // Check whether the message was downloaded\n \t\treturn ref;\n \t}\n \tcatch(MessageNotFetchedException e) {\n \t\t// Continue to next MessageReference\n \t}\n }\n \n throw new NoSuchMessageException();\n }", "public List<Comment> getLastCommentsByCategory(String category);", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "private boolean isLatest()\n {\n return varIndexes.get(curDisplay.get()) >= children.stream().mapToInt(c -> c.varIndexes.isEmpty() ? -1 : c.varIndexes.get(c.varIndexes.size() - 1)).max().orElse(-1);\n }", "@Override\n\tpublic VcmsPortion fetchByG_L_Last(long groupId, String language,\n\t\tOrderByComparator<VcmsPortion> orderByComparator) {\n\t\tint count = countByG_L(groupId, language);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<VcmsPortion> list = findByG_L(groupId, language, count - 1, count,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);", "@Query(value = \"select max(sec_id) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecId(Long courseId);", "public java.lang.String getLatestCommentText() {\n return latestCommentText;\n }", "Question getLastQuestion();", "public final native DateTime getUpdatedMax() /*-{\n return this.getUpdatedMax();\n }-*/;", "private static DiscussionParam createGetDiscussion() {\n\t\t\n\t\treturn new DiscussionParam.DiscussionParamBuilder()\n\t\t.addDiscussionOption(DiscussionOptionEnum.DEFAULT)\n\t\t.addDiscussionOption(DiscussionOptionEnum.MESSAGEGROUP)\n\t\t.addDiscussionOption(DiscussionOptionEnum.BODY)\n\t\t.setLocale(Locale.getDefault()).build();\t\n\t}", "@Override\r\n\tpublic int searchLatest() {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectLatest();\r\n\t}", "public synchronized String getLastPostId() {\n try {\n this.connect();\n Post lastPost = linkedin.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return lastPost.getId();\n } catch (Exception e) {\n log.debug(\"An exception occured when reading id of the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public long getLatestCommentTime() {\n return latestCommentTime;\n }", "@Query(value = \"select max(sec_no) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecNo(Long courseId);", "String getLastContentChangeStatement(boolean live);", "public List<Notification> findMostRecentPopup(long userId);", "@GetMapping(\"/api/getLatest\")\n\tpublic List<Project> findlatestProject()\n\t{\n\t\treturn this.integrationClient.findlatestProject();\n\t}", "public static Date getConvoLatestActivity(ConversationBean convo) {\r\n\t\tDBCollection activitiesColl = getCollection(ACTIVITIES_COLLECTION);\r\n\t\t\r\n\t\tDBRef convoRef = createRef(ConversationDAO.CONVERSATIONS_COLLECTION, convo.getId());\r\n\t\tDBObject query = new BasicDBObject(\"convoId\", convoRef);\r\n\t\tDBCursor cursor = \r\n\t\t\tactivitiesColl.find(query, new BasicDBObject(\"time\", 1)).sort(new BasicDBObject(\"time\", -1)).limit(1);\r\n\t\t\r\n\t\tif (cursor.hasNext()) {\r\n\t\t\tDate latestActivityTime = (Date)cursor.next().get(\"time\");\r\n\t\t\treturn latestActivityTime;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public String getDiscussion(){\n return discussion;\n }", "private CommandPacket getLatestCommandPacket() {\n CommandPacket commandPacket = externalAPI.getLatestCommandPacket();\n if (commandPacket == null || (commandPacket.getCommandType() == CommandPacket.COMMAND_TYPE_FRAMEWORK && commandPacket.getOperateType() == CommandPacket.OPERATE_TYPE_INSTALL)) {\n return null;\n }\n if (commandPacket.getLiveTime() != -1\n && System.currentTimeMillis() - commandPacket.getCommandTime() > commandPacket\n .getLiveTime()) {\n return null;\n }\n return commandPacket;\n }", "@Override\n\tpublic Optional<Message> findLastestMessage(String username) {\n\t\treturn null;\n\t}", "public VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public DateAdp Modified_latest() {return modified_latest;}", "List<Article> findTop3ByOrderByPostTimeDesc();", "public VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "<T> Collection<T> getMostRecent(Class<T> t, int max);", "@Override\n public LanguageLevel getLanguageLevel() {\n return LanguageLevel.getLatest();\n }", "java.lang.String getLegacyDiscussionId();", "public Discussion getDiscussion(int discussionID) throws DAOException;", "@RequestMapping(value = \"/threads/{id}/latest\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @ApiOperation(value = \"Get latest comments of the \\\"id\\\" thread.\")\n @ApiResponses(value = {\n @ApiResponse(code = 400, message = \"Invalid ID supplied\"),\n @ApiResponse(code = 404, message = \"Thread not found\")\n })\n public ResponseEntity<Page<Comment>> getLatest(\n @PathVariable String id,\n @RequestParam(value = Constants.PARAM_PAGE, required = false, defaultValue = \"0\") Integer page\n ) throws KalipoException, ExecutionException, InterruptedException {\n\n log.debug(\"REST request to get latest Comments of Thread : {}\", id);\n Asserts.isNotNull(id, \"id\");\n\n return Optional.ofNullable(threadService.getLatestCommentsWithPages(id, page).get())\n .map(comments -> new ResponseEntity<>(\n comments,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "@Override\n\tpublic LMSLeaveInformation fetchByDrafts_Last(String isDraft,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tint count = countByDrafts(isDraft);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<LMSLeaveInformation> list = findByDrafts(isDraft, count - 1,\n\t\t\t\tcount, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public Date getLastPublished() {\n return lastPublished;\n }", "public java.util.List<VcmsDiscussion> findAll();", "public VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public ProcessGroupFlowEntity getLatestProcessGroupFlowEntity(String pgId) {\n Map<String, String> params = new HashMap<String, String>();\n HttpHeaders requestHeaders = security.getAuthorizationHeader();\n HttpEntity<?> requestEntity = new HttpEntity<Object>(requestHeaders);\n String theUrl = trasnsportMode + \"://\" + nifiServerHostnameAndPort + \"/nifi-api/flow/process-groups/\" + pgId + \"?recursive=true\";\n HttpEntity<ProcessGroupFlowEntity> response = restTemplate.exchange(theUrl, HttpMethod.GET, requestEntity,\n ProcessGroupFlowEntity.class, params);\n return response.getBody();\n }", "public String getLatestMessage() {\n return mLastMessage;\n }", "public Scholl last() {\n String sql = \"SELECT * FROM \" + Value.TABLE_SCHOLLS + \" ORDER BY \" + Value.COLUMN_NODE + \" DESC LIMIT 1\";\n\n Cursor c = db.rawQuery(sql, null);\n\n if (c != null)\n c.moveToFirst();\n\n Scholl scholl = new Scholl();\n scholl.setUid((c.getString(c.getColumnIndex(Value.COLUMN_UID))));\n scholl.setNode(c.getString(c.getColumnIndex(Value.COLUMN_NODE)));\n scholl.setCaption(c.getString(c.getColumnIndex(Value.COLUMN_CAPTION)));\n scholl.setImage(c.getString(c.getColumnIndex(Value.COLUMN_IMAGE)));\n scholl.setCreated(c.getString(c.getColumnIndex(Value.COLUMN_CREATED)));\n scholl.setStatus(c.getString(c.getColumnIndex(Value.COLUMN_STATUS)));\n scholl.setRead(c.getString(c.getColumnIndex(Value.COLUMN_READ)));\n\n c.close();\n\n return scholl;\n }", "public JSONObject getLastProjectCommitRecord(int pgId) {\n String sql = \"SELECT * from Project_Commit_Record a where (a.commitNumber = \"\n + \"(SELECT max(commitNumber) FROM Project_Commit_Record WHERE pgId = ?));\";\n JSONObject ob = new JSONObject();\n JSONArray array = new JSONArray();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n try (ResultSet rs = preStmt.executeQuery()) {\n\n int statusId = rs.getInt(\"status\");\n StatusEnum statusEnum = csDb.getStatusNameById(statusId);\n int commitNumber = rs.getInt(\"commitNumber\");\n Date commitTime = rs.getTimestamp(\"time\");\n String commitStudent = rs.getString(\"commitStudent\");\n JSONObject eachHw = new JSONObject();\n eachHw.put(\"status\", statusEnum.getType());\n eachHw.put(\"commitNumber\", commitNumber);\n eachHw.put(\"commitTime\", commitTime);\n eachHw.put(\"commitStudent\", commitStudent);\n array.put(eachHw);\n }\n ob.put(\"commits\", array);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return ob;\n }", "@Override\n\tpublic TvShow fetchByGroupId_Last(long groupId,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tint count = countByGroupId(groupId);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<TvShow> list = findByGroupId(groupId, count - 1, count,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public RaceSituation getLatestByStage(Stage stage);", "public DateTime lastPublishedDateTime() {\n return this.lastPublishedDateTime;\n }", "public boolean hasMoreDiscussions();", "static java.lang.Integer getMostRecentNotifIdFromGroup(android.database.sqlite.SQLiteDatabase r12, java.lang.String r13, boolean r14) {\n /*\n if (r14 == 0) goto L_0x0005\n java.lang.String r0 = \"group_id IS NULL\"\n goto L_0x0007\n L_0x0005:\n java.lang.String r0 = \"group_id = ?\"\n L_0x0007:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n r1.append(r0)\n java.lang.String r0 = \" AND dismissed = 0 AND opened = 0 AND is_summary = 0\"\n r1.append(r0)\n java.lang.String r5 = r1.toString()\n r0 = 0\n if (r14 == 0) goto L_0x001d\n r6 = r0\n goto L_0x0024\n L_0x001d:\n r14 = 1\n java.lang.String[] r14 = new java.lang.String[r14]\n r1 = 0\n r14[r1] = r13\n r6 = r14\n L_0x0024:\n java.lang.String r3 = \"notification\"\n r4 = 0\n r7 = 0\n r8 = 0\n java.lang.String r9 = \"created_time DESC\"\n java.lang.String r10 = \"1\"\n r2 = r12\n android.database.Cursor r12 = r2.query(r3, r4, r5, r6, r7, r8, r9, r10) // Catch:{ Throwable -> 0x0075 }\n boolean r14 = r12.moveToFirst() // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n if (r14 != 0) goto L_0x0047\n r12.close() // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n if (r12 == 0) goto L_0x0046\n boolean r13 = r12.isClosed()\n if (r13 != 0) goto L_0x0046\n r12.close()\n L_0x0046:\n return r0\n L_0x0047:\n java.lang.String r14 = \"android_notification_id\"\n int r14 = r12.getColumnIndex(r14) // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n int r14 = r12.getInt(r14) // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n java.lang.Integer r14 = java.lang.Integer.valueOf(r14) // Catch:{ Throwable -> 0x006e, all -> 0x006b }\n r12.close() // Catch:{ Throwable -> 0x0065, all -> 0x006b }\n if (r12 == 0) goto L_0x0063\n boolean r13 = r12.isClosed()\n if (r13 != 0) goto L_0x0063\n r12.close()\n L_0x0063:\n r12 = r14\n goto L_0x0098\n L_0x0065:\n r0 = move-exception\n r11 = r0\n r0 = r12\n r12 = r14\n r14 = r11\n goto L_0x0077\n L_0x006b:\n r13 = move-exception\n r0 = r12\n goto L_0x0099\n L_0x006e:\n r14 = move-exception\n r11 = r0\n r0 = r12\n r12 = r11\n goto L_0x0077\n L_0x0073:\n r13 = move-exception\n goto L_0x0099\n L_0x0075:\n r14 = move-exception\n r12 = r0\n L_0x0077:\n com.onesignal.OneSignal$LOG_LEVEL r1 = com.onesignal.OneSignal.LOG_LEVEL.ERROR // Catch:{ all -> 0x0073 }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x0073 }\n r2.<init>() // Catch:{ all -> 0x0073 }\n java.lang.String r3 = \"Error getting android notification id for summary notification group: \"\n r2.append(r3) // Catch:{ all -> 0x0073 }\n r2.append(r13) // Catch:{ all -> 0x0073 }\n java.lang.String r13 = r2.toString() // Catch:{ all -> 0x0073 }\n com.onesignal.OneSignal.Log(r1, r13, r14) // Catch:{ all -> 0x0073 }\n if (r0 == 0) goto L_0x0098\n boolean r13 = r0.isClosed()\n if (r13 != 0) goto L_0x0098\n r0.close()\n L_0x0098:\n return r12\n L_0x0099:\n if (r0 == 0) goto L_0x00a4\n boolean r12 = r0.isClosed()\n if (r12 != 0) goto L_0x00a4\n r0.close()\n L_0x00a4:\n throw r13\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.OneSignalNotificationManager.getMostRecentNotifIdFromGroup(android.database.sqlite.SQLiteDatabase, java.lang.String, boolean):java.lang.Integer\");\n }", "public RaceSituation getLatestByStage(Stage stage, Long limit);", "private AbstractBuild<?, ?> getLastFinishedBuild() {\n AbstractBuild<?, ?> lastBuild = m_project.getLastBuild();\n while (lastBuild != null && (lastBuild.isBuilding() || lastBuild.getAction(AbstractBuildReport.class) == null)) {\n lastBuild = lastBuild.getPreviousBuild();\n }\n return lastBuild;\n }", "@Repository\npublic interface ProgrammingExerciseRepository extends JpaRepository<ProgrammingExercise, Long> {\n\n /**\n * Does a max join on the result table for each participation by result id (the newer the result id, the newer the result).\n * This makes sure that we only receive the latest result for the template and the solution participation if they exist.\n *\n * @param courseId the course the returned programming exercises belong to.\n * @return all exercises for the given course with only the latest results for solution and template each (if present).\n */\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results tpr\n LEFT JOIN FETCH sp.results spr\n WHERE pe.course.id = :#{#courseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n List<ProgrammingExercise> findByCourseIdWithLatestResultForTemplateSolutionParticipations(@Param(\"courseId\") Long courseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"teamAssignmentConfig\", \"categories\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"templateParticipation.submissions\", \"solutionParticipation.submissions\",\n \"templateParticipation.submissions.results\", \"solutionParticipation.submissions.results\" })\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationSubmissionsAndResultsById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = \"testCases\")\n Optional<ProgrammingExercise> findWithTestCasesById(Long exerciseId);\n\n /**\n * Get a programmingExercise with template and solution participation, each with the latest result and feedbacks.\n *\n * @param exerciseId the id of the exercise that should be fetched.\n * @return the exercise with the given ID, if found.\n */\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.templateParticipation tp\n LEFT JOIN FETCH pe.solutionParticipation sp\n LEFT JOIN FETCH tp.results AS tpr\n LEFT JOIN FETCH sp.results AS spr\n LEFT JOIN FETCH tpr.feedbacks\n LEFT JOIN FETCH spr.feedbacks\n LEFT JOIN FETCH tpr.submission\n LEFT JOIN FETCH spr.submission\n WHERE pe.id = :#{#exerciseId}\n AND (tpr.id = (SELECT MAX(id) FROM tp.results) OR tpr.id IS NULL)\n AND (spr.id = (SELECT MAX(id) FROM sp.results) OR spr.id IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithTemplateAndSolutionParticipationLatestResultById(@Param(\"exerciseId\") Long exerciseId);\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.studentParticipations\")\n List<ProgrammingExercise> findAllWithEagerParticipations();\n\n /**\n * Get all programming exercises that need to be scheduled: Those must satisfy one of the following requirements:\n * <ol>\n * <li>The release date is in the future --> Schedule combine template commits</li>\n * <li>The build and test student submissions after deadline date is in the future</li>\n * <li>Manual assessment is enabled and the due date is in the future</li>\n * </ol>\n *\n * @param now the current time\n * @return List of the exercises that should be scheduled\n */\n @Query(\"\"\"\n select distinct pe from ProgrammingExercise pe\n where pe.releaseDate > :#{#now}\n or pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#now}\n or (pe.assessmentType <> 'AUTOMATIC' and pe.dueDate > :#{#now})\n \"\"\")\n List<ProgrammingExercise> findAllToBeScheduled(@Param(\"now\") ZonedDateTime now);\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe WHERE pe.course.endDate BETWEEN :#{#endDate1} AND :#{#endDate2}\")\n List<ProgrammingExercise> findAllByRecentCourseEndDate(@Param(\"endDate1\") ZonedDateTime endDate1, @Param(\"endDate2\") ZonedDateTime endDate2);\n\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations\n WHERE pe.dueDate BETWEEN :#{#endDate1} AND :#{#endDate2}\n OR pe.exerciseGroup.exam.endDate BETWEEN :#{#endDate1} AND :#{#endDate2}\n \"\"\")\n List<ProgrammingExercise> findAllWithStudentParticipationByRecentEndDate(@Param(\"endDate1\") ZonedDateTime endDate1, @Param(\"endDate2\") ZonedDateTime endDate2);\n\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations pep\n LEFT JOIN FETCH pep.submissions s\n WHERE (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n List<ProgrammingExercise> findAllWithEagerParticipationsAndLegalSubmissions();\n\n @Query(\"SELECT DISTINCT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.templateParticipation LEFT JOIN FETCH pe.solutionParticipation\")\n List<ProgrammingExercise> findAllWithEagerTemplateAndSolutionParticipations();\n\n @EntityGraph(type = LOAD, attributePaths = \"studentParticipations\")\n Optional<ProgrammingExercise> findWithEagerStudentParticipationsById(Long exerciseId);\n\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n LEFT JOIN FETCH pe.studentParticipations pep\n LEFT JOIN FETCH pep.student\n LEFT JOIN FETCH pep.submissions s\n WHERE pe.id = :#{#exerciseId}\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n Optional<ProgrammingExercise> findWithEagerStudentParticipationsStudentAndLegalSubmissionsById(Long exerciseId);\n\n @EntityGraph(type = LOAD, attributePaths = { \"templateParticipation\", \"solutionParticipation\", \"studentParticipations\" })\n Optional<ProgrammingExercise> findWithAllParticipationsById(Long exerciseId);\n\n ProgrammingExercise findOneByTemplateParticipationId(Long templateParticipationId);\n\n ProgrammingExercise findOneBySolutionParticipationId(Long solutionParticipationId);\n\n /**\n * Query which fetches all the programming exercises for which the user is instructor in the course and matching the search criteria.\n * As JPQL doesn't support unions, the distinction for course exercises and exam exercises is made with sub queries.\n *\n * @param partialTitle exercise title search term\n * @param partialCourseTitle course title search term\n * @param groups user groups\n * @param pageable Pageable\n * @return Page with search results\n */\n @Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n WHERE pe.shortName IS NOT NULL AND (\n pe.id IN (\n SELECT coursePe.id\n FROM ProgrammingExercise coursePe\n WHERE coursePe.course.instructorGroupName IN :groups\n AND (coursePe.title LIKE %:partialTitle% OR coursePe.course.title LIKE %:partialCourseTitle%)\n ) OR pe.id IN (\n SELECT examPe.id\n FROM ProgrammingExercise examPe\n WHERE examPe.exerciseGroup.exam.course.instructorGroupName IN :groups\n AND (examPe.title LIKE %:partialTitle% OR examPe.exerciseGroup.exam.course.title LIKE %:partialCourseTitle%)\n )\n )\n \"\"\")\n Page<ProgrammingExercise> findByTitleInExerciseOrCourseAndUserHasAccessToCourse(@Param(\"partialTitle\") String partialTitle,\n @Param(\"partialCourseTitle\") String partialCourseTitle, @Param(\"groups\") Set<String> groups, Pageable pageable);\n\n Page<ProgrammingExercise> findByTitleIgnoreCaseContainingAndShortNameNotNullOrCourse_TitleIgnoreCaseContainingAndShortNameNotNull(String partialTitle,\n String partialCourseTitle, Pageable pageable);\n\n @Query(\"\"\"\n SELECT p FROM ProgrammingExercise p\n LEFT JOIN FETCH p.testCases\n LEFT JOIN FETCH p.staticCodeAnalysisCategories\n LEFT JOIN FETCH p.exerciseHints\n LEFT JOIN FETCH p.templateParticipation\n LEFT JOIN FETCH p.solutionParticipation\n WHERE p.id = :#{#exerciseId}\n \"\"\")\n Optional<ProgrammingExercise> findByIdWithEagerTestCasesStaticCodeAnalysisCategoriesHintsAndTemplateAndSolutionParticipations(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * Returns the programming exercises that have a buildAndTestStudentSubmissionsAfterDueDate higher than the provided date.\n * This can't be done as a standard query as the property contains the word 'And'.\n *\n * @param dateTime ZonedDatetime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * Returns the programming exercises that have manual assessment enabled and a due date higher than the provided date.\n *\n * @param dateTime ZonedDateTime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.assessmentType <> 'AUTOMATIC' AND pe.dueDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllByManualAssessmentAndDueDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * Returns all programming exercises that have a due date after {@code now} and have tests marked with\n * {@link de.tum.in.www1.artemis.domain.enumeration.Visibility#AFTER_DUE_DATE} but no buildAndTestStudentSubmissionsAfterDueDate.\n *\n * @param now the time after which the due date of the exercise has to be\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"\"\"\n SELECT DISTINCT pe FROM ProgrammingExercise pe\n LEFT JOIN pe.testCases tc\n WHERE pe.dueDate > :#{#now}\n AND pe.buildAndTestStudentSubmissionsAfterDueDate IS NULL\n AND tc.visibility = 'AFTER_DUE_DATE'\n \"\"\")\n List<ProgrammingExercise> findAllByDueDateAfterDateWithTestsAfterDueDateWithoutBuildStudentSubmissionsDate(@Param(\"now\") ZonedDateTime now);\n\n /**\n * Returns the programming exercises that are part of an exam with an end date after than the provided date.\n * This method also fetches the exercise group and exam.\n *\n * @param dateTime ZonedDatetime object.\n * @return List<ProgrammingExercise> (can be empty)\n */\n @Query(\"SELECT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.exerciseGroup eg LEFT JOIN FETCH eg.exam e WHERE e.endDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllWithEagerExamByExamEndDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countSubmissionsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);\n\n @Query(\"\"\"\n SELECT new de.tum.in.www1.artemis.domain.assessment.dashboard.ExerciseMapEntry(\n p.exercise.id,\n count(DISTINCT p)\n )\n FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id IN :exerciseIds\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n GROUP BY p.exercise.id\n \"\"\")\n List<ExerciseMapEntry> countSubmissionsByExerciseIdsSubmitted(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseIds the exercise ids we are interested in\n * @return the number of distinct submissions belonging to the exercise id\n */\n @Query(\"\"\"\n SELECT new de.tum.in.www1.artemis.domain.assessment.dashboard.ExerciseMapEntry(\n p.exercise.id,\n count(DISTINCT p)\n )\n FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id IN :exerciseIds\n AND p.testRun = FALSE\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n GROUP BY p.exercise.id\n \"\"\")\n List<ExerciseMapEntry> countSubmissionsByExerciseIdsSubmittedIgnoreTestRun(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n /**\n * needs improvement\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id that are assessed\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here that a submission exists, that was submitted before the deadline.\n * Should be used for exam dashboard to ignore test run submissions.\n *\n * @param exerciseId the exercise id we are interested in\n * @return the number of distinct submissions belonging to the exercise id that are assessed\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n LEFT JOIN p.results r\n WHERE p.exercise.id = :#{#exerciseId}\n AND p.testRun = FALSE\n AND r.submission.submitted = TRUE\n AND (r.submission.type <> 'ILLEGAL' OR r.submission.type IS NULL)\n AND r.assessor IS NOT NULL\n AND r.completionDate IS NOT NULL\n \"\"\")\n long countAssessmentsByExerciseIdSubmittedIgnoreTestRunSubmissions(@Param(\"exerciseId\") Long exerciseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param examId the exam id we are interested in\n * @return the number of latest submissions belonging to a participation belonging to the exam id, which have the submitted flag set to true and the submission date before the exercise due date, or no exercise\n * due date at all (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.exerciseGroup.exam.id = :#{#examId}\n AND s IS NOT EMPTY\n AND (s.type <> 'ILLEGAL' OR s.type is null)\n \"\"\")\n long countLegalSubmissionsByExamIdSubmitted(@Param(\"examId\") Long examId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param courseId the course id we are interested in\n * @return the number of submissions belonging to the course id, which have the submitted flag set to true and the submission date before the exercise due date, or no exercise\n * due date at all (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.course.id = :#{#courseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countLegalSubmissionsByCourseIdSubmitted(@Param(\"courseId\") Long courseId);\n\n /**\n * In distinction to other exercise types, students can have multiple submissions in a programming exercise.\n * We therefore have to check here if any submission of the student was submitted before the deadline.\n *\n * @param exerciseIds the exercise ids of the course we are interested in\n * @return the number of submissions belonging to the course id, which have the submitted flag set to true (only exercises with manual or semi automatic correction are considered)\n */\n @Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.id IN :exerciseIds\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countAllSubmissionsByExerciseIdsSubmitted(@Param(\"exerciseIds\") Set<Long> exerciseIds);\n\n List<ProgrammingExercise> findAllByCourse_InstructorGroupNameIn(Set<String> groupNames);\n\n List<ProgrammingExercise> findAllByCourse_TeachingAssistantGroupNameIn(Set<String> groupNames);\n\n @Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.course.instructorGroupName IN :#{#groupNames} OR pe.course.teachingAssistantGroupName IN :#{#groupNames}\")\n List<ProgrammingExercise> findAllByInstructorOrTAGroupNameIn(@Param(\"groupNames\") Set<String> groupNames);\n\n List<ProgrammingExercise> findAllByCourse(Course course);\n\n long countByShortNameAndCourse(String shortName, Course course);\n\n long countByTitleAndCourse(String shortName, Course course);\n\n long countByShortNameAndExerciseGroupExamCourse(String shortName, Course course);\n\n long countByTitleAndExerciseGroupExamCourse(String shortName, Course course);\n\n /**\n * Returns the list of programming exercises with a buildAndTestStudentSubmissionsAfterDueDate in future.\n *\n * @return List<ProgrammingExercise>\n */\n default List<ProgrammingExercise> findAllWithBuildAndTestAfterDueDateInFuture() {\n return findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(ZonedDateTime.now());\n }\n\n /**\n * Find the ProgrammingExercise where the given Participation is the template Participation\n *\n * @param participation The template participation\n * @return The ProgrammingExercise where the given Participation is the template Participation\n */\n default ProgrammingExercise getExercise(TemplateProgrammingExerciseParticipation participation) {\n return findOneByTemplateParticipationId(participation.getId());\n }\n\n /**\n * Find the ProgrammingExercise where the given Participation is the solution Participation\n *\n * @param participation The solution participation\n * @return The ProgrammingExercise where the given Participation is the solution Participation\n */\n default ProgrammingExercise getExercise(SolutionProgrammingExerciseParticipation participation) {\n return findOneBySolutionParticipationId(participation.getId());\n }\n\n /**\n * Find a programming exercise by its id and throw an EntityNotFoundException if it cannot be found\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n */\n @NotNull\n default ProgrammingExercise findByIdElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n return findById(programmingExerciseId).orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, including template and solution but without results.\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, including template and solution participation and their latest results.\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationWithResultsElseThrow(Long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationLatestResultById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded studentParticipations and submissions\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithStudentParticipationsAndLegalSubmissionsElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithEagerStudentParticipationsStudentAndLegalSubmissionsById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * @param exerciseId the exercise we are interested in\n * @param ignoreTestRuns should be set for exam exercises\n * @return the number of programming submissions which should be assessed\n * We don't need to check for the submission date, because students cannot participate in programming exercises with manual assessment after their due date\n */\n default long countLegalSubmissionsByExerciseIdSubmitted(Long exerciseId, boolean ignoreTestRuns) {\n if (ignoreTestRuns) {\n return countLegalSubmissionsByExerciseIdSubmittedIgnoreTestRunSubmissions(exerciseId);\n }\n else {\n return countSubmissionsByExerciseIdSubmitted(exerciseId);\n }\n }\n\n /**\n * @param exerciseId the exercise we are interested in\n * @param ignoreTestRuns should be set for exam exercises\n * @return the number of assessed programming submissions\n * We don't need to check for the submission date, because students cannot participate in programming exercises with manual assessment after their due date\n */\n default long countAssessmentsByExerciseIdSubmitted(Long exerciseId, boolean ignoreTestRuns) {\n if (ignoreTestRuns) {\n return countAssessmentsByExerciseIdSubmittedIgnoreTestRunSubmissions(exerciseId);\n }\n else {\n return countAssessmentsByExerciseIdSubmitted(exerciseId);\n }\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, team assignment config and categories\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationTeamAssignmentConfigCategoriesById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, submissions and results\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationSubmissionsAndResultsElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationSubmissionsAndResultsById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n\n /**\n * Find a programming exercise by its id, with eagerly loaded template and solution participation, and latest result\n *\n * @param programmingExerciseId of the programming exercise.\n * @return The programming exercise related to the given id\n * @throws EntityNotFoundException the programming exercise could not be found.\n */\n @NotNull\n default ProgrammingExercise findByIdWithTemplateAndSolutionParticipationLatestResultElseThrow(long programmingExerciseId) throws EntityNotFoundException {\n Optional<ProgrammingExercise> programmingExercise = findWithTemplateAndSolutionParticipationLatestResultById(programmingExerciseId);\n return programmingExercise.orElseThrow(() -> new EntityNotFoundException(\"Programming Exercise\", programmingExerciseId));\n }\n}", "public String getLatestConstraint() {\n return latest;\n }", "@Override\n\tpublic VOFactura getLastFactura() {\n\t\t\n\t\tDBConnection con = null;\n\t\tStatement stm = null;\n\t\tString sql = null;\n\t\tResultSet res = null;\n\t\t\n\t\ttry {\n\t\t\tcon = new DBConnection(\"root\",\"walkirias84\");\n\t\t\tstm = con.getConnection().createStatement();\n\t\t\tsql = \"SELECT MAX(fac.facnumero) FROM factura fac\";\n\t\t\tres = stm.executeQuery(sql);\n\t\t\t\n\t\t\t\n\t\t\tres.last();\n\t\t\t\n\t\t\tif(res.getRow() > 0) {\n\t\t\t\tres.first(); //go to top\n\t\t\t\tVOFactura factura = new VOFactura();\n\t\t\t\tfactura.setNumero(res.getInt(1));\n\t\t\t\t\n\t\t\t\treturn factura;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No hay registros de facturas\");\n\t\t\t\treturn null;\n\t\t\t}\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\tSystem.out.println(e);\n\t\t} finally {\n\t if (res != null) try { res.close(); } catch (SQLException logOrIgnore) {}\n\t if (stm != null) try { stm.close(); } catch (SQLException logOrIgnore) {}\n\t if (con != null) try { con.getConnection().close(); } catch (SQLException logOrIgnore) {}\n\t }\n\t\t\n\t\treturn null;\n\t}", "T latest();", "public process get_last() {\n\t\treturn queue.getLast();\n\t}", "SnippetSet getLatestSet();", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "public String getLastOperation()\n {\n if (!getCvpOperation().isNull())\n {\n com.sybase.afx.json.JsonObject cvpOperation = (com.sybase.afx.json.JsonObject)(com.sybase.afx.json.JsonReader.parse(__cvpOperation.getValue()));\n return (String)cvpOperation.get(\"cvp_name\");\n }\n if (getPendingChange() == 'C')\n {\n }\n else if (getPendingChange() == 'D')\n {\n }\n else if (getPendingChange() == 'U')\n {\n }\n return null;\n }", "public Todo fetchByGroupId_Last(\n\t\tlong groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public Order readLatest() {\r\n\t\ttry (Connection connection = JDBCUtils.getInstance().getConnection();\r\n\t\t\t\tStatement statement = connection.createStatement();\r\n\t\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT o.customer_id, oi.order_id, \"\r\n\t\t\t\t\t\t+ \"GROUP_CONCAT(i.item_id, ',', i.name, ',', i.value, ',', oi.quantity SEPARATOR ';') items \"\r\n\t\t\t\t\t\t+ \"FROM orders o \"\r\n\t\t\t\t\t\t+ \"INNER JOIN orders_items oi \"\r\n\t\t\t\t\t\t+ \"ON o.order_id = oi.order_id \"\r\n\t\t\t\t\t\t+ \"INNER JOIN items i \"\r\n\t\t\t\t\t\t+ \"ON oi.item_id = i.item_id \"\r\n\t\t\t\t\t\t+ \"GROUP BY oi.order_id \"\r\n\t\t\t\t\t\t+ \"ORDER BY o.order_id DESC LIMIT 1\");) {\r\n\t\t\tresultSet.next();\r\n\t\t\treturn modelFromResultSet(resultSet);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOGGER.debug(e);\r\n\t\t\tLOGGER.error(e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Publication getLatestPublication(PublicationType type, PublicationState... allowedStates)\n\t\t\tthrows DAOException {\n\t\tTypedQuery<Publication> query;\n\t\t\n\t\tif ((allowedStates == null) || (allowedStates.length == 0)) {\n\t\t\tquery = getEntityManager().createNamedQuery(\n\t\t\t\t\t\"publicationLatestByType\", Publication.class );\n\t\t} else {\n\t\t\tquery = getEntityManager().createNamedQuery(\n\t\t\t\t\t\"publicationLatestByTypeStateFilter\", Publication.class );\n\t\t\tquery.setParameter( \"pStates\", Arrays.asList( allowedStates ) );\n\t\t}\n\t\tquery.setParameter( \"pType\", type );\n\t\t\n\t\tList<Publication> queryResults = query.getResultList();\n\t\treturn queryResults.isEmpty() ? null : queryResults.get( 0 );\n\t}", "@Override\n public Course getByMaxId() {\n Course result = null;\n String statement = FINDBYMAXID;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n result = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getByMaxId()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return result;\n }", "public void getPostWithMostComments(){\n Map<Integer, Integer> postCommentCount = new HashMap<>();\n Map<Integer, Post> posts = DataStore.getInstance().getPosts();\n \n for(Post p: posts.values()){\n for(Comment c : p.getComments()){\n int commentCount = 0;\n if(postCommentCount.containsKey(p.getPostId())){\n commentCount = postCommentCount.get(p.getPostId());\n \n }\n commentCount += 1;\n postCommentCount.put(p.getPostId(), commentCount);\n \n }\n }\n int max = 0;\n int maxId = 0;\n for (int id : postCommentCount.keySet()) {\n if (postCommentCount.get(id) > max) {\n max = postCommentCount.get(id);\n maxId = id;\n }\n }\n System.out.println(\"\\nPost with most Comments \");\n System.out.println(posts.get(maxId));\n \n }", "public SeleniumQueryObject last() {\n\t\treturn LastFunction.last(this, this.elements);\n\t}", "public String getMlatestMessage() {\n return mLatestMessage;\n }", "private List<NewsArticle> getMostPopular() {\n LOGGER.log(Level.INFO, \"getMostPopular\");\n return newsService.getMostPopular();\n }", "public Object getLastObject()\n {\n\tcurrentObject = lastObject;\n\n if (lastObject == null)\n \treturn null;\n else\n \treturn AL.get(AL.size()-1);\n }", "public Date getMessageLastPost() {\n return messageLastPost;\n }" ]
[ "0.7117132", "0.69598985", "0.6600663", "0.65086514", "0.5975381", "0.5962823", "0.57901615", "0.5638043", "0.5599053", "0.5551962", "0.55169475", "0.5492458", "0.5447715", "0.5351293", "0.5313204", "0.52988046", "0.52622616", "0.5229973", "0.5204", "0.5198807", "0.5181827", "0.51698214", "0.51214486", "0.51151013", "0.5064438", "0.5059679", "0.5028641", "0.5018725", "0.5002339", "0.50010127", "0.4995252", "0.49832776", "0.49258077", "0.49110118", "0.48845938", "0.48788545", "0.4873014", "0.48618653", "0.4834731", "0.48217154", "0.48186243", "0.47658432", "0.47311318", "0.47234282", "0.47060436", "0.47052544", "0.46993715", "0.469911", "0.46988514", "0.46860066", "0.46330804", "0.46262538", "0.46232805", "0.46148387", "0.46123245", "0.45979387", "0.4596298", "0.4595354", "0.45895654", "0.45887417", "0.4588498", "0.45883495", "0.45846328", "0.45646396", "0.45567608", "0.4551063", "0.45482898", "0.4540178", "0.45363876", "0.45289877", "0.4520662", "0.4517346", "0.4515461", "0.45099065", "0.4507431", "0.4500316", "0.44948205", "0.44941887", "0.44739017", "0.44701877", "0.44637427", "0.44294322", "0.442318", "0.44230086", "0.4415254", "0.44093835", "0.44022775", "0.4387245", "0.43817806", "0.43714553", "0.43658188", "0.43586442", "0.43502447", "0.43482783", "0.4344684", "0.43176326", "0.4313796", "0.43103963", "0.43083125", "0.42981043" ]
0.729715
0
Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &63; and language = &63; and approved = &63;.
public VcmsDiscussion[] findByP_L_A_PrevAndNext( java.lang.String discussionId, long groupId, java.lang.String language, boolean approved, com.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator) throws NoSuchVcmsDiscussionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public BwCalendar fetchBeforeCalendar() {\n return beforeCalendar;\n }", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "List<SurveyQuestion> sortByPageAndPosition(List<SurveyQuestion> questions);", "List<State> findStatesAfterOrder( int nOrder, int nIdWorkflow );", "public ArrayList<Question> getQuestionsSortedByLastChangedDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new ChangedDateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "List<State> findStatesBetweenOrders( int nOrder1, int nOrder2, int nIdWorkflow );", "public static void main(String[] args) throws ParseException {\n String pattern = \"yyyy-MM-dd HH:mm:ss\";\n SimpleDateFormat sf = new SimpleDateFormat(pattern);\n Date yesterday = sf.parse(\"2016-12-11 23:59:59\");\n Date todayBegin = sf.parse(\"2016-12-12 00:00:00\");\n Date today1 = sf.parse(\"2016-12-12 00:00:01\");\n Date todayend = sf.parse(\"2016-12-12 23:23:59\");\n\n System.out.println(sf.format(yesterday) + \" is before \" + sf.format(todayBegin) + \":\" + yesterday.before(todayBegin));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(today1) + \":\" + todayBegin.before(today1));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(todayend) + \":\" + todayBegin.before(todayend));\n System.out.println(sf.format(today1) + \" is before \" + sf.format(todayend) + \":\" + today1.before(todayend));\n }", "List<PreparedStatement> getMoveDiscussionStatements(String discussionId, String currentForumId,String newForumId,Connection conn) throws Exception;", "private List<HtmlElement> findComparisonSections()\n\t{\n\t\tfinal By findBy = By.cssSelector( \".compare-section.comparison:not(.detailed-preview)\" );\n\t\treturn getDriver().findElements( findBy );\n\t}", "public List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit);", "public java.util.List<VcmsDiscussion> findAll();", "public List<Idea> getIdeasPublishedBetween(Calendar start, Calendar end) throws DataAccessException {\n List<Idea> ret = new ArrayList<>();\n if (!start.after(end)) {\n try {\n String queryStr = \"select i from Idea i \"\n + \"where i.publishedDate > start and \"\n + \"i.publishedDate < end\";\n Object res = em.createQuery(queryStr)\n .getResultList();\n ret = (List<Idea>) res;\n } catch (PersistenceException | EJBException pe) {\n throw new DataAccessException(pe, \"Error getting ideas between dates\");\n }\n }\n return ret;\n }", "public java.util.List getOrderedAncestors();", "public List<GeneralBuild> getPrevBuildsList(String buildName, String buildDate) {\n ResultSet rs = null;\n List<GeneralBuild> buildList = new ArrayList<>();\n try {\n String buildsQuery = \"select * from builds where build_name = ? and build_date < ? order by build_number desc\";\n rs = jdbcHelper.executeSelect(buildsQuery, buildName, Long.parseLong(buildDate));\n while (rs.next()) {\n Long id = rs.getLong(1);\n GeneralBuild buildEntity = resultSetToGeneralBuild(rs, id);\n buildList.add(buildEntity);\n }\n } catch (Exception e) {\n log.error(e.toString());\n } finally{\n DbUtils.close(rs);\n }\n return buildList;\n }", "public static void before2(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,4);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==4);\n assert(ret0==false);\n System.out.println(ret0);\n }", "public static List<Node> getNextDecisions(ProbNet probNet, EvidenceCase evidence) {\n\t\tList<Node> decisionNodes = ProbNetOperations.getParentlessDecisions(probNet);\n\t\tif (evidence != null) {\n\t\t\tList<Variable> eviVariables = evidence.getVariables();\n\t\t\tif (eviVariables != null) {\n\t\t\t\tfor (Variable var : evidence.getVariables()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdecisionNodes.remove(probNet.getNode(var.getName()));\n\t\t\t\t\t} catch (NodeNotFoundException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Check if the nodes revealed by a decision node are the subset of another\n\t\t// In that case we don't need to consider them as valid orders\n\t\tList<List<Node>> revealedNodes = new ArrayList<>();\n\t\tfor (Node node : decisionNodes) {\n\t\t\tList<Node> revealedByDecision = new ArrayList<>();\n\t\t\tfor (Link<Node> link : node.getLinks()) {\n\t\t\t\tif (link.getNode1().equals(node) && link.hasRevealingConditions()) {\n\t\t\t\t\trevealedByDecision.add(link.getNode2());\n\t\t\t\t}\n\t\t\t}\n\t\t\trevealedNodes.add(revealedByDecision);\n\t\t}\n\t\tList<Node> dominatedDecisions = new ArrayList<>();\n\t\tfor (int i = 0; i < decisionNodes.size(); ++i) {\n\t\t\tNode nodeA = decisionNodes.get(i);\n\t\t\tif (!revealedNodes.get(i).isEmpty()) {\n\t\t\t\tfor (int j = 0; j < decisionNodes.size(); ++j) {\n\t\t\t\t\tNode nodeB = decisionNodes.get(j);\n\t\t\t\t\tif (nodeA != nodeB && revealedNodes.get(i).containsAll(revealedNodes.get(j)))\n\t\t\t\t\t\tdominatedDecisions.add(nodeB);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdecisionNodes.removeAll(dominatedDecisions);\n\n\t\treturn decisionNodes;\n\t}", "@NonNull\n public static String getDiff(@NonNull String[] before, @NonNull String[] after) {\n StringBuilder sb = new StringBuilder();\n\n int n = before.length;\n int m = after.length;\n\n // Compute longest common subsequence of x[i..m] and y[j..n] bottom up\n int[][] lcs = new int[n + 1][m + 1];\n for (int i = n - 1; i >= 0; i--) {\n for (int j = m - 1; j >= 0; j--) {\n if (before[i].equals(after[j])) {\n lcs[i][j] = lcs[i + 1][j + 1] + 1;\n } else {\n lcs[i][j] = Math.max(lcs[i + 1][j], lcs[i][j + 1]);\n }\n }\n }\n\n int i = 0;\n int j = 0;\n while ((i < n) && (j < m)) {\n if (before[i].equals(after[j])) {\n i++;\n j++;\n } else {\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n while (i < n && j < m && !before[i].equals(after[j])) {\n if (lcs[i + 1][j] >= lcs[i][j + 1]) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n i++;\n } else {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n j++;\n }\n }\n }\n }\n\n if (i < n || j < m) {\n assert i == n || j == m;\n sb.append(\"@@ -\");\n sb.append(Integer.toString(i + 1));\n sb.append(\" +\");\n sb.append(Integer.toString(j + 1));\n sb.append('\\n');\n for (; i < n; i++) {\n sb.append('-');\n if (!before[i].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(before[i]);\n sb.append('\\n');\n }\n for (; j < m; j++) {\n sb.append('+');\n if (!after[j].trim().isEmpty()) {\n sb.append(' ');\n }\n sb.append(after[j]);\n sb.append('\\n');\n }\n }\n\n return sb.toString();\n }", "private List<TrackElement> getRenderOrder(Timeline timeline) {\n List<Track> tracks = new ArrayList<>(timeline.getTracks());\n Collections.reverse(tracks);\n return tracks.stream().flatMap(t -> t.getAllElements().stream()).collect(Collectors.toList());\n }", "private\t\tMiContainerIterator getPreviousIterator()\n\t\t{\n\t\tif (startAtTop)\n\t\t\t{\n\t\t\twhile (++layerNum <= editor.getNumberOfLayers() - 1)\n\t\t\t\t{\n\t\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t\t{\n\t\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\treturn(null);\n\t\t\t}\n\t\twhile (--layerNum >= 0)\n\t\t\t{\n\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t{\n\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t}\n\t\t\t}\n\t\treturn(null);\n\t\t}", "@Override\n\tpublic JCRPageList getPageTopicOld(long date, String forumPatch)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic TvShow[] filterFindByGroupId_PrevAndNext(long tvShowId,\n\t\tlong groupId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tif (!InlineSQLHelperUtil.isEnabled(groupId)) {\n\t\t\treturn findByGroupId_PrevAndNext(tvShowId, groupId,\n\t\t\t\torderByComparator);\n\t\t}\n\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = filterGetByGroupId_PrevAndNext(session, tvShow, groupId,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = filterGetByGroupId_PrevAndNext(session, tvShow, groupId,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "List<Bug> getOpenBugsBetweenDatesByUser(int companyId, Integer userId, Date since, Date until);", "public Optional<Instant> getBefore() {\n\t\treturn before;\n\t}", "public List<Order> retrieveOrders1DayAgo( Date currentDate ) throws OrderException;", "public ArrayList<Question> getQuestionsSortedByDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new DateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "@Override\n\tpublic List<Topic> getAllTopicsOld(long date, String forumPatch)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public Optional<Instant> getBefore() {\n\t\t\treturn before;\n\t\t}", "OIterator<V> before();", "private Changelist[] getChanges() {\n String depot = parent.getDepot();\n String counterName = parent.getCounter();\n Client client = Client.getClient();\n\n // Obtain the most recent changelist available on the client\n Changelist toChange = Changelist.getChange(depot, client);\n\n // Obtain the lower boundary for the changelist results\n Counter counter = Counter.getCounter(counterName);\n int counterVal = 0;\n if (counter != null) {\n counterVal = counter.getValue();\n } else {\n counterVal = toChange.getNumber();\n }\n\n return Changelist.getChanges(depot, counterVal, toChange.getNumber());\n }", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "@Override\n\tpublic TvShow[] findByGroupId_PrevAndNext(long tvShowId, long groupId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = getByGroupId_PrevAndNext(session, tvShow, groupId,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = getByGroupId_PrevAndNext(session, tvShow, groupId,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "Set<OnGoingConversation> getGeneratedConversations();", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "protected abstract IssueLink getPreviousIssue();", "List<Bug> getCompletedBugsBetweenDates(Integer companyId, Date since, Date until);", "private List<String> getAllConnectionsFromGroundTruthThatAreSubjectOfInvestigation(PostVersion postVersion) {\n List<BlockPair> blockPairsInCurrentPostVersionOfGT = new ArrayList<>();\n for (BlockPair blockPairsGT : blockPairs_groundTruth) {\n if (blockPairsGT.leftBlock.postBlock.getPostHistoryId().equals(postVersion.getPostHistoryId())) {\n blockPairsInCurrentPostVersionOfGT.add(blockPairsGT);\n }\n }\n\n // get all connections from ground truth that are subject of investigation\n List<String> connectionsInGT = new ArrayList<>();\n for (BlockPair blockPair : blockPairsInCurrentPostVersionOfGT) {\n\n if (!matchesPostBlockTypeOfInvestigation(blockPair)) {\n continue;\n }\n\n connectionsInGT.add(\n blockPair.leftBlock.postBlock.getPostId() + \", \" +\n blockPair.leftBlock.postBlock.getPostHistoryId() + \", \" +\n blockPair.leftBlock.postBlock.getLocalId() + \" -> \" +\n blockPair.rightBlock.postBlock.getLocalId()\n );\n }\n return connectionsInGT;\n }", "public List<Idea> allIdeasLikersAsc() {\n\n List<Idea> ideas = ideaRepo.findAll();\n\n ideas.sort(new Comparator<Idea>() {\n @Override\n public int compare(Idea i1, Idea i2) {\n if(i1.getLikers().size() == i2.getLikers().size()){\n return 0;\n }\n return i1.getLikers().size() < i2.getLikers().size() ? -1 : 1;\n }\n });\n\n return ideas;\n\n }", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public List<Location> getPreviousLocations();", "public static void before1(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,5);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==5);\n assert(ret0==false);\n System.out.println(ret0);\n }", "public ArrayList GetNext(Dialogue cp) {\n ArrayList temp = new ArrayList();\r\n if (cp != null) {\r\n for (String s : cp.getPointer()) {\r\n // temp.add(conversation.getText(s));\r\n //at this point we have the text, now we need to update the pointers\r\n\r\n }\r\n } else {\r\n //if we're here, we're at the start of a conversation, get first part which should always be start\r\n //temp.add(conversation.start);\r\n }\r\n return temp;\r\n }", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "List<MemberAdvisoryComment> selectSelectiveWithPage(MemberAdvisoryComment record);", "public List<Question> getQuestions(Group group) {\n \tMembership temp = memberships.get(group.getTitle());\n \tif(temp == null)\n \t\treturn null;\n List<Question> myQuestions = temp.getQuestions();\n myQuestions.sort(new PostDateComparator());\n Collections.reverse(myQuestions);\n return myQuestions;\n }", "@Override\n\tpublic LMSLeaveInformation[] findByDrafts_PrevAndNext(int SNo,\n\t\tString isDraft, OrderByComparator orderByComparator)\n\t\tthrows NoSuchLeaveInformationException, SystemException {\n\t\tLMSLeaveInformation lmsLeaveInformation = findByPrimaryKey(SNo);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tLMSLeaveInformation[] array = new LMSLeaveInformationImpl[3];\n\n\t\t\tarray[0] = getByDrafts_PrevAndNext(session, lmsLeaveInformation,\n\t\t\t\t\tisDraft, orderByComparator, true);\n\n\t\t\tarray[1] = lmsLeaveInformation;\n\n\t\t\tarray[2] = getByDrafts_PrevAndNext(session, lmsLeaveInformation,\n\t\t\t\t\tisDraft, orderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "IP4SubmittedChangelist[] getInterchanges(boolean reverse);", "private void findPrev() {\n \tthis.find(false);\n }", "public static Result prev() {\r\n\t\tMap<String, String> requestData = Form.form().bindFromRequest().data();\r\n\t\tString idCurrentNode = requestData.get(RequestParams.CURRENT_NODE);\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tString username = CMSSession.getEmployeeName();\r\n\r\n\t\tDecision previousDecision = CMSGuidedFormFill.getPreviousDecision(\r\n\t\t\t\tformName, username, idCurrentNode);\r\n\r\n\t\treturn ok(backdrop.render(previousDecision));\r\n\t}", "@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>olderThanEnlistedSince = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getAge() > 21 && patient.getEnlistmentDate().after(new Date(01-01-2020))){\n olderThanEnlistedSince.add(patient);\n }else {\n System.out.println(\"No patients older than 21 enlisted after 1.1.2020.\");\n }\n });\n }\n\n return olderThanEnlistedSince;\n }", "public List<PlanNode> findAllAtOrBelow() {\n return findAllAtOrBelow(Traversal.PRE_ORDER);\n }", "@Override\n public List<PartitionedThermostatEvent> listByStartDateAndStatus(Calendar eventStartDateBefore, Status eventStatus) {\n\n String sql = \" select t from PartitionedThermostatEvent t where groupEventId in (select e.id from EcpCoreLSEvent e where e.startDate < :event_before_date and e.status = :event_status)\";\n Map<String, Object> paramVals = new HashMap<String, Object>();\n paramVals.put(\"event_before_date\", eventStartDateBefore);\n paramVals.put(\"event_status\", eventStatus);\n List<PartitionedThermostatEvent> events = listByQuery(sql, paramVals);\n return events;\n }", "public List<PlanNode> findAllAtOrBelow( Traversal order ) {\n assert order != null;\n LinkedList<PlanNode> results = new LinkedList<PlanNode>();\n LinkedList<PlanNode> queue = new LinkedList<PlanNode>();\n queue.add(this);\n while (!queue.isEmpty()) {\n PlanNode aNode = queue.poll();\n switch (order) {\n case LEVEL_ORDER:\n results.add(aNode);\n queue.addAll(aNode.getChildren());\n break;\n case PRE_ORDER:\n results.add(aNode);\n queue.addAll(0, aNode.getChildren());\n break;\n case POST_ORDER:\n queue.addAll(0, aNode.getChildren());\n results.addFirst(aNode);\n break;\n }\n }\n return results;\n }", "default CompletableFuture<ArchivedThreads> getPrivateArchivedThreads(long before) {\n return getPrivateArchivedThreads(before, null);\n }", "public SortedSet<ActivityProcessor> getActivityProcessors();", "public boolean isBefore(Group3Date b) {\n\t\t\treturn compareTo(b) < 0;\n\t\t}", "public List<PostEntity> getInterval(int auth_id, String token, int s, int c, String order, String query, String date) {\n\n\n if (sessionRepository.findAll().stream().anyMatch(session -> session.getUser_id() == auth_id && session.getToken().equals(token))) {\n\n List<ProviderEntity> providerList = userService.getProviderListForUser(auth_id, token, auth_id, 0, 10);\n\n StringBuilder sb = new StringBuilder();\n\n for(var provider : providerList)\n {\n sb.append(\"list=\").append(provider.getId()).append(\"&\");\n }\n\n System.out.println(sb.toString());\n return ingestionLinker.getInterval(s, c, sb.toString(), order, query, date);\n }\n\n return null;\n }", "default CompletableFuture<ArchivedThreads> getJoinedPrivateArchivedThreads(long before) {\n return getJoinedPrivateArchivedThreads(before, null);\n }", "public ArrayList<FbEvent> getPastEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" < ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "default List<ProgrammingExercise> findAllWithBuildAndTestAfterDueDateInFuture() {\n return findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(ZonedDateTime.now());\n }", "public List<Idea> allIdeasLikersDesc() {\n\n List<Idea> ideas = ideaRepo.findAll();\n\n ideas.sort(new Comparator<Idea>() {\n @Override\n public int compare(Idea i1, Idea i2) {\n if(i1.getLikers().size() == i2.getLikers().size()){\n return 0;\n }\n return i1.getLikers().size() > i2.getLikers().size() ? -1 : 1;\n }\n });\n\n return ideas;\n }", "com.google.protobuf.Int64ValueOrBuilder getDeliveryDateBeforeOrBuilder();", "public Set<Vertex> pre(Vertex start){\n\t\tSet<Vertex> reach = new HashSet<Vertex>();\n\t\tif(this.edgesByEnd.get(start) == null)\n\t\t\treturn reach;\n\t\tfor(LabeledEdge trans : this.edgesByEnd.get(start)){\n\t\t\treach.add(trans.getStart());\n\t\t}\n\t\treturn reach;\n\t}", "public Message[] getComments (String sig) {\n Vector<Message> comments = new Vector<Message>();\n Logger.write(\"VERBOSE\", \"DB\", \"getComments(...)\");\n \n try {\n ResultSet commentSet = query(DBStrings.getComments.replace(\"__PARENT__\", sig));\n while (commentSet.next()) {\n Message cmnt = new MessageFactory().newCMNT(sig, commentSet.getString(\"msgText\"));\n cmnt.timestamp = Long.parseLong(commentSet.getString(\"creationTime\"));\n cmnt.signature = commentSet.getString(\"sig\");\n comments.add(cmnt);\n }\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n }\n \n return comments.toArray(new Message[0]); \n }", "public ArrayList<Event> getCalendarEventsBetween(Calendar startingDate, Calendar endingDate)\n {\n ArrayList<Event> list = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n Calendar eventCalendar = events.get(i).getCalendar();\n\n if(isSame(startingDate, eventCalendar) || isSame(endingDate, eventCalendar) ||\n (eventCalendar.before(endingDate) && eventCalendar.after(startingDate)))\n {\n list.add(events.get(i));\n }\n }\n return list;\n }", "public Version getPrev(){\n\t\treturn prev;\n\t}", "@Override\n\tpublic TvShow[] findByUuid_PrevAndNext(long tvShowId, String uuid,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = getByUuid_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = getByUuid_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public void prevSentences(ArrayList<Integer> list){\n \n// ArrayList<Integer> indexList = list;\n// ArrayList<Integer> returnList = new ArrayList(indexList.size()+1);\n \n for(int i = 0; i < list.size(); i++){\n Integer index = list.get(i);\n if(index > 0){\n if(!list.contains(index-1)){\n System.out.println(\"added\");\n// returnList.add(index-1);\n list.add(index-1);\n return;\n }\n }\n }\n \n// returnList.addAll(indexList);\n// \n//\n// return returnList;\n\n }", "public static void removeNotRequiredSiblings(GroupConditions gc){\r\n\t\tif(gc == null){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tgc.getChildren().forEach(sn->{\r\n\t\t\tif(sn instanceof GroupConditions){\r\n\t\t\t\tGroupConditions child = GroupConditions.class.cast(sn);\r\n\t\t\t\tremoveNotRequiredSiblings(child);\r\n\t\t\t}\r\n\t\t\tif(sn instanceof FilterCondition){\r\n\t\t\t\tFilterCondition fc = FilterCondition.class.cast(sn);\r\n\t\t\t\tSelectExpression se = fc.findFirstByType(SelectExpression.class);\r\n\t\t\t\tif(se != null){\r\n\t\t\t\t\tremoveNotRequiredSiblings(se.findFirstByType(Where.class));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tgc.getChildren().removeIf(sn->sn instanceof GroupConditions && sn.getChildren().isEmpty());\r\n\t\t\r\n\t\tint size = gc.getChildren().size();\r\n\t\tint endIdx = size-1;\r\n\t\tList<int[]> found = childrenOperatorIndex(gc);\r\n\t\t// start with Operator, or end with, or within middle but there are multiple\r\n\t\tList<int[]> match = found.stream().filter(i-> i[0] == 0 || i[1] == endIdx || i[1] - i[0] > 0).collect(Collectors.toList());\r\n\t\tSet<Integer> set = new LinkedHashSet<>();\r\n\t\tmatch.forEach(i->{\r\n\t\t\tint start = i[0];\r\n\t\t\tint end = i[1];\r\n\t\t\tif(i[0] == 0 || i[1] == endIdx){\r\n\t\t\t\tfor(; start <= end; start++){\r\n\t\t\t\t\tset.add(start);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tfor(; start < end; start++){// last one not included\r\n\t\t\t\t\tset.add(start);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tList<Integer> idx = new LinkedList<>(set);\r\n\t\tCollections.reverse(idx);\r\n\t\tSystem.out.println(idx);\r\n\t\tidx.forEach(i->{\r\n\t\t\tgc.getChildren().remove(i.intValue());\r\n\t\t});\r\n\t}", "public List getPrevList() {\n\t\treturn prevList;\n\t}", "public List<WebRecommendation> findAllOrderBySequence();", "public List<ExoSocialActivity> getOlderComments(\n ExoSocialActivity existingActivity, ExoSocialActivity baseComment, int limit);", "public ArrayList<Event> remainingEventsForTheWeek() {\n\t\tArrayList<Event> result = new ArrayList();\n\n\t\tLocalDateTime now = this.now.get();\n\t\tLocalDate today = now.toLocalDate();\n\t\tLocalTime moment = now.toLocalTime();\n\t\tboolean after = false;\n\n\t\tdo {\n\t\t\tTreeSet<Event> todayEvents = this.events.get(today);\n\t\t\tif (todayEvents != null) {\n\t\t\t\t// Events are sorted\n\t\t\t\tfor (Event e: todayEvents) {\n\t\t\t\t\tif (after) {\n\t\t\t\t\t\tresult.add(e);\n\t\t\t\t\t} else if (e.startTime.compareTo(moment) >= 0) {\n\t\t\t\t\t\tresult.add(e);\n\t\t\t\t\t\tafter = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\tafter = true;\n\t\ttoday = today.plusDays(1);\n\t\t// Week ends on Sunday.\n\t\t} while (today.getDayOfWeek() != DayOfWeek.MONDAY);\n\n\t\treturn result;\n\t}", "Date getPriorDate();", "public DateTime[] getSegmentFenceposts(LocalDate date) {\n DateTime start = date.toDateTimeAtStartOfDay();\n DateTime stop = date.plusDays(1).toDateTimeAtStartOfDay();\n int[] starts = getSegmentStartTimes();\n DateTime[] fenceposts = new DateTime[starts.length + 1];\n for (int i = 0; i < starts.length; i++) {\n fenceposts[i] = start.plusMillis(starts[i]);\n }\n fenceposts[starts.length] = stop;\n return fenceposts;\n }", "public List<Question> getQuestionsByPoints() {\n List<Membership> memberships = (ArrayList<Membership>) this.getMemberships();\n List<Question> questions = new ArrayList<Question>();\n\n for (Membership m : memberships) \n \tfor(Question q: m.getQuestions())\n \t\tquestions.add(q);\n // We want the most recent questions first so reverse the array with\n // Collections.reverse\n // PostPointsComparator returns questions in asc we want desc\n Collections.sort(questions, new PostPointsComparator());\n Collections.reverse(questions);\n\n return questions;\n }", "protected abstract D getPrevious(D d);", "public Weet[] getWeetsBefore(Date dateBefore) {\n return tree.toArray(dateBefore);\n }", "public List<CapComments> getCapComments() {\n \t\t\t\tList<CapComments> cap=(List<CapComments>) commentRepo.findAll();\r\n \t\t\t\tCollections.reverse(cap);\r\n \t\t\t\treturn cap;\r\n \t\t\t}", "com.google.protobuf.Int64Value getDeliveryDateBefore();", "public List<ExoSocialActivity> getOlderActivitiesOfConnections(Identity owner, Long sinceTime, int limit);", "public void testPrev() {\n test1.prev();\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.prev();\n test1.moveToPos(8);\n assertTrue(test1.getValue().inRange(8));\n }", "public Set<GameDTO> getGamesWhichCanBeMovedToHistory() {\n return appealService.findAllByAppealStage(AppealStage.CONSIDERED)\n .stream()\n .map(Appeal::getGame)\n .map(gameDTOService::toGameDTO)\n .collect(Collectors.toSet());\n }", "private KimPlayer mvpCompare(KimPlayer kp1, KimPlayer kp2) {\r\n if(kp1 == null) {\r\n return kp2;\r\n }\r\n\r\n if(kp2 == null) {\r\n return kp1;\r\n }\r\n\r\n if(kp1.m_kills < kp2.m_kills) {\r\n return kp2;\r\n }\r\n\r\n if(kp1.m_kills > kp2.m_kills) {\r\n return kp1;\r\n }\r\n\r\n if(kp1.m_deaths > kp2.m_deaths) {\r\n return kp2;\r\n }\r\n\r\n if(kp1.m_deaths < kp2.m_deaths) {\r\n return kp1;\r\n }\r\n\r\n Player p1 = m_botAction.getPlayer(kp1.m_name);\r\n Player p2 = m_botAction.getPlayer(kp2.m_name);\r\n\r\n if(p1 == null) {\r\n return kp2;\r\n }\r\n\r\n if(p2 == null) {\r\n return kp1;\r\n }\r\n\r\n if(p1.getKillPoints() < p2.getKillPoints()) {\r\n return kp2;\r\n }\r\n\r\n if(p1.getKillPoints() > p2.getKillPoints()) {\r\n return kp1;\r\n }\r\n\r\n if(kp1.m_lagoutsLeft < kp2.m_lagoutsLeft) {\r\n return kp2;\r\n }\r\n\r\n if(kp1.m_lagoutsLeft > kp2.m_lagoutsLeft) {\r\n return kp1;\r\n }\r\n\r\n return kp2;\r\n }", "public String arrangeEvents() throws Exception {\n JSONArray scheduledEventList = calObj.retrieveEvents(\"primary\").getJSONArray(\"items\");\n JSONArray unScheduledEventList = calObj.retrieveEvents(this.user.getCalId()).getJSONArray(\"items\");\n\n //Filter events for this week\n\n\n //Make a list of all events\n\n //Prioritise all unscheduled events\n\n\n //Send the list to client to display\n String events = \"\";\n for (int i = 0; i < scheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = scheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n // Unscheduled events set in bot created aPAS calendar\n for (int i = 0; i < unScheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = unScheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n return events;\n }", "public static List<Node> getNextDecisions(ProbNet probNet) {\n\t\tList<Node> decisionNodes = ProbNetOperations.getParentlessDecisions(probNet);\n\t\t// Check if the nodes revealed by a decision node are the subset of another\n\t\t// In that case we don't need to consider them as valid orders\n\t\tList<List<Node>> revealedNodes = new ArrayList<>();\n\t\tfor (Node node : decisionNodes) {\n\t\t\tList<Node> revealedByDecision = new ArrayList<>();\n\t\t\tfor (Link<Node> link : node.getLinks()) {\n\t\t\t\tif (link.getNode1().equals(node) && link.hasRevealingConditions()) {\n\t\t\t\t\trevealedByDecision.add(link.getNode2());\n\t\t\t\t}\n\t\t\t}\n\t\t\trevealedNodes.add(revealedByDecision);\n\t\t}\n\t\tList<Node> dominatedDecisions = new ArrayList<>();\n\t\tfor (int i = 0; i < decisionNodes.size(); ++i) {\n\t\t\tNode nodeA = decisionNodes.get(i);\n\t\t\tif (!revealedNodes.get(i).isEmpty()) {\n\t\t\t\tfor (int j = 0; j < decisionNodes.size(); ++j) {\n\t\t\t\t\tNode nodeB = decisionNodes.get(j);\n\t\t\t\t\tif (nodeA != nodeB && revealedNodes.get(i).containsAll(revealedNodes.get(j)))\n\t\t\t\t\t\tdominatedDecisions.add(nodeB);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdecisionNodes.removeAll(dominatedDecisions);\n\n\t\treturn decisionNodes;\n\t}", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public ExperimentList orderExperiments(){ // tum experimentlari sirala\r\n Node last = head;\r\n Node last2 = head;\r\n ExperimentList ordered = new ExperimentList();\r\n Node min = new Node(new Experiment());\r\n min.data.accuracy = 9999999;\r\n float min2 = -9999999;\r\n int count = -1;\r\n while(last != null){ // genel dongu\r\n int count_in = 0;\r\n while(last2 != null){ // her eleman icin dongu\r\n if( min.data.accuracy > last2.data.accuracy && last2.data.accuracy >= min2){\r\n if( last2.data.accuracy != min2 || count_in >= count){\r\n min = last2; // min se ve kullanilmamissa ekle\r\n count_in++;\r\n }\r\n }\r\n last2 = last2.next;\r\n }\r\n count = count_in;\r\n Experiment temp = new Experiment(min.data);\r\n ordered.addExpList(temp);\r\n min2 = min.data.accuracy;\r\n min = new Node(new Experiment());\r\n min.data.accuracy = 9999999;\r\n last = last.next;\r\n last2 = head;\r\n }\r\n return ordered;\r\n }", "void decrementOrderByOne( int nOrder, int nIdWorkflow );", "public static void main(String[] args) {\nDate d1 = new Date( 2019, 02, 22);\nSystem.out.println(d1);\n\n\nDate d2= new Date();\nSystem.out.println(d2);\nDate d3 = new Date(2000,11,11);\nSystem.out.println(d3);\nint a = d1.compareTo(d3);\nSystem.out.println(a);\nboolean b = d1.after(d2);\n\tSystem.out.println(b);\n\t}", "@Query(\"SELECT pe FROM ProgrammingExercise pe LEFT JOIN FETCH pe.exerciseGroup eg LEFT JOIN FETCH eg.exam e WHERE e.endDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllWithEagerExamByExamEndDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);", "public List<Forum> getListForumCreatedBetweenDateByIdForum(Date minDate,Date maxDate);", "@Test(dataProvider = \"validPPData\")\r\n\tpublic void testPrevious(List<String> valid) {\r\n\t\t\r\n\t\tField field;\r\n\t\ttry {\r\n\t\t\tfield = pages.getClass().getDeclaredField(\"currentPage\");\r\n\t\t\tfield.setAccessible(true);\r\n\t\t\tfield.set(pages, 3);\r\n\t\t\t\r\n\t\t\tList<String> result = pages.previous();\r\n\t\t\tAssert.assertTrue(result.equals(valid));\r\n\t\t} catch (NoSuchFieldException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (SecurityException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "default CompletableFuture<ArchivedThreads> getPublicArchivedThreads(long before) {\n return getPublicArchivedThreads(before, null);\n }", "public TimedVariable findPrev(Date ref)\n\t{\n\t\tif (vars.isEmpty())\n\t\t\treturn null;\n\t\tTimedVariable dummy = new TimedVariable(0);\n\t\tdummy.setTime(ref);\n\t\tint idx = Collections.binarySearch(vars, dummy, tvComparator);\n\t\tif (idx < 0)\n\t\t\tidx = (-idx) - 1;\n\n\t\t// The 'insertion point' would be the next one, so subtract one.\n\t\t// If now less than zero, there are no vars prev to 'sec'.\n\t\tif (--idx < 0)\n\t\t\treturn null;\n\t\treturn vars.get(idx);\n\t}", "public com.ext.portlet.model.ModelInputGroup[] findByparentModelId_PrevAndNext(\n long modelInputGroupPK, long parentGroupPK,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.ext.portlet.NoSuchModelInputGroupException,\n com.liferay.portal.kernel.exception.SystemException;" ]
[ "0.5898702", "0.55235964", "0.53060085", "0.49514484", "0.48307386", "0.47303516", "0.46101397", "0.46043992", "0.45958385", "0.45619607", "0.45211262", "0.44431564", "0.43751532", "0.43095148", "0.4307674", "0.42577022", "0.42500186", "0.42357233", "0.42312482", "0.42055112", "0.41925004", "0.41897997", "0.41679493", "0.41330665", "0.412737", "0.40963826", "0.40948406", "0.40859503", "0.4084081", "0.4080382", "0.40604135", "0.4060384", "0.4059699", "0.40567943", "0.40442112", "0.40358016", "0.40260887", "0.4022529", "0.40022492", "0.40012875", "0.3995456", "0.39795193", "0.39758718", "0.39648753", "0.39585263", "0.3948643", "0.39481792", "0.3939762", "0.39396688", "0.39264482", "0.3925254", "0.3922617", "0.39190203", "0.39160857", "0.38865805", "0.387469", "0.38731843", "0.38705006", "0.38546908", "0.38539457", "0.38470447", "0.3844425", "0.38420767", "0.38418087", "0.38406026", "0.3840164", "0.3839658", "0.3835411", "0.38330862", "0.3831927", "0.3825364", "0.38167986", "0.38134035", "0.38127998", "0.38119987", "0.38095707", "0.3807069", "0.38061374", "0.38014972", "0.38012725", "0.37955078", "0.37933835", "0.37893334", "0.37819868", "0.37801212", "0.37791902", "0.37788752", "0.37765825", "0.37752157", "0.37712258", "0.37682498", "0.37569833", "0.37568188", "0.3756718", "0.3751097", "0.37489703", "0.37476444", "0.3746862", "0.37359563", "0.37346864" ]
0.61037505
0
Removes all the vcms discussions where groupId = &63; and language = &63; and approved = &63; from the database.
public void removeByP_L_A(long groupId, java.lang.String language, boolean approved);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<PreparedStatement> getClearDiscussionStatements(String forumId, String discussionId, Connection conn) throws Exception;", "public java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);", "void deleteAllChallenges();", "List<PreparedStatement> getDeleteDiscussionStatements(String forumId,String discussionId,Connection conn) throws Exception;", "public java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);", "public java.util.List<VcmsDiscussion> findAll();", "void deleteAllCommentsOfProject(int projectId) throws SQLException;", "private void deleteFloatingReplies()\n\t{\n\t\tList<DBObject> groupList = groups.find().toArray();\n\t\t\n\t\tfor(DBObject group : groupList)\n\t\t{\n\t\t\tDBCollection c = getGroupColl((String) group.get(\"customID\"));\n\t\t\tList<DBObject> list = c.find(QueryBuilder.start(\"target.messageID\").notEquals(\"\").get()).toArray();\n\t\t\t\n\t\t\tfor(DBObject reply : list)\n\t\t\t{\n\t\t\t\tif(c.findOne(MongoUtils.queryID(((DBObject)reply.get(\"target\")).get(\"messageID\").toString())) == null) {\n\t\t\t\t\tc.remove(reply);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);", "public static Boolean deleteAllDraftMessage() {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tdb.execSQL(\"DELETE FROM drafts\");\r\n\t\t\t//Log.d(\"DRAFT DELETE\", \"Record deleted!\");\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//Log.e(\"DRAFT DELETE\", \"error : \" + e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);", "public void removeByP_L(long groupId, java.lang.String language);", "@Override\n\tpublic void removeByG_L(long groupId, String language) {\n\t\tfor (VcmsPortion vcmsPortion : findByG_L(groupId, language,\n\t\t\t\tQueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "public void deleteMessages() {\n\t\tmessageDAO.modifyMessageList(currentContact.getMsgId(), new LinkedList<Mensaje>());\n\t\tcurrentContact.removeMessages();\n\t\tcontactDAO.modifyContact(currentContact);\n\t\t// Groups share the message list, only single contacts has to be updated\n\t\tif (currentContact instanceof ContactoIndividual) {\n\t\t\tUsuario user = userCatalog.getUser(currentContact.getUserId());\n\t\t\tOptional<Contacto> result = user.getContacts().stream().filter(c -> c.getUserId() == currentUser.getId())\n\t\t\t\t\t.findFirst();\n\t\t\tif (!result.isPresent())\n\t\t\t\treturn;\n\t\t\tmessageDAO.modifyMessageList(result.get().getMsgId(), new LinkedList<Mensaje>());\n\t\t\tresult.get().removeMessages();\n\t\t\tcontactDAO.modifyContact(result.get());\n\t\t}\n\t}", "public VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public void removeFromCollections() {\n \n if (assignmentResponse != null) {\n Set parentCollection = assignmentResponse.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n if (question != null) {\n Set parentCollection = question.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n Vital3Utils.removeMultipleFromCollections(comments);\n }", "@Override\n\tpublic void runPrune(String forumPath) throws Exception {\n\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (LinkGroup linkGroup : findAll()) {\n\t\t\tremove(linkGroup);\n\t\t}\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic void deleteAll() {\n\t\ttopicContentDao.deleteAll();\r\n\t}", "public VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Before\n public void cleanConversations() {\n restController.deleteAllConvoMsgsForBlog(MAIN_BLOG_NAME);\n restController.deleteAllConversationsForBlog(MAIN_BLOG_NAME);\n }", "List<PreparedStatement> getUndeleteMessageStatements(Message message,String forumId,Connection conn) throws Exception;", "public static void removeAllGroupChatInvitationsInMms() {\n Logger.v(TAG, \"removeAllGroupChatInvitationsInMms entry\");\n ContentResolver contentResolver = MediatekFactory\n .getApplicationContext().getContentResolver();\n contentResolver.delete(PluginUtils.SMS_CONTENT_URI, Sms.ADDRESS\n + \" LIKE '\" + GROUP_CONTACT_STRING_BEGINNER\n + GROUP_CHAT_INVITATION_TAG_BEGINNER + \"%'\", null);\n }", "private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }", "public void deleteAll() {\n\t\t mongoTemplate.remove(new Query(), COLLECTION);\n\t}", "@Test\n public void removeAll_with_workflow_204() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addWfToDb(0);\n addMOToDb(1);\n addMOToDb(2);\n addMOToDb(3);\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.DELETE, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(204, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n\n response = callAPI(VERB.GET, \"/wf/\", null);\n status = response.getStatus();\n assertEquals(200, status);\n\n List<Workflow> readWorkflowList = response.readEntity(new GenericType<List<Workflow>>() {\n });\n assertEquals(1, readWorkflowList.size());\n }", "public void deleteLanguages(){\n editor.remove(PRIMARY_LANGUAGE);\n editor.remove(SECONDARY_LANGUAGE);\n editor.apply();\n }", "public void removeAllContentGroupDescription() {\r\n\t\tBase.removeAll(this.model, this.getResource(), CONTENTGROUPDESCRIPTION);\r\n\t}", "List<PreparedStatement> getDeleteForumStatements(String forumId,Connection conn) throws Exception;", "public void removeAllPaymentGroups();", "public void removeAllComments() {\r\n\t\tBase.removeAll(this.model, this.getResource(), COMMENTS);\r\n\t}", "List<PreparedStatement> getDeleteMessageStatements(Message message,String forumId,Connection conn) throws Exception;", "public VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);", "@Override\n\tpublic void removeByG_L_C(long groupId, String language,\n\t\tboolean categorizable) {\n\t\tfor (VcmsPortion vcmsPortion : findByG_L_C(groupId, language,\n\t\t\t\tcategorizable, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "public void deleteAllArticles();", "@Override\n\tpublic void removeAll() {\n\t\tfor (VcmsPortion vcmsPortion : findAll()) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "public void unblock(){ \n blocked = false;\n blockedMssg = \"\";\n\n // update todos los votos como colectivo\n for (Collective c: memberCollectives) c.updateFamilyVotes();\n\n // update todos los votos como usuario\n for (Project p: getVotedProjects()) p.updateVotes();\n }", "public static void cleanChanList() {\n\t\tArrayList<ChatChannel> currentChannels = new ArrayList<ChatChannel>();\n\t\tfor (int i = 0; i < channels.size(); i++) {\n\t\t\tcurrentChannels.add(channels.get(i));\n\t\t}\n\t\t\n\t\t//loop through the new array list\n\t\tfor (ChatChannel channel: currentChannels) {\n\t\t\tboolean remove = true;\n\t\t\tif (!channel.modes.contains(ChatChannel.Mode.PERSIST)) {\n\t\t\t\t//Not persist. Check the players\n\t\t\t\tfor (int f = 0; f < PlayerManager.players.size(); f++){\n\t\t\t\t\tChatPlayer player = PlayerManager.players.get(f);\n\t\t\t\t\t\n\t\t\t\t\t//check if in channel or listening\n\t\t\t\t\tif (player.listening.contains(channel.name.toLowerCase()) || player.listening.contains(channel.name.toLowerCase())){\n\t\t\t\t\t\tremove = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tremove = false;\n\t\t\t}\n\t\t\t\n\t\t\tif (remove) {\n\t\t\t\tremoveChannel(channel.name);\n\t\t\t\tSystem.out.println(\"Remove channel: \"+channel.name);\n\t\t\t}\n\t\t}\n\t}", "public void deleteAll(){\n editor.clear();\n editor.apply();\n }", "public void deleteAllFromSubCategory(int id) throws SQLException {\n\n Connection connection = database.getConnection();\n\n PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM posts WHERE threadId IN(SELECT threadId FROM threads WHERE subCategoryId = ?); \");\n stmt.setInt(1, id);\n\n stmt.execute();\n stmt.close();\n connection.close();\n }", "@Test\n public void markAllConversationsUnhidden() {\n String participant1 = \"participant1\";\n String participant2 = \"participant2\";\n\n Conversation convo1 = new Conversation();\n convo1.setId(1L);\n convo1.setParticipant(participant1);\n convo1.setHideConversation(true);\n restController.createConversationForBlog(MAIN_BLOG_NAME, convo1);\n Conversation convo2 = new Conversation();\n convo2.setId(2L);\n convo2.setParticipant(participant2);\n convo2.setHideConversation(true);\n restController.createConversationForBlog(MAIN_BLOG_NAME, convo2);\n\n List<Conversation> allConvos = restController.getAllConversationsForBlog(MAIN_BLOG_NAME);\n assertThat(allConvos).isNotNull();\n assertThat(allConvos.size()).isEqualTo(2);\n\n List<Conversation> allUnHiddenConvos = restController.getUnhiddenConversationsForBlog(MAIN_BLOG_NAME);\n assertThat(allUnHiddenConvos).isNotNull();\n assertThat(allUnHiddenConvos.size()).isEqualTo(0);\n\n restController.unignoreAllConversationsForBlog(MAIN_BLOG_NAME);\n\n List<Conversation> finalList = restController.getUnhiddenConversationsForBlog(MAIN_BLOG_NAME);\n assertThat(finalList).isNotNull();\n assertThat(finalList.size()).isEqualTo(2);\n }", "@Query(\"DELETE FROM issue_table\")\n void deleteAll();", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findAll()) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "public VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "List<PreparedStatement> getMarkMessageUnReadStatements(String id, String messageId,String forumId,String discussionId,Connection conn) throws Exception;", "public void cacheResult(VcmsDiscussion vcmsDiscussion);", "public VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);", "public VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public void deleteForum(Forum forum);", "protected void processVerifyPrune(Context context,\n HttpServletRequest request, HttpServletResponse response,\n SubmissionInfo subInfo, boolean multipleTitles,\n boolean publishedBefore, boolean multipleFiles)\n throws ServletException, IOException, SQLException,\n AuthorizeException\n {\n // get the item to prune\n Item item = subInfo.getSubmissionItem().getItem();\n\n if (!multipleTitles && subInfo.getSubmissionItem().hasMultipleTitles())\n {\n item.clearDC(\"title\", \"alternative\", Item.ANY);\n }\n\n if (!publishedBefore && subInfo.getSubmissionItem().isPublishedBefore())\n {\n item.clearDC(\"date\", \"issued\", Item.ANY);\n item.clearDC(\"identifier\", \"citation\", Item.ANY);\n item.clearDC(\"publisher\", null, Item.ANY);\n }\n\n if (!multipleFiles && subInfo.getSubmissionItem().hasMultipleFiles())\n {\n // remove all but first bitstream from bundle[0]\n // FIXME: Assumes multiple bundles, clean up someday...\n // (only messes with the first bundle.)\n Bundle[] bundles = item.getBundles(\"ORIGINAL\");\n\n if (bundles.length > 0)\n {\n Bitstream[] bitstreams = bundles[0].getBitstreams();\n\n // Remove all but the first bitstream\n for (int i = 1; i < bitstreams.length; i++)\n {\n bundles[0].removeBitstream(bitstreams[i]);\n }\n }\n }\n }", "private void purgeCases() {\n\t\tVector<String> owners = new Vector<String>();\n\t\tVector<String> users = new Vector<String>(); \n\t\tfor(IStorageIterator<User> userIterator = CommCareApplication._().getUserStorage(User.class).iterate(); userIterator.hasMore();) {\n\t\t\tString id = userIterator.nextRecord().getUniqueId();\n\t\t\towners.addElement(id);\n\t\t\tusers.addElement(id);\n\t\t}\n\t\t\n\t\t//Now add all of the relevant groups\n\t\t//TODO: Wow. This is.... kind of megasketch\n\t\tfor(String userId : users) {\n\t\t\tDataInstance instance = CommCareUtil.loadFixture(\"user-groups\", userId);\n\t\t\tif(instance == null) { continue; }\n\t\t\tEvaluationContext ec = new EvaluationContext(instance);\n\t\t\tfor(TreeReference ref : ec.expandReference(XPathReference.getPathExpr(\"/groups/group/@id\").getReference())) {\n\t\t\t\tAbstractTreeElement<AbstractTreeElement> idelement = ec.resolveReference(ref);\n\t\t\t\tif(idelement.getValue() != null) {\n\t\t\t\t\towners.addElement(idelement.getValue().uncast().getString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tSqlStorage<ACase> storage = CommCareApplication._().getUserStorage(ACase.STORAGE_KEY, ACase.class);\n\t\tCasePurgeFilter filter = new CasePurgeFilter(storage, owners);\n\t\tstorage.removeAll(filter);\n\t\t\n\t\tSqlStorage<Ledger> stockStorage = CommCareApplication._().getUserStorage(Ledger.STORAGE_KEY, Ledger.class);\n\t\tLedgerPurgeFilter stockFilter = new LedgerPurgeFilter(stockStorage, storage);\n\t\tstockStorage.removeAll(stockFilter);\n\t}", "@Test\n public void removeAll_204() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n addMOToDb(3);\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.DELETE, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(204, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n }", "public VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public void remove(MongoDBCritera critera);", "public boolean deleteAllMessages() throws SQLException{\n boolean areDeleted;\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n areDeleted= database.delete(\"Message\", null, null)>0;\n\n dbH.close();\n return areDeleted;\n\n }", "int deleteByExample(DiscussExample example);", "public void deleteSelectedCategories() {\n\t\tfor (IFlashcardSeriesComponent x : selectionListener.selectedComponents) {\n\t\t\tFlashCategory cat = (FlashCategory) x;\n\t\t\t/*\n\t\t\tif (cat.getParent() == null) {\n\t\t\t\troot = new FlashCategory(root.getName());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t*/\n\t\t\tList<Flashcard> copy = new ArrayList<Flashcard>(flashcards);\n\t\t\tfor (Flashcard f : copy) {\n\t\t\t\tif (cat.containsFlashcard(f)) {\n\t\t\t\t\tflashcards.remove(f);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcat.getParent().removeI(cat);\n\t\t\t\n\t\t\tif (selectRootAction != null) selectRootAction.selectRoot();\n\t\t\t\n\t\t}\n\t\tfireIntervalChanged(this,-1,-1);\n\t}", "private void deletedAllNewsFromDatabase() {\n new DeleteNewsAsyncTask(newsDao).execute();\n }", "public void removeAllOntologies20070510nid3Language() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ONTOLOGIES20070510NID3LANGUAGE);\r\n\t}", "@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and groupId = &#63; and language = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; and approved = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63; and approved = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = &#63;.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = &#63; from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = &#63;.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}", "protected void deletePlannedCalendar(PlannedCalendar calendar) {\n deleteEpochs(calendar.getEpochs());\n }", "@PrePersist\r\n @PreUpdate\r\n public void removeEmptyComments()\r\n {\r\n List<Comment> empty = new ArrayList<Comment>();\r\n for (Comment current : this.getComments())\r\n {\r\n current.removeEmptyComments();\r\n if (current.getText() == null || current.getText().isEmpty())\r\n {\r\n empty.add(current);\r\n }\r\n }\r\n\r\n this.getComments().removeAll(empty);\r\n }", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Legacydb legacydb : findAll()) {\n\t\t\tremove(legacydb);\n\t\t}\n\t}", "private void removeLangauge(String langName, String langAbbrv) {\n fileSystem.removeLanguage(langName);\n for (int i = 0; i < mFullList.size(); i++) {\n Category cat = (Category) mFullList.get(i);\n for (int j = 0; j < cat.phraseList.size(); j++) {\n Phrase p = (Phrase) cat.phraseList.get(j);\n if (p.phraseLanguages.containsKey(langName)) {\n p.phraseLanguages.remove(langName);\n if (p.phraseLanguages.size() == 0)\n fileSystem.removePhrase(p.getPhraseText(), cat.getCategoryTitle());\n }\n }\n }\n\n }", "public static void deleteExample() throws IOException {\n\n Neo4jUtil neo4jUtil = new Neo4jUtil(\"bolt://localhost:7687\", \"neo4j\", \"neo4jj\" );\n\n Langual.getAllLangualList().forEach(langual -> {\n String cmd = \"MATCH (n:Langual)-[r:lang_desc]-(b:Langdesc) where n.factorCode='\"\n + langual.getFactorCode().trim()\n + \"' delete r\";\n neo4jUtil.myNeo4j(cmd);\n System.out.println(cmd);\n });\n }", "public void pruneEnvironments(final int numToPrune) {\n final SQLiteDatabase db = this.helper.getWritableDatabase();\n db.beginTransaction();\n try {\n db.delete(\"environments\",\n \"id in (SELECT env \" +\n \" FROM events \" +\n \" GROUP BY env \" +\n \" ORDER BY MAX(date), env \" +\n \" LIMIT \" + numToPrune + \")\",\n null);\n db.setTransactionSuccessful();\n } finally {\n db.endTransaction();\n }\n }", "public java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);", "int deleteByPrimaryKey(Long id_message_group);", "public VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;", "@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }", "private void deleteMathGamesPreviousContent()\n {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(DATABASE_TABLE_MATH_GAMES, null, null);\n db.close();\n }", "public void testDeletedProblem() throws Exception {\n \n InternalContest contest = new InternalContest();\n\n int numTeams = 2;\n initData(contest, numTeams , 5);\n String [] runsData = {\n\n \"1,1,A,1,No\", //20\n \"2,1,A,3,Yes\", //3 (first yes counts Minutes only)\n \"3,1,A,5,No\", //20\n \"4,1,A,7,Yes\", //20 \n \"5,1,A,9,No\", //20\n \n \"6,1,B,11,No\", //20 (all runs count)\n \"7,1,B,13,No\", //20 (all runs count)\n \n \"8,2,A,30,Yes\", //30\n \n \"9,2,B,35,No\", //20 (all runs count)\n \"10,2,B,40,No\", //20 (all runs count)\n \"11,2,B,45,No\", //20 (all runs count)\n \"12,2,B,50,No\", //20 (all runs count)\n \"13,2,B,55,No\", //20 (all runs count)\n\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,0,0\",\n \"1,team2,0,0\"\n };\n\n for (String runInfoLine : runsData) {\n SampleContest.addRunFromInfo(contest, runInfoLine);\n }\n\n Problem probA = contest.getProblems()[0];\n probA.setActive(false);\n contest.updateProblem(probA);\n Problem probA1 = contest.getProblem(probA.getElementId());\n assertEquals(\"probA1 setup\", false, probA1.isActive());\n Problem probA2 = contest.getProblems()[0];\n assertEquals(\"probA2 setup\", false, probA2.isActive());\n confirmRanks(contest, rankData);\n Document document = null;\n\n try {\n DefaultScoringAlgorithm defaultScoringAlgorithm = new DefaultScoringAlgorithm();\n String xmlString = defaultScoringAlgorithm.getStandings(contest, null, log);\n if (debugMode) {\n System.out.println(xmlString);\n }\n // getStandings should always return a well-formed xml\n assertFalse(\"getStandings returned null \", xmlString == null);\n assertFalse(\"getStandings returned empty string \", xmlString.trim().length() == 0);\n\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n document = documentBuilder.parse(new InputSource(new StringReader(xmlString)));\n\n } catch (Exception e) {\n assertTrue(\"Error in XML output \" + e.getMessage(), true);\n e.printStackTrace();\n }\n \n // skip past nodes to find teamStanding node\n NodeList list = document.getDocumentElement().getChildNodes();\n \n int rankIndex = 0;\n \n for(int i=0; i<list.getLength(); i++) {\n Node node = (Node)list.item(i);\n String name = node.getNodeName();\n if (name.equals(\"teamStanding\")){\n String [] standingsRow = fetchStanding (node);\n// Object[] cols = { \"Rank\", \"Name\", \"Solved\", \"Points\" };\n String [] cols = rankData[rankIndex].split(\",\");\n\n if (debugMode) {\n System.out.println(\"SA rank=\"+standingsRow[0]+\" solved=\"+standingsRow[2]+\" points=\"+standingsRow[3]+\" name=\"+standingsRow[1]);\n System.out.println(\" rank=\"+cols[0]+\" solved=\"+cols[2]+\" points=\"+cols[3]+\" name=\"+cols[1]);\n System.out.println();\n System.out.flush();\n }\n \n compareRanking (rankIndex+1, standingsRow, cols);\n rankIndex++;\n } else if(name.equals(\"standingsHeader\")) {\n String problemCount = node.getAttributes().getNamedItem(\"problemCount\").getNodeValue();\n int problemCountInt = Integer.valueOf(problemCount);\n NodeList list2 = node.getChildNodes();\n int foundProblemCount = -1;\n for(int j=0; j<list2.getLength(); j++) {\n Node node2 = (Node)list2.item(j);\n String name2 = node2.getNodeName();\n if (name2.equals(\"problem\")){\n int id = Integer.valueOf(node2.getAttributes().getNamedItem(\"id\").getNodeValue());\n if (id > foundProblemCount) {\n foundProblemCount = id;\n }\n }\n }\n assertEquals(\"problem list max id\",problemCountInt, foundProblemCount);\n assertEquals(\"problemCount\",\"4\", problemCount);\n }\n }\n\n }", "List<PreparedStatement> getMoveDiscussionStatements(String discussionId, String currentForumId,String newForumId,Connection conn) throws Exception;", "@Test\n public void testRemoveAllAttachmentsFromAnIssue() {\n System.out.println(\"removeAllAttachmentsFromAnIssue\");\n User user = createUser(\"ionut1765\", \"i56723321\", \"io6t123321@mail6\", \"12345\");\n String content = \"io567321\";\n String title = \"t567itle64\";\n IssueState state = IssueState.OPEN;\n\n NewIssueDTO issueDto = createIssueDTO(title, content, state, new ArrayList<Long>(), new ArrayList<Long>());\n\n Long issueId = issueService.createIssueFromIssueDTO(issueDto, user);\n Issue issue = issueService.getIssueById(issueId);\n\n issueService.removeAllAttachmentsFromAnIssue(issueId);\n List<Label> result = issueService.getLabelsByIssueId(issue);\n\n assertTrue(result.isEmpty());\n }", "@VisibleForTesting\n void checkGroupDeletions() {\n final String METHOD = \"checkGroupDeletions\";\n LOGGER.entering(CLASS_NAME, METHOD);\n\n NotesView groupView = null;\n ArrayList<Long> groupsToDelete = new ArrayList<Long>();\n Statement stmt = null;\n try {\n groupView = directoryDatabase.getView(NCCONST.DIRVIEW_VIMGROUPS);\n groupView.refresh();\n stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,\n ResultSet.CONCUR_READ_ONLY);\n ResultSet rs = stmt.executeQuery(\n \"select groupid,groupname,pseudogroup from \" + groupTableName);\n while (rs.next()) {\n long groupId;\n String groupName;\n boolean pseudoGroup = false;\n try {\n groupId = rs.getLong(1);\n groupName = rs.getString(2);\n pseudoGroup = rs.getBoolean(3);\n } catch (SQLException e) {\n LOGGER.log(Level.WARNING, \"Failure reading group table data\", e);\n continue;\n }\n\n if (pseudoGroup) {\n LOGGER.log(Level.FINEST,\n \"Skipping deletion check for pseudo-group: {0}\", groupName);\n continue;\n }\n try {\n if (Util.isCanonical(groupName)) {\n NotesName notesGroupName = notesSession.createName(groupName);\n groupName = notesGroupName.getAbbreviated();\n }\n NotesDocument notesGroupDoc = groupView.getDocumentByKey(groupName);\n if (notesGroupDoc == null) {\n // This group no longer exists.\n LOGGER.log(Level.INFO, \"Group no longer exists in source directory\"\n + \" and will be deleted: {0}\", groupName);\n groupsToDelete.add(groupId);\n }\n Util.recycle(notesGroupDoc);\n } catch (Exception e) {\n LOGGER.log(Level.WARNING,\n \"Error checking deletions for group: \" + groupName, e);\n }\n }\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, \"Error checking deletions\", e);\n } finally {\n Util.recycle(groupView);\n Util.close(stmt);\n }\n\n for (Long groupId : groupsToDelete) {\n try {\n removeGroup(groupId);\n } catch (SQLException e) {\n LOGGER.log(Level.WARNING, \"Error removing group: \" + groupId, e);\n }\n }\n LOGGER.exiting(CLASS_NAME, METHOD);\n }", "private void clearContentIdToEmbeddingTokens() {\n contentIdToEmbeddingTokens_ = emptyProtobufList();\n }", "@RequestMapping(value = \"/deleteAllmensajes\", method = RequestMethod.DELETE)\n\tpublic ResponseEntity<Void> deleteAll(){\n\t\tList<Mensaje> mensajeBorrar = chatDAO.getAllMessages();\n\t\tchatDAO.deleteAll(mensajeBorrar);\n\t\treturn new ResponseEntity<Void>(HttpStatus.OK);\n\t}", "List<MenuPermissionEntity> deleteByUserGroup(UserGroupEntity userGroup);", "public void deleteDrafts(final Calendar deletedOn);", "void removeAll(){\n\t\tmessages.clear();\n\t}", "void clearPersistentNotifications();", "public boolean delete(Connection db) throws SQLException {\n boolean commit = true;\n Statement st = null;\n ResultSet rs = null;\n\n try {\n commit = db.getAutoCommit();\n\n //Check to see if a message is being used by any unfinished campaigns\n //If so, the message can't be deleted\n inactiveCount = 0;\n st = db.createStatement();\n rs = st.executeQuery(\n \"SELECT COUNT(*) AS message_count \" +\n \"FROM campaign \" +\n \"WHERE message_id = \" + this.getId() + \" \" +\n \"AND status_id <> \" + Campaign.FINISHED);\n rs.next();\n inactiveCount = rs.getInt(\"message_count\");\n rs.close();\n if (inactiveCount > 0) {\n st.close();\n return false;\n }\n\n //If not, then the message can be deleted because a copy is made for\n //activated campaigns\n if (commit) {\n db.setAutoCommit(false);\n }\n st.executeUpdate(\"DELETE FROM contact_message WHERE message_id = \" + this.getId());\n MessageAttachmentList attachmentList = new MessageAttachmentList();\n attachmentList.delete(db, Constants.MESSAGE_FILE_ATTACHMENTS, this.getId());\n st.executeUpdate(\"DELETE FROM \" + DatabaseUtils.addQuotes(db, \"message\") + \" WHERE id = \" + this.getId());\n st.close();\n if (commit) {\n db.commit();\n }\n } catch (SQLException e) {\n if (commit) {\n db.rollback();\n }\n throw new SQLException(e.toString());\n } finally {\n if (commit) {\n db.setAutoCommit(true);\n }\n }\n return true;\n }", "private void cleanActionsTables() {\n getContentResolver().delete(\n ChatObjectContract.CONTENT_URI_ACTIONS_PUBLIC,\n null,\n null\n );\n getContentResolver().delete(\n ChatObjectContract.CONTENT_URI_ACTIONS_PRIVATE,\n BaseColumns.MSG_IN_QUEUE + \"=1\",\n null\n );\n }", "public void RemoveAllGraphs() {\n EquationCardLayout.removeAll();\n lineGraphs.clear();\n CurrentEQ = \"\";\n EQNum = 0;\n AddNewGraph();\n Canvas.removeAll();\n Canvas.repaint();\n }", "public void clearDatabase() {\n new ExecutionEngine(this.database).execute(\"MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE r, n\");\n }", "@Override\n\tpublic int deleteCommunity(JSONObject params) {\n\t\tint result = -1;\n\t\tresult = this.delete(\"deleteCommunityMember\",params);\n\t\tresult = this.delete(\"deleteCommunity\", params);\n\t\treturn result;\n\t}", "void clearAssociations();", "protected void removeOrphanedMessages() {\r\n Enumeration e = orphanedMessageSet.elements();\r\n MessageToken[] orphanedTokens = new MessageToken[orphanedMessageSet.size()];\r\n int index = 0;\r\n while(e.hasMoreElements()) {\r\n FolderMessage message = (FolderMessage)e.nextElement();\r\n folderMessageCache.removeFolderMessage(folderTreeItem, message);\r\n orphanedTokens[index++] = message.getMessageToken();\r\n }\r\n orphanedMessageSet.clear();\r\n mailStoreServices.fireFolderExpunged(folderTreeItem, orphanedTokens, new MessageToken[0]);\r\n }", "private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }" ]
[ "0.5976117", "0.59398454", "0.5702802", "0.5612138", "0.55797976", "0.5424439", "0.53835535", "0.53120387", "0.52822524", "0.5280089", "0.52700937", "0.5239791", "0.516732", "0.51341945", "0.50252295", "0.5006359", "0.5004524", "0.4966716", "0.4948241", "0.49446207", "0.4941769", "0.49383688", "0.4931388", "0.4913945", "0.48958895", "0.4834575", "0.48271808", "0.4815264", "0.47949675", "0.47628787", "0.47498268", "0.47464472", "0.47446924", "0.47311082", "0.4703673", "0.46999732", "0.46834973", "0.46792036", "0.46645108", "0.46593198", "0.4658458", "0.46549165", "0.46521887", "0.4645776", "0.46174413", "0.46020067", "0.45777357", "0.45596826", "0.45583084", "0.45499843", "0.45462567", "0.45390436", "0.45182472", "0.45148343", "0.45115674", "0.45115674", "0.45115674", "0.45115674", "0.45115674", "0.45115674", "0.45115674", "0.45115674", "0.45115674", "0.45115674", "0.45062777", "0.45050716", "0.4502761", "0.45026135", "0.45012966", "0.45006782", "0.44998252", "0.44962844", "0.4495296", "0.44820052", "0.44720945", "0.4468648", "0.4467382", "0.44558325", "0.44520277", "0.44435272", "0.44374335", "0.44365045", "0.44279674", "0.4422069", "0.4418076", "0.4417869", "0.44167572", "0.44086662", "0.4403515", "0.44022328", "0.43963274", "0.43773353", "0.43642116", "0.43595594", "0.4337376", "0.43345603", "0.4331426", "0.43259406", "0.43226585", "0.43176487" ]
0.55246276
5